diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 1a36d0d17086..896f099d6d71 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,106 +1,3 @@ -# Contributing to azure-rest-api-specs -First, thank you for contributing to Azure specs repository! Swagger specs are the basis for generating Azure SDKs in multiple different languages, Azure CLIs for interacting with the services, and can provide documentation for these services. - -## Basics -If you're a spec author looking for information about all of the repositories and steps in the pipeline, go to the [adx-documentation-pr](https://github.com/Azure/adx-documentation-pr) repository. Make sure to [join the Github Azure organization](http://aka.ms/azuregithub) to get access to that repo. - -## Table of Contents -[Before starting](#before-starting) -- [Onboarding](#onboarding) -- [Github basics](#github-basics) -- [Code of Conduct](#code-of-conduct) - -[Making changes](#making-changes) -- [Documentation](#documentation) -- [Filenames and folder structure](#filenames-and-folder-structure) -- [Tools for writing Swagger](#tools-for-writing-swagger) -- [Tools for validating Swagger](#tools-for-validating-swagger) - -[Submitting a PR](#submitting-a-pr) - -[Review process](#review-process) -- [SLA](#sla) -- [Review Criteria](#review-criteria) - -## Before starting - -### Onboarding -Make sure that your Github account is part of the Azure organization. [Use this page](http://aka.ms/azuregithub) to link your account. - -Before cloning this repository, please make sure you have started in our [documentation repository adx-documentation-pr](https://github.com/Azure/adx-documentation-pr) (you will only have access to that page if you are part of the Azure organization). - -### Github basics - -#### GitHub workflow -If you don't have experience with Git and Github, some of the terminology and process can be confusing. [Here's a guide to understanding Github](https://guides.github.com/introduction/flow/). - -#### Forking the Azure/azure-rest-api-specs repository -Unless you are working with multiple contributors on the same file, we ask that you fork the repository and submit your Pull Request from there. [Here's a guide to forks in Github](https://guides.github.com/activities/forking/). - -### Code of Conduct -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. - -## Making changes -Swagger files are simply JSON files that follow the [OpenAPI Specification](http://swagger.io/specification/). This specification is extensible, and there are extensions that are used by AutoRest when your SDK is generated. Additionally, there are patterns and standards that are necessary for generating quality SDKs and CLIs. - -### Documentation -The [/documentation](../documentation/) folder contains many resources for writing Swagger files. - -The [Swagger Checklist](../documentation/swagger-checklist.md) page is intended as a guide for different scenarios. If you know the service behavior that you're trying to model (e.g. PUT/PATCH/GET responses and request schemas, or modeling long running operations), that document is structured to make it easy to find our recommendations. - -The [Reference Documentation](../documentation/creating-swagger.md) page contains lots of information about each part of a Swagger file and how to structure it correctly for code generation. If you're looking for an explanation on what a part of Swagger relates to your service or how it's used to generate code, that document is the right place to go. - -### Filenames and folder structure -- Swagger spec for every api-version should be in a separate folder named with the api-version. - - It is time consuming to review the file line by line for every api-version. When you are creating the swagger spec for the new api-version, please copy the swagger spec from the previous version in to the new api-versioned folder and commit it. After that overwrite it with the changes for the new api-version. This makes it easy for us to review the changes. - -### Tools for writing Swagger -As JSON files, specs can be modified in any text editor that you choose. We have some recommendations that can make editing these files easier. - -- _**Recommended**_ Visual Studio Code. -- Visual Studio Code can provide a nice experience for editing JSON, though it takes extra work to use the JSON schema that defines Swagger files. - -### Tools for validating Swagger -There are some tools that can help you make sure your spec conforms to guidelines. The more of these issues that are caught before the PR is sent, the quicker the turnaround to merging the PR will be. - -- _**Recommended**_ Please take a look at the [validation tools for swagger checklist](https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/swagger-checklist.md#validation-tools-for-swagger-checklist) section. -- The [OpenAPI Initiative Swagger editor](http://editor.swagger.io/#/) will help find basic issues in a Swagger file. However, we apply a higher bar than this validator - just because this site doesn't show errors doesn't mean the spec is ready to merge. -- Similarly, this online [schema validator](https://json-schema-validator.herokuapp.com/) can help find basic errors. Again, we apply a higher bar than this validator - just because this site doesn't show errors doesn't mean the spec is ready to merge. - * In the upper left box, paste the [swagger schema from here](https://github.com/swagger-api/swagger-spec/blob/master/schemas/v2.0/schema.json) - * In the lower left box, paste your swagger json - * Upon clicking the validate button, you should either see errors or success. - -## Submitting a PR - -Please send a [GitHub Pull Request to Azure REST API Specs](https://github.com/azure/azure-rest-api-specs/pull/new/master) with a clear list of what you've done (read more about [pull requests](http://help.github.com/pull-requests/)). When you send a pull request, we will love you forever if you include additions to the documentation for your given service. We can always use more documentation and beautiful markdown. Please follow make sure all of your commits are atomic (one feature per commit). - -Always write a clear log message for your commits. One-line messages are fine for small changes, but bigger changes should look like this: - - $ git commit -m "A brief summary of the commit - > - > A paragraph describing what changed and its impact." - -Please be kind with your pull requests and ensure you keeping them as focused and cohesive as possible. Keep your pull -request free of merge commits, code review fixes and anything that may take away from the essence of your contribution. -Use the git tools you have available to you, such as amend, rebase, etc. - - -## Review process -We review spec PRs to maintain a high bar of quality for all products that will be generated from these specs (including SDKs in all languages, CLIs and documentation). It's critical that spec files are both syntactically and semantically correct, as well as conform to common patterns that make it possible to generate SDKs and CLIs that are usable for customers. Since specs are the base input for all of these products, the review process starts with PRs to this repository. Please refer to [Swagger Review Process](https://github.com/Azure/adx-documentation-pr/wiki/Swagger-Review-Process) for more details. - -The expectation is that every spec in a PR will be correct JSON, syntactically correct, will semantically agree with the service it applies to, and will follow the recommended patterns. - -#### Basic JSON correctness -A spec file must be valid JSON, according to the [JSON specification](https://tools.ietf.org/html/rfc7159). It must also be a valid Swagger file, according to the [OpenAPI Specification](http://swagger.io/specification/). Finally, it must also conform to the [schema that AutoRest applies](https://raw.githubusercontent.com/Azure/autorest/master/schema/swagger-extensions.json). - -#### Semantic correctness -Your spec file must correctly represent your service. Even if a spec passes all of the rules listed above, it might not accurately describe the service that it is intended to describe. This could include -- Incorrect schemas for responses or requests (both missing and superfluous properties) -- Missing operations -- Missing parameters (especially required ones) -- etc (this list is not comprehensive) - -Making sure that the spec is correct from a semantic point of view requires domain knowledge and careful comparison of your spec file with your actual service. We will do our best to point out inconsistencies between spec and service if we can infer them, but you are responsible for making sure your spec and service agree. - -**Recommendation**: Check each operation, parameter, schema, property to make sure it accurately models the service API. Refer back to the [Reference documentation](../documentation/creating-swagger.md) for more details on every part of Swagger. +### *This is an outdated document. Please refer the new [wiki](https://github.com/Azure/adx-documentation-pr/wiki) for up to date details.* +([`Link your GitHub account`](https://repos.opensource.microsoft.com/) to the 'Azure' organization for access.) diff --git a/.markdownlint.json b/.markdownlint.json new file mode 100644 index 000000000000..f1fb7eb9fa4f --- /dev/null +++ b/.markdownlint.json @@ -0,0 +1,27 @@ +{ + "default": true, + "MD001": false, + "MD003": false, + "MD004": false, + "MD005": false, + "MD006": false, + "MD007": false, + "MD009": false, + "MD012": false, + "MD013": false, + "MD020": false, + "MD022": false, + "MD024": false, + "MD025": false, + "MD026": false, + "MD028": false, + "MD029": false, + "MD031": false, + "MD032": false, + "MD033": false, + "MD034": false, + "MD036": false, + "MD040": false, + "MD041": false, + "MD047": false +} diff --git a/CODEOWNERS b/CODEOWNERS index 33a119211adb..752f00fb91f6 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -56,7 +56,7 @@ /specification/recoveryservicessiterecovery/ @avneeshrai /specification/redis/ @siddharthchatrolams @timlovellsmith /specification/relay/ @sethmanheim @v-ajnava -/specification/resources/ @rajshah11 @stankovski @vivsriaus +/specification/resources/ @Tiano2017 @rajshah11 @vivsriaus /specification/scheduler/ @pinwang81 /specification/search/ @brjohnstmsft /specification/serialconsole/ @amitchat @craigw @asinn826 @@ -64,12 +64,12 @@ /specification/servicebus/ @sazeesha @v-ajnava /specification/servicefabric/ @juhacket @samedder /specification/sql/ @dnayantara @jaredmoo @nathannfan -/specification/storage/ @jasonyang-msft @stankovski +/specification/storage/ @jasonyang-msft @xiaonlimsft /specification/storageimportexport/ @leoz-ms /specification/storagesync/ @ankushbindlish2 /specification/storsimple8000series/ @manaas-microsoft /specification/streamanalytics/ @atpham256 -/specification/subscriptions/ @stankovski +/specification/subscriptions/ @navysingla /specification/timeseriesinsights/ @sandshadow /specification/trafficmanager/ @allencal @hrkulkarmsft /specification/web/ @lukaszstem @naveedaz @nking92 diff --git a/README.md b/README.md index 77431492859a..9095d0b4f4b2 100644 --- a/README.md +++ b/README.md @@ -4,17 +4,13 @@ This repository is the canonical source for REST API specifications for Microsoft Azure. -## Basics -If you're a spec author looking for information about all of the repositories and steps in the pipeline, go to the [adx-documentation-pr](https://github.com/Azure/adx-documentation-pr) repository. Make sure to [join the Github Azure organization](http://aka.ms/azuregithub) to get access to that repo. +## Getting started +If you're a spec author looking for information about all of the repositories and steps in the pipeline, go to our [documentation](https://github.com/Azure/adx-documentation-pr/wiki) repository. Make sure to [join the Github Azure organization](http://aka.ms/azuregithub) to get access to that repo. Latest improvement: Microsoft employees can try out our new experience at [OpenAPI Hub](https://aka.ms/openapihub) - online experience for using our validation tools and finding your workflow. Please check the [announcements page](https://github.com/Azure/azure-rest-api-specs/wiki/Announcements) for any new updates since your last visit. -## Getting started -- Our [Contribution guidelines](./.github/CONTRIBUTING.md) walks you through the process of contributing to this repository. -- The [/documentation](./documentation/) folder contains reference documentation for all aspects of Swagger and our recommended patterns. Start with the [Creating Swagger](./documentation/creating-swagger.md) page. - ## Directory Structure The structure of the directory should strictly follow these rules: diff --git a/arm-compute/quickstart-templates/aliases.json b/arm-compute/quickstart-templates/aliases.json index f5944d69cdbf..c3166eef59fc 100644 --- a/arm-compute/quickstart-templates/aliases.json +++ b/arm-compute/quickstart-templates/aliases.json @@ -1,90 +1,87 @@ { - "$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", - "contentVersion":"1.0.0.0", - "parameters":{}, - "variables":{}, - "resources":[], - - "outputs":{ - "aliases":{ - "type":"object", - "value":{ - - "Linux":{ - "CentOS":{ - "publisher":"OpenLogic", - "offer":"CentOS", - "sku":"7.5", - "version":"latest" + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", + "contentVersion": "1.0.0.0", + "parameters": {}, + "variables": {}, + "resources": [], + "outputs": { + "aliases": { + "type": "object", + "value": { + "Linux": { + "CentOS": { + "publisher": "OpenLogic", + "offer": "CentOS", + "sku": "7.5", + "version": "latest" }, - "CoreOS":{ - "publisher":"CoreOS", - "offer":"CoreOS", - "sku":"Stable", - "version":"latest" + "CoreOS": { + "publisher": "CoreOS", + "offer": "CoreOS", + "sku": "Stable", + "version": "latest" }, - "Debian":{ - "publisher":"credativ", - "offer":"Debian", - "sku":"9", - "version":"latest" + "Debian": { + "publisher": "Debian", + "offer": "debian-10", + "sku": "10", + "version": "latest" }, "openSUSE-Leap": { - "publisher":"SUSE", - "offer":"openSUSE-Leap", - "sku":"42.3", + "publisher": "SUSE", + "offer": "openSUSE-Leap", + "sku": "42.3", "version": "latest" }, - "RHEL":{ - "publisher":"RedHat", - "offer":"RHEL", - "sku":"7-RAW", - "version":"latest" + "RHEL": { + "publisher": "RedHat", + "offer": "RHEL", + "sku": "7-RAW", + "version": "latest" }, - "SLES":{ - "publisher":"SUSE", - "offer":"SLES", - "sku":"15", - "version":"latest" + "SLES": { + "publisher": "SUSE", + "offer": "SLES", + "sku": "15", + "version": "latest" }, - "UbuntuLTS":{ - "publisher":"Canonical", - "offer":"UbuntuServer", - "sku":"18.04-LTS", - "version":"latest" + "UbuntuLTS": { + "publisher": "Canonical", + "offer": "UbuntuServer", + "sku": "18.04-LTS", + "version": "latest" } }, - - "Windows":{ - "Win2019Datacenter":{ - "publisher":"MicrosoftWindowsServer", - "offer":"WindowsServer", - "sku":"2019-Datacenter", - "version":"latest" + "Windows": { + "Win2019Datacenter": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2019-Datacenter", + "version": "latest" }, - "Win2016Datacenter":{ - "publisher":"MicrosoftWindowsServer", - "offer":"WindowsServer", - "sku":"2016-Datacenter", - "version":"latest" + "Win2016Datacenter": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2016-Datacenter", + "version": "latest" }, - "Win2012R2Datacenter":{ - "publisher":"MicrosoftWindowsServer", - "offer":"WindowsServer", - "sku":"2012-R2-Datacenter", - "version":"latest" + "Win2012R2Datacenter": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2012-R2-Datacenter", + "version": "latest" }, - "Win2012Datacenter":{ - "publisher":"MicrosoftWindowsServer", - "offer":"WindowsServer", - "sku":"2012-Datacenter", - "version":"latest" + "Win2012Datacenter": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2012-Datacenter", + "version": "latest" }, - "Win2008R2SP1":{ - "publisher":"MicrosoftWindowsServer", - "offer":"WindowsServer", - "sku":"2008-R2-SP1", - "version":"latest" + "Win2008R2SP1": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2008-R2-SP1", + "version": "latest" } } } diff --git a/arm-compute/quickstart-templates/swagger.json b/arm-compute/quickstart-templates/swagger.json index a44fcedcd9f7..f8641cf2f90c 100644 --- a/arm-compute/quickstart-templates/swagger.json +++ b/arm-compute/quickstart-templates/swagger.json @@ -417,4 +417,4 @@ "description": "Client Api Version." } } -} \ No newline at end of file +} diff --git a/arm-compute/quickstart-templates/vm-simple-linux.json b/arm-compute/quickstart-templates/vm-simple-linux.json index c318700e35b2..0d1cd7bea59a 100644 --- a/arm-compute/quickstart-templates/vm-simple-linux.json +++ b/arm-compute/quickstart-templates/vm-simple-linux.json @@ -185,4 +185,4 @@ } } ] -} \ No newline at end of file +} diff --git a/arm-compute/quickstart-templates/vm-simple-windows.json b/arm-compute/quickstart-templates/vm-simple-windows.json index d5917d24792a..416305f78b95 100644 --- a/arm-compute/quickstart-templates/vm-simple-windows.json +++ b/arm-compute/quickstart-templates/vm-simple-windows.json @@ -186,4 +186,4 @@ } } ] -} \ No newline at end of file +} diff --git a/arm-compute/quickstart-templates/vm-simple.json b/arm-compute/quickstart-templates/vm-simple.json index 09740bc83f0e..d2f4bec8f5dc 100644 --- a/arm-compute/quickstart-templates/vm-simple.json +++ b/arm-compute/quickstart-templates/vm-simple.json @@ -41,4 +41,4 @@ "type": "object" } } -} \ No newline at end of file +} diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c751cfedb794..f5961d90a5b8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -106,12 +106,15 @@ jobs: timeoutInMinutes: 120 strategy: matrix: - ruby: - AZURE_SDK_REPO: azure-sdk-for-ruby - AZURE_SDK_PARAMS: '' java: AZURE_SDK_REPO: azure-sdk-for-java AZURE_SDK_PARAMS: '' + javascript: + AZURE_SDK_REPO: azure-sdk-for-js + AZURE_SDK_PARAMS: '' + node: + AZURE_SDK_REPO: azure-sdk-for-node + AZURE_SDK_PARAMS: '' python: AZURE_SDK_REPO: azure-sdk-for-python AZURE_SDK_PARAMS: '' diff --git a/cSpell.json b/cSpell.json index 0449342c92e0..ca3148fdadb4 100644 --- a/cSpell.json +++ b/cSpell.json @@ -402,12 +402,6 @@ "Availabilily" ] }, - { - "filename": "**/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2015-08-01/EventHub.json", - "words": [ - "Postt" - ] - }, { "filename": "**/specification/web/resource-manager/Microsoft.Web/stable/2018-02-01/AppServicePlans.json", "words": [ @@ -591,7 +585,7 @@ ] }, { - "filename": "**/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/webapplicationfirewall.json", + "filename": "**/specification/network/resource-manager/Microsoft.Network/stable/**/webapplicationfirewall.json", "words": [ "Conditon" ] @@ -629,18 +623,6 @@ "networkrulesets", "Setget" ] - }, - { - "filename": "**/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/webapplicationfirewall.json", - "words": [ - "Conditon" - ] - }, - { - "filename": "**/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/webapplicationfirewall.json", - "words": [ - "Conditon" - ] } ] } diff --git a/custom-words.txt b/custom-words.txt index 50d86bbebe3e..46592c167985 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -1,8 +1,10 @@ AADDS aadiam +AATP abcxyz ABFS Accel +ACCELCONTAINER acceptors accesspoint accountid @@ -32,6 +34,7 @@ aggregatedcost AHUB AIAPI Akamai +AKSENDPOINT alertfeedback alertrule alertrules @@ -44,6 +47,7 @@ amlcompute amortizedcost analysisservices AND'ed +Annotatable anomalydetector anomalyfinder APAC @@ -94,6 +98,7 @@ artifactroot artifactsource artifactsources artifacttypes +artifacturi asciifolding Asns aspnet @@ -102,6 +107,7 @@ asyncoperation australiaeast australiasoutheast authenticatable +Authenticode authorizationrules authsettings authsid @@ -138,6 +144,7 @@ azuredeploy azureedge azurefiles azuremigrate +azureml azuresql azurestack azurestorageaccounts @@ -157,7 +164,9 @@ Baidu bangla baremetal BATCHAI +BAYESIANOPTIMIZATION BCDR +BCWG beider Bfor bigint @@ -208,6 +217,7 @@ canadaeast canceldelete cancelpipelinerun canonicalized +Carbonite catenate catenated caverphone @@ -243,6 +253,7 @@ Cloneability Cloneable closedlist closedlists +Cloudamize cloudapp cloudsimple clustermonitoring @@ -269,8 +280,10 @@ containerinstance containerlogs containername containerregistry +containersas containerservice contentmoderator +continuationtoken continuouswebjobs contoso contosodataset @@ -278,6 +291,7 @@ contosomedia cooldown Corda coreml +Corent Cortana cosmosdb costcenter @@ -388,6 +402,7 @@ DIMM disableautoscale disablescheduling disambiguated +Disambiguations discoverbackup diskmigrationjobs diskoperations @@ -431,6 +446,7 @@ endtime Enein engagementfabric enquoted +entitydocument entitysearch entrypoint environmentsettings @@ -447,14 +463,18 @@ eventhubconnections eventhubs eventtime eventtypes +EWDG exceptiontype +exfiltrate Exfiltration +experimentids explicitlist exportconfiguration exportdevices exporterrors exportstatus externaldatasources +EYWQ faceapi facelists facetable @@ -481,6 +501,7 @@ Filestream filesystems fileurl findsimilars +findsquare fluentd forestsummary formrecognizer @@ -528,6 +549,7 @@ githubusercontent gitrepo globalconfiguration Gloo +gluster glusterfs GPUs Grammarly @@ -537,6 +559,7 @@ graphrbac Greenplum Groupby groupedby +GRPC GSMT guestconfiguration GUID @@ -563,6 +586,7 @@ HHMMSS hierarchicalentities hierarchyid hivevar +HKEY homepagetest Horovod hostnames @@ -573,6 +597,8 @@ Hubspot hybridconnection hybriddata hybriddatamanager +hyperdrive +Hyperdrive Hyperscale hyperv Iaas @@ -595,12 +621,17 @@ IMDS importdevices Inbuild indic +inferencing +Informations +Informix Ingestor ingressed inkrecognizer inlinecount +inlines innererror Inprogress +integrationaccount Intelli intervaled intset @@ -632,11 +663,13 @@ isordered issqlcompression istransitioning isusernameavailable +ISVs items ITSM janedoe japaneast japanwest +Jedobot Jira jobcompletion jobid @@ -689,6 +722,8 @@ LDAP ldaps ldom leavingpool +LEDs +Lfot libtrust lifecycle lifetimejobstats @@ -717,17 +752,21 @@ localcircularview Localizable localmachine localmapview +localrun localsearch Lockdown loganalytics loggerid logio +lognormal logprofiles +loguniform longrunning lookback lovins lowpriority lpar +LQUP LRO's Lucene Lumia @@ -762,6 +801,7 @@ maxresults mbaldwin Mbps MCAS +MDATP mediaservices Mesos messagingplan @@ -785,7 +825,10 @@ ministamps mixedreality Mkdirs mktorest +ML's mlapi +mnist +modelmanagement MODIFYACLENTRIES monitoringconfiguration monitoringconfigurations @@ -802,6 +845,7 @@ Multiclass MULTIJSON Multilabel multipart +Multiset multistep multivalued muxed @@ -810,6 +854,9 @@ muxing mware myanalytics myapp +myblobstore +mydevenvironment +myexperiment myimage mylocation mylog @@ -828,6 +875,7 @@ n'recognition nagios namespace's nanoserver +Nccl nchar ndjson netapp @@ -844,6 +892,7 @@ Ngfw NICs nillable nist +NLSTEXT noaccess noaction noartifactsource @@ -900,6 +949,9 @@ operationsmanagement operationstatuses opid oplog +Optimised +Optimiser +Optimisers originpath osdisk osdiskforlinuxsimple @@ -913,6 +965,8 @@ overridable OWASP oxxm pageable +Parallelise +paramref PARAVIRTUAL Passthrough patternanyentities @@ -921,6 +975,7 @@ patternrules PAYG Paypal PBIE +PCIE PCNET peerings Pendingissuance @@ -966,6 +1021,7 @@ poweroff prebackup prebackupvalidation prebuilts +precache preconfigured preflight preload @@ -983,6 +1039,7 @@ pricings primarybytes privatedns privatepreview +projectable Protectable provisioner provisioningservices @@ -998,19 +1055,25 @@ pullrequest Purgeable pushdown pushsettings +Pyspark pytorch QFEs +qlognormal +qloguniform qnamaker qnas +qnormal querylogs querypool querystring queueservices quickbooks quicktest +quniform quotametrics quotastatus racyscore +randint RAGRS RAGZRS Rankable @@ -1110,6 +1173,8 @@ rhel Rolledback rollouts rolloverdetails +rootfs +rosettanetprocessconfigurations rotatediskencryptionkey routable routingendpointhealth @@ -1126,6 +1191,9 @@ RSNULL RTMP runbook Runbooks +runcounts +runid +runsource runtimes rwxrw Saas @@ -1199,9 +1267,11 @@ siterecovery skillset skillsets skiptoken +sklearn SKU's skus SLES +Sllb slotsdiffs slotsswap slowlog @@ -1210,17 +1280,22 @@ smallint smallmoney SMBIOS snapshotsdr +snapshotrun SNAT +softwareplan SOHSV solaris solr someuser sorani +sortorder soundex sourcecontrols southcentralus southeastasia southindia +sparkconf +sparql SQLAG SQLDB SQLMI @@ -1232,6 +1307,8 @@ SSISDB SSTP ssword standardasciifolding +startlocalrun +startrun startswith starttask starttaskfailed @@ -1248,6 +1325,7 @@ storageaccounts storagedatalake storageimportexport storagesync +storageuri storsimple streamanalytics streamingendpoint @@ -1278,6 +1356,8 @@ substatuses substringof subtasksinfo subteam +subtree +subtrees subword subwords sudoer @@ -1346,6 +1426,7 @@ translatortext trendingtopics triggeredwebjobs triggerruns +Turbonomic Txns Typeless UEBA @@ -1365,6 +1446,7 @@ Unigrams uniqueidentifier uniquestring unixtime +UNKNOWON unlocalized unmanaged unmonitored @@ -1384,6 +1466,9 @@ UNOY unpairing Unparked unparsed +unprepare +unprepares +unpreparing Unprovision unprovisioned Unprovisioning @@ -1425,6 +1510,7 @@ vcenter Vcore Vcores Vertica +Vfyc vhds videosearch virtualclusters @@ -1445,6 +1531,7 @@ vmextension VMILR vmimage vmname +VMQS vmsizes VMSS VMSSVM @@ -1470,6 +1557,7 @@ WANAs WANs WASB WDATP +WEBAPICONTAINER webapplicationfirewall webapps Webchat @@ -1490,8 +1578,10 @@ westeurope westindia Westlake westus +WGXM whitelisted Whitelisting +Whitelistings Whois Widevine windowsazuremediaservices @@ -1503,13 +1593,16 @@ workspaces wrapkey WSFC WTGCTBG +WWKZ XBing Xeon Xero XSMB +Ywhk YYMMDD Zabbix +Zerto Zilla ziplist Zoho -zset \ No newline at end of file +zset diff --git a/documentation/ContributingGuidelines.md b/documentation/ContributingGuidelines.md new file mode 100644 index 000000000000..5c23dbd5ac32 --- /dev/null +++ b/documentation/ContributingGuidelines.md @@ -0,0 +1,2 @@ +### Please refer to the [`wiki`](https://github.com/Azure/adx-documentation-pr/wiki) for internal contribution guidelines. +[`Link your GitHub account`](https://repos.opensource.microsoft.com/) to the 'Azure' organization for access. diff --git a/documentation/creating-swagger.md b/documentation/creating-swagger.md index e2bfa9687afa..cb0c6dd7fb5f 100644 --- a/documentation/creating-swagger.md +++ b/documentation/creating-swagger.md @@ -342,7 +342,7 @@ You can describe all the [possible HTTP Response status codes](http://www.w3.org - If **a schema is provided** for the negative response codes then this will have an impact on the return type of the generated method. - For example: if a schema was provided for 200, and 400 was also described with a schema then, - the **return type** would be the Common Ancestor of both the schemas. In most cases there is nothing common between a positive and a negative response code. Hence the return type will be an `Object`. Note:This may not be very helpful to the customer - - an exception ** will NOT be thrown for 400** and the generated method will deserialize the response body as per the schema of "400". + - an exception **will NOT be thrown for 400** and the generated method will deserialize the response body as per the schema of "400". - any other negative response code will be treated as per the "default" response status code defined in the swagger for that operation. - If **a schema is NOT provided** for the negative response codes then this will **NOT** have an impact on the return type of the generated method. - For example: if a schema was provided for 200 and 404 was described as one of the responses. However, 404 does not have a schema. In this scenario, diff --git a/documentation/openapi-authoring-automated-guidelines.md b/documentation/openapi-authoring-automated-guidelines.md index 88ef6569942f..9ea784b53e94 100644 --- a/documentation/openapi-authoring-automated-guidelines.md +++ b/documentation/openapi-authoring-automated-guidelines.md @@ -32,34 +32,34 @@ We request OpenAPI(Swagger) spec authoring be assigned to engineers who have an | Id | Rule Name | Applies to | | --- | --- | --- | -| [R3012](#r3012) | [APIVersionPattern](#r3012) | ARM OpenAPI(swagger) specs | -| [R3019](#r3019) | [ARMResourcePropertiesBag](#r3019) | ARM and Data plane OpenAPI(swagger) specs | -| [R3014](#r3014) | [BodyPropertiesNamesCamelCase](#r3014) | ARM and Data plane OpenAPI(swagger) specs | -| [R3016](#r3016) | [DefinitionsPropertiesNamesCamelCase](#r3016) | ARM and Data plane OpenAPI(swagger) specs | -| [R3006](#r3006) | [BodyTopLevelProperties](#r3006) | ARM OpenAPI(swagger) specs | -| [R3008](#r3008) | [CollectionObjectPropertiesNaming](#r3008) | ARM and Data plane OpenAPI(swagger) specs | -| [R2044](#r2044) | [InvalidVerbUsed](#r2044) | ARM and Data plane OpenAPI(swagger) specs | -| [R3023](#r3023) | [OperationsAPIImplementation](#r3023) | ARM OpenAPI(swagger) specs | -| [R3007](#r3007) | [PutGetPatchResponseSchema](#r3007) | ARM and Data plane OpenAPI(swagger) specs | -| [R3025](#r3025) | [TrackedResourceGetOperation](#r3025) | ARM OpenAPI(swagger) specs | -| [R3026](#r3026) | [TrackedResourcePatchOperation](#r3026) | ARM OpenAPI(swagger) specs | -| [R2059](#r2059) | [UniqueResourcePaths](#r2059) | ARM OpenAPI(swagger) specs | -| [R2016](#r2016) | [PatchBodyParametersSchema](#r2016) | ARM and Data plane OpenAPI(swagger) specs | -| [R2062](#r2062) | [XmsResourceInPutResponse](#r2062) | ARM OpenAPI(swagger) specs | -| [R3027](#r3027) | [TrackedResourceListByResourceGroup](#r3027) | ARM OpenAPI(swagger) specs | -| [R3028](#r3028) | [TrackedResourceListBySubscription](#r3028) | ARM OpenAPI(swagger) specs | -| [R3011](#r3011) | [DescriptionMustNotBeNodeName](#r3011) | ARM and Data plane OpenAPI(swagger) specs | +| [R3012](#r3012) | [APIVersionPattern](#r3012) | ARM OpenAPI(swagger) specs | +| [R3019](#r3019) | [ARMResourcePropertiesBag](#r3019) | ARM and Data plane OpenAPI(swagger) specs | +| [R3014](#r3014) | [BodyPropertiesNamesCamelCase](#r3014) | ARM and Data plane OpenAPI(swagger) specs | +| [R3016](#r3016) | [DefinitionsPropertiesNamesCamelCase](#r3016) | ARM and Data plane OpenAPI(swagger) specs | +| [R3006](#r3006) | [BodyTopLevelProperties](#r3006) | ARM OpenAPI(swagger) specs | +| [R3008](#r3008) | [CollectionObjectPropertiesNaming](#r3008) | ARM and Data plane OpenAPI(swagger) specs | +| [R2044](#r2044) | [InvalidVerbUsed](#r2044) | ARM and Data plane OpenAPI(swagger) specs | +| [R3023](#r3023) | [OperationsAPIImplementation](#r3023) | ARM OpenAPI(swagger) specs | +| [R3007](#r3007) | [PutGetPatchResponseSchema](#r3007) | ARM and Data plane OpenAPI(swagger) specs | +| [R3025](#r3025) | [TrackedResourceGetOperation](#r3025) | ARM OpenAPI(swagger) specs | +| [R3026](#r3026) | [TrackedResourcePatchOperation](#r3026) | ARM OpenAPI(swagger) specs | +| [R2059](#r2059) | [UniqueResourcePaths](#r2059) | ARM OpenAPI(swagger) specs | +| [R2016](#r2016) | [PatchBodyParametersSchema](#r2016) | ARM and Data plane OpenAPI(swagger) specs | +| [R2062](#r2062) | [XmsResourceInPutResponse](#r2062) | ARM OpenAPI(swagger) specs | +| [R3027](#r3027) | [TrackedResourceListByResourceGroup](#r3027) | ARM OpenAPI(swagger) specs | +| [R3028](#r3028) | [TrackedResourceListBySubscription](#r3028) | ARM OpenAPI(swagger) specs | +| [R3011](#r3011) | [DescriptionMustNotBeNodeName](#r3011) | ARM and Data plane OpenAPI(swagger) specs | | [R2020](#r2020) | [RequiredPropertiesMissingInResourceModel](#r2020) | ARM OpenAPI(swagger) specs | #### ARM Warnings | Id | Rule Name | Applies to | | --- | --- | --- | -| [R3018](#r3018) | [EnumInsteadOfBoolean](#r3018) | ARM and Data plane OpenAPI(swagger) specs | -| [R3017](#r3017) | [GuidUsage](#r3017) | ARM and Data plane OpenAPI(swagger) specs | -| [R2057](#r2057) | [InvalidSkuModel](#r2057) | ARM OpenAPI(swagger) specs | -| [R3010](#r3010) | [TrackedResourceListByImmediateParent](#r3010) | ARM OpenAPI(swagger) specs | -| [R2004](#r2004) | [NonApplicationJsonType](#r2004) | ARM OpenAPI(swagger) specs | +| [R3018](#r3018) | [EnumInsteadOfBoolean](#r3018) | ARM and Data plane OpenAPI(swagger) specs | +| [R3017](#r3017) | [GuidUsage](#r3017) | ARM and Data plane OpenAPI(swagger) specs | +| [R2057](#r2057) | [InvalidSkuModel](#r2057) | ARM OpenAPI(swagger) specs | +| [R3010](#r3010) | [TrackedResourceListByImmediateParent](#r3010) | ARM OpenAPI(swagger) specs | +| [R2004](#r2004) | [NonApplicationJsonType](#r2004) | ARM OpenAPI(swagger) specs | ### SDK Violations @@ -69,26 +69,26 @@ We request OpenAPI(Swagger) spec authoring be assigned to engineers who have an | --- | --- | --- | | [R2024](#r2024) | [AnonymousBodyParameter](#r2024) | ARM and Data plane OpenAPI(swagger) specs | | [R2026](#r2026) | [AvoidAnonymousTypes](#r2026) | ARM and Data plane OpenAPI(swagger) specs | -| [R2014](#r2014) | [SubscriptionIdParameterInOperations](#r2014) | ARM and Data plane OpenAPI(swagger) specs | -| [R2027](#r2027) | [DefaultMustBeInEnum](#r2027) | ARM and Data plane OpenAPI(swagger) specs | -| [R1001](#r1001) | [OperationIdNounInVerb](#r1001) | ARM and Data plane OpenAPI(swagger) specs | -| [R2055](#r2055) | [OneUnderscoreInOperationId](#r2055) | ARM and Data plane OpenAPI(swagger) specs | -| [R2003](#r2003) | [ValidFormats](#r2003) | ARM and Data plane OpenAPI(swagger) specs | -| [R2005](#r2005) | [LongRunningResponseStatusCode](#r2005) | ARM and Data plane OpenAPI(swagger) specs | -| [R2008](#r2008) | [MutabilityWithReadOnlyRule](#r2008) | ARM and Data plane OpenAPI(swagger) specs | -| [R2025](#r2025) | [NextLinkPropertyMustExist](#r2025) | ARM and Data plane OpenAPI(swagger) specs | +| [R2014](#r2014) | [SubscriptionIdParameterInOperations](#r2014) | ARM and Data plane OpenAPI(swagger) specs | +| [R2027](#r2027) | [DefaultMustBeInEnum](#r2027) | ARM and Data plane OpenAPI(swagger) specs | +| [R1001](#r1001) | [OperationIdNounInVerb](#r1001) | ARM and Data plane OpenAPI(swagger) specs | +| [R2055](#r2055) | [OneUnderscoreInOperationId](#r2055) | ARM and Data plane OpenAPI(swagger) specs | +| [R2003](#r2003) | [ValidFormats](#r2003) | ARM and Data plane OpenAPI(swagger) specs | +| [R2005](#r2005) | [LongRunningResponseStatusCode](#r2005) | ARM and Data plane OpenAPI(swagger) specs | +| [R2008](#r2008) | [MutabilityWithReadOnlyRule](#r2008) | ARM and Data plane OpenAPI(swagger) specs | +| [R2025](#r2025) | [NextLinkPropertyMustExist](#r2025) | ARM and Data plane OpenAPI(swagger) specs | | [R2028](#r2028) | [NonEmptyClientName](#r2028) | ARM and Data plane OpenAPI(swagger) specs | | [R2060](#r2060) | [PageableRequires200Response](#r2060) | ARM and Data plane OpenAPI(swagger) specs | -| [R2019](#r2019) | [ResourceHasXMsResourceEnabled](#r2019) | ARM OpenAPI(swagger) specs | +| [R2019](#r2019) | [ResourceHasXMsResourceEnabled](#r2019) | ARM OpenAPI(swagger) specs | | [R2058](#r2058) | [XmsPathsMustOverloadPaths](#r2058) | ARM and Data plane OpenAPI(swagger) specs | -| [R2012](#r2012) | [XmsClientNameParameter](#r2012) | ARM and Data plane OpenAPI(swagger) specs | -| [R2013](#r2013) | [XmsClientNameProperty](#r2013) | ARM and Data plane OpenAPI(swagger) specs | -| [R2047](#r2047) | [NamePropertyDefinitionInParameter](#r2047) | ARM and Data plane OpenAPI(swagger) specs | -| [R2056](#r2056) | [RequiredReadOnlyProperties](#r2056) | ARM and Data plane OpenAPI(swagger) specs | -| [R2054](#r2054) | [SecurityDefinitionsStructure](#r2054) | ARM OpenAPI(swagger) specs | -| [R2006](#r2006) | [ControlCharactersNotAllowed](#r2006) | ARM and Data plane OpenAPI(swagger) specs | -| [R2009](#r2009) | [ArraySchemaMustHaveItems](#r2009) | ARM and Data plane OpenAPI(swagger) specs | -| [R3013](#r3013) | [DeleteMustNotHaveRequestBody](#r3013) | ARM and Data plane OpenAPI(swagger) specs | +| [R2012](#r2012) | [XmsClientNameParameter](#r2012) | ARM and Data plane OpenAPI(swagger) specs | +| [R2013](#r2013) | [XmsClientNameProperty](#r2013) | ARM and Data plane OpenAPI(swagger) specs | +| [R2047](#r2047) | [NamePropertyDefinitionInParameter](#r2047) | ARM and Data plane OpenAPI(swagger) specs | +| [R2056](#r2056) | [RequiredReadOnlyProperties](#r2056) | ARM and Data plane OpenAPI(swagger) specs | +| [R2054](#r2054) | [SecurityDefinitionsStructure](#r2054) | ARM OpenAPI(swagger) specs | +| [R2006](#r2006) | [ControlCharactersNotAllowed](#r2006) | ARM and Data plane OpenAPI(swagger) specs | +| [R2009](#r2009) | [ArraySchemaMustHaveItems](#r2009) | ARM and Data plane OpenAPI(swagger) specs | +| [R3013](#r3013) | [DeleteMustNotHaveRequestBody](#r3013) | ARM and Data plane OpenAPI(swagger) specs | | [R4001](#r4001) | [XmsParameterLocation](#r4001) | ARM and Data plan OpenAPI(swagger) specs | #### SDK Warnings @@ -99,16 +99,16 @@ We request OpenAPI(Swagger) spec authoring be assigned to engineers who have an | [R4000](#r4000-3) | [DescriptiveDescriptionRequired](#r4000-3) | ARM and Data plane OpenAPI(swagger) specs | | [R4000](#r4000-4) | [DescriptionAndTitleMissing](#r4000-4) | ARM and Data plane OpenAPI(swagger) specs | | [R4000](#r4000-5) | [OperationDescriptionOrSummaryRequired](#r4000-5) | ARM and Data plane OpenAPI(swagger) specs | -| [R2001](#r2001) | [AvoidNestedProperties](#r2001) | ARM and Data plane OpenAPI(swagger) specs | -| [R4002](#r4002) | [LocationMustHaveXmsMutability](#r4002) | ARM OpenAPI(swagger) specs | -| [R2066](#r2066) | [PostOperationIdContainsUrlVerb](#r2066) | ARM and Data plane OpenAPI(swagger) specs | +| [R2001](#r2001) | [AvoidNestedProperties](#r2001) | ARM and Data plane OpenAPI(swagger) specs | +| [R4002](#r4002) | [LocationMustHaveXmsMutability](#r4002) | ARM OpenAPI(swagger) specs | +| [R2066](#r2066) | [PostOperationIdContainsUrlVerb](#r2066) | ARM and Data plane OpenAPI(swagger) specs | | [R2015](#r2015) | [ParameterNotDefinedInGlobalParameters](#r2015) | ARM and Data plane OpenAPI(swagger) specs | | [R1010](#r1010) | [AvoidMSDNReferences](#r1010) | ARM and Data plane OpenAPI(swagger) specs | -| [R2017](#r2017) | [PutRequestResponseScheme](#r2017) | ARM and Data plane OpenAPI(swagger) specs | +| [R2017](#r2017) | [PutRequestResponseScheme](#r2017) | ARM and Data plane OpenAPI(swagger) specs | | [R1009](#r1009) | [DeleteInOperationName](#r1009) | ARM and Data plane OpenAPI(swagger) specs | | [R1005](#r1005) | [GetInOperationName](#r1005) | ARM and Data plane OpenAPI(swagger) specs | | [R1003](#r1003) | [ListInOperationName](#r1003) | ARM and Data plane OpenAPI(swagger) specs | -| [R1006](#r1006) | [PutInOperationName](#r1006) | ARM and Data plane OpenAPI(swagger) specs | +| [R1006](#r1006) | [PutInOperationName](#r1006) | ARM and Data plane OpenAPI(swagger) specs | | [R1007](#r1007) | [PatchInOperationName](#r1007) | ARM and Data plane OpenAPI(swagger) specs | | [R1011](#r1011) | [HttpsSupportedScheme](#r1011) | ARM OpenAPI(swagger) specs | | [R2065](#r2065) | [LicenseHeaderMustNotBeSpecified](#r2065) | ARM and Data plane OpenAPI(swagger) specs | @@ -331,7 +331,7 @@ Links: [Index](#index) | [Error vs. Warning](#error-vs-warning) | [Automated Rul 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) -### R4002 LocationMustHaveXmsMutability +### R4002 LocationMustHaveXmsMutability **Category** : SDK Warning **Applies to** : ARM OpenAPI(swagger) specs @@ -378,7 +378,7 @@ Links: [Index](#index) | [Error vs. Warning](#error-vs-warning) | [Automated Rul 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) -### R2066 PostOperationIdContainsUrlVerb +### R2066 PostOperationIdContainsUrlVerb **Category** : SDK Warning **Applies to** : ARM and Data plane OpenAPI(swagger) specs diff --git a/documentation/openapi-authoring-manual-guidelines.md b/documentation/openapi-authoring-manual-guidelines.md index 6b20e2237bfd..f88a627ebc31 100644 --- a/documentation/openapi-authoring-manual-guidelines.md +++ b/documentation/openapi-authoring-manual-guidelines.md @@ -25,9 +25,9 @@ We request OpenAPI(Swagger) spec authoring be assigned to engineers who have an | Required parameters MUST be accurately labeled as "required": true in OpenAPI(Swagger) spec | Error | | ARM and Data plane OpenAPI(Swagger) specs | | Read only parameters of the model properties MUST be labeled as "readOnly": true in OpenAPI(Swagger) spec | Error | | ARM and Data plane OpenAPI(Swagger) specs | | Required parameters MUST be accurately labeled as "required": true in OpenAPI(Swagger) spec | Error | | ARM and Data plane OpenAPI(Swagger) specs | -| Required properties of a model definition MUST be accurately labeled as "required": [ "propertyName1" ] in OpenAPI(Swagger) spec | Error | | ARM and Data plane OpenAPI(Swagger) specs | +| Required properties of a model definition MUST be accurately labeled as "required": [ "propertyName1" ] in OpenAPI(Swagger) spec | Error | | ARM and Data plane OpenAPI(Swagger) specs | | An OpenAPI(Swagger) spec MUST NOT define operations or properties or parameters for functionalities that are not currently supported by the service in the given api-version. The primary goal of the spec is that it MUST correctly and completely represent the underlying REST API. For example, NetworkInterface.ipConfigurations is described as a collection. However, it does not support adding more than one IP configuration | Error | | ARM and Data plane OpenAPI(Swagger) specs | -| A collection model in OpenAPI(Swagger) spec MUST support adding more than one element to the collection | Error | | ARM and Data plane OpenAPI(Swagger) specs | +| A collection model in OpenAPI(Swagger) spec MUST support adding more than one element to the collection | Error | | ARM and Data plane OpenAPI(Swagger) specs | | Operations that are exposed through private previews MUST NOT be described in the public GitHub repository. They MUST be described in the private GitHub repository instead | Error | | ARM and Data plane OpenAPI(Swagger) specs | | Parameters that are common to most of the operations (example: resourceGroupName) SHOULD be defined in the global parameters section and they MUST have the extension "x-ms-parameter-location": "method" applied on them. This will make sure that they do not end up being properties on the generated client | Error | SDK Violation | ARM and Data plane OpenAPI(Swagger) specs | | Each operation described in a OpenAPI(Swagger) specification MUST be tested prior to opening a pull request against the preview/master branch of the Azure REST API Specs GitHub repo | Error | | ARM and Data plane OpenAPI(Swagger) specs | diff --git a/documentation/swagger-checklist.md b/documentation/swagger-checklist.md index 93e841d54183..ad8ad747f097 100644 --- a/documentation/swagger-checklist.md +++ b/documentation/swagger-checklist.md @@ -12,10 +12,10 @@ This checklist is a current snapshot of requirements for developing Swagger spec Today, there are tools available for validating a sizable portion of this checklist. Please install these tools on your development machine and use them to validate your Swaggers as you build them. -- [AutoRest OpenAPI Validator](https://github.com/Azure/autorest/blob/master/docs/user/command-line-interface.md#validation) – The OpenAPI validator (activated with `--azure-validator`) statically analyzes a Swagger for errors and violations of requirements outlined in the automated rules checklist. The validator should be run when Swaggers are created or updated. It will be continuously updated to validate newer requirements. +- [AutoRest OpenAPI Validator](https://github.com/Azure/autorest/blob/master/docs/user/command-line-interface.md#validation) – The OpenAPI validator (activated with `--azure-validator`) statically analyzes a Swagger for errors and violations of requirements outlined in the automated rules checklist. The validator should be run when Swaggers are created or updated. It will be continuously updated to validate newer requirements. **NOTE**: This checkmark ( :white_check_mark: ) indicates that rule is covered by AutoRest validation tool. -- [Swagger Model Validator](https://github.com/Azure/openapi-validation-tools) - Model Validator validates models defined for body parameters and responses, and matches them against the expected input and output of an operation. To make this real, test examples are required to be specified in a Swagger for every operation defined in a Swagger. Test examples are integrated into a Swagger using the ["x-ms-examples"](https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/x-ms-examples.md) extension, which will be used to test against the defined models. Sample test examples for this extension can be found in the [Redis Cache Swagger](https://github.com/Azure/azure-rest-api-specs/blob/master/arm-redis/2016-04-01/swagger/redis.json ). +- [Swagger Model Validator](https://github.com/Azure/openapi-validation-tools) - Model Validator validates models defined for body parameters and responses, and matches them against the expected input and output of an operation. To make this real, test examples are required to be specified in a Swagger for every operation defined in a Swagger. Test examples are integrated into a Swagger using the ["x-ms-examples"](https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/x-ms-examples.md) extension, which will be used to test against the defined models. Sample test examples for this extension can be found in the [Redis Cache Swagger](https://github.com/Azure/azure-rest-api-specs/blob/master/arm-redis/2016-04-01/swagger/redis.json ). The Azure Developer Experience team will continue to deliver rich tools to validate this checklist. diff --git a/package.json b/package.json index fe51deb863d1..068193360e3f 100644 --- a/package.json +++ b/package.json @@ -10,31 +10,20 @@ "description": "Tests for Azure REST API Specifications", "license": "MIT", "devDependencies": { - "@azure/avocado": "^0.4.1", - "@azure/oad": "^0.6.3", - "@azure/rest-api-specs-scripts": "^0.3.9", - "@microsoft.azure/async-io": "^2.0.21", - "@microsoft.azure/literate": "^1.0.25", - "@microsoft.azure/polyfill": "^1.0.19", - "@octokit/rest": "^16.25.0", + "@azure/avocado": "^0.5.1", + "@azure/rest-api-specs-scripts": "^0.4.0", "@ts-common/commonmark-to-markdown": "^1.2.0", "@ts-common/fs": "0.2.0", - "@types/fs-extra": "^5.0.5", + "@ts-common/iterator": "^0.3.6", "@types/js-yaml": "^3.12.1", "@types/mocha": "^5.2.6", - "@types/request": "^2.48.1", "cspell": "^4.0.12", - "fs-extra": "^7.0.1", - "glob": "^7.1.3", "js-yaml": "^3.13.1", "json-schema-ref-parser": "^6.1.0", "mocha": "*", - "oav": "^0.18.1", - "request": "^2.88.0", - "request-promise-native": "^1.0.7", "ts-node": "^8.1.0", - "typescript": "^3.4.4", - "z-schema": "^4.0.2" + "tslib": "^1.10.0", + "typescript": "^3.4.4" }, "homepage": "https://github.com/azure/azure-rest-api-specs", "repository": { @@ -47,7 +36,6 @@ "scripts": { "test": "tsc && mocha -t 500000 --reporter min", "spellcheck": "cspell \"specification/**/*.json\"", - "oav": "oav", "tsc": "tsc", "multiapi": "ts-node ./scripts/multiapi.ts" } diff --git a/preproduction-azure-pipelines.yml b/preproduction-azure-pipelines.yml index eea3c45fb761..1850de2bbcf4 100644 --- a/preproduction-azure-pipelines.yml +++ b/preproduction-azure-pipelines.yml @@ -35,3 +35,15 @@ jobs: verbose: false - script: 'npm run spellcheck' displayName: 'Run cSpell' + +- job: "Avocado" + pool: + vmImage: 'Ubuntu 16.04' + steps: + - task: Npm@1 + displayName: 'npm install' + inputs: + verbose: false + - script: 'npm install -D @azure/avocado@0.6.0' + - script: './node_modules/.bin/avocado' + displayName: 'Avocado' diff --git a/profile/2019-07-01-profile.json b/profile/2019-07-01-profile.json index 9e8054633e58..7e73f48c4980 100644 --- a/profile/2019-07-01-profile.json +++ b/profile/2019-07-01-profile.json @@ -1,2742 +1,2742 @@ { - "info": { - "name": "2019-07-01-profile", - "description": "Profile definition targeted for hybrid applications that could run on azure gov general availability version and azure cloud" + "info": { + "name": "2019-07-01-profile", + "description": "Profile definition targeted for hybrid applications that could run on azure gov general availability version and azure cloud" + }, + "resourcemanager": { + "Microsoft.ADHybridHealthService": { + "2014-01-01": { + "services": [ + "AzureGov" + ], + "addsservices": [ + "AzureGov" + ], + "configuration": [ + "AzureGov" + ], + "operations": [ + "AzureGov" + ], + "agents": [ + "AzureGov" + ], + "aadsupportcases": [ + "AzureGov" + ], + "reports": [ + "AzureGov" + ], + "servicehealthmetrics": [ + "AzureGov" + ], + "logs": [ + "AzureGov" + ], + "anonymousapiusers": [ + "AzureGov" + ] + } }, - "resourcemanager": { - "Microsoft.ADHybridHealthService": { - "2014-01-01": { - "services": [ - "AzureGov" - ], - "addsservices": [ - "AzureGov" - ], - "configuration": [ - "AzureGov" - ], - "operations": [ - "AzureGov" - ], - "agents": [ - "AzureGov" - ], - "aadsupportcases": [ - "AzureGov" - ], - "reports": [ - "AzureGov" - ], - "servicehealthmetrics": [ - "AzureGov" - ], - "logs": [ - "AzureGov" - ], - "anonymousapiusers": [ - "AzureGov" - ] - } + "Microsoft.Advisor": { + "2017-04-19": { + "suppressions": [ + "AzureGov", + "AzureChina" + ], + "configurations": [ + "AzureGov", + "AzureChina" + ], + "recommendations": [ + "AzureGov", + "AzureChina" + ], + "generateRecommendations": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.AlertsManagement": { + "2018-05-05-preview": { + "alerts": [ + "AzureGov", + "AzureChina" + ], + "alertsSummary": [ + "AzureGov", + "AzureChina" + ], + "smartGroups": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ] + }, + "Microsoft.AnalysisServices": { + "2017-08-01-beta": { + "servers": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "locations/operationresults": [ + "AzureGov", + "AzureChina" + ], + "locations/operationstatuses": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.ApiManagement": { + "2019-01-01": { + "service": [ + "AzureGov", + "AzureChina" + ], + "validateServiceName": [ + "AzureGov", + "AzureChina" + ], + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "reportFeedback": [ + "AzureGov", + "AzureChina" + ], + "checkFeedbackRequired": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Authorization": { + "2018-07-01": { + "roleDefinitions": [ + "AzureGov", + "AzureChina" + ], + "permissions": [ + "AzureGov", + "AzureChina" + ], + "providerOperations": [ + "AzureGov", + "AzureChina" + ] + }, + "2015-06-01": { + "classicAdministrators": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-07-01-preview": { + "denyAssignments": [ + "AzureGov" + ] + }, + "2017-04-01": { + "locks": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-05-01": { + "operations": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-05-01": { + "policyDefinitions": [ + "AzureGov", + "AzureChina" + ], + "policySetDefinitions": [ + "AzureGov", + "AzureChina" + ], + "policyAssignments": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-09-01-preview": { + "checkAccess": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Automation": { + "2018-06-30": { + "automationAccounts": [ + "AzureGov", + "AzureChina" + ], + "automationAccounts/runbooks": [ + "AzureGov", + "AzureChina" + ], + "automationAccounts/configurations": [ + "AzureGov", + "AzureChina" + ], + "automationAccounts/webhooks": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "automationAccounts/softwareUpdateConfigurations": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.AzureStack": { + "2017-06-01": { + "operations": [ + "AzureGov", + "AzureChina" + ], + "registrations": [ + "AzureGov", + "AzureChina" + ], + "registrations/products": [ + "AzureGov", + "AzureChina" + ], + "registrations/customerSubscriptions": [ + "AzureGov" + ] + } + }, + "Microsoft.Batch": { + "2019-04-01": { + "batchAccounts": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/quotas": [ + "AzureGov", + "AzureChina" + ], + "locations/checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "locations/accountOperationResults": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.BatchAI": { + "2018-03-01": { + "clusters": [ + "AzureGov" + ], + "jobs": [ + "AzureGov" + ], + "fileservers": [ + "AzureGov" + ] + }, + "2018-05-01": { + "workspaces": [ + "AzureGov" + ], + "workspaces/clusters": [ + "AzureGov" + ], + "workspaces/fileservers": [ + "AzureGov" + ], + "workspaces/experiments": [ + "AzureGov" + ], + "workspaces/experiments/jobs": [ + "AzureGov" + ], + "operations": [ + "AzureGov" + ], + "locations": [ + "AzureGov" + ], + "locations/operationresults": [ + "AzureGov" + ], + "locations/operationstatuses": [ + "AzureGov" + ], + "locations/usages": [ + "AzureGov" + ] + } + }, + "Microsoft.BotService": { + "2018-07-12": { + "botServices": [ + "AzureGov" + ], + "botServices/channels": [ + "AzureGov" + ], + "botServices/connections": [ + "AzureGov" + ], + "listAuthServiceProviders": [ + "AzureGov" + ], + "checkNameAvailability": [ + "AzureGov" + ], + "languages": [ + "AzureGov" + ], + "templates": [ + "AzureGov" + ], + "operations": [ + "AzureGov" + ] + } + }, + "Microsoft.Cache": { + "2018-03-01": { + "Redis": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/operationResults": [ + "AzureGov", + "AzureChina" + ], + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "RedisConfigDefinition": [ + "AzureChina" + ] + } + }, + "Microsoft.CognitiveServices": { + "2017-04-18": { + "accounts": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/checkSkuAvailability": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Compute": { + "2018-10-01": { + "availabilitySets": [ + "AzureGov", + "AzureChina" + ], + "virtualMachines": [ + "AzureGov", + "AzureChina" + ], + "virtualMachines/extensions": [ + "AzureGov", + "AzureChina" + ], + "virtualMachineScaleSets": [ + "AzureGov", + "AzureChina" + ], + "virtualMachineScaleSets/extensions": [ + "AzureGov", + "AzureChina" + ], + "virtualMachineScaleSets/virtualMachines": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/operations": [ + "AzureGov", + "AzureChina" + ], + "locations/vmSizes": [ + "AzureGov", + "AzureChina" + ], + "locations/runCommands": [ + "AzureGov", + "AzureChina" + ], + "locations/usages": [ + "AzureGov", + "AzureChina" + ], + "locations/systemInfo": [ + "AzureGov", + "AzureChina" + ], + "locations/virtualMachines": [ + "AzureGov", + "AzureChina" + ], + "locations/publishers": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "restorePointCollections": [ + "AzureGov", + "AzureChina" + ], + "restorePointCollections/restorePoints": [ + "AzureGov", + "AzureChina" + ], + "locations/capsoperations": [ + "AzureGov", + "AzureChina" + ], + "galleries": [ + "AzureGov", + "AzureChina" + ], + "galleries/images": [ + "AzureGov", + "AzureChina" + ], + "galleries/images/versions": [ + "AzureGov", + "AzureChina" + ], + "images": [ + "AzureGov", + "AzureChina" + ], + "virtualMachineScaleSets/networkInterfaces": [ + "AzureGov", + "AzureChina" + ], + "virtualMachineScaleSets/virtualMachines/networkInterfaces": [ + "AzureGov", + "AzureChina" + ], + "virtualMachineScaleSets/publicIPAddresses": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-10-15-preview": { + "sharedVMImages": [ + "AzureGov", + "AzureChina" + ], + "sharedVMImages/versions": [ + "AzureGov", + "AzureChina" + ], + "locations/artifactPublishers": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-09-30": { + "disks": [ + "AzureGov", + "AzureChina" + ], + "snapshots": [ + "AzureGov", + "AzureChina" + ], + "locations/diskoperations": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Consumption": { + "2018-10-01": { + "CostTags": [ + "AzureGov" + ], + "products": [ + "AzureGov" + ] + }, + "2018-11-01-preview": { + "credits": [ + "AzureGov" + ], + "events": [ + "AzureGov" + ], + "lots": [ + "AzureGov" + ] + } + }, + "Microsoft.ContainerRegistry": { + "2017-10-01": { + "registries": [ + "AzureGov", + "AzureChina" + ], + "registries/importImage": [ + "AzureGov", + "AzureChina" + ], + "registries/replications": [ + "AzureGov", + "AzureChina" + ], + "registries/webhooks": [ + "AzureGov", + "AzureChina" + ], + "registries/webhooks/ping": [ + "AzureGov", + "AzureChina" + ], + "registries/webhooks/getCallbackConfig": [ + "AzureGov", + "AzureChina" + ], + "registries/webhooks/listEvents": [ + "AzureGov", + "AzureChina" + ], + "locations/operationResults": [ + "AzureGov", + "AzureChina" + ], + "registries/listCredentials": [ + "AzureGov", + "AzureChina" + ], + "registries/regenerateCredential": [ + "AzureGov", + "AzureChina" + ], + "registries/listUsages": [ + "AzureGov", + "AzureChina" + ], + "registries/eventGridFilters": [ + "AzureGov", + "AzureChina" + ], + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "swagger": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-03-01": { + "registries/GetCredentials": [ + "AzureGov", + "AzureChina" + ] + }, + "2016-06-27-preview": { + "registries/regenerateCredentials": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.CostManagement": { + "2018-05-31": { + "Reportconfigs": [ + "AzureGov" + ] + } + }, + "Microsoft.DataBox": { + "2018-01-01": { + "jobs": [ + "AzureGov" + ], + "locations": [ + "AzureGov" + ], + "locations/validateAddress": [ + "AzureGov" + ], + "locations/expresspods": [ + "AzureGov" + ], + "locations/checkNameAvailability": [ + "AzureGov" + ], + "locations/operationresults": [ + "AzureGov" + ], + "operations": [ + "AzureGov" + ], + "locations/serviceHealth": [ + "AzureGov" + ], + "locations/availableSkus": [ + "AzureGov" + ] + } + }, + "Microsoft.DataFactory": { + "2018-06-01": { + "factories": [ + "AzureGov", + "AzureChina" + ], + "factories/integrationRuntimes": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/configureFactoryRepo": [ + "AzureGov", + "AzureChina" + ], + "locations/getFeatureValue": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.DataMigration": { + "2018-07-15-preview": { + "locations": [ + "AzureGov", + "AzureChina" + ], + "services": [ + "AzureGov", + "AzureChina" + ], + "services/projects": [ + "AzureGov", + "AzureChina" + ], + "locations/operationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/operationStatuses": [ + "AzureGov", + "AzureChina" + ], + "locations/checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "slots": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.DBforMySQL": { + "2017-12-01-preview": { + "operations": [ + "AzureGov", + "AzureChina" + ], + "servers": [ + "AzureGov", + "AzureChina" + ], + "servers/recoverableServers": [ + "AzureGov", + "AzureChina" + ], + "servers/virtualNetworkRules": [ + "AzureGov", + "AzureChina" + ], + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/operationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/azureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/performanceTiers": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.DBforPostgreSQL": { + "2017-12-01-preview": { + "operations": [ + "AzureGov", + "AzureChina" + ], + "servers": [ + "AzureGov", + "AzureChina" + ], + "servers/recoverableServers": [ + "AzureGov", + "AzureChina" + ], + "servers/virtualNetworkRules": [ + "AzureGov", + "AzureChina" + ], + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/operationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/azureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/performanceTiers": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-12-01": { + "locations/securityAlertPoliciesAzureAsyncOperation": [ + "AzureGov" + ], + "locations/securityAlertPoliciesOperationResults": [ + "AzureGov" + ] + } + }, + "Microsoft.Devices": { + "2018-12-01-preview": { + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "usages": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "operationResults": [ + "AzureGov", + "AzureChina" + ], + "IotHubs": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.DevTestLab": { + "2018-10-15-preview": { + "labs": [ + "AzureGov" + ], + "schedules": [ + "AzureGov" + ], + "labs/virtualMachines": [ + "AzureGov" + ], + "operations": [ + "AzureGov" + ], + "locations": [ + "AzureGov" + ], + "locations/operations": [ + "AzureGov" + ] + } + }, + "Microsoft.EventHub": { + "2018-01-01-preview": { + "namespaces": [ + "AzureGov", + "AzureChina" + ], + "clusters": [ + "AzureChina" + ] + }, + "2015-08-01": { + "checkNamespaceAvailability": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-04-01": { + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "sku": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Features": { + "2015-12-01": { + "features": [ + "AzureGov", + "AzureChina" + ], + "providers": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.ImportExport": { + "2016-11-01": { + "jobs": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/operationResults": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ] + } + }, + "microsoft.insights": { + "2018-05-01-preview": { + "components": [ + "AzureGov", + "AzureChina" + ] + }, + "2015-05-01": { + "webtests": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-04-16": { + "scheduledqueryrules": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-10-01": { + "components/pricingPlans": [ + "AzureGov", + "AzureChina" + ], + "migrateToNewPricingModel": [ + "AzureGov", + "AzureChina" + ], + "rollbackToLegacyPricingModel": [ + "AzureGov", + "AzureChina" + ], + "listMigrationdate": [ + "AzureGov", + "AzureChina" + ] + }, + "2016-03-01": { + "logprofiles": [ + "AzureGov", + "AzureChina" + ], + "alertrules": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-03-01": { + "metricalerts": [ + "AzureGov", + "AzureChina" + ] + }, + "2015-04-01": { + "autoscalesettings": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/operationResults": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "eventCategories": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-03-01-preview": { + "eventtypes": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-05-01-preview": { + "diagnosticSettings": [ + "AzureGov", + "AzureChina" + ], + "diagnosticSettingsCategories": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-01-01": { + "metricDefinitions": [ + "AzureGov", + "AzureChina" + ], + "metrics": [ + "AzureGov", + "AzureChina" + ] + }, + "2015-07-01": { + "logDefinitions": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-09-01": { + "actiongroups": [ + "AzureGov", + "AzureChina" + ], + "baseline": [ + "AzureGov" + ], + "calculatebaseline": [ + "AzureGov" + ] + }, + "2017-04-01": { + "activityLogAlerts": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-06-17-preview": { + "workbooks": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-08-01-preview": { + "logs": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.KeyVault": { + "2018-02-14-preview": { + "vaults": [ + "AzureGov", + "AzureChina" + ], + "vaults/secrets": [ + "AzureGov", + "AzureChina" + ], + "vaults/accessPolicies": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "deletedVaults": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/deletedVaults": [ + "AzureGov", + "AzureChina" + ], + "locations/deleteVirtualNetworkOrSubnets": [ + "AzureGov", + "AzureChina" + ], + "locations/operationResults": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Logic": { + "2018-07-01-preview": { + "integrationAccounts": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.MarketplaceOrdering": { + "2015-06-01": { + "agreements": [ + "AzureGov" + ], + "operations": [ + "AzureGov" + ], + "offertypes": [ + "AzureGov" + ] + } + }, + "Microsoft.Media": { + "2018-07-01": { + "mediaservices": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/assets": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/contentKeyPolicies": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/streamingLocators": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/streamingPolicies": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/transforms": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/transforms/jobs": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/streamingEndpoints": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/liveEvents": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/liveEvents/liveOutputs": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/streamingEndpointOperations": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/liveEventOperations": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/liveOutputOperations": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/assets/assetFilters": [ + "AzureGov", + "AzureChina" + ], + "mediaservices/accountFilters": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/checkNameAvailability": [ + "AzureGov", + "AzureChina" + ] + }, + "2015-10-01": { + "checknameavailability": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Migrate": { + "2018-02-02": { + "projects": [ + "AzureGov" + ], + "operations": [ + "AzureGov" + ], + "locations": [ + "AzureGov" + ], + "locations/checkNameAvailability": [ + "AzureGov" + ], + "locations/assessmentOptions": [ + "AzureGov" + ] + } + }, + "Microsoft.Network": { + "2019-02-01": { + "virtualNetworks": [ + "AzureGov", + "AzureChina" + ], + "publicIPAddresses": [ + "AzureGov", + "AzureChina" + ], + "networkInterfaces": [ + "AzureGov", + "AzureChina" + ], + "privateEndpoints": [ + "AzureGov", + "AzureChina" + ], + "loadBalancers": [ + "AzureGov", + "AzureChina" + ], + "networkSecurityGroups": [ + "AzureGov", + "AzureChina" + ], + "applicationSecurityGroups": [ + "AzureGov", + "AzureChina" + ], + "serviceEndpointPolicies": [ + "AzureGov", + "AzureChina" + ], + "networkIntentPolicies": [ + "AzureGov", + "AzureChina" + ], + "routeTables": [ + "AzureGov", + "AzureChina" + ], + "publicIPPrefixes": [ + "AzureGov", + "AzureChina" + ], + "ddosCustomPolicies": [ + "AzureGov", + "AzureChina" + ], + "networkWatchers": [ + "AzureGov", + "AzureChina" + ], + "networkWatchers/connectionMonitors": [ + "AzureGov", + "AzureChina" + ], + "networkWatchers/pingMeshes": [ + "AzureGov", + "AzureChina" + ], + "virtualNetworkGateways": [ + "AzureGov", + "AzureChina" + ], + "localNetworkGateways": [ + "AzureGov", + "AzureChina" + ], + "connections": [ + "AzureGov", + "AzureChina" + ], + "applicationGateways": [ + "AzureGov", + "AzureChina" + ], + "applicationGatewayWebApplicationFirewallPolicies": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/operations": [ + "AzureGov", + "AzureChina" + ], + "locations/operationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/CheckDnsNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "locations/usages": [ + "AzureGov", + "AzureChina" + ], + "locations/virtualNetworkAvailableEndpointServices": [ + "AzureGov", + "AzureChina" + ], + "locations/availableDelegations": [ + "AzureGov", + "AzureChina" + ], + "locations/serviceTags": [ + "AzureGov", + "AzureChina" + ], + "locations/availablePrivateEndpointResources": [ + "AzureGov", + "AzureChina" + ], + "locations/supportedVirtualMachineSizes": [ + "AzureGov", + "AzureChina" + ], + "locations/checkAcceleratedNetworkingSupport": [ + "AzureGov", + "AzureChina" + ], + "locations/validateResourceOwnership": [ + "AzureGov", + "AzureChina" + ], + "locations/setResourceOwnership": [ + "AzureGov", + "AzureChina" + ], + "locations/effectiveResourceOwnership": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "expressRouteCircuits": [ + "AzureGov", + "AzureChina" + ], + "expressRouteCrossConnections": [ + "AzureGov", + "AzureChina" + ], + "expressRouteServiceProviders": [ + "AzureGov", + "AzureChina" + ], + "applicationGatewayAvailableWafRuleSets": [ + "AzureGov", + "AzureChina" + ], + "applicationGatewayAvailableSslOptions": [ + "AzureGov", + "AzureChina" + ], + "applicationGatewayAvailableServerVariables": [ + "AzureGov", + "AzureChina" + ], + "applicationGatewayAvailableRequestHeaders": [ + "AzureGov", + "AzureChina" + ], + "applicationGatewayAvailableResponseHeaders": [ + "AzureGov", + "AzureChina" + ], + "routeFilters": [ + "AzureGov", + "AzureChina" + ], + "bgpServiceCommunities": [ + "AzureGov", + "AzureChina" + ], + "azureFirewalls": [ + "AzureGov", + "AzureChina" + ], + "azureFirewallFqdnTags": [ + "AzureGov", + "AzureChina" + ], + "virtualNetworkTaps": [ + "AzureGov", + "AzureChina" + ], + "privateLinkServices": [ + "AzureGov", + "AzureChina" + ], + "ddosProtectionPlans": [ + "AzureGov", + "AzureChina" + ], + "networkProfiles": [ + "AzureGov", + "AzureChina" + ], + "locations/bareMetalTenants": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-05-01": { + "dnszones": [ + "AzureGov", + "AzureChina" + ], + "dnsOperationResults": [ + "AzureGov", + "AzureChina" + ], + "dnsOperationStatuses": [ + "AzureGov", + "AzureChina" + ], + "getDnsResourceReference": [ + "AzureGov", + "AzureChina" + ], + "internalNotify": [ + "AzureGov", + "AzureChina" + ], + "dnszones/A": [ + "AzureGov", + "AzureChina" + ], + "dnszones/AAAA": [ + "AzureGov", + "AzureChina" + ], + "dnszones/CNAME": [ + "AzureGov", + "AzureChina" + ], + "dnszones/PTR": [ + "AzureGov", + "AzureChina" + ], + "dnszones/MX": [ + "AzureGov", + "AzureChina" + ], + "dnszones/TXT": [ + "AzureGov", + "AzureChina" + ], + "dnszones/SRV": [ + "AzureGov", + "AzureChina" + ], + "dnszones/SOA": [ + "AzureGov", + "AzureChina" + ], + "dnszones/NS": [ + "AzureGov", + "AzureChina" + ], + "dnszones/CAA": [ + "AzureGov", + "AzureChina" + ], + "dnszones/recordsets": [ + "AzureGov", + "AzureChina" + ], + "dnszones/all": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-08-01": { + "trafficmanagerprofiles": [ + "AzureGov", + "AzureChina" + ], + "checkTrafficManagerNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "trafficManagerGeographicHierarchies": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.NotificationHubs": { + "2017-04-01": { + "namespaces": [ + "AzureGov", + "AzureChina" + ], + "namespaces/notificationHubs": [ + "AzureGov", + "AzureChina" + ], + "checkNamespaceAvailability": [ + "AzureGov", + "AzureChina" + ], + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ] + }, + "2016-03-01": { + "operations": [ + "AzureGov", + "AzureChina" + ], + "operationResults": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.OperationalInsights": { + "2015-03-20": { + "linkTargets": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.OperationsManagement": { + "2015-11-01-preview": { + "solutions": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-08-21-preview": { + "views": [ + "AzureChina" + ] + } + }, + "Microsoft.PolicyInsights": { + "2018-04-04": { + "policyEvents": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-07-01-preview": { + "policyStates": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "asyncOperationResults": [ + "AzureGov", + "AzureChina" + ], + "remediations": [ + "AzureGov", + "AzureChina" + ], + "policyTrackedResources": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Portal": { + "2018-10-01-preview": { + "dashboards": [ + "AzureGov", + "AzureChina" + ] + }, + "2015-08-01-preview": { + "operations": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.PowerBI": { + "2016-01-29": { + "workspaceCollections": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/checkNameAvailability": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.PowerBIDedicated": { + "2017-10-01": { + "capacities": [ + "AzureGov", + "AzureChina" + ], + "locations/checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "locations/operationresults": [ + "AzureGov", + "AzureChina" + ], + "locations/operationstatuses": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-01-01-preview": { + "locations": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.RecoveryServices": { + "2016-08-10": { + "operations": [ + "AzureGov", + "AzureChina" + ] + }, + "2016-06-01": { + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/backupStatus": [ + "AzureGov", + "AzureChina" + ], + "locations/allocatedStamp": [ + "AzureGov", + "AzureChina" + ], + "locations/allocateStamp": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-01-10": { + "locations/checkNameAvailability": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-07-01": { + "locations/backupValidateFeatures": [ + "AzureGov", + "AzureChina" + ], + "locations/backupPreValidateProtection": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Relay": { + "2017-04-01": { + "namespaces": [ + "AzureGov", + "AzureChina" + ], + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.ResourceHealth": { + "2017-07-01": { + "availabilityStatuses": [ + "AzureGov", + "AzureChina" + ] + }, + "2015-01-01": { + "operations": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Resources": { + "2016-09-01": { + "tenants": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "providers": [ + "AzureGov", + "AzureChina" + ], + "checkresourcename": [ + "AzureGov", + "AzureChina" + ], + "resources": [ + "AzureGov", + "AzureChina" + ], + "subscriptions": [ + "AzureGov", + "AzureChina" + ], + "subscriptions/resources": [ + "AzureGov", + "AzureChina" + ], + "subscriptions/providers": [ + "AzureGov", + "AzureChina" + ], + "subscriptions/operationresults": [ + "AzureGov", + "AzureChina" + ], + "resourceGroups": [ + "AzureGov", + "AzureChina" + ], + "subscriptions/resourceGroups": [ + "AzureGov", + "AzureChina" + ], + "subscriptions/resourcegroups/resources": [ + "AzureGov", + "AzureChina" + ], + "subscriptions/locations": [ + "AzureGov", + "AzureChina" + ], + "subscriptions/tagnames": [ + "AzureGov", + "AzureChina" + ], + "subscriptions/tagNames/tagValues": [ + "AzureGov", + "AzureChina" + ], + "deployments": [ + "AzureGov", + "AzureChina" + ], + "deployments/operations": [ + "AzureGov", + "AzureChina" + ], + "links": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Scheduler": { + "2016-03-01": { + "jobcollections": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "operationResults": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Search": { + "2015-08-19": { + "searchServices": [ + "AzureGov", + "AzureChina" + ], + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "resourceHealthMetadata": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ] + }, + "2015-02-28": { + "checkServiceNameAvailability": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.ServiceBus": { + "2018-01-01-preview": { + "namespaces": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-04-01": { + "namespaces/authorizationrules": [ + "AzureGov" + ], + "namespaces/queues": [ + "AzureGov" + ], + "namespaces/queues/authorizationrules": [ + "AzureGov" + ], + "namespaces/topics": [ + "AzureGov" + ], + "namespaces/topics/authorizationrules": [ + "AzureGov" + ], + "namespaces/topics/subscriptions": [ + "AzureGov" + ], + "namespaces/topics/subscriptions/rules": [ + "AzureGov" + ], + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "sku": [ + "AzureGov", + "AzureChina" + ], + "premiumMessagingRegions": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ] + }, + "2015-08-01": { + "checkNamespaceAvailability": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.ServiceFabric": { + "2018-02-01": { + "clusters": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/clusterVersions": [ + "AzureGov", + "AzureChina" + ], + "locations/operations": [ + "AzureGov", + "AzureChina" + ], + "locations/operationResults": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Solutions": { + "2018-09-01-preview": { + "applications": [ + "AzureGov" + ], + "applicationDefinitions": [ + "AzureGov" + ], + "locations": [ + "AzureGov" + ], + "locations/operationstatuses": [ + "AzureGov" + ], + "operations": [ + "AzureGov" + ] + } + }, + "Microsoft.Sql": { + "2017-03-01-preview": { + "operations": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/backupLongTermRetentionPolicies": [ + "AzureGov", + "AzureChina" + ], + "servers/automaticTuning": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/automaticTuning": [ + "AzureGov", + "AzureChina" + ], + "servers/securityAlertPolicies": [ + "AzureGov", + "AzureChina" + ], + "servers/extendedAuditingSettings": [ + "AzureGov", + "AzureChina" + ], + "locations/extendedAuditingSettingsAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/extendedAuditingSettingsOperationResults": [ + "AzureGov", + "AzureChina" + ], + "servers/jobAgents": [ + "AzureGov", + "AzureChina" + ], + "locations/jobAgentOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/jobAgentAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "servers/jobAgents/jobs": [ + "AzureGov", + "AzureChina" + ], + "servers/jobAgents/jobs/steps": [ + "AzureGov", + "AzureChina" + ], + "servers/jobAgents/jobs/executions": [ + "AzureGov", + "AzureChina" + ], + "servers/dnsAliases": [ + "AzureGov", + "AzureChina" + ], + "locations/dnsAliasAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/dnsAliasOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/databaseRestoreAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/VulnerabilityAssessment": [ + "AzureGov", + "AzureChina" + ], + "managedInstances/administrators": [ + "AzureGov", + "AzureChina" + ], + "managedInstances/databases": [ + "AzureGov", + "AzureChina" + ], + "locations/managedDatabaseAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/managedDatabaseOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/managedDatabaseRestoreAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/managedDatabaseRestoreOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/managedServerSecurityAlertPoliciesAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/managedServerSecurityAlertPoliciesOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/securityAlertPoliciesAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/securityAlertPoliciesOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/administratorAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/administratorOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/longTermRetentionServers": [ + "AzureGov", + "AzureChina" + ], + "locations/longTermRetentionBackups": [ + "AzureGov", + "AzureChina" + ], + "locations/longTermRetentionPolicyOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/longTermRetentionPolicyAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/longTermRetentionBackupOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/longTermRetentionBackupAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/managedShortTermRetentionPolicyOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/managedShortTermRetentionPolicyAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ] + }, + "2014-04-01-preview": { + "locations": [ + "AzureGov", + "AzureChina" + ], + "servers/serviceObjectives": [ + "AzureGov", + "AzureChina" + ], + "servers/communicationLinks": [ + "AzureGov" + ], + "servers/administrators": [ + "AzureGov", + "AzureChina" + ], + "servers/administratorOperationResults": [ + "AzureGov", + "AzureChina" + ], + "servers/restorableDroppedDatabases": [ + "AzureGov", + "AzureChina" + ], + "servers/recoverableDatabases": [ + "AzureGov", + "AzureChina" + ], + "servers/import": [ + "AzureGov", + "AzureChina" + ], + "servers/importExportOperationResults": [ + "AzureGov", + "AzureChina" + ], + "servers/operationResults": [ + "AzureGov", + "AzureChina" + ], + "servers/databaseSecurityPolicies": [ + "AzureGov", + "AzureChina" + ], + "servers/auditingPolicies": [ + "AzureGov", + "AzureChina" + ], + "servers/recommendedElasticPools": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/auditingPolicies": [ + "AzureGov" + ], + "servers/databases/connectionPolicies": [ + "AzureGov" + ], + "servers/connectionPolicies": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/dataMaskingPolicies": [ + "AzureGov" + ], + "servers/databases/dataMaskingPolicies/rules": [ + "AzureGov" + ], + "servers/disasterRecoveryConfiguration": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/metricDefinitions": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/metrics": [ + "AzureGov", + "AzureChina" + ], + "servers/aggregatedDatabaseMetrics": [ + "AzureGov" + ], + "servers/elasticpools/metrics": [ + "AzureGov" + ], + "servers/elasticpools/metricdefinitions": [ + "AzureGov" + ], + "servers/databases/topQueries": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/topQueries/queryText": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/extensions": [ + "AzureGov", + "AzureChina" + ] + }, + "2018-06-01-preview": { + "locations/capabilities": [ + "AzureGov", + "AzureChina" + ], + "locations/databaseAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/databaseOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/serverKeyAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/serverKeyOperationResults": [ + "AzureGov", + "AzureChina" + ], + "servers/keys": [ + "AzureGov", + "AzureChina" + ], + "servers/encryptionProtector": [ + "AzureGov", + "AzureChina" + ], + "locations/encryptionProtectorOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/encryptionProtectorAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/serverAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/serverOperationResults": [ + "AzureGov", + "AzureChina" + ], + "servers": [ + "AzureGov", + "AzureChina" + ], + "servers/databases": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/transparentDataEncryption": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/securityAlertPolicies": [ + "AzureGov", + "AzureChina" + ], + "servers/vulnerabilityAssessments": [ + "AzureGov", + "AzureChina" + ], + "managedInstances/vulnerabilityAssessments": [ + "AzureGov", + "AzureChina" + ], + "managedInstances": [ + "AzureGov", + "AzureChina" + ], + "locations/managedInstanceAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/managedInstanceOperationResults": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-10-01-preview": { + "locations/managedInstanceKeyAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/managedInstanceKeyOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/managedInstanceEncryptionProtectorOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/managedInstanceEncryptionProtectorAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "servers/tdeCertificates": [ + "AzureGov", + "AzureChina" + ], + "locations/tdeCertAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/tdeCertOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/elasticPoolAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/elasticPoolOperationResults": [ + "AzureGov", + "AzureChina" + ], + "servers/elasticpools": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/vulnerabilityAssessments": [ + "AzureGov", + "AzureChina" + ], + "managedInstances/databases/vulnerabilityAssessments": [ + "AzureGov", + "AzureChina" + ], + "locations/vulnerabilityAssessmentScanAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/vulnerabilityAssessmentScanOperationResults": [ + "AzureGov", + "AzureChina" + ], + "managedInstances/recoverableDatabases": [ + "AzureGov", + "AzureChina" + ], + "managedInstances/metrics": [ + "AzureGov", + "AzureChina" + ], + "managedInstances/metricDefinitions": [ + "AzureGov", + "AzureChina" + ], + "managedInstances/tdeCertificates": [ + "AzureGov", + "AzureChina" + ], + "locations/managedInstanceTdeCertAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/managedInstanceTdeCertOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/shortTermRetentionPolicyOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/shortTermRetentionPolicyAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/instanceFailoverGroups": [ + "AzureGov", + "AzureChina" + ], + "locations/instanceFailoverGroupAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/instanceFailoverGroupOperationResults": [ + "AzureGov", + "AzureChina" + ] + }, + "2015-05-01-preview": { + "servers/databases/geoBackupPolicies": [ + "AzureGov", + "AzureChina" + ], + "servers/failoverGroups": [ + "AzureGov", + "AzureChina" + ], + "locations/failoverGroupAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/failoverGroupOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/deleteVirtualNetworkOrSubnets": [ + "AzureGov", + "AzureChina" + ], + "servers/virtualNetworkRules": [ + "AzureGov", + "AzureChina" + ], + "locations/virtualNetworkRulesOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/virtualNetworkRulesAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "locations/deleteVirtualNetworkOrSubnetsOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/deleteVirtualNetworkOrSubnetsAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ], + "servers/advisors": [ + "AzureGov", + "AzureChina" + ], + "servers/elasticPools/advisors": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/advisors": [ + "AzureGov", + "AzureChina" + ], + "servers/elasticPoolEstimates": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/auditRecords": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/VulnerabilityAssessmentScans": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/VulnerabilityAssessmentSettings": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/syncGroups": [ + "AzureGov", + "AzureChina" + ], + "servers/databases/syncGroups/syncMembers": [ + "AzureGov", + "AzureChina" + ], + "servers/syncAgents": [ + "AzureGov", + "AzureChina" + ], + "virtualClusters": [ + "AzureGov", + "AzureChina" + ], + "locations/syncGroupOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/syncMemberOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/syncAgentOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/syncDatabaseIds": [ + "AzureGov", + "AzureChina" + ], + "locations/firewallRulesOperationResults": [ + "AzureGov", + "AzureChina" + ], + "locations/firewallRulesAzureAsyncOperation": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.Storage": { + "2019-04-01": { + "storageAccounts": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "locations/asyncoperations": [ + "AzureGov", + "AzureChina" + ], + "storageAccounts/listAccountSas": [ + "AzureGov", + "AzureChina" + ], + "storageAccounts/listServiceSas": [ + "AzureGov", + "AzureChina" + ], + "storageAccounts/blobServices": [ + "AzureGov", + "AzureChina" + ], + "storageAccounts/tableServices": [ + "AzureGov", + "AzureChina" + ], + "storageAccounts/queueServices": [ + "AzureGov", + "AzureChina" + ], + "storageAccounts/fileServices": [ + "AzureGov", + "AzureChina" + ], + "locations/usages": [ + "AzureGov", + "AzureChina" + ], + "locations/deleteVirtualNetworkOrSubnets": [ + "AzureGov", + "AzureChina" + ], + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ] + }, + "2017-10-01": { + "locations": [ + "AzureGov", + "AzureChina" + ], + "usages": [ + "AzureGov", + "AzureChina" + ] + } + }, + "Microsoft.StorageSync": { + "2019-02-01": { + "storageSyncServices": [ + "AzureGov" + ], + "storageSyncServices/syncGroups": [ + "AzureGov" + ], + "storageSyncServices/syncGroups/cloudEndpoints": [ + "AzureGov" + ], + "storageSyncServices/syncGroups/serverEndpoints": [ + "AzureGov" + ], + "storageSyncServices/registeredServers": [ + "AzureGov" + ], + "storageSyncServices/workflows": [ + "AzureGov" + ], + "operations": [ + "AzureGov" + ], + "locations": [ + "AzureGov" + ], + "locations/checkNameAvailability": [ + "AzureGov" + ], + "locations/workflows": [ + "AzureGov" + ] + } + }, + "Microsoft.Web": { + "2018-02-01": { + "publishingUsers": [ + "AzureGov", + "AzureChina" + ], + "ishostnameavailable": [ + "AzureGov", + "AzureChina" + ], + "isusernameavailable": [ + "AzureGov", + "AzureChina" + ], + "sourceControls": [ + "AzureGov", + "AzureChina" + ], + "availableStacks": [ + "AzureGov", + "AzureChina" + ], + "listSitesAssignedToHostName": [ + "AzureGov", + "AzureChina" + ], + "sites/hostNameBindings": [ + "AzureGov", + "AzureChina" + ], + "sites/slots/hostNameBindings": [ + "AzureGov", + "AzureChina" + ], + "operations": [ + "AzureGov", + "AzureChina" + ], + "serverFarms": [ + "AzureGov", + "AzureChina" + ], + "runtimes": [ + "AzureGov", + "AzureChina" + ], + "georegions": [ + "AzureGov", + "AzureChina" + ], + "sites/premieraddons": [ + "AzureGov", + "AzureChina" + ], + "deploymentLocations": [ + "AzureGov", + "AzureChina" + ], + "ishostingenvironmentnameavailable": [ + "AzureGov", + "AzureChina" + ], + "checkNameAvailability": [ + "AzureGov", + "AzureChina" + ], + "billingMeters": [ + "AzureGov", + "AzureChina" + ], + "hostingEnvironments": [ + "AzureGov", + "AzureChina" + ], + "hostingEnvironments/multiRolePools": [ + "AzureGov", + "AzureChina" + ], + "hostingEnvironments/workerPools": [ + "AzureGov", + "AzureChina" + ] }, - "Microsoft.Advisor": { - "2017-04-19": { - "suppressions": [ - "AzureGov", - "AzureChina" - ], - "configurations": [ - "AzureGov", - "AzureChina" - ], - "recommendations": [ - "AzureGov", - "AzureChina" - ], - "generateRecommendations": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ] - } + "2018-07-01-preview": { + "connections": [ + "AzureGov", + "AzureChina" + ], + "customApis": [ + "AzureGov", + "AzureChina" + ], + "locations": [ + "AzureGov", + "AzureChina" + ], + "locations/managedApis": [ + "AzureGov", + "AzureChina" + ], + "locations/apiOperations": [ + "AzureGov", + "AzureChina" + ] }, - "Microsoft.AlertsManagement": { - "2018-05-05-preview": { - "alerts": [ - "AzureGov", - "AzureChina" - ], - "alertsSummary": [ - "AzureGov", - "AzureChina" - ], - "smartGroups": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ] - }, - "Microsoft.AnalysisServices": { - "2017-08-01-beta": { - "servers": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "locations/operationresults": [ - "AzureGov", - "AzureChina" - ], - "locations/operationstatuses": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.ApiManagement": { - "2019-01-01": { - "service": [ - "AzureGov", - "AzureChina" - ], - "validateServiceName": [ - "AzureGov", - "AzureChina" - ], - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "reportFeedback": [ - "AzureGov", - "AzureChina" - ], - "checkFeedbackRequired": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Authorization": { - "2018-07-01": { - "roleDefinitions": [ - "AzureGov", - "AzureChina" - ], - "permissions": [ - "AzureGov", - "AzureChina" - ], - "providerOperations": [ - "AzureGov", - "AzureChina" - ] - }, - "2015-06-01": { - "classicAdministrators": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-07-01-preview": { - "denyAssignments": [ - "AzureGov" - ] - }, - "2017-04-01": { - "locks": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-05-01": { - "operations": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-05-01": { - "policyDefinitions": [ - "AzureGov", - "AzureChina" - ], - "policySetDefinitions": [ - "AzureGov", - "AzureChina" - ], - "policyAssignments": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-09-01-preview": { - "checkAccess": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Automation": { - "2018-06-30": { - "automationAccounts": [ - "AzureGov", - "AzureChina" - ], - "automationAccounts/runbooks": [ - "AzureGov", - "AzureChina" - ], - "automationAccounts/configurations": [ - "AzureGov", - "AzureChina" - ], - "automationAccounts/webhooks": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "automationAccounts/softwareUpdateConfigurations": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.AzureStack": { - "2017-06-01": { - "operations": [ - "AzureGov", - "AzureChina" - ], - "registrations": [ - "AzureGov", - "AzureChina" - ], - "registrations/products": [ - "AzureGov", - "AzureChina" - ], - "registrations/customerSubscriptions": [ - "AzureGov" - ] - } - }, - "Microsoft.Batch": { - "2019-04-01": { - "batchAccounts": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/quotas": [ - "AzureGov", - "AzureChina" - ], - "locations/checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "locations/accountOperationResults": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.BatchAI": { - "2018-03-01": { - "clusters": [ - "AzureGov" - ], - "jobs": [ - "AzureGov" - ], - "fileservers": [ - "AzureGov" - ] - }, - "2018-05-01": { - "workspaces": [ - "AzureGov" - ], - "workspaces/clusters": [ - "AzureGov" - ], - "workspaces/fileservers": [ - "AzureGov" - ], - "workspaces/experiments": [ - "AzureGov" - ], - "workspaces/experiments/jobs": [ - "AzureGov" - ], - "operations": [ - "AzureGov" - ], - "locations": [ - "AzureGov" - ], - "locations/operationresults": [ - "AzureGov" - ], - "locations/operationstatuses": [ - "AzureGov" - ], - "locations/usages": [ - "AzureGov" - ] - } - }, - "Microsoft.BotService": { - "2018-07-12": { - "botServices": [ - "AzureGov" - ], - "botServices/channels": [ - "AzureGov" - ], - "botServices/connections": [ - "AzureGov" - ], - "listAuthServiceProviders": [ - "AzureGov" - ], - "checkNameAvailability": [ - "AzureGov" - ], - "languages": [ - "AzureGov" - ], - "templates": [ - "AzureGov" - ], - "operations": [ - "AzureGov" - ] - } - }, - "Microsoft.Cache": { - "2018-03-01": { - "Redis": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/operationResults": [ - "AzureGov", - "AzureChina" - ], - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "RedisConfigDefinition": [ - "AzureChina" - ] - } - }, - "Microsoft.CognitiveServices": { - "2017-04-18": { - "accounts": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/checkSkuAvailability": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Compute": { - "2018-10-01": { - "availabilitySets": [ - "AzureGov", - "AzureChina" - ], - "virtualMachines": [ - "AzureGov", - "AzureChina" - ], - "virtualMachines/extensions": [ - "AzureGov", - "AzureChina" - ], - "virtualMachineScaleSets": [ - "AzureGov", - "AzureChina" - ], - "virtualMachineScaleSets/extensions": [ - "AzureGov", - "AzureChina" - ], - "virtualMachineScaleSets/virtualMachines": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/operations": [ - "AzureGov", - "AzureChina" - ], - "locations/vmSizes": [ - "AzureGov", - "AzureChina" - ], - "locations/runCommands": [ - "AzureGov", - "AzureChina" - ], - "locations/usages": [ - "AzureGov", - "AzureChina" - ], - "locations/systemInfo": [ - "AzureGov", - "AzureChina" - ], - "locations/virtualMachines": [ - "AzureGov", - "AzureChina" - ], - "locations/publishers": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "restorePointCollections": [ - "AzureGov", - "AzureChina" - ], - "restorePointCollections/restorePoints": [ - "AzureGov", - "AzureChina" - ], - "locations/capsoperations": [ - "AzureGov", - "AzureChina" - ], - "galleries": [ - "AzureGov", - "AzureChina" - ], - "galleries/images": [ - "AzureGov", - "AzureChina" - ], - "galleries/images/versions": [ - "AzureGov", - "AzureChina" - ], - "images": [ - "AzureGov", - "AzureChina" - ], - "virtualMachineScaleSets/networkInterfaces": [ - "AzureGov", - "AzureChina" - ], - "virtualMachineScaleSets/virtualMachines/networkInterfaces": [ - "AzureGov", - "AzureChina" - ], - "virtualMachineScaleSets/publicIPAddresses": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-10-15-preview": { - "sharedVMImages": [ - "AzureGov", - "AzureChina" - ], - "sharedVMImages/versions": [ - "AzureGov", - "AzureChina" - ], - "locations/artifactPublishers": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-09-30": { - "disks": [ - "AzureGov", - "AzureChina" - ], - "snapshots": [ - "AzureGov", - "AzureChina" - ], - "locations/diskoperations": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Consumption": { - "2018-10-01": { - "CostTags": [ - "AzureGov" - ], - "products": [ - "AzureGov" - ] - }, - "2018-11-01-preview": { - "credits": [ - "AzureGov" - ], - "events": [ - "AzureGov" - ], - "lots": [ - "AzureGov" - ] - } - }, - "Microsoft.ContainerRegistry": { - "2017-10-01": { - "registries": [ - "AzureGov", - "AzureChina" - ], - "registries/importImage": [ - "AzureGov", - "AzureChina" - ], - "registries/replications": [ - "AzureGov", - "AzureChina" - ], - "registries/webhooks": [ - "AzureGov", - "AzureChina" - ], - "registries/webhooks/ping": [ - "AzureGov", - "AzureChina" - ], - "registries/webhooks/getCallbackConfig": [ - "AzureGov", - "AzureChina" - ], - "registries/webhooks/listEvents": [ - "AzureGov", - "AzureChina" - ], - "locations/operationResults": [ - "AzureGov", - "AzureChina" - ], - "registries/listCredentials": [ - "AzureGov", - "AzureChina" - ], - "registries/regenerateCredential": [ - "AzureGov", - "AzureChina" - ], - "registries/listUsages": [ - "AzureGov", - "AzureChina" - ], - "registries/eventGridFilters": [ - "AzureGov", - "AzureChina" - ], - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "swagger": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-03-01": { - "registries/GetCredentials": [ - "AzureGov", - "AzureChina" - ] - }, - "2016-06-27-preview": { - "registries/regenerateCredentials": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.CostManagement": { - "2018-05-31": { - "Reportconfigs": [ - "AzureGov" - ] - } - }, - "Microsoft.DataBox": { - "2018-01-01": { - "jobs": [ - "AzureGov" - ], - "locations": [ - "AzureGov" - ], - "locations/validateAddress": [ - "AzureGov" - ], - "locations/expresspods": [ - "AzureGov" - ], - "locations/checkNameAvailability": [ - "AzureGov" - ], - "locations/operationresults": [ - "AzureGov" - ], - "operations": [ - "AzureGov" - ], - "locations/serviceHealth": [ - "AzureGov" - ], - "locations/availableSkus": [ - "AzureGov" - ] - } - }, - "Microsoft.DataFactory": { - "2018-06-01": { - "factories": [ - "AzureGov", - "AzureChina" - ], - "factories/integrationRuntimes": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/configureFactoryRepo": [ - "AzureGov", - "AzureChina" - ], - "locations/getFeatureValue": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.DataMigration": { - "2018-07-15-preview": { - "locations": [ - "AzureGov", - "AzureChina" - ], - "services": [ - "AzureGov", - "AzureChina" - ], - "services/projects": [ - "AzureGov", - "AzureChina" - ], - "locations/operationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/operationStatuses": [ - "AzureGov", - "AzureChina" - ], - "locations/checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "slots": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.DBforMySQL": { - "2017-12-01-preview": { - "operations": [ - "AzureGov", - "AzureChina" - ], - "servers": [ - "AzureGov", - "AzureChina" - ], - "servers/recoverableServers": [ - "AzureGov", - "AzureChina" - ], - "servers/virtualNetworkRules": [ - "AzureGov", - "AzureChina" - ], - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/operationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/azureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/performanceTiers": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.DBforPostgreSQL": { - "2017-12-01-preview": { - "operations": [ - "AzureGov", - "AzureChina" - ], - "servers": [ - "AzureGov", - "AzureChina" - ], - "servers/recoverableServers": [ - "AzureGov", - "AzureChina" - ], - "servers/virtualNetworkRules": [ - "AzureGov", - "AzureChina" - ], - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/operationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/azureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/performanceTiers": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-12-01": { - "locations/securityAlertPoliciesAzureAsyncOperation": [ - "AzureGov" - ], - "locations/securityAlertPoliciesOperationResults": [ - "AzureGov" - ] - } - }, - "Microsoft.Devices": { - "2018-12-01-preview": { - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "usages": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "operationResults": [ - "AzureGov", - "AzureChina" - ], - "IotHubs": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.DevTestLab": { - "2018-10-15-preview": { - "labs": [ - "AzureGov" - ], - "schedules": [ - "AzureGov" - ], - "labs/virtualMachines": [ - "AzureGov" - ], - "operations": [ - "AzureGov" - ], - "locations": [ - "AzureGov" - ], - "locations/operations": [ - "AzureGov" - ] - } - }, - "Microsoft.EventHub": { - "2018-01-01-preview": { - "namespaces": [ - "AzureGov", - "AzureChina" - ], - "clusters": [ - "AzureChina" - ] - }, - "2015-08-01": { - "checkNamespaceAvailability": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-04-01": { - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "sku": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Features": { - "2015-12-01": { - "features": [ - "AzureGov", - "AzureChina" - ], - "providers": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.ImportExport": { - "2016-11-01": { - "jobs": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/operationResults": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ] - } - }, - "microsoft.insights": { - "2018-05-01-preview": { - "components": [ - "AzureGov", - "AzureChina" - ] - }, - "2015-05-01": { - "webtests": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-04-16": { - "scheduledqueryrules": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-10-01": { - "components/pricingPlans": [ - "AzureGov", - "AzureChina" - ], - "migrateToNewPricingModel": [ - "AzureGov", - "AzureChina" - ], - "rollbackToLegacyPricingModel": [ - "AzureGov", - "AzureChina" - ], - "listMigrationdate": [ - "AzureGov", - "AzureChina" - ] - }, - "2016-03-01": { - "logprofiles": [ - "AzureGov", - "AzureChina" - ], - "alertrules": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-03-01": { - "metricalerts": [ - "AzureGov", - "AzureChina" - ] - }, - "2015-04-01": { - "autoscalesettings": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/operationResults": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "eventCategories": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-03-01-preview": { - "eventtypes": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-05-01-preview": { - "diagnosticSettings": [ - "AzureGov", - "AzureChina" - ], - "diagnosticSettingsCategories": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-01-01": { - "metricDefinitions": [ - "AzureGov", - "AzureChina" - ], - "metrics": [ - "AzureGov", - "AzureChina" - ] - }, - "2015-07-01": { - "logDefinitions": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-09-01": { - "actiongroups": [ - "AzureGov", - "AzureChina" - ], - "baseline": [ - "AzureGov" - ], - "calculatebaseline": [ - "AzureGov" - ] - }, - "2017-04-01": { - "activityLogAlerts": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-06-17-preview": { - "workbooks": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-08-01-preview": { - "logs": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.KeyVault": { - "2018-02-14-preview": { - "vaults": [ - "AzureGov", - "AzureChina" - ], - "vaults/secrets": [ - "AzureGov", - "AzureChina" - ], - "vaults/accessPolicies": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "deletedVaults": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/deletedVaults": [ - "AzureGov", - "AzureChina" - ], - "locations/deleteVirtualNetworkOrSubnets": [ - "AzureGov", - "AzureChina" - ], - "locations/operationResults": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Logic": { - "2018-07-01-preview": { - "integrationAccounts": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.MarketplaceOrdering": { - "2015-06-01": { - "agreements": [ - "AzureGov" - ], - "operations": [ - "AzureGov" - ], - "offertypes": [ - "AzureGov" - ] - } - }, - "Microsoft.Media": { - "2018-07-01": { - "mediaservices": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/assets": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/contentKeyPolicies": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/streamingLocators": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/streamingPolicies": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/transforms": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/transforms/jobs": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/streamingEndpoints": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/liveEvents": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/liveEvents/liveOutputs": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/streamingEndpointOperations": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/liveEventOperations": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/liveOutputOperations": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/assets/assetFilters": [ - "AzureGov", - "AzureChina" - ], - "mediaservices/accountFilters": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/checkNameAvailability": [ - "AzureGov", - "AzureChina" - ] - }, - "2015-10-01": { - "checknameavailability": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Migrate": { - "2018-02-02": { - "projects": [ - "AzureGov" - ], - "operations": [ - "AzureGov" - ], - "locations": [ - "AzureGov" - ], - "locations/checkNameAvailability": [ - "AzureGov" - ], - "locations/assessmentOptions": [ - "AzureGov" - ] - } - }, - "Microsoft.Network": { - "2019-02-01": { - "virtualNetworks": [ - "AzureGov", - "AzureChina" - ], - "publicIPAddresses": [ - "AzureGov", - "AzureChina" - ], - "networkInterfaces": [ - "AzureGov", - "AzureChina" - ], - "privateEndpoints": [ - "AzureGov", - "AzureChina" - ], - "loadBalancers": [ - "AzureGov", - "AzureChina" - ], - "networkSecurityGroups": [ - "AzureGov", - "AzureChina" - ], - "applicationSecurityGroups": [ - "AzureGov", - "AzureChina" - ], - "serviceEndpointPolicies": [ - "AzureGov", - "AzureChina" - ], - "networkIntentPolicies": [ - "AzureGov", - "AzureChina" - ], - "routeTables": [ - "AzureGov", - "AzureChina" - ], - "publicIPPrefixes": [ - "AzureGov", - "AzureChina" - ], - "ddosCustomPolicies": [ - "AzureGov", - "AzureChina" - ], - "networkWatchers": [ - "AzureGov", - "AzureChina" - ], - "networkWatchers/connectionMonitors": [ - "AzureGov", - "AzureChina" - ], - "networkWatchers/pingMeshes": [ - "AzureGov", - "AzureChina" - ], - "virtualNetworkGateways": [ - "AzureGov", - "AzureChina" - ], - "localNetworkGateways": [ - "AzureGov", - "AzureChina" - ], - "connections": [ - "AzureGov", - "AzureChina" - ], - "applicationGateways": [ - "AzureGov", - "AzureChina" - ], - "applicationGatewayWebApplicationFirewallPolicies": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/operations": [ - "AzureGov", - "AzureChina" - ], - "locations/operationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/CheckDnsNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "locations/usages": [ - "AzureGov", - "AzureChina" - ], - "locations/virtualNetworkAvailableEndpointServices": [ - "AzureGov", - "AzureChina" - ], - "locations/availableDelegations": [ - "AzureGov", - "AzureChina" - ], - "locations/serviceTags": [ - "AzureGov", - "AzureChina" - ], - "locations/availablePrivateEndpointResources": [ - "AzureGov", - "AzureChina" - ], - "locations/supportedVirtualMachineSizes": [ - "AzureGov", - "AzureChina" - ], - "locations/checkAcceleratedNetworkingSupport": [ - "AzureGov", - "AzureChina" - ], - "locations/validateResourceOwnership": [ - "AzureGov", - "AzureChina" - ], - "locations/setResourceOwnership": [ - "AzureGov", - "AzureChina" - ], - "locations/effectiveResourceOwnership": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "expressRouteCircuits": [ - "AzureGov", - "AzureChina" - ], - "expressRouteCrossConnections": [ - "AzureGov", - "AzureChina" - ], - "expressRouteServiceProviders": [ - "AzureGov", - "AzureChina" - ], - "applicationGatewayAvailableWafRuleSets": [ - "AzureGov", - "AzureChina" - ], - "applicationGatewayAvailableSslOptions": [ - "AzureGov", - "AzureChina" - ], - "applicationGatewayAvailableServerVariables": [ - "AzureGov", - "AzureChina" - ], - "applicationGatewayAvailableRequestHeaders": [ - "AzureGov", - "AzureChina" - ], - "applicationGatewayAvailableResponseHeaders": [ - "AzureGov", - "AzureChina" - ], - "routeFilters": [ - "AzureGov", - "AzureChina" - ], - "bgpServiceCommunities": [ - "AzureGov", - "AzureChina" - ], - "azureFirewalls": [ - "AzureGov", - "AzureChina" - ], - "azureFirewallFqdnTags": [ - "AzureGov", - "AzureChina" - ], - "virtualNetworkTaps": [ - "AzureGov", - "AzureChina" - ], - "privateLinkServices": [ - "AzureGov", - "AzureChina" - ], - "ddosProtectionPlans": [ - "AzureGov", - "AzureChina" - ], - "networkProfiles": [ - "AzureGov", - "AzureChina" - ], - "locations/bareMetalTenants": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-05-01": { - "dnszones": [ - "AzureGov", - "AzureChina" - ], - "dnsOperationResults": [ - "AzureGov", - "AzureChina" - ], - "dnsOperationStatuses": [ - "AzureGov", - "AzureChina" - ], - "getDnsResourceReference": [ - "AzureGov", - "AzureChina" - ], - "internalNotify": [ - "AzureGov", - "AzureChina" - ], - "dnszones/A": [ - "AzureGov", - "AzureChina" - ], - "dnszones/AAAA": [ - "AzureGov", - "AzureChina" - ], - "dnszones/CNAME": [ - "AzureGov", - "AzureChina" - ], - "dnszones/PTR": [ - "AzureGov", - "AzureChina" - ], - "dnszones/MX": [ - "AzureGov", - "AzureChina" - ], - "dnszones/TXT": [ - "AzureGov", - "AzureChina" - ], - "dnszones/SRV": [ - "AzureGov", - "AzureChina" - ], - "dnszones/SOA": [ - "AzureGov", - "AzureChina" - ], - "dnszones/NS": [ - "AzureGov", - "AzureChina" - ], - "dnszones/CAA": [ - "AzureGov", - "AzureChina" - ], - "dnszones/recordsets": [ - "AzureGov", - "AzureChina" - ], - "dnszones/all": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-08-01": { - "trafficmanagerprofiles": [ - "AzureGov", - "AzureChina" - ], - "checkTrafficManagerNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "trafficManagerGeographicHierarchies": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.NotificationHubs": { - "2017-04-01": { - "namespaces": [ - "AzureGov", - "AzureChina" - ], - "namespaces/notificationHubs": [ - "AzureGov", - "AzureChina" - ], - "checkNamespaceAvailability": [ - "AzureGov", - "AzureChina" - ], - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ] - }, - "2016-03-01": { - "operations": [ - "AzureGov", - "AzureChina" - ], - "operationResults": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.OperationalInsights": { - "2015-03-20": { - "linkTargets": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.OperationsManagement": { - "2015-11-01-preview": { - "solutions": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-08-21-preview": { - "views": [ - "AzureChina" - ] - } - }, - "Microsoft.PolicyInsights": { - "2018-04-04": { - "policyEvents": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-07-01-preview": { - "policyStates": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "asyncOperationResults": [ - "AzureGov", - "AzureChina" - ], - "remediations": [ - "AzureGov", - "AzureChina" - ], - "policyTrackedResources": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Portal": { - "2018-10-01-preview": { - "dashboards": [ - "AzureGov", - "AzureChina" - ] - }, - "2015-08-01-preview": { - "operations": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.PowerBI": { - "2016-01-29": { - "workspaceCollections": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/checkNameAvailability": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.PowerBIDedicated": { - "2017-10-01": { - "capacities": [ - "AzureGov", - "AzureChina" - ], - "locations/checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "locations/operationresults": [ - "AzureGov", - "AzureChina" - ], - "locations/operationstatuses": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-01-01-preview": { - "locations": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.RecoveryServices": { - "2016-08-10": { - "operations": [ - "AzureGov", - "AzureChina" - ] - }, - "2016-06-01": { - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/backupStatus": [ - "AzureGov", - "AzureChina" - ], - "locations/allocatedStamp": [ - "AzureGov", - "AzureChina" - ], - "locations/allocateStamp": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-01-10": { - "locations/checkNameAvailability": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-07-01": { - "locations/backupValidateFeatures": [ - "AzureGov", - "AzureChina" - ], - "locations/backupPreValidateProtection": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Relay": { - "2017-04-01": { - "namespaces": [ - "AzureGov", - "AzureChina" - ], - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.ResourceHealth": { - "2017-07-01": { - "availabilityStatuses": [ - "AzureGov", - "AzureChina" - ] - }, - "2015-01-01": { - "operations": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Resources": { - "2016-09-01": { - "tenants": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "providers": [ - "AzureGov", - "AzureChina" - ], - "checkresourcename": [ - "AzureGov", - "AzureChina" - ], - "resources": [ - "AzureGov", - "AzureChina" - ], - "subscriptions": [ - "AzureGov", - "AzureChina" - ], - "subscriptions/resources": [ - "AzureGov", - "AzureChina" - ], - "subscriptions/providers": [ - "AzureGov", - "AzureChina" - ], - "subscriptions/operationresults": [ - "AzureGov", - "AzureChina" - ], - "resourceGroups": [ - "AzureGov", - "AzureChina" - ], - "subscriptions/resourceGroups": [ - "AzureGov", - "AzureChina" - ], - "subscriptions/resourcegroups/resources": [ - "AzureGov", - "AzureChina" - ], - "subscriptions/locations": [ - "AzureGov", - "AzureChina" - ], - "subscriptions/tagnames": [ - "AzureGov", - "AzureChina" - ], - "subscriptions/tagNames/tagValues": [ - "AzureGov", - "AzureChina" - ], - "deployments": [ - "AzureGov", - "AzureChina" - ], - "deployments/operations": [ - "AzureGov", - "AzureChina" - ], - "links": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Scheduler": { - "2016-03-01": { - "jobcollections": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "operationResults": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Search": { - "2015-08-19": { - "searchServices": [ - "AzureGov", - "AzureChina" - ], - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "resourceHealthMetadata": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ] - }, - "2015-02-28": { - "checkServiceNameAvailability": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.ServiceBus": { - "2018-01-01-preview": { - "namespaces": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-04-01": { - "namespaces/authorizationrules": [ - "AzureGov" - ], - "namespaces/queues": [ - "AzureGov" - ], - "namespaces/queues/authorizationrules": [ - "AzureGov" - ], - "namespaces/topics": [ - "AzureGov" - ], - "namespaces/topics/authorizationrules": [ - "AzureGov" - ], - "namespaces/topics/subscriptions": [ - "AzureGov" - ], - "namespaces/topics/subscriptions/rules": [ - "AzureGov" - ], - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "sku": [ - "AzureGov", - "AzureChina" - ], - "premiumMessagingRegions": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ] - }, - "2015-08-01": { - "checkNamespaceAvailability": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.ServiceFabric": { - "2018-02-01": { - "clusters": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/clusterVersions": [ - "AzureGov", - "AzureChina" - ], - "locations/operations": [ - "AzureGov", - "AzureChina" - ], - "locations/operationResults": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Solutions": { - "2018-09-01-preview": { - "applications": [ - "AzureGov" - ], - "applicationDefinitions": [ - "AzureGov" - ], - "locations": [ - "AzureGov" - ], - "locations/operationstatuses": [ - "AzureGov" - ], - "operations": [ - "AzureGov" - ] - } - }, - "Microsoft.Sql": { - "2017-03-01-preview": { - "operations": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/backupLongTermRetentionPolicies": [ - "AzureGov", - "AzureChina" - ], - "servers/automaticTuning": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/automaticTuning": [ - "AzureGov", - "AzureChina" - ], - "servers/securityAlertPolicies": [ - "AzureGov", - "AzureChina" - ], - "servers/extendedAuditingSettings": [ - "AzureGov", - "AzureChina" - ], - "locations/extendedAuditingSettingsAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/extendedAuditingSettingsOperationResults": [ - "AzureGov", - "AzureChina" - ], - "servers/jobAgents": [ - "AzureGov", - "AzureChina" - ], - "locations/jobAgentOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/jobAgentAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "servers/jobAgents/jobs": [ - "AzureGov", - "AzureChina" - ], - "servers/jobAgents/jobs/steps": [ - "AzureGov", - "AzureChina" - ], - "servers/jobAgents/jobs/executions": [ - "AzureGov", - "AzureChina" - ], - "servers/dnsAliases": [ - "AzureGov", - "AzureChina" - ], - "locations/dnsAliasAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/dnsAliasOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/databaseRestoreAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/VulnerabilityAssessment": [ - "AzureGov", - "AzureChina" - ], - "managedInstances/administrators": [ - "AzureGov", - "AzureChina" - ], - "managedInstances/databases": [ - "AzureGov", - "AzureChina" - ], - "locations/managedDatabaseAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/managedDatabaseOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/managedDatabaseRestoreAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/managedDatabaseRestoreOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/managedServerSecurityAlertPoliciesAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/managedServerSecurityAlertPoliciesOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/securityAlertPoliciesAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/securityAlertPoliciesOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/administratorAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/administratorOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/longTermRetentionServers": [ - "AzureGov", - "AzureChina" - ], - "locations/longTermRetentionBackups": [ - "AzureGov", - "AzureChina" - ], - "locations/longTermRetentionPolicyOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/longTermRetentionPolicyAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/longTermRetentionBackupOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/longTermRetentionBackupAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/managedShortTermRetentionPolicyOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/managedShortTermRetentionPolicyAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ] - }, - "2014-04-01-preview": { - "locations": [ - "AzureGov", - "AzureChina" - ], - "servers/serviceObjectives": [ - "AzureGov", - "AzureChina" - ], - "servers/communicationLinks": [ - "AzureGov" - ], - "servers/administrators": [ - "AzureGov", - "AzureChina" - ], - "servers/administratorOperationResults": [ - "AzureGov", - "AzureChina" - ], - "servers/restorableDroppedDatabases": [ - "AzureGov", - "AzureChina" - ], - "servers/recoverableDatabases": [ - "AzureGov", - "AzureChina" - ], - "servers/import": [ - "AzureGov", - "AzureChina" - ], - "servers/importExportOperationResults": [ - "AzureGov", - "AzureChina" - ], - "servers/operationResults": [ - "AzureGov", - "AzureChina" - ], - "servers/databaseSecurityPolicies": [ - "AzureGov", - "AzureChina" - ], - "servers/auditingPolicies": [ - "AzureGov", - "AzureChina" - ], - "servers/recommendedElasticPools": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/auditingPolicies": [ - "AzureGov" - ], - "servers/databases/connectionPolicies": [ - "AzureGov" - ], - "servers/connectionPolicies": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/dataMaskingPolicies": [ - "AzureGov" - ], - "servers/databases/dataMaskingPolicies/rules": [ - "AzureGov" - ], - "servers/disasterRecoveryConfiguration": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/metricDefinitions": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/metrics": [ - "AzureGov", - "AzureChina" - ], - "servers/aggregatedDatabaseMetrics": [ - "AzureGov" - ], - "servers/elasticpools/metrics": [ - "AzureGov" - ], - "servers/elasticpools/metricdefinitions": [ - "AzureGov" - ], - "servers/databases/topQueries": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/topQueries/queryText": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/extensions": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-06-01-preview": { - "locations/capabilities": [ - "AzureGov", - "AzureChina" - ], - "locations/databaseAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/databaseOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/serverKeyAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/serverKeyOperationResults": [ - "AzureGov", - "AzureChina" - ], - "servers/keys": [ - "AzureGov", - "AzureChina" - ], - "servers/encryptionProtector": [ - "AzureGov", - "AzureChina" - ], - "locations/encryptionProtectorOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/encryptionProtectorAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/serverAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/serverOperationResults": [ - "AzureGov", - "AzureChina" - ], - "servers": [ - "AzureGov", - "AzureChina" - ], - "servers/databases": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/transparentDataEncryption": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/securityAlertPolicies": [ - "AzureGov", - "AzureChina" - ], - "servers/vulnerabilityAssessments": [ - "AzureGov", - "AzureChina" - ], - "managedInstances/vulnerabilityAssessments": [ - "AzureGov", - "AzureChina" - ], - "managedInstances": [ - "AzureGov", - "AzureChina" - ], - "locations/managedInstanceAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/managedInstanceOperationResults": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-10-01-preview": { - "locations/managedInstanceKeyAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/managedInstanceKeyOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/managedInstanceEncryptionProtectorOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/managedInstanceEncryptionProtectorAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "servers/tdeCertificates": [ - "AzureGov", - "AzureChina" - ], - "locations/tdeCertAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/tdeCertOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/elasticPoolAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/elasticPoolOperationResults": [ - "AzureGov", - "AzureChina" - ], - "servers/elasticpools": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/vulnerabilityAssessments": [ - "AzureGov", - "AzureChina" - ], - "managedInstances/databases/vulnerabilityAssessments": [ - "AzureGov", - "AzureChina" - ], - "locations/vulnerabilityAssessmentScanAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/vulnerabilityAssessmentScanOperationResults": [ - "AzureGov", - "AzureChina" - ], - "managedInstances/recoverableDatabases": [ - "AzureGov", - "AzureChina" - ], - "managedInstances/metrics": [ - "AzureGov", - "AzureChina" - ], - "managedInstances/metricDefinitions": [ - "AzureGov", - "AzureChina" - ], - "managedInstances/tdeCertificates": [ - "AzureGov", - "AzureChina" - ], - "locations/managedInstanceTdeCertAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/managedInstanceTdeCertOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/shortTermRetentionPolicyOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/shortTermRetentionPolicyAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/instanceFailoverGroups": [ - "AzureGov", - "AzureChina" - ], - "locations/instanceFailoverGroupAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/instanceFailoverGroupOperationResults": [ - "AzureGov", - "AzureChina" - ] - }, - "2015-05-01-preview": { - "servers/databases/geoBackupPolicies": [ - "AzureGov", - "AzureChina" - ], - "servers/failoverGroups": [ - "AzureGov", - "AzureChina" - ], - "locations/failoverGroupAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/failoverGroupOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/deleteVirtualNetworkOrSubnets": [ - "AzureGov", - "AzureChina" - ], - "servers/virtualNetworkRules": [ - "AzureGov", - "AzureChina" - ], - "locations/virtualNetworkRulesOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/virtualNetworkRulesAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "locations/deleteVirtualNetworkOrSubnetsOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/deleteVirtualNetworkOrSubnetsAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ], - "servers/advisors": [ - "AzureGov", - "AzureChina" - ], - "servers/elasticPools/advisors": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/advisors": [ - "AzureGov", - "AzureChina" - ], - "servers/elasticPoolEstimates": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/auditRecords": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/VulnerabilityAssessmentScans": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/VulnerabilityAssessmentSettings": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/syncGroups": [ - "AzureGov", - "AzureChina" - ], - "servers/databases/syncGroups/syncMembers": [ - "AzureGov", - "AzureChina" - ], - "servers/syncAgents": [ - "AzureGov", - "AzureChina" - ], - "virtualClusters": [ - "AzureGov", - "AzureChina" - ], - "locations/syncGroupOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/syncMemberOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/syncAgentOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/syncDatabaseIds": [ - "AzureGov", - "AzureChina" - ], - "locations/firewallRulesOperationResults": [ - "AzureGov", - "AzureChina" - ], - "locations/firewallRulesAzureAsyncOperation": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.Storage": { - "2019-04-01": { - "storageAccounts": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "locations/asyncoperations": [ - "AzureGov", - "AzureChina" - ], - "storageAccounts/listAccountSas": [ - "AzureGov", - "AzureChina" - ], - "storageAccounts/listServiceSas": [ - "AzureGov", - "AzureChina" - ], - "storageAccounts/blobServices": [ - "AzureGov", - "AzureChina" - ], - "storageAccounts/tableServices": [ - "AzureGov", - "AzureChina" - ], - "storageAccounts/queueServices": [ - "AzureGov", - "AzureChina" - ], - "storageAccounts/fileServices": [ - "AzureGov", - "AzureChina" - ], - "locations/usages": [ - "AzureGov", - "AzureChina" - ], - "locations/deleteVirtualNetworkOrSubnets": [ - "AzureGov", - "AzureChina" - ], - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ] - }, - "2017-10-01": { - "locations": [ - "AzureGov", - "AzureChina" - ], - "usages": [ - "AzureGov", - "AzureChina" - ] - } - }, - "Microsoft.StorageSync": { - "2019-02-01": { - "storageSyncServices": [ - "AzureGov" - ], - "storageSyncServices/syncGroups": [ - "AzureGov" - ], - "storageSyncServices/syncGroups/cloudEndpoints": [ - "AzureGov" - ], - "storageSyncServices/syncGroups/serverEndpoints": [ - "AzureGov" - ], - "storageSyncServices/registeredServers": [ - "AzureGov" - ], - "storageSyncServices/workflows": [ - "AzureGov" - ], - "operations": [ - "AzureGov" - ], - "locations": [ - "AzureGov" - ], - "locations/checkNameAvailability": [ - "AzureGov" - ], - "locations/workflows": [ - "AzureGov" - ] - } - }, - "Microsoft.Web": { - "2018-02-01": { - "publishingUsers": [ - "AzureGov", - "AzureChina" - ], - "ishostnameavailable": [ - "AzureGov", - "AzureChina" - ], - "isusernameavailable": [ - "AzureGov", - "AzureChina" - ], - "sourceControls": [ - "AzureGov", - "AzureChina" - ], - "availableStacks": [ - "AzureGov", - "AzureChina" - ], - "listSitesAssignedToHostName": [ - "AzureGov", - "AzureChina" - ], - "sites/hostNameBindings": [ - "AzureGov", - "AzureChina" - ], - "sites/slots/hostNameBindings": [ - "AzureGov", - "AzureChina" - ], - "operations": [ - "AzureGov", - "AzureChina" - ], - "serverFarms": [ - "AzureGov", - "AzureChina" - ], - "runtimes": [ - "AzureGov", - "AzureChina" - ], - "georegions": [ - "AzureGov", - "AzureChina" - ], - "sites/premieraddons": [ - "AzureGov", - "AzureChina" - ], - "deploymentLocations": [ - "AzureGov", - "AzureChina" - ], - "ishostingenvironmentnameavailable": [ - "AzureGov", - "AzureChina" - ], - "checkNameAvailability": [ - "AzureGov", - "AzureChina" - ], - "billingMeters": [ - "AzureGov", - "AzureChina" - ], - "hostingEnvironments": [ - "AzureGov", - "AzureChina" - ], - "hostingEnvironments/multiRolePools": [ - "AzureGov", - "AzureChina" - ], - "hostingEnvironments/workerPools": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-07-01-preview": { - "connections": [ - "AzureGov", - "AzureChina" - ], - "customApis": [ - "AzureGov", - "AzureChina" - ], - "locations": [ - "AzureGov", - "AzureChina" - ], - "locations/managedApis": [ - "AzureGov", - "AzureChina" - ], - "locations/apiOperations": [ - "AzureGov", - "AzureChina" - ] - }, - "2018-03-01-preview": { - "locations/listWsdlInterfaces": [ - "AzureGov", - "AzureChina" - ], - "locations/extractApiDefinitionFromWsdl": [ - "AzureGov", - "AzureChina" - ], - "locations/runtimes": [ - "AzureGov" - ], - "connectionGateways": [ - "AzureGov", - "AzureChina" - ], - "locations/connectionGatewayInstallations": [ - "AzureGov", - "AzureChina" - ] - } - } + "2018-03-01-preview": { + "locations/listWsdlInterfaces": [ + "AzureGov", + "AzureChina" + ], + "locations/extractApiDefinitionFromWsdl": [ + "AzureGov", + "AzureChina" + ], + "locations/runtimes": [ + "AzureGov" + ], + "connectionGateways": [ + "AzureGov", + "AzureChina" + ], + "locations/connectionGatewayInstallations": [ + "AzureGov", + "AzureChina" + ] } + } } + } } diff --git a/profiles/definitions/hybrid-2018-03-01.md b/profiles/definitions/hybrid-2018-03-01.md new file mode 100644 index 000000000000..59afbc7bfc58 --- /dev/null +++ b/profiles/definitions/hybrid-2018-03-01.md @@ -0,0 +1,134 @@ +# Hybrid Profile Definition - Azure Stack 1807 and Azure Cloud + +> see https://aka.ms/autorest + +Profile definition targeted for hybrid applications that could run on azure stack 1808 version and azure cloud. + +``` yaml +profiles: + hybrid-2018-03-01: + resources: + microsoft.authorization: + '2016-09-01': + - locks + '2015-07-01': + - operations + - permissions + - roleAssignments + - roleDefinitions + '2016-12-01': + - policyAssignments + - policyDefinitions + microsoft.compute: + '2017-03-30': + - availabilitySets + - locations + - disks + - diskoperations + - locations/diskoperations + - locations/publishers + - locations/operations + - locations/usages + - locations/vmSizes + - operations + - snapshots + - virtualMachines + - virtualMachines/extensions + - virtualMachineScaleSets + - virtualMachineScaleSets/extensions + - virtualMachineScaleSets/networkInterfaces + - virtualMachineScaleSets/virtualMachines + - virtualMachineScaleSets/virtualMachines/networkInterfaces + microsoft.keyvault: + '2016-10-01': + - operations + - vaults + - vaults/accessPolicies + - vaults/secrets + microsoft.network: + '2017-10-01': + - connections + - loadBalancers + - localNetworkGateways + - locations + - locations/operationResults + - locations/operations + - locations/usages + - networkInterfaces + - networkSecurityGroups + - operations + - publicIpAddresses + - routeTables + - virtualNetworkGateways + - virtualNetworks + '2016-04-01': + - dnsZones + microsoft.resources: + '2016-06-01': + - subscriptions + - subscriptions/locations + - tenants + '2018-02-01': + - deployments + - deployments/operations + - links + - locations + - operations + - providers + - resourceGroups + - resources + - subscriptions/operationresults + - subscriptions/providers + - subscriptions/resourceGroups + - subscriptions/resourceGroups/resources + - subscriptions/resources + - subscriptions/tagNames + - subscriptions/tagNames/tagValues + microsoft.storage: + '2016-01-01': + - checkNameAvailability + - locations + - locations/quotas + - operations + - storageAccounts + - usages + microsoft.web: + '2016-03-01': + - certificates + - deploymentLocations + - georegions + - operations + - recommendations + - runtimes + - validate + '2016-08-01': + - availableStacks + - checknameavailability + - ishostnameavailable + - isusernameavailable + - metadata + - publishingUsers + - sourceControls + - sites + - sites/domainOwnershipIdentifiers + - sites/extensions + - sites/hostNameBindings + - sites/instances + - sites/instances/extensions + - sites/metrics + - sites/metricDefinitions + - sites/recommendations + - sites/slots + - sites/slots/extensions + - sites/slots/hostNameBindings + - sites/slots/instances + - sites/slots/instances/extensions + - sites/slots/metrics + - sites/slots/metricDefinitions + '2016-09-01': + - serverFarms + - serverFarms/metrics + - serverFarms/metricDefinitions + - serverFarms/usages + operations: {} +``` \ No newline at end of file diff --git a/profiles/definitions/hybrid-2019-03-01.md b/profiles/definitions/hybrid-2019-03-01.md new file mode 100644 index 000000000000..f4db51f80b79 --- /dev/null +++ b/profiles/definitions/hybrid-2019-03-01.md @@ -0,0 +1,159 @@ +# Hybrid Profile Definition - Azure Stack 1807 and Azure Cloud + +> see https://aka.ms/autorest + +Profile definition targeted for hybrid applications that could run on azure stack general availability version and azure cloud for 1903. + +```yaml +profiles: + hybrid-2019-03-01: + resources: + microsoft.authorization: + '2016-09-01': + - locks + '2016-12-01': + - policyDefinitions + - policyAssignments + '2015-07-01': + - operations + - permissions + - roleAssignments + - roleDefinitions + - providerOperations + microsoft.compute: + '2017-12-01': + - availabilitySets + - images + - locations + - locations/publishers + - locations/operations + - locations/usages + - locations/vmSizes + - operations + - virtualMachines + - virtualMachines/extensions + - virtualMachineScaleSets + - virtualMachineScaleSets/extensions + - virtualmachineScaleSets/networkInterfaces + - virtualMachineScaleSets/virtualMachines + - virtualMachineScaleSets/virtualMachines/networkInterfaces + '2017-03-30': + - disks + - locations/diskoperations + - snapshots + microsoft.eventhub: + 2018-01-01-preview: + - namespaces + - checkNameAvailability + - sku + - operations + '2015-08-01': + - checkNamespaceAvailability + microsoft.insights: + '2018-01-01': + - metricDefinitions + - metrics + 2017-05-01-preview: + - diagnosticSettings + - diagnosticSettingCategories + '2015-04-01': + - eventTypes + - eventCategories + - operations + microsoft.keyvault: + '2016-10-01': + - operations + - vaults + - vaults/accessPolicies + - vaults/secrets + microsoft.network: + '2017-10-01': + - connections + - loadBalancers + - localNetworkGateways + - locations + - locations/operationResults + - locations/operations + - locations/usages + - networkInterfaces + - networkSecurityGroups + - operations + - publicIpAddresses + - routeTables + - virtualNetworkGateways + - virtualNetworks + '2016-04-01': + - dnsZones + microsoft.resources: + '2018-05-01': + - deployments + - deployments/operations + - links + - locations + - operations + - providers + - resourceGroups + - resources + - subscriptions + - subscriptions/locations + - subscriptions/operationresults + - subscriptions/providers + - subscriptions/resourceGroups + - subscriptions/resourceGroups/resources + - subscriptions/resources + - subscriptions/tagNames + - subscriptions/tagNames/tagValues + - tenants + microsoft.storage: + '2017-10-01': + - checkNameAvailability + - locations + - locations/quotas + - operations + - storageAccounts + - storageAccounts/blobServices + - storageAccounts/queueServices + - storageAccounts/tableServices + - usages + microsoft.web: + '2018-02-01': + - certificates + - operations + - checknameavailability + - sites + - sites/domainOwnershipIdentifiers + - sites/extensions + - sites/hostNameBindings + - sites/instances + - sites/instances/extensions + - sites/slots + - sites/slots/hostNameBindings + - sites/slots/instances + - sites/slots/instances/extensions + - serverFarms + '2016-09-01': + - serverFarms/metricDefinitions + - serverFarms/metrics + - serverFarms/usages + '2016-08-01': + - metadata + - sites/metricDefinitions + - sites/metrics + - sites/recommendations + - sites/slots/extensions + - sites/slots/metricDefinitions + - sites/slots/metrics + '2016-03-01': + - availableStacks + - deploymentLocations + - georegions + - ishostnameavailable + - isusernameavailable + - listSitesAssignedToHostName + - publishingUsers + - recommendations + - runtimes + - sourceControls + - validate + operations: {} +``` diff --git a/profiles/definitions/latest-2019-04-01.md b/profiles/definitions/latest-2019-04-01.md new file mode 100644 index 000000000000..96949d5f9e18 --- /dev/null +++ b/profiles/definitions/latest-2019-04-01.md @@ -0,0 +1,3464 @@ +# Latest Azure Profile + +> see https://aka.ms/autorest + +``` yaml +profiles: + latest-2019-04-01: + resources: + microsoft.network: + '2019-04-01': + - checkFrontDoorNameAvailability + - frontDoors + - frontDoors/backendPools + - frontDoors/frontendEndpoints + - frontDoors/frontendEndpoints/disableHttps + - frontDoors/frontendEndpoints/enableHttps + - frontDoors/healthProbeSettings + - frontDoors/loadBalancingSettings + - frontDoors/purge + - frontDoors/routingRules + - frontDoors/validateCustomDomain + '2019-03-01': + - FrontDoorWebApplicationFirewallManagedRuleSets + - FrontDoorWebApplicationFirewallPolicies + '2018-12-01': + - ApplicationGatewayWebApplicationFirewallPolicies + - ExpressRoutePorts + - ExpressRoutePorts/links + - ExpressRoutePortsLocations + - applicationGatewayAvailableRequestHeaders + - applicationGatewayAvailableResponseHeaders + - applicationGatewayAvailableServerVariables + - applicationGatewayAvailableSslOptions + - applicationGatewayAvailableSslOptions/predefinedPolicies + - applicationGatewayAvailableWafRuleSets + - applicationGateways + - applicationGateways/backendhealth + - applicationGateways/start + - applicationGateways/stop + - applicationSecurityGroups + - azureFirewallFqdnTags + - azureFirewalls + - bgpServiceCommunities + - connections + - connections/sharedkey + - connections/vpndeviceconfigurationscript + - ddosCustomPolicies + - ddosProtectionPlans + - expressRouteCircuits + - expressRouteCircuits/authorizations + - expressRouteCircuits/peerings + - expressRouteCircuits/peerings/arpTables + - expressRouteCircuits/peerings/connections + - expressRouteCircuits/peerings/peerConnections + - expressRouteCircuits/peerings/routeTables + - expressRouteCircuits/peerings/routeTablesSummary + - expressRouteCircuits/peerings/stats + - expressRouteCircuits/stats + - expressRouteCrossConnections + - expressRouteCrossConnections/peerings + - expressRouteCrossConnections/peerings/arpTables + - expressRouteCrossConnections/peerings/routeTables + - expressRouteCrossConnections/peerings/routeTablesSummary + - expressRouteGateways + - expressRouteGateways/expressRouteConnections + - expressRouteServiceProviders + - interfaceEndpoints + - loadBalancers + - loadBalancers/backendAddressPools + - loadBalancers/frontendIPConfigurations + - loadBalancers/inboundNatRules + - loadBalancers/loadBalancingRules + - loadBalancers/networkInterfaces + - loadBalancers/outboundRules + - loadBalancers/probes + - localNetworkGateways + - locations/CheckDnsNameAvailability + - locations/availableDelegations + - locations/usages + - locations/virtualNetworkAvailableEndpointServices + - networkInterfaces + - networkInterfaces/effectiveNetworkSecurityGroups + - networkInterfaces/effectiveRouteTable + - networkInterfaces/ipConfigurations + - networkInterfaces/loadBalancers + - networkInterfaces/tapConfigurations + - networkProfiles + - networkSecurityGroups + - networkSecurityGroups/defaultSecurityRules + - networkSecurityGroups/securityRules + - networkWatchers + - networkWatchers/availableProvidersList + - networkWatchers/azureReachabilityReport + - networkWatchers/configureFlowLog + - networkWatchers/connectionMonitors + - networkWatchers/connectionMonitors/query + - networkWatchers/connectionMonitors/start + - networkWatchers/connectionMonitors/stop + - networkWatchers/connectivityCheck + - networkWatchers/ipFlowVerify + - networkWatchers/networkConfigurationDiagnostic + - networkWatchers/nextHop + - networkWatchers/packetCaptures + - networkWatchers/packetCaptures/queryStatus + - networkWatchers/packetCaptures/stop + - networkWatchers/queryFlowLogStatus + - networkWatchers/queryTroubleshootResult + - networkWatchers/securityGroupView + - networkWatchers/topology + - networkWatchers/troubleshoot + - operations + - p2svpnGateways + - p2svpnGateways/generatevpnprofile + - publicIPAddresses + - publicIPPrefixes + - routeFilters + - routeFilters/routeFilterRules + - routeTables + - routeTables/routes + - serviceEndpointPolicies + - serviceEndpointPolicies/serviceEndpointPolicyDefinitions + - virtualHubs + - virtualHubs/hubVirtualNetworkConnections + - virtualNetworkGateways + - virtualNetworkGateways/connections + - virtualNetworkGateways/generatevpnclientpackage + - virtualNetworkGateways/generatevpnprofile + - virtualNetworkGateways/getAdvertisedRoutes + - virtualNetworkGateways/getBgpPeerStatus + - virtualNetworkGateways/getLearnedRoutes + - virtualNetworkGateways/getvpnclientipsecparameters + - virtualNetworkGateways/getvpnprofilepackageurl + - virtualNetworkGateways/reset + - virtualNetworkGateways/resetvpnclientsharedkey + - virtualNetworkGateways/setvpnclientipsecparameters + - virtualNetworkGateways/supportedvpndevices + - virtualNetworkTaps + - virtualNetworks + - virtualNetworks/CheckIPAddressAvailability + - virtualNetworks/subnets + - virtualNetworks/subnets/PrepareNetworkPolicies + - virtualNetworks/usages + - virtualNetworks/virtualNetworkPeerings + - virtualWans + - virtualWans/p2sVpnServerConfigurations + - virtualWans/supportedSecurityProviders + - virtualWans/vpnConfiguration + - vpnGateways + - vpnGateways/vpnConnections + - vpnSites + '2018-09-01': + - privateDnsZones + - privateDnsZones/ALL + - privateDnsZones/virtualNetworkLinks + '2018-05-01': + - dnsZones/all + - dnsZones/recordsets + - dnszones + - getDnsResourceReference + '2018-04-01': + - checkTrafficManagerNameAvailability + - trafficManagerGeographicHierarchies + - trafficManagerUserMetricsKeys + - trafficmanagerprofiles + - trafficmanagerprofiles/heatMaps + '2015-06-15': + - expressRouteCircuits/arpTable + - expressRouteCircuits/routesTable + microsoft.resourcegraph: + '2019-04-01': + - operations + - resources + microsoft.costmanagement: + 2019-03-01-preview: + - Forecast + - Query + - cloudConnectors + - dimensions + - externalBillingAccounts + - externalBillingAccounts/externalSubscriptions + - externalSubscriptions + - operations + - showbackRules + '2019-01-01': + - exports + - exports/run + - exports/runHistory + 2018-08-01-preview: + - alerts + - alerts/UpdateStatus + - connectors + - reports + - reports/run + - reports/runHistory + '2018-05-31': + - reportconfigs + microsoft.peering: + 2019-03-01-preview: + - legacyPeerings + - operations + - peerAsns + - peeringLocations + - peerings + microsoft.databoxedge: + '2019-03-01': + - dataBoxEdgeDevices + - dataBoxEdgeDevices/alerts + - dataBoxEdgeDevices/bandwidthSchedules + - dataBoxEdgeDevices/downloadUpdates + - dataBoxEdgeDevices/getExtendedInformation + - dataBoxEdgeDevices/installUpdates + - dataBoxEdgeDevices/jobs + - dataBoxEdgeDevices/networkSettings + - dataBoxEdgeDevices/operationsStatus + - dataBoxEdgeDevices/orders + - dataBoxEdgeDevices/roles + - dataBoxEdgeDevices/scanForUpdates + - dataBoxEdgeDevices/securitySettings/update + - dataBoxEdgeDevices/shares + - dataBoxEdgeDevices/shares/refresh + - dataBoxEdgeDevices/storageAccountCredentials + - dataBoxEdgeDevices/triggers + - dataBoxEdgeDevices/updateSummary + - dataBoxEdgeDevices/uploadCertificate + - dataBoxEdgeDevices/users + - operations + microsoft.insights: + '2019-03-01': + - actionGroups + - actionGroups/subscribe + 2018-11-27-preview: + - vmInsightsOnboardingStatuses + 2018-06-17-preview: + - workbooks + '2018-04-20': + - components/events + - components/metrics + - components/query + '2018-04-16': + - scheduledQueryRules + '2018-03-01': + - metricAlerts + - metricAlerts/status + '2018-01-01': + - metricDefinitions + - metrics + 2017-12-01-preview: + - metricNamespaces + 2017-11-01-preview: + - baseline + - calculatebaseline + '2017-10-01': + - components/pricingPlans + - listMigrationdate + - migrateToNewPricingModel + - rollbackToLegacyPricingModel + 2017-05-01-preview: + - diagnosticSettings + - diagnosticSettingsCategories + '2017-04-01': + - activityLogAlerts + '2016-03-01': + - alertrules + - alertrules/incidents + - logprofiles + '2015-05-01': + - components + - components/Annotations + - components/ApiKeys + - components/DefaultWorkItemConfig + - components/ProactiveDetectionConfigs + - components/WorkItemConfigs + - components/currentbillingfeatures + - components/exportconfiguration + - components/favorites + - components/featurecapabilities + - components/getavailablebillingfeatures + - components/item + - components/operations + - components/purge + - components/quotastatus + - components/syntheticmonitorlocations + - components/webtests + - operations + - webtests + '2015-04-01': + - autoscalesettings + - eventcategories + - eventtypes/values + microsoft.mixedreality: + 2019-02-28-preview: + - locations/checkNameAvailability + - operations + - spatialAnchorsAccounts + - spatialAnchorsAccounts/keys + microsoft.storagesync: + '2019-02-01': + - locations/checkNameAvailability + - operations + - storageSyncServices + - storageSyncServices/registeredServers + - storageSyncServices/registeredServers/triggerRollover + - storageSyncServices/syncGroups + - storageSyncServices/syncGroups/cloudEndpoints + - storageSyncServices/syncGroups/cloudEndpoints/postbackup + - storageSyncServices/syncGroups/cloudEndpoints/postrestore + - storageSyncServices/syncGroups/cloudEndpoints/prebackup + - storageSyncServices/syncGroups/cloudEndpoints/prerestore + - storageSyncServices/syncGroups/cloudEndpoints/restoreheartbeat + - storageSyncServices/syncGroups/serverEndpoints + - storageSyncServices/syncGroups/serverEndpoints/recallAction + - storageSyncServices/workflows + - storageSyncServices/workflows/abort + microsoft.containerservice: + '2019-02-01': + - managedClusters + - managedClusters/accessProfiles/listCredential + - managedClusters/agentPools + - managedClusters/listClusterAdminCredential + - managedClusters/listClusterUserCredential + - managedClusters/resetAADProfile + - managedClusters/resetServicePrincipalProfile + - managedClusters/upgradeProfiles + - operations + 2018-09-30-preview: + - openShiftManagedClusters + '2017-09-30': + - locations/orchestrators + '2017-08-31': + - managedClusters/accessProfiles + '2017-07-01': + - containerServices + microsoft.virtualmachineimages: + 2019-02-01-preview: + - imageTemplates + - imageTemplates/run + - imageTemplates/runOutputs + - operations + microsoft.eventgrid: + 2019-02-01-preview: + - domains + - domains/listKeys + - domains/regenerateKey + - domains/topics + - eventSubscriptions + - eventSubscriptions/getFullUrl + - eventTypes + - locations/eventSubscriptions + - locations/topicTypes/eventSubscriptions + - operations + - topicTypes + - topicTypes/eventSubscriptions + - topicTypes/eventTypes + - topics + - topics/listKeys + - topics/regenerateKey + microsoft.kusto: + '2019-01-21': + - clusters + - clusters/checkNameAvailability + - clusters/databases + - clusters/databases/addPrincipals + - clusters/databases/dataConnectionValidation + - clusters/databases/dataConnections + - clusters/databases/listPrincipals + - clusters/databases/removePrincipals + - clusters/skus + - clusters/start + - clusters/stop + - locations/checkNameAvailability + - operations + - skus + 2018-09-07-preview: + - clusters/databases/eventhubConnectionValidation + - clusters/databases/eventhubconnections + microsoft.consumption: + '2019-01-01': + - aggregatedcost + - balances + - budgets + - charges + - forecasts + - marketplaces + - operations + - pricesheets + - reservationDetails + - reservationRecommendations + - reservationSummaries + - tags + - usageDetails + 2018-11-01-preview: + - billingAccounts/billingProfiles/pricesheet/download + - billingAccounts/invoices/pricesheet/download + - credits + - events + - lots + '2018-10-01': + - tenants + '2018-06-30': + - costTags + microsoft.security: + 2019-01-01-preview: + - regulatoryComplianceStandards + - regulatoryComplianceStandards/regulatoryComplianceControls + - regulatoryComplianceStandards/regulatoryComplianceControls/regulatoryComplianceAssessments + '2019-01-01': + - alerts + - locations/alerts + '2018-06-01': + - pricings + 2017-08-01-preview: + - advancedThreatProtectionSettings + - autoProvisioningSettings + - compliances + - deviceSecurityGroups + - informationProtectionPolicies + - securityContacts + - settings + - workspaceSettings + 2015-06-01-preview: + - adaptiveNetworkHardenings + - allowedConnections + - discoveredSecuritySolutions + - externalSecuritySolutions + - jitNetworkAccessPolicies + - locations + - locations/ExternalSecuritySolutions + - locations/allowedConnections + - locations/discoveredSecuritySolutions + - locations/jitNetworkAccessPolicies + - locations/tasks + - locations/topologies + - operations + - tasks + - topologies + microsoft.securityinsights: + 2019-01-01-preview: + - alertRules + - alertRules/actions + - bookmarks + - cases + - dataConnectors + - entities + - officeConsents + - operations + - settings + microsoft.devspaces: + 2019-01-01-preview: + - controllers + - controllers/listConnectionDetails + - locations/checkContainerHostMapping + - operations + microsoft.devices: + 2018-12-01-preview: + - IotHubs + - IotHubs/IotHubKeys/listkeys + - IotHubs/IotHubStats + - IotHubs/certificates + - IotHubs/certificates/generateVerificationCode + - IotHubs/certificates/verify + - IotHubs/eventHubEndpoints/ConsumerGroups + - IotHubs/exportDevices + - IotHubs/importDevices + - IotHubs/jobs + - IotHubs/listkeys + - IotHubs/quotaMetrics + - IotHubs/routingEndpointsHealth + - IotHubs/skus + - checkNameAvailability + - operations + - usages + '2018-01-22': + - checkProvisioningServiceNameAvailability + - provisioningServices + - provisioningServices/certificates + - provisioningServices/certificates/generateVerificationCode + - provisioningServices/certificates/verify + - provisioningServices/keys/listkeys + - provisioningServices/listkeys + - provisioningServices/operationresults + - provisioningServices/skus + microsoft.batch: + '2018-12-01': + - batchAccounts + - batchAccounts/applications + - batchAccounts/applications/versions + - batchAccounts/applications/versions/activate + - batchAccounts/certificates + - batchAccounts/certificates/cancelDelete + - batchAccounts/listKeys + - batchAccounts/pools + - batchAccounts/pools/disableAutoScale + - batchAccounts/pools/stopResize + - batchAccounts/regenerateKeys + - batchAccounts/syncAutoStorageKeys + - locations/checkNameAvailability + - locations/quotas + - operations + microsoft.managedidentity: + '2018-11-30': + - operations + - userAssignedIdentities + microsoft.guestconfiguration: + '2018-11-20': + - guestConfigurationAssignments + - guestConfigurationAssignments/reports + - operations + microsoft.storage: + '2018-11-01': + - checkNameAvailability + - locations/usages + - operations + - skus + - storageAccounts + - storageAccounts/ListAccountSas + - storageAccounts/ListServiceSas + - storageAccounts/blobServices + - storageAccounts/blobServices/containers + - storageAccounts/blobServices/containers/clearLegalHold + - storageAccounts/blobServices/containers/immutabilityPolicies + - storageAccounts/blobServices/containers/immutabilityPolicies/extend + - storageAccounts/blobServices/containers/immutabilityPolicies/lock + - storageAccounts/blobServices/containers/setLegalHold + - storageAccounts/failover + - storageAccounts/listKeys + - storageAccounts/managementPolicies + - storageAccounts/regenerateKey + - storageAccounts/revokeUserDelegationKeys + 2018-03-01-preview: + - usages + microsoft.billing: + 2018-11-01-preview: + - billingAccounts + - billingAccounts/billingProfile/billingSubscriptions + - billingAccounts/billingProfiles + - billingAccounts/billingProfiles/availableBalance + - billingAccounts/billingProfiles/invoiceSections + - billingAccounts/billingProfiles/invoices + - billingAccounts/billingProfiles/paymentMethods + - billingAccounts/billingProfiles/policies + - billingAccounts/billingProfiles/transactions + - billingAccounts/billingSubscriptions + - billingAccounts/departments + - billingAccounts/enrollmentAccounts + - billingAccounts/invoiceSections + - billingAccounts/invoiceSections/billingSubscriptions + - billingAccounts/invoiceSections/billingSubscriptions/transfer + - billingAccounts/invoiceSections/elevate + - billingAccounts/invoiceSections/initiateTransfer + - billingAccounts/invoiceSections/products + - billingAccounts/invoiceSections/products/transfer + - billingAccounts/invoiceSections/products/updateAutoRenew + - billingAccounts/invoiceSections/transfers + - billingAccounts/invoices + - billingAccounts/invoices/pricesheet/download + - billingAccounts/listInvoiceSectionsWithCreateSubscriptionPermission + - billingAccounts/products + - billingAccounts/products/updateAutoRenew + - billingAccounts/transactions + - billingPermissions + - billingProperty + - billingRoleAssignments + - billingRoleDefinitions + - createBillingRoleAssignment + - listBillingAccountsWithCreateInvoiceSectionPermission + - operations + - transfers + - transfers/acceptTransfer + - transfers/declineTransfer + 2018-03-01-preview: + - billingPeriods + - enrollmentAccounts + - invoices + microsoft.blueprint: + 2018-11-01-preview: + - blueprintAssignments + - blueprintAssignments/WhoIsBlueprint + - blueprintAssignments/assignmentOperations + - blueprints + - blueprints/artifacts + - blueprints/versions + - blueprints/versions/artifacts + 2017-11-11-preview: + - operations + microsoft.web: + '2018-11-01': + - certificates + '2018-02-01': + - availableStacks + - billingMeters + - checknameavailability + - deletedSites + - deploymentLocations + - geoRegions + - hostingEnvironments + - hostingEnvironments/capacities + - hostingEnvironments/changeVirtualNetwork + - hostingEnvironments/detectors + - hostingEnvironments/diagnostics + - hostingEnvironments/inboundNetworkDependenciesEndpoints + - hostingEnvironments/metricdefinitions + - hostingEnvironments/metrics + - hostingEnvironments/multiRolePools + - hostingEnvironments/multiRolePools/instances/metricdefinitions + - hostingEnvironments/multiRolePools/instances/metrics + - hostingEnvironments/multiRolePools/metricdefinitions + - hostingEnvironments/multiRolePools/metrics + - hostingEnvironments/multiRolePools/skus + - hostingEnvironments/multiRolePools/usages + - hostingEnvironments/operations + - hostingEnvironments/outboundNetworkDependenciesEndpoints + - hostingEnvironments/reboot + - hostingEnvironments/recommendationHistory + - hostingEnvironments/recommendations + - hostingEnvironments/recommendations/disable + - hostingEnvironments/resume + - hostingEnvironments/serverfarms + - hostingEnvironments/sites + - hostingEnvironments/suspend + - hostingEnvironments/usages + - hostingEnvironments/workerPools + - hostingEnvironments/workerPools/instances/metricdefinitions + - hostingEnvironments/workerPools/instances/metrics + - hostingEnvironments/workerPools/metricdefinitions + - hostingEnvironments/workerPools/metrics + - hostingEnvironments/workerPools/skus + - hostingEnvironments/workerPools/usages + - listSitesAssignedToHostName + - operations + - premieraddonoffers + - publishingUsers + - recommendations + - recommendations/disable + - resourceHealthMetadata + - serverfarms + - serverfarms/capabilities + - serverfarms/hybridConnectionNamespaces/relays + - serverfarms/hybridConnectionNamespaces/relays/listKeys + - serverfarms/hybridConnectionNamespaces/relays/sites + - serverfarms/hybridConnectionPlanLimits + - serverfarms/hybridConnectionRelays + - serverfarms/metricdefinitions + - serverfarms/metrics + - serverfarms/restartSites + - serverfarms/sites + - serverfarms/skus + - serverfarms/usages + - serverfarms/virtualNetworkConnections + - serverfarms/virtualNetworkConnections/gateways + - serverfarms/virtualNetworkConnections/routes + - serverfarms/workers/reboot + - sites + - sites/analyzeCustomHostname + - sites/applySlotConfig + - sites/backup + - sites/backups + - sites/backups/list + - sites/backups/restore + - sites/config + - sites/config/list + - sites/config/snapshots + - sites/config/snapshots/recover + - sites/containerlogs + - sites/containerlogs/download + - sites/continuouswebjobs + - sites/continuouswebjobs/start + - sites/continuouswebjobs/stop + - sites/deployments + - sites/deployments/log + - sites/detectors + - sites/diagnostics + - sites/diagnostics/analyses + - sites/diagnostics/analyses/execute + - sites/diagnostics/detectors + - sites/diagnostics/detectors/execute + - sites/discoverbackup + - sites/domainOwnershipIdentifiers + - sites/extensions + - sites/extensions/log + - sites/functions + - sites/functions/listsecrets + - sites/functions/token + - sites/hostNameBindings + - sites/hybridConnectionNamespaces/relays + - sites/hybridConnectionNamespaces/relays/listKeys + - sites/hybridConnectionRelays + - sites/hybridconnection + - sites/instances + - sites/instances/extensions + - sites/instances/extensions/log + - sites/instances/processes + - sites/instances/processes/dump + - sites/instances/processes/modules + - sites/instances/processes/threads + - sites/iscloneable + - sites/listsyncfunctiontriggerstatus + - sites/metricdefinitions + - sites/metrics + - sites/migrate + - sites/migratemysql + - sites/networkConfig + - sites/networkFeatures + - sites/networkTrace + - sites/networkTraces + - sites/networkTraces/operationresults + - sites/newpassword + - sites/perfcounters + - sites/phplogging + - sites/premieraddons + - sites/privateAccess + - sites/processes + - sites/processes/dump + - sites/processes/modules + - sites/processes/threads + - sites/publicCertificates + - sites/publishxml + - sites/recommendationHistory + - sites/recommendations + - sites/recommendations/disable + - sites/resetSlotConfig + - sites/resourceHealthMetadata + - sites/restart + - sites/restoreFromBackupBlob + - sites/restoreFromDeletedApp + - sites/restoreSnapshot + - sites/siteextensions + - sites/slots + - sites/slots/analyzeCustomHostname + - sites/slots/applySlotConfig + - sites/slots/backup + - sites/slots/backups + - sites/slots/backups/list + - sites/slots/backups/restore + - sites/slots/config + - sites/slots/config/list + - sites/slots/config/snapshots + - sites/slots/config/snapshots/recover + - sites/slots/containerlogs + - sites/slots/containerlogs/download + - sites/slots/continuouswebjobs + - sites/slots/continuouswebjobs/start + - sites/slots/continuouswebjobs/stop + - sites/slots/deployments + - sites/slots/deployments/log + - sites/slots/detectors + - sites/slots/diagnostics + - sites/slots/diagnostics/analyses + - sites/slots/diagnostics/analyses/execute + - sites/slots/diagnostics/detectors + - sites/slots/diagnostics/detectors/execute + - sites/slots/discoverbackup + - sites/slots/domainOwnershipIdentifiers + - sites/slots/extensions + - sites/slots/extensions/log + - sites/slots/functions + - sites/slots/functions/listsecrets + - sites/slots/functions/token + - sites/slots/hostNameBindings + - sites/slots/hybridConnectionNamespaces/relays + - sites/slots/hybridConnectionNamespaces/relays/listKeys + - sites/slots/hybridConnectionRelays + - sites/slots/hybridconnection + - sites/slots/instances + - sites/slots/instances/extensions + - sites/slots/instances/extensions/log + - sites/slots/instances/processes + - sites/slots/instances/processes/dump + - sites/slots/instances/processes/modules + - sites/slots/instances/processes/threads + - sites/slots/iscloneable + - sites/slots/listsyncfunctiontriggerstatus + - sites/slots/metricdefinitions + - sites/slots/metrics + - sites/slots/migratemysql + - sites/slots/networkConfig + - sites/slots/networkFeatures + - sites/slots/networkTrace + - sites/slots/networkTraces + - sites/slots/networkTraces/operationresults + - sites/slots/newpassword + - sites/slots/perfcounters + - sites/slots/phplogging + - sites/slots/premieraddons + - sites/slots/privateAccess + - sites/slots/processes + - sites/slots/processes/dump + - sites/slots/processes/modules + - sites/slots/processes/threads + - sites/slots/publicCertificates + - sites/slots/publishxml + - sites/slots/resetSlotConfig + - sites/slots/resourceHealthMetadata + - sites/slots/restart + - sites/slots/restoreFromBackupBlob + - sites/slots/restoreFromDeletedApp + - sites/slots/restoreSnapshot + - sites/slots/siteextensions + - sites/slots/slotsdiffs + - sites/slots/slotsswap + - sites/slots/snapshots + - sites/slots/snapshotsdr + - sites/slots/sourcecontrols + - sites/slots/start + - sites/slots/startNetworkTrace + - sites/slots/stop + - sites/slots/stopNetworkTrace + - sites/slots/sync + - sites/slots/syncfunctiontriggers + - sites/slots/triggeredwebjobs + - sites/slots/triggeredwebjobs/history + - sites/slots/triggeredwebjobs/run + - sites/slots/usages + - sites/slots/virtualNetworkConnections + - sites/slots/virtualNetworkConnections/gateways + - sites/slots/webjobs + - sites/slotsdiffs + - sites/slotsswap + - sites/snapshots + - sites/snapshotsdr + - sites/sourcecontrols + - sites/start + - sites/startNetworkTrace + - sites/stop + - sites/stopNetworkTrace + - sites/sync + - sites/syncfunctiontriggers + - sites/triggeredwebjobs + - sites/triggeredwebjobs/history + - sites/triggeredwebjobs/run + - sites/usages + - sites/virtualNetworkConnections + - sites/virtualNetworkConnections/gateways + - sites/webjobs + - skus + - sourcecontrols + - validate + - validateContainerSettings + - verifyHostingEnvironmentVnet + '2016-08-01': + - sites/recover + - sites/slots/recover + 2015-08-01-preview: + - connections + - connections/confirmConsentCode + - connections/listConnectionKeys + - connections/listConsentLinks + - locations/managedApis + '2015-08-01': + - classicMobileServices + - csrs + - hostingEnvironments/webhostingplans + - ishostingenvironmentnameavailable + - managedHostingEnvironments + - managedHostingEnvironments/capacities + - managedHostingEnvironments/operations + - managedHostingEnvironments/serverfarms + - managedHostingEnvironments/sites + - managedHostingEnvironments/webhostingplans + - publishingCredentials + - serverfarms/operationresults + - sites/instances/deployments + - sites/operationresults + - sites/slots/instances/deployments + - sites/slots/operationresults + microsoft.subscription: + 2018-11-01-preview: + - createSubscription + - operations + - subscriptionOperations + 2017-11-01-preview: + - subscriptionDefinitions + microsoft.hardwaresecuritymodules: + 2018-10-31-preview: + - dedicatedHSMs + microsoft.labservices: + '2018-10-15': + - labaccounts + - labaccounts/createLab + - labaccounts/galleryimages + - labaccounts/getRegionalAvailability + - labaccounts/labs + - labaccounts/labs/addUsers + - labaccounts/labs/environmentsettings + - labaccounts/labs/environmentsettings/claimAny + - labaccounts/labs/environmentsettings/environments + - labaccounts/labs/environmentsettings/environments/claim + - labaccounts/labs/environmentsettings/environments/resetPassword + - labaccounts/labs/environmentsettings/environments/start + - labaccounts/labs/environmentsettings/environments/stop + - labaccounts/labs/environmentsettings/publish + - labaccounts/labs/environmentsettings/start + - labaccounts/labs/environmentsettings/stop + - labaccounts/labs/register + - labaccounts/labs/users + - locations/operations + - operations + - users/getEnvironment + - users/getOperationBatchStatus + - users/getOperationStatus + - users/getPersonalPreferences + - users/listEnvironments + - users/listLabs + - users/register + - users/resetPassword + - users/startEnvironment + - users/stopEnvironment + microsoft.signalrservice: + '2018-10-01': + - SignalR/listKeys + - SignalR/regenerateKey + - locations/checkNameAvailability + - locations/usages + - operations + - signalR + - signalR/restart + microsoft.compute: + '2018-10-01': + - availabilitySets + - availabilitySets/vmSizes + - images + - locations/logAnalytics/getRequestRateByInterval + - locations/logAnalytics/getThrottledRequests + - locations/publishers + - locations/publishers/artifacttypes/offers + - locations/publishers/artifacttypes/offers/skus + - locations/publishers/artifacttypes/offers/skus/versions + - locations/publishers/artifacttypes/types + - locations/publishers/artifacttypes/types/versions + - locations/runCommands + - locations/usages + - locations/virtualMachines + - locations/vmSizes + - operations + - virtualMachineScaleSets + - virtualMachineScaleSets/deallocate + - virtualMachineScaleSets/delete + - virtualMachineScaleSets/extensionRollingUpgrade + - virtualMachineScaleSets/extensions + - virtualMachineScaleSets/forceRecoveryServiceFabricPlatformUpdateDomainWalk + - virtualMachineScaleSets/instanceView + - virtualMachineScaleSets/manualupgrade + - virtualMachineScaleSets/osRollingUpgrade + - virtualMachineScaleSets/osUpgradeHistory + - virtualMachineScaleSets/performMaintenance + - virtualMachineScaleSets/poweroff + - virtualMachineScaleSets/redeploy + - virtualMachineScaleSets/reimage + - virtualMachineScaleSets/reimageall + - virtualMachineScaleSets/restart + - virtualMachineScaleSets/rollingUpgrades + - virtualMachineScaleSets/skus + - virtualMachineScaleSets/start + - virtualMachineScaleSets/virtualmachines + - virtualMachineScaleSets/virtualmachines/deallocate + - virtualMachineScaleSets/virtualmachines/instanceView + - virtualMachineScaleSets/virtualmachines/performMaintenance + - virtualMachineScaleSets/virtualmachines/poweroff + - virtualMachineScaleSets/virtualmachines/redeploy + - virtualMachineScaleSets/virtualmachines/reimage + - virtualMachineScaleSets/virtualmachines/reimageall + - virtualMachineScaleSets/virtualmachines/restart + - virtualMachineScaleSets/virtualmachines/runCommand + - virtualMachineScaleSets/virtualmachines/start + - virtualMachines + - virtualMachines/capture + - virtualMachines/convertToManagedDisks + - virtualMachines/deallocate + - virtualMachines/extensions + - virtualMachines/generalize + - virtualMachines/instanceView + - virtualMachines/performMaintenance + - virtualMachines/powerOff + - virtualMachines/redeploy + - virtualMachines/reimage + - virtualMachines/restart + - virtualMachines/runCommand + - virtualMachines/start + - virtualMachines/vmSizes + '2018-09-30': + - disks + - disks/beginGetAccess + - disks/endGetAccess + - snapshots + - snapshots/beginGetAccess + - snapshots/endGetAccess + '2018-06-01': + - galleries + - galleries/images + - galleries/images/versions + '2017-09-01': + - skus + '2017-03-30': + - virtualMachineScaleSets/networkInterfaces + - virtualMachineScaleSets/publicipaddresses + - virtualMachineScaleSets/virtualMachines/networkInterfaces + - virtualMachineScaleSets/virtualMachines/networkInterfaces/ipConfigurations + - virtualMachineScaleSets/virtualMachines/networkInterfaces/ipconfigurations/publicipaddresses + microsoft.containerinstance: + '2018-10-01': + - containerGroups + - containerGroups/containers/exec + - containerGroups/containers/logs + - containerGroups/restart + - containerGroups/start + - containerGroups/stop + - locations/cachedImages + - locations/capabilities + - locations/usages + - operations + - serviceAssociationLinks + microsoft.devtestlab: + '2018-09-15': + - labs + - labs/artifactsources + - labs/artifactsources/armtemplates + - labs/artifactsources/artifacts + - labs/artifactsources/artifacts/generateArmTemplate + - labs/claimAnyVm + - labs/costs + - labs/createEnvironment + - labs/customimages + - labs/exportResourceUsage + - labs/formulas + - labs/galleryimages + - labs/generateUploadUri + - labs/importVirtualMachine + - labs/listVhds + - labs/notificationchannels + - labs/notificationchannels/notify + - labs/policysets/evaluatePolicies + - labs/policysets/policies + - labs/schedules + - labs/schedules/execute + - labs/schedules/listApplicable + - labs/servicerunners + - labs/users + - labs/users/disks + - labs/users/disks/attach + - labs/users/disks/detach + - labs/users/environments + - labs/users/secrets + - labs/users/servicefabrics + - labs/users/servicefabrics/listApplicableSchedules + - labs/users/servicefabrics/schedules + - labs/users/servicefabrics/schedules/execute + - labs/users/servicefabrics/start + - labs/users/servicefabrics/stop + - labs/virtualmachines + - labs/virtualmachines/addDataDisk + - labs/virtualmachines/applyArtifacts + - labs/virtualmachines/claim + - labs/virtualmachines/detachDataDisk + - labs/virtualmachines/getRdpFileContents + - labs/virtualmachines/listApplicableSchedules + - labs/virtualmachines/redeploy + - labs/virtualmachines/resize + - labs/virtualmachines/restart + - labs/virtualmachines/schedules + - labs/virtualmachines/schedules/execute + - labs/virtualmachines/start + - labs/virtualmachines/stop + - labs/virtualmachines/transferDisks + - labs/virtualmachines/unClaim + - labs/virtualnetworks + - locations/operations + - operations + - schedules + - schedules/execute + - schedules/retarget + 2015-05-21-preview: + - labs/costinsights + - labs/costinsights/refreshData + - labs/costs/refreshData + microsoft.authorization: + 2018-09-01-preview: + - roleAssignments + 2018-07-01-preview: + - denyAssignments + '2018-05-01': + - policyAssignments + - policyDefinitions + - policySetDefinitions + 2018-01-01-preview: + - permissions + - providerOperations + - roleDefinitions + '2016-09-01': + - locks + - operations + '2015-07-01': + - classicAdministrators + - elevateAccess + microsoft.containerregistry: + '2018-09-01': + - registries/listBuildSourceUploadUrl + - registries/runs + - registries/runs/cancel + - registries/runs/listLogSasUrl + - registries/scheduleRun + - registries/tasks + - registries/tasks/listDetails + 2018-02-01-preview: + - registries/buildTasks + - registries/buildTasks/listSourceRepositoryProperties + - registries/buildTasks/steps + - registries/buildTasks/steps/listBuildArguments + - registries/builds + - registries/builds/cancel + - registries/builds/getLogLink + - registries/getBuildSourceUploadUrl + - registries/queueBuild + '2017-10-01': + - checkNameAvailability + - operations + - registries + - registries/importImage + - registries/listCredentials + - registries/listPolicies + - registries/listUsages + - registries/regenerateCredential + - registries/replications + - registries/updatePolicies + - registries/webhooks + - registries/webhooks/getCallbackConfig + - registries/webhooks/listEvents + - registries/webhooks/ping + 2016-06-27-preview: + - registries/getCredentials + - registries/regenerateCredentials + microsoft.deploymentmanager: + 2018-09-01-preview: + - artifactSources + - operations + - rollouts + - rollouts/cancel + - rollouts/restart + - serviceTopologies + - serviceTopologies/services + - serviceTopologies/services/serviceUnits + - steps + microsoft.iotcentral: + '2018-09-01': + - IoTApps + - checkNameAvailability + - checkSubdomainAvailability + - operations + microsoft.servicefabricmesh: + 2018-09-01-preview: + - applications + - applications/services + - applications/services/replicas + - applications/services/replicas/codePackages/logs + - gateways + - networks + - operations + - secrets + - secrets/values + - volumes + microsoft.engagementfabric: + 2018-09-01-preview: + - Accounts + - Accounts/Channels + - Accounts/listChannelTypes + - Accounts/listKeys + - Accounts/regenerateKey + - checkNameAvailability + - operations + - skus + microsoft.workloadmonitor: + 2018-08-31-preview: + - components + - componentsSummary + - monitorInstances + - monitorInstancesSummary + - monitors + - notificationSettings + - operations + microsoft.healthcareapis: + 2018-08-20-preview: + - checkNameAvailability + - locations/moveResourcesStatus + - locations/operationresults + - moveResources + - operations + - services + microsoft.timeseriesinsights: + 2018-08-15-preview: + - environments + - environments/accessPolicies + - environments/eventSources + - environments/referenceDataSets + - operations + microsoft.datamigration: + 2018-07-15-preview: + - locations/checkNameAvailability + - locations/usages + - operations + - services + - services/checkNameAvailability + - services/checkStatus + - services/projects + - services/projects/files + - services/projects/files/read + - services/projects/files/readwrite + - services/projects/tasks + - services/projects/tasks/cancel + - services/projects/tasks/command + - services/skus + - services/start + - services/stop + - skus + microsoft.botservice: + '2018-07-12': + - botServices + - botServices/Connections + - botServices/Connections/listWithSecrets + - botServices/channels + - botServices/channels/listChannelWithKeys + - checkEnterpriseChannelNameAvailability + - checkNameAvailability + - enterpriseChannels + - listAuthServiceProviders + - operations + microsoft.recoveryservices: + '2018-07-10': + - operations + - vaults/replicationAlertSettings + - vaults/replicationEvents + - vaults/replicationFabrics + - vaults/replicationFabrics/checkConsistency + - vaults/replicationFabrics/migratetoaad + - vaults/replicationFabrics/reassociateGateway + - vaults/replicationFabrics/remove + - vaults/replicationFabrics/renewCertificate + - vaults/replicationFabrics/replicationLogicalNetworks + - vaults/replicationFabrics/replicationNetworks + - vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings + - vaults/replicationFabrics/replicationProtectionContainers + - vaults/replicationFabrics/replicationProtectionContainers/discoverProtectableItem + - vaults/replicationFabrics/replicationProtectionContainers/remove + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/migrate + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/migrationRecoveryPoints + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/testMigrate + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/testMigrateCleanup + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/ResolveHealthErrors + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/addDisks + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/applyRecoveryPoint + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/failoverCommit + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/plannedFailover + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/reProtect + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/recoveryPoints + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/remove + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/removeDisks + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/repairReplication + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/targetComputeSizes + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/testFailover + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/testFailoverCleanup + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/unplannedFailover + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/updateMobilityService + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings/remove + - vaults/replicationFabrics/replicationProtectionContainers/switchprotection + - vaults/replicationFabrics/replicationRecoveryServicesProviders + - vaults/replicationFabrics/replicationRecoveryServicesProviders/refreshProvider + - vaults/replicationFabrics/replicationRecoveryServicesProviders/remove + - vaults/replicationFabrics/replicationStorageClassifications + - vaults/replicationFabrics/replicationStorageClassifications/replicationStorageClassificationMappings + - vaults/replicationFabrics/replicationvCenters + - vaults/replicationJobs + - vaults/replicationJobs/cancel + - vaults/replicationJobs/restart + - vaults/replicationJobs/resume + - vaults/replicationMigrationItems + - vaults/replicationNetworkMappings + - vaults/replicationNetworks + - vaults/replicationPolicies + - vaults/replicationProtectedItems + - vaults/replicationProtectionContainerMappings + - vaults/replicationProtectionContainers + - vaults/replicationRecoveryPlans + - vaults/replicationRecoveryPlans/failoverCommit + - vaults/replicationRecoveryPlans/plannedFailover + - vaults/replicationRecoveryPlans/reProtect + - vaults/replicationRecoveryPlans/testFailover + - vaults/replicationRecoveryPlans/testFailoverCleanup + - vaults/replicationRecoveryPlans/unplannedFailover + - vaults/replicationRecoveryServicesProviders + - vaults/replicationStorageClassificationMappings + - vaults/replicationStorageClassifications + - vaults/replicationSupportedOperatingSystems + - vaults/replicationVaultHealth + - vaults/replicationVaultHealth/refresh + - vaults/replicationvCenters + '2017-07-01': + - locations/backupPreValidateProtection + - locations/backupStatus + - locations/backupValidateFeatures + - vaults/backupFabrics/backupProtectionIntent + - vaults/backupJobs + - vaults/backupJobsExport + - vaults/backupPolicies + - vaults/backupProtectedItems + - vaults/backupProtectionIntents + - vaults/backupUsageSummaries + - vaults/backupValidateOperation + '2016-12-01': + - vaults/backupEngines + - vaults/backupFabrics/operationResults + - vaults/backupFabrics/protectableContainers + - vaults/backupFabrics/protectionContainers + - vaults/backupFabrics/protectionContainers/inquire + - vaults/backupFabrics/protectionContainers/items + - vaults/backupFabrics/protectionContainers/operationResults + - vaults/backupFabrics/protectionContainers/protectedItems + - vaults/backupFabrics/protectionContainers/protectedItems/backup + - vaults/backupFabrics/protectionContainers/protectedItems/operationResults + - vaults/backupFabrics/protectionContainers/protectedItems/operationsStatus + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/provisionInstantItemRecovery + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/restore + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/revokeInstantItemRecovery + - vaults/backupFabrics/refreshContainers + - vaults/backupJobs/cancel + - vaults/backupJobs/operationResults + - vaults/backupOperationResults + - vaults/backupOperations + - vaults/backupPolicies/operationResults + - vaults/backupPolicies/operations + - vaults/backupProtectableItems + - vaults/backupProtectionContainers + - vaults/backupSecurityPIN + - vaults/backupconfig + - vaults/backupstorageconfig + '2016-06-01': + - vaults + - vaults/certificates + - vaults/extendedInformation + - vaults/registeredIdentities + - vaults/replicationUsages + - vaults/usages + microsoft.media: + '2018-07-01': + - locations/checkNameAvailability + - mediaServices/accountFilters + - mediaServices/assets + - mediaServices/assets/assetFilters + - mediaServices/assets/getEncryptionKey + - mediaServices/assets/listContainerSas + - mediaServices/assets/listStreamingLocators + - mediaServices/contentKeyPolicies + - mediaServices/contentKeyPolicies/getPolicyPropertiesWithSecrets + - mediaServices/streamingLocators + - mediaServices/streamingLocators/listContentKeys + - mediaServices/streamingLocators/listPaths + - mediaServices/streamingPolicies + - mediaServices/transforms + - mediaServices/transforms/jobs + - mediaServices/transforms/jobs/cancelJob + - mediaservices + - mediaservices/liveEvents + - mediaservices/liveEvents/liveOutputs + - mediaservices/liveEvents/reset + - mediaservices/liveEvents/start + - mediaservices/liveEvents/stop + - mediaservices/streamingEndpoints + - mediaservices/streamingEndpoints/scale + - mediaservices/streamingEndpoints/start + - mediaservices/streamingEndpoints/stop + - mediaservices/syncStorageKeys + - operations + '2015-10-01': + - CheckNameAvailability + - mediaservices/listKeys + - mediaservices/regenerateKey + microsoft.logic: + 2018-07-01-preview: + - integrationAccounts + - integrationAccounts/agreements + - integrationAccounts/agreements/listContentCallbackUrl + - integrationAccounts/assemblies + - integrationAccounts/assemblies/listContentCallbackUrl + - integrationAccounts/batchConfigurations + - integrationAccounts/certificates + - integrationAccounts/listCallbackUrl + - integrationAccounts/listKeyVaultKeys + - integrationAccounts/logTrackingEvents + - integrationAccounts/maps + - integrationAccounts/maps/listContentCallbackUrl + - integrationAccounts/partners + - integrationAccounts/partners/listContentCallbackUrl + - integrationAccounts/regenerateAccessKey + - integrationAccounts/schemas + - integrationAccounts/schemas/listContentCallbackUrl + - integrationAccounts/sessions + - locations/workflows/validate + - operations + - workflows + - workflows/disable + - workflows/enable + - workflows/generateUpgradedDefinition + - workflows/listCallbackUrl + - workflows/listSwagger + - workflows/move + - workflows/regenerateAccessKey + - workflows/runs + - workflows/runs/actions + - workflows/runs/actions/listExpressionTraces + - workflows/runs/actions/repetitions + - workflows/runs/actions/repetitions/listExpressionTraces + - workflows/runs/actions/repetitions/requestHistories + - workflows/runs/actions/requestHistories + - workflows/runs/actions/scopeRepetitions + - workflows/runs/cancel + - workflows/runs/operations + - workflows/triggers + - workflows/triggers/histories + - workflows/triggers/histories/resubmit + - workflows/triggers/listCallbackUrl + - workflows/triggers/reset + - workflows/triggers/run + - workflows/triggers/schemas + - workflows/triggers/setState + - workflows/validate + - workflows/versions + - workflows/versions/triggers/listCallbackUrl + 2015-02-01-preview: + - workflows/accessKeys + - workflows/accessKeys/list + - workflows/accessKeys/regenerate + - workflows/run + microsoft.policyinsights: + 2018-07-01-preview: + - operations + - policyStates/queryResults + - policyStates/summarize + - policyTrackedResources/queryResults + - remediations + - remediations/cancel + - remediations/listDeployments + '2018-04-04': + - policyEvents/queryResults + microsoft.automation: + '2018-06-30': + - automationAccounts/python2Packages + - automationAccounts/runbooks + - automationAccounts/runbooks/content + - automationAccounts/runbooks/draft + - automationAccounts/runbooks/draft/resume + - automationAccounts/runbooks/draft/stop + - automationAccounts/runbooks/draft/streams + - automationAccounts/runbooks/draft/suspend + - automationAccounts/runbooks/publish + '2018-01-15': + - automationAccounts/agentRegistrationInformation + - automationAccounts/compilationjobs + - automationAccounts/compilationjobs/streams + - automationAccounts/nodeConfigurations + - automationAccounts/nodecounts + - automationAccounts/nodes + - automationAccounts/nodes/reports + - automationAccounts/nodes/reports/content + 2017-05-15-preview: + - automationAccounts/jobs + - automationAccounts/jobs/output + - automationAccounts/jobs/resume + - automationAccounts/jobs/runbookContent + - automationAccounts/jobs/stop + - automationAccounts/jobs/streams + - automationAccounts/jobs/suspend + - automationAccounts/softwareUpdateConfigurationMachineRuns + - automationAccounts/softwareUpdateConfigurationRuns + - automationAccounts/softwareUpdateConfigurations + - automationAccounts/sourceControls + - automationAccounts/sourceControls/sourceControlSyncJobs + - automationAccounts/sourceControls/sourceControlSyncJobs/streams + '2015-10-31': + - automationAccounts + - automationAccounts/certificates + - automationAccounts/configurations + - automationAccounts/configurations/content + - automationAccounts/connectionTypes + - automationAccounts/connections + - automationAccounts/credentials + - automationAccounts/hybridRunbookWorkerGroups + - automationAccounts/jobSchedules + - automationAccounts/linkedWorkspace + - automationAccounts/listKeys + - automationAccounts/modules + - automationAccounts/modules/activities + - automationAccounts/modules/objectDataTypes/fields + - automationAccounts/modules/types/fields + - automationAccounts/objectDataTypes/fields + - automationAccounts/schedules + - automationAccounts/statistics + - automationAccounts/usages + - automationAccounts/variables + - automationAccounts/watchers + - automationAccounts/watchers/start + - automationAccounts/watchers/stop + - automationAccounts/webhooks + - operations + microsoft.datafactory: + '2018-06-01': + - factories + - factories/datasets + - factories/getDataPlaneAccess + - factories/getGitHubAccessToken + - factories/integrationRuntimes + - factories/integrationRuntimes/getConnectionInfo + - factories/integrationRuntimes/getObjectMetadata + - factories/integrationRuntimes/getStatus + - factories/integrationRuntimes/linkedIntegrationRuntime + - factories/integrationRuntimes/listAuthKeys + - factories/integrationRuntimes/monitoringData + - factories/integrationRuntimes/nodes + - factories/integrationRuntimes/nodes/ipAddress + - factories/integrationRuntimes/refreshObjectMetadata + - factories/integrationRuntimes/regenerateAuthKey + - factories/integrationRuntimes/removeLinks + - factories/integrationRuntimes/start + - factories/integrationRuntimes/stop + - factories/integrationRuntimes/syncCredentials + - factories/integrationRuntimes/upgrade + - factories/linkedservices + - factories/pipelineruns + - factories/pipelineruns/cancel + - factories/pipelineruns/queryActivityruns + - factories/pipelines + - factories/pipelines/createRun + - factories/queryPipelineRuns + - factories/queryTriggerRuns + - factories/triggers + - factories/triggers/rerunTriggers + - factories/triggers/rerunTriggers/cancel + - factories/triggers/rerunTriggers/start + - factories/triggers/rerunTriggers/stop + - factories/triggers/start + - factories/triggers/stop + - locations/configureFactoryRepo + - locations/getFeatureValue + - operations + 2017-09-01-preview: + - factories/cancelpipelinerun + - factories/integrationRuntimes/removeNode + - factories/pipelineruns/activityruns + - factories/triggers/triggerruns + microsoft.managedservices: + 2018-06-01-preview: + - operations + - registrationAssignments + - registrationDefinitions + microsoft.dbformariadb: + 2018-06-01-preview: + - checkNameAvailability + - locations/performanceTiers + - operations + - servers + - servers/configurations + - servers/databases + - servers/firewallRules + - servers/logFiles + - servers/securityAlertPolicies + - servers/virtualNetworkRules + '2018-06-01': + - servers/replicas + - servers/restart + microsoft.apimanagement: + 2018-06-01-preview: + - checkNameAvailability + - operations + - service + - service/apis + - service/apis/diagnostics + - service/apis/issues + - service/apis/issues/attachments + - service/apis/issues/comments + - service/apis/operations + - service/apis/operations/policies + - service/apis/operations/tags + - service/apis/operationsByTags + - service/apis/policies + - service/apis/products + - service/apis/releases + - service/apis/revisions + - service/apis/schemas + - service/apis/tagDescriptions + - service/apis/tags + - service/apisByTags + - service/applynetworkconfigurationupdates + - service/authorizationServers + - service/backends + - service/backends/reconnect + - service/backup + - service/caches + - service/certificates + - service/diagnostics + - service/getssotoken + - service/groups + - service/groups/users + - service/identityProviders + - service/issues + - service/locations/networkstatus + - service/loggers + - service/networkstatus + - service/notifications + - service/notifications/recipientEmails + - service/notifications/recipientUsers + - service/openidConnectProviders + - service/policies + - service/policySnippets + - service/portalsettings + - service/products + - service/products/apis + - service/products/groups + - service/products/policies + - service/products/subscriptions + - service/products/tags + - service/productsByTags + - service/properties + - service/quotas + - service/quotas/periods + - service/regions + - service/reports + - service/restore + - service/skus + - service/subscriptions + - service/subscriptions/regeneratePrimaryKey + - service/subscriptions/regenerateSecondaryKey + - service/tagResources + - service/tags + - service/templates + - service/tenant + - service/tenant/deploy + - service/tenant/git + - service/tenant/regeneratePrimaryKey + - service/tenant/regenerateSecondaryKey + - service/tenant/save + - service/tenant/syncState + - service/tenant/validate + - service/updatecertificate + - service/updatehostname + - service/users + - service/users/confirmations/send + - service/users/generateSsoUrl + - service/users/groups + - service/users/identities + - service/users/subscriptions + - service/users/token + '2018-01-01': + - service/apis/diagnostics/loggers + - service/diagnostics/loggers + - service/identity + '2017-03-01': + - service/uploadcertificate + '2016-10-10': + - service/apis/operations/policy + - service/apis/policy + - service/managedeployments + - service/products/policy + microsoft.hdinsight: + 2018-06-01-preview: + - clusters + - clusters/applications + - clusters/configurations + - clusters/executeScriptActions + - clusters/extensions + - clusters/roles/resize + - clusters/rotatediskencryptionkey + - clusters/scriptActions + - clusters/scriptExecutionHistory + - clusters/scriptExecutionHistory/promote + - locations/usages + - operations + 2015-03-01-preview: + - locations/capabilities + microsoft.sql: + 2018-06-01-preview: + - managedInstances/databases/currentSensitivityLabels + - managedInstances/databases/recommendedSensitivityLabels + - managedInstances/databases/schemas/tables/columns/sensitivityLabels + - managedInstances/vulnerabilityAssessments + - servers/databases/securityAlertPolicies + - servers/vulnerabilityAssessments + 2017-10-01-preview: + - locations/capabilities + - locations/instanceFailoverGroups + - locations/instanceFailoverGroups/failover + - locations/instanceFailoverGroups/forceFailoverAllowDataLoss + - managedInstances/databases/vulnerabilityAssessments + - managedInstances/databases/vulnerabilityAssessments/rules/baselines + - managedInstances/databases/vulnerabilityAssessments/scans + - managedInstances/databases/vulnerabilityAssessments/scans/export + - managedInstances/databases/vulnerabilityAssessments/scans/initiateScan + - managedInstances/encryptionProtector + - managedInstances/keys + - managedInstances/recoverableDatabases + - managedInstances/tdeCertificates + - servers/databases + - servers/databases/backupShortTermRetentionPolicies + - servers/databases/move + - servers/databases/operations + - servers/databases/operations/cancel + - servers/databases/pause + - servers/databases/resume + - servers/databases/upgradeDataWarehouse + - servers/databases/vulnerabilityAssessments/scans + - servers/databases/vulnerabilityAssessments/scans/export + - servers/databases/vulnerabilityAssessments/scans/initiateScan + - servers/elasticPools + - servers/elasticPools/databases + - servers/elasticPools/operations + - servers/elasticPools/operations/cancel + - servers/tdeCertificates + 2017-03-01-preview: + - locations/longTermRetentionBackups + - locations/longTermRetentionServers/longTermRetentionBackups + - locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups + - locations/managedDatabaseRestoreAzureAsyncOperation/completeRestore + - managedInstances/databases + - managedInstances/databases/backupShortTermRetentionPolicies + - managedInstances/databases/securityAlertPolicies + - managedInstances/restorableDroppedDatabases + - managedInstances/restorableDroppedDatabases/backupShortTermRetentionPolicies + - managedInstances/securityAlertPolicies + - servers/auditingSettings + - servers/automaticTuning + - servers/databases/auditingSettings + - servers/databases/backupLongTermRetentionPolicies + - servers/databases/currentSensitivityLabels + - servers/databases/dataWarehouseUserActivities + - servers/databases/export + - servers/databases/extendedAuditingSettings + - servers/databases/recommendedSensitivityLabels + - servers/databases/restorePoints + - servers/databases/schemas/tables/columns/sensitivityLabels + - servers/databases/vulnerabilityAssessments + - servers/databases/vulnerabilityAssessments/rules/baselines + - servers/dnsAliases + - servers/dnsAliases/acquire + - servers/extendedAuditingSettings + - servers/jobAgents + - servers/jobAgents/credentials + - servers/jobAgents/executions + - servers/jobAgents/jobs + - servers/jobAgents/jobs/executions + - servers/jobAgents/jobs/executions/cancel + - servers/jobAgents/jobs/executions/steps + - servers/jobAgents/jobs/executions/steps/targets + - servers/jobAgents/jobs/executions/targets + - servers/jobAgents/jobs/start + - servers/jobAgents/jobs/steps + - servers/jobAgents/jobs/versions + - servers/jobAgents/jobs/versions/steps + - servers/jobAgents/targetGroups + - servers/securityAlertPolicies + 2015-05-01-preview: + - locations/syncDatabaseIds + - locations/usages + - managedInstances + - operations + - servers + - servers/advisors + - servers/databases/advisors + - servers/databases/advisors/recommendedActions + - servers/databases/automaticTuning + - servers/databases/syncGroups + - servers/databases/syncGroups/cancelSync + - servers/databases/syncGroups/hubSchemas + - servers/databases/syncGroups/logs + - servers/databases/syncGroups/refreshHubSchema + - servers/databases/syncGroups/syncMembers + - servers/databases/syncGroups/syncMembers/refreshSchema + - servers/databases/syncGroups/syncMembers/schemas + - servers/databases/syncGroups/triggerSync + - servers/encryptionProtector + - servers/failoverGroups + - servers/failoverGroups/failover + - servers/failoverGroups/forceFailoverAllowDataLoss + - servers/firewallRules + - servers/keys + - servers/syncAgents + - servers/syncAgents/generateKey + - servers/syncAgents/linkedDatabases + - servers/virtualNetworkRules + - virtualClusters + '2014-04-01': + - checkNameAvailability + - servers/administrators + - servers/auditingPolicies + - servers/backupLongTermRetentionVaults + - servers/communicationLinks + - servers/connectionPolicies + - servers/databases/auditingPolicies + - servers/databases/connectionPolicies + - servers/databases/dataMaskingPolicies + - servers/databases/dataMaskingPolicies/rules + - servers/databases/extensions + - servers/databases/geoBackupPolicies + - servers/databases/metricDefinitions + - servers/databases/metrics + - servers/databases/replicationLinks + - servers/databases/replicationLinks/failover + - servers/databases/replicationLinks/forceFailoverAllowDataLoss + - servers/databases/serviceTierAdvisors + - servers/databases/topQueries + - servers/databases/topQueries/queryText + - servers/databases/topQueries/statistics + - servers/databases/transparentDataEncryption + - servers/databases/transparentDataEncryption/operationResults + - servers/databases/usages + - servers/disasterRecoveryConfiguration + - servers/disasterRecoveryConfiguration/failover + - servers/disasterRecoveryConfiguration/forceFailoverAllowDataLoss + - servers/elasticPools/elasticPoolActivity + - servers/elasticPools/elasticPoolDatabaseActivity + - servers/elasticPools/metricDefinitions + - servers/elasticPools/metrics + - servers/import + - servers/recommendedElasticPools + - servers/recommendedElasticPools/databases + - servers/recommendedElasticPools/metrics + - servers/recoverableDatabases + - servers/restorableDroppedDatabases + - servers/serviceObjectives + - servers/usages + microsoft.solutions: + '2018-06-01': + - applicationDefinitions + - applications + 2016-09-01-preview: + - applianceDefinitions + - appliances + - operations + microsoft.capacity: + '2018-06-01': + - appliedReservations + - catalogs + - operations + - reservationOrders + - reservationOrders/merge + - reservationOrders/reservations + - reservationOrders/reservations/revisions + - reservationOrders/split + microsoft.alertsmanagement: + '2018-05-05': + - alerts + - alerts/changestate + - alerts/history + - alertsSummary + - operations + - smartGroups + - smartGroups/changeState + - smartGroups/history + microsoft.resources: + '2018-05-01': + - deployments + - deployments/cancel + - deployments/exportTemplate + - deployments/operations + - deployments/validate + - operations + '2016-09-01': + - links + microsoft.maps: + '2018-05-01': + - accounts + - accounts/listKeys + - accounts/regenerateKey + - operations + microsoft.serialconsole: + '2018-05-01': + - consoleServices + - consoleServices/disableConsole + - consoleServices/enableConsole + - operations + microsoft.batchai: + '2018-05-01': + - locations/usages + - operations + - workspaces + - workspaces/clusters + - workspaces/clusters/listRemoteLoginInformation + - workspaces/experiments + - workspaces/experiments/jobs + - workspaces/experiments/jobs/listOutputFiles + - workspaces/experiments/jobs/listRemoteLoginInformation + - workspaces/experiments/jobs/terminate + - workspaces/fileServers + '2018-03-01': + - clusters + - clusters/listRemoteLoginInformation + - fileServers + - jobs + - jobs/listOutputFiles + - jobs/listRemoteLoginInformation + - jobs/terminate + microsoft.databricks: + '2018-04-01': + - operations + - workspaces + microsoft.management: + 2018-03-01-preview: + - checkNameAvailability + - getEntities + - managementGroups + - managementGroups/subscriptions + - operations + - startTenantBackfill + - tenantBackfillStatus + microsoft.cache: + '2018-03-01': + - CheckNameAvailability + - Redis + - Redis/export + - Redis/firewallRules + - Redis/forceReboot + - Redis/import + - Redis/linkedServers + - Redis/listKeys + - Redis/listUpgradeNotifications + - Redis/patchSchedules + - Redis/regenerateKey + - operations + microsoft.machinelearningservices: + 2018-03-01-preview: + - operations + - workspaces + - workspaces/computes + - workspaces/computes/listKeys + - workspaces/listKeys + - workspaces/resyncKeys + microsoft.addons: + '2018-03-01': + - operations + - supportProviders/listSupportPlanInfo + - supportProviders/supportPlanTypes + microsoft.windowsiot: + 2018-02-16-preview: + - checkDeviceServiceNameAvailability + - deviceServices + - operations + microsoft.keyvault: + '2018-02-14': + - checkNameAvailability + - deletedVaults + - locations/deletedVaults + - locations/deletedVaults/purge + - operations + - vaults + - vaults/accessPolicies + microsoft.migrate: + '2018-02-02': + - locations/assessmentOptions + - locations/checkNameAvailability + - operations + - projects + - projects/assessments + - projects/groups + - projects/groups/assessments + - projects/groups/assessments/assessedMachines + - projects/groups/assessments/downloadUrl + - projects/keys + - projects/machines + microsoft.servicefabric: + '2018-02-01': + - clusters + - locations/clusterVersions + - locations/environments/clusterVersions + - operations + 2017-07-01-preview: + - clusters/applicationTypes + - clusters/applicationTypes/versions + - clusters/applications + - clusters/applications/services + microsoft.managementpartner: + '2018-02-01': + - operations + - partners + microsoft.domainregistration: + '2018-02-01': + - checkDomainAvailability + - domains + - domains/domainOwnershipIdentifiers + - domains/renew + - generateSsoRequest + - listDomainRecommendations + - operations + - topLevelDomains + - topLevelDomains/listAgreements + '2015-08-01': + - domains/operationresults + - validateDomainRegistrationInformation + microsoft.certificateregistration: + '2018-02-01': + - certificateOrders + - certificateOrders/certificates + - certificateOrders/reissue + - certificateOrders/renew + - certificateOrders/resendEmail + - certificateOrders/resendRequestEmails + - certificateOrders/retrieveCertificateActions + - certificateOrders/retrieveEmailHistory + - certificateOrders/retrieveSiteSeal + - certificateOrders/verifyDomainOwnership + - operations + - validateCertificateRegistrationInformation + microsoft.eventhub: + 2018-01-01-preview: + - clusters + - clusters/quotaConfiguration + - namespaces + - namespaces/ipfilterrules + - namespaces/networkRuleSets + - namespaces/virtualnetworkrules + - operations + '2017-04-01': + - CheckNameAvailability + - namespaces/AuthorizationRules + - namespaces/AuthorizationRules/listKeys + - namespaces/AuthorizationRules/regenerateKeys + - namespaces/disasterRecoveryConfigs + - namespaces/disasterRecoveryConfigs/AuthorizationRules + - namespaces/disasterRecoveryConfigs/AuthorizationRules/listKeys + - namespaces/disasterRecoveryConfigs/breakPairing + - namespaces/disasterRecoveryConfigs/failover + - namespaces/eventhubs + - namespaces/eventhubs/authorizationRules + - namespaces/eventhubs/authorizationRules/ListKeys + - namespaces/eventhubs/authorizationRules/regenerateKeys + - namespaces/eventhubs/consumergroups + - namespaces/messagingplan + - sku/regions + '2014-09-01': + - CheckNamespaceAvailability + microsoft.databox: + '2018-01-01': + - jobs + - jobs/bookShipmentPickUp + - jobs/cancel + - jobs/listCredentials + - locations/availableSkus + - locations/validateAddress + - operations + microsoft.servicebus: + 2018-01-01-preview: + - namespaces + - namespaces/ipfilterrules + - namespaces/networkrulesets + - namespaces/virtualnetworkrules + - operations + '2017-04-01': + - CheckNameAvailability + - namespaces/AuthorizationRules + - namespaces/AuthorizationRules/listKeys + - namespaces/AuthorizationRules/regenerateKeys + - namespaces/disasterRecoveryConfigs + - namespaces/disasterRecoveryConfigs/AuthorizationRules + - namespaces/disasterRecoveryConfigs/AuthorizationRules/listKeys + - namespaces/disasterRecoveryConfigs/breakPairing + - namespaces/disasterRecoveryConfigs/failover + - namespaces/eventhubs + - namespaces/migrate + - namespaces/migrationConfigurations + - namespaces/migrationConfigurations/revert + - namespaces/migrationConfigurations/upgrade + - namespaces/queues + - namespaces/queues/authorizationRules + - namespaces/queues/authorizationRules/ListKeys + - namespaces/queues/authorizationRules/regenerateKeys + - namespaces/topics + - namespaces/topics/authorizationRules + - namespaces/topics/authorizationRules/ListKeys + - namespaces/topics/authorizationRules/regenerateKeys + - namespaces/topics/subscriptions + - namespaces/topics/subscriptions/rules + - premiumMessagingRegions + - sku/regions + microsoft.dbformysql: + '2017-12-01': + - servers/configurations + - servers/replicas + - servers/restart + - servers/securityAlertPolicies + - servers/virtualNetworkRules + 2017-12-01-preview: + - checkNameAvailability + - locations/performanceTiers + - operations + - servers + - servers/databases + - servers/firewallRules + - servers/logFiles + microsoft.dbforpostgresql: + 2017-12-01-preview: + - checkNameAvailability + - locations/performanceTiers + - operations + - servers + - servers/Replicas + - servers/configurations + - servers/databases + - servers/firewallRules + - servers/logFiles + '2017-12-01': + - servers/restart + - servers/securityAlertPolicies + - servers/virtualNetworkRules + microsoft.hanaonazure: + 2017-11-03-preview: + - hanaInstances + - hanaInstances/monitoring + - hanaInstances/restart + - operations + microsoft.cdn: + '2017-10-12': + - checkNameAvailability + - checkResourceUsage + - edgenodes + - operations + - profiles + - profiles/checkResourceUsage + - profiles/endpoints + - profiles/endpoints/checkResourceUsage + - profiles/endpoints/customDomains + - profiles/endpoints/customDomains/disableCustomHttps + - profiles/endpoints/customDomains/enableCustomHttps + - profiles/endpoints/load + - profiles/endpoints/origins + - profiles/endpoints/purge + - profiles/endpoints/start + - profiles/endpoints/stop + - profiles/endpoints/validateCustomDomain + - profiles/generateSsoUri + - profiles/getSupportedOptimizationTypes + - validateProbe + microsoft.operationalinsights: + '2017-10-01': + - workspaces/query + 2015-11-01-preview: + - operations + - workspaces + - workspaces/dataSources + - workspaces/features/clientGroups + - workspaces/features/clientGroups/members + - workspaces/features/clientGroups/membersCount + - workspaces/features/generateMap + - workspaces/features/machineGroups + - workspaces/features/machines + - workspaces/features/machines/connections + - workspaces/features/machines/liveness + - workspaces/features/machines/machineGroups + - workspaces/features/machines/ports + - workspaces/features/machines/ports/acceptingProcesses + - workspaces/features/machines/ports/connections + - workspaces/features/machines/ports/liveness + - workspaces/features/machines/processes + - workspaces/features/machines/processes/acceptingPorts + - workspaces/features/machines/processes/connections + - workspaces/features/machines/processes/liveness + - workspaces/features/summaries + - workspaces/intelligencePacks + - workspaces/intelligencePacks/Disable + - workspaces/intelligencePacks/Enable + - workspaces/linkedServices + - workspaces/managementGroups + - workspaces/sharedKeys + - workspaces/usages + '2015-03-20': + - linkTargets + - workspaces/gateways + - workspaces/listKeys + - workspaces/operations + - workspaces/purge + - workspaces/regenerateSharedKey + - workspaces/savedSearches + - workspaces/savedSearches/results + - workspaces/schema + - workspaces/search + - workspaces/storageInsightConfigs + microsoft.iotspaces: + 2017-10-01-preview: + - Graph + - checkNameAvailability + - operations + microsoft.powerbidedicated: + '2017-10-01': + - capacities + - capacities/resume + - capacities/skus + - capacities/suspend + - locations/checkNameAvailability + - operations + - skus + microsoft.netapp: + '2017-08-15': + - netAppAccounts + - netAppAccounts/capacityPools + - netAppAccounts/capacityPools/volumes + - netAppAccounts/capacityPools/volumes/mountTargets + - netAppAccounts/capacityPools/volumes/snapshots + - operations + microsoft.analysisservices: + 2017-08-01-beta: + - locations/checkNameAvailability + - locations/operationresults + - locations/operationstatuses + - servers + - servers/dissociateGateway + - servers/listGatewayStatus + - servers/resume + - servers/skus + - servers/suspend + - skus + '2017-08-01': + - operations + microsoft.machinelearningcompute: + 2017-08-01-preview: + - operationalizationClusters + - operationalizationClusters/checkSystemServicesUpdatesAvailable + - operationalizationClusters/listKeys + - operationalizationClusters/updateSystemServices + - operations + 2017-06-01-preview: + - operationalizationClusters/checkUpdate + - operationalizationClusters/updateSystem + microsoft.resourcehealth: + '2017-07-01': + - availabilityStatuses + - childAvailabilityStatuses + - childResources + - operations + microsoft.aad: + '2017-06-01': + - domainServices + - operations + microsoft.storsimple: + '2017-06-01': + - managers + - managers/accessControlRecords + - managers/alerts + - managers/bandwidthSettings + - managers/clearAlerts + - managers/cloudApplianceConfigurations + - managers/configureDevice + - managers/devices + - managers/devices/alertSettings + - managers/devices/authorizeForServiceEncryptionKeyRollover + - managers/devices/backupPolicies + - managers/devices/backupPolicies/backup + - managers/devices/backupPolicies/schedules + - managers/devices/backups + - managers/devices/backups/elements/clone + - managers/devices/backups/restore + - managers/devices/deactivate + - managers/devices/failover + - managers/devices/hardwareComponentGroups + - managers/devices/hardwareComponentGroups/changeControllerPowerState + - managers/devices/installUpdates + - managers/devices/jobs + - managers/devices/jobs/cancel + - managers/devices/listFailoverSets + - managers/devices/listFailoverTargets + - managers/devices/metrics + - managers/devices/metricsDefinitions + - managers/devices/networkSettings + - managers/devices/publicEncryptionKey + - managers/devices/scanForUpdates + - managers/devices/securitySettings + - managers/devices/securitySettings/syncRemoteManagementCertificate + - managers/devices/sendTestAlertEmail + - managers/devices/timeSettings + - managers/devices/updateSummary + - managers/devices/volumeContainers + - managers/devices/volumeContainers/metrics + - managers/devices/volumeContainers/metricsDefinitions + - managers/devices/volumeContainers/volumes + - managers/devices/volumeContainers/volumes/metrics + - managers/devices/volumeContainers/volumes/metricsDefinitions + - managers/devices/volumes + - managers/encryptionSettings + - managers/extendedInformation + - managers/features + - managers/jobs + - managers/listActivationKey + - managers/listPublicEncryptionKey + - managers/metrics + - managers/metricsDefinitions + - managers/provisionCloudAppliance + - managers/regenerateActivationKey + - managers/storageAccountCredentials + - operations + '2016-10-01': + - managers/backups + - managers/certificates + - managers/devices/backupScheduleGroups + - managers/devices/chapSettings + - managers/devices/disks + - managers/devices/download + - managers/devices/failoverTargets + - managers/devices/fileservers + - managers/devices/fileservers/backup + - managers/devices/fileservers/metrics + - managers/devices/fileservers/metricsDefinitions + - managers/devices/fileservers/shares + - managers/devices/fileservers/shares/metrics + - managers/devices/fileservers/shares/metricsDefinitions + - managers/devices/install + - managers/devices/iscsiservers + - managers/devices/iscsiservers/backup + - managers/devices/iscsiservers/disks + - managers/devices/iscsiservers/disks/metrics + - managers/devices/iscsiservers/disks/metricsDefinitions + - managers/devices/iscsiservers/metrics + - managers/devices/iscsiservers/metricsDefinitions + - managers/devices/securitySettings/update + - managers/devices/shares + - managers/fileservers + - managers/getEncryptionKey + - managers/iscsiservers + - managers/storageDomains + microsoft.azurestack: + '2017-06-01': + - operations + - registrations + - registrations/customerSubscriptions + - registrations/getactivationkey + - registrations/products + - registrations/products/listDetails + microsoft.machinelearningexperimentation: + 2017-05-01-preview: + - accounts + - accounts/workspaces + - accounts/workspaces/projects + - operations + microsoft.customerinsights: + '2017-04-26': + - hubs + - hubs/authorizationPolicies + - hubs/authorizationPolicies/regeneratePrimaryKey + - hubs/authorizationPolicies/regenerateSecondaryKey + - hubs/connectors + - hubs/connectors/mappings + - hubs/images + - hubs/interactions + - hubs/interactions/suggestRelationshipLinks + - hubs/kpi + - hubs/kpi/reprocess + - hubs/links + - hubs/predictions + - hubs/predictions/getModelStatus + - hubs/predictions/getTrainingResults + - hubs/predictions/modelStatus + - hubs/profiles + - hubs/profiles/getEnrichingKpis + - hubs/relationshipLinks + - hubs/relationships + - hubs/roleAssignments + - hubs/roles + - hubs/views + - hubs/widgetTypes + - operations + microsoft.advisor: + '2017-04-19': + - configurations + - generateRecommendations + - operations + - recommendations + - recommendations/suppressions + - suppressions + microsoft.cognitiveservices: + '2017-04-18': + - accounts + - accounts/listKeys + - accounts/regenerateKey + - accounts/skus + - accounts/usages + - locations/checkSkuAvailability + - operations + - skus + microsoft.notificationhubs: + '2017-04-01': + - checkNamespaceAvailability + - namespaces + - namespaces/AuthorizationRules + - namespaces/AuthorizationRules/listKeys + - namespaces/AuthorizationRules/regenerateKeys + - namespaces/checkNotificationHubAvailability + - namespaces/notificationHubs + - namespaces/notificationHubs/AuthorizationRules + - namespaces/notificationHubs/AuthorizationRules/listKeys + - namespaces/notificationHubs/AuthorizationRules/regenerateKeys + - namespaces/notificationHubs/debugsend + - namespaces/notificationHubs/pnsCredentials + - operations + microsoft.relay: + '2017-04-01': + - checkNameAvailability + - namespaces + - namespaces/authorizationRules + - namespaces/authorizationRules/listKeys + - namespaces/authorizationRules/regenerateKeys + - namespaces/hybridConnections + - namespaces/hybridConnections/authorizationRules + - namespaces/hybridConnections/authorizationRules/listKeys + - namespaces/hybridConnections/authorizationRules/regenerateKeys + - namespaces/wcfRelays + - namespaces/wcfRelays/authorizationRules + - namespaces/wcfRelays/authorizationRules/listKeys + - namespaces/wcfRelays/authorizationRules/regenerateKeys + - operations + microsoft.sqlvirtualmachine: + 2017-03-01-preview: + - operations + - sqlVirtualMachineGroups + - sqlVirtualMachineGroups/availabilityGroupListeners + - sqlVirtualMachines + microsoft.machinelearning: + '2017-01-01': + - operations + - webServices + - webServices/CreateRegionalBlob + - webServices/listKeys + 2016-05-01-preview: + - commitmentPlans + - commitmentPlans/commitmentAssociations + - commitmentPlans/commitmentAssociations/move + - commitmentPlans/usageHistory + - skus + '2016-04-01': + - workspaces + - workspaces/listWorkspaceKeys + - workspaces/resyncStorageKeys + microsoft.datalakeanalytics: + '2016-11-01': + - accounts + - accounts/computePolicies + - accounts/dataLakeStoreAccounts + - accounts/firewallRules + - accounts/storageAccounts + - accounts/storageAccounts/containers + - accounts/storageAccounts/containers/listSasTokens + - locations/capability + - locations/checkNameAvailability + - operations + microsoft.importexport: + '2016-11-01': + - jobs + - jobs/listBitLockerKeys + - locations + - operations + microsoft.datalakestore: + '2016-11-01': + - accounts + - accounts/enableKeyVault + - accounts/firewallRules + - accounts/trustedIdProviders + - accounts/virtualNetworkRules + - locations/capability + - locations/checkNameAvailability + - operations + microsoft.datacatalog: + '2016-03-30': + - catalogs + - operations + microsoft.streamanalytics: + '2016-03-01': + - locations/quotas + - operations + - streamingjobs + - streamingjobs/functions + - streamingjobs/functions/RetrieveDefaultDefinition + - streamingjobs/functions/test + - streamingjobs/inputs + - streamingjobs/inputs/test + - streamingjobs/outputs + - streamingjobs/outputs/test + - streamingjobs/start + - streamingjobs/stop + - streamingjobs/transformations + microsoft.scheduler: + '2016-03-01': + - jobCollections + - jobCollections/disable + - jobCollections/enable + - jobCollections/jobs + - jobCollections/jobs/history + - jobCollections/jobs/run + microsoft.powerbi: + '2016-01-29': + - locations/checkNameAvailability + - operations + - workspaceCollections + - workspaceCollections/listKeys + - workspaceCollections/regenerateKey + - workspaceCollections/workspaces + microsoft.features: + '2015-12-01': + - features + - operations + - providers/features + - providers/features/register + microsoft.operationsmanagement: + 2015-11-01-preview: + - ManagementAssociations + - ManagementConfigurations + - operations + - solutions + microsoft.search: + '2015-08-19': + - checkNameAvailability + - operations + - searchServices + - searchServices/createQueryKey + - searchServices/deleteQueryKey + - searchServices/listAdminKeys + - searchServices/listQueryKeys + - searchServices/regenerateAdminKey + microsoft.marketplaceordering: + '2015-06-01': + - agreements + - agreements/offers/plans + - agreements/offers/plans/cancel + - agreements/offers/plans/sign + - offerTypes/publishers/offers/plans/agreements + - operations + microsoft.commerce: + 2015-06-01-preview: + - RateCard + - UsageAggregates + microsoft.documentdb: + '2015-04-08': + - databaseAccountNames + - databaseAccounts + - databaseAccounts/databases/collections/metricDefinitions + - databaseAccounts/databases/collections/metrics + - databaseAccounts/databases/collections/partitionKeyRangeId/metrics + - databaseAccounts/databases/collections/partitions + - databaseAccounts/databases/collections/usages + - databaseAccounts/databases/metricDefinitions + - databaseAccounts/databases/metrics + - databaseAccounts/databases/usages + - databaseAccounts/failoverPriorityChange + - databaseAccounts/listConnectionStrings + - databaseAccounts/listKeys + - databaseAccounts/metricDefinitions + - databaseAccounts/metrics + - databaseAccounts/offlineRegion + - databaseAccounts/onlineRegion + - databaseAccounts/percentile + - databaseAccounts/readonlykeys + - databaseAccounts/regenerateKey + - databaseAccounts/region/databases/collections/metrics + - databaseAccounts/region/databases/collections/partitionKeyRangeId/metrics + - databaseAccounts/region/databases/collections/partitions + - databaseAccounts/region/metrics + - databaseAccounts/sourceRegion/targetRegion/percentile + - databaseAccounts/targetRegion/percentile + - databaseAccounts/usages + - operations + microsoft.intune: + 2015-01-14-preview: + - locations/apps + 2015-01-14-privatepreview: + - locations + - locations/androidPolicies + - locations/androidPolicies/apps + - locations/androidPolicies/groups + - locations/flaggedUsers + - locations/flaggedUsers/flaggedEnrolledApps + - locations/iosPolicies + - locations/iosPolicies/apps + - locations/iosPolicies/groups + - locations/operationResults + - locations/statuses + - locations/users/devices + - locations/users/devices/wipe + microsoft.visualstudio: + 2014-04-01-preview: + - account + - account/extension + - account/project + - account/project/subContainers/status + - checkNameAvailability + - operations + microsoft.adhybridhealthservice: + '2014-01-01': + - addsservices + - addsservices/addomainservicemembers + - addsservices/addsservicemembers + - addsservices/alerts + - addsservices/configuration + - addsservices/dimensions + - addsservices/features/userpreference + - addsservices/forestsummary + - addsservices/metricmetadata + - addsservices/metricmetadata/groups + - addsservices/metrics/groups + - addsservices/metrics/groups/average + - addsservices/metrics/groups/sum + - addsservices/replicationdetails + - addsservices/replicationstatus + - addsservices/replicationsummary + - addsservices/servicemembers + - addsservices/servicemembers/alerts + - addsservices/servicemembers/credentials + - configuration + - operations + - reports/IsDevOps + - service/servicemembers/connectors + - services + - services/TenantWhitelisting + - services/alerts + - services/checkServiceFeatureAvailibility + - services/exporterrors + - services/exportstatus + - services/feedbacktype/alertfeedback + - services/feedbacktype/feedback + - services/metricmetadata + - services/metricmetadata/groups + - services/metrics/groups + - services/metrics/groups/average + - services/metrics/groups/sum + - services/monitoringconfiguration + - services/monitoringconfigurations + - services/reports/blobUris + - services/reports/details + - services/reports/generateBlobUri + - services/servicemembers + - services/servicemembers/alerts + - services/servicemembers/credentials + - services/servicemembers/data + - services/servicemembers/datafreshness + - services/servicemembers/exportstatus + - services/servicemembers/globalconfiguration + - services/servicemembers/metrics + - services/servicemembers/metrics/groups + - services/servicemembers/serviceconfiguration + operations: + /policies: '2017-03-01' + '/policies/{policyId}': '2017-03-01' + /policySnippets: '2017-03-01' + /regions: '2017-03-01' + /apis: '2017-03-01' + '/apis/{apiId}': '2017-03-01' + '/apis/{apiId}/operations': '2017-03-01' + '/apis/{apiId}/operations/{operationId}': '2017-03-01' + '/apis/{apiId}/operations/{operationId}/policies': '2017-03-01' + '/apis/{apiId}/operations/{operationId}/policies/{policyId}': '2017-03-01' + '/apis/{apiId}/products': '2017-03-01' + '/apis/{apiId}/policies': '2017-03-01' + '/apis/{apiId}/policies/{policyId}': '2017-03-01' + '/apis/{apiId}/schemas': '2017-03-01' + '/apis/{apiId}/schemas/{schemaId}': '2017-03-01' + /authorizationServers: '2017-03-01' + '/authorizationServers/{authsid}': '2017-03-01' + /backends: '2017-03-01' + '/backends/{backendid}': '2017-03-01' + /certificates: 2018-12-01.8.0 + '/certificates/{certificateId}': '2017-03-01' + /templates: '2017-03-01' + '/templates/{templateName}': '2017-03-01' + /groups: '2017-03-01' + '/groups/{groupId}': '2017-03-01' + '/groups/{groupId}/users': '2017-03-01' + '/groups/{groupId}/users/{uid}': '2017-03-01' + /identityProviders: '2017-03-01' + '/identityProviders/{identityProviderName}': '2017-03-01' + /loggers: '2017-03-01' + '/loggers/{loggerid}': '2017-03-01' + /openidConnectProviders: '2017-03-01' + '/openidConnectProviders/{opid}': '2017-03-01' + /portalsettings/signin: '2017-03-01' + /portalsettings/signup: '2017-03-01' + /portalsettings/delegation: '2017-03-01' + /products: '2017-03-01' + '/products/{productId}': '2017-03-01' + '/products/{productId}/apis': '2017-03-01' + '/products/{productId}/apis/{apiId}': '2017-03-01' + '/products/{productId}/groups': '2017-03-01' + '/products/{productId}/groups/{groupId}': '2017-03-01' + '/products/{productId}/subscriptions': '2017-03-01' + '/products/{productId}/policies': '2017-03-01' + '/products/{productId}/policies/{policyId}': '2017-03-01' + /properties: '2017-03-01' + '/properties/{propId}': '2017-03-01' + '/quotas/{quotaCounterKey}': '2017-03-01' + '/quotas/{quotaCounterKey}/{quotaPeriodKey}': '2017-03-01' + /reports/byApi: '2017-03-01' + /reports/byUser: '2017-03-01' + /reports/byOperation: '2017-03-01' + /reports/byProduct: '2017-03-01' + /reports/byGeo: '2017-03-01' + /reports/bySubscription: '2017-03-01' + /reports/byTime: '2017-03-01' + /reports/byRequest: '2017-03-01' + /subscriptions: '2017-03-01' + '/subscriptions/{sid}': '2017-03-01' + '/subscriptions/{sid}/regeneratePrimaryKey': '2017-03-01' + '/subscriptions/{sid}/regenerateSecondaryKey': '2017-03-01' + '/tenant/{accessName}': '2017-03-01' + '/tenant/{accessName}/regeneratePrimaryKey': '2017-03-01' + '/tenant/{accessName}/regenerateSecondaryKey': '2017-03-01' + '/tenant/{accessName}/git': '2017-03-01' + '/tenant/{accessName}/git/regeneratePrimaryKey': '2017-03-01' + '/tenant/{accessName}/git/regenerateSecondaryKey': '2017-03-01' + '/tenant/{configurationName}/deploy': '2017-03-01' + '/tenant/{configurationName}/save': '2017-03-01' + '/tenant/{configurationName}/validate': '2017-03-01' + '/tenant/{configurationName}/syncState': '2017-03-01' + /users: '2017-03-01' + '/users/{uid}': '2017-03-01' + '/users/{uid}/generateSsoUrl': '2017-03-01' + '/users/{uid}/groups': '2017-03-01' + '/users/{uid}/subscriptions': '2017-03-01' + '/users/{uid}/identities': '2017-03-01' + '/users/{uid}/token': '2017-03-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets': 2018-06-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}': 2018-06-01-preview + '/apps/{appId}/metrics/{metricId}': v1 + '/apps/{appId}/metrics': v1 + '/apps/{appId}/metrics/metadata': v1 + '/apps/{appId}/events/{eventType}': v1 + '/apps/{appId}/events/{eventType}/{eventId}': v1 + '/apps/{appId}/events/$metadata': v1 + '/apps/{appId}/query': v1 + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/components/{applicationName}/events/$metadata': '2018-04-20' + '/{roleAssignmentId}': 2017-10-01-preview + '/{roleDefinitionId}': '2015-07-01' + '/{roleId}': 2018-09-01-preview + '/{denyAssignmentId}': 2018-07-01-preview + '/subscriptions/{subscriptionId}': '2016-06-01' + '/delegatedProviders/{delegatedProviderId}/offers': '2015-11-01' + '/delegatedProviders/{delegatedProviderId}/offers/{offerName}': '2015-11-01' + /offers: '2015-11-01' + /applications: 2018-12-01.8.0 + '/applications/{applicationId}': 2018-12-01.8.0 + /poolusagemetrics: 2018-12-01.8.0 + /nodeagentskus: 2018-12-01.8.0 + /nodecounts: 2018-12-01.8.0 + /lifetimepoolstats: 2018-12-01.8.0 + /lifetimejobstats: 2018-12-01.8.0 + '/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})/canceldelete': 2018-12-01.8.0 + '/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/files/{filePath}': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/files/{filePath}': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/files': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/files': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/disable': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/enable': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/terminate': 2018-12-01.8.0 + /jobschedules: 2018-12-01.8.0 + '/jobs/{jobId}': 2018-12-01.8.0 + '/jobs/{jobId}/disable': 2018-12-01.8.0 + '/jobs/{jobId}/enable': 2018-12-01.8.0 + '/jobs/{jobId}/terminate': 2018-12-01.8.0 + /jobs: 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/jobs': 2018-12-01.8.0 + '/jobs/{jobId}/jobpreparationandreleasetaskstatus': 2018-12-01.8.0 + '/jobs/{jobId}/taskcounts': 2018-12-01.8.0 + /pools: 2018-12-01.8.0 + '/pools/{poolId}': 2018-12-01.8.0 + '/pools/{poolId}/disableautoscale': 2018-12-01.8.0 + '/pools/{poolId}/enableautoscale': 2018-12-01.8.0 + '/pools/{poolId}/evaluateautoscale': 2018-12-01.8.0 + '/pools/{poolId}/resize': 2018-12-01.8.0 + '/pools/{poolId}/stopresize': 2018-12-01.8.0 + '/pools/{poolId}/updateproperties': 2018-12-01.8.0 + '/pools/{poolId}/removenodes': 2018-12-01.8.0 + '/jobs/{jobId}/tasks': 2018-12-01.8.0 + '/jobs/{jobId}/addtaskcollection': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/subtasksinfo': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/terminate': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/reactivate': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/users': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/users/{userName}': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/reboot': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/reimage': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/disablescheduling': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/enablescheduling': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/remoteloginsettings': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/rdp': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs': 2018-12-01.8.0 + '/pools/{poolId}/nodes': 2018-12-01.8.0 + '/pools/{poolId}/upgradeos': 2018-08-01.7.0 + '/jobs/{jobId}/tasks/{taskId}/files/{fileName}': 2016-07-01.3.1 + '/pools/{poolId}/nodes/{nodeId}/files/{fileName}': 2016-07-01.3.1 + /timeseries/entire/detect: '1.0' + /timeseries/last/detect: '1.0' + /Suggestions: '1.0' + /analyze: '2.0' + /describe: '2.0' + /detect: '2.0' + /models: '2.0' + '/models/{model}/analyze': '2.0' + /ocr: '2.0' + /tag: '2.0' + /generateThumbnail: '2.0' + /areaOfInterest: '2.0' + /recognizeText: '2.0' + '/textOperations/{operationId}': '2.0' + /read/core/asyncBatchAnalyze: '2.0' + '/read/operations/{operationId}': '2.0' + /contentmoderator/moderate/v1.0/ProcessImage/FindFaces: '1.0' + /contentmoderator/moderate/v1.0/ProcessImage/OCR: '1.0' + /contentmoderator/moderate/v1.0/ProcessImage/Evaluate: '1.0' + /contentmoderator/moderate/v1.0/ProcessImage/Match: '1.0' + /contentmoderator/moderate/v1.0/ProcessText/Screen/: '1.0' + /contentmoderator/moderate/v1.0/ProcessText/DetectLanguage: '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}': '1.0' + /contentmoderator/lists/v1.0/imagelists: '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}/RefreshIndex': '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}': '1.0' + /contentmoderator/lists/v1.0/termlists: '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}/RefreshIndex': '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}/images': '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}/images/{ImageId}': '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}/terms/{term}': '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}/terms': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/jobs/{JobId}': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/jobs': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/frames': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/publish': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/transcriptmoderationresult': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/transcript': '1.0' + /images/search: '1.0' + '/{projectId}/url': '2.0' + '/{projectId}/image': '2.0' + '/{projectId}/url/nostore': '2.0' + '/{projectId}/image/nostore': '2.0' + /domains: '2.2' + '/domains/{domainId}': '2.2' + '/projects/{projectId}/images/tagged': '2.2' + '/projects/{projectId}/images/untagged': '2.2' + '/projects/{projectId}/images/tagged/count': '2.2' + '/projects/{projectId}/images/untagged/count': '2.2' + '/projects/{projectId}/images/id': '2.2' + '/projects/{projectId}/images': '2.2' + '/projects/{projectId}/images/files': '2.2' + '/projects/{projectId}/images/urls': '2.2' + '/projects/{projectId}/images/predictions': '2.2' + '/projects/{projectId}/images/tags': '2.2' + '/projects/{projectId}/images/regions': '2.2' + '/{projectId}/images/{imageId}/regionproposals': '2.2' + '/projects/{projectId}/predictions': '2.2' + '/projects/{projectId}/predictions/query': '2.2' + '/projects/{projectId}/quicktest/url': '2.2' + '/projects/{projectId}/quicktest/image': '2.2' + '/projects/{projectId}/train': '2.2' + /projects: '2.2' + '/projects/{projectId}': '2.2' + '/projects/{projectId}/iterations': '2.2' + '/projects/{projectId}/iterations/{iterationId}': '2.2' + '/projects/{projectId}/iterations/{iterationId}/performance': '2.2' + '/projects/{projectId}/iterations/{iterationId}/performance/images': '2.2' + '/projects/{projectId}/iterations/{iterationId}/performance/images/count': '2.2' + '/projects/{projectId}/iterations/{iterationId}/export': '2.2' + '/projects/{projectId}/tags/{tagId}': '2.2' + '/projects/{projectId}/tags': '2.2' + /search: '1.0' + /entities: v2.1 + /findsimilars: '1.0' + /group: '1.0' + /identify: '1.0' + /verify: '1.0' + '/persongroups/{personGroupId}/persons': '1.0' + '/persongroups/{personGroupId}/persons/{personId}': '1.0' + '/persongroups/{personGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}': '1.0' + '/persongroups/{personGroupId}': '1.0' + '/persongroups/{personGroupId}/training': '1.0' + /persongroups: '1.0' + '/persongroups/{personGroupId}/train': '1.0' + '/facelists/{faceListId}': '1.0' + /facelists: '1.0' + '/facelists/{faceListId}/persistedfaces/{persistedFaceId}': '1.0' + '/persongroups/{personGroupId}/persons/{personId}/persistedfaces': '1.0' + '/facelists/{faceListId}/persistedfaces': '1.0' + '/largepersongroups/{largePersonGroupId}/persons': '1.0' + '/largepersongroups/{largePersonGroupId}/persons/{personId}': '1.0' + '/largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}': '1.0' + '/largepersongroups/{largePersonGroupId}': '1.0' + '/largepersongroups/{largePersonGroupId}/training': '1.0' + /largepersongroups: '1.0' + '/largepersongroups/{largePersonGroupId}/train': '1.0' + '/largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces': '1.0' + '/largefacelists/{largeFaceListId}': '1.0' + '/largefacelists/{largeFaceListId}/training': '1.0' + /largefacelists: '1.0' + '/largefacelists/{largeFaceListId}/train': '1.0' + '/largefacelists/{largeFaceListId}/persistedfaces/{persistedFaceId}': '1.0' + '/largefacelists/{largeFaceListId}/persistedfaces': '1.0' + /snapshots: '1.0' + '/snapshots/{snapshotId}': '1.0' + '/snapshots/{snapshotId}/apply': '1.0' + '/operations/{operationId}': '4.0' + /images/details: '1.0' + /images/trending: '1.0' + /localbusinesses/v7.0/search: '1.0' + '/apps/{appId}/versions/{versionId}/patterns': '2.0' + '/apps/{appId}/versions/{versionId}/phraselists': '2.0' + '/apps/{appId}/versions/{versionId}/features': '2.0' + '/apps/{appId}/versions/{versionId}/patterns/{patternId}': '2.0' + '/apps/{appId}/versions/{versionId}/phraselists/{phraselistId}': '2.0' + '/apps/{appId}/versions/{versionId}/example': '2.0' + '/apps/{appId}/versions/{versionId}/examples': '2.0' + '/apps/{appId}/versions/{versionId}/examples/{exampleId}': '2.0' + '/apps/{appId}/versions/{versionId}/intents': '2.0' + '/apps/{appId}/versions/{versionId}/entities': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts': '2.0' + '/apps/{appId}/versions/{versionId}/listprebuilts': '2.0' + '/apps/{appId}/versions/{versionId}/models': '2.0' + '/apps/{appId}/versions/{versionId}/models/{modelId}/examples': '2.0' + '/apps/{appId}/versions/{versionId}/intents/{intentId}': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}': '2.0' + '/apps/{appId}/versions/{versionId}/intents/{intentId}/suggest': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}/suggest': '2.0' + /apps/: '2.0' + /apps/import: '2.0' + /apps/assistants: '2.0' + /apps/domains: '2.0' + /apps/usagescenarios: '2.0' + /apps/cultures: '2.0' + '/apps/{appId}/querylogs': '2.0' + '/apps/{appId}': '2.0' + '/apps/{appId}/versions/{versionId}/clone': '2.0' + '/apps/{appId}/publish': '2.0' + '/apps/{appId}/versions': '2.0' + '/apps/{appId}/versions/{versionId}/': '2.0' + '/apps/{appId}/versions/{versionId}/export': '2.0' + '/apps/{appId}/versions/{versionId}/train': '2.0' + '/apps/{appId}/versions/import': '2.0' + '/apps/{appId}/settings': '2.0' + '/apps/{appId}/publishsettings': '2.0' + '/apps/{appId}/versions/{versionId}/suggest': '2.0' + '/apps/{appId}/permissions': '2.0' + '/apps/{appId}/endpoints': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltdomains': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltintents': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltentities': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltmodels': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltdomains/{domainName}': '2.0' + /apps/customprebuiltdomains: '2.0' + '/apps/customprebuiltdomains/{culture}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children/{cChildId}': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternrule': '2.0' + '/apps/{appId}/versions/{versionId}/patternrules': '2.0' + '/apps/{appId}/versions/{versionId}/patternrules/{patternId}': '2.0' + '/apps/{appId}/versions/{versionId}/intents/{intentId}/patternrules': '2.0' + '/apps/{appId}/versions/{versionId}/settings': '2.0' + '/apps/{appId}/azureaccounts': '2.0' + /azureaccounts: '2.0' + '/package/{appId}/slot/{slotName}/gzip': '2.0' + '/package/{appId}/versions/{versionId}/gzip': '2.0' + /news/search: '1.0' + /news: '1.0' + /news/trendingtopics: '1.0' + /endpointkeys: '4.0' + '/endpointkeys/{keyType}': '4.0' + /alterations: '4.0' + /knowledgebases: '4.0' + '/knowledgebases/{kbId}': '4.0' + /knowledgebases/create: '4.0' + '/knowledgebases/{kbId}/{environment}/qna': '4.0' + /spellcheck: '1.0' + /keyPhrases: v2.1 + /languages: v2.1 + /sentiment: v2.1 + /BreakSentence: '3.0' + /Detect: '3.0' + /Dictionary/Lookup: '3.0' + /Dictionary/Examples: '3.0' + /Languages: '3.0' + /translate: '3.0' + /transliterate: '3.0' + /videos/search: '1.0' + /videos/details: '1.0' + /videos/trending: '1.0' + /images/visualsearch: '1.0' + '/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/Microsoft.Consumption/aggregatedcost': '2019-01-01' + /v2/: 2018-08-10-preview + '/v2/{name}/tags/list': 2018-08-10-preview + '/v2/{name}/manifests/{reference}': 2018-08-10-preview + /v2/_catalog: 2018-08-10-preview + /acr/v1/_catalog: 2018-08-10-preview + '/acr/v1/{name}': 2018-08-10-preview + '/acr/v1/{name}/_tags': 2018-08-10-preview + '/acr/v1/{name}/_tags/{reference}': 2018-08-10-preview + '/acr/v1/{name}/_manifests': 2018-08-10-preview + '/acr/v1/{name}/_manifests/{reference}': 2018-08-10-preview + '/catalog/usql/databases/{databaseName}/secrets/{secretName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/secrets': '2016-11-01' + '/catalog/usql/databases/{databaseName}/credentials/{credentialName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/credentials': '2016-11-01' + '/catalog/usql/databases/{databaseName}/externaldatasources/{externalDataSourceName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/externaldatasources': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/procedures/{procedureName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/procedures': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/tablefragments': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/statistics': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tabletypes/{tableTypeName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tabletypes': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/packages/{packageName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/packages': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/views/{viewName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/views': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/statistics/{statisticsName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/statistics': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions/{partitionName}/previewrows': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions/{partitionName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/previewrows': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/types': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tablevaluedfunctions/{tableValuedFunctionName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tablevaluedfunctions': '2016-11-01' + '/catalog/usql/databases/{databaseName}/assemblies/{assemblyName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/assemblies': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas': '2016-11-01' + '/catalog/usql/databases/{databaseName}/statistics': '2016-11-01' + '/catalog/usql/databases/{databaseName}/tables': '2016-11-01' + '/catalog/usql/databases/{databaseName}/tablevaluedfunctions': '2016-11-01' + '/catalog/usql/databases/{databaseName}/views': '2016-11-01' + '/catalog/usql/databases/{databaseName}/acl': '2016-11-01' + /catalog/usql/acl: '2016-11-01' + '/catalog/usql/databases/{databaseName}': '2016-11-01' + /catalog/usql/databases: '2016-11-01' + '/jobs/{jobIdentity}': 2017-09-01-preview + '/jobs/{jobIdentity}/GetStatistics': 2017-09-01-preview + '/jobs/{jobIdentity}/GetDebugDataPath': 2017-09-01-preview + '/jobs/{jobIdentity}/CancelJob': 2017-09-01-preview + '/jobs/{jobIdentity}/YieldJob': 2017-09-01-preview + /buildJob: 2017-09-01-preview + /pipelines: 2017-09-01-preview + '/pipelines/{pipelineIdentity}': 2017-09-01-preview + /recurrences: 2017-09-01-preview + '/recurrences/{recurrenceIdentity}': 2017-09-01-preview + '/Jobs/{jobIdentity}/GetStatistics': '2016-11-01' + '/Jobs/{jobIdentity}/GetDebugDataPath': '2016-11-01' + /BuildJob: '2016-11-01' + '/Jobs/{jobIdentity}/CancelJob': '2016-11-01' + '/Jobs/{jobIdentity}': '2016-11-01' + /Jobs: '2016-11-01' + '/WebHdfsExt/{path}': '2016-11-01' + '/webhdfs/v1/{path}': '2016-11-01' + '/WebHdfsExt/{filePath}': 2015-10-01-preview + /api/events: '2018-01-01' + '/{tenantID}/me': '1.6' + '/{tenantID}/me/ownedObjects': '1.6' + '/{tenantID}/applications': '1.6' + '/{tenantID}/deletedApplications/{objectId}/restore': '1.6' + '/{tenantID}/deletedApplications': '1.6' + '/{tenantID}/deletedApplications/{applicationObjectId}': '1.6' + '/{tenantID}/applications/{applicationObjectId}': '1.6' + '/{tenantID}/applications/{applicationObjectId}/owners': '1.6' + '/{tenantID}/applications/{applicationObjectId}/$links/owners': '1.6' + '/{tenantID}/applications/{applicationObjectId}/$links/owners/{ownerObjectId}': '1.6' + '/{tenantID}/applications/{applicationObjectId}/keyCredentials': '1.6' + '/{tenantID}/applications/{applicationObjectId}/passwordCredentials': '1.6' + '/{tenantID}/isMemberOf': '1.6' + '/{tenantID}/groups/{groupObjectId}/$links/members/{memberObjectId}': '1.6' + '/{tenantID}/groups/{groupObjectId}/$links/members': '1.6' + '/{tenantID}/groups': '1.6' + '/{tenantID}/groups/{objectId}/members': '1.6' + '/{tenantID}/groups/{objectId}': '1.6' + '/{tenantID}/groups/{objectId}/getMemberGroups': '1.6' + '/{tenantID}/groups/{objectId}/owners': '1.6' + '/{tenantID}/groups/{objectId}/$links/owners': '1.6' + '/{tenantID}/groups/{objectId}/$links/owners/{ownerObjectId}': '1.6' + '/{tenantID}/servicePrincipals': '1.6' + '/{tenantID}/servicePrincipalsByAppId/{applicationID}/objectId': '1.6' + '/{tenantID}/servicePrincipals/{objectId}': '1.6' + '/{tenantID}/servicePrincipals/{objectId}/owners': '1.6' + '/{tenantID}/servicePrincipals/{objectId}/keyCredentials': '1.6' + '/{tenantID}/servicePrincipals/{objectId}/passwordCredentials': '1.6' + '/{tenantID}/users': '1.6' + '/{tenantID}/users/{upnOrObjectId}': '1.6' + '/{tenantID}/users/{objectId}/getMemberGroups': '1.6' + '/{tenantID}/getObjectsByObjectIds': '1.6' + '/{tenantID}/domains': '1.6' + '/{tenantID}/domains/{domainName}': '1.6' + '/{tenantID}/oauth2PermissionGrants': '1.6' + '/{tenantID}/oauth2PermissionGrants/{objectId}': '1.6' + '/templeton/v1/jobs/{jobId}': 2018-11-01-preview + /templeton/v1/jobs: 2018-11-01-preview + /templeton/v1/jobs?op=LISTAFTERID: 2018-11-01-preview + /templeton/v1/hive: 2018-11-01-preview + /templeton/v1/mapreduce/jar: 2018-11-01-preview + /templeton/v1/mapreduce/streaming: 2018-11-01-preview + /templeton/v1/pig: 2018-11-01-preview + /templeton/v1/sqoop: 2018-11-01-preview + '/ws/v1/cluster/apps/{appId}/state': 2018-11-01-preview + /instance: '2018-10-01' + /attested/document: '2018-10-01' + /identity/oauth2/token: '2018-10-01' + /identity/info: '2018-10-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testall': 2018-12-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testnew': 2018-12-01-preview + '/keys/{key-name}/create': '2016-10-01' + '/keys/{key-name}': '2016-10-01' + '/keys/{key-name}/{key-version}': '2016-10-01' + '/keys/{key-name}/versions': '2016-10-01' + /keys: '2016-10-01' + '/keys/{key-name}/backup': '2016-10-01' + /keys/restore: '2016-10-01' + '/keys/{key-name}/{key-version}/encrypt': '2016-10-01' + '/keys/{key-name}/{key-version}/decrypt': '2016-10-01' + '/keys/{key-name}/{key-version}/sign': '2016-10-01' + '/keys/{key-name}/{key-version}/verify': '2016-10-01' + '/keys/{key-name}/{key-version}/wrapkey': '2016-10-01' + '/keys/{key-name}/{key-version}/unwrapkey': '2016-10-01' + /deletedkeys: '2016-10-01' + '/deletedkeys/{key-name}': '2016-10-01' + '/deletedkeys/{key-name}/recover': '2016-10-01' + '/secrets/{secret-name}': '2016-10-01' + '/secrets/{secret-name}/{secret-version}': '2016-10-01' + /secrets: '2016-10-01' + '/secrets/{secret-name}/versions': '2016-10-01' + /deletedsecrets: '2016-10-01' + '/deletedsecrets/{secret-name}': '2016-10-01' + '/deletedsecrets/{secret-name}/recover': '2016-10-01' + '/secrets/{secret-name}/backup': '2016-10-01' + /secrets/restore: '2016-10-01' + '/certificates/{certificate-name}': '2016-10-01' + /certificates/contacts: '2016-10-01' + /certificates/issuers: '2016-10-01' + '/certificates/issuers/{issuer-name}': '2016-10-01' + '/certificates/{certificate-name}/create': '2016-10-01' + '/certificates/{certificate-name}/import': '2016-10-01' + '/certificates/{certificate-name}/versions': '2016-10-01' + '/certificates/{certificate-name}/policy': '2016-10-01' + '/certificates/{certificate-name}/{certificate-version}': '2016-10-01' + '/certificates/{certificate-name}/pending': '2016-10-01' + '/certificates/{certificate-name}/pending/merge': '2016-10-01' + '/certificates/{certificate-name}/backup': '7.0' + /certificates/restore: '7.0' + /deletedcertificates: '2016-10-01' + '/deletedcertificates/{certificate-name}': '2016-10-01' + '/deletedcertificates/{certificate-name}/recover': '2016-10-01' + /storage: '2016-10-01' + /deletedstorage: '7.0' + '/deletedstorage/{storage-account-name}': '7.0' + '/deletedstorage/{storage-account-name}/recover': '7.0' + '/storage/{storage-account-name}/backup': '7.0' + /storage/restore: '7.0' + '/storage/{storage-account-name}': '2016-10-01' + '/storage/{storage-account-name}/regeneratekey': '2016-10-01' + '/storage/{storage-account-name}/sas': '2016-10-01' + '/deletedstorage/{storage-account-name}/sas': '7.0' + '/deletedstorage/{storage-account-name}/sas/{sas-definition-name}': '7.0' + '/deletedstorage/{storage-account-name}/sas/{sas-definition-name}/recover': '7.0' + '/storage/{storage-account-name}/sas/{sas-definition-name}': '2016-10-01' + '/subscriptions/{subscriptionId}/resources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces{workspaceName}/projects': 2017-05-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProvider}/{resourceTypeName}/{resourceName}/metrics': 2018-09-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}arpTable': 2015-05-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}routesTable': 2015-05-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}stats': 2015-05-01-preview + '/{operationStatusLink}': '2014-09-01' + '/workspaces/{workspaceId}/query': v1 + '/{scope}/providers/Microsoft.PolicyInsights/policyEvents/$metadata': '2018-04-04' + '/{scope}/providers/Microsoft.PolicyInsights/policyStates/$metadata': 2018-07-01-preview + '/{policyAssignmentId}': '2018-05-01' + '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister': '2018-05-01' + '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register': '2018-05-01' + '/subscriptions/{subscriptionId}/providers': '2018-05-01' + '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}': '2018-05-01' + '/{resourceId}': '2018-05-01' + '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}': '2018-05-01' + '/subscriptions/{subscriptionId}/tagNames/{tagName}': '2018-05-01' + '/subscriptions/{subscriptionId}/tagNames': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations': '2018-05-01' + '/providers/{resourceProviderNamespace}/operations': '2015-11-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}providers/Microsoft.Authorization/policyAssignments': '2015-11-01' + '/subscriptions/{subscriptionId}/locations': '2016-06-01' + /tenants: '2016-06-01' + '/{linkId}': '2016-09-01' + '/{applicationId}': '2018-06-01' + '/{applicationDefinitionId}': '2017-09-01' + '/{applianceId}': 2016-09-01-preview + '/{applianceDefinitionId}': 2016-09-01-preview + /docs/$count: 2017-11-11-Preview + /docs: 2017-11-11-Preview + /docs/search.post.search: 2017-11-11-Preview + '/docs(''{key}'')': 2017-11-11-Preview + /docs/search.suggest: 2017-11-11-Preview + /docs/search.post.suggest: 2017-11-11-Preview + /docs/search.index: 2017-11-11-Preview + /docs/search.autocomplete: 2017-11-11-Preview + /docs/search.post.autocomplete: 2017-11-11-Preview + '/datasources(''{dataSourceName}'')': 2017-11-11-Preview + /datasources: 2017-11-11-Preview + '/indexers(''{indexerName}'')/search.reset': 2017-11-11-Preview + '/indexers(''{indexerName}'')/search.run': 2017-11-11-Preview + '/indexers(''{indexerName}'')': 2017-11-11-Preview + /indexers: 2017-11-11-Preview + '/indexers(''{indexerName}'')/search.status': 2017-11-11-Preview + '/skillsets(''{skillsetName}'')': 2017-11-11-Preview + /skillsets: 2017-11-11-Preview + '/synonymmaps(''{synonymMapName}'')': 2017-11-11-Preview + /synonymmaps: 2017-11-11-Preview + /indexes: 2017-11-11-Preview + '/indexes(''{indexName}'')': 2017-11-11-Preview + '/indexes(''{indexName}'')/search.stats': 2017-11-11-Preview + '/indexes(''{indexName}'')/search.analyze': 2017-11-11-Preview + /servicestats: 2017-11-11-Preview + /$/GetClusterManifest: 6.4.0.36 + /$/GetClusterHealth: 6.4.0.36 + /$/GetClusterHealthChunk: 6.4.0.36 + /$/ReportClusterHealth: 6.4.0.36 + /$/GetProvisionedCodeVersions: 6.4.0.36 + /$/GetProvisionedConfigVersions: 6.4.0.36 + /$/GetUpgradeProgress: 6.4.0.36 + /$/GetClusterConfiguration: 6.4.0.36 + /$/GetClusterConfigurationUpgradeStatus: 6.4.0.36 + /$/GetUpgradeOrchestrationServiceState: 6.4.0.36 + /$/SetUpgradeOrchestrationServiceState: 6.4.0.36 + /$/Provision: 6.4.0.36 + /$/Unprovision: 6.4.0.36 + /$/RollbackUpgrade: 6.4.0.36 + /$/MoveToNextUpgradeDomain: 6.4.0.36 + /$/Upgrade: 6.4.0.36 + /$/StartClusterConfigurationUpgrade: 6.4.0.36 + /$/UpdateUpgrade: 6.4.0.36 + /$/GetAadMetadata: 6.4.0.36 + /Nodes: 6.4.0.36 + '/Nodes/{nodeName}': 6.4.0.36 + '/Nodes/{nodeName}/$/GetHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/ReportHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetLoadInformation': 6.4.0.36 + '/Nodes/{nodeName}/$/Deactivate': 6.4.0.36 + '/Nodes/{nodeName}/$/Activate': 6.4.0.36 + '/Nodes/{nodeName}/$/RemoveNodeState': 6.4.0.36 + '/Nodes/{nodeName}/$/Restart': 6.4.0.36 + /ApplicationTypes: 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}': 6.4.0.36 + /ApplicationTypes/$/Provision: 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/Unprovision': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetServiceTypes': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetServiceTypes/{serviceTypeName}': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetServiceManifest': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes/{serviceTypeName}': 6.4.0.36 + /Applications/$/Create: 6.4.0.36 + '/Applications/{applicationId}/$/Delete': 6.4.0.36 + '/Applications/{applicationId}/$/GetLoadInformation': 6.4.0.36 + /Applications: 6.4.0.36 + '/Applications/{applicationId}': 6.4.0.36 + '/Applications/{applicationId}/$/GetHealth': 6.4.0.36 + '/Applications/{applicationId}/$/ReportHealth': 6.4.0.36 + '/Applications/{applicationId}/$/Upgrade': 6.4.0.36 + '/Applications/{applicationId}/$/GetUpgradeProgress': 6.4.0.36 + '/Applications/{applicationId}/$/UpdateUpgrade': 6.4.0.36 + '/Applications/{applicationId}/$/MoveToNextUpgradeDomain': 6.4.0.36 + '/Applications/{applicationId}/$/RollbackUpgrade': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/ReportHealth': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetApplicationManifest': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices/{serviceId}': 6.4.0.36 + '/Services/{serviceId}/$/GetApplicationName': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices/$/Create': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices/$/CreateFromTemplate': 6.4.0.36 + '/Services/{serviceId}/$/Delete': 6.4.0.36 + '/Services/{serviceId}/$/Update': 6.4.0.36 + '/Services/{serviceId}/$/GetDescription': 6.4.0.36 + '/Services/{serviceId}/$/GetHealth': 6.4.0.36 + '/Services/{serviceId}/$/ReportHealth': 6.4.0.36 + '/Services/{serviceId}/$/ResolvePartition': 6.4.0.36 + '/Services/{serviceId}/$/GetPartitions': 6.4.0.36 + '/Partitions/{partitionId}': 6.4.0.36 + '/Partitions/{partitionId}/$/GetServiceName': 6.4.0.36 + '/Partitions/{partitionId}/$/GetHealth': 6.4.0.36 + '/Partitions/{partitionId}/$/ReportHealth': 6.4.0.36 + '/Partitions/{partitionId}/$/GetLoadInformation': 6.4.0.36 + '/Partitions/{partitionId}/$/ResetLoad': 6.4.0.36 + '/Partitions/{partitionId}/$/Recover': 6.4.0.36 + '/Services/$/{serviceId}/$/GetPartitions/$/Recover': 6.4.0.36 + /$/RecoverSystemPartitions: 6.4.0.36 + /$/RecoverAllPartitions: 6.4.0.36 + /$/CreateRepairTask: 6.4.0.36 + /$/CancelRepairTask: 6.4.0.36 + /$/DeleteRepairTask: 6.4.0.36 + /$/GetRepairTaskList: 6.4.0.36 + /$/ForceApproveRepairTask: 6.4.0.36 + /$/UpdateRepairTaskHealthPolicy: 6.4.0.36 + /$/UpdateRepairExecutionState: 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas': 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas/{replicaId}': 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetHealth': 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/ReportHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetReplicas': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetDetail': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Restart': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Delete': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/GetHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/ReportHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/DeployServicePackage': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/Restart': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/ContainerLogs': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/ContainerApi': 6.4.0.36 + /ComposeDeployments/$/Create: 6.4.0.36 + '/ComposeDeployments/{deploymentName}': 6.4.0.36 + /ComposeDeployments: 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/GetUpgradeProgress': 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/Delete': 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/Upgrade': 6.4.0.36 + /Tools/Chaos: 6.4.0.36 + /Tools/Chaos/$/Start: 6.4.0.36 + /Tools/Chaos/$/Stop: 6.4.0.36 + /Tools/Chaos/Events: 6.4.0.36 + /Tools/Chaos/Schedule: 6.4.0.36 + '/ImageStore/{contentPath}': 6.4.0.36 + /ImageStore: 6.4.0.36 + /ImageStore/$/Copy: 6.4.0.36 + /ImageStore/$/DeleteUploadSession: 6.4.0.36 + /ImageStore/$/CommitUploadSession: 6.4.0.36 + /ImageStore/$/GetUploadSession: 6.4.0.36 + '/ImageStore/{contentPath}/$/GetUploadSession': 6.4.0.36 + '/ImageStore/{contentPath}/$/UploadChunk': 6.4.0.36 + /$/InvokeInfrastructureCommand: 6.4.0.36 + /$/InvokeInfrastructureQuery: 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartDataLoss': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetDataLossProgress': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartQuorumLoss': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetQuorumLossProgress': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartRestart': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetRestartProgress': 6.4.0.36 + '/Faults/Nodes/{nodeName}/$/StartTransition/': 6.4.0.36 + '/Faults/Nodes/{nodeName}/$/GetTransitionProgress': 6.4.0.36 + /Faults/: 6.4.0.36 + /Faults/$/Cancel: 6.4.0.36 + /BackupRestore/BackupPolicies/$/Create: 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}/$/Delete': 6.4.0.36 + /BackupRestore/BackupPolicies: 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}': 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}/$/GetBackupEnabledEntities': 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}/$/Update': 6.4.0.36 + '/Applications/{applicationId}/$/EnableBackup': 6.4.0.36 + '/Applications/{applicationId}/$/DisableBackup': 6.4.0.36 + '/Applications/{applicationId}/$/GetBackupConfigurationInfo': 6.4.0.36 + '/Applications/{applicationId}/$/GetBackups': 6.4.0.36 + '/Applications/{applicationId}/$/SuspendBackup': 6.4.0.36 + '/Applications/{applicationId}/$/ResumeBackup': 6.4.0.36 + '/Services/{serviceId}/$/EnableBackup': 6.4.0.36 + '/Services/{serviceId}/$/DisableBackup': 6.4.0.36 + '/Services/{serviceId}/$/GetBackupConfigurationInfo': 6.4.0.36 + '/Services/{serviceId}/$/GetBackups': 6.4.0.36 + '/Services/{serviceId}/$/SuspendBackup': 6.4.0.36 + '/Services/{serviceId}/$/ResumeBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/EnableBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/DisableBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/GetBackupConfigurationInfo': 6.4.0.36 + '/Partitions/{partitionId}/$/GetBackups': 6.4.0.36 + '/Partitions/{partitionId}/$/SuspendBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/ResumeBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/Backup': 6.4.0.36 + '/Partitions/{partitionId}/$/GetBackupProgress': 6.4.0.36 + '/Partitions/{partitionId}/$/Restore': 6.4.0.36 + '/Partitions/{partitionId}/$/GetRestoreProgress': 6.4.0.36 + /BackupRestore/$/GetBackups: 6.4.0.36 + /Names/$/Create: 6.4.0.36 + '/Names/{nameId}': 6.4.0.36 + '/Names/{nameId}/$/GetSubNames': 6.4.0.36 + '/Names/{nameId}/$/GetProperties': 6.4.0.36 + '/Names/{nameId}/$/GetProperty': 6.4.0.36 + '/Names/{nameId}/$/GetProperties/$/SubmitBatch': 6.4.0.36 + /EventsStore/Cluster/Events: 6.4.0.36 + /EventsStore/Containers/Events: 6.4.0.36 + '/EventsStore/Nodes/{nodeName}/$/Events': 6.4.0.36 + /EventsStore/Nodes/Events: 6.4.0.36 + '/EventsStore/Applications/{applicationId}/$/Events': 6.4.0.36 + /EventsStore/Applications/Events: 6.4.0.36 + '/EventsStore/Services/{serviceId}/$/Events': 6.4.0.36 + /EventsStore/Services/Events: 6.4.0.36 + '/EventsStore/Partitions/{partitionId}/$/Events': 6.4.0.36 + /EventsStore/Partitions/Events: 6.4.0.36 + '/EventsStore/Partitions/{partitionId}/$/Replicas/{replicaId}/$/Events': 6.4.0.36 + '/EventsStore/Partitions/{partitionId}/$/Replicas/Events': 6.4.0.36 + '/EventsStore/CorrelatedEvents/{eventInstanceId}/$/Events': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/replicas': 6.3.0.9 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}': 6.4.0.36 + '/Resources/Volumes/{volumeResourceName}': 6.4.0.36 + /$/GetClusterVersion: 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/RollbackUpgrade': 6.4.0.36 + '/Resources/Secrets/{secretResourceName}': 6.4.0.36 + /Resources/Secrets: 6.4.0.36 + '/Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}': 6.4.0.36 + '/Resources/Secrets/{secretResourceName}/values': 6.4.0.36 + '/Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}/list_value': 6.4.0.36 + /Resources/Volumes: 6.4.0.36 + '/Resources/Networks/{networkResourceName}': 6.4.0.36 + /Resources/Networks: 6.4.0.36 + /Resources/Applications: 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}/CodePackages/{codePackageName}/Logs': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas': 6.4.0.36 + '/Resources/Gateways/{gatewayResourceName}': 6.4.0.36 + /Resources/Gateways: 6.4.0.36 + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values/{secretValueResourceName}/list_value': 2018-09-01-preview + /: '2018-11-09' + '/{filesystem}': '2018-11-09' + '/{filesystem}/{path}': '2018-11-09' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/validateMoveResources': '2018-02-01' +``` diff --git a/profiles/definitions/latest-2019-04-24.md b/profiles/definitions/latest-2019-04-24.md new file mode 100644 index 000000000000..75b40d3cac6b --- /dev/null +++ b/profiles/definitions/latest-2019-04-24.md @@ -0,0 +1,3539 @@ +# Latest Azure Profile + +> see https://aka.ms/autorest + +``` yaml +profiles: + latest-2019-04-24: + resources: + microsoft.netapp: + '2019-05-01': + - locations/checkFilePathAvailability + - locations/checkNameAvailability + - netAppAccounts + - netAppAccounts/capacityPools + - netAppAccounts/capacityPools/volumes + - netAppAccounts/capacityPools/volumes/mountTargets + - netAppAccounts/capacityPools/volumes/snapshots + - operations + microsoft.virtualmachineimages: + 2019-05-01-preview: + - imageTemplates + - imageTemplates/run + - imageTemplates/runOutputs + - operations + microsoft.containerservice: + '2019-04-30': + - openShiftManagedClusters + '2019-02-01': + - managedClusters + - managedClusters/accessProfiles/listCredential + - managedClusters/agentPools + - managedClusters/listClusterAdminCredential + - managedClusters/listClusterUserCredential + - managedClusters/resetAADProfile + - managedClusters/resetServicePrincipalProfile + - managedClusters/upgradeProfiles + - operations + '2017-09-30': + - locations/orchestrators + '2017-08-31': + - managedClusters/accessProfiles + '2017-07-01': + - containerServices + microsoft.batch: + '2019-04-01': + - batchAccounts + - batchAccounts/applications + - batchAccounts/applications/versions + - batchAccounts/applications/versions/activate + - batchAccounts/certificates + - batchAccounts/certificates/cancelDelete + - batchAccounts/listKeys + - batchAccounts/pools + - batchAccounts/pools/disableAutoScale + - batchAccounts/pools/stopResize + - batchAccounts/regenerateKeys + - batchAccounts/syncAutoStorageKeys + - locations/checkNameAvailability + - locations/quotas + - operations + microsoft.storage: + '2019-04-01': + - checkNameAvailability + - locations/usages + - operations + - skus + - storageAccounts + - storageAccounts/ListAccountSas + - storageAccounts/ListServiceSas + - storageAccounts/blobServices + - storageAccounts/blobServices/containers + - storageAccounts/blobServices/containers/clearLegalHold + - storageAccounts/blobServices/containers/immutabilityPolicies + - storageAccounts/blobServices/containers/immutabilityPolicies/extend + - storageAccounts/blobServices/containers/immutabilityPolicies/lock + - storageAccounts/blobServices/containers/setLegalHold + - storageAccounts/failover + - storageAccounts/listKeys + - storageAccounts/managementPolicies + - storageAccounts/regenerateKey + - storageAccounts/revokeUserDelegationKeys + '2018-11-01': + - storageAccounts/blobServices/containers/lease + 2018-03-01-preview: + - usages + microsoft.resourcegraph: + '2019-04-01': + - operations + - resources + 2018-09-01-preview: + - resourceChangeDetails + - resourceChanges + microsoft.capacity: + '2019-04-01': + - appliedReservations + - calculatePrice + - catalogs + - operations + - reservationOrders + - reservationOrders/merge + - reservationOrders/reservations + - reservationOrders/reservations/revisions + - reservationOrders/split + microsoft.network: + '2019-04-01': + - checkFrontDoorNameAvailability + - frontDoors + - frontDoors/backendPools + - frontDoors/frontendEndpoints + - frontDoors/frontendEndpoints/disableHttps + - frontDoors/frontendEndpoints/enableHttps + - frontDoors/healthProbeSettings + - frontDoors/loadBalancingSettings + - frontDoors/purge + - frontDoors/routingRules + - frontDoors/validateCustomDomain + '2019-03-01': + - FrontDoorWebApplicationFirewallManagedRuleSets + - FrontDoorWebApplicationFirewallPolicies + '2019-02-01': + - ApplicationGatewayWebApplicationFirewallPolicies + - ExpressRoutePorts + - ExpressRoutePorts/links + - ExpressRoutePortsLocations + - applicationGatewayAvailableRequestHeaders + - applicationGatewayAvailableResponseHeaders + - applicationGatewayAvailableServerVariables + - applicationGatewayAvailableSslOptions + - applicationGatewayAvailableSslOptions/predefinedPolicies + - applicationGatewayAvailableWafRuleSets + - applicationGateways + - applicationGateways/backendhealth + - applicationGateways/getBackendHealthOnDemand + - applicationGateways/start + - applicationGateways/stop + - applicationSecurityGroups + - azureFirewallFqdnTags + - azureFirewalls + - bgpServiceCommunities + - connections + - connections/sharedkey + - connections/vpndeviceconfigurationscript + - ddosCustomPolicies + - ddosProtectionPlans + - expressRouteCircuits + - expressRouteCircuits/authorizations + - expressRouteCircuits/peerings + - expressRouteCircuits/peerings/arpTables + - expressRouteCircuits/peerings/connections + - expressRouteCircuits/peerings/peerConnections + - expressRouteCircuits/peerings/routeTables + - expressRouteCircuits/peerings/routeTablesSummary + - expressRouteCircuits/peerings/stats + - expressRouteCircuits/stats + - expressRouteCrossConnections + - expressRouteCrossConnections/peerings + - expressRouteCrossConnections/peerings/arpTables + - expressRouteCrossConnections/peerings/routeTables + - expressRouteCrossConnections/peerings/routeTablesSummary + - expressRouteGateways + - expressRouteGateways/expressRouteConnections + - expressRouteServiceProviders + - interfaceEndpoints + - loadBalancers + - loadBalancers/backendAddressPools + - loadBalancers/frontendIPConfigurations + - loadBalancers/inboundNatRules + - loadBalancers/loadBalancingRules + - loadBalancers/networkInterfaces + - loadBalancers/outboundRules + - loadBalancers/probes + - localNetworkGateways + - locations/CheckDnsNameAvailability + - locations/availableDelegations + - locations/usages + - locations/virtualNetworkAvailableEndpointServices + - natGateways + - networkInterfaces + - networkInterfaces/effectiveNetworkSecurityGroups + - networkInterfaces/effectiveRouteTable + - networkInterfaces/ipConfigurations + - networkInterfaces/loadBalancers + - networkInterfaces/tapConfigurations + - networkProfiles + - networkSecurityGroups + - networkSecurityGroups/defaultSecurityRules + - networkSecurityGroups/securityRules + - networkWatchers + - networkWatchers/availableProvidersList + - networkWatchers/azureReachabilityReport + - networkWatchers/configureFlowLog + - networkWatchers/connectionMonitors + - networkWatchers/connectionMonitors/query + - networkWatchers/connectionMonitors/start + - networkWatchers/connectionMonitors/stop + - networkWatchers/connectivityCheck + - networkWatchers/ipFlowVerify + - networkWatchers/networkConfigurationDiagnostic + - networkWatchers/nextHop + - networkWatchers/packetCaptures + - networkWatchers/packetCaptures/queryStatus + - networkWatchers/packetCaptures/stop + - networkWatchers/queryFlowLogStatus + - networkWatchers/queryTroubleshootResult + - networkWatchers/securityGroupView + - networkWatchers/topology + - networkWatchers/troubleshoot + - operations + - p2svpnGateways + - p2svpnGateways/generatevpnprofile + - publicIPAddresses + - publicIPPrefixes + - routeFilters + - routeFilters/routeFilterRules + - routeTables + - routeTables/routes + - serviceEndpointPolicies + - serviceEndpointPolicies/serviceEndpointPolicyDefinitions + - virtualHubs + - virtualHubs/hubVirtualNetworkConnections + - virtualNetworkGateways + - virtualNetworkGateways/connections + - virtualNetworkGateways/generatevpnclientpackage + - virtualNetworkGateways/generatevpnprofile + - virtualNetworkGateways/getAdvertisedRoutes + - virtualNetworkGateways/getBgpPeerStatus + - virtualNetworkGateways/getLearnedRoutes + - virtualNetworkGateways/getvpnclientipsecparameters + - virtualNetworkGateways/getvpnprofilepackageurl + - virtualNetworkGateways/reset + - virtualNetworkGateways/resetvpnclientsharedkey + - virtualNetworkGateways/setvpnclientipsecparameters + - virtualNetworkGateways/supportedvpndevices + - virtualNetworkTaps + - virtualNetworks + - virtualNetworks/CheckIPAddressAvailability + - virtualNetworks/subnets + - virtualNetworks/subnets/PrepareNetworkPolicies + - virtualNetworks/usages + - virtualNetworks/virtualNetworkPeerings + - virtualWans + - virtualWans/p2sVpnServerConfigurations + - virtualWans/supportedSecurityProviders + - virtualWans/vpnConfiguration + - vpnGateways + - vpnGateways/vpnConnections + - vpnSites + '2018-09-01': + - privateDnsZones + - privateDnsZones/ALL + - privateDnsZones/virtualNetworkLinks + '2018-05-01': + - dnsZones + - dnsZones/all + - dnsZones/recordsets + - getDnsResourceReference + '2018-04-01': + - checkTrafficManagerNameAvailability + - trafficManagerGeographicHierarchies + - trafficManagerUserMetricsKeys + - trafficmanagerprofiles + - trafficmanagerprofiles/heatMaps + '2015-06-15': + - expressRouteCircuits/arpTable + - expressRouteCircuits/routesTable + microsoft.devices: + 2019-03-22-preview: + - IotHubs + - IotHubs/IotHubKeys/listkeys + - IotHubs/IotHubStats + - IotHubs/certificates + - IotHubs/certificates/generateVerificationCode + - IotHubs/certificates/verify + - IotHubs/eventHubEndpoints/ConsumerGroups + - IotHubs/exportDevices + - IotHubs/failover + - IotHubs/importDevices + - IotHubs/jobs + - IotHubs/listkeys + - IotHubs/quotaMetrics + - IotHubs/routingEndpointsHealth + - IotHubs/skus + - checkNameAvailability + - operations + - usages + '2018-01-22': + - checkProvisioningServiceNameAvailability + - provisioningServices + - provisioningServices/certificates + - provisioningServices/certificates/generateVerificationCode + - provisioningServices/certificates/verify + - provisioningServices/keys/listkeys + - provisioningServices/listkeys + - provisioningServices/operationresults + - provisioningServices/skus + microsoft.compute: + '2019-03-01': + - availabilitySets + - availabilitySets/vmSizes + - galleries + - galleries/images + - galleries/images/versions + - images + - locations/logAnalytics/getRequestRateByInterval + - locations/logAnalytics/getThrottledRequests + - locations/publishers + - locations/publishers/artifacttypes/offers + - locations/publishers/artifacttypes/offers/skus + - locations/publishers/artifacttypes/offers/skus/versions + - locations/publishers/artifacttypes/types + - locations/publishers/artifacttypes/types/versions + - locations/runCommands + - locations/usages + - locations/virtualMachines + - locations/vmSizes + - operations + - proximityPlacementGroups + - virtualMachineScaleSets + - virtualMachineScaleSets/convertToSinglePlacementGroup + - virtualMachineScaleSets/deallocate + - virtualMachineScaleSets/delete + - virtualMachineScaleSets/extensionRollingUpgrade + - virtualMachineScaleSets/extensions + - virtualMachineScaleSets/forceRecoveryServiceFabricPlatformUpdateDomainWalk + - virtualMachineScaleSets/instanceView + - virtualMachineScaleSets/manualupgrade + - virtualMachineScaleSets/osRollingUpgrade + - virtualMachineScaleSets/osUpgradeHistory + - virtualMachineScaleSets/performMaintenance + - virtualMachineScaleSets/poweroff + - virtualMachineScaleSets/redeploy + - virtualMachineScaleSets/reimage + - virtualMachineScaleSets/reimageall + - virtualMachineScaleSets/restart + - virtualMachineScaleSets/rollingUpgrades + - virtualMachineScaleSets/skus + - virtualMachineScaleSets/start + - virtualMachineScaleSets/virtualMachines + - virtualMachineScaleSets/virtualmachines/deallocate + - virtualMachineScaleSets/virtualmachines/instanceView + - virtualMachineScaleSets/virtualmachines/performMaintenance + - virtualMachineScaleSets/virtualmachines/poweroff + - virtualMachineScaleSets/virtualmachines/redeploy + - virtualMachineScaleSets/virtualmachines/reimage + - virtualMachineScaleSets/virtualmachines/reimageall + - virtualMachineScaleSets/virtualmachines/restart + - virtualMachineScaleSets/virtualmachines/runCommand + - virtualMachineScaleSets/virtualmachines/start + - virtualMachines + - virtualMachines/capture + - virtualMachines/convertToManagedDisks + - virtualMachines/deallocate + - virtualMachines/extensions + - virtualMachines/generalize + - virtualMachines/instanceView + - virtualMachines/performMaintenance + - virtualMachines/powerOff + - virtualMachines/redeploy + - virtualMachines/reimage + - virtualMachines/restart + - virtualMachines/runCommand + - virtualMachines/start + - virtualMachines/vmSizes + '2018-09-30': + - disks + - disks/beginGetAccess + - disks/endGetAccess + - snapshots + - snapshots/beginGetAccess + - snapshots/endGetAccess + '2017-09-01': + - skus + '2017-03-30': + - virtualMachineScaleSets/networkInterfaces + - virtualMachineScaleSets/publicipaddresses + - virtualMachineScaleSets/virtualMachines/networkInterfaces + - virtualMachineScaleSets/virtualMachines/networkInterfaces/ipConfigurations + - virtualMachineScaleSets/virtualMachines/networkInterfaces/ipconfigurations/publicipaddresses + microsoft.costmanagement: + 2019-03-01-preview: + - Forecast + - Query + - cloudConnectors + - dimensions + - externalBillingAccounts + - externalBillingAccounts/externalSubscriptions + - externalSubscriptions + - operations + - showbackRules + '2019-01-01': + - exports + - exports/run + - exports/runHistory + 2018-08-01-preview: + - alerts + - alerts/UpdateStatus + - connectors + - reports + - reports/run + - reports/runHistory + '2018-05-31': + - reportconfigs + microsoft.peering: + 2019-03-01-preview: + - legacyPeerings + - operations + - peerAsns + - peeringLocations + - peerings + microsoft.databoxedge: + '2019-03-01': + - dataBoxEdgeDevices + - dataBoxEdgeDevices/alerts + - dataBoxEdgeDevices/bandwidthSchedules + - dataBoxEdgeDevices/downloadUpdates + - dataBoxEdgeDevices/getExtendedInformation + - dataBoxEdgeDevices/installUpdates + - dataBoxEdgeDevices/jobs + - dataBoxEdgeDevices/networkSettings + - dataBoxEdgeDevices/operationsStatus + - dataBoxEdgeDevices/orders + - dataBoxEdgeDevices/roles + - dataBoxEdgeDevices/scanForUpdates + - dataBoxEdgeDevices/securitySettings/update + - dataBoxEdgeDevices/shares + - dataBoxEdgeDevices/shares/refresh + - dataBoxEdgeDevices/storageAccountCredentials + - dataBoxEdgeDevices/triggers + - dataBoxEdgeDevices/updateSummary + - dataBoxEdgeDevices/uploadCertificate + - dataBoxEdgeDevices/users + - operations + microsoft.insights: + '2019-03-01': + - actionGroups + - actionGroups/subscribe + - metricBaselines + 2018-11-27-preview: + - vmInsightsOnboardingStatuses + 2018-06-17-preview: + - workbooks + 2018-05-01-preview: + - components/ProactiveDetectionConfigs + '2018-04-20': + - components/events + - components/metrics + - components/query + '2018-04-16': + - scheduledQueryRules + '2018-03-01': + - metricAlerts + - metricAlerts/status + '2018-01-01': + - metricDefinitions + - metrics + 2017-12-01-preview: + - metricNamespaces + 2017-11-01-preview: + - baseline + - calculatebaseline + '2017-10-01': + - components/pricingPlans + - listMigrationdate + - migrateToNewPricingModel + - rollbackToLegacyPricingModel + 2017-05-01-preview: + - diagnosticSettings + - diagnosticSettingsCategories + '2017-04-01': + - activityLogAlerts + '2016-03-01': + - alertrules + - alertrules/incidents + - logprofiles + '2015-05-01': + - components + - components/APIKeys + - components/Annotations + - components/DefaultWorkItemConfig + - components/WorkItemConfigs + - components/currentbillingfeatures + - components/exportconfiguration + - components/favorites + - components/featurecapabilities + - components/getavailablebillingfeatures + - components/item + - components/operations + - components/purge + - components/quotastatus + - components/syntheticmonitorlocations + - components/webtests + - operations + - webtests + '2015-04-01': + - autoscalesettings + - eventcategories + - eventtypes/values + microsoft.mixedreality: + 2019-02-28-preview: + - locations/checkNameAvailability + - operations + - spatialAnchorsAccounts + - spatialAnchorsAccounts/keys + microsoft.storagesync: + '2019-02-01': + - locations/checkNameAvailability + - operations + - storageSyncServices + - storageSyncServices/registeredServers + - storageSyncServices/registeredServers/triggerRollover + - storageSyncServices/syncGroups + - storageSyncServices/syncGroups/cloudEndpoints + - storageSyncServices/syncGroups/cloudEndpoints/postbackup + - storageSyncServices/syncGroups/cloudEndpoints/postrestore + - storageSyncServices/syncGroups/cloudEndpoints/prebackup + - storageSyncServices/syncGroups/cloudEndpoints/prerestore + - storageSyncServices/syncGroups/cloudEndpoints/restoreheartbeat + - storageSyncServices/syncGroups/serverEndpoints + - storageSyncServices/syncGroups/serverEndpoints/recallAction + - storageSyncServices/workflows + - storageSyncServices/workflows/abort + microsoft.eventgrid: + 2019-02-01-preview: + - domains + - domains/listKeys + - domains/regenerateKey + - domains/topics + - eventSubscriptions + - eventSubscriptions/getFullUrl + - eventTypes + - locations/eventSubscriptions + - locations/topicTypes/eventSubscriptions + - operations + - topicTypes + - topicTypes/eventSubscriptions + - topicTypes/eventTypes + - topics + - topics/listKeys + - topics/regenerateKey + microsoft.kusto: + '2019-01-21': + - clusters + - clusters/checkNameAvailability + - clusters/databases + - clusters/databases/addPrincipals + - clusters/databases/dataConnectionValidation + - clusters/databases/dataConnections + - clusters/databases/listPrincipals + - clusters/databases/removePrincipals + - clusters/skus + - clusters/start + - clusters/stop + - locations/checkNameAvailability + - operations + - skus + 2018-09-07-preview: + - clusters/databases/eventhubConnectionValidation + - clusters/databases/eventhubconnections + microsoft.apimanagement: + '2019-01-01': + - checkNameAvailability + - operations + - service + - service/apiVersionSets + - service/apis + - service/apis/diagnostics + - service/apis/issues + - service/apis/issues/attachments + - service/apis/issues/comments + - service/apis/operations + - service/apis/operations/policies + - service/apis/operations/tags + - service/apis/operationsByTags + - service/apis/policies + - service/apis/products + - service/apis/releases + - service/apis/revisions + - service/apis/schemas + - service/apis/tagDescriptions + - service/apis/tags + - service/apisByTags + - service/applynetworkconfigurationupdates + - service/authorizationServers + - service/backends + - service/backends/reconnect + - service/backup + - service/caches + - service/certificates + - service/diagnostics + - service/getssotoken + - service/groups + - service/groups/users + - service/identityProviders + - service/issues + - service/locations/networkstatus + - service/loggers + - service/networkstatus + - service/notifications + - service/notifications/recipientEmails + - service/notifications/recipientUsers + - service/openidConnectProviders + - service/policies + - service/policySnippets + - service/portalsettings + - service/products + - service/products/apis + - service/products/groups + - service/products/policies + - service/products/subscriptions + - service/products/tags + - service/productsByTags + - service/properties + - service/quotas + - service/quotas/periods + - service/regions + - service/reports + - service/restore + - service/skus + - service/subscriptions + - service/subscriptions/regeneratePrimaryKey + - service/subscriptions/regenerateSecondaryKey + - service/tagResources + - service/tags + - service/templates + - service/tenant + - service/tenant/deploy + - service/tenant/git + - service/tenant/regeneratePrimaryKey + - service/tenant/regenerateSecondaryKey + - service/tenant/save + - service/tenant/syncState + - service/tenant/validate + - service/users + - service/users/confirmations/send + - service/users/generateSsoUrl + - service/users/groups + - service/users/identities + - service/users/subscriptions + - service/users/token + 2018-06-01-preview: + - service/updatecertificate + - service/updatehostname + '2018-01-01': + - service/apis/diagnostics/loggers + - service/diagnostics/loggers + - service/identity + '2017-03-01': + - service/uploadcertificate + '2016-10-10': + - service/apis/operations/policy + - service/apis/policy + - service/managedeployments + - service/products/policy + microsoft.consumption: + '2019-01-01': + - aggregatedcost + - balances + - budgets + - charges + - forecasts + - marketplaces + - operations + - pricesheets + - reservationDetails + - reservationRecommendations + - reservationSummaries + - tags + - usageDetails + 2018-11-01-preview: + - billingAccounts/billingProfiles/pricesheet/download + - billingAccounts/invoices/pricesheet/download + - credits + - events + - lots + '2018-10-01': + - tenants + '2018-06-30': + - costTags + microsoft.devspaces: + 2019-01-01-preview: + - controllers + - controllers/listConnectionDetails + - locations/checkContainerHostMapping + - operations + microsoft.securityinsights: + 2019-01-01-preview: + - aggregations + - alertRules + - alertRules/actions + - bookmarks + - cases + - dataConnectors + - entities + - officeConsents + - operations + - settings + microsoft.security: + '2019-01-01': + - alerts + - locations/alerts + - settings + 2019-01-01-preview: + - regulatoryComplianceStandards + - regulatoryComplianceStandards/regulatoryComplianceControls + - regulatoryComplianceStandards/regulatoryComplianceControls/regulatoryComplianceAssessments + '2018-06-01': + - pricings + 2017-08-01-preview: + - advancedThreatProtectionSettings + - autoProvisioningSettings + - compliances + - deviceSecurityGroups + - informationProtectionPolicies + - securityContacts + - workspaceSettings + 2015-06-01-preview: + - adaptiveNetworkHardenings + - allowedConnections + - discoveredSecuritySolutions + - externalSecuritySolutions + - jitNetworkAccessPolicies + - locations + - locations/ExternalSecuritySolutions + - locations/allowedConnections + - locations/discoveredSecuritySolutions + - locations/jitNetworkAccessPolicies + - locations/tasks + - locations/topologies + - operations + - tasks + - topologies + microsoft.enterpriseknowledgegraph: + '2018-12-03': + - operations + - services + microsoft.managedidentity: + '2018-11-30': + - operations + - userAssignedIdentities + microsoft.guestconfiguration: + '2018-11-20': + - guestConfigurationAssignments + - guestConfigurationAssignments/reports + - operations + microsoft.blueprint: + 2018-11-01-preview: + - blueprintAssignments + - blueprintAssignments/WhoIsBlueprint + - blueprintAssignments/assignmentOperations + - blueprints + - blueprints/artifacts + - blueprints/versions + - blueprints/versions/artifacts + 2017-11-11-preview: + - operations + microsoft.web: + '2018-11-01': + - certificates + '2018-02-01': + - availableStacks + - billingMeters + - checknameavailability + - deletedSites + - deploymentLocations + - geoRegions + - hostingEnvironments + - hostingEnvironments/capacities + - hostingEnvironments/changeVirtualNetwork + - hostingEnvironments/detectors + - hostingEnvironments/diagnostics + - hostingEnvironments/inboundNetworkDependenciesEndpoints + - hostingEnvironments/metricdefinitions + - hostingEnvironments/metrics + - hostingEnvironments/multiRolePools + - hostingEnvironments/multiRolePools/instances/metricdefinitions + - hostingEnvironments/multiRolePools/instances/metrics + - hostingEnvironments/multiRolePools/metricdefinitions + - hostingEnvironments/multiRolePools/metrics + - hostingEnvironments/multiRolePools/skus + - hostingEnvironments/multiRolePools/usages + - hostingEnvironments/operations + - hostingEnvironments/outboundNetworkDependenciesEndpoints + - hostingEnvironments/reboot + - hostingEnvironments/recommendationHistory + - hostingEnvironments/recommendations + - hostingEnvironments/recommendations/disable + - hostingEnvironments/resume + - hostingEnvironments/serverfarms + - hostingEnvironments/sites + - hostingEnvironments/suspend + - hostingEnvironments/usages + - hostingEnvironments/workerPools + - hostingEnvironments/workerPools/instances/metricdefinitions + - hostingEnvironments/workerPools/instances/metrics + - hostingEnvironments/workerPools/metricdefinitions + - hostingEnvironments/workerPools/metrics + - hostingEnvironments/workerPools/skus + - hostingEnvironments/workerPools/usages + - listSitesAssignedToHostName + - operations + - premieraddonoffers + - publishingUsers + - recommendations + - recommendations/disable + - resourceHealthMetadata + - serverfarms + - serverfarms/capabilities + - serverfarms/hybridConnectionNamespaces/relays + - serverfarms/hybridConnectionNamespaces/relays/listKeys + - serverfarms/hybridConnectionNamespaces/relays/sites + - serverfarms/hybridConnectionPlanLimits + - serverfarms/hybridConnectionRelays + - serverfarms/metricdefinitions + - serverfarms/metrics + - serverfarms/restartSites + - serverfarms/sites + - serverfarms/skus + - serverfarms/usages + - serverfarms/virtualNetworkConnections + - serverfarms/virtualNetworkConnections/gateways + - serverfarms/virtualNetworkConnections/routes + - serverfarms/workers/reboot + - sites + - sites/analyzeCustomHostname + - sites/applySlotConfig + - sites/backup + - sites/backups + - sites/backups/list + - sites/backups/restore + - sites/config + - sites/config/list + - sites/config/snapshots + - sites/config/snapshots/recover + - sites/containerlogs + - sites/containerlogs/download + - sites/continuouswebjobs + - sites/continuouswebjobs/start + - sites/continuouswebjobs/stop + - sites/deployments + - sites/deployments/log + - sites/detectors + - sites/diagnostics + - sites/diagnostics/analyses + - sites/diagnostics/analyses/execute + - sites/diagnostics/detectors + - sites/diagnostics/detectors/execute + - sites/discoverbackup + - sites/domainOwnershipIdentifiers + - sites/extensions + - sites/extensions/log + - sites/functions + - sites/functions/listsecrets + - sites/functions/token + - sites/hostNameBindings + - sites/hybridConnectionNamespaces/relays + - sites/hybridConnectionNamespaces/relays/listKeys + - sites/hybridConnectionRelays + - sites/hybridconnection + - sites/instances + - sites/instances/extensions + - sites/instances/extensions/log + - sites/instances/processes + - sites/instances/processes/dump + - sites/instances/processes/modules + - sites/instances/processes/threads + - sites/iscloneable + - sites/listsyncfunctiontriggerstatus + - sites/metricdefinitions + - sites/metrics + - sites/migrate + - sites/migratemysql + - sites/networkConfig + - sites/networkFeatures + - sites/networkTrace + - sites/networkTraces + - sites/networkTraces/operationresults + - sites/newpassword + - sites/perfcounters + - sites/phplogging + - sites/premieraddons + - sites/privateAccess + - sites/processes + - sites/processes/dump + - sites/processes/modules + - sites/processes/threads + - sites/publicCertificates + - sites/publishxml + - sites/recommendationHistory + - sites/recommendations + - sites/recommendations/disable + - sites/resetSlotConfig + - sites/resourceHealthMetadata + - sites/restart + - sites/restoreFromBackupBlob + - sites/restoreFromDeletedApp + - sites/restoreSnapshot + - sites/siteextensions + - sites/slots + - sites/slots/analyzeCustomHostname + - sites/slots/applySlotConfig + - sites/slots/backup + - sites/slots/backups + - sites/slots/backups/list + - sites/slots/backups/restore + - sites/slots/config + - sites/slots/config/list + - sites/slots/config/snapshots + - sites/slots/config/snapshots/recover + - sites/slots/containerlogs + - sites/slots/containerlogs/download + - sites/slots/continuouswebjobs + - sites/slots/continuouswebjobs/start + - sites/slots/continuouswebjobs/stop + - sites/slots/deployments + - sites/slots/deployments/log + - sites/slots/detectors + - sites/slots/diagnostics + - sites/slots/diagnostics/analyses + - sites/slots/diagnostics/analyses/execute + - sites/slots/diagnostics/detectors + - sites/slots/diagnostics/detectors/execute + - sites/slots/discoverbackup + - sites/slots/domainOwnershipIdentifiers + - sites/slots/extensions + - sites/slots/extensions/log + - sites/slots/functions + - sites/slots/functions/listsecrets + - sites/slots/functions/token + - sites/slots/hostNameBindings + - sites/slots/hybridConnectionNamespaces/relays + - sites/slots/hybridConnectionNamespaces/relays/listKeys + - sites/slots/hybridConnectionRelays + - sites/slots/hybridconnection + - sites/slots/instances + - sites/slots/instances/extensions + - sites/slots/instances/extensions/log + - sites/slots/instances/processes + - sites/slots/instances/processes/dump + - sites/slots/instances/processes/modules + - sites/slots/instances/processes/threads + - sites/slots/iscloneable + - sites/slots/listsyncfunctiontriggerstatus + - sites/slots/metricdefinitions + - sites/slots/metrics + - sites/slots/migratemysql + - sites/slots/networkConfig + - sites/slots/networkFeatures + - sites/slots/networkTrace + - sites/slots/networkTraces + - sites/slots/networkTraces/operationresults + - sites/slots/newpassword + - sites/slots/perfcounters + - sites/slots/phplogging + - sites/slots/premieraddons + - sites/slots/privateAccess + - sites/slots/processes + - sites/slots/processes/dump + - sites/slots/processes/modules + - sites/slots/processes/threads + - sites/slots/publicCertificates + - sites/slots/publishxml + - sites/slots/resetSlotConfig + - sites/slots/resourceHealthMetadata + - sites/slots/restart + - sites/slots/restoreFromBackupBlob + - sites/slots/restoreFromDeletedApp + - sites/slots/restoreSnapshot + - sites/slots/siteextensions + - sites/slots/slotsdiffs + - sites/slots/slotsswap + - sites/slots/snapshots + - sites/slots/snapshotsdr + - sites/slots/sourcecontrols + - sites/slots/start + - sites/slots/startNetworkTrace + - sites/slots/stop + - sites/slots/stopNetworkTrace + - sites/slots/sync + - sites/slots/syncfunctiontriggers + - sites/slots/triggeredwebjobs + - sites/slots/triggeredwebjobs/history + - sites/slots/triggeredwebjobs/run + - sites/slots/usages + - sites/slots/virtualNetworkConnections + - sites/slots/virtualNetworkConnections/gateways + - sites/slots/webjobs + - sites/slotsdiffs + - sites/slotsswap + - sites/snapshots + - sites/snapshotsdr + - sites/sourcecontrols + - sites/start + - sites/startNetworkTrace + - sites/stop + - sites/stopNetworkTrace + - sites/sync + - sites/syncfunctiontriggers + - sites/triggeredwebjobs + - sites/triggeredwebjobs/history + - sites/triggeredwebjobs/run + - sites/usages + - sites/virtualNetworkConnections + - sites/virtualNetworkConnections/gateways + - sites/webjobs + - skus + - sourcecontrols + - validate + - validateContainerSettings + - verifyHostingEnvironmentVnet + '2016-08-01': + - sites/recover + - sites/slots/recover + '2015-08-01': + - classicMobileServices + - csrs + - hostingEnvironments/webhostingplans + - ishostingenvironmentnameavailable + - managedHostingEnvironments + - managedHostingEnvironments/capacities + - managedHostingEnvironments/operations + - managedHostingEnvironments/serverfarms + - managedHostingEnvironments/sites + - managedHostingEnvironments/webhostingplans + - publishingCredentials + - serverfarms/operationresults + - sites/instances/deployments + - sites/operationresults + - sites/slots/instances/deployments + - sites/slots/operationresults + 2015-08-01-preview: + - connections + - connections/confirmConsentCode + - connections/listConnectionKeys + - connections/listConsentLinks + - locations/managedApis + microsoft.billing: + 2018-11-01-preview: + - billingAccounts + - billingAccounts/agreements + - billingAccounts/billingProfiles + - billingAccounts/billingProfiles/availableBalance + - billingAccounts/billingProfiles/billingSubscriptions + - billingAccounts/billingProfiles/invoiceSections + - billingAccounts/billingProfiles/invoices + - billingAccounts/billingProfiles/paymentMethods + - billingAccounts/billingProfiles/policies + - billingAccounts/billingProfiles/transactions + - billingAccounts/billingSubscriptions + - billingAccounts/departments + - billingAccounts/enrollmentAccounts + - billingAccounts/invoiceSections + - billingAccounts/invoiceSections/billingSubscriptions + - billingAccounts/invoiceSections/billingSubscriptions/transfer + - billingAccounts/invoiceSections/elevate + - billingAccounts/invoiceSections/initiateTransfer + - billingAccounts/invoiceSections/products + - billingAccounts/invoiceSections/products/transfer + - billingAccounts/invoiceSections/products/updateAutoRenew + - billingAccounts/invoiceSections/transactions + - billingAccounts/invoiceSections/transfers + - billingAccounts/invoices + - billingAccounts/invoices/pricesheet/download + - billingAccounts/listInvoiceSectionsWithCreateSubscriptionPermission + - billingAccounts/products + - billingAccounts/products/updateAutoRenew + - billingAccounts/transactions + - billingPermissions + - billingProperty + - billingRoleAssignments + - billingRoleDefinitions + - createBillingRoleAssignment + - operations + - transfers + - transfers/acceptTransfer + - transfers/declineTransfer + 2018-03-01-preview: + - billingPeriods + - enrollmentAccounts + - invoices + microsoft.subscription: + 2018-11-01-preview: + - createSubscription + - operations + - subscriptionOperations + 2017-11-01-preview: + - subscriptionDefinitions + microsoft.hardwaresecuritymodules: + 2018-10-31-preview: + - dedicatedHSMs + microsoft.labservices: + '2018-10-15': + - labaccounts + - labaccounts/createLab + - labaccounts/galleryimages + - labaccounts/getRegionalAvailability + - labaccounts/labs + - labaccounts/labs/addUsers + - labaccounts/labs/environmentsettings + - labaccounts/labs/environmentsettings/claimAny + - labaccounts/labs/environmentsettings/environments + - labaccounts/labs/environmentsettings/environments/claim + - labaccounts/labs/environmentsettings/environments/resetPassword + - labaccounts/labs/environmentsettings/environments/start + - labaccounts/labs/environmentsettings/environments/stop + - labaccounts/labs/environmentsettings/publish + - labaccounts/labs/environmentsettings/start + - labaccounts/labs/environmentsettings/stop + - labaccounts/labs/register + - labaccounts/labs/users + - locations/operations + - operations + - users/getEnvironment + - users/getOperationBatchStatus + - users/getOperationStatus + - users/getPersonalPreferences + - users/listEnvironments + - users/listLabs + - users/register + - users/resetPassword + - users/startEnvironment + - users/stopEnvironment + microsoft.signalrservice: + '2018-10-01': + - SignalR/listKeys + - SignalR/regenerateKey + - locations/checkNameAvailability + - locations/usages + - operations + - signalR + - signalR/restart + microsoft.containerinstance: + '2018-10-01': + - containerGroups + - containerGroups/containers/exec + - containerGroups/containers/logs + - containerGroups/restart + - containerGroups/start + - containerGroups/stop + - locations/cachedImages + - locations/capabilities + - locations/usages + - operations + - serviceAssociationLinks + microsoft.devtestlab: + '2018-09-15': + - labs + - labs/artifactsources + - labs/artifactsources/armtemplates + - labs/artifactsources/artifacts + - labs/artifactsources/artifacts/generateArmTemplate + - labs/claimAnyVm + - labs/costs + - labs/createEnvironment + - labs/customimages + - labs/exportResourceUsage + - labs/formulas + - labs/galleryimages + - labs/generateUploadUri + - labs/importVirtualMachine + - labs/listVhds + - labs/notificationchannels + - labs/notificationchannels/notify + - labs/policysets/evaluatePolicies + - labs/policysets/policies + - labs/schedules + - labs/schedules/execute + - labs/schedules/listApplicable + - labs/servicerunners + - labs/users + - labs/users/disks + - labs/users/disks/attach + - labs/users/disks/detach + - labs/users/environments + - labs/users/secrets + - labs/users/servicefabrics + - labs/users/servicefabrics/listApplicableSchedules + - labs/users/servicefabrics/schedules + - labs/users/servicefabrics/schedules/execute + - labs/users/servicefabrics/start + - labs/users/servicefabrics/stop + - labs/virtualmachines + - labs/virtualmachines/addDataDisk + - labs/virtualmachines/applyArtifacts + - labs/virtualmachines/claim + - labs/virtualmachines/detachDataDisk + - labs/virtualmachines/getRdpFileContents + - labs/virtualmachines/listApplicableSchedules + - labs/virtualmachines/redeploy + - labs/virtualmachines/resize + - labs/virtualmachines/restart + - labs/virtualmachines/schedules + - labs/virtualmachines/schedules/execute + - labs/virtualmachines/start + - labs/virtualmachines/stop + - labs/virtualmachines/transferDisks + - labs/virtualmachines/unClaim + - labs/virtualnetworks + - locations/operations + - operations + - schedules + - schedules/execute + - schedules/retarget + 2015-05-21-preview: + - labs/costinsights + - labs/costinsights/refreshData + - labs/costs/refreshData + microsoft.engagementfabric: + 2018-09-01-preview: + - Accounts + - Accounts/Channels + - Accounts/listChannelTypes + - Accounts/listKeys + - Accounts/regenerateKey + - checkNameAvailability + - operations + - skus + microsoft.containerregistry: + '2018-09-01': + - registries/listBuildSourceUploadUrl + - registries/runs + - registries/runs/cancel + - registries/runs/listLogSasUrl + - registries/scheduleRun + - registries/tasks + - registries/tasks/listDetails + 2018-02-01-preview: + - registries/buildTasks + - registries/buildTasks/listSourceRepositoryProperties + - registries/buildTasks/steps + - registries/buildTasks/steps/listBuildArguments + - registries/builds + - registries/builds/cancel + - registries/builds/getLogLink + - registries/getBuildSourceUploadUrl + - registries/queueBuild + '2017-10-01': + - checkNameAvailability + - operations + - registries + - registries/importImage + - registries/listCredentials + - registries/listPolicies + - registries/listUsages + - registries/regenerateCredential + - registries/replications + - registries/updatePolicies + - registries/webhooks + - registries/webhooks/getCallbackConfig + - registries/webhooks/listEvents + - registries/webhooks/ping + 2016-06-27-preview: + - registries/getCredentials + - registries/regenerateCredentials + microsoft.authorization: + 2018-09-01-preview: + - roleAssignments + 2018-07-01-preview: + - denyAssignments + '2018-05-01': + - policyAssignments + - policyDefinitions + - policySetDefinitions + 2018-01-01-preview: + - permissions + - providerOperations + - roleDefinitions + '2016-09-01': + - locks + - operations + '2015-07-01': + - classicAdministrators + - elevateAccess + microsoft.deploymentmanager: + 2018-09-01-preview: + - artifactSources + - operations + - rollouts + - rollouts/cancel + - rollouts/restart + - serviceTopologies + - serviceTopologies/services + - serviceTopologies/services/serviceUnits + - steps + microsoft.servicefabricmesh: + 2018-09-01-preview: + - applications + - applications/services + - applications/services/replicas + - applications/services/replicas/codePackages/logs + - gateways + - networks + - operations + - secrets + - secrets/values + - volumes + microsoft.iotcentral: + '2018-09-01': + - IoTApps + - appTemplates + - checkNameAvailability + - checkSubdomainAvailability + - operations + microsoft.workloadmonitor: + 2018-08-31-preview: + - components + - componentsSummary + - monitorInstances + - monitorInstancesSummary + - monitors + - notificationSettings + - operations + microsoft.healthcareapis: + 2018-08-20-preview: + - checkNameAvailability + - locations/moveResourcesStatus + - locations/operationresults + - moveResources + - operations + - services + microsoft.timeseriesinsights: + 2018-08-15-preview: + - environments + - environments/accessPolicies + - environments/eventSources + - environments/referenceDataSets + - operations + microsoft.datamigration: + 2018-07-15-preview: + - locations/checkNameAvailability + - locations/usages + - operations + - services + - services/checkNameAvailability + - services/checkStatus + - services/projects + - services/projects/files + - services/projects/files/read + - services/projects/files/readwrite + - services/projects/tasks + - services/projects/tasks/cancel + - services/projects/tasks/command + - services/skus + - services/start + - services/stop + - skus + microsoft.botservice: + '2018-07-12': + - botServices + - botServices/Connections/listWithSecrets + - botServices/channels + - botServices/channels/listChannelWithKeys + - botServices/connections + - checkEnterpriseChannelNameAvailability + - checkNameAvailability + - enterpriseChannels + - listAuthServiceProviders + - operations + microsoft.recoveryservices: + '2018-07-10': + - operations + - vaults/replicationAlertSettings + - vaults/replicationEvents + - vaults/replicationFabrics + - vaults/replicationFabrics/checkConsistency + - vaults/replicationFabrics/migratetoaad + - vaults/replicationFabrics/reassociateGateway + - vaults/replicationFabrics/remove + - vaults/replicationFabrics/renewCertificate + - vaults/replicationFabrics/replicationLogicalNetworks + - vaults/replicationFabrics/replicationNetworks + - vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings + - vaults/replicationFabrics/replicationProtectionContainers + - vaults/replicationFabrics/replicationProtectionContainers/discoverProtectableItem + - vaults/replicationFabrics/replicationProtectionContainers/remove + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/migrate + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/migrationRecoveryPoints + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/testMigrate + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/testMigrateCleanup + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/ResolveHealthErrors + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/addDisks + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/applyRecoveryPoint + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/failoverCommit + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/plannedFailover + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/reProtect + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/recoveryPoints + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/remove + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/removeDisks + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/repairReplication + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/targetComputeSizes + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/testFailover + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/testFailoverCleanup + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/unplannedFailover + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/updateMobilityService + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings/remove + - vaults/replicationFabrics/replicationProtectionContainers/switchprotection + - vaults/replicationFabrics/replicationRecoveryServicesProviders + - vaults/replicationFabrics/replicationRecoveryServicesProviders/refreshProvider + - vaults/replicationFabrics/replicationRecoveryServicesProviders/remove + - vaults/replicationFabrics/replicationStorageClassifications + - vaults/replicationFabrics/replicationStorageClassifications/replicationStorageClassificationMappings + - vaults/replicationFabrics/replicationvCenters + - vaults/replicationJobs + - vaults/replicationJobs/cancel + - vaults/replicationJobs/restart + - vaults/replicationJobs/resume + - vaults/replicationMigrationItems + - vaults/replicationNetworkMappings + - vaults/replicationNetworks + - vaults/replicationPolicies + - vaults/replicationProtectedItems + - vaults/replicationProtectionContainerMappings + - vaults/replicationProtectionContainers + - vaults/replicationRecoveryPlans + - vaults/replicationRecoveryPlans/failoverCommit + - vaults/replicationRecoveryPlans/plannedFailover + - vaults/replicationRecoveryPlans/reProtect + - vaults/replicationRecoveryPlans/testFailover + - vaults/replicationRecoveryPlans/testFailoverCleanup + - vaults/replicationRecoveryPlans/unplannedFailover + - vaults/replicationRecoveryServicesProviders + - vaults/replicationStorageClassificationMappings + - vaults/replicationStorageClassifications + - vaults/replicationSupportedOperatingSystems + - vaults/replicationVaultHealth + - vaults/replicationVaultHealth/refresh + - vaults/replicationvCenters + '2017-07-01': + - locations/backupPreValidateProtection + - locations/backupStatus + - locations/backupValidateFeatures + - vaults/backupFabrics/backupProtectionIntent + - vaults/backupJobs + - vaults/backupJobsExport + - vaults/backupPolicies + - vaults/backupProtectedItems + - vaults/backupProtectionIntents + - vaults/backupUsageSummaries + - vaults/backupValidateOperation + '2016-12-01': + - vaults/backupEngines + - vaults/backupFabrics/operationResults + - vaults/backupFabrics/protectableContainers + - vaults/backupFabrics/protectionContainers + - vaults/backupFabrics/protectionContainers/inquire + - vaults/backupFabrics/protectionContainers/items + - vaults/backupFabrics/protectionContainers/operationResults + - vaults/backupFabrics/protectionContainers/protectedItems + - vaults/backupFabrics/protectionContainers/protectedItems/backup + - vaults/backupFabrics/protectionContainers/protectedItems/operationResults + - vaults/backupFabrics/protectionContainers/protectedItems/operationsStatus + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/provisionInstantItemRecovery + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/restore + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/revokeInstantItemRecovery + - vaults/backupFabrics/refreshContainers + - vaults/backupJobs/cancel + - vaults/backupJobs/operationResults + - vaults/backupOperationResults + - vaults/backupOperations + - vaults/backupPolicies/operationResults + - vaults/backupPolicies/operations + - vaults/backupProtectableItems + - vaults/backupProtectionContainers + - vaults/backupSecurityPIN + - vaults/backupconfig + - vaults/backupstorageconfig + '2016-06-01': + - locations/checkNameAvailability + - vaults + - vaults/certificates + - vaults/extendedInformation + - vaults/registeredIdentities + - vaults/replicationUsages + - vaults/usages + microsoft.media: + '2018-07-01': + - locations/checkNameAvailability + - mediaServices/accountFilters + - mediaServices/assets + - mediaServices/assets/assetFilters + - mediaServices/assets/getEncryptionKey + - mediaServices/assets/listContainerSas + - mediaServices/assets/listStreamingLocators + - mediaServices/contentKeyPolicies + - mediaServices/contentKeyPolicies/getPolicyPropertiesWithSecrets + - mediaServices/streamingLocators + - mediaServices/streamingLocators/listContentKeys + - mediaServices/streamingLocators/listPaths + - mediaServices/streamingPolicies + - mediaServices/transforms + - mediaServices/transforms/jobs + - mediaServices/transforms/jobs/cancelJob + - mediaservices + - mediaservices/liveEvents + - mediaservices/liveEvents/liveOutputs + - mediaservices/liveEvents/reset + - mediaservices/liveEvents/start + - mediaservices/liveEvents/stop + - mediaservices/streamingEndpoints + - mediaservices/streamingEndpoints/scale + - mediaservices/streamingEndpoints/start + - mediaservices/streamingEndpoints/stop + - mediaservices/syncStorageKeys + - operations + '2015-10-01': + - CheckNameAvailability + - mediaservices/listKeys + - mediaservices/regenerateKey + microsoft.logic: + 2018-07-01-preview: + - integrationAccounts + - integrationAccounts/agreements + - integrationAccounts/agreements/listContentCallbackUrl + - integrationAccounts/assemblies + - integrationAccounts/assemblies/listContentCallbackUrl + - integrationAccounts/batchConfigurations + - integrationAccounts/certificates + - integrationAccounts/listCallbackUrl + - integrationAccounts/listKeyVaultKeys + - integrationAccounts/logTrackingEvents + - integrationAccounts/maps + - integrationAccounts/maps/listContentCallbackUrl + - integrationAccounts/partners + - integrationAccounts/partners/listContentCallbackUrl + - integrationAccounts/regenerateAccessKey + - integrationAccounts/schemas + - integrationAccounts/schemas/listContentCallbackUrl + - integrationAccounts/sessions + - locations/workflows/validate + - operations + - workflows + - workflows/disable + - workflows/enable + - workflows/generateUpgradedDefinition + - workflows/listCallbackUrl + - workflows/listSwagger + - workflows/move + - workflows/regenerateAccessKey + - workflows/runs + - workflows/runs/actions + - workflows/runs/actions/listExpressionTraces + - workflows/runs/actions/repetitions + - workflows/runs/actions/repetitions/listExpressionTraces + - workflows/runs/actions/repetitions/requestHistories + - workflows/runs/actions/requestHistories + - workflows/runs/actions/scopeRepetitions + - workflows/runs/cancel + - workflows/runs/operations + - workflows/triggers + - workflows/triggers/histories + - workflows/triggers/histories/resubmit + - workflows/triggers/listCallbackUrl + - workflows/triggers/reset + - workflows/triggers/run + - workflows/triggers/schemas + - workflows/triggers/setState + - workflows/validate + - workflows/versions + - workflows/versions/triggers/listCallbackUrl + 2015-02-01-preview: + - workflows/accessKeys + - workflows/accessKeys/list + - workflows/accessKeys/regenerate + - workflows/run + microsoft.policyinsights: + 2018-07-01-preview: + - operations + - policyStates/queryResults + - policyStates/summarize + - policyTrackedResources/queryResults + - remediations + - remediations/cancel + - remediations/listDeployments + '2018-04-04': + - policyEvents/queryResults + microsoft.automation: + '2018-06-30': + - automationAccounts/python2Packages + - automationAccounts/runbooks + - automationAccounts/runbooks/content + - automationAccounts/runbooks/draft + - automationAccounts/runbooks/draft/resume + - automationAccounts/runbooks/draft/stop + - automationAccounts/runbooks/draft/streams + - automationAccounts/runbooks/draft/suspend + - automationAccounts/runbooks/publish + '2018-01-15': + - automationAccounts/agentRegistrationInformation + - automationAccounts/compilationjobs + - automationAccounts/compilationjobs/streams + - automationAccounts/nodeConfigurations + - automationAccounts/nodecounts + - automationAccounts/nodes + - automationAccounts/nodes/reports + - automationAccounts/nodes/reports/content + 2017-05-15-preview: + - automationAccounts/jobs + - automationAccounts/jobs/output + - automationAccounts/jobs/resume + - automationAccounts/jobs/runbookContent + - automationAccounts/jobs/stop + - automationAccounts/jobs/streams + - automationAccounts/jobs/suspend + - automationAccounts/softwareUpdateConfigurationMachineRuns + - automationAccounts/softwareUpdateConfigurationRuns + - automationAccounts/softwareUpdateConfigurations + - automationAccounts/sourceControls + - automationAccounts/sourceControls/sourceControlSyncJobs + - automationAccounts/sourceControls/sourceControlSyncJobs/streams + '2015-10-31': + - automationAccounts + - automationAccounts/certificates + - automationAccounts/configurations + - automationAccounts/configurations/content + - automationAccounts/connectionTypes + - automationAccounts/connections + - automationAccounts/credentials + - automationAccounts/hybridRunbookWorkerGroups + - automationAccounts/jobSchedules + - automationAccounts/linkedWorkspace + - automationAccounts/listKeys + - automationAccounts/modules + - automationAccounts/modules/activities + - automationAccounts/modules/objectDataTypes/fields + - automationAccounts/modules/types/fields + - automationAccounts/objectDataTypes/fields + - automationAccounts/schedules + - automationAccounts/statistics + - automationAccounts/usages + - automationAccounts/variables + - automationAccounts/watchers + - automationAccounts/watchers/start + - automationAccounts/watchers/stop + - automationAccounts/webhooks + - operations + microsoft.datafactory: + '2018-06-01': + - factories + - factories/datasets + - factories/getDataPlaneAccess + - factories/getGitHubAccessToken + - factories/integrationRuntimes + - factories/integrationRuntimes/getConnectionInfo + - factories/integrationRuntimes/getObjectMetadata + - factories/integrationRuntimes/getStatus + - factories/integrationRuntimes/linkedIntegrationRuntime + - factories/integrationRuntimes/listAuthKeys + - factories/integrationRuntimes/monitoringData + - factories/integrationRuntimes/nodes + - factories/integrationRuntimes/nodes/ipAddress + - factories/integrationRuntimes/refreshObjectMetadata + - factories/integrationRuntimes/regenerateAuthKey + - factories/integrationRuntimes/removeLinks + - factories/integrationRuntimes/start + - factories/integrationRuntimes/stop + - factories/integrationRuntimes/syncCredentials + - factories/integrationRuntimes/upgrade + - factories/linkedservices + - factories/pipelineruns + - factories/pipelineruns/cancel + - factories/pipelineruns/queryActivityruns + - factories/pipelines + - factories/pipelines/createRun + - factories/queryPipelineRuns + - factories/queryTriggerRuns + - factories/triggers + - factories/triggers/rerunTriggers + - factories/triggers/rerunTriggers/cancel + - factories/triggers/rerunTriggers/start + - factories/triggers/rerunTriggers/stop + - factories/triggers/start + - factories/triggers/stop + - locations/configureFactoryRepo + - locations/getFeatureValue + - operations + 2017-09-01-preview: + - factories/cancelpipelinerun + - factories/integrationRuntimes/removeNode + - factories/pipelineruns/activityruns + - factories/triggers/triggerruns + microsoft.dbformariadb: + '2018-06-01': + - checkNameAvailability + - locations/performanceTiers + - operations + - servers/configurations + - servers/databases + - servers/logFiles + - servers/replicas + - servers/restart + - servers/securityAlertPolicies + - servers/virtualNetworkRules + 2018-06-01-preview: + - servers + - servers/firewallRules + microsoft.sql: + 2018-06-01-preview: + - managedInstances/databases/currentSensitivityLabels + - managedInstances/databases/recommendedSensitivityLabels + - managedInstances/databases/schemas/tables/columns/sensitivityLabels + - managedInstances/databases/schemas/tables/columns/sensitivityLabels/disable + - managedInstances/databases/schemas/tables/columns/sensitivityLabels/enable + - managedInstances/vulnerabilityAssessments + - servers/databases/securityAlertPolicies + - servers/vulnerabilityAssessments + 2017-10-01-preview: + - locations/capabilities + - locations/instanceFailoverGroups + - locations/instanceFailoverGroups/failover + - locations/instanceFailoverGroups/forceFailoverAllowDataLoss + - managedInstances/databases/vulnerabilityAssessments + - managedInstances/databases/vulnerabilityAssessments/rules/baselines + - managedInstances/databases/vulnerabilityAssessments/scans + - managedInstances/databases/vulnerabilityAssessments/scans/export + - managedInstances/databases/vulnerabilityAssessments/scans/initiateScan + - managedInstances/encryptionProtector + - managedInstances/keys + - managedInstances/recoverableDatabases + - managedInstances/tdeCertificates + - servers/databases + - servers/databases/backupShortTermRetentionPolicies + - servers/databases/move + - servers/databases/operations + - servers/databases/operations/cancel + - servers/databases/pause + - servers/databases/resume + - servers/databases/upgradeDataWarehouse + - servers/databases/vulnerabilityAssessments/scans + - servers/databases/vulnerabilityAssessments/scans/export + - servers/databases/vulnerabilityAssessments/scans/initiateScan + - servers/elasticPools + - servers/elasticPools/databases + - servers/elasticPools/operations + - servers/elasticPools/operations/cancel + - servers/tdeCertificates + 2017-03-01-preview: + - locations/longTermRetentionBackups + - locations/longTermRetentionServers/longTermRetentionBackups + - locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups + - locations/managedDatabaseRestoreAzureAsyncOperation/completeRestore + - managedInstances/databases + - managedInstances/databases/backupShortTermRetentionPolicies + - managedInstances/databases/securityAlertPolicies + - managedInstances/restorableDroppedDatabases + - managedInstances/restorableDroppedDatabases/backupShortTermRetentionPolicies + - managedInstances/securityAlertPolicies + - servers/auditingSettings + - servers/automaticTuning + - servers/databases/auditingSettings + - servers/databases/backupLongTermRetentionPolicies + - servers/databases/currentSensitivityLabels + - servers/databases/dataWarehouseUserActivities + - servers/databases/export + - servers/databases/extendedAuditingSettings + - servers/databases/recommendedSensitivityLabels + - servers/databases/restorePoints + - servers/databases/schemas/tables/columns/sensitivityLabels + - servers/databases/schemas/tables/columns/sensitivityLabels/disable + - servers/databases/schemas/tables/columns/sensitivityLabels/enable + - servers/databases/vulnerabilityAssessments + - servers/databases/vulnerabilityAssessments/rules/baselines + - servers/dnsAliases + - servers/dnsAliases/acquire + - servers/extendedAuditingSettings + - servers/jobAgents + - servers/jobAgents/credentials + - servers/jobAgents/executions + - servers/jobAgents/jobs + - servers/jobAgents/jobs/executions + - servers/jobAgents/jobs/executions/cancel + - servers/jobAgents/jobs/executions/steps + - servers/jobAgents/jobs/executions/steps/targets + - servers/jobAgents/jobs/executions/targets + - servers/jobAgents/jobs/start + - servers/jobAgents/jobs/steps + - servers/jobAgents/jobs/versions + - servers/jobAgents/jobs/versions/steps + - servers/jobAgents/targetGroups + - servers/securityAlertPolicies + 2015-05-01-preview: + - instancePools/managedInstances + - locations/syncDatabaseIds + - locations/usages + - managedInstances + - operations + - servers + - servers/advisors + - servers/databases/advisors + - servers/databases/advisors/recommendedActions + - servers/databases/automaticTuning + - servers/databases/syncGroups + - servers/databases/syncGroups/cancelSync + - servers/databases/syncGroups/hubSchemas + - servers/databases/syncGroups/logs + - servers/databases/syncGroups/refreshHubSchema + - servers/databases/syncGroups/syncMembers + - servers/databases/syncGroups/syncMembers/refreshSchema + - servers/databases/syncGroups/syncMembers/schemas + - servers/databases/syncGroups/triggerSync + - servers/encryptionProtector + - servers/failoverGroups + - servers/failoverGroups/failover + - servers/failoverGroups/forceFailoverAllowDataLoss + - servers/firewallRules + - servers/keys + - servers/syncAgents + - servers/syncAgents/generateKey + - servers/syncAgents/linkedDatabases + - servers/virtualNetworkRules + - virtualClusters + '2014-04-01': + - checkNameAvailability + - servers/administrators + - servers/auditingPolicies + - servers/backupLongTermRetentionVaults + - servers/communicationLinks + - servers/connectionPolicies + - servers/databases/auditingPolicies + - servers/databases/connectionPolicies + - servers/databases/dataMaskingPolicies + - servers/databases/dataMaskingPolicies/rules + - servers/databases/extensions + - servers/databases/geoBackupPolicies + - servers/databases/metricDefinitions + - servers/databases/metrics + - servers/databases/replicationLinks + - servers/databases/replicationLinks/failover + - servers/databases/replicationLinks/forceFailoverAllowDataLoss + - servers/databases/serviceTierAdvisors + - servers/databases/topQueries + - servers/databases/topQueries/queryText + - servers/databases/topQueries/statistics + - servers/databases/transparentDataEncryption + - servers/databases/transparentDataEncryption/operationResults + - servers/databases/usages + - servers/disasterRecoveryConfiguration + - servers/disasterRecoveryConfiguration/failover + - servers/disasterRecoveryConfiguration/forceFailoverAllowDataLoss + - servers/elasticPools/elasticPoolActivity + - servers/elasticPools/elasticPoolDatabaseActivity + - servers/elasticPools/metricDefinitions + - servers/elasticPools/metrics + - servers/import + - servers/recommendedElasticPools + - servers/recommendedElasticPools/databases + - servers/recommendedElasticPools/metrics + - servers/recoverableDatabases + - servers/restorableDroppedDatabases + - servers/serviceObjectives + - servers/usages + microsoft.solutions: + '2018-06-01': + - applicationDefinitions + - applications + 2016-09-01-preview: + - applianceDefinitions + - appliances + - operations + microsoft.hdinsight: + 2018-06-01-preview: + - clusters + - clusters/applications + - clusters/configurations + - clusters/executeScriptActions + - clusters/extensions + - clusters/getGatewaySettings + - clusters/roles/resize + - clusters/rotatediskencryptionkey + - clusters/scriptActions + - clusters/scriptExecutionHistory + - clusters/scriptExecutionHistory/promote + - clusters/updateGatewaySettings + - locations/usages + - operations + 2015-03-01-preview: + - locations/capabilities + microsoft.managedservices: + 2018-06-01-preview: + - operations + - registrationAssignments + - registrationDefinitions + microsoft.alertsmanagement: + 2018-05-05-preview: + - alerts + '2018-05-05': + - alerts/changestate + - alerts/history + - alertsSummary + - operations + - smartGroups + - smartGroups/changeState + - smartGroups/history + microsoft.resources: + '2018-05-01': + - deployments + - deployments/cancel + - deployments/exportTemplate + - deployments/operations + - deployments/validate + - operations + '2016-09-01': + - links + microsoft.maps: + '2018-05-01': + - accounts + - accounts/listKeys + - accounts/regenerateKey + - operations + microsoft.serialconsole: + '2018-05-01': + - consoleServices + - consoleServices/disableConsole + - consoleServices/enableConsole + - operations + microsoft.batchai: + '2018-05-01': + - locations/usages + - operations + - workspaces + - workspaces/clusters + - workspaces/clusters/listRemoteLoginInformation + - workspaces/experiments + - workspaces/experiments/jobs + - workspaces/experiments/jobs/listOutputFiles + - workspaces/experiments/jobs/listRemoteLoginInformation + - workspaces/experiments/jobs/terminate + - workspaces/fileServers + '2018-03-01': + - clusters + - clusters/listRemoteLoginInformation + - fileServers + - jobs + - jobs/listOutputFiles + - jobs/listRemoteLoginInformation + - jobs/terminate + microsoft.databricks: + '2018-04-01': + - operations + - workspaces + microsoft.addons: + '2018-03-01': + - operations + - supportProviders/listSupportPlanInfo + - supportProviders/supportPlanTypes + microsoft.cache: + '2018-03-01': + - CheckNameAvailability + - Redis + - Redis/export + - Redis/firewallRules + - Redis/forceReboot + - Redis/import + - Redis/linkedServers + - Redis/listKeys + - Redis/listUpgradeNotifications + - Redis/patchSchedules + - Redis/regenerateKey + - operations + microsoft.machinelearningservices: + 2018-03-01-preview: + - operations + - workspaces + - workspaces/computes + - workspaces/computes/listKeys + - workspaces/listKeys + - workspaces/resyncKeys + microsoft.management: + 2018-03-01-preview: + - checkNameAvailability + - getEntities + - managementGroups + - managementGroups/subscriptions + - operations + - startTenantBackfill + - tenantBackfillStatus + microsoft.windowsiot: + 2018-02-16-preview: + - checkDeviceServiceNameAvailability + - deviceServices + - operations + microsoft.keyvault: + '2018-02-14': + - checkNameAvailability + - deletedVaults + - locations/deletedVaults + - locations/deletedVaults/purge + - operations + - vaults + - vaults/accessPolicies + microsoft.migrate: + '2018-02-02': + - locations/assessmentOptions + - locations/checkNameAvailability + - operations + - projects + - projects/assessments + - projects/groups + - projects/groups/assessments + - projects/groups/assessments/assessedMachines + - projects/groups/assessments/downloadUrl + - projects/keys + - projects/machines + microsoft.managementpartner: + '2018-02-01': + - operations + - partners + microsoft.domainregistration: + '2018-02-01': + - checkDomainAvailability + - domains + - domains/domainOwnershipIdentifiers + - domains/renew + - generateSsoRequest + - listDomainRecommendations + - operations + - topLevelDomains + - topLevelDomains/listAgreements + '2015-08-01': + - domains/operationresults + - validateDomainRegistrationInformation + microsoft.certificateregistration: + '2018-02-01': + - certificateOrders + - certificateOrders/certificates + - certificateOrders/reissue + - certificateOrders/renew + - certificateOrders/resendEmail + - certificateOrders/resendRequestEmails + - certificateOrders/retrieveCertificateActions + - certificateOrders/retrieveEmailHistory + - certificateOrders/retrieveSiteSeal + - certificateOrders/verifyDomainOwnership + - operations + - validateCertificateRegistrationInformation + microsoft.servicefabric: + '2018-02-01': + - clusters + - locations/clusterVersions + - locations/environments/clusterVersions + - operations + 2017-07-01-preview: + - clusters/applicationTypes + - clusters/applicationTypes/versions + - clusters/applications + - clusters/applications/services + microsoft.eventhub: + 2018-01-01-preview: + - clusters + - clusters/quotaConfiguration + - namespaces + - namespaces/ipfilterrules + - namespaces/networkRuleSets + - namespaces/virtualnetworkrules + - operations + '2017-04-01': + - CheckNameAvailability + - namespaces/AuthorizationRules + - namespaces/AuthorizationRules/listKeys + - namespaces/AuthorizationRules/regenerateKeys + - namespaces/disasterRecoveryConfigs + - namespaces/disasterRecoveryConfigs/AuthorizationRules + - namespaces/disasterRecoveryConfigs/AuthorizationRules/listKeys + - namespaces/disasterRecoveryConfigs/breakPairing + - namespaces/disasterRecoveryConfigs/failover + - namespaces/eventhubs + - namespaces/eventhubs/authorizationRules + - namespaces/eventhubs/authorizationRules/ListKeys + - namespaces/eventhubs/authorizationRules/regenerateKeys + - namespaces/eventhubs/consumergroups + - namespaces/messagingplan + - sku/regions + '2014-09-01': + - CheckNamespaceAvailability + microsoft.servicebus: + 2018-01-01-preview: + - namespaces + - namespaces/ipfilterrules + - namespaces/networkrulesets + - namespaces/virtualnetworkrules + - operations + '2017-04-01': + - CheckNameAvailability + - namespaces/AuthorizationRules + - namespaces/AuthorizationRules/listKeys + - namespaces/AuthorizationRules/regenerateKeys + - namespaces/disasterRecoveryConfigs + - namespaces/disasterRecoveryConfigs/AuthorizationRules + - namespaces/disasterRecoveryConfigs/AuthorizationRules/listKeys + - namespaces/disasterRecoveryConfigs/breakPairing + - namespaces/disasterRecoveryConfigs/failover + - namespaces/eventhubs + - namespaces/migrate + - namespaces/migrationConfigurations + - namespaces/migrationConfigurations/revert + - namespaces/migrationConfigurations/upgrade + - namespaces/queues + - namespaces/queues/authorizationRules + - namespaces/queues/authorizationRules/ListKeys + - namespaces/queues/authorizationRules/regenerateKeys + - namespaces/topics + - namespaces/topics/authorizationRules + - namespaces/topics/authorizationRules/ListKeys + - namespaces/topics/authorizationRules/regenerateKeys + - namespaces/topics/subscriptions + - namespaces/topics/subscriptions/rules + - premiumMessagingRegions + - sku/regions + microsoft.databox: + '2018-01-01': + - jobs + - jobs/bookShipmentPickUp + - jobs/cancel + - jobs/listCredentials + - locations/availableSkus + - locations/validateAddress + - operations + microsoft.dbformysql: + 2017-12-01-preview: + - checkNameAvailability + - locations/performanceTiers + - operations + - servers/configurations + - servers/databases + - servers/logFiles + '2017-12-01': + - servers + - servers/firewallRules + - servers/replicas + - servers/restart + - servers/securityAlertPolicies + - servers/virtualNetworkRules + microsoft.dbforpostgresql: + '2017-12-01': + - checkNameAvailability + - operations + - servers/restart + - servers/securityAlertPolicies + - servers/virtualNetworkRules + 2017-12-01-preview: + - locations/performanceTiers + - servers + - servers/Replicas + - servers/configurations + - servers/databases + - servers/firewallRules + - servers/logFiles + microsoft.hanaonazure: + 2017-11-03-preview: + - hanaInstances + - hanaInstances/monitoring + - hanaInstances/restart + - operations + microsoft.cdn: + '2017-10-12': + - checkNameAvailability + - checkResourceUsage + - edgenodes + - operations + - profiles + - profiles/checkResourceUsage + - profiles/endpoints + - profiles/endpoints/checkResourceUsage + - profiles/endpoints/customDomains + - profiles/endpoints/customDomains/disableCustomHttps + - profiles/endpoints/customDomains/enableCustomHttps + - profiles/endpoints/load + - profiles/endpoints/origins + - profiles/endpoints/purge + - profiles/endpoints/start + - profiles/endpoints/stop + - profiles/endpoints/validateCustomDomain + - profiles/generateSsoUri + - profiles/getSupportedOptimizationTypes + - validateProbe + microsoft.iotspaces: + 2017-10-01-preview: + - Graph + - checkNameAvailability + - operations + microsoft.powerbidedicated: + '2017-10-01': + - capacities + - capacities/resume + - capacities/skus + - capacities/suspend + - locations/checkNameAvailability + - operations + - skus + microsoft.operationalinsights: + '2017-10-01': + - workspaces/query + 2015-11-01-preview: + - operations + - workspaces + - workspaces/dataSources + - workspaces/features/clientGroups + - workspaces/features/clientGroups/members + - workspaces/features/clientGroups/membersCount + - workspaces/features/generateMap + - workspaces/features/machineGroups + - workspaces/features/machines + - workspaces/features/machines/connections + - workspaces/features/machines/liveness + - workspaces/features/machines/machineGroups + - workspaces/features/machines/ports + - workspaces/features/machines/ports/acceptingProcesses + - workspaces/features/machines/ports/connections + - workspaces/features/machines/ports/liveness + - workspaces/features/machines/processes + - workspaces/features/machines/processes/acceptingPorts + - workspaces/features/machines/processes/connections + - workspaces/features/machines/processes/liveness + - workspaces/features/summaries + - workspaces/intelligencePacks + - workspaces/intelligencePacks/Disable + - workspaces/intelligencePacks/Enable + - workspaces/linkedServices + - workspaces/managementGroups + - workspaces/sharedKeys + - workspaces/usages + '2015-03-20': + - linkTargets + - workspaces/gateways + - workspaces/listKeys + - workspaces/operations + - workspaces/purge + - workspaces/regenerateSharedKey + - workspaces/savedSearches + - workspaces/savedSearches/results + - workspaces/schema + - workspaces/search + - workspaces/storageInsightConfigs + microsoft.machinelearningcompute: + 2017-08-01-preview: + - operationalizationClusters + - operationalizationClusters/checkSystemServicesUpdatesAvailable + - operationalizationClusters/listKeys + - operationalizationClusters/updateSystemServices + - operations + 2017-06-01-preview: + - operationalizationClusters/checkUpdate + - operationalizationClusters/updateSystem + microsoft.analysisservices: + '2017-08-01': + - locations/checkNameAvailability + - locations/operationresults + - locations/operationstatuses + - operations + - servers + - servers/dissociateGateway + - servers/listGatewayStatus + - servers/resume + - servers/skus + - servers/suspend + - skus + microsoft.resourcehealth: + '2017-07-01': + - availabilityStatuses + - childAvailabilityStatuses + - childResources + - operations + microsoft.storsimple: + '2017-06-01': + - managers + - managers/accessControlRecords + - managers/alerts + - managers/bandwidthSettings + - managers/clearAlerts + - managers/cloudApplianceConfigurations + - managers/configureDevice + - managers/devices + - managers/devices/alertSettings + - managers/devices/authorizeForServiceEncryptionKeyRollover + - managers/devices/backupPolicies + - managers/devices/backupPolicies/backup + - managers/devices/backupPolicies/schedules + - managers/devices/backups + - managers/devices/backups/elements/clone + - managers/devices/backups/restore + - managers/devices/deactivate + - managers/devices/failover + - managers/devices/hardwareComponentGroups + - managers/devices/hardwareComponentGroups/changeControllerPowerState + - managers/devices/installUpdates + - managers/devices/jobs + - managers/devices/jobs/cancel + - managers/devices/listFailoverSets + - managers/devices/listFailoverTargets + - managers/devices/metrics + - managers/devices/metricsDefinitions + - managers/devices/networkSettings + - managers/devices/publicEncryptionKey + - managers/devices/scanForUpdates + - managers/devices/securitySettings + - managers/devices/securitySettings/syncRemoteManagementCertificate + - managers/devices/sendTestAlertEmail + - managers/devices/timeSettings + - managers/devices/updateSummary + - managers/devices/volumeContainers + - managers/devices/volumeContainers/metrics + - managers/devices/volumeContainers/metricsDefinitions + - managers/devices/volumeContainers/volumes + - managers/devices/volumeContainers/volumes/metrics + - managers/devices/volumeContainers/volumes/metricsDefinitions + - managers/devices/volumes + - managers/encryptionSettings + - managers/extendedInformation + - managers/features + - managers/jobs + - managers/listActivationKey + - managers/listPublicEncryptionKey + - managers/metrics + - managers/metricsDefinitions + - managers/provisionCloudAppliance + - managers/regenerateActivationKey + - managers/storageAccountCredentials + - operations + '2016-10-01': + - managers/backups + - managers/certificates + - managers/devices/backupScheduleGroups + - managers/devices/chapSettings + - managers/devices/disks + - managers/devices/download + - managers/devices/failoverTargets + - managers/devices/fileservers + - managers/devices/fileservers/backup + - managers/devices/fileservers/metrics + - managers/devices/fileservers/metricsDefinitions + - managers/devices/fileservers/shares + - managers/devices/fileservers/shares/metrics + - managers/devices/fileservers/shares/metricsDefinitions + - managers/devices/install + - managers/devices/iscsiservers + - managers/devices/iscsiservers/backup + - managers/devices/iscsiservers/disks + - managers/devices/iscsiservers/disks/metrics + - managers/devices/iscsiservers/disks/metricsDefinitions + - managers/devices/iscsiservers/metrics + - managers/devices/iscsiservers/metricsDefinitions + - managers/devices/securitySettings/update + - managers/devices/shares + - managers/fileservers + - managers/getEncryptionKey + - managers/iscsiservers + - managers/storageDomains + microsoft.aad: + '2017-06-01': + - domainServices + - operations + microsoft.azurestack: + '2017-06-01': + - operations + - registrations + - registrations/customerSubscriptions + - registrations/getactivationkey + - registrations/products + - registrations/products/listDetails + microsoft.machinelearningexperimentation: + 2017-05-01-preview: + - accounts + - accounts/workspaces + - accounts/workspaces/projects + - operations + microsoft.customerinsights: + '2017-04-26': + - hubs + - hubs/authorizationPolicies + - hubs/authorizationPolicies/regeneratePrimaryKey + - hubs/authorizationPolicies/regenerateSecondaryKey + - hubs/connectors + - hubs/connectors/mappings + - hubs/images + - hubs/interactions + - hubs/interactions/suggestRelationshipLinks + - hubs/kpi + - hubs/kpi/reprocess + - hubs/links + - hubs/predictions + - hubs/predictions/getModelStatus + - hubs/predictions/getTrainingResults + - hubs/predictions/modelStatus + - hubs/profiles + - hubs/profiles/getEnrichingKpis + - hubs/relationshipLinks + - hubs/relationships + - hubs/roleAssignments + - hubs/roles + - hubs/views + - hubs/widgetTypes + - operations + microsoft.advisor: + '2017-04-19': + - configurations + - generateRecommendations + - operations + - recommendations + - recommendations/suppressions + - suppressions + microsoft.cognitiveservices: + '2017-04-18': + - accounts + - accounts/listKeys + - accounts/regenerateKey + - accounts/skus + - accounts/usages + - locations/checkSkuAvailability + - operations + - skus + microsoft.notificationhubs: + '2017-04-01': + - checkNamespaceAvailability + - namespaces + - namespaces/AuthorizationRules + - namespaces/AuthorizationRules/listKeys + - namespaces/AuthorizationRules/regenerateKeys + - namespaces/checkNotificationHubAvailability + - namespaces/notificationHubs + - namespaces/notificationHubs/AuthorizationRules + - namespaces/notificationHubs/AuthorizationRules/listKeys + - namespaces/notificationHubs/AuthorizationRules/regenerateKeys + - namespaces/notificationHubs/debugsend + - namespaces/notificationHubs/pnsCredentials + - operations + microsoft.relay: + '2017-04-01': + - checkNameAvailability + - namespaces + - namespaces/authorizationRules + - namespaces/authorizationRules/listKeys + - namespaces/authorizationRules/regenerateKeys + - namespaces/hybridConnections + - namespaces/hybridConnections/authorizationRules + - namespaces/hybridConnections/authorizationRules/listKeys + - namespaces/hybridConnections/authorizationRules/regenerateKeys + - namespaces/wcfRelays + - namespaces/wcfRelays/authorizationRules + - namespaces/wcfRelays/authorizationRules/listKeys + - namespaces/wcfRelays/authorizationRules/regenerateKeys + - operations + microsoft.sqlvirtualmachine: + 2017-03-01-preview: + - operations + - sqlVirtualMachineGroups + - sqlVirtualMachineGroups/availabilityGroupListeners + - sqlVirtualMachines + microsoft.machinelearning: + '2017-01-01': + - operations + - webServices + - webServices/CreateRegionalBlob + - webServices/listKeys + 2016-05-01-preview: + - commitmentPlans + - commitmentPlans/commitmentAssociations + - commitmentPlans/commitmentAssociations/move + - commitmentPlans/usageHistory + - skus + '2016-04-01': + - workspaces + - workspaces/listWorkspaceKeys + - workspaces/resyncStorageKeys + microsoft.datalakeanalytics: + '2016-11-01': + - accounts + - accounts/computePolicies + - accounts/dataLakeStoreAccounts + - accounts/firewallRules + - accounts/storageAccounts + - accounts/storageAccounts/containers + - accounts/storageAccounts/containers/listSasTokens + - locations/capability + - locations/checkNameAvailability + - operations + microsoft.importexport: + '2016-11-01': + - jobs + - jobs/listBitLockerKeys + - locations + - operations + microsoft.datalakestore: + '2016-11-01': + - accounts + - accounts/enableKeyVault + - accounts/firewallRules + - accounts/trustedIdProviders + - accounts/virtualNetworkRules + - locations/capability + - locations/checkNameAvailability + - operations + microsoft.hybriddata: + '2016-06-01': + - dataManagers + - dataManagers/dataServices + - dataManagers/dataServices/jobDefinitions + - dataManagers/dataServices/jobDefinitions/jobs + - dataManagers/dataServices/jobDefinitions/jobs/cancel + - dataManagers/dataServices/jobDefinitions/jobs/resume + - dataManagers/dataServices/jobDefinitions/run + - dataManagers/dataServices/jobs + - dataManagers/dataStoreTypes + - dataManagers/dataStores + - dataManagers/jobDefinitions + - dataManagers/jobs + - dataManagers/publicKeys + - operations + microsoft.datacatalog: + '2016-03-30': + - catalogs + - operations + microsoft.scheduler: + '2016-03-01': + - jobCollections + - jobCollections/disable + - jobCollections/enable + - jobCollections/jobs + - jobCollections/jobs/history + - jobCollections/jobs/run + microsoft.streamanalytics: + '2016-03-01': + - locations/quotas + - operations + - streamingjobs + - streamingjobs/functions + - streamingjobs/functions/RetrieveDefaultDefinition + - streamingjobs/functions/test + - streamingjobs/inputs + - streamingjobs/inputs/test + - streamingjobs/outputs + - streamingjobs/outputs/test + - streamingjobs/start + - streamingjobs/stop + - streamingjobs/transformations + microsoft.powerbi: + '2016-01-29': + - locations/checkNameAvailability + - operations + - workspaceCollections + - workspaceCollections/listKeys + - workspaceCollections/regenerateKey + - workspaceCollections/workspaces + microsoft.features: + '2015-12-01': + - features + - operations + - providers/features + - providers/features/register + microsoft.operationsmanagement: + 2015-11-01-preview: + - ManagementAssociations + - ManagementConfigurations + - operations + - solutions + microsoft.search: + '2015-08-19': + - checkNameAvailability + - operations + - searchServices + - searchServices/createQueryKey + - searchServices/deleteQueryKey + - searchServices/listAdminKeys + - searchServices/listQueryKeys + - searchServices/regenerateAdminKey + microsoft.marketplaceordering: + '2015-06-01': + - agreements + - agreements/offers/plans + - agreements/offers/plans/cancel + - agreements/offers/plans/sign + - offerTypes/publishers/offers/plans/agreements + - operations + microsoft.commerce: + 2015-06-01-preview: + - RateCard + - UsageAggregates + microsoft.documentdb: + '2015-04-08': + - databaseAccountNames + - databaseAccounts + - databaseAccounts/apis/databases + - databaseAccounts/apis/databases/collections + - databaseAccounts/apis/databases/containers + - databaseAccounts/apis/keyspaces + - databaseAccounts/apis/keyspaces/tables + - databaseAccounts/apis/tables + - databaseAccounts/databases/collections/metricDefinitions + - databaseAccounts/databases/collections/metrics + - databaseAccounts/databases/collections/partitionKeyRangeId/metrics + - databaseAccounts/databases/collections/partitions + - databaseAccounts/databases/collections/usages + - databaseAccounts/databases/metricDefinitions + - databaseAccounts/databases/metrics + - databaseAccounts/databases/usages + - databaseAccounts/failoverPriorityChange + - databaseAccounts/listConnectionStrings + - databaseAccounts/listKeys + - databaseAccounts/metricDefinitions + - databaseAccounts/metrics + - databaseAccounts/offlineRegion + - databaseAccounts/onlineRegion + - databaseAccounts/percentile + - databaseAccounts/readonlykeys + - databaseAccounts/regenerateKey + - databaseAccounts/region/databases/collections/metrics + - databaseAccounts/region/databases/collections/partitionKeyRangeId/metrics + - databaseAccounts/region/databases/collections/partitions + - databaseAccounts/region/metrics + - databaseAccounts/sourceRegion/targetRegion/percentile + - databaseAccounts/targetRegion/percentile + - databaseAccounts/usages + - operations + microsoft.intune: + 2015-01-14-preview: + - locations/flaggedUsers + - locations/users/devices/wipe + 2015-01-14-privatepreview: + - locations + - locations/androidPolicies + - locations/androidPolicies/apps + - locations/androidPolicies/groups + - locations/apps + - locations/flaggedUsers/flaggedEnrolledApps + - locations/iosPolicies + - locations/iosPolicies/apps + - locations/iosPolicies/groups + - locations/operationResults + - locations/statuses + - locations/users/devices + microsoft.visualstudio: + 2014-04-01-preview: + - account + - account/extension + - account/project + - account/project/subContainers/status + - checkNameAvailability + - operations + microsoft.adhybridhealthservice: + '2014-01-01': + - addsservices + - addsservices/addomainservicemembers + - addsservices/addsservicemembers + - addsservices/alerts + - addsservices/configuration + - addsservices/dimensions + - addsservices/features/userpreference + - addsservices/forestsummary + - addsservices/metricmetadata + - addsservices/metricmetadata/groups + - addsservices/metrics/groups + - addsservices/metrics/groups/average + - addsservices/metrics/groups/sum + - addsservices/replicationdetails + - addsservices/replicationstatus + - addsservices/replicationsummary + - addsservices/servicemembers + - addsservices/servicemembers/alerts + - addsservices/servicemembers/credentials + - configuration + - operations + - reports/IsDevOps + - service/servicemembers/connectors + - services + - services/TenantWhitelisting + - services/alerts + - services/checkServiceFeatureAvailibility + - services/exporterrors + - services/exportstatus + - services/feedbacktype/alertfeedback + - services/feedbacktype/feedback + - services/metricmetadata + - services/metricmetadata/groups + - services/metrics/groups + - services/metrics/groups/average + - services/metrics/groups/sum + - services/monitoringconfiguration + - services/monitoringconfigurations + - services/reports/blobUris + - services/reports/details + - services/reports/generateBlobUri + - services/servicemembers + - services/servicemembers/alerts + - services/servicemembers/credentials + - services/servicemembers/data + - services/servicemembers/datafreshness + - services/servicemembers/exportstatus + - services/servicemembers/globalconfiguration + - services/servicemembers/metrics + - services/servicemembers/metrics/groups + - services/servicemembers/serviceconfiguration + operations: + /policies: '2017-03-01' + '/policies/{policyId}': '2017-03-01' + /policySnippets: '2017-03-01' + /regions: '2017-03-01' + /apis: '2017-03-01' + '/apis/{apiId}': '2017-03-01' + '/apis/{apiId}/operations': '2017-03-01' + '/apis/{apiId}/operations/{operationId}': '2017-03-01' + '/apis/{apiId}/operations/{operationId}/policies': '2017-03-01' + '/apis/{apiId}/operations/{operationId}/policies/{policyId}': '2017-03-01' + '/apis/{apiId}/products': '2017-03-01' + '/apis/{apiId}/policies': '2017-03-01' + '/apis/{apiId}/policies/{policyId}': '2017-03-01' + '/apis/{apiId}/schemas': '2017-03-01' + '/apis/{apiId}/schemas/{schemaId}': '2017-03-01' + /authorizationServers: '2017-03-01' + '/authorizationServers/{authsid}': '2017-03-01' + /backends: '2017-03-01' + '/backends/{backendid}': '2017-03-01' + /certificates: 2018-12-01.8.0 + '/certificates/{certificateId}': '2017-03-01' + /templates: '2017-03-01' + '/templates/{templateName}': '2017-03-01' + /groups: '2017-03-01' + '/groups/{groupId}': '2017-03-01' + '/groups/{groupId}/users': '2017-03-01' + '/groups/{groupId}/users/{uid}': '2017-03-01' + /identityProviders: '2017-03-01' + '/identityProviders/{identityProviderName}': '2017-03-01' + /loggers: '2017-03-01' + '/loggers/{loggerid}': '2017-03-01' + /openidConnectProviders: '2017-03-01' + '/openidConnectProviders/{opid}': '2017-03-01' + /portalsettings/signin: '2017-03-01' + /portalsettings/signup: '2017-03-01' + /portalsettings/delegation: '2017-03-01' + /products: '2017-03-01' + '/products/{productId}': '2017-03-01' + '/products/{productId}/apis': '2017-03-01' + '/products/{productId}/apis/{apiId}': '2017-03-01' + '/products/{productId}/groups': '2017-03-01' + '/products/{productId}/groups/{groupId}': '2017-03-01' + '/products/{productId}/subscriptions': '2017-03-01' + '/products/{productId}/policies': '2017-03-01' + '/products/{productId}/policies/{policyId}': '2017-03-01' + /properties: '2017-03-01' + '/properties/{propId}': '2017-03-01' + '/quotas/{quotaCounterKey}': '2017-03-01' + '/quotas/{quotaCounterKey}/{quotaPeriodKey}': '2017-03-01' + /reports/byApi: '2017-03-01' + /reports/byUser: '2017-03-01' + /reports/byOperation: '2017-03-01' + /reports/byProduct: '2017-03-01' + /reports/byGeo: '2017-03-01' + /reports/bySubscription: '2017-03-01' + /reports/byTime: '2017-03-01' + /reports/byRequest: '2017-03-01' + /subscriptions: '2017-03-01' + '/subscriptions/{sid}': '2017-03-01' + '/subscriptions/{sid}/regeneratePrimaryKey': '2017-03-01' + '/subscriptions/{sid}/regenerateSecondaryKey': '2017-03-01' + '/tenant/{accessName}': '2017-03-01' + '/tenant/{accessName}/regeneratePrimaryKey': '2017-03-01' + '/tenant/{accessName}/regenerateSecondaryKey': '2017-03-01' + '/tenant/{accessName}/git': '2017-03-01' + '/tenant/{accessName}/git/regeneratePrimaryKey': '2017-03-01' + '/tenant/{accessName}/git/regenerateSecondaryKey': '2017-03-01' + '/tenant/{configurationName}/deploy': '2017-03-01' + '/tenant/{configurationName}/save': '2017-03-01' + '/tenant/{configurationName}/validate': '2017-03-01' + '/tenant/{configurationName}/syncState': '2017-03-01' + /users: '2017-03-01' + '/users/{uid}': '2017-03-01' + '/users/{uid}/generateSsoUrl': '2017-03-01' + '/users/{uid}/groups': '2017-03-01' + '/users/{uid}/subscriptions': '2017-03-01' + '/users/{uid}/identities': '2017-03-01' + '/users/{uid}/token': '2017-03-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets': 2018-06-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}': 2018-06-01-preview + '/apps/{appId}/metrics/{metricId}': v1 + '/apps/{appId}/metrics': v1 + '/apps/{appId}/metrics/metadata': v1 + '/apps/{appId}/events/{eventType}': v1 + '/apps/{appId}/events/{eventType}/{eventId}': v1 + '/apps/{appId}/events/$metadata': v1 + '/apps/{appId}/query': v1 + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/components/{applicationName}/events/$metadata': '2018-04-20' + '/{roleAssignmentId}': 2017-10-01-preview + '/{roleDefinitionId}': '2015-07-01' + '/{roleId}': 2018-09-01-preview + '/{denyAssignmentId}': 2018-07-01-preview + '/subscriptions/{subscriptionId}': '2016-06-01' + '/delegatedProviders/{delegatedProviderId}/offers': '2015-11-01' + '/delegatedProviders/{delegatedProviderId}/offers/{offerName}': '2015-11-01' + /offers: '2015-11-01' + /applications: 2018-12-01.8.0 + '/applications/{applicationId}': 2018-12-01.8.0 + /poolusagemetrics: 2018-12-01.8.0 + /nodeagentskus: 2018-12-01.8.0 + /nodecounts: 2018-12-01.8.0 + /lifetimepoolstats: 2018-12-01.8.0 + /lifetimejobstats: 2018-12-01.8.0 + '/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})/canceldelete': 2018-12-01.8.0 + '/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/files/{filePath}': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/files/{filePath}': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/files': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/files': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/disable': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/enable': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/terminate': 2018-12-01.8.0 + /jobschedules: 2018-12-01.8.0 + '/jobs/{jobId}': 2018-12-01.8.0 + '/jobs/{jobId}/disable': 2018-12-01.8.0 + '/jobs/{jobId}/enable': 2018-12-01.8.0 + '/jobs/{jobId}/terminate': 2018-12-01.8.0 + /jobs: 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/jobs': 2018-12-01.8.0 + '/jobs/{jobId}/jobpreparationandreleasetaskstatus': 2018-12-01.8.0 + '/jobs/{jobId}/taskcounts': 2018-12-01.8.0 + /pools: 2018-12-01.8.0 + '/pools/{poolId}': 2018-12-01.8.0 + '/pools/{poolId}/disableautoscale': 2018-12-01.8.0 + '/pools/{poolId}/enableautoscale': 2018-12-01.8.0 + '/pools/{poolId}/evaluateautoscale': 2018-12-01.8.0 + '/pools/{poolId}/resize': 2018-12-01.8.0 + '/pools/{poolId}/stopresize': 2018-12-01.8.0 + '/pools/{poolId}/updateproperties': 2018-12-01.8.0 + '/pools/{poolId}/removenodes': 2018-12-01.8.0 + '/jobs/{jobId}/tasks': 2018-12-01.8.0 + '/jobs/{jobId}/addtaskcollection': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/subtasksinfo': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/terminate': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/reactivate': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/users': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/users/{userName}': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/reboot': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/reimage': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/disablescheduling': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/enablescheduling': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/remoteloginsettings': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/rdp': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs': 2018-12-01.8.0 + '/pools/{poolId}/nodes': 2018-12-01.8.0 + '/pools/{poolId}/upgradeos': 2018-08-01.7.0 + '/jobs/{jobId}/tasks/{taskId}/files/{fileName}': 2016-07-01.3.1 + '/pools/{poolId}/nodes/{nodeId}/files/{fileName}': 2016-07-01.3.1 + /timeseries/entire/detect: '1.0' + /timeseries/last/detect: '1.0' + /Suggestions: '1.0' + /analyze: '2.0' + /describe: '2.0' + /detect: '2.0' + /models: '2.0' + '/models/{model}/analyze': '2.0' + /ocr: '2.0' + /tag: '2.0' + /generateThumbnail: '2.0' + /areaOfInterest: '2.0' + /recognizeText: '2.0' + '/textOperations/{operationId}': '2.0' + /read/core/asyncBatchAnalyze: '2.0' + '/read/operations/{operationId}': '2.0' + /contentmoderator/moderate/v1.0/ProcessImage/FindFaces: '1.0' + /contentmoderator/moderate/v1.0/ProcessImage/OCR: '1.0' + /contentmoderator/moderate/v1.0/ProcessImage/Evaluate: '1.0' + /contentmoderator/moderate/v1.0/ProcessImage/Match: '1.0' + /contentmoderator/moderate/v1.0/ProcessText/Screen/: '1.0' + /contentmoderator/moderate/v1.0/ProcessText/DetectLanguage: '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}': '1.0' + /contentmoderator/lists/v1.0/imagelists: '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}/RefreshIndex': '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}': '1.0' + /contentmoderator/lists/v1.0/termlists: '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}/RefreshIndex': '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}/images': '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}/images/{ImageId}': '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}/terms/{term}': '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}/terms': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/jobs/{JobId}': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/jobs': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/frames': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/publish': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/transcriptmoderationresult': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/transcript': '1.0' + /images/search: '1.0' + '/{projectId}/url': '2.0' + '/{projectId}/image': '2.0' + '/{projectId}/url/nostore': '2.0' + '/{projectId}/image/nostore': '2.0' + '/{projectId}/classify/iterations/{publishedName}/url': '3.0' + '/{projectId}/classify/iterations/{publishedName}/image': '3.0' + '/{projectId}/classify/iterations/{publishedName}/url/nostore': '3.0' + '/{projectId}/classify/iterations/{publishedName}/image/nostore': '3.0' + '/{projectId}/detect/iterations/{publishedName}/url': '3.0' + '/{projectId}/detect/iterations/{publishedName}/image': '3.0' + '/{projectId}/detect/iterations/{publishedName}/url/nostore': '3.0' + '/{projectId}/detect/iterations/{publishedName}/image/nostore': '3.0' + /domains: '3.0' + '/domains/{domainId}': '3.0' + '/projects/{projectId}/images/tagged': '3.0' + '/projects/{projectId}/images/untagged': '3.0' + '/projects/{projectId}/images/tagged/count': '3.0' + '/projects/{projectId}/images/untagged/count': '3.0' + '/projects/{projectId}/images/id': '3.0' + '/projects/{projectId}/images': '3.0' + '/projects/{projectId}/images/files': '3.0' + '/projects/{projectId}/images/urls': '3.0' + '/projects/{projectId}/images/predictions': '3.0' + '/projects/{projectId}/images/tags': '3.0' + '/projects/{projectId}/images/regions': '3.0' + '/{projectId}/images/{imageId}/regionproposals': '2.2' + '/projects/{projectId}/predictions': '3.0' + '/projects/{projectId}/predictions/query': '3.0' + '/projects/{projectId}/quicktest/url': '3.0' + '/projects/{projectId}/quicktest/image': '3.0' + '/projects/{projectId}/train': '3.0' + /projects: '3.0' + '/projects/{projectId}': '3.0' + '/projects/{projectId}/iterations': '3.0' + '/projects/{projectId}/iterations/{iterationId}': '3.0' + '/projects/{projectId}/iterations/{iterationId}/performance': '3.0' + '/projects/{projectId}/iterations/{iterationId}/performance/images': '3.0' + '/projects/{projectId}/iterations/{iterationId}/performance/images/count': '3.0' + '/projects/{projectId}/iterations/{iterationId}/export': '3.0' + '/projects/{projectId}/tags/{tagId}': '3.0' + '/projects/{projectId}/tags': '3.0' + '/projects/{projectId}/images/{imageId}/regionproposals': '3.0' + '/projects/{projectId}/iterations/{iterationId}/publish': '3.0' + /search: '1.0' + /entities: v2.1 + /findsimilars: '1.0' + /group: '1.0' + /identify: '1.0' + /verify: '1.0' + '/persongroups/{personGroupId}/persons': '1.0' + '/persongroups/{personGroupId}/persons/{personId}': '1.0' + '/persongroups/{personGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}': '1.0' + '/persongroups/{personGroupId}': '1.0' + '/persongroups/{personGroupId}/training': '1.0' + /persongroups: '1.0' + '/persongroups/{personGroupId}/train': '1.0' + '/facelists/{faceListId}': '1.0' + /facelists: '1.0' + '/facelists/{faceListId}/persistedfaces/{persistedFaceId}': '1.0' + '/persongroups/{personGroupId}/persons/{personId}/persistedfaces': '1.0' + '/facelists/{faceListId}/persistedfaces': '1.0' + '/largepersongroups/{largePersonGroupId}/persons': '1.0' + '/largepersongroups/{largePersonGroupId}/persons/{personId}': '1.0' + '/largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}': '1.0' + '/largepersongroups/{largePersonGroupId}': '1.0' + '/largepersongroups/{largePersonGroupId}/training': '1.0' + /largepersongroups: '1.0' + '/largepersongroups/{largePersonGroupId}/train': '1.0' + '/largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces': '1.0' + '/largefacelists/{largeFaceListId}': '1.0' + '/largefacelists/{largeFaceListId}/training': '1.0' + /largefacelists: '1.0' + '/largefacelists/{largeFaceListId}/train': '1.0' + '/largefacelists/{largeFaceListId}/persistedfaces/{persistedFaceId}': '1.0' + '/largefacelists/{largeFaceListId}/persistedfaces': '1.0' + /snapshots: '1.0' + '/snapshots/{snapshotId}': '1.0' + '/snapshots/{snapshotId}/apply': '1.0' + '/operations/{operationId}': '4.0' + /images/details: '1.0' + /images/trending: '1.0' + /localbusinesses/v7.0/search: '1.0' + '/apps/{appId}/versions/{versionId}/patterns': '2.0' + '/apps/{appId}/versions/{versionId}/phraselists': '2.0' + '/apps/{appId}/versions/{versionId}/features': '2.0' + '/apps/{appId}/versions/{versionId}/patterns/{patternId}': '2.0' + '/apps/{appId}/versions/{versionId}/phraselists/{phraselistId}': '2.0' + '/apps/{appId}/versions/{versionId}/example': '2.0' + '/apps/{appId}/versions/{versionId}/examples': '2.0' + '/apps/{appId}/versions/{versionId}/examples/{exampleId}': '2.0' + '/apps/{appId}/versions/{versionId}/intents': '2.0' + '/apps/{appId}/versions/{versionId}/entities': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts': '2.0' + '/apps/{appId}/versions/{versionId}/listprebuilts': '2.0' + '/apps/{appId}/versions/{versionId}/models': '2.0' + '/apps/{appId}/versions/{versionId}/models/{modelId}/examples': '2.0' + '/apps/{appId}/versions/{versionId}/intents/{intentId}': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}': '2.0' + '/apps/{appId}/versions/{versionId}/intents/{intentId}/suggest': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}/suggest': '2.0' + /apps/: '2.0' + /apps/import: '2.0' + /apps/assistants: '2.0' + /apps/domains: '2.0' + /apps/usagescenarios: '2.0' + /apps/cultures: '2.0' + '/apps/{appId}/querylogs': '2.0' + '/apps/{appId}': '2.0' + '/apps/{appId}/versions/{versionId}/clone': '2.0' + '/apps/{appId}/publish': '2.0' + '/apps/{appId}/versions': '2.0' + '/apps/{appId}/versions/{versionId}/': '2.0' + '/apps/{appId}/versions/{versionId}/export': '2.0' + '/apps/{appId}/versions/{versionId}/train': '2.0' + '/apps/{appId}/versions/import': '2.0' + '/apps/{appId}/settings': '2.0' + '/apps/{appId}/publishsettings': '2.0' + '/apps/{appId}/versions/{versionId}/suggest': '2.0' + '/apps/{appId}/permissions': '2.0' + '/apps/{appId}/endpoints': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltdomains': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltintents': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltentities': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltmodels': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltdomains/{domainName}': '2.0' + /apps/customprebuiltdomains: '2.0' + '/apps/customprebuiltdomains/{culture}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children/{cChildId}': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternrule': '2.0' + '/apps/{appId}/versions/{versionId}/patternrules': '2.0' + '/apps/{appId}/versions/{versionId}/patternrules/{patternId}': '2.0' + '/apps/{appId}/versions/{versionId}/intents/{intentId}/patternrules': '2.0' + '/apps/{appId}/versions/{versionId}/settings': '2.0' + '/apps/{appId}/azureaccounts': '2.0' + /azureaccounts: '2.0' + '/package/{appId}/slot/{slotName}/gzip': '2.0' + '/package/{appId}/versions/{versionId}/gzip': '2.0' + /news/search: '1.0' + /news: '1.0' + /news/trendingtopics: '1.0' + /endpointkeys: '4.0' + '/endpointkeys/{keyType}': '4.0' + /alterations: '4.0' + /knowledgebases: '4.0' + '/knowledgebases/{kbId}': '4.0' + /knowledgebases/create: '4.0' + '/knowledgebases/{kbId}/{environment}/qna': '4.0' + /spellcheck: '1.0' + /keyPhrases: v2.1 + /languages: v2.1 + /sentiment: v2.1 + /BreakSentence: '3.0' + /Detect: '3.0' + /Dictionary/Lookup: '3.0' + /Dictionary/Examples: '3.0' + /Languages: '3.0' + /translate: '3.0' + /transliterate: '3.0' + /videos/search: '1.0' + /videos/details: '1.0' + /videos/trending: '1.0' + /images/visualsearch: '1.0' + '/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/Microsoft.Consumption/aggregatedcost': '2019-01-01' + /v2/: 2018-08-10-preview + '/v2/{name}/tags/list': 2018-08-10-preview + '/v2/{name}/manifests/{reference}': 2018-08-10-preview + /v2/_catalog: 2018-08-10-preview + /acr/v1/_catalog: 2018-08-10-preview + '/acr/v1/{name}': 2018-08-10-preview + '/acr/v1/{name}/_tags': 2018-08-10-preview + '/acr/v1/{name}/_tags/{reference}': 2018-08-10-preview + '/acr/v1/{name}/_manifests': 2018-08-10-preview + '/acr/v1/{name}/_manifests/{reference}': 2018-08-10-preview + '/catalog/usql/databases/{databaseName}/secrets/{secretName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/secrets': '2016-11-01' + '/catalog/usql/databases/{databaseName}/credentials/{credentialName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/credentials': '2016-11-01' + '/catalog/usql/databases/{databaseName}/externaldatasources/{externalDataSourceName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/externaldatasources': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/procedures/{procedureName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/procedures': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/tablefragments': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/statistics': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tabletypes/{tableTypeName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tabletypes': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/packages/{packageName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/packages': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/views/{viewName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/views': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/statistics/{statisticsName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/statistics': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions/{partitionName}/previewrows': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions/{partitionName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/previewrows': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/types': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tablevaluedfunctions/{tableValuedFunctionName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tablevaluedfunctions': '2016-11-01' + '/catalog/usql/databases/{databaseName}/assemblies/{assemblyName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/assemblies': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas': '2016-11-01' + '/catalog/usql/databases/{databaseName}/statistics': '2016-11-01' + '/catalog/usql/databases/{databaseName}/tables': '2016-11-01' + '/catalog/usql/databases/{databaseName}/tablevaluedfunctions': '2016-11-01' + '/catalog/usql/databases/{databaseName}/views': '2016-11-01' + '/catalog/usql/databases/{databaseName}/acl': '2016-11-01' + /catalog/usql/acl: '2016-11-01' + '/catalog/usql/databases/{databaseName}': '2016-11-01' + /catalog/usql/databases: '2016-11-01' + '/jobs/{jobIdentity}': 2017-09-01-preview + '/jobs/{jobIdentity}/GetStatistics': 2017-09-01-preview + '/jobs/{jobIdentity}/GetDebugDataPath': 2017-09-01-preview + '/jobs/{jobIdentity}/CancelJob': 2017-09-01-preview + '/jobs/{jobIdentity}/YieldJob': 2017-09-01-preview + /buildJob: 2017-09-01-preview + /pipelines: 2017-09-01-preview + '/pipelines/{pipelineIdentity}': 2017-09-01-preview + /recurrences: 2017-09-01-preview + '/recurrences/{recurrenceIdentity}': 2017-09-01-preview + '/Jobs/{jobIdentity}/GetStatistics': '2016-11-01' + '/Jobs/{jobIdentity}/GetDebugDataPath': '2016-11-01' + /BuildJob: '2016-11-01' + '/Jobs/{jobIdentity}/CancelJob': '2016-11-01' + '/Jobs/{jobIdentity}': '2016-11-01' + /Jobs: '2016-11-01' + '/WebHdfsExt/{path}': '2016-11-01' + '/webhdfs/v1/{path}': '2016-11-01' + '/WebHdfsExt/{filePath}': 2015-10-01-preview + /api/events: '2018-01-01' + '/{tenantID}/me': '1.6' + '/{tenantID}/me/ownedObjects': '1.6' + '/{tenantID}/applications': '1.6' + '/{tenantID}/deletedApplications/{objectId}/restore': '1.6' + '/{tenantID}/deletedApplications': '1.6' + '/{tenantID}/deletedApplications/{applicationObjectId}': '1.6' + '/{tenantID}/applications/{applicationObjectId}': '1.6' + '/{tenantID}/applications/{applicationObjectId}/owners': '1.6' + '/{tenantID}/applications/{applicationObjectId}/$links/owners': '1.6' + '/{tenantID}/applications/{applicationObjectId}/$links/owners/{ownerObjectId}': '1.6' + '/{tenantID}/applications/{applicationObjectId}/keyCredentials': '1.6' + '/{tenantID}/applications/{applicationObjectId}/passwordCredentials': '1.6' + '/{tenantID}/isMemberOf': '1.6' + '/{tenantID}/groups/{groupObjectId}/$links/members/{memberObjectId}': '1.6' + '/{tenantID}/groups/{groupObjectId}/$links/members': '1.6' + '/{tenantID}/groups': '1.6' + '/{tenantID}/groups/{objectId}/members': '1.6' + '/{tenantID}/groups/{objectId}': '1.6' + '/{tenantID}/groups/{objectId}/getMemberGroups': '1.6' + '/{tenantID}/groups/{objectId}/owners': '1.6' + '/{tenantID}/groups/{objectId}/$links/owners': '1.6' + '/{tenantID}/groups/{objectId}/$links/owners/{ownerObjectId}': '1.6' + '/{tenantID}/servicePrincipals': '1.6' + '/{tenantID}/servicePrincipalsByAppId/{applicationID}/objectId': '1.6' + '/{tenantID}/servicePrincipals/{objectId}': '1.6' + '/{tenantID}/servicePrincipals/{objectId}/owners': '1.6' + '/{tenantID}/servicePrincipals/{objectId}/keyCredentials': '1.6' + '/{tenantID}/servicePrincipals/{objectId}/passwordCredentials': '1.6' + '/{tenantID}/users': '1.6' + '/{tenantID}/users/{upnOrObjectId}': '1.6' + '/{tenantID}/users/{objectId}/getMemberGroups': '1.6' + '/{tenantID}/getObjectsByObjectIds': '1.6' + '/{tenantID}/domains': '1.6' + '/{tenantID}/domains/{domainName}': '1.6' + '/{tenantID}/oauth2PermissionGrants': '1.6' + '/{tenantID}/oauth2PermissionGrants/{objectId}': '1.6' + '/templeton/v1/jobs/{jobId}': 2018-11-01-preview + /templeton/v1/jobs: 2018-11-01-preview + /templeton/v1/jobs?op=LISTAFTERID: 2018-11-01-preview + /templeton/v1/hive: 2018-11-01-preview + /templeton/v1/mapreduce/jar: 2018-11-01-preview + /templeton/v1/mapreduce/streaming: 2018-11-01-preview + /templeton/v1/pig: 2018-11-01-preview + /templeton/v1/sqoop: 2018-11-01-preview + '/ws/v1/cluster/apps/{appId}/state': 2018-11-01-preview + /instance: '2018-10-01' + /attested/document: '2018-10-01' + /identity/oauth2/token: '2018-10-01' + /identity/info: '2018-10-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testall': 2019-03-22-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testnew': 2019-03-22-preview + '/keys/{key-name}/create': '2016-10-01' + '/keys/{key-name}': '2016-10-01' + '/keys/{key-name}/{key-version}': '2016-10-01' + '/keys/{key-name}/versions': '2016-10-01' + /keys: '2016-10-01' + '/keys/{key-name}/backup': '2016-10-01' + /keys/restore: '2016-10-01' + '/keys/{key-name}/{key-version}/encrypt': '2016-10-01' + '/keys/{key-name}/{key-version}/decrypt': '2016-10-01' + '/keys/{key-name}/{key-version}/sign': '2016-10-01' + '/keys/{key-name}/{key-version}/verify': '2016-10-01' + '/keys/{key-name}/{key-version}/wrapkey': '2016-10-01' + '/keys/{key-name}/{key-version}/unwrapkey': '2016-10-01' + /deletedkeys: '2016-10-01' + '/deletedkeys/{key-name}': '2016-10-01' + '/deletedkeys/{key-name}/recover': '2016-10-01' + '/secrets/{secret-name}': '2016-10-01' + '/secrets/{secret-name}/{secret-version}': '2016-10-01' + /secrets: '2016-10-01' + '/secrets/{secret-name}/versions': '2016-10-01' + /deletedsecrets: '2016-10-01' + '/deletedsecrets/{secret-name}': '2016-10-01' + '/deletedsecrets/{secret-name}/recover': '2016-10-01' + '/secrets/{secret-name}/backup': '2016-10-01' + /secrets/restore: '2016-10-01' + '/certificates/{certificate-name}': '2016-10-01' + /certificates/contacts: '2016-10-01' + /certificates/issuers: '2016-10-01' + '/certificates/issuers/{issuer-name}': '2016-10-01' + '/certificates/{certificate-name}/create': '2016-10-01' + '/certificates/{certificate-name}/import': '2016-10-01' + '/certificates/{certificate-name}/versions': '2016-10-01' + '/certificates/{certificate-name}/policy': '2016-10-01' + '/certificates/{certificate-name}/{certificate-version}': '2016-10-01' + '/certificates/{certificate-name}/pending': '2016-10-01' + '/certificates/{certificate-name}/pending/merge': '2016-10-01' + '/certificates/{certificate-name}/backup': '7.0' + /certificates/restore: '7.0' + /deletedcertificates: '2016-10-01' + '/deletedcertificates/{certificate-name}': '2016-10-01' + '/deletedcertificates/{certificate-name}/recover': '2016-10-01' + /storage: '2016-10-01' + /deletedstorage: '7.0' + '/deletedstorage/{storage-account-name}': '7.0' + '/deletedstorage/{storage-account-name}/recover': '7.0' + '/storage/{storage-account-name}/backup': '7.0' + /storage/restore: '7.0' + '/storage/{storage-account-name}': '2016-10-01' + '/storage/{storage-account-name}/regeneratekey': '2016-10-01' + '/storage/{storage-account-name}/sas': '2016-10-01' + '/deletedstorage/{storage-account-name}/sas': '7.0' + '/deletedstorage/{storage-account-name}/sas/{sas-definition-name}': '7.0' + '/deletedstorage/{storage-account-name}/sas/{sas-definition-name}/recover': '7.0' + '/storage/{storage-account-name}/sas/{sas-definition-name}': '2016-10-01' + '/subscriptions/{subscriptionId}/resources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces{workspaceName}/projects': 2017-05-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProvider}/{resourceTypeName}/{resourceName}/metrics': 2018-09-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}arpTable': 2015-05-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}routesTable': 2015-05-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}stats': 2015-05-01-preview + '/{operationStatusLink}': '2014-09-01' + '/workspaces/{workspaceId}/query': v1 + '/{scope}/providers/Microsoft.PolicyInsights/policyEvents/$metadata': '2018-04-04' + '/{scope}/providers/Microsoft.PolicyInsights/policyStates/$metadata': 2018-07-01-preview + '/{policyAssignmentId}': '2018-05-01' + '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister': '2018-05-01' + '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register': '2018-05-01' + '/subscriptions/{subscriptionId}/providers': '2018-05-01' + '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}': '2018-05-01' + '/{resourceId}': '2018-05-01' + '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}': '2018-05-01' + '/subscriptions/{subscriptionId}/tagNames/{tagName}': '2018-05-01' + '/subscriptions/{subscriptionId}/tagNames': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations': '2018-05-01' + '/providers/{resourceProviderNamespace}/operations': '2015-11-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}providers/Microsoft.Authorization/policyAssignments': '2015-11-01' + '/subscriptions/{subscriptionId}/locations': '2016-06-01' + /tenants: '2016-06-01' + '/{linkId}': '2016-09-01' + '/{applicationId}': '2018-06-01' + '/{applicationDefinitionId}': '2017-09-01' + '/{applianceId}': 2016-09-01-preview + '/{applianceDefinitionId}': 2016-09-01-preview + /docs/$count: 2017-11-11-Preview + /docs: 2017-11-11-Preview + /docs/search.post.search: 2017-11-11-Preview + '/docs(''{key}'')': 2017-11-11-Preview + /docs/search.suggest: 2017-11-11-Preview + /docs/search.post.suggest: 2017-11-11-Preview + /docs/search.index: 2017-11-11-Preview + /docs/search.autocomplete: 2017-11-11-Preview + /docs/search.post.autocomplete: 2017-11-11-Preview + '/datasources(''{dataSourceName}'')': 2017-11-11-Preview + /datasources: 2017-11-11-Preview + '/indexers(''{indexerName}'')/search.reset': 2017-11-11-Preview + '/indexers(''{indexerName}'')/search.run': 2017-11-11-Preview + '/indexers(''{indexerName}'')': 2017-11-11-Preview + /indexers: 2017-11-11-Preview + '/indexers(''{indexerName}'')/search.status': 2017-11-11-Preview + '/skillsets(''{skillsetName}'')': 2017-11-11-Preview + /skillsets: 2017-11-11-Preview + '/synonymmaps(''{synonymMapName}'')': 2017-11-11-Preview + /synonymmaps: 2017-11-11-Preview + /indexes: 2017-11-11-Preview + '/indexes(''{indexName}'')': 2017-11-11-Preview + '/indexes(''{indexName}'')/search.stats': 2017-11-11-Preview + '/indexes(''{indexName}'')/search.analyze': 2017-11-11-Preview + /servicestats: 2017-11-11-Preview + /$/GetClusterManifest: 6.4.0.36 + /$/GetClusterHealth: 6.4.0.36 + /$/GetClusterHealthChunk: 6.4.0.36 + /$/ReportClusterHealth: 6.4.0.36 + /$/GetProvisionedCodeVersions: 6.4.0.36 + /$/GetProvisionedConfigVersions: 6.4.0.36 + /$/GetUpgradeProgress: 6.4.0.36 + /$/GetClusterConfiguration: 6.4.0.36 + /$/GetClusterConfigurationUpgradeStatus: 6.4.0.36 + /$/GetUpgradeOrchestrationServiceState: 6.4.0.36 + /$/SetUpgradeOrchestrationServiceState: 6.4.0.36 + /$/Provision: 6.4.0.36 + /$/Unprovision: 6.4.0.36 + /$/RollbackUpgrade: 6.4.0.36 + /$/MoveToNextUpgradeDomain: 6.4.0.36 + /$/Upgrade: 6.4.0.36 + /$/StartClusterConfigurationUpgrade: 6.4.0.36 + /$/UpdateUpgrade: 6.4.0.36 + /$/GetAadMetadata: 6.4.0.36 + /Nodes: 6.4.0.36 + '/Nodes/{nodeName}': 6.4.0.36 + '/Nodes/{nodeName}/$/GetHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/ReportHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetLoadInformation': 6.4.0.36 + '/Nodes/{nodeName}/$/Deactivate': 6.4.0.36 + '/Nodes/{nodeName}/$/Activate': 6.4.0.36 + '/Nodes/{nodeName}/$/RemoveNodeState': 6.4.0.36 + '/Nodes/{nodeName}/$/Restart': 6.4.0.36 + /ApplicationTypes: 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}': 6.4.0.36 + /ApplicationTypes/$/Provision: 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/Unprovision': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetServiceTypes': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetServiceTypes/{serviceTypeName}': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetServiceManifest': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes/{serviceTypeName}': 6.4.0.36 + /Applications/$/Create: 6.4.0.36 + '/Applications/{applicationId}/$/Delete': 6.4.0.36 + '/Applications/{applicationId}/$/GetLoadInformation': 6.4.0.36 + /Applications: 6.4.0.36 + '/Applications/{applicationId}': 6.4.0.36 + '/Applications/{applicationId}/$/GetHealth': 6.4.0.36 + '/Applications/{applicationId}/$/ReportHealth': 6.4.0.36 + '/Applications/{applicationId}/$/Upgrade': 6.4.0.36 + '/Applications/{applicationId}/$/GetUpgradeProgress': 6.4.0.36 + '/Applications/{applicationId}/$/UpdateUpgrade': 6.4.0.36 + '/Applications/{applicationId}/$/MoveToNextUpgradeDomain': 6.4.0.36 + '/Applications/{applicationId}/$/RollbackUpgrade': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/ReportHealth': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetApplicationManifest': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices/{serviceId}': 6.4.0.36 + '/Services/{serviceId}/$/GetApplicationName': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices/$/Create': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices/$/CreateFromTemplate': 6.4.0.36 + '/Services/{serviceId}/$/Delete': 6.4.0.36 + '/Services/{serviceId}/$/Update': 6.4.0.36 + '/Services/{serviceId}/$/GetDescription': 6.4.0.36 + '/Services/{serviceId}/$/GetHealth': 6.4.0.36 + '/Services/{serviceId}/$/ReportHealth': 6.4.0.36 + '/Services/{serviceId}/$/ResolvePartition': 6.4.0.36 + '/Services/{serviceId}/$/GetPartitions': 6.4.0.36 + '/Partitions/{partitionId}': 6.4.0.36 + '/Partitions/{partitionId}/$/GetServiceName': 6.4.0.36 + '/Partitions/{partitionId}/$/GetHealth': 6.4.0.36 + '/Partitions/{partitionId}/$/ReportHealth': 6.4.0.36 + '/Partitions/{partitionId}/$/GetLoadInformation': 6.4.0.36 + '/Partitions/{partitionId}/$/ResetLoad': 6.4.0.36 + '/Partitions/{partitionId}/$/Recover': 6.4.0.36 + '/Services/$/{serviceId}/$/GetPartitions/$/Recover': 6.4.0.36 + /$/RecoverSystemPartitions: 6.4.0.36 + /$/RecoverAllPartitions: 6.4.0.36 + /$/CreateRepairTask: 6.4.0.36 + /$/CancelRepairTask: 6.4.0.36 + /$/DeleteRepairTask: 6.4.0.36 + /$/GetRepairTaskList: 6.4.0.36 + /$/ForceApproveRepairTask: 6.4.0.36 + /$/UpdateRepairTaskHealthPolicy: 6.4.0.36 + /$/UpdateRepairExecutionState: 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas': 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas/{replicaId}': 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetHealth': 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/ReportHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetReplicas': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetDetail': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Restart': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Delete': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/GetHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/ReportHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/DeployServicePackage': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/Restart': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/ContainerLogs': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/ContainerApi': 6.4.0.36 + /ComposeDeployments/$/Create: 6.4.0.36 + '/ComposeDeployments/{deploymentName}': 6.4.0.36 + /ComposeDeployments: 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/GetUpgradeProgress': 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/Delete': 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/Upgrade': 6.4.0.36 + /Tools/Chaos: 6.4.0.36 + /Tools/Chaos/$/Start: 6.4.0.36 + /Tools/Chaos/$/Stop: 6.4.0.36 + /Tools/Chaos/Events: 6.4.0.36 + /Tools/Chaos/Schedule: 6.4.0.36 + '/ImageStore/{contentPath}': 6.4.0.36 + /ImageStore: 6.4.0.36 + /ImageStore/$/Copy: 6.4.0.36 + /ImageStore/$/DeleteUploadSession: 6.4.0.36 + /ImageStore/$/CommitUploadSession: 6.4.0.36 + /ImageStore/$/GetUploadSession: 6.4.0.36 + '/ImageStore/{contentPath}/$/GetUploadSession': 6.4.0.36 + '/ImageStore/{contentPath}/$/UploadChunk': 6.4.0.36 + /$/InvokeInfrastructureCommand: 6.4.0.36 + /$/InvokeInfrastructureQuery: 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartDataLoss': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetDataLossProgress': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartQuorumLoss': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetQuorumLossProgress': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartRestart': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetRestartProgress': 6.4.0.36 + '/Faults/Nodes/{nodeName}/$/StartTransition/': 6.4.0.36 + '/Faults/Nodes/{nodeName}/$/GetTransitionProgress': 6.4.0.36 + /Faults/: 6.4.0.36 + /Faults/$/Cancel: 6.4.0.36 + /BackupRestore/BackupPolicies/$/Create: 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}/$/Delete': 6.4.0.36 + /BackupRestore/BackupPolicies: 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}': 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}/$/GetBackupEnabledEntities': 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}/$/Update': 6.4.0.36 + '/Applications/{applicationId}/$/EnableBackup': 6.4.0.36 + '/Applications/{applicationId}/$/DisableBackup': 6.4.0.36 + '/Applications/{applicationId}/$/GetBackupConfigurationInfo': 6.4.0.36 + '/Applications/{applicationId}/$/GetBackups': 6.4.0.36 + '/Applications/{applicationId}/$/SuspendBackup': 6.4.0.36 + '/Applications/{applicationId}/$/ResumeBackup': 6.4.0.36 + '/Services/{serviceId}/$/EnableBackup': 6.4.0.36 + '/Services/{serviceId}/$/DisableBackup': 6.4.0.36 + '/Services/{serviceId}/$/GetBackupConfigurationInfo': 6.4.0.36 + '/Services/{serviceId}/$/GetBackups': 6.4.0.36 + '/Services/{serviceId}/$/SuspendBackup': 6.4.0.36 + '/Services/{serviceId}/$/ResumeBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/EnableBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/DisableBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/GetBackupConfigurationInfo': 6.4.0.36 + '/Partitions/{partitionId}/$/GetBackups': 6.4.0.36 + '/Partitions/{partitionId}/$/SuspendBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/ResumeBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/Backup': 6.4.0.36 + '/Partitions/{partitionId}/$/GetBackupProgress': 6.4.0.36 + '/Partitions/{partitionId}/$/Restore': 6.4.0.36 + '/Partitions/{partitionId}/$/GetRestoreProgress': 6.4.0.36 + /BackupRestore/$/GetBackups: 6.4.0.36 + /Names/$/Create: 6.4.0.36 + '/Names/{nameId}': 6.4.0.36 + '/Names/{nameId}/$/GetSubNames': 6.4.0.36 + '/Names/{nameId}/$/GetProperties': 6.4.0.36 + '/Names/{nameId}/$/GetProperty': 6.4.0.36 + '/Names/{nameId}/$/GetProperties/$/SubmitBatch': 6.4.0.36 + /EventsStore/Cluster/Events: 6.4.0.36 + /EventsStore/Containers/Events: 6.4.0.36 + '/EventsStore/Nodes/{nodeName}/$/Events': 6.4.0.36 + /EventsStore/Nodes/Events: 6.4.0.36 + '/EventsStore/Applications/{applicationId}/$/Events': 6.4.0.36 + /EventsStore/Applications/Events: 6.4.0.36 + '/EventsStore/Services/{serviceId}/$/Events': 6.4.0.36 + /EventsStore/Services/Events: 6.4.0.36 + '/EventsStore/Partitions/{partitionId}/$/Events': 6.4.0.36 + /EventsStore/Partitions/Events: 6.4.0.36 + '/EventsStore/Partitions/{partitionId}/$/Replicas/{replicaId}/$/Events': 6.4.0.36 + '/EventsStore/Partitions/{partitionId}/$/Replicas/Events': 6.4.0.36 + '/EventsStore/CorrelatedEvents/{eventInstanceId}/$/Events': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/replicas': 6.3.0.9 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}': 6.4.0.36 + '/Resources/Volumes/{volumeResourceName}': 6.4.0.36 + /$/GetClusterVersion: 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/RollbackUpgrade': 6.4.0.36 + '/Resources/Secrets/{secretResourceName}': 6.4.0.36 + /Resources/Secrets: 6.4.0.36 + '/Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}': 6.4.0.36 + '/Resources/Secrets/{secretResourceName}/values': 6.4.0.36 + '/Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}/list_value': 6.4.0.36 + /Resources/Volumes: 6.4.0.36 + '/Resources/Networks/{networkResourceName}': 6.4.0.36 + /Resources/Networks: 6.4.0.36 + /Resources/Applications: 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}/CodePackages/{codePackageName}/Logs': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas': 6.4.0.36 + '/Resources/Gateways/{gatewayResourceName}': 6.4.0.36 + /Resources/Gateways: 6.4.0.36 + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values/{secretValueResourceName}/list_value': 2018-09-01-preview + /: '2018-11-09' + '/{filesystem}': '2018-11-09' + '/{filesystem}/{path}': '2018-11-09' + /availability: 2018-11-01-preview + /eventSchema: 2018-11-01-preview + /timeseries/modelSettings: 2018-11-01-preview + /timeseries/query: 2018-11-01-preview + /timeseries/instances: 2018-11-01-preview + /timeseries/instances/$batch: 2018-11-01-preview + /timeseries/instances/suggest: 2018-11-01-preview + /timeseries/instances/search: 2018-11-01-preview + /timeseries/types: 2018-11-01-preview + /timeseries/types/$batch: 2018-11-01-preview + /timeseries/hierarchies: 2018-11-01-preview + /timeseries/hierarchies/$batch: 2018-11-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/validateMoveResources': '2018-02-01' +``` diff --git a/profiles/definitions/latest-2019-04-29.md b/profiles/definitions/latest-2019-04-29.md new file mode 100644 index 000000000000..5af6d1095185 --- /dev/null +++ b/profiles/definitions/latest-2019-04-29.md @@ -0,0 +1,3562 @@ +# Latest Azure Profile + +> see https://aka.ms/autorest + +``` yaml +profiles: + latest-2019-04-29: + resources: + microsoft.netapp: + '2019-05-01': + - locations/checkFilePathAvailability + - locations/checkNameAvailability + - netAppAccounts + - netAppAccounts/capacityPools + - netAppAccounts/capacityPools/volumes + - netAppAccounts/capacityPools/volumes/mountTargets + - netAppAccounts/capacityPools/volumes/snapshots + - operations + microsoft.virtualmachineimages: + 2019-05-01-preview: + - imageTemplates + - imageTemplates/run + - imageTemplates/runOutputs + - operations + microsoft.containerservice: + '2019-04-30': + - openShiftManagedClusters + '2019-02-01': + - managedClusters + - managedClusters/accessProfiles/listCredential + - managedClusters/agentPools + - managedClusters/listClusterAdminCredential + - managedClusters/listClusterUserCredential + - managedClusters/resetAADProfile + - managedClusters/resetServicePrincipalProfile + - managedClusters/upgradeProfiles + - operations + '2017-09-30': + - locations/orchestrators + '2017-08-31': + - managedClusters/accessProfiles + '2017-07-01': + - containerServices + microsoft.batch: + '2019-04-01': + - batchAccounts + - batchAccounts/applications + - batchAccounts/applications/versions + - batchAccounts/applications/versions/activate + - batchAccounts/certificates + - batchAccounts/certificates/cancelDelete + - batchAccounts/listKeys + - batchAccounts/pools + - batchAccounts/pools/disableAutoScale + - batchAccounts/pools/stopResize + - batchAccounts/regenerateKeys + - batchAccounts/syncAutoStorageKeys + - locations/checkNameAvailability + - locations/quotas + - operations + microsoft.network: + '2019-04-01': + - checkFrontDoorNameAvailability + - frontDoors + - frontDoors/backendPools + - frontDoors/frontendEndpoints + - frontDoors/frontendEndpoints/disableHttps + - frontDoors/frontendEndpoints/enableHttps + - frontDoors/healthProbeSettings + - frontDoors/loadBalancingSettings + - frontDoors/purge + - frontDoors/routingRules + - frontDoors/validateCustomDomain + '2019-03-01': + - FrontDoorWebApplicationFirewallManagedRuleSets + - FrontDoorWebApplicationFirewallPolicies + '2019-02-01': + - ApplicationGatewayWebApplicationFirewallPolicies + - ExpressRoutePorts + - ExpressRoutePorts/links + - ExpressRoutePortsLocations + - applicationGatewayAvailableRequestHeaders + - applicationGatewayAvailableResponseHeaders + - applicationGatewayAvailableServerVariables + - applicationGatewayAvailableSslOptions + - applicationGatewayAvailableSslOptions/predefinedPolicies + - applicationGatewayAvailableWafRuleSets + - applicationGateways + - applicationGateways/backendhealth + - applicationGateways/getBackendHealthOnDemand + - applicationGateways/start + - applicationGateways/stop + - applicationSecurityGroups + - azureFirewallFqdnTags + - azureFirewalls + - bgpServiceCommunities + - connections + - connections/sharedkey + - connections/vpndeviceconfigurationscript + - ddosCustomPolicies + - ddosProtectionPlans + - expressRouteCircuits + - expressRouteCircuits/authorizations + - expressRouteCircuits/peerings + - expressRouteCircuits/peerings/arpTables + - expressRouteCircuits/peerings/connections + - expressRouteCircuits/peerings/peerConnections + - expressRouteCircuits/peerings/routeTables + - expressRouteCircuits/peerings/routeTablesSummary + - expressRouteCircuits/peerings/stats + - expressRouteCircuits/stats + - expressRouteCrossConnections + - expressRouteCrossConnections/peerings + - expressRouteCrossConnections/peerings/arpTables + - expressRouteCrossConnections/peerings/routeTables + - expressRouteCrossConnections/peerings/routeTablesSummary + - expressRouteGateways + - expressRouteGateways/expressRouteConnections + - expressRouteServiceProviders + - interfaceEndpoints + - loadBalancers + - loadBalancers/backendAddressPools + - loadBalancers/frontendIPConfigurations + - loadBalancers/inboundNatRules + - loadBalancers/loadBalancingRules + - loadBalancers/networkInterfaces + - loadBalancers/outboundRules + - loadBalancers/probes + - localNetworkGateways + - locations/CheckDnsNameAvailability + - locations/availableDelegations + - locations/usages + - locations/virtualNetworkAvailableEndpointServices + - natGateways + - networkInterfaces + - networkInterfaces/effectiveNetworkSecurityGroups + - networkInterfaces/effectiveRouteTable + - networkInterfaces/ipConfigurations + - networkInterfaces/loadBalancers + - networkInterfaces/tapConfigurations + - networkProfiles + - networkSecurityGroups + - networkSecurityGroups/defaultSecurityRules + - networkSecurityGroups/securityRules + - networkWatchers + - networkWatchers/availableProvidersList + - networkWatchers/azureReachabilityReport + - networkWatchers/configureFlowLog + - networkWatchers/connectionMonitors + - networkWatchers/connectionMonitors/query + - networkWatchers/connectionMonitors/start + - networkWatchers/connectionMonitors/stop + - networkWatchers/connectivityCheck + - networkWatchers/ipFlowVerify + - networkWatchers/networkConfigurationDiagnostic + - networkWatchers/nextHop + - networkWatchers/packetCaptures + - networkWatchers/packetCaptures/queryStatus + - networkWatchers/packetCaptures/stop + - networkWatchers/queryFlowLogStatus + - networkWatchers/queryTroubleshootResult + - networkWatchers/securityGroupView + - networkWatchers/topology + - networkWatchers/troubleshoot + - operations + - p2svpnGateways + - p2svpnGateways/generatevpnprofile + - publicIPAddresses + - publicIPPrefixes + - routeFilters + - routeFilters/routeFilterRules + - routeTables + - routeTables/routes + - serviceEndpointPolicies + - serviceEndpointPolicies/serviceEndpointPolicyDefinitions + - virtualHubs + - virtualHubs/hubVirtualNetworkConnections + - virtualNetworkGateways + - virtualNetworkGateways/connections + - virtualNetworkGateways/generatevpnclientpackage + - virtualNetworkGateways/generatevpnprofile + - virtualNetworkGateways/getAdvertisedRoutes + - virtualNetworkGateways/getBgpPeerStatus + - virtualNetworkGateways/getLearnedRoutes + - virtualNetworkGateways/getvpnclientipsecparameters + - virtualNetworkGateways/getvpnprofilepackageurl + - virtualNetworkGateways/reset + - virtualNetworkGateways/resetvpnclientsharedkey + - virtualNetworkGateways/setvpnclientipsecparameters + - virtualNetworkGateways/supportedvpndevices + - virtualNetworkTaps + - virtualNetworks + - virtualNetworks/CheckIPAddressAvailability + - virtualNetworks/subnets + - virtualNetworks/subnets/PrepareNetworkPolicies + - virtualNetworks/usages + - virtualNetworks/virtualNetworkPeerings + - virtualWans + - virtualWans/p2sVpnServerConfigurations + - virtualWans/supportedSecurityProviders + - virtualWans/vpnConfiguration + - vpnGateways + - vpnGateways/vpnConnections + - vpnSites + '2018-09-01': + - privateDnsZones + - privateDnsZones/ALL + - privateDnsZones/virtualNetworkLinks + '2018-05-01': + - dnsZones + - dnsZones/all + - dnsZones/recordsets + - getDnsResourceReference + '2018-04-01': + - checkTrafficManagerNameAvailability + - trafficManagerGeographicHierarchies + - trafficManagerUserMetricsKeys + - trafficmanagerprofiles + - trafficmanagerprofiles/heatMaps + '2015-06-15': + - expressRouteCircuits/arpTable + - expressRouteCircuits/routesTable + microsoft.capacity: + '2019-04-01': + - appliedReservations + - calculatePrice + - catalogs + - operations + - reservationOrders + - reservationOrders/merge + - reservationOrders/reservations + - reservationOrders/reservations/revisions + - reservationOrders/split + microsoft.resourcegraph: + '2019-04-01': + - operations + - resources + 2018-09-01-preview: + - resourceChangeDetails + - resourceChanges + microsoft.containerregistry: + '2019-04-01': + - registries/listBuildSourceUploadUrl + - registries/runs + - registries/runs/cancel + - registries/runs/listLogSasUrl + - registries/scheduleRun + - registries/tasks + - registries/tasks/listDetails + 2018-02-01-preview: + - registries/buildTasks + - registries/buildTasks/listSourceRepositoryProperties + - registries/buildTasks/steps + - registries/buildTasks/steps/listBuildArguments + - registries/builds + - registries/builds/cancel + - registries/builds/getLogLink + - registries/getBuildSourceUploadUrl + - registries/queueBuild + '2017-10-01': + - checkNameAvailability + - operations + - registries + - registries/importImage + - registries/listCredentials + - registries/listPolicies + - registries/listUsages + - registries/regenerateCredential + - registries/replications + - registries/updatePolicies + - registries/webhooks + - registries/webhooks/getCallbackConfig + - registries/webhooks/listEvents + - registries/webhooks/ping + 2016-06-27-preview: + - registries/getCredentials + - registries/regenerateCredentials + microsoft.devspaces: + '2019-04-01': + - controllers + - controllers/listConnectionDetails + - locations/checkContainerHostMapping + - operations + microsoft.storage: + '2019-04-01': + - checkNameAvailability + - locations/usages + - operations + - skus + - storageAccounts + - storageAccounts/ListAccountSas + - storageAccounts/ListServiceSas + - storageAccounts/blobServices + - storageAccounts/blobServices/containers + - storageAccounts/blobServices/containers/clearLegalHold + - storageAccounts/blobServices/containers/immutabilityPolicies + - storageAccounts/blobServices/containers/immutabilityPolicies/extend + - storageAccounts/blobServices/containers/immutabilityPolicies/lock + - storageAccounts/blobServices/containers/setLegalHold + - storageAccounts/failover + - storageAccounts/listKeys + - storageAccounts/managementPolicies + - storageAccounts/regenerateKey + - storageAccounts/revokeUserDelegationKeys + '2018-11-01': + - storageAccounts/blobServices/containers/lease + 2018-03-01-preview: + - usages + microsoft.compute: + '2019-04-01': + - skus + '2019-03-01': + - availabilitySets + - availabilitySets/vmSizes + - galleries + - galleries/images + - galleries/images/versions + - images + - locations/logAnalytics/getRequestRateByInterval + - locations/logAnalytics/getThrottledRequests + - locations/publishers + - locations/publishers/artifacttypes/offers + - locations/publishers/artifacttypes/offers/skus + - locations/publishers/artifacttypes/offers/skus/versions + - locations/publishers/artifacttypes/types + - locations/publishers/artifacttypes/types/versions + - locations/runCommands + - locations/usages + - locations/virtualMachines + - locations/vmSizes + - operations + - proximityPlacementGroups + - virtualMachineScaleSets + - virtualMachineScaleSets/convertToSinglePlacementGroup + - virtualMachineScaleSets/deallocate + - virtualMachineScaleSets/delete + - virtualMachineScaleSets/extensionRollingUpgrade + - virtualMachineScaleSets/extensions + - virtualMachineScaleSets/forceRecoveryServiceFabricPlatformUpdateDomainWalk + - virtualMachineScaleSets/instanceView + - virtualMachineScaleSets/manualupgrade + - virtualMachineScaleSets/osRollingUpgrade + - virtualMachineScaleSets/osUpgradeHistory + - virtualMachineScaleSets/performMaintenance + - virtualMachineScaleSets/poweroff + - virtualMachineScaleSets/redeploy + - virtualMachineScaleSets/reimage + - virtualMachineScaleSets/reimageall + - virtualMachineScaleSets/restart + - virtualMachineScaleSets/rollingUpgrades + - virtualMachineScaleSets/skus + - virtualMachineScaleSets/start + - virtualMachineScaleSets/virtualmachines + - virtualMachineScaleSets/virtualmachines/deallocate + - virtualMachineScaleSets/virtualmachines/instanceView + - virtualMachineScaleSets/virtualmachines/performMaintenance + - virtualMachineScaleSets/virtualmachines/poweroff + - virtualMachineScaleSets/virtualmachines/redeploy + - virtualMachineScaleSets/virtualmachines/reimage + - virtualMachineScaleSets/virtualmachines/reimageall + - virtualMachineScaleSets/virtualmachines/restart + - virtualMachineScaleSets/virtualmachines/runCommand + - virtualMachineScaleSets/virtualmachines/start + - virtualMachines + - virtualMachines/capture + - virtualMachines/convertToManagedDisks + - virtualMachines/deallocate + - virtualMachines/extensions + - virtualMachines/generalize + - virtualMachines/instanceView + - virtualMachines/performMaintenance + - virtualMachines/powerOff + - virtualMachines/redeploy + - virtualMachines/reimage + - virtualMachines/restart + - virtualMachines/runCommand + - virtualMachines/start + - virtualMachines/vmSizes + '2018-09-30': + - disks + - disks/beginGetAccess + - disks/endGetAccess + - snapshots + - snapshots/beginGetAccess + - snapshots/endGetAccess + '2017-03-30': + - virtualMachineScaleSets/networkInterfaces + - virtualMachineScaleSets/publicipaddresses + - virtualMachineScaleSets/virtualMachines/networkInterfaces + - virtualMachineScaleSets/virtualMachines/networkInterfaces/ipConfigurations + - virtualMachineScaleSets/virtualMachines/networkInterfaces/ipconfigurations/publicipaddresses + microsoft.devices: + 2019-03-22-preview: + - IotHubs + - IotHubs/IotHubKeys/listkeys + - IotHubs/IotHubStats + - IotHubs/certificates + - IotHubs/certificates/generateVerificationCode + - IotHubs/certificates/verify + - IotHubs/eventHubEndpoints/ConsumerGroups + - IotHubs/exportDevices + - IotHubs/failover + - IotHubs/importDevices + - IotHubs/jobs + - IotHubs/listkeys + - IotHubs/quotaMetrics + - IotHubs/routingEndpointsHealth + - IotHubs/skus + - checkNameAvailability + - operations + - usages + '2018-01-22': + - checkProvisioningServiceNameAvailability + - provisioningServices + - provisioningServices/certificates + - provisioningServices/certificates/generateVerificationCode + - provisioningServices/certificates/verify + - provisioningServices/keys/listkeys + - provisioningServices/listkeys + - provisioningServices/operationresults + - provisioningServices/skus + microsoft.databoxedge: + '2019-03-01': + - dataBoxEdgeDevices + - dataBoxEdgeDevices/alerts + - dataBoxEdgeDevices/bandwidthSchedules + - dataBoxEdgeDevices/downloadUpdates + - dataBoxEdgeDevices/getExtendedInformation + - dataBoxEdgeDevices/installUpdates + - dataBoxEdgeDevices/jobs + - dataBoxEdgeDevices/networkSettings + - dataBoxEdgeDevices/operationsStatus + - dataBoxEdgeDevices/orders + - dataBoxEdgeDevices/roles + - dataBoxEdgeDevices/scanForUpdates + - dataBoxEdgeDevices/securitySettings/update + - dataBoxEdgeDevices/shares + - dataBoxEdgeDevices/shares/refresh + - dataBoxEdgeDevices/storageAccountCredentials + - dataBoxEdgeDevices/triggers + - dataBoxEdgeDevices/updateSummary + - dataBoxEdgeDevices/uploadCertificate + - dataBoxEdgeDevices/users + - operations + microsoft.peering: + 2019-03-01-preview: + - legacyPeerings + - operations + - peerAsns + - peeringLocations + - peerings + microsoft.costmanagement: + 2019-03-01-preview: + - Forecast + - Query + - cloudConnectors + - dimensions + - externalBillingAccounts + - externalBillingAccounts/externalSubscriptions + - externalSubscriptions + - operations + - showbackRules + '2019-01-01': + - exports + - exports/run + - exports/runHistory + 2018-08-01-preview: + - alerts + - alerts/UpdateStatus + - connectors + - reports + - reports/run + - reports/runHistory + '2018-05-31': + - reportconfigs + microsoft.insights: + '2019-03-01': + - actionGroups + - actionGroups/subscribe + - metricBaselines + 2018-11-27-preview: + - vmInsightsOnboardingStatuses + 2018-06-17-preview: + - workbooks + 2018-05-01-preview: + - components/ProactiveDetectionConfigs + '2018-04-20': + - components/events + - components/metrics + - components/query + '2018-04-16': + - scheduledQueryRules + '2018-03-01': + - metricAlerts + - metricAlerts/status + '2018-01-01': + - metricDefinitions + - metrics + 2017-12-01-preview: + - metricNamespaces + 2017-11-01-preview: + - baseline + - calculatebaseline + '2017-10-01': + - components/pricingPlans + - listMigrationdate + - migrateToNewPricingModel + - rollbackToLegacyPricingModel + 2017-05-01-preview: + - diagnosticSettings + - diagnosticSettingsCategories + '2017-04-01': + - activityLogAlerts + '2016-03-01': + - alertrules + - alertrules/incidents + - logprofiles + '2015-05-01': + - components + - components/APIKeys + - components/Annotations + - components/DefaultWorkItemConfig + - components/WorkItemConfigs + - components/currentbillingfeatures + - components/exportconfiguration + - components/favorites + - components/featurecapabilities + - components/getavailablebillingfeatures + - components/item + - components/operations + - components/purge + - components/quotastatus + - components/syntheticmonitorlocations + - components/webtests + - operations + - webtests + '2015-04-01': + - autoscalesettings + - eventcategories + - eventtypes/values + microsoft.mixedreality: + 2019-02-28-preview: + - locations/checkNameAvailability + - operations + - spatialAnchorsAccounts + - spatialAnchorsAccounts/keys + microsoft.storagesync: + '2019-02-01': + - locations/checkNameAvailability + - operations + - storageSyncServices + - storageSyncServices/registeredServers + - storageSyncServices/registeredServers/triggerRollover + - storageSyncServices/syncGroups + - storageSyncServices/syncGroups/cloudEndpoints + - storageSyncServices/syncGroups/cloudEndpoints/postbackup + - storageSyncServices/syncGroups/cloudEndpoints/postrestore + - storageSyncServices/syncGroups/cloudEndpoints/prebackup + - storageSyncServices/syncGroups/cloudEndpoints/prerestore + - storageSyncServices/syncGroups/cloudEndpoints/restoreheartbeat + - storageSyncServices/syncGroups/serverEndpoints + - storageSyncServices/syncGroups/serverEndpoints/recallAction + - storageSyncServices/workflows + - storageSyncServices/workflows/abort + microsoft.eventgrid: + 2019-02-01-preview: + - domains + - domains/listKeys + - domains/regenerateKey + - domains/topics + - eventSubscriptions + - eventSubscriptions/getFullUrl + - eventTypes + - locations/eventSubscriptions + - locations/topicTypes/eventSubscriptions + - operations + - topicTypes + - topicTypes/eventSubscriptions + - topicTypes/eventTypes + - topics + - topics/listKeys + - topics/regenerateKey + microsoft.appconfiguration: + 2019-02-01-preview: + - checkNameAvailability + - configurationStores + - configurationStores/ListKeys + - configurationStores/RegenerateKey + - operations + microsoft.kusto: + '2019-01-21': + - clusters + - clusters/checkNameAvailability + - clusters/databases + - clusters/databases/addPrincipals + - clusters/databases/dataConnectionValidation + - clusters/databases/dataConnections + - clusters/databases/listPrincipals + - clusters/databases/removePrincipals + - clusters/skus + - clusters/start + - clusters/stop + - locations/checkNameAvailability + - operations + - skus + 2018-09-07-preview: + - clusters/databases/eventhubConnectionValidation + - clusters/databases/eventhubconnections + microsoft.apimanagement: + '2019-01-01': + - checkNameAvailability + - operations + - service + - service/apiVersionSets + - service/apis + - service/apis/diagnostics + - service/apis/issues + - service/apis/issues/attachments + - service/apis/issues/comments + - service/apis/operations + - service/apis/operations/policies + - service/apis/operations/tags + - service/apis/operationsByTags + - service/apis/policies + - service/apis/products + - service/apis/releases + - service/apis/revisions + - service/apis/schemas + - service/apis/tagDescriptions + - service/apis/tags + - service/apisByTags + - service/applynetworkconfigurationupdates + - service/authorizationServers + - service/backends + - service/backends/reconnect + - service/backup + - service/caches + - service/certificates + - service/diagnostics + - service/getssotoken + - service/groups + - service/groups/users + - service/identityProviders + - service/issues + - service/locations/networkstatus + - service/loggers + - service/networkstatus + - service/notifications + - service/notifications/recipientEmails + - service/notifications/recipientUsers + - service/openidConnectProviders + - service/policies + - service/policySnippets + - service/portalsettings + - service/products + - service/products/apis + - service/products/groups + - service/products/policies + - service/products/subscriptions + - service/products/tags + - service/productsByTags + - service/properties + - service/quotas + - service/quotas/periods + - service/regions + - service/reports + - service/restore + - service/skus + - service/subscriptions + - service/subscriptions/regeneratePrimaryKey + - service/subscriptions/regenerateSecondaryKey + - service/tagResources + - service/tags + - service/templates + - service/tenant + - service/tenant/deploy + - service/tenant/git + - service/tenant/regeneratePrimaryKey + - service/tenant/regenerateSecondaryKey + - service/tenant/save + - service/tenant/syncState + - service/tenant/validate + - service/users + - service/users/confirmations/send + - service/users/generateSsoUrl + - service/users/groups + - service/users/identities + - service/users/subscriptions + - service/users/token + 2018-06-01-preview: + - service/updatecertificate + - service/updatehostname + '2018-01-01': + - service/apis/diagnostics/loggers + - service/diagnostics/loggers + - service/identity + '2017-03-01': + - service/uploadcertificate + '2016-10-10': + - service/apis/operations/policy + - service/apis/policy + - service/managedeployments + - service/products/policy + microsoft.securityinsights: + 2019-01-01-preview: + - aggregations + - alertRules + - alertRules/actions + - bookmarks + - cases + - dataConnectors + - entities + - officeConsents + - operations + - settings + microsoft.consumption: + '2019-01-01': + - aggregatedcost + - balances + - budgets + - charges + - forecasts + - marketplaces + - operations + - pricesheets + - reservationDetails + - reservationRecommendations + - reservationSummaries + - tags + - usageDetails + 2018-11-01-preview: + - billingAccounts/billingProfiles/pricesheet/download + - billingAccounts/invoices/pricesheet/download + - credits + - events + - lots + '2018-10-01': + - tenants + '2018-06-30': + - costTags + microsoft.security: + 2019-01-01-preview: + - regulatoryComplianceStandards + - regulatoryComplianceStandards/regulatoryComplianceControls + - regulatoryComplianceStandards/regulatoryComplianceControls/regulatoryComplianceAssessments + '2019-01-01': + - alerts + - locations/alerts + - settings + '2018-06-01': + - pricings + 2017-08-01-preview: + - advancedThreatProtectionSettings + - autoProvisioningSettings + - compliances + - deviceSecurityGroups + - informationProtectionPolicies + - securityContacts + - workspaceSettings + 2015-06-01-preview: + - adaptiveNetworkHardenings + - allowedConnections + - discoveredSecuritySolutions + - externalSecuritySolutions + - jitNetworkAccessPolicies + - locations + - locations/ExternalSecuritySolutions + - locations/allowedConnections + - locations/discoveredSecuritySolutions + - locations/jitNetworkAccessPolicies + - locations/tasks + - locations/topologies + - operations + - tasks + - topologies + microsoft.enterpriseknowledgegraph: + '2018-12-03': + - operations + - services + microsoft.managedidentity: + '2018-11-30': + - operations + - userAssignedIdentities + microsoft.guestconfiguration: + '2018-11-20': + - guestConfigurationAssignments + - guestConfigurationAssignments/reports + - operations + microsoft.blueprint: + 2018-11-01-preview: + - blueprintAssignments + - blueprintAssignments/WhoIsBlueprint + - blueprintAssignments/assignmentOperations + - blueprints + - blueprints/artifacts + - blueprints/versions + - blueprints/versions/artifacts + 2017-11-11-preview: + - operations + microsoft.billing: + 2018-11-01-preview: + - billingAccounts + - billingAccounts/agreements + - billingAccounts/billingProfiles + - billingAccounts/billingProfiles/availableBalance + - billingAccounts/billingProfiles/billingSubscriptions + - billingAccounts/billingProfiles/invoiceSections + - billingAccounts/billingProfiles/invoices + - billingAccounts/billingProfiles/paymentMethods + - billingAccounts/billingProfiles/policies + - billingAccounts/billingProfiles/transactions + - billingAccounts/billingSubscriptions + - billingAccounts/departments + - billingAccounts/enrollmentAccounts + - billingAccounts/invoiceSections + - billingAccounts/invoiceSections/billingSubscriptions + - billingAccounts/invoiceSections/billingSubscriptions/transfer + - billingAccounts/invoiceSections/elevate + - billingAccounts/invoiceSections/initiateTransfer + - billingAccounts/invoiceSections/products + - billingAccounts/invoiceSections/products/transfer + - billingAccounts/invoiceSections/products/updateAutoRenew + - billingAccounts/invoiceSections/transactions + - billingAccounts/invoiceSections/transfers + - billingAccounts/invoices + - billingAccounts/invoices/pricesheet/download + - billingAccounts/listInvoiceSectionsWithCreateSubscriptionPermission + - billingAccounts/products + - billingAccounts/products/updateAutoRenew + - billingAccounts/transactions + - billingPermissions + - billingProperty + - billingRoleAssignments + - billingRoleDefinitions + - createBillingRoleAssignment + - operations + - transfers + - transfers/acceptTransfer + - transfers/declineTransfer + 2018-03-01-preview: + - billingPeriods + - enrollmentAccounts + - invoices + microsoft.web: + '2018-11-01': + - certificates + '2018-02-01': + - availableStacks + - billingMeters + - checknameavailability + - deletedSites + - deploymentLocations + - geoRegions + - hostingEnvironments + - hostingEnvironments/capacities + - hostingEnvironments/changeVirtualNetwork + - hostingEnvironments/detectors + - hostingEnvironments/diagnostics + - hostingEnvironments/inboundNetworkDependenciesEndpoints + - hostingEnvironments/metricdefinitions + - hostingEnvironments/metrics + - hostingEnvironments/multiRolePools + - hostingEnvironments/multiRolePools/instances/metricdefinitions + - hostingEnvironments/multiRolePools/instances/metrics + - hostingEnvironments/multiRolePools/metricdefinitions + - hostingEnvironments/multiRolePools/metrics + - hostingEnvironments/multiRolePools/skus + - hostingEnvironments/multiRolePools/usages + - hostingEnvironments/operations + - hostingEnvironments/outboundNetworkDependenciesEndpoints + - hostingEnvironments/reboot + - hostingEnvironments/recommendationHistory + - hostingEnvironments/recommendations + - hostingEnvironments/recommendations/disable + - hostingEnvironments/resume + - hostingEnvironments/serverfarms + - hostingEnvironments/sites + - hostingEnvironments/suspend + - hostingEnvironments/usages + - hostingEnvironments/workerPools + - hostingEnvironments/workerPools/instances/metricdefinitions + - hostingEnvironments/workerPools/instances/metrics + - hostingEnvironments/workerPools/metricdefinitions + - hostingEnvironments/workerPools/metrics + - hostingEnvironments/workerPools/skus + - hostingEnvironments/workerPools/usages + - listSitesAssignedToHostName + - operations + - premieraddonoffers + - publishingUsers + - recommendations + - recommendations/disable + - resourceHealthMetadata + - serverfarms + - serverfarms/capabilities + - serverfarms/hybridConnectionNamespaces/relays + - serverfarms/hybridConnectionNamespaces/relays/listKeys + - serverfarms/hybridConnectionNamespaces/relays/sites + - serverfarms/hybridConnectionPlanLimits + - serverfarms/hybridConnectionRelays + - serverfarms/metricdefinitions + - serverfarms/metrics + - serverfarms/restartSites + - serverfarms/sites + - serverfarms/skus + - serverfarms/usages + - serverfarms/virtualNetworkConnections + - serverfarms/virtualNetworkConnections/gateways + - serverfarms/virtualNetworkConnections/routes + - serverfarms/workers/reboot + - sites + - sites/analyzeCustomHostname + - sites/applySlotConfig + - sites/backup + - sites/backups + - sites/backups/list + - sites/backups/restore + - sites/config + - sites/config/list + - sites/config/snapshots + - sites/config/snapshots/recover + - sites/containerlogs + - sites/containerlogs/download + - sites/continuouswebjobs + - sites/continuouswebjobs/start + - sites/continuouswebjobs/stop + - sites/deployments + - sites/deployments/log + - sites/detectors + - sites/diagnostics + - sites/diagnostics/analyses + - sites/diagnostics/analyses/execute + - sites/diagnostics/detectors + - sites/diagnostics/detectors/execute + - sites/discoverbackup + - sites/domainOwnershipIdentifiers + - sites/extensions + - sites/extensions/log + - sites/functions + - sites/functions/listsecrets + - sites/functions/token + - sites/hostNameBindings + - sites/hybridConnectionNamespaces/relays + - sites/hybridConnectionNamespaces/relays/listKeys + - sites/hybridConnectionRelays + - sites/hybridconnection + - sites/instances + - sites/instances/extensions + - sites/instances/extensions/log + - sites/instances/processes + - sites/instances/processes/dump + - sites/instances/processes/modules + - sites/instances/processes/threads + - sites/iscloneable + - sites/listsyncfunctiontriggerstatus + - sites/metricdefinitions + - sites/metrics + - sites/migrate + - sites/migratemysql + - sites/networkConfig + - sites/networkFeatures + - sites/networkTrace + - sites/networkTraces + - sites/networkTraces/operationresults + - sites/newpassword + - sites/perfcounters + - sites/phplogging + - sites/premieraddons + - sites/privateAccess + - sites/processes + - sites/processes/dump + - sites/processes/modules + - sites/processes/threads + - sites/publicCertificates + - sites/publishxml + - sites/recommendationHistory + - sites/recommendations + - sites/recommendations/disable + - sites/resetSlotConfig + - sites/resourceHealthMetadata + - sites/restart + - sites/restoreFromBackupBlob + - sites/restoreFromDeletedApp + - sites/restoreSnapshot + - sites/siteextensions + - sites/slots + - sites/slots/analyzeCustomHostname + - sites/slots/applySlotConfig + - sites/slots/backup + - sites/slots/backups + - sites/slots/backups/list + - sites/slots/backups/restore + - sites/slots/config + - sites/slots/config/list + - sites/slots/config/snapshots + - sites/slots/config/snapshots/recover + - sites/slots/containerlogs + - sites/slots/containerlogs/download + - sites/slots/continuouswebjobs + - sites/slots/continuouswebjobs/start + - sites/slots/continuouswebjobs/stop + - sites/slots/deployments + - sites/slots/deployments/log + - sites/slots/detectors + - sites/slots/diagnostics + - sites/slots/diagnostics/analyses + - sites/slots/diagnostics/analyses/execute + - sites/slots/diagnostics/detectors + - sites/slots/diagnostics/detectors/execute + - sites/slots/discoverbackup + - sites/slots/domainOwnershipIdentifiers + - sites/slots/extensions + - sites/slots/extensions/log + - sites/slots/functions + - sites/slots/functions/listsecrets + - sites/slots/functions/token + - sites/slots/hostNameBindings + - sites/slots/hybridConnectionNamespaces/relays + - sites/slots/hybridConnectionNamespaces/relays/listKeys + - sites/slots/hybridConnectionRelays + - sites/slots/hybridconnection + - sites/slots/instances + - sites/slots/instances/extensions + - sites/slots/instances/extensions/log + - sites/slots/instances/processes + - sites/slots/instances/processes/dump + - sites/slots/instances/processes/modules + - sites/slots/instances/processes/threads + - sites/slots/iscloneable + - sites/slots/listsyncfunctiontriggerstatus + - sites/slots/metricdefinitions + - sites/slots/metrics + - sites/slots/migratemysql + - sites/slots/networkConfig + - sites/slots/networkFeatures + - sites/slots/networkTrace + - sites/slots/networkTraces + - sites/slots/networkTraces/operationresults + - sites/slots/newpassword + - sites/slots/perfcounters + - sites/slots/phplogging + - sites/slots/premieraddons + - sites/slots/privateAccess + - sites/slots/processes + - sites/slots/processes/dump + - sites/slots/processes/modules + - sites/slots/processes/threads + - sites/slots/publicCertificates + - sites/slots/publishxml + - sites/slots/resetSlotConfig + - sites/slots/resourceHealthMetadata + - sites/slots/restart + - sites/slots/restoreFromBackupBlob + - sites/slots/restoreFromDeletedApp + - sites/slots/restoreSnapshot + - sites/slots/siteextensions + - sites/slots/slotsdiffs + - sites/slots/slotsswap + - sites/slots/snapshots + - sites/slots/snapshotsdr + - sites/slots/sourcecontrols + - sites/slots/start + - sites/slots/startNetworkTrace + - sites/slots/stop + - sites/slots/stopNetworkTrace + - sites/slots/sync + - sites/slots/syncfunctiontriggers + - sites/slots/triggeredwebjobs + - sites/slots/triggeredwebjobs/history + - sites/slots/triggeredwebjobs/run + - sites/slots/usages + - sites/slots/virtualNetworkConnections + - sites/slots/virtualNetworkConnections/gateways + - sites/slots/webjobs + - sites/slotsdiffs + - sites/slotsswap + - sites/snapshots + - sites/snapshotsdr + - sites/sourcecontrols + - sites/start + - sites/startNetworkTrace + - sites/stop + - sites/stopNetworkTrace + - sites/sync + - sites/syncfunctiontriggers + - sites/triggeredwebjobs + - sites/triggeredwebjobs/history + - sites/triggeredwebjobs/run + - sites/usages + - sites/virtualNetworkConnections + - sites/virtualNetworkConnections/gateways + - sites/webjobs + - skus + - sourcecontrols + - validate + - validateContainerSettings + - verifyHostingEnvironmentVnet + '2016-08-01': + - sites/recover + - sites/slots/recover + '2015-08-01': + - classicMobileServices + - csrs + - hostingEnvironments/webhostingplans + - ishostingenvironmentnameavailable + - managedHostingEnvironments + - managedHostingEnvironments/capacities + - managedHostingEnvironments/operations + - managedHostingEnvironments/serverfarms + - managedHostingEnvironments/sites + - managedHostingEnvironments/webhostingplans + - publishingCredentials + - serverfarms/operationresults + - sites/instances/deployments + - sites/operationresults + - sites/slots/instances/deployments + - sites/slots/operationresults + 2015-08-01-preview: + - connections + - connections/confirmConsentCode + - connections/listConnectionKeys + - connections/listConsentLinks + - locations/managedApis + microsoft.subscription: + 2018-11-01-preview: + - createSubscription + - operations + - subscriptionOperations + 2017-11-01-preview: + - subscriptionDefinitions + microsoft.hardwaresecuritymodules: + 2018-10-31-preview: + - dedicatedHSMs + microsoft.labservices: + '2018-10-15': + - labaccounts + - labaccounts/createLab + - labaccounts/galleryimages + - labaccounts/getRegionalAvailability + - labaccounts/labs + - labaccounts/labs/addUsers + - labaccounts/labs/environmentsettings + - labaccounts/labs/environmentsettings/claimAny + - labaccounts/labs/environmentsettings/environments + - labaccounts/labs/environmentsettings/environments/claim + - labaccounts/labs/environmentsettings/environments/resetPassword + - labaccounts/labs/environmentsettings/environments/start + - labaccounts/labs/environmentsettings/environments/stop + - labaccounts/labs/environmentsettings/publish + - labaccounts/labs/environmentsettings/start + - labaccounts/labs/environmentsettings/stop + - labaccounts/labs/register + - labaccounts/labs/users + - locations/operations + - operations + - users/getEnvironment + - users/getOperationBatchStatus + - users/getOperationStatus + - users/getPersonalPreferences + - users/listEnvironments + - users/listLabs + - users/register + - users/resetPassword + - users/startEnvironment + - users/stopEnvironment + microsoft.containerinstance: + '2018-10-01': + - containerGroups + - containerGroups/containers/exec + - containerGroups/containers/logs + - containerGroups/restart + - containerGroups/start + - containerGroups/stop + - locations/cachedImages + - locations/capabilities + - locations/usages + - operations + - serviceAssociationLinks + microsoft.signalrservice: + '2018-10-01': + - SignalR/listKeys + - SignalR/regenerateKey + - locations/checkNameAvailability + - locations/usages + - operations + - signalR + - signalR/restart + microsoft.devtestlab: + '2018-09-15': + - labs + - labs/artifactsources + - labs/artifactsources/armtemplates + - labs/artifactsources/artifacts + - labs/artifactsources/artifacts/generateArmTemplate + - labs/claimAnyVm + - labs/costs + - labs/createEnvironment + - labs/customimages + - labs/exportResourceUsage + - labs/formulas + - labs/galleryimages + - labs/generateUploadUri + - labs/importVirtualMachine + - labs/listVhds + - labs/notificationchannels + - labs/notificationchannels/notify + - labs/policysets/evaluatePolicies + - labs/policysets/policies + - labs/schedules + - labs/schedules/execute + - labs/schedules/listApplicable + - labs/servicerunners + - labs/users + - labs/users/disks + - labs/users/disks/attach + - labs/users/disks/detach + - labs/users/environments + - labs/users/secrets + - labs/users/servicefabrics + - labs/users/servicefabrics/listApplicableSchedules + - labs/users/servicefabrics/schedules + - labs/users/servicefabrics/schedules/execute + - labs/users/servicefabrics/start + - labs/users/servicefabrics/stop + - labs/virtualmachines + - labs/virtualmachines/addDataDisk + - labs/virtualmachines/applyArtifacts + - labs/virtualmachines/claim + - labs/virtualmachines/detachDataDisk + - labs/virtualmachines/getRdpFileContents + - labs/virtualmachines/listApplicableSchedules + - labs/virtualmachines/redeploy + - labs/virtualmachines/resize + - labs/virtualmachines/restart + - labs/virtualmachines/schedules + - labs/virtualmachines/schedules/execute + - labs/virtualmachines/start + - labs/virtualmachines/stop + - labs/virtualmachines/transferDisks + - labs/virtualmachines/unClaim + - labs/virtualnetworks + - locations/operations + - operations + - schedules + - schedules/execute + - schedules/retarget + 2015-05-21-preview: + - labs/costinsights + - labs/costinsights/refreshData + - labs/costs/refreshData + microsoft.engagementfabric: + 2018-09-01-preview: + - Accounts + - Accounts/Channels + - Accounts/listChannelTypes + - Accounts/listKeys + - Accounts/regenerateKey + - checkNameAvailability + - operations + - skus + microsoft.deploymentmanager: + 2018-09-01-preview: + - artifactSources + - operations + - rollouts + - rollouts/cancel + - rollouts/restart + - serviceTopologies + - serviceTopologies/services + - serviceTopologies/services/serviceUnits + - steps + microsoft.authorization: + 2018-09-01-preview: + - roleAssignments + 2018-07-01-preview: + - denyAssignments + '2018-05-01': + - policyAssignments + - policyDefinitions + - policySetDefinitions + 2018-01-01-preview: + - permissions + - providerOperations + - roleDefinitions + '2016-09-01': + - locks + - operations + '2015-07-01': + - classicAdministrators + - elevateAccess + microsoft.servicefabricmesh: + 2018-09-01-preview: + - applications + - applications/services + - applications/services/replicas + - applications/services/replicas/codePackages/logs + - gateways + - networks + - operations + - secrets + - secrets/values + - volumes + microsoft.iotcentral: + '2018-09-01': + - IoTApps + - appTemplates + - checkNameAvailability + - checkSubdomainAvailability + - operations + microsoft.workloadmonitor: + 2018-08-31-preview: + - components + - componentsSummary + - monitorInstances + - monitorInstancesSummary + - monitors + - notificationSettings + - operations + microsoft.healthcareapis: + 2018-08-20-preview: + - checkNameAvailability + - locations/moveResourcesStatus + - locations/operationresults + - moveResources + - operations + - services + microsoft.timeseriesinsights: + 2018-08-15-preview: + - environments + - environments/accessPolicies + - environments/eventSources + - environments/referenceDataSets + - operations + microsoft.datamigration: + 2018-07-15-preview: + - locations/checkNameAvailability + - locations/usages + - operations + - services + - services/checkNameAvailability + - services/checkStatus + - services/projects + - services/projects/files + - services/projects/files/read + - services/projects/files/readwrite + - services/projects/tasks + - services/projects/tasks/cancel + - services/projects/tasks/command + - services/skus + - services/start + - services/stop + - skus + microsoft.botservice: + '2018-07-12': + - botServices + - botServices/Connections/listWithSecrets + - botServices/channels + - botServices/channels/listChannelWithKeys + - botServices/connections + - checkEnterpriseChannelNameAvailability + - checkNameAvailability + - enterpriseChannels + - listAuthServiceProviders + - operations + microsoft.recoveryservices: + '2018-07-10': + - operations + - vaults/replicationAlertSettings + - vaults/replicationEvents + - vaults/replicationFabrics + - vaults/replicationFabrics/checkConsistency + - vaults/replicationFabrics/migratetoaad + - vaults/replicationFabrics/reassociateGateway + - vaults/replicationFabrics/remove + - vaults/replicationFabrics/renewCertificate + - vaults/replicationFabrics/replicationLogicalNetworks + - vaults/replicationFabrics/replicationNetworks + - vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings + - vaults/replicationFabrics/replicationProtectionContainers + - vaults/replicationFabrics/replicationProtectionContainers/discoverProtectableItem + - vaults/replicationFabrics/replicationProtectionContainers/remove + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/migrate + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/migrationRecoveryPoints + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/testMigrate + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/testMigrateCleanup + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/ResolveHealthErrors + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/addDisks + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/applyRecoveryPoint + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/failoverCommit + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/plannedFailover + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/reProtect + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/recoveryPoints + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/remove + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/removeDisks + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/repairReplication + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/targetComputeSizes + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/testFailover + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/testFailoverCleanup + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/unplannedFailover + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/updateMobilityService + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings/remove + - vaults/replicationFabrics/replicationProtectionContainers/switchprotection + - vaults/replicationFabrics/replicationRecoveryServicesProviders + - vaults/replicationFabrics/replicationRecoveryServicesProviders/refreshProvider + - vaults/replicationFabrics/replicationRecoveryServicesProviders/remove + - vaults/replicationFabrics/replicationStorageClassifications + - vaults/replicationFabrics/replicationStorageClassifications/replicationStorageClassificationMappings + - vaults/replicationFabrics/replicationvCenters + - vaults/replicationJobs + - vaults/replicationJobs/cancel + - vaults/replicationJobs/restart + - vaults/replicationJobs/resume + - vaults/replicationMigrationItems + - vaults/replicationNetworkMappings + - vaults/replicationNetworks + - vaults/replicationPolicies + - vaults/replicationProtectedItems + - vaults/replicationProtectionContainerMappings + - vaults/replicationProtectionContainers + - vaults/replicationRecoveryPlans + - vaults/replicationRecoveryPlans/failoverCommit + - vaults/replicationRecoveryPlans/plannedFailover + - vaults/replicationRecoveryPlans/reProtect + - vaults/replicationRecoveryPlans/testFailover + - vaults/replicationRecoveryPlans/testFailoverCleanup + - vaults/replicationRecoveryPlans/unplannedFailover + - vaults/replicationRecoveryServicesProviders + - vaults/replicationStorageClassificationMappings + - vaults/replicationStorageClassifications + - vaults/replicationSupportedOperatingSystems + - vaults/replicationVaultHealth + - vaults/replicationVaultHealth/refresh + - vaults/replicationvCenters + '2017-07-01': + - locations/backupPreValidateProtection + - locations/backupStatus + - locations/backupValidateFeatures + - vaults/backupFabrics/backupProtectionIntent + - vaults/backupJobs + - vaults/backupJobsExport + - vaults/backupPolicies + - vaults/backupProtectedItems + - vaults/backupProtectionIntents + - vaults/backupUsageSummaries + - vaults/backupValidateOperation + '2016-12-01': + - vaults/backupEngines + - vaults/backupFabrics/operationResults + - vaults/backupFabrics/protectableContainers + - vaults/backupFabrics/protectionContainers + - vaults/backupFabrics/protectionContainers/inquire + - vaults/backupFabrics/protectionContainers/items + - vaults/backupFabrics/protectionContainers/operationResults + - vaults/backupFabrics/protectionContainers/protectedItems + - vaults/backupFabrics/protectionContainers/protectedItems/backup + - vaults/backupFabrics/protectionContainers/protectedItems/operationResults + - vaults/backupFabrics/protectionContainers/protectedItems/operationsStatus + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/provisionInstantItemRecovery + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/restore + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/revokeInstantItemRecovery + - vaults/backupFabrics/refreshContainers + - vaults/backupJobs/cancel + - vaults/backupJobs/operationResults + - vaults/backupOperationResults + - vaults/backupOperations + - vaults/backupPolicies/operationResults + - vaults/backupPolicies/operations + - vaults/backupProtectableItems + - vaults/backupProtectionContainers + - vaults/backupSecurityPIN + - vaults/backupconfig + - vaults/backupstorageconfig + '2016-06-01': + - locations/checkNameAvailability + - vaults + - vaults/certificates + - vaults/extendedInformation + - vaults/registeredIdentities + - vaults/replicationUsages + - vaults/usages + microsoft.logic: + 2018-07-01-preview: + - integrationAccounts + - integrationAccounts/agreements + - integrationAccounts/agreements/listContentCallbackUrl + - integrationAccounts/assemblies + - integrationAccounts/assemblies/listContentCallbackUrl + - integrationAccounts/batchConfigurations + - integrationAccounts/certificates + - integrationAccounts/listCallbackUrl + - integrationAccounts/listKeyVaultKeys + - integrationAccounts/logTrackingEvents + - integrationAccounts/maps + - integrationAccounts/maps/listContentCallbackUrl + - integrationAccounts/partners + - integrationAccounts/partners/listContentCallbackUrl + - integrationAccounts/regenerateAccessKey + - integrationAccounts/schemas + - integrationAccounts/schemas/listContentCallbackUrl + - integrationAccounts/sessions + - locations/workflows/validate + - operations + - workflows + - workflows/disable + - workflows/enable + - workflows/generateUpgradedDefinition + - workflows/listCallbackUrl + - workflows/listSwagger + - workflows/move + - workflows/regenerateAccessKey + - workflows/runs + - workflows/runs/actions + - workflows/runs/actions/listExpressionTraces + - workflows/runs/actions/repetitions + - workflows/runs/actions/repetitions/listExpressionTraces + - workflows/runs/actions/repetitions/requestHistories + - workflows/runs/actions/requestHistories + - workflows/runs/actions/scopeRepetitions + - workflows/runs/cancel + - workflows/runs/operations + - workflows/triggers + - workflows/triggers/histories + - workflows/triggers/histories/resubmit + - workflows/triggers/listCallbackUrl + - workflows/triggers/reset + - workflows/triggers/run + - workflows/triggers/schemas + - workflows/triggers/setState + - workflows/validate + - workflows/versions + - workflows/versions/triggers/listCallbackUrl + 2015-02-01-preview: + - workflows/accessKeys + - workflows/accessKeys/list + - workflows/accessKeys/regenerate + - workflows/run + microsoft.media: + '2018-07-01': + - locations/checkNameAvailability + - mediaServices/accountFilters + - mediaServices/assets + - mediaServices/assets/assetFilters + - mediaServices/assets/getEncryptionKey + - mediaServices/assets/listContainerSas + - mediaServices/assets/listStreamingLocators + - mediaServices/contentKeyPolicies + - mediaServices/contentKeyPolicies/getPolicyPropertiesWithSecrets + - mediaServices/streamingLocators + - mediaServices/streamingLocators/listContentKeys + - mediaServices/streamingLocators/listPaths + - mediaServices/streamingPolicies + - mediaServices/transforms + - mediaServices/transforms/jobs + - mediaServices/transforms/jobs/cancelJob + - mediaservices + - mediaservices/liveEvents + - mediaservices/liveEvents/liveOutputs + - mediaservices/liveEvents/reset + - mediaservices/liveEvents/start + - mediaservices/liveEvents/stop + - mediaservices/streamingEndpoints + - mediaservices/streamingEndpoints/scale + - mediaservices/streamingEndpoints/start + - mediaservices/streamingEndpoints/stop + - mediaservices/syncStorageKeys + - operations + '2015-10-01': + - CheckNameAvailability + - mediaservices/listKeys + - mediaservices/regenerateKey + microsoft.policyinsights: + 2018-07-01-preview: + - operations + - policyStates/queryResults + - policyStates/summarize + - policyTrackedResources/queryResults + - remediations + - remediations/cancel + - remediations/listDeployments + '2018-04-04': + - policyEvents/queryResults + microsoft.automation: + '2018-06-30': + - automationAccounts/python2Packages + - automationAccounts/runbooks + - automationAccounts/runbooks/content + - automationAccounts/runbooks/draft + - automationAccounts/runbooks/draft/resume + - automationAccounts/runbooks/draft/stop + - automationAccounts/runbooks/draft/streams + - automationAccounts/runbooks/draft/suspend + - automationAccounts/runbooks/publish + '2018-01-15': + - automationAccounts/agentRegistrationInformation + - automationAccounts/compilationjobs + - automationAccounts/compilationjobs/streams + - automationAccounts/nodeConfigurations + - automationAccounts/nodecounts + - automationAccounts/nodes + - automationAccounts/nodes/reports + - automationAccounts/nodes/reports/content + 2017-05-15-preview: + - automationAccounts/jobs + - automationAccounts/jobs/output + - automationAccounts/jobs/resume + - automationAccounts/jobs/runbookContent + - automationAccounts/jobs/stop + - automationAccounts/jobs/streams + - automationAccounts/jobs/suspend + - automationAccounts/softwareUpdateConfigurationMachineRuns + - automationAccounts/softwareUpdateConfigurationRuns + - automationAccounts/softwareUpdateConfigurations + - automationAccounts/sourceControls + - automationAccounts/sourceControls/sourceControlSyncJobs + - automationAccounts/sourceControls/sourceControlSyncJobs/streams + '2015-10-31': + - automationAccounts + - automationAccounts/certificates + - automationAccounts/configurations + - automationAccounts/configurations/content + - automationAccounts/connectionTypes + - automationAccounts/connections + - automationAccounts/credentials + - automationAccounts/hybridRunbookWorkerGroups + - automationAccounts/jobSchedules + - automationAccounts/linkedWorkspace + - automationAccounts/listKeys + - automationAccounts/modules + - automationAccounts/modules/activities + - automationAccounts/modules/objectDataTypes/fields + - automationAccounts/modules/types/fields + - automationAccounts/objectDataTypes/fields + - automationAccounts/schedules + - automationAccounts/statistics + - automationAccounts/usages + - automationAccounts/variables + - automationAccounts/watchers + - automationAccounts/watchers/start + - automationAccounts/watchers/stop + - automationAccounts/webhooks + - operations + microsoft.datafactory: + '2018-06-01': + - factories + - factories/datasets + - factories/getDataPlaneAccess + - factories/getFeatureValue + - factories/getGitHubAccessToken + - factories/integrationRuntimes + - factories/integrationRuntimes/getConnectionInfo + - factories/integrationRuntimes/getObjectMetadata + - factories/integrationRuntimes/getStatus + - factories/integrationRuntimes/linkedIntegrationRuntime + - factories/integrationRuntimes/listAuthKeys + - factories/integrationRuntimes/monitoringData + - factories/integrationRuntimes/nodes + - factories/integrationRuntimes/nodes/ipAddress + - factories/integrationRuntimes/refreshObjectMetadata + - factories/integrationRuntimes/regenerateAuthKey + - factories/integrationRuntimes/removeLinks + - factories/integrationRuntimes/start + - factories/integrationRuntimes/stop + - factories/integrationRuntimes/syncCredentials + - factories/integrationRuntimes/upgrade + - factories/linkedservices + - factories/pipelineruns + - factories/pipelineruns/cancel + - factories/pipelineruns/queryActivityruns + - factories/pipelines + - factories/pipelines/createRun + - factories/queryPipelineRuns + - factories/queryTriggerRuns + - factories/triggers + - factories/triggers/rerunTriggers + - factories/triggers/rerunTriggers/cancel + - factories/triggers/rerunTriggers/start + - factories/triggers/rerunTriggers/stop + - factories/triggers/start + - factories/triggers/stop + - locations/configureFactoryRepo + - locations/getFeatureValue + - operations + 2017-09-01-preview: + - factories/cancelpipelinerun + - factories/integrationRuntimes/removeNode + - factories/pipelineruns/activityruns + - factories/triggers/triggerruns + microsoft.dbformariadb: + '2018-06-01': + - checkNameAvailability + - locations/performanceTiers + - operations + - servers/configurations + - servers/databases + - servers/logFiles + - servers/replicas + - servers/restart + - servers/securityAlertPolicies + 2018-06-01-preview: + - servers + - servers/firewallRules + - servers/virtualNetworkRules + microsoft.sql: + 2018-06-01-preview: + - managedInstances/databases/currentSensitivityLabels + - managedInstances/databases/recommendedSensitivityLabels + - managedInstances/databases/schemas/tables/columns/sensitivityLabels + - managedInstances/databases/schemas/tables/columns/sensitivityLabels/disable + - managedInstances/databases/schemas/tables/columns/sensitivityLabels/enable + - managedInstances/vulnerabilityAssessments + - servers/databases/securityAlertPolicies + - servers/vulnerabilityAssessments + 2017-10-01-preview: + - locations/capabilities + - locations/instanceFailoverGroups + - locations/instanceFailoverGroups/failover + - locations/instanceFailoverGroups/forceFailoverAllowDataLoss + - managedInstances/databases/vulnerabilityAssessments + - managedInstances/databases/vulnerabilityAssessments/rules/baselines + - managedInstances/databases/vulnerabilityAssessments/scans + - managedInstances/databases/vulnerabilityAssessments/scans/export + - managedInstances/databases/vulnerabilityAssessments/scans/initiateScan + - managedInstances/encryptionProtector + - managedInstances/keys + - managedInstances/recoverableDatabases + - managedInstances/tdeCertificates + - servers/databases + - servers/databases/backupShortTermRetentionPolicies + - servers/databases/move + - servers/databases/operations + - servers/databases/operations/cancel + - servers/databases/pause + - servers/databases/resume + - servers/databases/upgradeDataWarehouse + - servers/databases/vulnerabilityAssessments/scans + - servers/databases/vulnerabilityAssessments/scans/export + - servers/databases/vulnerabilityAssessments/scans/initiateScan + - servers/elasticPools + - servers/elasticPools/databases + - servers/elasticPools/operations + - servers/elasticPools/operations/cancel + - servers/tdeCertificates + 2017-03-01-preview: + - locations/longTermRetentionBackups + - locations/longTermRetentionServers/longTermRetentionBackups + - locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups + - locations/managedDatabaseRestoreAzureAsyncOperation/completeRestore + - managedInstances/databases + - managedInstances/databases/backupShortTermRetentionPolicies + - managedInstances/databases/securityAlertPolicies + - managedInstances/restorableDroppedDatabases + - managedInstances/restorableDroppedDatabases/backupShortTermRetentionPolicies + - managedInstances/securityAlertPolicies + - servers/auditingSettings + - servers/automaticTuning + - servers/databases/auditingSettings + - servers/databases/backupLongTermRetentionPolicies + - servers/databases/currentSensitivityLabels + - servers/databases/dataWarehouseUserActivities + - servers/databases/export + - servers/databases/extendedAuditingSettings + - servers/databases/recommendedSensitivityLabels + - servers/databases/restorePoints + - servers/databases/schemas/tables/columns/sensitivityLabels + - servers/databases/schemas/tables/columns/sensitivityLabels/disable + - servers/databases/schemas/tables/columns/sensitivityLabels/enable + - servers/databases/vulnerabilityAssessments + - servers/databases/vulnerabilityAssessments/rules/baselines + - servers/dnsAliases + - servers/dnsAliases/acquire + - servers/extendedAuditingSettings + - servers/jobAgents + - servers/jobAgents/credentials + - servers/jobAgents/executions + - servers/jobAgents/jobs + - servers/jobAgents/jobs/executions + - servers/jobAgents/jobs/executions/cancel + - servers/jobAgents/jobs/executions/steps + - servers/jobAgents/jobs/executions/steps/targets + - servers/jobAgents/jobs/executions/targets + - servers/jobAgents/jobs/start + - servers/jobAgents/jobs/steps + - servers/jobAgents/jobs/versions + - servers/jobAgents/jobs/versions/steps + - servers/jobAgents/targetGroups + - servers/securityAlertPolicies + 2015-05-01-preview: + - instancePools/managedInstances + - locations/syncDatabaseIds + - locations/usages + - managedInstances + - operations + - servers + - servers/advisors + - servers/databases/advisors + - servers/databases/advisors/recommendedActions + - servers/databases/automaticTuning + - servers/databases/syncGroups + - servers/databases/syncGroups/cancelSync + - servers/databases/syncGroups/hubSchemas + - servers/databases/syncGroups/logs + - servers/databases/syncGroups/refreshHubSchema + - servers/databases/syncGroups/syncMembers + - servers/databases/syncGroups/syncMembers/refreshSchema + - servers/databases/syncGroups/syncMembers/schemas + - servers/databases/syncGroups/triggerSync + - servers/encryptionProtector + - servers/failoverGroups + - servers/failoverGroups/failover + - servers/failoverGroups/forceFailoverAllowDataLoss + - servers/firewallRules + - servers/keys + - servers/syncAgents + - servers/syncAgents/generateKey + - servers/syncAgents/linkedDatabases + - servers/virtualNetworkRules + - virtualClusters + '2014-04-01': + - checkNameAvailability + - servers/administrators + - servers/auditingPolicies + - servers/backupLongTermRetentionVaults + - servers/communicationLinks + - servers/connectionPolicies + - servers/databases/auditingPolicies + - servers/databases/connectionPolicies + - servers/databases/dataMaskingPolicies + - servers/databases/dataMaskingPolicies/rules + - servers/databases/extensions + - servers/databases/geoBackupPolicies + - servers/databases/metricDefinitions + - servers/databases/metrics + - servers/databases/replicationLinks + - servers/databases/replicationLinks/failover + - servers/databases/replicationLinks/forceFailoverAllowDataLoss + - servers/databases/serviceTierAdvisors + - servers/databases/topQueries + - servers/databases/topQueries/queryText + - servers/databases/topQueries/statistics + - servers/databases/transparentDataEncryption + - servers/databases/transparentDataEncryption/operationResults + - servers/databases/usages + - servers/disasterRecoveryConfiguration + - servers/disasterRecoveryConfiguration/failover + - servers/disasterRecoveryConfiguration/forceFailoverAllowDataLoss + - servers/elasticPools/elasticPoolActivity + - servers/elasticPools/elasticPoolDatabaseActivity + - servers/elasticPools/metricDefinitions + - servers/elasticPools/metrics + - servers/import + - servers/recommendedElasticPools + - servers/recommendedElasticPools/databases + - servers/recommendedElasticPools/metrics + - servers/recoverableDatabases + - servers/restorableDroppedDatabases + - servers/serviceObjectives + - servers/usages + microsoft.managedservices: + 2018-06-01-preview: + - operations + - registrationAssignments + - registrationDefinitions + microsoft.hdinsight: + 2018-06-01-preview: + - clusters + - clusters/applications + - clusters/configurations + - clusters/executeScriptActions + - clusters/extensions + - clusters/getGatewaySettings + - clusters/roles/resize + - clusters/rotatediskencryptionkey + - clusters/scriptActions + - clusters/scriptExecutionHistory + - clusters/scriptExecutionHistory/promote + - clusters/updateGatewaySettings + - locations/usages + - operations + 2015-03-01-preview: + - locations/capabilities + microsoft.solutions: + '2018-06-01': + - applicationDefinitions + - applications + 2016-09-01-preview: + - applianceDefinitions + - appliances + - operations + microsoft.alertsmanagement: + '2018-05-05': + - alerts + - alerts/changestate + - alerts/history + - alertsSummary + - operations + - smartGroups + - smartGroups/history + 2018-05-05-preview: + - smartGroups/changeState + microsoft.batchai: + '2018-05-01': + - locations/usages + - operations + - workspaces + - workspaces/clusters + - workspaces/clusters/listRemoteLoginInformation + - workspaces/experiments + - workspaces/experiments/jobs + - workspaces/experiments/jobs/listOutputFiles + - workspaces/experiments/jobs/listRemoteLoginInformation + - workspaces/experiments/jobs/terminate + - workspaces/fileServers + '2018-03-01': + - clusters + - clusters/listRemoteLoginInformation + - fileServers + - jobs + - jobs/listOutputFiles + - jobs/listRemoteLoginInformation + - jobs/terminate + microsoft.resources: + '2018-05-01': + - deployments + - deployments/cancel + - deployments/exportTemplate + - deployments/operations + - deployments/validate + - operations + '2016-09-01': + - links + microsoft.maps: + '2018-05-01': + - accounts + - accounts/listKeys + - accounts/regenerateKey + - operations + microsoft.serialconsole: + '2018-05-01': + - consoleServices + - consoleServices/disableConsole + - consoleServices/enableConsole + - operations + microsoft.databricks: + '2018-04-01': + - operations + - workspaces + microsoft.addons: + '2018-03-01': + - operations + - supportProviders/listSupportPlanInfo + - supportProviders/supportPlanTypes + microsoft.machinelearningservices: + 2018-03-01-preview: + - operations + - workspaces + - workspaces/computes + - workspaces/computes/listKeys + - workspaces/listKeys + - workspaces/resyncKeys + microsoft.management: + 2018-03-01-preview: + - checkNameAvailability + - getEntities + - managementGroups + - managementGroups/subscriptions + - operations + - startTenantBackfill + - tenantBackfillStatus + microsoft.cache: + '2018-03-01': + - CheckNameAvailability + - Redis + - Redis/export + - Redis/firewallRules + - Redis/forceReboot + - Redis/import + - Redis/linkedServers + - Redis/listKeys + - Redis/listUpgradeNotifications + - Redis/patchSchedules + - Redis/regenerateKey + - operations + microsoft.windowsiot: + 2018-02-16-preview: + - checkDeviceServiceNameAvailability + - deviceServices + - operations + microsoft.keyvault: + '2018-02-14': + - checkNameAvailability + - deletedVaults + - locations/deletedVaults + - locations/deletedVaults/purge + - operations + - vaults + - vaults/accessPolicies + microsoft.migrate: + '2018-02-02': + - locations/assessmentOptions + - locations/checkNameAvailability + - operations + - projects + - projects/assessments + - projects/groups + - projects/groups/assessments + - projects/groups/assessments/assessedMachines + - projects/groups/assessments/downloadUrl + - projects/keys + - projects/machines + microsoft.managementpartner: + '2018-02-01': + - operations + - partners + microsoft.servicefabric: + '2018-02-01': + - clusters + - locations/clusterVersions + - locations/environments/clusterVersions + - operations + 2017-07-01-preview: + - clusters/applicationTypes + - clusters/applicationTypes/versions + - clusters/applications + - clusters/applications/services + microsoft.domainregistration: + '2018-02-01': + - checkDomainAvailability + - domains + - domains/domainOwnershipIdentifiers + - domains/renew + - generateSsoRequest + - listDomainRecommendations + - operations + - topLevelDomains + - topLevelDomains/listAgreements + '2015-08-01': + - domains/operationresults + - validateDomainRegistrationInformation + microsoft.certificateregistration: + '2018-02-01': + - certificateOrders + - certificateOrders/certificates + - certificateOrders/reissue + - certificateOrders/renew + - certificateOrders/resendEmail + - certificateOrders/resendRequestEmails + - certificateOrders/retrieveCertificateActions + - certificateOrders/retrieveEmailHistory + - certificateOrders/retrieveSiteSeal + - certificateOrders/verifyDomainOwnership + - operations + - validateCertificateRegistrationInformation + microsoft.databox: + '2018-01-01': + - jobs + - jobs/bookShipmentPickUp + - jobs/cancel + - jobs/listCredentials + - locations/availableSkus + - locations/validateAddress + - operations + microsoft.eventhub: + 2018-01-01-preview: + - availableClusters + - clusters + - clusters/namespaces + - clusters/quotaConfiguration + - namespaces + - namespaces/ipfilterrules + - namespaces/networkRuleSets + - namespaces/virtualnetworkrules + - operations + '2017-04-01': + - CheckNameAvailability + - namespaces/AuthorizationRules + - namespaces/AuthorizationRules/listKeys + - namespaces/AuthorizationRules/regenerateKeys + - namespaces/disasterRecoveryConfigs + - namespaces/disasterRecoveryConfigs/AuthorizationRules + - namespaces/disasterRecoveryConfigs/AuthorizationRules/listKeys + - namespaces/disasterRecoveryConfigs/breakPairing + - namespaces/disasterRecoveryConfigs/failover + - namespaces/eventhubs + - namespaces/eventhubs/authorizationRules + - namespaces/eventhubs/authorizationRules/ListKeys + - namespaces/eventhubs/authorizationRules/regenerateKeys + - namespaces/eventhubs/consumergroups + - namespaces/messagingplan + - sku/regions + '2014-09-01': + - CheckNamespaceAvailability + microsoft.servicebus: + 2018-01-01-preview: + - namespaces + - namespaces/ipfilterrules + - namespaces/networkrulesets + - namespaces/virtualnetworkrules + - operations + '2017-04-01': + - CheckNameAvailability + - namespaces/AuthorizationRules + - namespaces/AuthorizationRules/listKeys + - namespaces/AuthorizationRules/regenerateKeys + - namespaces/disasterRecoveryConfigs + - namespaces/disasterRecoveryConfigs/AuthorizationRules + - namespaces/disasterRecoveryConfigs/AuthorizationRules/listKeys + - namespaces/disasterRecoveryConfigs/breakPairing + - namespaces/disasterRecoveryConfigs/failover + - namespaces/eventhubs + - namespaces/migrate + - namespaces/migrationConfigurations + - namespaces/migrationConfigurations/revert + - namespaces/migrationConfigurations/upgrade + - namespaces/queues + - namespaces/queues/authorizationRules + - namespaces/queues/authorizationRules/ListKeys + - namespaces/queues/authorizationRules/regenerateKeys + - namespaces/topics + - namespaces/topics/authorizationRules + - namespaces/topics/authorizationRules/ListKeys + - namespaces/topics/authorizationRules/regenerateKeys + - namespaces/topics/subscriptions + - namespaces/topics/subscriptions/rules + - premiumMessagingRegions + - sku/regions + microsoft.dbforpostgresql: + 2017-12-01-preview: + - servers + - servers/Replicas + - servers/databases + - servers/firewallRules + '2017-12-01': + - checkNameAvailability + - locations/performanceTiers + - operations + - servers/configurations + - servers/logFiles + - servers/restart + - servers/securityAlertPolicies + - servers/virtualNetworkRules + microsoft.dbformysql: + '2017-12-01': + - checkNameAvailability + - locations/performanceTiers + - operations + - servers + - servers/configurations + - servers/databases + - servers/firewallRules + - servers/logFiles + - servers/replicas + - servers/restart + - servers/securityAlertPolicies + - servers/virtualNetworkRules + microsoft.hanaonazure: + 2017-11-03-preview: + - hanaInstances + - hanaInstances/monitoring + - hanaInstances/restart + - operations + microsoft.cdn: + '2017-10-12': + - checkNameAvailability + - checkResourceUsage + - edgenodes + - operations + - profiles + - profiles/checkResourceUsage + - profiles/endpoints + - profiles/endpoints/checkResourceUsage + - profiles/endpoints/customDomains + - profiles/endpoints/customDomains/disableCustomHttps + - profiles/endpoints/customDomains/enableCustomHttps + - profiles/endpoints/load + - profiles/endpoints/origins + - profiles/endpoints/purge + - profiles/endpoints/start + - profiles/endpoints/stop + - profiles/endpoints/validateCustomDomain + - profiles/generateSsoUri + - profiles/getSupportedOptimizationTypes + - validateProbe + microsoft.iotspaces: + 2017-10-01-preview: + - Graph + - checkNameAvailability + - operations + microsoft.powerbidedicated: + '2017-10-01': + - capacities + - capacities/resume + - capacities/skus + - capacities/suspend + - locations/checkNameAvailability + - operations + - skus + microsoft.operationalinsights: + '2017-10-01': + - workspaces/query + 2015-11-01-preview: + - operations + - workspaces + - workspaces/dataSources + - workspaces/features/clientGroups + - workspaces/features/clientGroups/members + - workspaces/features/clientGroups/membersCount + - workspaces/features/generateMap + - workspaces/features/machineGroups + - workspaces/features/machines + - workspaces/features/machines/connections + - workspaces/features/machines/liveness + - workspaces/features/machines/machineGroups + - workspaces/features/machines/ports + - workspaces/features/machines/ports/acceptingProcesses + - workspaces/features/machines/ports/connections + - workspaces/features/machines/ports/liveness + - workspaces/features/machines/processes + - workspaces/features/machines/processes/acceptingPorts + - workspaces/features/machines/processes/connections + - workspaces/features/machines/processes/liveness + - workspaces/features/summaries + - workspaces/intelligencePacks + - workspaces/intelligencePacks/Disable + - workspaces/intelligencePacks/Enable + - workspaces/linkedServices + - workspaces/managementGroups + - workspaces/sharedKeys + - workspaces/usages + '2015-03-20': + - linkTargets + - workspaces/gateways + - workspaces/listKeys + - workspaces/operations + - workspaces/purge + - workspaces/regenerateSharedKey + - workspaces/savedSearches + - workspaces/savedSearches/results + - workspaces/schema + - workspaces/search + - workspaces/storageInsightConfigs + microsoft.machinelearningcompute: + 2017-08-01-preview: + - operationalizationClusters + - operationalizationClusters/checkSystemServicesUpdatesAvailable + - operationalizationClusters/listKeys + - operationalizationClusters/updateSystemServices + - operations + 2017-06-01-preview: + - operationalizationClusters/checkUpdate + - operationalizationClusters/updateSystem + microsoft.analysisservices: + '2017-08-01': + - locations/checkNameAvailability + - locations/operationresults + - locations/operationstatuses + - operations + - servers + - servers/dissociateGateway + - servers/listGatewayStatus + - servers/resume + - servers/skus + - servers/suspend + - skus + microsoft.resourcehealth: + '2017-07-01': + - availabilityStatuses + - childAvailabilityStatuses + - childResources + - operations + microsoft.storsimple: + '2017-06-01': + - managers + - managers/accessControlRecords + - managers/alerts + - managers/bandwidthSettings + - managers/clearAlerts + - managers/cloudApplianceConfigurations + - managers/configureDevice + - managers/devices + - managers/devices/alertSettings + - managers/devices/authorizeForServiceEncryptionKeyRollover + - managers/devices/backupPolicies + - managers/devices/backupPolicies/backup + - managers/devices/backupPolicies/schedules + - managers/devices/backups + - managers/devices/backups/elements/clone + - managers/devices/backups/restore + - managers/devices/deactivate + - managers/devices/failover + - managers/devices/hardwareComponentGroups + - managers/devices/hardwareComponentGroups/changeControllerPowerState + - managers/devices/installUpdates + - managers/devices/jobs + - managers/devices/jobs/cancel + - managers/devices/listFailoverSets + - managers/devices/listFailoverTargets + - managers/devices/metrics + - managers/devices/metricsDefinitions + - managers/devices/networkSettings + - managers/devices/publicEncryptionKey + - managers/devices/scanForUpdates + - managers/devices/securitySettings + - managers/devices/securitySettings/syncRemoteManagementCertificate + - managers/devices/sendTestAlertEmail + - managers/devices/timeSettings + - managers/devices/updateSummary + - managers/devices/volumeContainers + - managers/devices/volumeContainers/metrics + - managers/devices/volumeContainers/metricsDefinitions + - managers/devices/volumeContainers/volumes + - managers/devices/volumeContainers/volumes/metrics + - managers/devices/volumeContainers/volumes/metricsDefinitions + - managers/devices/volumes + - managers/encryptionSettings + - managers/extendedInformation + - managers/features + - managers/jobs + - managers/listActivationKey + - managers/listPublicEncryptionKey + - managers/metrics + - managers/metricsDefinitions + - managers/provisionCloudAppliance + - managers/regenerateActivationKey + - managers/storageAccountCredentials + - operations + '2016-10-01': + - managers/backups + - managers/certificates + - managers/devices/backupScheduleGroups + - managers/devices/chapSettings + - managers/devices/disks + - managers/devices/download + - managers/devices/failoverTargets + - managers/devices/fileservers + - managers/devices/fileservers/backup + - managers/devices/fileservers/metrics + - managers/devices/fileservers/metricsDefinitions + - managers/devices/fileservers/shares + - managers/devices/fileservers/shares/metrics + - managers/devices/fileservers/shares/metricsDefinitions + - managers/devices/install + - managers/devices/iscsiservers + - managers/devices/iscsiservers/backup + - managers/devices/iscsiservers/disks + - managers/devices/iscsiservers/disks/metrics + - managers/devices/iscsiservers/disks/metricsDefinitions + - managers/devices/iscsiservers/metrics + - managers/devices/iscsiservers/metricsDefinitions + - managers/devices/securitySettings/update + - managers/devices/shares + - managers/fileservers + - managers/getEncryptionKey + - managers/iscsiservers + - managers/storageDomains + microsoft.aad: + '2017-06-01': + - domainServices + - operations + microsoft.azurestack: + '2017-06-01': + - operations + - registrations + - registrations/customerSubscriptions + - registrations/getactivationkey + - registrations/products + - registrations/products/listDetails + microsoft.machinelearningexperimentation: + 2017-05-01-preview: + - accounts + - accounts/workspaces + - accounts/workspaces/projects + - operations + microsoft.customerinsights: + '2017-04-26': + - hubs + - hubs/authorizationPolicies + - hubs/authorizationPolicies/regeneratePrimaryKey + - hubs/authorizationPolicies/regenerateSecondaryKey + - hubs/connectors + - hubs/connectors/mappings + - hubs/images + - hubs/interactions + - hubs/interactions/suggestRelationshipLinks + - hubs/kpi + - hubs/kpi/reprocess + - hubs/links + - hubs/predictions + - hubs/predictions/getModelStatus + - hubs/predictions/getTrainingResults + - hubs/predictions/modelStatus + - hubs/profiles + - hubs/profiles/getEnrichingKpis + - hubs/relationshipLinks + - hubs/relationships + - hubs/roleAssignments + - hubs/roles + - hubs/views + - hubs/widgetTypes + - operations + microsoft.advisor: + '2017-04-19': + - configurations + - generateRecommendations + - operations + - recommendations + - recommendations/suppressions + - suppressions + microsoft.cognitiveservices: + '2017-04-18': + - accounts + - accounts/listKeys + - accounts/regenerateKey + - accounts/skus + - accounts/usages + - locations/checkSkuAvailability + - operations + - skus + microsoft.relay: + '2017-04-01': + - checkNameAvailability + - namespaces + - namespaces/authorizationRules + - namespaces/authorizationRules/listKeys + - namespaces/authorizationRules/regenerateKeys + - namespaces/hybridConnections + - namespaces/hybridConnections/authorizationRules + - namespaces/hybridConnections/authorizationRules/listKeys + - namespaces/hybridConnections/authorizationRules/regenerateKeys + - namespaces/wcfRelays + - namespaces/wcfRelays/authorizationRules + - namespaces/wcfRelays/authorizationRules/listKeys + - namespaces/wcfRelays/authorizationRules/regenerateKeys + - operations + microsoft.notificationhubs: + '2017-04-01': + - checkNamespaceAvailability + - namespaces + - namespaces/AuthorizationRules + - namespaces/AuthorizationRules/listKeys + - namespaces/AuthorizationRules/regenerateKeys + - namespaces/checkNotificationHubAvailability + - namespaces/notificationHubs + - namespaces/notificationHubs/AuthorizationRules + - namespaces/notificationHubs/AuthorizationRules/listKeys + - namespaces/notificationHubs/AuthorizationRules/regenerateKeys + - namespaces/notificationHubs/debugsend + - namespaces/notificationHubs/pnsCredentials + - operations + microsoft.sqlvirtualmachine: + 2017-03-01-preview: + - operations + - sqlVirtualMachineGroups + - sqlVirtualMachineGroups/availabilityGroupListeners + - sqlVirtualMachines + microsoft.machinelearning: + '2017-01-01': + - operations + - webServices + - webServices/CreateRegionalBlob + - webServices/listKeys + 2016-05-01-preview: + - commitmentPlans + - commitmentPlans/commitmentAssociations + - commitmentPlans/commitmentAssociations/move + - commitmentPlans/usageHistory + - skus + '2016-04-01': + - workspaces + - workspaces/listWorkspaceKeys + - workspaces/resyncStorageKeys + microsoft.datalakeanalytics: + '2016-11-01': + - accounts + - accounts/computePolicies + - accounts/dataLakeStoreAccounts + - accounts/firewallRules + - accounts/storageAccounts + - accounts/storageAccounts/containers + - accounts/storageAccounts/containers/listSasTokens + - locations/capability + - locations/checkNameAvailability + - operations + microsoft.importexport: + '2016-11-01': + - jobs + - jobs/listBitLockerKeys + - locations + - operations + microsoft.datalakestore: + '2016-11-01': + - accounts + - accounts/enableKeyVault + - accounts/firewallRules + - accounts/trustedIdProviders + - accounts/virtualNetworkRules + - locations/capability + - locations/checkNameAvailability + - operations + microsoft.hybriddata: + '2016-06-01': + - dataManagers + - dataManagers/dataServices + - dataManagers/dataServices/jobDefinitions + - dataManagers/dataServices/jobDefinitions/jobs + - dataManagers/dataServices/jobDefinitions/jobs/cancel + - dataManagers/dataServices/jobDefinitions/jobs/resume + - dataManagers/dataServices/jobDefinitions/run + - dataManagers/dataServices/jobs + - dataManagers/dataStoreTypes + - dataManagers/dataStores + - dataManagers/jobDefinitions + - dataManagers/jobs + - dataManagers/publicKeys + - operations + microsoft.datacatalog: + '2016-03-30': + - catalogs + - operations + microsoft.scheduler: + '2016-03-01': + - jobCollections + - jobCollections/disable + - jobCollections/enable + - jobCollections/jobs + - jobCollections/jobs/history + - jobCollections/jobs/run + microsoft.streamanalytics: + '2016-03-01': + - locations/quotas + - operations + - streamingjobs + - streamingjobs/functions + - streamingjobs/functions/RetrieveDefaultDefinition + - streamingjobs/functions/test + - streamingjobs/inputs + - streamingjobs/inputs/test + - streamingjobs/outputs + - streamingjobs/outputs/test + - streamingjobs/start + - streamingjobs/stop + - streamingjobs/transformations + microsoft.powerbi: + '2016-01-29': + - locations/checkNameAvailability + - operations + - workspaceCollections + - workspaceCollections/listKeys + - workspaceCollections/regenerateKey + - workspaceCollections/workspaces + microsoft.features: + '2015-12-01': + - features + - operations + - providers/features + - providers/features/register + microsoft.operationsmanagement: + 2015-11-01-preview: + - ManagementAssociations + - ManagementConfigurations + - operations + - solutions + microsoft.search: + '2015-08-19': + - checkNameAvailability + - operations + - searchServices + - searchServices/createQueryKey + - searchServices/deleteQueryKey + - searchServices/listAdminKeys + - searchServices/listQueryKeys + - searchServices/regenerateAdminKey + microsoft.marketplaceordering: + '2015-06-01': + - agreements + - agreements/offers/plans + - agreements/offers/plans/cancel + - agreements/offers/plans/sign + - offerTypes/publishers/offers/plans/agreements + - operations + microsoft.commerce: + 2015-06-01-preview: + - RateCard + - UsageAggregates + microsoft.documentdb: + '2015-04-08': + - databaseAccountNames + - databaseAccounts + - databaseAccounts/apis/databases + - databaseAccounts/apis/databases/collections + - databaseAccounts/apis/databases/containers + - databaseAccounts/apis/databases/graphs + - databaseAccounts/apis/keyspaces + - databaseAccounts/apis/keyspaces/tables + - databaseAccounts/apis/tables + - databaseAccounts/databases/collections/metricDefinitions + - databaseAccounts/databases/collections/metrics + - databaseAccounts/databases/collections/partitionKeyRangeId/metrics + - databaseAccounts/databases/collections/partitions + - databaseAccounts/databases/collections/usages + - databaseAccounts/databases/metricDefinitions + - databaseAccounts/databases/metrics + - databaseAccounts/databases/usages + - databaseAccounts/failoverPriorityChange + - databaseAccounts/listConnectionStrings + - databaseAccounts/listKeys + - databaseAccounts/metricDefinitions + - databaseAccounts/metrics + - databaseAccounts/offlineRegion + - databaseAccounts/onlineRegion + - databaseAccounts/percentile + - databaseAccounts/readonlykeys + - databaseAccounts/regenerateKey + - databaseAccounts/region/databases/collections/metrics + - databaseAccounts/region/databases/collections/partitionKeyRangeId/metrics + - databaseAccounts/region/databases/collections/partitions + - databaseAccounts/region/metrics + - databaseAccounts/sourceRegion/targetRegion/percentile + - databaseAccounts/targetRegion/percentile + - databaseAccounts/usages + - operations + microsoft.intune: + 2015-01-14-preview: + - locations/flaggedUsers + - locations/users/devices/wipe + 2015-01-14-privatepreview: + - locations + - locations/androidPolicies + - locations/androidPolicies/apps + - locations/androidPolicies/groups + - locations/apps + - locations/flaggedUsers/flaggedEnrolledApps + - locations/iosPolicies + - locations/iosPolicies/apps + - locations/iosPolicies/groups + - locations/operationResults + - locations/statuses + - locations/users/devices + microsoft.visualstudio: + 2014-04-01-preview: + - account + - account/extension + - account/project + - account/project/subContainers/status + - checkNameAvailability + - operations + microsoft.adhybridhealthservice: + '2014-01-01': + - addsservices + - addsservices/addomainservicemembers + - addsservices/addsservicemembers + - addsservices/alerts + - addsservices/configuration + - addsservices/dimensions + - addsservices/features/userpreference + - addsservices/forestsummary + - addsservices/metricmetadata + - addsservices/metricmetadata/groups + - addsservices/metrics/groups + - addsservices/metrics/groups/average + - addsservices/metrics/groups/sum + - addsservices/replicationdetails + - addsservices/replicationstatus + - addsservices/replicationsummary + - addsservices/servicemembers + - addsservices/servicemembers/alerts + - addsservices/servicemembers/credentials + - configuration + - operations + - reports/IsDevOps + - service/servicemembers/connectors + - services + - services/TenantWhitelisting + - services/alerts + - services/checkServiceFeatureAvailibility + - services/exporterrors + - services/exportstatus + - services/feedbacktype/alertfeedback + - services/feedbacktype/feedback + - services/metricmetadata + - services/metricmetadata/groups + - services/metrics/groups + - services/metrics/groups/average + - services/metrics/groups/sum + - services/monitoringconfiguration + - services/monitoringconfigurations + - services/reports/blobUris + - services/reports/details + - services/reports/generateBlobUri + - services/servicemembers + - services/servicemembers/alerts + - services/servicemembers/credentials + - services/servicemembers/data + - services/servicemembers/datafreshness + - services/servicemembers/exportstatus + - services/servicemembers/globalconfiguration + - services/servicemembers/metrics + - services/servicemembers/metrics/groups + - services/servicemembers/serviceconfiguration + operations: + /policies: '2017-03-01' + '/policies/{policyId}': '2017-03-01' + /policySnippets: '2017-03-01' + /regions: '2017-03-01' + /apis: '2017-03-01' + '/apis/{apiId}': '2017-03-01' + '/apis/{apiId}/operations': '2017-03-01' + '/apis/{apiId}/operations/{operationId}': '2017-03-01' + '/apis/{apiId}/operations/{operationId}/policies': '2017-03-01' + '/apis/{apiId}/operations/{operationId}/policies/{policyId}': '2017-03-01' + '/apis/{apiId}/products': '2017-03-01' + '/apis/{apiId}/policies': '2017-03-01' + '/apis/{apiId}/policies/{policyId}': '2017-03-01' + '/apis/{apiId}/schemas': '2017-03-01' + '/apis/{apiId}/schemas/{schemaId}': '2017-03-01' + /authorizationServers: '2017-03-01' + '/authorizationServers/{authsid}': '2017-03-01' + /backends: '2017-03-01' + '/backends/{backendid}': '2017-03-01' + /certificates: 2018-12-01.8.0 + '/certificates/{certificateId}': '2017-03-01' + /templates: '2017-03-01' + '/templates/{templateName}': '2017-03-01' + /groups: '2017-03-01' + '/groups/{groupId}': '2017-03-01' + '/groups/{groupId}/users': '2017-03-01' + '/groups/{groupId}/users/{uid}': '2017-03-01' + /identityProviders: '2017-03-01' + '/identityProviders/{identityProviderName}': '2017-03-01' + /loggers: '2017-03-01' + '/loggers/{loggerid}': '2017-03-01' + /openidConnectProviders: '2017-03-01' + '/openidConnectProviders/{opid}': '2017-03-01' + /portalsettings/signin: '2017-03-01' + /portalsettings/signup: '2017-03-01' + /portalsettings/delegation: '2017-03-01' + /products: '2017-03-01' + '/products/{productId}': '2017-03-01' + '/products/{productId}/apis': '2017-03-01' + '/products/{productId}/apis/{apiId}': '2017-03-01' + '/products/{productId}/groups': '2017-03-01' + '/products/{productId}/groups/{groupId}': '2017-03-01' + '/products/{productId}/subscriptions': '2017-03-01' + '/products/{productId}/policies': '2017-03-01' + '/products/{productId}/policies/{policyId}': '2017-03-01' + /properties: '2017-03-01' + '/properties/{propId}': '2017-03-01' + '/quotas/{quotaCounterKey}': '2017-03-01' + '/quotas/{quotaCounterKey}/{quotaPeriodKey}': '2017-03-01' + /reports/byApi: '2017-03-01' + /reports/byUser: '2017-03-01' + /reports/byOperation: '2017-03-01' + /reports/byProduct: '2017-03-01' + /reports/byGeo: '2017-03-01' + /reports/bySubscription: '2017-03-01' + /reports/byTime: '2017-03-01' + /reports/byRequest: '2017-03-01' + /subscriptions: '2017-03-01' + '/subscriptions/{sid}': '2017-03-01' + '/subscriptions/{sid}/regeneratePrimaryKey': '2017-03-01' + '/subscriptions/{sid}/regenerateSecondaryKey': '2017-03-01' + '/tenant/{accessName}': '2017-03-01' + '/tenant/{accessName}/regeneratePrimaryKey': '2017-03-01' + '/tenant/{accessName}/regenerateSecondaryKey': '2017-03-01' + '/tenant/{accessName}/git': '2017-03-01' + '/tenant/{accessName}/git/regeneratePrimaryKey': '2017-03-01' + '/tenant/{accessName}/git/regenerateSecondaryKey': '2017-03-01' + '/tenant/{configurationName}/deploy': '2017-03-01' + '/tenant/{configurationName}/save': '2017-03-01' + '/tenant/{configurationName}/validate': '2017-03-01' + '/tenant/{configurationName}/syncState': '2017-03-01' + /users: '2017-03-01' + '/users/{uid}': '2017-03-01' + '/users/{uid}/generateSsoUrl': '2017-03-01' + '/users/{uid}/groups': '2017-03-01' + '/users/{uid}/subscriptions': '2017-03-01' + '/users/{uid}/identities': '2017-03-01' + '/users/{uid}/token': '2017-03-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets': 2018-06-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}': 2018-06-01-preview + '/apps/{appId}/metrics/{metricId}': v1 + '/apps/{appId}/metrics': v1 + '/apps/{appId}/metrics/metadata': v1 + '/apps/{appId}/events/{eventType}': v1 + '/apps/{appId}/events/{eventType}/{eventId}': v1 + '/apps/{appId}/events/$metadata': v1 + '/apps/{appId}/query': v1 + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/components/{applicationName}/events/$metadata': '2018-04-20' + '/{roleAssignmentId}': 2017-10-01-preview + '/{roleDefinitionId}': '2015-07-01' + '/{roleId}': 2018-09-01-preview + '/{denyAssignmentId}': 2018-07-01-preview + '/subscriptions/{subscriptionId}': '2016-06-01' + '/delegatedProviders/{delegatedProviderId}/offers': '2015-11-01' + '/delegatedProviders/{delegatedProviderId}/offers/{offerName}': '2015-11-01' + /offers: '2015-11-01' + /applications: 2018-12-01.8.0 + '/applications/{applicationId}': 2018-12-01.8.0 + /poolusagemetrics: 2018-12-01.8.0 + /nodeagentskus: 2018-12-01.8.0 + /nodecounts: 2018-12-01.8.0 + /lifetimepoolstats: 2018-12-01.8.0 + /lifetimejobstats: 2018-12-01.8.0 + '/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})/canceldelete': 2018-12-01.8.0 + '/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/files/{filePath}': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/files/{filePath}': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/files': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/files': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/disable': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/enable': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/terminate': 2018-12-01.8.0 + /jobschedules: 2018-12-01.8.0 + '/jobs/{jobId}': 2018-12-01.8.0 + '/jobs/{jobId}/disable': 2018-12-01.8.0 + '/jobs/{jobId}/enable': 2018-12-01.8.0 + '/jobs/{jobId}/terminate': 2018-12-01.8.0 + /jobs: 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/jobs': 2018-12-01.8.0 + '/jobs/{jobId}/jobpreparationandreleasetaskstatus': 2018-12-01.8.0 + '/jobs/{jobId}/taskcounts': 2018-12-01.8.0 + /pools: 2018-12-01.8.0 + '/pools/{poolId}': 2018-12-01.8.0 + '/pools/{poolId}/disableautoscale': 2018-12-01.8.0 + '/pools/{poolId}/enableautoscale': 2018-12-01.8.0 + '/pools/{poolId}/evaluateautoscale': 2018-12-01.8.0 + '/pools/{poolId}/resize': 2018-12-01.8.0 + '/pools/{poolId}/stopresize': 2018-12-01.8.0 + '/pools/{poolId}/updateproperties': 2018-12-01.8.0 + '/pools/{poolId}/removenodes': 2018-12-01.8.0 + '/jobs/{jobId}/tasks': 2018-12-01.8.0 + '/jobs/{jobId}/addtaskcollection': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/subtasksinfo': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/terminate': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/reactivate': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/users': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/users/{userName}': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/reboot': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/reimage': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/disablescheduling': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/enablescheduling': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/remoteloginsettings': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/rdp': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs': 2018-12-01.8.0 + '/pools/{poolId}/nodes': 2018-12-01.8.0 + '/pools/{poolId}/upgradeos': 2018-08-01.7.0 + '/jobs/{jobId}/tasks/{taskId}/files/{fileName}': 2016-07-01.3.1 + '/pools/{poolId}/nodes/{nodeId}/files/{fileName}': 2016-07-01.3.1 + /timeseries/entire/detect: '1.0' + /timeseries/last/detect: '1.0' + /Suggestions: '1.0' + /analyze: '2.0' + /describe: '2.0' + /detect: '2.0' + /models: '2.0' + '/models/{model}/analyze': '2.0' + /ocr: '2.0' + /tag: '2.0' + /generateThumbnail: '2.0' + /areaOfInterest: '2.0' + /recognizeText: '2.0' + '/textOperations/{operationId}': '2.0' + /read/core/asyncBatchAnalyze: '2.0' + '/read/operations/{operationId}': '2.0' + /contentmoderator/moderate/v1.0/ProcessImage/FindFaces: '1.0' + /contentmoderator/moderate/v1.0/ProcessImage/OCR: '1.0' + /contentmoderator/moderate/v1.0/ProcessImage/Evaluate: '1.0' + /contentmoderator/moderate/v1.0/ProcessImage/Match: '1.0' + /contentmoderator/moderate/v1.0/ProcessText/Screen/: '1.0' + /contentmoderator/moderate/v1.0/ProcessText/DetectLanguage: '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}': '1.0' + /contentmoderator/lists/v1.0/imagelists: '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}/RefreshIndex': '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}': '1.0' + /contentmoderator/lists/v1.0/termlists: '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}/RefreshIndex': '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}/images': '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}/images/{ImageId}': '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}/terms/{term}': '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}/terms': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/jobs/{JobId}': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/jobs': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/frames': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/publish': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/transcriptmoderationresult': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/transcript': '1.0' + /images/search: '1.0' + '/{projectId}/url': '2.0' + '/{projectId}/image': '2.0' + '/{projectId}/url/nostore': '2.0' + '/{projectId}/image/nostore': '2.0' + '/{projectId}/classify/iterations/{publishedName}/url': '3.0' + '/{projectId}/classify/iterations/{publishedName}/image': '3.0' + '/{projectId}/classify/iterations/{publishedName}/url/nostore': '3.0' + '/{projectId}/classify/iterations/{publishedName}/image/nostore': '3.0' + '/{projectId}/detect/iterations/{publishedName}/url': '3.0' + '/{projectId}/detect/iterations/{publishedName}/image': '3.0' + '/{projectId}/detect/iterations/{publishedName}/url/nostore': '3.0' + '/{projectId}/detect/iterations/{publishedName}/image/nostore': '3.0' + /domains: '3.0' + '/domains/{domainId}': '3.0' + '/projects/{projectId}/images/tagged': '3.0' + '/projects/{projectId}/images/untagged': '3.0' + '/projects/{projectId}/images/tagged/count': '3.0' + '/projects/{projectId}/images/untagged/count': '3.0' + '/projects/{projectId}/images/id': '3.0' + '/projects/{projectId}/images': '3.0' + '/projects/{projectId}/images/files': '3.0' + '/projects/{projectId}/images/urls': '3.0' + '/projects/{projectId}/images/predictions': '3.0' + '/projects/{projectId}/images/tags': '3.0' + '/projects/{projectId}/images/regions': '3.0' + '/{projectId}/images/{imageId}/regionproposals': '2.2' + '/projects/{projectId}/predictions': '3.0' + '/projects/{projectId}/predictions/query': '3.0' + '/projects/{projectId}/quicktest/url': '3.0' + '/projects/{projectId}/quicktest/image': '3.0' + '/projects/{projectId}/train': '3.0' + /projects: '3.0' + '/projects/{projectId}': '3.0' + '/projects/{projectId}/iterations': '3.0' + '/projects/{projectId}/iterations/{iterationId}': '3.0' + '/projects/{projectId}/iterations/{iterationId}/performance': '3.0' + '/projects/{projectId}/iterations/{iterationId}/performance/images': '3.0' + '/projects/{projectId}/iterations/{iterationId}/performance/images/count': '3.0' + '/projects/{projectId}/iterations/{iterationId}/export': '3.0' + '/projects/{projectId}/tags/{tagId}': '3.0' + '/projects/{projectId}/tags': '3.0' + '/projects/{projectId}/images/{imageId}/regionproposals': '3.0' + '/projects/{projectId}/iterations/{iterationId}/publish': '3.0' + /search: '1.0' + /entities: v2.1 + /findsimilars: '1.0' + /group: '1.0' + /identify: '1.0' + /verify: '1.0' + '/persongroups/{personGroupId}/persons': '1.0' + '/persongroups/{personGroupId}/persons/{personId}': '1.0' + '/persongroups/{personGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}': '1.0' + '/persongroups/{personGroupId}': '1.0' + '/persongroups/{personGroupId}/training': '1.0' + /persongroups: '1.0' + '/persongroups/{personGroupId}/train': '1.0' + '/facelists/{faceListId}': '1.0' + /facelists: '1.0' + '/facelists/{faceListId}/persistedfaces/{persistedFaceId}': '1.0' + '/persongroups/{personGroupId}/persons/{personId}/persistedfaces': '1.0' + '/facelists/{faceListId}/persistedfaces': '1.0' + '/largepersongroups/{largePersonGroupId}/persons': '1.0' + '/largepersongroups/{largePersonGroupId}/persons/{personId}': '1.0' + '/largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}': '1.0' + '/largepersongroups/{largePersonGroupId}': '1.0' + '/largepersongroups/{largePersonGroupId}/training': '1.0' + /largepersongroups: '1.0' + '/largepersongroups/{largePersonGroupId}/train': '1.0' + '/largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces': '1.0' + '/largefacelists/{largeFaceListId}': '1.0' + '/largefacelists/{largeFaceListId}/training': '1.0' + /largefacelists: '1.0' + '/largefacelists/{largeFaceListId}/train': '1.0' + '/largefacelists/{largeFaceListId}/persistedfaces/{persistedFaceId}': '1.0' + '/largefacelists/{largeFaceListId}/persistedfaces': '1.0' + /snapshots: '1.0' + '/snapshots/{snapshotId}': '1.0' + '/snapshots/{snapshotId}/apply': '1.0' + '/operations/{operationId}': '4.0' + /images/details: '1.0' + /images/trending: '1.0' + /localbusinesses/v7.0/search: '1.0' + '/apps/{appId}/versions/{versionId}/patterns': '2.0' + '/apps/{appId}/versions/{versionId}/phraselists': '2.0' + '/apps/{appId}/versions/{versionId}/features': '2.0' + '/apps/{appId}/versions/{versionId}/patterns/{patternId}': '2.0' + '/apps/{appId}/versions/{versionId}/phraselists/{phraselistId}': '2.0' + '/apps/{appId}/versions/{versionId}/example': '2.0' + '/apps/{appId}/versions/{versionId}/examples': '2.0' + '/apps/{appId}/versions/{versionId}/examples/{exampleId}': '2.0' + '/apps/{appId}/versions/{versionId}/intents': '2.0' + '/apps/{appId}/versions/{versionId}/entities': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts': '2.0' + '/apps/{appId}/versions/{versionId}/listprebuilts': '2.0' + '/apps/{appId}/versions/{versionId}/models': '2.0' + '/apps/{appId}/versions/{versionId}/models/{modelId}/examples': '2.0' + '/apps/{appId}/versions/{versionId}/intents/{intentId}': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}': '2.0' + '/apps/{appId}/versions/{versionId}/intents/{intentId}/suggest': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}/suggest': '2.0' + /apps/: '2.0' + /apps/import: '2.0' + /apps/assistants: '2.0' + /apps/domains: '2.0' + /apps/usagescenarios: '2.0' + /apps/cultures: '2.0' + '/apps/{appId}/querylogs': '2.0' + '/apps/{appId}': '2.0' + '/apps/{appId}/versions/{versionId}/clone': '2.0' + '/apps/{appId}/publish': '2.0' + '/apps/{appId}/versions': '2.0' + '/apps/{appId}/versions/{versionId}/': '2.0' + '/apps/{appId}/versions/{versionId}/export': '2.0' + '/apps/{appId}/versions/{versionId}/train': '2.0' + '/apps/{appId}/versions/import': '2.0' + '/apps/{appId}/settings': '2.0' + '/apps/{appId}/publishsettings': '2.0' + '/apps/{appId}/versions/{versionId}/suggest': '2.0' + '/apps/{appId}/permissions': '2.0' + '/apps/{appId}/endpoints': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltdomains': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltintents': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltentities': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltmodels': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltdomains/{domainName}': '2.0' + /apps/customprebuiltdomains: '2.0' + '/apps/customprebuiltdomains/{culture}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children/{cChildId}': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternrule': '2.0' + '/apps/{appId}/versions/{versionId}/patternrules': '2.0' + '/apps/{appId}/versions/{versionId}/patternrules/{patternId}': '2.0' + '/apps/{appId}/versions/{versionId}/intents/{intentId}/patternrules': '2.0' + '/apps/{appId}/versions/{versionId}/settings': '2.0' + '/apps/{appId}/azureaccounts': '2.0' + /azureaccounts: '2.0' + '/package/{appId}/slot/{slotName}/gzip': '2.0' + '/package/{appId}/versions/{versionId}/gzip': '2.0' + '/apps/{appId}/versions/{versionId}/predict': 3.0-preview + '/apps/{appId}/slots/{slotName}/predict': 3.0-preview + /news/search: '1.0' + /news: '1.0' + /news/trendingtopics: '1.0' + /configurations/service: v1.0 + /configurations/policy: v1.0 + /evaluations: v1.0 + '/evaluations/{evaluationId}': v1.0 + '/events/{eventId}/reward': v1.0 + '/events/{eventId}/activate': v1.0 + /logs: v1.0 + /logs/properties: v1.0 + /model: v1.0 + /model/properties: v1.0 + /rank: v1.0 + /endpointkeys: '4.0' + '/endpointkeys/{keyType}': '4.0' + /alterations: '4.0' + /knowledgebases: '4.0' + '/knowledgebases/{kbId}': '4.0' + /knowledgebases/create: '4.0' + '/knowledgebases/{kbId}/{environment}/qna': '4.0' + /spellcheck: '1.0' + /keyPhrases: v2.1 + /languages: v2.1 + /sentiment: v2.1 + /BreakSentence: '3.0' + /Detect: '3.0' + /Dictionary/Lookup: '3.0' + /Dictionary/Examples: '3.0' + /Languages: '3.0' + /translate: '3.0' + /transliterate: '3.0' + /videos/search: '1.0' + /videos/details: '1.0' + /videos/trending: '1.0' + /images/visualsearch: '1.0' + '/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/Microsoft.Consumption/aggregatedcost': '2019-01-01' + /v2/: 2018-08-10-preview + '/v2/{name}/tags/list': 2018-08-10-preview + '/v2/{name}/manifests/{reference}': 2018-08-10-preview + /v2/_catalog: 2018-08-10-preview + /acr/v1/_catalog: 2018-08-10-preview + '/acr/v1/{name}': 2018-08-10-preview + '/acr/v1/{name}/_tags': 2018-08-10-preview + '/acr/v1/{name}/_tags/{reference}': 2018-08-10-preview + '/acr/v1/{name}/_manifests': 2018-08-10-preview + '/acr/v1/{name}/_manifests/{reference}': 2018-08-10-preview + '/catalog/usql/databases/{databaseName}/secrets/{secretName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/secrets': '2016-11-01' + '/catalog/usql/databases/{databaseName}/credentials/{credentialName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/credentials': '2016-11-01' + '/catalog/usql/databases/{databaseName}/externaldatasources/{externalDataSourceName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/externaldatasources': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/procedures/{procedureName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/procedures': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/tablefragments': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/statistics': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tabletypes/{tableTypeName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tabletypes': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/packages/{packageName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/packages': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/views/{viewName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/views': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/statistics/{statisticsName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/statistics': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions/{partitionName}/previewrows': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions/{partitionName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/previewrows': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/types': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tablevaluedfunctions/{tableValuedFunctionName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tablevaluedfunctions': '2016-11-01' + '/catalog/usql/databases/{databaseName}/assemblies/{assemblyName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/assemblies': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas': '2016-11-01' + '/catalog/usql/databases/{databaseName}/statistics': '2016-11-01' + '/catalog/usql/databases/{databaseName}/tables': '2016-11-01' + '/catalog/usql/databases/{databaseName}/tablevaluedfunctions': '2016-11-01' + '/catalog/usql/databases/{databaseName}/views': '2016-11-01' + '/catalog/usql/databases/{databaseName}/acl': '2016-11-01' + /catalog/usql/acl: '2016-11-01' + '/catalog/usql/databases/{databaseName}': '2016-11-01' + /catalog/usql/databases: '2016-11-01' + '/jobs/{jobIdentity}': 2017-09-01-preview + '/jobs/{jobIdentity}/GetStatistics': 2017-09-01-preview + '/jobs/{jobIdentity}/GetDebugDataPath': 2017-09-01-preview + '/jobs/{jobIdentity}/CancelJob': 2017-09-01-preview + '/jobs/{jobIdentity}/YieldJob': 2017-09-01-preview + /buildJob: 2017-09-01-preview + /pipelines: 2017-09-01-preview + '/pipelines/{pipelineIdentity}': 2017-09-01-preview + /recurrences: 2017-09-01-preview + '/recurrences/{recurrenceIdentity}': 2017-09-01-preview + '/Jobs/{jobIdentity}/GetStatistics': '2016-11-01' + '/Jobs/{jobIdentity}/GetDebugDataPath': '2016-11-01' + /BuildJob: '2016-11-01' + '/Jobs/{jobIdentity}/CancelJob': '2016-11-01' + '/Jobs/{jobIdentity}': '2016-11-01' + /Jobs: '2016-11-01' + '/WebHdfsExt/{path}': '2016-11-01' + '/webhdfs/v1/{path}': '2016-11-01' + '/WebHdfsExt/{filePath}': 2015-10-01-preview + /api/events: '2018-01-01' + '/{tenantID}/me': '1.6' + '/{tenantID}/me/ownedObjects': '1.6' + '/{tenantID}/applications': '1.6' + '/{tenantID}/deletedApplications/{objectId}/restore': '1.6' + '/{tenantID}/deletedApplications': '1.6' + '/{tenantID}/deletedApplications/{applicationObjectId}': '1.6' + '/{tenantID}/applications/{applicationObjectId}': '1.6' + '/{tenantID}/applications/{applicationObjectId}/owners': '1.6' + '/{tenantID}/applications/{applicationObjectId}/$links/owners': '1.6' + '/{tenantID}/applications/{applicationObjectId}/$links/owners/{ownerObjectId}': '1.6' + '/{tenantID}/applications/{applicationObjectId}/keyCredentials': '1.6' + '/{tenantID}/applications/{applicationObjectId}/passwordCredentials': '1.6' + '/{tenantID}/isMemberOf': '1.6' + '/{tenantID}/groups/{groupObjectId}/$links/members/{memberObjectId}': '1.6' + '/{tenantID}/groups/{groupObjectId}/$links/members': '1.6' + '/{tenantID}/groups': '1.6' + '/{tenantID}/groups/{objectId}/members': '1.6' + '/{tenantID}/groups/{objectId}': '1.6' + '/{tenantID}/groups/{objectId}/getMemberGroups': '1.6' + '/{tenantID}/groups/{objectId}/owners': '1.6' + '/{tenantID}/groups/{objectId}/$links/owners': '1.6' + '/{tenantID}/groups/{objectId}/$links/owners/{ownerObjectId}': '1.6' + '/{tenantID}/servicePrincipals': '1.6' + '/{tenantID}/servicePrincipalsByAppId/{applicationID}/objectId': '1.6' + '/{tenantID}/servicePrincipals/{objectId}': '1.6' + '/{tenantID}/servicePrincipals/{objectId}/owners': '1.6' + '/{tenantID}/servicePrincipals/{objectId}/keyCredentials': '1.6' + '/{tenantID}/servicePrincipals/{objectId}/passwordCredentials': '1.6' + '/{tenantID}/users': '1.6' + '/{tenantID}/users/{upnOrObjectId}': '1.6' + '/{tenantID}/users/{objectId}/getMemberGroups': '1.6' + '/{tenantID}/getObjectsByObjectIds': '1.6' + '/{tenantID}/domains': '1.6' + '/{tenantID}/domains/{domainName}': '1.6' + '/{tenantID}/oauth2PermissionGrants': '1.6' + '/{tenantID}/oauth2PermissionGrants/{objectId}': '1.6' + '/templeton/v1/jobs/{jobId}': 2018-11-01-preview + /templeton/v1/jobs: 2018-11-01-preview + /templeton/v1/jobs?op=LISTAFTERID: 2018-11-01-preview + /templeton/v1/hive: 2018-11-01-preview + /templeton/v1/mapreduce/jar: 2018-11-01-preview + /templeton/v1/mapreduce/streaming: 2018-11-01-preview + /templeton/v1/pig: 2018-11-01-preview + /templeton/v1/sqoop: 2018-11-01-preview + '/ws/v1/cluster/apps/{appId}/state': 2018-11-01-preview + /instance: '2018-10-01' + /attested/document: '2018-10-01' + /identity/oauth2/token: '2018-10-01' + /identity/info: '2018-10-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testall': 2019-03-22-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testnew': 2019-03-22-preview + '/keys/{key-name}/create': '2016-10-01' + '/keys/{key-name}': '2016-10-01' + '/keys/{key-name}/{key-version}': '2016-10-01' + '/keys/{key-name}/versions': '2016-10-01' + /keys: '2016-10-01' + '/keys/{key-name}/backup': '2016-10-01' + /keys/restore: '2016-10-01' + '/keys/{key-name}/{key-version}/encrypt': '2016-10-01' + '/keys/{key-name}/{key-version}/decrypt': '2016-10-01' + '/keys/{key-name}/{key-version}/sign': '2016-10-01' + '/keys/{key-name}/{key-version}/verify': '2016-10-01' + '/keys/{key-name}/{key-version}/wrapkey': '2016-10-01' + '/keys/{key-name}/{key-version}/unwrapkey': '2016-10-01' + /deletedkeys: '2016-10-01' + '/deletedkeys/{key-name}': '2016-10-01' + '/deletedkeys/{key-name}/recover': '2016-10-01' + '/secrets/{secret-name}': '2016-10-01' + '/secrets/{secret-name}/{secret-version}': '2016-10-01' + /secrets: '2016-10-01' + '/secrets/{secret-name}/versions': '2016-10-01' + /deletedsecrets: '2016-10-01' + '/deletedsecrets/{secret-name}': '2016-10-01' + '/deletedsecrets/{secret-name}/recover': '2016-10-01' + '/secrets/{secret-name}/backup': '2016-10-01' + /secrets/restore: '2016-10-01' + '/certificates/{certificate-name}': '2016-10-01' + /certificates/contacts: '2016-10-01' + /certificates/issuers: '2016-10-01' + '/certificates/issuers/{issuer-name}': '2016-10-01' + '/certificates/{certificate-name}/create': '2016-10-01' + '/certificates/{certificate-name}/import': '2016-10-01' + '/certificates/{certificate-name}/versions': '2016-10-01' + '/certificates/{certificate-name}/policy': '2016-10-01' + '/certificates/{certificate-name}/{certificate-version}': '2016-10-01' + '/certificates/{certificate-name}/pending': '2016-10-01' + '/certificates/{certificate-name}/pending/merge': '2016-10-01' + '/certificates/{certificate-name}/backup': '7.0' + /certificates/restore: '7.0' + /deletedcertificates: '2016-10-01' + '/deletedcertificates/{certificate-name}': '2016-10-01' + '/deletedcertificates/{certificate-name}/recover': '2016-10-01' + /storage: '2016-10-01' + /deletedstorage: '7.0' + '/deletedstorage/{storage-account-name}': '7.0' + '/deletedstorage/{storage-account-name}/recover': '7.0' + '/storage/{storage-account-name}/backup': '7.0' + /storage/restore: '7.0' + '/storage/{storage-account-name}': '2016-10-01' + '/storage/{storage-account-name}/regeneratekey': '2016-10-01' + '/storage/{storage-account-name}/sas': '2016-10-01' + '/deletedstorage/{storage-account-name}/sas': '7.0' + '/deletedstorage/{storage-account-name}/sas/{sas-definition-name}': '7.0' + '/deletedstorage/{storage-account-name}/sas/{sas-definition-name}/recover': '7.0' + '/storage/{storage-account-name}/sas/{sas-definition-name}': '2016-10-01' + '/subscriptions/{subscriptionId}/resources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces{workspaceName}/projects': 2017-05-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProvider}/{resourceTypeName}/{resourceName}/metrics': 2018-09-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}arpTable': 2015-05-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}routesTable': 2015-05-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}stats': 2015-05-01-preview + '/{operationStatusLink}': '2014-09-01' + '/workspaces/{workspaceId}/query': v1 + '/{scope}/providers/Microsoft.PolicyInsights/policyEvents/$metadata': '2018-04-04' + '/{scope}/providers/Microsoft.PolicyInsights/policyStates/$metadata': 2018-07-01-preview + '/{policyAssignmentId}': '2018-05-01' + '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister': '2018-05-01' + '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register': '2018-05-01' + '/subscriptions/{subscriptionId}/providers': '2018-05-01' + '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}': '2018-05-01' + '/{resourceId}': '2018-05-01' + '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}': '2018-05-01' + '/subscriptions/{subscriptionId}/tagNames/{tagName}': '2018-05-01' + '/subscriptions/{subscriptionId}/tagNames': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations': '2018-05-01' + '/providers/{resourceProviderNamespace}/operations': '2015-11-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}providers/Microsoft.Authorization/policyAssignments': '2015-11-01' + '/subscriptions/{subscriptionId}/locations': '2016-06-01' + /tenants: '2016-06-01' + '/{linkId}': '2016-09-01' + '/{applicationId}': '2018-06-01' + '/{applicationDefinitionId}': '2017-09-01' + '/{applianceId}': 2016-09-01-preview + '/{applianceDefinitionId}': 2016-09-01-preview + /docs/$count: 2017-11-11-Preview + /docs: 2017-11-11-Preview + /docs/search.post.search: 2017-11-11-Preview + '/docs(''{key}'')': 2017-11-11-Preview + /docs/search.suggest: 2017-11-11-Preview + /docs/search.post.suggest: 2017-11-11-Preview + /docs/search.index: 2017-11-11-Preview + /docs/search.autocomplete: 2017-11-11-Preview + /docs/search.post.autocomplete: 2017-11-11-Preview + '/datasources(''{dataSourceName}'')': 2017-11-11-Preview + /datasources: 2017-11-11-Preview + '/indexers(''{indexerName}'')/search.reset': 2017-11-11-Preview + '/indexers(''{indexerName}'')/search.run': 2017-11-11-Preview + '/indexers(''{indexerName}'')': 2017-11-11-Preview + /indexers: 2017-11-11-Preview + '/indexers(''{indexerName}'')/search.status': 2017-11-11-Preview + '/skillsets(''{skillsetName}'')': 2017-11-11-Preview + /skillsets: 2017-11-11-Preview + '/synonymmaps(''{synonymMapName}'')': 2017-11-11-Preview + /synonymmaps: 2017-11-11-Preview + /indexes: 2017-11-11-Preview + '/indexes(''{indexName}'')': 2017-11-11-Preview + '/indexes(''{indexName}'')/search.stats': 2017-11-11-Preview + '/indexes(''{indexName}'')/search.analyze': 2017-11-11-Preview + /servicestats: 2017-11-11-Preview + /$/GetClusterManifest: 6.4.0.36 + /$/GetClusterHealth: 6.4.0.36 + /$/GetClusterHealthChunk: 6.4.0.36 + /$/ReportClusterHealth: 6.4.0.36 + /$/GetProvisionedCodeVersions: 6.4.0.36 + /$/GetProvisionedConfigVersions: 6.4.0.36 + /$/GetUpgradeProgress: 6.4.0.36 + /$/GetClusterConfiguration: 6.4.0.36 + /$/GetClusterConfigurationUpgradeStatus: 6.4.0.36 + /$/GetUpgradeOrchestrationServiceState: 6.4.0.36 + /$/SetUpgradeOrchestrationServiceState: 6.4.0.36 + /$/Provision: 6.4.0.36 + /$/Unprovision: 6.4.0.36 + /$/RollbackUpgrade: 6.4.0.36 + /$/MoveToNextUpgradeDomain: 6.4.0.36 + /$/Upgrade: 6.4.0.36 + /$/StartClusterConfigurationUpgrade: 6.4.0.36 + /$/UpdateUpgrade: 6.4.0.36 + /$/GetAadMetadata: 6.4.0.36 + /Nodes: 6.4.0.36 + '/Nodes/{nodeName}': 6.4.0.36 + '/Nodes/{nodeName}/$/GetHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/ReportHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetLoadInformation': 6.4.0.36 + '/Nodes/{nodeName}/$/Deactivate': 6.4.0.36 + '/Nodes/{nodeName}/$/Activate': 6.4.0.36 + '/Nodes/{nodeName}/$/RemoveNodeState': 6.4.0.36 + '/Nodes/{nodeName}/$/Restart': 6.4.0.36 + /ApplicationTypes: 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}': 6.4.0.36 + /ApplicationTypes/$/Provision: 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/Unprovision': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetServiceTypes': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetServiceTypes/{serviceTypeName}': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetServiceManifest': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes/{serviceTypeName}': 6.4.0.36 + /Applications/$/Create: 6.4.0.36 + '/Applications/{applicationId}/$/Delete': 6.4.0.36 + '/Applications/{applicationId}/$/GetLoadInformation': 6.4.0.36 + /Applications: 6.4.0.36 + '/Applications/{applicationId}': 6.4.0.36 + '/Applications/{applicationId}/$/GetHealth': 6.4.0.36 + '/Applications/{applicationId}/$/ReportHealth': 6.4.0.36 + '/Applications/{applicationId}/$/Upgrade': 6.4.0.36 + '/Applications/{applicationId}/$/GetUpgradeProgress': 6.4.0.36 + '/Applications/{applicationId}/$/UpdateUpgrade': 6.4.0.36 + '/Applications/{applicationId}/$/MoveToNextUpgradeDomain': 6.4.0.36 + '/Applications/{applicationId}/$/RollbackUpgrade': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/ReportHealth': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetApplicationManifest': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices/{serviceId}': 6.4.0.36 + '/Services/{serviceId}/$/GetApplicationName': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices/$/Create': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices/$/CreateFromTemplate': 6.4.0.36 + '/Services/{serviceId}/$/Delete': 6.4.0.36 + '/Services/{serviceId}/$/Update': 6.4.0.36 + '/Services/{serviceId}/$/GetDescription': 6.4.0.36 + '/Services/{serviceId}/$/GetHealth': 6.4.0.36 + '/Services/{serviceId}/$/ReportHealth': 6.4.0.36 + '/Services/{serviceId}/$/ResolvePartition': 6.4.0.36 + '/Services/{serviceId}/$/GetPartitions': 6.4.0.36 + '/Partitions/{partitionId}': 6.4.0.36 + '/Partitions/{partitionId}/$/GetServiceName': 6.4.0.36 + '/Partitions/{partitionId}/$/GetHealth': 6.4.0.36 + '/Partitions/{partitionId}/$/ReportHealth': 6.4.0.36 + '/Partitions/{partitionId}/$/GetLoadInformation': 6.4.0.36 + '/Partitions/{partitionId}/$/ResetLoad': 6.4.0.36 + '/Partitions/{partitionId}/$/Recover': 6.4.0.36 + '/Services/$/{serviceId}/$/GetPartitions/$/Recover': 6.4.0.36 + /$/RecoverSystemPartitions: 6.4.0.36 + /$/RecoverAllPartitions: 6.4.0.36 + /$/CreateRepairTask: 6.4.0.36 + /$/CancelRepairTask: 6.4.0.36 + /$/DeleteRepairTask: 6.4.0.36 + /$/GetRepairTaskList: 6.4.0.36 + /$/ForceApproveRepairTask: 6.4.0.36 + /$/UpdateRepairTaskHealthPolicy: 6.4.0.36 + /$/UpdateRepairExecutionState: 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas': 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas/{replicaId}': 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetHealth': 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/ReportHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetReplicas': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetDetail': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Restart': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Delete': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/GetHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/ReportHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/DeployServicePackage': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/Restart': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/ContainerLogs': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/ContainerApi': 6.4.0.36 + /ComposeDeployments/$/Create: 6.4.0.36 + '/ComposeDeployments/{deploymentName}': 6.4.0.36 + /ComposeDeployments: 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/GetUpgradeProgress': 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/Delete': 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/Upgrade': 6.4.0.36 + /Tools/Chaos: 6.4.0.36 + /Tools/Chaos/$/Start: 6.4.0.36 + /Tools/Chaos/$/Stop: 6.4.0.36 + /Tools/Chaos/Events: 6.4.0.36 + /Tools/Chaos/Schedule: 6.4.0.36 + '/ImageStore/{contentPath}': 6.4.0.36 + /ImageStore: 6.4.0.36 + /ImageStore/$/Copy: 6.4.0.36 + /ImageStore/$/DeleteUploadSession: 6.4.0.36 + /ImageStore/$/CommitUploadSession: 6.4.0.36 + /ImageStore/$/GetUploadSession: 6.4.0.36 + '/ImageStore/{contentPath}/$/GetUploadSession': 6.4.0.36 + '/ImageStore/{contentPath}/$/UploadChunk': 6.4.0.36 + /$/InvokeInfrastructureCommand: 6.4.0.36 + /$/InvokeInfrastructureQuery: 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartDataLoss': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetDataLossProgress': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartQuorumLoss': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetQuorumLossProgress': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartRestart': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetRestartProgress': 6.4.0.36 + '/Faults/Nodes/{nodeName}/$/StartTransition/': 6.4.0.36 + '/Faults/Nodes/{nodeName}/$/GetTransitionProgress': 6.4.0.36 + /Faults/: 6.4.0.36 + /Faults/$/Cancel: 6.4.0.36 + /BackupRestore/BackupPolicies/$/Create: 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}/$/Delete': 6.4.0.36 + /BackupRestore/BackupPolicies: 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}': 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}/$/GetBackupEnabledEntities': 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}/$/Update': 6.4.0.36 + '/Applications/{applicationId}/$/EnableBackup': 6.4.0.36 + '/Applications/{applicationId}/$/DisableBackup': 6.4.0.36 + '/Applications/{applicationId}/$/GetBackupConfigurationInfo': 6.4.0.36 + '/Applications/{applicationId}/$/GetBackups': 6.4.0.36 + '/Applications/{applicationId}/$/SuspendBackup': 6.4.0.36 + '/Applications/{applicationId}/$/ResumeBackup': 6.4.0.36 + '/Services/{serviceId}/$/EnableBackup': 6.4.0.36 + '/Services/{serviceId}/$/DisableBackup': 6.4.0.36 + '/Services/{serviceId}/$/GetBackupConfigurationInfo': 6.4.0.36 + '/Services/{serviceId}/$/GetBackups': 6.4.0.36 + '/Services/{serviceId}/$/SuspendBackup': 6.4.0.36 + '/Services/{serviceId}/$/ResumeBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/EnableBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/DisableBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/GetBackupConfigurationInfo': 6.4.0.36 + '/Partitions/{partitionId}/$/GetBackups': 6.4.0.36 + '/Partitions/{partitionId}/$/SuspendBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/ResumeBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/Backup': 6.4.0.36 + '/Partitions/{partitionId}/$/GetBackupProgress': 6.4.0.36 + '/Partitions/{partitionId}/$/Restore': 6.4.0.36 + '/Partitions/{partitionId}/$/GetRestoreProgress': 6.4.0.36 + /BackupRestore/$/GetBackups: 6.4.0.36 + /Names/$/Create: 6.4.0.36 + '/Names/{nameId}': 6.4.0.36 + '/Names/{nameId}/$/GetSubNames': 6.4.0.36 + '/Names/{nameId}/$/GetProperties': 6.4.0.36 + '/Names/{nameId}/$/GetProperty': 6.4.0.36 + '/Names/{nameId}/$/GetProperties/$/SubmitBatch': 6.4.0.36 + /EventsStore/Cluster/Events: 6.4.0.36 + /EventsStore/Containers/Events: 6.4.0.36 + '/EventsStore/Nodes/{nodeName}/$/Events': 6.4.0.36 + /EventsStore/Nodes/Events: 6.4.0.36 + '/EventsStore/Applications/{applicationId}/$/Events': 6.4.0.36 + /EventsStore/Applications/Events: 6.4.0.36 + '/EventsStore/Services/{serviceId}/$/Events': 6.4.0.36 + /EventsStore/Services/Events: 6.4.0.36 + '/EventsStore/Partitions/{partitionId}/$/Events': 6.4.0.36 + /EventsStore/Partitions/Events: 6.4.0.36 + '/EventsStore/Partitions/{partitionId}/$/Replicas/{replicaId}/$/Events': 6.4.0.36 + '/EventsStore/Partitions/{partitionId}/$/Replicas/Events': 6.4.0.36 + '/EventsStore/CorrelatedEvents/{eventInstanceId}/$/Events': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/replicas': 6.3.0.9 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}': 6.4.0.36 + '/Resources/Volumes/{volumeResourceName}': 6.4.0.36 + /$/GetClusterVersion: 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/RollbackUpgrade': 6.4.0.36 + '/Resources/Secrets/{secretResourceName}': 6.4.0.36 + /Resources/Secrets: 6.4.0.36 + '/Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}': 6.4.0.36 + '/Resources/Secrets/{secretResourceName}/values': 6.4.0.36 + '/Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}/list_value': 6.4.0.36 + /Resources/Volumes: 6.4.0.36 + '/Resources/Networks/{networkResourceName}': 6.4.0.36 + /Resources/Networks: 6.4.0.36 + /Resources/Applications: 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}/CodePackages/{codePackageName}/Logs': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas': 6.4.0.36 + '/Resources/Gateways/{gatewayResourceName}': 6.4.0.36 + /Resources/Gateways: 6.4.0.36 + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values/{secretValueResourceName}/list_value': 2018-09-01-preview + /: '2018-11-09' + '/{filesystem}': '2018-11-09' + '/{filesystem}/{path}': '2018-11-09' + /availability: 2018-11-01-preview + /eventSchema: 2018-11-01-preview + /timeseries/modelSettings: 2018-11-01-preview + /timeseries/query: 2018-11-01-preview + /timeseries/instances: 2018-11-01-preview + /timeseries/instances/$batch: 2018-11-01-preview + /timeseries/instances/suggest: 2018-11-01-preview + /timeseries/instances/search: 2018-11-01-preview + /timeseries/types: 2018-11-01-preview + /timeseries/types/$batch: 2018-11-01-preview + /timeseries/hierarchies: 2018-11-01-preview + /timeseries/hierarchies/$batch: 2018-11-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/validateMoveResources': '2018-02-01' +``` diff --git a/profiles/definitions/latest-2019-04-30.md b/profiles/definitions/latest-2019-04-30.md new file mode 100644 index 000000000000..d232011ad030 --- /dev/null +++ b/profiles/definitions/latest-2019-04-30.md @@ -0,0 +1,3563 @@ +# Latest Azure Profile + +> see https://aka.ms/autorest + +``` yaml +profiles: + latest-2019-04-30: + resources: + microsoft.netapp: + '2019-05-01': + - locations/checkFilePathAvailability + - locations/checkNameAvailability + - netAppAccounts + - netAppAccounts/capacityPools + - netAppAccounts/capacityPools/volumes + - netAppAccounts/capacityPools/volumes/mountTargets + - netAppAccounts/capacityPools/volumes/snapshots + - operations + microsoft.virtualmachineimages: + 2019-05-01-preview: + - imageTemplates + - imageTemplates/run + - imageTemplates/runOutputs + - operations + microsoft.containerservice: + '2019-04-30': + - openShiftManagedClusters + '2019-02-01': + - managedClusters + - managedClusters/accessProfiles/listCredential + - managedClusters/agentPools + - managedClusters/listClusterAdminCredential + - managedClusters/listClusterUserCredential + - managedClusters/resetAADProfile + - managedClusters/resetServicePrincipalProfile + - managedClusters/upgradeProfiles + - operations + '2017-09-30': + - locations/orchestrators + '2017-08-31': + - managedClusters/accessProfiles + '2017-07-01': + - containerServices + microsoft.capacity: + '2019-04-01': + - appliedReservations + - calculatePrice + - catalogs + - operations + - reservationOrders + - reservationOrders/merge + - reservationOrders/reservations + - reservationOrders/reservations/revisions + - reservationOrders/split + microsoft.batch: + '2019-04-01': + - batchAccounts + - batchAccounts/applications + - batchAccounts/applications/versions + - batchAccounts/applications/versions/activate + - batchAccounts/certificates + - batchAccounts/certificates/cancelDelete + - batchAccounts/listKeys + - batchAccounts/pools + - batchAccounts/pools/disableAutoScale + - batchAccounts/pools/stopResize + - batchAccounts/regenerateKeys + - batchAccounts/syncAutoStorageKeys + - locations/checkNameAvailability + - locations/quotas + - operations + microsoft.containerregistry: + '2019-04-01': + - registries/listBuildSourceUploadUrl + - registries/runs + - registries/runs/cancel + - registries/runs/listLogSasUrl + - registries/scheduleRun + - registries/tasks + - registries/tasks/listDetails + 2018-02-01-preview: + - registries/buildTasks + - registries/buildTasks/listSourceRepositoryProperties + - registries/buildTasks/steps + - registries/buildTasks/steps/listBuildArguments + - registries/builds + - registries/builds/cancel + - registries/builds/getLogLink + - registries/getBuildSourceUploadUrl + - registries/queueBuild + '2017-10-01': + - checkNameAvailability + - operations + - registries + - registries/importImage + - registries/listCredentials + - registries/listPolicies + - registries/listUsages + - registries/regenerateCredential + - registries/replications + - registries/updatePolicies + - registries/webhooks + - registries/webhooks/getCallbackConfig + - registries/webhooks/listEvents + - registries/webhooks/ping + 2016-06-27-preview: + - registries/getCredentials + - registries/regenerateCredentials + microsoft.storage: + '2019-04-01': + - checkNameAvailability + - locations/usages + - operations + - skus + - storageAccounts + - storageAccounts/ListAccountSas + - storageAccounts/ListServiceSas + - storageAccounts/blobServices + - storageAccounts/blobServices/containers + - storageAccounts/blobServices/containers/clearLegalHold + - storageAccounts/blobServices/containers/immutabilityPolicies + - storageAccounts/blobServices/containers/immutabilityPolicies/extend + - storageAccounts/blobServices/containers/immutabilityPolicies/lock + - storageAccounts/blobServices/containers/lease + - storageAccounts/blobServices/containers/setLegalHold + - storageAccounts/failover + - storageAccounts/listKeys + - storageAccounts/managementPolicies + - storageAccounts/regenerateKey + - storageAccounts/revokeUserDelegationKeys + 2018-03-01-preview: + - usages + microsoft.resourcegraph: + '2019-04-01': + - operations + - resources + 2018-09-01-preview: + - queries + - resourceChangeDetails + - resourceChanges + microsoft.compute: + '2019-04-01': + - skus + '2019-03-01': + - availabilitySets + - availabilitySets/vmSizes + - galleries + - galleries/images + - galleries/images/versions + - images + - locations/logAnalytics/getRequestRateByInterval + - locations/logAnalytics/getThrottledRequests + - locations/publishers + - locations/publishers/artifacttypes/offers + - locations/publishers/artifacttypes/offers/skus + - locations/publishers/artifacttypes/offers/skus/versions + - locations/publishers/artifacttypes/types + - locations/publishers/artifacttypes/types/versions + - locations/runCommands + - locations/usages + - locations/virtualMachines + - locations/vmSizes + - operations + - proximityPlacementGroups + - virtualMachineScaleSets + - virtualMachineScaleSets/convertToSinglePlacementGroup + - virtualMachineScaleSets/deallocate + - virtualMachineScaleSets/delete + - virtualMachineScaleSets/extensionRollingUpgrade + - virtualMachineScaleSets/extensions + - virtualMachineScaleSets/forceRecoveryServiceFabricPlatformUpdateDomainWalk + - virtualMachineScaleSets/instanceView + - virtualMachineScaleSets/manualupgrade + - virtualMachineScaleSets/osRollingUpgrade + - virtualMachineScaleSets/osUpgradeHistory + - virtualMachineScaleSets/performMaintenance + - virtualMachineScaleSets/poweroff + - virtualMachineScaleSets/redeploy + - virtualMachineScaleSets/reimage + - virtualMachineScaleSets/reimageall + - virtualMachineScaleSets/restart + - virtualMachineScaleSets/rollingUpgrades + - virtualMachineScaleSets/skus + - virtualMachineScaleSets/start + - virtualMachineScaleSets/virtualMachines + - virtualMachineScaleSets/virtualmachines/deallocate + - virtualMachineScaleSets/virtualmachines/instanceView + - virtualMachineScaleSets/virtualmachines/performMaintenance + - virtualMachineScaleSets/virtualmachines/poweroff + - virtualMachineScaleSets/virtualmachines/redeploy + - virtualMachineScaleSets/virtualmachines/reimage + - virtualMachineScaleSets/virtualmachines/reimageall + - virtualMachineScaleSets/virtualmachines/restart + - virtualMachineScaleSets/virtualmachines/runCommand + - virtualMachineScaleSets/virtualmachines/start + - virtualMachines + - virtualMachines/capture + - virtualMachines/convertToManagedDisks + - virtualMachines/deallocate + - virtualMachines/extensions + - virtualMachines/generalize + - virtualMachines/instanceView + - virtualMachines/performMaintenance + - virtualMachines/powerOff + - virtualMachines/redeploy + - virtualMachines/reimage + - virtualMachines/restart + - virtualMachines/runCommand + - virtualMachines/start + - virtualMachines/vmSizes + '2018-09-30': + - disks + - disks/beginGetAccess + - disks/endGetAccess + - snapshots + - snapshots/beginGetAccess + - snapshots/endGetAccess + '2017-03-30': + - virtualMachineScaleSets/networkInterfaces + - virtualMachineScaleSets/publicipaddresses + - virtualMachineScaleSets/virtualMachines/networkInterfaces + - virtualMachineScaleSets/virtualMachines/networkInterfaces/ipConfigurations + - virtualMachineScaleSets/virtualMachines/networkInterfaces/ipconfigurations/publicipaddresses + microsoft.network: + '2019-04-01': + - checkFrontDoorNameAvailability + - frontDoors + - frontDoors/backendPools + - frontDoors/frontendEndpoints + - frontDoors/frontendEndpoints/disableHttps + - frontDoors/frontendEndpoints/enableHttps + - frontDoors/healthProbeSettings + - frontDoors/loadBalancingSettings + - frontDoors/purge + - frontDoors/routingRules + - frontDoors/validateCustomDomain + '2019-03-01': + - FrontDoorWebApplicationFirewallManagedRuleSets + - FrontDoorWebApplicationFirewallPolicies + '2019-02-01': + - ApplicationGatewayWebApplicationFirewallPolicies + - ExpressRoutePorts + - ExpressRoutePorts/links + - ExpressRoutePortsLocations + - applicationGatewayAvailableRequestHeaders + - applicationGatewayAvailableResponseHeaders + - applicationGatewayAvailableServerVariables + - applicationGatewayAvailableSslOptions + - applicationGatewayAvailableSslOptions/predefinedPolicies + - applicationGatewayAvailableWafRuleSets + - applicationGateways + - applicationGateways/backendhealth + - applicationGateways/getBackendHealthOnDemand + - applicationGateways/start + - applicationGateways/stop + - applicationSecurityGroups + - azureFirewallFqdnTags + - azureFirewalls + - bgpServiceCommunities + - connections + - connections/sharedkey + - connections/vpndeviceconfigurationscript + - ddosCustomPolicies + - ddosProtectionPlans + - expressRouteCircuits + - expressRouteCircuits/authorizations + - expressRouteCircuits/peerings + - expressRouteCircuits/peerings/arpTables + - expressRouteCircuits/peerings/connections + - expressRouteCircuits/peerings/peerConnections + - expressRouteCircuits/peerings/routeTables + - expressRouteCircuits/peerings/routeTablesSummary + - expressRouteCircuits/peerings/stats + - expressRouteCircuits/stats + - expressRouteCrossConnections + - expressRouteCrossConnections/peerings + - expressRouteCrossConnections/peerings/arpTables + - expressRouteCrossConnections/peerings/routeTables + - expressRouteCrossConnections/peerings/routeTablesSummary + - expressRouteGateways + - expressRouteGateways/expressRouteConnections + - expressRouteServiceProviders + - interfaceEndpoints + - loadBalancers + - loadBalancers/backendAddressPools + - loadBalancers/frontendIPConfigurations + - loadBalancers/inboundNatRules + - loadBalancers/loadBalancingRules + - loadBalancers/networkInterfaces + - loadBalancers/outboundRules + - loadBalancers/probes + - localNetworkGateways + - locations/CheckDnsNameAvailability + - locations/availableDelegations + - locations/usages + - locations/virtualNetworkAvailableEndpointServices + - natGateways + - networkInterfaces + - networkInterfaces/effectiveNetworkSecurityGroups + - networkInterfaces/effectiveRouteTable + - networkInterfaces/ipConfigurations + - networkInterfaces/loadBalancers + - networkInterfaces/tapConfigurations + - networkProfiles + - networkSecurityGroups + - networkSecurityGroups/defaultSecurityRules + - networkSecurityGroups/securityRules + - networkWatchers + - networkWatchers/availableProvidersList + - networkWatchers/azureReachabilityReport + - networkWatchers/configureFlowLog + - networkWatchers/connectionMonitors + - networkWatchers/connectionMonitors/query + - networkWatchers/connectionMonitors/start + - networkWatchers/connectionMonitors/stop + - networkWatchers/connectivityCheck + - networkWatchers/ipFlowVerify + - networkWatchers/networkConfigurationDiagnostic + - networkWatchers/nextHop + - networkWatchers/packetCaptures + - networkWatchers/packetCaptures/queryStatus + - networkWatchers/packetCaptures/stop + - networkWatchers/queryFlowLogStatus + - networkWatchers/queryTroubleshootResult + - networkWatchers/securityGroupView + - networkWatchers/topology + - networkWatchers/troubleshoot + - operations + - p2svpnGateways + - p2svpnGateways/generatevpnprofile + - publicIPAddresses + - publicIPPrefixes + - routeFilters + - routeFilters/routeFilterRules + - routeTables + - routeTables/routes + - serviceEndpointPolicies + - serviceEndpointPolicies/serviceEndpointPolicyDefinitions + - virtualHubs + - virtualHubs/hubVirtualNetworkConnections + - virtualNetworkGateways + - virtualNetworkGateways/connections + - virtualNetworkGateways/generatevpnclientpackage + - virtualNetworkGateways/generatevpnprofile + - virtualNetworkGateways/getAdvertisedRoutes + - virtualNetworkGateways/getBgpPeerStatus + - virtualNetworkGateways/getLearnedRoutes + - virtualNetworkGateways/getvpnclientipsecparameters + - virtualNetworkGateways/getvpnprofilepackageurl + - virtualNetworkGateways/reset + - virtualNetworkGateways/resetvpnclientsharedkey + - virtualNetworkGateways/setvpnclientipsecparameters + - virtualNetworkGateways/supportedvpndevices + - virtualNetworkTaps + - virtualNetworks + - virtualNetworks/CheckIPAddressAvailability + - virtualNetworks/subnets + - virtualNetworks/subnets/PrepareNetworkPolicies + - virtualNetworks/usages + - virtualNetworks/virtualNetworkPeerings + - virtualWans + - virtualWans/p2sVpnServerConfigurations + - virtualWans/supportedSecurityProviders + - virtualWans/vpnConfiguration + - vpnGateways + - vpnGateways/vpnConnections + - vpnSites + '2018-09-01': + - privateDnsZones + - privateDnsZones/ALL + - privateDnsZones/virtualNetworkLinks + '2018-05-01': + - dnsZones/all + - dnsZones/recordsets + - dnszones + - getDnsResourceReference + '2018-04-01': + - checkTrafficManagerNameAvailability + - trafficManagerGeographicHierarchies + - trafficManagerUserMetricsKeys + - trafficmanagerprofiles + - trafficmanagerprofiles/heatMaps + '2015-06-15': + - expressRouteCircuits/arpTable + - expressRouteCircuits/routesTable + microsoft.devspaces: + '2019-04-01': + - controllers + - controllers/listConnectionDetails + - locations/checkContainerHostMapping + - operations + microsoft.devices: + 2019-03-22-preview: + - IotHubs + - IotHubs/IotHubKeys/listkeys + - IotHubs/IotHubStats + - IotHubs/certificates + - IotHubs/certificates/generateVerificationCode + - IotHubs/certificates/verify + - IotHubs/eventHubEndpoints/ConsumerGroups + - IotHubs/exportDevices + - IotHubs/failover + - IotHubs/importDevices + - IotHubs/jobs + - IotHubs/listkeys + - IotHubs/quotaMetrics + - IotHubs/routingEndpointsHealth + - IotHubs/skus + - checkNameAvailability + - operations + - usages + '2018-01-22': + - checkProvisioningServiceNameAvailability + - provisioningServices + - provisioningServices/certificates + - provisioningServices/certificates/generateVerificationCode + - provisioningServices/certificates/verify + - provisioningServices/keys/listkeys + - provisioningServices/listkeys + - provisioningServices/operationresults + - provisioningServices/skus + microsoft.databoxedge: + '2019-03-01': + - dataBoxEdgeDevices + - dataBoxEdgeDevices/alerts + - dataBoxEdgeDevices/bandwidthSchedules + - dataBoxEdgeDevices/downloadUpdates + - dataBoxEdgeDevices/getExtendedInformation + - dataBoxEdgeDevices/installUpdates + - dataBoxEdgeDevices/jobs + - dataBoxEdgeDevices/networkSettings + - dataBoxEdgeDevices/operationsStatus + - dataBoxEdgeDevices/orders + - dataBoxEdgeDevices/roles + - dataBoxEdgeDevices/scanForUpdates + - dataBoxEdgeDevices/securitySettings/update + - dataBoxEdgeDevices/shares + - dataBoxEdgeDevices/shares/refresh + - dataBoxEdgeDevices/storageAccountCredentials + - dataBoxEdgeDevices/triggers + - dataBoxEdgeDevices/updateSummary + - dataBoxEdgeDevices/uploadCertificate + - dataBoxEdgeDevices/users + - operations + microsoft.peering: + 2019-03-01-preview: + - legacyPeerings + - operations + - peerAsns + - peeringLocations + - peerings + microsoft.insights: + '2019-03-01': + - actionGroups + - actionGroups/subscribe + - metricBaselines + 2018-11-27-preview: + - vmInsightsOnboardingStatuses + 2018-06-17-preview: + - workbooks + 2018-05-01-preview: + - components/ProactiveDetectionConfigs + '2018-04-20': + - components/events + - components/metrics + - components/query + '2018-04-16': + - scheduledQueryRules + '2018-03-01': + - metricAlerts + - metricAlerts/status + '2018-01-01': + - metricDefinitions + - metrics + 2017-12-01-preview: + - metricNamespaces + 2017-11-01-preview: + - baseline + - calculatebaseline + '2017-10-01': + - components/pricingPlans + - listMigrationdate + - migrateToNewPricingModel + - rollbackToLegacyPricingModel + 2017-05-01-preview: + - diagnosticSettings + - diagnosticSettingsCategories + '2017-04-01': + - activityLogAlerts + '2016-03-01': + - alertrules + - alertrules/incidents + - logprofiles + '2015-05-01': + - components + - components/APIKeys + - components/Annotations + - components/DefaultWorkItemConfig + - components/WorkItemConfigs + - components/currentbillingfeatures + - components/exportconfiguration + - components/favorites + - components/featurecapabilities + - components/getavailablebillingfeatures + - components/item + - components/operations + - components/purge + - components/quotastatus + - components/syntheticmonitorlocations + - components/webtests + - operations + - webtests + '2015-04-01': + - autoscalesettings + - eventcategories + - eventtypes/values + microsoft.costmanagement: + 2019-03-01-preview: + - Forecast + - Query + - cloudConnectors + - dimensions + - externalBillingAccounts + - externalBillingAccounts/externalSubscriptions + - externalSubscriptions + - operations + - showbackRules + '2019-01-01': + - exports + - exports/run + - exports/runHistory + 2018-08-01-preview: + - alerts + - alerts/updateStatus + - connectors + - reports + - reports/run + - reports/runHistory + '2018-05-31': + - reportconfigs + microsoft.mixedreality: + 2019-02-28-preview: + - locations/checkNameAvailability + - operations + - spatialAnchorsAccounts + - spatialAnchorsAccounts/keys + microsoft.storagesync: + '2019-02-01': + - locations/checkNameAvailability + - operations + - storageSyncServices + - storageSyncServices/registeredServers + - storageSyncServices/registeredServers/triggerRollover + - storageSyncServices/syncGroups + - storageSyncServices/syncGroups/cloudEndpoints + - storageSyncServices/syncGroups/cloudEndpoints/postbackup + - storageSyncServices/syncGroups/cloudEndpoints/postrestore + - storageSyncServices/syncGroups/cloudEndpoints/prebackup + - storageSyncServices/syncGroups/cloudEndpoints/prerestore + - storageSyncServices/syncGroups/cloudEndpoints/restoreheartbeat + - storageSyncServices/syncGroups/serverEndpoints + - storageSyncServices/syncGroups/serverEndpoints/recallAction + - storageSyncServices/workflows + - storageSyncServices/workflows/abort + microsoft.appconfiguration: + 2019-02-01-preview: + - checkNameAvailability + - configurationStores + - configurationStores/ListKeys + - configurationStores/RegenerateKey + - operations + microsoft.eventgrid: + 2019-02-01-preview: + - domains + - domains/listKeys + - domains/regenerateKey + - domains/topics + - eventSubscriptions + - eventSubscriptions/getFullUrl + - eventTypes + - locations/eventSubscriptions + - locations/topicTypes/eventSubscriptions + - operations + - topicTypes + - topicTypes/eventSubscriptions + - topicTypes/eventTypes + - topics + - topics/listKeys + - topics/regenerateKey + microsoft.kusto: + '2019-01-21': + - clusters + - clusters/checkNameAvailability + - clusters/databases + - clusters/databases/addPrincipals + - clusters/databases/dataConnectionValidation + - clusters/databases/dataConnections + - clusters/databases/listPrincipals + - clusters/databases/removePrincipals + - clusters/skus + - clusters/start + - clusters/stop + - locations/checkNameAvailability + - operations + - skus + 2018-09-07-preview: + - clusters/databases/eventhubConnectionValidation + - clusters/databases/eventhubconnections + microsoft.apimanagement: + '2019-01-01': + - checkNameAvailability + - operations + - service + - service/apiVersionSets + - service/apis + - service/apis/diagnostics + - service/apis/issues + - service/apis/issues/attachments + - service/apis/issues/comments + - service/apis/operations + - service/apis/operations/policies + - service/apis/operations/tags + - service/apis/operationsByTags + - service/apis/policies + - service/apis/products + - service/apis/releases + - service/apis/revisions + - service/apis/schemas + - service/apis/tagDescriptions + - service/apis/tags + - service/apisByTags + - service/applynetworkconfigurationupdates + - service/authorizationServers + - service/backends + - service/backends/reconnect + - service/backup + - service/caches + - service/certificates + - service/diagnostics + - service/getssotoken + - service/groups + - service/groups/users + - service/identityProviders + - service/issues + - service/locations/networkstatus + - service/loggers + - service/networkstatus + - service/notifications + - service/notifications/recipientEmails + - service/notifications/recipientUsers + - service/openidConnectProviders + - service/policies + - service/policySnippets + - service/portalsettings + - service/products + - service/products/apis + - service/products/groups + - service/products/policies + - service/products/subscriptions + - service/products/tags + - service/productsByTags + - service/properties + - service/quotas + - service/quotas/periods + - service/regions + - service/reports + - service/restore + - service/skus + - service/subscriptions + - service/subscriptions/regeneratePrimaryKey + - service/subscriptions/regenerateSecondaryKey + - service/tagResources + - service/tags + - service/templates + - service/tenant + - service/tenant/deploy + - service/tenant/git + - service/tenant/regeneratePrimaryKey + - service/tenant/regenerateSecondaryKey + - service/tenant/save + - service/tenant/syncState + - service/tenant/validate + - service/users + - service/users/confirmations/send + - service/users/generateSsoUrl + - service/users/groups + - service/users/identities + - service/users/subscriptions + - service/users/token + 2018-06-01-preview: + - service/updatecertificate + - service/updatehostname + '2018-01-01': + - service/apis/diagnostics/loggers + - service/diagnostics/loggers + - service/identity + '2017-03-01': + - service/uploadcertificate + '2016-10-10': + - service/apis/operations/policy + - service/apis/policy + - service/managedeployments + - service/products/policy + microsoft.consumption: + '2019-01-01': + - aggregatedcost + - balances + - budgets + - charges + - forecasts + - marketplaces + - operations + - pricesheets + - reservationDetails + - reservationRecommendations + - reservationSummaries + - tags + - usageDetails + 2018-11-01-preview: + - billingAccounts/billingProfiles/pricesheet/download + - billingAccounts/invoices/pricesheet/download + - credits + - events + - lots + '2018-10-01': + - tenants + '2018-06-30': + - costTags + microsoft.securityinsights: + 2019-01-01-preview: + - aggregations + - alertRules + - alertRules/actions + - bookmarks + - cases + - dataConnectors + - entities + - officeConsents + - operations + - settings + microsoft.security: + '2019-01-01': + - alerts + - locations/alerts + - settings + 2019-01-01-preview: + - regulatoryComplianceStandards + - regulatoryComplianceStandards/regulatoryComplianceControls + - regulatoryComplianceStandards/regulatoryComplianceControls/regulatoryComplianceAssessments + '2018-06-01': + - pricings + 2017-08-01-preview: + - advancedThreatProtectionSettings + - autoProvisioningSettings + - compliances + - deviceSecurityGroups + - informationProtectionPolicies + - securityContacts + - workspaceSettings + 2015-06-01-preview: + - adaptiveNetworkHardenings + - allowedConnections + - discoveredSecuritySolutions + - externalSecuritySolutions + - jitNetworkAccessPolicies + - locations + - locations/ExternalSecuritySolutions + - locations/allowedConnections + - locations/discoveredSecuritySolutions + - locations/jitNetworkAccessPolicies + - locations/tasks + - locations/topologies + - operations + - tasks + - topologies + microsoft.enterpriseknowledgegraph: + '2018-12-03': + - operations + - services + microsoft.managedidentity: + '2018-11-30': + - operations + - userAssignedIdentities + microsoft.guestconfiguration: + '2018-11-20': + - guestConfigurationAssignments + - guestConfigurationAssignments/reports + - operations + microsoft.web: + '2018-11-01': + - certificates + '2018-02-01': + - availableStacks + - billingMeters + - checknameavailability + - deletedSites + - deploymentLocations + - geoRegions + - hostingEnvironments + - hostingEnvironments/capacities + - hostingEnvironments/changeVirtualNetwork + - hostingEnvironments/detectors + - hostingEnvironments/diagnostics + - hostingEnvironments/inboundNetworkDependenciesEndpoints + - hostingEnvironments/metricdefinitions + - hostingEnvironments/metrics + - hostingEnvironments/multiRolePools + - hostingEnvironments/multiRolePools/instances/metricdefinitions + - hostingEnvironments/multiRolePools/instances/metrics + - hostingEnvironments/multiRolePools/metricdefinitions + - hostingEnvironments/multiRolePools/metrics + - hostingEnvironments/multiRolePools/skus + - hostingEnvironments/multiRolePools/usages + - hostingEnvironments/operations + - hostingEnvironments/outboundNetworkDependenciesEndpoints + - hostingEnvironments/reboot + - hostingEnvironments/recommendationHistory + - hostingEnvironments/recommendations + - hostingEnvironments/recommendations/disable + - hostingEnvironments/resume + - hostingEnvironments/serverfarms + - hostingEnvironments/sites + - hostingEnvironments/suspend + - hostingEnvironments/usages + - hostingEnvironments/workerPools + - hostingEnvironments/workerPools/instances/metricdefinitions + - hostingEnvironments/workerPools/instances/metrics + - hostingEnvironments/workerPools/metricdefinitions + - hostingEnvironments/workerPools/metrics + - hostingEnvironments/workerPools/skus + - hostingEnvironments/workerPools/usages + - listSitesAssignedToHostName + - operations + - premieraddonoffers + - publishingUsers + - recommendations + - recommendations/disable + - resourceHealthMetadata + - serverfarms + - serverfarms/capabilities + - serverfarms/hybridConnectionNamespaces/relays + - serverfarms/hybridConnectionNamespaces/relays/listKeys + - serverfarms/hybridConnectionNamespaces/relays/sites + - serverfarms/hybridConnectionPlanLimits + - serverfarms/hybridConnectionRelays + - serverfarms/metricdefinitions + - serverfarms/metrics + - serverfarms/restartSites + - serverfarms/sites + - serverfarms/skus + - serverfarms/usages + - serverfarms/virtualNetworkConnections + - serverfarms/virtualNetworkConnections/gateways + - serverfarms/virtualNetworkConnections/routes + - serverfarms/workers/reboot + - sites + - sites/analyzeCustomHostname + - sites/applySlotConfig + - sites/backup + - sites/backups + - sites/backups/list + - sites/backups/restore + - sites/config + - sites/config/list + - sites/config/snapshots + - sites/config/snapshots/recover + - sites/containerlogs + - sites/containerlogs/download + - sites/continuouswebjobs + - sites/continuouswebjobs/start + - sites/continuouswebjobs/stop + - sites/deployments + - sites/deployments/log + - sites/detectors + - sites/diagnostics + - sites/diagnostics/analyses + - sites/diagnostics/analyses/execute + - sites/diagnostics/detectors + - sites/diagnostics/detectors/execute + - sites/discoverbackup + - sites/domainOwnershipIdentifiers + - sites/extensions + - sites/extensions/log + - sites/functions + - sites/functions/listsecrets + - sites/functions/token + - sites/hostNameBindings + - sites/hybridConnectionNamespaces/relays + - sites/hybridConnectionNamespaces/relays/listKeys + - sites/hybridConnectionRelays + - sites/hybridconnection + - sites/instances + - sites/instances/extensions + - sites/instances/extensions/log + - sites/instances/processes + - sites/instances/processes/dump + - sites/instances/processes/modules + - sites/instances/processes/threads + - sites/iscloneable + - sites/listsyncfunctiontriggerstatus + - sites/metricdefinitions + - sites/metrics + - sites/migrate + - sites/migratemysql + - sites/networkConfig + - sites/networkFeatures + - sites/networkTrace + - sites/networkTraces + - sites/networkTraces/operationresults + - sites/newpassword + - sites/perfcounters + - sites/phplogging + - sites/premieraddons + - sites/privateAccess + - sites/processes + - sites/processes/dump + - sites/processes/modules + - sites/processes/threads + - sites/publicCertificates + - sites/publishxml + - sites/recommendationHistory + - sites/recommendations + - sites/recommendations/disable + - sites/resetSlotConfig + - sites/resourceHealthMetadata + - sites/restart + - sites/restoreFromBackupBlob + - sites/restoreFromDeletedApp + - sites/restoreSnapshot + - sites/siteextensions + - sites/slots + - sites/slots/analyzeCustomHostname + - sites/slots/applySlotConfig + - sites/slots/backup + - sites/slots/backups + - sites/slots/backups/list + - sites/slots/backups/restore + - sites/slots/config + - sites/slots/config/list + - sites/slots/config/snapshots + - sites/slots/config/snapshots/recover + - sites/slots/containerlogs + - sites/slots/containerlogs/download + - sites/slots/continuouswebjobs + - sites/slots/continuouswebjobs/start + - sites/slots/continuouswebjobs/stop + - sites/slots/deployments + - sites/slots/deployments/log + - sites/slots/detectors + - sites/slots/diagnostics + - sites/slots/diagnostics/analyses + - sites/slots/diagnostics/analyses/execute + - sites/slots/diagnostics/detectors + - sites/slots/diagnostics/detectors/execute + - sites/slots/discoverbackup + - sites/slots/domainOwnershipIdentifiers + - sites/slots/extensions + - sites/slots/extensions/log + - sites/slots/functions + - sites/slots/functions/listsecrets + - sites/slots/functions/token + - sites/slots/hostNameBindings + - sites/slots/hybridConnectionNamespaces/relays + - sites/slots/hybridConnectionNamespaces/relays/listKeys + - sites/slots/hybridConnectionRelays + - sites/slots/hybridconnection + - sites/slots/instances + - sites/slots/instances/extensions + - sites/slots/instances/extensions/log + - sites/slots/instances/processes + - sites/slots/instances/processes/dump + - sites/slots/instances/processes/modules + - sites/slots/instances/processes/threads + - sites/slots/iscloneable + - sites/slots/listsyncfunctiontriggerstatus + - sites/slots/metricdefinitions + - sites/slots/metrics + - sites/slots/migratemysql + - sites/slots/networkConfig + - sites/slots/networkFeatures + - sites/slots/networkTrace + - sites/slots/networkTraces + - sites/slots/networkTraces/operationresults + - sites/slots/newpassword + - sites/slots/perfcounters + - sites/slots/phplogging + - sites/slots/premieraddons + - sites/slots/privateAccess + - sites/slots/processes + - sites/slots/processes/dump + - sites/slots/processes/modules + - sites/slots/processes/threads + - sites/slots/publicCertificates + - sites/slots/publishxml + - sites/slots/resetSlotConfig + - sites/slots/resourceHealthMetadata + - sites/slots/restart + - sites/slots/restoreFromBackupBlob + - sites/slots/restoreFromDeletedApp + - sites/slots/restoreSnapshot + - sites/slots/siteextensions + - sites/slots/slotsdiffs + - sites/slots/slotsswap + - sites/slots/snapshots + - sites/slots/snapshotsdr + - sites/slots/sourcecontrols + - sites/slots/start + - sites/slots/startNetworkTrace + - sites/slots/stop + - sites/slots/stopNetworkTrace + - sites/slots/sync + - sites/slots/syncfunctiontriggers + - sites/slots/triggeredwebjobs + - sites/slots/triggeredwebjobs/history + - sites/slots/triggeredwebjobs/run + - sites/slots/usages + - sites/slots/virtualNetworkConnections + - sites/slots/virtualNetworkConnections/gateways + - sites/slots/webjobs + - sites/slotsdiffs + - sites/slotsswap + - sites/snapshots + - sites/snapshotsdr + - sites/sourcecontrols + - sites/start + - sites/startNetworkTrace + - sites/stop + - sites/stopNetworkTrace + - sites/sync + - sites/syncfunctiontriggers + - sites/triggeredwebjobs + - sites/triggeredwebjobs/history + - sites/triggeredwebjobs/run + - sites/usages + - sites/virtualNetworkConnections + - sites/virtualNetworkConnections/gateways + - sites/webjobs + - skus + - sourcecontrols + - validate + - validateContainerSettings + - verifyHostingEnvironmentVnet + '2016-08-01': + - sites/recover + - sites/slots/recover + '2015-08-01': + - classicMobileServices + - csrs + - hostingEnvironments/webhostingplans + - ishostingenvironmentnameavailable + - managedHostingEnvironments + - managedHostingEnvironments/capacities + - managedHostingEnvironments/operations + - managedHostingEnvironments/serverfarms + - managedHostingEnvironments/sites + - managedHostingEnvironments/webhostingplans + - publishingCredentials + - serverfarms/operationresults + - sites/instances/deployments + - sites/operationresults + - sites/slots/instances/deployments + - sites/slots/operationresults + 2015-08-01-preview: + - connections + - connections/confirmConsentCode + - connections/listConnectionKeys + - connections/listConsentLinks + - locations/managedApis + microsoft.billing: + 2018-11-01-preview: + - billingAccounts + - billingAccounts/agreements + - billingAccounts/billingProfiles + - billingAccounts/billingProfiles/availableBalance + - billingAccounts/billingProfiles/billingSubscriptions + - billingAccounts/billingProfiles/invoiceSections + - billingAccounts/billingProfiles/invoices + - billingAccounts/billingProfiles/paymentMethods + - billingAccounts/billingProfiles/policies + - billingAccounts/billingProfiles/transactions + - billingAccounts/billingSubscriptions + - billingAccounts/departments + - billingAccounts/enrollmentAccounts + - billingAccounts/invoiceSections + - billingAccounts/invoiceSections/billingSubscriptions + - billingAccounts/invoiceSections/billingSubscriptions/transfer + - billingAccounts/invoiceSections/elevate + - billingAccounts/invoiceSections/initiateTransfer + - billingAccounts/invoiceSections/products + - billingAccounts/invoiceSections/products/transfer + - billingAccounts/invoiceSections/products/updateAutoRenew + - billingAccounts/invoiceSections/transactions + - billingAccounts/invoiceSections/transfers + - billingAccounts/invoices + - billingAccounts/invoices/pricesheet/download + - billingAccounts/listInvoiceSectionsWithCreateSubscriptionPermission + - billingAccounts/products + - billingAccounts/products/updateAutoRenew + - billingAccounts/transactions + - billingPermissions + - billingProperty + - billingRoleAssignments + - billingRoleDefinitions + - createBillingRoleAssignment + - operations + - transfers + - transfers/acceptTransfer + - transfers/declineTransfer + 2018-03-01-preview: + - billingPeriods + - enrollmentAccounts + - invoices + microsoft.subscription: + 2018-11-01-preview: + - createSubscription + - operations + - subscriptionOperations + 2017-11-01-preview: + - subscriptionDefinitions + microsoft.blueprint: + 2018-11-01-preview: + - blueprintAssignments + - blueprintAssignments/WhoIsBlueprint + - blueprintAssignments/assignmentOperations + - blueprints + - blueprints/artifacts + - blueprints/versions + - blueprints/versions/artifacts + 2017-11-11-preview: + - operations + microsoft.hardwaresecuritymodules: + 2018-10-31-preview: + - dedicatedHSMs + microsoft.labservices: + '2018-10-15': + - labaccounts + - labaccounts/createLab + - labaccounts/galleryimages + - labaccounts/getRegionalAvailability + - labaccounts/labs + - labaccounts/labs/addUsers + - labaccounts/labs/environmentsettings + - labaccounts/labs/environmentsettings/claimAny + - labaccounts/labs/environmentsettings/environments + - labaccounts/labs/environmentsettings/environments/claim + - labaccounts/labs/environmentsettings/environments/resetPassword + - labaccounts/labs/environmentsettings/environments/start + - labaccounts/labs/environmentsettings/environments/stop + - labaccounts/labs/environmentsettings/publish + - labaccounts/labs/environmentsettings/start + - labaccounts/labs/environmentsettings/stop + - labaccounts/labs/register + - labaccounts/labs/users + - locations/operations + - operations + - users/getEnvironment + - users/getOperationBatchStatus + - users/getOperationStatus + - users/getPersonalPreferences + - users/listEnvironments + - users/listLabs + - users/register + - users/resetPassword + - users/startEnvironment + - users/stopEnvironment + microsoft.signalrservice: + '2018-10-01': + - SignalR/listKeys + - SignalR/regenerateKey + - locations/checkNameAvailability + - locations/usages + - operations + - signalR + - signalR/restart + microsoft.containerinstance: + '2018-10-01': + - containerGroups + - containerGroups/containers/exec + - containerGroups/containers/logs + - containerGroups/restart + - containerGroups/start + - containerGroups/stop + - locations/cachedImages + - locations/capabilities + - locations/usages + - operations + - serviceAssociationLinks + microsoft.devtestlab: + '2018-09-15': + - labs + - labs/artifactsources + - labs/artifactsources/armtemplates + - labs/artifactsources/artifacts + - labs/artifactsources/artifacts/generateArmTemplate + - labs/claimAnyVm + - labs/costs + - labs/createEnvironment + - labs/customimages + - labs/exportResourceUsage + - labs/formulas + - labs/galleryimages + - labs/generateUploadUri + - labs/importVirtualMachine + - labs/listVhds + - labs/notificationchannels + - labs/notificationchannels/notify + - labs/policysets/evaluatePolicies + - labs/policysets/policies + - labs/schedules + - labs/schedules/execute + - labs/schedules/listApplicable + - labs/servicerunners + - labs/users + - labs/users/disks + - labs/users/disks/attach + - labs/users/disks/detach + - labs/users/environments + - labs/users/secrets + - labs/users/servicefabrics + - labs/users/servicefabrics/listApplicableSchedules + - labs/users/servicefabrics/schedules + - labs/users/servicefabrics/schedules/execute + - labs/users/servicefabrics/start + - labs/users/servicefabrics/stop + - labs/virtualmachines + - labs/virtualmachines/addDataDisk + - labs/virtualmachines/applyArtifacts + - labs/virtualmachines/claim + - labs/virtualmachines/detachDataDisk + - labs/virtualmachines/getRdpFileContents + - labs/virtualmachines/listApplicableSchedules + - labs/virtualmachines/redeploy + - labs/virtualmachines/resize + - labs/virtualmachines/restart + - labs/virtualmachines/schedules + - labs/virtualmachines/schedules/execute + - labs/virtualmachines/start + - labs/virtualmachines/stop + - labs/virtualmachines/transferDisks + - labs/virtualmachines/unClaim + - labs/virtualnetworks + - locations/operations + - operations + - schedules + - schedules/execute + - schedules/retarget + 2015-05-21-preview: + - labs/costinsights + - labs/costinsights/refreshData + - labs/costs/refreshData + microsoft.engagementfabric: + 2018-09-01-preview: + - Accounts + - Accounts/Channels + - Accounts/listChannelTypes + - Accounts/listKeys + - Accounts/regenerateKey + - checkNameAvailability + - operations + - skus + microsoft.deploymentmanager: + 2018-09-01-preview: + - artifactSources + - operations + - rollouts + - rollouts/cancel + - rollouts/restart + - serviceTopologies + - serviceTopologies/services + - serviceTopologies/services/serviceUnits + - steps + microsoft.authorization: + 2018-09-01-preview: + - roleAssignments + 2018-07-01-preview: + - denyAssignments + '2018-05-01': + - policyAssignments + - policyDefinitions + - policySetDefinitions + 2018-01-01-preview: + - permissions + - providerOperations + - roleDefinitions + '2016-09-01': + - locks + - operations + '2015-07-01': + - classicAdministrators + - elevateAccess + microsoft.servicefabricmesh: + 2018-09-01-preview: + - applications + - applications/services + - applications/services/replicas + - applications/services/replicas/codePackages/logs + - gateways + - networks + - operations + - secrets + - secrets/values + - volumes + microsoft.iotcentral: + '2018-09-01': + - IoTApps + - appTemplates + - checkNameAvailability + - checkSubdomainAvailability + - operations + microsoft.workloadmonitor: + 2018-08-31-preview: + - components + - componentsSummary + - monitorInstances + - monitorInstancesSummary + - monitors + - notificationSettings + - operations + microsoft.healthcareapis: + 2018-08-20-preview: + - checkNameAvailability + - locations/moveResourcesStatus + - locations/operationresults + - moveResources + - operations + - services + microsoft.timeseriesinsights: + 2018-08-15-preview: + - environments + - environments/accessPolicies + - environments/eventSources + - environments/referenceDataSets + - operations + microsoft.datamigration: + 2018-07-15-preview: + - locations/checkNameAvailability + - locations/usages + - operations + - services + - services/checkNameAvailability + - services/checkStatus + - services/projects + - services/projects/files + - services/projects/files/read + - services/projects/files/readwrite + - services/projects/tasks + - services/projects/tasks/cancel + - services/projects/tasks/command + - services/skus + - services/start + - services/stop + - skus + microsoft.botservice: + '2018-07-12': + - botServices + - botServices/Connections/listWithSecrets + - botServices/channels + - botServices/channels/listChannelWithKeys + - botServices/connections + - checkEnterpriseChannelNameAvailability + - checkNameAvailability + - enterpriseChannels + - listAuthServiceProviders + - operations + microsoft.recoveryservices: + '2018-07-10': + - operations + - vaults/replicationAlertSettings + - vaults/replicationEvents + - vaults/replicationFabrics + - vaults/replicationFabrics/checkConsistency + - vaults/replicationFabrics/migratetoaad + - vaults/replicationFabrics/reassociateGateway + - vaults/replicationFabrics/remove + - vaults/replicationFabrics/renewCertificate + - vaults/replicationFabrics/replicationLogicalNetworks + - vaults/replicationFabrics/replicationNetworks + - vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings + - vaults/replicationFabrics/replicationProtectionContainers + - vaults/replicationFabrics/replicationProtectionContainers/discoverProtectableItem + - vaults/replicationFabrics/replicationProtectionContainers/remove + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/migrate + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/migrationRecoveryPoints + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/testMigrate + - vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/testMigrateCleanup + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectableItems + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/ResolveHealthErrors + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/addDisks + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/applyRecoveryPoint + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/failoverCommit + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/plannedFailover + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/reProtect + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/recoveryPoints + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/remove + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/removeDisks + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/repairReplication + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/targetComputeSizes + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/testFailover + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/testFailoverCleanup + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/unplannedFailover + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/updateMobilityService + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings + - vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings/remove + - vaults/replicationFabrics/replicationProtectionContainers/switchprotection + - vaults/replicationFabrics/replicationRecoveryServicesProviders + - vaults/replicationFabrics/replicationRecoveryServicesProviders/refreshProvider + - vaults/replicationFabrics/replicationRecoveryServicesProviders/remove + - vaults/replicationFabrics/replicationStorageClassifications + - vaults/replicationFabrics/replicationStorageClassifications/replicationStorageClassificationMappings + - vaults/replicationFabrics/replicationvCenters + - vaults/replicationJobs + - vaults/replicationJobs/cancel + - vaults/replicationJobs/restart + - vaults/replicationJobs/resume + - vaults/replicationMigrationItems + - vaults/replicationNetworkMappings + - vaults/replicationNetworks + - vaults/replicationPolicies + - vaults/replicationProtectedItems + - vaults/replicationProtectionContainerMappings + - vaults/replicationProtectionContainers + - vaults/replicationRecoveryPlans + - vaults/replicationRecoveryPlans/failoverCommit + - vaults/replicationRecoveryPlans/plannedFailover + - vaults/replicationRecoveryPlans/reProtect + - vaults/replicationRecoveryPlans/testFailover + - vaults/replicationRecoveryPlans/testFailoverCleanup + - vaults/replicationRecoveryPlans/unplannedFailover + - vaults/replicationRecoveryServicesProviders + - vaults/replicationStorageClassificationMappings + - vaults/replicationStorageClassifications + - vaults/replicationSupportedOperatingSystems + - vaults/replicationVaultHealth + - vaults/replicationVaultHealth/refresh + - vaults/replicationvCenters + '2017-07-01': + - locations/backupPreValidateProtection + - locations/backupStatus + - locations/backupValidateFeatures + - vaults/backupFabrics/backupProtectionIntent + - vaults/backupJobs + - vaults/backupJobsExport + - vaults/backupPolicies + - vaults/backupProtectedItems + - vaults/backupProtectionIntents + - vaults/backupUsageSummaries + - vaults/backupValidateOperation + '2016-12-01': + - vaults/backupEngines + - vaults/backupFabrics/operationResults + - vaults/backupFabrics/protectableContainers + - vaults/backupFabrics/protectionContainers + - vaults/backupFabrics/protectionContainers/inquire + - vaults/backupFabrics/protectionContainers/items + - vaults/backupFabrics/protectionContainers/operationResults + - vaults/backupFabrics/protectionContainers/protectedItems + - vaults/backupFabrics/protectionContainers/protectedItems/backup + - vaults/backupFabrics/protectionContainers/protectedItems/operationResults + - vaults/backupFabrics/protectionContainers/protectedItems/operationsStatus + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/provisionInstantItemRecovery + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/restore + - vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/revokeInstantItemRecovery + - vaults/backupFabrics/refreshContainers + - vaults/backupJobs/cancel + - vaults/backupJobs/operationResults + - vaults/backupOperationResults + - vaults/backupOperations + - vaults/backupPolicies/operationResults + - vaults/backupPolicies/operations + - vaults/backupProtectableItems + - vaults/backupProtectionContainers + - vaults/backupSecurityPIN + - vaults/backupconfig + - vaults/backupstorageconfig + '2016-06-01': + - locations/checkNameAvailability + - vaults + - vaults/certificates + - vaults/extendedInformation + - vaults/registeredIdentities + - vaults/replicationUsages + - vaults/usages + microsoft.media: + '2018-07-01': + - locations/checkNameAvailability + - mediaServices/accountFilters + - mediaServices/assets + - mediaServices/assets/assetFilters + - mediaServices/assets/getEncryptionKey + - mediaServices/assets/listContainerSas + - mediaServices/assets/listStreamingLocators + - mediaServices/contentKeyPolicies + - mediaServices/contentKeyPolicies/getPolicyPropertiesWithSecrets + - mediaServices/streamingLocators + - mediaServices/streamingLocators/listContentKeys + - mediaServices/streamingLocators/listPaths + - mediaServices/streamingPolicies + - mediaServices/transforms + - mediaServices/transforms/jobs + - mediaServices/transforms/jobs/cancelJob + - mediaservices + - mediaservices/liveEvents + - mediaservices/liveEvents/liveOutputs + - mediaservices/liveEvents/reset + - mediaservices/liveEvents/start + - mediaservices/liveEvents/stop + - mediaservices/streamingEndpoints + - mediaservices/streamingEndpoints/scale + - mediaservices/streamingEndpoints/start + - mediaservices/streamingEndpoints/stop + - mediaservices/syncStorageKeys + - operations + '2015-10-01': + - CheckNameAvailability + - mediaservices/listKeys + - mediaservices/regenerateKey + microsoft.logic: + 2018-07-01-preview: + - integrationAccounts + - integrationAccounts/agreements + - integrationAccounts/agreements/listContentCallbackUrl + - integrationAccounts/assemblies + - integrationAccounts/assemblies/listContentCallbackUrl + - integrationAccounts/batchConfigurations + - integrationAccounts/certificates + - integrationAccounts/listCallbackUrl + - integrationAccounts/listKeyVaultKeys + - integrationAccounts/logTrackingEvents + - integrationAccounts/maps + - integrationAccounts/maps/listContentCallbackUrl + - integrationAccounts/partners + - integrationAccounts/partners/listContentCallbackUrl + - integrationAccounts/regenerateAccessKey + - integrationAccounts/schemas + - integrationAccounts/schemas/listContentCallbackUrl + - integrationAccounts/sessions + - locations/workflows/validate + - operations + - workflows + - workflows/disable + - workflows/enable + - workflows/generateUpgradedDefinition + - workflows/listCallbackUrl + - workflows/listSwagger + - workflows/move + - workflows/regenerateAccessKey + - workflows/runs + - workflows/runs/actions + - workflows/runs/actions/listExpressionTraces + - workflows/runs/actions/repetitions + - workflows/runs/actions/repetitions/listExpressionTraces + - workflows/runs/actions/repetitions/requestHistories + - workflows/runs/actions/requestHistories + - workflows/runs/actions/scopeRepetitions + - workflows/runs/cancel + - workflows/runs/operations + - workflows/triggers + - workflows/triggers/histories + - workflows/triggers/histories/resubmit + - workflows/triggers/listCallbackUrl + - workflows/triggers/reset + - workflows/triggers/run + - workflows/triggers/schemas + - workflows/triggers/setState + - workflows/validate + - workflows/versions + - workflows/versions/triggers/listCallbackUrl + 2015-02-01-preview: + - workflows/accessKeys + - workflows/accessKeys/list + - workflows/accessKeys/regenerate + - workflows/run + microsoft.policyinsights: + 2018-07-01-preview: + - operations + - policyStates/queryResults + - policyStates/summarize + - policyTrackedResources/queryResults + - remediations + - remediations/cancel + - remediations/listDeployments + '2018-04-04': + - policyEvents/queryResults + microsoft.automation: + '2018-06-30': + - automationAccounts/python2Packages + - automationAccounts/runbooks + - automationAccounts/runbooks/content + - automationAccounts/runbooks/draft + - automationAccounts/runbooks/draft/resume + - automationAccounts/runbooks/draft/stop + - automationAccounts/runbooks/draft/streams + - automationAccounts/runbooks/draft/suspend + - automationAccounts/runbooks/publish + '2018-01-15': + - automationAccounts/agentRegistrationInformation + - automationAccounts/compilationjobs + - automationAccounts/compilationjobs/streams + - automationAccounts/nodeConfigurations + - automationAccounts/nodecounts + - automationAccounts/nodes + - automationAccounts/nodes/reports + - automationAccounts/nodes/reports/content + 2017-05-15-preview: + - automationAccounts/jobs + - automationAccounts/jobs/output + - automationAccounts/jobs/resume + - automationAccounts/jobs/runbookContent + - automationAccounts/jobs/stop + - automationAccounts/jobs/streams + - automationAccounts/jobs/suspend + - automationAccounts/softwareUpdateConfigurationMachineRuns + - automationAccounts/softwareUpdateConfigurationRuns + - automationAccounts/softwareUpdateConfigurations + - automationAccounts/sourceControls + - automationAccounts/sourceControls/sourceControlSyncJobs + - automationAccounts/sourceControls/sourceControlSyncJobs/streams + '2015-10-31': + - automationAccounts + - automationAccounts/certificates + - automationAccounts/configurations + - automationAccounts/configurations/content + - automationAccounts/connectionTypes + - automationAccounts/connections + - automationAccounts/credentials + - automationAccounts/hybridRunbookWorkerGroups + - automationAccounts/jobSchedules + - automationAccounts/linkedWorkspace + - automationAccounts/listKeys + - automationAccounts/modules + - automationAccounts/modules/activities + - automationAccounts/modules/objectDataTypes/fields + - automationAccounts/modules/types/fields + - automationAccounts/objectDataTypes/fields + - automationAccounts/schedules + - automationAccounts/statistics + - automationAccounts/usages + - automationAccounts/variables + - automationAccounts/watchers + - automationAccounts/watchers/start + - automationAccounts/watchers/stop + - automationAccounts/webhooks + - operations + microsoft.datafactory: + '2018-06-01': + - factories + - factories/datasets + - factories/getDataPlaneAccess + - factories/getFeatureValue + - factories/getGitHubAccessToken + - factories/integrationRuntimes + - factories/integrationRuntimes/getConnectionInfo + - factories/integrationRuntimes/getObjectMetadata + - factories/integrationRuntimes/getStatus + - factories/integrationRuntimes/linkedIntegrationRuntime + - factories/integrationRuntimes/listAuthKeys + - factories/integrationRuntimes/monitoringData + - factories/integrationRuntimes/nodes + - factories/integrationRuntimes/nodes/ipAddress + - factories/integrationRuntimes/refreshObjectMetadata + - factories/integrationRuntimes/regenerateAuthKey + - factories/integrationRuntimes/removeLinks + - factories/integrationRuntimes/start + - factories/integrationRuntimes/stop + - factories/integrationRuntimes/syncCredentials + - factories/integrationRuntimes/upgrade + - factories/linkedservices + - factories/pipelineruns + - factories/pipelineruns/cancel + - factories/pipelineruns/queryActivityruns + - factories/pipelines + - factories/pipelines/createRun + - factories/queryPipelineRuns + - factories/queryTriggerRuns + - factories/triggers + - factories/triggers/rerunTriggers + - factories/triggers/rerunTriggers/cancel + - factories/triggers/rerunTriggers/start + - factories/triggers/rerunTriggers/stop + - factories/triggers/start + - factories/triggers/stop + - locations/configureFactoryRepo + - locations/getFeatureValue + - operations + 2017-09-01-preview: + - factories/cancelpipelinerun + - factories/integrationRuntimes/removeNode + - factories/pipelineruns/activityruns + - factories/triggers/triggerruns + microsoft.sql: + 2018-06-01-preview: + - managedInstances/databases/currentSensitivityLabels + - managedInstances/databases/recommendedSensitivityLabels + - managedInstances/databases/schemas/tables/columns/sensitivityLabels + - managedInstances/databases/schemas/tables/columns/sensitivityLabels/disable + - managedInstances/databases/schemas/tables/columns/sensitivityLabels/enable + - managedInstances/vulnerabilityAssessments + - servers/databases/securityAlertPolicies + - servers/vulnerabilityAssessments + 2017-10-01-preview: + - locations/capabilities + - locations/instanceFailoverGroups + - locations/instanceFailoverGroups/failover + - locations/instanceFailoverGroups/forceFailoverAllowDataLoss + - managedInstances/databases/vulnerabilityAssessments + - managedInstances/databases/vulnerabilityAssessments/rules/baselines + - managedInstances/databases/vulnerabilityAssessments/scans + - managedInstances/databases/vulnerabilityAssessments/scans/export + - managedInstances/databases/vulnerabilityAssessments/scans/initiateScan + - managedInstances/encryptionProtector + - managedInstances/keys + - managedInstances/recoverableDatabases + - managedInstances/tdeCertificates + - servers/databases + - servers/databases/backupShortTermRetentionPolicies + - servers/databases/move + - servers/databases/operations + - servers/databases/operations/cancel + - servers/databases/pause + - servers/databases/resume + - servers/databases/upgradeDataWarehouse + - servers/databases/vulnerabilityAssessments/scans + - servers/databases/vulnerabilityAssessments/scans/export + - servers/databases/vulnerabilityAssessments/scans/initiateScan + - servers/elasticPools + - servers/elasticPools/databases + - servers/elasticPools/operations + - servers/elasticPools/operations/cancel + - servers/tdeCertificates + 2017-03-01-preview: + - locations/longTermRetentionBackups + - locations/longTermRetentionServers/longTermRetentionBackups + - locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups + - locations/managedDatabaseRestoreAzureAsyncOperation/completeRestore + - managedInstances/databases + - managedInstances/databases/backupShortTermRetentionPolicies + - managedInstances/databases/securityAlertPolicies + - managedInstances/restorableDroppedDatabases + - managedInstances/restorableDroppedDatabases/backupShortTermRetentionPolicies + - managedInstances/securityAlertPolicies + - servers/auditingSettings + - servers/automaticTuning + - servers/databases/auditingSettings + - servers/databases/backupLongTermRetentionPolicies + - servers/databases/currentSensitivityLabels + - servers/databases/dataWarehouseUserActivities + - servers/databases/export + - servers/databases/extendedAuditingSettings + - servers/databases/recommendedSensitivityLabels + - servers/databases/restorePoints + - servers/databases/schemas/tables/columns/sensitivityLabels + - servers/databases/schemas/tables/columns/sensitivityLabels/disable + - servers/databases/schemas/tables/columns/sensitivityLabels/enable + - servers/databases/vulnerabilityAssessments + - servers/databases/vulnerabilityAssessments/rules/baselines + - servers/dnsAliases + - servers/dnsAliases/acquire + - servers/extendedAuditingSettings + - servers/jobAgents + - servers/jobAgents/credentials + - servers/jobAgents/executions + - servers/jobAgents/jobs + - servers/jobAgents/jobs/executions + - servers/jobAgents/jobs/executions/cancel + - servers/jobAgents/jobs/executions/steps + - servers/jobAgents/jobs/executions/steps/targets + - servers/jobAgents/jobs/executions/targets + - servers/jobAgents/jobs/start + - servers/jobAgents/jobs/steps + - servers/jobAgents/jobs/versions + - servers/jobAgents/jobs/versions/steps + - servers/jobAgents/targetGroups + - servers/securityAlertPolicies + 2015-05-01-preview: + - instancePools/managedInstances + - locations/syncDatabaseIds + - locations/usages + - managedInstances + - operations + - servers + - servers/advisors + - servers/databases/advisors + - servers/databases/advisors/recommendedActions + - servers/databases/automaticTuning + - servers/databases/syncGroups + - servers/databases/syncGroups/cancelSync + - servers/databases/syncGroups/hubSchemas + - servers/databases/syncGroups/logs + - servers/databases/syncGroups/refreshHubSchema + - servers/databases/syncGroups/syncMembers + - servers/databases/syncGroups/syncMembers/refreshSchema + - servers/databases/syncGroups/syncMembers/schemas + - servers/databases/syncGroups/triggerSync + - servers/encryptionProtector + - servers/failoverGroups + - servers/failoverGroups/failover + - servers/failoverGroups/forceFailoverAllowDataLoss + - servers/firewallRules + - servers/keys + - servers/syncAgents + - servers/syncAgents/generateKey + - servers/syncAgents/linkedDatabases + - servers/virtualNetworkRules + - virtualClusters + '2014-04-01': + - checkNameAvailability + - servers/administrators + - servers/auditingPolicies + - servers/backupLongTermRetentionVaults + - servers/communicationLinks + - servers/connectionPolicies + - servers/databases/auditingPolicies + - servers/databases/connectionPolicies + - servers/databases/dataMaskingPolicies + - servers/databases/dataMaskingPolicies/rules + - servers/databases/extensions + - servers/databases/geoBackupPolicies + - servers/databases/metricDefinitions + - servers/databases/metrics + - servers/databases/replicationLinks + - servers/databases/replicationLinks/failover + - servers/databases/replicationLinks/forceFailoverAllowDataLoss + - servers/databases/serviceTierAdvisors + - servers/databases/topQueries + - servers/databases/topQueries/queryText + - servers/databases/topQueries/statistics + - servers/databases/transparentDataEncryption + - servers/databases/transparentDataEncryption/operationResults + - servers/databases/usages + - servers/disasterRecoveryConfiguration + - servers/disasterRecoveryConfiguration/failover + - servers/disasterRecoveryConfiguration/forceFailoverAllowDataLoss + - servers/elasticPools/elasticPoolActivity + - servers/elasticPools/elasticPoolDatabaseActivity + - servers/elasticPools/metricDefinitions + - servers/elasticPools/metrics + - servers/import + - servers/recommendedElasticPools + - servers/recommendedElasticPools/databases + - servers/recommendedElasticPools/metrics + - servers/recoverableDatabases + - servers/restorableDroppedDatabases + - servers/serviceObjectives + - servers/usages + microsoft.solutions: + '2018-06-01': + - applicationDefinitions + - applications + 2016-09-01-preview: + - applianceDefinitions + - appliances + - operations + microsoft.hdinsight: + 2018-06-01-preview: + - clusters + - clusters/applications + - clusters/configurations + - clusters/executeScriptActions + - clusters/extensions + - clusters/getGatewaySettings + - clusters/roles/resize + - clusters/rotatediskencryptionkey + - clusters/scriptActions + - clusters/scriptExecutionHistory + - clusters/scriptExecutionHistory/promote + - clusters/updateGatewaySettings + - locations/usages + - operations + 2015-03-01-preview: + - locations/capabilities + microsoft.dbformariadb: + '2018-06-01': + - checkNameAvailability + - locations/performanceTiers + - operations + - servers/configurations + - servers/databases + - servers/firewallRules + - servers/logFiles + - servers/replicas + - servers/restart + - servers/securityAlertPolicies + - servers/virtualNetworkRules + 2018-06-01-preview: + - servers + microsoft.managedservices: + 2018-06-01-preview: + - operations + - registrationAssignments + - registrationDefinitions + microsoft.alertsmanagement: + 2018-05-05-preview: + - alerts + '2018-05-05': + - alerts/changestate + - alerts/history + - alertsSummary + - operations + - smartGroups + - smartGroups/changeState + - smartGroups/history + microsoft.resources: + '2018-05-01': + - deployments + - deployments/cancel + - deployments/exportTemplate + - deployments/operations + - deployments/validate + - operations + '2016-09-01': + - links + microsoft.maps: + '2018-05-01': + - accounts + - accounts/listKeys + - accounts/regenerateKey + - operations + microsoft.serialconsole: + '2018-05-01': + - consoleServices + - consoleServices/disableConsole + - consoleServices/enableConsole + - operations + microsoft.batchai: + '2018-05-01': + - locations/usages + - operations + - workspaces + - workspaces/clusters + - workspaces/clusters/listRemoteLoginInformation + - workspaces/experiments + - workspaces/experiments/jobs + - workspaces/experiments/jobs/listOutputFiles + - workspaces/experiments/jobs/listRemoteLoginInformation + - workspaces/experiments/jobs/terminate + - workspaces/fileServers + '2018-03-01': + - clusters + - clusters/listRemoteLoginInformation + - fileServers + - jobs + - jobs/listOutputFiles + - jobs/listRemoteLoginInformation + - jobs/terminate + microsoft.databricks: + '2018-04-01': + - operations + - workspaces + microsoft.addons: + '2018-03-01': + - operations + - supportProviders/listSupportPlanInfo + - supportProviders/supportPlanTypes + microsoft.cache: + '2018-03-01': + - CheckNameAvailability + - Redis + - Redis/export + - Redis/firewallRules + - Redis/forceReboot + - Redis/import + - Redis/linkedServers + - Redis/listKeys + - Redis/listUpgradeNotifications + - Redis/patchSchedules + - Redis/regenerateKey + - operations + microsoft.machinelearningservices: + 2018-03-01-preview: + - operations + - workspaces + - workspaces/computes + - workspaces/computes/listKeys + - workspaces/listKeys + - workspaces/resyncKeys + microsoft.management: + 2018-03-01-preview: + - checkNameAvailability + - getEntities + - managementGroups + - managementGroups/subscriptions + - operations + - startTenantBackfill + - tenantBackfillStatus + microsoft.windowsiot: + 2018-02-16-preview: + - checkDeviceServiceNameAvailability + - deviceServices + - operations + microsoft.keyvault: + '2018-02-14': + - checkNameAvailability + - deletedVaults + - locations/deletedVaults + - locations/deletedVaults/purge + - operations + - vaults + - vaults/accessPolicies + microsoft.migrate: + '2018-02-02': + - locations/assessmentOptions + - locations/checkNameAvailability + - operations + - projects + - projects/assessments + - projects/groups + - projects/groups/assessments + - projects/groups/assessments/assessedMachines + - projects/groups/assessments/downloadUrl + - projects/keys + - projects/machines + microsoft.managementpartner: + '2018-02-01': + - operations + - partners + microsoft.servicefabric: + '2018-02-01': + - clusters + - locations/clusterVersions + - locations/environments/clusterVersions + - operations + 2017-07-01-preview: + - clusters/applicationTypes + - clusters/applicationTypes/versions + - clusters/applications + - clusters/applications/services + microsoft.domainregistration: + '2018-02-01': + - checkDomainAvailability + - domains + - domains/domainOwnershipIdentifiers + - domains/renew + - generateSsoRequest + - listDomainRecommendations + - operations + - topLevelDomains + - topLevelDomains/listAgreements + '2015-08-01': + - domains/operationresults + - validateDomainRegistrationInformation + microsoft.certificateregistration: + '2018-02-01': + - certificateOrders + - certificateOrders/certificates + - certificateOrders/reissue + - certificateOrders/renew + - certificateOrders/resendEmail + - certificateOrders/resendRequestEmails + - certificateOrders/retrieveCertificateActions + - certificateOrders/retrieveEmailHistory + - certificateOrders/retrieveSiteSeal + - certificateOrders/verifyDomainOwnership + - operations + - validateCertificateRegistrationInformation + microsoft.servicebus: + 2018-01-01-preview: + - namespaces + - namespaces/ipfilterrules + - namespaces/networkrulesets + - namespaces/virtualnetworkrules + - operations + '2017-04-01': + - CheckNameAvailability + - namespaces/AuthorizationRules + - namespaces/AuthorizationRules/listKeys + - namespaces/AuthorizationRules/regenerateKeys + - namespaces/disasterRecoveryConfigs + - namespaces/disasterRecoveryConfigs/AuthorizationRules + - namespaces/disasterRecoveryConfigs/AuthorizationRules/listKeys + - namespaces/disasterRecoveryConfigs/breakPairing + - namespaces/disasterRecoveryConfigs/failover + - namespaces/eventhubs + - namespaces/migrate + - namespaces/migrationConfigurations + - namespaces/migrationConfigurations/revert + - namespaces/migrationConfigurations/upgrade + - namespaces/queues + - namespaces/queues/authorizationRules + - namespaces/queues/authorizationRules/ListKeys + - namespaces/queues/authorizationRules/regenerateKeys + - namespaces/topics + - namespaces/topics/authorizationRules + - namespaces/topics/authorizationRules/ListKeys + - namespaces/topics/authorizationRules/regenerateKeys + - namespaces/topics/subscriptions + - namespaces/topics/subscriptions/rules + - premiumMessagingRegions + - sku/regions + microsoft.databox: + '2018-01-01': + - jobs + - jobs/bookShipmentPickUp + - jobs/cancel + - jobs/listCredentials + - locations/availableSkus + - locations/validateAddress + - operations + microsoft.eventhub: + 2018-01-01-preview: + - availableClusters + - clusters + - clusters/namespaces + - clusters/quotaConfiguration + - namespaces + - namespaces/ipfilterrules + - namespaces/networkRuleSets + - namespaces/virtualnetworkrules + - operations + '2017-04-01': + - CheckNameAvailability + - namespaces/AuthorizationRules + - namespaces/AuthorizationRules/listKeys + - namespaces/AuthorizationRules/regenerateKeys + - namespaces/disasterRecoveryConfigs + - namespaces/disasterRecoveryConfigs/AuthorizationRules + - namespaces/disasterRecoveryConfigs/AuthorizationRules/listKeys + - namespaces/disasterRecoveryConfigs/breakPairing + - namespaces/disasterRecoveryConfigs/failover + - namespaces/eventhubs + - namespaces/eventhubs/authorizationRules + - namespaces/eventhubs/authorizationRules/ListKeys + - namespaces/eventhubs/authorizationRules/regenerateKeys + - namespaces/eventhubs/consumergroups + - namespaces/messagingplan + - sku/regions + '2014-09-01': + - CheckNamespaceAvailability + microsoft.dbforpostgresql: + 2017-12-01-preview: + - operations + - servers + - servers/Replicas + - servers/configurations + - servers/databases + '2017-12-01': + - checkNameAvailability + - locations/performanceTiers + - servers/firewallRules + - servers/logFiles + - servers/restart + - servers/securityAlertPolicies + - servers/virtualNetworkRules + microsoft.dbformysql: + 2017-12-01-preview: + - checkNameAvailability + - locations/performanceTiers + - operations + - servers + - servers/configurations + - servers/databases + - servers/firewallRules + - servers/logFiles + '2017-12-01': + - servers/replicas + - servers/restart + - servers/securityAlertPolicies + - servers/virtualNetworkRules + microsoft.hanaonazure: + 2017-11-03-preview: + - hanaInstances + - hanaInstances/monitoring + - hanaInstances/restart + - operations + microsoft.cdn: + '2017-10-12': + - checkNameAvailability + - checkResourceUsage + - edgenodes + - operations + - profiles + - profiles/checkResourceUsage + - profiles/endpoints + - profiles/endpoints/checkResourceUsage + - profiles/endpoints/customDomains + - profiles/endpoints/customDomains/disableCustomHttps + - profiles/endpoints/customDomains/enableCustomHttps + - profiles/endpoints/load + - profiles/endpoints/origins + - profiles/endpoints/purge + - profiles/endpoints/start + - profiles/endpoints/stop + - profiles/endpoints/validateCustomDomain + - profiles/generateSsoUri + - profiles/getSupportedOptimizationTypes + - validateProbe + microsoft.powerbidedicated: + '2017-10-01': + - capacities + - capacities/resume + - capacities/skus + - capacities/suspend + - locations/checkNameAvailability + - operations + - skus + microsoft.iotspaces: + 2017-10-01-preview: + - Graph + - checkNameAvailability + - operations + microsoft.operationalinsights: + '2017-10-01': + - workspaces/query + 2015-11-01-preview: + - operations + - workspaces + - workspaces/dataSources + - workspaces/features/clientGroups + - workspaces/features/clientGroups/members + - workspaces/features/clientGroups/membersCount + - workspaces/features/generateMap + - workspaces/features/machineGroups + - workspaces/features/machines + - workspaces/features/machines/connections + - workspaces/features/machines/liveness + - workspaces/features/machines/machineGroups + - workspaces/features/machines/ports + - workspaces/features/machines/ports/acceptingProcesses + - workspaces/features/machines/ports/connections + - workspaces/features/machines/ports/liveness + - workspaces/features/machines/processes + - workspaces/features/machines/processes/acceptingPorts + - workspaces/features/machines/processes/connections + - workspaces/features/machines/processes/liveness + - workspaces/features/summaries + - workspaces/intelligencePacks + - workspaces/intelligencePacks/Disable + - workspaces/intelligencePacks/Enable + - workspaces/linkedServices + - workspaces/managementGroups + - workspaces/sharedKeys + - workspaces/usages + '2015-03-20': + - linkTargets + - workspaces/gateways + - workspaces/listKeys + - workspaces/operations + - workspaces/purge + - workspaces/regenerateSharedKey + - workspaces/savedSearches + - workspaces/savedSearches/results + - workspaces/schema + - workspaces/search + - workspaces/storageInsightConfigs + microsoft.analysisservices: + '2017-08-01': + - locations/checkNameAvailability + - locations/operationresults + - locations/operationstatuses + - operations + - servers + - servers/dissociateGateway + - servers/listGatewayStatus + - servers/resume + - servers/skus + - servers/suspend + - skus + microsoft.machinelearningcompute: + 2017-08-01-preview: + - operationalizationClusters + - operationalizationClusters/checkSystemServicesUpdatesAvailable + - operationalizationClusters/listKeys + - operationalizationClusters/updateSystemServices + - operations + 2017-06-01-preview: + - operationalizationClusters/checkUpdate + - operationalizationClusters/updateSystem + microsoft.resourcehealth: + '2017-07-01': + - availabilityStatuses + - childAvailabilityStatuses + - childResources + - operations + microsoft.storsimple: + '2017-06-01': + - managers + - managers/accessControlRecords + - managers/alerts + - managers/bandwidthSettings + - managers/clearAlerts + - managers/cloudApplianceConfigurations + - managers/configureDevice + - managers/devices + - managers/devices/alertSettings + - managers/devices/authorizeForServiceEncryptionKeyRollover + - managers/devices/backupPolicies + - managers/devices/backupPolicies/backup + - managers/devices/backupPolicies/schedules + - managers/devices/backups + - managers/devices/backups/elements/clone + - managers/devices/backups/restore + - managers/devices/deactivate + - managers/devices/failover + - managers/devices/hardwareComponentGroups + - managers/devices/hardwareComponentGroups/changeControllerPowerState + - managers/devices/installUpdates + - managers/devices/jobs + - managers/devices/jobs/cancel + - managers/devices/listFailoverSets + - managers/devices/listFailoverTargets + - managers/devices/metrics + - managers/devices/metricsDefinitions + - managers/devices/networkSettings + - managers/devices/publicEncryptionKey + - managers/devices/scanForUpdates + - managers/devices/securitySettings + - managers/devices/securitySettings/syncRemoteManagementCertificate + - managers/devices/sendTestAlertEmail + - managers/devices/timeSettings + - managers/devices/updateSummary + - managers/devices/volumeContainers + - managers/devices/volumeContainers/metrics + - managers/devices/volumeContainers/metricsDefinitions + - managers/devices/volumeContainers/volumes + - managers/devices/volumeContainers/volumes/metrics + - managers/devices/volumeContainers/volumes/metricsDefinitions + - managers/devices/volumes + - managers/encryptionSettings + - managers/extendedInformation + - managers/features + - managers/jobs + - managers/listActivationKey + - managers/listPublicEncryptionKey + - managers/metrics + - managers/metricsDefinitions + - managers/provisionCloudAppliance + - managers/regenerateActivationKey + - managers/storageAccountCredentials + - operations + '2016-10-01': + - managers/backups + - managers/certificates + - managers/devices/backupScheduleGroups + - managers/devices/chapSettings + - managers/devices/disks + - managers/devices/download + - managers/devices/failoverTargets + - managers/devices/fileservers + - managers/devices/fileservers/backup + - managers/devices/fileservers/metrics + - managers/devices/fileservers/metricsDefinitions + - managers/devices/fileservers/shares + - managers/devices/fileservers/shares/metrics + - managers/devices/fileservers/shares/metricsDefinitions + - managers/devices/install + - managers/devices/iscsiservers + - managers/devices/iscsiservers/backup + - managers/devices/iscsiservers/disks + - managers/devices/iscsiservers/disks/metrics + - managers/devices/iscsiservers/disks/metricsDefinitions + - managers/devices/iscsiservers/metrics + - managers/devices/iscsiservers/metricsDefinitions + - managers/devices/securitySettings/update + - managers/devices/shares + - managers/fileservers + - managers/getEncryptionKey + - managers/iscsiservers + - managers/storageDomains + microsoft.aad: + '2017-06-01': + - domainServices + - operations + microsoft.azurestack: + '2017-06-01': + - operations + - registrations + - registrations/customerSubscriptions + - registrations/getactivationkey + - registrations/products + - registrations/products/listDetails + microsoft.machinelearningexperimentation: + 2017-05-01-preview: + - accounts + - accounts/workspaces + - accounts/workspaces/projects + - operations + microsoft.customerinsights: + '2017-04-26': + - hubs + - hubs/authorizationPolicies + - hubs/authorizationPolicies/regeneratePrimaryKey + - hubs/authorizationPolicies/regenerateSecondaryKey + - hubs/connectors + - hubs/connectors/mappings + - hubs/images + - hubs/interactions + - hubs/interactions/suggestRelationshipLinks + - hubs/kpi + - hubs/kpi/reprocess + - hubs/links + - hubs/predictions + - hubs/predictions/getModelStatus + - hubs/predictions/getTrainingResults + - hubs/predictions/modelStatus + - hubs/profiles + - hubs/profiles/getEnrichingKpis + - hubs/relationshipLinks + - hubs/relationships + - hubs/roleAssignments + - hubs/roles + - hubs/views + - hubs/widgetTypes + - operations + microsoft.advisor: + '2017-04-19': + - configurations + - generateRecommendations + - operations + - recommendations + - recommendations/suppressions + - suppressions + microsoft.cognitiveservices: + '2017-04-18': + - accounts + - accounts/listKeys + - accounts/regenerateKey + - accounts/skus + - accounts/usages + - locations/checkSkuAvailability + - operations + - skus + microsoft.notificationhubs: + '2017-04-01': + - checkNamespaceAvailability + - namespaces + - namespaces/AuthorizationRules + - namespaces/AuthorizationRules/listKeys + - namespaces/AuthorizationRules/regenerateKeys + - namespaces/checkNotificationHubAvailability + - namespaces/notificationHubs + - namespaces/notificationHubs/AuthorizationRules + - namespaces/notificationHubs/AuthorizationRules/listKeys + - namespaces/notificationHubs/AuthorizationRules/regenerateKeys + - namespaces/notificationHubs/debugsend + - namespaces/notificationHubs/pnsCredentials + - operations + microsoft.relay: + '2017-04-01': + - checkNameAvailability + - namespaces + - namespaces/authorizationRules + - namespaces/authorizationRules/listKeys + - namespaces/authorizationRules/regenerateKeys + - namespaces/hybridConnections + - namespaces/hybridConnections/authorizationRules + - namespaces/hybridConnections/authorizationRules/listKeys + - namespaces/hybridConnections/authorizationRules/regenerateKeys + - namespaces/wcfRelays + - namespaces/wcfRelays/authorizationRules + - namespaces/wcfRelays/authorizationRules/listKeys + - namespaces/wcfRelays/authorizationRules/regenerateKeys + - operations + microsoft.sqlvirtualmachine: + 2017-03-01-preview: + - operations + - sqlVirtualMachineGroups + - sqlVirtualMachineGroups/availabilityGroupListeners + - sqlVirtualMachines + microsoft.machinelearning: + '2017-01-01': + - operations + - webServices + - webServices/CreateRegionalBlob + - webServices/listKeys + 2016-05-01-preview: + - commitmentPlans + - commitmentPlans/commitmentAssociations + - commitmentPlans/commitmentAssociations/move + - commitmentPlans/usageHistory + - skus + '2016-04-01': + - workspaces + - workspaces/listWorkspaceKeys + - workspaces/resyncStorageKeys + microsoft.datalakeanalytics: + '2016-11-01': + - accounts + - accounts/computePolicies + - accounts/dataLakeStoreAccounts + - accounts/firewallRules + - accounts/storageAccounts + - accounts/storageAccounts/containers + - accounts/storageAccounts/containers/listSasTokens + - locations/capability + - locations/checkNameAvailability + - operations + microsoft.datalakestore: + '2016-11-01': + - accounts + - accounts/enableKeyVault + - accounts/firewallRules + - accounts/trustedIdProviders + - accounts/virtualNetworkRules + - locations/capability + - locations/checkNameAvailability + - operations + microsoft.importexport: + '2016-11-01': + - jobs + - jobs/listBitLockerKeys + - locations + - operations + microsoft.hybriddata: + '2016-06-01': + - dataManagers + - dataManagers/dataServices + - dataManagers/dataServices/jobDefinitions + - dataManagers/dataServices/jobDefinitions/jobs + - dataManagers/dataServices/jobDefinitions/jobs/cancel + - dataManagers/dataServices/jobDefinitions/jobs/resume + - dataManagers/dataServices/jobDefinitions/run + - dataManagers/dataServices/jobs + - dataManagers/dataStoreTypes + - dataManagers/dataStores + - dataManagers/jobDefinitions + - dataManagers/jobs + - dataManagers/publicKeys + - operations + microsoft.datacatalog: + '2016-03-30': + - catalogs + - operations + microsoft.scheduler: + '2016-03-01': + - jobCollections + - jobCollections/disable + - jobCollections/enable + - jobCollections/jobs + - jobCollections/jobs/history + - jobCollections/jobs/run + microsoft.streamanalytics: + '2016-03-01': + - locations/quotas + - operations + - streamingjobs + - streamingjobs/functions + - streamingjobs/functions/RetrieveDefaultDefinition + - streamingjobs/functions/test + - streamingjobs/inputs + - streamingjobs/inputs/test + - streamingjobs/outputs + - streamingjobs/outputs/test + - streamingjobs/start + - streamingjobs/stop + - streamingjobs/transformations + microsoft.powerbi: + '2016-01-29': + - locations/checkNameAvailability + - operations + - workspaceCollections + - workspaceCollections/listKeys + - workspaceCollections/regenerateKey + - workspaceCollections/workspaces + microsoft.features: + '2015-12-01': + - features + - operations + - providers/features + - providers/features/register + microsoft.operationsmanagement: + 2015-11-01-preview: + - ManagementAssociations + - ManagementConfigurations + - operations + - solutions + microsoft.search: + '2015-08-19': + - checkNameAvailability + - operations + - searchServices + - searchServices/createQueryKey + - searchServices/deleteQueryKey + - searchServices/listAdminKeys + - searchServices/listQueryKeys + - searchServices/regenerateAdminKey + microsoft.marketplaceordering: + '2015-06-01': + - agreements + - agreements/offers/plans + - agreements/offers/plans/cancel + - agreements/offers/plans/sign + - offerTypes/publishers/offers/plans/agreements + - operations + microsoft.commerce: + 2015-06-01-preview: + - RateCard + - UsageAggregates + microsoft.documentdb: + '2015-04-08': + - databaseAccountNames + - databaseAccounts + - databaseAccounts/apis/databases + - databaseAccounts/apis/databases/collections + - databaseAccounts/apis/databases/containers + - databaseAccounts/apis/databases/graphs + - databaseAccounts/apis/keyspaces + - databaseAccounts/apis/keyspaces/tables + - databaseAccounts/apis/tables + - databaseAccounts/databases/collections/metricDefinitions + - databaseAccounts/databases/collections/metrics + - databaseAccounts/databases/collections/partitionKeyRangeId/metrics + - databaseAccounts/databases/collections/partitions + - databaseAccounts/databases/collections/usages + - databaseAccounts/databases/metricDefinitions + - databaseAccounts/databases/metrics + - databaseAccounts/databases/usages + - databaseAccounts/failoverPriorityChange + - databaseAccounts/listConnectionStrings + - databaseAccounts/listKeys + - databaseAccounts/metricDefinitions + - databaseAccounts/metrics + - databaseAccounts/offlineRegion + - databaseAccounts/onlineRegion + - databaseAccounts/percentile + - databaseAccounts/readonlykeys + - databaseAccounts/regenerateKey + - databaseAccounts/region/databases/collections/metrics + - databaseAccounts/region/databases/collections/partitionKeyRangeId/metrics + - databaseAccounts/region/databases/collections/partitions + - databaseAccounts/region/metrics + - databaseAccounts/sourceRegion/targetRegion/percentile + - databaseAccounts/targetRegion/percentile + - databaseAccounts/usages + - operations + microsoft.intune: + 2015-01-14-preview: + - locations/flaggedUsers + - locations/users/devices/wipe + 2015-01-14-privatepreview: + - locations + - locations/androidPolicies + - locations/androidPolicies/apps + - locations/androidPolicies/groups + - locations/apps + - locations/flaggedUsers/flaggedEnrolledApps + - locations/iosPolicies + - locations/iosPolicies/apps + - locations/iosPolicies/groups + - locations/operationResults + - locations/statuses + - locations/users/devices + microsoft.visualstudio: + 2014-04-01-preview: + - account + - account/extension + - account/project + - account/project/subContainers/status + - checkNameAvailability + - operations + microsoft.adhybridhealthservice: + '2014-01-01': + - addsservices + - addsservices/addomainservicemembers + - addsservices/addsservicemembers + - addsservices/alerts + - addsservices/configuration + - addsservices/dimensions + - addsservices/features/userpreference + - addsservices/forestsummary + - addsservices/metricmetadata + - addsservices/metricmetadata/groups + - addsservices/metrics/groups + - addsservices/metrics/groups/average + - addsservices/metrics/groups/sum + - addsservices/replicationdetails + - addsservices/replicationstatus + - addsservices/replicationsummary + - addsservices/servicemembers + - addsservices/servicemembers/alerts + - addsservices/servicemembers/credentials + - configuration + - operations + - reports/IsDevOps + - service/servicemembers/connectors + - services + - services/TenantWhitelisting + - services/alerts + - services/checkServiceFeatureAvailibility + - services/exporterrors + - services/exportstatus + - services/feedbacktype/alertfeedback + - services/feedbacktype/feedback + - services/metricmetadata + - services/metricmetadata/groups + - services/metrics/groups + - services/metrics/groups/average + - services/metrics/groups/sum + - services/monitoringconfiguration + - services/monitoringconfigurations + - services/reports/blobUris + - services/reports/details + - services/reports/generateBlobUri + - services/servicemembers + - services/servicemembers/alerts + - services/servicemembers/credentials + - services/servicemembers/data + - services/servicemembers/datafreshness + - services/servicemembers/exportstatus + - services/servicemembers/globalconfiguration + - services/servicemembers/metrics + - services/servicemembers/metrics/groups + - services/servicemembers/serviceconfiguration + operations: + /policies: '2017-03-01' + '/policies/{policyId}': '2017-03-01' + /policySnippets: '2017-03-01' + /regions: '2017-03-01' + /apis: '2017-03-01' + '/apis/{apiId}': '2017-03-01' + '/apis/{apiId}/operations': '2017-03-01' + '/apis/{apiId}/operations/{operationId}': '2017-03-01' + '/apis/{apiId}/operations/{operationId}/policies': '2017-03-01' + '/apis/{apiId}/operations/{operationId}/policies/{policyId}': '2017-03-01' + '/apis/{apiId}/products': '2017-03-01' + '/apis/{apiId}/policies': '2017-03-01' + '/apis/{apiId}/policies/{policyId}': '2017-03-01' + '/apis/{apiId}/schemas': '2017-03-01' + '/apis/{apiId}/schemas/{schemaId}': '2017-03-01' + /authorizationServers: '2017-03-01' + '/authorizationServers/{authsid}': '2017-03-01' + /backends: '2017-03-01' + '/backends/{backendid}': '2017-03-01' + /certificates: 2018-12-01.8.0 + '/certificates/{certificateId}': '2017-03-01' + /templates: '2017-03-01' + '/templates/{templateName}': '2017-03-01' + /groups: '2017-03-01' + '/groups/{groupId}': '2017-03-01' + '/groups/{groupId}/users': '2017-03-01' + '/groups/{groupId}/users/{uid}': '2017-03-01' + /identityProviders: '2017-03-01' + '/identityProviders/{identityProviderName}': '2017-03-01' + /loggers: '2017-03-01' + '/loggers/{loggerid}': '2017-03-01' + /openidConnectProviders: '2017-03-01' + '/openidConnectProviders/{opid}': '2017-03-01' + /portalsettings/signin: '2017-03-01' + /portalsettings/signup: '2017-03-01' + /portalsettings/delegation: '2017-03-01' + /products: '2017-03-01' + '/products/{productId}': '2017-03-01' + '/products/{productId}/apis': '2017-03-01' + '/products/{productId}/apis/{apiId}': '2017-03-01' + '/products/{productId}/groups': '2017-03-01' + '/products/{productId}/groups/{groupId}': '2017-03-01' + '/products/{productId}/subscriptions': '2017-03-01' + '/products/{productId}/policies': '2017-03-01' + '/products/{productId}/policies/{policyId}': '2017-03-01' + /properties: '2017-03-01' + '/properties/{propId}': '2017-03-01' + '/quotas/{quotaCounterKey}': '2017-03-01' + '/quotas/{quotaCounterKey}/{quotaPeriodKey}': '2017-03-01' + /reports/byApi: '2017-03-01' + /reports/byUser: '2017-03-01' + /reports/byOperation: '2017-03-01' + /reports/byProduct: '2017-03-01' + /reports/byGeo: '2017-03-01' + /reports/bySubscription: '2017-03-01' + /reports/byTime: '2017-03-01' + /reports/byRequest: '2017-03-01' + /subscriptions: '2017-03-01' + '/subscriptions/{sid}': '2017-03-01' + '/subscriptions/{sid}/regeneratePrimaryKey': '2017-03-01' + '/subscriptions/{sid}/regenerateSecondaryKey': '2017-03-01' + '/tenant/{accessName}': '2017-03-01' + '/tenant/{accessName}/regeneratePrimaryKey': '2017-03-01' + '/tenant/{accessName}/regenerateSecondaryKey': '2017-03-01' + '/tenant/{accessName}/git': '2017-03-01' + '/tenant/{accessName}/git/regeneratePrimaryKey': '2017-03-01' + '/tenant/{accessName}/git/regenerateSecondaryKey': '2017-03-01' + '/tenant/{configurationName}/deploy': '2017-03-01' + '/tenant/{configurationName}/save': '2017-03-01' + '/tenant/{configurationName}/validate': '2017-03-01' + '/tenant/{configurationName}/syncState': '2017-03-01' + /users: '2017-03-01' + '/users/{uid}': '2017-03-01' + '/users/{uid}/generateSsoUrl': '2017-03-01' + '/users/{uid}/groups': '2017-03-01' + '/users/{uid}/subscriptions': '2017-03-01' + '/users/{uid}/identities': '2017-03-01' + '/users/{uid}/token': '2017-03-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets': 2018-06-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}': 2018-06-01-preview + '/apps/{appId}/metrics/{metricId}': v1 + '/apps/{appId}/metrics': v1 + '/apps/{appId}/metrics/metadata': v1 + '/apps/{appId}/events/{eventType}': v1 + '/apps/{appId}/events/{eventType}/{eventId}': v1 + '/apps/{appId}/events/$metadata': v1 + '/apps/{appId}/query': v1 + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/components/{applicationName}/events/$metadata': '2018-04-20' + '/{roleAssignmentId}': 2017-10-01-preview + '/{roleDefinitionId}': '2015-07-01' + '/{roleId}': 2018-09-01-preview + '/{denyAssignmentId}': 2018-07-01-preview + '/subscriptions/{subscriptionId}': '2016-06-01' + '/delegatedProviders/{delegatedProviderId}/offers': '2015-11-01' + '/delegatedProviders/{delegatedProviderId}/offers/{offerName}': '2015-11-01' + /offers: '2015-11-01' + /applications: 2018-12-01.8.0 + '/applications/{applicationId}': 2018-12-01.8.0 + /poolusagemetrics: 2018-12-01.8.0 + /nodeagentskus: 2018-12-01.8.0 + /nodecounts: 2018-12-01.8.0 + /lifetimepoolstats: 2018-12-01.8.0 + /lifetimejobstats: 2018-12-01.8.0 + '/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})/canceldelete': 2018-12-01.8.0 + '/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/files/{filePath}': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/files/{filePath}': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/files': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/files': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/disable': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/enable': 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/terminate': 2018-12-01.8.0 + /jobschedules: 2018-12-01.8.0 + '/jobs/{jobId}': 2018-12-01.8.0 + '/jobs/{jobId}/disable': 2018-12-01.8.0 + '/jobs/{jobId}/enable': 2018-12-01.8.0 + '/jobs/{jobId}/terminate': 2018-12-01.8.0 + /jobs: 2018-12-01.8.0 + '/jobschedules/{jobScheduleId}/jobs': 2018-12-01.8.0 + '/jobs/{jobId}/jobpreparationandreleasetaskstatus': 2018-12-01.8.0 + '/jobs/{jobId}/taskcounts': 2018-12-01.8.0 + /pools: 2018-12-01.8.0 + '/pools/{poolId}': 2018-12-01.8.0 + '/pools/{poolId}/disableautoscale': 2018-12-01.8.0 + '/pools/{poolId}/enableautoscale': 2018-12-01.8.0 + '/pools/{poolId}/evaluateautoscale': 2018-12-01.8.0 + '/pools/{poolId}/resize': 2018-12-01.8.0 + '/pools/{poolId}/stopresize': 2018-12-01.8.0 + '/pools/{poolId}/updateproperties': 2018-12-01.8.0 + '/pools/{poolId}/removenodes': 2018-12-01.8.0 + '/jobs/{jobId}/tasks': 2018-12-01.8.0 + '/jobs/{jobId}/addtaskcollection': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/subtasksinfo': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/terminate': 2018-12-01.8.0 + '/jobs/{jobId}/tasks/{taskId}/reactivate': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/users': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/users/{userName}': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/reboot': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/reimage': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/disablescheduling': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/enablescheduling': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/remoteloginsettings': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/rdp': 2018-12-01.8.0 + '/pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs': 2018-12-01.8.0 + '/pools/{poolId}/nodes': 2018-12-01.8.0 + '/pools/{poolId}/upgradeos': 2018-08-01.7.0 + '/jobs/{jobId}/tasks/{taskId}/files/{fileName}': 2016-07-01.3.1 + '/pools/{poolId}/nodes/{nodeId}/files/{fileName}': 2016-07-01.3.1 + /timeseries/entire/detect: '1.0' + /timeseries/last/detect: '1.0' + /Suggestions: '1.0' + /analyze: '2.0' + /describe: '2.0' + /detect: '2.0' + /models: '2.0' + '/models/{model}/analyze': '2.0' + /ocr: '2.0' + /tag: '2.0' + /generateThumbnail: '2.0' + /areaOfInterest: '2.0' + /recognizeText: '2.0' + '/textOperations/{operationId}': '2.0' + /read/core/asyncBatchAnalyze: '2.0' + '/read/operations/{operationId}': '2.0' + /contentmoderator/moderate/v1.0/ProcessImage/FindFaces: '1.0' + /contentmoderator/moderate/v1.0/ProcessImage/OCR: '1.0' + /contentmoderator/moderate/v1.0/ProcessImage/Evaluate: '1.0' + /contentmoderator/moderate/v1.0/ProcessImage/Match: '1.0' + /contentmoderator/moderate/v1.0/ProcessText/Screen/: '1.0' + /contentmoderator/moderate/v1.0/ProcessText/DetectLanguage: '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}': '1.0' + /contentmoderator/lists/v1.0/imagelists: '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}/RefreshIndex': '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}': '1.0' + /contentmoderator/lists/v1.0/termlists: '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}/RefreshIndex': '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}/images': '1.0' + '/contentmoderator/lists/v1.0/imagelists/{listId}/images/{ImageId}': '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}/terms/{term}': '1.0' + '/contentmoderator/lists/v1.0/termlists/{listId}/terms': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/jobs/{JobId}': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/jobs': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/frames': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/publish': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/transcriptmoderationresult': '1.0' + '/contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/transcript': '1.0' + /images/search: '1.0' + '/{projectId}/url': '2.0' + '/{projectId}/image': '2.0' + '/{projectId}/url/nostore': '2.0' + '/{projectId}/image/nostore': '2.0' + '/{projectId}/classify/iterations/{publishedName}/url': '3.0' + '/{projectId}/classify/iterations/{publishedName}/image': '3.0' + '/{projectId}/classify/iterations/{publishedName}/url/nostore': '3.0' + '/{projectId}/classify/iterations/{publishedName}/image/nostore': '3.0' + '/{projectId}/detect/iterations/{publishedName}/url': '3.0' + '/{projectId}/detect/iterations/{publishedName}/image': '3.0' + '/{projectId}/detect/iterations/{publishedName}/url/nostore': '3.0' + '/{projectId}/detect/iterations/{publishedName}/image/nostore': '3.0' + /domains: '3.0' + '/domains/{domainId}': '3.0' + '/projects/{projectId}/images/tagged': '3.0' + '/projects/{projectId}/images/untagged': '3.0' + '/projects/{projectId}/images/tagged/count': '3.0' + '/projects/{projectId}/images/untagged/count': '3.0' + '/projects/{projectId}/images/id': '3.0' + '/projects/{projectId}/images': '3.0' + '/projects/{projectId}/images/files': '3.0' + '/projects/{projectId}/images/urls': '3.0' + '/projects/{projectId}/images/predictions': '3.0' + '/projects/{projectId}/images/tags': '3.0' + '/projects/{projectId}/images/regions': '3.0' + '/{projectId}/images/{imageId}/regionproposals': '2.2' + '/projects/{projectId}/predictions': '3.0' + '/projects/{projectId}/predictions/query': '3.0' + '/projects/{projectId}/quicktest/url': '3.0' + '/projects/{projectId}/quicktest/image': '3.0' + '/projects/{projectId}/train': '3.0' + /projects: '3.0' + '/projects/{projectId}': '3.0' + '/projects/{projectId}/iterations': '3.0' + '/projects/{projectId}/iterations/{iterationId}': '3.0' + '/projects/{projectId}/iterations/{iterationId}/performance': '3.0' + '/projects/{projectId}/iterations/{iterationId}/performance/images': '3.0' + '/projects/{projectId}/iterations/{iterationId}/performance/images/count': '3.0' + '/projects/{projectId}/iterations/{iterationId}/export': '3.0' + '/projects/{projectId}/tags/{tagId}': '3.0' + '/projects/{projectId}/tags': '3.0' + '/projects/{projectId}/images/{imageId}/regionproposals': '3.0' + '/projects/{projectId}/iterations/{iterationId}/publish': '3.0' + /search: '1.0' + /entities: v2.1 + /findsimilars: '1.0' + /group: '1.0' + /identify: '1.0' + /verify: '1.0' + '/persongroups/{personGroupId}/persons': '1.0' + '/persongroups/{personGroupId}/persons/{personId}': '1.0' + '/persongroups/{personGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}': '1.0' + '/persongroups/{personGroupId}': '1.0' + '/persongroups/{personGroupId}/training': '1.0' + /persongroups: '1.0' + '/persongroups/{personGroupId}/train': '1.0' + '/facelists/{faceListId}': '1.0' + /facelists: '1.0' + '/facelists/{faceListId}/persistedfaces/{persistedFaceId}': '1.0' + '/persongroups/{personGroupId}/persons/{personId}/persistedfaces': '1.0' + '/facelists/{faceListId}/persistedfaces': '1.0' + '/largepersongroups/{largePersonGroupId}/persons': '1.0' + '/largepersongroups/{largePersonGroupId}/persons/{personId}': '1.0' + '/largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}': '1.0' + '/largepersongroups/{largePersonGroupId}': '1.0' + '/largepersongroups/{largePersonGroupId}/training': '1.0' + /largepersongroups: '1.0' + '/largepersongroups/{largePersonGroupId}/train': '1.0' + '/largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces': '1.0' + '/largefacelists/{largeFaceListId}': '1.0' + '/largefacelists/{largeFaceListId}/training': '1.0' + /largefacelists: '1.0' + '/largefacelists/{largeFaceListId}/train': '1.0' + '/largefacelists/{largeFaceListId}/persistedfaces/{persistedFaceId}': '1.0' + '/largefacelists/{largeFaceListId}/persistedfaces': '1.0' + /snapshots: '1.0' + '/snapshots/{snapshotId}': '1.0' + '/snapshots/{snapshotId}/apply': '1.0' + '/operations/{operationId}': '4.0' + /images/details: '1.0' + /images/trending: '1.0' + /localbusinesses/v7.0/search: '1.0' + '/apps/{appId}/versions/{versionId}/patterns': '2.0' + '/apps/{appId}/versions/{versionId}/phraselists': '2.0' + '/apps/{appId}/versions/{versionId}/features': '2.0' + '/apps/{appId}/versions/{versionId}/patterns/{patternId}': '2.0' + '/apps/{appId}/versions/{versionId}/phraselists/{phraselistId}': '2.0' + '/apps/{appId}/versions/{versionId}/example': '2.0' + '/apps/{appId}/versions/{versionId}/examples': '2.0' + '/apps/{appId}/versions/{versionId}/examples/{exampleId}': '2.0' + '/apps/{appId}/versions/{versionId}/intents': '2.0' + '/apps/{appId}/versions/{versionId}/entities': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts': '2.0' + '/apps/{appId}/versions/{versionId}/listprebuilts': '2.0' + '/apps/{appId}/versions/{versionId}/models': '2.0' + '/apps/{appId}/versions/{versionId}/models/{modelId}/examples': '2.0' + '/apps/{appId}/versions/{versionId}/intents/{intentId}': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}': '2.0' + '/apps/{appId}/versions/{versionId}/intents/{intentId}/suggest': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}/suggest': '2.0' + /apps/: '2.0' + /apps/import: '2.0' + /apps/assistants: '2.0' + /apps/domains: '2.0' + /apps/usagescenarios: '2.0' + /apps/cultures: '2.0' + '/apps/{appId}/querylogs': '2.0' + '/apps/{appId}': '2.0' + '/apps/{appId}/versions/{versionId}/clone': '2.0' + '/apps/{appId}/publish': '2.0' + '/apps/{appId}/versions': '2.0' + '/apps/{appId}/versions/{versionId}/': '2.0' + '/apps/{appId}/versions/{versionId}/export': '2.0' + '/apps/{appId}/versions/{versionId}/train': '2.0' + '/apps/{appId}/versions/import': '2.0' + '/apps/{appId}/settings': '2.0' + '/apps/{appId}/publishsettings': '2.0' + '/apps/{appId}/versions/{versionId}/suggest': '2.0' + '/apps/{appId}/permissions': '2.0' + '/apps/{appId}/endpoints': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltdomains': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltintents': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltentities': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltmodels': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltdomains/{domainName}': '2.0' + /apps/customprebuiltdomains: '2.0' + '/apps/customprebuiltdomains/{culture}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children/{cChildId}': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}': '2.0' + '/apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}': '2.0' + '/apps/{appId}/versions/{versionId}/patternrule': '2.0' + '/apps/{appId}/versions/{versionId}/patternrules': '2.0' + '/apps/{appId}/versions/{versionId}/patternrules/{patternId}': '2.0' + '/apps/{appId}/versions/{versionId}/intents/{intentId}/patternrules': '2.0' + '/apps/{appId}/versions/{versionId}/settings': '2.0' + '/apps/{appId}/azureaccounts': '2.0' + /azureaccounts: '2.0' + '/package/{appId}/slot/{slotName}/gzip': '2.0' + '/package/{appId}/versions/{versionId}/gzip': '2.0' + '/apps/{appId}/versions/{versionId}/predict': 3.0-preview + '/apps/{appId}/slots/{slotName}/predict': 3.0-preview + /news/search: '1.0' + /news: '1.0' + /news/trendingtopics: '1.0' + /configurations/service: v1.0 + /configurations/policy: v1.0 + /evaluations: v1.0 + '/evaluations/{evaluationId}': v1.0 + '/events/{eventId}/reward': v1.0 + '/events/{eventId}/activate': v1.0 + /logs: v1.0 + /logs/properties: v1.0 + /model: v1.0 + /model/properties: v1.0 + /rank: v1.0 + /endpointkeys: '4.0' + '/endpointkeys/{keyType}': '4.0' + /alterations: '4.0' + /knowledgebases: '4.0' + '/knowledgebases/{kbId}': '4.0' + /knowledgebases/create: '4.0' + '/knowledgebases/{kbId}/{environment}/qna': '4.0' + /spellcheck: '1.0' + /keyPhrases: v2.1 + /languages: v2.1 + /sentiment: v2.1 + /BreakSentence: '3.0' + /Detect: '3.0' + /Dictionary/Lookup: '3.0' + /Dictionary/Examples: '3.0' + /Languages: '3.0' + /translate: '3.0' + /transliterate: '3.0' + /videos/search: '1.0' + /videos/details: '1.0' + /videos/trending: '1.0' + /images/visualsearch: '1.0' + '/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/Microsoft.Consumption/aggregatedcost': '2019-01-01' + /v2/: 2018-08-10-preview + '/v2/{name}/tags/list': 2018-08-10-preview + '/v2/{name}/manifests/{reference}': 2018-08-10-preview + /v2/_catalog: 2018-08-10-preview + /acr/v1/_catalog: 2018-08-10-preview + '/acr/v1/{name}': 2018-08-10-preview + '/acr/v1/{name}/_tags': 2018-08-10-preview + '/acr/v1/{name}/_tags/{reference}': 2018-08-10-preview + '/acr/v1/{name}/_manifests': 2018-08-10-preview + '/acr/v1/{name}/_manifests/{reference}': 2018-08-10-preview + '/catalog/usql/databases/{databaseName}/secrets/{secretName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/secrets': '2016-11-01' + '/catalog/usql/databases/{databaseName}/credentials/{credentialName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/credentials': '2016-11-01' + '/catalog/usql/databases/{databaseName}/externaldatasources/{externalDataSourceName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/externaldatasources': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/procedures/{procedureName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/procedures': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/tablefragments': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/statistics': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tabletypes/{tableTypeName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tabletypes': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/packages/{packageName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/packages': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/views/{viewName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/views': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/statistics/{statisticsName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/statistics': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions/{partitionName}/previewrows': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions/{partitionName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/previewrows': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/types': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tablevaluedfunctions/{tableValuedFunctionName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}/tablevaluedfunctions': '2016-11-01' + '/catalog/usql/databases/{databaseName}/assemblies/{assemblyName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/assemblies': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas/{schemaName}': '2016-11-01' + '/catalog/usql/databases/{databaseName}/schemas': '2016-11-01' + '/catalog/usql/databases/{databaseName}/statistics': '2016-11-01' + '/catalog/usql/databases/{databaseName}/tables': '2016-11-01' + '/catalog/usql/databases/{databaseName}/tablevaluedfunctions': '2016-11-01' + '/catalog/usql/databases/{databaseName}/views': '2016-11-01' + '/catalog/usql/databases/{databaseName}/acl': '2016-11-01' + /catalog/usql/acl: '2016-11-01' + '/catalog/usql/databases/{databaseName}': '2016-11-01' + /catalog/usql/databases: '2016-11-01' + '/jobs/{jobIdentity}': 2017-09-01-preview + '/jobs/{jobIdentity}/GetStatistics': 2017-09-01-preview + '/jobs/{jobIdentity}/GetDebugDataPath': 2017-09-01-preview + '/jobs/{jobIdentity}/CancelJob': 2017-09-01-preview + '/jobs/{jobIdentity}/YieldJob': 2017-09-01-preview + /buildJob: 2017-09-01-preview + /pipelines: 2017-09-01-preview + '/pipelines/{pipelineIdentity}': 2017-09-01-preview + /recurrences: 2017-09-01-preview + '/recurrences/{recurrenceIdentity}': 2017-09-01-preview + '/Jobs/{jobIdentity}/GetStatistics': '2016-11-01' + '/Jobs/{jobIdentity}/GetDebugDataPath': '2016-11-01' + /BuildJob: '2016-11-01' + '/Jobs/{jobIdentity}/CancelJob': '2016-11-01' + '/Jobs/{jobIdentity}': '2016-11-01' + /Jobs: '2016-11-01' + '/WebHdfsExt/{path}': '2016-11-01' + '/webhdfs/v1/{path}': '2016-11-01' + '/WebHdfsExt/{filePath}': 2015-10-01-preview + /api/events: '2018-01-01' + '/{tenantID}/me': '1.6' + '/{tenantID}/me/ownedObjects': '1.6' + '/{tenantID}/applications': '1.6' + '/{tenantID}/deletedApplications/{objectId}/restore': '1.6' + '/{tenantID}/deletedApplications': '1.6' + '/{tenantID}/deletedApplications/{applicationObjectId}': '1.6' + '/{tenantID}/applications/{applicationObjectId}': '1.6' + '/{tenantID}/applications/{applicationObjectId}/owners': '1.6' + '/{tenantID}/applications/{applicationObjectId}/$links/owners': '1.6' + '/{tenantID}/applications/{applicationObjectId}/$links/owners/{ownerObjectId}': '1.6' + '/{tenantID}/applications/{applicationObjectId}/keyCredentials': '1.6' + '/{tenantID}/applications/{applicationObjectId}/passwordCredentials': '1.6' + '/{tenantID}/isMemberOf': '1.6' + '/{tenantID}/groups/{groupObjectId}/$links/members/{memberObjectId}': '1.6' + '/{tenantID}/groups/{groupObjectId}/$links/members': '1.6' + '/{tenantID}/groups': '1.6' + '/{tenantID}/groups/{objectId}/members': '1.6' + '/{tenantID}/groups/{objectId}': '1.6' + '/{tenantID}/groups/{objectId}/getMemberGroups': '1.6' + '/{tenantID}/groups/{objectId}/owners': '1.6' + '/{tenantID}/groups/{objectId}/$links/owners': '1.6' + '/{tenantID}/groups/{objectId}/$links/owners/{ownerObjectId}': '1.6' + '/{tenantID}/servicePrincipals': '1.6' + '/{tenantID}/servicePrincipalsByAppId/{applicationID}/objectId': '1.6' + '/{tenantID}/servicePrincipals/{objectId}': '1.6' + '/{tenantID}/servicePrincipals/{objectId}/owners': '1.6' + '/{tenantID}/servicePrincipals/{objectId}/keyCredentials': '1.6' + '/{tenantID}/servicePrincipals/{objectId}/passwordCredentials': '1.6' + '/{tenantID}/users': '1.6' + '/{tenantID}/users/{upnOrObjectId}': '1.6' + '/{tenantID}/users/{objectId}/getMemberGroups': '1.6' + '/{tenantID}/getObjectsByObjectIds': '1.6' + '/{tenantID}/domains': '1.6' + '/{tenantID}/domains/{domainName}': '1.6' + '/{tenantID}/oauth2PermissionGrants': '1.6' + '/{tenantID}/oauth2PermissionGrants/{objectId}': '1.6' + '/templeton/v1/jobs/{jobId}': 2018-11-01-preview + /templeton/v1/jobs: 2018-11-01-preview + /templeton/v1/jobs?op=LISTAFTERID: 2018-11-01-preview + /templeton/v1/hive: 2018-11-01-preview + /templeton/v1/mapreduce/jar: 2018-11-01-preview + /templeton/v1/mapreduce/streaming: 2018-11-01-preview + /templeton/v1/pig: 2018-11-01-preview + /templeton/v1/sqoop: 2018-11-01-preview + '/ws/v1/cluster/apps/{appId}/state': 2018-11-01-preview + /instance: '2018-10-01' + /attested/document: '2018-10-01' + /identity/oauth2/token: '2018-10-01' + /identity/info: '2018-10-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testall': 2019-03-22-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testnew': 2019-03-22-preview + '/keys/{key-name}/create': '2016-10-01' + '/keys/{key-name}': '2016-10-01' + '/keys/{key-name}/{key-version}': '2016-10-01' + '/keys/{key-name}/versions': '2016-10-01' + /keys: '2016-10-01' + '/keys/{key-name}/backup': '2016-10-01' + /keys/restore: '2016-10-01' + '/keys/{key-name}/{key-version}/encrypt': '2016-10-01' + '/keys/{key-name}/{key-version}/decrypt': '2016-10-01' + '/keys/{key-name}/{key-version}/sign': '2016-10-01' + '/keys/{key-name}/{key-version}/verify': '2016-10-01' + '/keys/{key-name}/{key-version}/wrapkey': '2016-10-01' + '/keys/{key-name}/{key-version}/unwrapkey': '2016-10-01' + /deletedkeys: '2016-10-01' + '/deletedkeys/{key-name}': '2016-10-01' + '/deletedkeys/{key-name}/recover': '2016-10-01' + '/secrets/{secret-name}': '2016-10-01' + '/secrets/{secret-name}/{secret-version}': '2016-10-01' + /secrets: '2016-10-01' + '/secrets/{secret-name}/versions': '2016-10-01' + /deletedsecrets: '2016-10-01' + '/deletedsecrets/{secret-name}': '2016-10-01' + '/deletedsecrets/{secret-name}/recover': '2016-10-01' + '/secrets/{secret-name}/backup': '2016-10-01' + /secrets/restore: '2016-10-01' + '/certificates/{certificate-name}': '2016-10-01' + /certificates/contacts: '2016-10-01' + /certificates/issuers: '2016-10-01' + '/certificates/issuers/{issuer-name}': '2016-10-01' + '/certificates/{certificate-name}/create': '2016-10-01' + '/certificates/{certificate-name}/import': '2016-10-01' + '/certificates/{certificate-name}/versions': '2016-10-01' + '/certificates/{certificate-name}/policy': '2016-10-01' + '/certificates/{certificate-name}/{certificate-version}': '2016-10-01' + '/certificates/{certificate-name}/pending': '2016-10-01' + '/certificates/{certificate-name}/pending/merge': '2016-10-01' + '/certificates/{certificate-name}/backup': '7.0' + /certificates/restore: '7.0' + /deletedcertificates: '2016-10-01' + '/deletedcertificates/{certificate-name}': '2016-10-01' + '/deletedcertificates/{certificate-name}/recover': '2016-10-01' + /storage: '2016-10-01' + /deletedstorage: '7.0' + '/deletedstorage/{storage-account-name}': '7.0' + '/deletedstorage/{storage-account-name}/recover': '7.0' + '/storage/{storage-account-name}/backup': '7.0' + /storage/restore: '7.0' + '/storage/{storage-account-name}': '2016-10-01' + '/storage/{storage-account-name}/regeneratekey': '2016-10-01' + '/storage/{storage-account-name}/sas': '2016-10-01' + '/deletedstorage/{storage-account-name}/sas': '7.0' + '/deletedstorage/{storage-account-name}/sas/{sas-definition-name}': '7.0' + '/deletedstorage/{storage-account-name}/sas/{sas-definition-name}/recover': '7.0' + '/storage/{storage-account-name}/sas/{sas-definition-name}': '2016-10-01' + '/subscriptions/{subscriptionId}/resources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces{workspaceName}/projects': 2017-05-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProvider}/{resourceTypeName}/{resourceName}/metrics': 2018-09-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}arpTable': 2015-05-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}routesTable': 2015-05-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}stats': 2015-05-01-preview + '/{operationStatusLink}': '2014-09-01' + '/workspaces/{workspaceId}/query': v1 + '/{scope}/providers/Microsoft.PolicyInsights/policyEvents/$metadata': '2018-04-04' + '/{scope}/providers/Microsoft.PolicyInsights/policyStates/$metadata': 2018-07-01-preview + '/{policyAssignmentId}': '2018-05-01' + '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister': '2018-05-01' + '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register': '2018-05-01' + '/subscriptions/{subscriptionId}/providers': '2018-05-01' + '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}': '2018-05-01' + '/{resourceId}': '2018-05-01' + '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}': '2018-05-01' + '/subscriptions/{subscriptionId}/tagNames/{tagName}': '2018-05-01' + '/subscriptions/{subscriptionId}/tagNames': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}': '2018-05-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations': '2018-05-01' + '/providers/{resourceProviderNamespace}/operations': '2015-11-01' + '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}providers/Microsoft.Authorization/policyAssignments': '2015-11-01' + '/subscriptions/{subscriptionId}/locations': '2016-06-01' + /tenants: '2016-06-01' + '/{linkId}': '2016-09-01' + '/{applicationId}': '2018-06-01' + '/{applicationDefinitionId}': '2017-09-01' + '/{applianceId}': 2016-09-01-preview + '/{applianceDefinitionId}': 2016-09-01-preview + /docs/$count: '2019-05-06' + /docs: '2019-05-06' + /docs/search.post.search: '2019-05-06' + '/docs(''{key}'')': '2019-05-06' + /docs/search.suggest: '2019-05-06' + /docs/search.post.suggest: '2019-05-06' + /docs/search.index: '2019-05-06' + /docs/search.autocomplete: '2019-05-06' + /docs/search.post.autocomplete: '2019-05-06' + '/datasources(''{dataSourceName}'')': '2019-05-06' + /datasources: '2019-05-06' + '/indexers(''{indexerName}'')/search.reset': '2019-05-06' + '/indexers(''{indexerName}'')/search.run': '2019-05-06' + '/indexers(''{indexerName}'')': '2019-05-06' + /indexers: '2019-05-06' + '/indexers(''{indexerName}'')/search.status': '2019-05-06' + '/skillsets(''{skillsetName}'')': '2019-05-06' + /skillsets: '2019-05-06' + '/synonymmaps(''{synonymMapName}'')': '2019-05-06' + /synonymmaps: '2019-05-06' + /indexes: '2019-05-06' + '/indexes(''{indexName}'')': '2019-05-06' + '/indexes(''{indexName}'')/search.stats': '2019-05-06' + '/indexes(''{indexName}'')/search.analyze': '2019-05-06' + /servicestats: '2019-05-06' + /$/GetClusterManifest: 6.4.0.36 + /$/GetClusterHealth: 6.4.0.36 + /$/GetClusterHealthChunk: 6.4.0.36 + /$/ReportClusterHealth: 6.4.0.36 + /$/GetProvisionedCodeVersions: 6.4.0.36 + /$/GetProvisionedConfigVersions: 6.4.0.36 + /$/GetUpgradeProgress: 6.4.0.36 + /$/GetClusterConfiguration: 6.4.0.36 + /$/GetClusterConfigurationUpgradeStatus: 6.4.0.36 + /$/GetUpgradeOrchestrationServiceState: 6.4.0.36 + /$/SetUpgradeOrchestrationServiceState: 6.4.0.36 + /$/Provision: 6.4.0.36 + /$/Unprovision: 6.4.0.36 + /$/RollbackUpgrade: 6.4.0.36 + /$/MoveToNextUpgradeDomain: 6.4.0.36 + /$/Upgrade: 6.4.0.36 + /$/StartClusterConfigurationUpgrade: 6.4.0.36 + /$/UpdateUpgrade: 6.4.0.36 + /$/GetAadMetadata: 6.4.0.36 + /Nodes: 6.4.0.36 + '/Nodes/{nodeName}': 6.4.0.36 + '/Nodes/{nodeName}/$/GetHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/ReportHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetLoadInformation': 6.4.0.36 + '/Nodes/{nodeName}/$/Deactivate': 6.4.0.36 + '/Nodes/{nodeName}/$/Activate': 6.4.0.36 + '/Nodes/{nodeName}/$/RemoveNodeState': 6.4.0.36 + '/Nodes/{nodeName}/$/Restart': 6.4.0.36 + /ApplicationTypes: 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}': 6.4.0.36 + /ApplicationTypes/$/Provision: 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/Unprovision': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetServiceTypes': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetServiceTypes/{serviceTypeName}': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetServiceManifest': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes/{serviceTypeName}': 6.4.0.36 + /Applications/$/Create: 6.4.0.36 + '/Applications/{applicationId}/$/Delete': 6.4.0.36 + '/Applications/{applicationId}/$/GetLoadInformation': 6.4.0.36 + /Applications: 6.4.0.36 + '/Applications/{applicationId}': 6.4.0.36 + '/Applications/{applicationId}/$/GetHealth': 6.4.0.36 + '/Applications/{applicationId}/$/ReportHealth': 6.4.0.36 + '/Applications/{applicationId}/$/Upgrade': 6.4.0.36 + '/Applications/{applicationId}/$/GetUpgradeProgress': 6.4.0.36 + '/Applications/{applicationId}/$/UpdateUpgrade': 6.4.0.36 + '/Applications/{applicationId}/$/MoveToNextUpgradeDomain': 6.4.0.36 + '/Applications/{applicationId}/$/RollbackUpgrade': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/ReportHealth': 6.4.0.36 + '/ApplicationTypes/{applicationTypeName}/$/GetApplicationManifest': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices/{serviceId}': 6.4.0.36 + '/Services/{serviceId}/$/GetApplicationName': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices/$/Create': 6.4.0.36 + '/Applications/{applicationId}/$/GetServices/$/CreateFromTemplate': 6.4.0.36 + '/Services/{serviceId}/$/Delete': 6.4.0.36 + '/Services/{serviceId}/$/Update': 6.4.0.36 + '/Services/{serviceId}/$/GetDescription': 6.4.0.36 + '/Services/{serviceId}/$/GetHealth': 6.4.0.36 + '/Services/{serviceId}/$/ReportHealth': 6.4.0.36 + '/Services/{serviceId}/$/ResolvePartition': 6.4.0.36 + '/Services/{serviceId}/$/GetPartitions': 6.4.0.36 + '/Partitions/{partitionId}': 6.4.0.36 + '/Partitions/{partitionId}/$/GetServiceName': 6.4.0.36 + '/Partitions/{partitionId}/$/GetHealth': 6.4.0.36 + '/Partitions/{partitionId}/$/ReportHealth': 6.4.0.36 + '/Partitions/{partitionId}/$/GetLoadInformation': 6.4.0.36 + '/Partitions/{partitionId}/$/ResetLoad': 6.4.0.36 + '/Partitions/{partitionId}/$/Recover': 6.4.0.36 + '/Services/$/{serviceId}/$/GetPartitions/$/Recover': 6.4.0.36 + /$/RecoverSystemPartitions: 6.4.0.36 + /$/RecoverAllPartitions: 6.4.0.36 + /$/CreateRepairTask: 6.4.0.36 + /$/CancelRepairTask: 6.4.0.36 + /$/DeleteRepairTask: 6.4.0.36 + /$/GetRepairTaskList: 6.4.0.36 + /$/ForceApproveRepairTask: 6.4.0.36 + /$/UpdateRepairTaskHealthPolicy: 6.4.0.36 + /$/UpdateRepairExecutionState: 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas': 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas/{replicaId}': 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetHealth': 6.4.0.36 + '/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/ReportHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetReplicas': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetDetail': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Restart': 6.4.0.36 + '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Delete': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/GetHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/ReportHealth': 6.4.0.36 + '/Nodes/{nodeName}/$/DeployServicePackage': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/Restart': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/ContainerLogs': 6.4.0.36 + '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/ContainerApi': 6.4.0.36 + /ComposeDeployments/$/Create: 6.4.0.36 + '/ComposeDeployments/{deploymentName}': 6.4.0.36 + /ComposeDeployments: 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/GetUpgradeProgress': 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/Delete': 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/Upgrade': 6.4.0.36 + /Tools/Chaos: 6.4.0.36 + /Tools/Chaos/$/Start: 6.4.0.36 + /Tools/Chaos/$/Stop: 6.4.0.36 + /Tools/Chaos/Events: 6.4.0.36 + /Tools/Chaos/Schedule: 6.4.0.36 + '/ImageStore/{contentPath}': 6.4.0.36 + /ImageStore: 6.4.0.36 + /ImageStore/$/Copy: 6.4.0.36 + /ImageStore/$/DeleteUploadSession: 6.4.0.36 + /ImageStore/$/CommitUploadSession: 6.4.0.36 + /ImageStore/$/GetUploadSession: 6.4.0.36 + '/ImageStore/{contentPath}/$/GetUploadSession': 6.4.0.36 + '/ImageStore/{contentPath}/$/UploadChunk': 6.4.0.36 + /$/InvokeInfrastructureCommand: 6.4.0.36 + /$/InvokeInfrastructureQuery: 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartDataLoss': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetDataLossProgress': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartQuorumLoss': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetQuorumLossProgress': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartRestart': 6.4.0.36 + '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetRestartProgress': 6.4.0.36 + '/Faults/Nodes/{nodeName}/$/StartTransition/': 6.4.0.36 + '/Faults/Nodes/{nodeName}/$/GetTransitionProgress': 6.4.0.36 + /Faults/: 6.4.0.36 + /Faults/$/Cancel: 6.4.0.36 + /BackupRestore/BackupPolicies/$/Create: 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}/$/Delete': 6.4.0.36 + /BackupRestore/BackupPolicies: 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}': 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}/$/GetBackupEnabledEntities': 6.4.0.36 + '/BackupRestore/BackupPolicies/{backupPolicyName}/$/Update': 6.4.0.36 + '/Applications/{applicationId}/$/EnableBackup': 6.4.0.36 + '/Applications/{applicationId}/$/DisableBackup': 6.4.0.36 + '/Applications/{applicationId}/$/GetBackupConfigurationInfo': 6.4.0.36 + '/Applications/{applicationId}/$/GetBackups': 6.4.0.36 + '/Applications/{applicationId}/$/SuspendBackup': 6.4.0.36 + '/Applications/{applicationId}/$/ResumeBackup': 6.4.0.36 + '/Services/{serviceId}/$/EnableBackup': 6.4.0.36 + '/Services/{serviceId}/$/DisableBackup': 6.4.0.36 + '/Services/{serviceId}/$/GetBackupConfigurationInfo': 6.4.0.36 + '/Services/{serviceId}/$/GetBackups': 6.4.0.36 + '/Services/{serviceId}/$/SuspendBackup': 6.4.0.36 + '/Services/{serviceId}/$/ResumeBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/EnableBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/DisableBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/GetBackupConfigurationInfo': 6.4.0.36 + '/Partitions/{partitionId}/$/GetBackups': 6.4.0.36 + '/Partitions/{partitionId}/$/SuspendBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/ResumeBackup': 6.4.0.36 + '/Partitions/{partitionId}/$/Backup': 6.4.0.36 + '/Partitions/{partitionId}/$/GetBackupProgress': 6.4.0.36 + '/Partitions/{partitionId}/$/Restore': 6.4.0.36 + '/Partitions/{partitionId}/$/GetRestoreProgress': 6.4.0.36 + /BackupRestore/$/GetBackups: 6.4.0.36 + /Names/$/Create: 6.4.0.36 + '/Names/{nameId}': 6.4.0.36 + '/Names/{nameId}/$/GetSubNames': 6.4.0.36 + '/Names/{nameId}/$/GetProperties': 6.4.0.36 + '/Names/{nameId}/$/GetProperty': 6.4.0.36 + '/Names/{nameId}/$/GetProperties/$/SubmitBatch': 6.4.0.36 + /EventsStore/Cluster/Events: 6.4.0.36 + /EventsStore/Containers/Events: 6.4.0.36 + '/EventsStore/Nodes/{nodeName}/$/Events': 6.4.0.36 + /EventsStore/Nodes/Events: 6.4.0.36 + '/EventsStore/Applications/{applicationId}/$/Events': 6.4.0.36 + /EventsStore/Applications/Events: 6.4.0.36 + '/EventsStore/Services/{serviceId}/$/Events': 6.4.0.36 + /EventsStore/Services/Events: 6.4.0.36 + '/EventsStore/Partitions/{partitionId}/$/Events': 6.4.0.36 + /EventsStore/Partitions/Events: 6.4.0.36 + '/EventsStore/Partitions/{partitionId}/$/Replicas/{replicaId}/$/Events': 6.4.0.36 + '/EventsStore/Partitions/{partitionId}/$/Replicas/Events': 6.4.0.36 + '/EventsStore/CorrelatedEvents/{eventInstanceId}/$/Events': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/replicas': 6.3.0.9 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}': 6.4.0.36 + '/Resources/Volumes/{volumeResourceName}': 6.4.0.36 + /$/GetClusterVersion: 6.4.0.36 + '/ComposeDeployments/{deploymentName}/$/RollbackUpgrade': 6.4.0.36 + '/Resources/Secrets/{secretResourceName}': 6.4.0.36 + /Resources/Secrets: 6.4.0.36 + '/Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}': 6.4.0.36 + '/Resources/Secrets/{secretResourceName}/values': 6.4.0.36 + '/Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}/list_value': 6.4.0.36 + /Resources/Volumes: 6.4.0.36 + '/Resources/Networks/{networkResourceName}': 6.4.0.36 + /Resources/Networks: 6.4.0.36 + /Resources/Applications: 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}/CodePackages/{codePackageName}/Logs': 6.4.0.36 + '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas': 6.4.0.36 + '/Resources/Gateways/{gatewayResourceName}': 6.4.0.36 + /Resources/Gateways: 6.4.0.36 + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values/{secretValueResourceName}/list_value': 2018-09-01-preview + /: '2018-11-09' + '/{filesystem}': '2018-11-09' + '/{filesystem}/{path}': '2018-11-09' + /availability: 2018-11-01-preview + /eventSchema: 2018-11-01-preview + /timeseries/modelSettings: 2018-11-01-preview + /timeseries/query: 2018-11-01-preview + /timeseries/instances: 2018-11-01-preview + /timeseries/instances/$batch: 2018-11-01-preview + /timeseries/instances/suggest: 2018-11-01-preview + /timeseries/instances/search: 2018-11-01-preview + /timeseries/types: 2018-11-01-preview + /timeseries/types/$batch: 2018-11-01-preview + /timeseries/hierarchies: 2018-11-01-preview + /timeseries/hierarchies/$batch: 2018-11-01-preview + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/validateMoveResources': '2018-02-01' +``` diff --git a/profiles/definitions/profile-2017-03-09.md b/profiles/definitions/profile-2017-03-09.md new file mode 100644 index 000000000000..8d0776d3b8a5 --- /dev/null +++ b/profiles/definitions/profile-2017-03-09.md @@ -0,0 +1,95 @@ +# Hybrid Profile Definition - Azure Stack General Availability and Azure Cloud + +> see https://aka.ms/autorest + +Profile definition targeted for hybrid applications that could run on azure stack general availability version and azure cloud. + +``` yaml +profiles: + profile-2017-03-09: + resources: + microsoft.authorization: + '2015-01-01': + - locks + '2015-07-01': + - operations + - permissions + - roleAssignments + - roleDefinitions + 2015-10-01-preview: + - policyAssignments + - policyDefinitions + 2015-07-01-preview: + - providerOperations + microsoft.compute: + '2016-03-30': + - availabilitySets + - locations + - locations/publishers + - locations/operations + - locations/usages + - locations/vmSizes + - operations + - virtualMachines + - virtualMachines/extensions + - virtualMachineScaleSets + - virtualMachineScaleSets/extensions + - virtualMachineScaleSets/networkInterfaces + - virtualMachineScaleSets/virtualMachines + - virtualMachineScaleSets/virtualMachines/networkInterfaces + microsoft.keyvault: + '2016-10-01': + - operations + - vaults + - vaults/accessPolicies + - vaults/secrets + microsoft.network: + '2015-06-15': + - connections + - loadBalancers + - localNetworkGateways + - locations + - locations/operationResults + - locations/operations + - locations/usages + - networkInterfaces + - networkSecurityGroups + - operations + - publicIpAddresses + - routeTables + - virtualNetworkGateways + - virtualNetworks + '2016-04-01': + - dnsZones + microsoft.resources: + '2016-02-01': + - deployments + - deployments/operations + - locations + - operations + - providers + - resourceGroups + - resources + - tenants + '2016-09-01': + - links + '2016-06-01': + - subscriptions + - subscriptions/locations + - subscriptions/operationresults + - subscriptions/providers + - subscriptions/resourceGroups + - subscriptions/resourceGroups/resources + - subscriptions/resources + - subscriptions/tagNames + - subscriptions/tagNames/tagValues + microsoft.storage: + '2016-01-01': + - checkNameAvailability + - locations + - locations/quotas + - operations + - storageAccounts + - usages + operations: {} +``` \ No newline at end of file diff --git a/profiles/definitions/stable-2019-01.md b/profiles/definitions/stable-2019-01.md new file mode 100644 index 000000000000..c4af54bbf852 --- /dev/null +++ b/profiles/definitions/stable-2019-01.md @@ -0,0 +1,161 @@ +# Stable-2019-01 + +> see https://aka.ms/autorest + +This profile definition was created based on 2019-03-01-hybrid, 2018-03-01-hybrid and 2017-03-09-profile. + +``` yaml +profiles: + stable-2019-01: + resources: + microsoft.resources: + '2018-05-01': + - deployments + - deployments/operations + - links + - locations + - operations + - providers + - resourceGroups + - resources + - subscriptions + - subscriptions/locations + - subscriptions/operationresults + - subscriptions/providers + - subscriptions/resourceGroups + - subscriptions/resourceGroups/resources + - subscriptions/resources + - subscriptions/tagNames + - subscriptions/tagNames/tagValues + - tenants + microsoft.web: + '2018-02-01': + - certificates + - checknameavailability + - operations + - serverFarms + - sites + - sites/domainOwnershipIdentifiers + - sites/extensions + - sites/hostNameBindings + - sites/instances + - sites/instances/extensions + - sites/slots + - sites/slots/hostNameBindings + - sites/slots/instances + - sites/slots/instances/extensions + '2016-09-01': + - serverFarms/metricDefinitions + - serverFarms/metrics + - serverFarms/usages + '2016-08-01': + - availableStacks + - ishostnameavailable + - isusernameavailable + - metadata + - publishingUsers + - sites/metricDefinitions + - sites/metrics + - sites/recommendations + - sites/slots/extensions + - sites/slots/metricDefinitions + - sites/slots/metrics + - sourceControls + '2016-03-01': + - deploymentLocations + - georegions + - listSitesAssignedToHostName + - recommendations + - runtimes + - validate + microsoft.eventhub: + 2018-01-01-preview: + - checkNameAvailability + - namespaces + - operations + - sku + '2015-08-01': + - checkNamespaceAvailability + microsoft.insights: + '2018-01-01': + - metricDefinitions + - metrics + 2017-05-01-preview: + - diagnosticSettingCategories + - diagnosticSettings + '2015-04-01': + - eventCategories + - eventTypes + - operations + microsoft.compute: + '2017-12-01': + - availabilitySets + - images + - locations + - locations/operations + - locations/publishers + - locations/usages + - locations/vmSizes + - operations + - virtualMachineScaleSets + - virtualMachineScaleSets/extensions + - virtualMachineScaleSets/virtualMachines + - virtualMachineScaleSets/virtualMachines/networkInterfaces + - virtualMachines + - virtualMachines/extensions + - virtualmachineScaleSets/networkInterfaces + '2017-03-30': + - diskoperations + - disks + - locations/diskoperations + - snapshots + microsoft.network: + '2017-10-01': + - connections + - loadBalancers + - localNetworkGateways + - locations + - locations/operationResults + - locations/operations + - locations/usages + - networkInterfaces + - networkSecurityGroups + - operations + - publicIpAddresses + - routeTables + - virtualNetworkGateways + - virtualNetworks + '2016-04-01': + - dnsZones + microsoft.storage: + '2017-10-01': + - checkNameAvailability + - locations + - locations/quotas + - operations + - storageAccounts + - storageAccounts/blobServices + - storageAccounts/queueServices + - storageAccounts/tableServices + - usages + microsoft.authorization: + '2016-12-01': + - policyAssignments + - policyDefinitions + '2016-09-01': + - locks + 2015-07-01-preview: + - providerOperations + '2015-07-01': + - operations + - permissions + - roleAssignments + - roleDefinitions + microsoft.keyvault: + '2016-10-01': + - operations + - vaults + - vaults/accessPolicies + - vaults/secrets + operations: {} +``` \ No newline at end of file diff --git a/profiles/readme.md b/profiles/readme.md new file mode 100644 index 000000000000..9899bfb53492 --- /dev/null +++ b/profiles/readme.md @@ -0,0 +1,11 @@ +# Azure Profiles + +> see https://aka.ms/autorest + +> The files under this directory are the profile definitions used by autorest. + +``` yaml +require: + - $(this-folder)/definitions/hybrid-2019-03-01.md + - $(this-folder)/definitions/latest-2019-04-30.md +``` diff --git a/scripts/latest-profile-generator.ts b/scripts/latest-profile-generator.ts new file mode 100644 index 000000000000..ce8a0d9bc0d1 --- /dev/null +++ b/scripts/latest-profile-generator.ts @@ -0,0 +1,315 @@ +import * as fs from "@ts-common/fs" +import * as process from "process" +import * as Path from "path" +import * as cm from "@ts-common/commonmark-to-markdown" +import * as it from "@ts-common/iterator" +import * as yaml from "js-yaml" +import { values, keys } from '@ts-common/string-map'; + +type Code = { + readonly "input-file"?: ReadonlyArray|string +} + +const main = async (specificationsDirectory: string, profilesDirectory: string) => { + try { + const list = fs.recursiveReaddir(specificationsDirectory); + const specs = []; + let foundMultiApiReadmes = false; + for await (const file of list) { + const f = Path.parse(file); + if (f.base === "readme.enable-multi-api.md") { + foundMultiApiReadmes = true; + const content = (await fs.readFile(file)).toString(); + const readMe = cm.parse(content); + const set = new Set(); + for (const c of cm.iterate(readMe.markDown)) { + if ( + c.type === "code_block" && + c.info !== null && + c.info.startsWith("yaml") && + c.literal !== null + ) { + const y = (yaml.load(c.literal) as Code)["input-file"]; + if (typeof y === "string") { + set.add(y.replace('$(this-folder)', '')); + } else if (it.isArray(y)) { + for (const i of y) { + let cleanFilePath = i.replace('$(this-folder)', ''); + set.add(cleanFilePath); + specs.push(Path.join(f.dir, cleanFilePath)); + } + } + } + } + } + } + + if (!foundMultiApiReadmes){ + throw `Couldn't find any readme.enable-multi-api.md files.` + } + + const allPaths = await getPaths(specs); + const crawlResult = getCrawlData(allPaths); + const telemetryDir = Path.join(profilesDirectory, 'crawl-log.json') + fs.writeFile(telemetryDir, JSON.stringify(crawlResult, null, 2)); + console.log(`Telemetry written at ${telemetryDir}`); + + const latestProfile = getLatestProfile(crawlResult); + const latestProfileMarkDown = cm.markDownExToString( + { + markDown: cm.createNode( + "document", + cm.createNode( + "heading", + cm.createText("Latest Azure Profile") + ), + cm.createNode( + "block_quote", + cm.createNode( + "paragraph", + cm.createText("see https://aka.ms/autorest") + ) + ), + cm.createCodeBlock( + "yaml ", + yaml.dump({ "profiles":{[`latest-${getFormattedDate()}`]: latestProfile} }, { lineWidth: 1000 }) + ) + ) + } + ); + const latestProfileDir = Path.join(profilesDirectory, `definitions/`); + const latestProfileLocation = Path.join(latestProfileDir, `latest-${getFormattedDate()}.md`); + fs.writeFile(latestProfileLocation, latestProfileMarkDown); + console.log(`Latest profile written at ${latestProfileLocation}`); + + // now get all the profile definitions and generate the readme. + const definitions = fs.recursiveReaddir(latestProfileDir); + const definitionsRelativePaths = []; + for await (const file of definitions){ + const f = Path.parse(file); + definitionsRelativePaths.push(`$(this-folder)/definitions/${f.base}`); + } + + const profilesReadme = cm.markDownExToString( + { + markDown: cm.createNode( + "document", + cm.createNode( + 'heading', + cm.createText("Azure Profiles") + ), + cm.createNode( + "block_quote", + cm.createNode( + "paragraph", + cm.createText("see https://aka.ms/autorest") + ) + ), + cm.createNode( + "block_quote", + cm.createNode( + "paragraph", + cm.createText("The files under this directory are the profile definitions used by autorest.") + ) + ), + cm.createCodeBlock( + "yaml", + yaml.dump({ "require": definitionsRelativePaths }) + ) + ) + } + ); + + fs.writeFile(Path.join(profilesDirectory, "readme.md"), profilesReadme); + console.log(`Regenerated profiles readme.md at ${profilesDirectory}`); + console.log('DONE'); + } catch (e) { + console.error(e); + } +} + +function getFormattedDate(): string { + const today = new Date(); + const monthNumber = today.getMonth() + 1; + const dayNumber = today.getDate(); + + const yyyy = String(today.getFullYear()); + const mm = (monthNumber < 10) ? `0${monthNumber}` : String(monthNumber); + const dd = (dayNumber < 10) ? `0${dayNumber}` : String(dayNumber); + + return `${yyyy}-${mm}-${dd}`; +} + +async function getPaths(specHandles: Array): Promise> { + console.log(`Parsing specs`); + const result = new Array(); + for (const specHandle of specHandles) { + try { + const spec = JSON.parse((await fs.readFile(specHandle)).toString()); + if (spec.swagger && spec.info.version) { + for (const path of Object.entries(spec.paths)) { + result.push({endpoint: path[0], apiVersion: spec.info.version, originalLocation: Path.relative(process.cwd(), specHandle).replace(/\\/g, '/')}); + } + } + } catch (e) { + console.error(`Couldn't parse ${specHandle} - ${e}`); + } + } + + return result; +} + +function getCrawlData(paths: Array): CrawlResult { + console.log(`Crawling paths for resources and getting telemetry ...`); + const result: CrawlResult = {resources: new Array(), operations: {}}; + const providerNamePattern = `microsoft\.[a-z]+(?:\.[a-z]+)?`; + const parameterPattern = `\{[a-z0-9]+\}`; + const nonParameterPattern = `[a-z0-9]+`; + const resourcePathRegex = new RegExp(`(.*)(\/providers\/${providerNamePattern}(:?\/${nonParameterPattern}|\/${parameterPattern})+\/?$)`, 'gi'); + for (const p of paths) { + if (p.endpoint.match(resourcePathRegex)) { + const resource = { path: p.endpoint, apiVersion: p.apiVersion, providerNamespace: '', name: ''}; + + // get last /provider/microsoft.... section. Also, get rid of any possible trailing slash '/' + const scopedProviderSection = resource.path.replace(/\/*$/, '').replace(resourcePathRegex, '$2').split('/'); + resource.providerNamespace = scopedProviderSection[2].toLowerCase(); + + // for now, only provider-namespaces ending with admin are blacklisted + if (resource.providerNamespace.endsWith('admin')){ + if (result.blackListedPaths === undefined) { + result.blackListedPaths = []; + } + + result.blackListedPaths.push(p); + continue; + } + + const resourcesSection = `/${scopedProviderSection.slice(3).join('/')}`; + const resourceRegex = new RegExp(`\/${nonParameterPattern}\/${nonParameterPattern}|\/${nonParameterPattern}\/${parameterPattern}|\/${nonParameterPattern}$`, 'gi'); + const resourceMatches = resourcesSection.match(resourceRegex); + if (resourceMatches !== null) { + const resourceNames = resourceMatches.map(each => each.split('/')[1]); + resource.name = resourceNames.join('/'); + } + + result.resources.push(resource); + } else { + if (result.operations[p.endpoint] === undefined){ + result.operations[p.endpoint] = []; + } + + result.operations[p.endpoint].push({apiVersion:p.apiVersion, originalLocation: p.originalLocation}) + } + } + + return result; +} + + +export function getLatestProfile(crawlData: CrawlResult): Profile { + const latestProfile: Profile = {resources:{}, operations: {}}; + const allResources = crawlData.resources; + const allOperations = crawlData.operations; + const compareVersions = require('compare-versions'); + console.log('Constructing latest profile ...') + + // --- Process Resources --- + crawlData.resources.sort((a, b) => { + try{ + return compareVersions(getSemverEquivalent(b.apiVersion), getSemverEquivalent(a.apiVersion)); + } catch { + const dummy = ''; + console.log(dummy); + } + + }); + + const latestResources: {[uid: string] : Resource } = {}; + for (const resource of allResources) { + const resourceUid = `${resource.providerNamespace.toLowerCase()}${resource.name.toLowerCase()}`; + if (latestResources[resourceUid] === undefined) { + latestResources[resourceUid] = { apiVersion: resource.apiVersion, name: resource.name, providerNamespace: resource.providerNamespace.toLowerCase(), path: resource.path }; + } + } + + + for (const resource of values(latestResources)) { + latestProfile.resources[resource.providerNamespace] = latestProfile.resources[resource.providerNamespace] || {}; + latestProfile.resources[resource.providerNamespace][resource.apiVersion] = latestProfile.resources[resource.providerNamespace][resource.apiVersion] || []; + latestProfile.resources[resource.providerNamespace][resource.apiVersion].push(resource.name); + } + + for (const apiVersion of values(latestProfile.resources)) { + for (const resources of values(apiVersion)) { + resources.sort(); + } + } + + // --- Process Operations --- + for (const operation of values(allOperations)) { + operation.sort((a, b) => { + return compareVersions(getSemverEquivalent(b.apiVersion), getSemverEquivalent(a.apiVersion)); + }); + } + + for (const operation of keys(allOperations)) { + latestProfile.operations[operation] = allOperations[operation][0].apiVersion; + } + + return latestProfile; +} + +// azure rest specs mostly uses versioning of the form yyyy-mm-dd +// To take into consideration this we convert to an equivalent of +// semver for comparisons. +function getSemverEquivalent(version: string) { + let result = ''; + for (const i of version.split(/[\.\-]/g)) { + if (!result) { + result = i; + continue; + } + result = Number.isNaN(Number.parseInt(i)) ? `${result}-${i}` : `${result}.${Number(i)}`; + } + + const semver = require('semver'); + + return semver.valid(semver.coerce(result)); +} + +interface Resource { + path: string; + apiVersion: string; + providerNamespace: string; + name: string; +} + +interface CrawlResult { + operations: { + [operation:string]: Array<{ + apiVersion: string; + originalLocation: string; + }>; + }, + resources: Array, + blackListedPaths?: Array; +} + +interface PathMetadata { + endpoint: string; + apiVersion: string; + originalLocation: string; +} + +interface Profile { + resources: { + [providerNamespace: string]: { + [apiVersion: string]: Array; + }; + }, + operations: { + [path: string]: string; + } +} + +main(Path.join(process.cwd(), "specification"), Path.join(process.cwd(), "profiles")); diff --git a/scripts/multiapi.ts b/scripts/multiapi.ts index f4d3f0493cc2..56d169adeb42 100644 --- a/scripts/multiapi.ts +++ b/scripts/multiapi.ts @@ -11,54 +11,96 @@ import * as yaml from "js-yaml" type Code = { readonly "input-file"?: ReadonlyArray|string } +const magic = `yaml $(tag) == 'all-api-versions' /* autogenerated */`; +const header = `## Multi-API/Profile support for AutoRest v3 generators`; -const main = async (dir: string) => { + +const main = async (specificationDir: string, profilesDir: string) => { try { - const list = fs.recursiveReaddir(dir) + const list = fs.recursiveReaddir(specificationDir) for await (const file of list) { const f = path.parse(file) if (f.base === "readme.md") { - console.log(`processing ${file}`) - const content = (await fs.readFile(file)).toString() + const original_content = (await fs.readFile(file)).toString() + let content = original_content; const readMe = cm.parse(content) const set = new Set() for (const c of cm.iterate(readMe.markDown)) { if ( c.type === "code_block" && c.info !== null && - c.info.startsWith("yaml") && + (c.info.startsWith("yaml") && !c.info.startsWith(magic)) && c.literal !== null ) { - const y = (yaml.load(c.literal) as Code)["input-file"] - if (typeof y === "string") { - set.add(y) - } else if (it.isArray(y)) { - for (const i of y) { - set.add(i) + const DOC = (yaml.load(c.literal) as Code); + if (DOC ) { + const y = DOC['input-file'] + if (typeof y === "string") { + set.add(`$(this-folder)/${y}`) + } else if (it.isArray(y)) { + for (const i of y) { + set.add(`$(this-folder)/${i}`) + } } } + } } - const readMeMulti = cm.createNode( + if( !content.includes(header) ) { + // add the header to the content + content = content + ` +${header} + +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! + +\`\`\` ${magic} +\`\`\` + +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 +\`\`\` + +` + } + // update the autogenrated block with the new content. + /* const readMeMulti = cm.createNode( "document", cm.createNode( "heading", - cm.createText("Multi-API support for AutoRest v3 generators") - ), - cm.createNode( - "block_quote", - cm.createNode( - "paragraph", - cm.createText("see https://aka.ms/autorest") - ) + cm.createText("# Multi-API/Profile support for AutoRest v3 generators") ), cm.createCodeBlock( - "yaml $(enable-multi-api)", - yaml.dump({ "input-file": it.toArray(set) }, { lineWidth: 1000 }) + magic, + yaml.dump({ "input-file": it.toArray(set), "require": `$(this-folder)/${path.relative(f.dir, profilesDir).replace(/\\/g, '/')}/readme.md` }, { lineWidth: 1000 }) ) ) - const x = cm.markDownExToString({ markDown: readMeMulti }) - fs.writeFile(path.join(f.dir, "readme.enable-multi-api.md"), x) + const block1 =cm.markDownExToString({ markDown: cm.createCodeBlock( + magic, + yaml.dump({ + "input-file": it.toArray(set), + "require": `$(this-folder)/${path.relative(f.dir, profilesDir).replace(/\\/g, '/')}/readme.md` }, { lineWidth: 1000 }) + )});*/ + const block = +`\`\`\` ${magic} +# include the azure profile definitions from the standard location +require: $(this-folder)/${path.relative(f.dir, profilesDir).replace(/\\/g, '/')}/readme.md + +# all the input files across all versions +${yaml.dump({ 'input-file': it.toArray(set) },{ lineWidth: 1000 } )} +\`\`\`` + content = content.replace( /``` yaml \$\(tag\) == 'all-api-versions' \/\* autogenerated \*\/[\S\s]*?```/g, block) + + if(original_content !== content ){ + console.log(`Updating: ${file}`); + fs.writeFile(path.join(f.dir, "readme.md"), content) + } + } } } catch (e) { @@ -66,4 +108,4 @@ const main = async (dir: string) => { } } -main(path.join(process.cwd(), "specification")) +main(path.join(process.cwd(), "specification"), path.join(process.cwd(), "profiles")) diff --git a/specification/EnterpriseKnowledgeGraph/resource-manager/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/examples/CreateEnterpriseKnowledgeGraph.json b/specification/EnterpriseKnowledgeGraph/resource-manager/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/examples/CreateEnterpriseKnowledgeGraph.json index b1c601f8bcac..fca3cb439fdb 100644 --- a/specification/EnterpriseKnowledgeGraph/resource-manager/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/examples/CreateEnterpriseKnowledgeGraph.json +++ b/specification/EnterpriseKnowledgeGraph/resource-manager/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/examples/CreateEnterpriseKnowledgeGraph.json @@ -15,11 +15,13 @@ }, "responses": { "201": { - "name": "samplename", - "type": "sampletype", - "id": "someid", - "properties": { - "provisioningState": "Accepted" + "body": { + "name": "samplename", + "type": "sampletype", + "id": "someid", + "properties": { + "provisioningState": "Creating" + } } } } diff --git a/specification/EnterpriseKnowledgeGraph/resource-manager/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/examples/GetEnterpriseKnowledgeGraph.json b/specification/EnterpriseKnowledgeGraph/resource-manager/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/examples/GetEnterpriseKnowledgeGraph.json index 28a9cd5ea7c8..ee54a933438e 100644 --- a/specification/EnterpriseKnowledgeGraph/resource-manager/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/examples/GetEnterpriseKnowledgeGraph.json +++ b/specification/EnterpriseKnowledgeGraph/resource-manager/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/examples/GetEnterpriseKnowledgeGraph.json @@ -7,11 +7,13 @@ }, "responses": { "200": { - "name": "samplename", - "type": "sampletype", - "id": "someid", - "properties": { - "provisioningState": "Succeedded" + "body": { + "name": "samplename", + "type": "sampletype", + "id": "someid", + "properties": { + "provisioningState": "Succeeded" + } } } } diff --git a/specification/EnterpriseKnowledgeGraph/resource-manager/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/examples/UpdateEnterpriseKnowledgeGraph.json b/specification/EnterpriseKnowledgeGraph/resource-manager/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/examples/UpdateEnterpriseKnowledgeGraph.json index 7f83548ddf2d..fc06721d5e00 100644 --- a/specification/EnterpriseKnowledgeGraph/resource-manager/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/examples/UpdateEnterpriseKnowledgeGraph.json +++ b/specification/EnterpriseKnowledgeGraph/resource-manager/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/examples/UpdateEnterpriseKnowledgeGraph.json @@ -18,11 +18,13 @@ }, "responses": { "201": { - "name": "samplename", - "type": "sampletype", - "id": "someid", - "properties": { - "provisioningState": "Accepted" + "body": { + "name": "samplename", + "type": "sampletype", + "id": "someid", + "properties": { + "provisioningState": "Creating" + } } } } diff --git a/specification/EnterpriseKnowledgeGraph/resource-manager/readme.go.md b/specification/EnterpriseKnowledgeGraph/resource-manager/readme.go.md index b15cdf7f29fa..80040132bf08 100644 --- a/specification/EnterpriseKnowledgeGraph/resource-manager/readme.go.md +++ b/specification/EnterpriseKnowledgeGraph/resource-manager/readme.go.md @@ -5,7 +5,7 @@ These settings apply only when `--go` is specified on the command line. ``` yaml $(go) go: license-header: MICROSOFT_APACHE_NO_VERSION - namespace: EnterpriseKnowledgeGraphService + namespace: enterpriseknowledgegraphservice clear-output-folder: true ``` @@ -13,21 +13,12 @@ go: ``` yaml $(go) && $(multiapi) batch: - tag: package-2018-12-03 - - tag: package-2018-12-03-preview ``` -### Tag: package-2018-12 and go -These settings apply only when `--tag=package-2018-12 --go` is specified on the command line. +### Tag: package-2018-12-03 and go +These settings apply only when `--tag=package-2018-12-03 --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(tag) == 'package-2018-12' && $(go) -output-folder: $(go-sdk-folder)/services/$(namespace)/2018-12-03/$(namespace) +``` yaml $(tag) == 'package-2018-12-03' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/2018-12-03/$(namespace) ``` - -### Tag: package-2018-12-preview and go -These settings apply only when `--tag=package-2018-12-preview --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-2018-12-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/2018-12-31-preview/$(namespace) - diff --git a/specification/EnterpriseKnowledgeGraph/resource-manager/readme.md b/specification/EnterpriseKnowledgeGraph/resource-manager/readme.md index e2c979a5e36d..fba1aeae905d 100644 --- a/specification/EnterpriseKnowledgeGraph/resource-manager/readme.md +++ b/specification/EnterpriseKnowledgeGraph/resource-manager/readme.md @@ -72,6 +72,7 @@ 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-go ``` @@ -86,6 +87,31 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.EnterpriseKnowledgeGraphService - output-folder: $(csharp-sdks-folder)/EnterpriseKnowledgeGraphService/Microsoft.Azure.Management.EnterpriseKnowledgeGraphService/Generated + output-folder: $(csharp-sdks-folder)/enterpriseknowledgegraphservice/Microsoft.Azure.Management.EnterpriseKnowledgeGraphService/src/Generated clear-output-folder: 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)/Microsoft.EnterpriseKnowledgeGraph/preview/2018-12-03/EnterpriseKnowledgeGraphSwagger.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/addons/resource-manager/readme.md b/specification/addons/resource-manager/readme.md index 0cd20a268d8e..e2fc0365447c 100644 --- a/specification/addons/resource-manager/readme.md +++ b/specification/addons/resource-manager/readme.md @@ -62,7 +62,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.Addons - output-folder: $(csharp-sdks-folder)/Addons/Management.Addons/Generated + output-folder: $(csharp-sdks-folder)/addons/Microsoft.Azure.Management.Addons/src/Generated clear-output-folder: true ``` @@ -181,3 +181,29 @@ generate-interface: 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)/Microsoft.Addons/preview/2018-03-01/addons-swagger.json + - $(this-folder)/Microsoft.Addons/preview/2017-05-15/Addons.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/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/AddAlertFeedback.json b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/AddAlertFeedback.json index 782dc7bc69a8..1e25e5f13862 100644 --- a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/AddAlertFeedback.json +++ b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/AddAlertFeedback.json @@ -1,17 +1,15 @@ { "parameters": { "serviceName": "sampleServiceName", - "alertFeedback": [ - { - "level": "Error", - "state": "Active", - "shortName": "AlertShortName", - "feeback": "Like", - "comment": "SampleComment", - "consentedToShare": false, - "serviceMemberId": "SampleServiceMemberId" - } - ], + "alertFeedback": { + "level": "Error", + "state": "Active", + "shortName": "AlertShortName", + "feedback": "Like", + "comment": "SampleComment", + "consentedToShare": false, + "serviceMemberId": "SampleServiceMemberId" + }, "api-version": "2014-01-01" }, "responses": { diff --git a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/AddUserPreference.json b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/AddUserPreference.json index 1d9a70d84ba8..b15f017c7a0c 100644 --- a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/AddUserPreference.json +++ b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/AddUserPreference.json @@ -2,14 +2,12 @@ "parameters": { "serviceName": "sampleServiceName", "featureName": "SampleFeatureName", - "setting": [ - { - "metricNames": [ - "UserPreference1", - "UserPreference2" - ] - } - ], + "setting": { + "metricNames": [ + "UserPreference1", + "UserPreference2" + ] + }, "api-version": "2014-01-01" }, "responses": { diff --git a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/Alerts.json b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/Alerts.json index e535b5304c3e..ca0d4dd0e5df 100644 --- a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/Alerts.json +++ b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/Alerts.json @@ -27,21 +27,23 @@ } ], "scope": "SampleScope", - "additionalInformation": { - "titleName": "SampleAdditionalInfo", - "titleValue": "SampleTitle", - "properties": [ - { - "key": "Property1", - "value": "Value1" - }, - { - "key": "Property2", - "value": "Value2" - } - ], - "hasProperties": true - }, + "additionalInformation": [ + { + "titleName": "SampleAdditionalInfo", + "titleValue": "SampleTitle", + "properties": [ + { + "key": "Property1", + "value": "Value1" + }, + { + "key": "Property2", + "value": "Value2" + } + ], + "hasProperties": true + } + ], "createdDate": "2018-04-10T03:12:23.4408944Z", "resolvedDate": "2018-04-10T03:12:23.4408944Z", "lastUpdated": "2018-04-30T19:24:42.1946017Z", diff --git a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/ConnectorMetadata.json b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/ConnectorMetadata.json index 673e6f5e5131..b4bae23846d1 100644 --- a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/ConnectorMetadata.json +++ b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/ConnectorMetadata.json @@ -2,29 +2,26 @@ "parameters": { "serviceName": "sampleServiceName", "serviceMemberId": "SampleServiceMemberId", + "metricName": "sampleMetricName", "api-version": "2014-01-01" }, "responses": { "200": { "body": { - "value": [ + "connectors": [ { - "connectors": [ - { - "connectorId": "3efbb72d-5047-4816-a7dd-73fefe16a2f3", - "connectorDisplayName": "adhsdfus1runner.adhs.com" - }, - { - "connectorId": "b891884f-051e-4a83-95af-2544101c9083", - "connectorDisplayName": "dfadhybridhealth.dfdomain.net - AAD" - } - ], - "runProfileNames": [ - "Export", - "ApplyRules", - "DeltaImport" - ] + "connectorId": "3efbb72d-5047-4816-a7dd-73fefe16a2f3", + "connectorDisplayName": "adhsdfus1runner.adhs.com" + }, + { + "connectorId": "b891884f-051e-4a83-95af-2544101c9083", + "connectorDisplayName": "dfadhybridhealth.dfdomain.net - AAD" } + ], + "runProfileNames": [ + "Export", + "ApplyRules", + "DeltaImport" ] } } diff --git a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/PatchTenant.json b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/PatchTenant.json index 3970f6e3c32a..8f5a01a32008 100644 --- a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/PatchTenant.json +++ b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/PatchTenant.json @@ -1,10 +1,8 @@ { "parameters": { - "tenant": [ - { - "agentAutoUpdate": false - } - ], + "tenant": { + "agentAutoUpdate": false + }, "api-version": "2014-01-01" }, "responses": { diff --git a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/Server_Alerts.json b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/Server_Alerts.json index c83967580650..e2f7edad9443 100644 --- a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/Server_Alerts.json +++ b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/Server_Alerts.json @@ -28,21 +28,23 @@ } ], "scope": "SampleScope", - "additionalInformation": { - "titleName": "SampleAdditionalInfo", - "titleValue": "SampleTitle", - "properties": [ - { - "key": "Property1", - "value": "Value1" - }, - { - "key": "Property2", - "value": "Value2" - } - ], - "hasProperties": true - }, + "additionalInformation": [ + { + "titleName": "SampleAdditionalInfo", + "titleValue": "SampleTitle", + "properties": [ + { + "key": "Property1", + "value": "Value1" + }, + { + "key": "Property2", + "value": "Value2" + } + ], + "hasProperties": true + } + ], "createdDate": "2018-04-10T03:12:23.4408944Z", "resolvedDate": "2018-04-10T03:12:23.4408944Z", "lastUpdated": "2018-04-30T19:24:42.1945017Z", diff --git a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/UpdateService.json b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/UpdateService.json index ccc58f4862d5..384eea9a3444 100644 --- a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/UpdateService.json +++ b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/UpdateService.json @@ -1,12 +1,10 @@ { "parameters": { "serviceName": "sampleServiceName", - "service": [ - { - "notificationEmailEnabled": true, - "notificationEmailEnabledForGlobalADmins": true - } - ], + "service": { + "notificationEmailEnabled": true, + "notificationEmailEnabledForGlobalAdmins": true + }, "api-version": "2014-01-01" }, "responses": { diff --git a/specification/adhybridhealthservice/resource-manager/readme.md b/specification/adhybridhealthservice/resource-manager/readme.md index c7d95580ebd7..5628efb7da58 100644 --- a/specification/adhybridhealthservice/resource-manager/readme.md +++ b/specification/adhybridhealthservice/resource-manager/readme.md @@ -93,3 +93,28 @@ 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. + +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.ADHybridHealthService\stable\2014-01-01\ADHybridHealthService.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/advisor/resource-manager/readme.md b/specification/advisor/resource-manager/readme.md index ea43cd0fe8f1..b9f5292cb02a 100644 --- a/specification/advisor/resource-manager/readme.md +++ b/specification/advisor/resource-manager/readme.md @@ -69,6 +69,7 @@ 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 @@ -187,3 +188,30 @@ generate-interface: 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)/Microsoft.Advisor/stable/2017-04-19/advisor.json + - $(this-folder)/Microsoft.Advisor/stable/2017-03-31/advisor.json + - $(this-folder)/Microsoft.Advisor/preview/2016-07-12-preview/advisor.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/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2018-05-05-preview/examples/SmartGroups_List.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2018-05-05-preview/examples/SmartGroups_List.json index 6d4db43e6ef6..4a71a51d322b 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2018-05-05-preview/examples/SmartGroups_List.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2018-05-05-preview/examples/SmartGroups_List.json @@ -6,7 +6,7 @@ "responses": { "200": { "body": { - "nextLink": "", + "nextLink": null, "value": [ { "properties": { diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2018-11-02-privatepreview/examples/SmartGroups_List.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2018-11-02-privatepreview/examples/SmartGroups_List.json index 6d4db43e6ef6..4a71a51d322b 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2018-11-02-privatepreview/examples/SmartGroups_List.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2018-11-02-privatepreview/examples/SmartGroups_List.json @@ -6,7 +6,7 @@ "responses": { "200": { "body": { - "nextLink": "", + "nextLink": null, "value": [ { "properties": { diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-03-01-preview/examples/SmartGroups_List.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-03-01-preview/examples/SmartGroups_List.json index 5328a3e9b156..bf4722bcdb59 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-03-01-preview/examples/SmartGroups_List.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-03-01-preview/examples/SmartGroups_List.json @@ -6,7 +6,7 @@ "responses": { "200": { "body": { - "nextLink": "", + "nextLink": null, "value": [ { "properties": { 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 ed82beeed9b4..11df28bec57b 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 @@ -52,6 +52,36 @@ } } }, + "/providers/Microsoft.AlertsManagement/alertsMetaData": { + "get": { + "operationId": "Alerts_MetaData", + "description": "List alerts meta data information based on value of identifier parameter.", + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/identifier" + } + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "OK. Successfully listed alert meta data.", + "schema": { + "$ref": "#/definitions/alertsMetaData" + } + } + }, + "x-ms-examples": { + "MonService": { + "$ref": "./examples/AlertsMetaData_MonitorService.json" + } + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/alerts": { "get": { "operationId": "Alerts_GetAll", @@ -390,7 +420,7 @@ } } }, - "x-ms-pageable": { + "x-ms-pageable": { "nextLinkName": "nextLink" }, "x-ms-examples": { @@ -892,10 +922,11 @@ "parameters": { "subscriptionId": { "name": "subscriptionId", - "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "type": "string", "in": "path", - "required": true + "required": true, + "type": "string", + "description": "The ID of the target subscription.", + "minLength": 1 }, "resourceGroupName": { "name": "resourceGroupName", @@ -1269,6 +1300,21 @@ "in": "query", "required": false, "x-ms-parameter-location": "method" + }, + "identifier": { + "name": "identifier", + "description": "Identification of the information to be retrieved by API call.", + "type": "string", + "in": "query", + "required": true, + "enum": [ + "MonitorServiceList" + ], + "x-ms-enum": { + "name": "identifier", + "modelAsString": true + }, + "x-ms-parameter-location": "method" } }, "definitions": { @@ -1376,7 +1422,6 @@ } }, "ManagedResource": { - "x-ms-azure-resource": true, "description": "An azure managed resource object", "allOf": [ { @@ -2128,7 +2173,7 @@ }, "ActionRuleProperties": { "description": "Action rule properties defining scope, conditions, suppression logic for action rule", - "discriminator" : "type", + "discriminator": "type", "required": [ "type" ], @@ -2294,6 +2339,71 @@ "description": "tags to be updated" } } + }, + "alertsMetaData": { + "description": "alert meta data information.", + "properties": { + "properties": { + "$ref": "#/definitions/alertsMetaDataProperties" + } + } + }, + "alertsMetaDataProperties": { + "description": "alert meta data property bag", + "discriminator": "metadataIdentifier", + "required": [ + "metadataIdentifier" + ], + "properties": { + "metadataIdentifier": { + "type": "string", + "description": "Identification of the information to be retrieved by API call", + "enum": [ + "MonitorServiceList" + ], + "x-ms-enum": { + "name": "metadataIdentifier", + "modelAsString": true + } + } + } + }, + "MonitorServiceList": { + "title": "Monitor service details", + "description": "Monitor service details", + "required": [ + "data" + ], + "allOf": [ + { + "$ref": "#/definitions/alertsMetaDataProperties" + }, + { + "type": "object" + } + ], + "properties": { + "data": { + "description": "Array of operations", + "type": "array", + "items": { + "$ref": "#/definitions/MonitorServiceDetails" + } + } + } + }, + "MonitorServiceDetails": { + "description": "Details of a monitor service", + "properties": { + "name": { + "type": "string", + "description": "Monitor service name" + }, + "displayName": { + "type": "string", + "description": "Monitor service display name" + } + } } } } diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/examples/AlertsMetaData_MonitorService.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/examples/AlertsMetaData_MonitorService.json new file mode 100644 index 000000000000..30a95d200ffa --- /dev/null +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/examples/AlertsMetaData_MonitorService.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "api-version": "2019-05-05-preview", + "identifier": "MonitorServiceList" + }, + "responses": { + "200": { + "body": { + "properties": { + "metadataIdentifier": "MonitorServiceList", + "data": [ + { + "name": "ActivityLog Administrative", + "displayName": "Activity Log - Administrative" + }, + { + "name": "ActivityLog Autoscale", + "displayName": "Activity Log - Autoscale" + }, + { + "name": "ActivityLog Policy", + "displayName": "Activity Log - Policy" + }, + { + "name": "ActivityLog Recommendation", + "displayName": "Activity Log - Recommendation" + }, + { + "name": "ActivityLog Security", + "displayName": "Activity Log - Security" + }, + { + "name": "Application Insights", + "displayName": "Application Insights" + }, + { + "name": "Azure Backup", + "displayName": "Azure Backup" + }, + { + "name": "Custom", + "displayName": "Custom" + }, + { + "name": "Data Box Edge", + "displayName": "Data Box Edge" + }, + { + "name": "VM Insights", + "displayName": "VM Insights" + }, + { + "name": "Log Analytics", + "displayName": "Log Analytics" + }, + { + "name": "Nagios", + "displayName": "NAGIOS" + }, + { + "name": "Platform", + "displayName": "Platform" + }, + { + "name": "Resource Health", + "displayName": "Resource Health" + }, + { + "name": "SCOM", + "displayName": "SCOM" + }, + { + "name": "ServiceHealth", + "displayName": "Service Health" + }, + { + "name": "Smart Detector", + "displayName": "SmartDetector" + }, + { + "name": "Zabbix", + "displayName": "ZABBIX" + } + ] + } + } + } + } +} diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/examples/SmartGroups_List.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/examples/SmartGroups_List.json index b5ded5a48718..44c2aa47c866 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/examples/SmartGroups_List.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/examples/SmartGroups_List.json @@ -6,7 +6,7 @@ "responses": { "200": { "body": { - "nextLink": "", + "nextLink": null, "value": [ { "properties": { diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2018-05-05/examples/SmartGroups_List.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2018-05-05/examples/SmartGroups_List.json index 5328a3e9b156..bf4722bcdb59 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2018-05-05/examples/SmartGroups_List.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2018-05-05/examples/SmartGroups_List.json @@ -6,7 +6,7 @@ "responses": { "200": { "body": { - "nextLink": "", + "nextLink": null, "value": [ { "properties": { diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/SmartDetectorAlertRulesApi.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/SmartDetectorAlertRulesApi.json index be1bd4faab5a..30b9b05d7e9f 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/SmartDetectorAlertRulesApi.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/SmartDetectorAlertRulesApi.json @@ -118,7 +118,7 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}": { "get": { "tags": [ - "smartDetectorAlertRules" + "SmartDetectorAlertRules" ], "operationId": "SmartDetectorAlertRules_Get", "description": "Get a specific Smart Detector alert rule.", diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartDetectorAlertRule_Delete.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartDetectorAlertRule_Delete.json index 0a63b3bbdb7b..5d68deada80e 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartDetectorAlertRule_Delete.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartDetectorAlertRule_Delete.json @@ -6,11 +6,7 @@ "api-version": "2019-03-01" }, "responses": { - "200": { - "body": null - }, - "204": { - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartDetectorAlertRule_List.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartDetectorAlertRule_List.json index 41e98f4677d1..a1ffc5e988ae 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartDetectorAlertRule_List.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartDetectorAlertRule_List.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "nextLink": "", + "nextLink": null, "value": [ { "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule", diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartDetectorAlertRule_ListByResourceGroup.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartDetectorAlertRule_ListByResourceGroup.json index b99f2f31186d..ab56c8966b07 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartDetectorAlertRule_ListByResourceGroup.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartDetectorAlertRule_ListByResourceGroup.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "nextLink": "", + "nextLink": null, "value": [ { "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule", diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartGroups_List.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartGroups_List.json index 5328a3e9b156..bf4722bcdb59 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartGroups_List.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-03-01/examples/SmartGroups_List.json @@ -6,7 +6,7 @@ "responses": { "200": { "body": { - "nextLink": "", + "nextLink": null, "value": [ { "properties": { diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json new file mode 100644 index 000000000000..45d3bcaa439b --- /dev/null +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json @@ -0,0 +1,653 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Alerts Management Service Resource Provider", + "description": "APIs for Azure Smart Detector Alert Rules CRUD operations.", + "version": "2019-06-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.alertsManagement/smartDetectorAlertRules": { + "get": { + "tags": [ + "SmartDetectorAlertRules" + ], + "operationId": "SmartDetectorAlertRules_List", + "description": "List all the existing Smart Detector alert rules within the subscription.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ExpandDetectorParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Successful request to list Smart Detector alert rules.", + "schema": { + "$ref": "#/definitions/AlertRulesList" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Smart Detector alert rules": { + "$ref": "./examples/SmartDetectorAlertRule_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules": { + "get": { + "tags": [ + "SmartDetectorAlertRules" + ], + "operationId": "SmartDetectorAlertRules_ListByResourceGroup", + "description": "List all the existing Smart Detector alert rules within the subscription and resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ExpandDetectorParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Successful request to list Smart Detector alert rules.", + "schema": { + "$ref": "#/definitions/AlertRulesList" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List alert rules": { + "$ref": "./examples/SmartDetectorAlertRule_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}": { + "get": { + "tags": [ + "SmartDetectorAlertRules" + ], + "operationId": "SmartDetectorAlertRules_Get", + "description": "Get a specific Smart Detector alert rule.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AlertRuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ExpandDetectorParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Successful request to get Smart Detector alert rule.", + "schema": { + "$ref": "#/definitions/AlertRule" + } + } + }, + "x-ms-examples": { + "Get a Smart Detector alert rule": { + "$ref": "./examples/SmartDetectorAlertRule_Get.json" + } + } + }, + "put": { + "tags": [ + "SmartDetectorAlertRules" + ], + "operationId": "SmartDetectorAlertRules_CreateOrUpdate", + "description": "Create or update a Smart Detector alert rule.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AlertRuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "description": "Parameters supplied to the operation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AlertRule" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Successful request to update a Smart Detector alert rule.", + "schema": { + "$ref": "#/definitions/AlertRule" + } + }, + "201": { + "description": "Successful request to create a Smart Detector alert rule.", + "schema": { + "$ref": "#/definitions/AlertRule" + } + } + }, + "x-ms-examples": { + "Create or update a Smart Detector alert rule": { + "$ref": "./examples/SmartDetectorAlertRule_CreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "SmartDetectorAlertRules" + ], + "operationId": "SmartDetectorAlertRules_Patch", + "description": "Patch a specific Smart Detector alert rule.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AlertRuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "description": "Parameters supplied to the operation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AlertRulePatchObject" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Successful request to patch Smart Detector alert rule.", + "schema": { + "$ref": "#/definitions/AlertRule" + } + } + }, + "x-ms-examples": { + "Patch alert rules": { + "$ref": "./examples/SmartDetectorAlertRule_Patch.json" + } + } + }, + "delete": { + "tags": [ + "SmartDetectorAlertRules" + ], + "operationId": "SmartDetectorAlertRules_Delete", + "description": "Delete an existing Smart Detector alert rule.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AlertRuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Successful request to delete a Smart Detector alert rule." + }, + "204": { + "description": "The Smart Detector alert rule does not exist. It may have already been deleted." + } + }, + "x-ms-examples": { + "Delete a Smart Detector alert rule": { + "$ref": "./examples/SmartDetectorAlertRule_Delete.json" + } + } + } + } + }, + "definitions": { + "ErrorResponse": { + "description": "Describe the format of an Error response.", + "type": "object", + "properties": { + "code": { + "description": "Error code", + "type": "string" + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + }, + "ActionGroupsInformation": { + "properties": { + "customEmailSubject": { + "description": "An optional custom email subject to use in email notifications.", + "type": "string" + }, + "customWebhookPayload": { + "description": "An optional custom web-hook payload to use in web-hook notifications.", + "type": "string" + }, + "groupIds": { + "description": "The Action Group resource IDs.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "groupIds" + ], + "description": "The Action Groups information, used by the alert rule." + }, + "ThrottlingInformation": { + "properties": { + "duration": { + "description": "The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes", + "type": "string", + "format": "duration" + } + }, + "description": "Optional throttling information for the alert rule." + }, + "AzureResource": { + "type": "object", + "properties": { + "id": { + "description": "The resource ID.", + "readOnly": true, + "type": "string" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The resource type." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The resource name." + }, + "location": { + "type": "string", + "description": "The resource location.", + "default": "global" + }, + "tags": { + "type": "object", + "description": "The resource tags." + } + }, + "x-ms-azure-resource": true, + "description": "An Azure resource object" + }, + "AlertRule": { + "allOf": [ + { + "$ref": "#/definitions/AzureResource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AlertRuleProperties", + "description": "The properties of the alert rule." + } + }, + "description": "The alert rule information" + }, + "AlertRulesList": { + "description": "List of Smart Detector alert rules.", + "properties": { + "value": { + "description": "List of Smart Detector alert rules.", + "type": "array", + "items": { + "$ref": "#/definitions/AlertRule" + } + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "AlertRulePatchObject": { + "properties": { + "id": { + "description": "The resource ID.", + "readOnly": true, + "type": "string" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The resource type." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The resource name." + }, + "tags": { + "type": "object", + "description": "The resource tags." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AlertRulePatchProperties", + "description": "The properties of the alert rule.", + "minProperties": 1 + } + }, + "description": "The alert rule patch information" + }, + "Detector": { + "properties": { + "id": { + "type": "string", + "description": "The detector id." + }, + "parameters": { + "description": "The detector's parameters.'", + "type": "object", + "additionalProperties": { + "type": "object" + } + }, + "name": { + "description": "The Smart Detector name. By default this is not populated, unless it's specified in expandDetector", + "type": "string" + }, + "description": { + "type": "string", + "description": "The Smart Detector description. By default this is not populated, unless it's specified in expandDetector" + }, + "supportedResourceTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector" + }, + "imagePaths": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector" + } + }, + "required": [ + "id" + ], + "description": "The detector information. By default this is not populated, unless it's specified in expandDetector" + }, + "AlertRuleProperties": { + "properties": { + "description": { + "description": "The alert rule description.", + "type": "string" + }, + "state": { + "description": "The alert rule state.", + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "AlertRuleState", + "modelAsString": true + } + }, + "severity": { + "description": "The alert rule severity.", + "type": "string", + "enum": [ + "Sev0", + "Sev1", + "Sev2", + "Sev3", + "Sev4" + ], + "x-ms-enum": { + "name": "Severity", + "modelAsString": true + } + }, + "frequency": { + "description": "The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes.", + "type": "string", + "format": "duration" + }, + "detector": { + "description": "The alert rule's detector.", + "$ref": "#/definitions/Detector" + }, + "scope": { + "description": "The alert rule resources scope.", + "type": "array", + "items": { + "type": "string" + } + }, + "actionGroups": { + "description": "The alert rule actions.", + "$ref": "#/definitions/ActionGroupsInformation" + }, + "throttling": { + "description": "The alert rule throttling information.", + "$ref": "#/definitions/ThrottlingInformation" + } + }, + "required": [ + "state", + "severity", + "frequency", + "detector", + "scope", + "actionGroups" + ], + "description": "The alert rule properties." + }, + "AlertRulePatchProperties": { + "properties": { + "description": { + "description": "The alert rule description.", + "type": "string" + }, + "state": { + "description": "The alert rule state.", + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "AlertRuleState", + "modelAsString": true + } + }, + "severity": { + "description": "The alert rule severity.", + "type": "string", + "enum": [ + "Sev0", + "Sev1", + "Sev2", + "Sev3", + "Sev4" + ], + "x-ms-enum": { + "name": "Severity", + "modelAsString": true + } + }, + "frequency": { + "description": "The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes.", + "type": "string", + "format": "duration" + }, + "actionGroups": { + "description": "The alert rule actions.", + "$ref": "#/definitions/ActionGroupsInformation" + }, + "throttling": { + "description": "The alert rule throttling information.", + "$ref": "#/definitions/ThrottlingInformation" + } + }, + "description": "The alert rule properties." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription.", + "minLength": 1 + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "AlertRuleNameParameter": { + "name": "alertRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the alert rule.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ExpandDetectorParameter": { + "name": "expandDetector", + "in": "query", + "type": "boolean", + "description": "Indicates if Smart Detector should be expanded.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_CreateOrUpdate.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_CreateOrUpdate.json new file mode 100644 index 000000000000..6d99b0ab58ae --- /dev/null +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_CreateOrUpdate.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "subscriptionId": "b368ca2f-e298-46b7-b0ab-012281956afa", + "resourceGroupName": "MyAlertRules", + "alertRuleName": "MyAlertRule", + "api-version": "2019-06-01", + "parameters": { + "properties": { + "description": "Sample smart detector alert rule description", + "state": "Enabled", + "severity": "Sev3", + "frequency": "PT5M", + "detector": { + "id": "VMMemoryLeak" + }, + "scope": [ + "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1" + ], + "actionGroups": { + "customEmailSubject": "My custom email subject", + "customWebhookPayload": "{\"AlertRuleName\":\"#alertrulename\"}", + "groupIds": [ + "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup" + ] + }, + "throttling": { + "duration": "PT20M" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule", + "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", + "name": "MyAlertRule", + "location": "global", + "tags": "", + "properties": { + "description": "Sample smart detector alert rule description", + "state": "Enabled", + "severity": "Sev3", + "frequency": "PT5M", + "detector": { + "id": "VMMemoryLeak" + }, + "scope": [ + "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1" + ], + "actionGroups": [ + { + "actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup" + } + ], + "throttling": { + "duration": "PT20M" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule", + "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", + "name": "MyAlertRule", + "location": "global", + "tags": "", + "properties": { + "description": "Sample smart detector alert rule description", + "state": "Enabled", + "severity": "Sev3", + "frequency": "PT5M", + "detector": { + "id": "VMMemoryLeak" + }, + "scope": [ + "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1" + ], + "actionGroups": [ + { + "actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup" + } + ], + "throttling": { + "duration": "PT20M" + } + } + } + } + } +} diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Delete.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Delete.json new file mode 100644 index 000000000000..f929164fc5c2 --- /dev/null +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "b368ca2f-e298-46b7-b0ab-012281956afa", + "resourceGroupName": "MyAlertRules", + "alertRuleName": "MyAlertRule", + "api-version": "2019-06-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Get.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Get.json new file mode 100644 index 000000000000..d6adf957b004 --- /dev/null +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Get.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "b368ca2f-e298-46b7-b0ab-012281956afa", + "resourceGroupName": "MyAlertRules", + "alertRuleName": "MyAlertRule", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule", + "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", + "name": "MyAlertRule", + "location": "global", + "tags": "", + "properties": { + "description": "Sample smart detector alert rule description", + "state": "Enabled", + "severity": "Sev3", + "frequency": "PT5M", + "detector": { + "id": "VMMemoryLeak" + }, + "scope": [ + "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1" + ], + "actionGroups": [ + { + "actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/MyActionGroups/providers/microsoft.insights/actionGroups/MyActionGroup" + } + ], + "throttling": { + "duration": "PT20M" + } + } + } + } + } +} diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_List.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_List.json new file mode 100644 index 000000000000..3de1aac35a0a --- /dev/null +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_List.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "b368ca2f-e298-46b7-b0ab-012281956afa", + "resourceGroupName": "MyAlertRules", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule", + "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", + "name": "MyAlertRule", + "location": "global", + "tags": "", + "properties": { + "description": "Sample smart detector alert rule description", + "state": "Enabled", + "severity": "Sev3", + "frequency": "PT5M", + "detector": { + "id": "VMMemoryLeak" + }, + "scope": [ + "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1" + ], + "actionGroups": [ + { + "actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/MyActionGroups/providers/microsoft.insights/actionGroups/MyActionGroup" + } + ], + "throttling": { + "duration": "PT20M" + } + } + }, + { + "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MySecondAlertRule", + "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", + "name": "MySecondAlertRule", + "location": "global", + "tags": "", + "properties": { + "description": "Sample smart detector alert rule description", + "state": "Disabled", + "severity": "Sev2", + "frequency": "PT15M", + "detector": { + "id": "VMMemoryLeak" + }, + "scope": [ + "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm2" + ], + "actionGroups": [ + { + "actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/MyActionGroups/providers/microsoft.insights/actionGroups/MyActionGroup" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_ListByResourceGroup.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_ListByResourceGroup.json new file mode 100644 index 000000000000..f1e3a4f46cfb --- /dev/null +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_ListByResourceGroup.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "b368ca2f-e298-46b7-b0ab-012281956afa", + "resourceGroupName": "MyAlertRules", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule", + "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", + "name": "MyAlertRule", + "location": "global", + "tags": "", + "properties": { + "description": "Sample smart detector alert rule description", + "state": "Enabled", + "severity": "Sev3", + "frequency": "PT5M", + "detector": { + "id": "VMMemoryLeak" + }, + "scope": [ + "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default" + ], + "actionGroups": [ + { + "actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/MyActionGroups/providers/microsoft.insights/actionGroups/MyActionGroup" + } + ], + "throttling": { + "duration": "PT20M" + } + } + }, + { + "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MySecondAlertRule", + "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", + "name": "MySecondAlertRule", + "location": "global", + "tags": "", + "properties": { + "description": "Sample smart detector alert rule description", + "state": "Disabled", + "severity": "Sev2", + "frequency": "PT15M", + "detector": { + "id": "VMMemoryLeak" + }, + "scope": [ + "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default" + ], + "actionGroups": [ + { + "actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/MyActionGroups/providers/microsoft.insights/actionGroups/MyActionGroup" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Patch.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Patch.json new file mode 100644 index 000000000000..ab4de65dc113 --- /dev/null +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Patch.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "b368ca2f-e298-46b7-b0ab-012281956afa", + "resourceGroupName": "MyAlertRules", + "alertRuleName": "MyAlertRule", + "api-version": "2019-06-01", + "parameters": { + "tags": { + "newKey": "newVal" + }, + "properties": { + "description": "New description for patching", + "frequency": "PT1M" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule", + "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", + "name": "MyAlertRule", + "location": "global", + "tags": { + "newKey": "newVal" + }, + "properties": { + "description": "New description for patching", + "state": "Enabled", + "severity": "Sev3", + "frequency": "PT1M", + "detector": { + "id": "VMMemoryLeak" + }, + "scope": [ + "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1" + ], + "actionGroups": [ + { + "actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup" + } + ], + "throttling": { + "duration": "PT20M" + } + } + } + } + } +} diff --git a/specification/alertsmanagement/resource-manager/readme.go.md b/specification/alertsmanagement/resource-manager/readme.go.md index b6a1cd3fb8e0..13f35726b3ee 100644 --- a/specification/alertsmanagement/resource-manager/readme.go.md +++ b/specification/alertsmanagement/resource-manager/readme.go.md @@ -13,7 +13,9 @@ go: ``` yaml $(go) && $(multiapi) batch: - tag: package-preview-2019-05 + - tag: package-2019-03 - tag: package-2018-05 + - tag: package-2018-05-preview ``` ### Tag: package-preview-2019-05 and go @@ -25,6 +27,15 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2019-03' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2019-03-01/$(namespace) +``` + ### Tag: package-2018-05 and go These settings apply only when `--tag=package-2018-05 --go` is specified on the command line. @@ -33,3 +44,12 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-05-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-05-05-preview/$(namespace) +``` diff --git a/specification/alertsmanagement/resource-manager/readme.java.md b/specification/alertsmanagement/resource-manager/readme.java.md new file mode 100644 index 000000000000..ffdebe30586c --- /dev/null +++ b/specification/alertsmanagement/resource-manager/readme.java.md @@ -0,0 +1,76 @@ +## 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.alertsmanagement +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-alertsmanagement +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-preview-2019-05 + - tag: package-2019-03 + - tag: package-2018-05 + - tag: package-2018-05-preview +``` + +### Tag: package-preview-2019-05 and java + +These settings apply only when `--tag=package-preview-2019-05 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag)=='package-preview-2019-05' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.alertsmanagement.v2019_05_05_preview + output-folder: $(azure-libraries-for-java-folder)/alertsmanagement/resource-manager/v2019_05_05_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2019-03 and java + +These settings apply only when `--tag=package-2019-03 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag)=='package-2019-03' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.alertsmanagement.v2019_03_01 + output-folder: $(azure-libraries-for-java-folder)/alertsmanagement/resource-manager/v2019_03_01 +regenerate-manager: true +generate-interface: true +``` + + +### Tag: package-2018-05 and java + +These settings apply only when `--tag=package-2018-05 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag)=='package-2018-05' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.alertsmanagement.v2018_05_05 + output-folder: $(azure-libraries-for-java-folder)/alertsmanagement/resource-manager/v2018_05_05 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-05-preview and java + +These settings apply only when `--tag=package-2018-05-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag)=='package-2018-05-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.alertsmanagement.v2018_05_05_preview + output-folder: $(azure-libraries-for-java-folder)/alertsmanagement/resource-manager/v2018_05_05_preview +regenerate-manager: true +generate-interface: true +``` \ No newline at end of file diff --git a/specification/alertsmanagement/resource-manager/readme.md b/specification/alertsmanagement/resource-manager/readme.md index 5d0b2f99e73a..f3499619c52f 100644 --- a/specification/alertsmanagement/resource-manager/readme.md +++ b/specification/alertsmanagement/resource-manager/readme.md @@ -24,13 +24,45 @@ To see additional help and options, run: These are the global settings for the AlertManagement API. +## Suppression +``` yaml +directive: + - suppress: R3025 + reason: The rule applied incorrectly to base class. + where: + - $.definitions.ManagedResource + - suppress: R3026 + reason: The rule applied incorrectly to base class. + where: + - $.definitions.ManagedResource +``` + ``` yaml title: AlertsManagementClient description: AlertsManagement Client openapi-type: arm -tag: package-2019-03 +tag: package-2019-06-preview ``` +### Tag: package-2019-06-preview + +These settings apply only when `--tag=package-2019-06-preview` is specified on the command line. + +```yaml $(tag) == 'package-2019-06-preview' +input-file: + - Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json + - Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json +``` + + +### Tag: package-2019-06 + +These settings apply only when `--tag=package-2019-06` is specified on the command line. + +```yaml $(tag) == 'package-2019-06' +input-file: + - Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json +``` ### Tag: package-2019-03 @@ -41,6 +73,7 @@ input-file: - Microsoft.AlertsManagement/stable/2019-03-01/AlertsManagement.json - Microsoft.AlertsManagement/stable/2019-03-01/SmartDetectorAlertRulesApi.json ``` + ### Tag: package-preview-2019-05 These settings apply only when `--tag=package-preview-2019-05` is specified on the command line. @@ -79,6 +112,7 @@ 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-libraries-for-java - repo: azure-sdk-for-go @@ -94,7 +128,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.AlertsManagement - output-folder: $(csharp-sdks-folder)/AlertsManagement/Management.AlertsManagement/Generated + output-folder: $(csharp-sdks-folder)/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated clear-output-folder: true ``` @@ -133,15 +167,34 @@ 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=`. +See configuration in [readme.java.md](./readme.java.md) -``` yaml $(java) -java: - azure-arm: true - fluent: true - namespace: com.microsoft.azure.management.alertsmanagement - license-header: MICROSOFT_MIT_NO_CODEGEN - payload-flattening-threshold: 1 - output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-alertsmanagement +## 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.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json + - $(this-folder)/Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json + - $(this-folder)/Microsoft.AlertsManagement/stable/2019-03-01/AlertsManagement.json + - $(this-folder)/Microsoft.AlertsManagement/stable/2019-03-01/SmartDetectorAlertRulesApi.json + - $(this-folder)/Microsoft.AlertsManagement/stable/2018-05-05/AlertsManagement.json + - $(this-folder)/Microsoft.AlertsManagement/preview/2018-05-05-preview/AlertsManagement.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/analysisservices/resource-manager/readme.md b/specification/analysisservices/resource-manager/readme.md index 0b702cbe9a97..294499dad582 100644 --- a/specification/analysisservices/resource-manager/readme.md +++ b/specification/analysisservices/resource-manager/readme.md @@ -77,6 +77,7 @@ 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-js - repo: azure-sdk-for-node @@ -181,3 +182,31 @@ generate-interface: 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)/Microsoft.AnalysisServices/stable/2017-08-01/analysisservices.json + - $(this-folder)/Microsoft.AnalysisServices/preview/2017-08-01-beta/analysisservices.json + - $(this-folder)/Microsoft.AnalysisServices/stable/2017-07-14/analysisservices.json + - $(this-folder)/Microsoft.AnalysisServices/stable/2016-05-16/analysisservices.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/apimanagement/control-plane/readme.md b/specification/apimanagement/control-plane/readme.md index c40c1687a5be..d9a982fb5199 100644 --- a/specification/apimanagement/control-plane/readme.md +++ b/specification/apimanagement/control-plane/readme.md @@ -93,3 +93,45 @@ Please also specify `--go-sdk-folder=?]+$", "x-ms-parameter-location": "method" }, "ApiIdRevParameter": { @@ -229,7 +228,6 @@ "description": "Identifier of the Backend entity. Must be unique in the current API Management service instance.", "minLength": 1, "maxLength": 80, - "pattern": "^[^*#&+:<>?]+$", "x-ms-parameter-location": "method" }, "CacheIdParameter": { @@ -478,7 +476,6 @@ "description": "Operation identifier within an API. Must be unique in the current API Management service instance.", "minLength": 1, "maxLength": 80, - "pattern": "^[^*#&+:<>?]+$", "x-ms-parameter-location": "method" }, "PolicyExportFormat": { @@ -531,7 +528,6 @@ "description": "Product identifier. Must be unique in the current API Management service instance.", "minLength": 1, "maxLength": 256, - "pattern": "^[^*#&+:<>?]+$", "x-ms-parameter-location": "method" }, "PropertyIdParameter": { @@ -685,7 +681,6 @@ "description": "User identifier. Must be unique in the current API Management service instance.", "minLength": 1, "maxLength": 80, - "pattern": "^[^*#&+:<>?]+$", "x-ms-parameter-location": "method" } } diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/apimapis.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/apimapis.json index 0f543b0ff4f4..921c722c09d6 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/apimapis.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/apimapis.json @@ -253,6 +253,9 @@ }, "ApiManagementCreateApiWithOpenIdConnect": { "$ref": "./examples/ApiManagementCreateApiWithOpenIdConnect.json" + }, + "ApiManagementCreateApiUsingImportOverrideServiceUrl": { + "$ref": "./examples/ApiManagementCreateApiUsingImportOverrideServiceUrl.json" } }, "parameters": [ diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/apimdeployment.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/apimdeployment.json index a51710cd7084..010d8afc44b0 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/apimdeployment.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/apimdeployment.json @@ -1065,7 +1065,7 @@ "additionalProperties": { "type": "string" }, - "description": "Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`." + "description": "Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.

You can disable any of next ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them." }, "certificates": { "type": "array", diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateApiOperation.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateApiOperation.json index 246f91a4172b..e1215791cdac 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateApiOperation.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateApiOperation.json @@ -7,7 +7,6 @@ "apiId": "PetStoreTemplate2", "operationId": "newoperations", "parameters": { - "name": "newoperation", "properties": { "displayName": "createUser2", "method": "POST", diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateApiUsingImportOverrideServiceUrl.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateApiUsingImportOverrideServiceUrl.json new file mode 100644 index 000000000000..d7f63ec4ee07 --- /dev/null +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateApiUsingImportOverrideServiceUrl.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "serviceName": "apimService1", + "resourceGroupName": "rg1", + "api-version": "2019-01-01", + "subscriptionId": "subid", + "apiId": "apidocs", + "parameters": { + "properties": { + "format": "swagger-link", + "value": "http://apimpimportviaurl.azurewebsites.net/api/apidocs/", + "path": "petstoreapi123", + "serviceUrl": "http://petstore.swagger.wordnik.com/api" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/apidocs", + "type": "Microsoft.ApiManagement/service/apis", + "name": "apidocs", + "properties": { + "displayName": "Swagger Sample App", + "apiRevision": "1", + "description": "This is a sample server Petstore server. You can find out more about Swagger \n at
http://swagger.wordnik.com or on irc.freenode.net, #swagger. For this sample,\n you can use the api key \"special-key\" to test the authorization filters", + "serviceUrl": "http://petstore.swagger.wordnik.com/api", + "path": "petstoreapi123", + "protocols": [ + "https" + ], + "subscriptionKeyParameterNames": { + "header": "Ocp-Apim-Subscription-Key", + "query": "subscription-key" + }, + "isCurrent": true + } + } + }, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/apidocs?api-version=2019-01-01&asyncId=5c730e343244df1b9cb56e85&asyncCode=201" + } + }, + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/apidocs", + "type": "Microsoft.ApiManagement/service/apis", + "name": "apidocs", + "properties": { + "displayName": "Swagger Sample App", + "apiRevision": "1", + "description": "This is a sample server Petstore server. You can find out more about Swagger \n at http://swagger.wordnik.com or on irc.freenode.net, #swagger. For this sample,\n you can use the api key \"special-key\" to test the authorization filters", + "serviceUrl": "http://petstore.swagger.wordnik.com/api", + "path": "petstoreapi123", + "protocols": [ + "https" + ], + "subscriptionKeyParameterNames": { + "header": "Ocp-Apim-Subscription-Key", + "query": "subscription-key" + }, + "isCurrent": true + } + } + } + } +} diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateProperty.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateProperty.json index 310e2cadc345..20cf3005cf3f 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateProperty.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateProperty.json @@ -35,17 +35,19 @@ } }, "200": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/properties/testprop2", - "type": "Microsoft.ApiManagement/service/properties", - "name": "testprop2", - "properties": { - "displayName": "prop3name", - "value": "propValue", - "tags": [ - "foo", - "bar" - ], - "secret": true + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/properties/testprop2", + "type": "Microsoft.ApiManagement/service/properties", + "name": "testprop2", + "properties": { + "displayName": "prop3name", + "value": "propValue", + "tags": [ + "foo", + "bar" + ], + "secret": true + } } } } diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateSubscription.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateSubscription.json index 620736a9665f..e32f3dac7bd1 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateSubscription.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementCreateSubscription.json @@ -31,17 +31,19 @@ } }, "200": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/subscriptions/testsub", - "type": "Microsoft.ApiManagement/service/subscriptions", - "name": "testsub", - "properties": { - "ownerId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/57127d485157a511ace86ae7", - "scope": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/products/5600b59475ff190048060002", - "displayName": "testsub", - "state": "submitted", - "createdDate": "2017-06-02T23:34:03.1055076Z", - "primaryKey": "06c34e1a9d394412b292e0611e73d417", - "secondaryKey": "1e756a7705364c529e8d1760190f47b3" + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/subscriptions/testsub", + "type": "Microsoft.ApiManagement/service/subscriptions", + "name": "testsub", + "properties": { + "ownerId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/57127d485157a511ace86ae7", + "scope": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/products/5600b59475ff190048060002", + "displayName": "testsub", + "state": "submitted", + "createdDate": "2017-06-02T23:34:03.1055076Z", + "primaryKey": "06c34e1a9d394412b292e0611e73d417", + "secondaryKey": "1e756a7705364c529e8d1760190f47b3" + } } } } diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementUpdateServiceDisableTls10.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementUpdateServiceDisableTls10.json index c4497e25b8db..5563fa1f6e7d 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementUpdateServiceDisableTls10.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementUpdateServiceDisableTls10.json @@ -48,42 +48,44 @@ } }, "200": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", - "name": "apimService1", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Owner": "sasolank", - "UID": "4f5025fe-0669-4e2e-8320-5199466e5eb3", - "Reserved": "", - "TestExpiration": "Thu, 29 Jun 2017 18:50:40 GMT", - "Pool": "Manual", - "TestSuiteExpiration": "Thu, 29 Jun 2017 18:51:46 GMT" - }, - "location": "West US", - "etag": "AAAAAAAYRPs=", - "properties": { - "publisherEmail": "admin@live.com", - "publisherName": "Contoso", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2017-06-29T17:50:42.3191122Z", - "gatewayUrl": "https://apimService1.azure-api.net", - "portalUrl": "https://apimService1.portal.azure-api.net", - "managementApiUrl": "https://apimService1.management.azure-api.net", - "scmUrl": "https://apimService1.scm.azure-api.net", - "hostnameConfigurations": [], - "publicIPAddresses": [ - "40.86.176.232" - ], - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False" + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", + "name": "apimService1", + "type": "Microsoft.ApiManagement/service", + "tags": { + "Owner": "sasolank", + "UID": "4f5025fe-0669-4e2e-8320-5199466e5eb3", + "Reserved": "", + "TestExpiration": "Thu, 29 Jun 2017 18:50:40 GMT", + "Pool": "Manual", + "TestSuiteExpiration": "Thu, 29 Jun 2017 18:51:46 GMT" }, - "virtualNetworkType": "None" - }, - "sku": { - "name": "Standard", - "capacity": 1 + "location": "West US", + "etag": "AAAAAAAYRPs=", + "properties": { + "publisherEmail": "admin@live.com", + "publisherName": "Contoso", + "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", + "provisioningState": "Succeeded", + "targetProvisioningState": "", + "createdAtUtc": "2017-06-29T17:50:42.3191122Z", + "gatewayUrl": "https://apimService1.azure-api.net", + "portalUrl": "https://apimService1.portal.azure-api.net", + "managementApiUrl": "https://apimService1.management.azure-api.net", + "scmUrl": "https://apimService1.scm.azure-api.net", + "hostnameConfigurations": [], + "publicIPAddresses": [ + "40.86.176.232" + ], + "customProperties": { + "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False" + }, + "virtualNetworkType": "None" + }, + "sku": { + "name": "Standard", + "capacity": 1 + } } } } diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementUpdateServicePublisherDetails.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementUpdateServicePublisherDetails.json index f87e33ecb3fe..2572f0ed713c 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementUpdateServicePublisherDetails.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-01-01/examples/ApiManagementUpdateServicePublisherDetails.json @@ -47,42 +47,44 @@ } }, "200": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", - "name": "apimService1", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Owner": "sasolank", - "UID": "4f5025fe-0669-4e2e-8320-5199466e5eb3", - "Reserved": "", - "TestExpiration": "Thu, 29 Jun 2017 18:50:40 GMT", - "Pool": "Manual", - "TestSuiteExpiration": "Thu, 29 Jun 2017 18:51:46 GMT" - }, - "location": "West US", - "etag": "AAAAAAAYRPs=", - "properties": { - "publisherEmail": "foobar@live.com", - "publisherName": "Contoso Vnext", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2017-06-29T17:50:42.3191122Z", - "gatewayUrl": "https://apimService1.azure-api.net", - "portalUrl": "https://apimService1.portal.azure-api.net", - "managementApiUrl": "https://apimService1.management.azure-api.net", - "scmUrl": "https://apimService1.scm.azure-api.net", - "hostnameConfigurations": [], - "publicIPAddresses": [ - "40.86.176.232" - ], - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False" + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", + "name": "apimService1", + "type": "Microsoft.ApiManagement/service", + "tags": { + "Owner": "sasolank", + "UID": "4f5025fe-0669-4e2e-8320-5199466e5eb3", + "Reserved": "", + "TestExpiration": "Thu, 29 Jun 2017 18:50:40 GMT", + "Pool": "Manual", + "TestSuiteExpiration": "Thu, 29 Jun 2017 18:51:46 GMT" }, - "virtualNetworkType": "None" - }, - "sku": { - "name": "Standard", - "capacity": 1 + "location": "West US", + "etag": "AAAAAAAYRPs=", + "properties": { + "publisherEmail": "foobar@live.com", + "publisherName": "Contoso Vnext", + "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", + "provisioningState": "Succeeded", + "targetProvisioningState": "", + "createdAtUtc": "2017-06-29T17:50:42.3191122Z", + "gatewayUrl": "https://apimService1.azure-api.net", + "portalUrl": "https://apimService1.portal.azure-api.net", + "managementApiUrl": "https://apimService1.management.azure-api.net", + "scmUrl": "https://apimService1.scm.azure-api.net", + "hostnameConfigurations": [], + "publicIPAddresses": [ + "40.86.176.232" + ], + "customProperties": { + "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False" + }, + "virtualNetworkType": "None" + }, + "sku": { + "name": "Standard", + "capacity": 1 + } } } } diff --git a/specification/apimanagement/resource-manager/readme.md b/specification/apimanagement/resource-manager/readme.md index f40d3398aa17..9b993c661a68 100644 --- a/specification/apimanagement/resource-manager/readme.md +++ b/specification/apimanagement/resource-manager/readme.md @@ -250,6 +250,7 @@ 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 @@ -285,4 +286,164 @@ See configuration in [readme.go.md](./readme.go.md) ## Java -See configuration in [readme.java.md](./readme.java.md) \ No newline at end of file +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. + +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.ApiManagement/stable/2019-01-01/apimanagement.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimapis.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimapisByTags.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimapiversionsets.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimauthorizationservers.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimbackends.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimcaches.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimcertificates.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimdeployment.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimdiagnostics.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimemailtemplates.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimgroups.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimidentityprovider.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimissues.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimloggers.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimnetworkstatus.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimnotifications.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimopenidconnectproviders.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimpolicies.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimpolicysnippets.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimportalsettings.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimproducts.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimproductsByTags.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimproperties.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimquotas.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimregions.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimreports.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimsubscriptions.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimtagresources.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimtags.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimtenant.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/apimusers.json + - $(this-folder)/Microsoft.ApiManagement/stable/2019-01-01/definitions.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimanagement.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapis.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapisByTags.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimauthorizationservers.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimbackends.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimcaches.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimcertificates.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimdeployment.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimdiagnostics.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimemailtemplates.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimgroups.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimidentityprovider.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimissues.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimloggers.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimnotifications.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimnetworkstatus.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimopenidconnectproviders.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicies.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicysnippets.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimportalsettings.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproducts.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproductsByTags.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproperties.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimquotas.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimregions.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimreports.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimsubscriptions.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtagresources.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtags.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimtenant.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimusers.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapiversionsets.json + - $(this-folder)/Microsoft.ApiManagement/preview/2018-06-01-preview/definitions.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimanagement.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimapis.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimauthorizationservers.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimbackends.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimcertificates.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimdeployment.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimdiagnostics.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimemailtemplate.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimgroups.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimidentityprovider.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimloggers.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimnotifications.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimnetworkstatus.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimopenidconnectproviders.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimportalsettings.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimproducts.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimproperties.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimquotas.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimreports.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimsubscriptions.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimtagresources.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimtags.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimtenant.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimusers.json + - $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/apimversionsets.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimanagement.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimapis.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimauthorizationservers.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimbackends.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimcertificates.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimdeployment.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimdiagnostics.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimemailtemplate.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimgroups.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimidentityprovider.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimloggers.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimnotifications.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimnetworkstatus.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimopenidconnectproviders.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimportalsettings.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimproducts.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimproperties.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimquotas.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimreports.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimsubscriptions.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimtagresources.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimtags.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimtenant.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimusers.json + - $(this-folder)/Microsoft.ApiManagement/stable/2017-03-01/apimversionsets.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimanagement.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimapis.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimauthorizationservers.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimbackends.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimcertificates.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimdeployment.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimgroups.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimidentityprovider.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimloggers.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimnetworkstatus.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimopenidconnectproviders.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimproducts.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimproperties.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimquotas.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimreports.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimsubscriptions.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimtenant.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-10-10/apimusers.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-07-07/apimanagement.json + - $(this-folder)/Microsoft.ApiManagement/stable/2016-07-07/apimdeployment.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/appconfiguration/resource-manager/readme.csharp.md b/specification/appconfiguration/resource-manager/readme.csharp.md index 36356e9f631e..f20f51ff5c4b 100644 --- a/specification/appconfiguration/resource-manager/readme.csharp.md +++ b/specification/appconfiguration/resource-manager/readme.csharp.md @@ -9,6 +9,6 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.AppConfiguration payload-flattening-threshold: 2 - output-folder: $(csharp-sdks-folder)/AppConfiguration/Management.AppConfiguration/Generated + output-folder: $(csharp-sdks-folder)/appconfiguration/Microsoft.Azure.Management.AppConfiguration/src/Generated clear-output-folder: true ``` diff --git a/specification/appconfiguration/resource-manager/readme.go.md b/specification/appconfiguration/resource-manager/readme.go.md new file mode 100644 index 000000000000..e68fddb79019 --- /dev/null +++ b/specification/appconfiguration/resource-manager/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: appconfiguration + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2019-02-01-preview +``` + +### Tag: package-2019-02-01-preview and go + +These settings apply only when `--tag=package-2019-02-01-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2019-02-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-02-01-preview/$(namespace) +``` diff --git a/specification/appconfiguration/resource-manager/readme.java.md b/specification/appconfiguration/resource-manager/readme.java.md index e8b2672558de..930e52f3b904 100644 --- a/specification/appconfiguration/resource-manager/readme.java.md +++ b/specification/appconfiguration/resource-manager/readme.java.md @@ -4,11 +4,30 @@ 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 - fluent: true - namespace: com.microsoft.azure.management.appconfiguration - license-header: MICROSOFT_MIT_NO_CODEGEN - payload-flattening-threshold: 1 - output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-appconfiguration +azure-arm: true +fluent: true +namespace: com.microsoft.azure.management.appconfiguration +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-appconfiguration +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2019-02-01-preview ``` + +### Tag: package-2019-02-01-preview and java + +These settings apply only when `--tag=package-2019-02-01-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag)=='package-2019-02-01-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.appconfiguration.v2019_02_01_preview + output-folder: $(azure-libraries-for-java-folder)/appconfiguration/resource-manager/v2019_02_01_preview +regenerate-manager: true +generate-interface: true +``` \ No newline at end of file diff --git a/specification/appconfiguration/resource-manager/readme.md b/specification/appconfiguration/resource-manager/readme.md index 39faedc9455d..b61dcadf6862 100644 --- a/specification/appconfiguration/resource-manager/readme.md +++ b/specification/appconfiguration/resource-manager/readme.md @@ -53,6 +53,7 @@ swagger-to-sdk: - repo: azure-sdk-for-java - repo: azure-sdk-for-net - repo: azure-sdk-for-js + - repo: azure-sdk-for-go - repo: azure-sdk-for-ruby after_scripts: - bundle install && rake arm:regen_all_profiles['azure_mgmt_app_configuration'] @@ -70,6 +71,10 @@ See configuration in [readme.python.md](./readme.python.md) See configuration in [readme.java.md](./readme.java.md) +## Go + +See configuration in [readme.go.md](./readme.go.md) + ## Ruby See configuration in [readme.ruby.md](./readme.ruby.md) @@ -87,3 +92,28 @@ directive: where: $.definitions.ApiKey.properties.readOnly reason: We did consider using an enum instead but found it to not be helpful. ``` + +## 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.AppConfiguration/preview/2019-02-01-preview/appconfiguration.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/applicationinsights/data-plane/readme.md b/specification/applicationinsights/data-plane/readme.md index 957336c33f96..38eb0bab5f33 100644 --- a/specification/applicationinsights/data-plane/readme.md +++ b/specification/applicationinsights/data-plane/readme.md @@ -134,3 +134,29 @@ directive: where: $.definitions.table.properties.rows.items.items.type transform: $ = "object" ``` + +## 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.Insights/preview/v1/AppInsights.json + - $(this-folder)/Microsoft.Insights/preview/2018-04-20/swagger.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/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/componentAnnotations_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/componentAnnotations_API.json index 5318ab4127e2..bb5b9116c39c 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/componentAnnotations_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/componentAnnotations_API.json @@ -154,8 +154,7 @@ ], "responses": { "200": { - "description": "The annotation that was successfully deleted.", - "schema": {} + "description": "The annotation that was successfully deleted." } }, "x-ms-examples": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json index 5eb133b41a9e..d018d4f8d6a3 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json @@ -172,8 +172,7 @@ ], "responses": { "200": { - "description": "The work item configuration that was successfully deleted.", - "schema": {} + "description": "The work item configuration that was successfully deleted." } }, "x-ms-examples": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/AnnotationsDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/AnnotationsDelete.json index cd3755546bb5..1bde68cbeec6 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/AnnotationsDelete.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/AnnotationsDelete.json @@ -7,8 +7,6 @@ "annotationId": "bb820f1b-3110-4a8b-ba2c-8c1129d7eb6a" }, "responses": { - "200": { - "body": {} - } + "200": {} } } 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 b76da01ca69b..c474d25e8d44 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 @@ -52,7 +52,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } 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 35e339ec5f39..9ff62be79504 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 @@ -53,7 +53,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestList.json index c2c5bd98b56c..b2475e0bc144 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestList.json @@ -61,7 +61,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByComponent.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByComponent.json index e4e158374032..de83204af8b6 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByComponent.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByComponent.json @@ -40,7 +40,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByResourceGroup.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByResourceGroup.json index 8a3e429afa29..19547fede910 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByResourceGroup.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByResourceGroup.json @@ -69,7 +69,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigDelete.json index 0742113a565c..250fe7dcfafb 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigDelete.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigDelete.json @@ -7,8 +7,6 @@ "workItemConfigId": "Visual Studio Team Services" }, "responses": { - "200": { - "body": {} - } + "200": {} } } diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index 793014b9accb..0c8cbd2445aa 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -296,6 +296,7 @@ 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 @@ -363,4 +364,45 @@ These settings apply only when `--tag=schema-2018-06-17-preview` is specified on ``` yaml $(tag) == 'schema-2018-06-17-preview' input-file: - Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json -``` \ No newline at end of file +``` + +## 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.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 + - $(this-folder)/Microsoft.Insights/stable/2015-05-01/componentContinuousExport_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-05-01/componentFeaturesAndPricing_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-05-01/componentProactiveDetection_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-05-01/components_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-05-01/favorites_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-05-01/webTestLocations_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-05-01/webTests_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-05-01/analyticsItems_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-05-01/workbooks_API.json + - $(this-folder)/Microsoft.Insights/preview/2017-10-01/eaSubscriptionMigration_API.json + - $(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/2018-05-01/componentProactiveDetection_API.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/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/attestation.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/attestation.json similarity index 78% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/attestation.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/attestation.json index ad290370de96..2987cf4d8a5a 100644 --- a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/attestation.json +++ b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/attestation.json @@ -55,9 +55,9 @@ } }, "default": { - "description": "Attestation service error result", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResult" + "$ref": "#/definitions/CloudError" } } } @@ -77,18 +77,17 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "providerName", "in": "path", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$", - "description": "Name of the attestation service" + "description": "Name of the attestation service instance" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -96,7 +95,7 @@ ], "responses": { "200": { - "description": "Get the status of attestation Provider", + "description": "The status of the specified attestation service instance", "schema": { "$ref": "#/definitions/AttestationProvider" } @@ -104,7 +103,7 @@ "default": { "description": "Error result from Attestation service", "schema": { - "$ref": "#/definitions/ErrorResult" + "$ref": "#/definitions/CloudError" } } } @@ -122,17 +121,16 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "providerName", "in": "path", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$", "description": "Name of the attestation service" }, { @@ -164,7 +162,7 @@ "default": { "description": "Error result from Attestation service", "schema": { - "$ref": "#/definitions/ErrorResult" + "$ref": "#/definitions/CloudError" } } } @@ -182,17 +180,16 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "providerName", "in": "path", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$", "description": "Name of the attestation service" }, { @@ -200,19 +197,19 @@ } ], "responses": { - "202": { - "description": "Request accepted for deletion of attestation service" - }, "200": { "description": "Resource exists and was deleted successfully" }, + "202": { + "description": "Request accepted for deletion of attestation service" + }, "204": { "description": "Resource does not exist" }, "default": { "description": "Error result from Attestation service", "schema": { - "$ref": "#/definitions/ErrorResult" + "$ref": "#/definitions/CloudError" } } } @@ -235,7 +232,7 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" } ], "x-ms-pageable": { @@ -251,7 +248,7 @@ "default": { "description": "Attestation service error result", "schema": { - "$ref": "#/definitions/ErrorResult" + "$ref": "#/definitions/CloudError" } } } @@ -271,13 +268,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" } ], "x-ms-pageable": { @@ -294,7 +291,7 @@ "default": { "description": "Attestation service error result", "schema": { - "$ref": "#/definitions/ErrorResult" + "$ref": "#/definitions/CloudError" } } } @@ -357,7 +354,7 @@ ], "allOf": [ { - "$ref": "../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" } ], "properties": { @@ -395,56 +392,28 @@ } } }, - "ErrorResult": { - "type": "object", - "title": "Error", - "description": "Error description and code explaining why an operation failed.", + "CloudError": { + "x-ms-external": true, "properties": { "error": { - "type": "object", - "description": "Error object.", - "$ref": "#/definitions/ErrorResponseBody" + "$ref": "#/definitions/CloudErrorBody" } - } + }, + "description": "An error response from Attestation." }, - "ErrorResponseBody": { - "type": "object", - "title": "Error", - "description": "Error description and code explaining why an operation failed.", - "required": [ - "message", - "code" - ], + "CloudErrorBody": { + "x-ms-external": true, "properties": { - "message": { + "code": { "type": "string", - "description": "Description of the error." + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." }, - "code": { + "message": { "type": "string", - "description": "Service specific error code" + "description": "A message describing the error, intended to be suitable for displaying in a user interface." } - } - }, - "ErrorResponse": { - "type": "object", - "description": "Error response", - "properties": { - "error": { - "type": "object", - "description": "Error response", - "properties": { - "code": { - "type": "string", - "description": "Description of the error." - }, - "message": { - "type": "string", - "description": "Service specific error code." - } - } - } - } + }, + "description": "An error response from Attestation." }, "AttestationProviderListResult": { "description": "Attestation Providers List.", @@ -469,30 +438,15 @@ } }, "parameters": { - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "description": "Name of the resource group to which the resource belongs.", - "required": true, - "type": "string", - "maxLength": 90, - "minLength": 1, - "pattern": "^[-\\w\\._\\(\\)]+[^\\.]$", - "x-ms-parameter-location": "method" - }, - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Subscription credentials that 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." + "description": "Client API version.", + "enum": [ + "2018-09-01-preview" + ] } } } diff --git a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Create_AttestationProvider.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Create_AttestationProvider.json similarity index 96% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Create_AttestationProvider.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Create_AttestationProvider.json index a9b3bd30b942..b3e4b9d1fc53 100644 --- a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Create_AttestationProvider.json +++ b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Create_AttestationProvider.json @@ -4,7 +4,7 @@ "serviceName": "sampleservicename", "subscriptionId": "00000000-0000-0000-0000-000000000000", "api-version": "2018-09-01-preview", - "providerName": "providerName1", + "providerName": "providername1", "creationParams": "test" }, "responses": { diff --git a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Delete_AttestationProvider.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Delete_AttestationProvider.json similarity index 93% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Delete_AttestationProvider.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Delete_AttestationProvider.json index f6a081df3cc1..2b4a5c9d7fe5 100644 --- a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Delete_AttestationProvider.json +++ b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Delete_AttestationProvider.json @@ -4,7 +4,7 @@ "serviceName": "sampleservicename", "subscriptionId": "00000000-0000-0000-0000-000000000000", "api-version": "2018-09-01-preview", - "providerName": "providerName1" + "providerName": "providername1" }, "responses": { "202": { diff --git a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvider.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Get_AttestationProvider.json similarity index 94% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvider.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Get_AttestationProvider.json index 6aae3c0f8e0a..946007d64975 100644 --- a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvider.json +++ b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Get_AttestationProvider.json @@ -4,7 +4,7 @@ "serviceName": "sampleservicename", "subscriptionId": "00000000-0000-0000-0000-000000000000", "api-version": "2018-09-01-preview", - "providerName": "providerName1" + "providerName": "providername1" }, "responses": { "200": { diff --git a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvidersList.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Get_AttestationProvidersList.json similarity index 100% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvidersList.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Get_AttestationProvidersList.json diff --git a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvidersListByResourceGroup.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Get_AttestationProvidersListByResourceGroup.json similarity index 100% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvidersListByResourceGroup.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Get_AttestationProvidersListByResourceGroup.json diff --git a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Operations_List.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Operations_List.json similarity index 100% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Operations_List.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Operations_List.json diff --git a/specification/attestation/resource-manager/readme.md b/specification/attestation/resource-manager/readme.md index c8165c33e5af..44f473f46178 100644 --- a/specification/attestation/resource-manager/readme.md +++ b/specification/attestation/resource-manager/readme.md @@ -26,16 +26,16 @@ These are the global settings for the Attestation API. ``` yaml openapi-type: arm -tag: package-2018-09 +tag: package-2018-09-preview ``` -### Tag: package-2018-09 +### Tag: package-2018-09-preview -These settings apply only when `--tag=package-2018-09` is specified on the command line. +These settings apply only when `--tag=package-2018-09-preview` is specified on the command line. -``` yaml $(tag) == 'package-2018-09' +``` yaml $(tag) == 'package-2018-09-preview' input-file: -- Microsoft.Attestation/2018-09-01-preview/attestation.json +- Microsoft.Attestation/preview/2018-09-01-preview/attestation.json ``` --- @@ -58,3 +58,28 @@ csharp: ``` + +## 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.Attestation/preview/2018-09-01-preview/attestation.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/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/DeleteRoleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/DeleteRoleDefinition.json deleted file mode 100644 index 437345d2199c..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/DeleteRoleDefinition.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "scope": "scope", - "roleDefinitionId": "roleDefinitionId", - "api-version": "2015-07-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "roleName": "Role name", - "type": "roletype", - "description": "Role description", - "assignableScopes": [ - "/subscriptions/subId" - ], - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [] - } - ] - }, - "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", - "type": "Microsoft.Authorization/roleDefinitions", - "name": "roleDefinitionId" - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetAllProviderOperations.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetAllProviderOperations.json deleted file mode 100644 index df8754e45686..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetAllProviderOperations.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "api-version": "2015-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "id", - "name": "name", - "type": "type", - "displayName": "displayName", - "resourceTypes": [ - { - "name": "name", - "displayName": "name", - "operations": [] - } - ], - "operations": [] - } - ] - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetPermissions.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetPermissions.json deleted file mode 100644 index b4ab968baca9..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetPermissions.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "rgname", - "subscriptionId": "subID", - "api-version": "2015-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "actions": [], - "notActions": [] - } - ], - "nextLink": "nextlink" - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetProviderOperationsRP.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetProviderOperationsRP.json deleted file mode 100644 index 37706378e9a7..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetProviderOperationsRP.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "resourceProviderNamespace": "resourceProviderNamespace", - "api-version": "2015-07-01" - }, - "responses": { - "200": { - "body": { - "id": "id", - "name": "name", - "type": "type", - "displayName": "displayName", - "resourceTypes": [ - { - "name": "name", - "displayName": "name", - "operations": [] - } - ], - "operations": [] - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetResourcePermissions.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetResourcePermissions.json deleted file mode 100644 index 7b2f534e9680..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetResourcePermissions.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subId", - "resourceGroupName": "rgname", - "resourceProviderNamespace": "rpnamespace", - "parentResourcePath": "parentResourcePath", - "resourceType": "resourceType", - "resourceName": "resourceName", - "api-version": "2015-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "actions": [], - "notActions": [] - } - ] - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetRoleDefinitionAtScope.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetRoleDefinitionAtScope.json deleted file mode 100644 index 59169b055fea..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetRoleDefinitionAtScope.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "scope": "scope", - "api-version": "2015-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "roleName": "Role name", - "type": "roletype", - "description": "Role description", - "assignableScopes": [ - "/subscriptions/subId" - ], - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [] - } - ] - }, - "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", - "type": "Microsoft.Authorization/roleDefinitions", - "name": "roleDefinitionId" - } - ] - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetRoleDefinitionById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetRoleDefinitionById.json deleted file mode 100644 index 6100a19694a1..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetRoleDefinitionById.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "roleDefinitionId": "roleDefinitionId", - "api-version": "2015-07-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "roleName": "Role name", - "type": "roletype", - "description": "Role description", - "assignableScopes": [ - "/subscriptions/subId" - ], - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [] - } - ] - }, - "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", - "type": "Microsoft.Authorization/roleDefinitions", - "name": "roleDefinitionId" - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetRoleDefinitionByName.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetRoleDefinitionByName.json deleted file mode 100644 index 437345d2199c..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/GetRoleDefinitionByName.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "scope": "scope", - "roleDefinitionId": "roleDefinitionId", - "api-version": "2015-07-01" - }, - "responses": { - "200": { - "body": { - "properties": { - "roleName": "Role name", - "type": "roletype", - "description": "Role description", - "assignableScopes": [ - "/subscriptions/subId" - ], - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [] - } - ] - }, - "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", - "type": "Microsoft.Authorization/roleDefinitions", - "name": "roleDefinitionId" - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/PutRoleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/PutRoleDefinition.json deleted file mode 100644 index d28a7ff36640..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/PutRoleDefinition.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "scope": "scope", - "roleDefinitionId": "roleDefinitionId", - "roleDefinition": {}, - "body": { - "roleDefinition": { - "roleName": "Role name", - "description": "Role description", - "assignableScopes": [ - "/subscriptions/subId" - ], - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [] - } - ], - "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", - "type": "Microsoft.Authorization/roleDefinitions", - "name": "roleDefinitionId" - } - }, - "api-version": "2015-07-01" - }, - "responses": { - "201": { - "body": { - "properties": { - "roleName": "Role name", - "type": "roletype", - "description": "Role description", - "assignableScopes": [ - "/subscriptions/subId" - ], - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [] - } - ] - }, - "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", - "type": "Microsoft.Authorization/roleDefinitions", - "name": "roleDefinitionId" - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/authorization-RACalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/authorization-RoleAssignmentsCalls.json similarity index 100% rename from specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/authorization-RACalls.json rename to specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/authorization-RoleAssignmentsCalls.json diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ClassicAdminCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ClassicAdminCalls.json index 901a6f0eea72..81315d28b12b 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ClassicAdminCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ClassicAdminCalls.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { @@ -45,11 +43,7 @@ "description": "Gets service administrator, account administrator, and co-administrators for the subscription.", "parameters": [ { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." + "$ref": "#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -103,6 +97,7 @@ "description": "The type of the administrator." }, "properties": { + "x-ms-client-flatten": true, "$ref": "#/definitions/ClassicAdministratorProperties", "description": "Properties for the classic administrator." } @@ -133,6 +128,13 @@ "required": true, "type": "string", "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation." } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/authorization-ElevateAccessCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json similarity index 100% rename from specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/authorization-ElevateAccessCalls.json rename to specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json new file mode 100644 index 000000000000..b465e7e64ba4 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json @@ -0,0 +1,241 @@ +{ + "swagger": "2.0", + "info": { + "title": "AuthorizationManagementClient", + "version": "2015-07-01", + "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations enable you to manage role definitions and role assignments. A role definition describes the set of actions that can be performed on resources. A role assignment grants access to Azure Active Directory users." + }, + "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.Authorization/providerOperations/{resourceProviderNamespace}": { + "get": { + "tags": [ + "ProviderOperationsMetadata" + ], + "operationId": "ProviderOperationsMetadata_Get", + "description": "Gets provider operations metadata for the specified resource provider.", + "parameters": [ + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "default": "resourceTypes", + "description": "Specifies whether to expand the values." + } + ], + "responses": { + "200": { + "description": "OK - Returns the operations metadata.", + "schema": { + "$ref": "#/definitions/ProviderOperationsMetadata" + } + } + }, + "x-ms-examples": { + "GetConfigurations": { + "$ref": "./examples/GetProviderOperationsRP.json" + } + } + } + }, + "/providers/Microsoft.Authorization/providerOperations": { + "get": { + "tags": [ + "ProviderOperationsMetadata" + ], + "operationId": "ProviderOperationsMetadata_List", + "description": "Gets provider operations metadata for all resource providers.", + "parameters": [ + { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "default": "resourceTypes", + "description": "Specifies whether to expand the values." + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of the operations metadata.", + "schema": { + "$ref": "#/definitions/ProviderOperationsMetadataListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GetConfigurations": { + "$ref": "./examples/GetAllProviderOperations.json" + } + } + } + } + }, + "definitions": { + "ResourceType": { + "properties": { + "name": { + "type": "string", + "description": "The resource type name." + }, + "displayName": { + "type": "string", + "description": "The resource type display name." + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/ProviderOperation" + }, + "description": "The resource type operations." + } + }, + "description": "Resource Type" + }, + "ProviderOperation": { + "properties": { + "name": { + "type": "string", + "description": "The operation name." + }, + "displayName": { + "type": "string", + "description": "The operation display name." + }, + "description": { + "type": "string", + "description": "The operation description." + }, + "origin": { + "type": "string", + "description": "The operation origin." + }, + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "The operation properties." + } + }, + "description": "Operation" + }, + "ProviderOperationsMetadata": { + "properties": { + "id": { + "type": "string", + "description": "The provider id." + }, + "name": { + "type": "string", + "description": "The provider name." + }, + "type": { + "type": "string", + "description": "The provider type." + }, + "displayName": { + "type": "string", + "description": "The provider display name." + }, + "resourceTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceType" + }, + "description": "The provider resource types" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/ProviderOperation" + }, + "description": "The provider operations." + } + }, + "description": "Provider Operations metadata" + }, + "ProviderOperationsMetadataListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ProviderOperationsMetadata" + }, + "description": "The list of providers." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "Provider operations metadata list" + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation." + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json similarity index 50% rename from specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization.json rename to specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json index ca45994ad60e..02d3651de52f 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { @@ -36,204 +34,6 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions": { - "get": { - "tags": [ - "Permissions" - ], - "operationId": "Permissions_ListForResourceGroup", - "description": "Gets all permissions the caller has for a resource group.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group to get the permissions for. The name is case insensitive." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns an array of permissions.", - "schema": { - "$ref": "#/definitions/PermissionGetResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "GetConfigurations": { - "$ref": "./examples/GetPermissions.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions": { - "get": { - "tags": [ - "Permissions" - ], - "operationId": "Permissions_ListForResource", - "description": "Gets all permissions the caller has for a resource.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group containing the resource. The name is case insensitive." - }, - { - "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 the permissions for." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns an array of permissions.", - "schema": { - "$ref": "#/definitions/PermissionGetResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "GetConfigurations": { - "$ref": "./examples/GetResourcePermissions.json" - } - } - } - }, - "/providers/Microsoft.Authorization/providerOperations/{resourceProviderNamespace}": { - "get": { - "tags": [ - "ProviderOperationsMetadata" - ], - "operationId": "ProviderOperationsMetadata_Get", - "description": "Gets provider operations metadata for the specified resource provider.", - "parameters": [ - { - "name": "resourceProviderNamespace", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace of the resource provider." - }, - { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for the operation." - }, - { - "name": "$expand", - "in": "query", - "required": false, - "type": "string", - "default": "resourceTypes", - "description": "Specifies whether to expand the values." - } - ], - "responses": { - "200": { - "description": "OK - Returns the operations metadata.", - "schema": { - "$ref": "#/definitions/ProviderOperationsMetadata" - } - } - }, - "x-ms-examples": { - "GetConfigurations": { - "$ref": "./examples/GetProviderOperationsRP.json" - } - } - } - }, - "/providers/Microsoft.Authorization/providerOperations": { - "get": { - "tags": [ - "ProviderOperationsMetadata" - ], - "operationId": "ProviderOperationsMetadata_List", - "description": "Gets provider operations metadata for all resource providers.", - "parameters": [ - { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - }, - { - "name": "$expand", - "in": "query", - "required": false, - "type": "string", - "default": "resourceTypes", - "description": "Specifies whether to expand the values." - } - ], - "responses": { - "200": { - "description": "OK - Returns an array of the operations metadata.", - "schema": { - "$ref": "#/definitions/ProviderOperationsMetadataListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "GetConfigurations": { - "$ref": "./examples/GetAllProviderOperations.json" - } - } - } - }, "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/roleAssignments": { "get": { "tags": [ @@ -687,239 +487,6 @@ } } } - }, - "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}": { - "delete": { - "tags": [ - "RoleDefinitions" - ], - "operationId": "RoleDefinitions_Delete", - "description": "Deletes a role definition.", - "parameters": [ - { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope of the role definition.", - "x-ms-skip-url-encoding": true - }, - { - "name": "roleDefinitionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the role definition to delete." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the role definition.", - "schema": { - "$ref": "#/definitions/RoleDefinition" - } - } - }, - "x-ms-examples": { - "GetConfigurations": { - "$ref": "./examples/DeleteRoleDefinition.json" - } - } - }, - "get": { - "tags": [ - "RoleDefinitions" - ], - "operationId": "RoleDefinitions_Get", - "description": "Get role definition by name (GUID).", - "parameters": [ - { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope of the role definition.", - "x-ms-skip-url-encoding": true - }, - { - "name": "roleDefinitionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the role definition." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the role definition.", - "schema": { - "$ref": "#/definitions/RoleDefinition" - } - } - }, - "x-ms-examples": { - "GetConfigurations": { - "$ref": "./examples/GetRoleDefinitionByName.json" - } - } - }, - "put": { - "tags": [ - "RoleDefinitions" - ], - "operationId": "RoleDefinitions_CreateOrUpdate", - "description": "Creates or updates a role definition.", - "parameters": [ - { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope of the role definition.", - "x-ms-skip-url-encoding": true - }, - { - "name": "roleDefinitionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the role definition." - }, - { - "name": "roleDefinition", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/RoleDefinition" - }, - "description": "The values for the role definition." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "201": { - "description": "OK - Returns information about the role definition.", - "schema": { - "$ref": "#/definitions/RoleDefinition" - } - } - }, - "x-ms-examples": { - "GetConfigurations": { - "$ref": "./examples/PutRoleDefinition.json" - } - } - } - }, - "/{scope}/providers/Microsoft.Authorization/roleDefinitions": { - "get": { - "tags": [ - "RoleDefinitions" - ], - "operationId": "RoleDefinitions_List", - "description": "Get all role definitions that are applicable at scope and above.", - "parameters": [ - { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope of the role definition.", - "x-ms-skip-url-encoding": true - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns an array of role definitions.", - "schema": { - "$ref": "#/definitions/RoleDefinitionListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/RoleDefinitionFilter", - "x-ms-examples": { - "GetConfigurations": { - "$ref": "./examples/GetRoleDefinitionAtScope.json" - } - } - } - }, - "/providers/Microsoft.Authorization/elevateAccess": { - "post": { - "tags": [ - "ElevateAccess" - ], - "operationId": "ElevateAccess_Post", - "description": "Elevates access for a Global Administrator.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns an HttpResponseMessage with HttpStatusCode 200." - } - } - } - } - }, - "x-ms-paths": { - "/{roleDefinitionId}?disambiguation_dummy": { - "get": { - "tags": [ - "RoleDefinitions" - ], - "operationId": "RoleDefinitions_GetById", - "description": "Gets a role definition by ID.", - "parameters": [ - { - "name": "roleDefinitionId", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the role definition.", - "schema": { - "$ref": "#/definitions/RoleDefinition" - } - } - }, - "x-ms-examples": { - "GetConfigurations": { - "$ref": "./examples/GetRoleDefinitionById.json" - } - } - } } }, "definitions": { @@ -932,146 +499,6 @@ }, "description": "Role Assignments filter" }, - "RoleDefinitionFilter": { - "properties": { - "roleName": { - "type": "string", - "description": "Returns role definition with the specific name." - } - }, - "description": "Role Definitions filter" - }, - "Permission": { - "properties": { - "actions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Allowed actions." - }, - "notActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Denied actions." - } - }, - "description": "Role definition permissions." - }, - "PermissionGetResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Permission" - }, - "description": "An array of permissions." - }, - "nextLink": { - "type": "string", - "description": "The URL to use for getting the next set of results." - } - }, - "description": "Permissions information." - }, - "ProviderOperation": { - "properties": { - "name": { - "type": "string", - "description": "The operation name." - }, - "displayName": { - "type": "string", - "description": "The operation display name." - }, - "description": { - "type": "string", - "description": "The operation description." - }, - "origin": { - "type": "string", - "description": "The operation origin." - }, - "properties": { - "type": "object", - "description": "The operation properties." - } - }, - "description": "Operation" - }, - "ResourceType": { - "properties": { - "name": { - "type": "string", - "description": "The resource type name." - }, - "displayName": { - "type": "string", - "description": "The resource type display name." - }, - "operations": { - "type": "array", - "items": { - "$ref": "#/definitions/ProviderOperation" - }, - "description": "The resource type operations." - } - }, - "description": "Resource Type" - }, - "ProviderOperationsMetadata": { - "properties": { - "id": { - "type": "string", - "description": "The provider id." - }, - "name": { - "type": "string", - "description": "The provider name." - }, - "type": { - "type": "string", - "description": "The provider type." - }, - "displayName": { - "type": "string", - "description": "The provider display name." - }, - "resourceTypes": { - "type": "array", - "items": { - "$ref": "#/definitions/ResourceType" - }, - "description": "The provider resource types" - }, - "operations": { - "type": "array", - "items": { - "$ref": "#/definitions/ProviderOperation" - }, - "description": "The provider operations." - } - }, - "description": "Provider Operations metadata" - }, - "ProviderOperationsMetadataListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ProviderOperationsMetadata" - }, - "description": "The list of providers." - }, - "nextLink": { - "type": "string", - "description": "The URL to use for getting the next set of results." - } - }, - "description": "Provider operations metadata list" - }, "RoleAssignmentPropertiesWithScope": { "properties": { "scope": { @@ -1157,77 +584,6 @@ "properties" ], "description": "Role assignment create parameters." - }, - "RoleDefinitionProperties": { - "properties": { - "roleName": { - "type": "string", - "description": "The role name." - }, - "description": { - "type": "string", - "description": "The role definition description." - }, - "type": { - "type": "string", - "description": "The role type." - }, - "permissions": { - "type": "array", - "items": { - "$ref": "#/definitions/Permission" - }, - "description": "Role definition permissions." - }, - "assignableScopes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Role definition assignable scopes." - } - }, - "description": "Role definition properties." - }, - "RoleDefinition": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "The role definition ID." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "The role definition name." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "The role definition type." - }, - "properties": { - "$ref": "#/definitions/RoleDefinitionProperties", - "description": "Role definition properties." - } - }, - "description": "Role definition." - }, - "RoleDefinitionListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/RoleDefinition" - }, - "description": "Role definition list." - }, - "nextLink": { - "type": "string", - "description": "The URL to use for getting the next set of results." - } - }, - "description": "Role definition list operation result." } }, "parameters": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/authorization.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json similarity index 73% rename from specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/authorization.json rename to specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json index dad1d0c5175d..5daad6d25ef7 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/authorization.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json @@ -144,94 +144,6 @@ } } }, - "/providers/Microsoft.Authorization/providerOperations/{resourceProviderNamespace}": { - "get": { - "tags": [ - "ProviderOperationsMetadata" - ], - "operationId": "ProviderOperationsMetadata_Get", - "description": "Gets provider operations metadata for the specified resource provider.", - "parameters": [ - { - "name": "resourceProviderNamespace", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace of the resource provider." - }, - { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for the operation." - }, - { - "name": "$expand", - "in": "query", - "required": false, - "type": "string", - "default": "resourceTypes", - "description": "Specifies whether to expand the values." - } - ], - "responses": { - "200": { - "description": "OK - Returns the operations metadata.", - "schema": { - "$ref": "#/definitions/ProviderOperationsMetadata" - } - } - }, - "x-ms-examples": { - "GetConfigurations": { - "$ref": "./examples/GetProviderOperationsRP.json" - } - } - } - }, - "/providers/Microsoft.Authorization/providerOperations": { - "get": { - "tags": [ - "ProviderOperationsMetadata" - ], - "operationId": "ProviderOperationsMetadata_List", - "description": "Gets provider operations metadata for all resource providers.", - "parameters": [ - { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - }, - { - "name": "$expand", - "in": "query", - "required": false, - "type": "string", - "default": "resourceTypes", - "description": "Specifies whether to expand the values." - } - ], - "responses": { - "200": { - "description": "OK - Returns an array of the operations metadata.", - "schema": { - "$ref": "#/definitions/ProviderOperationsMetadataListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "GetConfigurations": { - "$ref": "./examples/GetAllProviderOperations.json" - } - } - } - }, "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}": { "delete": { "tags": [ @@ -363,83 +275,83 @@ } } }, - "/{roleDefinitionId}": { + "/{scope}/providers/Microsoft.Authorization/roleDefinitions": { "get": { "tags": [ "RoleDefinitions" ], - "operationId": "RoleDefinitions_GetById", - "description": "Gets a role definition by ID.", + "operationId": "RoleDefinitions_List", + "description": "Get all role definitions that are applicable at scope and above.", "parameters": [ { - "name": "roleDefinitionId", + "name": "scope", "in": "path", "required": true, "type": "string", - "description": "The fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.", + "description": "The scope of the role definition.", "x-ms-skip-url-encoding": true }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well." + }, { "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "OK - Returns information about the role definition.", + "description": "OK - Returns an array of role definitions.", "schema": { - "$ref": "#/definitions/RoleDefinition" + "$ref": "#/definitions/RoleDefinitionListResult" } } }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/RoleDefinitionFilter", "x-ms-examples": { "GetConfigurations": { - "$ref": "./examples/GetRoleDefinitionById.json" + "$ref": "./examples/GetRoleDefinitionAtScope.json" } } } }, - "/{scope}/providers/Microsoft.Authorization/roleDefinitions": { + "/{roleDefinitionId}": { "get": { "tags": [ "RoleDefinitions" ], - "operationId": "RoleDefinitions_List", - "description": "Get all role definitions that are applicable at scope and above.", + "operationId": "RoleDefinitions_GetById", + "description": "Gets a role definition by ID.", "parameters": [ { - "name": "scope", + "name": "roleDefinitionId", "in": "path", "required": true, "type": "string", - "description": "The scope of the role definition.", + "description": "The fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.", "x-ms-skip-url-encoding": true }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well." - }, { "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "OK - Returns an array of role definitions.", + "description": "OK - Returns information about the role definition.", "schema": { - "$ref": "#/definitions/RoleDefinitionListResult" + "$ref": "#/definitions/RoleDefinition" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/RoleDefinitionFilter", "x-ms-examples": { "GetConfigurations": { - "$ref": "./examples/GetRoleDefinitionAtScope.json" + "$ref": "./examples/GetRoleDefinitionById.json" } } } @@ -455,138 +367,6 @@ }, "description": "Role Definitions filter" }, - "Permission": { - "properties": { - "actions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Allowed actions." - }, - "notActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Denied actions." - } - }, - "description": "Role definition permissions." - }, - "PermissionGetResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Permission" - }, - "description": "An array of permissions." - }, - "nextLink": { - "type": "string", - "description": "The URL to use for getting the next set of results." - } - }, - "description": "Permissions information." - }, - "ProviderOperation": { - "properties": { - "name": { - "type": "string", - "description": "The operation name." - }, - "displayName": { - "type": "string", - "description": "The operation display name." - }, - "description": { - "type": "string", - "description": "The operation description." - }, - "origin": { - "type": "string", - "description": "The operation origin." - }, - "properties": { - "type": "object", - "x-ms-client-flatten": true, - "description": "The operation properties." - } - }, - "description": "Operation" - }, - "ResourceType": { - "properties": { - "name": { - "type": "string", - "description": "The resource type name." - }, - "displayName": { - "type": "string", - "description": "The resource type display name." - }, - "operations": { - "type": "array", - "items": { - "$ref": "#/definitions/ProviderOperation" - }, - "description": "The resource type operations." - } - }, - "description": "Resource Type" - }, - "ProviderOperationsMetadata": { - "properties": { - "id": { - "type": "string", - "description": "The provider id." - }, - "name": { - "type": "string", - "description": "The provider name." - }, - "type": { - "type": "string", - "description": "The provider type." - }, - "displayName": { - "type": "string", - "description": "The provider display name." - }, - "resourceTypes": { - "type": "array", - "items": { - "$ref": "#/definitions/ResourceType" - }, - "description": "The provider resource types" - }, - "operations": { - "type": "array", - "items": { - "$ref": "#/definitions/ProviderOperation" - }, - "description": "The provider operations." - } - }, - "description": "Provider Operations metadata" - }, - "ProviderOperationsMetadataListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ProviderOperationsMetadata" - }, - "description": "The list of providers." - }, - "nextLink": { - "type": "string", - "description": "The URL to use for getting the next set of results." - } - }, - "description": "Provider operations metadata list" - }, "RoleDefinitionProperties": { "properties": { "roleName": { @@ -659,6 +439,41 @@ } }, "description": "Role definition list operation result." + }, + "PermissionGetResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Permission" + }, + "description": "An array of permissions." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "Permissions information." + }, + "Permission": { + "properties": { + "actions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Allowed actions." + }, + "notActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Denied actions." + } + }, + "description": "Role definition permissions." } }, "parameters": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/ElevateAccess.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/ElevateAccess.json similarity index 100% rename from specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-07-01/examples/ElevateAccess.json rename to specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/ElevateAccess.json diff --git a/specification/authorization/resource-manager/readme.csharp.md b/specification/authorization/resource-manager/readme.csharp.md index dff04c86ccda..0a92e47c547e 100644 --- a/specification/authorization/resource-manager/readme.csharp.md +++ b/specification/authorization/resource-manager/readme.csharp.md @@ -11,7 +11,7 @@ Please also specify `--csharp-sdks-folder=`. -``` yaml $(tag) == 'package-2015-07' && $(go) +``` yaml $(tag) == 'package-2015-07-01' && $(go) output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2015-07-01/$(namespace) ``` @@ -46,6 +47,15 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-07-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-07-01-preview/$(namespace) +``` + ### Tag: package-2018-09-01-preview and go These settings apply only when `--tag=package-2018-09-01-preview --go` is specified on the command line. diff --git a/specification/authorization/resource-manager/readme.java.md b/specification/authorization/resource-manager/readme.java.md new file mode 100644 index 000000000000..b60b3d715d8a --- /dev/null +++ b/specification/authorization/resource-manager/readme.java.md @@ -0,0 +1,74 @@ +## 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.authorization +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-authorization +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-09-01-preview + - tag: package-2018-07-01-preview-only + - tag: package-2015-06-01-preview +``` + +### Tag: package-2018-09-01-preview and java + +These settings apply only when `--tag=package-2018-09-01-preview --java` is specified on he command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2018-09-01-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.authorization.v2018_09_01_preview + output-folder: $(azure-libraries-for-java-folder)/authorization/resource-manager/v2018_09_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-07-01-preview-only and java + +These settings apply only when `--tag=package-2018-07-01-preview-only --java` is specified on he command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2018-07-01-preview-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.authorization.v2018_07_01_preview + output-folder: $(azure-libraries-for-java-folder)/authorization/resource-manager/v2018_07_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2015-07-01 and java + +These settings apply only when `--tag=package-2015-07-01 --java` is specified on he command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2015-07-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.authorization.v2015_07_01 + output-folder: $(azure-libraries-for-java-folder)/authorization/resource-manager/v2015_07_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2015-06-01-preview and java + +These settings apply only when `--tag=package-2015-06-01-preview --java` is specified on he command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2015-06-01-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.authorization.v2015_06_01 + output-folder: $(azure-libraries-for-java-folder)/authorization/resource-manager/v2015_06_01 +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index 619c6cc0fa20..88cac5ab776c 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -39,25 +39,19 @@ directive: ``` -### Tag: package-2015-07 +### Tag: package-2015-07-01 -These settings apply only when `--tag=package-2015-07` is specified on the command line. +These settings apply only when `--tag=package-2015-07-01` is specified on the command line. -``` yaml $(tag) == 'package-2015-07' +``` yaml $(tag) == 'package-2015-07-01' input-file: -- Microsoft.Authorization/stable/2015-07-01/authorization.json +- Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json - Microsoft.Authorization/stable/2015-07-01/authorization-ClassicAdminCalls.json ``` -### Tag: package-2015-07-authorization-only - -These settings apply only when `--tag=package-2015-07-authorization-only` is specified on the command line. - -``` yaml $(tag) == 'package-2015-07-authorization-only' -input-file: -- Microsoft.Authorization/stable/2015-07-01/authorization.json -``` - ### Tag: package-2015-06-01-preview These settings apply only when `--tag=package-2015-06-01-preview` is specified on the command line. @@ -67,24 +61,13 @@ input-file: - Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json ``` -### Tag: package-2015-07-01-preview - -These settings apply only when `--tag=package-2015-07-01-preview` is specified on the command line. - -``` yaml $(tag) == 'package-2015-07-01-preview' -input-file: -- Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json -- Microsoft.Authorization/preview/2015-07-01/authorization.json -- Microsoft.Authorization/preview/2015-07-01/authorization-ElevateAccessCalls.json -``` - ### Tag: package-2017-10-01-preview-only These settings apply only when `--tag=package-2017-10-01-preview-only` is specified on the command line. ``` yaml $(tag) == 'package-2017-10-01-preview-only' input-file: -- Microsoft.Authorization/preview/2017-10-01-preview/authorization-RACalls.json +- Microsoft.Authorization/preview/2017-10-01-preview/authorization-RoleAssignmentsCalls.json ``` ### Tag: package-2018-01-01-preview-only @@ -123,9 +106,10 @@ These settings apply only when `--tag=package-2017-10-01-preview` is specified o ``` yaml $(tag) == 'package-2017-10-01-preview' input-file: - Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json -- Microsoft.Authorization/preview/2015-07-01/authorization.json -- Microsoft.Authorization/preview/2015-07-01/authorization-ElevateAccessCalls.json -- Microsoft.Authorization/preview/2017-10-01-preview/authorization-RACalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json +- Microsoft.Authorization/preview/2017-10-01-preview/authorization-RoleAssignmentsCalls.json ``` ### Tag: package-2018-01-01-preview @@ -135,7 +119,7 @@ These settings apply only when `--tag=package-2018-01-01-preview` is specified o ``` yaml $(tag) == 'package-2018-01-01-preview' input-file: - Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json -- Microsoft.Authorization/preview/2015-07-01/authorization-ElevateAccessCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json - Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json - Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json - Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json @@ -148,7 +132,7 @@ These settings apply only when `--tag=package-2018-07-01-preview` is specified o ``` yaml $(tag) == 'package-2018-07-01-preview' input-file: - Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json -- Microsoft.Authorization/preview/2015-07-01/authorization-ElevateAccessCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json - Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json - Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json - Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json @@ -162,13 +146,26 @@ These settings apply only when `--tag=package-2018-09-01-preview` is specified o ``` yaml $(tag) == 'package-2018-09-01-preview' input-file: - Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json -- Microsoft.Authorization/preview/2015-07-01/authorization-ElevateAccessCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json - Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json - Microsoft.Authorization/preview/2018-09-01-preview/authorization-RoleAssignmentsCalls.json - Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json - Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json ``` +### Tag: profile-hybrid-2019-03-01 + +These settings apply only when `--tag=profile-hybrid-2019-03-01` is specified on the command line. +Creating this tag to pick proper resources from the hybrid profile. + +``` yaml $(tag) == 'profile-hybrid-2019-03-01' +input-file: +- Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json +- Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json +``` + --- # Code Generation @@ -180,9 +177,10 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: + - repo: azure-sdk-for-net - repo: azure-sdk-for-python after_scripts: - - python ./scripts/multiapi_init_gen.py azure-mgmt-authorization + - python ./scripts/multiapi_init_gen.py azure-mgmt-authorization --default-api-version=2018-09-01-preview - repo: azure-sdk-for-java - repo: azure-sdk-for-go - repo: azure-sdk-for-node @@ -198,58 +196,40 @@ 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=`. +See configuration in [readme.java.md](./readme.java.md) -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.authorization -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-authorization -``` +## Multi-API/Profile support for AutoRest v3 generators -### Java multi-api +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2015-07 - - tag: package-2018-09-01-preview -``` +This block is updated by an automatic script. Edits may be lost! -### Tag: package-2018-09-01-preview and java +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -These settings apply only when `--tag=package-2018-09-01-preview --java` is specified on he command line. -Please also specify `--azure-libraries-for-java-folder=`. +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json + - $(this-folder)/Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json + - $(this-folder)/Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json + - $(this-folder)/Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json + - $(this-folder)/Microsoft.Authorization/stable/2015-07-01/authorization-ClassicAdminCalls.json + - $(this-folder)/Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json + - $(this-folder)/Microsoft.Authorization/preview/2017-10-01-preview/authorization-RoleAssignmentsCalls.json + - $(this-folder)/Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json + - $(this-folder)/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json + - $(this-folder)/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json + - $(this-folder)/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json + - $(this-folder)/Microsoft.Authorization/preview/2018-09-01-preview/authorization-RoleAssignmentsCalls.json -``` yaml $(tag) == 'package-2018-09-01-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.authorization.v2018_09_01_preview - output-folder: $(azure-libraries-for-java-folder)/authorization/resource-manager/v2018_09_01_preview -regenerate-manager: true -generate-interface: true ``` -### Tag: package-2015-07 and java - -These settings apply only when `--tag=package-2015-07 --java` is specified on he command line. -Please also specify `--azure-libraries-for-java-folder=`. +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) == 'package-2015-07' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.authorization.v2015_07_01 - output-folder: $(azure-libraries-for-java-folder)/authorization/resource-manager/v2015_07_01 -regenerate-manager: true -generate-interface: true +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json ``` -### Tag: profile-hybrid-2019-03-01 - -These settings apply only when `--tag=profile-hybrid-2019-03-01` is specified on the command line. -Creating this tag to pick proper resources from the hybrid profile. - -``` yaml $(tag) == 'profile-hybrid-2019-03-01' -input-file: -- Microsoft.Authorization/stable/2015-07-01/authorization.json -``` diff --git a/specification/authorization/resource-manager/readme.python.md b/specification/authorization/resource-manager/readme.python.md index 3fdfabdc7960..70e14ea1a327 100644 --- a/specification/authorization/resource-manager/readme.python.md +++ b/specification/authorization/resource-manager/readme.python.md @@ -24,7 +24,7 @@ batch: - tag: package-2018-09-01-preview-only - tag: package-2018-07-01-preview-only - tag: package-2018-01-01-preview-only - - tag: package-2015-07-authorization-only + - tag: package-2015-07-01 - tag: package-2015-06-01-preview ``` @@ -58,11 +58,11 @@ python: output-folder: $(python-sdks-folder)/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2018_01_01_preview ``` -### Tag: package-2015-07-authorization-only and python +### Tag: package-2015-07-01 and python -These settings apply only when `--tag=package-2015-07-authorization-only --python` is specified on the command line. +These settings apply only when `--tag=package-2015-07-01 --python` is specified on the command line. -``` yaml $(tag) == 'package-2015-07-authorization-only' && $(python) +``` yaml $(tag) == 'package-2015-07-01' && $(python) python: namespace: azure.mgmt.authorization.v2015_07_01 output-folder: $(python-sdks-folder)/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2015_07_01 diff --git a/specification/authorization/resource-manager/readme.ruby.md b/specification/authorization/resource-manager/readme.ruby.md index 16581f69d962..f1c161b3d444 100644 --- a/specification/authorization/resource-manager/readme.ruby.md +++ b/specification/authorization/resource-manager/readme.ruby.md @@ -5,26 +5,25 @@ These settings apply only when `--ruby` is specified on the command line. ``` yaml package-name: azure_mgmt_authorization package-version: "0.17.0" -azure-arm: true +azure-arm: true ``` ### Ruby multi-api ``` yaml $(ruby) && $(multiapi) batch: - - tag: package-2015-07 + - tag: package-2015-07-01 - tag: package-2015-06-01-preview - - tag: package-2015-07-01-preview - tag: package-2017-10-01-preview-only - tag: package-2018-01-01-preview-only ``` -### Tag: package-2015-07 and ruby +### Tag: package-2015-07-01 and ruby -These settings apply only when `--tag=package-2015-07 --ruby` is specified on the command line. +These settings apply only when `--tag=package-2015-07-01 --ruby` is specified on the command line. Please also specify `--ruby-sdks-folder=`. -``` yaml $(tag) == 'package-2015-07' && $(ruby) +``` yaml $(tag) == 'package-2015-07-01' && $(ruby) namespace: "Azure::Authorization::Mgmt::V2015_07_01" output-folder: $(ruby-sdks-folder)/management/azure_mgmt_authorization/lib ``` @@ -39,16 +38,6 @@ namespace: "Azure::Authorization::Mgmt::V2015_06_01_preview" output-folder: $(ruby-sdks-folder)/management/azure_mgmt_authorization/lib ``` -### Tag: package-2015-07-01-preview and ruby - -These settings apply only when `--tag=package-2015-07-01-preview --ruby` is specified on the command line. -Please also specify `--ruby-sdks-folder=`. - -``` yaml $(tag) == 'package-2015-07-01-preview' && $(ruby) -namespace: "Azure::Authorization::Mgmt::V2015_07_01_preview" -output-folder: $(ruby-sdks-folder)/management/azure_mgmt_authorization/lib -``` - ### Tag: package-2017-10-01-preview-only and ruby These settings apply only when `--tag=package-2017-10-01-preview-only --ruby` is specified on the command line. diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/job/listJobStreamsByJob.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/job/listJobStreamsByJob.json index 281c68d11d7e..4574ed145242 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/job/listJobStreamsByJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/job/listJobStreamsByJob.json @@ -30,7 +30,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/job/listJobsByAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/job/listJobsByAutomationAccount.json index c38c2c6dc9fc..80a14e4270a8 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/job/listJobsByAutomationAccount.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/job/listJobsByAutomationAccount.json @@ -46,7 +46,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json index 82e3d16a6598..c8d85100fe6f 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json @@ -8,137 +8,139 @@ }, "responses": { "200": { - "value": [ - { - "name": "testpatch-01", - "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-01", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates", - "excludedKbNumbers": null - }, - "linux": null, - "targets": { - "azureQueries": [ - { - "scope": [ - "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0", - "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d" - ], - "tagSettings": { - "tags": { - "tag1": [ - "tag1Value1", - "tag1Value2" - ], - "tag2": [ - "tag2Value1", - "tag2Value2" - ] + "body": { + "value": [ + { + "name": "testpatch-01", + "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-01", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates", + "excludedKbNumbers": null + }, + "linux": null, + "targets": { + "azureQueries": [ + { + "scope": [ + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0", + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d" + ], + "tagSettings": { + "tags": { + "tag1": [ + "tag1Value1", + "tag1Value2" + ], + "tag2": [ + "tag2Value1", + "tag2Value2" + ] + }, + "filterOperator": "All" }, - "filterOperator": "All" - }, - "locations": null - } - ] + "locations": null + } + ] + }, + "duration": "PT2H", + "azureVirtualMachines": [ + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + ], + "nonAzureComputerNames": null }, - "duration": "PT2H", - "azureVirtualMachines": [ - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" - ], - "nonAzureComputerNames": null - }, - "tasks": { - "preTask": { - "source": "HelloWorld", - "parameters": { - "COMPUTERNAME": "Computer1" + "tasks": { + "preTask": { + "source": "HelloWorld", + "parameters": { + "COMPUTERNAME": "Computer1" + } + }, + "postTask": { + "source": "GetCache", + "parameters": null } }, - "postTask": { - "source": "GetCache", - "parameters": null - } - }, - "frequency": "Week", - "startTime": "2017-10-19T12:22:00-07:00", - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedTime": "2017-10-19T18:54:50.68+00:00", - "provisioningState": "Succeeded", - "nextRun": "2017-10-23T12:22:00-07:00" - } - }, - { - "name": "testpatch-02", - "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-02", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical, FeaturePack", - "excludedKbNumbers": null - }, - "linux": null, - "targets": { - "azureQueries": [ - { - "scope": [ - "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0", - "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d" - ], - "tagSettings": { - "tags": { - "tag1": [ - "tag1Value1", - "tag1Value2" - ], - "tag2": [ - "tag2Value1", - "tag2Value2" - ] + "frequency": "Week", + "startTime": "2017-10-19T12:22:00-07:00", + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedTime": "2017-10-19T18:54:50.68+00:00", + "provisioningState": "Succeeded", + "nextRun": "2017-10-23T12:22:00-07:00" + } + }, + { + "name": "testpatch-02", + "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-02", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical, FeaturePack", + "excludedKbNumbers": null + }, + "linux": null, + "targets": { + "azureQueries": [ + { + "scope": [ + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0", + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d" + ], + "tagSettings": { + "tags": { + "tag1": [ + "tag1Value1", + "tag1Value2" + ], + "tag2": [ + "tag2Value1", + "tag2Value2" + ] + }, + "filterOperator": "All" }, - "filterOperator": "All" - }, - "locations": [ - "Japan East", - "UK South" - ] - } - ] + "locations": [ + "Japan East", + "UK South" + ] + } + ] + }, + "duration": "PT2H30M", + "azureVirtualMachines": [ + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-04", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-05", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-06" + ], + "nonAzureComputerNames": null }, - "duration": "PT2H30M", - "azureVirtualMachines": [ - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-04", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-05", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-06" - ], - "nonAzureComputerNames": null - }, - "tasks": { - "preTask": { - "source": "HelloWorld", - "parameters": { - "COMPUTERNAME": "Computer1" + "tasks": { + "preTask": { + "source": "HelloWorld", + "parameters": { + "COMPUTERNAME": "Computer1" + } + }, + "postTask": { + "source": "GetCache", + "parameters": null } }, - "postTask": { - "source": "GetCache", - "parameters": null - } - }, - "frequency": "Hour", - "startTime": "2018-05-05T12:26:00-07:00", - "creationTime": "2017-08-11T21:52:02.7733333+00:00", - "lastModifiedTime": "2017-08-11T21:52:22.88+00:00", - "provisioningState": "Succeeded", - "nextRun": "2018-05-05T12:26:00-07:00" + "frequency": "Hour", + "startTime": "2018-05-05T12:26:00-07:00", + "creationTime": "2017-08-11T21:52:02.7733333+00:00", + "lastModifiedTime": "2017-08-11T21:52:22.88+00:00", + "provisioningState": "Succeeded", + "nextRun": "2018-05-05T12:26:00-07:00" + } } - } - ] + ] + } } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json index b530088216c7..64c2e4fe21df 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json @@ -9,86 +9,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "testpatch-01", - "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-01", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates", - "excludedKbNumbers": null + "body": { + "value": [ + { + "name": "testpatch-01", + "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-01", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates", + "excludedKbNumbers": null + }, + "linux": null, + "duration": "PT2H", + "azureVirtualMachines": [ + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + ], + "nonAzureComputerNames": null }, - "linux": null, - "duration": "PT2H", - "azureVirtualMachines": [ - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" - ], - "nonAzureComputerNames": null - }, - "tasks": { - "preTask": { - "source": "HelloWorld", - "parameters": { - "COMPUTERNAME": "Computer1" + "tasks": { + "preTask": { + "source": "HelloWorld", + "parameters": { + "COMPUTERNAME": "Computer1" + } + }, + "postTask": { + "source": "GetCache", + "parameters": null } }, - "postTask": { - "source": "GetCache", - "parameters": null - } - }, - "frequency": "Week", - "startTime": "2017-10-19T12:22:00-07:00", - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedTime": "2017-10-19T18:54:50.68+00:00", - "provisioningState": "Succeeded", - "nextRun": "2017-10-23T12:22:00-07:00" - } - }, - { - "name": "testpatch-02", - "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-02", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical, FeaturePack", - "excludedKbNumbers": null + "frequency": "Week", + "startTime": "2017-10-19T12:22:00-07:00", + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedTime": "2017-10-19T18:54:50.68+00:00", + "provisioningState": "Succeeded", + "nextRun": "2017-10-23T12:22:00-07:00" + } + }, + { + "name": "testpatch-02", + "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-02", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical, FeaturePack", + "excludedKbNumbers": null + }, + "linux": null, + "duration": "PT2H30M", + "azureVirtualMachines": [ + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-05", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-06" + ], + "nonAzureComputerNames": null }, - "linux": null, - "duration": "PT2H30M", - "azureVirtualMachines": [ - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-05", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-06" - ], - "nonAzureComputerNames": null - }, - "tasks": { - "preTask": { - "source": "HelloWorld", - "parameters": { - "COMPUTERNAME": "Computer1" + "tasks": { + "preTask": { + "source": "HelloWorld", + "parameters": { + "COMPUTERNAME": "Computer1" + } + }, + "postTask": { + "source": "GetCache", + "parameters": null } }, - "postTask": { - "source": "GetCache", - "parameters": null - } - }, - "frequency": "Hour", - "startTime": "2018-05-05T12:26:00-07:00", - "creationTime": "2017-08-11T21:52:02.7733333+00:00", - "lastModifiedTime": "2017-08-11T21:52:22.88+00:00", - "provisioningState": "Succeeded", - "nextRun": "2018-05-05T12:26:00-07:00" + "frequency": "Hour", + "startTime": "2018-05-05T12:26:00-07:00", + "creationTime": "2017-08-11T21:52:02.7733333+00:00", + "lastModifiedTime": "2017-08-11T21:52:22.88+00:00", + "provisioningState": "Succeeded", + "nextRun": "2018-05-05T12:26:00-07:00" + } } - } - ] + ] + } } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControl/getAllSourceControls.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControl/getAllSourceControls.json index b0205a86f424..033059e52b9f 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControl/getAllSourceControls.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControl/getAllSourceControls.json @@ -7,83 +7,85 @@ }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl1", - "name": "sampleSourceControl1", - "properties": { - "creationTime": "2017-03-28T22:59:00.937+00:00", - "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", - "repoUrl": "https://github.com/SampleUserRepro/PowerShell-1", - "branch": "master", - "path": "/sampleFolder/sampleFolder2", - "autoSync": true, - "publishRunbook": true, - "sourceType": "GitHub", - "description": "my description" + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl1", + "name": "sampleSourceControl1", + "properties": { + "creationTime": "2017-03-28T22:59:00.937+00:00", + "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", + "repoUrl": "https://github.com/SampleUserRepro/PowerShell-1", + "branch": "master", + "folderPath": "/sampleFolder/sampleFolder2", + "autoSync": true, + "publishRunbook": true, + "sourceType": "GitHub", + "description": "my description" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl2", + "name": "sampleSourceControl2", + "properties": { + "creationTime": "2017-03-28T22:59:00.937+00:00", + "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", + "repoUrl": "https://github.com/SampleUserRepro/PowerShell-2", + "branch": "master", + "folderPath": "/sampleFolder/sampleFolder2", + "autoSync": true, + "publishRunbook": true, + "sourceType": "GitHub", + "description": "my description" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl3", + "name": "sampleSourceControl3", + "properties": { + "creationTime": "2017-03-28T22:59:00.937+00:00", + "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", + "repoUrl": "https://github.com/SampleUserRepro/PowerShell-3", + "branch": "master", + "folderPath": "/sampleFolder/sampleFolder2", + "autoSync": true, + "publishRunbook": true, + "sourceType": "GitHub", + "description": "my description" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl4", + "name": "sampleSourceControl4", + "properties": { + "creationTime": "2017-03-28T22:59:00.937+00:00", + "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", + "repoUrl": "https://github.com/SampleUserRepro/PowerShell-4", + "branch": "master", + "folderPath": "/sampleFolder/sampleFolder2", + "autoSync": true, + "publishRunbook": true, + "sourceType": "GitHub", + "description": "my description" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl5", + "name": "sampleSourceControl5", + "properties": { + "creationTime": "2017-03-28T22:59:00.937+00:00", + "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", + "repoUrl": "https://github.com/SampleUserRepro/PowerShell-5", + "branch": "master", + "folderPath": "/sampleFolder/sampleFolder2", + "autoSync": true, + "publishRunbook": true, + "sourceType": "GitHub", + "description": "my description" + } } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl2", - "name": "sampleSourceControl2", - "properties": { - "creationTime": "2017-03-28T22:59:00.937+00:00", - "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", - "repoUrl": "https://github.com/SampleUserRepro/PowerShell-2", - "branch": "master", - "path": "/sampleFolder/sampleFolder2", - "autoSync": true, - "publishRunbook": true, - "sourceType": "GitHub", - "description": "my description" - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl3", - "name": "sampleSourceControl3", - "properties": { - "creationTime": "2017-03-28T22:59:00.937+00:00", - "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", - "repoUrl": "https://github.com/SampleUserRepro/PowerShell-3", - "branch": "master", - "path": "/sampleFolder/sampleFolder2", - "autoSync": true, - "publishRunbook": true, - "sourceType": "GitHub", - "description": "my description" - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl4", - "name": "sampleSourceControl4", - "properties": { - "creationTime": "2017-03-28T22:59:00.937+00:00", - "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", - "repoUrl": "https://github.com/SampleUserRepro/PowerShell-4", - "branch": "master", - "path": "/sampleFolder/sampleFolder2", - "autoSync": true, - "publishRunbook": true, - "sourceType": "GitHub", - "description": "my description" - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl5", - "name": "sampleSourceControl5", - "properties": { - "creationTime": "2017-03-28T22:59:00.937+00:00", - "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", - "repoUrl": "https://github.com/SampleUserRepro/PowerShell-5", - "branch": "master", - "path": "/sampleFolder/sampleFolder2", - "autoSync": true, - "publishRunbook": true, - "sourceType": "GitHub", - "description": "my description" - } - } - ] + ] + } } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControl/getSourceControl.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControl/getSourceControl.json index 74b0cd612a54..1f0f9be130d3 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControl/getSourceControl.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControl/getSourceControl.json @@ -8,18 +8,20 @@ }, "responses": { "200": { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl", - "name": "sampleSourceControl", - "properties": { - "creationTime": "2017-03-28T22:59:00.937+00:00", - "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", - "repoUrl": "https://github.com/SampleUserRepro/PowerShell", - "branch": "master", - "path": "/folderOne/folderTwo", - "autoSync": true, - "publishRunbook": true, - "sourceType": "GitHub", - "description": "my description" + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl", + "name": "sampleSourceControl", + "properties": { + "creationTime": "2017-03-28T22:59:00.937+00:00", + "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", + "repoUrl": "https://github.com/SampleUserRepro/PowerShell", + "branch": "master", + "folderPath": "/folderOne/folderTwo", + "autoSync": true, + "publishRunbook": true, + "sourceType": "GitHub", + "description": "my description" + } } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreams.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreams.json index 12b61964999f..8514c2796098 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreams.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreams.json @@ -40,7 +40,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getVariable.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getVariable.json index 073ee0cee2fa..ff8dbfbce4c3 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getVariable.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getVariable.json @@ -8,14 +8,16 @@ }, "responses": { "200": { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable", - "name": "sampleVariable", - "properties": { - "creationTime": "2017-03-28T22:59:00.937+00:00", - "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", - "isEncrypted": false, - "value": "\"ComputerName.domain.com\"", - "description": "my description" + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable", + "name": "sampleVariable", + "properties": { + "creationTime": "2017-03-28T22:59:00.937+00:00", + "lastModifiedTime": "2017-03-28T22:59:00.937+00:00", + "isEncrypted": false, + "value": "\"ComputerName.domain.com\"", + "description": "my description" + } } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listTestJobStreamsByJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listTestJobStreamsByJob.json index a1679b13a591..bf8805f16155 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listTestJobStreamsByJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listTestJobStreamsByJob.json @@ -30,7 +30,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listVariables_First100.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listVariables_First100.json index 8e82d07ddd23..66a9a1c9a55d 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listVariables_First100.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listVariables_First100.json @@ -7,1109 +7,1111 @@ }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable", - "name": "sampleVariable", - "properties": { - "creationTime": "2017-03-28T23:00:53.363+00:00", - "lastModifiedTime": "2017-03-28T23:00:57.987+00:00", - "isEncrypted": false, - "value": "\"ComputerName3.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable0", - "name": "sampleVariable0", - "properties": { - "creationTime": "2017-03-28T23:00:58.847+00:00", - "lastModifiedTime": "2017-03-28T23:00:58.847+00:00", - "isEncrypted": false, - "value": "\"server0.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable1", - "name": "sampleVariable1", - "properties": { - "creationTime": "2017-03-28T23:00:59.69+00:00", - "lastModifiedTime": "2017-03-28T23:00:59.69+00:00", - "isEncrypted": false, - "value": "\"server1.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable10", - "name": "sampleVariable10", - "properties": { - "creationTime": "2017-03-28T23:01:08.393+00:00", - "lastModifiedTime": "2017-03-28T23:01:08.393+00:00", - "isEncrypted": false, - "value": "\"server10.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable100", - "name": "sampleVariable100", - "properties": { - "creationTime": "2017-03-28T23:02:27.38+00:00", - "lastModifiedTime": "2017-03-28T23:02:27.38+00:00", - "isEncrypted": false, - "value": "\"server100.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable101", - "name": "sampleVariable101", - "properties": { - "creationTime": "2017-03-28T23:02:28.223+00:00", - "lastModifiedTime": "2017-03-28T23:02:28.223+00:00", - "isEncrypted": false, - "value": "\"server101.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable102", - "name": "sampleVariable102", - "properties": { - "creationTime": "2017-03-28T23:02:28.99+00:00", - "lastModifiedTime": "2017-03-28T23:02:28.99+00:00", - "isEncrypted": false, - "value": "\"server102.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable103", - "name": "sampleVariable103", - "properties": { - "creationTime": "2017-03-28T23:02:29.77+00:00", - "lastModifiedTime": "2017-03-28T23:02:29.77+00:00", - "isEncrypted": false, - "value": "\"server103.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable104", - "name": "sampleVariable104", - "properties": { - "creationTime": "2017-03-28T23:02:30.647+00:00", - "lastModifiedTime": "2017-03-28T23:02:30.647+00:00", - "isEncrypted": false, - "value": "\"server104.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable105", - "name": "sampleVariable105", - "properties": { - "creationTime": "2017-03-28T23:02:31.49+00:00", - "lastModifiedTime": "2017-03-28T23:02:31.49+00:00", - "isEncrypted": false, - "value": "\"server105.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable106", - "name": "sampleVariable106", - "properties": { - "creationTime": "2017-03-28T23:02:32.303+00:00", - "lastModifiedTime": "2017-03-28T23:02:32.303+00:00", - "isEncrypted": false, - "value": "\"server106.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable107", - "name": "sampleVariable107", - "properties": { - "creationTime": "2017-03-28T23:02:34.583+00:00", - "lastModifiedTime": "2017-03-28T23:02:34.583+00:00", - "isEncrypted": false, - "value": "\"server107.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable108", - "name": "sampleVariable108", - "properties": { - "creationTime": "2017-03-28T23:02:35.367+00:00", - "lastModifiedTime": "2017-03-28T23:02:35.367+00:00", - "isEncrypted": false, - "value": "\"server108.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable109", - "name": "sampleVariable109", - "properties": { - "creationTime": "2017-03-28T23:02:36.147+00:00", - "lastModifiedTime": "2017-03-28T23:02:36.147+00:00", - "isEncrypted": false, - "value": "\"server109.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable11", - "name": "sampleVariable11", - "properties": { - "creationTime": "2017-03-28T23:01:09.27+00:00", - "lastModifiedTime": "2017-03-28T23:01:09.27+00:00", - "isEncrypted": false, - "value": "\"server11.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable12", - "name": "sampleVariable12", - "properties": { - "creationTime": "2017-03-28T23:01:10.16+00:00", - "lastModifiedTime": "2017-03-28T23:01:10.16+00:00", - "isEncrypted": false, - "value": "\"server12.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable13", - "name": "sampleVariable13", - "properties": { - "creationTime": "2017-03-28T23:01:11.003+00:00", - "lastModifiedTime": "2017-03-28T23:01:11.003+00:00", - "isEncrypted": false, - "value": "\"server13.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable14", - "name": "sampleVariable14", - "properties": { - "creationTime": "2017-03-28T23:01:11.863+00:00", - "lastModifiedTime": "2017-03-28T23:01:11.863+00:00", - "isEncrypted": false, - "value": "\"server14.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable15", - "name": "sampleVariable15", - "properties": { - "creationTime": "2017-03-28T23:01:12.74+00:00", - "lastModifiedTime": "2017-03-28T23:01:12.74+00:00", - "isEncrypted": false, - "value": "\"server15.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable16", - "name": "sampleVariable16", - "properties": { - "creationTime": "2017-03-28T23:01:13.597+00:00", - "lastModifiedTime": "2017-03-28T23:01:13.597+00:00", - "isEncrypted": false, - "value": "\"server16.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable17", - "name": "sampleVariable17", - "properties": { - "creationTime": "2017-03-28T23:01:16.287+00:00", - "lastModifiedTime": "2017-03-28T23:01:16.287+00:00", - "isEncrypted": false, - "value": "\"server17.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable18", - "name": "sampleVariable18", - "properties": { - "creationTime": "2017-03-28T23:01:17.16+00:00", - "lastModifiedTime": "2017-03-28T23:01:17.16+00:00", - "isEncrypted": false, - "value": "\"server18.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable19", - "name": "sampleVariable19", - "properties": { - "creationTime": "2017-03-28T23:01:18.02+00:00", - "lastModifiedTime": "2017-03-28T23:01:18.02+00:00", - "isEncrypted": false, - "value": "\"server19.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable2", - "name": "sampleVariable2", - "properties": { - "creationTime": "2017-03-28T23:01:00.567+00:00", - "lastModifiedTime": "2017-03-28T23:01:00.567+00:00", - "isEncrypted": false, - "value": "\"server2.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable20", - "name": "sampleVariable20", - "properties": { - "creationTime": "2017-03-28T23:01:18.847+00:00", - "lastModifiedTime": "2017-03-28T23:01:18.847+00:00", - "isEncrypted": false, - "value": "\"server20.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable21", - "name": "sampleVariable21", - "properties": { - "creationTime": "2017-03-28T23:01:19.723+00:00", - "lastModifiedTime": "2017-03-28T23:01:19.723+00:00", - "isEncrypted": false, - "value": "\"server21.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable22", - "name": "sampleVariable22", - "properties": { - "creationTime": "2017-03-28T23:01:21.597+00:00", - "lastModifiedTime": "2017-03-28T23:01:21.597+00:00", - "isEncrypted": false, - "value": "\"server22.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable23", - "name": "sampleVariable23", - "properties": { - "creationTime": "2017-03-28T23:01:22.393+00:00", - "lastModifiedTime": "2017-03-28T23:01:22.393+00:00", - "isEncrypted": false, - "value": "\"server23.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable24", - "name": "sampleVariable24", - "properties": { - "creationTime": "2017-03-28T23:01:23.207+00:00", - "lastModifiedTime": "2017-03-28T23:01:23.207+00:00", - "isEncrypted": false, - "value": "\"server24.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable25", - "name": "sampleVariable25", - "properties": { - "creationTime": "2017-03-28T23:01:23.973+00:00", - "lastModifiedTime": "2017-03-28T23:01:23.973+00:00", - "isEncrypted": false, - "value": "\"server25.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable26", - "name": "sampleVariable26", - "properties": { - "creationTime": "2017-03-28T23:01:24.8+00:00", - "lastModifiedTime": "2017-03-28T23:01:24.8+00:00", - "isEncrypted": false, - "value": "\"server26.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable27", - "name": "sampleVariable27", - "properties": { - "creationTime": "2017-03-28T23:01:25.597+00:00", - "lastModifiedTime": "2017-03-28T23:01:25.597+00:00", - "isEncrypted": false, - "value": "\"server27.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable28", - "name": "sampleVariable28", - "properties": { - "creationTime": "2017-03-28T23:01:26.55+00:00", - "lastModifiedTime": "2017-03-28T23:01:26.55+00:00", - "isEncrypted": false, - "value": "\"server28.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable29", - "name": "sampleVariable29", - "properties": { - "creationTime": "2017-03-28T23:01:27.457+00:00", - "lastModifiedTime": "2017-03-28T23:01:27.457+00:00", - "isEncrypted": false, - "value": "\"server29.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable3", - "name": "sampleVariable3", - "properties": { - "creationTime": "2017-03-28T23:01:01.427+00:00", - "lastModifiedTime": "2017-03-28T23:01:01.427+00:00", - "isEncrypted": false, - "value": "\"server3.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable30", - "name": "sampleVariable30", - "properties": { - "creationTime": "2017-03-28T23:01:28.253+00:00", - "lastModifiedTime": "2017-03-28T23:01:28.253+00:00", - "isEncrypted": false, - "value": "\"server30.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable31", - "name": "sampleVariable31", - "properties": { - "creationTime": "2017-03-28T23:01:29.05+00:00", - "lastModifiedTime": "2017-03-28T23:01:29.05+00:00", - "isEncrypted": false, - "value": "\"server31.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable32", - "name": "sampleVariable32", - "properties": { - "creationTime": "2017-03-28T23:01:29.817+00:00", - "lastModifiedTime": "2017-03-28T23:01:29.817+00:00", - "isEncrypted": false, - "value": "\"server32.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable33", - "name": "sampleVariable33", - "properties": { - "creationTime": "2017-03-28T23:01:30.643+00:00", - "lastModifiedTime": "2017-03-28T23:01:30.643+00:00", - "isEncrypted": false, - "value": "\"server33.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable34", - "name": "sampleVariable34", - "properties": { - "creationTime": "2017-03-28T23:01:31.473+00:00", - "lastModifiedTime": "2017-03-28T23:01:31.473+00:00", - "isEncrypted": false, - "value": "\"server34.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable35", - "name": "sampleVariable35", - "properties": { - "creationTime": "2017-03-28T23:01:32.253+00:00", - "lastModifiedTime": "2017-03-28T23:01:32.253+00:00", - "isEncrypted": false, - "value": "\"server35.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable36", - "name": "sampleVariable36", - "properties": { - "creationTime": "2017-03-28T23:01:33.27+00:00", - "lastModifiedTime": "2017-03-28T23:01:33.27+00:00", - "isEncrypted": false, - "value": "\"server36.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable37", - "name": "sampleVariable37", - "properties": { - "creationTime": "2017-03-28T23:01:34.037+00:00", - "lastModifiedTime": "2017-03-28T23:01:34.037+00:00", - "isEncrypted": false, - "value": "\"server37.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable38", - "name": "sampleVariable38", - "properties": { - "creationTime": "2017-03-28T23:01:34.817+00:00", - "lastModifiedTime": "2017-03-28T23:01:34.817+00:00", - "isEncrypted": false, - "value": "\"server38.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable39", - "name": "sampleVariable39", - "properties": { - "creationTime": "2017-03-28T23:01:35.613+00:00", - "lastModifiedTime": "2017-03-28T23:01:35.613+00:00", - "isEncrypted": false, - "value": "\"server39.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable4", - "name": "sampleVariable4", - "properties": { - "creationTime": "2017-03-28T23:01:02.38+00:00", - "lastModifiedTime": "2017-03-28T23:01:02.38+00:00", - "isEncrypted": false, - "value": "\"server4.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable40", - "name": "sampleVariable40", - "properties": { - "creationTime": "2017-03-28T23:01:36.397+00:00", - "lastModifiedTime": "2017-03-28T23:01:36.397+00:00", - "isEncrypted": false, - "value": "\"server40.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable41", - "name": "sampleVariable41", - "properties": { - "creationTime": "2017-03-28T23:01:37.19+00:00", - "lastModifiedTime": "2017-03-28T23:01:37.19+00:00", - "isEncrypted": false, - "value": "\"server41.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable42", - "name": "sampleVariable42", - "properties": { - "creationTime": "2017-03-28T23:01:38.037+00:00", - "lastModifiedTime": "2017-03-28T23:01:38.037+00:00", - "isEncrypted": false, - "value": "\"server42.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable43", - "name": "sampleVariable43", - "properties": { - "creationTime": "2017-03-28T23:01:38.88+00:00", - "lastModifiedTime": "2017-03-28T23:01:38.88+00:00", - "isEncrypted": false, - "value": "\"server43.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable44", - "name": "sampleVariable44", - "properties": { - "creationTime": "2017-03-28T23:01:39.707+00:00", - "lastModifiedTime": "2017-03-28T23:01:39.707+00:00", - "isEncrypted": false, - "value": "\"server44.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable45", - "name": "sampleVariable45", - "properties": { - "creationTime": "2017-03-28T23:01:41.457+00:00", - "lastModifiedTime": "2017-03-28T23:01:41.457+00:00", - "isEncrypted": false, - "value": "\"server45.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable46", - "name": "sampleVariable46", - "properties": { - "creationTime": "2017-03-28T23:01:42.253+00:00", - "lastModifiedTime": "2017-03-28T23:01:42.253+00:00", - "isEncrypted": false, - "value": "\"server46.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable47", - "name": "sampleVariable47", - "properties": { - "creationTime": "2017-03-28T23:01:43.083+00:00", - "lastModifiedTime": "2017-03-28T23:01:43.083+00:00", - "isEncrypted": false, - "value": "\"server47.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable48", - "name": "sampleVariable48", - "properties": { - "creationTime": "2017-03-28T23:01:43.957+00:00", - "lastModifiedTime": "2017-03-28T23:01:43.957+00:00", - "isEncrypted": false, - "value": "\"server48.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable49", - "name": "sampleVariable49", - "properties": { - "creationTime": "2017-03-28T23:01:44.74+00:00", - "lastModifiedTime": "2017-03-28T23:01:44.74+00:00", - "isEncrypted": false, - "value": "\"server49.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable5", - "name": "sampleVariable5", - "properties": { - "creationTime": "2017-03-28T23:01:03.253+00:00", - "lastModifiedTime": "2017-03-28T23:01:03.253+00:00", - "isEncrypted": false, - "value": "\"server5.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable50", - "name": "sampleVariable50", - "properties": { - "creationTime": "2017-03-28T23:01:46.35+00:00", - "lastModifiedTime": "2017-03-28T23:01:46.35+00:00", - "isEncrypted": false, - "value": "\"server50.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable51", - "name": "sampleVariable51", - "properties": { - "creationTime": "2017-03-28T23:01:47.1+00:00", - "lastModifiedTime": "2017-03-28T23:01:47.1+00:00", - "isEncrypted": false, - "value": "\"server51.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable52", - "name": "sampleVariable52", - "properties": { - "creationTime": "2017-03-28T23:01:47.88+00:00", - "lastModifiedTime": "2017-03-28T23:01:47.88+00:00", - "isEncrypted": false, - "value": "\"server52.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable53", - "name": "sampleVariable53", - "properties": { - "creationTime": "2017-03-28T23:01:48.677+00:00", - "lastModifiedTime": "2017-03-28T23:01:48.677+00:00", - "isEncrypted": false, - "value": "\"server53.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable54", - "name": "sampleVariable54", - "properties": { - "creationTime": "2017-03-28T23:01:49.473+00:00", - "lastModifiedTime": "2017-03-28T23:01:49.473+00:00", - "isEncrypted": false, - "value": "\"server54.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable55", - "name": "sampleVariable55", - "properties": { - "creationTime": "2017-03-28T23:01:51.16+00:00", - "lastModifiedTime": "2017-03-28T23:01:51.16+00:00", - "isEncrypted": false, - "value": "\"server55.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable56", - "name": "sampleVariable56", - "properties": { - "creationTime": "2017-03-28T23:01:51.927+00:00", - "lastModifiedTime": "2017-03-28T23:01:51.927+00:00", - "isEncrypted": false, - "value": "\"server56.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable57", - "name": "sampleVariable57", - "properties": { - "creationTime": "2017-03-28T23:01:52.757+00:00", - "lastModifiedTime": "2017-03-28T23:01:52.757+00:00", - "isEncrypted": false, - "value": "\"server57.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable58", - "name": "sampleVariable58", - "properties": { - "creationTime": "2017-03-28T23:01:53.55+00:00", - "lastModifiedTime": "2017-03-28T23:01:53.55+00:00", - "isEncrypted": false, - "value": "\"server58.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable59", - "name": "sampleVariable59", - "properties": { - "creationTime": "2017-03-28T23:01:54.317+00:00", - "lastModifiedTime": "2017-03-28T23:01:54.317+00:00", - "isEncrypted": false, - "value": "\"server59.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable6", - "name": "sampleVariable6", - "properties": { - "creationTime": "2017-03-28T23:01:04.143+00:00", - "lastModifiedTime": "2017-03-28T23:01:04.143+00:00", - "isEncrypted": false, - "value": "\"server6.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable60", - "name": "sampleVariable60", - "properties": { - "creationTime": "2017-03-28T23:01:55.177+00:00", - "lastModifiedTime": "2017-03-28T23:01:55.177+00:00", - "isEncrypted": false, - "value": "\"server60.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable61", - "name": "sampleVariable61", - "properties": { - "creationTime": "2017-03-28T23:01:56.583+00:00", - "lastModifiedTime": "2017-03-28T23:01:56.583+00:00", - "isEncrypted": false, - "value": "\"server61.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable62", - "name": "sampleVariable62", - "properties": { - "creationTime": "2017-03-28T23:01:57.27+00:00", - "lastModifiedTime": "2017-03-28T23:01:57.27+00:00", - "isEncrypted": false, - "value": "\"server62.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable63", - "name": "sampleVariable63", - "properties": { - "creationTime": "2017-03-28T23:01:57.943+00:00", - "lastModifiedTime": "2017-03-28T23:01:57.943+00:00", - "isEncrypted": false, - "value": "\"server63.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable64", - "name": "sampleVariable64", - "properties": { - "creationTime": "2017-03-28T23:01:58.66+00:00", - "lastModifiedTime": "2017-03-28T23:01:58.66+00:00", - "isEncrypted": false, - "value": "\"server64.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable65", - "name": "sampleVariable65", - "properties": { - "creationTime": "2017-03-28T23:01:59.35+00:00", - "lastModifiedTime": "2017-03-28T23:01:59.35+00:00", - "isEncrypted": false, - "value": "\"server65.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable66", - "name": "sampleVariable66", - "properties": { - "creationTime": "2017-03-28T23:02:00.02+00:00", - "lastModifiedTime": "2017-03-28T23:02:00.02+00:00", - "isEncrypted": false, - "value": "\"server66.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable67", - "name": "sampleVariable67", - "properties": { - "creationTime": "2017-03-28T23:02:01.507+00:00", - "lastModifiedTime": "2017-03-28T23:02:01.507+00:00", - "isEncrypted": false, - "value": "\"server67.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable68", - "name": "sampleVariable68", - "properties": { - "creationTime": "2017-03-28T23:02:02.177+00:00", - "lastModifiedTime": "2017-03-28T23:02:02.177+00:00", - "isEncrypted": false, - "value": "\"server68.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable69", - "name": "sampleVariable69", - "properties": { - "creationTime": "2017-03-28T23:02:02.863+00:00", - "lastModifiedTime": "2017-03-28T23:02:02.863+00:00", - "isEncrypted": false, - "value": "\"server69.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable7", - "name": "sampleVariable7", - "properties": { - "creationTime": "2017-03-28T23:01:05.393+00:00", - "lastModifiedTime": "2017-03-28T23:01:05.393+00:00", - "isEncrypted": false, - "value": "\"server7.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable70", - "name": "sampleVariable70", - "properties": { - "creationTime": "2017-03-28T23:02:03.6+00:00", - "lastModifiedTime": "2017-03-28T23:02:03.6+00:00", - "isEncrypted": false, - "value": "\"server70.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable71", - "name": "sampleVariable71", - "properties": { - "creationTime": "2017-03-28T23:02:04.333+00:00", - "lastModifiedTime": "2017-03-28T23:02:04.333+00:00", - "isEncrypted": false, - "value": "\"server71.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable72", - "name": "sampleVariable72", - "properties": { - "creationTime": "2017-03-28T23:02:05.1+00:00", - "lastModifiedTime": "2017-03-28T23:02:05.1+00:00", - "isEncrypted": false, - "value": "\"server72.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable73", - "name": "sampleVariable73", - "properties": { - "creationTime": "2017-03-28T23:02:05.833+00:00", - "lastModifiedTime": "2017-03-28T23:02:05.833+00:00", - "isEncrypted": false, - "value": "\"server73.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable74", - "name": "sampleVariable74", - "properties": { - "creationTime": "2017-03-28T23:02:06.647+00:00", - "lastModifiedTime": "2017-03-28T23:02:06.647+00:00", - "isEncrypted": false, - "value": "\"server74.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable75", - "name": "sampleVariable75", - "properties": { - "creationTime": "2017-03-28T23:02:07.363+00:00", - "lastModifiedTime": "2017-03-28T23:02:07.363+00:00", - "isEncrypted": false, - "value": "\"server75.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable76", - "name": "sampleVariable76", - "properties": { - "creationTime": "2017-03-28T23:02:08.1+00:00", - "lastModifiedTime": "2017-03-28T23:02:08.1+00:00", - "isEncrypted": false, - "value": "\"server76.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable77", - "name": "sampleVariable77", - "properties": { - "creationTime": "2017-03-28T23:02:08.82+00:00", - "lastModifiedTime": "2017-03-28T23:02:08.82+00:00", - "isEncrypted": false, - "value": "\"server77.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable78", - "name": "sampleVariable78", - "properties": { - "creationTime": "2017-03-28T23:02:09.553+00:00", - "lastModifiedTime": "2017-03-28T23:02:09.553+00:00", - "isEncrypted": false, - "value": "\"server78.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable79", - "name": "sampleVariable79", - "properties": { - "creationTime": "2017-03-28T23:02:10.63+00:00", - "lastModifiedTime": "2017-03-28T23:02:10.63+00:00", - "isEncrypted": false, - "value": "\"server79.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable8", - "name": "sampleVariable8", - "properties": { - "creationTime": "2017-03-28T23:01:06.52+00:00", - "lastModifiedTime": "2017-03-28T23:01:06.52+00:00", - "isEncrypted": false, - "value": "\"server8.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable80", - "name": "sampleVariable80", - "properties": { - "creationTime": "2017-03-28T23:02:11.32+00:00", - "lastModifiedTime": "2017-03-28T23:02:11.32+00:00", - "isEncrypted": false, - "value": "\"server80.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable81", - "name": "sampleVariable81", - "properties": { - "creationTime": "2017-03-28T23:02:12.02+00:00", - "lastModifiedTime": "2017-03-28T23:02:12.02+00:00", - "isEncrypted": false, - "value": "\"server81.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable82", - "name": "sampleVariable82", - "properties": { - "creationTime": "2017-03-28T23:02:12.723+00:00", - "lastModifiedTime": "2017-03-28T23:02:12.723+00:00", - "isEncrypted": false, - "value": "\"server82.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable83", - "name": "sampleVariable83", - "properties": { - "creationTime": "2017-03-28T23:02:13.443+00:00", - "lastModifiedTime": "2017-03-28T23:02:13.443+00:00", - "isEncrypted": false, - "value": "\"server83.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable84", - "name": "sampleVariable84", - "properties": { - "creationTime": "2017-03-28T23:02:14.16+00:00", - "lastModifiedTime": "2017-03-28T23:02:14.16+00:00", - "isEncrypted": false, - "value": "\"server84.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable85", - "name": "sampleVariable85", - "properties": { - "creationTime": "2017-03-28T23:02:15.177+00:00", - "lastModifiedTime": "2017-03-28T23:02:15.177+00:00", - "isEncrypted": false, - "value": "\"server85.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable86", - "name": "sampleVariable86", - "properties": { - "creationTime": "2017-03-28T23:02:16.053+00:00", - "lastModifiedTime": "2017-03-28T23:02:16.053+00:00", - "isEncrypted": false, - "value": "\"server86.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable87", - "name": "sampleVariable87", - "properties": { - "creationTime": "2017-03-28T23:02:16.82+00:00", - "lastModifiedTime": "2017-03-28T23:02:16.82+00:00", - "isEncrypted": false, - "value": "\"server87.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable88", - "name": "sampleVariable88", - "properties": { - "creationTime": "2017-03-28T23:02:17.583+00:00", - "lastModifiedTime": "2017-03-28T23:02:17.583+00:00", - "isEncrypted": false, - "value": "\"server88.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable89", - "name": "sampleVariable89", - "properties": { - "creationTime": "2017-03-28T23:02:18.333+00:00", - "lastModifiedTime": "2017-03-28T23:02:18.333+00:00", - "isEncrypted": false, - "value": "\"server89.domain.com\"", - "description": null - } - } - ], - "nextLink": "https://management.azure.com:443/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables?api-version=2015-10-31&$skip=100" + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable", + "name": "sampleVariable", + "properties": { + "creationTime": "2017-03-28T23:00:53.363+00:00", + "lastModifiedTime": "2017-03-28T23:00:57.987+00:00", + "isEncrypted": false, + "value": "\"ComputerName3.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable0", + "name": "sampleVariable0", + "properties": { + "creationTime": "2017-03-28T23:00:58.847+00:00", + "lastModifiedTime": "2017-03-28T23:00:58.847+00:00", + "isEncrypted": false, + "value": "\"server0.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable1", + "name": "sampleVariable1", + "properties": { + "creationTime": "2017-03-28T23:00:59.69+00:00", + "lastModifiedTime": "2017-03-28T23:00:59.69+00:00", + "isEncrypted": false, + "value": "\"server1.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable10", + "name": "sampleVariable10", + "properties": { + "creationTime": "2017-03-28T23:01:08.393+00:00", + "lastModifiedTime": "2017-03-28T23:01:08.393+00:00", + "isEncrypted": false, + "value": "\"server10.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable100", + "name": "sampleVariable100", + "properties": { + "creationTime": "2017-03-28T23:02:27.38+00:00", + "lastModifiedTime": "2017-03-28T23:02:27.38+00:00", + "isEncrypted": false, + "value": "\"server100.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable101", + "name": "sampleVariable101", + "properties": { + "creationTime": "2017-03-28T23:02:28.223+00:00", + "lastModifiedTime": "2017-03-28T23:02:28.223+00:00", + "isEncrypted": false, + "value": "\"server101.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable102", + "name": "sampleVariable102", + "properties": { + "creationTime": "2017-03-28T23:02:28.99+00:00", + "lastModifiedTime": "2017-03-28T23:02:28.99+00:00", + "isEncrypted": false, + "value": "\"server102.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable103", + "name": "sampleVariable103", + "properties": { + "creationTime": "2017-03-28T23:02:29.77+00:00", + "lastModifiedTime": "2017-03-28T23:02:29.77+00:00", + "isEncrypted": false, + "value": "\"server103.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable104", + "name": "sampleVariable104", + "properties": { + "creationTime": "2017-03-28T23:02:30.647+00:00", + "lastModifiedTime": "2017-03-28T23:02:30.647+00:00", + "isEncrypted": false, + "value": "\"server104.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable105", + "name": "sampleVariable105", + "properties": { + "creationTime": "2017-03-28T23:02:31.49+00:00", + "lastModifiedTime": "2017-03-28T23:02:31.49+00:00", + "isEncrypted": false, + "value": "\"server105.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable106", + "name": "sampleVariable106", + "properties": { + "creationTime": "2017-03-28T23:02:32.303+00:00", + "lastModifiedTime": "2017-03-28T23:02:32.303+00:00", + "isEncrypted": false, + "value": "\"server106.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable107", + "name": "sampleVariable107", + "properties": { + "creationTime": "2017-03-28T23:02:34.583+00:00", + "lastModifiedTime": "2017-03-28T23:02:34.583+00:00", + "isEncrypted": false, + "value": "\"server107.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable108", + "name": "sampleVariable108", + "properties": { + "creationTime": "2017-03-28T23:02:35.367+00:00", + "lastModifiedTime": "2017-03-28T23:02:35.367+00:00", + "isEncrypted": false, + "value": "\"server108.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable109", + "name": "sampleVariable109", + "properties": { + "creationTime": "2017-03-28T23:02:36.147+00:00", + "lastModifiedTime": "2017-03-28T23:02:36.147+00:00", + "isEncrypted": false, + "value": "\"server109.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable11", + "name": "sampleVariable11", + "properties": { + "creationTime": "2017-03-28T23:01:09.27+00:00", + "lastModifiedTime": "2017-03-28T23:01:09.27+00:00", + "isEncrypted": false, + "value": "\"server11.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable12", + "name": "sampleVariable12", + "properties": { + "creationTime": "2017-03-28T23:01:10.16+00:00", + "lastModifiedTime": "2017-03-28T23:01:10.16+00:00", + "isEncrypted": false, + "value": "\"server12.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable13", + "name": "sampleVariable13", + "properties": { + "creationTime": "2017-03-28T23:01:11.003+00:00", + "lastModifiedTime": "2017-03-28T23:01:11.003+00:00", + "isEncrypted": false, + "value": "\"server13.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable14", + "name": "sampleVariable14", + "properties": { + "creationTime": "2017-03-28T23:01:11.863+00:00", + "lastModifiedTime": "2017-03-28T23:01:11.863+00:00", + "isEncrypted": false, + "value": "\"server14.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable15", + "name": "sampleVariable15", + "properties": { + "creationTime": "2017-03-28T23:01:12.74+00:00", + "lastModifiedTime": "2017-03-28T23:01:12.74+00:00", + "isEncrypted": false, + "value": "\"server15.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable16", + "name": "sampleVariable16", + "properties": { + "creationTime": "2017-03-28T23:01:13.597+00:00", + "lastModifiedTime": "2017-03-28T23:01:13.597+00:00", + "isEncrypted": false, + "value": "\"server16.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable17", + "name": "sampleVariable17", + "properties": { + "creationTime": "2017-03-28T23:01:16.287+00:00", + "lastModifiedTime": "2017-03-28T23:01:16.287+00:00", + "isEncrypted": false, + "value": "\"server17.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable18", + "name": "sampleVariable18", + "properties": { + "creationTime": "2017-03-28T23:01:17.16+00:00", + "lastModifiedTime": "2017-03-28T23:01:17.16+00:00", + "isEncrypted": false, + "value": "\"server18.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable19", + "name": "sampleVariable19", + "properties": { + "creationTime": "2017-03-28T23:01:18.02+00:00", + "lastModifiedTime": "2017-03-28T23:01:18.02+00:00", + "isEncrypted": false, + "value": "\"server19.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable2", + "name": "sampleVariable2", + "properties": { + "creationTime": "2017-03-28T23:01:00.567+00:00", + "lastModifiedTime": "2017-03-28T23:01:00.567+00:00", + "isEncrypted": false, + "value": "\"server2.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable20", + "name": "sampleVariable20", + "properties": { + "creationTime": "2017-03-28T23:01:18.847+00:00", + "lastModifiedTime": "2017-03-28T23:01:18.847+00:00", + "isEncrypted": false, + "value": "\"server20.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable21", + "name": "sampleVariable21", + "properties": { + "creationTime": "2017-03-28T23:01:19.723+00:00", + "lastModifiedTime": "2017-03-28T23:01:19.723+00:00", + "isEncrypted": false, + "value": "\"server21.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable22", + "name": "sampleVariable22", + "properties": { + "creationTime": "2017-03-28T23:01:21.597+00:00", + "lastModifiedTime": "2017-03-28T23:01:21.597+00:00", + "isEncrypted": false, + "value": "\"server22.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable23", + "name": "sampleVariable23", + "properties": { + "creationTime": "2017-03-28T23:01:22.393+00:00", + "lastModifiedTime": "2017-03-28T23:01:22.393+00:00", + "isEncrypted": false, + "value": "\"server23.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable24", + "name": "sampleVariable24", + "properties": { + "creationTime": "2017-03-28T23:01:23.207+00:00", + "lastModifiedTime": "2017-03-28T23:01:23.207+00:00", + "isEncrypted": false, + "value": "\"server24.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable25", + "name": "sampleVariable25", + "properties": { + "creationTime": "2017-03-28T23:01:23.973+00:00", + "lastModifiedTime": "2017-03-28T23:01:23.973+00:00", + "isEncrypted": false, + "value": "\"server25.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable26", + "name": "sampleVariable26", + "properties": { + "creationTime": "2017-03-28T23:01:24.8+00:00", + "lastModifiedTime": "2017-03-28T23:01:24.8+00:00", + "isEncrypted": false, + "value": "\"server26.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable27", + "name": "sampleVariable27", + "properties": { + "creationTime": "2017-03-28T23:01:25.597+00:00", + "lastModifiedTime": "2017-03-28T23:01:25.597+00:00", + "isEncrypted": false, + "value": "\"server27.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable28", + "name": "sampleVariable28", + "properties": { + "creationTime": "2017-03-28T23:01:26.55+00:00", + "lastModifiedTime": "2017-03-28T23:01:26.55+00:00", + "isEncrypted": false, + "value": "\"server28.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable29", + "name": "sampleVariable29", + "properties": { + "creationTime": "2017-03-28T23:01:27.457+00:00", + "lastModifiedTime": "2017-03-28T23:01:27.457+00:00", + "isEncrypted": false, + "value": "\"server29.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable3", + "name": "sampleVariable3", + "properties": { + "creationTime": "2017-03-28T23:01:01.427+00:00", + "lastModifiedTime": "2017-03-28T23:01:01.427+00:00", + "isEncrypted": false, + "value": "\"server3.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable30", + "name": "sampleVariable30", + "properties": { + "creationTime": "2017-03-28T23:01:28.253+00:00", + "lastModifiedTime": "2017-03-28T23:01:28.253+00:00", + "isEncrypted": false, + "value": "\"server30.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable31", + "name": "sampleVariable31", + "properties": { + "creationTime": "2017-03-28T23:01:29.05+00:00", + "lastModifiedTime": "2017-03-28T23:01:29.05+00:00", + "isEncrypted": false, + "value": "\"server31.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable32", + "name": "sampleVariable32", + "properties": { + "creationTime": "2017-03-28T23:01:29.817+00:00", + "lastModifiedTime": "2017-03-28T23:01:29.817+00:00", + "isEncrypted": false, + "value": "\"server32.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable33", + "name": "sampleVariable33", + "properties": { + "creationTime": "2017-03-28T23:01:30.643+00:00", + "lastModifiedTime": "2017-03-28T23:01:30.643+00:00", + "isEncrypted": false, + "value": "\"server33.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable34", + "name": "sampleVariable34", + "properties": { + "creationTime": "2017-03-28T23:01:31.473+00:00", + "lastModifiedTime": "2017-03-28T23:01:31.473+00:00", + "isEncrypted": false, + "value": "\"server34.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable35", + "name": "sampleVariable35", + "properties": { + "creationTime": "2017-03-28T23:01:32.253+00:00", + "lastModifiedTime": "2017-03-28T23:01:32.253+00:00", + "isEncrypted": false, + "value": "\"server35.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable36", + "name": "sampleVariable36", + "properties": { + "creationTime": "2017-03-28T23:01:33.27+00:00", + "lastModifiedTime": "2017-03-28T23:01:33.27+00:00", + "isEncrypted": false, + "value": "\"server36.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable37", + "name": "sampleVariable37", + "properties": { + "creationTime": "2017-03-28T23:01:34.037+00:00", + "lastModifiedTime": "2017-03-28T23:01:34.037+00:00", + "isEncrypted": false, + "value": "\"server37.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable38", + "name": "sampleVariable38", + "properties": { + "creationTime": "2017-03-28T23:01:34.817+00:00", + "lastModifiedTime": "2017-03-28T23:01:34.817+00:00", + "isEncrypted": false, + "value": "\"server38.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable39", + "name": "sampleVariable39", + "properties": { + "creationTime": "2017-03-28T23:01:35.613+00:00", + "lastModifiedTime": "2017-03-28T23:01:35.613+00:00", + "isEncrypted": false, + "value": "\"server39.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable4", + "name": "sampleVariable4", + "properties": { + "creationTime": "2017-03-28T23:01:02.38+00:00", + "lastModifiedTime": "2017-03-28T23:01:02.38+00:00", + "isEncrypted": false, + "value": "\"server4.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable40", + "name": "sampleVariable40", + "properties": { + "creationTime": "2017-03-28T23:01:36.397+00:00", + "lastModifiedTime": "2017-03-28T23:01:36.397+00:00", + "isEncrypted": false, + "value": "\"server40.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable41", + "name": "sampleVariable41", + "properties": { + "creationTime": "2017-03-28T23:01:37.19+00:00", + "lastModifiedTime": "2017-03-28T23:01:37.19+00:00", + "isEncrypted": false, + "value": "\"server41.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable42", + "name": "sampleVariable42", + "properties": { + "creationTime": "2017-03-28T23:01:38.037+00:00", + "lastModifiedTime": "2017-03-28T23:01:38.037+00:00", + "isEncrypted": false, + "value": "\"server42.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable43", + "name": "sampleVariable43", + "properties": { + "creationTime": "2017-03-28T23:01:38.88+00:00", + "lastModifiedTime": "2017-03-28T23:01:38.88+00:00", + "isEncrypted": false, + "value": "\"server43.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable44", + "name": "sampleVariable44", + "properties": { + "creationTime": "2017-03-28T23:01:39.707+00:00", + "lastModifiedTime": "2017-03-28T23:01:39.707+00:00", + "isEncrypted": false, + "value": "\"server44.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable45", + "name": "sampleVariable45", + "properties": { + "creationTime": "2017-03-28T23:01:41.457+00:00", + "lastModifiedTime": "2017-03-28T23:01:41.457+00:00", + "isEncrypted": false, + "value": "\"server45.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable46", + "name": "sampleVariable46", + "properties": { + "creationTime": "2017-03-28T23:01:42.253+00:00", + "lastModifiedTime": "2017-03-28T23:01:42.253+00:00", + "isEncrypted": false, + "value": "\"server46.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable47", + "name": "sampleVariable47", + "properties": { + "creationTime": "2017-03-28T23:01:43.083+00:00", + "lastModifiedTime": "2017-03-28T23:01:43.083+00:00", + "isEncrypted": false, + "value": "\"server47.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable48", + "name": "sampleVariable48", + "properties": { + "creationTime": "2017-03-28T23:01:43.957+00:00", + "lastModifiedTime": "2017-03-28T23:01:43.957+00:00", + "isEncrypted": false, + "value": "\"server48.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable49", + "name": "sampleVariable49", + "properties": { + "creationTime": "2017-03-28T23:01:44.74+00:00", + "lastModifiedTime": "2017-03-28T23:01:44.74+00:00", + "isEncrypted": false, + "value": "\"server49.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable5", + "name": "sampleVariable5", + "properties": { + "creationTime": "2017-03-28T23:01:03.253+00:00", + "lastModifiedTime": "2017-03-28T23:01:03.253+00:00", + "isEncrypted": false, + "value": "\"server5.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable50", + "name": "sampleVariable50", + "properties": { + "creationTime": "2017-03-28T23:01:46.35+00:00", + "lastModifiedTime": "2017-03-28T23:01:46.35+00:00", + "isEncrypted": false, + "value": "\"server50.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable51", + "name": "sampleVariable51", + "properties": { + "creationTime": "2017-03-28T23:01:47.1+00:00", + "lastModifiedTime": "2017-03-28T23:01:47.1+00:00", + "isEncrypted": false, + "value": "\"server51.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable52", + "name": "sampleVariable52", + "properties": { + "creationTime": "2017-03-28T23:01:47.88+00:00", + "lastModifiedTime": "2017-03-28T23:01:47.88+00:00", + "isEncrypted": false, + "value": "\"server52.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable53", + "name": "sampleVariable53", + "properties": { + "creationTime": "2017-03-28T23:01:48.677+00:00", + "lastModifiedTime": "2017-03-28T23:01:48.677+00:00", + "isEncrypted": false, + "value": "\"server53.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable54", + "name": "sampleVariable54", + "properties": { + "creationTime": "2017-03-28T23:01:49.473+00:00", + "lastModifiedTime": "2017-03-28T23:01:49.473+00:00", + "isEncrypted": false, + "value": "\"server54.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable55", + "name": "sampleVariable55", + "properties": { + "creationTime": "2017-03-28T23:01:51.16+00:00", + "lastModifiedTime": "2017-03-28T23:01:51.16+00:00", + "isEncrypted": false, + "value": "\"server55.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable56", + "name": "sampleVariable56", + "properties": { + "creationTime": "2017-03-28T23:01:51.927+00:00", + "lastModifiedTime": "2017-03-28T23:01:51.927+00:00", + "isEncrypted": false, + "value": "\"server56.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable57", + "name": "sampleVariable57", + "properties": { + "creationTime": "2017-03-28T23:01:52.757+00:00", + "lastModifiedTime": "2017-03-28T23:01:52.757+00:00", + "isEncrypted": false, + "value": "\"server57.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable58", + "name": "sampleVariable58", + "properties": { + "creationTime": "2017-03-28T23:01:53.55+00:00", + "lastModifiedTime": "2017-03-28T23:01:53.55+00:00", + "isEncrypted": false, + "value": "\"server58.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable59", + "name": "sampleVariable59", + "properties": { + "creationTime": "2017-03-28T23:01:54.317+00:00", + "lastModifiedTime": "2017-03-28T23:01:54.317+00:00", + "isEncrypted": false, + "value": "\"server59.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable6", + "name": "sampleVariable6", + "properties": { + "creationTime": "2017-03-28T23:01:04.143+00:00", + "lastModifiedTime": "2017-03-28T23:01:04.143+00:00", + "isEncrypted": false, + "value": "\"server6.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable60", + "name": "sampleVariable60", + "properties": { + "creationTime": "2017-03-28T23:01:55.177+00:00", + "lastModifiedTime": "2017-03-28T23:01:55.177+00:00", + "isEncrypted": false, + "value": "\"server60.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable61", + "name": "sampleVariable61", + "properties": { + "creationTime": "2017-03-28T23:01:56.583+00:00", + "lastModifiedTime": "2017-03-28T23:01:56.583+00:00", + "isEncrypted": false, + "value": "\"server61.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable62", + "name": "sampleVariable62", + "properties": { + "creationTime": "2017-03-28T23:01:57.27+00:00", + "lastModifiedTime": "2017-03-28T23:01:57.27+00:00", + "isEncrypted": false, + "value": "\"server62.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable63", + "name": "sampleVariable63", + "properties": { + "creationTime": "2017-03-28T23:01:57.943+00:00", + "lastModifiedTime": "2017-03-28T23:01:57.943+00:00", + "isEncrypted": false, + "value": "\"server63.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable64", + "name": "sampleVariable64", + "properties": { + "creationTime": "2017-03-28T23:01:58.66+00:00", + "lastModifiedTime": "2017-03-28T23:01:58.66+00:00", + "isEncrypted": false, + "value": "\"server64.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable65", + "name": "sampleVariable65", + "properties": { + "creationTime": "2017-03-28T23:01:59.35+00:00", + "lastModifiedTime": "2017-03-28T23:01:59.35+00:00", + "isEncrypted": false, + "value": "\"server65.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable66", + "name": "sampleVariable66", + "properties": { + "creationTime": "2017-03-28T23:02:00.02+00:00", + "lastModifiedTime": "2017-03-28T23:02:00.02+00:00", + "isEncrypted": false, + "value": "\"server66.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable67", + "name": "sampleVariable67", + "properties": { + "creationTime": "2017-03-28T23:02:01.507+00:00", + "lastModifiedTime": "2017-03-28T23:02:01.507+00:00", + "isEncrypted": false, + "value": "\"server67.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable68", + "name": "sampleVariable68", + "properties": { + "creationTime": "2017-03-28T23:02:02.177+00:00", + "lastModifiedTime": "2017-03-28T23:02:02.177+00:00", + "isEncrypted": false, + "value": "\"server68.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable69", + "name": "sampleVariable69", + "properties": { + "creationTime": "2017-03-28T23:02:02.863+00:00", + "lastModifiedTime": "2017-03-28T23:02:02.863+00:00", + "isEncrypted": false, + "value": "\"server69.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable7", + "name": "sampleVariable7", + "properties": { + "creationTime": "2017-03-28T23:01:05.393+00:00", + "lastModifiedTime": "2017-03-28T23:01:05.393+00:00", + "isEncrypted": false, + "value": "\"server7.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable70", + "name": "sampleVariable70", + "properties": { + "creationTime": "2017-03-28T23:02:03.6+00:00", + "lastModifiedTime": "2017-03-28T23:02:03.6+00:00", + "isEncrypted": false, + "value": "\"server70.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable71", + "name": "sampleVariable71", + "properties": { + "creationTime": "2017-03-28T23:02:04.333+00:00", + "lastModifiedTime": "2017-03-28T23:02:04.333+00:00", + "isEncrypted": false, + "value": "\"server71.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable72", + "name": "sampleVariable72", + "properties": { + "creationTime": "2017-03-28T23:02:05.1+00:00", + "lastModifiedTime": "2017-03-28T23:02:05.1+00:00", + "isEncrypted": false, + "value": "\"server72.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable73", + "name": "sampleVariable73", + "properties": { + "creationTime": "2017-03-28T23:02:05.833+00:00", + "lastModifiedTime": "2017-03-28T23:02:05.833+00:00", + "isEncrypted": false, + "value": "\"server73.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable74", + "name": "sampleVariable74", + "properties": { + "creationTime": "2017-03-28T23:02:06.647+00:00", + "lastModifiedTime": "2017-03-28T23:02:06.647+00:00", + "isEncrypted": false, + "value": "\"server74.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable75", + "name": "sampleVariable75", + "properties": { + "creationTime": "2017-03-28T23:02:07.363+00:00", + "lastModifiedTime": "2017-03-28T23:02:07.363+00:00", + "isEncrypted": false, + "value": "\"server75.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable76", + "name": "sampleVariable76", + "properties": { + "creationTime": "2017-03-28T23:02:08.1+00:00", + "lastModifiedTime": "2017-03-28T23:02:08.1+00:00", + "isEncrypted": false, + "value": "\"server76.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable77", + "name": "sampleVariable77", + "properties": { + "creationTime": "2017-03-28T23:02:08.82+00:00", + "lastModifiedTime": "2017-03-28T23:02:08.82+00:00", + "isEncrypted": false, + "value": "\"server77.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable78", + "name": "sampleVariable78", + "properties": { + "creationTime": "2017-03-28T23:02:09.553+00:00", + "lastModifiedTime": "2017-03-28T23:02:09.553+00:00", + "isEncrypted": false, + "value": "\"server78.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable79", + "name": "sampleVariable79", + "properties": { + "creationTime": "2017-03-28T23:02:10.63+00:00", + "lastModifiedTime": "2017-03-28T23:02:10.63+00:00", + "isEncrypted": false, + "value": "\"server79.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable8", + "name": "sampleVariable8", + "properties": { + "creationTime": "2017-03-28T23:01:06.52+00:00", + "lastModifiedTime": "2017-03-28T23:01:06.52+00:00", + "isEncrypted": false, + "value": "\"server8.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable80", + "name": "sampleVariable80", + "properties": { + "creationTime": "2017-03-28T23:02:11.32+00:00", + "lastModifiedTime": "2017-03-28T23:02:11.32+00:00", + "isEncrypted": false, + "value": "\"server80.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable81", + "name": "sampleVariable81", + "properties": { + "creationTime": "2017-03-28T23:02:12.02+00:00", + "lastModifiedTime": "2017-03-28T23:02:12.02+00:00", + "isEncrypted": false, + "value": "\"server81.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable82", + "name": "sampleVariable82", + "properties": { + "creationTime": "2017-03-28T23:02:12.723+00:00", + "lastModifiedTime": "2017-03-28T23:02:12.723+00:00", + "isEncrypted": false, + "value": "\"server82.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable83", + "name": "sampleVariable83", + "properties": { + "creationTime": "2017-03-28T23:02:13.443+00:00", + "lastModifiedTime": "2017-03-28T23:02:13.443+00:00", + "isEncrypted": false, + "value": "\"server83.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable84", + "name": "sampleVariable84", + "properties": { + "creationTime": "2017-03-28T23:02:14.16+00:00", + "lastModifiedTime": "2017-03-28T23:02:14.16+00:00", + "isEncrypted": false, + "value": "\"server84.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable85", + "name": "sampleVariable85", + "properties": { + "creationTime": "2017-03-28T23:02:15.177+00:00", + "lastModifiedTime": "2017-03-28T23:02:15.177+00:00", + "isEncrypted": false, + "value": "\"server85.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable86", + "name": "sampleVariable86", + "properties": { + "creationTime": "2017-03-28T23:02:16.053+00:00", + "lastModifiedTime": "2017-03-28T23:02:16.053+00:00", + "isEncrypted": false, + "value": "\"server86.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable87", + "name": "sampleVariable87", + "properties": { + "creationTime": "2017-03-28T23:02:16.82+00:00", + "lastModifiedTime": "2017-03-28T23:02:16.82+00:00", + "isEncrypted": false, + "value": "\"server87.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable88", + "name": "sampleVariable88", + "properties": { + "creationTime": "2017-03-28T23:02:17.583+00:00", + "lastModifiedTime": "2017-03-28T23:02:17.583+00:00", + "isEncrypted": false, + "value": "\"server88.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable89", + "name": "sampleVariable89", + "properties": { + "creationTime": "2017-03-28T23:02:18.333+00:00", + "lastModifiedTime": "2017-03-28T23:02:18.333+00:00", + "isEncrypted": false, + "value": "\"server89.domain.com\"", + "description": null + } + } + ], + "nextLink": "https://management.azure.com:443/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables?api-version=2015-10-31&$skip=100" + } } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listVariables_Next100.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listVariables_Next100.json index 89476a45dc1f..3fea51ab2fb0 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listVariables_Next100.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listVariables_Next100.json @@ -8,129 +8,131 @@ }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable9", - "name": "sampleVariable9", - "properties": { - "creationTime": "2017-03-28T23:01:07.38+00:00", - "lastModifiedTime": "2017-03-28T23:01:07.38+00:00", - "isEncrypted": false, - "value": "\"server9.domain.com\"", - "description": null + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable9", + "name": "sampleVariable9", + "properties": { + "creationTime": "2017-03-28T23:01:07.38+00:00", + "lastModifiedTime": "2017-03-28T23:01:07.38+00:00", + "isEncrypted": false, + "value": "\"server9.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable90", + "name": "sampleVariable90", + "properties": { + "creationTime": "2017-03-28T23:02:19.147+00:00", + "lastModifiedTime": "2017-03-28T23:02:19.147+00:00", + "isEncrypted": false, + "value": "\"server90.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable91", + "name": "sampleVariable91", + "properties": { + "creationTime": "2017-03-28T23:02:20.257+00:00", + "lastModifiedTime": "2017-03-28T23:02:20.257+00:00", + "isEncrypted": false, + "value": "\"server91.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable92", + "name": "sampleVariable92", + "properties": { + "creationTime": "2017-03-28T23:02:21.037+00:00", + "lastModifiedTime": "2017-03-28T23:02:21.037+00:00", + "isEncrypted": false, + "value": "\"server92.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable93", + "name": "sampleVariable93", + "properties": { + "creationTime": "2017-03-28T23:02:21.803+00:00", + "lastModifiedTime": "2017-03-28T23:02:21.803+00:00", + "isEncrypted": false, + "value": "\"server93.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable94", + "name": "sampleVariable94", + "properties": { + "creationTime": "2017-03-28T23:02:22.583+00:00", + "lastModifiedTime": "2017-03-28T23:02:22.583+00:00", + "isEncrypted": false, + "value": "\"server94.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable95", + "name": "sampleVariable95", + "properties": { + "creationTime": "2017-03-28T23:02:23.333+00:00", + "lastModifiedTime": "2017-03-28T23:02:23.333+00:00", + "isEncrypted": false, + "value": "\"server95.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable96", + "name": "sampleVariable96", + "properties": { + "creationTime": "2017-03-28T23:02:24.163+00:00", + "lastModifiedTime": "2017-03-28T23:02:24.163+00:00", + "isEncrypted": false, + "value": "\"server96.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable97", + "name": "sampleVariable97", + "properties": { + "creationTime": "2017-03-28T23:02:24.973+00:00", + "lastModifiedTime": "2017-03-28T23:02:24.973+00:00", + "isEncrypted": false, + "value": "\"server97.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable98", + "name": "sampleVariable98", + "properties": { + "creationTime": "2017-03-28T23:02:25.757+00:00", + "lastModifiedTime": "2017-03-28T23:02:25.757+00:00", + "isEncrypted": false, + "value": "\"server98.domain.com\"", + "description": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable99", + "name": "sampleVariable99", + "properties": { + "creationTime": "2017-03-28T23:02:26.553+00:00", + "lastModifiedTime": "2017-03-28T23:02:26.553+00:00", + "isEncrypted": false, + "value": "\"server99.domain.com\"", + "description": null + } } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable90", - "name": "sampleVariable90", - "properties": { - "creationTime": "2017-03-28T23:02:19.147+00:00", - "lastModifiedTime": "2017-03-28T23:02:19.147+00:00", - "isEncrypted": false, - "value": "\"server90.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable91", - "name": "sampleVariable91", - "properties": { - "creationTime": "2017-03-28T23:02:20.257+00:00", - "lastModifiedTime": "2017-03-28T23:02:20.257+00:00", - "isEncrypted": false, - "value": "\"server91.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable92", - "name": "sampleVariable92", - "properties": { - "creationTime": "2017-03-28T23:02:21.037+00:00", - "lastModifiedTime": "2017-03-28T23:02:21.037+00:00", - "isEncrypted": false, - "value": "\"server92.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable93", - "name": "sampleVariable93", - "properties": { - "creationTime": "2017-03-28T23:02:21.803+00:00", - "lastModifiedTime": "2017-03-28T23:02:21.803+00:00", - "isEncrypted": false, - "value": "\"server93.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable94", - "name": "sampleVariable94", - "properties": { - "creationTime": "2017-03-28T23:02:22.583+00:00", - "lastModifiedTime": "2017-03-28T23:02:22.583+00:00", - "isEncrypted": false, - "value": "\"server94.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable95", - "name": "sampleVariable95", - "properties": { - "creationTime": "2017-03-28T23:02:23.333+00:00", - "lastModifiedTime": "2017-03-28T23:02:23.333+00:00", - "isEncrypted": false, - "value": "\"server95.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable96", - "name": "sampleVariable96", - "properties": { - "creationTime": "2017-03-28T23:02:24.163+00:00", - "lastModifiedTime": "2017-03-28T23:02:24.163+00:00", - "isEncrypted": false, - "value": "\"server96.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable97", - "name": "sampleVariable97", - "properties": { - "creationTime": "2017-03-28T23:02:24.973+00:00", - "lastModifiedTime": "2017-03-28T23:02:24.973+00:00", - "isEncrypted": false, - "value": "\"server97.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable98", - "name": "sampleVariable98", - "properties": { - "creationTime": "2017-03-28T23:02:25.757+00:00", - "lastModifiedTime": "2017-03-28T23:02:25.757+00:00", - "isEncrypted": false, - "value": "\"server98.domain.com\"", - "description": null - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable99", - "name": "sampleVariable99", - "properties": { - "creationTime": "2017-03-28T23:02:26.553+00:00", - "lastModifiedTime": "2017-03-28T23:02:26.553+00:00", - "isEncrypted": false, - "value": "\"server99.domain.com\"", - "description": null - } - } - ] + ] + } } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateRunbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateRunbook.json index 77cdb4398fa0..3feab4114a59 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateRunbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateRunbook.json @@ -16,29 +16,31 @@ }, "responses": { "200": { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial", - "name": "Get-AzureVMTutorial", - "type": "Microsoft.Automation/AutomationAccounts/Runbooks", - "location": "East US 2", - "tags": { - "tag01": "value01", - "tag02": "value02" - }, - "etag": "\"636265044994500000\"", - "properties": { - "description": "Updated Description of the Runbook", - "logVerbose": false, - "logProgress": true, - "logActivityTrace": 1, - "runbookType": "PowerShellWorkflow", - "parameters": {}, - "state": "Published", - "jobCount": 0, - "provisioningState": "Succeeded", - "outputTypes": [], - "creationTime": "2017-03-30T21:01:33.777+00:00", - "lastModifiedBy": "myEmaild@microsoft.com", - "lastModifiedTime": "2017-03-30T21:01:39.45+00:00" + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial", + "name": "Get-AzureVMTutorial", + "type": "Microsoft.Automation/AutomationAccounts/Runbooks", + "location": "East US 2", + "tags": { + "tag01": "value01", + "tag02": "value02" + }, + "etag": "\"636265044994500000\"", + "properties": { + "description": "Updated Description of the Runbook", + "logVerbose": false, + "logProgress": true, + "logActivityTrace": 1, + "runbookType": "PowerShellWorkflow", + "parameters": {}, + "state": "Published", + "jobCount": 0, + "provisioningState": "Succeeded", + "outputTypes": [], + "creationTime": "2017-03-30T21:01:33.777+00:00", + "lastModifiedBy": "myEmaild@microsoft.com", + "lastModifiedTime": "2017-03-30T21:01:39.45+00:00" + } } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listTestJobStreamsByJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listTestJobStreamsByJob.json index 255667e197e1..11f0b60454cc 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listTestJobStreamsByJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listTestJobStreamsByJob.json @@ -30,7 +30,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index 0b1d4a04781a..31b4b001db2f 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -193,6 +193,7 @@ 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-go - repo: azure-sdk-for-js @@ -260,3 +261,59 @@ generate-interface: 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)/Microsoft.Automation/stable/2015-10-31/account.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/certificate.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/connection.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/connectionType.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/credential.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/dscNode.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/hybridRunbookWorkerGroup.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/job.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/jobSchedule.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/linkedWorkspace.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/module.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/runbook.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/schedule.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/variable.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/webhook.json + - $(this-folder)/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfiguration.json + - $(this-folder)/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationRun.json + - $(this-folder)/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationMachineRun.json + - $(this-folder)/Microsoft.Automation/preview/2017-05-15-preview/sourceControl.json + - $(this-folder)/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJob.json + - $(this-folder)/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJobStreams.json + - $(this-folder)/Microsoft.Automation/preview/2017-05-15-preview/job.json + - $(this-folder)/Microsoft.Automation/stable/2015-10-31/watcher.json + - $(this-folder)/Microsoft.Automation/stable/2018-01-15/dscNode.json + - $(this-folder)/Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json + - $(this-folder)/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json + - $(this-folder)/Microsoft.Automation/stable/2018-01-15/dscNodeCounts.json + - $(this-folder)/Microsoft.Automation/stable/2018-06-30/runbook.json + - $(this-folder)/Microsoft.Automation/stable/2018-06-30/python2package.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/azsadmin/resource-manager/azurebridge/Microsoft.AzureBridge.Admin/preview/2016-01-01/examples/DownloadedProduct/Delete.json b/specification/azsadmin/resource-manager/azurebridge/Microsoft.AzureBridge.Admin/preview/2016-01-01/examples/DownloadedProduct/Delete.json index 69f2eae0405d..c7533bec0320 100644 --- a/specification/azsadmin/resource-manager/azurebridge/Microsoft.AzureBridge.Admin/preview/2016-01-01/examples/DownloadedProduct/Delete.json +++ b/specification/azsadmin/resource-manager/azurebridge/Microsoft.AzureBridge.Admin/preview/2016-01-01/examples/DownloadedProduct/Delete.json @@ -8,6 +8,9 @@ "productName": "Canonical.UbuntuServer1710-ARM.1.0.6" }, "responses": { + "200": { + "body": {} + }, "202": { "body": {} }, diff --git a/specification/azsadmin/resource-manager/azurebridge/Microsoft.AzureBridge.Admin/preview/2016-01-01/examples/Operations/List.json b/specification/azsadmin/resource-manager/azurebridge/Microsoft.AzureBridge.Admin/preview/2016-01-01/examples/Operations/List.json index 4b1fefacd40e..b6812d702a28 100644 --- a/specification/azsadmin/resource-manager/azurebridge/Microsoft.AzureBridge.Admin/preview/2016-01-01/examples/Operations/List.json +++ b/specification/azsadmin/resource-manager/azurebridge/Microsoft.AzureBridge.Admin/preview/2016-01-01/examples/Operations/List.json @@ -7,7 +7,7 @@ "200": { "body": { "value": [], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/azurebridge/Microsoft.AzureBridge.Admin/preview/2016-01-01/examples/Product/download.json b/specification/azsadmin/resource-manager/azurebridge/Microsoft.AzureBridge.Admin/preview/2016-01-01/examples/Product/download.json index 970a52c6f797..4f614095ac96 100644 --- a/specification/azsadmin/resource-manager/azurebridge/Microsoft.AzureBridge.Admin/preview/2016-01-01/examples/Product/download.json +++ b/specification/azsadmin/resource-manager/azurebridge/Microsoft.AzureBridge.Admin/preview/2016-01-01/examples/Product/download.json @@ -8,6 +8,7 @@ "productName": "Canonical.UbuntuServer1710-ARM.1.0.6" }, "responses": { + "200": {}, "202": {}, "404": {} } diff --git a/specification/azsadmin/resource-manager/azurebridge/readme.md b/specification/azsadmin/resource-manager/azurebridge/readme.md index 456a86096994..81167054852a 100644 --- a/specification/azsadmin/resource-manager/azurebridge/readme.md +++ b/specification/azsadmin/resource-manager/azurebridge/readme.md @@ -53,3 +53,31 @@ csharp: output-folder: $(csharp-sdks-folder)/Generated clear-output-folder: 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)/Microsoft.AzureBridge.Admin/preview/2016-01-01/AzureBridge.json + - $(this-folder)/Microsoft.AzureBridge.Admin/preview/2016-01-01/DownloadedProduct.json + - $(this-folder)/Microsoft.AzureBridge.Admin/preview/2016-01-01/Product.json + - $(this-folder)/Microsoft.AzureBridge.Admin/preview/2016-01-01/Activation.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/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/Backups.json b/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/Backups.json index dd53222fec97..81107ff2f113 100644 --- a/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/Backups.json +++ b/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/Backups.json @@ -99,6 +99,9 @@ "x-ms-examples": { "Restore a backup.": { "$ref": "./examples/Backups/Restore.json" + }, + "Restore a single role from backup.": { + "$ref": "./examples/Backups/SingleRepoRestore.json" } }, "description": "Restore a backup.", @@ -275,6 +278,10 @@ "RestoreOptions": { "description": "Properties for restore options.", "properties": { + "roleName": { + "description": "The Azure Stack role name for restore, set it to empty for all infrastructure role", + "type": "string" + }, "decryptionCertBase64": { "description": "The certificate file raw data in Base64 string. This should be the .pfx file with the private key.", "type": "string" diff --git a/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/examples/Backups/List.json b/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/examples/Backups/List.json index 0a441159be92..f92bb28761cb 100644 --- a/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/examples/Backups/List.json +++ b/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/examples/Backups/List.json @@ -83,7 +83,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/examples/Backups/SingleRepoRestore.json b/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/examples/Backups/SingleRepoRestore.json new file mode 100644 index 000000000000..bed97b033b62 --- /dev/null +++ b/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/examples/Backups/SingleRepoRestore.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "11111111-2222-3333-4444-555555555555", + "resourceGroupName": "System.local", + "location": "local", + "backup": "64e8625a-8dc0-49df-a195-932901b4be81", + "restoreOptions": { + "roleName": "fakerp", + "decryptionCertBase64": "decryptionCert", + "decryptionCertPassword": "decryptionCertPassword" + }, + "api-version": "2018-09-01" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/examples/Operations/List.json b/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/examples/Operations/List.json index 48addd8bd33e..6d38e835b558 100644 --- a/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/examples/Operations/List.json +++ b/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/preview/2018-09-01/examples/Operations/List.json @@ -45,7 +45,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/stable/2016-05-01/examples/Backups/List.json b/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/stable/2016-05-01/examples/Backups/List.json index c39b71a95c0c..e9a6530d6d79 100644 --- a/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/stable/2016-05-01/examples/Backups/List.json +++ b/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/stable/2016-05-01/examples/Backups/List.json @@ -79,7 +79,7 @@ } } ], - "nextLink": "" + "nextLink": null } }, "404": {} diff --git a/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/stable/2016-05-01/examples/Operations/List.json b/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/stable/2016-05-01/examples/Operations/List.json index 4abbdbfa2373..9a6f651b6097 100644 --- a/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/stable/2016-05-01/examples/Operations/List.json +++ b/specification/azsadmin/resource-manager/backup/Microsoft.Backup.Admin/stable/2016-05-01/examples/Operations/List.json @@ -8,7 +8,7 @@ "200": { "body": { "value": [], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/backup/readme.md b/specification/azsadmin/resource-manager/backup/readme.md index de653d4a36fe..75cdc00310dc 100644 --- a/specification/azsadmin/resource-manager/backup/readme.md +++ b/specification/azsadmin/resource-manager/backup/readme.md @@ -63,3 +63,33 @@ csharp: output-folder: $(csharp-sdks-folder)/Generated clear-output-folder: 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)/Microsoft.Backup.Admin/preview/2018-09-01/Backup.json + - $(this-folder)/Microsoft.Backup.Admin/preview/2018-09-01/BackupLocations.json + - $(this-folder)/Microsoft.Backup.Admin/preview/2018-09-01/Backups.json + - $(this-folder)/Microsoft.Backup.Admin/stable/2016-05-01/Backup.json + - $(this-folder)/Microsoft.Backup.Admin/stable/2016-05-01/BackupLocations.json + - $(this-folder)/Microsoft.Backup.Admin/stable/2016-05-01/Backups.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/azsadmin/resource-manager/commerce/readme.md b/specification/azsadmin/resource-manager/commerce/readme.md index 7ff7564c57ba..1676a911714f 100644 --- a/specification/azsadmin/resource-manager/commerce/readme.md +++ b/specification/azsadmin/resource-manager/commerce/readme.md @@ -60,3 +60,28 @@ csharp: output-folder: $(csharp-sdks-folder)/Generated clear-output-folder: 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)/Microsoft.Commerce.Admin/preview/2015-06-01-preview/Commerce.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/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2018-07-30-preview/examples/Disks/List.json b/specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2018-07-30-preview/examples/Disks/List.json index 01760cbad229..b6b10a6a5f6d 100644 --- a/specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2018-07-30-preview/examples/Disks/List.json +++ b/specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2018-07-30-preview/examples/Disks/List.json @@ -3,8 +3,8 @@ "subscriptionId": "04666444-56f0-4d4f-afc5-dbd6b134b084", "location": "redmond", "api-version": "2018-07-30-preview", - "start": "1", - "count": "100", + "start": 1, + "count": 100, "status": "Unattached" }, "responses": { diff --git a/specification/azsadmin/resource-manager/compute/readme.md b/specification/azsadmin/resource-manager/compute/readme.md index 922bc9bfc6ae..26cb9b4ef55a 100644 --- a/specification/azsadmin/resource-manager/compute/readme.md +++ b/specification/azsadmin/resource-manager/compute/readme.md @@ -55,3 +55,33 @@ csharp: output-folder: $(csharp-sdks-folder)/Generated clear-output-folder: 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)/Microsoft.Compute.Admin/preview/2015-12-01-preview/Compute.json + - $(this-folder)/Microsoft.Compute.Admin/preview/2015-12-01-preview/PlatformImages.json + - $(this-folder)/Microsoft.Compute.Admin/preview/2018-02-09/Quotas.json + - $(this-folder)/Microsoft.Compute.Admin/preview/2015-12-01-preview/VMExtensions.json + - $(this-folder)/Microsoft.Compute.Admin/preview/2018-07-30-preview/Disks.json + - $(this-folder)/Microsoft.Compute.Admin/preview/2018-07-30-preview/DiskMigrationJobs.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/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2016-05-01/examples/Operations/List.json b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2016-05-01/examples/Operations/List.json index a03c2463a34a..55dd671c6815 100644 --- a/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2016-05-01/examples/Operations/List.json +++ b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2016-05-01/examples/Operations/List.json @@ -4,115 +4,117 @@ }, "responses": { "200": { - "value": [ - { - "name": "Microsoft.Fabric.Admin/scaleUnits/ScaleIn", - "display": { - "provider": "Microsoft Fabric Resource Provider", - "resource": "Scale Unit", - "operation": "Add a Node to a Scale Unit", - "description": "Add a Node to a Scale Unit" + "body": { + "value": [ + { + "name": "Microsoft.Fabric.Admin/scaleUnits/ScaleIn", + "display": { + "provider": "Microsoft Fabric Resource Provider", + "resource": "Scale Unit", + "operation": "Add a Node to a Scale Unit", + "description": "Add a Node to a Scale Unit" + } + }, + { + "name": "Microsoft.Fabric.Admin/scaleUnitNodes/PowerOff", + "display": { + "provider": "Microsoft Fabric Resource Provider", + "resource": "Scale Unit Node", + "operation": "Power off Scale Unit Node", + "description": "Powers off a Scale Unit Node" + } + }, + { + "name": "Microsoft.Fabric.Admin/scaleUnitNodes/PowerOn", + "display": { + "provider": "Microsoft Fabric Resource Provider", + "resource": "Scale Unit Node", + "operation": "Power on Scale Unit Node", + "description": "Powers on a Scale Unit Node" + } + }, + { + "name": "Microsoft.Fabric.Admin/scaleUnitNodes/ShutDown", + "display": { + "provider": "Microsoft Fabric Resource Provider", + "resource": "Scale Unit Node", + "operation": "Shut down Scale Unit Node" + } + }, + { + "name": "Microsoft.Fabric.Admin/scaleUnitNodes/StartMaintenanceMode", + "display": { + "provider": "Microsoft Fabric Resource Provider", + "resource": "Scale Unit Node", + "operation": "Start maintenance Scale Unit Node", + "description": "Starts maintenance on a Scale Unit Node" + } + }, + { + "name": "Microsoft.Fabric.Admin/scaleUnitNodes/StopMaintenanceMode", + "display": { + "provider": "Microsoft Fabric Resource Provider", + "resource": "Scale Unit Node", + "operation": "Stop maintenance Scale Unit Node", + "description": "Stops maintenance on a Scale Unit Node" + } + }, + { + "name": "Microsoft.Fabric.Admin/scaleUnitNodes/Repair", + "display": { + "provider": "Microsoft Fabric Resource Provider", + "resource": "Scale Unit Node", + "operation": "Repair Scale Unit Node", + "description": "Repairs a Scale Unit Node" + } + }, + { + "name": "Microsoft.Fabric.Admin/infraRoleInstances/PowerOff", + "display": { + "provider": "Microsoft Fabric Resource Provider", + "resource": "Infrastructure Role Instance", + "operation": "Power off Infrastructure Role Instance", + "description": "Powers off an Infrastructure Role Instance" + } + }, + { + "name": "Microsoft.Fabric.Admin/infraRoleInstances/PowerOn", + "display": { + "provider": "Microsoft Fabric Resource Provider", + "resource": "Infrastructure Role Instance", + "operation": "Power on Infrastructure Role Instance", + "description": "Powers on an Infrastructure Role Instance" + } + }, + { + "name": "Microsoft.Fabric.Admin/infraRoleInstances/Shutdown", + "display": { + "provider": "Microsoft Fabric Resource Provider", + "resource": "Infrastructure Role Instance", + "operation": "Shutdown an Infrastructure Role Instance", + "description": "Shutdown an Infrastructure Role Instance" + } + }, + { + "name": "Microsoft.Fabric.Admin/infraRoleInstances/Reboot", + "display": { + "provider": "Microsoft Fabric Resource Provider", + "resource": "Infrastructure Role Instance", + "operation": "Reboot an Infrastructure Role Instance", + "description": "Reboot an Infrastructure Role Instance" + } + }, + { + "name": "Microsoft.Fabric.Admin/ipPools/action", + "display": { + "provider": "Microsoft Fabric Resource Provider", + "resource": "IP Pool", + "operation": "Create or update IP Pool", + "description": "Creates or updates an IP Pool" + } } - }, - { - "name": "Microsoft.Fabric.Admin/scaleUnitNodes/PowerOff", - "display": { - "provider": "Microsoft Fabric Resource Provider", - "resource": "Scale Unit Node", - "operation": "Power off Scale Unit Node", - "description": "Powers off a Scale Unit Node" - } - }, - { - "name": "Microsoft.Fabric.Admin/scaleUnitNodes/PowerOn", - "display": { - "provider": "Microsoft Fabric Resource Provider", - "resource": "Scale Unit Node", - "operation": "Power on Scale Unit Node", - "description": "Powers on a Scale Unit Node" - } - }, - { - "name": "Microsoft.Fabric.Admin/scaleUnitNodes/ShutDown", - "display": { - "provider": "Microsoft Fabric Resource Provider", - "resource": "Scale Unit Node", - "operation": "Shut down Scale Unit Node" - } - }, - { - "name": "Microsoft.Fabric.Admin/scaleUnitNodes/StartMaintenanceMode", - "display": { - "provider": "Microsoft Fabric Resource Provider", - "resource": "Scale Unit Node", - "operation": "Start maintenance Scale Unit Node", - "description": "Starts maintenance on a Scale Unit Node" - } - }, - { - "name": "Microsoft.Fabric.Admin/scaleUnitNodes/StopMaintenanceMode", - "display": { - "provider": "Microsoft Fabric Resource Provider", - "resource": "Scale Unit Node", - "operation": "Stop maintenance Scale Unit Node", - "description": "Stops maintenance on a Scale Unit Node" - } - }, - { - "name": "Microsoft.Fabric.Admin/scaleUnitNodes/Repair", - "display": { - "provider": "Microsoft Fabric Resource Provider", - "resource": "Scale Unit Node", - "operation": "Repair Scale Unit Node", - "description": "Repairs a Scale Unit Node" - } - }, - { - "name": "Microsoft.Fabric.Admin/infraRoleInstances/PowerOff", - "display": { - "provider": "Microsoft Fabric Resource Provider", - "resource": "Infrastructure Role Instance", - "operation": "Power off Infrastructure Role Instance", - "description": "Powers off an Infrastructure Role Instance" - } - }, - { - "name": "Microsoft.Fabric.Admin/infraRoleInstances/PowerOn", - "display": { - "provider": "Microsoft Fabric Resource Provider", - "resource": "Infrastructure Role Instance", - "operation": "Power on Infrastructure Role Instance", - "description": "Powers on an Infrastructure Role Instance" - } - }, - { - "name": "Microsoft.Fabric.Admin/infraRoleInstances/Shutdown", - "display": { - "provider": "Microsoft Fabric Resource Provider", - "resource": "Infrastructure Role Instance", - "operation": "Shutdown an Infrastructure Role Instance", - "description": "Shutdown an Infrastructure Role Instance" - } - }, - { - "name": "Microsoft.Fabric.Admin/infraRoleInstances/Reboot", - "display": { - "provider": "Microsoft Fabric Resource Provider", - "resource": "Infrastructure Role Instance", - "operation": "Reboot an Infrastructure Role Instance", - "description": "Reboot an Infrastructure Role Instance" - } - }, - { - "name": "Microsoft.Fabric.Admin/ipPools/action", - "display": { - "provider": "Microsoft Fabric Resource Provider", - "resource": "IP Pool", - "operation": "Create or update IP Pool", - "description": "Creates or updates an IP Pool" - } - } - ] + ] + } } } } diff --git a/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/Drive.json b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/Drive.json new file mode 100644 index 000000000000..66248bd6bff5 --- /dev/null +++ b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/Drive.json @@ -0,0 +1,273 @@ +{ + "swagger": "2.0", + "info": { + "description": "Drive operation endpoints and objects.", + "title": "FabricAdminClient", + "version": "2019-05-01" + }, + "host": "adminmanagement.local.azurestack.external", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnits/{scaleUnit}/storageSubSystems/{storageSubSystem}/drives/{drive}": { + "get": { + "x-ms-examples": { + "Return the requested a storage drive.": { + "$ref": "./examples/Drive/Get.json" + } + }, + "tags": [ + "Drives" + ], + "description": "Return the requested a storage drive.", + "operationId": "Drives_Get", + "parameters": [ + { + "$ref": "../2016-05-01/Fabric.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../2016-05-01/Fabric.json#/parameters/ResourceGroupParameter" + }, + { + "$ref": "../2016-05-01/Fabric.json#/parameters/LocationParameter" + }, + { + "$ref": "../2016-05-01/ScaleUnit.json#/parameters/ScaleUnitParameter" + }, + { + "$ref": "../2018-10-01/StorageSubSystem.json#/parameters/StorageSubSystemParameter" + }, + { + "$ref": "#/parameters/DriveParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Drive" + } + }, + "404": { + "description": "NOT FOUND" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnits/{scaleUnit}/storageSubSystems/{storageSubSystem}/drives": { + "get": { + "x-ms-examples": { + "Returns a list of all storage drives at a location.": { + "$ref": "./examples/Drive/List.json" + } + }, + "tags": [ + "Drives" + ], + "description": "Returns a list of all storage drives at a location.", + "operationId": "Drives_List", + "parameters": [ + { + "$ref": "../2016-05-01/Fabric.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../2016-05-01/Fabric.json#/parameters/ResourceGroupParameter" + }, + { + "$ref": "../2016-05-01/Fabric.json#/parameters/LocationParameter" + }, + { + "$ref": "../2016-05-01/ScaleUnit.json#/parameters/ScaleUnitParameter" + }, + { + "$ref": "../2018-10-01/StorageSubSystem.json#/parameters/StorageSubSystemParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "../2016-05-01/Fabric.json#/parameters/FilterParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DriveList" + } + }, + "404": { + "description": "NOT FOUND" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Drive" + } + } + }, + "definitions": { + "Drive": { + "description": "Representation of a drive resource.", + "type": "object", + "properties": { + "properties": { + "description": "Properties of a drive.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DriveModel" + } + }, + "allOf": [ + { + "$ref": "../2016-05-01/Fabric.json#/definitions/Resource" + } + ] + }, + "DriveModel": { + "description": "Properties of a drive.", + "type": "object", + "properties": { + "storageNode": { + "description": "Node that the drive is physically connected.", + "type": "string", + "readOnly": true + }, + "serialNumber": { + "description": "Serial number of the drive.", + "type": "string", + "readOnly": true + }, + "healthStatus": { + "description": "Health status of the drive.", + "type": "string", + "readOnly": true + }, + "operationalStatus": { + "description": "Operational status of the drive.", + "type": "string", + "readOnly": true + }, + "usage": { + "description": "Intended usage of the drive.", + "type": "string", + "readOnly": true + }, + "physicalLocation": { + "description": "Indicate where the hardware is located.", + "type": "string", + "readOnly": true + }, + "model": { + "description": "Model of the drive.", + "type": "string", + "readOnly": true + }, + "firmwareVersion": { + "description": "The firmware version of the drive.", + "type": "string", + "readOnly": true + }, + "isIndicationEnabled": { + "description": "Indicate whether the drive's identification LEDs are active or not.", + "type": "boolean", + "readOnly": true + }, + "manufacturer": { + "description": "The name of the drive's manufacturer.", + "type": "string", + "readOnly": true + }, + "storagePool": { + "description": "The storage pool where the drive is located.", + "type": "string", + "readOnly": true + }, + "mediaType": { + "description": "Media type of the drive.", + "type": "string", + "readOnly": true + }, + "capacityGB": { + "description": "Total capacity in GB of the drive.", + "format": "int32", + "type": "integer", + "readOnly": true + }, + "description": { + "description": "Detailed description for HealthStatus/OperationalStatus. Empty if HealthStatus/OperationalStatus is Healthy/Ok.", + "type": "string", + "readOnly": true + }, + "action": { + "description": "Detailed recommended action for HealthStatus/OperationalStatus. Empty if HealthStatus/OperationalStatus is Healthy/Ok.", + "type": "string", + "readOnly": true + } + } + }, + "DriveList": { + "description": "Pageable list of storage drives.", + "type": "object", + "properties": { + "value": { + "description": "List of storage drives.", + "type": "array", + "items": { + "$ref": "#/definitions/Drive" + } + }, + "nextLink": { + "description": "URI to the next page.", + "type": "string" + } + } + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "Client API Version.", + "required": true, + "type": "string", + "default": "2019-05-01" + }, + "DriveParameter": { + "name": "drive", + "description": "Name of the storage drive.", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/Volume.json b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/Volume.json new file mode 100644 index 000000000000..5b9034456929 --- /dev/null +++ b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/Volume.json @@ -0,0 +1,239 @@ +{ + "swagger": "2.0", + "info": { + "description": "Volume operation endpoints and objects.", + "title": "FabricAdminClient", + "version": "2019-05-01" + }, + "host": "adminmanagement.local.azurestack.external", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnits/{scaleUnit}/storageSubSystems/{storageSubSystem}/volumes/{volume}": { + "get": { + "x-ms-examples": { + "Return the requested a storage volume.": { + "$ref": "./examples/Volume/Get.json" + } + }, + "tags": [ + "Volumes" + ], + "description": "Return the requested a storage volume.", + "operationId": "Volumes_Get", + "parameters": [ + { + "$ref": "../2016-05-01/Fabric.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../2016-05-01/Fabric.json#/parameters/ResourceGroupParameter" + }, + { + "$ref": "../2016-05-01/Fabric.json#/parameters/LocationParameter" + }, + { + "$ref": "../2016-05-01/ScaleUnit.json#/parameters/ScaleUnitParameter" + }, + { + "$ref": "../2018-10-01/StorageSubSystem.json#/parameters/StorageSubSystemParameter" + }, + { + "$ref": "#/parameters/VolumeParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Volume" + } + }, + "404": { + "description": "NOT FOUND" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnits/{scaleUnit}/storageSubSystems/{storageSubSystem}/volumes": { + "get": { + "x-ms-examples": { + "Returns a list of all storage volumes at a location.": { + "$ref": "./examples/Volume/List.json" + } + }, + "tags": [ + "Volumes" + ], + "description": "Returns a list of all storage volumes at a location.", + "operationId": "Volumes_List", + "parameters": [ + { + "$ref": "../2016-05-01/Fabric.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../2016-05-01/Fabric.json#/parameters/ResourceGroupParameter" + }, + { + "$ref": "../2016-05-01/Fabric.json#/parameters/LocationParameter" + }, + { + "$ref": "../2016-05-01/ScaleUnit.json#/parameters/ScaleUnitParameter" + }, + { + "$ref": "../2018-10-01/StorageSubSystem.json#/parameters/StorageSubSystemParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "../2016-05-01/Fabric.json#/parameters/FilterParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VolumeList" + } + }, + "404": { + "description": "NOT FOUND" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Volume" + } + } + }, + "definitions": { + "Volume": { + "description": "Representation of a volume resource.", + "type": "object", + "properties": { + "properties": { + "description": "Properties of a volume.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/VolumeModel" + } + }, + "allOf": [ + { + "$ref": "../2016-05-01/Fabric.json#/definitions/Resource" + } + ] + }, + "VolumeModel": { + "description": "Properties of a volume.", + "type": "object", + "properties": { + "totalCapacityGB": { + "description": "Total capacity in GB of the volume.", + "format": "int32", + "type": "integer", + "readOnly": true + }, + "remainingCapacityGB": { + "description": "Remaining capacity in GB of the volume.", + "format": "int32", + "type": "integer", + "readOnly": true + }, + "healthStatus": { + "description": "Health status of the volume.", + "type": "string", + "readOnly": true + }, + "operationalStatus": { + "description": "Operational status of the volume.", + "type": "string", + "readOnly": true + }, + "repairStatus": { + "description": "Repair status of the volume. Empty if no repair job running, something like 'Running, 90%' when repairing.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "Detailed description for HealthStatus/OperationalStatus. Empty if HealthStatus/OperationalStatus is Healthy/Ok.", + "type": "string", + "readOnly": true + }, + "action": { + "description": "Detailed recommended action for HealthStatus/OperationalStatus. Empty if HealthStatus/OperationalStatus is Healthy/Ok.", + "type": "string", + "readOnly": true + }, + "volumeLabel": { + "description": "Volume label.", + "type": "string", + "readOnly": true + } + } + }, + "VolumeList": { + "description": "Pageable list of storage volumes.", + "type": "object", + "properties": { + "value": { + "description": "List of storage volumes.", + "type": "array", + "items": { + "$ref": "#/definitions/Volume" + } + }, + "nextLink": { + "description": "URI to the next page.", + "type": "string" + } + } + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "Client API Version.", + "required": true, + "type": "string", + "default": "2019-05-01" + }, + "VolumeParameter": { + "name": "volume", + "description": "Name of the storage volume.", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/examples/Drive/Get.json b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/examples/Drive/Get.json new file mode 100644 index 000000000000..e64a1ee5ce59 --- /dev/null +++ b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/examples/Drive/Get.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "72526b2b-4b61-4700-8f0c-7bb7ae9b6a2d", + "resourceGroupName": "System.redmond", + "location": "redmond", + "scaleUnit": "s-cluster", + "storageSubSystem": "s-cluster.v.masd.stbtest.microsoft.com", + "drive": "{bc489b66-faa7-41f0-bee7-bcba258f10fb}:PD:{0801e862-5bee-a657-7b19-6d1504372ecc}" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/72526b2b-4b61-4700-8f0c-7bb7ae9b6a2d/resourceGroups/System.redmond/providers/Microsoft.Fabric.Admin/fabricLocations/redmond/scaleUnits/s-cluster/storageSubSystems/s-cluster.v.masd.stbtest.microsoft.com/drives/{bc489b66-faa7-41f0-bee7-bcba258f10fb}:PD:{0801e862-5bee-a657-7b19-6d1504372ecc}", + "name": "redmond/s-cluster/s-cluster.v.masd.stbtest.microsoft.com/{bc489b66-faa7-41f0-bee7-bcba258f10fb}:PD:{0801e862-5bee-a657-7b19-6d1504372ecc}", + "type": "Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives", + "location": "redmond", + "tags": {}, + "properties": { + "storageNode": "redmond/v-Host4", + "serialNumber": "4GV095AX", + "healthStatus": "Healthy", + "operationalStatus": "OK", + "usage": "Capacity", + "physicalLocation": "Integrated : Adapter 1 : Port 0 : Target 0 : LUN 4", + "model": "Virtual Disk", + "firmwareVersion": "1.0", + "isIndicationEnabled": false, + "manufacturer": "Msft", + "storagePool": "SU1_Pool", + "mediaType": "HDD", + "capacityGB": 1024, + "description": "", + "action": "" + } + } + }, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/examples/Drive/List.json b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/examples/Drive/List.json new file mode 100644 index 000000000000..f4b50c143471 --- /dev/null +++ b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/examples/Drive/List.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "72526b2b-4b61-4700-8f0c-7bb7ae9b6a2d", + "resourceGroupName": "System.redmond", + "location": "redmond", + "scaleUnit": "s-cluster", + "storageSubSystem": "s-cluster.v.masd.stbtest.microsoft.com" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/72526b2b-4b61-4700-8f0c-7bb7ae9b6a2d/resourceGroups/System.redmond/providers/Microsoft.Fabric.Admin/fabricLocations/redmond/scaleUnits/s-cluster/storageSubSystems/s-cluster.v.masd.stbtest.microsoft.com/drives/{bc489b66-faa7-41f0-bee7-bcba258f10fb}:PD:{0801e862-5bee-a657-7b19-6d1504372ecc}", + "name": "redmond/s-cluster/s-cluster.v.masd.stbtest.microsoft.com/{bc489b66-faa7-41f0-bee7-bcba258f10fb}:PD:{0801e862-5bee-a657-7b19-6d1504372ecc}", + "type": "Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/drives", + "location": "redmond", + "tags": {}, + "properties": { + "storageNode": "redmond/v-Host4", + "serialNumber": "4GV095AX", + "healthStatus": "Healthy", + "operationalStatus": "OK", + "usage": "Capacity", + "physicalLocation": "Integrated : Adapter 1 : Port 0 : Target 0 : LUN 4", + "model": "Virtual Disk", + "firmwareVersion": "1.0", + "isIndicationEnabled": false, + "manufacturer": "Msft", + "storagePool": "SU1_Pool", + "mediaType": "HDD", + "capacityGB": 1024, + "description": "", + "action": "" + } + } + ] + } + }, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/examples/Volume/Get.json b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/examples/Volume/Get.json new file mode 100644 index 000000000000..5fa5af5196be --- /dev/null +++ b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/examples/Volume/Get.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "72526b2b-4b61-4700-8f0c-7bb7ae9b6a2d", + "resourceGroupName": "System.redmond", + "location": "redmond", + "scaleUnit": "s-cluster", + "storageSubSystem": "s-cluster.v.masd.stbtest.microsoft.com", + "volume": "48f356d4-362d-49cb-a021-fafffbe0e8ad" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/72526b2b-4b61-4700-8f0c-7bb7ae9b6a2d/resourceGroups/System.redmond/providers/Microsoft.Fabric.Admin/fabricLocations/redmond/scaleUnits/s-cluster/storageSubSystems/s-cluster.v.masd.stbtest.microsoft.com/volumes/48f356d4-362d-49cb-a021-fafffbe0e8ad", + "name": "redmond/s-cluster/s-cluster.v.masd.stbtest.microsoft.com/48f356d4-362d-49cb-a021-fafffbe0e8ad", + "type": "Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/volumes", + "location": "redmond", + "tags": {}, + "properties": { + "totalCapacityGB": 1375, + "remainingCapacityGB": 1317, + "healthStatus": "Healthy", + "operationalStatus": "OK", + "repairStatus": "", + "description": "", + "action": "", + "volumeLabel": "ObjStore_1" + } + } + }, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/examples/Volume/List.json b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/examples/Volume/List.json new file mode 100644 index 000000000000..aa0858da41da --- /dev/null +++ b/specification/azsadmin/resource-manager/fabric/Microsoft.Fabric.Admin/preview/2019-05-01/examples/Volume/List.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "72526b2b-4b61-4700-8f0c-7bb7ae9b6a2d", + "resourceGroupName": "System.redmond", + "location": "redmond", + "scaleUnit": "s-cluster", + "storageSubSystem": "s-cluster.v.masd.stbtest.microsoft.com" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/72526b2b-4b61-4700-8f0c-7bb7ae9b6a2d/resourceGroups/System.redmond/providers/Microsoft.Fabric.Admin/fabricLocations/redmond/scaleUnits/s-cluster/storageSubSystems/s-cluster.v.masd.stbtest.microsoft.com/volumes/48f356d4-362d-49cb-a021-fafffbe0e8ad", + "name": "redmond/s-cluster/s-cluster.v.masd.stbtest.microsoft.com/48f356d4-362d-49cb-a021-fafffbe0e8ad", + "type": "Microsoft.Fabric.Admin/fabricLocations/scaleUnits/storageSubSystems/volumes", + "location": "redmond", + "tags": {}, + "properties": { + "totalCapacityGB": 1375, + "remainingCapacityGB": 1317, + "healthStatus": "Healthy", + "operationalStatus": "OK", + "repairStatus": "", + "description": "", + "action": "", + "volumeLabel": "ObjStore_1" + } + } + ] + } + }, + "404": {} + } +} diff --git a/specification/azsadmin/resource-manager/fabric/readme.md b/specification/azsadmin/resource-manager/fabric/readme.md index 3fb1723bbc71..5d8cf9d15d0d 100644 --- a/specification/azsadmin/resource-manager/fabric/readme.md +++ b/specification/azsadmin/resource-manager/fabric/readme.md @@ -24,7 +24,7 @@ These are the global settings for the Fabric API. title: FabricAdminClient description: Fabric Admin Client openapi-type: arm -tag: package-2016-05-01 +tag: package-2019-05-01 ``` ### Tag: package-2016-05-01 @@ -87,6 +87,35 @@ input-file: - "Microsoft.Fabric.Admin/preview/2018-10-01/Volume.json" ``` +### Tag: package-2019-05-01 + +These settings apply only when `--tag=package-2019-05-01` is specified on the command line. + +``` yaml $(tag) == 'package-2019-05-01' +input-file: + - "Microsoft.Fabric.Admin/preview/2016-05-01/ApplicationOperationResults.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/ComputeOperationResults.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/Fabric.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/EdgeGateway.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/EdgeGatewayPool.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/FabricLocation.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/FileShare.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/InfraRole.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/InfraRoleInstance.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/IpPool.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/LogicalNetwork.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/LogicalSubnet.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/MacAddressPool.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/NetworkOperationResults.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/ScaleUnit.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/ScaleUnitNode.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/SlbMuxInstance.json" + - "Microsoft.Fabric.Admin/preview/2016-05-01/StorageOperationResults.json" + - "Microsoft.Fabric.Admin/preview/2018-10-01/StorageSubSystem.json" + - "Microsoft.Fabric.Admin/preview/2019-05-01/Drive.json" + - "Microsoft.Fabric.Admin/preview/2019-05-01/Volume.json" +``` + --- # Code Generation @@ -104,3 +133,53 @@ csharp: output-folder: $(csharp-sdks-folder)/Generated clear-output-folder: 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)/Microsoft.Fabric.Admin/preview/2016-05-01/ApplicationOperationResults.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/ComputeOperationResults.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/Fabric.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/EdgeGateway.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/EdgeGatewayPool.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/FabricLocation.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/FileShare.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/InfraRole.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/InfraRoleInstance.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/IpPool.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/LogicalNetwork.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/StoragePool.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/StorageSystem.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/Volume.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/LogicalSubnet.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/MacAddressPool.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/NetworkOperationResults.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/ScaleUnit.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/ScaleUnitNode.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/SlbMuxInstance.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/StorageOperationResults.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2018-10-01/Drive.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2018-10-01/StorageSubSystem.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2018-10-01/Volume.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2019-05-01/Drive.json + - $(this-folder)/Microsoft.Fabric.Admin/preview/2019-05-01/Volume.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/azsadmin/resource-manager/gallery/readme.md b/specification/azsadmin/resource-manager/gallery/readme.md index e2b4db7e06fe..cf5af2054911 100644 --- a/specification/azsadmin/resource-manager/gallery/readme.md +++ b/specification/azsadmin/resource-manager/gallery/readme.md @@ -51,3 +51,29 @@ csharp: output-folder: $(csharp-sdks-folder)/Generated clear-output-folder: 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)/Microsoft.Gallery.Admin/preview/2015-04-01/Gallery.json + - $(this-folder)/Microsoft.Gallery.Admin/preview/2015-04-01/GalleryItem.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/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Alert/List.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Alert/List.json index da2a5dda47b4..cf5e82c3547b 100644 --- a/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Alert/List.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Alert/List.json @@ -128,7 +128,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Operations/List.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Operations/List.json index 25fbf1a280c8..4a688f8f5c81 100644 --- a/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Operations/List.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Operations/List.json @@ -14,7 +14,7 @@ "200": { "body": { "value": [], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/RegionHealth/List.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/RegionHealth/List.json index c6950f8f3b70..69fca95d5472 100644 --- a/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/RegionHealth/List.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/RegionHealth/List.json @@ -69,7 +69,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ResourceHealth/List.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ResourceHealth/List.json index 600e5ac5ebfb..92e38715df13 100644 --- a/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ResourceHealth/List.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ResourceHealth/List.json @@ -899,7 +899,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ServiceHealth/List.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ServiceHealth/List.json index 386e7b338000..4c7d777c26ea 100644 --- a/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ServiceHealth/List.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ServiceHealth/List.json @@ -150,7 +150,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/infrastructureinsights/readme.md b/specification/azsadmin/resource-manager/infrastructureinsights/readme.md index ee813a7c173d..27c9a298d00f 100644 --- a/specification/azsadmin/resource-manager/infrastructureinsights/readme.md +++ b/specification/azsadmin/resource-manager/infrastructureinsights/readme.md @@ -59,3 +59,32 @@ csharp: output-folder: $(csharp-sdks-folder)/Generated clear-output-folder: 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)/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/InfrastructureInsights.json + - $(this-folder)/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/Alert.json + - $(this-folder)/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/RegionHealth.json + - $(this-folder)/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/ResourceHealth.json + - $(this-folder)/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/ServiceHealth.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/azsadmin/resource-manager/keyvault/Microsoft.KeyVault.Admin/preview/2017-02-01-preview/KeyVault.json b/specification/azsadmin/resource-manager/keyvault/Microsoft.KeyVault.Admin/preview/2017-02-01-preview/KeyVault.json index 692f7779bb29..4a2e7c4b2c11 100644 --- a/specification/azsadmin/resource-manager/keyvault/Microsoft.KeyVault.Admin/preview/2017-02-01-preview/KeyVault.json +++ b/specification/azsadmin/resource-manager/keyvault/Microsoft.KeyVault.Admin/preview/2017-02-01-preview/KeyVault.json @@ -77,7 +77,7 @@ "type": "string" }, "description": { - "description": "The localized friendly description for the operation, as it should be shown to the user. It should be thorough, yet concise � it will be used in tool tips and detailed views.", + "description": "The localized friendly description for the operation, as it should be shown to the user. It should be thorough, yet concise it will be used in tool tips and detailed views.", "type": "string" } } diff --git a/specification/azsadmin/resource-manager/keyvault/readme.md b/specification/azsadmin/resource-manager/keyvault/readme.md index 3303ae3896f9..a1804bffd6a2 100644 --- a/specification/azsadmin/resource-manager/keyvault/readme.md +++ b/specification/azsadmin/resource-manager/keyvault/readme.md @@ -51,3 +51,29 @@ csharp: output-folder: $(csharp-sdks-folder)/Generated clear-output-folder: 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)/Microsoft.KeyVault.Admin/preview/2017-02-01-preview/KeyVault.json + - $(this-folder)/Microsoft.KeyVault.Admin/preview/2017-02-01-preview/Quotas.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/azsadmin/resource-manager/network/readme.md b/specification/azsadmin/resource-manager/network/readme.md index bd0f93efb0d4..82e85487c204 100644 --- a/specification/azsadmin/resource-manager/network/readme.md +++ b/specification/azsadmin/resource-manager/network/readme.md @@ -57,3 +57,32 @@ csharp: output-folder: $(csharp-sdks-folder)/Generated clear-output-folder: 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)/Microsoft.Network.Admin/preview/2015-06-15/Network.json + - $(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/LoadBalancers.json + - $(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/PublicIpAddresses.json + - $(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/Quotas.json + - $(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/VirtualNetworks.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/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2015-12-01/examples/Containers/List.json b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2015-12-01/examples/Containers/List.json index 0885759e4c3a..1cd17ea41735 100644 --- a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2015-12-01/examples/Containers/List.json +++ b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2015-12-01/examples/Containers/List.json @@ -5,7 +5,7 @@ "farmId": "3cf03497-c44a-4e51-a56f-3987d88c70af", "shareName": "||SU1FileServer.azurestack.local|SU1_ObjStore", "Intent": "Migration", - "StartIndex": "0", + "StartIndex": 0, "MaxCount": 1000, "api-version": "2015-12-01-preview" }, diff --git a/specification/azsadmin/resource-manager/storage/readme.md b/specification/azsadmin/resource-manager/storage/readme.md index 6947d0cd7509..41e4e0d1831e 100644 --- a/specification/azsadmin/resource-manager/storage/readme.md +++ b/specification/azsadmin/resource-manager/storage/readme.md @@ -62,3 +62,37 @@ csharp: output-folder: $(csharp-sdks-folder)/Generated clear-output-folder: 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)/Microsoft.Storage.Admin/preview/2015-12-01/storage.json + - $(this-folder)/Microsoft.Storage.Admin/preview/2015-12-01/acquisitions.json + - $(this-folder)/Microsoft.Storage.Admin/preview/2015-12-01/blobServices.json + - $(this-folder)/Microsoft.Storage.Admin/preview/2015-12-01/containers.json + - $(this-folder)/Microsoft.Storage.Admin/preview/2015-12-01/farms.json + - $(this-folder)/Microsoft.Storage.Admin/preview/2015-12-01/queueServices.json + - $(this-folder)/Microsoft.Storage.Admin/preview/2015-12-01/quotas.json + - $(this-folder)/Microsoft.Storage.Admin/preview/2015-12-01/shares.json + - $(this-folder)/Microsoft.Storage.Admin/preview/2015-12-01/storageaccounts.json + - $(this-folder)/Microsoft.Storage.Admin/preview/2015-12-01/tableServices.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/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Offer/MetricDefinitions.json b/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Offer/MetricDefinitions.json index 9e5552523ea0..e85135d52a37 100644 --- a/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Offer/MetricDefinitions.json +++ b/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Offer/MetricDefinitions.json @@ -10,7 +10,7 @@ "200": { "body": { "value": [], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Offer/Metrics.json b/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Offer/Metrics.json index 9e5552523ea0..e85135d52a37 100644 --- a/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Offer/Metrics.json +++ b/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Offer/Metrics.json @@ -10,7 +10,7 @@ "200": { "body": { "value": [], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Plan/MetricDefinitions.json b/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Plan/MetricDefinitions.json index 6f486f4b8db4..6b32010049c0 100644 --- a/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Plan/MetricDefinitions.json +++ b/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Plan/MetricDefinitions.json @@ -10,7 +10,7 @@ "200": { "body": { "value": [], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Plan/Metrics.json b/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Plan/Metrics.json index 6f486f4b8db4..6b32010049c0 100644 --- a/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Plan/Metrics.json +++ b/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Plan/Metrics.json @@ -10,7 +10,7 @@ "200": { "body": { "value": [], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Quota/Create.json b/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Quota/Create.json index 5fefc18a98e2..fa4994331375 100644 --- a/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Quota/Create.json +++ b/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Quota/Create.json @@ -13,7 +13,7 @@ "200": { "body": { "value": [], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Quota/Delete.json b/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Quota/Delete.json index 5fefc18a98e2..fa4994331375 100644 --- a/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Quota/Delete.json +++ b/specification/azsadmin/resource-manager/subscriptions/Microsoft.Subscriptions.Admin/preview/2015-11-01/examples/Quota/Delete.json @@ -13,7 +13,7 @@ "200": { "body": { "value": [], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/subscriptions/readme.md b/specification/azsadmin/resource-manager/subscriptions/readme.md index ad0fa2ddda56..b6d75aaad964 100644 --- a/specification/azsadmin/resource-manager/subscriptions/readme.md +++ b/specification/azsadmin/resource-manager/subscriptions/readme.md @@ -98,4 +98,38 @@ csharp: payload-flattening-threshold: 1 output-folder: $(csharp-sdks-folder)/Generated clear-output-folder: true -``` \ No newline at end of file +``` +## 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.Subscriptions.Admin/preview/2015-11-01/Subscriptions.json + - $(this-folder)/Microsoft.Subscriptions.Admin/preview/2015-11-01/AcquiredPlan.json + - $(this-folder)/Microsoft.Subscriptions.Admin/preview/2015-11-01/DelegatedProvider.json + - $(this-folder)/Microsoft.Subscriptions.Admin/preview/2015-11-01/DelegatedProviderOffer.json + - $(this-folder)/Microsoft.Subscriptions.Admin/preview/2015-11-01/DirectoryTenant.json + - $(this-folder)/Microsoft.Subscriptions.Admin/preview/2015-11-01/Location.json + - $(this-folder)/Microsoft.Subscriptions.Admin/preview/2015-11-01/Manifest.json + - $(this-folder)/Microsoft.Subscriptions.Admin/preview/2015-11-01/Offer.json + - $(this-folder)/Microsoft.Subscriptions.Admin/preview/2015-11-01/OfferDelegation.json + - $(this-folder)/Microsoft.Subscriptions.Admin/preview/2015-11-01/Plan.json + - $(this-folder)/Microsoft.Subscriptions.Admin/preview/2015-11-01/Quota.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/azsadmin/resource-manager/update/Microsoft.Update.Admin/preview/2016-05-01/examples/Operations/List.json b/specification/azsadmin/resource-manager/update/Microsoft.Update.Admin/preview/2016-05-01/examples/Operations/List.json index f8f3ccdbfe4e..65954c3bdefc 100644 --- a/specification/azsadmin/resource-manager/update/Microsoft.Update.Admin/preview/2016-05-01/examples/Operations/List.json +++ b/specification/azsadmin/resource-manager/update/Microsoft.Update.Admin/preview/2016-05-01/examples/Operations/List.json @@ -13,7 +13,7 @@ "200": { "body": { "value": [], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/update/Microsoft.Update.Admin/preview/2016-05-01/examples/UpdateRuns/List.json b/specification/azsadmin/resource-manager/update/Microsoft.Update.Admin/preview/2016-05-01/examples/UpdateRuns/List.json index d5a0041159a6..c03fc9682e69 100644 --- a/specification/azsadmin/resource-manager/update/Microsoft.Update.Admin/preview/2016-05-01/examples/UpdateRuns/List.json +++ b/specification/azsadmin/resource-manager/update/Microsoft.Update.Admin/preview/2016-05-01/examples/UpdateRuns/List.json @@ -396,7 +396,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/update/Microsoft.Update.Admin/preview/2016-05-01/examples/Updates/List.json b/specification/azsadmin/resource-manager/update/Microsoft.Update.Admin/preview/2016-05-01/examples/Updates/List.json index 838802a1697c..0b1c72764eeb 100644 --- a/specification/azsadmin/resource-manager/update/Microsoft.Update.Admin/preview/2016-05-01/examples/Updates/List.json +++ b/specification/azsadmin/resource-manager/update/Microsoft.Update.Admin/preview/2016-05-01/examples/Updates/List.json @@ -32,7 +32,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/azsadmin/resource-manager/update/readme.md b/specification/azsadmin/resource-manager/update/readme.md index 8813bb6a9b29..f03971bc99a0 100644 --- a/specification/azsadmin/resource-manager/update/readme.md +++ b/specification/azsadmin/resource-manager/update/readme.md @@ -56,3 +56,31 @@ csharp: output-folder: $(csharp-sdks-folder)/Generated clear-output-folder: 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)/Microsoft.Update.Admin/preview/2016-05-01/Update.json + - $(this-folder)/Microsoft.Update.Admin/preview/2016-05-01/Updates.json + - $(this-folder)/Microsoft.Update.Admin/preview/2016-05-01/UpdateLocations.json + - $(this-folder)/Microsoft.Update.Admin/preview/2016-05-01/UpdateRuns.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/azsadmin/resource-manager/user-subscriptions/readme.md b/specification/azsadmin/resource-manager/user-subscriptions/readme.md index 864cf4abba65..9c3540a14d15 100644 --- a/specification/azsadmin/resource-manager/user-subscriptions/readme.md +++ b/specification/azsadmin/resource-manager/user-subscriptions/readme.md @@ -101,3 +101,29 @@ These settings apply only when `--tag=package-2015-11-01 --python` is specified ``` yaml $(tag) == 'package-2015-11-01' && $(python) namespace: azure.mgmt.subscriptions.v2015_06_01_preview ``` + +## 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.Subscriptions/preview/2015-11-01/Subscriptions.json + - $(this-folder)/Microsoft.Subscriptions/preview/2015-11-01/Offer.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/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCheckNameAvailability.json index 18d4cc7c073c..c46dcb7d97d7 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCheckNameAvailability.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCheckNameAvailability.json @@ -5,7 +5,7 @@ "location": "wus", "clusterName": { "name": "kuskusprod", - "type": "Microsoft.Kusto/Clusters" + "type": "Microsoft.Kusto/clusters" } }, "responses": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCreateOrUpdate.json index cafc6ad533c1..f684d5df26d4 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCreateOrUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCreateOrUpdate.json @@ -16,9 +16,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersGet.json index 3fdc496deb15..020c68940af9 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersGet.json @@ -8,9 +8,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersList.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersList.json index b4b2efd9edcf..600dbbdd2207 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersList.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { @@ -23,9 +23,9 @@ } }, { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest3", "name": "KustoClusterRPTest3", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListByResourceGroup.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListByResourceGroup.json index 97803f52885c..18988de3e884 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListByResourceGroup.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListByResourceGroup.json @@ -9,9 +9,9 @@ "body": { "value": [ { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { @@ -24,9 +24,9 @@ } }, { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest3", "name": "KustoClusterRPTest3", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersUpdate.json index 6d845f8fc23f..f24c6bb7fcd4 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersUpdate.json @@ -11,9 +11,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCheckNameAvailability.json index 25ff09c0cd46..4ab6f23ccbce 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCheckNameAvailability.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCheckNameAvailability.json @@ -6,7 +6,7 @@ "clusterName": "kustoProd", "databaseName": { "name": "kuskus", - "type": "Microsoft.Kusto/Clusters/Databases" + "type": "Microsoft.Kusto/clusters/databases" } }, "responses": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCreateOrUpdate.json index 15c8b52dce39..5d5f50d6e485 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCreateOrUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCreateOrUpdate.json @@ -15,9 +15,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesGet.json index 183fe12e851f..f72a5af6c06f 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesGet.json @@ -9,9 +9,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesListByCluster.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesListByCluster.json index a889e0e1c7e8..e5cd6682c247 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesListByCluster.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesListByCluster.json @@ -10,9 +10,9 @@ "body": { "value": [ { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", "location": "westus", "properties": { @@ -21,9 +21,9 @@ } }, { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase9", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase9", "name": "KustoClusterRPTest4/KustoDatabase9", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesUpdate.json index 15c8b52dce39..5d5f50d6e485 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesUpdate.json @@ -15,9 +15,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsCreateOrUpdate.json index 3df4a048972a..4a7e3b1ca72a 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsCreateOrUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsCreateOrUpdate.json @@ -17,9 +17,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsGet.json index bc4e9a1fb06c..159dc85511f7 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsGet.json @@ -10,9 +10,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsListByDatabase.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsListByDatabase.json index 77a94f3be0e3..5966eef922e3 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsListByDatabase.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsListByDatabase.json @@ -11,9 +11,9 @@ "body": { "value": [ { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", @@ -21,9 +21,9 @@ } }, { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase9", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase9", "name": "KustoClusterRPTest4/KustoDatabase9", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns2/eventhubs/eventhubTest2", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsUpdate.json index 3df4a048972a..4a7e3b1ca72a 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsUpdate.json @@ -17,9 +17,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCheckNameAvailability.json index b84425227fe0..1a73906e3384 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCheckNameAvailability.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCheckNameAvailability.json @@ -5,7 +5,7 @@ "location": "wus", "clusterName": { "name": "kuskusprod", - "type": "Microsoft.Kusto/Clusters" + "type": "Microsoft.Kusto/clusters" } }, "responses": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCreateOrUpdate.json index 20653d428693..0d2feed0ae5f 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCreateOrUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCreateOrUpdate.json @@ -16,9 +16,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersGet.json index 3f582ca5fa16..8aa7a942ac18 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersGet.json @@ -8,9 +8,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersList.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersList.json index e770d9c8c2c5..725fc4221a8c 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersList.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { @@ -23,9 +23,9 @@ } }, { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest3", "name": "KustoClusterRPTest3", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListByResourceGroup.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListByResourceGroup.json index 111e471756d4..6474e4515519 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListByResourceGroup.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListByResourceGroup.json @@ -9,9 +9,9 @@ "body": { "value": [ { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { @@ -24,9 +24,9 @@ } }, { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest3", "name": "KustoClusterRPTest3", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersUpdate.json index afe5fd15dcae..137644dbf281 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersUpdate.json @@ -11,9 +11,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCheckNameAvailability.json index 3e72751ba294..877cdb1b3828 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCheckNameAvailability.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCheckNameAvailability.json @@ -6,7 +6,7 @@ "clusterName": "kustoProd", "databaseName": { "name": "kuskus", - "type": "Microsoft.Kusto/Clusters/Databases" + "type": "Microsoft.Kusto/clusters/databases" } }, "responses": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCreateOrUpdate.json index c0647daf3a26..e808235ec4fb 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCreateOrUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCreateOrUpdate.json @@ -15,9 +15,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesGet.json index e0c4b92408bc..cc94b7ea6ea2 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesGet.json @@ -9,9 +9,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesListByCluster.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesListByCluster.json index 114f5497c717..18443ffc973b 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesListByCluster.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesListByCluster.json @@ -10,9 +10,9 @@ "body": { "value": [ { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", "location": "westus", "properties": { @@ -21,9 +21,9 @@ } }, { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase9", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase9", "name": "KustoClusterRPTest4/KustoDatabase9", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesUpdate.json index c0647daf3a26..e808235ec4fb 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesUpdate.json @@ -15,9 +15,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", "location": "westus", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsCreateOrUpdate.json index d87b02e0255a..ae8c7c300f0e 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsCreateOrUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsCreateOrUpdate.json @@ -17,9 +17,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsGet.json index 638049ef0427..7dd7b07bb86f 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsGet.json @@ -10,9 +10,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsListByDatabase.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsListByDatabase.json index a7fca93edc33..ee9fef19e03e 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsListByDatabase.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsListByDatabase.json @@ -11,9 +11,9 @@ "body": { "value": [ { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", @@ -21,9 +21,9 @@ } }, { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase9", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase9", "name": "KustoClusterRPTest4/KustoDatabase9", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns2/eventhubs/eventhubTest2", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsUpdate.json index d87b02e0255a..ae8c7c300f0e 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsUpdate.json @@ -17,9 +17,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCreateOrUpdate.json index 34ef6880d19b..d9b794cde0e6 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCreateOrUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCreateOrUpdate.json @@ -16,9 +16,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "location": "westus", "properties": { "provisioningState": "Succeeded" @@ -32,9 +32,9 @@ }, "201": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "location": "westus", "properties": { "provisioningState": "Succeeded" diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersGet.json index 3e3669843d83..09e4702b2c4a 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersGet.json @@ -8,9 +8,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "location": "westus", "properties": { "provisioningState": "Succeeded" diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersList.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersList.json index 1f91d2103cdc..833e7cf6c9a0 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersList.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "location": "westus", "properties": { "provisioningState": "Succeeded" @@ -22,9 +22,9 @@ } }, { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest3", "name": "KustoClusterRPTest3", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "location": "westus", "properties": { "provisioningState": "Succeeded" diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListByResourceGroup.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListByResourceGroup.json index d0bfb03fb5d1..2feb66591e81 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListByResourceGroup.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListByResourceGroup.json @@ -9,9 +9,9 @@ "body": { "value": [ { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "location": "westus", "properties": { "provisioningState": "Succeeded" @@ -23,9 +23,9 @@ } }, { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest3", "name": "KustoClusterRPTest3", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "location": "westus", "properties": { "provisioningState": "Succeeded" diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersUpdate.json index 8f167399a7b9..9c184587ffad 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersUpdate.json @@ -11,9 +11,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "location": "westus", "properties": { "provisioningState": "Succeeded" @@ -27,9 +27,9 @@ }, "201": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4", "name": "KustoClusterRPTest4", - "type": "Microsoft.Kusto/Clusters", + "type": "Microsoft.Kusto/clusters", "location": "westus", "properties": { "provisioningState": "Succeeded" diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsCreateOrUpdate.json index af7fc2373b01..e611fe56efbd 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsCreateOrUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsCreateOrUpdate.json @@ -18,9 +18,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", "name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8", - "type": "Microsoft.Kusto/Clusters/Databases/DataConnections", + "type": "Microsoft.Kusto/clusters/databases/DataConnections", "location": "westus", "kind": "EventHub", "properties": { @@ -31,9 +31,9 @@ }, "201": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", "name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8", - "type": "Microsoft.Kusto/Clusters/Databases/DataConnections", + "type": "Microsoft.Kusto/clusters/databases/DataConnections", "location": "westus", "kind": "EventHub", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsGet.json index e6924c512d1d..2d4f0fc2ac4c 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsGet.json @@ -10,9 +10,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", "name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8", - "type": "Microsoft.Kusto/Clusters/Databases/DataConnections", + "type": "Microsoft.Kusto/clusters/databases/DataConnections", "location": "westus", "kind": "EventHub", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsListByDatabase.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsListByDatabase.json index 781dd363215f..291193134885 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsListByDatabase.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsListByDatabase.json @@ -11,9 +11,9 @@ "body": { "value": [ { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/KustoDataConnection8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/KustoDataConnection8", "name": "KustoClusterRPTest4/KustoDatabase8/KustoDataConnection8", - "type": "Microsoft.Kusto/Clusters/Databases/DataConnections", + "type": "Microsoft.Kusto/clusters/databases/DataConnections", "location": "westus", "kind": "EventHub", "properties": { @@ -22,9 +22,9 @@ } }, { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase9/DataConnections/KustoDataConnection9", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase9/DataConnections/KustoDataConnection9", "name": "KustoClusterRPTest4/KustoDatabase9/KustoDataConnection9", - "type": "Microsoft.Kusto/Clusters/Databases/DataConnections", + "type": "Microsoft.Kusto/clusters/databases/DataConnections", "location": "westus", "kind": "EventHub", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsUpdate.json index af7fc2373b01..e611fe56efbd 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsUpdate.json @@ -18,9 +18,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", "name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8", - "type": "Microsoft.Kusto/Clusters/Databases/DataConnections", + "type": "Microsoft.Kusto/clusters/databases/DataConnections", "location": "westus", "kind": "EventHub", "properties": { @@ -31,9 +31,9 @@ }, "201": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", "name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8", - "type": "Microsoft.Kusto/Clusters/Databases/DataConnections", + "type": "Microsoft.Kusto/clusters/databases/DataConnections", "location": "westus", "kind": "EventHub", "properties": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesCreateOrUpdate.json index cbb676c3d192..2997b7db0195 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesCreateOrUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesCreateOrUpdate.json @@ -15,9 +15,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "softDeletePeriod": "P1D", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesGet.json index 110854267c84..cc267d1b8ebc 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesGet.json @@ -9,9 +9,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "softDeletePeriod": "P1D", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesListByCluster.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesListByCluster.json index b586191048e0..ee0488105461 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesListByCluster.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesListByCluster.json @@ -10,9 +10,9 @@ "body": { "value": [ { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "softDeletePeriod": "P1D", @@ -20,9 +20,9 @@ } }, { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase9", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase9", "name": "KustoClusterRPTest4/KustoDatabase9", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "softDeletePeriod": "P1D", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesUpdate.json index cbb676c3d192..2997b7db0195 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDatabasesUpdate.json @@ -15,9 +15,9 @@ "responses": { "200": { "body": { - "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/KustoClusterRPTest4/Databases/KustoDatabase8", "name": "KustoClusterRPTest4/KustoDatabase8", - "type": "Microsoft.Kusto/Clusters/Databases", + "type": "Microsoft.Kusto/clusters/databases", "location": "westus", "properties": { "softDeletePeriod": "P1D", diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json index e4f9014a6fa7..96b80760e8e3 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json @@ -1476,7 +1476,7 @@ }, "capacity": { "$ref": "#/definitions/AzureCapacity", - "description": "The SKU capacity." + "description": "The number of instances of the cluster." } }, "description": "Azure resource SKU definition." @@ -1504,11 +1504,11 @@ } }, "minimum": { - "description": "Minimum allowed capacity.", + "description": "Minimum allowed instances count.", "type": "integer" }, "maximum": { - "description": "Maximum allowed capacity.", + "description": "Maximum allowed instances count.", "type": "integer" }, "default": { @@ -1529,13 +1529,18 @@ "description": "SKU name.", "type": "string", "enum": [ - "D13_v2", - "D14_v2", - "L8", - "L16", - "D11_v2", - "D12_v2", - "L4" + "Standard_DS13_v2+1TB_PS", + "Standard_DS13_v2+2TB_PS", + "Standard_DS14_v2+3TB_PS", + "Standard_DS14_v2+4TB_PS", + "Standard_D13_v2", + "Standard_D14_v2", + "Standard_L8s", + "Standard_L16s", + "Standard_D11_v2", + "Standard_D12_v2", + "Standard_L4s", + "Dev(No SLA)_Standard_D11_v2" ], "x-ms-enum": { "name": "AzureSkuName", @@ -1543,13 +1548,14 @@ } }, "capacity": { - "description": "SKU capacity.", + "description": "The number of instances of the cluster.", "type": "integer" }, "tier": { "description": "SKU tier.", "type": "string", "enum": [ + "Basic", "Standard" ], "x-ms-enum": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersCheckNameAvailability.json new file mode 100644 index 000000000000..e6cd39f16f72 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersCheckNameAvailability.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "api-version": "2019-05-15", + "location": "West US", + "clusterName": { + "name": "kuskusprod", + "type": "Microsoft.Kusto/clusters" + } + }, + "responses": { + "200": { + "body": { + "name": "kuskusprod", + "nameAvailable": false, + "message": "Name 'kuskusprod' is already taken. Please specify a different name" + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersCreateOrUpdate.json new file mode 100644 index 000000000000..7841a7898fce --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersCreateOrUpdate.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2019-05-15", + "parameters": { + "location": "westus", + "sku": { + "name": "Standard_L8s", + "capacity": 2, + "tier": "Standard" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "name": "KustoClusterRPTest4", + "type": "Microsoft.Kusto/clusters", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "Standard_L8s", + "capacity": 2, + "tier": "Standard" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "name": "KustoClusterRPTest4", + "type": "Microsoft.Kusto/clusters", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "Standard_L8s", + "capacity": 2, + "tier": "Standard" + } + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersDelete.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersDelete.json new file mode 100644 index 000000000000..8a849f627627 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2019-05-15" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersGet.json new file mode 100644 index 000000000000..e62cb3afe37d --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2019-05-15" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "name": "KustoClusterRPTest4", + "type": "Microsoft.Kusto/clusters", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "Standard_L8s", + "capacity": 2, + "tier": "Standard" + } + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersList.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersList.json new file mode 100644 index 000000000000..183260f7a596 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersList.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "api-version": "2019-05-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "name": "KustoClusterRPTest4", + "type": "Microsoft.Kusto/Clusters", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "Standard_L8s", + "capacity": 2, + "tier": "Standard" + } + }, + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3", + "name": "KustoClusterRPTest3", + "type": "Microsoft.Kusto/Clusters", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "Standard_L8s", + "capacity": 2, + "tier": "Standard" + } + } + ] + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersListByResourceGroup.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersListByResourceGroup.json new file mode 100644 index 000000000000..77f7254d651d --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersListByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "api-version": "2019-05-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "name": "KustoClusterRPTest4", + "type": "Microsoft.Kusto/Clusters", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "Standard_L8s", + "capacity": 2, + "tier": "Standard" + } + }, + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3", + "name": "KustoClusterRPTest3", + "type": "Microsoft.Kusto/Clusters", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "Standard_L8s", + "capacity": 2, + "tier": "Standard" + } + } + ] + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersListResourceSkus.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersListResourceSkus.json new file mode 100644 index 000000000000..3776ca501f7a --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersListResourceSkus.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2019-05-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceType": "clusters", + "sku": { + "name": "Standard_D13_v2", + "tier": "Standard" + }, + "capacity": { + "minimum": 2, + "maximum": 100, + "default": 2, + "scaleType": "automatic" + } + }, + { + "resourceType": "clusters", + "sku": { + "name": "Standard_D14_v2", + "tier": "Standard" + }, + "capacity": { + "minimum": 2, + "maximum": 100, + "default": 2, + "scaleType": "automatic" + } + }, + { + "resourceType": "clusters", + "sku": { + "name": "Standard_L8s", + "tier": "Standard" + }, + "capacity": { + "minimum": 2, + "maximum": 100, + "default": 2, + "scaleType": "automatic" + } + }, + { + "resourceType": "clusters", + "sku": { + "name": "Standard_L16s", + "tier": "Standard" + }, + "capacity": { + "minimum": 2, + "maximum": 100, + "default": 2, + "scaleType": "automatic" + } + } + ] + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersListSkus.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersListSkus.json new file mode 100644 index 000000000000..88fa7d90119f --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersListSkus.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "api-version": "2019-05-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Standard_D13_v2", + "tier": "Standard", + "locations": [ "West US", "West Europe" ], + "locationInfo": [ + { + "location": "West US", + "zones": [ "1", "2", "3" ] + }, + { + "location": "West Europe", + "zones": [] + } + ] + }, + { + "name": "Standard_D14_v2", + "tier": "Standard", + "locations": [ "West US", "West Europe" ], + "locationInfo": [ + { + "location": "West US", + "zones": [ "1", "2", "3" ] + }, + { + "location": "West Europe", + "zones": [] + } + ] + }, + { + "name": "L8", + "tier": "Standard", + "locations": [ "West US", "West Europe" ], + "locationInfo": [ + { + "location": "West US", + "zones": [ "1", "2", "3" ] + }, + { + "location": "West Europe", + "zones": [] + } + ] + }, + { + "name": "L16", + "tier": "Standard", + "locations": [ "West US", "West Europe" ], + "locationInfo": [ + { + "location": "West US", + "zones": [ "1", "2", "3" ] + }, + { + "location": "West Europe", + "zones": [] + } + ] + } + ] + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersStart.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersStart.json new file mode 100644 index 000000000000..dea48ba1c6e0 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersStart.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2019-05-15" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersStop.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersStop.json new file mode 100644 index 000000000000..dea48ba1c6e0 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersStop.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2019-05-15" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersUpdate.json new file mode 100644 index 000000000000..99c56a938ddb --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoClustersUpdate.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2019-05-15", + "parameters": { + "location": "westus" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "name": "KustoClusterRPTest4", + "type": "Microsoft.Kusto/clusters", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "Standard_L8s", + "capacity": 2, + "tier": "Standard" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "name": "KustoClusterRPTest4", + "type": "Microsoft.Kusto/clusters", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "Standard_L8s", + "capacity": 2, + "tier": "Standard" + } + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionValidation.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionValidation.json new file mode 100644 index 000000000000..7a1278712180 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionValidation.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2019-05-15", + "parameters": { + "dataConnectionName": "DataConnections8", + "properties": { + "kind": "EventHub" + } + } + }, + "responses": { + "200": { + "body": + [ + { + "errorMessage": "event hub namespace does not exist" + }, + { + "errorMessage": "database does not exist" + } + ] + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsCheckNameAvailability.json new file mode 100644 index 000000000000..787b5c7f8c6d --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsCheckNameAvailability.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "api-version": "2019-05-15", + "clusterName": "kustoProd", + "databaseName": "KustoDatabase8", + "dataConnectionName": { + "name": "DataConnections8", + "type": "Microsoft.Kusto/clusters/databases/dataConnections" + }, + "resourceGroupName": "kustorptest" + }, + "responses": { + "200": { + "body": { + "name": "DataConnections8", + "nameAvailable": false, + "message": "Name 'DataConnections8' is already taken. Please specify a different name.", + "reason": "AlreadyExists" + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsCreateOrUpdate.json new file mode 100644 index 000000000000..0fbbdc1ac4e5 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsCreateOrUpdate.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2019-05-15", + "dataConnectionName": "DataConnections8", + "parameters": { + "location": "westus", + "kind": "EventHub", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", + "name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8", + "type": "Microsoft.Kusto/clusters/databases/dataConnections", + "location": "westus", + "kind": "EventHub", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", + "name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8", + "type": "Microsoft.Kusto/clusters/databases/dataConnections", + "location": "westus", + "kind": "EventHub", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "202": {} + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsDelete.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsDelete.json new file mode 100644 index 000000000000..e11b32a41067 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2019-05-15", + "dataConnectionName": "kustoeventhubconnection1" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsGet.json new file mode 100644 index 000000000000..0e39702cc07f --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2019-05-15", + "dataConnectionName": "DataConnections8" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", + "name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8", + "type": "Microsoft.Kusto/clusters/databases/dataConnections", + "location": "westus", + "kind": "EventHub", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsListByDatabase.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsListByDatabase.json new file mode 100644 index 000000000000..ef29aa0d5aae --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsListByDatabase.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2019-05-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/KustoDataConnection8", + "name": "KustoClusterRPTest4/KustoDatabase8/KustoDataConnection8", + "type": "Microsoft.Kusto/clusters/databases/dataConnections", + "location": "westus", + "kind": "EventHub", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + }, + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase9/DataConnections/KustoDataConnection9", + "name": "KustoClusterRPTest4/KustoDatabase9/KustoDataConnection9", + "type": "Microsoft.Kusto/clusters/databases/dataConnections", + "location": "westus", + "kind": "EventHub", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns2/eventhubs/eventhubTest2", + "consumerGroup": "testConsumerGroup2" + } + } + ] + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsUpdate.json new file mode 100644 index 000000000000..0fbbdc1ac4e5 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDataConnectionsUpdate.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2019-05-15", + "dataConnectionName": "DataConnections8", + "parameters": { + "location": "westus", + "kind": "EventHub", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", + "name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8", + "type": "Microsoft.Kusto/clusters/databases/dataConnections", + "location": "westus", + "kind": "EventHub", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8", + "name": "KustoClusterRPTest4/KustoDatabase8/DataConnections8", + "type": "Microsoft.Kusto/clusters/databases/dataConnections", + "location": "westus", + "kind": "EventHub", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "202": {} + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabaseAddPrincipals.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabaseAddPrincipals.json new file mode 100644 index 000000000000..d4fdf2a732d6 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabaseAddPrincipals.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "databaseName1", + "api-version": "2019-05-15", + "databasePrincipalsToAdd": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabaseListPrincipals.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabaseListPrincipals.json new file mode 100644 index 000000000000..3366937cd73a --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabaseListPrincipals.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "databaseName1", + "api-version": "2019-05-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabaseRemovePrincipals.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabaseRemovePrincipals.json new file mode 100644 index 000000000000..18ef60df9b87 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabaseRemovePrincipals.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "databaseName1", + "api-version": "2019-05-15", + "databasePrincipalsToRemove": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesCheckNameAvailability.json new file mode 100644 index 000000000000..4e0ecbb42fd2 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesCheckNameAvailability.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "api-version": "2019-01-21", + "resourceGroupName": "kustorptest", + "clusterName": "kustoProd", + "databaseName": { + "name": "kuskus", + "type": "Microsoft.Kusto/clusters/databases" + } + }, + "responses": { + "200": { + "body": { + "name": "kuskus", + "nameAvailable": false, + "message": "Name 'kuskus' is already taken. Please specify a different name" + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesCreateOrUpdate.json new file mode 100644 index 000000000000..070dae0d45dd --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesCreateOrUpdate.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2019-05-15", + "parameters": { + "location": "westus", + "properties": { + "softDeletePeriod": "P1D" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/clusters/databases", + "location": "westus", + "properties": { + "softDeletePeriod": "P1D", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/clusters/databases", + "location": "westus", + "properties": { + "softDeletePeriod": "P1D", + "provisioningState": "Succeeded" + } + } + }, + "202": {} + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesDelete.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesDelete.json new file mode 100644 index 000000000000..5de6af4e7194 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2019-05-15" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesGet.json new file mode 100644 index 000000000000..1f47d3e7c5e8 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2019-05-15" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/clusters/databases", + "location": "westus", + "properties": { + "softDeletePeriod": "P1D", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesListByCluster.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesListByCluster.json new file mode 100644 index 000000000000..40efa1bd10d0 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesListByCluster.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2019-05-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/clusters/databases", + "location": "westus", + "properties": { + "softDeletePeriod": "P1D", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase9", + "name": "KustoClusterRPTest4/KustoDatabase9", + "type": "Microsoft.Kusto/clusters/databases", + "location": "westus", + "properties": { + "softDeletePeriod": "P1D", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesUpdate.json new file mode 100644 index 000000000000..070dae0d45dd --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoDatabasesUpdate.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2019-05-15", + "parameters": { + "location": "westus", + "properties": { + "softDeletePeriod": "P1D" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/clusters/databases", + "location": "westus", + "properties": { + "softDeletePeriod": "P1D", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/clusters/databases", + "location": "westus", + "properties": { + "softDeletePeriod": "P1D", + "provisioningState": "Succeeded" + } + } + }, + "202": {} + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoOperationsList.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoOperationsList.json new file mode 100644 index 000000000000..f323d693a947 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/examples/KustoOperationsList.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-05-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "operationName", + "display": { + "provider": "providerName", + "resource": "resourceName", + "operation": "operationName", + "description": "operation description" + } + } + ] + } + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/kusto.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/kusto.json new file mode 100644 index 000000000000..bfb5bfc4a2d2 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-05-15/kusto.json @@ -0,0 +1,2506 @@ +{ + "swagger": "2.0", + "info": { + "title": "KustoManagementClient", + "version": "2019-05-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Get", + "x-ms-examples": { + "KustoClustersGet": { + "$ref": "./examples/KustoClustersGet.json" + } + }, + "description": "Gets a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Kusto cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_CreateOrUpdate", + "x-ms-examples": { + "KustoClustersCreateOrUpdate": { + "$ref": "./examples/KustoClustersCreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Create or update a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Cluster" + }, + "description": "The Kusto cluster parameters supplied to the CreateOrUpdate operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the Cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "201": { + "description": "Successfully created the cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "patch": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Update", + "x-ms-examples": { + "KustoClustersUpdate": { + "$ref": "./examples/KustoClustersUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Update a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterUpdate" + }, + "description": "The Kusto cluster parameters supplied to the Update operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the Cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "201": { + "description": "Successfully updated the cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Delete", + "x-ms-examples": { + "KustoClustersDelete": { + "$ref": "./examples/KustoClustersDelete.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Deletes a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- cluster deleted successfully." + }, + "202": { + "description": "Accepted the delete cluster request." + }, + "204": { + "description": "NoContent -- cluster does not exist in the subscription." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/stop": { + "post": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Stop", + "x-ms-examples": { + "KustoClustersStop": { + "$ref": "./examples/KustoClustersStop.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Stops a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start": { + "post": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Start", + "x-ms-examples": { + "KustoClustersStart": { + "$ref": "./examples/KustoClustersStart.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Starts a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "202": { + "description": "Accepted." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_ListByResourceGroup", + "x-ms-examples": { + "KustoClustersListByResourceGroup": { + "$ref": "./examples/KustoClustersListByResourceGroup.json" + } + }, + "description": "Lists all Kusto clusters within a resource group.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ClusterListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/clusters": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_List", + "x-ms-examples": { + "KustoClustersList": { + "$ref": "./examples/KustoClustersList.json" + } + }, + "description": "Lists all Kusto clusters within a subscription.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ClusterListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/skus": { + "get": { + "description": "Lists eligible SKUs for Kusto resource provider.", + "x-ms-examples": { + "KustoClustersListSkus": { + "$ref": "./examples/KustoClustersListSkus.json" + } + }, + "operationId": "Clusters_ListSkus", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { "$ref": "#/definitions/SkuDescriptionList" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability": { + "post": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_CheckNameAvailability", + "x-ms-examples": { + "KustoClustersCheckNameAvailability": { + "$ref": "./examples/KustoClustersCheckNameAvailability.json" + } + }, + "description": "Checks that the cluster name is valid and is not already in use.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "location", + "in": "path", + "description": "Azure location.", + "required": true, + "type": "string" + }, + { + "name": "clusterName", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterCheckNameRequest" + }, + "description": "The name of the cluster." + } + ], + "responses": { + "200": { + "description": "OK -- Operation to check the kusto resource name availability was successful.", + "schema": { + "$ref": "#/definitions/CheckNameResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkNameAvailability": { + "post": { + "tags": [ + "Databases" + ], + "operationId": "Databases_CheckNameAvailability", + "x-ms-examples": { + "KustoDatabaseCheckNameAvailability": { + "$ref": "./examples/KustoDatabasesCheckNameAvailability.json" + } + }, + "description": "Checks that the database name is valid and is not already in use.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "databaseName", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabaseCheckNameRequest" + }, + "description": "The name of the database." + } + ], + "responses": { + "200": { + "description": "OK -- Operation to check the kusto resource name availability was successful.", + "schema": { + "$ref": "#/definitions/CheckNameResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/skus": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_ListSkusByResource", + "x-ms-examples": { + "KustoClustersListResourceSkus": { + "$ref": "./examples/KustoClustersListResourceSkus.json" + } + }, + "description": "Returns the SKUs available for the provided resource.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { "$ref": "#/definitions/ListResourceSkusResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases": { + "get": { + "tags": [ + "Databases" + ], + "description": "Returns the list of databases of the given Kusto cluster.", + "operationId": "Databases_ListByCluster", + "x-ms-examples": { + "KustoDatabasesListByCluster": { + "$ref": "./examples/KustoDatabasesListByCluster.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of databases.", + "schema": { + "$ref": "#/definitions/DatabaseListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}": { + "get": { + "tags": [ + "Databases" + ], + "description": "Returns a database.", + "operationId": "Databases_Get", + "x-ms-examples": { + "KustoDatabasesGet": { + "$ref": "./examples/KustoDatabasesGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the specified database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Databases" + ], + "description": "Creates or updates a database.", + "operationId": "Databases_CreateOrUpdate", + "x-ms-examples": { + "KustoDatabasesCreateOrUpdate": { + "$ref": "./examples/KustoDatabasesCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Database" + }, + "description": "The database parameters supplied to the CreateOrUpdate operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "201": { + "description": "Successfully created the database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "202": { + "description": "Accepted the create database request." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Databases" + ], + "description": "Updates a database.", + "operationId": "Databases_Update", + "x-ms-examples": { + "KustoDatabasesUpdate": { + "$ref": "./examples/KustoDatabasesUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabaseUpdate" + }, + "description": "The database parameters supplied to the Update operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "201": { + "description": "Successfully updated the database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "202": { + "description": "Accepted the update database request." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Databases" + ], + "description": "Deletes the database with the given name.", + "operationId": "Databases_Delete", + "x-ms-examples": { + "KustoDatabasesDelete": { + "$ref": "./examples/KustoDatabasesDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the database." + }, + "202": { + "description": "Accepted." + }, + "204": { + "description": "The specified database does not exist." + }, + "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.Kusto/clusters/{clusterName}/databases/{databaseName}/listPrincipals": { + "post": { + "tags": [ + "Databases" + ], + "description": "Returns a list of database principals of the given Kusto cluster and database.", + "operationId": "Databases_ListPrincipals", + "x-ms-examples": { + "KustoDatabaseListPrincipals": { + "$ref": "./examples/KustoDatabaseListPrincipals.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of database principals.", + "schema": { + "$ref": "#/definitions/DatabasePrincipalListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/addPrincipals": { + "post": { + "tags": [ + "Databases" + ], + "operationId": "Databases_AddPrincipals", + "x-ms-examples": { + "KustoDatabaseAddPrincipals": { + "$ref": "./examples/KustoDatabaseAddPrincipals.json" + } + }, + "description": "Add Database principals permissions.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "databasePrincipalsToAdd", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabasePrincipalListRequest" + }, + "description": "List of database principals to add." + } + ], + "responses": { + "200": { + "description": "OK -- Successfully added the list of database principals. Returns the updated list of principals.", + "schema": { + "$ref": "#/definitions/DatabasePrincipalListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/removePrincipals": { + "post": { + "tags": [ + "Databases" + ], + "operationId": "Databases_RemovePrincipals", + "x-ms-examples": { + "KustoDatabaseRemovePrincipals": { + "$ref": "./examples/KustoDatabaseRemovePrincipals.json" + } + }, + "description": "Remove Database principals permissions.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "databasePrincipalsToRemove", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabasePrincipalListRequest" + }, + "description": "List of database principals to remove." + } + ], + "responses": { + "200": { + "description": "OK -- Successfully removed the list of database principals. Returns the updated list of principals.", + "schema": { + "$ref": "#/definitions/DatabasePrincipalListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections": { + "get": { + "tags": [ + "DataConnections" + ], + "description": "Returns the list of data connections of the given Kusto database.", + "operationId": "DataConnections_ListByDatabase", + "x-ms-examples": { + "KustoDatabasesListByCluster": { + "$ref": "./examples/KustoDataConnectionsListByDatabase.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of data connections.", + "schema": { + "$ref": "#/definitions/DataConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnectionValidation": { + "post": { + "tags": [ + "DataConnections" + ], + "operationId": "DataConnections_dataConnectionValidation", + "x-ms-examples": { + "KustoDataConnectionValidation": { + "$ref": "./examples/KustoDataConnectionValidation.json" + } + }, + "description": "Checks that the data connection parameters are valid.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataConnectionValidation" + }, + "description": "The data connection parameters supplied to the CreateOrUpdate operation." + } + ], + "responses": { + "200": { + "description": "OK -- Operation to check the kusto resource name availability was successful.", + "schema": { + "$ref": "#/definitions/DataConnectionValidationListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkNameAvailability": { + "post": { + "tags": [ + "DataConnections" + ], + "operationId": "DataConnections_CheckNameAvailability", + "x-ms-examples": { + "KustoDataConnectionsCheckNameAvailability": { + "$ref": "./examples/KustoDataConnectionsCheckNameAvailability.json" + } + }, + "description": "Checks that the data connection name is valid and is not already in use.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "dataConnectionName", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataConnectionCheckNameRequest" + }, + "description": "The name of the data connection." + } + ], + "responses": { + "200": { + "description": "OK -- Operation to check the Kusto resource name availability was successful.", + "schema": { + "$ref": "#/definitions/CheckNameResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}": { + "get": { + "tags": [ + "DataConnections" + ], + "description": "Returns a data connection.", + "operationId": "DataConnections_Get", + "x-ms-examples": { + "KustoDataConnectionsGet": { + "$ref": "./examples/KustoDataConnectionsGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/DataConnectionNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the specified data connection.", + "schema": { + "$ref": "#/definitions/DataConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "DataConnections" + ], + "description": "Creates or updates a data connection.", + "operationId": "DataConnections_CreateOrUpdate", + "x-ms-examples": { + "KustoDataConnectionsCreateOrUpdate": { + "$ref": "./examples/KustoDataConnectionsCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/DataConnectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataConnection" + }, + "description": "The data connection parameters supplied to the CreateOrUpdate operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the data connection.", + "schema": { + "$ref": "#/definitions/DataConnection" + } + }, + "201": { + "description": "Successfully created the data connection.", + "schema": { + "$ref": "#/definitions/DataConnection" + } + }, + "202": { + "description": "Accepted the create data connection request." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "DataConnections" + ], + "description": "Updates a data connection.", + "operationId": "DataConnections_Update", + "x-ms-examples": { + "KustoDataConnectionsUpdate": { + "$ref": "./examples/KustoDataConnectionsUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/DataConnectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataConnection" + }, + "description": "The data connection parameters supplied to the Update operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the data connection.", + "schema": { + "$ref": "#/definitions/DataConnection" + } + }, + "201": { + "description": "Successfully updated the data connection.", + "schema": { + "$ref": "#/definitions/DataConnection" + } + }, + "202": { + "description": "Accepted the update data connection request." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "DataConnections" + ], + "description": "Deletes the data connection with the given name.", + "operationId": "DataConnections_Delete", + "x-ms-examples": { + "KustoDataConnectionsDelete": { + "$ref": "./examples/KustoDataConnectionsDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/DataConnectionNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the data connection." + }, + "202": { + "description": "Accepted." + }, + "204": { + "description": "The specified data connection does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/providers/Microsoft.Kusto/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "KustoOperationsList": { + "$ref": "./examples/KustoOperationsList.json" + } + }, + "description": "Lists available operations for the Microsoft.Kusto 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" + } + } + } + }, + "definitions": { + "ClusterProperties": { + "properties": { + "state": { + "type": "string", + "readOnly": true, + "description": "The state of the resource.", + "enum": [ + "Creating", + "Unavailable", + "Running", + "Deleting", + "Deleted", + "Stopping", + "Stopped", + "Starting", + "Updating" + ], + "x-ms-enum": { + "name": "State", + "modelAsString": true + } + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioned state of the resource.", + "enum": [ + "Running", + "Creating", + "Deleting", + "Succeeded", + "Failed", + "Moving" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "uri": { + "type": "string", + "readOnly": true, + "description": "The cluster URI." + }, + "dataIngestionUri": { + "type": "string", + "readOnly": true, + "description": "The cluster data ingestion URI." + }, + "trustedExternalTenants": { + "type": "array", + "items": { + "$ref": "#/definitions/TrustedExternalTenant" + }, + "description": "The cluster's external tenants." + }, + "optimizedAutoscale": { + "type": "object", + "$ref": "#/definitions/OptimizedAutoscale", + "description": "Optimized auto scale definition." + }, + "enableDiskEncryption": { + "description": "A boolean value that indicates if the cluster's disks are encrypted.", + "type": "boolean" + }, + "enableStreamingIngest": { + "description": "A boolean value that indicates if the streaming ingest is enabled.", + "default": false, + "type": "boolean" + }, + "virtualNetworkConfiguration": { + "type": "object", + "$ref": "#/definitions/VirtualNetworkConfiguration", + "description": "Virtual network definition." + } + }, + "description": "Class representing the Kusto cluster properties." + }, + "TrustedExternalTenant": { + "properties": { + "value": { + "type": "string", + "description": "GUID representing an external tenant." + } + }, + "description": "Represents a tenant ID that is trusted by the cluster." + }, + "AzureResourceSku": { + "properties": { + "resourceType": { + "type": "string", + "description": "Resource Namespace and Type." + }, + "sku": { + "$ref": "#/definitions/AzureSku", + "description": "The SKU details." + }, + "capacity": { + "$ref": "#/definitions/AzureCapacity", + "description": "The number of instances of the cluster." + } + }, + "description": "Azure resource SKU definition." + }, + "AzureCapacity": { + "type": "object", + "required": [ + "minimum", + "maximum", + "default", + "scaleType" + ], + "properties": { + "scaleType": { + "description": "Scale type.", + "type": "string", + "enum": [ + "automatic", + "manual", + "none" + ], + "x-ms-enum": { + "name": "AzureScaleType", + "modelAsString": true + } + }, + "minimum": { + "description": "Minimum allowed capacity.", + "type": "integer" + }, + "maximum": { + "description": "Maximum allowed capacity.", + "type": "integer" + }, + "default": { + "description": "The default capacity that would be used.", + "type": "integer" + } + }, + "description": "Azure capacity definition." + }, + "SkuDescriptionList": { + "description": "The list of the EngagementFabric SKU descriptions", + "type": "object", + "properties": { + "value": { + "description": "SKU descriptions", + "type": "array", + "items": { + "$ref": "#/definitions/SkuDescription" + }, + "readOnly": true + } + } + }, + "SkuDescription": { + "description": "The Kusto SKU description of given resource type", + "type": "object", + "properties": { + "resourceType": { + "description": "The resource type", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The name of the SKU", + "type": "string", + "readOnly": true + }, + "tier": { + "description": "The tier of the SKU", + "type": "string", + "readOnly": true + }, + "locations": { + "description": "The set of locations that the SKU is available", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "locationInfo": { + "description": "Locations and zones", + "type": "array", + "items": { + "$ref": "#/definitions/SkuLocationInfoItem" + }, + "readOnly": true + }, + "restrictions": { + "description": "The restrictions because of which SKU cannot be used", + "type": "array", + "items": { + "type": "object" + }, + "readOnly": true + } + } + }, + "SkuLocationInfoItem": { + "description": "The locations and zones info for SKU.", + "type": "object", + "required": [ + "location" + ], + "properties": { + "location": { + "description": "The available location of the SKU.", + "type": "string" + }, + "zones": { + "description": "The available zone of the SKU.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "AzureSku": { + "type": "object", + "required": [ + "name", + "tier" + ], + "properties": { + "name": { + "description": "SKU name.", + "type": "string", + "enum": [ + "Standard_DS13_v2+1TB_PS", + "Standard_DS13_v2+2TB_PS", + "Standard_DS14_v2+3TB_PS", + "Standard_DS14_v2+4TB_PS", + "Standard_D13_v2", + "Standard_D14_v2", + "Standard_L8s", + "Standard_L16s", + "Standard_D11_v2", + "Standard_D12_v2", + "Standard_L4s", + "Dev(No SLA)_Standard_D11_v2" + ], + "x-ms-enum": { + "name": "AzureSkuName", + "modelAsString": true + } + }, + "capacity": { + "description": "The number of instances of the cluster.", + "type": "integer" + }, + "tier": { + "description": "SKU tier.", + "type": "string", + "enum": [ + "Basic", + "Standard" + ], + "x-ms-enum": { + "name": "AzureSkuTier", + "modelAsString": true + } + } + }, + "description": "Azure SKU definition." + }, + "Zones": { + "description": "An array represents the availability zones of the cluster.", + "type": "array", + "items": { + "type": "string" + } + }, + "OptimizedAutoscale": { + "type": "object", + "required": [ + "version", + "isEnabled", + "minimum", + "maximum" + ], + "properties": { + "version": { + "description": "The version of the template defined, for instance 1.", + "type": "integer" + }, + "isEnabled": { + "description": "A boolean value that indicate if the optimized autoscale feature is enabled or not.", + "type": "boolean" + }, + "minimum": { + "description": "Minimum allowed instances count.", + "type": "integer" + }, + "maximum": { + "description": "Maximum allowed instances count.", + "type": "integer" + } + }, + "description": "A class that contains the optimized auto scale definition." + }, + "VirtualNetworkConfiguration": { + "type": "object", + "required": [ + "subnetId", + "enginePublicIpId", + "dataManagementPublicIpId" + ], + "properties": { + "subnetId": { + "description": "The subnet resource id.", + "type": "string" + }, + "enginePublicIpId": { + "description": "Engine service's public IP address resource id.", + "type": "string" + }, + "dataManagementPublicIpId": { + "description": "Data management's service public IP address resource id.", + "type": "string" + } + }, + "description": "A class that contains virtual network definition." + }, + "DatabaseStatistics": { + "type": "object", + "readOnly": true, + "properties": { + "size": { + "type": "number", + "description": "The database size - the total size of compressed data and index in bytes." + } + }, + "description": "A class that contains database statistics information." + }, + "DatabaseProperties": { + "properties": { + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioned state of the resource.", + "enum": [ + "Running", + "Creating", + "Deleting", + "Succeeded", + "Failed", + "Moving" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "softDeletePeriod": { + "type": "string", + "format": "duration", + "description": "The time the data should be kept before it stops being accessible to queries in TimeSpan." + }, + "hotCachePeriod": { + "type": "string", + "format": "duration", + "description": "The time the data should be kept in cache for fast queries in TimeSpan." + }, + "statistics": { + "$ref": "#/definitions/DatabaseStatistics", + "description": "The statistics of the database." + } + }, + "description": "Class representing the Kusto database properties." + }, + "EventHubConnectionProperties": { + "properties": { + "eventHubResourceId": { + "type": "string", + "description": "The resource ID of the event hub to be used to create a data connection." + }, + "consumerGroup": { + "type": "string", + "description": "The event hub consumer group." + }, + "tableName": { + "type": "string", + "description": "The table where the data should be ingested. Optionally the table information can be added to each message." + }, + "mappingRuleName": { + "type": "string", + "description": "The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message." + }, + "dataFormat": { + "$ref": "#/definitions/DataFormat", + "description": "The data format of the message. Optionally the data format can be added to each message." + }, + "eventSystemProperties": { + "type": "array", + "items": { + "type": "string" + }, + "description": "System properties of the event hub" + } + }, + "required": [ + "eventHubResourceId", + "consumerGroup" + ], + "description": "Class representing the Kusto event hub connection properties." + }, + "IotHubConnectionProperties": { + "properties": { + "iotHubResourceId": { + "type": "string", + "description": "The resource ID of the Iot hub to be used to create a data connection." + }, + "consumerGroup": { + "type": "string", + "description": "The iot hub consumer group." + }, + "tableName": { + "type": "string", + "description": "The table where the data should be ingested. Optionally the table information can be added to each message." + }, + "mappingRuleName": { + "type": "string", + "description": "The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message." + }, + "dataFormat": { + "$ref": "#/definitions/DataFormat", + "description": "The data format of the message. Optionally the data format can be added to each message." + }, + "eventSystemProperties": { + "type": "array", + "items": { + "type": "string" + }, + "description": "System properties of the iot hub" + }, + "sharedAccessPolicyName": { + "type": "string", + "description": "The name of the share access policy name" + } + }, + "required": [ + "iotHubResourceId", + "consumerGroup", + "sharedAccessPolicyName" + ], + "description": "Class representing the Kusto iot hub connection properties." + }, + "DataFormat": { + "description": "The data format of the message. Optionally the data format can be added to each message.", + "type": "string", + "enum": [ + "MULTIJSON", + "JSON", + "CSV", + "TSV", + "SCSV", + "SOHSV", + "PSV", + "TXT", + "RAW", + "SINGLEJSON", + "AVRO" + ], + "x-ms-enum": { + "name": "dataFormat", + "modelAsString": true + } + }, + "EventGridConnectionProperties": { + "properties": { + "storageAccountResourceId": { + "type": "string", + "description": "The resource ID of the storage account where the data resides." + }, + "eventHubResourceId": { + "type": "string", + "description": "The resource ID where the event grid is configured to send events." + }, + "consumerGroup": { + "type": "string", + "description": "The event hub consumer group." + }, + "tableName": { + "type": "string", + "description": "The table where the data should be ingested. Optionally the table information can be added to each message." + }, + "mappingRuleName": { + "type": "string", + "description": "The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message." + }, + "dataFormat": { + "$ref": "#/definitions/DataFormat", + "description": "The data format of the message. Optionally the data format can be added to each message." + } + }, + "required": [ + "storageAccountResourceId", + "eventHubResourceId", + "consumerGroup", + "tableName", + "dataFormat" + ], + "description": "Class representing the Kusto event grid connection properties." + }, + "Cluster": { + "required": [ + "sku" + ], + "properties": { + "sku": { + "$ref": "#/definitions/AzureSku", + "description": "The SKU of the cluster." + }, + "zones": { + "$ref": "#/definitions/Zones", + "description": "The availability zones of the cluster." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ClusterProperties", + "description": "The cluster properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "Class representing a Kusto cluster." + }, + "ClusterUpdate": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "sku": { + "$ref": "#/definitions/AzureSku", + "description": "The SKU of the cluster." + }, + "properties": { + "x-ms-client-flatten": true, + "description": "The cluster properties.", + "$ref": "#/definitions/ClusterProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ], + "description": "Class representing an update to a Kusto cluster." + }, + "Database": { + "properties": { + "location": { + "type": "string", + "description": "Resource location." + }, + "properties": { + "x-ms-client-flatten": true, + "description": "The database properties.", + "$ref": "#/definitions/DatabaseProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Class representing a Kusto database." + }, + "DatabaseUpdate": { + "properties": { + "location": { + "type": "string", + "description": "Resource location." + }, + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of the updated database.", + "$ref": "#/definitions/DatabaseProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ], + "description": "Class representing an update to a Kusto database." + }, + "DatabasePrincipal": { + "type": "object", + "required": [ + "name", + "role", + "type" + ], + "properties": { + "role": { + "description": "Database principal role.", + "type": "string", + "enum": [ + "Admin", + "Ingestor", + "Monitor", + "User", + "UnrestrictedViewers", + "Viewer" + ], + "x-ms-enum": { + "name": "DatabasePrincipalRole", + "modelAsString": true + } + }, + "name": { + "description": "Database principal name.", + "type": "string" + }, + "type": { + "description": "Database principal type.", + "type": "string", + "enum": [ + "App", + "Group", + "User" + ], + "x-ms-enum": { + "name": "DatabasePrincipalType", + "modelAsString": true + } + }, + "fqn": { + "description": "Database principal fully qualified name.", + "type": "string" + }, + "email": { + "description": "Database principal email if exists.", + "type": "string" + }, + "appId": { + "description": "Application id - relevant only for application principal type.", + "type": "string" + }, + "tenantName": { + "type": "string", + "readOnly": true, + "description": "The tenant name of the principal" + } + }, + "description": "A class representing database principal entity." + }, + "ClusterListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Cluster" + }, + "description": "The list of Kusto clusters." + } + }, + "description": "The list Kusto clusters operation response." + }, + "DatabaseListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Database" + }, + "description": "The list of Kusto databases." + } + }, + "description": "The list Kusto databases operation response." + }, + "DatabasePrincipalListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DatabasePrincipal" + }, + "description": "The list of Kusto database principals." + } + }, + "description": "The list Kusto database principals operation response." + }, + "DataConnection": { + "required": [ + "kind" + ], + "properties": { + "location": { + "type": "string", + "description": "Resource location." + }, + "kind": { + "description": "Kind of the endpoint for the data connection", + "enum": [ + "EventHub", + "EventGrid", + "IotHub" + ], + "type": "string", + "x-ms-enum": { + "name": "Kind", + "modelAsString": true + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Class representing an data connection.", + "discriminator": "kind" + }, + "DataConnectionValidationResult": { + "type": "object", + "properties": { + "errorMessage": { + "type": "string", + "description": "A message which indicates a problem in data connection validation." + } + }, + "description": "The result returned from a data connection validation request." + }, + "DatabasePrincipalListRequest": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DatabasePrincipal" + }, + "description": "The list of Kusto database principals." + } + }, + "description": "The list Kusto database principals operation request." + }, + "DataConnectionValidation": { + "properties": { + "dataConnectionName": { + "type": "string", + "description": "The name of the data connection." + }, + "properties": { + "$ref": "#/definitions/DataConnection", + "description": "The data connection properties to validate." + } + }, + "description": "Class representing an data connection validation." + }, + "EventHubDataConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The Event Hub data connection properties to validate.", + "$ref": "#/definitions/EventHubConnectionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/DataConnection" + } + ], + "description": "Class representing an event hub data connection.", + "x-ms-discriminator-value": "EventHub" + }, + "IotHubDataConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The Iot Hub data connection properties.", + "$ref": "#/definitions/IotHubConnectionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/DataConnection" + } + ], + "description": "Class representing an iot hub data connection.", + "x-ms-discriminator-value": "IotHub" + }, + "EventGridDataConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of the Event Grid data connection.", + "$ref": "#/definitions/EventGridConnectionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/DataConnection" + } + ], + "description": "Class representing an Event Grid data connection.", + "x-ms-discriminator-value": "EventGrid" + }, + "DataConnectionValidationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DataConnectionValidationResult" + }, + "description": "The list of Kusto data connection validation errors." + } + }, + "description": "The list Kusto data connection validation result." + }, + "DataConnectionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DataConnection" + }, + "description": "The list of Kusto data connections." + } + }, + "description": "The list Kusto data connections operation response." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "An error response from Kusto." + } + }, + "description": "An error response from Kusto." + }, + "ClusterCheckNameRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Cluster name." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Kusto/clusters" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": false + }, + "description": "The type of resource, Microsoft.Kusto/clusters." + } + }, + "required": [ + "name", + "type" + ], + "description": "The result returned from a cluster check name availability request." + }, + "DatabaseCheckNameRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Database name." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Kusto/clusters/databases" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": false + }, + "description": "The type of resource, Microsoft.Kusto/clusters/databases." + } + }, + "required": [ + "name", + "type" + ], + "description": "The result returned from a database check name availability request." + }, + "DataConnectionCheckNameRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Data Connection name." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Kusto/clusters/databases/dataConnections" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": false + }, + "description": "The type of resource, Microsoft.Kusto/clusters/databases/dataConnections." + } + }, + "required": [ + "name", + "type" + ], + "description": "The result returned from a data connections check name availability request." + }, + "CheckNameResult": { + "type": "object", + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "Specifies a Boolean value that indicates if the name is available." + }, + "name": { + "type": "string", + "description": "The name that was checked." + }, + "message": { + "type": "string", + "description": "Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated." + }, + "reason": { + "type": "string", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "reason", + "modelAsString": true + }, + "description": "Message providing the reason why the given name is invalid." + } + }, + "description": "The result returned from a check name availability request." + }, + "ListResourceSkusResult": { + "description": "List of available SKUs for a Kusto Cluster.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { "$ref": "#/definitions/AzureResourceSku" }, + "description": "The collection of available SKUs for an existing resource." + } + } + }, + "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 Kusto." + }, + "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." + } + } + }, + "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.", + "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", + "x-ms-client-flatten": true + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Gets 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." + }, + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "description": "The name of the Kusto cluster.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ResourceGroupParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group containing the Kusto cluster.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "DatabaseNameParameter": { + "name": "databaseName", + "in": "path", + "description": "The name of the database in the Kusto cluster.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "DataConnectionNameParameter": { + "name": "dataConnectionName", + "in": "path", + "description": "The name of the data connection.", + "required": true, + "type": "string", + "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" + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/readme.go.md b/specification/azure-kusto/resource-manager/readme.go.md index 014c133476b6..6480b280f3ec 100644 --- a/specification/azure-kusto/resource-manager/readme.go.md +++ b/specification/azure-kusto/resource-manager/readme.go.md @@ -15,6 +15,7 @@ go: batch: - tag: package-2018-09-07-preview - tag: package-2019-01-21 + - tag: package-2019-05-15 ``` ### Tag: package-2018-09-07-preview and go @@ -24,13 +25,4 @@ Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-2019-01-21' && $(go) -output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2019-01-21/$(namespace) -``` +``` \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/readme.md b/specification/azure-kusto/resource-manager/readme.md index cbae1bf37ac6..92721beb74fa 100644 --- a/specification/azure-kusto/resource-manager/readme.md +++ b/specification/azure-kusto/resource-manager/readme.md @@ -28,15 +28,21 @@ These are the global settings for the Kusto API. title: KustoManagementClient description: The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases. openapi-type: arm -tag: package-2019-01-21 +tag: package-2019-05-15 directive: - - where: - - $.definitions.DataConnection.required - suppress: - - R2016 - reason: - - Implements kind which is required also in patch + - suppress: R2016 + from: kusto.json + where: $.definitions.DataConnection.required + reason: Implements kind which is required also in patch +``` +### Tag: package-2019-05-15 + +These settings apply only when `--tag=package-2019-05-15` is specified on the command line. + +``` yaml $(tag) == 'package-2019-05-15' +input-file: + - Microsoft.Kusto/stable/2019-05-15/kusto.json ``` ### Tag: package-2019-01-21 @@ -66,6 +72,17 @@ input-file: - Microsoft.Kusto/preview/2017-09-07-privatepreview/kusto.json ``` +### Tag: schema-2019-05-15 + +These settings apply only when `--tag=schema-2019-05-15` is specified on the command line. + +These can be regenerated by running the following PowerShell script from this readme file's folder: `dir .\Microsoft.Kusto\preview\2018-09-07-preview\ -File | Resolve-Path -Relative | % { " - $_".Replace("\", "/") }` + +``` yaml $(tag) == 'schema-2019-05-15' +input-file: + - Microsoft.Kusto/stable/2019-05-15/kusto.json +``` + ### Tag: schema-2019-01-21 These settings apply only when `--tag=schema-2019-01-21` is specified on the command line. @@ -109,6 +126,7 @@ 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-go - repo: azure-sdk-for-java @@ -124,7 +142,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.Kusto - output-folder: $(csharp-sdks-folder)/kusto/Microsoft.Azure.Management.Kusto/src/Generated + output-folder: $(csharp-sdks-folder)/Kusto/Management.Kusto/Generated clear-output-folder: true ``` @@ -148,6 +166,7 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-kusto batch: - tag: package-2018-09-07-preview - tag: package-2019-01-21 + - tag: package-2019-05-15 ``` ### Tag: package-2018-09-07-preview and java @@ -175,3 +194,43 @@ java: regenerate-manager: true generate-interface: true ``` + +### Tag: package-2019-05-15 and java + +These settings apply only when `--tag=package-2019-05-15 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2019-05-15' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.kusto.v2019_05_15 + output-folder: $(azure-libraries-for-java-folder)/kusto/resource-manager/v2019_05_15 +regenerate-manager: true +generate-interface: 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)/Microsoft.Kusto/stable/2019-05-15/kusto.json + - $(this-folder)/Microsoft.Kusto/stable/2019-01-21/kusto.json + - $(this-folder)/Microsoft.Kusto/preview/2018-09-07-preview/kusto.json + - $(this-folder)/Microsoft.Kusto/preview/2017-09-07-privatepreview/kusto.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/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2017-04-01/examples/deleteDiagnosticSetting.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2017-04-01/examples/deleteDiagnosticSetting.json index c6032509e39d..564f6f8b6ad3 100644 --- a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2017-04-01/examples/deleteDiagnosticSetting.json +++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2017-04-01/examples/deleteDiagnosticSetting.json @@ -4,13 +4,7 @@ "api-version": "2017-04-01" }, "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/azureactivedirectory/resource-manager/readme.go.md b/specification/azureactivedirectory/resource-manager/readme.go.md index 31c7d4e105d5..481bfe010359 100644 --- a/specification/azureactivedirectory/resource-manager/readme.go.md +++ b/specification/azureactivedirectory/resource-manager/readme.go.md @@ -5,15 +5,22 @@ These settings apply only when `--go` is specified on the command line. ```yaml $(go) go: license-header: MICROSOFT_APACHE_NO_VERSION + namespace: aad clear-output-folder: true ``` +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2017-04-01 +``` + ### Tag: package-2017-04-01 and go These settings apply only when `--tag=package-2017-04-01 --go` is specified on the command line. -Please also specify `--go-sdks-folder=`. +Please also specify `--go-sdk-folder=`. ```yaml $(tag) == 'package-2017-04-01' && $(go) -namespace: Microsoft.Aadiam -output-folder: $(go-sdks-folder)/azureactivedirectory/Generated +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2017-04-01/$(namespace) ``` diff --git a/specification/azureactivedirectory/resource-manager/readme.md b/specification/azureactivedirectory/resource-manager/readme.md index dd3a42717998..b1d96fb51aa0 100644 --- a/specification/azureactivedirectory/resource-manager/readme.md +++ b/specification/azureactivedirectory/resource-manager/readme.md @@ -49,6 +49,7 @@ 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 @@ -77,3 +78,28 @@ 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.Aadiam/stable/2017-04-01/azureactivedirectory.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/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/azuredata.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/azuredata.json new file mode 100644 index 000000000000..17a247101e52 --- /dev/null +++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/azuredata.json @@ -0,0 +1,873 @@ +{ + "swagger": "2.0", + "info": { + "version": "2017-03-01-preview", + "title": "AzureDataManagementClient", + "description": "The AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources. For example, register, delete and retrieve a SQL Server, SQL Server registration." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/providers/Microsoft.AzureData/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available SQL Server Registration API operations.", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved operations.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "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 * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Lists all of the available SQL Server Registration API operations.": { + "$ref": "./examples/ListOperation.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}": { + "get": { + "tags": [ + "SqlServerRegistrations" + ], + "description": "Gets a SQL Server registration.", + "operationId": "SqlServerRegistrations_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlServerRegistrationName", + "in": "path", + "description": "Name of the SQL Server registration.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the SQL Server registration.", + "schema": { + "$ref": "#/definitions/SqlServerRegistration" + } + }, + "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 * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + } + }, + "x-ms-examples": { + "Gets a SQL Server registration.": { + "$ref": "./examples/GetSqlServerRegistration.json" + } + } + }, + "put": { + "tags": [ + "SqlServerRegistrations" + ], + "description": "Creates or updates a SQL Server registration.", + "operationId": "SqlServerRegistrations_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlServerRegistrationName", + "in": "path", + "description": "Name of the SQL Server registration.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The SQL Server registration to be created or updated.", + "required": true, + "schema": { + "$ref": "#/definitions/SqlServerRegistration" + } + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the SQL Server registration.", + "schema": { + "$ref": "#/definitions/SqlServerRegistration" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 TinaGroupUpdateFailVmAttached - SQL Server registration cannot be updated as it has attached a SQL Server.\n\n * 400 InvalidSqlImageOffer - Provided SQL image offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, file share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account url.\n\n * 400 TinaGroupNameTooLong - SQL Server registration name cannot exceed 15 characters.\n\n * 400 InvalidTinaGroupName - Invalid SQL Server registration name.\n\n * 400 TinaGroupNotEmpty - SQL Server registration is not empty.\n\n * 400 TinaGroupUpdateNotAllowed - Update to SQL Server registration is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveTINAGroupInResourceGroup - Subscription does not have SQL Server registration in resource group.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + }, + "201": { + "description": "Successfully created the SQL Server registration.", + "schema": { + "$ref": "#/definitions/SqlServerRegistration" + } + } + }, + "x-ms-examples": { + "Creates or updates a SQL Server registration.": { + "$ref": "./examples/CreateOrUpdateSqlServerRegistration.json" + } + } + }, + "delete": { + "tags": [ + "SqlServerRegistrations" + ], + "description": "Deletes a SQL Server registration.", + "operationId": "SqlServerRegistrations_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlServerRegistrationName", + "in": "path", + "description": "Name of the SQL Server registration.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the SQL Server registration." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 TinaGroupUpdateFailVmAttached - SQL Server registration cannot be updated as it has attached a SQL Server.\n\n * 400 InvalidSqlImageOffer - Provided SQL image offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, file share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account url.\n\n * 400 TinaGroupNameTooLong - SQL Server registration name cannot exceed 15 characters.\n\n * 400 InvalidTinaGroupName - Invalid SQL Server registration name.\n\n * 400 TinaGroupNotEmpty - SQL Server registration is not empty.\n\n * 400 TinaGroupUpdateNotAllowed - Update to SQL Server registration is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveTINAGroupInResourceGroup - Subscription does not have SQL Server registration in resource group.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + }, + "204": { + "description": "The specified SQL Server registration does not exist." + } + }, + "x-ms-examples": { + "Deletes a SQL Server registration.": { + "$ref": "./examples/DeleteSqlServerRegistration.json" + } + } + }, + "patch": { + "tags": [ + "SqlServerRegistrations" + ], + "description": "Updates SQL Server Registration tags.", + "operationId": "SqlServerRegistrations_Update", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlServerRegistrationName", + "in": "path", + "description": "Name of the SQL Server registration.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The SQL Server Registration.", + "required": true, + "schema": { + "$ref": "#/definitions/SqlServerRegistrationUpdate" + } + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the SQL Server Registration.", + "schema": { + "$ref": "#/definitions/SqlServerRegistration" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + } + }, + "x-ms-examples": { + "Updates a SQL Server Registration tags.": { + "$ref": "./examples/UpdateSqlServerRegistration.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations": { + "get": { + "tags": [ + "SqlServerRegistrations" + ], + "description": "Gets all SQL Server registrations in a resource group.", + "operationId": "SqlServerRegistrations_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all SQL Server registrations in the resource group.", + "schema": { + "$ref": "#/definitions/SqlServerRegistrationListResult" + } + }, + "default": { + "description": "*** Error Responses: ***" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets all SQL Server registrations in a resource group.": { + "$ref": "./examples/ListByResourceGroupSqlServerRegistration.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureData/sqlServerRegistrations": { + "get": { + "tags": [ + "SqlServerRegistrations" + ], + "description": "Gets all SQL Server registrations in a subscription.", + "operationId": "SqlServerRegistrations_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all SQL Server registrations in the subscription.", + "schema": { + "$ref": "#/definitions/SqlServerRegistrationListResult" + } + }, + "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." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets all SQL Server registrations in a subscription.": { + "$ref": "./examples/ListSubscriptionSqlServerRegistration.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}/sqlServers/{sqlServerName}": { + "get": { + "tags": [ + "SqlServers" + ], + "description": "Gets a SQL Server.", + "operationId": "SqlServers_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlServerRegistrationName", + "in": "path", + "description": "Name of the SQL Server registration.", + "required": true, + "type": "string" + }, + { + "name": "sqlServerName", + "in": "path", + "description": "Name of the SQL Server.", + "required": true, + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "The child resources to include in the response.", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the SQL Server.", + "schema": { + "$ref": "#/definitions/SqlServer" + } + }, + "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 * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + } + }, + "x-ms-examples": { + "Gets a SQL Server.": { + "$ref": "./examples/GetSqlServer.json" + } + } + }, + "put": { + "tags": [ + "SqlServers" + ], + "description": "Creates or updates a SQL Server.", + "operationId": "SqlServers_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlServerRegistrationName", + "in": "path", + "description": "Name of the SQL Server registration.", + "required": true, + "type": "string" + }, + { + "name": "sqlServerName", + "in": "path", + "description": "Name of the SQL Server.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The SQL Server to be created or updated.", + "required": true, + "schema": { + "$ref": "#/definitions/SqlServer" + } + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the SQL Server.", + "schema": { + "$ref": "#/definitions/SqlServer" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - Server resource id property cannot be updated.\n\n * 400 TinaAlreadyIncludedInGroup - SQL Server cannot be moved from one group to another in same operation.\n\n * 400 TinaCannotRemoveFromGroup - SQL Server cannot be removed from group.\n\n * 400 VmLocationMismatch - VM location does not match that of SQL Server.\n\n * 400 SqlSkuMismatchWithGroup - SQL sku set on the SQL Server registration does not match that of the SQL Server.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 SingleNicOnVmAllowed - Only Single NIC Servers are allowed.\n\n * 400 InvalidTinaGroupResourceIdParameterValue - SQL Server registration resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL Server and SQL Server registration are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for domain credentials property.\n\n * 400 BYOLChangeToPAYGNotSupported - The conversion from AHUB to PAYG is not supported for BYOL images\n\n * 400 InvalidVmResourceIdParameterValue - Provided Server resource id is not valid.\n\n * 400 MismatchInTinaAndVmResourceIdSubscription - Mismatch in subscription id for SQL Server and Server resource id property.\n\n * 400 MismatchTinaAndVmName - SQL Server name is not same as the Server name provided on ServerResourceId property.\n\n * 400 MismatchTinaAndVmRgName - SQL Server resource group name is not same as the Server resource group name provided on ServerResourceId property.\n\n * 400 NotSupportedTinaOSVersion - Server OS type is not Windows. Only Windows OS versions are supported\n\n * 400 VmNotRunning - The VM is not in running state.\n\n * 400 VmAgentNotRunning - The VM agent is not installed or in running state.\n\n * 400 SqlExtNotInstalled - Sql Iaas Extension is not installed on Server.\n\n * 400 PAYGNotSupportedForNonGalleryVM - License type PAYG is invalid for this Server as this was not created from Azure marketplace image.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SQL Server registration.\n\n * 400 VmOSVersionMismatchWithGroup - OS version mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as auto backup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup storage credentials are not specified.\n\n * 400 KeyVaultCredentialsNotSpecified - Key vault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - SQL Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete SQL storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveTINAGroupInResourceGroup - Subscription does not have SQL Server registration in resource group.\n\n * 404 SubscriptionDoesNotHaveTINAInResourceGroup - Subscription does not have SQL Server Instance in resource group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + }, + "201": { + "description": "Successfully created the SQL Server.", + "schema": { + "$ref": "#/definitions/SqlServer" + } + } + }, + "x-ms-examples": { + "Creates or updates a SQL Server in a Registration group.": { + "$ref": "./examples/CreateOrUpdateSqlServerWithRegistrationGroup.json" + } + } + }, + "delete": { + "tags": [ + "SqlServers" + ], + "description": "Deletes a SQL Server.", + "operationId": "SqlServers_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlServerRegistrationName", + "in": "path", + "description": "Name of the SQL Server registration.", + "required": true, + "type": "string" + }, + { + "name": "sqlServerName", + "in": "path", + "description": "Name of the SQL Server.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the SQL Server." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - Server resource id property cannot be updated.\n\n * 400 TinaAlreadyIncludedInGroup - SQL Server cannot be moved from one group to another in same operation.\n\n * 400 TinaCannotRemoveFromGroup - SQL Server cannot be removed from group.\n\n * 400 VmLocationMismatch - VM location does not match that of SQL Server.\n\n * 400 SqlSkuMismatchWithGroup - SQL sku set on the SQL Server registration does not match that of the SQL Server.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 SingleNicOnVmAllowed - Only Single NIC Servers are allowed.\n\n * 400 InvalidTinaGroupResourceIdParameterValue - SQL Server registration resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL Server and SQL Server registration are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for domain credentials property.\n\n * 400 BYOLChangeToPAYGNotSupported - The conversion from AHUB to PAYG is not supported for BYOL images\n\n * 400 InvalidVmResourceIdParameterValue - Provided Server resource id is not valid.\n\n * 400 MismatchInTinaAndVmResourceIdSubscription - Mismatch in subscription id for SQL Server and Server resource id property.\n\n * 400 MismatchTinaAndVmName - SQL Server name is not same as the Server name provided on ServerResourceId property.\n\n * 400 MismatchTinaAndVmRgName - SQL Server resource group name is not same as the Server resource group name provided on ServerResourceId property.\n\n * 400 NotSupportedTinaOSVersion - Server OS type is not Windows. Only Windows OS versions are supported\n\n * 400 VmNotRunning - The VM is not in running state.\n\n * 400 VmAgentNotRunning - The VM agent is not installed or in running state.\n\n * 400 SqlExtNotInstalled - Sql Iaas Extension is not installed on Server.\n\n * 400 PAYGNotSupportedForNonGalleryVM - License type PAYG is invalid for this Server as this was not created from Azure marketplace image.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SQL Server registration.\n\n * 400 VmOSVersionMismatchWithGroup - OS version mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as auto backup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup storage credentials are not specified.\n\n * 400 KeyVaultCredentialsNotSpecified - Key vault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - SQL Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete SQL storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveTINAGroupInResourceGroup - Subscription does not have SQL Server registration in resource group.\n\n * 404 SubscriptionDoesNotHaveTINAInResourceGroup - Subscription does not have SQL Server Instance in resource group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + }, + "204": { + "description": "The specified SQL Server does not exist." + } + }, + "x-ms-examples": { + "Deletes a SQL Server.": { + "$ref": "./examples/DeleteSqlServer.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}/sqlServers": { + "get": { + "tags": [ + "SqlServers" + ], + "description": "Gets all SQL Servers in a SQL Server Registration.", + "operationId": "SqlServers_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlServerRegistrationName", + "in": "path", + "description": "Name of the SQL Server registration.", + "required": true, + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "The child resources to include in the response.", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all SQL Servers in the SQL Server Registration.", + "schema": { + "$ref": "#/definitions/SqlServerListResult" + } + }, + "default": { + "description": "*** Error Responses: ***" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets all SQL Servers in a SQL Server Registration.": { + "$ref": "./examples/ListByResourceGroupSqlServer.json" + } + } + } + } + }, + "definitions": { + "OperationListResult": { + "description": "Result of the request to list SQL operations.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "Operation": { + "description": "SQL REST API operation definition.", + "type": "object", + "properties": { + "name": { + "description": "The name of the operation being performed on this particular object.", + "type": "string", + "readOnly": true + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "description": "The localized display information for this particular operation / action.", + "readOnly": true + }, + "origin": { + "description": "The intended executor of the operation.", + "enum": [ + "user", + "system" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "OperationOrigin", + "modelAsString": true + } + }, + "properties": { + "description": "Additional descriptions for the operation.", + "type": "object", + "additionalProperties": { + "type": "object" + }, + "readOnly": true, + "x-ms-client-flatten": false + } + } + }, + "OperationDisplay": { + "description": "Display metadata associated with the operation.", + "type": "object", + "properties": { + "provider": { + "description": "The localized friendly form of the resource provider name.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "The localized friendly form of the resource type related to this action/operation.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "The localized friendly name for the operation.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "The localized friendly description for the operation.", + "type": "string", + "readOnly": true + } + } + }, + "SqlServerRegistrationProperties": { + "description": "The SQL server Registration properties.", + "type": "object", + "properties": { + "subscriptionId": { + "format": "uuid", + "description": "Subscription Id", + "type": "string" + }, + "resourceGroup": { + "description": "Resource Group Name", + "type": "string" + }, + "propertyBag": { + "description": "Optional Properties as JSON string", + "type": "string" + } + } + }, + "Resource": { + "description": "ARM resource.", + "type": "object", + "properties": { + "id": { + "description": "Resource ID.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource type.", + "type": "string", + "readOnly": true + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "ARM tracked top level resource.", + "required": [ + "location" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "location": { + "description": "Resource location.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "SqlServerRegistration": { + "description": "A SQL server registration.", + "required": [ + "location" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/SqlServerRegistrationProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "SqlServerRegistrationUpdate": { + "description": "An update to a SQL Server Registration.", + "type": "object", + "properties": { + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "SqlServerRegistrationListResult": { + "description": "Server.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/SqlServerRegistration" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "SqlServerProperties": { + "description": "The SQL server properties.", + "type": "object", + "properties": { + "cores": { + "format": "int32", + "description": "Cores of the Sql Server.", + "type": "integer", + "x-ms-mutability": [ + "update" + ] + }, + "version": { + "description": "Version of the Sql Server.", + "type": "string" + }, + "edition": { + "description": "Sql Server Edition.", + "type": "string" + }, + "registrationID": { + "description": "ID for Parent Sql Server Registration.", + "type": "string" + }, + "propertyBag": { + "description": "Sql Server Json Property Bag.", + "type": "string" + } + } + }, + "ProxyResource": { + "description": "ARM proxy resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": {} + }, + "SqlServer": { + "description": "A SQL server.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/SqlServerProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "SqlServerListResult": { + "description": "A list of SQL servers.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/SqlServer" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Subscription ID that identifies an Azure subscription.", + "required": true, + "type": "string", + "x-ms-parameter-location": "client" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "API version to use for the request.", + "required": true, + "type": "string", + "x-ms-parameter-location": "client" + }, + "ResourceGroupParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "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" + }, + "SqlServerNameParameter": { + "name": "SqlServerName", + "in": "path", + "description": "Name of the Sql Server.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "SqlServerRegistrationNameParameter": { + "name": "SqlServerRegistrationNameParameter", + "in": "path", + "description": "Name of the Sql Server registration.", + "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" + } + } + } +} \ No newline at end of file diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/CreateOrUpdateSqlServerRegistration.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/CreateOrUpdateSqlServerRegistration.json new file mode 100644 index 000000000000..e32fcfcf8b77 --- /dev/null +++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/CreateOrUpdateSqlServerRegistration.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlServerRegistrationName": "testsqlregistration", + "api-version": "2017-03-01-preview", + "parameters": { + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "properties": { + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration", + "name": "testsqlregistration", + "type": "Microsoft.AzureData/SqlServerRegistrations" + } + }, + "201": { + "body": { + "properties": { + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration", + "name": "testsqlregistration", + "type": "Microsoft.AzureData/SqlServerRegistrations" + } + } + } +} diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/CreateOrUpdateSqlServerWithRegistrationGroup.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/CreateOrUpdateSqlServerWithRegistrationGroup.json new file mode 100644 index 000000000000..a66741032d70 --- /dev/null +++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/CreateOrUpdateSqlServerWithRegistrationGroup.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlServerRegistrationName": "testsqlregistration", + "sqlServerName": "testsqlserver", + "api-version": "2017-03-01-preview", + "parameters": { + "properties": { + "cores": 8, + "version": "2008", + "edition": "Latin", + "propertyBag": "", + "registrationID": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "cores": 8, + "version": "2008", + "edition": "Latin", + "propertyBag": "", + "registrationID": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration/sqlServers/testsqlserver", + "name": "testsqlserver", + "type": "Microsoft.AzureData/SqlServerRegistrations/SqlServers" + } + }, + "201": { + "body": { + "properties": { + "cores": 8, + "version": "2008", + "edition": "Latin", + "propertyBag": "", + "registrationID": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration/sqlServers/testsqlserver", + "name": "testsqlserver", + "type": "Microsoft.AzureData/SqlServerRegistrations/SqlServers" + } + } + } +} diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/DeleteSqlServer.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/DeleteSqlServer.json new file mode 100644 index 000000000000..07e0011bf82d --- /dev/null +++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/DeleteSqlServer.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlServerRegistrationName": "testsqlregistration", + "sqlServerName": "testsqlserver", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/DeleteSqlServerRegistration.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/DeleteSqlServerRegistration.json new file mode 100644 index 000000000000..f02ec7b7c364 --- /dev/null +++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/DeleteSqlServerRegistration.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlServerRegistrationName": "testsqlregistration", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/GetSqlServer.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/GetSqlServer.json new file mode 100644 index 000000000000..8a8fb708969b --- /dev/null +++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/GetSqlServer.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlServerRegistrationName": "testsqlregistration", + "sqlServerName": "testsqlserver", + "api-version": "2017-03-01-preview", + "parameters": { + } + }, + "responses": { + "200": { + "body": { + "properties": { + "cores": 8, + "version": "2008", + "edition": "Latin", + "propertyBag": "", + "registrationID": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration/sqlServers/testsqlserver", + "name": "testsqlserver", + "type": "Microsoft.AzureData/SqlServerRegistrations/SqlServers" + } + } + } +} diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/GetSqlServerRegistration.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/GetSqlServerRegistration.json new file mode 100644 index 000000000000..a8d423d4bd79 --- /dev/null +++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/GetSqlServerRegistration.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlServerRegistrationName": "testsqlregistration", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration", + "name": "testsqlregistration", + "type": "Microsoft.AzureData/SqlServerRegistrations" + } + } + } +} diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/ListByResourceGroupSqlServer.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/ListByResourceGroupSqlServer.json new file mode 100644 index 000000000000..5d7b4d5643f8 --- /dev/null +++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/ListByResourceGroupSqlServer.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlServerRegistrationName": "testsqlregistration", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "cores": 8, + "version": "2008", + "edition": "Latin", + "propertyBag": "", + "registrationID": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration/sqlServers/testsqlserver1", + "name": "testsqlserver1", + "type": "Microsoft.AzureData/SqlServerRegistrations/SqlServers" + }, + { + "properties": { + "cores": 16, + "version": "2008", + "edition": "Latin", + "propertyBag": "", + "registrationID": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration/sqlServers/testsqlserver2", + "name": "testsqlserver2", + "type": "Microsoft.AzureData/SqlServerRegistrations/SqlServers" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/ListByResourceGroupSqlServerRegistration.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/ListByResourceGroupSqlServerRegistration.json new file mode 100644 index 000000000000..36cf73198939 --- /dev/null +++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/ListByResourceGroupSqlServerRegistration.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration1", + "name": "testsqlregistration1", + "type": "Microsoft.AzureData/SqlServerRegistrations" + }, + { + "properties": { + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration2", + "name": "testsqlregistration2", + "type": "Microsoft.AzureData/SqlServerRegistrations" + } + ] + } + } + } +} diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/ListOperation.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/ListOperation.json new file mode 100644 index 000000000000..e0efb65e7bb6 --- /dev/null +++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/ListOperation.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.AzureData/sqlServerRegistrations/read", + "display": { + "resource": "SQL Server Registration", + "operation": "Get SQL Server Registration details", + "description": "Retrives details of SQL Server Registration" + } + }, + { + "name": "Microsoft.AzureData/sqlServerRegistrations/write", + "display": { + "resource": "SQL Server Registration", + "operation": "Create a new or update existing SQL Server Registration", + "description": "Create a new or change properties of existing SQL Server Registration" + } + }, + { + "name": "Microsoft.AzureData/sqlServerRegistrations/delete", + "display": { + "resource": "SQL Server Registration", + "operation": "Delete existing SQL Server Registration", + "description": "Delete existing SQL Server Registration" + } + }, + { + "name": "Microsoft.AzureData/operations/read", + "display": { + "resource": "Available REST operations" + } + }, + { + "name": "Microsoft.AzureData/sqlServers/read", + "display": { + "operation": "Get SQL Server Instance details", + "description": "Retrieves details of SQL Server" + } + }, + { + "name": "Microsoft.AzureData/sqlServers/write", + "display": { + "operation": "Create new or update existing SQL Server", + "description": "Create a new or change properties of existing SQL Server" + } + }, + { + "name": "Microsoft.AzureData/sqlServers/delete", + "display": { + "operation": "Delete exisiting SQL Server", + "description": "Delete exisiting SQL Server" + } + } + ] + } + } + } +} diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/ListSubscriptionSqlServerRegistration.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/ListSubscriptionSqlServerRegistration.json new file mode 100644 index 000000000000..bcd3a7643406 --- /dev/null +++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/ListSubscriptionSqlServerRegistration.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration1", + "name": "testsqlregistration1", + "type": "Microsoft.AzureData/SqlServerRegistrations" + }, + { + "properties": { + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration2", + "name": "testsqlregistration2", + "type": "Microsoft.AzureData/SqlServerRegistrations" + } + ] + } + } + } +} diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/UpdateSqlServerRegistration.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/UpdateSqlServerRegistration.json new file mode 100644 index 000000000000..ea705df46dd8 --- /dev/null +++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2017-03-01-preview/examples/UpdateSqlServerRegistration.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlServerRegistrationName": "testsqlregistration", + "api-version": "2017-03-01-preview", + "parameters": { + "tags": { + "mytag": "myval" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration", + "name": "testsqlregistration", + "type": "Microsoft.AzureData/SqlServerRegistrations" + } + } + } +} diff --git a/specification/azuredata/resource-manager/readme.csharp.md b/specification/azuredata/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..c811c61c8082 --- /dev/null +++ b/specification/azuredata/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.Azure.Management.AzureData + output-folder: $(csharp-sdks-folder)/azuredata/Microsoft.Azure.Management.AzureData/src/Generated +``` diff --git a/specification/azuredata/resource-manager/readme.go.md b/specification/azuredata/resource-manager/readme.go.md new file mode 100644 index 000000000000..470d5832ef28 --- /dev/null +++ b/specification/azuredata/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-2017-03-01-preview and go + +These settings apply only when `--tag=package-2017-03-01-preview --go` is specified on the command line. +Please also specify `--go-sdks-folder=`. + +```yaml $(tag) == 'package-2017-03-01-preview' && $(go) +namespace: Microsoft.AzureData +output-folder: $(go-sdks-folder)/services/preview/$(namespace)/mgmt/2017-03-01-preview/$(namespace) +``` diff --git a/specification/azuredata/resource-manager/readme.md b/specification/azuredata/resource-manager/readme.md new file mode 100644 index 000000000000..6a9b276de974 --- /dev/null +++ b/specification/azuredata/resource-manager/readme.md @@ -0,0 +1,80 @@ +# azuredata + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for azuredata. + +## 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 azuredata. + +```yaml +openapi-type: arm +tag: package-2017-03-01-preview +``` + +### Tag: package-2017-03-01-preview + +These settings apply only when `--tag=package-2017-03-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2017-03-01-preview' +input-file: + - Microsoft.AzureData/preview/2017-03-01-preview/azuredata.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-net + - repo: azure-sdk-for-ruby + after_scripts: + - bundle install && rake arm:regen_all_profiles['azure_mgmt_azuredata'] +``` + +## 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/azuredata/resource-manager/readme.python.md b/specification/azuredata/resource-manager/readme.python.md new file mode 100644 index 000000000000..bf6a13faa44e --- /dev/null +++ b/specification/azuredata/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.AzureData + package-name: azuredata + package-version: 2017-03-01-preview + clear-output-folder: true +``` + +```yaml $(python) +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt/azuredata +``` diff --git a/specification/azuredata/resource-manager/readme.ruby.md b/specification/azuredata/resource-manager/readme.ruby.md new file mode 100644 index 000000000000..29cb0b76fa8f --- /dev/null +++ b/specification/azuredata/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_azuredata +package-version: 2017-03-01-preview +azure-arm: true +``` + +### Tag: package-2017-03-01-preview and ruby + +These settings apply only when `--tag=package-2017-03-01-preview --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +```yaml $(tag) == 'package-2017-03-01-preview' && $(ruby) +namespace: Microsoft.AzureData +output-folder: $(ruby-sdks-folder)/azuredata +``` diff --git a/specification/azuredata/resource-manager/readme.typescript.md b/specification/azuredata/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..c1e4a949375e --- /dev/null +++ b/specification/azuredata/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: "azuredata" + output-folder: "$(typescript-sdks-folder)/packages/azuredata" + payload-flattening-threshold: 1 + generate-metadata: true +``` diff --git a/specification/azurestack/resource-manager/readme.md b/specification/azurestack/resource-manager/readme.md index 60d2ed7bcc4a..90e5770f6317 100644 --- a/specification/azurestack/resource-manager/readme.md +++ b/specification/azurestack/resource-manager/readme.md @@ -89,7 +89,7 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.AzureStack payload-flattening-threshold: 1 - output-folder: $(csharp-sdks-folder)/AzureStack/Management.AzureStack/Generated + output-folder: $(csharp-sdks-folder)/azurestack/Microsoft.Azure.Management.AzureStack/src/Generated clear-output-folder: true ``` @@ -132,3 +132,31 @@ generate-interface: 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)/Microsoft.AzureStack/stable/2017-06-01/AzureStack.json + - $(this-folder)/Microsoft.AzureStack/stable/2017-06-01/Product.json + - $(this-folder)/Microsoft.AzureStack/stable/2017-06-01/Registration.json + - $(this-folder)/Microsoft.AzureStack/stable/2017-06-01/CustomerSubscription.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/batch/data-plane/Microsoft.Batch/stable/2015-12-01.2.2/BatchService.json b/specification/batch/data-plane/Microsoft.Batch/stable/2015-12-01.2.2/BatchService.json index 009f63beeb0a..500f854fe1b9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2015-12-01.2.2/BatchService.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2015-12-01.2.2/BatchService.json @@ -1147,7 +1147,7 @@ "default": 30, "description": "Sets the maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", "x-ms-parameter-grouping": { - "postfix": "Options" + "postfix": "Options" } }, { @@ -8554,7 +8554,7 @@ "description": "Gets the OData id of the resource to which the request applied.", "type": "string" } - }, + }, "description": "" }, "default": { @@ -9183,7 +9183,15 @@ "description": "Gets or sets the cross data center network egress in GiB from the pool during this interval." } }, - "required": ["poolId","startTime","endTime","vmSize","totalCoreHours","dataIngressGiB","dataEgressGiB"], + "required": [ + "poolId", + "startTime", + "endTime", + "vmSize", + "totalCoreHours", + "dataIngressGiB", + "dataEgressGiB" + ], "description": "Usage metrics for a pool across an aggregation interval." }, "PoolListPoolUsageMetricsResult": { @@ -9220,7 +9228,11 @@ "description": "Gets or sets the aggregated wall-clock time of the dedicated compute node cores being part of the pool." } }, - "required": ["startTime","lastUpdateTime","dedicatedCoreTime"], + "required": [ + "startTime", + "lastUpdateTime", + "dedicatedCoreTime" + ], "description": "Statistics related to pool usage information." }, "ResourceStatistics": { @@ -9291,7 +9303,21 @@ "description": "Gets or sets the total amount of data in GiB of network writes across all nodes in the pool." } }, - "required": ["startTime","lastUpdateTime","avgCPUPercentage","avgMemoryGiB","peakMemoryGiB","avgDiskGiB","peakDiskGiB","diskReadIOps","diskWriteIOps","diskReadGiB","diskWriteGiB","networkReadGiB","networkWriteGiB"], + "required": [ + "startTime", + "lastUpdateTime", + "avgCPUPercentage", + "avgMemoryGiB", + "peakMemoryGiB", + "avgDiskGiB", + "peakDiskGiB", + "diskReadIOps", + "diskWriteIOps", + "diskReadGiB", + "diskWriteGiB", + "networkReadGiB", + "networkWriteGiB" + ], "description": "Statistics related to resource consumption by compute nodes in a pool." }, "PoolStatistics": { @@ -9319,7 +9345,11 @@ "description": "Gets or sets statistics related to resource consumption by compute nodes in the pool." } }, - "required": ["url","startTime","lastUpdateTime"], + "required": [ + "url", + "startTime", + "lastUpdateTime" + ], "description": "Contains utilization and resource usage statistics for the lifetime of a pool." }, "JobStatistics": { @@ -9394,7 +9424,22 @@ "description": "Gets or sets the total wait time of all the tasks in the job. The wait time for a task is defined as the elapsed time between the creation of the task creation and the start of task execution. This value is reported only in the account lifetime statistics; it is not included in individual job statistics." } }, - "required": ["url","startTime","lastUpdateTime","userCPUTime","kernelCPUTime","wallClockTime","readIOps","writeIOps","readIOGiB","writeIOGiB","numSucceededTasks","numFailedTasks","numTaskRetries","waitTime"], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "description": "Resource usage statistics for a job." }, "NameValuePair": { @@ -9452,7 +9497,10 @@ "deleting", "deletefailed" ], - "x-ms-enum": {"name": "CertificateState", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -9467,7 +9515,10 @@ "deleting", "deletefailed" ], - "x-ms-enum": { "name": "CertificateState", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -9496,7 +9547,9 @@ "description": "Gets or sets the application package version. If not specified, the default is used." } }, - "required": ["applicationId"], + "required": [ + "applicationId" + ], "description": "A reference to an application package to be installed on compute nodes in a pool." }, "ApplicationSummary": { @@ -9516,7 +9569,11 @@ } } }, - "required": ["id", "displayName", "versions"], + "required": [ + "id", + "displayName", + "versions" + ], "description": "Contains information about an application in an Azure Batch account." }, "CertificateAddParameter": { @@ -9541,14 +9598,21 @@ "cer", "unmapped" ], - "x-ms-enum": { "name": "CertificateFormat", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateFormat", + "modelAsString": false + } }, "password": { "type": "string", "description": "Gets or sets the password to access the certificate's private key. This property is not populated by the Get Certificate operation." } }, - "required": ["thumbprint", "thumbprintAlgorithm", "data"], + "required": [ + "thumbprint", + "thumbprintAlgorithm", + "data" + ], "description": "A certificate that can be installed on compute nodes and can be used to authenticate operations on the machine." }, "CertificateListResult": { @@ -9589,7 +9653,10 @@ "description": "Gets or sets the content type of the file." } }, - "required": ["lastModified","contentLength"], + "required": [ + "lastModified", + "contentLength" + ], "description": "The properties of a file on a compute node." }, "NodeFile": { @@ -9856,10 +9923,15 @@ "pack", "unmapped" ], - "x-ms-enum": { "name": "ComputeNodeFillType", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeFillType", + "modelAsString": false + } } }, - "required": ["nodeFillType"], + "required": [ + "nodeFillType" + ], "description": "Specifies how tasks should be distributed across compute nodes." }, "StartTask": { @@ -9916,7 +9988,10 @@ "localmachine", "unmapped" ], - "x-ms-enum": { "name": "CertificateStoreLocation", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateStoreLocation", + "modelAsString": false + } }, "storeName": { "type": "string", @@ -9927,7 +10002,10 @@ "description": "Gets or sets which user accounts on the compute node should have access to the private data of the certificate. This may be any subset of the values 'starttask', 'task' and 'rdp', separated by commas. The default is all accounts, corresponding to the string 'starttask,task,rdp'." } }, - "required": ["thumbprint", "thumbprintAlgorithm"], + "required": [ + "thumbprint", + "thumbprintAlgorithm" + ], "description": "A reference to a certificate to be installed on compute nodes in a pool." }, "MetadataItem": { @@ -10039,7 +10117,10 @@ "job", "unmapped" ], - "x-ms-enum": { "name": "PoolLifetimeOption", "modelAsString": false } + "x-ms-enum": { + "name": "PoolLifetimeOption", + "modelAsString": false + } }, "keepAlive": { "type": "boolean", @@ -10050,7 +10131,9 @@ "description": "Gets or sets the pool specification for the auto pool." } }, - "required": ["poolLifetimeOption"], + "required": [ + "poolLifetimeOption" + ], "description": "Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto pool, run all the tasks for the job on it, and will delete the pool once the job has completed." }, "PoolInformation": { @@ -10222,7 +10305,22 @@ "description": "Gets or sets the total wait time of all the tasks in jobs created under the schedule." } }, - "required": ["url","startTime","lastUpdateTime","userCPUTime","kernelCPUTime","wallClockTime","readIOps","writeIOps","readIOGiB","writeIOGiB","numSucceededTasks","numFailedTasks","numTaskRetries", "waitTime"], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "description": "The lifetime resource usage statistics for a job schedule." }, "CloudJobSchedule": { @@ -10263,7 +10361,10 @@ "terminating", "deleting" ], - "x-ms-enum": { "name": "JobScheduleState", "modelAsString": false } + "x-ms-enum": { + "name": "JobScheduleState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -10280,7 +10381,10 @@ "terminating", "deleting" ], - "x-ms-enum": { "name": "JobScheduleState", "modelAsString": false } + "x-ms-enum": { + "name": "JobScheduleState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -10339,7 +10443,11 @@ "description": "Gets or sets a list of name-value pairs associated with the schedule as metadata." } }, - "required": ["id", "schedule", "jobSpecification"], + "required": [ + "id", + "schedule", + "jobSpecification" + ], "description": "A job schedule that allows recurring jobs by specifying when to run jobs and a specification used to create each job." }, "CloudJobScheduleListResult": { @@ -10368,7 +10476,10 @@ "servererror", "unmapped" ], - "x-ms-enum": { "name": "SchedulingErrorCategory", "modelAsString": false } + "x-ms-enum": { + "name": "SchedulingErrorCategory", + "modelAsString": false + } }, "code": { "type": "string", @@ -10386,7 +10497,9 @@ "description": "Gets or sets a list of additional error details related to the scheduling error." } }, - "required": ["category"], + "required": [ + "category" + ], "description": "An error encountered by the Batch service when scheduling a job." }, "JobExecutionInformation": { @@ -10414,7 +10527,9 @@ "description": "Gets or sets a string describing the reason the job ended." } }, - "required": ["startTime"], + "required": [ + "startTime" + ], "description": "Contains information about the execution of a job in the Azure Batch service." }, "CloudJob": { @@ -10461,7 +10576,10 @@ "completed", "deleting" ], - "x-ms-enum": { "name": "JobState", "modelAsString": false } + "x-ms-enum": { + "name": "JobState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -10480,7 +10598,10 @@ "completed", "deleting" ], - "x-ms-enum": { "name": "JobState", "modelAsString": false } + "x-ms-enum": { + "name": "JobState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -10591,7 +10712,10 @@ "description": "Gets or sets the flag that determines if this job will use tasks with dependencies." } }, - "required": ["id", "poolInfo"], + "required": [ + "id", + "poolInfo" + ], "description": "An Azure Batch job to add." }, "CloudJobListResult": { @@ -10620,7 +10744,10 @@ "servererror", "unmapped" ], - "x-ms-enum": { "name": "SchedulingErrorCategory", "modelAsString": false } + "x-ms-enum": { + "name": "SchedulingErrorCategory", + "modelAsString": false + } }, "code": { "type": "string", @@ -10638,7 +10765,9 @@ "description": "Gets or sets the list of additional error details related to the scheduling error." } }, - "required": ["category"], + "required": [ + "category" + ], "description": "Information about an error when scheduling a task." }, "JobPreparationTaskExecutionInformation": { @@ -10660,7 +10789,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "JobPreparationTaskState", "modelAsString": false } + "x-ms-enum": { + "name": "JobPreparationTaskState", + "modelAsString": false + } }, "taskRootDirectory": { "type": "string", @@ -10690,7 +10822,11 @@ "description": "Gets or sets the most recent time at which a retry of the Job Preparation task started running. This property is set only if the task was retried (i.e. retryCount is nonzero)." } }, - "required": ["startTime","retryCount","state"], + "required": [ + "startTime", + "retryCount", + "state" + ], "description": "Contains information about the execution of a Job Preparation task on a compute node." }, "JobReleaseTaskExecutionInformation": { @@ -10712,7 +10848,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "JobReleaseTaskState", "modelAsString": false } + "x-ms-enum": { + "name": "JobReleaseTaskState", + "modelAsString": false + } }, "taskRootDirectory": { "type": "string", @@ -10732,7 +10871,10 @@ "description": "Gets or sets any error starting the Job Release task." } }, - "required": ["startTime","state"], + "required": [ + "startTime", + "state" + ], "description": "Contains information about the execution of a Job Release task on a compute node." }, "JobPreparationAndReleaseTaskExecutionInformation": { @@ -10812,7 +10954,9 @@ "description": "Gets or sets details of the error encountered evaluating the autoscale formula on the pool, if the evaluation was unsuccessful." } }, - "required": ["timestamp"], + "required": [ + "timestamp" + ], "description": "The results and errors from an execution of a pool autoscale formula." }, "ResizeError": { @@ -10871,7 +11015,10 @@ "deleting", "upgrading" ], - "x-ms-enum": { "name": "PoolState", "modelAsString": false } + "x-ms-enum": { + "name": "PoolState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -10886,7 +11033,10 @@ "resizing", "stopping" ], - "x-ms-enum": { "name": "AllocationState", "modelAsString": false } + "x-ms-enum": { + "name": "AllocationState", + "modelAsString": false + } }, "allocationStateTransitionTime": { "type": "string", @@ -11074,7 +11224,11 @@ "description": "Gets or sets a list of name-value pairs associated with the pool as metadata." } }, - "required": ["id", "vmSize", "osFamily"], + "required": [ + "id", + "vmSize", + "osFamily" + ], "description": "A pool in the Azure Batch service to add." }, "ApplicationListResult": { @@ -11160,7 +11314,10 @@ "description": "Gets or sets the most recent time at which the task has been requeued by the Batch service as the result of a user request." } }, - "required": ["requeueCount","retryCount"], + "required": [ + "requeueCount", + "retryCount" + ], "description": "Information about the execution of a task." }, "ComputeNodeInformation": { @@ -11211,7 +11368,9 @@ "description": "Gets or sets a list of files that Batch will download on all subtasks." } }, - "required": ["numberOfInstances"], + "required": [ + "numberOfInstances" + ], "description": "Information about the settings required for multi-instance task." }, "TaskStatistics": { @@ -11271,7 +11430,19 @@ "description": "Gets or sets the elapsed time between the creation of the task and the start of task execution." } }, - "required": ["url","startTime","lastUpdateTime","userCPUTime","kernelCPUTime","wallClockTime","readIOps","writeIOps","readIOGiB","writeIOGiB","waitTime"], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "waitTime" + ], "description": "Resource usage statistics for a task." }, "TaskDependencies": { @@ -11306,7 +11477,10 @@ "description": "Gets or sets the last task id in the range." } }, - "required": ["start", "end"] + "required": [ + "start", + "end" + ] }, "CloudTask": { "properties": { @@ -11345,7 +11519,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -11361,7 +11538,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -11470,7 +11650,10 @@ "description": "Gets or sets any dependencies this task has." } }, - "required": ["id", "commandLine"], + "required": [ + "id", + "commandLine" + ], "description": "An Azure Batch task to add." }, "SubtaskInformation": { @@ -11512,7 +11695,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -11528,7 +11714,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -11594,14 +11783,19 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "executionInfo": { "$ref": "#/definitions/TaskExecutionInformation", "description": "Gets or sets information about the execution of the task." } }, - "required": ["taskState"], + "required": [ + "taskState" + ], "description": "Information about a task running on a compute node." }, "StartTaskInformation": { @@ -11613,7 +11807,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "StartTaskState", "modelAsString": false } + "x-ms-enum": { + "name": "StartTaskState", + "modelAsString": false + } }, "startTime": { "type": "string", @@ -11645,7 +11842,11 @@ "description": "Gets or sets the most recent time at which a retry of the task started running." } }, - "required": ["state","startTime","retryCount"], + "required": [ + "state", + "startTime", + "retryCount" + ], "description": "Information about a start task running on a compute node." }, "ComputeNodeError": { @@ -11695,7 +11896,10 @@ "leavingpool", "offline" ], - "x-ms-enum": { "name": "ComputeNodeState", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeState", + "modelAsString": false + } }, "schedulingState": { "type": "string", @@ -11704,7 +11908,10 @@ "enabled", "disabled" ], - "x-ms-enum": { "name": "SchedulingState", "modelAsString": false } + "x-ms-enum": { + "name": "SchedulingState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -11806,7 +12013,10 @@ "description": "Gets or sets the password of the account." } }, - "required": ["name", "password"], + "required": [ + "name", + "password" + ], "description": "An user account on a compute node." }, "JobSchedulePatchParameter": { @@ -11847,7 +12057,10 @@ "description": "Sets a list of name-value pairs associated with the job schedule as metadata. If you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted." } }, - "required": ["schedule", "jobSpecification"], + "required": [ + "schedule", + "jobSpecification" + ], "description": "Parameters for a CloudJobScheduleOperations.Update request." }, "JobDisableParameter": { @@ -11860,10 +12073,15 @@ "terminate", "wait" ], - "x-ms-enum": { "name": "DisableJobOption", "modelAsString": false } + "x-ms-enum": { + "name": "DisableJobOption", + "modelAsString": false + } } }, - "required": ["disableTasks"], + "required": [ + "disableTasks" + ], "description": "Parameters for a CloudJobOperations.Disable request." }, "JobTerminateParameter": { @@ -11923,7 +12141,9 @@ "description": "Sets a list of name-value pairs associated with the job as metadata. If omitted, the existing job metadata is left unchanged." } }, - "required": ["poolInfo"], + "required": [ + "poolInfo" + ], "description": "Parameters for a CloudJobOperations.Update request." }, "PoolEnableAutoScaleParameter": { @@ -11947,7 +12167,9 @@ "description": "Sets a formula for the desired number of compute nodes in the pool." } }, - "required": ["autoScaleFormula"], + "required": [ + "autoScaleFormula" + ], "description": "Parameters for a CloudJobOperations.EvaluateAutoScale request." }, "PoolResizeParameter": { @@ -11971,10 +12193,15 @@ "taskcompletion", "retaineddata" ], - "x-ms-enum": { "name": "ComputeNodeDeallocationOption", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeDeallocationOption", + "modelAsString": false + } } }, - "required": ["targetDedicated"], + "required": [ + "targetDedicated" + ], "description": "Parameters for a CloudPoolOperations.Resize request." }, "PoolUpdatePropertiesParameter": { @@ -12005,7 +12232,11 @@ "description": "Sets a list of name-value pairs associated with the pool as metadata. If you specify an empty collection, any existing metadata is removed from the pool." } }, - "required": ["certificateReferences", "metadata", "applicationPackageReferences"], + "required": [ + "certificateReferences", + "metadata", + "applicationPackageReferences" + ], "description": "Parameters for a CloudPoolOperations.UpdateProperties request." }, "PoolUpgradeOSParameter": { @@ -12015,7 +12246,9 @@ "description": "Sets the Azure Guest OS version to be installed on the virtual machines in the pool." } }, - "required": ["targetOSVersion"], + "required": [ + "targetOSVersion" + ], "description": "Parameters for a CloudPoolOperations.UpgradeOS request." }, "PoolPatchParameter": { @@ -12069,7 +12302,9 @@ "description": "Sets the time at which the account should expire. If omitted, the default is 1 day from the current time." } }, - "required": ["password"], + "required": [ + "password" + ], "description": "Parameters for a ComputeNodeOperations.UpdateUser request." }, "NodeRebootParameter": { @@ -12083,7 +12318,10 @@ "taskcompletion", "retaineddata" ], - "x-ms-enum": { "name": "ComputeNodeRebootOption", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeRebootOption", + "modelAsString": false + } } }, "description": "Parameters for a ComputeNodeOperations.Reboot request." @@ -12099,7 +12337,10 @@ "taskcompletion", "retaineddata" ], - "x-ms-enum": { "name": "ComputeNodeReimageOption", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeReimageOption", + "modelAsString": false + } } }, "description": "Parameters for a ComputeNodeOperations.Reimage request." @@ -12114,7 +12355,10 @@ "terminate", "taskcompletion" ], - "x-ms-enum": { "name": "DisableComputeNodeSchedulingOption", "modelAsString": false } + "x-ms-enum": { + "name": "DisableComputeNodeSchedulingOption", + "modelAsString": false + } } }, "description": "Parameters for a ComputeNodeOperations.DisableScheduling request." @@ -12142,10 +12386,15 @@ "taskcompletion", "retaineddata" ], - "x-ms-enum": { "name": "ComputeNodeDeallocationOption", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeDeallocationOption", + "modelAsString": false + } } }, - "required": ["nodeList"], + "required": [ + "nodeList" + ], "description": "Parameters for a ComputeNodeOperations.Remove request." }, "ErrorMessage": { @@ -12204,4 +12453,4 @@ "description": "Client API Version." } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2016-02-01.3.0/BatchService.json b/specification/batch/data-plane/Microsoft.Batch/stable/2016-02-01.3.0/BatchService.json index 85a34cb906bf..af2457930937 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2016-02-01.3.0/BatchService.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2016-02-01.3.0/BatchService.json @@ -1264,7 +1264,7 @@ "default": 30, "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", "x-ms-parameter-grouping": { - "postfix": "Options" + "postfix": "Options" } }, { @@ -8063,7 +8063,7 @@ "post": { "tags": [ "Tasks" - ], + ], "operationId": "Task_Terminate", "description": "Terminates the specified task.", "x-ms-request-id": "request-id", @@ -8766,7 +8766,7 @@ "description": "The OData id of the resource to which the request applied.", "type": "string" } - }, + }, "description": "" }, "default": { @@ -9501,7 +9501,15 @@ "description": "The cross data center network egress in GiB from the pool during this interval." } }, - "required": ["poolId","startTime","endTime","vmSize","totalCoreHours","dataIngressGiB","dataEgressGiB"], + "required": [ + "poolId", + "startTime", + "endTime", + "vmSize", + "totalCoreHours", + "dataIngressGiB", + "dataEgressGiB" + ], "description": "Usage metrics for a pool across an aggregation interval." }, "PoolListPoolUsageMetricsResult": { @@ -9541,7 +9549,10 @@ "windows", "unmapped" ], - "x-ms-enum": {"name": "OSType", "modelAsString": false } + "x-ms-enum": { + "name": "OSType", + "modelAsString": false + } } }, "description": "A node agent SKU supported by the Batch service. 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." @@ -9580,7 +9591,11 @@ "description": "The aggregated wall-clock time of the dedicated compute node cores being part of the pool." } }, - "required": ["startTime","lastUpdateTime","dedicatedCoreTime"], + "required": [ + "startTime", + "lastUpdateTime", + "dedicatedCoreTime" + ], "description": "Statistics related to pool usage information." }, "ResourceStatistics": { @@ -9651,7 +9666,21 @@ "description": "The total amount of data in GiB of network writes across all nodes in the pool." } }, - "required": ["startTime","lastUpdateTime","avgCPUPercentage","avgMemoryGiB","peakMemoryGiB","avgDiskGiB","peakDiskGiB","diskReadIOps","diskWriteIOps","diskReadGiB","diskWriteGiB","networkReadGiB","networkWriteGiB"], + "required": [ + "startTime", + "lastUpdateTime", + "avgCPUPercentage", + "avgMemoryGiB", + "peakMemoryGiB", + "avgDiskGiB", + "peakDiskGiB", + "diskReadIOps", + "diskWriteIOps", + "diskReadGiB", + "diskWriteGiB", + "networkReadGiB", + "networkWriteGiB" + ], "description": "Statistics related to resource consumption by compute nodes in a pool." }, "PoolStatistics": { @@ -9679,7 +9708,11 @@ "description": "Statistics related to resource consumption by compute nodes in the pool." } }, - "required": ["url","startTime","lastUpdateTime"], + "required": [ + "url", + "startTime", + "lastUpdateTime" + ], "description": "Contains utilization and resource usage statistics for the lifetime of a pool." }, "JobStatistics": { @@ -9754,7 +9787,22 @@ "description": "The total wait time of all tasks in the job. The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.)" } }, - "required": ["url","startTime","lastUpdateTime","userCPUTime","kernelCPUTime","wallClockTime","readIOps","writeIOps","readIOGiB","writeIOGiB","numSucceededTasks","numFailedTasks","numTaskRetries","waitTime"], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "description": "Resource usage statistics for a job." }, "NameValuePair": { @@ -9812,7 +9860,10 @@ "deleting", "deletefailed" ], - "x-ms-enum": {"name": "CertificateState", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -9827,7 +9878,10 @@ "deleting", "deletefailed" ], - "x-ms-enum": { "name": "CertificateState", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -9856,7 +9910,9 @@ "description": "The version of the application to install. If omitted, the default version is installed." } }, - "required": ["applicationId"], + "required": [ + "applicationId" + ], "description": "A reference to an application package to be installed on compute nodes in a pool." }, "ApplicationSummary": { @@ -9876,7 +9932,11 @@ } } }, - "required": ["id", "displayName", "versions"], + "required": [ + "id", + "displayName", + "versions" + ], "description": "Contains information about an application in an Azure Batch account." }, "CertificateAddParameter": { @@ -9901,14 +9961,21 @@ "cer", "unmapped" ], - "x-ms-enum": { "name": "CertificateFormat", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateFormat", + "modelAsString": false + } }, "password": { "type": "string", "description": "The password to access the certificate's private key." } }, - "required": ["thumbprint", "thumbprintAlgorithm", "data"], + "required": [ + "thumbprint", + "thumbprintAlgorithm", + "data" + ], "description": "A certificate that can be installed on compute nodes and can be used to authenticate operations on the machine." }, "CertificateListResult": { @@ -9953,7 +10020,10 @@ "description": "The file mode attribute in octal format. This property will be returned only from a Linux compute node." } }, - "required": ["lastModified","contentLength"], + "required": [ + "lastModified", + "contentLength" + ], "description": "The properties of a file on a compute node." }, "NodeFile": { @@ -10224,10 +10294,15 @@ "pack", "unmapped" ], - "x-ms-enum": { "name": "ComputeNodeFillType", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeFillType", + "modelAsString": false + } } }, - "required": ["nodeFillType"], + "required": [ + "nodeFillType" + ], "description": "Specifies how tasks should be distributed across compute nodes." }, "StartTask": { @@ -10284,7 +10359,10 @@ "localmachine", "unmapped" ], - "x-ms-enum": { "name": "CertificateStoreLocation", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateStoreLocation", + "modelAsString": false + } }, "storeName": { "type": "string", @@ -10300,12 +10378,18 @@ "remoteuser", "unmapped" ], - "x-ms-enum": { "name": "CertificateVisibility", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateVisibility", + "modelAsString": false + } }, "description": "Which user accounts on the compute node should have access to the private data of the certificate. This may be any subset of the values 'starttask', 'task' and 'remoteuser', separated by commas. The default is all accounts, corresponding to the string 'starttask,task,remoteuser'." } }, - "required": ["thumbprint", "thumbprintAlgorithm"], + "required": [ + "thumbprint", + "thumbprintAlgorithm" + ], "description": "A reference to a certificate to be installed on compute nodes in a pool." }, "MetadataItem": { @@ -10417,7 +10501,10 @@ "job", "unmapped" ], - "x-ms-enum": { "name": "PoolLifetimeOption", "modelAsString": false } + "x-ms-enum": { + "name": "PoolLifetimeOption", + "modelAsString": false + } }, "keepAlive": { "type": "boolean", @@ -10428,7 +10515,9 @@ "description": "The pool specification for the auto pool." } }, - "required": ["poolLifetimeOption"], + "required": [ + "poolLifetimeOption" + ], "description": "Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto pool, run all the tasks for the job on it, and will delete the pool once the job has completed." }, "PoolInformation": { @@ -10600,7 +10689,22 @@ "description": "The total wait time of all tasks in all jobs created under the schedule. The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.)" } }, - "required": ["url","startTime","lastUpdateTime","userCPUTime","kernelCPUTime","wallClockTime","readIOps","writeIOps","readIOGiB","writeIOGiB","numSucceededTasks","numFailedTasks","numTaskRetries", "waitTime"], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "description": "Resource usage statistics for a job schedule." }, "CloudJobSchedule": { @@ -10641,7 +10745,10 @@ "terminating", "deleting" ], - "x-ms-enum": { "name": "JobScheduleState", "modelAsString": false } + "x-ms-enum": { + "name": "JobScheduleState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -10658,7 +10765,10 @@ "terminating", "deleting" ], - "x-ms-enum": { "name": "JobScheduleState", "modelAsString": false } + "x-ms-enum": { + "name": "JobScheduleState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -10717,7 +10827,11 @@ "description": "A list of name-value pairs associated with the schedule as metadata." } }, - "required": ["id", "schedule", "jobSpecification"], + "required": [ + "id", + "schedule", + "jobSpecification" + ], "description": "A job schedule that allows recurring jobs by specifying when to run jobs and a specification used to create each job." }, "CloudJobScheduleListResult": { @@ -10746,7 +10860,10 @@ "servererror", "unmapped" ], - "x-ms-enum": { "name": "SchedulingErrorCategory", "modelAsString": false } + "x-ms-enum": { + "name": "SchedulingErrorCategory", + "modelAsString": false + } }, "code": { "type": "string", @@ -10764,7 +10881,9 @@ "description": "A list of additional error details related to the scheduling error." } }, - "required": ["category"], + "required": [ + "category" + ], "description": "An error encountered by the Batch service when scheduling a job." }, "JobExecutionInformation": { @@ -10792,7 +10911,9 @@ "description": "A string describing the reason the job ended." } }, - "required": ["startTime"], + "required": [ + "startTime" + ], "description": "Contains information about the execution of a job in the Azure Batch service." }, "CloudJob": { @@ -10839,7 +10960,10 @@ "completed", "deleting" ], - "x-ms-enum": { "name": "JobState", "modelAsString": false } + "x-ms-enum": { + "name": "JobState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -10858,7 +10982,10 @@ "completed", "deleting" ], - "x-ms-enum": { "name": "JobState", "modelAsString": false } + "x-ms-enum": { + "name": "JobState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -10969,7 +11096,10 @@ "description": "The flag that determines if this job will use tasks with dependencies." } }, - "required": ["id", "poolInfo"], + "required": [ + "id", + "poolInfo" + ], "description": "An Azure Batch job to add." }, "CloudJobListResult": { @@ -10998,7 +11128,10 @@ "servererror", "unmapped" ], - "x-ms-enum": { "name": "SchedulingErrorCategory", "modelAsString": false } + "x-ms-enum": { + "name": "SchedulingErrorCategory", + "modelAsString": false + } }, "code": { "type": "string", @@ -11016,7 +11149,9 @@ "description": "The list of additional error details related to the scheduling error." } }, - "required": ["category"], + "required": [ + "category" + ], "description": "Information about an error when scheduling a task." }, "JobPreparationTaskExecutionInformation": { @@ -11038,7 +11173,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "JobPreparationTaskState", "modelAsString": false } + "x-ms-enum": { + "name": "JobPreparationTaskState", + "modelAsString": false + } }, "taskRootDirectory": { "type": "string", @@ -11068,7 +11206,11 @@ "description": "The most recent time at which a retry of the Job Preparation task started running. This property is set only if the task was retried (i.e. retryCount is nonzero)." } }, - "required": ["startTime","retryCount","state"], + "required": [ + "startTime", + "retryCount", + "state" + ], "description": "Contains information about the execution of a Job Preparation task on a compute node." }, "JobReleaseTaskExecutionInformation": { @@ -11090,7 +11232,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "JobReleaseTaskState", "modelAsString": false } + "x-ms-enum": { + "name": "JobReleaseTaskState", + "modelAsString": false + } }, "taskRootDirectory": { "type": "string", @@ -11110,7 +11255,10 @@ "description": "The scheduling error encountered by the Batch service when starting the task." } }, - "required": ["startTime","state"], + "required": [ + "startTime", + "state" + ], "description": "Contains information about the execution of a Job Release task on a compute node." }, "JobPreparationAndReleaseTaskExecutionInformation": { @@ -11190,7 +11338,9 @@ "description": "Details of the error encountered evaluating the autoscale formula on the pool, if the evaluation was unsuccessful." } }, - "required": ["timestamp"], + "required": [ + "timestamp" + ], "description": "The results and errors from an execution of a pool autoscale formula." }, "ResizeError": { @@ -11228,7 +11378,9 @@ "description": "The Azure Guest OS Version currently installed on the virtual machines in the pool. This may differ from TargetOSVersion if the pool state is Upgrading." } }, - "required": ["osFamily"], + "required": [ + "osFamily" + ], "description": "The configuration for nodes in a pool based on the Azure Cloud Services platform." }, "ImageReference": { @@ -11250,7 +11402,11 @@ "description": "The version of the Azure Virtual Machines Marketplace image. A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'." } }, - "required": ["publisher", "offer", "sku"], + "required": [ + "publisher", + "offer", + "sku" + ], "description": "A reference to an Azure Virtual Machines Marketplace image." }, "WindowsConfiguration": { @@ -11277,7 +11433,10 @@ "description": "Windows operating system settings on the virtual machine. This property must not be specified if the ImageReference property specifies a Linux OS image." } }, - "required": ["imageReference", "nodeAgentSKUId"], + "required": [ + "imageReference", + "nodeAgentSKUId" + ], "description": "The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure." }, "CloudPool": { @@ -11316,7 +11475,10 @@ "deleting", "upgrading" ], - "x-ms-enum": { "name": "PoolState", "modelAsString": false } + "x-ms-enum": { + "name": "PoolState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -11331,7 +11493,10 @@ "resizing", "stopping" ], - "x-ms-enum": { "name": "AllocationState", "modelAsString": false } + "x-ms-enum": { + "name": "AllocationState", + "modelAsString": false + } }, "allocationStateTransitionTime": { "type": "string", @@ -11515,7 +11680,10 @@ "description": "A list of name-value pairs associated with the pool as metadata." } }, - "required": ["id", "vmSize"], + "required": [ + "id", + "vmSize" + ], "description": "A pool in the Azure Batch service to add." }, "ApplicationListResult": { @@ -11601,7 +11769,10 @@ "description": "The most recent time at which the task has been requeued by the Batch service as the result of a user request." } }, - "required": ["requeueCount","retryCount"], + "required": [ + "requeueCount", + "retryCount" + ], "description": "Information about the execution of a task." }, "ComputeNodeInformation": { @@ -11652,7 +11823,9 @@ "description": "A list of files that the Batch service will download before running the coordination command line. The difference between common resource files and task resource files is that common resource files are downloaded for all subtasks including the primary, whereas task resource files are downloaded only for the primary." } }, - "required": ["numberOfInstances"], + "required": [ + "numberOfInstances" + ], "description": "Settings which specify how to run a multi-instance task. Multi-instance tasks are commonly used to support MPI tasks." }, "TaskStatistics": { @@ -11712,7 +11885,19 @@ "description": "The total wait time of the task. The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.)" } }, - "required": ["url","startTime","lastUpdateTime","userCPUTime","kernelCPUTime","wallClockTime","readIOps","writeIOps","readIOGiB","writeIOGiB","waitTime"], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "waitTime" + ], "description": "Resource usage statistics for a task." }, "TaskDependencies": { @@ -11748,7 +11933,10 @@ } }, "description": "A range of task ids that a task can depend on. All tasks with ids in the range must complete successfully before the dependent task can be scheduled.", - "required": ["start", "end"] + "required": [ + "start", + "end" + ] }, "CloudTask": { "properties": { @@ -11787,7 +11975,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -11803,7 +11994,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -11912,7 +12106,10 @@ "description": "Any other tasks that this task depends on." } }, - "required": ["id", "commandLine"], + "required": [ + "id", + "commandLine" + ], "description": "An Azure Batch task to add." }, "TaskAddCollectionParameter": { @@ -11925,7 +12122,9 @@ "description": "The collection of tasks to add." } }, - "required": ["value"], + "required": [ + "value" + ], "description": "A collection of Azure Batch tasks to add." }, "TaskAddResult": { @@ -11939,7 +12138,9 @@ "servererror", "unmapped" ], - "x-ms-enum": { "name": "TaskAddStatus" } + "x-ms-enum": { + "name": "TaskAddStatus" + } }, "taskId": { "type": "string", @@ -11963,7 +12164,10 @@ "description": "The error encountered while attempting to add the task." } }, - "required": ["status","taskId"], + "required": [ + "status", + "taskId" + ], "description": "Result for a single task added as part of an add task collection operation." }, "TaskAddCollectionResult": { @@ -12017,7 +12221,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -12033,7 +12240,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -12099,14 +12309,19 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "executionInfo": { "$ref": "#/definitions/TaskExecutionInformation", "description": "Information about the execution of the task." } }, - "required": ["taskState"], + "required": [ + "taskState" + ], "description": "Information about a task running on a compute node." }, "StartTaskInformation": { @@ -12118,7 +12333,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "StartTaskState", "modelAsString": false } + "x-ms-enum": { + "name": "StartTaskState", + "modelAsString": false + } }, "startTime": { "type": "string", @@ -12150,7 +12368,11 @@ "description": "The most recent time at which a retry of the task started running." } }, - "required": ["state","startTime","retryCount"], + "required": [ + "state", + "startTime", + "retryCount" + ], "description": "Information about a start task running on a compute node." }, "ComputeNodeError": { @@ -12200,7 +12422,10 @@ "leavingpool", "offline" ], - "x-ms-enum": { "name": "ComputeNodeState", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeState", + "modelAsString": false + } }, "schedulingState": { "type": "string", @@ -12209,7 +12434,10 @@ "enabled", "disabled" ], - "x-ms-enum": { "name": "SchedulingState", "modelAsString": false } + "x-ms-enum": { + "name": "SchedulingState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -12325,7 +12553,9 @@ "description": "The SSH public key that can be used for remote login to the compute node." } }, - "required": ["name"], + "required": [ + "name" + ], "description": "An user account on a compute node." }, "ComputeNodeGetRemoteLoginSettingsResult": { @@ -12340,7 +12570,10 @@ "description": "The port used for remote login to the compute node." } }, - "required": ["remoteLoginIPAddress","remoteLoginPort"], + "required": [ + "remoteLoginIPAddress", + "remoteLoginPort" + ], "description": "Response to a ComputeNodeOperation.GetRemoteLoginSettings request." }, "JobSchedulePatchParameter": { @@ -12381,7 +12614,10 @@ "description": "A list of name-value pairs associated with the job schedule as metadata. If you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted." } }, - "required": ["schedule", "jobSpecification"], + "required": [ + "schedule", + "jobSpecification" + ], "description": "Parameters for a CloudJobScheduleOperations.Update request." }, "JobDisableParameter": { @@ -12394,10 +12630,15 @@ "terminate", "wait" ], - "x-ms-enum": { "name": "DisableJobOption", "modelAsString": false } + "x-ms-enum": { + "name": "DisableJobOption", + "modelAsString": false + } } }, - "required": ["disableTasks"], + "required": [ + "disableTasks" + ], "description": "Parameters for a CloudJobOperations.Disable request." }, "JobTerminateParameter": { @@ -12457,7 +12698,9 @@ "description": "A list of name-value pairs associated with the job as metadata. If omitted, the existing job metadata is left unchanged." } }, - "required": ["poolInfo"], + "required": [ + "poolInfo" + ], "description": "Parameters for a CloudJobOperations.Update request." }, "PoolEnableAutoScaleParameter": { @@ -12481,7 +12724,9 @@ "description": "A formula for the desired number of compute nodes in the pool." } }, - "required": ["autoScaleFormula"], + "required": [ + "autoScaleFormula" + ], "description": "Parameters for a CloudJobOperations.EvaluateAutoScale request." }, "PoolResizeParameter": { @@ -12505,10 +12750,15 @@ "taskcompletion", "retaineddata" ], - "x-ms-enum": { "name": "ComputeNodeDeallocationOption", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeDeallocationOption", + "modelAsString": false + } } }, - "required": ["targetDedicated"], + "required": [ + "targetDedicated" + ], "description": "Parameters for a CloudPoolOperations.Resize request." }, "PoolUpdatePropertiesParameter": { @@ -12539,7 +12789,11 @@ "description": "A list of name-value pairs associated with the pool as metadata. If you specify an empty collection, any existing metadata is removed from the pool." } }, - "required": ["certificateReferences", "metadata", "applicationPackageReferences"], + "required": [ + "certificateReferences", + "metadata", + "applicationPackageReferences" + ], "description": "Parameters for a CloudPoolOperations.UpdateProperties request." }, "PoolUpgradeOSParameter": { @@ -12549,7 +12803,9 @@ "description": "The Azure Guest OS version to be installed on the virtual machines in the pool." } }, - "required": ["targetOSVersion"], + "required": [ + "targetOSVersion" + ], "description": "Parameters for a CloudPoolOperations.UpgradeOS request." }, "PoolPatchParameter": { @@ -12620,7 +12876,10 @@ "taskcompletion", "retaineddata" ], - "x-ms-enum": { "name": "ComputeNodeRebootOption", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeRebootOption", + "modelAsString": false + } } }, "description": "Parameters for a ComputeNodeOperations.Reboot request." @@ -12636,7 +12895,10 @@ "taskcompletion", "retaineddata" ], - "x-ms-enum": { "name": "ComputeNodeReimageOption", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeReimageOption", + "modelAsString": false + } } }, "description": "Parameters for a ComputeNodeOperations.Reimage request." @@ -12651,7 +12913,10 @@ "terminate", "taskcompletion" ], - "x-ms-enum": { "name": "DisableComputeNodeSchedulingOption", "modelAsString": false } + "x-ms-enum": { + "name": "DisableComputeNodeSchedulingOption", + "modelAsString": false + } } }, "description": "Parameters for a ComputeNodeOperations.DisableScheduling request." @@ -12679,10 +12944,15 @@ "taskcompletion", "retaineddata" ], - "x-ms-enum": { "name": "ComputeNodeDeallocationOption", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeDeallocationOption", + "modelAsString": false + } } }, - "required": ["nodeList"], + "required": [ + "nodeList" + ], "description": "Parameters for a ComputeNodeOperations.Remove request." }, "ErrorMessage": { @@ -12741,4 +13011,4 @@ "description": "Client API Version." } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2016-07-01.3.1/BatchService.json b/specification/batch/data-plane/Microsoft.Batch/stable/2016-07-01.3.1/BatchService.json index d87ed82be381..7803cde748d0 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2016-07-01.3.1/BatchService.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2016-07-01.3.1/BatchService.json @@ -1293,7 +1293,7 @@ "default": 30, "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", "x-ms-parameter-grouping": { - "postfix": "Options" + "postfix": "Options" } }, { @@ -8235,7 +8235,7 @@ "post": { "tags": [ "Tasks" - ], + ], "operationId": "Task_Terminate", "summary": "Terminates the specified task.", "description": "When the task has been terminated, it moves to the completed state. For multi-instance tasks, the terminate task operation applies synchronously to the primary task; subtasks are then terminated asynchronously in the background.", @@ -9100,7 +9100,7 @@ "description": "The OData ID of the resource to which the request applied.", "type": "string" } - }, + }, "description": "The request to the Batch service was successful." }, "default": { @@ -9848,7 +9848,15 @@ "title": "The cross data center network egress from the pool during this interval, in GiB." } }, - "required": ["poolId","startTime","endTime","vmSize","totalCoreHours","dataIngressGiB","dataEgressGiB"], + "required": [ + "poolId", + "startTime", + "endTime", + "vmSize", + "totalCoreHours", + "dataIngressGiB", + "dataEgressGiB" + ], "title": "Usage metrics for a pool across an aggregation interval." }, "PoolListPoolUsageMetricsResult": { @@ -9889,7 +9897,10 @@ "windows", "unmapped" ], - "x-ms-enum": {"name": "OSType", "modelAsString": false } + "x-ms-enum": { + "name": "OSType", + "modelAsString": false + } } }, "title": "A node agent SKU supported by the Batch service.", @@ -9929,7 +9940,11 @@ "title": "The aggregated wall-clock time of the dedicated compute node cores being part of the pool." } }, - "required": ["startTime","lastUpdateTime","dedicatedCoreTime"], + "required": [ + "startTime", + "lastUpdateTime", + "dedicatedCoreTime" + ], "title": "Statistics related to pool usage information." }, "ResourceStatistics": { @@ -10000,7 +10015,21 @@ "title": "The total amount of data in GiB of network writes across all nodes in the pool." } }, - "required": ["startTime","lastUpdateTime","avgCPUPercentage","avgMemoryGiB","peakMemoryGiB","avgDiskGiB","peakDiskGiB","diskReadIOps","diskWriteIOps","diskReadGiB","diskWriteGiB","networkReadGiB","networkWriteGiB"], + "required": [ + "startTime", + "lastUpdateTime", + "avgCPUPercentage", + "avgMemoryGiB", + "peakMemoryGiB", + "avgDiskGiB", + "peakDiskGiB", + "diskReadIOps", + "diskWriteIOps", + "diskReadGiB", + "diskWriteGiB", + "networkReadGiB", + "networkWriteGiB" + ], "title": "Statistics related to resource consumption by compute nodes in a pool." }, "PoolStatistics": { @@ -10028,7 +10057,11 @@ "title": "Statistics related to resource consumption by compute nodes in the pool." } }, - "required": ["url","startTime","lastUpdateTime"], + "required": [ + "url", + "startTime", + "lastUpdateTime" + ], "title": "Contains utilization and resource usage statistics for the lifetime of a pool." }, "JobStatistics": { @@ -10106,7 +10139,22 @@ "description": "The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.) This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": ["url","startTime","lastUpdateTime","userCPUTime","kernelCPUTime","wallClockTime","readIOps","writeIOps","readIOGiB","writeIOGiB","numSucceededTasks","numFailedTasks","numTaskRetries","waitTime"], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job." }, "NameValuePair": { @@ -10165,7 +10213,10 @@ "deleting", "deletefailed" ], - "x-ms-enum": {"name": "CertificateState", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -10181,7 +10232,10 @@ "deleting", "deletefailed" ], - "x-ms-enum": { "name": "CertificateState", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -10213,7 +10267,9 @@ "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." } }, - "required": ["applicationId"], + "required": [ + "applicationId" + ], "title": "A reference to an application package to be deployed to compute nodes." }, "ApplicationSummary": { @@ -10234,7 +10290,11 @@ } } }, - "required": ["id", "displayName", "versions"], + "required": [ + "id", + "displayName", + "versions" + ], "title": "Contains information about an application in an Azure Batch account." }, "CertificateAddParameter": { @@ -10259,7 +10319,10 @@ "cer", "unmapped" ], - "x-ms-enum": { "name": "CertificateFormat", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateFormat", + "modelAsString": false + } }, "password": { "type": "string", @@ -10267,7 +10330,11 @@ "description": "This is required if the certificate format is pfx. It should be omitted if the certificate format is cer." } }, - "required": ["thumbprint", "thumbprintAlgorithm", "data"], + "required": [ + "thumbprint", + "thumbprintAlgorithm", + "data" + ], "title": "A certificate that can be installed on compute nodes and can be used to authenticate operations on the machine." }, "CertificateListResult": { @@ -10314,7 +10381,10 @@ "description": "The file mode is returned only for files on Linux compute nodes." } }, - "required": ["lastModified","contentLength"], + "required": [ + "lastModified", + "contentLength" + ], "title": "The properties of a file on a compute node." }, "NodeFile": { @@ -10417,7 +10487,10 @@ "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." } }, - "required": ["blobSource", "filePath"], + "required": [ + "blobSource", + "filePath" + ], "title": "A file to be downloaded from Azure blob storage to a compute node." }, "EnvironmentSetting": { @@ -10431,10 +10504,12 @@ "title": "The value of the environment variable." } }, - "required": ["name"], + "required": [ + "name" + ], "title": "An environment variable to be set on a task process." }, - "ExitConditions": { + "ExitConditions": { "properties": { "exitCodes": { "type": "array", @@ -10475,7 +10550,10 @@ } }, "title": "How the Batch service should respond if a task exits with a particular exit code.", - "required": ["code","exitOptions"] + "required": [ + "code", + "exitOptions" + ] }, "ExitCodeRangeMapping": { "properties": { @@ -10495,8 +10573,11 @@ } }, "title": "A range of exit codes and how the Batch service should respond to exit codes within that range.", - "required": ["start", "end","exitOptions"] - + "required": [ + "start", + "end", + "exitOptions" + ] }, "ExitOptions": { "properties": { @@ -10509,8 +10590,11 @@ "disable", "terminate" ], - "x-ms-enum": { "name": "JobAction", "modelAsString": false } - } + "x-ms-enum": { + "name": "JobAction", + "modelAsString": false + } + } }, "title": "How the Batch service should respond to a particular exit condition." }, @@ -10596,7 +10680,10 @@ "description": "Application packages are downloaded and deployed to a shared directory, not the task directory. Therefore, if a referenced package is already on the compute node, and is up to date, then it is not re-downloaded; the existing copy on the compute node is used. If a referenced application package cannot be installed, for example because the package has been deleted or because download failed, the task fails with a scheduling error. This property is currently not supported on jobs running on pools created using the virtualMachineConfiguration (IaaS) property. If a task specifying applicationPackageReferences runs on such a pool, it fails with a scheduling error with code TaskSchedulingConstraintFailed." } }, - "required": ["id", "commandLine"], + "required": [ + "id", + "commandLine" + ], "title": "Specifies details of a Job Manager task." }, "JobPreparationTask": { @@ -10645,7 +10732,9 @@ "description": "The Job Preparation task is always rerun if a compute node is reimaged, or if the Job Preparation task did not complete (e.g. because the reboot occurred while the task was running). Therefore, you should always write a Job Preparation task to be idempotent and to behave correctly if run multiple times. The default value is true." } }, - "required": ["commandLine"], + "required": [ + "commandLine" + ], "title": "A Job Preparation task to run before any tasks of the job on any given compute node." }, "JobReleaseTask": { @@ -10692,7 +10781,9 @@ "description": "The default value is false." } }, - "required": ["commandLine"], + "required": [ + "commandLine" + ], "title": "A Job Release task to run on job completion on any compute node where the job has run." }, "TaskSchedulingPolicy": { @@ -10705,10 +10796,15 @@ "pack", "unmapped" ], - "x-ms-enum": { "name": "ComputeNodeFillType", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeFillType", + "modelAsString": false + } } }, - "required": ["nodeFillType"], + "required": [ + "nodeFillType" + ], "title": "Specifies how tasks should be distributed across compute nodes." }, "StartTask": { @@ -10748,7 +10844,9 @@ "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 false." } }, - "required": ["commandLine"], + "required": [ + "commandLine" + ], "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." }, "CertificateReference": { @@ -10770,7 +10868,10 @@ "localmachine", "unmapped" ], - "x-ms-enum": { "name": "CertificateStoreLocation", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateStoreLocation", + "modelAsString": false + } }, "storeName": { "type": "string", @@ -10787,13 +10888,19 @@ "remoteuser", "unmapped" ], - "x-ms-enum": { "name": "CertificateVisibility", "modelAsString": false } + "x-ms-enum": { + "name": "CertificateVisibility", + "modelAsString": false + } }, "title": "Which user accounts on the compute node should have access to the private data of the certificate.", "description": "The default is all accounts." } }, - "required": ["thumbprint", "thumbprintAlgorithm"], + "required": [ + "thumbprint", + "thumbprintAlgorithm" + ], "title": "A reference to a certificate to be installed on compute nodes in a pool." }, "MetadataItem": { @@ -10807,7 +10914,10 @@ "title": "The value of the metadata item." } }, - "required": ["name", "value"], + "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." }, @@ -10909,7 +11019,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": ["vmSize"], + "required": [ + "vmSize" + ], "title": "Specification for creating a new pool." }, "AutoPoolSpecification": { @@ -10928,7 +11040,10 @@ "job", "unmapped" ], - "x-ms-enum": { "name": "PoolLifetimeOption", "modelAsString": false } + "x-ms-enum": { + "name": "PoolLifetimeOption", + "modelAsString": false + } }, "keepAlive": { "type": "boolean", @@ -10940,7 +11055,9 @@ "title": "The pool specification for the auto pool." } }, - "required": ["poolLifetimeOption"], + "required": [ + "poolLifetimeOption" + ], "title": "Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto pool when the job is submitted." }, "PoolInformation": { @@ -10983,7 +11100,10 @@ "noAction", "terminateJob" ], - "x-ms-enum": { "name": "OnAllTasksComplete", "modelAsString": false } + "x-ms-enum": { + "name": "OnAllTasksComplete", + "modelAsString": false + } }, "onTaskFailure": { "type": "string", @@ -10993,7 +11113,10 @@ "noAction", "performExitOptionsJobAction" ], - "x-ms-enum": { "name": "OnTaskFailure", "modelAsString": false } + "x-ms-enum": { + "name": "OnTaskFailure", + "modelAsString": false + } }, "constraints": { "$ref": "#/definitions/JobConstraints", @@ -11035,7 +11158,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": ["poolInfo"], + "required": [ + "poolInfo" + ], "title": "Specifies details of the jobs to be created on a schedule." }, "RecentJob": { @@ -11147,7 +11272,22 @@ "description": "This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": ["url","startTime","lastUpdateTime","userCPUTime","kernelCPUTime","wallClockTime","readIOps","writeIOps","readIOGiB","writeIOGiB","numSucceededTasks","numFailedTasks","numTaskRetries", "waitTime"], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job schedule." }, "CloudJobSchedule": { @@ -11191,7 +11331,10 @@ "terminating", "deleting" ], - "x-ms-enum": { "name": "JobScheduleState", "modelAsString": false } + "x-ms-enum": { + "name": "JobScheduleState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -11209,7 +11352,10 @@ "terminating", "deleting" ], - "x-ms-enum": { "name": "JobScheduleState", "modelAsString": false } + "x-ms-enum": { + "name": "JobScheduleState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -11273,7 +11419,11 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": ["id", "schedule", "jobSpecification"], + "required": [ + "id", + "schedule", + "jobSpecification" + ], "title": "A job schedule that allows recurring jobs by specifying when to run jobs and a specification used to create each job." }, "CloudJobScheduleListResult": { @@ -11302,7 +11452,10 @@ "servererror", "unmapped" ], - "x-ms-enum": { "name": "SchedulingErrorCategory", "modelAsString": false } + "x-ms-enum": { + "name": "SchedulingErrorCategory", + "modelAsString": false + } }, "code": { "type": "string", @@ -11320,7 +11473,9 @@ "title": "A list of additional error details related to the scheduling error." } }, - "required": ["category"], + "required": [ + "category" + ], "title": "An error encountered by the Batch service when scheduling a job." }, "JobExecutionInformation": { @@ -11353,7 +11508,9 @@ "description": "This property is set only if the job is in the completed state. If the Batch service terminates the job, it sets the reason as follows: JMComplete – the Job Manager task completed, and killJobOnCompletion was set to true. MaxWallClockTimeExpiry – the job reached its maxWallClockTime constraint. TerminateJobSchedule – the job ran as part of a schedule, and the schedule terminated. AllTasksComplete – the job's onAllTasksComplete attribute is set to terminateJob, and all tasks in the job are complete. TaskFailed – the job's onTaskFailure attribute is set to performExitOptionsJobAction, and a task in the job failed with an exit condition that specified a jobAction of terminateJob. Any other string is a user-defined reason specified in a call to the 'Terminate a job' operation." } }, - "required": ["startTime"], + "required": [ + "startTime" + ], "title": "Contains information about the execution of a job in the Azure Batch service." }, "CloudJob": { @@ -11403,7 +11560,10 @@ "completed", "deleting" ], - "x-ms-enum": { "name": "JobState", "modelAsString": false } + "x-ms-enum": { + "name": "JobState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -11423,7 +11583,10 @@ "completed", "deleting" ], - "x-ms-enum": { "name": "JobState", "modelAsString": false } + "x-ms-enum": { + "name": "JobState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -11474,7 +11637,10 @@ "noAction", "terminateJob" ], - "x-ms-enum": { "name": "OnAllTasksComplete", "modelAsString": false } + "x-ms-enum": { + "name": "OnAllTasksComplete", + "modelAsString": false + } }, "onTaskFailure": { "type": "string", @@ -11484,7 +11650,10 @@ "noAction", "performExitOptionsJobAction" ], - "x-ms-enum": { "name": "OnTaskFailure", "modelAsString": false } + "x-ms-enum": { + "name": "OnTaskFailure", + "modelAsString": false + } }, "metadata": { "type": "array", @@ -11561,7 +11730,10 @@ "noAction", "terminateJob" ], - "x-ms-enum": { "name": "OnAllTasksComplete", "modelAsString": false } + "x-ms-enum": { + "name": "OnAllTasksComplete", + "modelAsString": false + } }, "onTaskFailure": { "type": "string", @@ -11571,7 +11743,10 @@ "noAction", "performExitOptionsJobAction" ], - "x-ms-enum": { "name": "OnTaskFailure", "modelAsString": false } + "x-ms-enum": { + "name": "OnTaskFailure", + "modelAsString": false + } }, "metadata": { "type": "array", @@ -11586,7 +11761,10 @@ "title": "The flag that determines if this job will use tasks with dependencies." } }, - "required": ["id", "poolInfo"], + "required": [ + "id", + "poolInfo" + ], "title": "An Azure Batch job to add." }, "CloudJobListResult": { @@ -11615,7 +11793,10 @@ "servererror", "unmapped" ], - "x-ms-enum": { "name": "SchedulingErrorCategory", "modelAsString": false } + "x-ms-enum": { + "name": "SchedulingErrorCategory", + "modelAsString": false + } }, "code": { "type": "string", @@ -11633,7 +11814,9 @@ "title": "The list of additional error details related to the scheduling error." } }, - "required": ["category"], + "required": [ + "category" + ], "title": "Information about an error when scheduling a task." }, "JobPreparationTaskExecutionInformation": { @@ -11658,7 +11841,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "JobPreparationTaskState", "modelAsString": false } + "x-ms-enum": { + "name": "JobPreparationTaskState", + "modelAsString": false + } }, "taskRootDirectory": { "type": "string", @@ -11690,7 +11876,11 @@ "description": "This property is set only if the task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the task has been restarted for reasons other than retry; for example, if the compute node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not." } }, - "required": ["startTime","retryCount","state"], + "required": [ + "startTime", + "retryCount", + "state" + ], "title": "Contains information about the execution of a Job Preparation task on a compute node." }, "JobReleaseTaskExecutionInformation": { @@ -11714,7 +11904,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "JobReleaseTaskState", "modelAsString": false } + "x-ms-enum": { + "name": "JobReleaseTaskState", + "modelAsString": false + } }, "taskRootDirectory": { "type": "string", @@ -11735,7 +11928,10 @@ "title": "The error encountered by the Batch service when starting the task." } }, - "required": ["startTime","state"], + "required": [ + "startTime", + "state" + ], "title": "Contains information about the execution of a Job Release task on a compute node." }, "JobPreparationAndReleaseTaskExecutionInformation": { @@ -11817,7 +12013,9 @@ "title": "Details of the error encountered evaluating the autoscale formula on the pool, if the evaluation was unsuccessful." } }, - "required": ["timestamp"], + "required": [ + "timestamp" + ], "title": "The results and errors from an execution of a pool autoscale formula." }, "ResizeError": { @@ -11858,7 +12056,9 @@ "description": "This may differ from targetOSVersion if the pool state is Upgrading. In this case some virtual machines may be on the targetOSVersion and some may be on the currentOSVersion during the upgrade process. Once all virtual machines have upgraded, currentOSVersion is updated to be the same as targetOSVersion." } }, - "required": ["osFamily"], + "required": [ + "osFamily" + ], "title": "The configuration for nodes in a pool based on the Azure Cloud Services platform." }, "ImageReference": { @@ -11884,7 +12084,11 @@ "description": "A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'." } }, - "required": ["publisher", "offer", "sku"], + "required": [ + "publisher", + "offer", + "sku" + ], "title": "A reference to an Azure Virtual Machines Marketplace image. To get the list of all imageReferences verified by Azure Batch, see the 'List supported node agent SKUs' operation." }, "WindowsConfiguration": { @@ -11914,7 +12118,10 @@ "description": "This property must not be specified if the imageReference property specifies a Linux OS image." } }, - "required": ["imageReference", "nodeAgentSKUId"], + "required": [ + "imageReference", + "nodeAgentSKUId" + ], "title": "The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure." }, "NetworkConfiguration": { @@ -11972,7 +12179,10 @@ "deleting", "upgrading" ], - "x-ms-enum": { "name": "PoolState", "modelAsString": false } + "x-ms-enum": { + "name": "PoolState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -11988,7 +12198,10 @@ "resizing", "stopping" ], - "x-ms-enum": { "name": "AllocationState", "modelAsString": false } + "x-ms-enum": { + "name": "AllocationState", + "modelAsString": false + } }, "allocationStateTransitionTime": { "type": "string", @@ -12179,7 +12392,7 @@ "$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//certs) where certificates are placed." + "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//certs) where certificates are placed." }, "applicationPackageReferences": { "type": "array", @@ -12208,7 +12421,10 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": ["id", "vmSize"], + "required": [ + "id", + "vmSize" + ], "title": "A pool in the Azure Batch service to add." }, "ApplicationListResult": { @@ -12251,7 +12467,9 @@ "description": "You can pass the affinityId of a compute node or task to indicate that this task needs to be placed close to the node or task." } }, - "required": ["affinityId"], + "required": [ + "affinityId" + ], "title": "A locality hint that can be used by the Batch service to select a compute node on which to start a task." }, "TaskExecutionInformation": { @@ -12304,7 +12522,10 @@ "description": "This property is set only if the requeueCount is nonzero." } }, - "required": ["requeueCount","retryCount"], + "required": [ + "requeueCount", + "retryCount" + ], "title": "Information about the execution of a task." }, "ComputeNodeInformation": { @@ -12357,7 +12578,9 @@ "description": "The difference between common resource files and task resource files is that common resource files are downloaded for all subtasks including the primary, whereas task resource files are downloaded only for the primary." } }, - "required": ["numberOfInstances"], + "required": [ + "numberOfInstances" + ], "title": "Settings which specify how to run a multi-instance task.", "description": "Multi-instance tasks are commonly used to support MPI tasks." }, @@ -12419,7 +12642,19 @@ "title": "The total wait time of the task. The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.)" } }, - "required": ["url","startTime","lastUpdateTime","userCPUTime","kernelCPUTime","wallClockTime","readIOps","writeIOps","readIOGiB","writeIOGiB","waitTime"], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "waitTime" + ], "title": "Resource usage statistics for a task." }, "TaskDependencies": { @@ -12456,7 +12691,10 @@ }, "title": "A range of task IDs that a task can depend on. All tasks with IDs in the range must complete successfully before the dependent task can be scheduled.", "description": "The start and end of the range are inclusive. For example, if a range has start 9 and end 12, then it represents tasks '9', '10', '11' and '12'.", - "required": ["start", "end"] + "required": [ + "start", + "end" + ] }, "CloudTask": { "properties": { @@ -12502,7 +12740,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -12519,7 +12760,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -12657,7 +12901,10 @@ "title": "A list of application packages that the Batch service will deploy to the compute node before running the command line." } }, - "required": ["id", "commandLine"], + "required": [ + "id", + "commandLine" + ], "title": "An Azure Batch task to add." }, "TaskAddCollectionParameter": { @@ -12671,7 +12918,9 @@ "title": "The collection of tasks to add." } }, - "required": ["value"], + "required": [ + "value" + ], "title": "A collection of Azure Batch tasks to add." }, "TaskAddResult": { @@ -12685,7 +12934,9 @@ "servererror", "unmapped" ], - "x-ms-enum": { "name": "TaskAddStatus" } + "x-ms-enum": { + "name": "TaskAddStatus" + } }, "taskId": { "type": "string", @@ -12709,7 +12960,10 @@ "title": "The error encountered while attempting to add the task." } }, - "required": ["status","taskId"], + "required": [ + "status", + "taskId" + ], "title": "Result for a single task added as part of an add task collection operation." }, "TaskAddCollectionResult": { @@ -12765,7 +13019,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -12782,7 +13039,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "previousStateTransitionTime": { "type": "string", @@ -12849,14 +13109,19 @@ "running", "completed" ], - "x-ms-enum": { "name": "TaskState", "modelAsString": false } + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false + } }, "executionInfo": { "$ref": "#/definitions/TaskExecutionInformation", "title": "Information about the execution of the task." } }, - "required": ["taskState"], + "required": [ + "taskState" + ], "title": "Information about a task running on a compute node." }, "StartTaskInformation": { @@ -12869,7 +13134,10 @@ "running", "completed" ], - "x-ms-enum": { "name": "StartTaskState", "modelAsString": false } + "x-ms-enum": { + "name": "StartTaskState", + "modelAsString": false + } }, "startTime": { "type": "string", @@ -12906,7 +13174,11 @@ "description": "This element is present only if the task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the task has been restarted for reasons other than retry; for example, if the compute node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not." } }, - "required": ["state","startTime","retryCount"], + "required": [ + "state", + "startTime", + "retryCount" + ], "title": "Information about a start task running on a compute node." }, "ComputeNodeError": { @@ -12957,7 +13229,10 @@ "leavingpool", "offline" ], - "x-ms-enum": { "name": "ComputeNodeState", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeState", + "modelAsString": false + } }, "schedulingState": { "type": "string", @@ -12967,7 +13242,10 @@ "enabled", "disabled" ], - "x-ms-enum": { "name": "SchedulingState", "modelAsString": false } + "x-ms-enum": { + "name": "SchedulingState", + "modelAsString": false + } }, "stateTransitionTime": { "type": "string", @@ -13091,7 +13369,9 @@ "description": "The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux nodes. If this is specified for a Windows node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." } }, - "required": ["name"], + "required": [ + "name" + ], "title": "An user account on a compute node." }, "ComputeNodeGetRemoteLoginSettingsResult": { @@ -13106,7 +13386,10 @@ "title": "The port used for remote login to the compute node." } }, - "required": ["remoteLoginIPAddress","remoteLoginPort"], + "required": [ + "remoteLoginIPAddress", + "remoteLoginPort" + ], "title": "The remote login settings for a compute node." }, "JobSchedulePatchParameter": { @@ -13153,7 +13436,10 @@ "description": "If you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted." } }, - "required": ["schedule", "jobSpecification"], + "required": [ + "schedule", + "jobSpecification" + ], "title": "The set of changes to be made to a job schedule." }, "JobDisableParameter": { @@ -13167,10 +13453,15 @@ "terminate", "wait" ], - "x-ms-enum": { "name": "DisableJobOption", "modelAsString": false } + "x-ms-enum": { + "name": "DisableJobOption", + "modelAsString": false + } } }, - "required": ["disableTasks"], + "required": [ + "disableTasks" + ], "title": "Options when disabling a job." }, "JobTerminateParameter": { @@ -13198,7 +13489,10 @@ "noAction", "terminateJob" ], - "x-ms-enum": { "name": "OnAllTasksComplete", "modelAsString": false } + "x-ms-enum": { + "name": "OnAllTasksComplete", + "modelAsString": false + } }, "constraints": { "$ref": "#/definitions/JobConstraints", @@ -13255,10 +13549,15 @@ "noAction", "terminateJob" ], - "x-ms-enum": { "name": "OnAllTasksComplete", "modelAsString": false } + "x-ms-enum": { + "name": "OnAllTasksComplete", + "modelAsString": false + } } }, - "required": ["poolInfo"], + "required": [ + "poolInfo" + ], "title": "The set of changes to be made to a job." }, "PoolEnableAutoScaleParameter": { @@ -13285,7 +13584,9 @@ "description": "The formula is validated and its results calculated, but it is not applied to the pool. To apply the formula to the pool, 'Enable automatic scaling on a pool'. For more information about specifying this formula, see Automatically scale compute nodes in an Azure Batch pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling)." } }, - "required": ["autoScaleFormula"], + "required": [ + "autoScaleFormula" + ], "title": "Options for evaluating an automatic scaling formula on a pool." }, "PoolResizeParameter": { @@ -13311,10 +13612,15 @@ "taskcompletion", "retaineddata" ], - "x-ms-enum": { "name": "ComputeNodeDeallocationOption", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeDeallocationOption", + "modelAsString": false + } } }, - "required": ["targetDedicated"], + "required": [ + "targetDedicated" + ], "title": "Options for changing the size of a pool." }, "PoolUpdatePropertiesParameter": { @@ -13349,7 +13655,11 @@ "description": "This list replaces any existing metadata configured on the pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the pool." } }, - "required": ["certificateReferences", "metadata", "applicationPackageReferences"], + "required": [ + "certificateReferences", + "metadata", + "applicationPackageReferences" + ], "title": "The set of changes to be made to a pool." }, "PoolUpgradeOSParameter": { @@ -13359,7 +13669,9 @@ "title": "The Azure Guest OS version to be installed on the virtual machines in the pool." } }, - "required": ["targetOSVersion"], + "required": [ + "targetOSVersion" + ], "title": "Options for upgrading the operating system of compute nodes in a pool." }, "PoolPatchParameter": { @@ -13439,7 +13751,10 @@ "taskcompletion", "retaineddata" ], - "x-ms-enum": { "name": "ComputeNodeRebootOption", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeRebootOption", + "modelAsString": false + } } }, "title": "Options for rebooting a compute node." @@ -13456,7 +13771,10 @@ "taskcompletion", "retaineddata" ], - "x-ms-enum": { "name": "ComputeNodeReimageOption", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeReimageOption", + "modelAsString": false + } } }, "title": "Options for reimaging a compute node." @@ -13472,7 +13790,10 @@ "terminate", "taskcompletion" ], - "x-ms-enum": { "name": "DisableComputeNodeSchedulingOption", "modelAsString": false } + "x-ms-enum": { + "name": "DisableComputeNodeSchedulingOption", + "modelAsString": false + } } }, "title": "Options for disabling scheduling on a compute node." @@ -13503,10 +13824,15 @@ "taskcompletion", "retaineddata" ], - "x-ms-enum": { "name": "ComputeNodeDeallocationOption", "modelAsString": false } + "x-ms-enum": { + "name": "ComputeNodeDeallocationOption", + "modelAsString": false + } } }, - "required": ["nodeList"], + "required": [ + "nodeList" + ], "title": "Options for removing compute nodes from a pool." }, "ErrorMessage": { @@ -13565,4 +13891,4 @@ "description": "Client API Version." } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/BatchService.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/BatchService.json index af327c849ccd..809b32de34f2 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/BatchService.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/BatchService.json @@ -247,7 +247,9 @@ }, "operationId": "Pool_ListUsageMetrics", "x-ms-examples": { - "Pool list usage metrics": { "$ref": "./examples/PoolListUsageMetrics.json" } + "Pool list usage metrics": { + "$ref": "./examples/PoolListUsageMetrics.json" + } }, "summary": "Lists the usage metrics, aggregated by pool across individual time intervals, for the specified account.", "description": "If you do not specify a $filter clause including a poolId, the response includes all pools that existed in the account in the time range of the returned aggregation intervals.", @@ -399,7 +401,9 @@ }, "operationId": "Account_ListNodeAgentSkus", "x-ms-examples": { - "Account list node agent skus": { "$ref": "./examples/AccountListNodeAgentSkus.json" } + "Account list node agent skus": { + "$ref": "./examples/AccountListNodeAgentSkus.json" + } }, "summary": "Lists all node agent SKUs supported by the Azure Batch service.", "x-ms-request-id": "request-id", @@ -523,7 +527,9 @@ ], "operationId": "Pool_GetAllLifetimeStatistics", "x-ms-examples": { - "Pool get lifetime statistics": { "$ref": "./examples/PoolGetLifetimeStatistics.json" } + "Pool get lifetime statistics": { + "$ref": "./examples/PoolGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the pools in the specified account.", "description": "Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.", @@ -623,7 +629,9 @@ ], "operationId": "Job_GetAllLifetimeStatistics", "x-ms-examples": { - "Job get lifetime statistics": { "$ref": "./examples/JobGetLifetimeStatistics.json" } + "Job get lifetime statistics": { + "$ref": "./examples/JobGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the jobs in the specified account.", "description": "Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.", @@ -723,7 +731,9 @@ ], "operationId": "Certificate_Add", "x-ms-examples": { - "Certificate add": { "$ref": "./examples/CertificateAdd.json" } + "Certificate add": { + "$ref": "./examples/CertificateAdd.json" + } }, "summary": "Adds a certificate to the specified account.", "x-ms-request-id": "request-id", @@ -833,7 +843,9 @@ }, "operationId": "Certificate_List", "x-ms-examples": { - "Certificate list": { "$ref": "./examples/CertificateList.json" } + "Certificate list": { + "$ref": "./examples/CertificateList.json" + } }, "summary": "Lists all of the certificates that have been added to the specified account.", "x-ms-request-id": "request-id", @@ -967,7 +979,9 @@ ], "operationId": "Certificate_CancelDeletion", "x-ms-examples": { - "Certificate cancel delete": { "$ref": "./examples/CertificateCancelDelete.json" } + "Certificate cancel delete": { + "$ref": "./examples/CertificateCancelDelete.json" + } }, "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.", @@ -1082,7 +1096,9 @@ ], "operationId": "Certificate_Delete", "x-ms-examples": { - "Certificate delete": { "$ref": "./examples/CertificateDelete.json" } + "Certificate delete": { + "$ref": "./examples/CertificateDelete.json" + } }, "summary": "Deletes a certificate from the specified account.", "description": "You cannot delete a certificate if a resource (pool or compute node) is using it. Before you can delete a certificate, you must therefore make sure that the certificate is not associated with any existing pools, the certificate is not installed on any compute nodes (even if you remove a certificate from a pool, it is not removed from existing compute nodes in that pool until they restart), and no running tasks depend on the certificate. If you try to delete a certificate that is in use, the deletion fails. The certificate status changes to deleteFailed. You can use Cancel Delete Certificate to set the status back to active if you decide that you want to continue using the certificate.", @@ -1191,7 +1207,9 @@ ], "operationId": "Certificate_Get", "x-ms-examples": { - "Certificate get": { "$ref": "./examples/CertificateGet.json" } + "Certificate get": { + "$ref": "./examples/CertificateGet.json" + } }, "description": "Gets information about the specified certificate.", "x-ms-request-id": "request-id", @@ -1314,7 +1332,9 @@ ], "operationId": "File_DeleteFromTask", "x-ms-examples": { - "File delete from task": { "$ref": "./examples/FileDeleteFromTask.json" } + "File delete from task": { + "$ref": "./examples/FileDeleteFromTask.json" + } }, "summary": "Deletes the specified task file from the compute node where the task ran.", "x-ms-request-id": "request-id", @@ -1598,7 +1618,9 @@ ], "operationId": "File_GetPropertiesFromTask", "x-ms-examples": { - "File get properties from task": { "$ref": "./examples/FileGetPropertiesFromTask.json" } + "File get properties from task": { + "$ref": "./examples/FileGetPropertiesFromTask.json" + } }, "description": "Gets the properties of the specified task file.", "x-ms-request-id": "request-id", @@ -1763,7 +1785,9 @@ ], "operationId": "File_DeleteFromComputeNode", "x-ms-examples": { - "File delete from node": { "$ref": "./examples/FileDeleteFromNode.json" } + "File delete from node": { + "$ref": "./examples/FileDeleteFromNode.json" + } }, "summary": "Deletes the specified task file from the compute node.", "x-ms-request-id": "request-id", @@ -2047,7 +2071,9 @@ ], "operationId": "File_GetPropertiesFromComputeNode", "x-ms-examples": { - "File get properties from node": { "$ref": "./examples/FileGetPropertiesFromNode.json" } + "File get properties from node": { + "$ref": "./examples/FileGetPropertiesFromNode.json" + } }, "description": "Gets the properties of the specified compute node file.", "x-ms-request-id": "request-id", @@ -2215,7 +2241,9 @@ }, "operationId": "File_ListFromTask", "x-ms-examples": { - "File list from task": { "$ref": "./examples/FileListFromTask.json" } + "File list from task": { + "$ref": "./examples/FileListFromTask.json" + } }, "summary": "Lists the files in a task's directory on its compute node.", "x-ms-request-id": "request-id", @@ -2363,7 +2391,9 @@ }, "operationId": "File_ListFromComputeNode", "x-ms-examples": { - "File list from node": { "$ref": "./examples/FileListFromNode.json" } + "File list from node": { + "$ref": "./examples/FileListFromNode.json" + } }, "summary": "Lists all of the files in task directories on the specified compute node.", "x-ms-request-id": "request-id", @@ -2651,7 +2681,9 @@ ], "operationId": "JobSchedule_Delete", "x-ms-examples": { - "JobSchedule delete": { "$ref": "./examples/JobScheduleDelete.json" } + "JobSchedule delete": { + "$ref": "./examples/JobScheduleDelete.json" + } }, "summary": "Deletes a job schedule from the specified account.", "description": "When you delete a job schedule, this also deletes all jobs and tasks under that schedule. When tasks are deleted, all the files in their working directories on the compute nodes are also deleted (the retention period is ignored). The job schedule statistics are no longer accessible once the job schedule is deleted, though they are still counted towards account lifetime statistics.", @@ -2784,7 +2816,9 @@ ], "operationId": "JobSchedule_Get", "x-ms-examples": { - "JobSchedule get": { "$ref": "./examples/JobScheduleGet.json" } + "JobSchedule get": { + "$ref": "./examples/JobScheduleGet.json" + } }, "description": "Gets information about the specified job schedule.", "x-ms-request-id": "request-id", @@ -2950,7 +2984,9 @@ ], "operationId": "JobSchedule_Patch", "x-ms-examples": { - "JobSchedule patch": { "$ref": "./examples/JobSchedulePatch.json" } + "JobSchedule patch": { + "$ref": "./examples/JobSchedulePatch.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This replaces only the job schedule properties specified in the request. For example, if the schedule property is not specified with this request, then the Batch service will keep the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3107,7 +3143,9 @@ ], "operationId": "JobSchedule_Update", "x-ms-examples": { - "JobSchedule update": { "$ref": "./examples/JobScheduleUpdate.json" } + "JobSchedule update": { + "$ref": "./examples/JobScheduleUpdate.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This fully replaces all the updatable properties of the job schedule. For example, if the schedule property is not specified with this request, then the Batch service will remove the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3266,7 +3304,9 @@ ], "operationId": "JobSchedule_Disable", "x-ms-examples": { - "JobSchedule disable": { "$ref": "./examples/JobScheduleDisable.json" } + "JobSchedule disable": { + "$ref": "./examples/JobScheduleDisable.json" + } }, "summary": "Disables a job schedule.", "description": "No new jobs will be created until the job schedule is enabled again.", @@ -3416,7 +3456,9 @@ ], "operationId": "JobSchedule_Enable", "x-ms-examples": { - "JobSchedule enable": { "$ref": "./examples/JobScheduleEnable.json" } + "JobSchedule enable": { + "$ref": "./examples/JobScheduleEnable.json" + } }, "summary": "Enables a job schedule.", "x-ms-request-id": "request-id", @@ -3565,7 +3607,9 @@ ], "operationId": "JobSchedule_Terminate", "x-ms-examples": { - "JobSchedule terminate": { "$ref": "./examples/JobScheduleTerminate.json" } + "JobSchedule terminate": { + "$ref": "./examples/JobScheduleTerminate.json" + } }, "summary": "Terminates a job schedule.", "x-ms-request-id": "request-id", @@ -3714,8 +3758,12 @@ ], "operationId": "JobSchedule_Add", "x-ms-examples": { - "Add a basic JobSchedule": { "$ref": "./examples/JobScheduleAdd_Basic.json" }, - "Add a complex JobScheduleAdd": { "$ref": "./examples/JobScheduleAdd_Complex.json" } + "Add a basic JobSchedule": { + "$ref": "./examples/JobScheduleAdd_Basic.json" + }, + "Add a complex JobScheduleAdd": { + "$ref": "./examples/JobScheduleAdd_Complex.json" + } }, "summary": "Adds a job schedule to the specified account.", "x-ms-request-id": "request-id", @@ -3825,7 +3873,9 @@ }, "operationId": "JobSchedule_List", "x-ms-examples": { - "JobSchedule list": { "$ref": "./examples/JobScheduleList.json" } + "JobSchedule list": { + "$ref": "./examples/JobScheduleList.json" + } }, "summary": "Lists all of the job schedules in the specified account.", "x-ms-request-id": "request-id", @@ -4099,7 +4149,9 @@ ], "operationId": "Job_Get", "x-ms-examples": { - "Job get": { "$ref": "./examples/JobGet.json" } + "Job get": { + "$ref": "./examples/JobGet.json" + } }, "summary": "Gets information about the specified job.", "x-ms-request-id": "request-id", @@ -4265,7 +4317,9 @@ ], "operationId": "Job_Patch", "x-ms-examples": { - "Job patch": { "$ref": "./examples/JobPatch.json" } + "Job patch": { + "$ref": "./examples/JobPatch.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This replaces only the job properties specified in the request. For example, if the job has constraints, and a request does not specify the constraints element, then the job keeps the existing constraints.", @@ -4422,7 +4476,9 @@ ], "operationId": "Job_Update", "x-ms-examples": { - "Job update": { "$ref": "./examples/JobUpdate.json" } + "Job update": { + "$ref": "./examples/JobUpdate.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.", @@ -4581,7 +4637,9 @@ ], "operationId": "Job_Disable", "x-ms-examples": { - "Job disable": { "$ref": "./examples/JobDisable.json" } + "Job disable": { + "$ref": "./examples/JobDisable.json" + } }, "summary": "Disables the specified job, preventing new tasks from running.", "description": "The Batch Service immediately moves the job to the disabling state. Batch then uses the disableTasks parameter to determine what to do with the currently running tasks of the job. The job remains in the disabling state until the disable operation is completed and all tasks have been dealt with according to the disableTasks option; the job then moves to the disabled state. No new tasks are started under the job until it moves back to active state. If you try to disable a job that is in any state other than active, disabling, or disabled, the request fails with status code 409.", @@ -4740,7 +4798,9 @@ ], "operationId": "Job_Enable", "x-ms-examples": { - "Job enable": { "$ref": "./examples/JobEnable.json" } + "Job enable": { + "$ref": "./examples/JobEnable.json" + } }, "summary": "Enables the specified job, allowing new tasks to run.", "description": "When you call this API, the Batch service sets a disabled job to the enabling state. After the this operation is completed, the job moves to the active state, and scheduling of new tasks under the job resumes. The Batch service does not allow a task to remain in the active state for more than 7 days. Therefore, if you enable a job containing active tasks which were added more than 7 days ago, those tasks will not run.", @@ -4890,7 +4950,9 @@ ], "operationId": "Job_Terminate", "x-ms-examples": { - "Job terminate": { "$ref": "./examples/JobTerminate.json" } + "Job terminate": { + "$ref": "./examples/JobTerminate.json" + } }, "summary": "Terminates the specified job, marking it as completed.", "description": "When a Terminate Job request is received, the Batch service sets the job to the terminating state. The Batch service then terminates any active or running tasks associated with the job, and runs any required Job Release tasks. The job then moves into the completed state.", @@ -5049,8 +5111,12 @@ ], "operationId": "Job_Add", "x-ms-examples": { - "Add a basic job": { "$ref": "./examples/JobAdd_Basic.json" }, - "Add a complex job": { "$ref": "./examples/JobAdd_Complex.json" } + "Add a basic job": { + "$ref": "./examples/JobAdd_Basic.json" + }, + "Add a complex job": { + "$ref": "./examples/JobAdd_Complex.json" + } }, "summary": "Adds a job to the specified account.", "description": "The Batch service supports two ways to control the work done as part of a job. In the first approach, the user specifies a Job Manager task. The Batch service launches this task when it is ready to start the job. The Job Manager task controls all other tasks that run under this job, by using the Task APIs. In the second approach, the user directly controls the execution of tasks under an active job, by using the Task APIs. Also note: when naming jobs, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5161,7 +5227,9 @@ }, "operationId": "Job_List", "x-ms-examples": { - "Job list": { "$ref": "./examples/JobList.json" } + "Job list": { + "$ref": "./examples/JobList.json" + } }, "summary": "Lists all of the jobs in the specified account.", "x-ms-request-id": "request-id", @@ -5459,7 +5527,9 @@ }, "operationId": "Job_ListPreparationAndReleaseTaskStatus", "x-ms-examples": { - "Job list preparation and release task status": { "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" } + "Job list preparation and release task status": { + "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" + } }, "summary": "Lists the execution status of the Job Preparation and Job Release task for the specified job across the compute nodes where the job has run.", "description": "This API returns the Job Preparation and Job Release task status on all compute nodes that have run the Job Preparation or Job Release task. This includes nodes which have since been removed from the pool. ", @@ -5601,8 +5671,12 @@ ], "operationId": "Pool_Add", "x-ms-examples": { - "Add a CloudServiceConfiguration pool": { "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" }, - "Add a VirtualMachineConfiguration pool": { "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" } + "Add a CloudServiceConfiguration pool": { + "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool": { + "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" + } }, "summary": "Adds a pool to the specified account.", "description": "When naming pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5713,7 +5787,9 @@ }, "operationId": "Pool_List", "x-ms-examples": { - "Pool list": { "$ref": "./examples/PoolList_Basic.json" } + "Pool list": { + "$ref": "./examples/PoolList_Basic.json" + } }, "summary": "Lists all of the pools in the specified account.", "x-ms-request-id": "request-id", @@ -5857,7 +5933,9 @@ ], "operationId": "Pool_Delete", "x-ms-examples": { - "Pool delete": { "$ref": "./examples/PoolDelete.json" } + "Pool delete": { + "$ref": "./examples/PoolDelete.json" + } }, "summary": "Deletes a pool from the specified account.", "description": "When you request that a pool be deleted, the following actions occur: the pool state is set to deleting; any ongoing resize operation on the pool are stopped; the Batch service starts resizing the pool to zero nodes; any tasks running on existing nodes are terminated and requeued (as if a resize pool operation had been requested with the default requeue option); finally, the pool is removed from the system. Because running tasks are requeued, the user can rerun these tasks by updating their job to target a different pool. The tasks can then run on the new pool. If you want to override the requeue behavior, then you should call resize pool explicitly to shrink the pool to zero size before deleting the pool. If you call an Update, Patch or Delete API on a pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.", @@ -6133,7 +6211,9 @@ ], "operationId": "Pool_Get", "x-ms-examples": { - "Pool get": { "$ref": "./examples/PoolGet_Basic.json" } + "Pool get": { + "$ref": "./examples/PoolGet_Basic.json" + } }, "description": "Gets information about the specified pool.", "x-ms-request-id": "request-id", @@ -6559,7 +6639,9 @@ ], "operationId": "Pool_EnableAutoScale", "x-ms-examples": { - "Pool enable autoscale": { "$ref": "./examples/PoolEnableAutoscale.json" } + "Pool enable autoscale": { + "$ref": "./examples/PoolEnableAutoscale.json" + } }, "summary": "Enables automatic scaling for a pool.", "description": "You cannot enable automatic scaling on a pool if a resize operation is in progress on the pool. If automatic scaling of the pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same pool more than once every 30 seconds.", @@ -6718,7 +6800,9 @@ ], "operationId": "Pool_EvaluateAutoScale", "x-ms-examples": { - "Pool evaluate autoscale": { "$ref": "./examples/PoolEvaluateAutoscale.json" } + "Pool evaluate autoscale": { + "$ref": "./examples/PoolEvaluateAutoscale.json" + } }, "summary": "Gets the result of evaluating an automatic scaling formula on the pool.", "description": "This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the pool.", @@ -6838,7 +6922,9 @@ ], "operationId": "Pool_Resize", "x-ms-examples": { - "Pool resize": { "$ref": "./examples/PoolResize.json" } + "Pool resize": { + "$ref": "./examples/PoolResize.json" + } }, "summary": "Changes the number of compute nodes that are assigned to a pool.", "description": "You can only resize a pool when its allocation state is steady. If the pool is already resizing, the request fails with status code 409. When you resize a pool, the pool's allocation state changes from steady to resizing. You cannot resize pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a pool downwards, the Batch service chooses which nodes to remove. To remove specific nodes, use the pool remove nodes API instead.", @@ -6997,7 +7083,9 @@ ], "operationId": "Pool_StopResize", "x-ms-examples": { - "Pool stop resize": { "$ref": "./examples/PoolStopResize.json" } + "Pool stop resize": { + "$ref": "./examples/PoolStopResize.json" + } }, "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. 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.", @@ -7147,7 +7235,9 @@ ], "operationId": "Pool_UpdateProperties", "x-ms-examples": { - "Pool update": { "$ref": "./examples/PoolUpdate.json" } + "Pool update": { + "$ref": "./examples/PoolUpdate.json" + } }, "summary": "Updates the properties of the specified pool.", "description": "This fully replaces all the updatable properties of the pool. For example, if the pool has a start task associated with it and if start task is not specified with this request, then the Batch service will remove the existing start task.", @@ -7420,7 +7510,9 @@ ], "operationId": "Pool_RemoveNodes", "x-ms-examples": { - "Pool remove nodes": { "$ref": "./examples/PoolRemoveNodes.json" } + "Pool remove nodes": { + "$ref": "./examples/PoolRemoveNodes.json" + } }, "summary": "Removes compute nodes from the specified pool.", "description": "This operation can only run when the allocation state of the pool is steady. When this operation runs, the allocation state changes from steady to resizing.", @@ -7579,8 +7671,12 @@ ], "operationId": "Task_Add", "x-ms-examples": { - "Add a basic task": { "$ref": "./examples/TaskAdd_Basic.json" }, - "Add a task with exit conditions": { "$ref": "./examples/TaskAdd_ExitConditions.json" } + "Add a basic task": { + "$ref": "./examples/TaskAdd_Basic.json" + }, + "Add a task with exit conditions": { + "$ref": "./examples/TaskAdd_ExitConditions.json" + } }, "summary": "Adds a task to the specified job.", "x-ms-request-id": "request-id", @@ -7697,7 +7793,9 @@ }, "operationId": "Task_List", "x-ms-examples": { - "Task list": { "$ref": "./examples/TaskList.json" } + "Task list": { + "$ref": "./examples/TaskList.json" + } }, "summary": "Lists all of the tasks that are associated with the specified job.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -7849,8 +7947,12 @@ ], "operationId": "Task_AddCollection", "x-ms-examples": { - "Add a basic collection of tasks": { "$ref": "./examples/TaskAddCollection_Basic.json" }, - "Add a complex collection of tasks": { "$ref": "./examples/TaskAddCollection_Complex.json" } + "Add a basic collection of tasks": { + "$ref": "./examples/TaskAddCollection_Basic.json" + }, + "Add a complex collection of tasks": { + "$ref": "./examples/TaskAddCollection_Complex.json" + } }, "summary": "Adds a collection of tasks to the specified job.", "description": "Note that each task must have a unique ID. The Batch service may not return the results for each task in the same order the tasks were submitted in this request. If the server times out or the connection is closed during the request, the request may have been partially or fully processed, or not at all. In such cases, the user should re-issue the request. Note that it is up to the user to correctly handle failures when re-issuing a request. For example, you should use the same task ids during a retry so that if the prior operation succeeded, the retry will not create extra tasks unexpectedly.", @@ -7955,7 +8057,9 @@ ], "operationId": "Task_Delete", "x-ms-examples": { - "Task delete": { "$ref": "./examples/TaskDelete.json" } + "Task delete": { + "$ref": "./examples/TaskDelete.json" + } }, "summary": "Deletes a task from the specified job.", "description": "When a task is deleted, all of the files in its directory on the compute node where it ran are also deleted (regardless of the retention time). For multi-instance tasks, the delete task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.", @@ -8095,7 +8199,9 @@ ], "operationId": "Task_Get", "x-ms-examples": { - "Task get": { "$ref": "./examples/TaskGet.json" } + "Task get": { + "$ref": "./examples/TaskGet.json" + } }, "summary": "Gets information about the specified task.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -8273,7 +8379,9 @@ ], "operationId": "Task_Update", "x-ms-examples": { - "Task update": { "$ref": "./examples/TaskUpdate.json" } + "Task update": { + "$ref": "./examples/TaskUpdate.json" + } }, "description": "Updates the properties of the specified task.", "x-ms-request-id": "request-id", @@ -8438,7 +8546,9 @@ ], "operationId": "Task_ListSubtasks", "x-ms-examples": { - "Task list subtasks": { "$ref": "./examples/TaskListSubtasks.json" } + "Task list subtasks": { + "$ref": "./examples/TaskListSubtasks.json" + } }, "summary": "Lists all of the subtasks that are associated with the specified multi-instance task.", "description": "If the task is not a multi-instance task then this returns an empty collection.", @@ -8562,7 +8672,9 @@ ], "operationId": "Task_Terminate", "x-ms-examples": { - "Task terminate": { "$ref": "./examples/TaskTerminate.json" } + "Task terminate": { + "$ref": "./examples/TaskTerminate.json" + } }, "summary": "Terminates the specified task.", "description": "When the task has been terminated, it moves to the completed state. For multi-instance tasks, the terminate task operation applies synchronously to the primary task; subtasks are then terminated asynchronously in the background.", @@ -8719,7 +8831,9 @@ ], "operationId": "Task_Reactivate", "x-ms-examples": { - "Task reactivate": { "$ref": "./examples/TaskReactivate.json" } + "Task reactivate": { + "$ref": "./examples/TaskReactivate.json" + } }, "summary": "Reactivates the specified task.", "description": "Reactivation makes a task eligible to be retried again up to its maximum retry count. The task's state is changed to active. As the task is no longer in the completed state, any previous exit code or scheduling error is no longer available after reactivation. This will fail for tasks that are not completed or that previously completed successfully (with an exit code of 0). Additionally, this will fail if the job has completed (or is terminating or deleting).", @@ -8876,7 +8990,9 @@ ], "operationId": "ComputeNode_AddUser", "x-ms-examples": { - "Node add user": { "$ref": "./examples/NodeAddUser.json" } + "Node add user": { + "$ref": "./examples/NodeAddUser.json" + } }, "summary": "Adds a user account to the specified compute node.", "description": "You can add a user account to a node only when it is in the idle or running state.", @@ -9000,7 +9116,9 @@ ], "operationId": "ComputeNode_DeleteUser", "x-ms-examples": { - "Node delete user": { "$ref": "./examples/NodeDeleteUser.json" } + "Node delete user": { + "$ref": "./examples/NodeDeleteUser.json" + } }, "summary": "Deletes a user account from the specified compute node.", "description": "You can delete a user account to a node only when it is in the idle or running state.", @@ -9105,7 +9223,9 @@ ], "operationId": "ComputeNode_UpdateUser", "x-ms-examples": { - "Node update user": { "$ref": "./examples/NodeUpdateUser.json" } + "Node update user": { + "$ref": "./examples/NodeUpdateUser.json" + } }, "summary": "Updates the password or expiration time of a user account on the specified compute node.", "description": "This operation replaces of all the updatable properties of the account. For example, if the expiryTime element is not specified, the current value is replaced with the default value, not left unmodified. You can update a user account on a node only when it is in the idle or running state.", @@ -9236,7 +9356,9 @@ ], "operationId": "ComputeNode_Get", "x-ms-examples": { - "Node get": { "$ref": "./examples/NodeGet_Basic.json" } + "Node get": { + "$ref": "./examples/NodeGet_Basic.json" + } }, "summary": "Gets information about the specified compute node.", "x-ms-request-id": "request-id", @@ -9359,7 +9481,9 @@ ], "operationId": "ComputeNode_Reboot", "x-ms-examples": { - "Node reboot": { "$ref": "./examples/NodeReboot.json" } + "Node reboot": { + "$ref": "./examples/NodeReboot.json" + } }, "summary": "Restarts the specified compute node.", "description": "You can restart a node only if it is in an idle or running state.", @@ -9483,7 +9607,9 @@ ], "operationId": "ComputeNode_Reimage", "x-ms-examples": { - "Node reimage": { "$ref": "./examples/NodeReimage.json" } + "Node reimage": { + "$ref": "./examples/NodeReimage.json" + } }, "summary": "Reinstalls the operating system on the specified compute node.", "description": "You can reinstall the operating system on a node only if it is in an idle or running state. This API can be invoked only on pools created with the cloud service configuration property.", @@ -9607,7 +9733,9 @@ ], "operationId": "ComputeNode_DisableScheduling", "x-ms-examples": { - "Node disable scheduling": { "$ref": "./examples/NodeDisableScheduling.json" } + "Node disable scheduling": { + "$ref": "./examples/NodeDisableScheduling.json" + } }, "summary": "Disables task scheduling on the specified compute node.", "x-ms-request-id": "request-id", @@ -9730,7 +9858,9 @@ ], "operationId": "ComputeNode_EnableScheduling", "x-ms-examples": { - "Node enable scheduling": { "$ref": "./examples/NodeEnableScheduling.json" } + "Node enable scheduling": { + "$ref": "./examples/NodeEnableScheduling.json" + } }, "summary": "Enables task scheduling on the specified compute node.", "x-ms-request-id": "request-id", @@ -9844,7 +9974,9 @@ ], "operationId": "ComputeNode_GetRemoteLoginSettings", "x-ms-examples": { - "Node get remote login settings": { "$ref": "./examples/NodeGetRemoteLoginSettings.json" } + "Node get remote login settings": { + "$ref": "./examples/NodeGetRemoteLoginSettings.json" + } }, "summary": "Gets the settings required for remote login to a compute node.", "description": "Before you can remotely login to a node using the remote login settings, you must create a user account on the node. This API can be invoked only on pools created with the virtual machine configuration property.", @@ -10072,7 +10204,9 @@ }, "operationId": "ComputeNode_List", "x-ms-examples": { - "Node list": { "$ref": "./examples/NodeList.json" } + "Node list": { + "$ref": "./examples/NodeList.json" + } }, "summary": "Lists the compute nodes in the specified pool.", "x-ms-request-id": "request-id", @@ -10245,7 +10379,15 @@ "title": "The cross data center network egress from the pool during this interval, in GiB." } }, - "required": [ "poolId", "startTime", "endTime", "vmSize", "totalCoreHours", "dataIngressGiB", "dataEgressGiB" ], + "required": [ + "poolId", + "startTime", + "endTime", + "vmSize", + "totalCoreHours", + "dataIngressGiB", + "dataEgressGiB" + ], "title": "Usage metrics for a pool across an aggregation interval." }, "PoolListUsageMetricsResult": { @@ -10349,7 +10491,11 @@ "title": "The aggregated wall-clock time of the dedicated compute node cores being part of the pool." } }, - "required": [ "startTime", "lastUpdateTime", "dedicatedCoreTime" ], + "required": [ + "startTime", + "lastUpdateTime", + "dedicatedCoreTime" + ], "title": "Statistics related to pool usage information." }, "ResourceStatistics": { @@ -10420,7 +10566,21 @@ "title": "The total amount of data in GiB of network writes across all nodes in the pool." } }, - "required": [ "startTime", "lastUpdateTime", "avgCPUPercentage", "avgMemoryGiB", "peakMemoryGiB", "avgDiskGiB", "peakDiskGiB", "diskReadIOps", "diskWriteIOps", "diskReadGiB", "diskWriteGiB", "networkReadGiB", "networkWriteGiB" ], + "required": [ + "startTime", + "lastUpdateTime", + "avgCPUPercentage", + "avgMemoryGiB", + "peakMemoryGiB", + "avgDiskGiB", + "peakDiskGiB", + "diskReadIOps", + "diskWriteIOps", + "diskReadGiB", + "diskWriteGiB", + "networkReadGiB", + "networkWriteGiB" + ], "title": "Statistics related to resource consumption by compute nodes in a pool." }, "PoolStatistics": { @@ -10448,7 +10608,11 @@ "title": "Statistics related to resource consumption by compute nodes in the pool." } }, - "required": [ "url", "startTime", "lastUpdateTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime" + ], "title": "Contains utilization and resource usage statistics for the lifetime of a pool." }, "JobStatistics": { @@ -10526,7 +10690,22 @@ "description": "The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.) This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job." }, "NameValuePair": { @@ -10621,7 +10800,9 @@ "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." } }, - "required": [ "applicationId" ], + "required": [ + "applicationId" + ], "title": "A reference to an application package to be deployed to compute nodes." }, "ApplicationSummary": { @@ -10642,7 +10823,11 @@ } } }, - "required": [ "id", "displayName", "versions" ], + "required": [ + "id", + "displayName", + "versions" + ], "title": "Contains information about an application in an Azure Batch account." }, "CertificateAddParameter": { @@ -10678,7 +10863,11 @@ "description": "This is required if the certificate format is pfx. It should be omitted if the certificate format is cer." } }, - "required": [ "thumbprint", "thumbprintAlgorithm", "data" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm", + "data" + ], "title": "A certificate that can be installed on compute nodes and can be used to authenticate operations on the machine." }, "CertificateListResult": { @@ -10725,7 +10914,10 @@ "description": "The file mode is returned only for files on Linux compute nodes." } }, - "required": [ "lastModified", "contentLength" ], + "required": [ + "lastModified", + "contentLength" + ], "title": "The properties of a file on a compute node." }, "NodeFile": { @@ -10828,7 +11020,10 @@ "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." } }, - "required": [ "blobSource", "filePath" ], + "required": [ + "blobSource", + "filePath" + ], "title": "A file to be downloaded from Azure blob storage to a compute node." }, "EnvironmentSetting": { @@ -10842,7 +11037,9 @@ "title": "The value of the environment variable." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "An environment variable to be set on a task process." }, "ExitConditions": { @@ -10886,7 +11083,10 @@ } }, "title": "How the Batch service should respond if a task exits with a particular exit code.", - "required": [ "code", "exitOptions" ] + "required": [ + "code", + "exitOptions" + ] }, "ExitCodeRangeMapping": { "properties": { @@ -10906,7 +11106,11 @@ } }, "title": "A range of exit codes and how the Batch service should respond to exit codes within that range.", - "required": [ "start", "end", "exitOptions" ] + "required": [ + "start", + "end", + "exitOptions" + ] }, "ExitOptions": { "properties": { @@ -11001,7 +11205,10 @@ "description": "The SSH private key establishes password-less SSH between nodes in a Linux pool when the pool's enableInterNodeCommunication property is true. This property will be ignored in a Windows pool." } }, - "required": [ "name", "password" ], + "required": [ + "name", + "password" + ], "title": "Properties used to create a user on an Azure Batch node." }, "TaskConstraints": { @@ -11092,7 +11299,10 @@ "$ref": "#/definitions/AuthenticationTokenSettings" } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "Specifies details of a Job Manager task." }, "JobPreparationTask": { @@ -11142,7 +11352,9 @@ "description": "The Job Preparation task is always rerun if a compute node is reimaged, or if the Job Preparation task did not complete (e.g. because the reboot occurred while the task was running). Therefore, you should always write a Job Preparation task to be idempotent and to behave correctly if run multiple times. The default value is true." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Preparation task to run before any tasks of the job on any given compute node." }, "JobReleaseTask": { @@ -11189,7 +11401,9 @@ "description": "If omitted, the task runs as a non-administrative user unique to the task." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Release task to run on job completion on any compute node where the job has run." }, "TaskSchedulingPolicy": { @@ -11208,7 +11422,9 @@ } } }, - "required": [ "nodeFillType" ], + "required": [ + "nodeFillType" + ], "title": "Specifies how tasks should be distributed across compute nodes." }, "StartTask": { @@ -11249,7 +11465,9 @@ "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 false." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "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." }, "CertificateReference": { @@ -11300,7 +11518,10 @@ "description": "The default is all accounts." } }, - "required": [ "thumbprint", "thumbprintAlgorithm" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm" + ], "title": "A reference to a certificate to be installed on compute nodes in a pool." }, "MetadataItem": { @@ -11314,7 +11535,10 @@ "title": "The value of the metadata item." } }, - "required": [ "name", "value" ], + "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." }, @@ -11423,7 +11647,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "vmSize" ], + "required": [ + "vmSize" + ], "title": "Specification for creating a new pool." }, "AutoPoolSpecification": { @@ -11457,7 +11683,9 @@ "title": "The pool specification for the auto pool." } }, - "required": [ "poolLifetimeOption" ], + "required": [ + "poolLifetimeOption" + ], "title": "Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto pool when the job is submitted." }, "PoolInformation": { @@ -11542,7 +11770,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "Specifies details of the jobs to be created on a schedule." }, "RecentJob": { @@ -11654,7 +11884,22 @@ "description": "This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job schedule." }, "CloudJobSchedule": { @@ -11764,7 +12009,11 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "schedule", "jobSpecification" ], + "required": [ + "id", + "schedule", + "jobSpecification" + ], "title": "A job schedule that allows recurring jobs by specifying when to run jobs and a specification used to create each job." }, "CloudJobScheduleListResult": { @@ -11805,7 +12054,9 @@ "title": "A list of additional error details related to the scheduling error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "An error encountered by the Batch service when scheduling a job." }, "JobExecutionInformation": { @@ -11838,7 +12089,9 @@ "description": "This property is set only if the job is in the completed state. If the Batch service terminates the job, it sets the reason as follows: JMComplete - the Job Manager task completed, and killJobOnCompletion was set to true. MaxWallClockTimeExpiry - the job reached its maxWallClockTime constraint. TerminateJobSchedule - the job ran as part of a schedule, and the schedule terminated. AllTasksComplete - the job's onAllTasksComplete attribute is set to terminateJob, and all tasks in the job are complete. TaskFailed - the job's onTaskFailure attribute is set to performExitOptionsJobAction, and a task in the job failed with an exit condition that specified a jobAction of terminateJob. Any other string is a user-defined reason specified in a call to the 'Terminate a job' operation." } }, - "required": [ "startTime" ], + "required": [ + "startTime" + ], "title": "Contains information about the execution of a job in the Azure Batch service." }, "CloudJob": { @@ -12031,7 +12284,10 @@ "title": "The flag that determines if this job will use tasks with dependencies." } }, - "required": [ "id", "poolInfo" ], + "required": [ + "id", + "poolInfo" + ], "title": "An Azure Batch job to add." }, "CloudJobListResult": { @@ -12072,7 +12328,9 @@ "title": "The list of additional error details related to the scheduling error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "Information about an error when scheduling a task." }, "JobPreparationTaskExecutionInformation": { @@ -12132,7 +12390,11 @@ "description": "This property is set only if the task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the task has been restarted for reasons other than retry; for example, if the compute node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not." } }, - "required": [ "startTime", "retryCount", "state" ], + "required": [ + "startTime", + "retryCount", + "state" + ], "title": "Contains information about the execution of a Job Preparation task on a compute node." }, "JobReleaseTaskExecutionInformation": { @@ -12180,7 +12442,10 @@ "title": "The error encountered by the Batch service when starting the task." } }, - "required": [ "startTime", "state" ], + "required": [ + "startTime", + "state" + ], "title": "Contains information about the execution of a Job Release task on a compute node." }, "JobPreparationAndReleaseTaskExecutionInformation": { @@ -12262,7 +12527,9 @@ "title": "Details of the error encountered evaluating the autoscale formula on the pool, if the evaluation was unsuccessful." } }, - "required": [ "timestamp" ], + "required": [ + "timestamp" + ], "title": "The results and errors from an execution of a pool autoscale formula." }, "ResizeError": { @@ -12303,7 +12570,9 @@ "description": "This may differ from targetOSVersion if the pool state is Upgrading. In this case some virtual machines may be on the targetOSVersion and some may be on the currentOSVersion during the upgrade process. Once all virtual machines have upgraded, currentOSVersion is updated to be the same as targetOSVersion." } }, - "required": [ "osFamily" ], + "required": [ + "osFamily" + ], "title": "The configuration for nodes in a pool based on the Azure Cloud Services platform." }, "ImageReference": { @@ -12329,7 +12598,11 @@ "description": "A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'." } }, - "required": [ "publisher", "offer", "sku" ], + "required": [ + "publisher", + "offer", + "sku" + ], "title": "A reference to an Azure Virtual Machines Marketplace image. To get the list of all imageReferences verified by Azure Batch, see the 'List supported node agent SKUs' operation." }, "OSDisk": { @@ -12357,7 +12630,9 @@ } } }, - "required": [ "imageUris" ], + "required": [ + "imageUris" + ], "title": "A reference to an OS disk image." }, "WindowsConfiguration": { @@ -12393,7 +12668,9 @@ "description": "This property must not be specified if the imageReference or osDisk property specifies a Linux OS image." } }, - "required": [ "nodeAgentSKUId" ], + "required": [ + "nodeAgentSKUId" + ], "title": "The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure." }, "NetworkConfiguration": { @@ -12707,7 +12984,10 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "vmSize" ], + "required": [ + "id", + "vmSize" + ], "title": "A pool in the Azure Batch service to add." }, "ApplicationListResult": { @@ -12750,7 +13030,9 @@ "description": "You can pass the affinityId of a compute node or task to indicate that this task needs to be placed close to the node or task." } }, - "required": [ "affinityId" ], + "required": [ + "affinityId" + ], "title": "A locality hint that can be used by the Batch service to select a compute node on which to start a task." }, "TaskExecutionInformation": { @@ -12803,7 +13085,10 @@ "description": "This property is set only if the requeueCount is nonzero." } }, - "required": [ "requeueCount", "retryCount" ], + "required": [ + "requeueCount", + "retryCount" + ], "title": "Information about the execution of a task." }, "ComputeNodeInformation": { @@ -12856,7 +13141,9 @@ "description": "The difference between common resource files and task resource files is that common resource files are downloaded for all subtasks including the primary, whereas task resource files are downloaded only for the primary." } }, - "required": [ "numberOfInstances" ], + "required": [ + "numberOfInstances" + ], "title": "Settings which specify how to run a multi-instance task.", "description": "Multi-instance tasks are commonly used to support MPI tasks." }, @@ -12918,7 +13205,19 @@ "title": "The total wait time of the task. The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.)" } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "waitTime" + ], "title": "Resource usage statistics for a task." }, "TaskDependencies": { @@ -12955,7 +13254,10 @@ }, "title": "A range of task IDs that a task can depend on. All tasks with IDs in the range must complete successfully before the dependent task can be scheduled.", "description": "The start and end of the range are inclusive. For example, if a range has start 9 and end 12, then it represents tasks '9', '10', '11' and '12'.", - "required": [ "start", "end" ] + "required": [ + "start", + "end" + ] }, "CloudTask": { "properties": { @@ -13153,7 +13455,10 @@ "$ref": "#/definitions/AuthenticationTokenSettings" } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "An Azure Batch task to add." }, "TaskAddCollectionParameter": { @@ -13167,7 +13472,9 @@ "title": "The collection of tasks to add." } }, - "required": [ "value" ], + "required": [ + "value" + ], "title": "A collection of Azure Batch tasks to add." }, "TaskAddResult": { @@ -13181,7 +13488,9 @@ "serverError", "unmapped" ], - "x-ms-enum": { "name": "TaskAddStatus" } + "x-ms-enum": { + "name": "TaskAddStatus" + } }, "taskId": { "type": "string", @@ -13205,7 +13514,10 @@ "title": "The error encountered while attempting to add the task." } }, - "required": [ "status", "taskId" ], + "required": [ + "status", + "taskId" + ], "title": "Result for a single task added as part of an add task collection operation." }, "TaskAddCollectionResult": { @@ -13331,7 +13643,9 @@ "title": "Information about the execution of the task." } }, - "required": [ "taskState" ], + "required": [ + "taskState" + ], "title": "Information about a task running on a compute node." }, "StartTaskInformation": { @@ -13384,7 +13698,11 @@ "description": "This element is present only if the task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the task has been restarted for reasons other than retry; for example, if the compute node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not." } }, - "required": [ "state", "startTime", "retryCount" ], + "required": [ + "state", + "startTime", + "retryCount" + ], "title": "Information about a start task running on a compute node." }, "ComputeNodeError": { @@ -13575,7 +13893,9 @@ "description": "The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux nodes. If this is specified for a Windows node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "A user account on a compute node." }, "ComputeNodeGetRemoteLoginSettingsResult": { @@ -13590,7 +13910,10 @@ "title": "The port used for remote login to the compute node." } }, - "required": [ "remoteLoginIPAddress", "remoteLoginPort" ], + "required": [ + "remoteLoginIPAddress", + "remoteLoginPort" + ], "title": "The remote login settings for a compute node." }, "JobSchedulePatchParameter": { @@ -13637,7 +13960,10 @@ "description": "If you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted." } }, - "required": [ "schedule", "jobSpecification" ], + "required": [ + "schedule", + "jobSpecification" + ], "title": "The set of changes to be made to a job schedule." }, "JobDisableParameter": { @@ -13657,7 +13983,9 @@ } } }, - "required": [ "disableTasks" ], + "required": [ + "disableTasks" + ], "title": "Options when disabling a job." }, "JobTerminateParameter": { @@ -13735,7 +14063,9 @@ "$ref": "#/definitions/OnAllTasksComplete" } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "The set of changes to be made to a job." }, "PoolEnableAutoScaleParameter": { @@ -13762,7 +14092,9 @@ "description": "The formula is validated and its results calculated, but it is not applied to the pool. To apply the formula to the pool, 'Enable automatic scaling on a pool'. For more information about specifying this formula, see Automatically scale compute nodes in an Azure Batch pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling)." } }, - "required": [ "autoScaleFormula" ], + "required": [ + "autoScaleFormula" + ], "title": "Options for evaluating an automatic scaling formula on a pool." }, "PoolResizeParameter": { @@ -13784,7 +14116,9 @@ "$ref": "#/definitions/ComputeNodeDeallocationOption" } }, - "required": [ "targetDedicated" ], + "required": [ + "targetDedicated" + ], "title": "Options for changing the size of a pool." }, "PoolUpdatePropertiesParameter": { @@ -13819,7 +14153,11 @@ "description": "This list replaces any existing metadata configured on the pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the pool." } }, - "required": [ "certificateReferences", "metadata", "applicationPackageReferences" ], + "required": [ + "certificateReferences", + "metadata", + "applicationPackageReferences" + ], "title": "The set of changes to be made to a pool." }, "PoolUpgradeOSParameter": { @@ -13829,7 +14167,9 @@ "title": "The Azure Guest OS version to be installed on the virtual machines in the pool." } }, - "required": [ "targetOSVersion" ], + "required": [ + "targetOSVersion" + ], "title": "Options for upgrading the operating system of compute nodes in a pool." }, "PoolPatchParameter": { @@ -13978,7 +14318,9 @@ "$ref": "#/definitions/ComputeNodeDeallocationOption" } }, - "required": [ "nodeList" ], + "required": [ + "nodeList" + ], "title": "Options for removing compute nodes from a pool." }, "ErrorMessage": { @@ -14176,4 +14518,3 @@ } } } - diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/AccountListNodeAgentSkus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/AccountListNodeAgentSkus.json index f12b72b9e370..042031a1127e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/AccountListNodeAgentSkus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/AccountListNodeAgentSkus.json @@ -60,4 +60,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateAdd.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateAdd.json index a98b75c12ff5..50353ac32474 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateAdd.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateAdd.json @@ -4,16 +4,14 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "certificate": { - "thumbprintAlgorithm":"sha1", - "thumbprint":"0123456789abcdef0123456789abcdef01234567", - "data":"#####...", - "certificateFormat":"pfx", - "password":"certpassword" + "thumbprintAlgorithm": "sha1", + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "data": "#####...", + "certificateFormat": "pfx", + "password": "certpassword" } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateCancelDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateCancelDelete.json index 26c5f96c87bf..c5da1b0a7f57 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateCancelDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateCancelDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateDelete.json index a46d4e70e9a2..0cfc1b0fd602 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateGet.json index 9b9d12765743..19ea59bd4651 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateGet.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateList.json index bd6542ba5782..41cfaff8b603 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/CertificateList.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileDeleteFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileDeleteFromNode.json index aa2ec6062bd5..44495da2458e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileDeleteFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileDeleteFromNode.json @@ -9,8 +9,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileDeleteFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileDeleteFromTask.json index 7d14815da786..a15ccbf174a9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileDeleteFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileDeleteFromTask.json @@ -9,8 +9,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileGetPropertiesFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileGetPropertiesFromNode.json index 8e72bb4399a6..ca2cb99c18f6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileGetPropertiesFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileGetPropertiesFromNode.json @@ -9,12 +9,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileGetPropertiesFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileGetPropertiesFromTask.json index 8942e96948a8..8a182d833820 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileGetPropertiesFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileGetPropertiesFromTask.json @@ -9,12 +9,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileListFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileListFromNode.json index 1496110130ea..12f0121b18f5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileListFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileListFromNode.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileListFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileListFromTask.json index 94fd190468af..96ef570fa654 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileListFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/FileListFromTask.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobAdd_Basic.json index 8b47aff3c30f..1070d15983d8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobAdd_Basic.json @@ -12,8 +12,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobAdd_Complex.json index 68040f9b5529..ca169d333c94 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobAdd_Complex.json @@ -35,7 +35,7 @@ "retentionTime": "PT1H" }, "killJobOnCompletion": false, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -75,7 +75,7 @@ "value": "myvalue" } ], - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -113,8 +113,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobDisable.json index d72a06c54d37..d5af7b4bb3e8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobDisable.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobEnable.json index c39f4a225edd..44df310ce264 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobEnable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobGet.json index 0bae4ebd131d..e41523ad29b1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobGet.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobGetLifetimeStatistics.json index 931d167134ad..3eecc86a1d63 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobGetLifetimeStatistics.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimejobstats", + "url": "https://account.region.batch.core.windows.net/lifetimejobstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "userCPUTime": "PT0S", @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobList.json index d46127d23d13..6f9ec3a867e8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobList.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobListPreparationAndReleaseTaskStatus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobListPreparationAndReleaseTaskStatus.json index a73a1ed98003..69f291f29610 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobListPreparationAndReleaseTaskStatus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobListPreparationAndReleaseTaskStatus.json @@ -36,4 +36,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobPatch.json index 74eb40fdb399..9ca00a8e750c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobPatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobPatch.json @@ -5,19 +5,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "jobPatchParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleAdd_Basic.json index 287a8aa9b03c..5b5f9dc56e3b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleAdd_Basic.json @@ -6,7 +6,7 @@ "cloudJobSchedule": { "id": "jobScheduleId", "schedule": { - "recurrenceInterval":"PT5M" + "recurrenceInterval": "PT5M" }, "jobSpecification": { "poolInfo": { @@ -16,8 +16,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleAdd_Complex.json index b831d5cd634a..ef08b65fc9dc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleAdd_Complex.json @@ -121,8 +121,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleDelete.json index 4286e8936fd9..0bf9cbfc3db4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleDisable.json index bd838eed45cc..811568564ec6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleDisable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleEnable.json index bd838eed45cc..811568564ec6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleEnable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleGet.json index 4eb145e6c1b5..b9ba874c54b9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleGet.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleList.json index 73b0a141db00..b47ff0accdb6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleList.json @@ -70,4 +70,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobSchedulePatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobSchedulePatch.json index 71c677593b57..79cca94a530a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobSchedulePatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobSchedulePatch.json @@ -22,8 +22,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleTerminate.json index 4286e8936fd9..0bf9cbfc3db4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleTerminate.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleUpdate.json index 6a26f335736f..7c7777feb7f4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobScheduleUpdate.json @@ -22,8 +22,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobTerminate.json index 858bdcbb7518..dc77dc280153 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobTerminate.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobUpdate.json index 0984430be61d..3ea0bb37c7cf 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/JobUpdate.json @@ -5,19 +5,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "jobUpdateParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeAddUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeAddUser.json index 2b99a1feae5d..50aa838f2303 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeAddUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeAddUser.json @@ -13,8 +13,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeDeleteUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeDeleteUser.json index 8b2594aa20df..a7ee73659f00 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeDeleteUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeDeleteUser.json @@ -8,8 +8,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeDisableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeDisableScheduling.json index ba6f824d4010..02699922cb9e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeDisableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeDisableScheduling.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeEnableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeEnableScheduling.json index 6b80e4ce452d..12d2b15b8cd3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeEnableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeEnableScheduling.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeGetRemoteLoginSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeGetRemoteLoginSettings.json index 75ef488d233f..1eb45beab923 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeGetRemoteLoginSettings.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeGetRemoteLoginSettings.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeGet_Basic.json index fd8f31449915..f8ed81fd4681 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeGet_Basic.json @@ -24,7 +24,7 @@ "runningTasksCount": 0, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -43,4 +43,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeList.json index eef743916ec2..34a9090297cb 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeList.json @@ -25,7 +25,7 @@ "runningTasksCount": 0, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -58,7 +58,7 @@ "runningTasksCount": 0, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -91,7 +91,7 @@ "runningTasksCount": 0, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -112,4 +112,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeReboot.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeReboot.json index b6f7a4c8247f..cc516d7ed0da 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeReboot.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeReboot.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeReimage.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeReimage.json index ecf2fbd08dcb..3531e884f536 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeReimage.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeReimage.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeUpdateUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeUpdateUser.json index b8133e62e607..372f5440b2c5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeUpdateUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/NodeUpdateUser.json @@ -12,8 +12,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolAdd_CloudServiceConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolAdd_CloudServiceConfiguration.json index d63b5503d867..7cb72a72373a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolAdd_CloudServiceConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolAdd_CloudServiceConfiguration.json @@ -9,18 +9,20 @@ "cloudServiceConfiguration": { "osFamily": "4" }, - "resizeTimeout":"PT15M", - "targetDedicated":5, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicated": 5, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -30,4 +32,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolAdd_VirtualMachineConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolAdd_VirtualMachineConfiguration.json index 37d68f070561..71dcf4ad34a4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolAdd_VirtualMachineConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolAdd_VirtualMachineConfiguration.json @@ -14,18 +14,20 @@ }, "nodeAgentSKUId": "batch.node.ubuntu 16.04" }, - "resizeTimeout":"PT15M", - "targetDedicated":5, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicated": 5, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -35,4 +37,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolDelete.json index 291ec9d4c156..3eae1c728930 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolEnableAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolEnableAutoscale.json index ad4f5ab36c4a..e30ff497cc90 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolEnableAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolEnableAutoscale.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolEvaluateAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolEvaluateAutoscale.json index f349a11851d4..aa523e32d335 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolEvaluateAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolEvaluateAutoscale.json @@ -16,4 +16,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolGetLifetimeStatistics.json index 66a6f825a84e..8280444a7bf9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolGetLifetimeStatistics.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimepoolstats", + "url": "https://account.region.batch.core.windows.net/lifetimepoolstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "usageStats": { @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolGet_Basic.json index de9588a32e5a..355f38b506af 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolGet_Basic.json @@ -25,7 +25,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "/bin/bash -c 'echo start task'", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -50,4 +50,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolListUsageMetrics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolListUsageMetrics.json index edb909a0ed4d..d3601e6f89e3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolListUsageMetrics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolListUsageMetrics.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolList_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolList_Basic.json index 3a0c9d4d46ed..c8e8b2a29519 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolList_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolList_Basic.json @@ -26,7 +26,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -49,4 +49,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolRemoveNodes.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolRemoveNodes.json index 39e38639f343..1aff772409bb 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolRemoveNodes.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolRemoveNodes.json @@ -12,8 +12,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolResize.json index d950ce2f5a92..fb0f21398294 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolResize.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolStopResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolStopResize.json index 291ec9d4c156..3eae1c728930 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolStopResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolStopResize.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolUpdate.json index 0cd0554faba0..a0e2c1571946 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/PoolUpdate.json @@ -14,8 +14,6 @@ } }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAddCollection_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAddCollection_Basic.json index 831eee286aa7..dc9557b7597a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAddCollection_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAddCollection_Basic.json @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAddCollection_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAddCollection_Complex.json index b9e50d5209b1..0da43c0d194c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAddCollection_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAddCollection_Complex.json @@ -73,4 +73,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAdd_Basic.json index 31020aaa3660..b986f9341a29 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAdd_Basic.json @@ -10,8 +10,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAdd_ExitConditions.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAdd_ExitConditions.json index 06a461d670a3..0fd836a1d175 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAdd_ExitConditions.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskAdd_ExitConditions.json @@ -18,7 +18,7 @@ } ] }, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -27,8 +27,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskDelete.json index dcc6788d32af..44e025370c7d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskGet.json index 48b4cb0389ad..d8c82f4ca69c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskGet.json @@ -17,7 +17,7 @@ "state": "active", "stateTransitionTime": "2016-09-06T06:59:15.1161429Z", "commandLine": "cmd /c hostname", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskList.json index 1dd23be937e2..057b4dce1513 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskList.json @@ -18,7 +18,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.4733476Z", "commandLine": "cmd /c echo task1", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -43,7 +43,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.6736345Z", "commandLine": "cmd /c echo task2", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -63,4 +63,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskListSubtasks.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskListSubtasks.json index ead6fef7c89c..2a3e6fae74a6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskListSubtasks.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskListSubtasks.json @@ -46,4 +46,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskReactivate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskReactivate.json index 37cd57df63b5..44f54f860f42 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskReactivate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskReactivate.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskTerminate.json index 37cd57df63b5..44f54f860f42 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskTerminate.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskUpdate.json index 1698e7578413..f498faa4f99b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-01-01.4.0/examples/TaskUpdate.json @@ -7,15 +7,13 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "taskUpdateParameter": { "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":3, - "retentionTime":"PT1H" + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 3, + "retentionTime": "PT1H" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/BatchService.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/BatchService.json index 9afeb9d464e9..0d79120f866c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/BatchService.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/BatchService.json @@ -247,7 +247,9 @@ }, "operationId": "Pool_ListUsageMetrics", "x-ms-examples": { - "Pool list usage metrics": { "$ref": "./examples/PoolListUsageMetrics.json" } + "Pool list usage metrics": { + "$ref": "./examples/PoolListUsageMetrics.json" + } }, "summary": "Lists the usage metrics, aggregated by pool across individual time intervals, for the specified account.", "description": "If you do not specify a $filter clause including a poolId, the response includes all pools that existed in the account in the time range of the returned aggregation intervals.", @@ -399,7 +401,9 @@ }, "operationId": "Account_ListNodeAgentSkus", "x-ms-examples": { - "Account list node agent skus": { "$ref": "./examples/AccountListNodeAgentSkus.json" } + "Account list node agent skus": { + "$ref": "./examples/AccountListNodeAgentSkus.json" + } }, "summary": "Lists all node agent SKUs supported by the Azure Batch service.", "x-ms-request-id": "request-id", @@ -523,7 +527,9 @@ ], "operationId": "Pool_GetAllLifetimeStatistics", "x-ms-examples": { - "Pool get lifetime statistics": { "$ref": "./examples/PoolGetLifetimeStatistics.json" } + "Pool get lifetime statistics": { + "$ref": "./examples/PoolGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the pools in the specified account.", "description": "Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.", @@ -623,7 +629,9 @@ ], "operationId": "Job_GetAllLifetimeStatistics", "x-ms-examples": { - "Job get lifetime statistics": { "$ref": "./examples/JobGetLifetimeStatistics.json" } + "Job get lifetime statistics": { + "$ref": "./examples/JobGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the jobs in the specified account.", "description": "Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.", @@ -723,7 +731,9 @@ ], "operationId": "Certificate_Add", "x-ms-examples": { - "Certificate add": { "$ref": "./examples/CertificateAdd.json" } + "Certificate add": { + "$ref": "./examples/CertificateAdd.json" + } }, "summary": "Adds a certificate to the specified account.", "x-ms-request-id": "request-id", @@ -833,7 +843,9 @@ }, "operationId": "Certificate_List", "x-ms-examples": { - "Certificate list": { "$ref": "./examples/CertificateList.json" } + "Certificate list": { + "$ref": "./examples/CertificateList.json" + } }, "summary": "Lists all of the certificates that have been added to the specified account.", "x-ms-request-id": "request-id", @@ -967,7 +979,9 @@ ], "operationId": "Certificate_CancelDeletion", "x-ms-examples": { - "Certificate cancel delete": { "$ref": "./examples/CertificateCancelDelete.json" } + "Certificate cancel delete": { + "$ref": "./examples/CertificateCancelDelete.json" + } }, "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.", @@ -1082,7 +1096,9 @@ ], "operationId": "Certificate_Delete", "x-ms-examples": { - "Certificate delete": { "$ref": "./examples/CertificateDelete.json" } + "Certificate delete": { + "$ref": "./examples/CertificateDelete.json" + } }, "summary": "Deletes a certificate from the specified account.", "description": "You cannot delete a certificate if a resource (pool or compute node) is using it. Before you can delete a certificate, you must therefore make sure that the certificate is not associated with any existing pools, the certificate is not installed on any compute nodes (even if you remove a certificate from a pool, it is not removed from existing compute nodes in that pool until they restart), and no running tasks depend on the certificate. If you try to delete a certificate that is in use, the deletion fails. The certificate status changes to deleteFailed. You can use Cancel Delete Certificate to set the status back to active if you decide that you want to continue using the certificate.", @@ -1191,7 +1207,9 @@ ], "operationId": "Certificate_Get", "x-ms-examples": { - "Certificate get": { "$ref": "./examples/CertificateGet.json" } + "Certificate get": { + "$ref": "./examples/CertificateGet.json" + } }, "description": "Gets information about the specified certificate.", "x-ms-request-id": "request-id", @@ -1314,7 +1332,9 @@ ], "operationId": "File_DeleteFromTask", "x-ms-examples": { - "File delete from task": { "$ref": "./examples/FileDeleteFromTask.json" } + "File delete from task": { + "$ref": "./examples/FileDeleteFromTask.json" + } }, "summary": "Deletes the specified task file from the compute node where the task ran.", "x-ms-request-id": "request-id", @@ -1598,7 +1618,9 @@ ], "operationId": "File_GetPropertiesFromTask", "x-ms-examples": { - "File get properties from task": { "$ref": "./examples/FileGetPropertiesFromTask.json" } + "File get properties from task": { + "$ref": "./examples/FileGetPropertiesFromTask.json" + } }, "description": "Gets the properties of the specified task file.", "x-ms-request-id": "request-id", @@ -1763,7 +1785,9 @@ ], "operationId": "File_DeleteFromComputeNode", "x-ms-examples": { - "File delete from node": { "$ref": "./examples/FileDeleteFromNode.json" } + "File delete from node": { + "$ref": "./examples/FileDeleteFromNode.json" + } }, "summary": "Deletes the specified file from the compute node.", "x-ms-request-id": "request-id", @@ -2047,7 +2071,9 @@ ], "operationId": "File_GetPropertiesFromComputeNode", "x-ms-examples": { - "File get properties from node": { "$ref": "./examples/FileGetPropertiesFromNode.json" } + "File get properties from node": { + "$ref": "./examples/FileGetPropertiesFromNode.json" + } }, "description": "Gets the properties of the specified compute node file.", "x-ms-request-id": "request-id", @@ -2215,7 +2241,9 @@ }, "operationId": "File_ListFromTask", "x-ms-examples": { - "File list from task": { "$ref": "./examples/FileListFromTask.json" } + "File list from task": { + "$ref": "./examples/FileListFromTask.json" + } }, "summary": "Lists the files in a task's directory on its compute node.", "x-ms-request-id": "request-id", @@ -2363,7 +2391,9 @@ }, "operationId": "File_ListFromComputeNode", "x-ms-examples": { - "File list from node": { "$ref": "./examples/FileListFromNode.json" } + "File list from node": { + "$ref": "./examples/FileListFromNode.json" + } }, "summary": "Lists all of the files in task directories on the specified compute node.", "x-ms-request-id": "request-id", @@ -2651,7 +2681,9 @@ ], "operationId": "JobSchedule_Delete", "x-ms-examples": { - "JobSchedule delete": { "$ref": "./examples/JobScheduleDelete.json" } + "JobSchedule delete": { + "$ref": "./examples/JobScheduleDelete.json" + } }, "summary": "Deletes a job schedule from the specified account.", "description": "When you delete a job schedule, this also deletes all jobs and tasks under that schedule. When tasks are deleted, all the files in their working directories on the compute nodes are also deleted (the retention period is ignored). The job schedule statistics are no longer accessible once the job schedule is deleted, though they are still counted towards account lifetime statistics.", @@ -2784,7 +2816,9 @@ ], "operationId": "JobSchedule_Get", "x-ms-examples": { - "JobSchedule get": { "$ref": "./examples/JobScheduleGet.json" } + "JobSchedule get": { + "$ref": "./examples/JobScheduleGet.json" + } }, "description": "Gets information about the specified job schedule.", "x-ms-request-id": "request-id", @@ -2950,7 +2984,9 @@ ], "operationId": "JobSchedule_Patch", "x-ms-examples": { - "JobSchedule patch": { "$ref": "./examples/JobSchedulePatch.json" } + "JobSchedule patch": { + "$ref": "./examples/JobSchedulePatch.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This replaces only the job schedule properties specified in the request. For example, if the schedule property is not specified with this request, then the Batch service will keep the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3107,7 +3143,9 @@ ], "operationId": "JobSchedule_Update", "x-ms-examples": { - "JobSchedule update": { "$ref": "./examples/JobScheduleUpdate.json" } + "JobSchedule update": { + "$ref": "./examples/JobScheduleUpdate.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This fully replaces all the updatable properties of the job schedule. For example, if the schedule property is not specified with this request, then the Batch service will remove the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3266,7 +3304,9 @@ ], "operationId": "JobSchedule_Disable", "x-ms-examples": { - "JobSchedule disable": { "$ref": "./examples/JobScheduleDisable.json" } + "JobSchedule disable": { + "$ref": "./examples/JobScheduleDisable.json" + } }, "summary": "Disables a job schedule.", "description": "No new jobs will be created until the job schedule is enabled again.", @@ -3416,7 +3456,9 @@ ], "operationId": "JobSchedule_Enable", "x-ms-examples": { - "JobSchedule enable": { "$ref": "./examples/JobScheduleEnable.json" } + "JobSchedule enable": { + "$ref": "./examples/JobScheduleEnable.json" + } }, "summary": "Enables a job schedule.", "x-ms-request-id": "request-id", @@ -3565,7 +3607,9 @@ ], "operationId": "JobSchedule_Terminate", "x-ms-examples": { - "JobSchedule terminate": { "$ref": "./examples/JobScheduleTerminate.json" } + "JobSchedule terminate": { + "$ref": "./examples/JobScheduleTerminate.json" + } }, "summary": "Terminates a job schedule.", "x-ms-request-id": "request-id", @@ -3714,8 +3758,12 @@ ], "operationId": "JobSchedule_Add", "x-ms-examples": { - "Add a basic JobSchedule": { "$ref": "./examples/JobScheduleAdd_Basic.json" }, - "Add a complex JobScheduleAdd": { "$ref": "./examples/JobScheduleAdd_Complex.json" } + "Add a basic JobSchedule": { + "$ref": "./examples/JobScheduleAdd_Basic.json" + }, + "Add a complex JobScheduleAdd": { + "$ref": "./examples/JobScheduleAdd_Complex.json" + } }, "summary": "Adds a job schedule to the specified account.", "x-ms-request-id": "request-id", @@ -3825,7 +3873,9 @@ }, "operationId": "JobSchedule_List", "x-ms-examples": { - "JobSchedule list": { "$ref": "./examples/JobScheduleList.json" } + "JobSchedule list": { + "$ref": "./examples/JobScheduleList.json" + } }, "summary": "Lists all of the job schedules in the specified account.", "x-ms-request-id": "request-id", @@ -4099,7 +4149,9 @@ ], "operationId": "Job_Get", "x-ms-examples": { - "Job get": { "$ref": "./examples/JobGet.json" } + "Job get": { + "$ref": "./examples/JobGet.json" + } }, "summary": "Gets information about the specified job.", "x-ms-request-id": "request-id", @@ -4265,7 +4317,9 @@ ], "operationId": "Job_Patch", "x-ms-examples": { - "Job patch": { "$ref": "./examples/JobPatch.json" } + "Job patch": { + "$ref": "./examples/JobPatch.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This replaces only the job properties specified in the request. For example, if the job has constraints, and a request does not specify the constraints element, then the job keeps the existing constraints.", @@ -4422,7 +4476,9 @@ ], "operationId": "Job_Update", "x-ms-examples": { - "Job update": { "$ref": "./examples/JobUpdate.json" } + "Job update": { + "$ref": "./examples/JobUpdate.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.", @@ -4581,7 +4637,9 @@ ], "operationId": "Job_Disable", "x-ms-examples": { - "Job disable": { "$ref": "./examples/JobDisable.json" } + "Job disable": { + "$ref": "./examples/JobDisable.json" + } }, "summary": "Disables the specified job, preventing new tasks from running.", "description": "The Batch Service immediately moves the job to the disabling state. Batch then uses the disableTasks parameter to determine what to do with the currently running tasks of the job. The job remains in the disabling state until the disable operation is completed and all tasks have been dealt with according to the disableTasks option; the job then moves to the disabled state. No new tasks are started under the job until it moves back to active state. If you try to disable a job that is in any state other than active, disabling, or disabled, the request fails with status code 409.", @@ -4740,7 +4798,9 @@ ], "operationId": "Job_Enable", "x-ms-examples": { - "Job enable": { "$ref": "./examples/JobEnable.json" } + "Job enable": { + "$ref": "./examples/JobEnable.json" + } }, "summary": "Enables the specified job, allowing new tasks to run.", "description": "When you call this API, the Batch service sets a disabled job to the enabling state. After the this operation is completed, the job moves to the active state, and scheduling of new tasks under the job resumes. The Batch service does not allow a task to remain in the active state for more than 7 days. Therefore, if you enable a job containing active tasks which were added more than 7 days ago, those tasks will not run.", @@ -4890,7 +4950,9 @@ ], "operationId": "Job_Terminate", "x-ms-examples": { - "Job terminate": { "$ref": "./examples/JobTerminate.json" } + "Job terminate": { + "$ref": "./examples/JobTerminate.json" + } }, "summary": "Terminates the specified job, marking it as completed.", "description": "When a Terminate Job request is received, the Batch service sets the job to the terminating state. The Batch service then terminates any active or running tasks associated with the job, and runs any required Job Release tasks. The job then moves into the completed state.", @@ -5049,8 +5111,12 @@ ], "operationId": "Job_Add", "x-ms-examples": { - "Add a basic job": { "$ref": "./examples/JobAdd_Basic.json" }, - "Add a complex job": { "$ref": "./examples/JobAdd_Complex.json" } + "Add a basic job": { + "$ref": "./examples/JobAdd_Basic.json" + }, + "Add a complex job": { + "$ref": "./examples/JobAdd_Complex.json" + } }, "summary": "Adds a job to the specified account.", "description": "The Batch service supports two ways to control the work done as part of a job. In the first approach, the user specifies a Job Manager task. The Batch service launches this task when it is ready to start the job. The Job Manager task controls all other tasks that run under this job, by using the Task APIs. In the second approach, the user directly controls the execution of tasks under an active job, by using the Task APIs. Also note: when naming jobs, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5161,7 +5227,9 @@ }, "operationId": "Job_List", "x-ms-examples": { - "Job list": { "$ref": "./examples/JobList.json" } + "Job list": { + "$ref": "./examples/JobList.json" + } }, "summary": "Lists all of the jobs in the specified account.", "x-ms-request-id": "request-id", @@ -5459,7 +5527,9 @@ }, "operationId": "Job_ListPreparationAndReleaseTaskStatus", "x-ms-examples": { - "Job list preparation and release task status": { "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" } + "Job list preparation and release task status": { + "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" + } }, "summary": "Lists the execution status of the Job Preparation and Job Release task for the specified job across the compute nodes where the job has run.", "description": "This API returns the Job Preparation and Job Release task status on all compute nodes that have run the Job Preparation or Job Release task. This includes nodes which have since been removed from the pool. ", @@ -5601,8 +5671,12 @@ ], "operationId": "Pool_Add", "x-ms-examples": { - "Add a CloudServiceConfiguration pool": { "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" }, - "Add a VirtualMachineConfiguration pool": { "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" } + "Add a CloudServiceConfiguration pool": { + "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool": { + "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" + } }, "summary": "Adds a pool to the specified account.", "description": "When naming pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5713,7 +5787,9 @@ }, "operationId": "Pool_List", "x-ms-examples": { - "Pool list": { "$ref": "./examples/PoolList_Basic.json" } + "Pool list": { + "$ref": "./examples/PoolList_Basic.json" + } }, "summary": "Lists all of the pools in the specified account.", "x-ms-request-id": "request-id", @@ -5857,7 +5933,9 @@ ], "operationId": "Pool_Delete", "x-ms-examples": { - "Pool delete": { "$ref": "./examples/PoolDelete.json" } + "Pool delete": { + "$ref": "./examples/PoolDelete.json" + } }, "summary": "Deletes a pool from the specified account.", "description": "When you request that a pool be deleted, the following actions occur: the pool state is set to deleting; any ongoing resize operation on the pool are stopped; the Batch service starts resizing the pool to zero nodes; any tasks running on existing nodes are terminated and requeued (as if a resize pool operation had been requested with the default requeue option); finally, the pool is removed from the system. Because running tasks are requeued, the user can rerun these tasks by updating their job to target a different pool. The tasks can then run on the new pool. If you want to override the requeue behavior, then you should call resize pool explicitly to shrink the pool to zero size before deleting the pool. If you call an Update, Patch or Delete API on a pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.", @@ -6133,7 +6211,9 @@ ], "operationId": "Pool_Get", "x-ms-examples": { - "Pool get": { "$ref": "./examples/PoolGet_Basic.json" } + "Pool get": { + "$ref": "./examples/PoolGet_Basic.json" + } }, "description": "Gets information about the specified pool.", "x-ms-request-id": "request-id", @@ -6559,7 +6639,9 @@ ], "operationId": "Pool_EnableAutoScale", "x-ms-examples": { - "Pool enable autoscale": { "$ref": "./examples/PoolEnableAutoscale.json" } + "Pool enable autoscale": { + "$ref": "./examples/PoolEnableAutoscale.json" + } }, "summary": "Enables automatic scaling for a pool.", "description": "You cannot enable automatic scaling on a pool if a resize operation is in progress on the pool. If automatic scaling of the pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same pool more than once every 30 seconds.", @@ -6718,7 +6800,9 @@ ], "operationId": "Pool_EvaluateAutoScale", "x-ms-examples": { - "Pool evaluate autoscale": { "$ref": "./examples/PoolEvaluateAutoscale.json" } + "Pool evaluate autoscale": { + "$ref": "./examples/PoolEvaluateAutoscale.json" + } }, "summary": "Gets the result of evaluating an automatic scaling formula on the pool.", "description": "This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the pool.", @@ -6838,7 +6922,9 @@ ], "operationId": "Pool_Resize", "x-ms-examples": { - "Pool resize": { "$ref": "./examples/PoolResize.json" } + "Pool resize": { + "$ref": "./examples/PoolResize.json" + } }, "summary": "Changes the number of compute nodes that are assigned to a pool.", "description": "You can only resize a pool when its allocation state is steady. If the pool is already resizing, the request fails with status code 409. When you resize a pool, the pool's allocation state changes from steady to resizing. You cannot resize pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a pool downwards, the Batch service chooses which nodes to remove. To remove specific nodes, use the pool remove nodes API instead.", @@ -6997,7 +7083,9 @@ ], "operationId": "Pool_StopResize", "x-ms-examples": { - "Pool stop resize": { "$ref": "./examples/PoolStopResize.json" } + "Pool stop resize": { + "$ref": "./examples/PoolStopResize.json" + } }, "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. 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.", @@ -7147,7 +7235,9 @@ ], "operationId": "Pool_UpdateProperties", "x-ms-examples": { - "Pool update": { "$ref": "./examples/PoolUpdate.json" } + "Pool update": { + "$ref": "./examples/PoolUpdate.json" + } }, "summary": "Updates the properties of the specified pool.", "description": "This fully replaces all the updatable properties of the pool. For example, if the pool has a start task associated with it and if start task is not specified with this request, then the Batch service will remove the existing start task.", @@ -7420,7 +7510,9 @@ ], "operationId": "Pool_RemoveNodes", "x-ms-examples": { - "Pool remove nodes": { "$ref": "./examples/PoolRemoveNodes.json" } + "Pool remove nodes": { + "$ref": "./examples/PoolRemoveNodes.json" + } }, "summary": "Removes compute nodes from the specified pool.", "description": "This operation can only run when the allocation state of the pool is steady. When this operation runs, the allocation state changes from steady to resizing.", @@ -7579,8 +7671,12 @@ ], "operationId": "Task_Add", "x-ms-examples": { - "Add a basic task": { "$ref": "./examples/TaskAdd_Basic.json" }, - "Add a task with exit conditions": { "$ref": "./examples/TaskAdd_ExitConditions.json" } + "Add a basic task": { + "$ref": "./examples/TaskAdd_Basic.json" + }, + "Add a task with exit conditions": { + "$ref": "./examples/TaskAdd_ExitConditions.json" + } }, "summary": "Adds a task to the specified job.", "x-ms-request-id": "request-id", @@ -7697,7 +7793,9 @@ }, "operationId": "Task_List", "x-ms-examples": { - "Task list": { "$ref": "./examples/TaskList.json" } + "Task list": { + "$ref": "./examples/TaskList.json" + } }, "summary": "Lists all of the tasks that are associated with the specified job.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -7849,8 +7947,12 @@ ], "operationId": "Task_AddCollection", "x-ms-examples": { - "Add a basic collection of tasks": { "$ref": "./examples/TaskAddCollection_Basic.json" }, - "Add a complex collection of tasks": { "$ref": "./examples/TaskAddCollection_Complex.json" } + "Add a basic collection of tasks": { + "$ref": "./examples/TaskAddCollection_Basic.json" + }, + "Add a complex collection of tasks": { + "$ref": "./examples/TaskAddCollection_Complex.json" + } }, "summary": "Adds a collection of tasks to the specified job.", "description": "Note that each task must have a unique ID. The Batch service may not return the results for each task in the same order the tasks were submitted in this request. If the server times out or the connection is closed during the request, the request may have been partially or fully processed, or not at all. In such cases, the user should re-issue the request. Note that it is up to the user to correctly handle failures when re-issuing a request. For example, you should use the same task ids during a retry so that if the prior operation succeeded, the retry will not create extra tasks unexpectedly.", @@ -7955,7 +8057,9 @@ ], "operationId": "Task_Delete", "x-ms-examples": { - "Task delete": { "$ref": "./examples/TaskDelete.json" } + "Task delete": { + "$ref": "./examples/TaskDelete.json" + } }, "summary": "Deletes a task from the specified job.", "description": "When a task is deleted, all of the files in its directory on the compute node where it ran are also deleted (regardless of the retention time). For multi-instance tasks, the delete task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.", @@ -8095,7 +8199,9 @@ ], "operationId": "Task_Get", "x-ms-examples": { - "Task get": { "$ref": "./examples/TaskGet.json" } + "Task get": { + "$ref": "./examples/TaskGet.json" + } }, "summary": "Gets information about the specified task.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -8273,7 +8379,9 @@ ], "operationId": "Task_Update", "x-ms-examples": { - "Task update": { "$ref": "./examples/TaskUpdate.json" } + "Task update": { + "$ref": "./examples/TaskUpdate.json" + } }, "description": "Updates the properties of the specified task.", "x-ms-request-id": "request-id", @@ -8438,7 +8546,9 @@ ], "operationId": "Task_ListSubtasks", "x-ms-examples": { - "Task list subtasks": { "$ref": "./examples/TaskListSubtasks.json" } + "Task list subtasks": { + "$ref": "./examples/TaskListSubtasks.json" + } }, "summary": "Lists all of the subtasks that are associated with the specified multi-instance task.", "description": "If the task is not a multi-instance task then this returns an empty collection.", @@ -8562,7 +8672,9 @@ ], "operationId": "Task_Terminate", "x-ms-examples": { - "Task terminate": { "$ref": "./examples/TaskTerminate.json" } + "Task terminate": { + "$ref": "./examples/TaskTerminate.json" + } }, "summary": "Terminates the specified task.", "description": "When the task has been terminated, it moves to the completed state. For multi-instance tasks, the terminate task operation applies synchronously to the primary task; subtasks are then terminated asynchronously in the background.", @@ -8719,7 +8831,9 @@ ], "operationId": "Task_Reactivate", "x-ms-examples": { - "Task reactivate": { "$ref": "./examples/TaskReactivate.json" } + "Task reactivate": { + "$ref": "./examples/TaskReactivate.json" + } }, "summary": "Reactivates the specified task.", "description": "Reactivation makes a task eligible to be retried again up to its maximum retry count. The task's state is changed to active. As the task is no longer in the completed state, any previous exit code or scheduling error is no longer available after reactivation. This will fail for tasks that are not completed or that previously completed successfully (with an exit code of 0). Additionally, this will fail if the job has completed (or is terminating or deleting).", @@ -8876,7 +8990,9 @@ ], "operationId": "ComputeNode_AddUser", "x-ms-examples": { - "Node add user": { "$ref": "./examples/NodeAddUser.json" } + "Node add user": { + "$ref": "./examples/NodeAddUser.json" + } }, "summary": "Adds a user account to the specified compute node.", "description": "You can add a user account to a node only when it is in the idle or running state.", @@ -9000,7 +9116,9 @@ ], "operationId": "ComputeNode_DeleteUser", "x-ms-examples": { - "Node delete user": { "$ref": "./examples/NodeDeleteUser.json" } + "Node delete user": { + "$ref": "./examples/NodeDeleteUser.json" + } }, "summary": "Deletes a user account from the specified compute node.", "description": "You can delete a user account to a node only when it is in the idle or running state.", @@ -9105,7 +9223,9 @@ ], "operationId": "ComputeNode_UpdateUser", "x-ms-examples": { - "Node update user": { "$ref": "./examples/NodeUpdateUser.json" } + "Node update user": { + "$ref": "./examples/NodeUpdateUser.json" + } }, "summary": "Updates the password or expiration time of a user account on the specified compute node.", "description": "This operation replaces of all the updatable properties of the account. For example, if the expiryTime element is not specified, the current value is replaced with the default value, not left unmodified. You can update a user account on a node only when it is in the idle or running state.", @@ -9236,7 +9356,9 @@ ], "operationId": "ComputeNode_Get", "x-ms-examples": { - "Node get": { "$ref": "./examples/NodeGet_Basic.json" } + "Node get": { + "$ref": "./examples/NodeGet_Basic.json" + } }, "summary": "Gets information about the specified compute node.", "x-ms-request-id": "request-id", @@ -9359,7 +9481,9 @@ ], "operationId": "ComputeNode_Reboot", "x-ms-examples": { - "Node reboot": { "$ref": "./examples/NodeReboot.json" } + "Node reboot": { + "$ref": "./examples/NodeReboot.json" + } }, "summary": "Restarts the specified compute node.", "description": "You can restart a node only if it is in an idle or running state.", @@ -9483,7 +9607,9 @@ ], "operationId": "ComputeNode_Reimage", "x-ms-examples": { - "Node reimage": { "$ref": "./examples/NodeReimage.json" } + "Node reimage": { + "$ref": "./examples/NodeReimage.json" + } }, "summary": "Reinstalls the operating system on the specified compute node.", "description": "You can reinstall the operating system on a node only if it is in an idle or running state. This API can be invoked only on pools created with the cloud service configuration property.", @@ -9607,7 +9733,9 @@ ], "operationId": "ComputeNode_DisableScheduling", "x-ms-examples": { - "Node disable scheduling": { "$ref": "./examples/NodeDisableScheduling.json" } + "Node disable scheduling": { + "$ref": "./examples/NodeDisableScheduling.json" + } }, "summary": "Disables task scheduling on the specified compute node.", "x-ms-request-id": "request-id", @@ -9730,7 +9858,9 @@ ], "operationId": "ComputeNode_EnableScheduling", "x-ms-examples": { - "Node enable scheduling": { "$ref": "./examples/NodeEnableScheduling.json" } + "Node enable scheduling": { + "$ref": "./examples/NodeEnableScheduling.json" + } }, "summary": "Enables task scheduling on the specified compute node.", "x-ms-request-id": "request-id", @@ -9844,7 +9974,9 @@ ], "operationId": "ComputeNode_GetRemoteLoginSettings", "x-ms-examples": { - "Node get remote login settings": { "$ref": "./examples/NodeGetRemoteLoginSettings.json" } + "Node get remote login settings": { + "$ref": "./examples/NodeGetRemoteLoginSettings.json" + } }, "summary": "Gets the settings required for remote login to a compute node.", "description": "Before you can remotely login to a node using the remote login settings, you must create a user account on the node. This API can be invoked only on pools created with the virtual machine configuration property.", @@ -10072,7 +10204,9 @@ }, "operationId": "ComputeNode_List", "x-ms-examples": { - "Node list": { "$ref": "./examples/NodeList.json" } + "Node list": { + "$ref": "./examples/NodeList.json" + } }, "summary": "Lists the compute nodes in the specified pool.", "x-ms-request-id": "request-id", @@ -10245,7 +10379,15 @@ "title": "The cross data center network egress from the pool during this interval, in GiB." } }, - "required": [ "poolId", "startTime", "endTime", "vmSize", "totalCoreHours", "dataIngressGiB", "dataEgressGiB" ], + "required": [ + "poolId", + "startTime", + "endTime", + "vmSize", + "totalCoreHours", + "dataIngressGiB", + "dataEgressGiB" + ], "title": "Usage metrics for a pool across an aggregation interval." }, "PoolListUsageMetricsResult": { @@ -10349,7 +10491,11 @@ "title": "The aggregated wall-clock time of the dedicated compute node cores being part of the pool." } }, - "required": [ "startTime", "lastUpdateTime", "dedicatedCoreTime" ], + "required": [ + "startTime", + "lastUpdateTime", + "dedicatedCoreTime" + ], "title": "Statistics related to pool usage information." }, "ResourceStatistics": { @@ -10420,7 +10566,21 @@ "title": "The total amount of data in GiB of network writes across all nodes in the pool." } }, - "required": [ "startTime", "lastUpdateTime", "avgCPUPercentage", "avgMemoryGiB", "peakMemoryGiB", "avgDiskGiB", "peakDiskGiB", "diskReadIOps", "diskWriteIOps", "diskReadGiB", "diskWriteGiB", "networkReadGiB", "networkWriteGiB" ], + "required": [ + "startTime", + "lastUpdateTime", + "avgCPUPercentage", + "avgMemoryGiB", + "peakMemoryGiB", + "avgDiskGiB", + "peakDiskGiB", + "diskReadIOps", + "diskWriteIOps", + "diskReadGiB", + "diskWriteGiB", + "networkReadGiB", + "networkWriteGiB" + ], "title": "Statistics related to resource consumption by compute nodes in a pool." }, "PoolStatistics": { @@ -10448,7 +10608,11 @@ "title": "Statistics related to resource consumption by compute nodes in the pool." } }, - "required": [ "url", "startTime", "lastUpdateTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime" + ], "title": "Contains utilization and resource usage statistics for the lifetime of a pool." }, "JobStatistics": { @@ -10526,7 +10690,22 @@ "description": "The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.) This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job." }, "NameValuePair": { @@ -10621,7 +10800,9 @@ "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." } }, - "required": [ "applicationId" ], + "required": [ + "applicationId" + ], "title": "A reference to an application package to be deployed to compute nodes." }, "ApplicationSummary": { @@ -10642,7 +10823,11 @@ } } }, - "required": [ "id", "displayName", "versions" ], + "required": [ + "id", + "displayName", + "versions" + ], "title": "Contains information about an application in an Azure Batch account." }, "CertificateAddParameter": { @@ -10677,7 +10862,11 @@ "description": "This is required if the certificate format is pfx. It should be omitted if the certificate format is cer." } }, - "required": [ "thumbprint", "thumbprintAlgorithm", "data" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm", + "data" + ], "title": "A certificate that can be installed on compute nodes and can be used to authenticate operations on the machine." }, "CertificateListResult": { @@ -10724,7 +10913,10 @@ "description": "The file mode is returned only for files on Linux compute nodes." } }, - "required": [ "lastModified", "contentLength" ], + "required": [ + "lastModified", + "contentLength" + ], "title": "The properties of a file on a compute node." }, "NodeFile": { @@ -10827,7 +11019,10 @@ "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." } }, - "required": [ "blobSource", "filePath" ], + "required": [ + "blobSource", + "filePath" + ], "title": "A file to be downloaded from Azure blob storage to a compute node." }, "EnvironmentSetting": { @@ -10841,7 +11036,9 @@ "title": "The value of the environment variable." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "An environment variable to be set on a task process." }, "ExitConditions": { @@ -10890,7 +11087,10 @@ } }, "title": "How the Batch service should respond if a task exits with a particular exit code.", - "required": [ "code", "exitOptions" ] + "required": [ + "code", + "exitOptions" + ] }, "ExitCodeRangeMapping": { "properties": { @@ -10910,7 +11110,11 @@ } }, "title": "A range of exit codes and how the Batch service should respond to exit codes within that range.", - "required": [ "start", "end", "exitOptions" ] + "required": [ + "start", + "end", + "exitOptions" + ] }, "ExitOptions": { "properties": { @@ -11027,7 +11231,10 @@ "$ref": "#/definitions/LinuxUserConfiguration" } }, - "required": [ "name", "password" ], + "required": [ + "name", + "password" + ], "title": "Properties used to create a user used to execute tasks on an Azure Batch node." }, "TaskConstraints": { @@ -11078,7 +11285,7 @@ "title": "A list of files that the Batch service will download to the compute node before running the command line.", "description": "Files listed under this element are located in the task's working directory." }, - "outputFiles": { + "outputFiles": { "type": "array", "items": { "$ref": "#/definitions/OutputFile" @@ -11130,7 +11337,10 @@ "description": "The default value is false." } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "Specifies details of a Job Manager task." }, "JobPreparationTask": { @@ -11180,7 +11390,9 @@ "description": "The Job Preparation task is always rerun if a compute node is reimaged, or if the Job Preparation task did not complete (e.g. because the reboot occurred while the task was running). Therefore, you should always write a Job Preparation task to be idempotent and to behave correctly if run multiple times. The default value is true." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Preparation task to run before any tasks of the job on any given compute node." }, "JobReleaseTask": { @@ -11227,7 +11439,9 @@ "description": "If omitted, the task runs as a non-administrative user unique to the task." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Release task to run on job completion on any compute node where the job has run." }, "TaskSchedulingPolicy": { @@ -11245,7 +11459,9 @@ } } }, - "required": [ "nodeFillType" ], + "required": [ + "nodeFillType" + ], "title": "Specifies how tasks should be distributed across compute nodes." }, "StartTask": { @@ -11286,7 +11502,9 @@ "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 false." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "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." }, "CertificateReference": { @@ -11336,7 +11554,10 @@ "description": "The default is all accounts." } }, - "required": [ "thumbprint", "thumbprintAlgorithm" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm" + ], "title": "A reference to a certificate to be installed on compute nodes in a pool." }, "MetadataItem": { @@ -11350,7 +11571,10 @@ "title": "The value of the metadata item." } }, - "required": [ "name", "value" ], + "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." }, @@ -11453,7 +11677,7 @@ "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." }, @@ -11473,7 +11697,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "vmSize" ], + "required": [ + "vmSize" + ], "title": "Specification for creating a new pool." }, "AutoPoolSpecification": { @@ -11506,7 +11732,9 @@ "title": "The pool specification for the auto pool." } }, - "required": [ "poolLifetimeOption" ], + "required": [ + "poolLifetimeOption" + ], "title": "Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto pool when the job is submitted." }, "PoolInformation": { @@ -11591,7 +11819,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "Specifies details of the jobs to be created on a schedule." }, "RecentJob": { @@ -11703,7 +11933,22 @@ "description": "This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job schedule." }, "CloudJobSchedule": { @@ -11813,7 +12058,11 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "schedule", "jobSpecification" ], + "required": [ + "id", + "schedule", + "jobSpecification" + ], "title": "A job schedule that allows recurring jobs by specifying when to run jobs and a specification used to create each job." }, "CloudJobScheduleListResult": { @@ -11854,7 +12103,9 @@ "title": "A list of additional error details related to the scheduling error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "An error encountered by the Batch service when scheduling a job." }, "JobExecutionInformation": { @@ -11887,7 +12138,9 @@ "description": "This property is set only if the job is in the completed state. If the Batch service terminates the job, it sets the reason as follows: JMComplete - the Job Manager task completed, and killJobOnCompletion was set to true. MaxWallClockTimeExpiry - the job reached its maxWallClockTime constraint. TerminateJobSchedule - the job ran as part of a schedule, and the schedule terminated. AllTasksComplete - the job's onAllTasksComplete attribute is set to terminateJob, and all tasks in the job are complete. TaskFailed - the job's onTaskFailure attribute is set to performExitOptionsJobAction, and a task in the job failed with an exit condition that specified a jobAction of terminateJob. Any other string is a user-defined reason specified in a call to the 'Terminate a job' operation." } }, - "required": [ "startTime" ], + "required": [ + "startTime" + ], "title": "Contains information about the execution of a job in the Azure Batch service." }, "CloudJob": { @@ -12080,7 +12333,10 @@ "title": "The flag that determines if this job will use tasks with dependencies." } }, - "required": [ "id", "poolInfo" ], + "required": [ + "id", + "poolInfo" + ], "title": "An Azure Batch job to add." }, "CloudJobListResult": { @@ -12121,7 +12377,9 @@ "title": "A list of additional details related to the error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "Information about a task failure." }, "JobPreparationTaskExecutionInformation": { @@ -12187,7 +12445,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "retryCount", "state" ], + "required": [ + "startTime", + "retryCount", + "state" + ], "title": "Contains information about the execution of a Job Preparation task on a compute node." }, "JobReleaseTaskExecutionInformation": { @@ -12241,7 +12503,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "state" ], + "required": [ + "startTime", + "state" + ], "title": "Contains information about the execution of a Job Release task on a compute node." }, "JobPreparationAndReleaseTaskExecutionInformation": { @@ -12323,7 +12588,9 @@ "title": "Details of the error encountered evaluating the autoscale formula on the pool, if the evaluation was unsuccessful." } }, - "required": [ "timestamp" ], + "required": [ + "timestamp" + ], "title": "The results and errors from an execution of a pool autoscale formula." }, "ResizeError": { @@ -12364,7 +12631,9 @@ "description": "This may differ from targetOSVersion if the pool state is Upgrading. In this case some virtual machines may be on the targetOSVersion and some may be on the currentOSVersion during the upgrade process. Once all virtual machines have upgraded, currentOSVersion is updated to be the same as targetOSVersion." } }, - "required": [ "osFamily" ], + "required": [ + "osFamily" + ], "title": "The configuration for nodes in a pool based on the Azure Cloud Services platform." }, "ImageReference": { @@ -12390,7 +12659,11 @@ "description": "A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'." } }, - "required": [ "publisher", "offer", "sku" ], + "required": [ + "publisher", + "offer", + "sku" + ], "title": "A reference to an Azure Virtual Machines Marketplace image. To get the list of all imageReferences verified by Azure Batch, see the 'List supported node agent SKUs' operation." }, "OSDisk": { @@ -12418,7 +12691,9 @@ } } }, - "required": [ "imageUris" ], + "required": [ + "imageUris" + ], "title": "A reference to an OS disk image." }, "WindowsConfiguration": { @@ -12454,7 +12729,9 @@ "description": "This property must not be specified if the imageReference or osDisk property specifies a Linux OS image." } }, - "required": [ "nodeAgentSKUId" ], + "required": [ + "nodeAgentSKUId" + ], "title": "The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure." }, "NetworkConfiguration": { @@ -12644,7 +12921,7 @@ "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." }, @@ -12773,7 +13050,7 @@ "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." }, @@ -12803,7 +13080,10 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "vmSize" ], + "required": [ + "id", + "vmSize" + ], "title": "A pool in the Azure Batch service to add." }, "ApplicationListResult": { @@ -12846,7 +13126,9 @@ "description": "You can pass the affinityId of a compute node or task to indicate that this task needs to be placed close to the node or task." } }, - "required": [ "affinityId" ], + "required": [ + "affinityId" + ], "title": "A locality hint that can be used by the Batch service to select a compute node on which to start a task." }, "TaskExecutionInformation": { @@ -12904,7 +13186,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "requeueCount", "retryCount" ], + "required": [ + "requeueCount", + "retryCount" + ], "title": "Information about the execution of a task." }, "ComputeNodeInformation": { @@ -12957,7 +13242,9 @@ "description": "The difference between common resource files and task resource files is that common resource files are downloaded for all subtasks including the primary, whereas task resource files are downloaded only for the primary." } }, - "required": [ "numberOfInstances" ], + "required": [ + "numberOfInstances" + ], "title": "Settings which specify how to run a multi-instance task.", "description": "Multi-instance tasks are commonly used to support MPI tasks." }, @@ -13019,7 +13306,19 @@ "title": "The total wait time of the task. The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.)" } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "waitTime" + ], "title": "Resource usage statistics for a task." }, "TaskDependencies": { @@ -13056,7 +13355,10 @@ }, "title": "A range of task IDs that a task can depend on. All tasks with IDs in the range must complete successfully before the dependent task can be scheduled.", "description": "The start and end of the range are inclusive. For example, if a range has start 9 and end 12, then it represents tasks '9', '10', '11' and '12'.", - "required": [ "start", "end" ] + "required": [ + "start", + "end" + ] }, "CloudTask": { "properties": { @@ -13270,7 +13572,10 @@ "$ref": "#/definitions/AuthenticationTokenSettings" } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "An Azure Batch task to add." }, "TaskAddCollectionParameter": { @@ -13284,7 +13589,9 @@ "title": "The collection of tasks to add." } }, - "required": [ "value" ], + "required": [ + "value" + ], "title": "A collection of Azure Batch tasks to add." }, "TaskAddResult": { @@ -13297,7 +13604,9 @@ "clientError", "serverError" ], - "x-ms-enum": { "name": "TaskAddStatus" } + "x-ms-enum": { + "name": "TaskAddStatus" + } }, "taskId": { "type": "string", @@ -13321,7 +13630,10 @@ "title": "The error encountered while attempting to add the task." } }, - "required": [ "status", "taskId" ], + "required": [ + "status", + "taskId" + ], "title": "Result for a single task added as part of an add task collection operation." }, "TaskAddCollectionResult": { @@ -13453,7 +13765,9 @@ "title": "Information about the execution of the task." } }, - "required": [ "taskState" ], + "required": [ + "taskState" + ], "title": "Information about a task running on a compute node." }, "StartTaskInformation": { @@ -13512,7 +13826,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "state", "startTime", "retryCount" ], + "required": [ + "state", + "startTime", + "retryCount" + ], "title": "Information about a start task running on a compute node." }, "ComputeNodeError": { @@ -13708,7 +14026,9 @@ "description": "The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux nodes. If this is specified for a Windows node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "A user account for RDP or SSH access on a compute node." }, "ComputeNodeGetRemoteLoginSettingsResult": { @@ -13723,7 +14043,10 @@ "title": "The port used for remote login to the compute node." } }, - "required": [ "remoteLoginIPAddress", "remoteLoginPort" ], + "required": [ + "remoteLoginIPAddress", + "remoteLoginPort" + ], "title": "The remote login settings for a compute node." }, "JobSchedulePatchParameter": { @@ -13770,7 +14093,10 @@ "description": "If you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted." } }, - "required": [ "schedule", "jobSpecification" ], + "required": [ + "schedule", + "jobSpecification" + ], "title": "The set of changes to be made to a job schedule." }, "JobDisableParameter": { @@ -13790,7 +14116,9 @@ } } }, - "required": [ "disableTasks" ], + "required": [ + "disableTasks" + ], "title": "Options when disabling a job." }, "JobTerminateParameter": { @@ -13868,7 +14196,9 @@ "$ref": "#/definitions/OnAllTasksComplete" } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "The set of changes to be made to a job." }, "PoolEnableAutoScaleParameter": { @@ -13895,7 +14225,9 @@ "description": "The formula is validated and its results calculated, but it is not applied to the pool. To apply the formula to the pool, 'Enable automatic scaling on a pool'. For more information about specifying this formula, see Automatically scale compute nodes in an Azure Batch pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling)." } }, - "required": [ "autoScaleFormula" ], + "required": [ + "autoScaleFormula" + ], "title": "Options for evaluating an automatic scaling formula on a pool." }, "PoolResizeParameter": { @@ -13956,7 +14288,11 @@ "description": "This list replaces any existing metadata configured on the pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the pool." } }, - "required": [ "certificateReferences", "metadata", "applicationPackageReferences" ], + "required": [ + "certificateReferences", + "metadata", + "applicationPackageReferences" + ], "title": "The set of changes to be made to a pool." }, "PoolUpgradeOSParameter": { @@ -13966,7 +14302,9 @@ "title": "The Azure Guest OS version to be installed on the virtual machines in the pool." } }, - "required": [ "targetOSVersion" ], + "required": [ + "targetOSVersion" + ], "title": "Options for upgrading the operating system of compute nodes in a pool." }, "PoolPatchParameter": { @@ -14115,7 +14453,9 @@ "$ref": "#/definitions/ComputeNodeDeallocationOption" } }, - "required": [ "nodeList" ], + "required": [ + "nodeList" + ], "title": "Options for removing compute nodes from a pool." }, "OutputFile": { @@ -14134,7 +14474,11 @@ "$ref": "#/definitions/OutputFileUploadOptions" } }, - "required": [ "filePattern", "destination", "uploadOptions" ], + "required": [ + "filePattern", + "destination", + "uploadOptions" + ], "title": "A specification for uploading files from an Azure Batch node to another location after the Batch service has finished executing the task process." }, "OutputFileDestination": { @@ -14159,7 +14503,9 @@ "description": "The URL must include a Shared Access Signature (SAS) granting write permissions to the container." } }, - "required": [ "containerUrl" ], + "required": [ + "containerUrl" + ], "title": "Specifies a file upload destination within an Azure blob storage container." }, "OutputFileUploadOptions": { @@ -14170,7 +14516,9 @@ "$ref": "#/definitions/OutputFileUploadCondition" } }, - "required": [ "uploadCondition" ], + "required": [ + "uploadCondition" + ], "title": "Details about an output file upload operation, including under what conditions to perform the upload." }, "ErrorMessage": { @@ -14394,4 +14742,3 @@ } } } - diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/AccountListNodeAgentSkus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/AccountListNodeAgentSkus.json index f12b72b9e370..042031a1127e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/AccountListNodeAgentSkus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/AccountListNodeAgentSkus.json @@ -60,4 +60,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateAdd.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateAdd.json index a98b75c12ff5..50353ac32474 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateAdd.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateAdd.json @@ -4,16 +4,14 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "certificate": { - "thumbprintAlgorithm":"sha1", - "thumbprint":"0123456789abcdef0123456789abcdef01234567", - "data":"#####...", - "certificateFormat":"pfx", - "password":"certpassword" + "thumbprintAlgorithm": "sha1", + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "data": "#####...", + "certificateFormat": "pfx", + "password": "certpassword" } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateCancelDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateCancelDelete.json index 26c5f96c87bf..c5da1b0a7f57 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateCancelDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateCancelDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateDelete.json index a46d4e70e9a2..0cfc1b0fd602 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateGet.json index 9b9d12765743..19ea59bd4651 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateGet.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateList.json index bd6542ba5782..41cfaff8b603 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/CertificateList.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileDeleteFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileDeleteFromNode.json index aa2ec6062bd5..44495da2458e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileDeleteFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileDeleteFromNode.json @@ -9,8 +9,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileDeleteFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileDeleteFromTask.json index 7d14815da786..a15ccbf174a9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileDeleteFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileDeleteFromTask.json @@ -9,8 +9,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileGetPropertiesFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileGetPropertiesFromNode.json index 8e72bb4399a6..ca2cb99c18f6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileGetPropertiesFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileGetPropertiesFromNode.json @@ -9,12 +9,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileGetPropertiesFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileGetPropertiesFromTask.json index 8942e96948a8..8a182d833820 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileGetPropertiesFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileGetPropertiesFromTask.json @@ -9,12 +9,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileListFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileListFromNode.json index 1496110130ea..12f0121b18f5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileListFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileListFromNode.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileListFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileListFromTask.json index 94fd190468af..96ef570fa654 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileListFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/FileListFromTask.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobAdd_Basic.json index 8b47aff3c30f..1070d15983d8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobAdd_Basic.json @@ -12,8 +12,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobAdd_Complex.json index 68040f9b5529..7800d9e56d3c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobAdd_Complex.json @@ -35,7 +35,7 @@ "retentionTime": "PT1H" }, "killJobOnCompletion": false, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -54,7 +54,7 @@ "targetOSVersion": "*" }, "resizeTimeout": "PT15M", - "targetDedicated": 3, + "targetDedicatedNodes": 3, "maxTasksPerNode": 2, "taskSchedulingPolicy": { "nodeFillType": "spread" @@ -75,7 +75,7 @@ "value": "myvalue" } ], - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -113,8 +113,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobDisable.json index d72a06c54d37..d5af7b4bb3e8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobDisable.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobEnable.json index c39f4a225edd..44df310ce264 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobEnable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobGet.json index 0bae4ebd131d..e41523ad29b1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobGet.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobGetLifetimeStatistics.json index 931d167134ad..3eecc86a1d63 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobGetLifetimeStatistics.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimejobstats", + "url": "https://account.region.batch.core.windows.net/lifetimejobstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "userCPUTime": "PT0S", @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobList.json index d46127d23d13..6f9ec3a867e8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobList.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobListPreparationAndReleaseTaskStatus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobListPreparationAndReleaseTaskStatus.json index a73a1ed98003..69f291f29610 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobListPreparationAndReleaseTaskStatus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobListPreparationAndReleaseTaskStatus.json @@ -36,4 +36,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobPatch.json index 74eb40fdb399..9ca00a8e750c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobPatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobPatch.json @@ -5,19 +5,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "jobPatchParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleAdd_Basic.json index 287a8aa9b03c..5b5f9dc56e3b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleAdd_Basic.json @@ -6,7 +6,7 @@ "cloudJobSchedule": { "id": "jobScheduleId", "schedule": { - "recurrenceInterval":"PT5M" + "recurrenceInterval": "PT5M" }, "jobSpecification": { "poolInfo": { @@ -16,8 +16,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleAdd_Complex.json index b831d5cd634a..cf99001ef2e6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleAdd_Complex.json @@ -61,7 +61,7 @@ "targetOSVersion": "*" }, "resizeTimeout": "PT15M", - "targetDedicated": 3, + "targetDedicatedNodes": 3, "maxTasksPerNode": 2, "taskSchedulingPolicy": { "nodeFillType": "spread" @@ -121,8 +121,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleDelete.json index 4286e8936fd9..0bf9cbfc3db4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleDisable.json index bd838eed45cc..811568564ec6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleDisable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleEnable.json index bd838eed45cc..811568564ec6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleEnable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleGet.json index 4eb145e6c1b5..b9ba874c54b9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleGet.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleList.json index 73b0a141db00..b47ff0accdb6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleList.json @@ -70,4 +70,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobSchedulePatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobSchedulePatch.json index 71c677593b57..79cca94a530a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobSchedulePatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobSchedulePatch.json @@ -22,8 +22,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleTerminate.json index 4286e8936fd9..0bf9cbfc3db4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleTerminate.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleUpdate.json index 6a26f335736f..7c7777feb7f4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobScheduleUpdate.json @@ -22,8 +22,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobTerminate.json index 858bdcbb7518..dc77dc280153 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobTerminate.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobUpdate.json index 0984430be61d..3ea0bb37c7cf 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/JobUpdate.json @@ -5,19 +5,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "jobUpdateParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeAddUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeAddUser.json index 2b99a1feae5d..50aa838f2303 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeAddUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeAddUser.json @@ -13,8 +13,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeDeleteUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeDeleteUser.json index 8b2594aa20df..a7ee73659f00 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeDeleteUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeDeleteUser.json @@ -8,8 +8,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeDisableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeDisableScheduling.json index ba6f824d4010..02699922cb9e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeDisableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeDisableScheduling.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeEnableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeEnableScheduling.json index 6b80e4ce452d..12d2b15b8cd3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeEnableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeEnableScheduling.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeGetRemoteLoginSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeGetRemoteLoginSettings.json index 75ef488d233f..1eb45beab923 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeGetRemoteLoginSettings.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeGetRemoteLoginSettings.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeGet_Basic.json index fd8f31449915..f8ed81fd4681 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeGet_Basic.json @@ -24,7 +24,7 @@ "runningTasksCount": 0, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -43,4 +43,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeList.json index eef743916ec2..34a9090297cb 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeList.json @@ -25,7 +25,7 @@ "runningTasksCount": 0, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -58,7 +58,7 @@ "runningTasksCount": 0, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -91,7 +91,7 @@ "runningTasksCount": 0, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -112,4 +112,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeReboot.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeReboot.json index b6f7a4c8247f..cc516d7ed0da 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeReboot.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeReboot.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeReimage.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeReimage.json index ecf2fbd08dcb..3531e884f536 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeReimage.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeReimage.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeUpdateUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeUpdateUser.json index b8133e62e607..372f5440b2c5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeUpdateUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/NodeUpdateUser.json @@ -12,8 +12,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolAdd_CloudServiceConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolAdd_CloudServiceConfiguration.json index d63b5503d867..b6e9bcb3b634 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolAdd_CloudServiceConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolAdd_CloudServiceConfiguration.json @@ -9,18 +9,20 @@ "cloudServiceConfiguration": { "osFamily": "4" }, - "resizeTimeout":"PT15M", - "targetDedicated":5, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -30,4 +32,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolAdd_VirtualMachineConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolAdd_VirtualMachineConfiguration.json index 37d68f070561..67518f2f6ab8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolAdd_VirtualMachineConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolAdd_VirtualMachineConfiguration.json @@ -14,18 +14,20 @@ }, "nodeAgentSKUId": "batch.node.ubuntu 16.04" }, - "resizeTimeout":"PT15M", - "targetDedicated":5, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -35,4 +37,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolDelete.json index 291ec9d4c156..3eae1c728930 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolEnableAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolEnableAutoscale.json index ad4f5ab36c4a..e30ff497cc90 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolEnableAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolEnableAutoscale.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolEvaluateAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolEvaluateAutoscale.json index f349a11851d4..aa523e32d335 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolEvaluateAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolEvaluateAutoscale.json @@ -16,4 +16,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolGetLifetimeStatistics.json index 66a6f825a84e..8280444a7bf9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolGetLifetimeStatistics.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimepoolstats", + "url": "https://account.region.batch.core.windows.net/lifetimepoolstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "usageStats": { @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolGet_Basic.json index de9588a32e5a..0a0bbe881d34 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolGet_Basic.json @@ -19,13 +19,13 @@ "allocationStateTransitionTime": "2016-11-22T18:55:24.8154041Z", "vmSize": "standard_a1", "resizeTimeout": "PT15M", - "currentDedicated": 0, - "targetDedicated": 0, + "currentDedicatedNodes": 0, + "targetDedicatedNodes": 0, "enableAutoScale": false, "enableInterNodeCommunication": false, "startTask": { "commandLine": "/bin/bash -c 'echo start task'", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -50,4 +50,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolListUsageMetrics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolListUsageMetrics.json index edb909a0ed4d..d3601e6f89e3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolListUsageMetrics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolListUsageMetrics.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolList_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolList_Basic.json index 3a0c9d4d46ed..3ef4886947d0 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolList_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolList_Basic.json @@ -20,13 +20,13 @@ "allocationStateTransitionTime": "2016-11-21T18:27:40.287803Z", "vmSize": "small", "resizeTimeout": "PT15M", - "currentDedicated": 3, - "targetDedicated": 3, + "currentDedicatedNodes": 3, + "targetDedicatedNodes": 3, "enableAutoScale": false, "enableInterNodeCommunication": false, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -49,4 +49,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolRemoveNodes.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolRemoveNodes.json index 39e38639f343..1aff772409bb 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolRemoveNodes.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolRemoveNodes.json @@ -12,8 +12,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolResize.json index d950ce2f5a92..8b3e96b9ef59 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolResize.json @@ -5,12 +5,10 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "poolResizeParameter": { - "targetDedicated": 1 + "targetDedicatedNodes": 1 } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolStopResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolStopResize.json index 291ec9d4c156..3eae1c728930 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolStopResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolStopResize.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolUpdate.json index 0cd0554faba0..a0e2c1571946 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/PoolUpdate.json @@ -14,8 +14,6 @@ } }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAddCollection_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAddCollection_Basic.json index 831eee286aa7..dc9557b7597a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAddCollection_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAddCollection_Basic.json @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAddCollection_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAddCollection_Complex.json index b9e50d5209b1..0da43c0d194c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAddCollection_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAddCollection_Complex.json @@ -73,4 +73,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAdd_Basic.json index 31020aaa3660..b986f9341a29 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAdd_Basic.json @@ -10,8 +10,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAdd_ExitConditions.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAdd_ExitConditions.json index 06a461d670a3..0fd836a1d175 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAdd_ExitConditions.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskAdd_ExitConditions.json @@ -18,7 +18,7 @@ } ] }, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -27,8 +27,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskDelete.json index dcc6788d32af..44e025370c7d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskGet.json index 48b4cb0389ad..d8c82f4ca69c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskGet.json @@ -17,7 +17,7 @@ "state": "active", "stateTransitionTime": "2016-09-06T06:59:15.1161429Z", "commandLine": "cmd /c hostname", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskList.json index 1dd23be937e2..057b4dce1513 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskList.json @@ -18,7 +18,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.4733476Z", "commandLine": "cmd /c echo task1", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -43,7 +43,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.6736345Z", "commandLine": "cmd /c echo task2", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -63,4 +63,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskListSubtasks.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskListSubtasks.json index ead6fef7c89c..2a3e6fae74a6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskListSubtasks.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskListSubtasks.json @@ -46,4 +46,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskReactivate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskReactivate.json index 37cd57df63b5..44f54f860f42 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskReactivate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskReactivate.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskTerminate.json index 37cd57df63b5..44f54f860f42 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskTerminate.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskUpdate.json index 1698e7578413..f498faa4f99b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-05-01.5.0/examples/TaskUpdate.json @@ -7,15 +7,13 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "taskUpdateParameter": { "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":3, - "retentionTime":"PT1H" + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 3, + "retentionTime": "PT1H" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/BatchService.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/BatchService.json index 823c8d6bcec3..1e6093ac0f7e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/BatchService.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/BatchService.json @@ -248,7 +248,9 @@ }, "operationId": "Pool_ListUsageMetrics", "x-ms-examples": { - "Pool list usage metrics": { "$ref": "./examples/PoolListUsageMetrics.json" } + "Pool list usage metrics": { + "$ref": "./examples/PoolListUsageMetrics.json" + } }, "summary": "Lists the usage metrics, aggregated by pool across individual time intervals, for the specified account.", "description": "If you do not specify a $filter clause including a poolId, the response includes all pools that existed in the account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.", @@ -400,7 +402,9 @@ }, "operationId": "Account_ListNodeAgentSkus", "x-ms-examples": { - "Account list node agent skus": { "$ref": "./examples/AccountListNodeAgentSkus.json" } + "Account list node agent skus": { + "$ref": "./examples/AccountListNodeAgentSkus.json" + } }, "summary": "Lists all node agent SKUs supported by the Azure Batch service.", "x-ms-request-id": "request-id", @@ -524,7 +528,9 @@ ], "operationId": "Pool_GetAllLifetimeStatistics", "x-ms-examples": { - "Pool get lifetime statistics": { "$ref": "./examples/PoolGetLifetimeStatistics.json" } + "Pool get lifetime statistics": { + "$ref": "./examples/PoolGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the pools in the specified account.", "description": "Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.", @@ -624,7 +630,9 @@ ], "operationId": "Job_GetAllLifetimeStatistics", "x-ms-examples": { - "Job get lifetime statistics": { "$ref": "./examples/JobGetLifetimeStatistics.json" } + "Job get lifetime statistics": { + "$ref": "./examples/JobGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the jobs in the specified account.", "description": "Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.", @@ -724,7 +732,9 @@ ], "operationId": "Certificate_Add", "x-ms-examples": { - "Certificate add": { "$ref": "./examples/CertificateAdd.json" } + "Certificate add": { + "$ref": "./examples/CertificateAdd.json" + } }, "summary": "Adds a certificate to the specified account.", "x-ms-request-id": "request-id", @@ -834,7 +844,9 @@ }, "operationId": "Certificate_List", "x-ms-examples": { - "Certificate list": { "$ref": "./examples/CertificateList.json" } + "Certificate list": { + "$ref": "./examples/CertificateList.json" + } }, "summary": "Lists all of the certificates that have been added to the specified account.", "x-ms-request-id": "request-id", @@ -968,7 +980,9 @@ ], "operationId": "Certificate_CancelDeletion", "x-ms-examples": { - "Certificate cancel delete": { "$ref": "./examples/CertificateCancelDelete.json" } + "Certificate cancel delete": { + "$ref": "./examples/CertificateCancelDelete.json" + } }, "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.", @@ -1083,7 +1097,9 @@ ], "operationId": "Certificate_Delete", "x-ms-examples": { - "Certificate delete": { "$ref": "./examples/CertificateDelete.json" } + "Certificate delete": { + "$ref": "./examples/CertificateDelete.json" + } }, "summary": "Deletes a certificate from the specified account.", "description": "You cannot delete a certificate if a resource (pool or compute node) is using it. Before you can delete a certificate, you must therefore make sure that the certificate is not associated with any existing pools, the certificate is not installed on any compute nodes (even if you remove a certificate from a pool, it is not removed from existing compute nodes in that pool until they restart), and no running tasks depend on the certificate. If you try to delete a certificate that is in use, the deletion fails. The certificate status changes to deleteFailed. You can use Cancel Delete Certificate to set the status back to active if you decide that you want to continue using the certificate.", @@ -1192,7 +1208,9 @@ ], "operationId": "Certificate_Get", "x-ms-examples": { - "Certificate get": { "$ref": "./examples/CertificateGet.json" } + "Certificate get": { + "$ref": "./examples/CertificateGet.json" + } }, "description": "Gets information about the specified certificate.", "x-ms-request-id": "request-id", @@ -1315,7 +1333,9 @@ ], "operationId": "File_DeleteFromTask", "x-ms-examples": { - "File delete from task": { "$ref": "./examples/FileDeleteFromTask.json" } + "File delete from task": { + "$ref": "./examples/FileDeleteFromTask.json" + } }, "summary": "Deletes the specified task file from the compute node where the task ran.", "x-ms-request-id": "request-id", @@ -1599,7 +1619,9 @@ ], "operationId": "File_GetPropertiesFromTask", "x-ms-examples": { - "File get properties from task": { "$ref": "./examples/FileGetPropertiesFromTask.json" } + "File get properties from task": { + "$ref": "./examples/FileGetPropertiesFromTask.json" + } }, "description": "Gets the properties of the specified task file.", "x-ms-request-id": "request-id", @@ -1764,7 +1786,9 @@ ], "operationId": "File_DeleteFromComputeNode", "x-ms-examples": { - "File delete from node": { "$ref": "./examples/FileDeleteFromNode.json" } + "File delete from node": { + "$ref": "./examples/FileDeleteFromNode.json" + } }, "summary": "Deletes the specified file from the compute node.", "x-ms-request-id": "request-id", @@ -2048,7 +2072,9 @@ ], "operationId": "File_GetPropertiesFromComputeNode", "x-ms-examples": { - "File get properties from node": { "$ref": "./examples/FileGetPropertiesFromNode.json" } + "File get properties from node": { + "$ref": "./examples/FileGetPropertiesFromNode.json" + } }, "description": "Gets the properties of the specified compute node file.", "x-ms-request-id": "request-id", @@ -2216,7 +2242,9 @@ }, "operationId": "File_ListFromTask", "x-ms-examples": { - "File list from task": { "$ref": "./examples/FileListFromTask.json" } + "File list from task": { + "$ref": "./examples/FileListFromTask.json" + } }, "summary": "Lists the files in a task's directory on its compute node.", "x-ms-request-id": "request-id", @@ -2364,7 +2392,9 @@ }, "operationId": "File_ListFromComputeNode", "x-ms-examples": { - "File list from node": { "$ref": "./examples/FileListFromNode.json" } + "File list from node": { + "$ref": "./examples/FileListFromNode.json" + } }, "summary": "Lists all of the files in task directories on the specified compute node.", "x-ms-request-id": "request-id", @@ -2652,7 +2682,9 @@ ], "operationId": "JobSchedule_Delete", "x-ms-examples": { - "JobSchedule delete": { "$ref": "./examples/JobScheduleDelete.json" } + "JobSchedule delete": { + "$ref": "./examples/JobScheduleDelete.json" + } }, "summary": "Deletes a job schedule from the specified account.", "description": "When you delete a job schedule, this also deletes all jobs and tasks under that schedule. When tasks are deleted, all the files in their working directories on the compute nodes are also deleted (the retention period is ignored). The job schedule statistics are no longer accessible once the job schedule is deleted, though they are still counted towards account lifetime statistics.", @@ -2785,7 +2817,9 @@ ], "operationId": "JobSchedule_Get", "x-ms-examples": { - "JobSchedule get": { "$ref": "./examples/JobScheduleGet.json" } + "JobSchedule get": { + "$ref": "./examples/JobScheduleGet.json" + } }, "description": "Gets information about the specified job schedule.", "x-ms-request-id": "request-id", @@ -2951,7 +2985,9 @@ ], "operationId": "JobSchedule_Patch", "x-ms-examples": { - "JobSchedule patch": { "$ref": "./examples/JobSchedulePatch.json" } + "JobSchedule patch": { + "$ref": "./examples/JobSchedulePatch.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This replaces only the job schedule properties specified in the request. For example, if the schedule property is not specified with this request, then the Batch service will keep the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3108,7 +3144,9 @@ ], "operationId": "JobSchedule_Update", "x-ms-examples": { - "JobSchedule update": { "$ref": "./examples/JobScheduleUpdate.json" } + "JobSchedule update": { + "$ref": "./examples/JobScheduleUpdate.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This fully replaces all the updatable properties of the job schedule. For example, if the schedule property is not specified with this request, then the Batch service will remove the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3267,7 +3305,9 @@ ], "operationId": "JobSchedule_Disable", "x-ms-examples": { - "JobSchedule disable": { "$ref": "./examples/JobScheduleDisable.json" } + "JobSchedule disable": { + "$ref": "./examples/JobScheduleDisable.json" + } }, "summary": "Disables a job schedule.", "description": "No new jobs will be created until the job schedule is enabled again.", @@ -3417,7 +3457,9 @@ ], "operationId": "JobSchedule_Enable", "x-ms-examples": { - "JobSchedule enable": { "$ref": "./examples/JobScheduleEnable.json" } + "JobSchedule enable": { + "$ref": "./examples/JobScheduleEnable.json" + } }, "summary": "Enables a job schedule.", "x-ms-request-id": "request-id", @@ -3566,7 +3608,9 @@ ], "operationId": "JobSchedule_Terminate", "x-ms-examples": { - "JobSchedule terminate": { "$ref": "./examples/JobScheduleTerminate.json" } + "JobSchedule terminate": { + "$ref": "./examples/JobScheduleTerminate.json" + } }, "summary": "Terminates a job schedule.", "x-ms-request-id": "request-id", @@ -3715,8 +3759,12 @@ ], "operationId": "JobSchedule_Add", "x-ms-examples": { - "Add a basic JobSchedule": { "$ref": "./examples/JobScheduleAdd_Basic.json" }, - "Add a complex JobScheduleAdd": { "$ref": "./examples/JobScheduleAdd_Complex.json" } + "Add a basic JobSchedule": { + "$ref": "./examples/JobScheduleAdd_Basic.json" + }, + "Add a complex JobScheduleAdd": { + "$ref": "./examples/JobScheduleAdd_Complex.json" + } }, "summary": "Adds a job schedule to the specified account.", "x-ms-request-id": "request-id", @@ -3826,7 +3874,9 @@ }, "operationId": "JobSchedule_List", "x-ms-examples": { - "JobSchedule list": { "$ref": "./examples/JobScheduleList.json" } + "JobSchedule list": { + "$ref": "./examples/JobScheduleList.json" + } }, "summary": "Lists all of the job schedules in the specified account.", "x-ms-request-id": "request-id", @@ -4100,7 +4150,9 @@ ], "operationId": "Job_Get", "x-ms-examples": { - "Job get": { "$ref": "./examples/JobGet.json" } + "Job get": { + "$ref": "./examples/JobGet.json" + } }, "summary": "Gets information about the specified job.", "x-ms-request-id": "request-id", @@ -4266,7 +4318,9 @@ ], "operationId": "Job_Patch", "x-ms-examples": { - "Job patch": { "$ref": "./examples/JobPatch.json" } + "Job patch": { + "$ref": "./examples/JobPatch.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This replaces only the job properties specified in the request. For example, if the job has constraints, and a request does not specify the constraints element, then the job keeps the existing constraints.", @@ -4423,7 +4477,9 @@ ], "operationId": "Job_Update", "x-ms-examples": { - "Job update": { "$ref": "./examples/JobUpdate.json" } + "Job update": { + "$ref": "./examples/JobUpdate.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.", @@ -4582,7 +4638,9 @@ ], "operationId": "Job_Disable", "x-ms-examples": { - "Job disable": { "$ref": "./examples/JobDisable.json" } + "Job disable": { + "$ref": "./examples/JobDisable.json" + } }, "summary": "Disables the specified job, preventing new tasks from running.", "description": "The Batch Service immediately moves the job to the disabling state. Batch then uses the disableTasks parameter to determine what to do with the currently running tasks of the job. The job remains in the disabling state until the disable operation is completed and all tasks have been dealt with according to the disableTasks option; the job then moves to the disabled state. No new tasks are started under the job until it moves back to active state. If you try to disable a job that is in any state other than active, disabling, or disabled, the request fails with status code 409.", @@ -4741,7 +4799,9 @@ ], "operationId": "Job_Enable", "x-ms-examples": { - "Job enable": { "$ref": "./examples/JobEnable.json" } + "Job enable": { + "$ref": "./examples/JobEnable.json" + } }, "summary": "Enables the specified job, allowing new tasks to run.", "description": "When you call this API, the Batch service sets a disabled job to the enabling state. After the this operation is completed, the job moves to the active state, and scheduling of new tasks under the job resumes. The Batch service does not allow a task to remain in the active state for more than 7 days. Therefore, if you enable a job containing active tasks which were added more than 7 days ago, those tasks will not run.", @@ -4891,7 +4951,9 @@ ], "operationId": "Job_Terminate", "x-ms-examples": { - "Job terminate": { "$ref": "./examples/JobTerminate.json" } + "Job terminate": { + "$ref": "./examples/JobTerminate.json" + } }, "summary": "Terminates the specified job, marking it as completed.", "description": "When a Terminate Job request is received, the Batch service sets the job to the terminating state. The Batch service then terminates any active or running tasks associated with the job, and runs any required Job Release tasks. The job then moves into the completed state.", @@ -5050,8 +5112,12 @@ ], "operationId": "Job_Add", "x-ms-examples": { - "Add a basic job": { "$ref": "./examples/JobAdd_Basic.json" }, - "Add a complex job": { "$ref": "./examples/JobAdd_Complex.json" } + "Add a basic job": { + "$ref": "./examples/JobAdd_Basic.json" + }, + "Add a complex job": { + "$ref": "./examples/JobAdd_Complex.json" + } }, "summary": "Adds a job to the specified account.", "description": "The Batch service supports two ways to control the work done as part of a job. In the first approach, the user specifies a Job Manager task. The Batch service launches this task when it is ready to start the job. The Job Manager task controls all other tasks that run under this job, by using the Task APIs. In the second approach, the user directly controls the execution of tasks under an active job, by using the Task APIs. Also note: when naming jobs, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5162,7 +5228,9 @@ }, "operationId": "Job_List", "x-ms-examples": { - "Job list": { "$ref": "./examples/JobList.json" } + "Job list": { + "$ref": "./examples/JobList.json" + } }, "summary": "Lists all of the jobs in the specified account.", "x-ms-request-id": "request-id", @@ -5460,7 +5528,9 @@ }, "operationId": "Job_ListPreparationAndReleaseTaskStatus", "x-ms-examples": { - "Job list preparation and release task status": { "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" } + "Job list preparation and release task status": { + "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" + } }, "summary": "Lists the execution status of the Job Preparation and Job Release task for the specified job across the compute nodes where the job has run.", "description": "This API returns the Job Preparation and Job Release task status on all compute nodes that have run the Job Preparation or Job Release task. This includes nodes which have since been removed from the pool. If this API is invoked on a job which has no Job Preparation or Job Release task, the Batch service returns HTTP status code 409 (Conflict) with an error code of JobPreparationTaskNotSpecified.", @@ -5602,7 +5672,9 @@ ], "operationId": "Job_GetTaskCounts", "x-ms-examples": { - "Job get task counts": { "$ref": "./examples/JobGetTaskCounts.json" } + "Job get task counts": { + "$ref": "./examples/JobGetTaskCounts.json" + } }, "summary": "Gets the task counts for the specified job.", "description": "Task counts provide a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. Tasks in the preparing state are counted as running. If the validationStatus is unvalidated, then the Batch service has not been able to check state counts against the task states as reported in the List Tasks API. The validationStatus may be unvalidated if the job contains more than 200,000 tasks.", @@ -5700,8 +5772,12 @@ ], "operationId": "Pool_Add", "x-ms-examples": { - "Add a CloudServiceConfiguration pool": { "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" }, - "Add a VirtualMachineConfiguration pool": { "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" } + "Add a CloudServiceConfiguration pool": { + "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool": { + "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" + } }, "summary": "Adds a pool to the specified account.", "description": "When naming pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5812,7 +5888,9 @@ }, "operationId": "Pool_List", "x-ms-examples": { - "Pool list": { "$ref": "./examples/PoolList_Basic.json" } + "Pool list": { + "$ref": "./examples/PoolList_Basic.json" + } }, "summary": "Lists all of the pools in the specified account.", "x-ms-request-id": "request-id", @@ -5956,7 +6034,9 @@ ], "operationId": "Pool_Delete", "x-ms-examples": { - "Pool delete": { "$ref": "./examples/PoolDelete.json" } + "Pool delete": { + "$ref": "./examples/PoolDelete.json" + } }, "summary": "Deletes a pool from the specified account.", "description": "When you request that a pool be deleted, the following actions occur: the pool state is set to deleting; any ongoing resize operation on the pool are stopped; the Batch service starts resizing the pool to zero nodes; any tasks running on existing nodes are terminated and requeued (as if a resize pool operation had been requested with the default requeue option); finally, the pool is removed from the system. Because running tasks are requeued, the user can rerun these tasks by updating their job to target a different pool. The tasks can then run on the new pool. If you want to override the requeue behavior, then you should call resize pool explicitly to shrink the pool to zero size before deleting the pool. If you call an Update, Patch or Delete API on a pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.", @@ -6232,7 +6312,9 @@ ], "operationId": "Pool_Get", "x-ms-examples": { - "Pool get": { "$ref": "./examples/PoolGet_Basic.json" } + "Pool get": { + "$ref": "./examples/PoolGet_Basic.json" + } }, "description": "Gets information about the specified pool.", "x-ms-request-id": "request-id", @@ -6658,7 +6740,9 @@ ], "operationId": "Pool_EnableAutoScale", "x-ms-examples": { - "Pool enable autoscale": { "$ref": "./examples/PoolEnableAutoscale.json" } + "Pool enable autoscale": { + "$ref": "./examples/PoolEnableAutoscale.json" + } }, "summary": "Enables automatic scaling for a pool.", "description": "You cannot enable automatic scaling on a pool if a resize operation is in progress on the pool. If automatic scaling of the pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same pool more than once every 30 seconds.", @@ -6817,7 +6901,9 @@ ], "operationId": "Pool_EvaluateAutoScale", "x-ms-examples": { - "Pool evaluate autoscale": { "$ref": "./examples/PoolEvaluateAutoscale.json" } + "Pool evaluate autoscale": { + "$ref": "./examples/PoolEvaluateAutoscale.json" + } }, "summary": "Gets the result of evaluating an automatic scaling formula on the pool.", "description": "This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the pool. The pool must have auto scaling enabled in order to evaluate a formula.", @@ -6937,7 +7023,9 @@ ], "operationId": "Pool_Resize", "x-ms-examples": { - "Pool resize": { "$ref": "./examples/PoolResize.json" } + "Pool resize": { + "$ref": "./examples/PoolResize.json" + } }, "summary": "Changes the number of compute nodes that are assigned to a pool.", "description": "You can only resize a pool when its allocation state is steady. If the pool is already resizing, the request fails with status code 409. When you resize a pool, the pool's allocation state changes from steady to resizing. You cannot resize pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a pool downwards, the Batch service chooses which nodes to remove. To remove specific nodes, use the pool remove nodes API instead.", @@ -7096,7 +7184,9 @@ ], "operationId": "Pool_StopResize", "x-ms-examples": { - "Pool stop resize": { "$ref": "./examples/PoolStopResize.json" } + "Pool stop resize": { + "$ref": "./examples/PoolStopResize.json" + } }, "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.", @@ -7246,7 +7336,9 @@ ], "operationId": "Pool_UpdateProperties", "x-ms-examples": { - "Pool update": { "$ref": "./examples/PoolUpdate.json" } + "Pool update": { + "$ref": "./examples/PoolUpdate.json" + } }, "summary": "Updates the properties of the specified pool.", "description": "This fully replaces all the updatable properties of the pool. For example, if the pool has a start task associated with it and if start task is not specified with this request, then the Batch service will remove the existing start task.", @@ -7519,7 +7611,9 @@ ], "operationId": "Pool_RemoveNodes", "x-ms-examples": { - "Pool remove nodes": { "$ref": "./examples/PoolRemoveNodes.json" } + "Pool remove nodes": { + "$ref": "./examples/PoolRemoveNodes.json" + } }, "summary": "Removes compute nodes from the specified pool.", "description": "This operation can only run when the allocation state of the pool is steady. When this operation runs, the allocation state changes from steady to resizing.", @@ -7678,8 +7772,12 @@ ], "operationId": "Task_Add", "x-ms-examples": { - "Add a basic task": { "$ref": "./examples/TaskAdd_Basic.json" }, - "Add a task with exit conditions": { "$ref": "./examples/TaskAdd_ExitConditions.json" } + "Add a basic task": { + "$ref": "./examples/TaskAdd_Basic.json" + }, + "Add a task with exit conditions": { + "$ref": "./examples/TaskAdd_ExitConditions.json" + } }, "summary": "Adds a task to the specified job.", "x-ms-request-id": "request-id", @@ -7796,7 +7894,9 @@ }, "operationId": "Task_List", "x-ms-examples": { - "Task list": { "$ref": "./examples/TaskList.json" } + "Task list": { + "$ref": "./examples/TaskList.json" + } }, "summary": "Lists all of the tasks that are associated with the specified job.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -7948,8 +8048,12 @@ ], "operationId": "Task_AddCollection", "x-ms-examples": { - "Add a basic collection of tasks": { "$ref": "./examples/TaskAddCollection_Basic.json" }, - "Add a complex collection of tasks": { "$ref": "./examples/TaskAddCollection_Complex.json" } + "Add a basic collection of tasks": { + "$ref": "./examples/TaskAddCollection_Basic.json" + }, + "Add a complex collection of tasks": { + "$ref": "./examples/TaskAddCollection_Complex.json" + } }, "summary": "Adds a collection of tasks to the specified job.", "description": "Note that each task must have a unique ID. The Batch service may not return the results for each task in the same order the tasks were submitted in this request. If the server times out or the connection is closed during the request, the request may have been partially or fully processed, or not at all. In such cases, the user should re-issue the request. Note that it is up to the user to correctly handle failures when re-issuing a request. For example, you should use the same task IDs during a retry so that if the prior operation succeeded, the retry will not create extra tasks unexpectedly. If the response contains any tasks which failed to add, a client can retry the request. In a retry, it is most efficient to resubmit only tasks that failed to add, and to omit tasks that were successfully added on the first attempt.", @@ -8054,7 +8158,9 @@ ], "operationId": "Task_Delete", "x-ms-examples": { - "Task delete": { "$ref": "./examples/TaskDelete.json" } + "Task delete": { + "$ref": "./examples/TaskDelete.json" + } }, "summary": "Deletes a task from the specified job.", "description": "When a task is deleted, all of the files in its directory on the compute node where it ran are also deleted (regardless of the retention time). For multi-instance tasks, the delete task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.", @@ -8194,7 +8300,9 @@ ], "operationId": "Task_Get", "x-ms-examples": { - "Task get": { "$ref": "./examples/TaskGet.json" } + "Task get": { + "$ref": "./examples/TaskGet.json" + } }, "summary": "Gets information about the specified task.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -8372,7 +8480,9 @@ ], "operationId": "Task_Update", "x-ms-examples": { - "Task update": { "$ref": "./examples/TaskUpdate.json" } + "Task update": { + "$ref": "./examples/TaskUpdate.json" + } }, "description": "Updates the properties of the specified task.", "x-ms-request-id": "request-id", @@ -8537,7 +8647,9 @@ ], "operationId": "Task_ListSubtasks", "x-ms-examples": { - "Task list subtasks": { "$ref": "./examples/TaskListSubtasks.json" } + "Task list subtasks": { + "$ref": "./examples/TaskListSubtasks.json" + } }, "summary": "Lists all of the subtasks that are associated with the specified multi-instance task.", "description": "If the task is not a multi-instance task then this returns an empty collection.", @@ -8661,7 +8773,9 @@ ], "operationId": "Task_Terminate", "x-ms-examples": { - "Task terminate": { "$ref": "./examples/TaskTerminate.json" } + "Task terminate": { + "$ref": "./examples/TaskTerminate.json" + } }, "summary": "Terminates the specified task.", "description": "When the task has been terminated, it moves to the completed state. For multi-instance tasks, the terminate task operation applies synchronously to the primary task; subtasks are then terminated asynchronously in the background.", @@ -8818,7 +8932,9 @@ ], "operationId": "Task_Reactivate", "x-ms-examples": { - "Task reactivate": { "$ref": "./examples/TaskReactivate.json" } + "Task reactivate": { + "$ref": "./examples/TaskReactivate.json" + } }, "summary": "Reactivates a task, allowing it to run again even if its retry count has been exhausted.", "description": "Reactivation makes a task eligible to be retried again up to its maximum retry count. The task's state is changed to active. As the task is no longer in the completed state, any previous exit code or failure information is no longer available after reactivation. Each time a task is reactivated, its retry count is reset to 0. Reactivation will fail for tasks that are not completed or that previously completed successfully (with an exit code of 0). Additionally, it will fail if the job has completed (or is terminating or deleting).", @@ -8975,7 +9091,9 @@ ], "operationId": "ComputeNode_AddUser", "x-ms-examples": { - "Node add user": { "$ref": "./examples/NodeAddUser.json" } + "Node add user": { + "$ref": "./examples/NodeAddUser.json" + } }, "summary": "Adds a user account to the specified compute node.", "description": "You can add a user account to a node only when it is in the idle or running state.", @@ -9099,7 +9217,9 @@ ], "operationId": "ComputeNode_DeleteUser", "x-ms-examples": { - "Node delete user": { "$ref": "./examples/NodeDeleteUser.json" } + "Node delete user": { + "$ref": "./examples/NodeDeleteUser.json" + } }, "summary": "Deletes a user account from the specified compute node.", "description": "You can delete a user account to a node only when it is in the idle or running state.", @@ -9204,7 +9324,9 @@ ], "operationId": "ComputeNode_UpdateUser", "x-ms-examples": { - "Node update user": { "$ref": "./examples/NodeUpdateUser.json" } + "Node update user": { + "$ref": "./examples/NodeUpdateUser.json" + } }, "summary": "Updates the password and expiration time of a user account on the specified compute node.", "description": "This operation replaces of all the updatable properties of the account. For example, if the expiryTime element is not specified, the current value is replaced with the default value, not left unmodified. You can update a user account on a node only when it is in the idle or running state.", @@ -9335,7 +9457,9 @@ ], "operationId": "ComputeNode_Get", "x-ms-examples": { - "Node get": { "$ref": "./examples/NodeGet_Basic.json" } + "Node get": { + "$ref": "./examples/NodeGet_Basic.json" + } }, "summary": "Gets information about the specified compute node.", "x-ms-request-id": "request-id", @@ -9458,7 +9582,9 @@ ], "operationId": "ComputeNode_Reboot", "x-ms-examples": { - "Node reboot": { "$ref": "./examples/NodeReboot.json" } + "Node reboot": { + "$ref": "./examples/NodeReboot.json" + } }, "summary": "Restarts the specified compute node.", "description": "You can restart a node only if it is in an idle or running state.", @@ -9582,7 +9708,9 @@ ], "operationId": "ComputeNode_Reimage", "x-ms-examples": { - "Node reimage": { "$ref": "./examples/NodeReimage.json" } + "Node reimage": { + "$ref": "./examples/NodeReimage.json" + } }, "summary": "Reinstalls the operating system on the specified compute node.", "description": "You can reinstall the operating system on a node only if it is in an idle or running state. This API can be invoked only on pools created with the cloud service configuration property.", @@ -9706,7 +9834,9 @@ ], "operationId": "ComputeNode_DisableScheduling", "x-ms-examples": { - "Node disable scheduling": { "$ref": "./examples/NodeDisableScheduling.json" } + "Node disable scheduling": { + "$ref": "./examples/NodeDisableScheduling.json" + } }, "summary": "Disables task scheduling on the specified compute node.", "description": "You can disable task scheduling on a node only if its current scheduling state is enabled.", @@ -9830,7 +9960,9 @@ ], "operationId": "ComputeNode_EnableScheduling", "x-ms-examples": { - "Node enable scheduling": { "$ref": "./examples/NodeEnableScheduling.json" } + "Node enable scheduling": { + "$ref": "./examples/NodeEnableScheduling.json" + } }, "summary": "Enables task scheduling on the specified compute node.", "description": "You can enable task scheduling on a node only if its current scheduling state is disabled", @@ -9945,7 +10077,9 @@ ], "operationId": "ComputeNode_GetRemoteLoginSettings", "x-ms-examples": { - "Node get remote login settings": { "$ref": "./examples/NodeGetRemoteLoginSettings.json" } + "Node get remote login settings": { + "$ref": "./examples/NodeGetRemoteLoginSettings.json" + } }, "summary": "Gets the settings required for remote login to a compute node.", "description": "Before you can remotely login to a node using the remote login settings, you must create a user account on the node. This API can be invoked only on pools created with the virtual machine configuration property. For pools created with a cloud service configuration, see the GetRemoteDesktop API.", @@ -10173,7 +10307,9 @@ }, "operationId": "ComputeNode_List", "x-ms-examples": { - "Node list": { "$ref": "./examples/NodeList.json" } + "Node list": { + "$ref": "./examples/NodeList.json" + } }, "summary": "Lists the compute nodes in the specified pool.", "x-ms-request-id": "request-id", @@ -10346,7 +10482,15 @@ "title": "The cross data center network egress from the pool during this interval, in GiB." } }, - "required": [ "poolId", "startTime", "endTime", "vmSize", "totalCoreHours", "dataIngressGiB", "dataEgressGiB" ], + "required": [ + "poolId", + "startTime", + "endTime", + "vmSize", + "totalCoreHours", + "dataIngressGiB", + "dataEgressGiB" + ], "title": "Usage metrics for a pool across an aggregation interval." }, "PoolListUsageMetricsResult": { @@ -10450,7 +10594,11 @@ "title": "The aggregated wall-clock time of the dedicated compute node cores being part of the pool." } }, - "required": [ "startTime", "lastUpdateTime", "dedicatedCoreTime" ], + "required": [ + "startTime", + "lastUpdateTime", + "dedicatedCoreTime" + ], "title": "Statistics related to pool usage information." }, "ResourceStatistics": { @@ -10521,7 +10669,21 @@ "title": "The total amount of data in GiB of network writes across all nodes in the pool." } }, - "required": [ "startTime", "lastUpdateTime", "avgCPUPercentage", "avgMemoryGiB", "peakMemoryGiB", "avgDiskGiB", "peakDiskGiB", "diskReadIOps", "diskWriteIOps", "diskReadGiB", "diskWriteGiB", "networkReadGiB", "networkWriteGiB" ], + "required": [ + "startTime", + "lastUpdateTime", + "avgCPUPercentage", + "avgMemoryGiB", + "peakMemoryGiB", + "avgDiskGiB", + "peakDiskGiB", + "diskReadIOps", + "diskWriteIOps", + "diskReadGiB", + "diskWriteGiB", + "networkReadGiB", + "networkWriteGiB" + ], "title": "Statistics related to resource consumption by compute nodes in a pool." }, "PoolStatistics": { @@ -10549,7 +10711,11 @@ "title": "Statistics related to resource consumption by compute nodes in the pool." } }, - "required": [ "url", "startTime", "lastUpdateTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime" + ], "title": "Contains utilization and resource usage statistics for the lifetime of a pool." }, "JobStatistics": { @@ -10628,7 +10794,22 @@ "description": "The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.) This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job." }, "NameValuePair": { @@ -10723,7 +10904,9 @@ "description": "If this is omitted on a pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a task, and no default version is specified for this application, the task fails with a pre-processing error." } }, - "required": [ "applicationId" ], + "required": [ + "applicationId" + ], "title": "A reference to an application package to be deployed to compute nodes." }, "ApplicationSummary": { @@ -10744,7 +10927,11 @@ } } }, - "required": [ "id", "displayName", "versions" ], + "required": [ + "id", + "displayName", + "versions" + ], "title": "Contains information about an application in an Azure Batch account." }, "CertificateAddParameter": { @@ -10779,7 +10966,11 @@ "description": "This is required if the certificate format is pfx. It should be omitted if the certificate format is cer." } }, - "required": [ "thumbprint", "thumbprintAlgorithm", "data" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm", + "data" + ], "title": "A certificate that can be installed on compute nodes and can be used to authenticate operations on the machine." }, "CertificateListResult": { @@ -10826,7 +11017,10 @@ "description": "The file mode is returned only for files on Linux compute nodes." } }, - "required": [ "lastModified", "contentLength" ], + "required": [ + "lastModified", + "contentLength" + ], "title": "The properties of a file on a compute node." }, "NodeFile": { @@ -10929,7 +11123,10 @@ "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." } }, - "required": [ "blobSource", "filePath" ], + "required": [ + "blobSource", + "filePath" + ], "title": "A file to be downloaded from Azure blob storage to a compute node." }, "EnvironmentSetting": { @@ -10943,7 +11140,9 @@ "title": "The value of the environment variable." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "An environment variable to be set on a task process." }, "ExitConditions": { @@ -10992,7 +11191,10 @@ } }, "title": "How the Batch service should respond if a task exits with a particular exit code.", - "required": [ "code", "exitOptions" ] + "required": [ + "code", + "exitOptions" + ] }, "ExitCodeRangeMapping": { "properties": { @@ -11012,7 +11214,11 @@ } }, "title": "A range of exit codes and how the Batch service should respond to exit codes within that range.", - "required": [ "start", "end", "exitOptions" ] + "required": [ + "start", + "end", + "exitOptions" + ] }, "ExitOptions": { "properties": { @@ -11129,7 +11335,10 @@ "$ref": "#/definitions/LinuxUserConfiguration" } }, - "required": [ "name", "password" ], + "required": [ + "name", + "password" + ], "title": "Properties used to create a user used to execute tasks on an Azure Batch node." }, "TaskConstraints": { @@ -11180,7 +11389,7 @@ "title": "A list of files that the Batch service will download to the compute node before running the command line.", "description": "Files listed under this element are located in the task's working directory." }, - "outputFiles": { + "outputFiles": { "type": "array", "items": { "$ref": "#/definitions/OutputFile" @@ -11233,7 +11442,10 @@ "description": "The default value is false." } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "Specifies details of a Job Manager task.", "description": "The Job Manager task is automatically started when the job is created. The Batch service tries to schedule the Job Manager task before any other tasks in the job. When shrinking a pool, the Batch service tries to preserve compute nodes where Job Manager tasks are running for as long as possible (that is, nodes running 'normal' tasks are removed before nodes running Job Manager tasks). When a Job Manager task fails and needs to be restarted, the system tries to schedule it at the highest priority. If there are no idle nodes available, the system may terminate one of the running tasks in the pool and return it to the queue in order to make room for the Job Manager task to restart. Note that a Job Manager task in one job does not have priority over tasks in other jobs. Across jobs, only job level priorities are observed. For example, if a Job Manager in a priority 0 job needs to be restarted, it will not displace tasks of a priority 1 job." }, @@ -11284,7 +11496,9 @@ "description": "The Job Preparation task is always rerun if a compute node is reimaged, or if the Job Preparation task did not complete (e.g. because the reboot occurred while the task was running). Therefore, you should always write a Job Preparation task to be idempotent and to behave correctly if run multiple times. The default value is true." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Preparation task to run before any tasks of the job on any given compute node.", "description": "You can use Job Preparation to prepare a compute node to run tasks for the job. Activities commonly performed in Job Preparation include: Downloading common resource files used by all the tasks in the job. The Job Preparation task can download these common resource files to the shared location on the compute node. (AZ_BATCH_NODE_ROOT_DIR\\shared), or starting a local service on the compute node so that all tasks of that job can communicate with it. If the Job Preparation task fails (that is, exhausts its retry count before exiting with exit code 0), Batch will not run tasks of this job on the compute node. The node remains ineligible to run tasks of this job until it is reimaged. The node remains active and can be used for other jobs. The Job Preparation task can run multiple times on the same compute node. Therefore, you should write the Job Preparation task to handle re-execution. If the compute node is rebooted, the Job Preparation task is run again on the node before scheduling any other task of the job, if rerunOnNodeRebootAfterSuccess is true or if the Job Preparation task did not previously complete. If the compute node is reimaged, the Job Preparation task is run again before scheduling any task of the job." }, @@ -11332,7 +11546,9 @@ "description": "If omitted, the task runs as a non-administrative user unique to the task." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Release task to run on job completion on any compute node where the job has run.", "description": "The Job Release task runs when the job ends, because of one of the following: The user calls the Terminate Job API, or the Delete Job API while the job is still active, the job's maximum wall clock time constraint is reached, and the job is still active, or the job's Job Manager task completed, and the job is configured to terminate when the Job Manager completes. The Job Release task runs on each compute node where tasks of the job have run and the Job Preparation task ran and completed. If you reimage a compute node after it has run the Job Preparation task, and the job ends without any further tasks of the job running on that compute node (and hence the Job Preparation task does not re-run), then the Job Release task does not run on that node. If a compute node reboots while the Job Release task is still running, the Job Release task runs again when the compute node starts up. The job is not marked as complete until all Job Release tasks have completed. The Job Release task runs in the background. It does not occupy a scheduling slot; that is, it does not count towards the maxTasksPerNode limit specified on the pool." }, @@ -11351,7 +11567,9 @@ } } }, - "required": [ "nodeFillType" ], + "required": [ + "nodeFillType" + ], "title": "Specifies how tasks should be distributed across compute nodes." }, "StartTask": { @@ -11393,7 +11611,9 @@ "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 failure info details. 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 false." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "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." }, "CertificateReference": { @@ -11443,7 +11663,10 @@ "description": "Values are:\n\n starttask - The user account under which the start task is run.\n task - The accounts under which job tasks are run.\n remoteuser - The accounts under which users remotely access the node.\n\n You can specify more than one visibility in this collection. The default is all accounts." } }, - "required": [ "thumbprint", "thumbprintAlgorithm" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm" + ], "title": "A reference to a certificate to be installed on compute nodes in a pool." }, "MetadataItem": { @@ -11457,7 +11680,10 @@ "title": "The value of the metadata item." } }, - "required": [ "name", "value" ], + "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." }, @@ -11559,7 +11785,7 @@ "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." }, @@ -11579,7 +11805,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "vmSize" ], + "required": [ + "vmSize" + ], "title": "Specification for creating a new pool." }, "AutoPoolSpecification": { @@ -11612,7 +11840,9 @@ "title": "The pool specification for the auto pool." } }, - "required": [ "poolLifetimeOption" ], + "required": [ + "poolLifetimeOption" + ], "title": "Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto pool when the job is submitted." }, "PoolInformation": { @@ -11697,7 +11927,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "Specifies details of the jobs to be created on a schedule." }, "RecentJob": { @@ -11809,7 +12041,22 @@ "description": "This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job schedule." }, "CloudJobSchedule": { @@ -11918,7 +12165,11 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "schedule", "jobSpecification" ], + "required": [ + "id", + "schedule", + "jobSpecification" + ], "title": "A job schedule that allows recurring jobs by specifying when to run jobs and a specification used to create each job." }, "CloudJobScheduleListResult": { @@ -11959,7 +12210,9 @@ "title": "A list of additional error details related to the scheduling error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "An error encountered by the Batch service when scheduling a job." }, "JobExecutionInformation": { @@ -11992,7 +12245,9 @@ "description": "This property is set only if the job is in the completed state. If the Batch service terminates the job, it sets the reason as follows: JMComplete - the Job Manager task completed, and killJobOnCompletion was set to true. MaxWallClockTimeExpiry - the job reached its maxWallClockTime constraint. TerminateJobSchedule - the job ran as part of a schedule, and the schedule terminated. AllTasksComplete - the job's onAllTasksComplete attribute is set to terminateJob, and all tasks in the job are complete. TaskFailed - the job's onTaskFailure attribute is set to performExitOptionsJobAction, and a task in the job failed with an exit condition that specified a jobAction of terminateJob. Any other string is a user-defined reason specified in a call to the 'Terminate a job' operation." } }, - "required": [ "startTime" ], + "required": [ + "startTime" + ], "title": "Contains information about the execution of a job in the Azure Batch service." }, "CloudJob": { @@ -12187,7 +12442,10 @@ "title": "Whether tasks in the job can define dependencies on each other. The default is false." } }, - "required": [ "id", "poolInfo" ], + "required": [ + "id", + "poolInfo" + ], "title": "An Azure Batch job to add." }, "CloudJobListResult": { @@ -12228,7 +12486,9 @@ "title": "A list of additional details related to the error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "Information about a task failure." }, "JobPreparationTaskExecutionInformation": { @@ -12295,7 +12555,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "retryCount", "state" ], + "required": [ + "startTime", + "retryCount", + "state" + ], "title": "Contains information about the execution of a Job Preparation task on a compute node." }, "JobReleaseTaskExecutionInformation": { @@ -12350,7 +12614,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "state" ], + "required": [ + "startTime", + "state" + ], "title": "Contains information about the execution of a Job Release task on a compute node." }, "JobPreparationAndReleaseTaskExecutionInformation": { @@ -12436,7 +12703,14 @@ } } }, - "required": ["active", "running", "completed", "succeeded", "failed", "validationStatus"], + "required": [ + "active", + "running", + "completed", + "succeeded", + "failed", + "validationStatus" + ], "title": "The task counts for a job." }, "AutoScaleRunError": { @@ -12476,7 +12750,9 @@ "title": "Details of the error encountered evaluating the autoscale formula on the pool, if the evaluation was unsuccessful." } }, - "required": [ "timestamp" ], + "required": [ + "timestamp" + ], "title": "The results and errors from an execution of a pool autoscale formula." }, "ResizeError": { @@ -12517,7 +12793,9 @@ "description": "This may differ from targetOSVersion if the pool state is Upgrading. In this case some virtual machines may be on the targetOSVersion and some may be on the currentOSVersion during the upgrade process. Once all virtual machines have upgraded, currentOSVersion is updated to be the same as targetOSVersion." } }, - "required": [ "osFamily" ], + "required": [ + "osFamily" + ], "title": "The configuration for nodes in a pool based on the Azure Cloud Services platform." }, "ImageReference": { @@ -12543,7 +12821,11 @@ "description": "A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'." } }, - "required": [ "publisher", "offer", "sku" ], + "required": [ + "publisher", + "offer", + "sku" + ], "title": "A reference to an Azure Virtual Machines Marketplace image. To get the list of all imageReferences verified by Azure Batch, see the 'List supported node agent SKUs' operation." }, "OSDisk": { @@ -12571,7 +12853,9 @@ } } }, - "required": [ "imageUris" ], + "required": [ + "imageUris" + ], "title": "A reference to an OS disk image." }, "WindowsConfiguration": { @@ -12607,7 +12891,9 @@ "description": "This property must not be specified if the imageReference or osDisk property specifies a Linux OS image." } }, - "required": [ "nodeAgentSKUId" ], + "required": [ + "nodeAgentSKUId" + ], "title": "The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure." }, "NetworkConfiguration": { @@ -12622,9 +12908,9 @@ } }, "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." + "$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." } }, "description": "The network configuration for a pool." @@ -12802,7 +13088,7 @@ "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." }, @@ -12930,7 +13216,7 @@ "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." }, @@ -12960,7 +13246,10 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "vmSize" ], + "required": [ + "id", + "vmSize" + ], "title": "A pool in the Azure Batch service to add." }, "ApplicationListResult": { @@ -13003,7 +13292,9 @@ "description": "You can pass the affinityId of a compute node to indicate that this task needs to run on that compute node. Note that this is just a soft affinity. If the target node is busy or unavailable at the time the task is scheduled, then the task will be scheduled elsewhere." } }, - "required": [ "affinityId" ], + "required": [ + "affinityId" + ], "title": "A locality hint that can be used by the Batch service to select a compute node on which to start a task." }, "TaskExecutionInformation": { @@ -13061,7 +13352,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "requeueCount", "retryCount" ], + "required": [ + "requeueCount", + "retryCount" + ], "title": "Information about the execution of a task." }, "ComputeNodeInformation": { @@ -13114,7 +13408,9 @@ "description": "The difference between common resource files and task resource files is that common resource files are downloaded for all subtasks including the primary, whereas task resource files are downloaded only for the primary. Also note that these resource files are not downloaded to the task working directory, but instead are downloaded to the task root directory (one directory above the working directory)." } }, - "required": [ "numberOfInstances" ], + "required": [ + "numberOfInstances" + ], "title": "Settings which specify how to run a multi-instance task.", "description": "Multi-instance tasks are commonly used to support MPI tasks." }, @@ -13176,7 +13472,19 @@ "title": "The total wait time of the task. The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.)" } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "waitTime" + ], "title": "Resource usage statistics for a task." }, "TaskDependencies": { @@ -13214,7 +13522,10 @@ }, "title": "A range of task IDs that a task can depend on. All tasks with IDs in the range must complete successfully before the dependent task can be scheduled.", "description": "The start and end of the range are inclusive. For example, if a range has start 9 and end 12, then it represents tasks '9', '10', '11' and '12'.", - "required": [ "start", "end" ] + "required": [ + "start", + "end" + ] }, "CloudTask": { "properties": { @@ -13430,7 +13741,10 @@ "$ref": "#/definitions/AuthenticationTokenSettings" } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "An Azure Batch task to add." }, "TaskAddCollectionParameter": { @@ -13445,7 +13759,9 @@ "description": "The total serialized size of this collection must be less than 4MB. If it is greater than 4MB (for example if each task has 100's of resource files or environment variables), the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer tasks." } }, - "required": [ "value" ], + "required": [ + "value" + ], "title": "A collection of Azure Batch tasks to add." }, "TaskAddResult": { @@ -13459,7 +13775,9 @@ "clientError", "serverError" ], - "x-ms-enum": { "name": "TaskAddStatus" } + "x-ms-enum": { + "name": "TaskAddStatus" + } }, "taskId": { "type": "string", @@ -13484,7 +13802,10 @@ "title": "The error encountered while attempting to add the task." } }, - "required": [ "status", "taskId" ], + "required": [ + "status", + "taskId" + ], "title": "Result for a single task added as part of an add task collection operation." }, "TaskAddCollectionResult": { @@ -13616,7 +13937,9 @@ "title": "Information about the execution of the task." } }, - "required": [ "taskState" ], + "required": [ + "taskState" + ], "title": "Information about a task running on a compute node." }, "StartTaskInformation": { @@ -13675,7 +13998,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "state", "startTime", "retryCount" ], + "required": [ + "state", + "startTime", + "retryCount" + ], "title": "Information about a start task running on a compute node." }, "ComputeNodeError": { @@ -13845,7 +14172,9 @@ "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" ], + "required": [ + "inboundNATPools" + ], "title": "The endpoint configuration for a pool." }, "InboundNATPool": { @@ -13894,7 +14223,13 @@ } } }, - "required": [ "name", "protocol", "backendPort", "frontendPortRangeStart", "frontendPortRangeEnd" ], + "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": { @@ -13923,7 +14258,11 @@ "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." } }, - "required": [ "priority", "access", "sourceAddressPrefix" ], + "required": [ + "priority", + "access", + "sourceAddressPrefix" + ], "title": "A network security group rule to apply to an inbound endpoint." }, "ComputeNodeEndpointConfiguration": { @@ -13936,7 +14275,9 @@ "title": "The list of inbound endpoints that are accessible on the compute node." } }, - "required": [ "inboundEndpoints" ], + "required": [ + "inboundEndpoints" + ], "title": "The endpoint configuration for the compute node." }, "InboundEndpoint": { @@ -13976,7 +14317,14 @@ "title": "The backend port number of the endpoint." } }, - "required": [ "name", "protocol", "publicIPAddress", "publicFQDN", "frontendPort", "backendPort" ], + "required": [ + "name", + "protocol", + "publicIPAddress", + "publicFQDN", + "frontendPort", + "backendPort" + ], "title": "An inbound endpoint on a compute node." }, "ComputeNodeListResult": { @@ -14023,7 +14371,9 @@ "description": "The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux nodes. If this is specified for a Windows node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "A user account for RDP or SSH access on a compute node." }, "ComputeNodeGetRemoteLoginSettingsResult": { @@ -14038,7 +14388,10 @@ "title": "The port used for remote login to the compute node." } }, - "required": [ "remoteLoginIPAddress", "remoteLoginPort" ], + "required": [ + "remoteLoginIPAddress", + "remoteLoginPort" + ], "title": "The remote login settings for a compute node." }, "JobSchedulePatchParameter": { @@ -14085,7 +14438,10 @@ "description": "If you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted." } }, - "required": [ "schedule", "jobSpecification" ], + "required": [ + "schedule", + "jobSpecification" + ], "title": "The set of changes to be made to a job schedule." }, "JobDisableParameter": { @@ -14105,7 +14461,9 @@ } } }, - "required": [ "disableTasks" ], + "required": [ + "disableTasks" + ], "title": "Options when disabling a job." }, "JobTerminateParameter": { @@ -14183,7 +14541,9 @@ "$ref": "#/definitions/OnAllTasksComplete" } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "The set of changes to be made to a job." }, "PoolEnableAutoScaleParameter": { @@ -14210,7 +14570,9 @@ "description": "The formula is validated and its results calculated, but it is not applied to the pool. To apply the formula to the pool, 'Enable automatic scaling on a pool'. For more information about specifying this formula, see Automatically scale compute nodes in an Azure Batch pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling)." } }, - "required": [ "autoScaleFormula" ], + "required": [ + "autoScaleFormula" + ], "title": "Options for evaluating an automatic scaling formula on a pool." }, "PoolResizeParameter": { @@ -14271,7 +14633,11 @@ "description": "This list replaces any existing metadata configured on the pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the pool." } }, - "required": [ "certificateReferences", "metadata", "applicationPackageReferences" ], + "required": [ + "certificateReferences", + "metadata", + "applicationPackageReferences" + ], "title": "The set of changes to be made to a pool." }, "PoolUpgradeOSParameter": { @@ -14281,7 +14647,9 @@ "title": "The Azure Guest OS version to be installed on the virtual machines in the pool." } }, - "required": [ "targetOSVersion" ], + "required": [ + "targetOSVersion" + ], "title": "Options for upgrading the operating system of compute nodes in a pool." }, "PoolPatchParameter": { @@ -14430,7 +14798,9 @@ "$ref": "#/definitions/ComputeNodeDeallocationOption" } }, - "required": [ "nodeList" ], + "required": [ + "nodeList" + ], "title": "Options for removing compute nodes from a pool." }, "OutputFile": { @@ -14449,7 +14819,11 @@ "$ref": "#/definitions/OutputFileUploadOptions" } }, - "required": [ "filePattern", "destination", "uploadOptions" ], + "required": [ + "filePattern", + "destination", + "uploadOptions" + ], "title": "A specification for uploading files from an Azure Batch node to another location after the Batch service has finished executing the task process." }, "OutputFileDestination": { @@ -14474,7 +14848,9 @@ "description": "The URL must include a Shared Access Signature (SAS) granting write permissions to the container." } }, - "required": [ "containerUrl" ], + "required": [ + "containerUrl" + ], "title": "Specifies a file upload destination within an Azure blob storage container." }, "OutputFileUploadOptions": { @@ -14485,7 +14861,9 @@ "$ref": "#/definitions/OutputFileUploadCondition" } }, - "required": [ "uploadCondition" ], + "required": [ + "uploadCondition" + ], "title": "Details about an output file upload operation, including under what conditions to perform the upload." }, "ErrorMessage": { diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/AccountListNodeAgentSkus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/AccountListNodeAgentSkus.json index 17cbbe0bacf9..83a5f89a721c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/AccountListNodeAgentSkus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/AccountListNodeAgentSkus.json @@ -60,4 +60,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateAdd.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateAdd.json index 683a76407c7d..26682c3e6b92 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateAdd.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateAdd.json @@ -4,16 +4,14 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "certificate": { - "thumbprintAlgorithm":"sha1", - "thumbprint":"0123456789abcdef0123456789abcdef01234567", - "data":"#####...", - "certificateFormat":"pfx", - "password":"certpassword" + "thumbprintAlgorithm": "sha1", + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "data": "#####...", + "certificateFormat": "pfx", + "password": "certpassword" } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateCancelDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateCancelDelete.json index 9ed7d05abcda..e2f574a16faa 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateCancelDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateCancelDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateDelete.json index 756f1bb432be..991c63f81019 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateGet.json index 2e33874c0e89..ffc5f1c90785 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateGet.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateList.json index 71e3773922c6..18fe3101524f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/CertificateList.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileDeleteFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileDeleteFromNode.json index 1a710342cb40..88c81487ede1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileDeleteFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileDeleteFromNode.json @@ -9,8 +9,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileDeleteFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileDeleteFromTask.json index fe4baac39883..920903113da0 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileDeleteFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileDeleteFromTask.json @@ -9,8 +9,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileGetPropertiesFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileGetPropertiesFromNode.json index 43f34562136e..0e302342995b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileGetPropertiesFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileGetPropertiesFromNode.json @@ -9,12 +9,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileGetPropertiesFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileGetPropertiesFromTask.json index 994a5123fa7b..ba4f1f191918 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileGetPropertiesFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileGetPropertiesFromTask.json @@ -9,12 +9,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileListFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileListFromNode.json index 34c99a065c8a..9a9a9d0b1bb6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileListFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileListFromNode.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileListFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileListFromTask.json index b17abfd7614d..77a8a0857d58 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileListFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/FileListFromTask.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobAdd_Basic.json index 1a809900a053..78163e373edd 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobAdd_Basic.json @@ -12,8 +12,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobAdd_Complex.json index 50a0193bb865..d48bcedbf9b2 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobAdd_Complex.json @@ -35,7 +35,7 @@ "retentionTime": "PT1H" }, "killJobOnCompletion": false, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -76,7 +76,7 @@ "value": "myvalue" } ], - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -114,8 +114,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobDisable.json index 12fcdd69de68..08d4c914c006 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobDisable.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobEnable.json index ed8f0408bda1..ffa996f0253a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobEnable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobGet.json index 1c095c75885f..40cdbab8ba8f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobGet.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobGetLifetimeStatistics.json index 9cd74795291a..ecbe995d249f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobGetLifetimeStatistics.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimejobstats", + "url": "https://account.region.batch.core.windows.net/lifetimejobstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "userCPUTime": "PT0S", @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobGetTaskCounts.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobGetTaskCounts.json index cb3797c8ba04..1586afad376e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobGetTaskCounts.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobGetTaskCounts.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobList.json index 48664ea49eb5..f5710efe8324 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobList.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobListPreparationAndReleaseTaskStatus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobListPreparationAndReleaseTaskStatus.json index eec1fc016da8..f9a778b3c294 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobListPreparationAndReleaseTaskStatus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobListPreparationAndReleaseTaskStatus.json @@ -36,4 +36,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobPatch.json index 56db71cac040..79f471bc4fcd 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobPatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobPatch.json @@ -5,19 +5,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "jobPatchParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleAdd_Basic.json index 678dfbcc423b..d8fe59a7b671 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleAdd_Basic.json @@ -6,7 +6,7 @@ "cloudJobSchedule": { "id": "jobScheduleId", "schedule": { - "recurrenceInterval":"PT5M" + "recurrenceInterval": "PT5M" }, "jobSpecification": { "poolInfo": { @@ -16,8 +16,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleAdd_Complex.json index e206235ee1ef..ceba562860c2 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleAdd_Complex.json @@ -122,8 +122,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleDelete.json index 7f7d21df96f8..1b1cf871d930 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleDisable.json index 414bb95cfa5a..66dd8aceae4e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleDisable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleEnable.json index 414bb95cfa5a..66dd8aceae4e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleEnable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleGet.json index fa98aac1edea..b26c8b434de8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleGet.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleList.json index 8d5d6ff09998..3c9f51e06b9f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleList.json @@ -70,4 +70,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobSchedulePatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobSchedulePatch.json index fe6bc4b89ebc..b77c5e613f07 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobSchedulePatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobSchedulePatch.json @@ -22,8 +22,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleTerminate.json index 7f7d21df96f8..1b1cf871d930 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleTerminate.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleUpdate.json index 82f077c04065..f5eb09c7daa3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobScheduleUpdate.json @@ -22,8 +22,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobTerminate.json index 74ea5cd90acb..97ff23bf0e53 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobTerminate.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobUpdate.json index 7cb21a300aa6..23b159a533df 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/JobUpdate.json @@ -5,19 +5,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "jobUpdateParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeAddUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeAddUser.json index 8860918eef6d..664644505654 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeAddUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeAddUser.json @@ -13,8 +13,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeDeleteUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeDeleteUser.json index 822d3ebbc078..c6e3abfe0725 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeDeleteUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeDeleteUser.json @@ -8,8 +8,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeDisableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeDisableScheduling.json index 346ba2d1ab96..9e3e60b40607 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeDisableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeDisableScheduling.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeEnableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeEnableScheduling.json index cef34a36e8a5..a5660cc62e40 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeEnableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeEnableScheduling.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeGetRemoteLoginSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeGetRemoteLoginSettings.json index 9079188f8040..f254ed73d1fa 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeGetRemoteLoginSettings.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeGetRemoteLoginSettings.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeGet_Basic.json index 6b1b3314ccbc..a9582d3adbbc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeGet_Basic.json @@ -25,7 +25,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -44,4 +44,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeList.json index 95de94bfcbcf..d93ac50ccb63 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeList.json @@ -26,7 +26,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -60,7 +60,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -94,7 +94,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -115,4 +115,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeReboot.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeReboot.json index 0374915155aa..c827b8503b3f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeReboot.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeReboot.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeReimage.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeReimage.json index f18aa559eb07..28d6c2ef0845 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeReimage.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeReimage.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeUpdateUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeUpdateUser.json index b07740b17ceb..dd4b6586afb4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeUpdateUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/NodeUpdateUser.json @@ -12,8 +12,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolAdd_CloudServiceConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolAdd_CloudServiceConfiguration.json index ee46f121442b..bcfb5c9e745f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolAdd_CloudServiceConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolAdd_CloudServiceConfiguration.json @@ -9,19 +9,21 @@ "cloudServiceConfiguration": { "osFamily": "4" }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -31,4 +33,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolAdd_VirtualMachineConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolAdd_VirtualMachineConfiguration.json index bd64ee9eccbb..1829efc16f19 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolAdd_VirtualMachineConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolAdd_VirtualMachineConfiguration.json @@ -14,19 +14,21 @@ }, "nodeAgentSKUId": "batch.node.ubuntu 16.04" }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -36,4 +38,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolDelete.json index 5b7ec5a827c8..e946c2ec74bd 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolEnableAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolEnableAutoscale.json index 17bc7458394a..062458f9aca8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolEnableAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolEnableAutoscale.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolEvaluateAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolEvaluateAutoscale.json index 15cc3e56758d..624d04967a10 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolEvaluateAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolEvaluateAutoscale.json @@ -16,4 +16,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolGetLifetimeStatistics.json index c492fdb39795..baa327e21d54 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolGetLifetimeStatistics.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimepoolstats", + "url": "https://account.region.batch.core.windows.net/lifetimepoolstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "usageStats": { @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolGet_Basic.json index c8f16fe7a07e..87d536c17c28 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolGet_Basic.json @@ -27,7 +27,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "/bin/bash -c 'echo start task'", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -52,4 +52,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolListUsageMetrics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolListUsageMetrics.json index 5bdae4038083..085ad02dc2cc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolListUsageMetrics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolListUsageMetrics.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolList_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolList_Basic.json index dd699e25d75d..d11374eb98d0 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolList_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolList_Basic.json @@ -28,7 +28,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -51,4 +51,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolRemoveNodes.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolRemoveNodes.json index ce9f843dd546..36817761519e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolRemoveNodes.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolRemoveNodes.json @@ -12,8 +12,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolResize.json index ebb2d9d3f829..da46e89d4a62 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolResize.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolStopResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolStopResize.json index 5b7ec5a827c8..e946c2ec74bd 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolStopResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolStopResize.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolUpdate.json index 0906621460eb..53800f28c9fc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/PoolUpdate.json @@ -14,8 +14,6 @@ } }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAddCollection_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAddCollection_Basic.json index 7817ab7b563a..8dcd93f60666 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAddCollection_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAddCollection_Basic.json @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAddCollection_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAddCollection_Complex.json index ea5767ef69cd..e7467d89566f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAddCollection_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAddCollection_Complex.json @@ -73,4 +73,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAdd_Basic.json index 59b02dbb93ef..d4c6b7a58ca9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAdd_Basic.json @@ -10,8 +10,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAdd_ExitConditions.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAdd_ExitConditions.json index 66c970f7e8fb..3099cbe0147d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAdd_ExitConditions.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskAdd_ExitConditions.json @@ -18,7 +18,7 @@ } ] }, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -27,8 +27,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskDelete.json index 24a217b1d6a4..fb47da20c919 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskGet.json index 22d9bcc6d58c..ee1f008bb3e4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskGet.json @@ -17,7 +17,7 @@ "state": "active", "stateTransitionTime": "2016-09-06T06:59:15.1161429Z", "commandLine": "cmd /c hostname", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskList.json index 4f7a357c4b21..5ed3e977582c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskList.json @@ -18,7 +18,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.4733476Z", "commandLine": "cmd /c echo task1", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -43,7 +43,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.6736345Z", "commandLine": "cmd /c echo task2", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonAdmin" @@ -63,4 +63,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskListSubtasks.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskListSubtasks.json index 042770246117..8290081fbc48 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskListSubtasks.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskListSubtasks.json @@ -46,4 +46,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskReactivate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskReactivate.json index e9c2e1cc4466..d40955ba7ef1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskReactivate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskReactivate.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskTerminate.json index e9c2e1cc4466..d40955ba7ef1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskTerminate.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskUpdate.json index 7c2ead1a2d27..76f50c85535a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-06-01.5.1/examples/TaskUpdate.json @@ -7,15 +7,13 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "taskUpdateParameter": { "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":3, - "retentionTime":"PT1H" + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 3, + "retentionTime": "PT1H" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/BatchService.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/BatchService.json index f8e8f0bdbaf6..71519910b415 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/BatchService.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/BatchService.json @@ -248,7 +248,9 @@ }, "operationId": "Pool_ListUsageMetrics", "x-ms-examples": { - "Pool list usage metrics": { "$ref": "./examples/PoolListUsageMetrics.json" } + "Pool list usage metrics": { + "$ref": "./examples/PoolListUsageMetrics.json" + } }, "summary": "Lists the usage metrics, aggregated by pool across individual time intervals, for the specified account.", "description": "If you do not specify a $filter clause including a poolId, the response includes all pools that existed in the account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.", @@ -400,7 +402,9 @@ }, "operationId": "Account_ListNodeAgentSkus", "x-ms-examples": { - "Account list node agent skus": { "$ref": "./examples/AccountListNodeAgentSkus.json" } + "Account list node agent skus": { + "$ref": "./examples/AccountListNodeAgentSkus.json" + } }, "summary": "Lists all node agent SKUs supported by the Azure Batch service.", "x-ms-request-id": "request-id", @@ -524,7 +528,9 @@ ], "operationId": "Pool_GetAllLifetimeStatistics", "x-ms-examples": { - "Pool get lifetime statistics": { "$ref": "./examples/PoolGetLifetimeStatistics.json" } + "Pool get lifetime statistics": { + "$ref": "./examples/PoolGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the pools in the specified account.", "description": "Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.", @@ -624,7 +630,9 @@ ], "operationId": "Job_GetAllLifetimeStatistics", "x-ms-examples": { - "Job get lifetime statistics": { "$ref": "./examples/JobGetLifetimeStatistics.json" } + "Job get lifetime statistics": { + "$ref": "./examples/JobGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the jobs in the specified account.", "description": "Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.", @@ -724,7 +732,9 @@ ], "operationId": "Certificate_Add", "x-ms-examples": { - "Certificate add": { "$ref": "./examples/CertificateAdd.json" } + "Certificate add": { + "$ref": "./examples/CertificateAdd.json" + } }, "summary": "Adds a certificate to the specified account.", "x-ms-request-id": "request-id", @@ -834,7 +844,9 @@ }, "operationId": "Certificate_List", "x-ms-examples": { - "Certificate list": { "$ref": "./examples/CertificateList.json" } + "Certificate list": { + "$ref": "./examples/CertificateList.json" + } }, "summary": "Lists all of the certificates that have been added to the specified account.", "x-ms-request-id": "request-id", @@ -968,7 +980,9 @@ ], "operationId": "Certificate_CancelDeletion", "x-ms-examples": { - "Certificate cancel delete": { "$ref": "./examples/CertificateCancelDelete.json" } + "Certificate cancel delete": { + "$ref": "./examples/CertificateCancelDelete.json" + } }, "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.", @@ -1083,7 +1097,9 @@ ], "operationId": "Certificate_Delete", "x-ms-examples": { - "Certificate delete": { "$ref": "./examples/CertificateDelete.json" } + "Certificate delete": { + "$ref": "./examples/CertificateDelete.json" + } }, "summary": "Deletes a certificate from the specified account.", "description": "You cannot delete a certificate if a resource (pool or compute node) is using it. Before you can delete a certificate, you must therefore make sure that the certificate is not associated with any existing pools, the certificate is not installed on any compute nodes (even if you remove a certificate from a pool, it is not removed from existing compute nodes in that pool until they restart), and no running tasks depend on the certificate. If you try to delete a certificate that is in use, the deletion fails. The certificate status changes to deleteFailed. You can use Cancel Delete Certificate to set the status back to active if you decide that you want to continue using the certificate.", @@ -1192,7 +1208,9 @@ ], "operationId": "Certificate_Get", "x-ms-examples": { - "Certificate get": { "$ref": "./examples/CertificateGet.json" } + "Certificate get": { + "$ref": "./examples/CertificateGet.json" + } }, "description": "Gets information about the specified certificate.", "x-ms-request-id": "request-id", @@ -1315,7 +1333,9 @@ ], "operationId": "File_DeleteFromTask", "x-ms-examples": { - "File delete from task": { "$ref": "./examples/FileDeleteFromTask.json" } + "File delete from task": { + "$ref": "./examples/FileDeleteFromTask.json" + } }, "summary": "Deletes the specified task file from the compute node where the task ran.", "x-ms-request-id": "request-id", @@ -1599,7 +1619,9 @@ ], "operationId": "File_GetPropertiesFromTask", "x-ms-examples": { - "File get properties from task": { "$ref": "./examples/FileGetPropertiesFromTask.json" } + "File get properties from task": { + "$ref": "./examples/FileGetPropertiesFromTask.json" + } }, "description": "Gets the properties of the specified task file.", "x-ms-request-id": "request-id", @@ -1764,7 +1786,9 @@ ], "operationId": "File_DeleteFromComputeNode", "x-ms-examples": { - "File delete from node": { "$ref": "./examples/FileDeleteFromNode.json" } + "File delete from node": { + "$ref": "./examples/FileDeleteFromNode.json" + } }, "summary": "Deletes the specified file from the compute node.", "x-ms-request-id": "request-id", @@ -2048,7 +2072,9 @@ ], "operationId": "File_GetPropertiesFromComputeNode", "x-ms-examples": { - "File get properties from node": { "$ref": "./examples/FileGetPropertiesFromNode.json" } + "File get properties from node": { + "$ref": "./examples/FileGetPropertiesFromNode.json" + } }, "description": "Gets the properties of the specified compute node file.", "x-ms-request-id": "request-id", @@ -2216,7 +2242,9 @@ }, "operationId": "File_ListFromTask", "x-ms-examples": { - "File list from task": { "$ref": "./examples/FileListFromTask.json" } + "File list from task": { + "$ref": "./examples/FileListFromTask.json" + } }, "summary": "Lists the files in a task's directory on its compute node.", "x-ms-request-id": "request-id", @@ -2364,7 +2392,9 @@ }, "operationId": "File_ListFromComputeNode", "x-ms-examples": { - "File list from node": { "$ref": "./examples/FileListFromNode.json" } + "File list from node": { + "$ref": "./examples/FileListFromNode.json" + } }, "summary": "Lists all of the files in task directories on the specified compute node.", "x-ms-request-id": "request-id", @@ -2652,7 +2682,9 @@ ], "operationId": "JobSchedule_Delete", "x-ms-examples": { - "JobSchedule delete": { "$ref": "./examples/JobScheduleDelete.json" } + "JobSchedule delete": { + "$ref": "./examples/JobScheduleDelete.json" + } }, "summary": "Deletes a job schedule from the specified account.", "description": "When you delete a job schedule, this also deletes all jobs and tasks under that schedule. When tasks are deleted, all the files in their working directories on the compute nodes are also deleted (the retention period is ignored). The job schedule statistics are no longer accessible once the job schedule is deleted, though they are still counted towards account lifetime statistics.", @@ -2785,7 +2817,9 @@ ], "operationId": "JobSchedule_Get", "x-ms-examples": { - "JobSchedule get": { "$ref": "./examples/JobScheduleGet.json" } + "JobSchedule get": { + "$ref": "./examples/JobScheduleGet.json" + } }, "description": "Gets information about the specified job schedule.", "x-ms-request-id": "request-id", @@ -2951,7 +2985,9 @@ ], "operationId": "JobSchedule_Patch", "x-ms-examples": { - "JobSchedule patch": { "$ref": "./examples/JobSchedulePatch.json" } + "JobSchedule patch": { + "$ref": "./examples/JobSchedulePatch.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This replaces only the job schedule properties specified in the request. For example, if the schedule property is not specified with this request, then the Batch service will keep the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3108,7 +3144,9 @@ ], "operationId": "JobSchedule_Update", "x-ms-examples": { - "JobSchedule update": { "$ref": "./examples/JobScheduleUpdate.json" } + "JobSchedule update": { + "$ref": "./examples/JobScheduleUpdate.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This fully replaces all the updatable properties of the job schedule. For example, if the schedule property is not specified with this request, then the Batch service will remove the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3267,7 +3305,9 @@ ], "operationId": "JobSchedule_Disable", "x-ms-examples": { - "JobSchedule disable": { "$ref": "./examples/JobScheduleDisable.json" } + "JobSchedule disable": { + "$ref": "./examples/JobScheduleDisable.json" + } }, "summary": "Disables a job schedule.", "description": "No new jobs will be created until the job schedule is enabled again.", @@ -3417,7 +3457,9 @@ ], "operationId": "JobSchedule_Enable", "x-ms-examples": { - "JobSchedule enable": { "$ref": "./examples/JobScheduleEnable.json" } + "JobSchedule enable": { + "$ref": "./examples/JobScheduleEnable.json" + } }, "summary": "Enables a job schedule.", "x-ms-request-id": "request-id", @@ -3566,7 +3608,9 @@ ], "operationId": "JobSchedule_Terminate", "x-ms-examples": { - "JobSchedule terminate": { "$ref": "./examples/JobScheduleTerminate.json" } + "JobSchedule terminate": { + "$ref": "./examples/JobScheduleTerminate.json" + } }, "summary": "Terminates a job schedule.", "x-ms-request-id": "request-id", @@ -3715,8 +3759,12 @@ ], "operationId": "JobSchedule_Add", "x-ms-examples": { - "Add a basic JobSchedule": { "$ref": "./examples/JobScheduleAdd_Basic.json" }, - "Add a complex JobScheduleAdd": { "$ref": "./examples/JobScheduleAdd_Complex.json" } + "Add a basic JobSchedule": { + "$ref": "./examples/JobScheduleAdd_Basic.json" + }, + "Add a complex JobScheduleAdd": { + "$ref": "./examples/JobScheduleAdd_Complex.json" + } }, "summary": "Adds a job schedule to the specified account.", "x-ms-request-id": "request-id", @@ -3826,7 +3874,9 @@ }, "operationId": "JobSchedule_List", "x-ms-examples": { - "JobSchedule list": { "$ref": "./examples/JobScheduleList.json" } + "JobSchedule list": { + "$ref": "./examples/JobScheduleList.json" + } }, "summary": "Lists all of the job schedules in the specified account.", "x-ms-request-id": "request-id", @@ -4100,7 +4150,9 @@ ], "operationId": "Job_Get", "x-ms-examples": { - "Job get": { "$ref": "./examples/JobGet.json" } + "Job get": { + "$ref": "./examples/JobGet.json" + } }, "summary": "Gets information about the specified job.", "x-ms-request-id": "request-id", @@ -4266,7 +4318,9 @@ ], "operationId": "Job_Patch", "x-ms-examples": { - "Job patch": { "$ref": "./examples/JobPatch.json" } + "Job patch": { + "$ref": "./examples/JobPatch.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This replaces only the job properties specified in the request. For example, if the job has constraints, and a request does not specify the constraints element, then the job keeps the existing constraints.", @@ -4423,7 +4477,9 @@ ], "operationId": "Job_Update", "x-ms-examples": { - "Job update": { "$ref": "./examples/JobUpdate.json" } + "Job update": { + "$ref": "./examples/JobUpdate.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.", @@ -4582,7 +4638,9 @@ ], "operationId": "Job_Disable", "x-ms-examples": { - "Job disable": { "$ref": "./examples/JobDisable.json" } + "Job disable": { + "$ref": "./examples/JobDisable.json" + } }, "summary": "Disables the specified job, preventing new tasks from running.", "description": "The Batch Service immediately moves the job to the disabling state. Batch then uses the disableTasks parameter to determine what to do with the currently running tasks of the job. The job remains in the disabling state until the disable operation is completed and all tasks have been dealt with according to the disableTasks option; the job then moves to the disabled state. No new tasks are started under the job until it moves back to active state. If you try to disable a job that is in any state other than active, disabling, or disabled, the request fails with status code 409.", @@ -4741,7 +4799,9 @@ ], "operationId": "Job_Enable", "x-ms-examples": { - "Job enable": { "$ref": "./examples/JobEnable.json" } + "Job enable": { + "$ref": "./examples/JobEnable.json" + } }, "summary": "Enables the specified job, allowing new tasks to run.", "description": "When you call this API, the Batch service sets a disabled job to the enabling state. After the this operation is completed, the job moves to the active state, and scheduling of new tasks under the job resumes. The Batch service does not allow a task to remain in the active state for more than 7 days. Therefore, if you enable a job containing active tasks which were added more than 7 days ago, those tasks will not run.", @@ -4891,7 +4951,9 @@ ], "operationId": "Job_Terminate", "x-ms-examples": { - "Job terminate": { "$ref": "./examples/JobTerminate.json" } + "Job terminate": { + "$ref": "./examples/JobTerminate.json" + } }, "summary": "Terminates the specified job, marking it as completed.", "description": "When a Terminate Job request is received, the Batch service sets the job to the terminating state. The Batch service then terminates any active or running tasks associated with the job, and runs any required Job Release tasks. The job then moves into the completed state.", @@ -5050,8 +5112,12 @@ ], "operationId": "Job_Add", "x-ms-examples": { - "Add a basic job": { "$ref": "./examples/JobAdd_Basic.json" }, - "Add a complex job": { "$ref": "./examples/JobAdd_Complex.json" } + "Add a basic job": { + "$ref": "./examples/JobAdd_Basic.json" + }, + "Add a complex job": { + "$ref": "./examples/JobAdd_Complex.json" + } }, "summary": "Adds a job to the specified account.", "description": "The Batch service supports two ways to control the work done as part of a job. In the first approach, the user specifies a Job Manager task. The Batch service launches this task when it is ready to start the job. The Job Manager task controls all other tasks that run under this job, by using the Task APIs. In the second approach, the user directly controls the execution of tasks under an active job, by using the Task APIs. Also note: when naming jobs, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5162,7 +5228,9 @@ }, "operationId": "Job_List", "x-ms-examples": { - "Job list": { "$ref": "./examples/JobList.json" } + "Job list": { + "$ref": "./examples/JobList.json" + } }, "summary": "Lists all of the jobs in the specified account.", "x-ms-request-id": "request-id", @@ -5460,7 +5528,9 @@ }, "operationId": "Job_ListPreparationAndReleaseTaskStatus", "x-ms-examples": { - "Job list preparation and release task status": { "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" } + "Job list preparation and release task status": { + "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" + } }, "summary": "Lists the execution status of the Job Preparation and Job Release task for the specified job across the compute nodes where the job has run.", "description": "This API returns the Job Preparation and Job Release task status on all compute nodes that have run the Job Preparation or Job Release task. This includes nodes which have since been removed from the pool. If this API is invoked on a job which has no Job Preparation or Job Release task, the Batch service returns HTTP status code 409 (Conflict) with an error code of JobPreparationTaskNotSpecified.", @@ -5602,7 +5672,9 @@ ], "operationId": "Job_GetTaskCounts", "x-ms-examples": { - "Job get task counts": { "$ref": "./examples/JobGetTaskCounts.json" } + "Job get task counts": { + "$ref": "./examples/JobGetTaskCounts.json" + } }, "summary": "Gets the task counts for the specified job.", "description": "Task counts provide a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. Tasks in the preparing state are counted as running. If the validationStatus is unvalidated, then the Batch service has not been able to check state counts against the task states as reported in the List Tasks API. The validationStatus may be unvalidated if the job contains more than 200,000 tasks.", @@ -5700,9 +5772,15 @@ ], "operationId": "Pool_Add", "x-ms-examples": { - "Add a CloudServiceConfiguration pool": { "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" }, - "Add a VirtualMachineConfiguration pool": { "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" }, - "Add a VirtualMachineConfiguration pool with containers": { "$ref": "./examples/PoolAdd_VirtualMachineConfigurationWithContainers.json" } + "Add a CloudServiceConfiguration pool": { + "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool": { + "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool with containers": { + "$ref": "./examples/PoolAdd_VirtualMachineConfigurationWithContainers.json" + } }, "summary": "Adds a pool to the specified account.", "description": "When naming pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5813,7 +5891,9 @@ }, "operationId": "Pool_List", "x-ms-examples": { - "Pool list": { "$ref": "./examples/PoolList_Basic.json" } + "Pool list": { + "$ref": "./examples/PoolList_Basic.json" + } }, "summary": "Lists all of the pools in the specified account.", "x-ms-request-id": "request-id", @@ -5957,7 +6037,9 @@ ], "operationId": "Pool_Delete", "x-ms-examples": { - "Pool delete": { "$ref": "./examples/PoolDelete.json" } + "Pool delete": { + "$ref": "./examples/PoolDelete.json" + } }, "summary": "Deletes a pool from the specified account.", "description": "When you request that a pool be deleted, the following actions occur: the pool state is set to deleting; any ongoing resize operation on the pool are stopped; the Batch service starts resizing the pool to zero nodes; any tasks running on existing nodes are terminated and requeued (as if a resize pool operation had been requested with the default requeue option); finally, the pool is removed from the system. Because running tasks are requeued, the user can rerun these tasks by updating their job to target a different pool. The tasks can then run on the new pool. If you want to override the requeue behavior, then you should call resize pool explicitly to shrink the pool to zero size before deleting the pool. If you call an Update, Patch or Delete API on a pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.", @@ -6233,7 +6315,9 @@ ], "operationId": "Pool_Get", "x-ms-examples": { - "Pool get": { "$ref": "./examples/PoolGet_Basic.json" } + "Pool get": { + "$ref": "./examples/PoolGet_Basic.json" + } }, "description": "Gets information about the specified pool.", "x-ms-request-id": "request-id", @@ -6659,7 +6743,9 @@ ], "operationId": "Pool_EnableAutoScale", "x-ms-examples": { - "Pool enable autoscale": { "$ref": "./examples/PoolEnableAutoscale.json" } + "Pool enable autoscale": { + "$ref": "./examples/PoolEnableAutoscale.json" + } }, "summary": "Enables automatic scaling for a pool.", "description": "You cannot enable automatic scaling on a pool if a resize operation is in progress on the pool. If automatic scaling of the pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same pool more than once every 30 seconds.", @@ -6818,7 +6904,9 @@ ], "operationId": "Pool_EvaluateAutoScale", "x-ms-examples": { - "Pool evaluate autoscale": { "$ref": "./examples/PoolEvaluateAutoscale.json" } + "Pool evaluate autoscale": { + "$ref": "./examples/PoolEvaluateAutoscale.json" + } }, "summary": "Gets the result of evaluating an automatic scaling formula on the pool.", "description": "This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the pool. The pool must have auto scaling enabled in order to evaluate a formula.", @@ -6938,7 +7026,9 @@ ], "operationId": "Pool_Resize", "x-ms-examples": { - "Pool resize": { "$ref": "./examples/PoolResize.json" } + "Pool resize": { + "$ref": "./examples/PoolResize.json" + } }, "summary": "Changes the number of compute nodes that are assigned to a pool.", "description": "You can only resize a pool when its allocation state is steady. If the pool is already resizing, the request fails with status code 409. When you resize a pool, the pool's allocation state changes from steady to resizing. You cannot resize pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a pool downwards, the Batch service chooses which nodes to remove. To remove specific nodes, use the pool remove nodes API instead.", @@ -7097,7 +7187,9 @@ ], "operationId": "Pool_StopResize", "x-ms-examples": { - "Pool stop resize": { "$ref": "./examples/PoolStopResize.json" } + "Pool stop resize": { + "$ref": "./examples/PoolStopResize.json" + } }, "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.", @@ -7247,7 +7339,9 @@ ], "operationId": "Pool_UpdateProperties", "x-ms-examples": { - "Pool update": { "$ref": "./examples/PoolUpdate.json" } + "Pool update": { + "$ref": "./examples/PoolUpdate.json" + } }, "summary": "Updates the properties of the specified pool.", "description": "This fully replaces all the updatable properties of the pool. For example, if the pool has a start task associated with it and if start task is not specified with this request, then the Batch service will remove the existing start task.", @@ -7520,7 +7614,9 @@ ], "operationId": "Pool_RemoveNodes", "x-ms-examples": { - "Pool remove nodes": { "$ref": "./examples/PoolRemoveNodes.json" } + "Pool remove nodes": { + "$ref": "./examples/PoolRemoveNodes.json" + } }, "summary": "Removes compute nodes from the specified pool.", "description": "This operation can only run when the allocation state of the pool is steady. When this operation runs, the allocation state changes from steady to resizing.", @@ -7679,9 +7775,15 @@ ], "operationId": "Task_Add", "x-ms-examples": { - "Add a basic task": { "$ref": "./examples/TaskAdd_Basic.json" }, - "Add a task with exit conditions": { "$ref": "./examples/TaskAdd_ExitConditions.json" }, - "Add a task with container settings": { "$ref": "./examples/TaskAdd_ContainerSettings.json" } + "Add a basic task": { + "$ref": "./examples/TaskAdd_Basic.json" + }, + "Add a task with exit conditions": { + "$ref": "./examples/TaskAdd_ExitConditions.json" + }, + "Add a task with container settings": { + "$ref": "./examples/TaskAdd_ContainerSettings.json" + } }, "summary": "Adds a task to the specified job.", "description": "The maximum lifetime of a task from addition to completion is 7 days. If a task has not completed within 7 days of being added it will be terminated by the Batch service and left in whatever state it was in at that time.", @@ -7799,7 +7901,9 @@ }, "operationId": "Task_List", "x-ms-examples": { - "Task list": { "$ref": "./examples/TaskList.json" } + "Task list": { + "$ref": "./examples/TaskList.json" + } }, "summary": "Lists all of the tasks that are associated with the specified job.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -7951,8 +8055,12 @@ ], "operationId": "Task_AddCollection", "x-ms-examples": { - "Add a basic collection of tasks": { "$ref": "./examples/TaskAddCollection_Basic.json" }, - "Add a complex collection of tasks": { "$ref": "./examples/TaskAddCollection_Complex.json" } + "Add a basic collection of tasks": { + "$ref": "./examples/TaskAddCollection_Basic.json" + }, + "Add a complex collection of tasks": { + "$ref": "./examples/TaskAddCollection_Complex.json" + } }, "summary": "Adds a collection of tasks to the specified job.", "description": "Note that each task must have a unique ID. The Batch service may not return the results for each task in the same order the tasks were submitted in this request. If the server times out or the connection is closed during the request, the request may have been partially or fully processed, or not at all. In such cases, the user should re-issue the request. Note that it is up to the user to correctly handle failures when re-issuing a request. For example, you should use the same task IDs during a retry so that if the prior operation succeeded, the retry will not create extra tasks unexpectedly. If the response contains any tasks which failed to add, a client can retry the request. In a retry, it is most efficient to resubmit only tasks that failed to add, and to omit tasks that were successfully added on the first attempt. The maximum lifetime of a task from addition to completion is 7 days. If a task has not completed within 7 days of being added it will be terminated by the Batch service and left in whatever state it was in at that time.", @@ -8057,7 +8165,9 @@ ], "operationId": "Task_Delete", "x-ms-examples": { - "Task delete": { "$ref": "./examples/TaskDelete.json" } + "Task delete": { + "$ref": "./examples/TaskDelete.json" + } }, "summary": "Deletes a task from the specified job.", "description": "When a task is deleted, all of the files in its directory on the compute node where it ran are also deleted (regardless of the retention time). For multi-instance tasks, the delete task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.", @@ -8197,7 +8307,9 @@ ], "operationId": "Task_Get", "x-ms-examples": { - "Task get": { "$ref": "./examples/TaskGet.json" } + "Task get": { + "$ref": "./examples/TaskGet.json" + } }, "summary": "Gets information about the specified task.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -8375,7 +8487,9 @@ ], "operationId": "Task_Update", "x-ms-examples": { - "Task update": { "$ref": "./examples/TaskUpdate.json" } + "Task update": { + "$ref": "./examples/TaskUpdate.json" + } }, "description": "Updates the properties of the specified task.", "x-ms-request-id": "request-id", @@ -8540,7 +8654,9 @@ ], "operationId": "Task_ListSubtasks", "x-ms-examples": { - "Task list subtasks": { "$ref": "./examples/TaskListSubtasks.json" } + "Task list subtasks": { + "$ref": "./examples/TaskListSubtasks.json" + } }, "summary": "Lists all of the subtasks that are associated with the specified multi-instance task.", "description": "If the task is not a multi-instance task then this returns an empty collection.", @@ -8664,7 +8780,9 @@ ], "operationId": "Task_Terminate", "x-ms-examples": { - "Task terminate": { "$ref": "./examples/TaskTerminate.json" } + "Task terminate": { + "$ref": "./examples/TaskTerminate.json" + } }, "summary": "Terminates the specified task.", "description": "When the task has been terminated, it moves to the completed state. For multi-instance tasks, the terminate task operation applies synchronously to the primary task; subtasks are then terminated asynchronously in the background.", @@ -8821,7 +8939,9 @@ ], "operationId": "Task_Reactivate", "x-ms-examples": { - "Task reactivate": { "$ref": "./examples/TaskReactivate.json" } + "Task reactivate": { + "$ref": "./examples/TaskReactivate.json" + } }, "summary": "Reactivates a task, allowing it to run again even if its retry count has been exhausted.", "description": "Reactivation makes a task eligible to be retried again up to its maximum retry count. The task's state is changed to active. As the task is no longer in the completed state, any previous exit code or failure information is no longer available after reactivation. Each time a task is reactivated, its retry count is reset to 0. Reactivation will fail for tasks that are not completed or that previously completed successfully (with an exit code of 0). Additionally, it will fail if the job has completed (or is terminating or deleting).", @@ -8978,7 +9098,9 @@ ], "operationId": "ComputeNode_AddUser", "x-ms-examples": { - "Node add user": { "$ref": "./examples/NodeAddUser.json" } + "Node add user": { + "$ref": "./examples/NodeAddUser.json" + } }, "summary": "Adds a user account to the specified compute node.", "description": "You can add a user account to a node only when it is in the idle or running state.", @@ -9102,7 +9224,9 @@ ], "operationId": "ComputeNode_DeleteUser", "x-ms-examples": { - "Node delete user": { "$ref": "./examples/NodeDeleteUser.json" } + "Node delete user": { + "$ref": "./examples/NodeDeleteUser.json" + } }, "summary": "Deletes a user account from the specified compute node.", "description": "You can delete a user account to a node only when it is in the idle or running state.", @@ -9207,7 +9331,9 @@ ], "operationId": "ComputeNode_UpdateUser", "x-ms-examples": { - "Node update user": { "$ref": "./examples/NodeUpdateUser.json" } + "Node update user": { + "$ref": "./examples/NodeUpdateUser.json" + } }, "summary": "Updates the password and expiration time of a user account on the specified compute node.", "description": "This operation replaces of all the updatable properties of the account. For example, if the expiryTime element is not specified, the current value is replaced with the default value, not left unmodified. You can update a user account on a node only when it is in the idle or running state.", @@ -9338,7 +9464,9 @@ ], "operationId": "ComputeNode_Get", "x-ms-examples": { - "Node get": { "$ref": "./examples/NodeGet_Basic.json" } + "Node get": { + "$ref": "./examples/NodeGet_Basic.json" + } }, "summary": "Gets information about the specified compute node.", "x-ms-request-id": "request-id", @@ -9461,7 +9589,9 @@ ], "operationId": "ComputeNode_Reboot", "x-ms-examples": { - "Node reboot": { "$ref": "./examples/NodeReboot.json" } + "Node reboot": { + "$ref": "./examples/NodeReboot.json" + } }, "summary": "Restarts the specified compute node.", "description": "You can restart a node only if it is in an idle or running state.", @@ -9585,7 +9715,9 @@ ], "operationId": "ComputeNode_Reimage", "x-ms-examples": { - "Node reimage": { "$ref": "./examples/NodeReimage.json" } + "Node reimage": { + "$ref": "./examples/NodeReimage.json" + } }, "summary": "Reinstalls the operating system on the specified compute node.", "description": "You can reinstall the operating system on a node only if it is in an idle or running state. This API can be invoked only on pools created with the cloud service configuration property.", @@ -9709,7 +9841,9 @@ ], "operationId": "ComputeNode_DisableScheduling", "x-ms-examples": { - "Node disable scheduling": { "$ref": "./examples/NodeDisableScheduling.json" } + "Node disable scheduling": { + "$ref": "./examples/NodeDisableScheduling.json" + } }, "summary": "Disables task scheduling on the specified compute node.", "description": "You can disable task scheduling on a node only if its current scheduling state is enabled.", @@ -9833,7 +9967,9 @@ ], "operationId": "ComputeNode_EnableScheduling", "x-ms-examples": { - "Node enable scheduling": { "$ref": "./examples/NodeEnableScheduling.json" } + "Node enable scheduling": { + "$ref": "./examples/NodeEnableScheduling.json" + } }, "summary": "Enables task scheduling on the specified compute node.", "description": "You can enable task scheduling on a node only if its current scheduling state is disabled", @@ -9948,7 +10084,9 @@ ], "operationId": "ComputeNode_GetRemoteLoginSettings", "x-ms-examples": { - "Node get remote login settings": { "$ref": "./examples/NodeGetRemoteLoginSettings.json" } + "Node get remote login settings": { + "$ref": "./examples/NodeGetRemoteLoginSettings.json" + } }, "summary": "Gets the settings required for remote login to a compute node.", "description": "Before you can remotely login to a node using the remote login settings, you must create a user account on the node. This API can be invoked only on pools created with the virtual machine configuration property. For pools created with a cloud service configuration, see the GetRemoteDesktop API.", @@ -10176,7 +10314,9 @@ }, "operationId": "ComputeNode_List", "x-ms-examples": { - "Node list": { "$ref": "./examples/NodeList.json" } + "Node list": { + "$ref": "./examples/NodeList.json" + } }, "summary": "Lists the compute nodes in the specified pool.", "x-ms-request-id": "request-id", @@ -10349,7 +10489,15 @@ "title": "The cross data center network egress from the pool during this interval, in GiB." } }, - "required": [ "poolId", "startTime", "endTime", "vmSize", "totalCoreHours", "dataIngressGiB", "dataEgressGiB" ], + "required": [ + "poolId", + "startTime", + "endTime", + "vmSize", + "totalCoreHours", + "dataIngressGiB", + "dataEgressGiB" + ], "title": "Usage metrics for a pool across an aggregation interval." }, "PoolListUsageMetricsResult": { @@ -10469,7 +10617,11 @@ "title": "The aggregated wall-clock time of the dedicated compute node cores being part of the pool." } }, - "required": [ "startTime", "lastUpdateTime", "dedicatedCoreTime" ], + "required": [ + "startTime", + "lastUpdateTime", + "dedicatedCoreTime" + ], "title": "Statistics related to pool usage information." }, "ResourceStatistics": { @@ -10540,7 +10692,21 @@ "title": "The total amount of data in GiB of network writes across all nodes in the pool." } }, - "required": [ "startTime", "lastUpdateTime", "avgCPUPercentage", "avgMemoryGiB", "peakMemoryGiB", "avgDiskGiB", "peakDiskGiB", "diskReadIOps", "diskWriteIOps", "diskReadGiB", "diskWriteGiB", "networkReadGiB", "networkWriteGiB" ], + "required": [ + "startTime", + "lastUpdateTime", + "avgCPUPercentage", + "avgMemoryGiB", + "peakMemoryGiB", + "avgDiskGiB", + "peakDiskGiB", + "diskReadIOps", + "diskWriteIOps", + "diskReadGiB", + "diskWriteGiB", + "networkReadGiB", + "networkWriteGiB" + ], "title": "Statistics related to resource consumption by compute nodes in a pool." }, "PoolStatistics": { @@ -10568,7 +10734,11 @@ "title": "Statistics related to resource consumption by compute nodes in the pool." } }, - "required": [ "url", "startTime", "lastUpdateTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime" + ], "title": "Contains utilization and resource usage statistics for the lifetime of a pool." }, "JobStatistics": { @@ -10647,7 +10817,22 @@ "description": "The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.) This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job." }, "NameValuePair": { @@ -10742,7 +10927,9 @@ "description": "If this is omitted on a pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a task, and no default version is specified for this application, the task fails with a pre-processing error." } }, - "required": [ "applicationId" ], + "required": [ + "applicationId" + ], "title": "A reference to an application package to be deployed to compute nodes." }, "ApplicationSummary": { @@ -10763,7 +10950,11 @@ } } }, - "required": [ "id", "displayName", "versions" ], + "required": [ + "id", + "displayName", + "versions" + ], "title": "Contains information about an application in an Azure Batch account." }, "CertificateAddParameter": { @@ -10808,7 +10999,11 @@ "description": "This is required if the certificate format is pfx. It should be omitted if the certificate format is cer." } }, - "required": [ "thumbprint", "thumbprintAlgorithm", "data" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm", + "data" + ], "title": "A certificate that can be installed on compute nodes and can be used to authenticate operations on the machine." }, "CertificateListResult": { @@ -10855,7 +11050,10 @@ "description": "The file mode is returned only for files on Linux compute nodes." } }, - "required": [ "lastModified", "contentLength" ], + "required": [ + "lastModified", + "contentLength" + ], "title": "The properties of a file on a compute node." }, "NodeFile": { @@ -10959,7 +11157,9 @@ "description": "This setting can be omitted if was already provided at pool creation." } }, - "required": [ "imageName" ], + "required": [ + "imageName" + ], "title": "The container settings for a task." }, "ResourceFile": { @@ -10979,7 +11179,10 @@ "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." } }, - "required": [ "blobSource", "filePath" ], + "required": [ + "blobSource", + "filePath" + ], "title": "A file to be downloaded from Azure blob storage to a compute node." }, "EnvironmentSetting": { @@ -10993,7 +11196,9 @@ "title": "The value of the environment variable." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "An environment variable to be set on a task process." }, "ExitConditions": { @@ -11042,7 +11247,10 @@ } }, "title": "How the Batch service should respond if a task exits with a particular exit code.", - "required": [ "code", "exitOptions" ] + "required": [ + "code", + "exitOptions" + ] }, "ExitCodeRangeMapping": { "properties": { @@ -11062,7 +11270,11 @@ } }, "title": "A range of exit codes and how the Batch service should respond to exit codes within that range.", - "required": [ "start", "end", "exitOptions" ] + "required": [ + "start", + "end", + "exitOptions" + ] }, "ExitOptions": { "properties": { @@ -11213,7 +11425,10 @@ "$ref": "#/definitions/LinuxUserConfiguration" } }, - "required": [ "name", "password" ], + "required": [ + "name", + "password" + ], "title": "Properties used to create a user used to execute tasks on an Azure Batch node." }, "TaskConstraints": { @@ -11269,7 +11484,7 @@ "title": "A list of files that the Batch service will download to the compute node before running the command line.", "description": "Files listed under this element are located in the task's working directory." }, - "outputFiles": { + "outputFiles": { "type": "array", "items": { "$ref": "#/definitions/OutputFile" @@ -11322,7 +11537,10 @@ "description": "The default value is false." } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "Specifies details of a Job Manager task.", "description": "The Job Manager task is automatically started when the job is created. The Batch service tries to schedule the Job Manager task before any other tasks in the job. When shrinking a pool, the Batch service tries to preserve compute nodes where Job Manager tasks are running for as long as possible (that is, nodes running 'normal' tasks are removed before nodes running Job Manager tasks). When a Job Manager task fails and needs to be restarted, the system tries to schedule it at the highest priority. If there are no idle nodes available, the system may terminate one of the running tasks in the pool and return it to the queue in order to make room for the Job Manager task to restart. Note that a Job Manager task in one job does not have priority over tasks in other jobs. Across jobs, only job level priorities are observed. For example, if a Job Manager in a priority 0 job needs to be restarted, it will not displace tasks of a priority 1 job." }, @@ -11378,7 +11596,9 @@ "description": "The Job Preparation task is always rerun if a compute node is reimaged, or if the Job Preparation task did not complete (e.g. because the reboot occurred while the task was running). Therefore, you should always write a Job Preparation task to be idempotent and to behave correctly if run multiple times. The default value is true." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Preparation task to run before any tasks of the job on any given compute node.", "description": "You can use Job Preparation to prepare a compute node to run tasks for the job. Activities commonly performed in Job Preparation include: Downloading common resource files used by all the tasks in the job. The Job Preparation task can download these common resource files to the shared location on the compute node. (AZ_BATCH_NODE_ROOT_DIR\\shared), or starting a local service on the compute node so that all tasks of that job can communicate with it. If the Job Preparation task fails (that is, exhausts its retry count before exiting with exit code 0), Batch will not run tasks of this job on the compute node. The node remains ineligible to run tasks of this job until it is reimaged. The node remains active and can be used for other jobs. The Job Preparation task can run multiple times on the same compute node. Therefore, you should write the Job Preparation task to handle re-execution. If the compute node is rebooted, the Job Preparation task is run again on the node before scheduling any other task of the job, if rerunOnNodeRebootAfterSuccess is true or if the Job Preparation task did not previously complete. If the compute node is reimaged, the Job Preparation task is run again before scheduling any task of the job." }, @@ -11431,7 +11651,9 @@ "description": "If omitted, the task runs as a non-administrative user unique to the task." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Release task to run on job completion on any compute node where the job has run.", "description": "The Job Release task runs when the job ends, because of one of the following: The user calls the Terminate Job API, or the Delete Job API while the job is still active, the job's maximum wall clock time constraint is reached, and the job is still active, or the job's Job Manager task completed, and the job is configured to terminate when the Job Manager completes. The Job Release task runs on each compute node where tasks of the job have run and the Job Preparation task ran and completed. If you reimage a compute node after it has run the Job Preparation task, and the job ends without any further tasks of the job running on that compute node (and hence the Job Preparation task does not re-run), then the Job Release task does not run on that node. If a compute node reboots while the Job Release task is still running, the Job Release task runs again when the compute node starts up. The job is not marked as complete until all Job Release tasks have completed. The Job Release task runs in the background. It does not occupy a scheduling slot; that is, it does not count towards the maxTasksPerNode limit specified on the pool." }, @@ -11460,7 +11682,9 @@ } } }, - "required": [ "nodeFillType" ], + "required": [ + "nodeFillType" + ], "title": "Specifies how tasks should be distributed across compute nodes." }, "StartTask": { @@ -11507,7 +11731,9 @@ "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 failure info details. 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 false." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "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." }, "CertificateReference": { @@ -11585,7 +11811,10 @@ "description": "You can specify more than one visibility in this collection. The default is all accounts." } }, - "required": [ "thumbprint", "thumbprintAlgorithm" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm" + ], "title": "A reference to a certificate to be installed on compute nodes in a pool." }, "MetadataItem": { @@ -11599,7 +11828,10 @@ "title": "The value of the metadata item." } }, - "required": [ "name", "value" ], + "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." }, @@ -11701,7 +11933,7 @@ "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." }, @@ -11721,7 +11953,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "vmSize" ], + "required": [ + "vmSize" + ], "title": "Specification for creating a new pool." }, "AutoPoolSpecification": { @@ -11764,7 +11998,9 @@ "title": "The pool specification for the auto pool." } }, - "required": [ "poolLifetimeOption" ], + "required": [ + "poolLifetimeOption" + ], "title": "Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto pool when the job is submitted." }, "PoolInformation": { @@ -11849,7 +12085,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "Specifies details of the jobs to be created on a schedule." }, "RecentJob": { @@ -11961,7 +12199,22 @@ "description": "This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job schedule." }, "CloudJobSchedule": { @@ -12070,7 +12323,11 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "schedule", "jobSpecification" ], + "required": [ + "id", + "schedule", + "jobSpecification" + ], "title": "A job schedule that allows recurring jobs by specifying when to run jobs and a specification used to create each job." }, "CloudJobScheduleListResult": { @@ -12111,7 +12368,9 @@ "title": "A list of additional error details related to the scheduling error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "An error encountered by the Batch service when scheduling a job." }, "JobExecutionInformation": { @@ -12144,7 +12403,9 @@ "description": "This property is set only if the job is in the completed state. If the Batch service terminates the job, it sets the reason as follows: JMComplete - the Job Manager task completed, and killJobOnCompletion was set to true. MaxWallClockTimeExpiry - the job reached its maxWallClockTime constraint. TerminateJobSchedule - the job ran as part of a schedule, and the schedule terminated. AllTasksComplete - the job's onAllTasksComplete attribute is set to terminatejob, and all tasks in the job are complete. TaskFailed - the job's onTaskFailure attribute is set to performExitOptionsJobAction, and a task in the job failed with an exit condition that specified a jobAction of terminatejob. Any other string is a user-defined reason specified in a call to the 'Terminate a job' operation." } }, - "required": [ "startTime" ], + "required": [ + "startTime" + ], "title": "Contains information about the execution of a job in the Azure Batch service." }, "CloudJob": { @@ -12339,7 +12600,10 @@ "title": "Whether tasks in the job can define dependencies on each other. The default is false." } }, - "required": [ "id", "poolInfo" ], + "required": [ + "id", + "poolInfo" + ], "title": "An Azure Batch job to add." }, "CloudJobListResult": { @@ -12399,7 +12663,9 @@ "title": "A list of additional details related to the error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "Information about a task failure." }, "JobPreparationTaskExecutionInformation": { @@ -12480,7 +12746,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "retryCount", "state" ], + "required": [ + "startTime", + "retryCount", + "state" + ], "title": "Contains information about the execution of a Job Preparation task on a compute node." }, "JobReleaseTaskExecutionInformation": { @@ -12549,7 +12819,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "state" ], + "required": [ + "startTime", + "state" + ], "title": "Contains information about the execution of a Job Release task on a compute node." }, "JobPreparationAndReleaseTaskExecutionInformation": { @@ -12644,7 +12917,14 @@ } } }, - "required": ["active", "running", "completed", "succeeded", "failed", "validationStatus"], + "required": [ + "active", + "running", + "completed", + "succeeded", + "failed", + "validationStatus" + ], "title": "The task counts for a job." }, "AutoScaleRunError": { @@ -12684,7 +12964,9 @@ "title": "Details of the error encountered evaluating the autoscale formula on the pool, if the evaluation was unsuccessful." } }, - "required": [ "timestamp" ], + "required": [ + "timestamp" + ], "title": "The results and errors from an execution of a pool autoscale formula." }, "ResizeError": { @@ -12726,7 +13008,9 @@ "description": "This may differ from targetOSVersion if the pool state is Upgrading. In this case some virtual machines may be on the targetOSVersion and some may be on the currentOSVersion during the upgrade process. Once all virtual machines have upgraded, currentOSVersion is updated to be the same as targetOSVersion." } }, - "required": [ "osFamily" ], + "required": [ + "osFamily" + ], "title": "The configuration for nodes in a pool based on the Azure Cloud Services platform." }, "ImageReference": { @@ -12854,7 +13138,7 @@ "value": "readonly", "description": "The caching mode for the disk is read only.", "name": "readOnly" - }, + }, { "value": "readwrite", "description": "The caching mode for the disk is read and write.", @@ -12902,7 +13186,10 @@ "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." } }, - "required": [ "nodeAgentSKUId", "imageReference" ], + "required": [ + "nodeAgentSKUId", + "imageReference" + ], "title": "The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure." }, "ContainerRegistry": { @@ -12922,7 +13209,10 @@ "title": "The password to log into the registry server." } }, - "required": [ "username", "password" ], + "required": [ + "username", + "password" + ], "title": "A private container registry." }, "ContainerConfiguration": { @@ -12961,7 +13251,9 @@ "description": "If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here." } }, - "required": [ "type" ], + "required": [ + "type" + ], "title": "The configuration for container-enabled pools." }, "NetworkConfiguration": { @@ -12976,9 +13268,9 @@ } }, "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." + "$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." } }, "description": "The network configuration for a pool." @@ -13182,7 +13474,7 @@ "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." }, @@ -13310,7 +13602,7 @@ "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." }, @@ -13340,7 +13632,10 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "vmSize" ], + "required": [ + "id", + "vmSize" + ], "title": "A pool in the Azure Batch service to add." }, "ApplicationListResult": { @@ -13383,7 +13678,9 @@ "description": "You can pass the affinityId of a compute node to indicate that this task needs to run on that compute node. Note that this is just a soft affinity. If the target node is busy or unavailable at the time the task is scheduled, then the task will be scheduled elsewhere." } }, - "required": [ "affinityId" ], + "required": [ + "affinityId" + ], "title": "A locality hint that can be used by the Batch service to select a compute node on which to start a task." }, "TaskExecutionInformation": { @@ -13446,7 +13743,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "requeueCount", "retryCount" ], + "required": [ + "requeueCount", + "retryCount" + ], "title": "Information about the execution of a task." }, "ComputeNodeInformation": { @@ -13500,7 +13800,9 @@ "description": "The difference between common resource files and task resource files is that common resource files are downloaded for all subtasks including the primary, whereas task resource files are downloaded only for the primary. Also note that these resource files are not downloaded to the task working directory, but instead are downloaded to the task root directory (one directory above the working directory)." } }, - "required": [ "coordinationCommandLine" ], + "required": [ + "coordinationCommandLine" + ], "title": "Settings which specify how to run a multi-instance task.", "description": "Multi-instance tasks are commonly used to support MPI tasks." }, @@ -13562,7 +13864,19 @@ "title": "The total wait time of the task. The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.)" } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "waitTime" + ], "title": "Resource usage statistics for a task." }, "TaskDependencies": { @@ -13600,7 +13914,10 @@ }, "title": "A range of task IDs that a task can depend on. All tasks with IDs in the range must complete successfully before the dependent task can be scheduled.", "description": "The start and end of the range are inclusive. For example, if a range has start 9 and end 12, then it represents tasks '9', '10', '11' and '12'.", - "required": [ "start", "end" ] + "required": [ + "start", + "end" + ] }, "CloudTask": { "properties": { @@ -13826,7 +14143,10 @@ "$ref": "#/definitions/AuthenticationTokenSettings" } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "An Azure Batch task to add." }, "TaskAddCollectionParameter": { @@ -13841,7 +14161,9 @@ "description": "The total serialized size of this collection must be less than 4MB. If it is greater than 4MB (for example if each task has 100's of resource files or environment variables), the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer tasks." } }, - "required": [ "value" ], + "required": [ + "value" + ], "title": "A collection of Azure Batch tasks to add." }, "TaskAddResult": { @@ -13898,7 +14220,10 @@ "title": "The error encountered while attempting to add the task." } }, - "required": [ "status", "taskId" ], + "required": [ + "status", + "taskId" + ], "title": "Result for a single task added as part of an add task collection operation." }, "TaskAddCollectionResult": { @@ -14035,7 +14360,9 @@ "title": "Information about the execution of the task." } }, - "required": [ "taskState" ], + "required": [ + "taskState" + ], "title": "Information about a task running on a compute node." }, "StartTaskInformation": { @@ -14108,7 +14435,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "state", "startTime", "retryCount" ], + "required": [ + "state", + "startTime", + "retryCount" + ], "title": "Information about a start task running on a compute node." }, "ComputeNodeError": { @@ -14344,7 +14675,9 @@ "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" ], + "required": [ + "inboundNATPools" + ], "title": "The endpoint configuration for a pool." }, "InboundNATPool": { @@ -14385,7 +14718,13 @@ } } }, - "required": [ "name", "protocol", "backendPort", "frontendPortRangeStart", "frontendPortRangeEnd" ], + "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": { @@ -14424,7 +14763,11 @@ "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." } }, - "required": [ "priority", "access", "sourceAddressPrefix" ], + "required": [ + "priority", + "access", + "sourceAddressPrefix" + ], "title": "A network security group rule to apply to an inbound endpoint." }, "ComputeNodeEndpointConfiguration": { @@ -14437,7 +14780,9 @@ "title": "The list of inbound endpoints that are accessible on the compute node." } }, - "required": [ "inboundEndpoints" ], + "required": [ + "inboundEndpoints" + ], "title": "The endpoint configuration for the compute node." }, "InboundEndpoint": { @@ -14469,7 +14814,14 @@ "title": "The backend port number of the endpoint." } }, - "required": [ "name", "protocol", "publicIPAddress", "publicFQDN", "frontendPort", "backendPort" ], + "required": [ + "name", + "protocol", + "publicIPAddress", + "publicFQDN", + "frontendPort", + "backendPort" + ], "title": "An inbound endpoint on a compute node." }, "ComputeNodeListResult": { @@ -14516,7 +14868,9 @@ "description": "The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux nodes. If this is specified for a Windows node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "A user account for RDP or SSH access on a compute node." }, "ComputeNodeGetRemoteLoginSettingsResult": { @@ -14531,7 +14885,10 @@ "title": "The port used for remote login to the compute node." } }, - "required": [ "remoteLoginIPAddress", "remoteLoginPort" ], + "required": [ + "remoteLoginIPAddress", + "remoteLoginPort" + ], "title": "The remote login settings for a compute node." }, "JobSchedulePatchParameter": { @@ -14578,7 +14935,10 @@ "description": "If you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted." } }, - "required": [ "schedule", "jobSpecification" ], + "required": [ + "schedule", + "jobSpecification" + ], "title": "The set of changes to be made to a job schedule." }, "JobDisableParameter": { @@ -14611,7 +14971,9 @@ } } }, - "required": [ "disableTasks" ], + "required": [ + "disableTasks" + ], "title": "Options when disabling a job." }, "JobTerminateParameter": { @@ -14689,7 +15051,9 @@ "$ref": "#/definitions/OnAllTasksComplete" } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "The set of changes to be made to a job." }, "PoolEnableAutoScaleParameter": { @@ -14716,7 +15080,9 @@ "description": "The formula is validated and its results calculated, but it is not applied to the pool. To apply the formula to the pool, 'Enable automatic scaling on a pool'. For more information about specifying this formula, see Automatically scale compute nodes in an Azure Batch pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling)." } }, - "required": [ "autoScaleFormula" ], + "required": [ + "autoScaleFormula" + ], "title": "Options for evaluating an automatic scaling formula on a pool." }, "PoolResizeParameter": { @@ -14777,7 +15143,11 @@ "description": "This list replaces any existing metadata configured on the pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the pool." } }, - "required": [ "certificateReferences", "metadata", "applicationPackageReferences" ], + "required": [ + "certificateReferences", + "metadata", + "applicationPackageReferences" + ], "title": "The set of changes to be made to a pool." }, "PoolUpgradeOSParameter": { @@ -14787,7 +15157,9 @@ "title": "The Azure Guest OS version to be installed on the virtual machines in the pool." } }, - "required": [ "targetOSVersion" ], + "required": [ + "targetOSVersion" + ], "title": "Options for upgrading the operating system of compute nodes in a pool." }, "PoolPatchParameter": { @@ -14991,7 +15363,9 @@ "$ref": "#/definitions/ComputeNodeDeallocationOption" } }, - "required": [ "nodeList" ], + "required": [ + "nodeList" + ], "title": "Options for removing compute nodes from a pool." }, "OutputFile": { @@ -15010,7 +15384,11 @@ "$ref": "#/definitions/OutputFileUploadOptions" } }, - "required": [ "filePattern", "destination", "uploadOptions" ], + "required": [ + "filePattern", + "destination", + "uploadOptions" + ], "title": "A specification for uploading files from an Azure Batch node to another location after the Batch service has finished executing the task process." }, "OutputFileDestination": { @@ -15035,7 +15413,9 @@ "description": "The URL must include a Shared Access Signature (SAS) granting write permissions to the container." } }, - "required": [ "containerUrl" ], + "required": [ + "containerUrl" + ], "title": "Specifies a file upload destination within an Azure blob storage container." }, "OutputFileUploadOptions": { @@ -15046,7 +15426,9 @@ "$ref": "#/definitions/OutputFileUploadCondition" } }, - "required": [ "uploadCondition" ], + "required": [ + "uploadCondition" + ], "title": "Details about an output file upload operation, including under what conditions to perform the upload." }, "ErrorMessage": { diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/AccountListNodeAgentSkus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/AccountListNodeAgentSkus.json index fc98266f54ab..f58e98ad3264 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/AccountListNodeAgentSkus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/AccountListNodeAgentSkus.json @@ -60,4 +60,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateAdd.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateAdd.json index 885811994024..ba886aa337e2 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateAdd.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateAdd.json @@ -4,16 +4,14 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "certificate": { - "thumbprintAlgorithm":"sha1", - "thumbprint":"0123456789abcdef0123456789abcdef01234567", - "data":"#####...", - "certificateFormat":"pfx", - "password":"certpassword" + "thumbprintAlgorithm": "sha1", + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "data": "#####...", + "certificateFormat": "pfx", + "password": "certpassword" } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateCancelDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateCancelDelete.json index a6412602279a..a06c797d31cb 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateCancelDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateCancelDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateDelete.json index f93cfbe8ccb5..921b2e9b3e35 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateGet.json index 67568b3c318d..383a6c7a8207 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateGet.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateList.json index fbd427639159..90af0de38710 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/CertificateList.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileDeleteFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileDeleteFromNode.json index fdcf42097bce..4b3e11117ced 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileDeleteFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileDeleteFromNode.json @@ -9,8 +9,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileDeleteFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileDeleteFromTask.json index 5b4d1332fb79..d088a1157ca8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileDeleteFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileDeleteFromTask.json @@ -9,8 +9,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileGetPropertiesFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileGetPropertiesFromNode.json index 14e2ca1699a7..a3e544a51408 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileGetPropertiesFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileGetPropertiesFromNode.json @@ -9,12 +9,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileGetPropertiesFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileGetPropertiesFromTask.json index 5a680c7de05d..fcae046afd81 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileGetPropertiesFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileGetPropertiesFromTask.json @@ -9,12 +9,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileListFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileListFromNode.json index 02c28a2d0fda..440fdccea40e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileListFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileListFromNode.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileListFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileListFromTask.json index 0de368bafc18..fa4d76b1a1d8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileListFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/FileListFromTask.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobAdd_Basic.json index 6f3c35e0db13..78b8c5e713c4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobAdd_Basic.json @@ -12,8 +12,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobAdd_Complex.json index 770bdd8c2ece..cc2e66ed4ea3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobAdd_Complex.json @@ -35,7 +35,7 @@ "retentionTime": "PT1H" }, "killJobOnCompletion": false, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -76,7 +76,7 @@ "value": "myvalue" } ], - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -114,8 +114,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobDisable.json index 323a7c34e6b4..49b428a4386a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobDisable.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobEnable.json index dc3e024a0827..2ae516169837 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobEnable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobGet.json index 9a1504f6c9f0..7f6e434aeeeb 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobGet.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobGetLifetimeStatistics.json index 451e5e9df7ef..ec049896f0ef 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobGetLifetimeStatistics.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimejobstats", + "url": "https://account.region.batch.core.windows.net/lifetimejobstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "userCPUTime": "PT0S", @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobGetTaskCounts.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobGetTaskCounts.json index 25e1d21e0701..2e8964e9cad5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobGetTaskCounts.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobGetTaskCounts.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobList.json index 3d418a5dbb5b..66275d80c457 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobList.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobListPreparationAndReleaseTaskStatus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobListPreparationAndReleaseTaskStatus.json index a70771fa0f2a..d070063c1bb9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobListPreparationAndReleaseTaskStatus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobListPreparationAndReleaseTaskStatus.json @@ -36,4 +36,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobPatch.json index bcdafc07c998..84614c440f82 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobPatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobPatch.json @@ -5,19 +5,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "jobPatchParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleAdd_Basic.json index 6b402fd2a0f3..7a5a6149cec2 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleAdd_Basic.json @@ -6,7 +6,7 @@ "cloudJobSchedule": { "id": "jobScheduleId", "schedule": { - "recurrenceInterval":"PT5M" + "recurrenceInterval": "PT5M" }, "jobSpecification": { "poolInfo": { @@ -16,8 +16,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleAdd_Complex.json index 5963c206ac88..0342013c3385 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleAdd_Complex.json @@ -122,8 +122,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleDelete.json index 1c86cf8d62a0..f5720da3949f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleDisable.json index 137407f9b0cb..44a2bbcf12e8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleDisable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleEnable.json index 137407f9b0cb..44a2bbcf12e8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleEnable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleGet.json index 990d879d4d20..2413da3c4df3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleGet.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleList.json index 807886be4ef1..28661b557cbe 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleList.json @@ -70,4 +70,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobSchedulePatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobSchedulePatch.json index c79c662e5a68..c83e6c0b9c88 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobSchedulePatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobSchedulePatch.json @@ -22,8 +22,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleTerminate.json index 1c86cf8d62a0..f5720da3949f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleTerminate.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleUpdate.json index 95951b03ad93..0e82a5a46f1c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobScheduleUpdate.json @@ -22,8 +22,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobTerminate.json index b5042be41ec5..f86f27541059 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobTerminate.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobUpdate.json index 06215fd01e60..37fe66d1d451 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/JobUpdate.json @@ -5,19 +5,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "jobUpdateParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeAddUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeAddUser.json index f0c58a6475b7..6a8ea37320e8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeAddUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeAddUser.json @@ -13,8 +13,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeDeleteUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeDeleteUser.json index b70f2d5713ad..c8ff014d46b4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeDeleteUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeDeleteUser.json @@ -8,8 +8,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeDisableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeDisableScheduling.json index 6f669310747b..b9d380e917a5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeDisableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeDisableScheduling.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeEnableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeEnableScheduling.json index 6927f35cea43..02f74709ea29 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeEnableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeEnableScheduling.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeGetRemoteLoginSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeGetRemoteLoginSettings.json index f41651a1ff0a..39e83c24354d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeGetRemoteLoginSettings.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeGetRemoteLoginSettings.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeGet_Basic.json index 9f77641967f7..832e19312f1a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeGet_Basic.json @@ -25,7 +25,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -44,4 +44,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeList.json index a6d8d4cd4013..7d22af75ef4b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeList.json @@ -26,7 +26,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -60,7 +60,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -94,7 +94,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -115,4 +115,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeReboot.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeReboot.json index 35d18931f4bc..b7aeb980066d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeReboot.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeReboot.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeReimage.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeReimage.json index 20a17fb06c88..73495f8e8697 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeReimage.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeReimage.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeUpdateUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeUpdateUser.json index fd44545cf1d0..027a7ac2c1e5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeUpdateUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/NodeUpdateUser.json @@ -12,8 +12,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolAdd_CloudServiceConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolAdd_CloudServiceConfiguration.json index d01059b31523..94e7d00b82a1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolAdd_CloudServiceConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolAdd_CloudServiceConfiguration.json @@ -9,19 +9,21 @@ "cloudServiceConfiguration": { "osFamily": "4" }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -31,4 +33,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolAdd_VirtualMachineConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolAdd_VirtualMachineConfiguration.json index 81fc4105413f..191abb547d18 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolAdd_VirtualMachineConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolAdd_VirtualMachineConfiguration.json @@ -14,19 +14,21 @@ }, "nodeAgentSKUId": "batch.node.ubuntu 16.04" }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -36,4 +38,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json index a7ef487caf75..dce9b6a73ed7 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json @@ -20,14 +20,14 @@ ] } }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false + "enableAutoScale": false } }, "responses": { @@ -37,4 +37,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolDelete.json index 35765a598ea6..a7e54496c74f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolEnableAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolEnableAutoscale.json index 0b1fe11102be..aa3f27f6e21d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolEnableAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolEnableAutoscale.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolEvaluateAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolEvaluateAutoscale.json index 88b4ff682142..960e2c4aa447 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolEvaluateAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolEvaluateAutoscale.json @@ -16,4 +16,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolGetLifetimeStatistics.json index 83421b3cfd32..6d985c0e68c1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolGetLifetimeStatistics.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimepoolstats", + "url": "https://account.region.batch.core.windows.net/lifetimepoolstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "usageStats": { @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolGet_Basic.json index 8a97f2c53081..e8240100ae5b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolGet_Basic.json @@ -27,7 +27,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "/bin/bash -c 'echo start task'", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -52,4 +52,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolListUsageMetrics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolListUsageMetrics.json index 7587908fd13f..f15351e1f78d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolListUsageMetrics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolListUsageMetrics.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolList_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolList_Basic.json index abf1070bba6f..6045e184aa9a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolList_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolList_Basic.json @@ -28,7 +28,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -51,4 +51,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolRemoveNodes.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolRemoveNodes.json index e1cd368a7f32..c48d2b81018a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolRemoveNodes.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolRemoveNodes.json @@ -12,8 +12,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolResize.json index 9c72e8006879..402bc5df019d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolResize.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolStopResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolStopResize.json index 35765a598ea6..a7e54496c74f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolStopResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolStopResize.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolUpdate.json index a1db09d15604..c6b216d950b3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/PoolUpdate.json @@ -14,8 +14,6 @@ } }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAddCollection_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAddCollection_Basic.json index 3326616fbb4e..48b7ddf6c587 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAddCollection_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAddCollection_Basic.json @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAddCollection_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAddCollection_Complex.json index 9df418c50ac1..4e8f229eec2c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAddCollection_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAddCollection_Complex.json @@ -73,4 +73,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAdd_Basic.json index 70a373fa577c..62d128579989 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAdd_Basic.json @@ -10,8 +10,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAdd_ContainerSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAdd_ContainerSettings.json index a0c773ea8e26..9449849099ca 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAdd_ContainerSettings.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAdd_ContainerSettings.json @@ -11,7 +11,7 @@ "imageName": "ubuntu", "containerRunOptions": "--rm" }, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -20,8 +20,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAdd_ExitConditions.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAdd_ExitConditions.json index e8f13b7be097..78e0ba75958e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAdd_ExitConditions.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskAdd_ExitConditions.json @@ -18,7 +18,7 @@ } ] }, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -27,8 +27,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskDelete.json index 069af11edb9c..c44a6fbed73d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskGet.json index 02fecd7ae8a4..3527f1d26642 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskGet.json @@ -17,7 +17,7 @@ "state": "active", "stateTransitionTime": "2016-09-06T06:59:15.1161429Z", "commandLine": "cmd /c hostname", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskList.json index 7aadb36bd7b8..080d7b5d77de 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskList.json @@ -18,7 +18,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.4733476Z", "commandLine": "cmd /c echo task1", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -43,7 +43,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.6736345Z", "commandLine": "cmd /c echo task2", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -63,4 +63,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskListSubtasks.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskListSubtasks.json index 6a49b717698f..dff38dd76473 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskListSubtasks.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskListSubtasks.json @@ -46,4 +46,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskReactivate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskReactivate.json index e0e33f761e46..7b04025fecd9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskReactivate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskReactivate.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskTerminate.json index e0e33f761e46..7b04025fecd9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskTerminate.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskUpdate.json index 87263b5fcfad..340ecd378638 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2017-09-01.6.0/examples/TaskUpdate.json @@ -7,15 +7,13 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "taskUpdateParameter": { "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":3, - "retentionTime":"PT1H" + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 3, + "retentionTime": "PT1H" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/BatchService.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/BatchService.json index 0cced72aa042..1d0091986067 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/BatchService.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/BatchService.json @@ -29,7 +29,9 @@ }, "operationId": "Application_List", "x-ms-examples": { - "List applications": { "$ref": "./examples/ApplicationList.json" } + "List applications": { + "$ref": "./examples/ApplicationList.json" + } }, "summary": "Lists all of the applications available in the specified account.", "description": "This operation returns only applications and versions that are available for use on compute nodes; that is, that can be used in an application package reference. For administrator information about applications and versions that are not yet available to compute nodes, use the Azure portal or the Azure Resource Manager API.", @@ -144,7 +146,9 @@ ], "operationId": "Application_Get", "x-ms-examples": { - "Get applications": { "$ref": "./examples/ApplicationGet.json" } + "Get applications": { + "$ref": "./examples/ApplicationGet.json" + } }, "summary": "Gets information about the specified application.", "description": "This operation returns only applications and versions that are available for use on compute nodes; that is, that can be used in an application package reference. For administrator information about applications and versions that are not yet available to compute nodes, use the Azure portal or the Azure Resource Manager API.", @@ -254,7 +258,9 @@ }, "operationId": "Pool_ListUsageMetrics", "x-ms-examples": { - "Pool list usage metrics": { "$ref": "./examples/PoolListUsageMetrics.json" } + "Pool list usage metrics": { + "$ref": "./examples/PoolListUsageMetrics.json" + } }, "summary": "Lists the usage metrics, aggregated by pool across individual time intervals, for the specified account.", "description": "If you do not specify a $filter clause including a poolId, the response includes all pools that existed in the account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.", @@ -406,7 +412,9 @@ }, "operationId": "Account_ListNodeAgentSkus", "x-ms-examples": { - "Account list node agent skus": { "$ref": "./examples/AccountListNodeAgentSkus.json" } + "Account list node agent skus": { + "$ref": "./examples/AccountListNodeAgentSkus.json" + } }, "summary": "Lists all node agent SKUs supported by the Azure Batch service.", "x-ms-request-id": "request-id", @@ -534,7 +542,9 @@ "operationId": "Account_ListPoolNodeCounts", "description": "Gets the number of nodes in each state, grouped by pool.", "x-ms-examples": { - "NodeCountsPayload": { "$ref": "./examples/AccountListPoolNodeCounts.json" } + "NodeCountsPayload": { + "$ref": "./examples/AccountListPoolNodeCounts.json" + } }, "parameters": [ { @@ -647,7 +657,9 @@ ], "operationId": "Pool_GetAllLifetimeStatistics", "x-ms-examples": { - "Pool get lifetime statistics": { "$ref": "./examples/PoolGetLifetimeStatistics.json" } + "Pool get lifetime statistics": { + "$ref": "./examples/PoolGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the pools in the specified account.", "description": "Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.", @@ -747,7 +759,9 @@ ], "operationId": "Job_GetAllLifetimeStatistics", "x-ms-examples": { - "Job get lifetime statistics": { "$ref": "./examples/JobGetLifetimeStatistics.json" } + "Job get lifetime statistics": { + "$ref": "./examples/JobGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the jobs in the specified account.", "description": "Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.", @@ -847,7 +861,9 @@ ], "operationId": "Certificate_Add", "x-ms-examples": { - "Certificate add": { "$ref": "./examples/CertificateAdd.json" } + "Certificate add": { + "$ref": "./examples/CertificateAdd.json" + } }, "summary": "Adds a certificate to the specified account.", "x-ms-request-id": "request-id", @@ -957,7 +973,9 @@ }, "operationId": "Certificate_List", "x-ms-examples": { - "Certificate list": { "$ref": "./examples/CertificateList.json" } + "Certificate list": { + "$ref": "./examples/CertificateList.json" + } }, "summary": "Lists all of the certificates that have been added to the specified account.", "x-ms-request-id": "request-id", @@ -1091,7 +1109,9 @@ ], "operationId": "Certificate_CancelDeletion", "x-ms-examples": { - "Certificate cancel delete": { "$ref": "./examples/CertificateCancelDelete.json" } + "Certificate cancel delete": { + "$ref": "./examples/CertificateCancelDelete.json" + } }, "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.", @@ -1206,7 +1226,9 @@ ], "operationId": "Certificate_Delete", "x-ms-examples": { - "Certificate delete": { "$ref": "./examples/CertificateDelete.json" } + "Certificate delete": { + "$ref": "./examples/CertificateDelete.json" + } }, "summary": "Deletes a certificate from the specified account.", "description": "You cannot delete a certificate if a resource (pool or compute node) is using it. Before you can delete a certificate, you must therefore make sure that the certificate is not associated with any existing pools, the certificate is not installed on any compute nodes (even if you remove a certificate from a pool, it is not removed from existing compute nodes in that pool until they restart), and no running tasks depend on the certificate. If you try to delete a certificate that is in use, the deletion fails. The certificate status changes to deleteFailed. You can use Cancel Delete Certificate to set the status back to active if you decide that you want to continue using the certificate.", @@ -1315,7 +1337,9 @@ ], "operationId": "Certificate_Get", "x-ms-examples": { - "Certificate get": { "$ref": "./examples/CertificateGet.json" } + "Certificate get": { + "$ref": "./examples/CertificateGet.json" + } }, "description": "Gets information about the specified certificate.", "x-ms-request-id": "request-id", @@ -1438,7 +1462,9 @@ ], "operationId": "File_DeleteFromTask", "x-ms-examples": { - "File delete from task": { "$ref": "./examples/FileDeleteFromTask.json" } + "File delete from task": { + "$ref": "./examples/FileDeleteFromTask.json" + } }, "summary": "Deletes the specified task file from the compute node where the task ran.", "x-ms-request-id": "request-id", @@ -1549,7 +1575,9 @@ ], "operationId": "File_GetFromTask", "x-ms-examples": { - "Get File From Task": { "$ref": "./examples/FileGetFromTask.json" } + "Get File From Task": { + "$ref": "./examples/FileGetFromTask.json" + } }, "description": "Returns the content of the specified task file.", "x-ms-request-id": "request-id", @@ -1729,7 +1757,9 @@ ], "operationId": "File_GetPropertiesFromTask", "x-ms-examples": { - "File get properties from task": { "$ref": "./examples/FileGetPropertiesFromTask.json" } + "File get properties from task": { + "$ref": "./examples/FileGetPropertiesFromTask.json" + } }, "description": "Gets the properties of the specified task file.", "x-ms-request-id": "request-id", @@ -1894,7 +1924,9 @@ ], "operationId": "File_DeleteFromComputeNode", "x-ms-examples": { - "File delete from node": { "$ref": "./examples/FileDeleteFromNode.json" } + "File delete from node": { + "$ref": "./examples/FileDeleteFromNode.json" + } }, "summary": "Deletes the specified file from the compute node.", "x-ms-request-id": "request-id", @@ -2005,7 +2037,9 @@ ], "operationId": "File_GetFromComputeNode", "x-ms-examples": { - "Get File From Compute Node": { "$ref": "./examples/FileGetFromNode.json" } + "Get File From Compute Node": { + "$ref": "./examples/FileGetFromNode.json" + } }, "description": "Returns the content of the specified compute node file.", "x-ms-request-id": "request-id", @@ -2185,7 +2219,9 @@ ], "operationId": "File_GetPropertiesFromComputeNode", "x-ms-examples": { - "File get properties from node": { "$ref": "./examples/FileGetPropertiesFromNode.json" } + "File get properties from node": { + "$ref": "./examples/FileGetPropertiesFromNode.json" + } }, "description": "Gets the properties of the specified compute node file.", "x-ms-request-id": "request-id", @@ -2353,7 +2389,9 @@ }, "operationId": "File_ListFromTask", "x-ms-examples": { - "File list from task": { "$ref": "./examples/FileListFromTask.json" } + "File list from task": { + "$ref": "./examples/FileListFromTask.json" + } }, "summary": "Lists the files in a task's directory on its compute node.", "x-ms-request-id": "request-id", @@ -2501,7 +2539,9 @@ }, "operationId": "File_ListFromComputeNode", "x-ms-examples": { - "File list from node": { "$ref": "./examples/FileListFromNode.json" } + "File list from node": { + "$ref": "./examples/FileListFromNode.json" + } }, "summary": "Lists all of the files in task directories on the specified compute node.", "x-ms-request-id": "request-id", @@ -2646,7 +2686,9 @@ ], "operationId": "JobSchedule_Exists", "x-ms-examples": { - "Check Job Schedule Exists": { "$ref": "./examples/JobScheduleExists.json" } + "Check Job Schedule Exists": { + "$ref": "./examples/JobScheduleExists.json" + } }, "summary": "Checks the specified job schedule exists.", "x-ms-request-id": "request-id", @@ -2792,7 +2834,9 @@ ], "operationId": "JobSchedule_Delete", "x-ms-examples": { - "JobSchedule delete": { "$ref": "./examples/JobScheduleDelete.json" } + "JobSchedule delete": { + "$ref": "./examples/JobScheduleDelete.json" + } }, "summary": "Deletes a job schedule from the specified account.", "description": "When you delete a job schedule, this also deletes all jobs and tasks under that schedule. When tasks are deleted, all the files in their working directories on the compute nodes are also deleted (the retention period is ignored). The job schedule statistics are no longer accessible once the job schedule is deleted, though they are still counted towards account lifetime statistics.", @@ -2925,7 +2969,9 @@ ], "operationId": "JobSchedule_Get", "x-ms-examples": { - "JobSchedule get": { "$ref": "./examples/JobScheduleGet.json" } + "JobSchedule get": { + "$ref": "./examples/JobScheduleGet.json" + } }, "description": "Gets information about the specified job schedule.", "x-ms-request-id": "request-id", @@ -3091,7 +3137,9 @@ ], "operationId": "JobSchedule_Patch", "x-ms-examples": { - "JobSchedule patch": { "$ref": "./examples/JobSchedulePatch.json" } + "JobSchedule patch": { + "$ref": "./examples/JobSchedulePatch.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This replaces only the job schedule properties specified in the request. For example, if the schedule property is not specified with this request, then the Batch service will keep the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3248,7 +3296,9 @@ ], "operationId": "JobSchedule_Update", "x-ms-examples": { - "JobSchedule update": { "$ref": "./examples/JobScheduleUpdate.json" } + "JobSchedule update": { + "$ref": "./examples/JobScheduleUpdate.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This fully replaces all the updatable properties of the job schedule. For example, if the schedule property is not specified with this request, then the Batch service will remove the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3407,7 +3457,9 @@ ], "operationId": "JobSchedule_Disable", "x-ms-examples": { - "JobSchedule disable": { "$ref": "./examples/JobScheduleDisable.json" } + "JobSchedule disable": { + "$ref": "./examples/JobScheduleDisable.json" + } }, "summary": "Disables a job schedule.", "description": "No new jobs will be created until the job schedule is enabled again.", @@ -3557,7 +3609,9 @@ ], "operationId": "JobSchedule_Enable", "x-ms-examples": { - "JobSchedule enable": { "$ref": "./examples/JobScheduleEnable.json" } + "JobSchedule enable": { + "$ref": "./examples/JobScheduleEnable.json" + } }, "summary": "Enables a job schedule.", "x-ms-request-id": "request-id", @@ -3706,7 +3760,9 @@ ], "operationId": "JobSchedule_Terminate", "x-ms-examples": { - "JobSchedule terminate": { "$ref": "./examples/JobScheduleTerminate.json" } + "JobSchedule terminate": { + "$ref": "./examples/JobScheduleTerminate.json" + } }, "summary": "Terminates a job schedule.", "x-ms-request-id": "request-id", @@ -3855,8 +3911,12 @@ ], "operationId": "JobSchedule_Add", "x-ms-examples": { - "Add a basic JobSchedule": { "$ref": "./examples/JobScheduleAdd_Basic.json" }, - "Add a complex JobScheduleAdd": { "$ref": "./examples/JobScheduleAdd_Complex.json" } + "Add a basic JobSchedule": { + "$ref": "./examples/JobScheduleAdd_Basic.json" + }, + "Add a complex JobScheduleAdd": { + "$ref": "./examples/JobScheduleAdd_Complex.json" + } }, "summary": "Adds a job schedule to the specified account.", "x-ms-request-id": "request-id", @@ -3966,7 +4026,9 @@ }, "operationId": "JobSchedule_List", "x-ms-examples": { - "JobSchedule list": { "$ref": "./examples/JobScheduleList.json" } + "JobSchedule list": { + "$ref": "./examples/JobScheduleList.json" + } }, "summary": "Lists all of the job schedules in the specified account.", "x-ms-request-id": "request-id", @@ -4110,7 +4172,9 @@ ], "operationId": "Job_Delete", "x-ms-examples": { - "Delete Job": { "$ref": "./examples/JobDelete.json" } + "Delete Job": { + "$ref": "./examples/JobDelete.json" + } }, "summary": "Deletes a job.", "description": "Deleting a job also deletes all tasks that are part of that job, and all job statistics. This also overrides the retention period for task data; that is, if the job contains tasks which are still retained on compute nodes, the Batch services deletes those tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the job to the deleting state. All update operations on a job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the job is being deleted.", @@ -4243,7 +4307,9 @@ ], "operationId": "Job_Get", "x-ms-examples": { - "Job get": { "$ref": "./examples/JobGet.json" } + "Job get": { + "$ref": "./examples/JobGet.json" + } }, "summary": "Gets information about the specified job.", "x-ms-request-id": "request-id", @@ -4409,7 +4475,9 @@ ], "operationId": "Job_Patch", "x-ms-examples": { - "Job patch": { "$ref": "./examples/JobPatch.json" } + "Job patch": { + "$ref": "./examples/JobPatch.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This replaces only the job properties specified in the request. For example, if the job has constraints, and a request does not specify the constraints element, then the job keeps the existing constraints.", @@ -4566,7 +4634,9 @@ ], "operationId": "Job_Update", "x-ms-examples": { - "Job update": { "$ref": "./examples/JobUpdate.json" } + "Job update": { + "$ref": "./examples/JobUpdate.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.", @@ -4725,7 +4795,9 @@ ], "operationId": "Job_Disable", "x-ms-examples": { - "Job disable": { "$ref": "./examples/JobDisable.json" } + "Job disable": { + "$ref": "./examples/JobDisable.json" + } }, "summary": "Disables the specified job, preventing new tasks from running.", "description": "The Batch Service immediately moves the job to the disabling state. Batch then uses the disableTasks parameter to determine what to do with the currently running tasks of the job. The job remains in the disabling state until the disable operation is completed and all tasks have been dealt with according to the disableTasks option; the job then moves to the disabled state. No new tasks are started under the job until it moves back to active state. If you try to disable a job that is in any state other than active, disabling, or disabled, the request fails with status code 409.", @@ -4884,7 +4956,9 @@ ], "operationId": "Job_Enable", "x-ms-examples": { - "Job enable": { "$ref": "./examples/JobEnable.json" } + "Job enable": { + "$ref": "./examples/JobEnable.json" + } }, "summary": "Enables the specified job, allowing new tasks to run.", "description": "When you call this API, the Batch service sets a disabled job to the enabling state. After the this operation is completed, the job moves to the active state, and scheduling of new tasks under the job resumes. The Batch service does not allow a task to remain in the active state for more than 7 days. Therefore, if you enable a job containing active tasks which were added more than 7 days ago, those tasks will not run.", @@ -5034,7 +5108,9 @@ ], "operationId": "Job_Terminate", "x-ms-examples": { - "Job terminate": { "$ref": "./examples/JobTerminate.json" } + "Job terminate": { + "$ref": "./examples/JobTerminate.json" + } }, "summary": "Terminates the specified job, marking it as completed.", "description": "When a Terminate Job request is received, the Batch service sets the job to the terminating state. The Batch service then terminates any running tasks associated with the job and runs any required job release tasks. Then the job moves into the completed state. If there are any tasks in the job in the active state, they will remain in the active state. Once a job is terminated, new tasks cannot be added and any remaining active tasks will not be scheduled.", @@ -5193,8 +5269,12 @@ ], "operationId": "Job_Add", "x-ms-examples": { - "Add a basic job": { "$ref": "./examples/JobAdd_Basic.json" }, - "Add a complex job": { "$ref": "./examples/JobAdd_Complex.json" } + "Add a basic job": { + "$ref": "./examples/JobAdd_Basic.json" + }, + "Add a complex job": { + "$ref": "./examples/JobAdd_Complex.json" + } }, "summary": "Adds a job to the specified account.", "description": "The Batch service supports two ways to control the work done as part of a job. In the first approach, the user specifies a Job Manager task. The Batch service launches this task when it is ready to start the job. The Job Manager task controls all other tasks that run under this job, by using the Task APIs. In the second approach, the user directly controls the execution of tasks under an active job, by using the Task APIs. Also note: when naming jobs, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5305,7 +5385,9 @@ }, "operationId": "Job_List", "x-ms-examples": { - "Job list": { "$ref": "./examples/JobList.json" } + "Job list": { + "$ref": "./examples/JobList.json" + } }, "summary": "Lists all of the jobs in the specified account.", "x-ms-request-id": "request-id", @@ -5451,7 +5533,9 @@ "nextLinkName": "odata.nextLink" }, "x-ms-examples": { - "List Job Under Job Schedule": { "$ref": "./examples/JobListFromJobSchedule.json" } + "List Job Under Job Schedule": { + "$ref": "./examples/JobListFromJobSchedule.json" + } }, "operationId": "Job_ListFromJobSchedule", "summary": "Lists the jobs that have been created under the specified job schedule.", @@ -5606,7 +5690,9 @@ }, "operationId": "Job_ListPreparationAndReleaseTaskStatus", "x-ms-examples": { - "Job list preparation and release task status": { "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" } + "Job list preparation and release task status": { + "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" + } }, "summary": "Lists the execution status of the Job Preparation and Job Release task for the specified job across the compute nodes where the job has run.", "description": "This API returns the Job Preparation and Job Release task status on all compute nodes that have run the Job Preparation or Job Release task. This includes nodes which have since been removed from the pool. If this API is invoked on a job which has no Job Preparation or Job Release task, the Batch service returns HTTP status code 409 (Conflict) with an error code of JobPreparationTaskNotSpecified.", @@ -5748,7 +5834,9 @@ ], "operationId": "Job_GetTaskCounts", "x-ms-examples": { - "Job get task counts": { "$ref": "./examples/JobGetTaskCounts.json" } + "Job get task counts": { + "$ref": "./examples/JobGetTaskCounts.json" + } }, "summary": "Gets the task counts for the specified job.", "description": "Task counts provide a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. Tasks in the preparing state are counted as running. If the validationStatus is unvalidated, then the Batch service has not been able to check state counts against the task states as reported in the List Tasks API. The validationStatus may be unvalidated if the job contains more than 200,000 tasks.", @@ -5846,9 +5934,15 @@ ], "operationId": "Pool_Add", "x-ms-examples": { - "Add a CloudServiceConfiguration pool": { "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" }, - "Add a VirtualMachineConfiguration pool": { "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" }, - "Add a VirtualMachineConfiguration pool with containers": { "$ref": "./examples/PoolAdd_VirtualMachineConfigurationWithContainers.json" } + "Add a CloudServiceConfiguration pool": { + "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool": { + "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool with containers": { + "$ref": "./examples/PoolAdd_VirtualMachineConfigurationWithContainers.json" + } }, "summary": "Adds a pool to the specified account.", "description": "When naming pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5959,7 +6053,9 @@ }, "operationId": "Pool_List", "x-ms-examples": { - "Pool list": { "$ref": "./examples/PoolList_Basic.json" } + "Pool list": { + "$ref": "./examples/PoolList_Basic.json" + } }, "summary": "Lists all of the pools in the specified account.", "x-ms-request-id": "request-id", @@ -6103,7 +6199,9 @@ ], "operationId": "Pool_Delete", "x-ms-examples": { - "Pool delete": { "$ref": "./examples/PoolDelete.json" } + "Pool delete": { + "$ref": "./examples/PoolDelete.json" + } }, "summary": "Deletes a pool from the specified account.", "description": "When you request that a pool be deleted, the following actions occur: the pool state is set to deleting; any ongoing resize operation on the pool are stopped; the Batch service starts resizing the pool to zero nodes; any tasks running on existing nodes are terminated and requeued (as if a resize pool operation had been requested with the default requeue option); finally, the pool is removed from the system. Because running tasks are requeued, the user can rerun these tasks by updating their job to target a different pool. The tasks can then run on the new pool. If you want to override the requeue behavior, then you should call resize pool explicitly to shrink the pool to zero size before deleting the pool. If you call an Update, Patch or Delete API on a pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.", @@ -6236,7 +6334,9 @@ ], "operationId": "Pool_Exists", "x-ms-examples": { - "Check Pool Exists": { "$ref": "./examples/PoolExists.json" } + "Check Pool Exists": { + "$ref": "./examples/PoolExists.json" + } }, "description": "Gets basic properties of a pool.", "x-ms-request-id": "request-id", @@ -6382,7 +6482,9 @@ ], "operationId": "Pool_Get", "x-ms-examples": { - "Pool get": { "$ref": "./examples/PoolGet_Basic.json" } + "Pool get": { + "$ref": "./examples/PoolGet_Basic.json" + } }, "description": "Gets information about the specified pool.", "x-ms-request-id": "request-id", @@ -6548,7 +6650,9 @@ ], "operationId": "Pool_Patch", "x-ms-examples": { - "Patch the Pool": { "$ref": "./examples/PoolPatch.json" } + "Patch the Pool": { + "$ref": "./examples/PoolPatch.json" + } }, "summary": "Updates the properties of the specified pool.", "description": "This only replaces the pool properties specified in the request. For example, if the pool has a start task associated with it, and a request does not specify a start task element, then the pool keeps the existing start task.", @@ -6707,7 +6811,9 @@ ], "operationId": "Pool_DisableAutoScale", "x-ms-examples": { - "Disable pool autoscale": { "$ref": "./examples/PoolDisableAutoScale.json" } + "Disable pool autoscale": { + "$ref": "./examples/PoolDisableAutoScale.json" + } }, "summary": "Disables automatic scaling for a pool.", "x-ms-request-id": "request-id", @@ -6814,7 +6920,9 @@ ], "operationId": "Pool_EnableAutoScale", "x-ms-examples": { - "Pool enable autoscale": { "$ref": "./examples/PoolEnableAutoscale.json" } + "Pool enable autoscale": { + "$ref": "./examples/PoolEnableAutoscale.json" + } }, "summary": "Enables automatic scaling for a pool.", "description": "You cannot enable automatic scaling on a pool if a resize operation is in progress on the pool. If automatic scaling of the pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same pool more than once every 30 seconds.", @@ -6973,7 +7081,9 @@ ], "operationId": "Pool_EvaluateAutoScale", "x-ms-examples": { - "Pool evaluate autoscale": { "$ref": "./examples/PoolEvaluateAutoscale.json" } + "Pool evaluate autoscale": { + "$ref": "./examples/PoolEvaluateAutoscale.json" + } }, "summary": "Gets the result of evaluating an automatic scaling formula on the pool.", "description": "This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the pool. The pool must have auto scaling enabled in order to evaluate a formula.", @@ -7093,7 +7203,9 @@ ], "operationId": "Pool_Resize", "x-ms-examples": { - "Pool resize": { "$ref": "./examples/PoolResize.json" } + "Pool resize": { + "$ref": "./examples/PoolResize.json" + } }, "summary": "Changes the number of compute nodes that are assigned to a pool.", "description": "You can only resize a pool when its allocation state is steady. If the pool is already resizing, the request fails with status code 409. When you resize a pool, the pool's allocation state changes from steady to resizing. You cannot resize pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a pool downwards, the Batch service chooses which nodes to remove. To remove specific nodes, use the pool remove nodes API instead.", @@ -7252,7 +7364,9 @@ ], "operationId": "Pool_StopResize", "x-ms-examples": { - "Pool stop resize": { "$ref": "./examples/PoolStopResize.json" } + "Pool stop resize": { + "$ref": "./examples/PoolStopResize.json" + } }, "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.", @@ -7402,7 +7516,9 @@ ], "operationId": "Pool_UpdateProperties", "x-ms-examples": { - "Pool update": { "$ref": "./examples/PoolUpdate.json" } + "Pool update": { + "$ref": "./examples/PoolUpdate.json" + } }, "summary": "Updates the properties of the specified pool.", "description": "This fully replaces all the updatable properties of the pool. For example, if the pool has a start task associated with it and if start task is not specified with this request, then the Batch service will remove the existing start task.", @@ -7519,7 +7635,9 @@ ], "operationId": "Pool_UpgradeOS", "x-ms-examples": { - "Upgrade OS of the pool": { "$ref": "./examples/PoolUpgradeOS.json" } + "Upgrade OS of the pool": { + "$ref": "./examples/PoolUpgradeOS.json" + } }, "summary": "Upgrades the operating system of the specified pool.", "description": "During an upgrade, the Batch service upgrades each compute node in the pool. When a compute node is chosen for upgrade, any tasks running on that node are removed from the node and returned to the queue to be rerun later (or on a different compute node). The node will be unavailable until the upgrade is complete. This operation results in temporarily reduced pool capacity as nodes are taken out of service to be upgraded. Although the Batch service tries to avoid upgrading all compute nodes at the same time, it does not guarantee to do this (particularly on small pools); therefore, the pool may be temporarily unavailable to run tasks. When this operation runs, the pool state changes to upgrading. When all compute nodes have finished upgrading, the pool state returns to active. While the upgrade is in progress, the pool's currentOSVersion reflects the OS version that nodes are upgrading from, and targetOSVersion reflects the OS version that nodes are upgrading to. Once the upgrade is complete, currentOSVersion is updated to reflect the OS version now running on all nodes. This operation can only be invoked on pools created with the cloudServiceConfiguration property.", @@ -7678,7 +7796,9 @@ ], "operationId": "Pool_RemoveNodes", "x-ms-examples": { - "Pool remove nodes": { "$ref": "./examples/PoolRemoveNodes.json" } + "Pool remove nodes": { + "$ref": "./examples/PoolRemoveNodes.json" + } }, "summary": "Removes compute nodes from the specified pool.", "description": "This operation can only run when the allocation state of the pool is steady. When this operation runs, the allocation state changes from steady to resizing.", @@ -7837,9 +7957,15 @@ ], "operationId": "Task_Add", "x-ms-examples": { - "Add a basic task": { "$ref": "./examples/TaskAdd_Basic.json" }, - "Add a task with exit conditions": { "$ref": "./examples/TaskAdd_ExitConditions.json" }, - "Add a task with container settings": { "$ref": "./examples/TaskAdd_ContainerSettings.json" } + "Add a basic task": { + "$ref": "./examples/TaskAdd_Basic.json" + }, + "Add a task with exit conditions": { + "$ref": "./examples/TaskAdd_ExitConditions.json" + }, + "Add a task with container settings": { + "$ref": "./examples/TaskAdd_ContainerSettings.json" + } }, "summary": "Adds a task to the specified job.", "description": "The maximum lifetime of a task from addition to completion is 7 days. If a task has not completed within 7 days of being added it will be terminated by the Batch service and left in whatever state it was in at that time.", @@ -7957,7 +8083,9 @@ }, "operationId": "Task_List", "x-ms-examples": { - "Task list": { "$ref": "./examples/TaskList.json" } + "Task list": { + "$ref": "./examples/TaskList.json" + } }, "summary": "Lists all of the tasks that are associated with the specified job.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -8109,8 +8237,12 @@ ], "operationId": "Task_AddCollection", "x-ms-examples": { - "Add a basic collection of tasks": { "$ref": "./examples/TaskAddCollection_Basic.json" }, - "Add a complex collection of tasks": { "$ref": "./examples/TaskAddCollection_Complex.json" } + "Add a basic collection of tasks": { + "$ref": "./examples/TaskAddCollection_Basic.json" + }, + "Add a complex collection of tasks": { + "$ref": "./examples/TaskAddCollection_Complex.json" + } }, "summary": "Adds a collection of tasks to the specified job.", "description": "Note that each task must have a unique ID. The Batch service may not return the results for each task in the same order the tasks were submitted in this request. If the server times out or the connection is closed during the request, the request may have been partially or fully processed, or not at all. In such cases, the user should re-issue the request. Note that it is up to the user to correctly handle failures when re-issuing a request. For example, you should use the same task IDs during a retry so that if the prior operation succeeded, the retry will not create extra tasks unexpectedly. If the response contains any tasks which failed to add, a client can retry the request. In a retry, it is most efficient to resubmit only tasks that failed to add, and to omit tasks that were successfully added on the first attempt. The maximum lifetime of a task from addition to completion is 7 days. If a task has not completed within 7 days of being added it will be terminated by the Batch service and left in whatever state it was in at that time.", @@ -8215,7 +8347,9 @@ ], "operationId": "Task_Delete", "x-ms-examples": { - "Task delete": { "$ref": "./examples/TaskDelete.json" } + "Task delete": { + "$ref": "./examples/TaskDelete.json" + } }, "summary": "Deletes a task from the specified job.", "description": "When a task is deleted, all of the files in its directory on the compute node where it ran are also deleted (regardless of the retention time). For multi-instance tasks, the delete task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.", @@ -8355,7 +8489,9 @@ ], "operationId": "Task_Get", "x-ms-examples": { - "Task get": { "$ref": "./examples/TaskGet.json" } + "Task get": { + "$ref": "./examples/TaskGet.json" + } }, "summary": "Gets information about the specified task.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -8533,7 +8669,9 @@ ], "operationId": "Task_Update", "x-ms-examples": { - "Task update": { "$ref": "./examples/TaskUpdate.json" } + "Task update": { + "$ref": "./examples/TaskUpdate.json" + } }, "description": "Updates the properties of the specified task.", "x-ms-request-id": "request-id", @@ -8698,7 +8836,9 @@ ], "operationId": "Task_ListSubtasks", "x-ms-examples": { - "Task list subtasks": { "$ref": "./examples/TaskListSubtasks.json" } + "Task list subtasks": { + "$ref": "./examples/TaskListSubtasks.json" + } }, "summary": "Lists all of the subtasks that are associated with the specified multi-instance task.", "description": "If the task is not a multi-instance task then this returns an empty collection.", @@ -8822,7 +8962,9 @@ ], "operationId": "Task_Terminate", "x-ms-examples": { - "Task terminate": { "$ref": "./examples/TaskTerminate.json" } + "Task terminate": { + "$ref": "./examples/TaskTerminate.json" + } }, "summary": "Terminates the specified task.", "description": "When the task has been terminated, it moves to the completed state. For multi-instance tasks, the terminate task operation applies synchronously to the primary task; subtasks are then terminated asynchronously in the background.", @@ -8979,7 +9121,9 @@ ], "operationId": "Task_Reactivate", "x-ms-examples": { - "Task reactivate": { "$ref": "./examples/TaskReactivate.json" } + "Task reactivate": { + "$ref": "./examples/TaskReactivate.json" + } }, "summary": "Reactivates a task, allowing it to run again even if its retry count has been exhausted.", "description": "Reactivation makes a task eligible to be retried again up to its maximum retry count. The task's state is changed to active. As the task is no longer in the completed state, any previous exit code or failure information is no longer available after reactivation. Each time a task is reactivated, its retry count is reset to 0. Reactivation will fail for tasks that are not completed or that previously completed successfully (with an exit code of 0). Additionally, it will fail if the job has completed (or is terminating or deleting).", @@ -9136,7 +9280,9 @@ ], "operationId": "ComputeNode_AddUser", "x-ms-examples": { - "Node add user": { "$ref": "./examples/NodeAddUser.json" } + "Node add user": { + "$ref": "./examples/NodeAddUser.json" + } }, "summary": "Adds a user account to the specified compute node.", "description": "You can add a user account to a node only when it is in the idle or running state.", @@ -9260,7 +9406,9 @@ ], "operationId": "ComputeNode_DeleteUser", "x-ms-examples": { - "Node delete user": { "$ref": "./examples/NodeDeleteUser.json" } + "Node delete user": { + "$ref": "./examples/NodeDeleteUser.json" + } }, "summary": "Deletes a user account from the specified compute node.", "description": "You can delete a user account to a node only when it is in the idle or running state.", @@ -9365,7 +9513,9 @@ ], "operationId": "ComputeNode_UpdateUser", "x-ms-examples": { - "Node update user": { "$ref": "./examples/NodeUpdateUser.json" } + "Node update user": { + "$ref": "./examples/NodeUpdateUser.json" + } }, "summary": "Updates the password and expiration time of a user account on the specified compute node.", "description": "This operation replaces of all the updatable properties of the account. For example, if the expiryTime element is not specified, the current value is replaced with the default value, not left unmodified. You can update a user account on a node only when it is in the idle or running state.", @@ -9496,7 +9646,9 @@ ], "operationId": "ComputeNode_Get", "x-ms-examples": { - "Node get": { "$ref": "./examples/NodeGet_Basic.json" } + "Node get": { + "$ref": "./examples/NodeGet_Basic.json" + } }, "summary": "Gets information about the specified compute node.", "x-ms-request-id": "request-id", @@ -9619,7 +9771,9 @@ ], "operationId": "ComputeNode_Reboot", "x-ms-examples": { - "Node reboot": { "$ref": "./examples/NodeReboot.json" } + "Node reboot": { + "$ref": "./examples/NodeReboot.json" + } }, "summary": "Restarts the specified compute node.", "description": "You can restart a node only if it is in an idle or running state.", @@ -9743,7 +9897,9 @@ ], "operationId": "ComputeNode_Reimage", "x-ms-examples": { - "Node reimage": { "$ref": "./examples/NodeReimage.json" } + "Node reimage": { + "$ref": "./examples/NodeReimage.json" + } }, "summary": "Reinstalls the operating system on the specified compute node.", "description": "You can reinstall the operating system on a node only if it is in an idle or running state. This API can be invoked only on pools created with the cloud service configuration property.", @@ -9867,7 +10023,9 @@ ], "operationId": "ComputeNode_DisableScheduling", "x-ms-examples": { - "Node disable scheduling": { "$ref": "./examples/NodeDisableScheduling.json" } + "Node disable scheduling": { + "$ref": "./examples/NodeDisableScheduling.json" + } }, "summary": "Disables task scheduling on the specified compute node.", "description": "You can disable task scheduling on a node only if its current scheduling state is enabled.", @@ -9991,7 +10149,9 @@ ], "operationId": "ComputeNode_EnableScheduling", "x-ms-examples": { - "Node enable scheduling": { "$ref": "./examples/NodeEnableScheduling.json" } + "Node enable scheduling": { + "$ref": "./examples/NodeEnableScheduling.json" + } }, "summary": "Enables task scheduling on the specified compute node.", "description": "You can enable task scheduling on a node only if its current scheduling state is disabled", @@ -10106,7 +10266,9 @@ ], "operationId": "ComputeNode_GetRemoteLoginSettings", "x-ms-examples": { - "Node get remote login settings": { "$ref": "./examples/NodeGetRemoteLoginSettings.json" } + "Node get remote login settings": { + "$ref": "./examples/NodeGetRemoteLoginSettings.json" + } }, "summary": "Gets the settings required for remote login to a compute node.", "description": "Before you can remotely login to a node using the remote login settings, you must create a user account on the node. This API can be invoked only on pools created with the virtual machine configuration property. For pools created with a cloud service configuration, see the GetRemoteDesktop API.", @@ -10220,7 +10382,9 @@ ], "operationId": "ComputeNode_GetRemoteDesktop", "x-ms-examples": { - "Get RDP file of the compute node": { "$ref": "./examples/NodeGetRemoteDesktop.json" } + "Get RDP file of the compute node": { + "$ref": "./examples/NodeGetRemoteDesktop.json" + } }, "summary": "Gets the Remote Desktop Protocol file for the specified compute node.", "description": "Before you can access a node by using the RDP file, you must create a user account on the node. This API can only be invoked on pools created with a cloud service configuration. For pools created with a virtual machine configuration, see the GetRemoteLoginSettings API.", @@ -10340,7 +10504,9 @@ "summary": "Upload Azure Batch service log files from the specified compute node to Azure Blob Storage.", "description": "This is for gathering Azure Batch service log files in an automated fashion from nodes if you are experiencing an error and wish to escalate to Azure support. The Azure Batch service log files should be shared with Azure support to aid in debugging issues with the Batch service.", "x-ms-examples": { - "Upload BatchService Logs": { "$ref": "./examples/NodeUploadBatchServiceLogs.json" } + "Upload BatchService Logs": { + "$ref": "./examples/NodeUploadBatchServiceLogs.json" + } }, "x-ms-request-id": "request-id", "parameters": [ @@ -10434,7 +10600,7 @@ "description": "The request to the Batch service was successful.", "schema": { "$ref": "#/definitions/UploadBatchServiceLogsResult" - } + } }, "default": { "description": "The error from the Batch service.", @@ -10455,7 +10621,9 @@ }, "operationId": "ComputeNode_List", "x-ms-examples": { - "Node list": { "$ref": "./examples/NodeList.json" } + "Node list": { + "$ref": "./examples/NodeList.json" + } }, "summary": "Lists the compute nodes in the specified pool.", "x-ms-request-id": "request-id", @@ -10628,7 +10796,15 @@ "title": "The cross data center network egress from the pool during this interval, in GiB." } }, - "required": [ "poolId", "startTime", "endTime", "vmSize", "totalCoreHours", "dataIngressGiB", "dataEgressGiB" ], + "required": [ + "poolId", + "startTime", + "endTime", + "vmSize", + "totalCoreHours", + "dataIngressGiB", + "dataEgressGiB" + ], "title": "Usage metrics for a pool across an aggregation interval." }, "PoolListUsageMetricsResult": { @@ -10748,7 +10924,11 @@ "title": "The aggregated wall-clock time of the dedicated compute node cores being part of the pool." } }, - "required": [ "startTime", "lastUpdateTime", "dedicatedCoreTime" ], + "required": [ + "startTime", + "lastUpdateTime", + "dedicatedCoreTime" + ], "title": "Statistics related to pool usage information." }, "ResourceStatistics": { @@ -10819,7 +10999,21 @@ "title": "The total amount of data in GiB of network writes across all nodes in the pool." } }, - "required": [ "startTime", "lastUpdateTime", "avgCPUPercentage", "avgMemoryGiB", "peakMemoryGiB", "avgDiskGiB", "peakDiskGiB", "diskReadIOps", "diskWriteIOps", "diskReadGiB", "diskWriteGiB", "networkReadGiB", "networkWriteGiB" ], + "required": [ + "startTime", + "lastUpdateTime", + "avgCPUPercentage", + "avgMemoryGiB", + "peakMemoryGiB", + "avgDiskGiB", + "peakDiskGiB", + "diskReadIOps", + "diskWriteIOps", + "diskReadGiB", + "diskWriteGiB", + "networkReadGiB", + "networkWriteGiB" + ], "title": "Statistics related to resource consumption by compute nodes in a pool." }, "PoolStatistics": { @@ -10847,7 +11041,11 @@ "title": "Statistics related to resource consumption by compute nodes in the pool." } }, - "required": [ "url", "startTime", "lastUpdateTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime" + ], "title": "Contains utilization and resource usage statistics for the lifetime of a pool." }, "JobStatistics": { @@ -10926,7 +11124,22 @@ "description": "The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.) This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job." }, "NameValuePair": { @@ -11021,7 +11234,9 @@ "description": "If this is omitted on a pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a task, and no default version is specified for this application, the task fails with a pre-processing error." } }, - "required": [ "applicationId" ], + "required": [ + "applicationId" + ], "title": "A reference to an application package to be deployed to compute nodes." }, "ApplicationSummary": { @@ -11042,7 +11257,11 @@ } } }, - "required": [ "id", "displayName", "versions" ], + "required": [ + "id", + "displayName", + "versions" + ], "title": "Contains information about an application in an Azure Batch account." }, "CertificateAddParameter": { @@ -11087,7 +11306,11 @@ "description": "This is required if the certificate format is pfx. It should be omitted if the certificate format is cer." } }, - "required": [ "thumbprint", "thumbprintAlgorithm", "data" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm", + "data" + ], "title": "A certificate that can be installed on compute nodes and can be used to authenticate operations on the machine." }, "CertificateListResult": { @@ -11134,7 +11357,10 @@ "description": "The file mode is returned only for files on Linux compute nodes." } }, - "required": [ "lastModified", "contentLength" ], + "required": [ + "lastModified", + "contentLength" + ], "title": "The properties of a file on a compute node." }, "NodeFile": { @@ -11238,7 +11464,9 @@ "description": "This setting can be omitted if was already provided at pool creation." } }, - "required": [ "imageName" ], + "required": [ + "imageName" + ], "title": "The container settings for a task." }, "ResourceFile": { @@ -11258,7 +11486,10 @@ "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." } }, - "required": [ "blobSource", "filePath" ], + "required": [ + "blobSource", + "filePath" + ], "title": "A file to be downloaded from Azure blob storage to a compute node." }, "EnvironmentSetting": { @@ -11272,7 +11503,9 @@ "title": "The value of the environment variable." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "An environment variable to be set on a task process." }, "ExitConditions": { @@ -11321,7 +11554,10 @@ } }, "title": "How the Batch service should respond if a task exits with a particular exit code.", - "required": [ "code", "exitOptions" ] + "required": [ + "code", + "exitOptions" + ] }, "ExitCodeRangeMapping": { "properties": { @@ -11341,7 +11577,11 @@ } }, "title": "A range of exit codes and how the Batch service should respond to exit codes within that range.", - "required": [ "start", "end", "exitOptions" ] + "required": [ + "start", + "end", + "exitOptions" + ] }, "ExitOptions": { "properties": { @@ -11492,7 +11732,10 @@ "$ref": "#/definitions/LinuxUserConfiguration" } }, - "required": [ "name", "password" ], + "required": [ + "name", + "password" + ], "title": "Properties used to create a user used to execute tasks on an Azure Batch node." }, "TaskConstraints": { @@ -11548,7 +11791,7 @@ "title": "A list of files that the Batch service will download to the compute node before running the command line.", "description": "Files listed under this element are located in the task's working directory. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers." }, - "outputFiles": { + "outputFiles": { "type": "array", "items": { "$ref": "#/definitions/OutputFile" @@ -11601,7 +11844,10 @@ "description": "The default value is true." } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "Specifies details of a Job Manager task.", "description": "The Job Manager task is automatically started when the job is created. The Batch service tries to schedule the Job Manager task before any other tasks in the job. When shrinking a pool, the Batch service tries to preserve compute nodes where Job Manager tasks are running for as long as possible (that is, nodes running 'normal' tasks are removed before nodes running Job Manager tasks). When a Job Manager task fails and needs to be restarted, the system tries to schedule it at the highest priority. If there are no idle nodes available, the system may terminate one of the running tasks in the pool and return it to the queue in order to make room for the Job Manager task to restart. Note that a Job Manager task in one job does not have priority over tasks in other jobs. Across jobs, only job level priorities are observed. For example, if a Job Manager in a priority 0 job needs to be restarted, it will not displace tasks of a priority 1 job. Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing." }, @@ -11657,7 +11903,9 @@ "description": "The Job Preparation task is always rerun if a compute node is reimaged, or if the Job Preparation task did not complete (e.g. because the reboot occurred while the task was running). Therefore, you should always write a Job Preparation task to be idempotent and to behave correctly if run multiple times. The default value is true." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Preparation task to run before any tasks of the job on any given compute node.", "description": "You can use Job Preparation to prepare a compute node to run tasks for the job. Activities commonly performed in Job Preparation include: Downloading common resource files used by all the tasks in the job. The Job Preparation task can download these common resource files to the shared location on the compute node. (AZ_BATCH_NODE_ROOT_DIR\\shared), or starting a local service on the compute node so that all tasks of that job can communicate with it. If the Job Preparation task fails (that is, exhausts its retry count before exiting with exit code 0), Batch will not run tasks of this job on the compute node. The node remains ineligible to run tasks of this job until it is reimaged. The node remains active and can be used for other jobs. The Job Preparation task can run multiple times on the same compute node. Therefore, you should write the Job Preparation task to handle re-execution. If the compute node is rebooted, the Job Preparation task is run again on the node before scheduling any other task of the job, if rerunOnNodeRebootAfterSuccess is true or if the Job Preparation task did not previously complete. If the compute node is reimaged, the Job Preparation task is run again before scheduling any task of the job. Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing." }, @@ -11710,7 +11958,9 @@ "description": "If omitted, the task runs as a non-administrative user unique to the task." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Release task to run on job completion on any compute node where the job has run.", "description": "The Job Release task runs when the job ends, because of one of the following: The user calls the Terminate Job API, or the Delete Job API while the job is still active, the job's maximum wall clock time constraint is reached, and the job is still active, or the job's Job Manager task completed, and the job is configured to terminate when the Job Manager completes. The Job Release task runs on each compute node where tasks of the job have run and the Job Preparation task ran and completed. If you reimage a compute node after it has run the Job Preparation task, and the job ends without any further tasks of the job running on that compute node (and hence the Job Preparation task does not re-run), then the Job Release task does not run on that node. If a compute node reboots while the Job Release task is still running, the Job Release task runs again when the compute node starts up. The job is not marked as complete until all Job Release tasks have completed. The Job Release task runs in the background. It does not occupy a scheduling slot; that is, it does not count towards the maxTasksPerNode limit specified on the pool." }, @@ -11739,7 +11989,9 @@ } } }, - "required": [ "nodeFillType" ], + "required": [ + "nodeFillType" + ], "title": "Specifies how tasks should be distributed across compute nodes." }, "StartTask": { @@ -11786,7 +12038,9 @@ "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 failure info details. 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 false." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "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": "Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing." }, @@ -11865,7 +12119,10 @@ "description": "You can specify more than one visibility in this collection. The default is all accounts." } }, - "required": [ "thumbprint", "thumbprintAlgorithm" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm" + ], "title": "A reference to a certificate to be installed on compute nodes in a pool." }, "MetadataItem": { @@ -11879,7 +12136,10 @@ "title": "The value of the metadata item." } }, - "required": [ "name", "value" ], + "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." }, @@ -11981,7 +12241,7 @@ "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." }, @@ -12001,7 +12261,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "vmSize" ], + "required": [ + "vmSize" + ], "title": "Specification for creating a new pool." }, "AutoPoolSpecification": { @@ -12044,7 +12306,9 @@ "title": "The pool specification for the auto pool." } }, - "required": [ "poolLifetimeOption" ], + "required": [ + "poolLifetimeOption" + ], "title": "Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto pool when the job is submitted." }, "PoolInformation": { @@ -12129,7 +12393,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "Specifies details of the jobs to be created on a schedule." }, "RecentJob": { @@ -12241,7 +12507,22 @@ "description": "This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job schedule." }, "CloudJobSchedule": { @@ -12350,7 +12631,11 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "schedule", "jobSpecification" ], + "required": [ + "id", + "schedule", + "jobSpecification" + ], "title": "A job schedule that allows recurring jobs by specifying when to run jobs and a specification used to create each job." }, "CloudJobScheduleListResult": { @@ -12391,7 +12676,9 @@ "title": "A list of additional error details related to the scheduling error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "An error encountered by the Batch service when scheduling a job." }, "JobExecutionInformation": { @@ -12424,7 +12711,9 @@ "description": "This property is set only if the job is in the completed state. If the Batch service terminates the job, it sets the reason as follows: JMComplete - the Job Manager task completed, and killJobOnCompletion was set to true. MaxWallClockTimeExpiry - the job reached its maxWallClockTime constraint. TerminateJobSchedule - the job ran as part of a schedule, and the schedule terminated. AllTasksComplete - the job's onAllTasksComplete attribute is set to terminatejob, and all tasks in the job are complete. TaskFailed - the job's onTaskFailure attribute is set to performExitOptionsJobAction, and a task in the job failed with an exit condition that specified a jobAction of terminatejob. Any other string is a user-defined reason specified in a call to the 'Terminate a job' operation." } }, - "required": [ "startTime" ], + "required": [ + "startTime" + ], "title": "Contains information about the execution of a job in the Azure Batch service." }, "CloudJob": { @@ -12619,7 +12908,10 @@ "title": "Whether tasks in the job can define dependencies on each other. The default is false." } }, - "required": [ "id", "poolInfo" ], + "required": [ + "id", + "poolInfo" + ], "title": "An Azure Batch job to add." }, "CloudJobListResult": { @@ -12679,7 +12971,9 @@ "title": "A list of additional details related to the error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "Information about a task failure." }, "JobPreparationTaskExecutionInformation": { @@ -12760,7 +13054,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "retryCount", "state" ], + "required": [ + "startTime", + "retryCount", + "state" + ], "title": "Contains information about the execution of a Job Preparation task on a compute node." }, "JobReleaseTaskExecutionInformation": { @@ -12829,7 +13127,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "state" ], + "required": [ + "startTime", + "state" + ], "title": "Contains information about the execution of a Job Release task on a compute node." }, "JobPreparationAndReleaseTaskExecutionInformation": { @@ -12924,7 +13225,14 @@ } } }, - "required": ["active", "running", "completed", "succeeded", "failed", "validationStatus"], + "required": [ + "active", + "running", + "completed", + "succeeded", + "failed", + "validationStatus" + ], "title": "The task counts for a job." }, "AutoScaleRunError": { @@ -12964,7 +13272,9 @@ "title": "Details of the error encountered evaluating the autoscale formula on the pool, if the evaluation was unsuccessful." } }, - "required": [ "timestamp" ], + "required": [ + "timestamp" + ], "title": "The results and errors from an execution of a pool autoscale formula." }, "ResizeError": { @@ -13006,7 +13316,9 @@ "description": "This may differ from targetOSVersion if the pool state is Upgrading. In this case some virtual machines may be on the targetOSVersion and some may be on the currentOSVersion during the upgrade process. Once all virtual machines have upgraded, currentOSVersion is updated to be the same as targetOSVersion." } }, - "required": [ "osFamily" ], + "required": [ + "osFamily" + ], "title": "The configuration for nodes in a pool based on the Azure Cloud Services platform." }, "ImageReference": { @@ -13134,7 +13446,7 @@ "value": "readonly", "description": "The caching mode for the disk is read only.", "name": "readOnly" - }, + }, { "value": "readwrite", "description": "The caching mode for the disk is read and write.", @@ -13182,7 +13494,10 @@ "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." } }, - "required": [ "nodeAgentSKUId", "imageReference" ], + "required": [ + "nodeAgentSKUId", + "imageReference" + ], "title": "The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure." }, "ContainerRegistry": { @@ -13202,7 +13517,10 @@ "title": "The password to log into the registry server." } }, - "required": [ "username", "password" ], + "required": [ + "username", + "password" + ], "title": "A private container registry." }, "ContainerConfiguration": { @@ -13241,7 +13559,9 @@ "description": "If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here." } }, - "required": [ "type" ], + "required": [ + "type" + ], "title": "The configuration for container-enabled pools." }, "NetworkConfiguration": { @@ -13256,9 +13576,9 @@ } }, "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." + "$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." } }, "description": "The network configuration for a pool." @@ -13462,7 +13782,7 @@ "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." }, @@ -13590,7 +13910,7 @@ "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." }, @@ -13620,7 +13940,10 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "vmSize" ], + "required": [ + "id", + "vmSize" + ], "title": "A pool in the Azure Batch service to add." }, "ApplicationListResult": { @@ -13663,7 +13986,9 @@ "description": "You can pass the affinityId of a compute node to indicate that this task needs to run on that compute node. Note that this is just a soft affinity. If the target node is busy or unavailable at the time the task is scheduled, then the task will be scheduled elsewhere." } }, - "required": [ "affinityId" ], + "required": [ + "affinityId" + ], "title": "A locality hint that can be used by the Batch service to select a compute node on which to start a task." }, "TaskExecutionInformation": { @@ -13726,7 +14051,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "requeueCount", "retryCount" ], + "required": [ + "requeueCount", + "retryCount" + ], "title": "Information about the execution of a task." }, "ComputeNodeInformation": { @@ -13780,7 +14108,9 @@ "description": "The difference between common resource files and task resource files is that common resource files are downloaded for all subtasks including the primary, whereas task resource files are downloaded only for the primary. Also note that these resource files are not downloaded to the task working directory, but instead are downloaded to the task root directory (one directory above the working directory). There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers." } }, - "required": [ "coordinationCommandLine" ], + "required": [ + "coordinationCommandLine" + ], "title": "Settings which specify how to run a multi-instance task.", "description": "Multi-instance tasks are commonly used to support MPI tasks." }, @@ -13842,7 +14172,19 @@ "title": "The total wait time of the task. The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.)" } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "waitTime" + ], "title": "Resource usage statistics for a task." }, "TaskDependencies": { @@ -13880,7 +14222,10 @@ }, "title": "A range of task IDs that a task can depend on. All tasks with IDs in the range must complete successfully before the dependent task can be scheduled.", "description": "The start and end of the range are inclusive. For example, if a range has start 9 and end 12, then it represents tasks '9', '10', '11' and '12'.", - "required": [ "start", "end" ] + "required": [ + "start", + "end" + ] }, "CloudTask": { "properties": { @@ -14107,7 +14452,10 @@ "$ref": "#/definitions/AuthenticationTokenSettings" } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "An Azure Batch task to add.", "description": "Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing." }, @@ -14123,7 +14471,9 @@ "description": "The total serialized size of this collection must be less than 1MB. If it is greater than 1MB (for example if each task has 100's of resource files or environment variables), the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer tasks." } }, - "required": [ "value" ], + "required": [ + "value" + ], "title": "A collection of Azure Batch tasks to add." }, "TaskAddResult": { @@ -14180,7 +14530,10 @@ "title": "The error encountered while attempting to add the task." } }, - "required": [ "status", "taskId" ], + "required": [ + "status", + "taskId" + ], "title": "Result for a single task added as part of an add task collection operation." }, "TaskAddCollectionResult": { @@ -14317,7 +14670,9 @@ "title": "Information about the execution of the task." } }, - "required": [ "taskState" ], + "required": [ + "taskState" + ], "title": "Information about a task running on a compute node." }, "StartTaskInformation": { @@ -14390,7 +14745,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "state", "startTime", "retryCount" ], + "required": [ + "state", + "startTime", + "retryCount" + ], "title": "Information about a start task running on a compute node." }, "ComputeNodeError": { @@ -14626,7 +14985,9 @@ "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" ], + "required": [ + "inboundNATPools" + ], "title": "The endpoint configuration for a pool." }, "InboundNATPool": { @@ -14667,7 +15028,13 @@ } } }, - "required": [ "name", "protocol", "backendPort", "frontendPortRangeStart", "frontendPortRangeEnd" ], + "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": { @@ -14706,7 +15073,11 @@ "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." } }, - "required": [ "priority", "access", "sourceAddressPrefix" ], + "required": [ + "priority", + "access", + "sourceAddressPrefix" + ], "title": "A network security group rule to apply to an inbound endpoint." }, "ComputeNodeEndpointConfiguration": { @@ -14719,7 +15090,9 @@ "title": "The list of inbound endpoints that are accessible on the compute node." } }, - "required": [ "inboundEndpoints" ], + "required": [ + "inboundEndpoints" + ], "title": "The endpoint configuration for the compute node." }, "InboundEndpoint": { @@ -14751,7 +15124,14 @@ "title": "The backend port number of the endpoint." } }, - "required": [ "name", "protocol", "publicIPAddress", "publicFQDN", "frontendPort", "backendPort" ], + "required": [ + "name", + "protocol", + "publicIPAddress", + "publicFQDN", + "frontendPort", + "backendPort" + ], "title": "An inbound endpoint on a compute node." }, "ComputeNodeListResult": { @@ -14798,7 +15178,9 @@ "description": "The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux nodes. If this is specified for a Windows node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "A user account for RDP or SSH access on a compute node." }, "ComputeNodeGetRemoteLoginSettingsResult": { @@ -14813,7 +15195,10 @@ "title": "The port used for remote login to the compute node." } }, - "required": [ "remoteLoginIPAddress", "remoteLoginPort" ], + "required": [ + "remoteLoginIPAddress", + "remoteLoginPort" + ], "title": "The remote login settings for a compute node." }, "JobSchedulePatchParameter": { @@ -14860,7 +15245,10 @@ "description": "If you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted." } }, - "required": [ "schedule", "jobSpecification" ], + "required": [ + "schedule", + "jobSpecification" + ], "title": "The set of changes to be made to a job schedule." }, "JobDisableParameter": { @@ -14893,7 +15281,9 @@ } } }, - "required": [ "disableTasks" ], + "required": [ + "disableTasks" + ], "title": "Options when disabling a job." }, "JobTerminateParameter": { @@ -14971,7 +15361,9 @@ "$ref": "#/definitions/OnAllTasksComplete" } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "The set of changes to be made to a job." }, "PoolEnableAutoScaleParameter": { @@ -14998,7 +15390,9 @@ "description": "The formula is validated and its results calculated, but it is not applied to the pool. To apply the formula to the pool, 'Enable automatic scaling on a pool'. For more information about specifying this formula, see Automatically scale compute nodes in an Azure Batch pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling)." } }, - "required": [ "autoScaleFormula" ], + "required": [ + "autoScaleFormula" + ], "title": "Options for evaluating an automatic scaling formula on a pool." }, "PoolResizeParameter": { @@ -15059,7 +15453,11 @@ "description": "This list replaces any existing metadata configured on the pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the pool." } }, - "required": [ "certificateReferences", "metadata", "applicationPackageReferences" ], + "required": [ + "certificateReferences", + "metadata", + "applicationPackageReferences" + ], "title": "The set of changes to be made to a pool." }, "PoolUpgradeOSParameter": { @@ -15069,7 +15467,9 @@ "title": "The Azure Guest OS version to be installed on the virtual machines in the pool." } }, - "required": [ "targetOSVersion" ], + "required": [ + "targetOSVersion" + ], "title": "Options for upgrading the operating system of compute nodes in a pool." }, "PoolPatchParameter": { @@ -15273,7 +15673,9 @@ "$ref": "#/definitions/ComputeNodeDeallocationOption" } }, - "required": [ "nodeList" ], + "required": [ + "nodeList" + ], "title": "Options for removing compute nodes from a pool." }, "OutputFile": { @@ -15292,7 +15694,11 @@ "$ref": "#/definitions/OutputFileUploadOptions" } }, - "required": [ "filePattern", "destination", "uploadOptions" ], + "required": [ + "filePattern", + "destination", + "uploadOptions" + ], "title": "A specification for uploading files from an Azure Batch node to another location after the Batch service has finished executing the task process." }, "OutputFileDestination": { @@ -15317,7 +15723,9 @@ "description": "The URL must include a Shared Access Signature (SAS) granting write permissions to the container." } }, - "required": [ "containerUrl" ], + "required": [ + "containerUrl" + ], "title": "Specifies a file upload destination within an Azure blob storage container." }, "OutputFileUploadOptions": { @@ -15328,7 +15736,9 @@ "$ref": "#/definitions/OutputFileUploadCondition" } }, - "required": [ "uploadCondition" ], + "required": [ + "uploadCondition" + ], "title": "Details about an output file upload operation, including under what conditions to perform the upload." }, "ErrorMessage": { @@ -15777,7 +16187,10 @@ "description": "Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime." } }, - "required": [ "containerUrl", "startTime" ], + "required": [ + "containerUrl", + "startTime" + ], "title": "The Azure Batch service log files upload configuration for a compute node." }, "UploadBatchServiceLogsResult": { @@ -15793,7 +16206,10 @@ "title": "The number of log files which will be uploaded." } }, - "required": ["virtualDirectoryName", "numberOfFilesUploaded"], + "required": [ + "virtualDirectoryName", + "numberOfFilesUploaded" + ], "title": "The result of uploading Batch service log files from a specific compute node." }, "PoolNodeCountsListResult": { diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/AccountListNodeAgentSkus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/AccountListNodeAgentSkus.json index bb933a1972f3..2fcf949f1eb6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/AccountListNodeAgentSkus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/AccountListNodeAgentSkus.json @@ -60,4 +60,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/AccountListPoolNodeCounts.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/AccountListPoolNodeCounts.json index 1e7c4371b0bb..3b005c21169d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/AccountListPoolNodeCounts.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/AccountListPoolNodeCounts.json @@ -13,7 +13,7 @@ "dedicated": { "creating": 0, "idle": 0, - "leavingpool": 0, + "leavingPool": 0, "offline": 0, "preempted": 0, "rebooting": 0, @@ -29,7 +29,7 @@ "lowPriority": { "creating": 0, "idle": 0, - "leavingpool": 0, + "leavingPool": 0, "offline": 0, "preempted": 0, "rebooting": 0, @@ -48,7 +48,7 @@ "dedicated": { "creating": 0, "idle": 1, - "leavingpool": 0, + "leavingPool": 0, "offline": 3, "preempted": 0, "rebooting": 0, @@ -64,7 +64,7 @@ "lowPriority": { "creating": 0, "idle": 0, - "leavingpool": 0, + "leavingPool": 0, "offline": 0, "preempted": 0, "rebooting": 0, @@ -83,7 +83,7 @@ "dedicated": { "creating": 0, "idle": 5, - "leavingpool": 0, + "leavingPool": 0, "offline": 0, "preempted": 0, "rebooting": 0, @@ -99,7 +99,7 @@ "lowPriority": { "creating": 7, "idle": 0, - "leavingpool": 0, + "leavingPool": 0, "offline": 0, "preempted": 0, "rebooting": 0, @@ -117,4 +117,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/ApplicationGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/ApplicationGet.json index 53b87cb78b15..40ebabf8864e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/ApplicationGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/ApplicationGet.json @@ -8,12 +8,12 @@ "responses": { "200": { "body": { - "id": "my_application_id", - "versions": [ - "v1.0" - ], - "displayName": "my_display_name" + "id": "my_application_id", + "versions": [ + "v1.0" + ], + "displayName": "my_display_name" } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/ApplicationList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/ApplicationList.json index c61f845a3b9f..7fb0996dc826 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/ApplicationList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/ApplicationList.json @@ -19,4 +19,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateAdd.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateAdd.json index b92489ec936b..c439a83fe5fc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateAdd.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateAdd.json @@ -4,16 +4,14 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "certificate": { - "thumbprintAlgorithm":"sha1", - "thumbprint":"0123456789abcdef0123456789abcdef01234567", - "data":"#####...", - "certificateFormat":"pfx", - "password":"certpassword" + "thumbprintAlgorithm": "sha1", + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "data": "#####...", + "certificateFormat": "pfx", + "password": "certpassword" } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateCancelDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateCancelDelete.json index d7cc675afcd8..a4941fd9614e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateCancelDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateCancelDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateDelete.json index 8ab72b7ff199..b7b1539c49fa 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateGet.json index c5ded986307b..83c16ba407e2 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateGet.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateList.json index 9c4dee480d85..04f15e9b0043 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/CertificateList.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileDeleteFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileDeleteFromNode.json index 1dbad9f1795b..6f8df54c331e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileDeleteFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileDeleteFromNode.json @@ -9,8 +9,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileDeleteFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileDeleteFromTask.json index a4e8cbfb8633..b0dc49f92c9d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileDeleteFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileDeleteFromTask.json @@ -9,8 +9,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetFromNode.json index ce3d8e6e081b..ca79c4895762 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetFromNode.json @@ -17,4 +17,4 @@ "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetFromTask.json index e5e82c8492a1..9c0216219425 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetFromTask.json @@ -17,4 +17,4 @@ "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetPropertiesFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetPropertiesFromNode.json index 55982f2b88c6..908edbe13b0c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetPropertiesFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetPropertiesFromNode.json @@ -9,12 +9,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetPropertiesFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetPropertiesFromTask.json index 84dcb6d15457..27291ea7dfab 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetPropertiesFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileGetPropertiesFromTask.json @@ -9,12 +9,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileListFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileListFromNode.json index 5791cfda91c1..c81db379979b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileListFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileListFromNode.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileListFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileListFromTask.json index 8d884f98a2bd..e2ef96a96684 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileListFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/FileListFromTask.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobAdd_Basic.json index f149e8fffb9b..16f5a0acdb38 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobAdd_Basic.json @@ -12,8 +12,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobAdd_Complex.json index fee6435cc74f..7194c0d85178 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobAdd_Complex.json @@ -35,7 +35,7 @@ "retentionTime": "PT1H" }, "killJobOnCompletion": false, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -76,7 +76,7 @@ "value": "myvalue" } ], - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -114,8 +114,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobDelete.json index 8e02f7686faf..b71d04fc7606 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobDisable.json index 8eaafc21a608..53c40f279df8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobDisable.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobEnable.json index 8e02f7686faf..b71d04fc7606 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobEnable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobGet.json index d5086fb34ac7..3c3189ba25bc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobGet.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobGetLifetimeStatistics.json index ff53de0067a1..2f8a4635f86d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobGetLifetimeStatistics.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimejobstats", + "url": "https://account.region.batch.core.windows.net/lifetimejobstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "userCPUTime": "PT0S", @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobGetTaskCounts.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobGetTaskCounts.json index 66d8447220f6..8dbad588e431 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobGetTaskCounts.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobGetTaskCounts.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobList.json index 953d3f7d0e12..3ef7de336112 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobList.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobListFromJobSchedule.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobListFromJobSchedule.json index eaefff3b865a..c2b82cbf0503 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobListFromJobSchedule.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobListFromJobSchedule.json @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobListPreparationAndReleaseTaskStatus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobListPreparationAndReleaseTaskStatus.json index 17ecc61bb281..d7c084af7b46 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobListPreparationAndReleaseTaskStatus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobListPreparationAndReleaseTaskStatus.json @@ -36,4 +36,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobPatch.json index e658a182c2c4..ed85afdb6419 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobPatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobPatch.json @@ -5,19 +5,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "jobPatchParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleAdd_Basic.json index 95a44125645a..3a372d80c790 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleAdd_Basic.json @@ -6,7 +6,7 @@ "cloudJobSchedule": { "id": "jobScheduleId", "schedule": { - "recurrenceInterval":"PT5M" + "recurrenceInterval": "PT5M" }, "jobSpecification": { "poolInfo": { @@ -16,8 +16,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleAdd_Complex.json index 041985629310..7562af40295b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleAdd_Complex.json @@ -122,8 +122,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleDelete.json index 7408cdd90f59..ec5bd3879583 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleDisable.json index ec33b1914469..6a00ad39c8bf 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleDisable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleEnable.json index ec33b1914469..6a00ad39c8bf 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleEnable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleExists.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleExists.json index eb9e6a454a02..77df02bee7b3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleExists.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleExists.json @@ -6,11 +6,7 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - }, - "404": { - "body": "" - } + "200": {}, + "404": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleGet.json index 2dade9fbc322..9665f482d4ea 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleGet.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleList.json index 201bc6c3c3e2..7ad1ba24e2f1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleList.json @@ -70,4 +70,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobSchedulePatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobSchedulePatch.json index 4840b235ca73..a293b43b2002 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobSchedulePatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobSchedulePatch.json @@ -22,8 +22,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleTerminate.json index 7408cdd90f59..ec5bd3879583 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleTerminate.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleUpdate.json index 80d8ca0cd182..6a7936b20f22 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobScheduleUpdate.json @@ -22,8 +22,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobTerminate.json index 9879d272935f..d4c180515881 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobTerminate.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobUpdate.json index bb8efbb0c186..799da150033a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/JobUpdate.json @@ -5,19 +5,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "jobUpdateParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeAddUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeAddUser.json index 271564220174..21a0ec87577f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeAddUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeAddUser.json @@ -13,8 +13,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeDeleteUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeDeleteUser.json index 6e0a2dbe1226..a6a54125bfd7 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeDeleteUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeDeleteUser.json @@ -8,8 +8,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeDisableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeDisableScheduling.json index 3926338b83af..caa88a28fa1f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeDisableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeDisableScheduling.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeEnableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeEnableScheduling.json index f9d1607169ab..93925bffe8da 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeEnableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeEnableScheduling.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeGetRemoteDesktop.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeGetRemoteDesktop.json index 84f7954819fa..47c6208378db 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeGetRemoteDesktop.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeGetRemoteDesktop.json @@ -11,4 +11,4 @@ "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeGetRemoteLoginSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeGetRemoteLoginSettings.json index 068c699c3de4..ad3bcb1da15c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeGetRemoteLoginSettings.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeGetRemoteLoginSettings.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeGet_Basic.json index d30f2f86979d..227b230fa725 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeGet_Basic.json @@ -25,7 +25,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -44,4 +44,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeList.json index e9f776af3117..4d8b0694a52c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeList.json @@ -26,7 +26,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -60,7 +60,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -94,7 +94,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -115,4 +115,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeReboot.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeReboot.json index 094a82107962..c11093308117 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeReboot.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeReboot.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeReimage.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeReimage.json index b5a3a4f8b97b..50837a1cac9b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeReimage.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeReimage.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeUpdateUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeUpdateUser.json index 028c6a3b779d..8b9d7880b225 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeUpdateUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeUpdateUser.json @@ -12,8 +12,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeUploadBatchServiceLogs.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeUploadBatchServiceLogs.json index c0600c31ce46..34a370cd606b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeUploadBatchServiceLogs.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/NodeUploadBatchServiceLogs.json @@ -13,9 +13,9 @@ "responses": { "200": { "body": { - "virtualDirectoryName": "poolId/tvm-1695681911-1-20161121t182739z/0795539d-82fe-48e3-bbff-2964905b6de0", - "numberOfFilesUploaded": 8 + "virtualDirectoryName": "poolId/tvm-1695681911-1-20161121t182739z/0795539d-82fe-48e3-bbff-2964905b6de0", + "numberOfFilesUploaded": 8 } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolAdd_CloudServiceConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolAdd_CloudServiceConfiguration.json index bc016dc5d9dc..37323f269ae1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolAdd_CloudServiceConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolAdd_CloudServiceConfiguration.json @@ -9,19 +9,21 @@ "cloudServiceConfiguration": { "osFamily": "4" }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -31,4 +33,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolAdd_VirtualMachineConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolAdd_VirtualMachineConfiguration.json index 1402b959ae80..68f607bc9d21 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolAdd_VirtualMachineConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolAdd_VirtualMachineConfiguration.json @@ -14,19 +14,21 @@ }, "nodeAgentSKUId": "batch.node.ubuntu 16.04" }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -36,4 +38,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json index 23274234f5e9..5e793c1490f3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json @@ -20,14 +20,14 @@ ] } }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false + "enableAutoScale": false } }, "responses": { @@ -37,4 +37,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolDelete.json index 7500702af431..412130415f35 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolDisableAutoScale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolDisableAutoScale.json index 7b653552b417..8af64ba35c0f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolDisableAutoScale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolDisableAutoScale.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolEnableAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolEnableAutoscale.json index e58e34bed2cc..a0ed2ab2ee7d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolEnableAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolEnableAutoscale.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolEvaluateAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolEvaluateAutoscale.json index 38d6173b6b84..e3697e4e1fd7 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolEvaluateAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolEvaluateAutoscale.json @@ -16,4 +16,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolExists.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolExists.json index 947ef17c2d15..9e1a556ce8d6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolExists.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolExists.json @@ -6,11 +6,7 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - }, - "404": { - "body": "" - } + "200": {}, + "404": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolGetLifetimeStatistics.json index b1542db842af..8783baf85c40 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolGetLifetimeStatistics.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimepoolstats", + "url": "https://account.region.batch.core.windows.net/lifetimepoolstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "usageStats": { @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolGet_Basic.json index accd6a7ece74..80775705a2db 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolGet_Basic.json @@ -27,7 +27,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "/bin/bash -c 'echo start task'", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -52,4 +52,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolListUsageMetrics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolListUsageMetrics.json index 1123eb981554..75cab527b021 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolListUsageMetrics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolListUsageMetrics.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolList_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolList_Basic.json index cdbace7ce36f..445745598f3b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolList_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolList_Basic.json @@ -28,7 +28,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -51,4 +51,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolPatch.json index 16223b75f16f..50693e1a9146 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolPatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolPatch.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolRemoveNodes.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolRemoveNodes.json index 23eb37df5aec..9e9ff219f56c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolRemoveNodes.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolRemoveNodes.json @@ -12,8 +12,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolResize.json index 8b9fb30fb734..626f5568a5fe 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolResize.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolStopResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolStopResize.json index 7500702af431..412130415f35 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolStopResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolStopResize.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolUpdate.json index b0af85dcf205..dde6b0a23c42 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolUpdate.json @@ -14,8 +14,6 @@ } }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolUpgradeOS.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolUpgradeOS.json index f2a417c79add..722c09864e51 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolUpgradeOS.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/PoolUpgradeOS.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAddCollection_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAddCollection_Basic.json index acc8f87da7f4..02f6798ec25e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAddCollection_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAddCollection_Basic.json @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAddCollection_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAddCollection_Complex.json index 9fb6476f0f64..d46dbcc2f94d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAddCollection_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAddCollection_Complex.json @@ -73,4 +73,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAdd_Basic.json index 9571a6e655ca..a0c67a82d06a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAdd_Basic.json @@ -10,8 +10,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAdd_ContainerSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAdd_ContainerSettings.json index d428c906e5e9..4884f8d3c14e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAdd_ContainerSettings.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAdd_ContainerSettings.json @@ -11,7 +11,7 @@ "imageName": "ubuntu", "containerRunOptions": "--rm" }, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -20,8 +20,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAdd_ExitConditions.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAdd_ExitConditions.json index 1e97fb568908..b67b23cf0189 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAdd_ExitConditions.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskAdd_ExitConditions.json @@ -18,7 +18,7 @@ } ] }, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -27,8 +27,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskDelete.json index 3b8458331555..03bb72b1e6c2 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskGet.json index 346f009e7ed0..936a4cb32e73 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskGet.json @@ -17,7 +17,7 @@ "state": "active", "stateTransitionTime": "2016-09-06T06:59:15.1161429Z", "commandLine": "cmd /c hostname", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskList.json index 23356a9d6c11..4d710ecadfbc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskList.json @@ -18,7 +18,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.4733476Z", "commandLine": "cmd /c echo task1", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -43,7 +43,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.6736345Z", "commandLine": "cmd /c echo task2", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -63,4 +63,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskListSubtasks.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskListSubtasks.json index 2c060543cc74..c6b1df47c93d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskListSubtasks.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskListSubtasks.json @@ -46,4 +46,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskReactivate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskReactivate.json index b17934cd0ed8..aa92e0c98ddc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskReactivate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskReactivate.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskTerminate.json index b17934cd0ed8..aa92e0c98ddc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskTerminate.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskUpdate.json index 0d7568ffdcea..d5f4609eb7ae 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-03-01.6.1/examples/TaskUpdate.json @@ -7,15 +7,13 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "taskUpdateParameter": { "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":3, - "retentionTime":"PT1H" + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 3, + "retentionTime": "PT1H" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/BatchService.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/BatchService.json index d642e24b6a04..c1fab650cae8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/BatchService.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/BatchService.json @@ -29,7 +29,9 @@ }, "operationId": "Application_List", "x-ms-examples": { - "List applications": { "$ref": "./examples/ApplicationList.json" } + "List applications": { + "$ref": "./examples/ApplicationList.json" + } }, "summary": "Lists all of the applications available in the specified account.", "description": "This operation returns only applications and versions that are available for use on compute nodes; that is, that can be used in an application package reference. For administrator information about applications and versions that are not yet available to compute nodes, use the Azure portal or the Azure Resource Manager API.", @@ -144,7 +146,9 @@ ], "operationId": "Application_Get", "x-ms-examples": { - "Get applications": { "$ref": "./examples/ApplicationGet.json" } + "Get applications": { + "$ref": "./examples/ApplicationGet.json" + } }, "summary": "Gets information about the specified application.", "description": "This operation returns only applications and versions that are available for use on compute nodes; that is, that can be used in an application package reference. For administrator information about applications and versions that are not yet available to compute nodes, use the Azure portal or the Azure Resource Manager API.", @@ -254,7 +258,9 @@ }, "operationId": "Pool_ListUsageMetrics", "x-ms-examples": { - "Pool list usage metrics": { "$ref": "./examples/PoolListUsageMetrics.json" } + "Pool list usage metrics": { + "$ref": "./examples/PoolListUsageMetrics.json" + } }, "summary": "Lists the usage metrics, aggregated by pool across individual time intervals, for the specified account.", "description": "If you do not specify a $filter clause including a poolId, the response includes all pools that existed in the account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.", @@ -406,7 +412,9 @@ }, "operationId": "Account_ListNodeAgentSkus", "x-ms-examples": { - "Account list node agent skus": { "$ref": "./examples/AccountListNodeAgentSkus.json" } + "Account list node agent skus": { + "$ref": "./examples/AccountListNodeAgentSkus.json" + } }, "summary": "Lists all node agent SKUs supported by the Azure Batch service.", "x-ms-request-id": "request-id", @@ -534,7 +542,9 @@ "operationId": "Account_ListPoolNodeCounts", "description": "Gets the number of nodes in each state, grouped by pool.", "x-ms-examples": { - "NodeCountsPayload": { "$ref": "./examples/AccountListPoolNodeCounts.json" } + "NodeCountsPayload": { + "$ref": "./examples/AccountListPoolNodeCounts.json" + } }, "parameters": [ { @@ -647,7 +657,9 @@ ], "operationId": "Pool_GetAllLifetimeStatistics", "x-ms-examples": { - "Pool get lifetime statistics": { "$ref": "./examples/PoolGetLifetimeStatistics.json" } + "Pool get lifetime statistics": { + "$ref": "./examples/PoolGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the pools in the specified account.", "description": "Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.", @@ -747,7 +759,9 @@ ], "operationId": "Job_GetAllLifetimeStatistics", "x-ms-examples": { - "Job get lifetime statistics": { "$ref": "./examples/JobGetLifetimeStatistics.json" } + "Job get lifetime statistics": { + "$ref": "./examples/JobGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the jobs in the specified account.", "description": "Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.", @@ -847,7 +861,9 @@ ], "operationId": "Certificate_Add", "x-ms-examples": { - "Certificate add": { "$ref": "./examples/CertificateAdd.json" } + "Certificate add": { + "$ref": "./examples/CertificateAdd.json" + } }, "summary": "Adds a certificate to the specified account.", "x-ms-request-id": "request-id", @@ -957,7 +973,9 @@ }, "operationId": "Certificate_List", "x-ms-examples": { - "Certificate list": { "$ref": "./examples/CertificateList.json" } + "Certificate list": { + "$ref": "./examples/CertificateList.json" + } }, "summary": "Lists all of the certificates that have been added to the specified account.", "x-ms-request-id": "request-id", @@ -1091,7 +1109,9 @@ ], "operationId": "Certificate_CancelDeletion", "x-ms-examples": { - "Certificate cancel delete": { "$ref": "./examples/CertificateCancelDelete.json" } + "Certificate cancel delete": { + "$ref": "./examples/CertificateCancelDelete.json" + } }, "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.", @@ -1206,7 +1226,9 @@ ], "operationId": "Certificate_Delete", "x-ms-examples": { - "Certificate delete": { "$ref": "./examples/CertificateDelete.json" } + "Certificate delete": { + "$ref": "./examples/CertificateDelete.json" + } }, "summary": "Deletes a certificate from the specified account.", "description": "You cannot delete a certificate if a resource (pool or compute node) is using it. Before you can delete a certificate, you must therefore make sure that the certificate is not associated with any existing pools, the certificate is not installed on any compute nodes (even if you remove a certificate from a pool, it is not removed from existing compute nodes in that pool until they restart), and no running tasks depend on the certificate. If you try to delete a certificate that is in use, the deletion fails. The certificate status changes to deleteFailed. You can use Cancel Delete Certificate to set the status back to active if you decide that you want to continue using the certificate.", @@ -1315,7 +1337,9 @@ ], "operationId": "Certificate_Get", "x-ms-examples": { - "Certificate get": { "$ref": "./examples/CertificateGet.json" } + "Certificate get": { + "$ref": "./examples/CertificateGet.json" + } }, "description": "Gets information about the specified certificate.", "x-ms-request-id": "request-id", @@ -1438,7 +1462,9 @@ ], "operationId": "File_DeleteFromTask", "x-ms-examples": { - "File delete from task": { "$ref": "./examples/FileDeleteFromTask.json" } + "File delete from task": { + "$ref": "./examples/FileDeleteFromTask.json" + } }, "summary": "Deletes the specified task file from the compute node where the task ran.", "x-ms-request-id": "request-id", @@ -1549,7 +1575,9 @@ ], "operationId": "File_GetFromTask", "x-ms-examples": { - "Get File From Task": { "$ref": "./examples/FileGetFromTask.json" } + "Get File From Task": { + "$ref": "./examples/FileGetFromTask.json" + } }, "description": "Returns the content of the specified task file.", "x-ms-request-id": "request-id", @@ -1730,7 +1758,9 @@ ], "operationId": "File_GetPropertiesFromTask", "x-ms-examples": { - "File get properties from task": { "$ref": "./examples/FileGetPropertiesFromTask.json" } + "File get properties from task": { + "$ref": "./examples/FileGetPropertiesFromTask.json" + } }, "description": "Gets the properties of the specified task file.", "x-ms-request-id": "request-id", @@ -1895,7 +1925,9 @@ ], "operationId": "File_DeleteFromComputeNode", "x-ms-examples": { - "File delete from node": { "$ref": "./examples/FileDeleteFromNode.json" } + "File delete from node": { + "$ref": "./examples/FileDeleteFromNode.json" + } }, "summary": "Deletes the specified file from the compute node.", "x-ms-request-id": "request-id", @@ -2006,7 +2038,9 @@ ], "operationId": "File_GetFromComputeNode", "x-ms-examples": { - "Get File From Compute Node": { "$ref": "./examples/FileGetFromNode.json" } + "Get File From Compute Node": { + "$ref": "./examples/FileGetFromNode.json" + } }, "description": "Returns the content of the specified compute node file.", "x-ms-request-id": "request-id", @@ -2187,7 +2221,9 @@ ], "operationId": "File_GetPropertiesFromComputeNode", "x-ms-examples": { - "File get properties from node": { "$ref": "./examples/FileGetPropertiesFromNode.json" } + "File get properties from node": { + "$ref": "./examples/FileGetPropertiesFromNode.json" + } }, "description": "Gets the properties of the specified compute node file.", "x-ms-request-id": "request-id", @@ -2355,7 +2391,9 @@ }, "operationId": "File_ListFromTask", "x-ms-examples": { - "File list from task": { "$ref": "./examples/FileListFromTask.json" } + "File list from task": { + "$ref": "./examples/FileListFromTask.json" + } }, "summary": "Lists the files in a task's directory on its compute node.", "x-ms-request-id": "request-id", @@ -2503,7 +2541,9 @@ }, "operationId": "File_ListFromComputeNode", "x-ms-examples": { - "File list from node": { "$ref": "./examples/FileListFromNode.json" } + "File list from node": { + "$ref": "./examples/FileListFromNode.json" + } }, "summary": "Lists all of the files in task directories on the specified compute node.", "x-ms-request-id": "request-id", @@ -2648,7 +2688,9 @@ ], "operationId": "JobSchedule_Exists", "x-ms-examples": { - "Check Job Schedule Exists": { "$ref": "./examples/JobScheduleExists.json" } + "Check Job Schedule Exists": { + "$ref": "./examples/JobScheduleExists.json" + } }, "summary": "Checks the specified job schedule exists.", "x-ms-request-id": "request-id", @@ -2794,7 +2836,9 @@ ], "operationId": "JobSchedule_Delete", "x-ms-examples": { - "JobSchedule delete": { "$ref": "./examples/JobScheduleDelete.json" } + "JobSchedule delete": { + "$ref": "./examples/JobScheduleDelete.json" + } }, "summary": "Deletes a job schedule from the specified account.", "description": "When you delete a job schedule, this also deletes all jobs and tasks under that schedule. When tasks are deleted, all the files in their working directories on the compute nodes are also deleted (the retention period is ignored). The job schedule statistics are no longer accessible once the job schedule is deleted, though they are still counted towards account lifetime statistics.", @@ -2927,7 +2971,9 @@ ], "operationId": "JobSchedule_Get", "x-ms-examples": { - "JobSchedule get": { "$ref": "./examples/JobScheduleGet.json" } + "JobSchedule get": { + "$ref": "./examples/JobScheduleGet.json" + } }, "description": "Gets information about the specified job schedule.", "x-ms-request-id": "request-id", @@ -3093,7 +3139,9 @@ ], "operationId": "JobSchedule_Patch", "x-ms-examples": { - "JobSchedule patch": { "$ref": "./examples/JobSchedulePatch.json" } + "JobSchedule patch": { + "$ref": "./examples/JobSchedulePatch.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This replaces only the job schedule properties specified in the request. For example, if the schedule property is not specified with this request, then the Batch service will keep the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3250,7 +3298,9 @@ ], "operationId": "JobSchedule_Update", "x-ms-examples": { - "JobSchedule update": { "$ref": "./examples/JobScheduleUpdate.json" } + "JobSchedule update": { + "$ref": "./examples/JobScheduleUpdate.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This fully replaces all the updatable properties of the job schedule. For example, if the schedule property is not specified with this request, then the Batch service will remove the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3409,7 +3459,9 @@ ], "operationId": "JobSchedule_Disable", "x-ms-examples": { - "JobSchedule disable": { "$ref": "./examples/JobScheduleDisable.json" } + "JobSchedule disable": { + "$ref": "./examples/JobScheduleDisable.json" + } }, "summary": "Disables a job schedule.", "description": "No new jobs will be created until the job schedule is enabled again.", @@ -3559,7 +3611,9 @@ ], "operationId": "JobSchedule_Enable", "x-ms-examples": { - "JobSchedule enable": { "$ref": "./examples/JobScheduleEnable.json" } + "JobSchedule enable": { + "$ref": "./examples/JobScheduleEnable.json" + } }, "summary": "Enables a job schedule.", "x-ms-request-id": "request-id", @@ -3708,7 +3762,9 @@ ], "operationId": "JobSchedule_Terminate", "x-ms-examples": { - "JobSchedule terminate": { "$ref": "./examples/JobScheduleTerminate.json" } + "JobSchedule terminate": { + "$ref": "./examples/JobScheduleTerminate.json" + } }, "summary": "Terminates a job schedule.", "x-ms-request-id": "request-id", @@ -3857,8 +3913,12 @@ ], "operationId": "JobSchedule_Add", "x-ms-examples": { - "Add a basic JobSchedule": { "$ref": "./examples/JobScheduleAdd_Basic.json" }, - "Add a complex JobScheduleAdd": { "$ref": "./examples/JobScheduleAdd_Complex.json" } + "Add a basic JobSchedule": { + "$ref": "./examples/JobScheduleAdd_Basic.json" + }, + "Add a complex JobScheduleAdd": { + "$ref": "./examples/JobScheduleAdd_Complex.json" + } }, "summary": "Adds a job schedule to the specified account.", "x-ms-request-id": "request-id", @@ -3968,7 +4028,9 @@ }, "operationId": "JobSchedule_List", "x-ms-examples": { - "JobSchedule list": { "$ref": "./examples/JobScheduleList.json" } + "JobSchedule list": { + "$ref": "./examples/JobScheduleList.json" + } }, "summary": "Lists all of the job schedules in the specified account.", "x-ms-request-id": "request-id", @@ -4112,7 +4174,9 @@ ], "operationId": "Job_Delete", "x-ms-examples": { - "Delete Job": { "$ref": "./examples/JobDelete.json" } + "Delete Job": { + "$ref": "./examples/JobDelete.json" + } }, "summary": "Deletes a job.", "description": "Deleting a job also deletes all tasks that are part of that job, and all job statistics. This also overrides the retention period for task data; that is, if the job contains tasks which are still retained on compute nodes, the Batch services deletes those tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the job to the deleting state. All update operations on a job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the job is being deleted.", @@ -4245,7 +4309,9 @@ ], "operationId": "Job_Get", "x-ms-examples": { - "Job get": { "$ref": "./examples/JobGet.json" } + "Job get": { + "$ref": "./examples/JobGet.json" + } }, "summary": "Gets information about the specified job.", "x-ms-request-id": "request-id", @@ -4411,7 +4477,9 @@ ], "operationId": "Job_Patch", "x-ms-examples": { - "Job patch": { "$ref": "./examples/JobPatch.json" } + "Job patch": { + "$ref": "./examples/JobPatch.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This replaces only the job properties specified in the request. For example, if the job has constraints, and a request does not specify the constraints element, then the job keeps the existing constraints.", @@ -4568,7 +4636,9 @@ ], "operationId": "Job_Update", "x-ms-examples": { - "Job update": { "$ref": "./examples/JobUpdate.json" } + "Job update": { + "$ref": "./examples/JobUpdate.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.", @@ -4727,7 +4797,9 @@ ], "operationId": "Job_Disable", "x-ms-examples": { - "Job disable": { "$ref": "./examples/JobDisable.json" } + "Job disable": { + "$ref": "./examples/JobDisable.json" + } }, "summary": "Disables the specified job, preventing new tasks from running.", "description": "The Batch Service immediately moves the job to the disabling state. Batch then uses the disableTasks parameter to determine what to do with the currently running tasks of the job. The job remains in the disabling state until the disable operation is completed and all tasks have been dealt with according to the disableTasks option; the job then moves to the disabled state. No new tasks are started under the job until it moves back to active state. If you try to disable a job that is in any state other than active, disabling, or disabled, the request fails with status code 409.", @@ -4886,7 +4958,9 @@ ], "operationId": "Job_Enable", "x-ms-examples": { - "Job enable": { "$ref": "./examples/JobEnable.json" } + "Job enable": { + "$ref": "./examples/JobEnable.json" + } }, "summary": "Enables the specified job, allowing new tasks to run.", "description": "When you call this API, the Batch service sets a disabled job to the enabling state. After the this operation is completed, the job moves to the active state, and scheduling of new tasks under the job resumes. The Batch service does not allow a task to remain in the active state for more than 7 days. Therefore, if you enable a job containing active tasks which were added more than 7 days ago, those tasks will not run.", @@ -5036,7 +5110,9 @@ ], "operationId": "Job_Terminate", "x-ms-examples": { - "Job terminate": { "$ref": "./examples/JobTerminate.json" } + "Job terminate": { + "$ref": "./examples/JobTerminate.json" + } }, "summary": "Terminates the specified job, marking it as completed.", "description": "When a Terminate Job request is received, the Batch service sets the job to the terminating state. The Batch service then terminates any running tasks associated with the job and runs any required job release tasks. Then the job moves into the completed state. If there are any tasks in the job in the active state, they will remain in the active state. Once a job is terminated, new tasks cannot be added and any remaining active tasks will not be scheduled.", @@ -5195,8 +5271,12 @@ ], "operationId": "Job_Add", "x-ms-examples": { - "Add a basic job": { "$ref": "./examples/JobAdd_Basic.json" }, - "Add a complex job": { "$ref": "./examples/JobAdd_Complex.json" } + "Add a basic job": { + "$ref": "./examples/JobAdd_Basic.json" + }, + "Add a complex job": { + "$ref": "./examples/JobAdd_Complex.json" + } }, "summary": "Adds a job to the specified account.", "description": "The Batch service supports two ways to control the work done as part of a job. In the first approach, the user specifies a Job Manager task. The Batch service launches this task when it is ready to start the job. The Job Manager task controls all other tasks that run under this job, by using the Task APIs. In the second approach, the user directly controls the execution of tasks under an active job, by using the Task APIs. Also note: when naming jobs, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5307,7 +5387,9 @@ }, "operationId": "Job_List", "x-ms-examples": { - "Job list": { "$ref": "./examples/JobList.json" } + "Job list": { + "$ref": "./examples/JobList.json" + } }, "summary": "Lists all of the jobs in the specified account.", "x-ms-request-id": "request-id", @@ -5453,7 +5535,9 @@ "nextLinkName": "odata.nextLink" }, "x-ms-examples": { - "List Job Under Job Schedule": { "$ref": "./examples/JobListFromJobSchedule.json" } + "List Job Under Job Schedule": { + "$ref": "./examples/JobListFromJobSchedule.json" + } }, "operationId": "Job_ListFromJobSchedule", "summary": "Lists the jobs that have been created under the specified job schedule.", @@ -5608,7 +5692,9 @@ }, "operationId": "Job_ListPreparationAndReleaseTaskStatus", "x-ms-examples": { - "Job list preparation and release task status": { "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" } + "Job list preparation and release task status": { + "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" + } }, "summary": "Lists the execution status of the Job Preparation and Job Release task for the specified job across the compute nodes where the job has run.", "description": "This API returns the Job Preparation and Job Release task status on all compute nodes that have run the Job Preparation or Job Release task. This includes nodes which have since been removed from the pool. If this API is invoked on a job which has no Job Preparation or Job Release task, the Batch service returns HTTP status code 409 (Conflict) with an error code of JobPreparationTaskNotSpecified.", @@ -5750,7 +5836,9 @@ ], "operationId": "Job_GetTaskCounts", "x-ms-examples": { - "Job get task counts": { "$ref": "./examples/JobGetTaskCounts.json" } + "Job get task counts": { + "$ref": "./examples/JobGetTaskCounts.json" + } }, "summary": "Gets the task counts for the specified job.", "description": "Task counts provide a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. Tasks in the preparing state are counted as running.", @@ -5848,9 +5936,15 @@ ], "operationId": "Pool_Add", "x-ms-examples": { - "Add a CloudServiceConfiguration pool": { "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" }, - "Add a VirtualMachineConfiguration pool": { "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" }, - "Add a VirtualMachineConfiguration pool with containers": { "$ref": "./examples/PoolAdd_VirtualMachineConfigurationWithContainers.json" } + "Add a CloudServiceConfiguration pool": { + "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool": { + "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool with containers": { + "$ref": "./examples/PoolAdd_VirtualMachineConfigurationWithContainers.json" + } }, "summary": "Adds a pool to the specified account.", "description": "When naming pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5961,7 +6055,9 @@ }, "operationId": "Pool_List", "x-ms-examples": { - "Pool list": { "$ref": "./examples/PoolList_Basic.json" } + "Pool list": { + "$ref": "./examples/PoolList_Basic.json" + } }, "summary": "Lists all of the pools in the specified account.", "x-ms-request-id": "request-id", @@ -6105,7 +6201,9 @@ ], "operationId": "Pool_Delete", "x-ms-examples": { - "Pool delete": { "$ref": "./examples/PoolDelete.json" } + "Pool delete": { + "$ref": "./examples/PoolDelete.json" + } }, "summary": "Deletes a pool from the specified account.", "description": "When you request that a pool be deleted, the following actions occur: the pool state is set to deleting; any ongoing resize operation on the pool are stopped; the Batch service starts resizing the pool to zero nodes; any tasks running on existing nodes are terminated and requeued (as if a resize pool operation had been requested with the default requeue option); finally, the pool is removed from the system. Because running tasks are requeued, the user can rerun these tasks by updating their job to target a different pool. The tasks can then run on the new pool. If you want to override the requeue behavior, then you should call resize pool explicitly to shrink the pool to zero size before deleting the pool. If you call an Update, Patch or Delete API on a pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.", @@ -6238,7 +6336,9 @@ ], "operationId": "Pool_Exists", "x-ms-examples": { - "Check Pool Exists": { "$ref": "./examples/PoolExists.json" } + "Check Pool Exists": { + "$ref": "./examples/PoolExists.json" + } }, "description": "Gets basic properties of a pool.", "x-ms-request-id": "request-id", @@ -6384,7 +6484,9 @@ ], "operationId": "Pool_Get", "x-ms-examples": { - "Pool get": { "$ref": "./examples/PoolGet_Basic.json" } + "Pool get": { + "$ref": "./examples/PoolGet_Basic.json" + } }, "description": "Gets information about the specified pool.", "x-ms-request-id": "request-id", @@ -6550,7 +6652,9 @@ ], "operationId": "Pool_Patch", "x-ms-examples": { - "Patch the Pool": { "$ref": "./examples/PoolPatch.json" } + "Patch the Pool": { + "$ref": "./examples/PoolPatch.json" + } }, "summary": "Updates the properties of the specified pool.", "description": "This only replaces the pool properties specified in the request. For example, if the pool has a start task associated with it, and a request does not specify a start task element, then the pool keeps the existing start task.", @@ -6709,7 +6813,9 @@ ], "operationId": "Pool_DisableAutoScale", "x-ms-examples": { - "Disable pool autoscale": { "$ref": "./examples/PoolDisableAutoScale.json" } + "Disable pool autoscale": { + "$ref": "./examples/PoolDisableAutoScale.json" + } }, "summary": "Disables automatic scaling for a pool.", "x-ms-request-id": "request-id", @@ -6816,7 +6922,9 @@ ], "operationId": "Pool_EnableAutoScale", "x-ms-examples": { - "Pool enable autoscale": { "$ref": "./examples/PoolEnableAutoscale.json" } + "Pool enable autoscale": { + "$ref": "./examples/PoolEnableAutoscale.json" + } }, "summary": "Enables automatic scaling for a pool.", "description": "You cannot enable automatic scaling on a pool if a resize operation is in progress on the pool. If automatic scaling of the pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same pool more than once every 30 seconds.", @@ -6975,7 +7083,9 @@ ], "operationId": "Pool_EvaluateAutoScale", "x-ms-examples": { - "Pool evaluate autoscale": { "$ref": "./examples/PoolEvaluateAutoscale.json" } + "Pool evaluate autoscale": { + "$ref": "./examples/PoolEvaluateAutoscale.json" + } }, "summary": "Gets the result of evaluating an automatic scaling formula on the pool.", "description": "This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the pool. The pool must have auto scaling enabled in order to evaluate a formula.", @@ -7095,7 +7205,9 @@ ], "operationId": "Pool_Resize", "x-ms-examples": { - "Pool resize": { "$ref": "./examples/PoolResize.json" } + "Pool resize": { + "$ref": "./examples/PoolResize.json" + } }, "summary": "Changes the number of compute nodes that are assigned to a pool.", "description": "You can only resize a pool when its allocation state is steady. If the pool is already resizing, the request fails with status code 409. When you resize a pool, the pool's allocation state changes from steady to resizing. You cannot resize pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a pool downwards, the Batch service chooses which nodes to remove. To remove specific nodes, use the pool remove nodes API instead.", @@ -7254,7 +7366,9 @@ ], "operationId": "Pool_StopResize", "x-ms-examples": { - "Pool stop resize": { "$ref": "./examples/PoolStopResize.json" } + "Pool stop resize": { + "$ref": "./examples/PoolStopResize.json" + } }, "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.", @@ -7404,7 +7518,9 @@ ], "operationId": "Pool_UpdateProperties", "x-ms-examples": { - "Pool update": { "$ref": "./examples/PoolUpdate.json" } + "Pool update": { + "$ref": "./examples/PoolUpdate.json" + } }, "summary": "Updates the properties of the specified pool.", "description": "This fully replaces all the updatable properties of the pool. For example, if the pool has a start task associated with it and if start task is not specified with this request, then the Batch service will remove the existing start task.", @@ -7521,7 +7637,9 @@ ], "operationId": "Pool_UpgradeOS", "x-ms-examples": { - "Upgrade OS of the pool": { "$ref": "./examples/PoolUpgradeOS.json" } + "Upgrade OS of the pool": { + "$ref": "./examples/PoolUpgradeOS.json" + } }, "summary": "Upgrades the operating system of the specified pool.", "description": "During an upgrade, the Batch service upgrades each compute node in the pool. When a compute node is chosen for upgrade, any tasks running on that node are removed from the node and returned to the queue to be rerun later (or on a different compute node). The node will be unavailable until the upgrade is complete. This operation results in temporarily reduced pool capacity as nodes are taken out of service to be upgraded. Although the Batch service tries to avoid upgrading all compute nodes at the same time, it does not guarantee to do this (particularly on small pools); therefore, the pool may be temporarily unavailable to run tasks. When this operation runs, the pool state changes to upgrading. When all compute nodes have finished upgrading, the pool state returns to active. While the upgrade is in progress, the pool's currentOSVersion reflects the OS version that nodes are upgrading from, and targetOSVersion reflects the OS version that nodes are upgrading to. Once the upgrade is complete, currentOSVersion is updated to reflect the OS version now running on all nodes. This operation can only be invoked on pools created with the cloudServiceConfiguration property.", @@ -7680,7 +7798,9 @@ ], "operationId": "Pool_RemoveNodes", "x-ms-examples": { - "Pool remove nodes": { "$ref": "./examples/PoolRemoveNodes.json" } + "Pool remove nodes": { + "$ref": "./examples/PoolRemoveNodes.json" + } }, "summary": "Removes compute nodes from the specified pool.", "description": "This operation can only run when the allocation state of the pool is steady. When this operation runs, the allocation state changes from steady to resizing.", @@ -7839,9 +7959,15 @@ ], "operationId": "Task_Add", "x-ms-examples": { - "Add a basic task": { "$ref": "./examples/TaskAdd_Basic.json" }, - "Add a task with exit conditions": { "$ref": "./examples/TaskAdd_ExitConditions.json" }, - "Add a task with container settings": { "$ref": "./examples/TaskAdd_ContainerSettings.json" } + "Add a basic task": { + "$ref": "./examples/TaskAdd_Basic.json" + }, + "Add a task with exit conditions": { + "$ref": "./examples/TaskAdd_ExitConditions.json" + }, + "Add a task with container settings": { + "$ref": "./examples/TaskAdd_ContainerSettings.json" + } }, "summary": "Adds a task to the specified job.", "description": "The maximum lifetime of a task from addition to completion is 7 days. If a task has not completed within 7 days of being added it will be terminated by the Batch service and left in whatever state it was in at that time.", @@ -7959,7 +8085,9 @@ }, "operationId": "Task_List", "x-ms-examples": { - "Task list": { "$ref": "./examples/TaskList.json" } + "Task list": { + "$ref": "./examples/TaskList.json" + } }, "summary": "Lists all of the tasks that are associated with the specified job.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -8111,8 +8239,12 @@ ], "operationId": "Task_AddCollection", "x-ms-examples": { - "Add a basic collection of tasks": { "$ref": "./examples/TaskAddCollection_Basic.json" }, - "Add a complex collection of tasks": { "$ref": "./examples/TaskAddCollection_Complex.json" } + "Add a basic collection of tasks": { + "$ref": "./examples/TaskAddCollection_Basic.json" + }, + "Add a complex collection of tasks": { + "$ref": "./examples/TaskAddCollection_Complex.json" + } }, "summary": "Adds a collection of tasks to the specified job.", "description": "Note that each task must have a unique ID. The Batch service may not return the results for each task in the same order the tasks were submitted in this request. If the server times out or the connection is closed during the request, the request may have been partially or fully processed, or not at all. In such cases, the user should re-issue the request. Note that it is up to the user to correctly handle failures when re-issuing a request. For example, you should use the same task IDs during a retry so that if the prior operation succeeded, the retry will not create extra tasks unexpectedly. If the response contains any tasks which failed to add, a client can retry the request. In a retry, it is most efficient to resubmit only tasks that failed to add, and to omit tasks that were successfully added on the first attempt. The maximum lifetime of a task from addition to completion is 7 days. If a task has not completed within 7 days of being added it will be terminated by the Batch service and left in whatever state it was in at that time.", @@ -8217,7 +8349,9 @@ ], "operationId": "Task_Delete", "x-ms-examples": { - "Task delete": { "$ref": "./examples/TaskDelete.json" } + "Task delete": { + "$ref": "./examples/TaskDelete.json" + } }, "summary": "Deletes a task from the specified job.", "description": "When a task is deleted, all of the files in its directory on the compute node where it ran are also deleted (regardless of the retention time). For multi-instance tasks, the delete task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.", @@ -8357,7 +8491,9 @@ ], "operationId": "Task_Get", "x-ms-examples": { - "Task get": { "$ref": "./examples/TaskGet.json" } + "Task get": { + "$ref": "./examples/TaskGet.json" + } }, "summary": "Gets information about the specified task.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -8535,7 +8671,9 @@ ], "operationId": "Task_Update", "x-ms-examples": { - "Task update": { "$ref": "./examples/TaskUpdate.json" } + "Task update": { + "$ref": "./examples/TaskUpdate.json" + } }, "description": "Updates the properties of the specified task.", "x-ms-request-id": "request-id", @@ -8700,7 +8838,9 @@ ], "operationId": "Task_ListSubtasks", "x-ms-examples": { - "Task list subtasks": { "$ref": "./examples/TaskListSubtasks.json" } + "Task list subtasks": { + "$ref": "./examples/TaskListSubtasks.json" + } }, "summary": "Lists all of the subtasks that are associated with the specified multi-instance task.", "description": "If the task is not a multi-instance task then this returns an empty collection.", @@ -8824,7 +8964,9 @@ ], "operationId": "Task_Terminate", "x-ms-examples": { - "Task terminate": { "$ref": "./examples/TaskTerminate.json" } + "Task terminate": { + "$ref": "./examples/TaskTerminate.json" + } }, "summary": "Terminates the specified task.", "description": "When the task has been terminated, it moves to the completed state. For multi-instance tasks, the terminate task operation applies synchronously to the primary task; subtasks are then terminated asynchronously in the background.", @@ -8981,7 +9123,9 @@ ], "operationId": "Task_Reactivate", "x-ms-examples": { - "Task reactivate": { "$ref": "./examples/TaskReactivate.json" } + "Task reactivate": { + "$ref": "./examples/TaskReactivate.json" + } }, "summary": "Reactivates a task, allowing it to run again even if its retry count has been exhausted.", "description": "Reactivation makes a task eligible to be retried again up to its maximum retry count. The task's state is changed to active. As the task is no longer in the completed state, any previous exit code or failure information is no longer available after reactivation. Each time a task is reactivated, its retry count is reset to 0. Reactivation will fail for tasks that are not completed or that previously completed successfully (with an exit code of 0). Additionally, it will fail if the job has completed (or is terminating or deleting).", @@ -9138,7 +9282,9 @@ ], "operationId": "ComputeNode_AddUser", "x-ms-examples": { - "Node add user": { "$ref": "./examples/NodeAddUser.json" } + "Node add user": { + "$ref": "./examples/NodeAddUser.json" + } }, "summary": "Adds a user account to the specified compute node.", "description": "You can add a user account to a node only when it is in the idle or running state.", @@ -9262,7 +9408,9 @@ ], "operationId": "ComputeNode_DeleteUser", "x-ms-examples": { - "Node delete user": { "$ref": "./examples/NodeDeleteUser.json" } + "Node delete user": { + "$ref": "./examples/NodeDeleteUser.json" + } }, "summary": "Deletes a user account from the specified compute node.", "description": "You can delete a user account to a node only when it is in the idle or running state.", @@ -9367,7 +9515,9 @@ ], "operationId": "ComputeNode_UpdateUser", "x-ms-examples": { - "Node update user": { "$ref": "./examples/NodeUpdateUser.json" } + "Node update user": { + "$ref": "./examples/NodeUpdateUser.json" + } }, "summary": "Updates the password and expiration time of a user account on the specified compute node.", "description": "This operation replaces of all the updatable properties of the account. For example, if the expiryTime element is not specified, the current value is replaced with the default value, not left unmodified. You can update a user account on a node only when it is in the idle or running state.", @@ -9498,7 +9648,9 @@ ], "operationId": "ComputeNode_Get", "x-ms-examples": { - "Node get": { "$ref": "./examples/NodeGet_Basic.json" } + "Node get": { + "$ref": "./examples/NodeGet_Basic.json" + } }, "summary": "Gets information about the specified compute node.", "x-ms-request-id": "request-id", @@ -9621,7 +9773,9 @@ ], "operationId": "ComputeNode_Reboot", "x-ms-examples": { - "Node reboot": { "$ref": "./examples/NodeReboot.json" } + "Node reboot": { + "$ref": "./examples/NodeReboot.json" + } }, "summary": "Restarts the specified compute node.", "description": "You can restart a node only if it is in an idle or running state.", @@ -9745,7 +9899,9 @@ ], "operationId": "ComputeNode_Reimage", "x-ms-examples": { - "Node reimage": { "$ref": "./examples/NodeReimage.json" } + "Node reimage": { + "$ref": "./examples/NodeReimage.json" + } }, "summary": "Reinstalls the operating system on the specified compute node.", "description": "You can reinstall the operating system on a node only if it is in an idle or running state. This API can be invoked only on pools created with the cloud service configuration property.", @@ -9869,7 +10025,9 @@ ], "operationId": "ComputeNode_DisableScheduling", "x-ms-examples": { - "Node disable scheduling": { "$ref": "./examples/NodeDisableScheduling.json" } + "Node disable scheduling": { + "$ref": "./examples/NodeDisableScheduling.json" + } }, "summary": "Disables task scheduling on the specified compute node.", "description": "You can disable task scheduling on a node only if its current scheduling state is enabled.", @@ -9993,7 +10151,9 @@ ], "operationId": "ComputeNode_EnableScheduling", "x-ms-examples": { - "Node enable scheduling": { "$ref": "./examples/NodeEnableScheduling.json" } + "Node enable scheduling": { + "$ref": "./examples/NodeEnableScheduling.json" + } }, "summary": "Enables task scheduling on the specified compute node.", "description": "You can enable task scheduling on a node only if its current scheduling state is disabled", @@ -10108,7 +10268,9 @@ ], "operationId": "ComputeNode_GetRemoteLoginSettings", "x-ms-examples": { - "Node get remote login settings": { "$ref": "./examples/NodeGetRemoteLoginSettings.json" } + "Node get remote login settings": { + "$ref": "./examples/NodeGetRemoteLoginSettings.json" + } }, "summary": "Gets the settings required for remote login to a compute node.", "description": "Before you can remotely login to a node using the remote login settings, you must create a user account on the node. This API can be invoked only on pools created with the virtual machine configuration property. For pools created with a cloud service configuration, see the GetRemoteDesktop API.", @@ -10222,7 +10384,9 @@ ], "operationId": "ComputeNode_GetRemoteDesktop", "x-ms-examples": { - "Get RDP file of the compute node": { "$ref": "./examples/NodeGetRemoteDesktop.json" } + "Get RDP file of the compute node": { + "$ref": "./examples/NodeGetRemoteDesktop.json" + } }, "summary": "Gets the Remote Desktop Protocol file for the specified compute node.", "description": "Before you can access a node by using the RDP file, you must create a user account on the node. This API can only be invoked on pools created with a cloud service configuration. For pools created with a virtual machine configuration, see the GetRemoteLoginSettings API.", @@ -10343,7 +10507,9 @@ "summary": "Upload Azure Batch service log files from the specified compute node to Azure Blob Storage.", "description": "This is for gathering Azure Batch service log files in an automated fashion from nodes if you are experiencing an error and wish to escalate to Azure support. The Azure Batch service log files should be shared with Azure support to aid in debugging issues with the Batch service.", "x-ms-examples": { - "Upload BatchService Logs": { "$ref": "./examples/NodeUploadBatchServiceLogs.json" } + "Upload BatchService Logs": { + "$ref": "./examples/NodeUploadBatchServiceLogs.json" + } }, "x-ms-request-id": "request-id", "parameters": [ @@ -10437,7 +10603,7 @@ "description": "The request to the Batch service was successful.", "schema": { "$ref": "#/definitions/UploadBatchServiceLogsResult" - } + } }, "default": { "description": "The error from the Batch service.", @@ -10458,7 +10624,9 @@ }, "operationId": "ComputeNode_List", "x-ms-examples": { - "Node list": { "$ref": "./examples/NodeList.json" } + "Node list": { + "$ref": "./examples/NodeList.json" + } }, "summary": "Lists the compute nodes in the specified pool.", "x-ms-request-id": "request-id", @@ -10631,7 +10799,15 @@ "title": "The cross data center network egress from the pool during this interval, in GiB." } }, - "required": [ "poolId", "startTime", "endTime", "vmSize", "totalCoreHours", "dataIngressGiB", "dataEgressGiB" ], + "required": [ + "poolId", + "startTime", + "endTime", + "vmSize", + "totalCoreHours", + "dataIngressGiB", + "dataEgressGiB" + ], "title": "Usage metrics for a pool across an aggregation interval." }, "PoolListUsageMetricsResult": { @@ -10751,7 +10927,11 @@ "title": "The aggregated wall-clock time of the dedicated compute node cores being part of the pool." } }, - "required": [ "startTime", "lastUpdateTime", "dedicatedCoreTime" ], + "required": [ + "startTime", + "lastUpdateTime", + "dedicatedCoreTime" + ], "title": "Statistics related to pool usage information." }, "ResourceStatistics": { @@ -10822,7 +11002,21 @@ "title": "The total amount of data in GiB of network writes across all nodes in the pool." } }, - "required": [ "startTime", "lastUpdateTime", "avgCPUPercentage", "avgMemoryGiB", "peakMemoryGiB", "avgDiskGiB", "peakDiskGiB", "diskReadIOps", "diskWriteIOps", "diskReadGiB", "diskWriteGiB", "networkReadGiB", "networkWriteGiB" ], + "required": [ + "startTime", + "lastUpdateTime", + "avgCPUPercentage", + "avgMemoryGiB", + "peakMemoryGiB", + "avgDiskGiB", + "peakDiskGiB", + "diskReadIOps", + "diskWriteIOps", + "diskReadGiB", + "diskWriteGiB", + "networkReadGiB", + "networkWriteGiB" + ], "title": "Statistics related to resource consumption by compute nodes in a pool." }, "PoolStatistics": { @@ -10850,7 +11044,11 @@ "title": "Statistics related to resource consumption by compute nodes in the pool." } }, - "required": [ "url", "startTime", "lastUpdateTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime" + ], "title": "Contains utilization and resource usage statistics for the lifetime of a pool." }, "JobStatistics": { @@ -10929,7 +11127,22 @@ "description": "The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.) This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job." }, "NameValuePair": { @@ -11024,7 +11237,9 @@ "description": "If this is omitted on a pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a task, and no default version is specified for this application, the task fails with a pre-processing error." } }, - "required": [ "applicationId" ], + "required": [ + "applicationId" + ], "title": "A reference to an application package to be deployed to compute nodes." }, "ApplicationSummary": { @@ -11045,7 +11260,11 @@ } } }, - "required": [ "id", "displayName", "versions" ], + "required": [ + "id", + "displayName", + "versions" + ], "title": "Contains information about an application in an Azure Batch account." }, "CertificateAddParameter": { @@ -11090,7 +11309,11 @@ "description": "This is required if the certificate format is pfx. It should be omitted if the certificate format is cer." } }, - "required": [ "thumbprint", "thumbprintAlgorithm", "data" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm", + "data" + ], "title": "A certificate that can be installed on compute nodes and can be used to authenticate operations on the machine." }, "CertificateListResult": { @@ -11137,7 +11360,10 @@ "description": "The file mode is returned only for files on Linux compute nodes." } }, - "required": [ "lastModified", "contentLength" ], + "required": [ + "lastModified", + "contentLength" + ], "title": "The properties of a file on a compute node." }, "NodeFile": { @@ -11241,7 +11467,9 @@ "description": "This setting can be omitted if was already provided at pool creation." } }, - "required": [ "imageName" ], + "required": [ + "imageName" + ], "title": "The container settings for a task." }, "ResourceFile": { @@ -11261,7 +11489,10 @@ "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." } }, - "required": [ "blobSource", "filePath" ], + "required": [ + "blobSource", + "filePath" + ], "title": "A file to be downloaded from Azure blob storage to a compute node." }, "EnvironmentSetting": { @@ -11275,7 +11506,9 @@ "title": "The value of the environment variable." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "An environment variable to be set on a task process." }, "ExitConditions": { @@ -11324,7 +11557,10 @@ } }, "title": "How the Batch service should respond if a task exits with a particular exit code.", - "required": [ "code", "exitOptions" ] + "required": [ + "code", + "exitOptions" + ] }, "ExitCodeRangeMapping": { "properties": { @@ -11344,7 +11580,11 @@ } }, "title": "A range of exit codes and how the Batch service should respond to exit codes within that range.", - "required": [ "start", "end", "exitOptions" ] + "required": [ + "start", + "end", + "exitOptions" + ] }, "ExitOptions": { "properties": { @@ -11495,7 +11735,10 @@ "$ref": "#/definitions/LinuxUserConfiguration" } }, - "required": [ "name", "password" ], + "required": [ + "name", + "password" + ], "title": "Properties used to create a user used to execute tasks on an Azure Batch node." }, "TaskConstraints": { @@ -11551,7 +11794,7 @@ "title": "A list of files that the Batch service will download to the compute node before running the command line.", "description": "Files listed under this element are located in the task's working directory. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers." }, - "outputFiles": { + "outputFiles": { "type": "array", "items": { "$ref": "#/definitions/OutputFile" @@ -11604,7 +11847,10 @@ "description": "The default value is true." } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "Specifies details of a Job Manager task.", "description": "The Job Manager task is automatically started when the job is created. The Batch service tries to schedule the Job Manager task before any other tasks in the job. When shrinking a pool, the Batch service tries to preserve compute nodes where Job Manager tasks are running for as long as possible (that is, nodes running 'normal' tasks are removed before nodes running Job Manager tasks). When a Job Manager task fails and needs to be restarted, the system tries to schedule it at the highest priority. If there are no idle nodes available, the system may terminate one of the running tasks in the pool and return it to the queue in order to make room for the Job Manager task to restart. Note that a Job Manager task in one job does not have priority over tasks in other jobs. Across jobs, only job level priorities are observed. For example, if a Job Manager in a priority 0 job needs to be restarted, it will not displace tasks of a priority 1 job. Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing." }, @@ -11660,7 +11906,9 @@ "description": "The Job Preparation task is always rerun if a compute node is reimaged, or if the Job Preparation task did not complete (e.g. because the reboot occurred while the task was running). Therefore, you should always write a Job Preparation task to be idempotent and to behave correctly if run multiple times. The default value is true." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Preparation task to run before any tasks of the job on any given compute node.", "description": "You can use Job Preparation to prepare a compute node to run tasks for the job. Activities commonly performed in Job Preparation include: Downloading common resource files used by all the tasks in the job. The Job Preparation task can download these common resource files to the shared location on the compute node. (AZ_BATCH_NODE_ROOT_DIR\\shared), or starting a local service on the compute node so that all tasks of that job can communicate with it. If the Job Preparation task fails (that is, exhausts its retry count before exiting with exit code 0), Batch will not run tasks of this job on the compute node. The node remains ineligible to run tasks of this job until it is reimaged. The node remains active and can be used for other jobs. The Job Preparation task can run multiple times on the same compute node. Therefore, you should write the Job Preparation task to handle re-execution. If the compute node is rebooted, the Job Preparation task is run again on the node before scheduling any other task of the job, if rerunOnNodeRebootAfterSuccess is true or if the Job Preparation task did not previously complete. If the compute node is reimaged, the Job Preparation task is run again before scheduling any task of the job. Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing." }, @@ -11713,7 +11961,9 @@ "description": "If omitted, the task runs as a non-administrative user unique to the task." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Release task to run on job completion on any compute node where the job has run.", "description": "The Job Release task runs when the job ends, because of one of the following: The user calls the Terminate Job API, or the Delete Job API while the job is still active, the job's maximum wall clock time constraint is reached, and the job is still active, or the job's Job Manager task completed, and the job is configured to terminate when the Job Manager completes. The Job Release task runs on each compute node where tasks of the job have run and the Job Preparation task ran and completed. If you reimage a compute node after it has run the Job Preparation task, and the job ends without any further tasks of the job running on that compute node (and hence the Job Preparation task does not re-run), then the Job Release task does not run on that node. If a compute node reboots while the Job Release task is still running, the Job Release task runs again when the compute node starts up. The job is not marked as complete until all Job Release tasks have completed. The Job Release task runs in the background. It does not occupy a scheduling slot; that is, it does not count towards the maxTasksPerNode limit specified on the pool." }, @@ -11742,7 +11992,9 @@ } } }, - "required": [ "nodeFillType" ], + "required": [ + "nodeFillType" + ], "title": "Specifies how tasks should be distributed across compute nodes." }, "StartTask": { @@ -11789,7 +12041,9 @@ "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 failure info details. 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 false." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "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": "Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing." }, @@ -11868,7 +12122,10 @@ "description": "You can specify more than one visibility in this collection. The default is all accounts." } }, - "required": [ "thumbprint", "thumbprintAlgorithm" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm" + ], "title": "A reference to a certificate to be installed on compute nodes in a pool." }, "MetadataItem": { @@ -11882,7 +12139,10 @@ "title": "The value of the metadata item." } }, - "required": [ "name", "value" ], + "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." }, @@ -11984,7 +12244,7 @@ "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. The permitted licenses available on the pool are 'maya', 'vray', '3dsmax', 'arnold'. An additional charge applies for each application license added to the pool." }, @@ -12004,7 +12264,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "vmSize" ], + "required": [ + "vmSize" + ], "title": "Specification for creating a new pool." }, "AutoPoolSpecification": { @@ -12047,7 +12309,9 @@ "title": "The pool specification for the auto pool." } }, - "required": [ "poolLifetimeOption" ], + "required": [ + "poolLifetimeOption" + ], "title": "Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto pool when the job is submitted." }, "PoolInformation": { @@ -12132,7 +12396,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "Specifies details of the jobs to be created on a schedule." }, "RecentJob": { @@ -12244,7 +12510,22 @@ "description": "This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job schedule." }, "CloudJobSchedule": { @@ -12353,7 +12634,11 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "schedule", "jobSpecification" ], + "required": [ + "id", + "schedule", + "jobSpecification" + ], "title": "A job schedule that allows recurring jobs by specifying when to run jobs and a specification used to create each job." }, "CloudJobScheduleListResult": { @@ -12394,7 +12679,9 @@ "title": "A list of additional error details related to the scheduling error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "An error encountered by the Batch service when scheduling a job." }, "JobExecutionInformation": { @@ -12427,7 +12714,9 @@ "description": "This property is set only if the job is in the completed state. If the Batch service terminates the job, it sets the reason as follows: JMComplete - the Job Manager task completed, and killJobOnCompletion was set to true. MaxWallClockTimeExpiry - the job reached its maxWallClockTime constraint. TerminateJobSchedule - the job ran as part of a schedule, and the schedule terminated. AllTasksComplete - the job's onAllTasksComplete attribute is set to terminatejob, and all tasks in the job are complete. TaskFailed - the job's onTaskFailure attribute is set to performExitOptionsJobAction, and a task in the job failed with an exit condition that specified a jobAction of terminatejob. Any other string is a user-defined reason specified in a call to the 'Terminate a job' operation." } }, - "required": [ "startTime" ], + "required": [ + "startTime" + ], "title": "Contains information about the execution of a job in the Azure Batch service." }, "CloudJob": { @@ -12622,7 +12911,10 @@ "title": "Whether tasks in the job can define dependencies on each other. The default is false." } }, - "required": [ "id", "poolInfo" ], + "required": [ + "id", + "poolInfo" + ], "title": "An Azure Batch job to add." }, "CloudJobListResult": { @@ -12682,7 +12974,9 @@ "title": "A list of additional details related to the error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "Information about a task failure." }, "JobPreparationTaskExecutionInformation": { @@ -12763,7 +13057,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "retryCount", "state" ], + "required": [ + "startTime", + "retryCount", + "state" + ], "title": "Contains information about the execution of a Job Preparation task on a compute node." }, "JobReleaseTaskExecutionInformation": { @@ -12832,7 +13130,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "state" ], + "required": [ + "startTime", + "state" + ], "title": "Contains information about the execution of a Job Release task on a compute node." }, "JobPreparationAndReleaseTaskExecutionInformation": { @@ -12905,7 +13206,13 @@ "title": "The number of tasks which failed. A task fails if its result (found in the executionInfo property) is 'failure'." } }, - "required": [ "active", "running", "completed", "succeeded", "failed" ], + "required": [ + "active", + "running", + "completed", + "succeeded", + "failed" + ], "title": "The task counts for a job." }, "AutoScaleRunError": { @@ -12945,7 +13252,9 @@ "title": "Details of the error encountered evaluating the autoscale formula on the pool, if the evaluation was unsuccessful." } }, - "required": [ "timestamp" ], + "required": [ + "timestamp" + ], "title": "The results and errors from an execution of a pool autoscale formula." }, "ResizeError": { @@ -12987,7 +13296,9 @@ "description": "This may differ from targetOSVersion if the pool state is Upgrading. In this case some virtual machines may be on the targetOSVersion and some may be on the currentOSVersion during the upgrade process. Once all virtual machines have upgraded, currentOSVersion is updated to be the same as targetOSVersion." } }, - "required": [ "osFamily" ], + "required": [ + "osFamily" + ], "title": "The configuration for nodes in a pool based on the Azure Cloud Services platform." }, "ImageReference": { @@ -13115,7 +13426,7 @@ "value": "readonly", "description": "The caching mode for the disk is read only.", "name": "readOnly" - }, + }, { "value": "readwrite", "description": "The caching mode for the disk is read and write.", @@ -13163,7 +13474,10 @@ "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." } }, - "required": [ "nodeAgentSKUId", "imageReference" ], + "required": [ + "nodeAgentSKUId", + "imageReference" + ], "title": "The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure." }, "ContainerRegistry": { @@ -13183,7 +13497,10 @@ "title": "The password to log into the registry server." } }, - "required": [ "username", "password" ], + "required": [ + "username", + "password" + ], "title": "A private container registry." }, "ContainerConfiguration": { @@ -13222,7 +13539,9 @@ "description": "If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here." } }, - "required": [ "type" ], + "required": [ + "type" + ], "title": "The configuration for container-enabled pools." }, "NetworkConfiguration": { @@ -13237,9 +13556,9 @@ } }, "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." + "$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." } }, "description": "The network configuration for a pool." @@ -13443,7 +13762,7 @@ "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." }, @@ -13571,7 +13890,7 @@ "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." }, @@ -13601,7 +13920,10 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "vmSize" ], + "required": [ + "id", + "vmSize" + ], "title": "A pool in the Azure Batch service to add." }, "ApplicationListResult": { @@ -13644,7 +13966,9 @@ "description": "You can pass the affinityId of a compute node to indicate that this task needs to run on that compute node. Note that this is just a soft affinity. If the target node is busy or unavailable at the time the task is scheduled, then the task will be scheduled elsewhere." } }, - "required": [ "affinityId" ], + "required": [ + "affinityId" + ], "title": "A locality hint that can be used by the Batch service to select a compute node on which to start a task." }, "TaskExecutionInformation": { @@ -13707,7 +14031,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "requeueCount", "retryCount" ], + "required": [ + "requeueCount", + "retryCount" + ], "title": "Information about the execution of a task." }, "ComputeNodeInformation": { @@ -13743,8 +14070,8 @@ "properties": { "version": { "type": "string", - "title":"The version of the Batch node agent running on the compute node.", - "description":"This version number can be checked against the node agent release notes located at https://github.com/Azure/Batch/blob/master/changelogs/nodeagent/CHANGELOG.md." + "title": "The version of the Batch node agent running on the compute node.", + "description": "This version number can be checked against the node agent release notes located at https://github.com/Azure/Batch/blob/master/changelogs/nodeagent/CHANGELOG.md." }, "lastUpdateTime": { "type": "string", @@ -13753,7 +14080,10 @@ "description": "This is the most recent time that the node agent was updated to a new version." } }, - "required": [ "version", "lastUpdateTime" ], + "required": [ + "version", + "lastUpdateTime" + ], "title": "Information about the node agent.", "description": "The Batch node agent is a program that runs on each node in the pool and provides Batch capability on the compute node." }, @@ -13779,7 +14109,9 @@ "description": "The difference between common resource files and task resource files is that common resource files are downloaded for all subtasks including the primary, whereas task resource files are downloaded only for the primary. Also note that these resource files are not downloaded to the task working directory, but instead are downloaded to the task root directory (one directory above the working directory). There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers." } }, - "required": [ "coordinationCommandLine" ], + "required": [ + "coordinationCommandLine" + ], "title": "Settings which specify how to run a multi-instance task.", "description": "Multi-instance tasks are commonly used to support MPI tasks." }, @@ -13841,7 +14173,19 @@ "title": "The total wait time of the task. The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.)" } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "waitTime" + ], "title": "Resource usage statistics for a task." }, "TaskDependencies": { @@ -13879,7 +14223,10 @@ }, "title": "A range of task IDs that a task can depend on. All tasks with IDs in the range must complete successfully before the dependent task can be scheduled.", "description": "The start and end of the range are inclusive. For example, if a range has start 9 and end 12, then it represents tasks '9', '10', '11' and '12'.", - "required": [ "start", "end" ] + "required": [ + "start", + "end" + ] }, "CloudTask": { "properties": { @@ -14106,7 +14453,10 @@ "$ref": "#/definitions/AuthenticationTokenSettings" } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "An Azure Batch task to add.", "description": "Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing." }, @@ -14122,7 +14472,9 @@ "description": "The total serialized size of this collection must be less than 1MB. If it is greater than 1MB (for example if each task has 100's of resource files or environment variables), the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer tasks." } }, - "required": [ "value" ], + "required": [ + "value" + ], "title": "A collection of Azure Batch tasks to add." }, "TaskAddResult": { @@ -14179,7 +14531,10 @@ "title": "The error encountered while attempting to add the task." } }, - "required": [ "status", "taskId" ], + "required": [ + "status", + "taskId" + ], "title": "Result for a single task added as part of an add task collection operation." }, "TaskAddCollectionResult": { @@ -14316,7 +14671,9 @@ "title": "Information about the execution of the task." } }, - "required": [ "taskState" ], + "required": [ + "taskState" + ], "title": "Information about a task running on a compute node." }, "StartTaskInformation": { @@ -14389,7 +14746,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "state", "startTime", "retryCount" ], + "required": [ + "state", + "startTime", + "retryCount" + ], "title": "Information about a start task running on a compute node." }, "ComputeNodeError": { @@ -14612,7 +14973,7 @@ "title": "The endpoint configuration for the compute node." }, "nodeAgentInfo": { - "$ref":"#/definitions/NodeAgentInformation", + "$ref": "#/definitions/NodeAgentInformation", "title": "Information about the node agent version and the time the node upgraded to a new version." } }, @@ -14629,7 +14990,9 @@ "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" ], + "required": [ + "inboundNATPools" + ], "title": "The endpoint configuration for a pool." }, "InboundNATPool": { @@ -14670,7 +15033,13 @@ } } }, - "required": [ "name", "protocol", "backendPort", "frontendPortRangeStart", "frontendPortRangeEnd" ], + "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": { @@ -14709,7 +15078,11 @@ "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." } }, - "required": [ "priority", "access", "sourceAddressPrefix" ], + "required": [ + "priority", + "access", + "sourceAddressPrefix" + ], "title": "A network security group rule to apply to an inbound endpoint." }, "ComputeNodeEndpointConfiguration": { @@ -14722,7 +15095,9 @@ "title": "The list of inbound endpoints that are accessible on the compute node." } }, - "required": [ "inboundEndpoints" ], + "required": [ + "inboundEndpoints" + ], "title": "The endpoint configuration for the compute node." }, "InboundEndpoint": { @@ -14754,7 +15129,14 @@ "title": "The backend port number of the endpoint." } }, - "required": [ "name", "protocol", "publicIPAddress", "publicFQDN", "frontendPort", "backendPort" ], + "required": [ + "name", + "protocol", + "publicIPAddress", + "publicFQDN", + "frontendPort", + "backendPort" + ], "title": "An inbound endpoint on a compute node." }, "ComputeNodeListResult": { @@ -14801,7 +15183,9 @@ "description": "The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux nodes. If this is specified for a Windows node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "A user account for RDP or SSH access on a compute node." }, "ComputeNodeGetRemoteLoginSettingsResult": { @@ -14816,7 +15200,10 @@ "title": "The port used for remote login to the compute node." } }, - "required": [ "remoteLoginIPAddress", "remoteLoginPort" ], + "required": [ + "remoteLoginIPAddress", + "remoteLoginPort" + ], "title": "The remote login settings for a compute node." }, "JobSchedulePatchParameter": { @@ -14863,7 +15250,10 @@ "description": "If you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted." } }, - "required": [ "schedule", "jobSpecification" ], + "required": [ + "schedule", + "jobSpecification" + ], "title": "The set of changes to be made to a job schedule." }, "JobDisableParameter": { @@ -14896,7 +15286,9 @@ } } }, - "required": [ "disableTasks" ], + "required": [ + "disableTasks" + ], "title": "Options when disabling a job." }, "JobTerminateParameter": { @@ -14974,7 +15366,9 @@ "$ref": "#/definitions/OnAllTasksComplete" } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "The set of changes to be made to a job." }, "PoolEnableAutoScaleParameter": { @@ -15001,7 +15395,9 @@ "description": "The formula is validated and its results calculated, but it is not applied to the pool. To apply the formula to the pool, 'Enable automatic scaling on a pool'. For more information about specifying this formula, see Automatically scale compute nodes in an Azure Batch pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling)." } }, - "required": [ "autoScaleFormula" ], + "required": [ + "autoScaleFormula" + ], "title": "Options for evaluating an automatic scaling formula on a pool." }, "PoolResizeParameter": { @@ -15062,7 +15458,11 @@ "description": "This list replaces any existing metadata configured on the pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the pool." } }, - "required": [ "certificateReferences", "metadata", "applicationPackageReferences" ], + "required": [ + "certificateReferences", + "metadata", + "applicationPackageReferences" + ], "title": "The set of changes to be made to a pool." }, "PoolUpgradeOSParameter": { @@ -15072,7 +15472,9 @@ "title": "The Azure Guest OS version to be installed on the virtual machines in the pool." } }, - "required": [ "targetOSVersion" ], + "required": [ + "targetOSVersion" + ], "title": "Options for upgrading the operating system of compute nodes in a pool." }, "PoolPatchParameter": { @@ -15276,7 +15678,9 @@ "$ref": "#/definitions/ComputeNodeDeallocationOption" } }, - "required": [ "nodeList" ], + "required": [ + "nodeList" + ], "title": "Options for removing compute nodes from a pool." }, "OutputFile": { @@ -15295,7 +15699,11 @@ "$ref": "#/definitions/OutputFileUploadOptions" } }, - "required": [ "filePattern", "destination", "uploadOptions" ], + "required": [ + "filePattern", + "destination", + "uploadOptions" + ], "title": "A specification for uploading files from an Azure Batch node to another location after the Batch service has finished executing the task process." }, "OutputFileDestination": { @@ -15320,7 +15728,9 @@ "description": "The URL must include a Shared Access Signature (SAS) granting write permissions to the container." } }, - "required": [ "containerUrl" ], + "required": [ + "containerUrl" + ], "title": "Specifies a file upload destination within an Azure blob storage container." }, "OutputFileUploadOptions": { @@ -15331,7 +15741,9 @@ "$ref": "#/definitions/OutputFileUploadCondition" } }, - "required": [ "uploadCondition" ], + "required": [ + "uploadCondition" + ], "title": "Details about an output file upload operation, including under what conditions to perform the upload." }, "ErrorMessage": { @@ -15780,7 +16192,10 @@ "description": "Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime." } }, - "required": [ "containerUrl", "startTime" ], + "required": [ + "containerUrl", + "startTime" + ], "title": "The Azure Batch service log files upload configuration for a compute node." }, "UploadBatchServiceLogsResult": { @@ -15796,7 +16211,10 @@ "title": "The number of log files which will be uploaded." } }, - "required": ["virtualDirectoryName", "numberOfFilesUploaded"], + "required": [ + "virtualDirectoryName", + "numberOfFilesUploaded" + ], "title": "The result of uploading Batch service log files from a specific compute node." }, "PoolNodeCountsListResult": { diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/AccountListNodeAgentSkus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/AccountListNodeAgentSkus.json index b1cdb2c90084..92930103fc5f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/AccountListNodeAgentSkus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/AccountListNodeAgentSkus.json @@ -60,4 +60,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/AccountListPoolNodeCounts.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/AccountListPoolNodeCounts.json index 613f83a56ba7..95896a08705e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/AccountListPoolNodeCounts.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/AccountListPoolNodeCounts.json @@ -117,4 +117,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/ApplicationGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/ApplicationGet.json index 6550fe0cd41a..b0deede224ae 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/ApplicationGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/ApplicationGet.json @@ -8,12 +8,12 @@ "responses": { "200": { "body": { - "id": "my_application_id", - "versions": [ - "v1.0" - ], - "displayName": "my_display_name" + "id": "my_application_id", + "versions": [ + "v1.0" + ], + "displayName": "my_display_name" } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/ApplicationList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/ApplicationList.json index 009a24829dda..ce7c279267b1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/ApplicationList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/ApplicationList.json @@ -19,4 +19,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateAdd.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateAdd.json index 9f250e316a2a..3a83e19626cb 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateAdd.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateAdd.json @@ -4,16 +4,14 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "certificate": { - "thumbprintAlgorithm":"sha1", - "thumbprint":"0123456789abcdef0123456789abcdef01234567", - "data":"#####...", - "certificateFormat":"pfx", - "password":"certpassword" + "thumbprintAlgorithm": "sha1", + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "data": "#####...", + "certificateFormat": "pfx", + "password": "certpassword" } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateCancelDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateCancelDelete.json index 877d865df1e6..8a7e39e84d6a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateCancelDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateCancelDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateDelete.json index d863ac2f5095..816821043344 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateGet.json index 00a2270ea83c..37c8190b540c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateGet.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateList.json index ad23c5e62350..09e0c72cb452 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/CertificateList.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileDeleteFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileDeleteFromNode.json index b4577b451581..6931cb601597 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileDeleteFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileDeleteFromNode.json @@ -9,8 +9,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileDeleteFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileDeleteFromTask.json index fe86aa9f790b..869a7cae60e4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileDeleteFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileDeleteFromTask.json @@ -9,8 +9,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetFromNode.json index 0416de2d51bc..4854a9d67c34 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetFromNode.json @@ -17,4 +17,4 @@ "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetFromTask.json index 12c8ebddc814..3fc6d9526b92 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetFromTask.json @@ -17,4 +17,4 @@ "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetPropertiesFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetPropertiesFromNode.json index 012637909aab..94b5e9e6f6ad 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetPropertiesFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetPropertiesFromNode.json @@ -9,12 +9,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetPropertiesFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetPropertiesFromTask.json index 39f150b281f7..4f74affeb7d1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetPropertiesFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileGetPropertiesFromTask.json @@ -9,12 +9,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileListFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileListFromNode.json index 61ea39ad8bfc..017b88cb51d5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileListFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileListFromNode.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileListFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileListFromTask.json index 070d4706c87a..00e80b0e8a95 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileListFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/FileListFromTask.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobAdd_Basic.json index 9ff37a09e3fe..336cf9a9601e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobAdd_Basic.json @@ -12,8 +12,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobAdd_Complex.json index 80e8f70d0bae..c9fad1ecf08d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobAdd_Complex.json @@ -35,7 +35,7 @@ "retentionTime": "PT1H" }, "killJobOnCompletion": false, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -76,7 +76,7 @@ "value": "myvalue" } ], - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -114,8 +114,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobDelete.json index 1799f7f0d51e..15449b56d0b7 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobDisable.json index eab70814a6f2..782993e62b0d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobDisable.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobEnable.json index 1799f7f0d51e..15449b56d0b7 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobEnable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobGet.json index add3cbea1005..e97eafb560c0 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobGet.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobGetLifetimeStatistics.json index e3839ce1aca0..86f1cbb63bbf 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobGetLifetimeStatistics.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimejobstats", + "url": "https://account.region.batch.core.windows.net/lifetimejobstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "userCPUTime": "PT0S", @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobGetTaskCounts.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobGetTaskCounts.json index 7e48fbcf04d7..92bc97ce7d0f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobGetTaskCounts.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobGetTaskCounts.json @@ -16,4 +16,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobList.json index 8b5ff9e1b487..35ce90b18f6e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobList.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobListFromJobSchedule.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobListFromJobSchedule.json index 8566421809e0..193b7e3a73de 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobListFromJobSchedule.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobListFromJobSchedule.json @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobListPreparationAndReleaseTaskStatus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobListPreparationAndReleaseTaskStatus.json index 0e21f1c70cb7..f6e957d7d663 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobListPreparationAndReleaseTaskStatus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobListPreparationAndReleaseTaskStatus.json @@ -36,4 +36,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobPatch.json index 3cf875e74343..4c8552c0998a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobPatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobPatch.json @@ -5,19 +5,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "jobPatchParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleAdd_Basic.json index 8c8ce82de6ed..e164c4c3ef24 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleAdd_Basic.json @@ -6,7 +6,7 @@ "cloudJobSchedule": { "id": "jobScheduleId", "schedule": { - "recurrenceInterval":"PT5M" + "recurrenceInterval": "PT5M" }, "jobSpecification": { "poolInfo": { @@ -16,8 +16,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleAdd_Complex.json index fd4f1e7afc91..63067e4e3e76 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleAdd_Complex.json @@ -122,8 +122,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleDelete.json index 4838b0dd8ba8..bb3adf299eb6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleDisable.json index e5c082cf5020..f80b672b3532 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleDisable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleEnable.json index e5c082cf5020..f80b672b3532 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleEnable.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleExists.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleExists.json index 91116f11e0e6..ad61ab5d9d06 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleExists.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleExists.json @@ -6,11 +6,7 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - }, - "404": { - "body": "" - } + "200": {}, + "404": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleGet.json index 5146f7cd7d9b..1b18fdac3638 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleGet.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleList.json index cb8798b1c379..721214d1aba1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleList.json @@ -70,4 +70,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobSchedulePatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobSchedulePatch.json index 00dff4f5e37d..203e7b226b4f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobSchedulePatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobSchedulePatch.json @@ -22,8 +22,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleTerminate.json index 4838b0dd8ba8..bb3adf299eb6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleTerminate.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleUpdate.json index c7dcb4dc99a2..9cb7c44726fb 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobScheduleUpdate.json @@ -22,8 +22,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobTerminate.json index 928dae270df1..bb2f3a62639d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobTerminate.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobUpdate.json index 295732b684a8..112c02c8a26b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/JobUpdate.json @@ -5,19 +5,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "jobUpdateParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeAddUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeAddUser.json index 00b0450b6bd5..5004b3d5f494 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeAddUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeAddUser.json @@ -13,8 +13,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeDeleteUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeDeleteUser.json index 00c658269503..cc433d786fc7 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeDeleteUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeDeleteUser.json @@ -8,8 +8,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeDisableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeDisableScheduling.json index 252b66a08b7b..574b725b9e09 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeDisableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeDisableScheduling.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeEnableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeEnableScheduling.json index b919777643a8..8754f3497fe0 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeEnableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeEnableScheduling.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeGetRemoteDesktop.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeGetRemoteDesktop.json index ae802b746e1d..6d24863531d1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeGetRemoteDesktop.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeGetRemoteDesktop.json @@ -11,4 +11,4 @@ "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeGetRemoteLoginSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeGetRemoteLoginSettings.json index b93ccf2e5972..f6a6b564ffdc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeGetRemoteLoginSettings.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeGetRemoteLoginSettings.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeGet_Basic.json index 7c689202a04d..6b2d12bf5392 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeGet_Basic.json @@ -25,7 +25,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -48,4 +48,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeList.json index de74e7c76a46..648f17eba528 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeList.json @@ -26,7 +26,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -64,7 +64,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -102,7 +102,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -127,4 +127,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeReboot.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeReboot.json index 851054b7cfef..807cd8bf1806 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeReboot.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeReboot.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeReimage.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeReimage.json index 7890ded26eaa..400305de743f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeReimage.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeReimage.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeUpdateUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeUpdateUser.json index 6c3ff1a690b2..7aa99da3ab25 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeUpdateUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeUpdateUser.json @@ -12,8 +12,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeUploadBatchServiceLogs.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeUploadBatchServiceLogs.json index 2f78008cc759..57d9a48e11cc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeUploadBatchServiceLogs.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/NodeUploadBatchServiceLogs.json @@ -13,9 +13,9 @@ "responses": { "200": { "body": { - "virtualDirectoryName": "poolId/tvm-1695681911-1-20161121t182739z/0795539d-82fe-48e3-bbff-2964905b6de0", - "numberOfFilesUploaded": 8 + "virtualDirectoryName": "poolId/tvm-1695681911-1-20161121t182739z/0795539d-82fe-48e3-bbff-2964905b6de0", + "numberOfFilesUploaded": 8 } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolAdd_CloudServiceConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolAdd_CloudServiceConfiguration.json index 4ca91b80ff92..60acf2106850 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolAdd_CloudServiceConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolAdd_CloudServiceConfiguration.json @@ -9,19 +9,21 @@ "cloudServiceConfiguration": { "osFamily": "4" }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -31,4 +33,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolAdd_VirtualMachineConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolAdd_VirtualMachineConfiguration.json index 801784379119..94c427f7c73c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolAdd_VirtualMachineConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolAdd_VirtualMachineConfiguration.json @@ -14,19 +14,21 @@ }, "nodeAgentSKUId": "batch.node.ubuntu 16.04" }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -36,4 +38,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json index 27680af3d253..583b04fce0ae 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json @@ -20,14 +20,14 @@ ] } }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false + "enableAutoScale": false } }, "responses": { @@ -37,4 +37,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolDelete.json index a882613bfccf..d34f79dbf0a9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolDelete.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolDisableAutoScale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolDisableAutoScale.json index 3ca02c40c202..8a4975c98cdc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolDisableAutoScale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolDisableAutoScale.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolEnableAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolEnableAutoscale.json index e5de4f519f47..7179a703c788 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolEnableAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolEnableAutoscale.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolEvaluateAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolEvaluateAutoscale.json index 3d9aa9802c1e..1c67e6d08341 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolEvaluateAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolEvaluateAutoscale.json @@ -16,4 +16,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolExists.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolExists.json index df564b7fef25..af05f493a02a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolExists.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolExists.json @@ -6,11 +6,7 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - }, - "404": { - "body": "" - } + "200": {}, + "404": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolGetLifetimeStatistics.json index 3cf8b4c493ed..047ad8ca6ad1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolGetLifetimeStatistics.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimepoolstats", + "url": "https://account.region.batch.core.windows.net/lifetimepoolstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "usageStats": { @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolGet_Basic.json index 3a99c44f8c8c..a568a9697d7c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolGet_Basic.json @@ -27,7 +27,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "/bin/bash -c 'echo start task'", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -52,4 +52,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolListUsageMetrics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolListUsageMetrics.json index 6793cbd9afd6..92f64e34c1c5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolListUsageMetrics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolListUsageMetrics.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolList_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolList_Basic.json index d35a77b11af2..e1f8b55fcd8e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolList_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolList_Basic.json @@ -28,7 +28,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -51,4 +51,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolPatch.json index 506f39f9526e..7c3f13640f1b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolPatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolPatch.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolRemoveNodes.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolRemoveNodes.json index d488ad2616d8..91a982908faa 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolRemoveNodes.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolRemoveNodes.json @@ -12,8 +12,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolResize.json index be49e131d937..de226825bc59 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolResize.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolStopResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolStopResize.json index a882613bfccf..d34f79dbf0a9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolStopResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolStopResize.json @@ -6,8 +6,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolUpdate.json index 085f384e8a6c..f1c1ed9b38f5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolUpdate.json @@ -14,8 +14,6 @@ } }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolUpgradeOS.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolUpgradeOS.json index bfb641c7dca1..e61262c62ee0 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolUpgradeOS.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/PoolUpgradeOS.json @@ -9,8 +9,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAddCollection_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAddCollection_Basic.json index 25da173ff7f0..133a2f9e7c8b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAddCollection_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAddCollection_Basic.json @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAddCollection_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAddCollection_Complex.json index b3e4d09f2c9d..9031c18af727 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAddCollection_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAddCollection_Complex.json @@ -73,4 +73,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAdd_Basic.json index 0baced1103b9..f6c51e36d72b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAdd_Basic.json @@ -10,8 +10,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAdd_ContainerSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAdd_ContainerSettings.json index 94362efda14f..e830cba4c072 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAdd_ContainerSettings.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAdd_ContainerSettings.json @@ -11,7 +11,7 @@ "imageName": "ubuntu", "containerRunOptions": "--rm" }, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -20,8 +20,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAdd_ExitConditions.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAdd_ExitConditions.json index 6836485b5244..a8dde5274e01 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAdd_ExitConditions.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskAdd_ExitConditions.json @@ -18,7 +18,7 @@ } ] }, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -27,8 +27,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskDelete.json index 10d6d57516ea..205352a1123f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskDelete.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskGet.json index 6f8a4d629473..52460c8cc3a2 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskGet.json @@ -17,7 +17,7 @@ "state": "active", "stateTransitionTime": "2016-09-06T06:59:15.1161429Z", "commandLine": "cmd /c hostname", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskList.json index c2910d5edccc..9a7c20cdb633 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskList.json @@ -18,7 +18,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.4733476Z", "commandLine": "cmd /c echo task1", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -43,7 +43,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.6736345Z", "commandLine": "cmd /c echo task2", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -63,4 +63,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskListSubtasks.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskListSubtasks.json index 948f9de200df..75ebd1457aca 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskListSubtasks.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskListSubtasks.json @@ -46,4 +46,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskReactivate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskReactivate.json index d3b19cdc94fb..10f06bf72555 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskReactivate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskReactivate.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskTerminate.json index d3b19cdc94fb..10f06bf72555 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskTerminate.json @@ -7,8 +7,6 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskUpdate.json index 560d10f042a6..30ee8dccb810 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/examples/TaskUpdate.json @@ -7,15 +7,13 @@ "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", "taskUpdateParameter": { "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":3, - "retentionTime":"PT1H" + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 3, + "retentionTime": "PT1H" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/BatchService.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/BatchService.json index 55aca92ce685..a36011b28e24 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/BatchService.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/BatchService.json @@ -63,7 +63,9 @@ }, "operationId": "Application_List", "x-ms-examples": { - "List applications": { "$ref": "./examples/ApplicationList.json" } + "List applications": { + "$ref": "./examples/ApplicationList.json" + } }, "summary": "Lists all of the applications available in the specified account.", "description": "This operation returns only applications and versions that are available for use on compute nodes; that is, that can be used in an application package reference. For administrator information about applications and versions that are not yet available to compute nodes, use the Azure portal or the Azure Resource Manager API.", @@ -178,7 +180,9 @@ ], "operationId": "Application_Get", "x-ms-examples": { - "Get applications": { "$ref": "./examples/ApplicationGet.json" } + "Get applications": { + "$ref": "./examples/ApplicationGet.json" + } }, "summary": "Gets information about the specified application.", "description": "This operation returns only applications and versions that are available for use on compute nodes; that is, that can be used in an application package reference. For administrator information about applications and versions that are not yet available to compute nodes, use the Azure portal or the Azure Resource Manager API.", @@ -288,7 +292,9 @@ }, "operationId": "Pool_ListUsageMetrics", "x-ms-examples": { - "Pool list usage metrics": { "$ref": "./examples/PoolListUsageMetrics.json" } + "Pool list usage metrics": { + "$ref": "./examples/PoolListUsageMetrics.json" + } }, "summary": "Lists the usage metrics, aggregated by pool across individual time intervals, for the specified account.", "description": "If you do not specify a $filter clause including a poolId, the response includes all pools that existed in the account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.", @@ -440,7 +446,9 @@ }, "operationId": "Account_ListNodeAgentSkus", "x-ms-examples": { - "Account list node agent skus": { "$ref": "./examples/AccountListNodeAgentSkus.json" } + "Account list node agent skus": { + "$ref": "./examples/AccountListNodeAgentSkus.json" + } }, "summary": "Lists all node agent SKUs supported by the Azure Batch service.", "x-ms-request-id": "request-id", @@ -568,7 +576,9 @@ "operationId": "Account_ListPoolNodeCounts", "description": "Gets the number of nodes in each state, grouped by pool.", "x-ms-examples": { - "NodeCountsPayload": { "$ref": "./examples/AccountListPoolNodeCounts.json" } + "NodeCountsPayload": { + "$ref": "./examples/AccountListPoolNodeCounts.json" + } }, "parameters": [ { @@ -681,7 +691,9 @@ ], "operationId": "Pool_GetAllLifetimeStatistics", "x-ms-examples": { - "Pool get lifetime statistics": { "$ref": "./examples/PoolGetLifetimeStatistics.json" } + "Pool get lifetime statistics": { + "$ref": "./examples/PoolGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the pools in the specified account.", "description": "Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.", @@ -781,7 +793,9 @@ ], "operationId": "Job_GetAllLifetimeStatistics", "x-ms-examples": { - "Job get lifetime statistics": { "$ref": "./examples/JobGetLifetimeStatistics.json" } + "Job get lifetime statistics": { + "$ref": "./examples/JobGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the jobs in the specified account.", "description": "Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.", @@ -881,7 +895,9 @@ ], "operationId": "Certificate_Add", "x-ms-examples": { - "Certificate add": { "$ref": "./examples/CertificateAdd.json" } + "Certificate add": { + "$ref": "./examples/CertificateAdd.json" + } }, "summary": "Adds a certificate to the specified account.", "x-ms-request-id": "request-id", @@ -991,7 +1007,9 @@ }, "operationId": "Certificate_List", "x-ms-examples": { - "Certificate list": { "$ref": "./examples/CertificateList.json" } + "Certificate list": { + "$ref": "./examples/CertificateList.json" + } }, "summary": "Lists all of the certificates that have been added to the specified account.", "x-ms-request-id": "request-id", @@ -1125,7 +1143,9 @@ ], "operationId": "Certificate_CancelDeletion", "x-ms-examples": { - "Certificate cancel delete": { "$ref": "./examples/CertificateCancelDelete.json" } + "Certificate cancel delete": { + "$ref": "./examples/CertificateCancelDelete.json" + } }, "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.", @@ -1240,7 +1260,9 @@ ], "operationId": "Certificate_Delete", "x-ms-examples": { - "Certificate delete": { "$ref": "./examples/CertificateDelete.json" } + "Certificate delete": { + "$ref": "./examples/CertificateDelete.json" + } }, "summary": "Deletes a certificate from the specified account.", "description": "You cannot delete a certificate if a resource (pool or compute node) is using it. Before you can delete a certificate, you must therefore make sure that the certificate is not associated with any existing pools, the certificate is not installed on any compute nodes (even if you remove a certificate from a pool, it is not removed from existing compute nodes in that pool until they restart), and no running tasks depend on the certificate. If you try to delete a certificate that is in use, the deletion fails. The certificate status changes to deleteFailed. You can use Cancel Delete Certificate to set the status back to active if you decide that you want to continue using the certificate.", @@ -1349,7 +1371,9 @@ ], "operationId": "Certificate_Get", "x-ms-examples": { - "Certificate get": { "$ref": "./examples/CertificateGet.json" } + "Certificate get": { + "$ref": "./examples/CertificateGet.json" + } }, "description": "Gets information about the specified certificate.", "x-ms-request-id": "request-id", @@ -1472,7 +1496,9 @@ ], "operationId": "File_DeleteFromTask", "x-ms-examples": { - "File delete from task": { "$ref": "./examples/FileDeleteFromTask.json" } + "File delete from task": { + "$ref": "./examples/FileDeleteFromTask.json" + } }, "summary": "Deletes the specified task file from the compute node where the task ran.", "x-ms-request-id": "request-id", @@ -1583,7 +1609,9 @@ ], "operationId": "File_GetFromTask", "x-ms-examples": { - "Get File From Task": { "$ref": "./examples/FileGetFromTask.json" } + "Get File From Task": { + "$ref": "./examples/FileGetFromTask.json" + } }, "description": "Returns the content of the specified task file.", "x-ms-request-id": "request-id", @@ -1764,7 +1792,9 @@ ], "operationId": "File_GetPropertiesFromTask", "x-ms-examples": { - "File get properties from task": { "$ref": "./examples/FileGetPropertiesFromTask.json" } + "File get properties from task": { + "$ref": "./examples/FileGetPropertiesFromTask.json" + } }, "description": "Gets the properties of the specified task file.", "x-ms-request-id": "request-id", @@ -1929,7 +1959,9 @@ ], "operationId": "File_DeleteFromComputeNode", "x-ms-examples": { - "File delete from node": { "$ref": "./examples/FileDeleteFromNode.json" } + "File delete from node": { + "$ref": "./examples/FileDeleteFromNode.json" + } }, "summary": "Deletes the specified file from the compute node.", "x-ms-request-id": "request-id", @@ -2040,7 +2072,9 @@ ], "operationId": "File_GetFromComputeNode", "x-ms-examples": { - "Get File From Compute Node": { "$ref": "./examples/FileGetFromNode.json" } + "Get File From Compute Node": { + "$ref": "./examples/FileGetFromNode.json" + } }, "description": "Returns the content of the specified compute node file.", "x-ms-request-id": "request-id", @@ -2221,7 +2255,9 @@ ], "operationId": "File_GetPropertiesFromComputeNode", "x-ms-examples": { - "File get properties from node": { "$ref": "./examples/FileGetPropertiesFromNode.json" } + "File get properties from node": { + "$ref": "./examples/FileGetPropertiesFromNode.json" + } }, "description": "Gets the properties of the specified compute node file.", "x-ms-request-id": "request-id", @@ -2389,7 +2425,9 @@ }, "operationId": "File_ListFromTask", "x-ms-examples": { - "File list from task": { "$ref": "./examples/FileListFromTask.json" } + "File list from task": { + "$ref": "./examples/FileListFromTask.json" + } }, "summary": "Lists the files in a task's directory on its compute node.", "x-ms-request-id": "request-id", @@ -2537,7 +2575,9 @@ }, "operationId": "File_ListFromComputeNode", "x-ms-examples": { - "File list from node": { "$ref": "./examples/FileListFromNode.json" } + "File list from node": { + "$ref": "./examples/FileListFromNode.json" + } }, "summary": "Lists all of the files in task directories on the specified compute node.", "x-ms-request-id": "request-id", @@ -2682,7 +2722,9 @@ ], "operationId": "JobSchedule_Exists", "x-ms-examples": { - "Check Job Schedule Exists": { "$ref": "./examples/JobScheduleExists.json" } + "Check Job Schedule Exists": { + "$ref": "./examples/JobScheduleExists.json" + } }, "summary": "Checks the specified job schedule exists.", "x-ms-request-id": "request-id", @@ -2828,7 +2870,9 @@ ], "operationId": "JobSchedule_Delete", "x-ms-examples": { - "JobSchedule delete": { "$ref": "./examples/JobScheduleDelete.json" } + "JobSchedule delete": { + "$ref": "./examples/JobScheduleDelete.json" + } }, "summary": "Deletes a job schedule from the specified account.", "description": "When you delete a job schedule, this also deletes all jobs and tasks under that schedule. When tasks are deleted, all the files in their working directories on the compute nodes are also deleted (the retention period is ignored). The job schedule statistics are no longer accessible once the job schedule is deleted, though they are still counted towards account lifetime statistics.", @@ -2961,7 +3005,9 @@ ], "operationId": "JobSchedule_Get", "x-ms-examples": { - "JobSchedule get": { "$ref": "./examples/JobScheduleGet.json" } + "JobSchedule get": { + "$ref": "./examples/JobScheduleGet.json" + } }, "description": "Gets information about the specified job schedule.", "x-ms-request-id": "request-id", @@ -3127,7 +3173,9 @@ ], "operationId": "JobSchedule_Patch", "x-ms-examples": { - "JobSchedule patch": { "$ref": "./examples/JobSchedulePatch.json" } + "JobSchedule patch": { + "$ref": "./examples/JobSchedulePatch.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This replaces only the job schedule properties specified in the request. For example, if the schedule property is not specified with this request, then the Batch service will keep the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3284,7 +3332,9 @@ ], "operationId": "JobSchedule_Update", "x-ms-examples": { - "JobSchedule update": { "$ref": "./examples/JobScheduleUpdate.json" } + "JobSchedule update": { + "$ref": "./examples/JobScheduleUpdate.json" + } }, "summary": "Updates the properties of the specified job schedule.", "description": "This fully replaces all the updatable properties of the job schedule. For example, if the schedule property is not specified with this request, then the Batch service will remove the existing schedule. Changes to a job schedule only impact jobs created by the schedule after the update has taken place; currently running jobs are unaffected.", @@ -3443,7 +3493,9 @@ ], "operationId": "JobSchedule_Disable", "x-ms-examples": { - "JobSchedule disable": { "$ref": "./examples/JobScheduleDisable.json" } + "JobSchedule disable": { + "$ref": "./examples/JobScheduleDisable.json" + } }, "summary": "Disables a job schedule.", "description": "No new jobs will be created until the job schedule is enabled again.", @@ -3593,7 +3645,9 @@ ], "operationId": "JobSchedule_Enable", "x-ms-examples": { - "JobSchedule enable": { "$ref": "./examples/JobScheduleEnable.json" } + "JobSchedule enable": { + "$ref": "./examples/JobScheduleEnable.json" + } }, "summary": "Enables a job schedule.", "x-ms-request-id": "request-id", @@ -3742,7 +3796,9 @@ ], "operationId": "JobSchedule_Terminate", "x-ms-examples": { - "JobSchedule terminate": { "$ref": "./examples/JobScheduleTerminate.json" } + "JobSchedule terminate": { + "$ref": "./examples/JobScheduleTerminate.json" + } }, "summary": "Terminates a job schedule.", "x-ms-request-id": "request-id", @@ -3891,8 +3947,12 @@ ], "operationId": "JobSchedule_Add", "x-ms-examples": { - "Add a basic JobSchedule": { "$ref": "./examples/JobScheduleAdd_Basic.json" }, - "Add a complex JobScheduleAdd": { "$ref": "./examples/JobScheduleAdd_Complex.json" } + "Add a basic JobSchedule": { + "$ref": "./examples/JobScheduleAdd_Basic.json" + }, + "Add a complex JobScheduleAdd": { + "$ref": "./examples/JobScheduleAdd_Complex.json" + } }, "summary": "Adds a job schedule to the specified account.", "x-ms-request-id": "request-id", @@ -4002,7 +4062,9 @@ }, "operationId": "JobSchedule_List", "x-ms-examples": { - "JobSchedule list": { "$ref": "./examples/JobScheduleList.json" } + "JobSchedule list": { + "$ref": "./examples/JobScheduleList.json" + } }, "summary": "Lists all of the job schedules in the specified account.", "x-ms-request-id": "request-id", @@ -4146,7 +4208,9 @@ ], "operationId": "Job_Delete", "x-ms-examples": { - "Delete Job": { "$ref": "./examples/JobDelete.json" } + "Delete Job": { + "$ref": "./examples/JobDelete.json" + } }, "summary": "Deletes a job.", "description": "Deleting a job also deletes all tasks that are part of that job, and all job statistics. This also overrides the retention period for task data; that is, if the job contains tasks which are still retained on compute nodes, the Batch services deletes those tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the job to the deleting state. All update operations on a job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the job is being deleted.", @@ -4279,7 +4343,9 @@ ], "operationId": "Job_Get", "x-ms-examples": { - "Job get": { "$ref": "./examples/JobGet.json" } + "Job get": { + "$ref": "./examples/JobGet.json" + } }, "summary": "Gets information about the specified job.", "x-ms-request-id": "request-id", @@ -4445,7 +4511,9 @@ ], "operationId": "Job_Patch", "x-ms-examples": { - "Job patch": { "$ref": "./examples/JobPatch.json" } + "Job patch": { + "$ref": "./examples/JobPatch.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This replaces only the job properties specified in the request. For example, if the job has constraints, and a request does not specify the constraints element, then the job keeps the existing constraints.", @@ -4602,7 +4670,9 @@ ], "operationId": "Job_Update", "x-ms-examples": { - "Job update": { "$ref": "./examples/JobUpdate.json" } + "Job update": { + "$ref": "./examples/JobUpdate.json" + } }, "summary": "Updates the properties of the specified job.", "description": "This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.", @@ -4761,7 +4831,9 @@ ], "operationId": "Job_Disable", "x-ms-examples": { - "Job disable": { "$ref": "./examples/JobDisable.json" } + "Job disable": { + "$ref": "./examples/JobDisable.json" + } }, "summary": "Disables the specified job, preventing new tasks from running.", "description": "The Batch Service immediately moves the job to the disabling state. Batch then uses the disableTasks parameter to determine what to do with the currently running tasks of the job. The job remains in the disabling state until the disable operation is completed and all tasks have been dealt with according to the disableTasks option; the job then moves to the disabled state. No new tasks are started under the job until it moves back to active state. If you try to disable a job that is in any state other than active, disabling, or disabled, the request fails with status code 409.", @@ -4920,7 +4992,9 @@ ], "operationId": "Job_Enable", "x-ms-examples": { - "Job enable": { "$ref": "./examples/JobEnable.json" } + "Job enable": { + "$ref": "./examples/JobEnable.json" + } }, "summary": "Enables the specified job, allowing new tasks to run.", "description": "When you call this API, the Batch service sets a disabled job to the enabling state. After the this operation is completed, the job moves to the active state, and scheduling of new tasks under the job resumes. The Batch service does not allow a task to remain in the active state for more than 180 days. Therefore, if you enable a job containing active tasks which were added more than 180 days ago, those tasks will not run.", @@ -5070,7 +5144,9 @@ ], "operationId": "Job_Terminate", "x-ms-examples": { - "Job terminate": { "$ref": "./examples/JobTerminate.json" } + "Job terminate": { + "$ref": "./examples/JobTerminate.json" + } }, "summary": "Terminates the specified job, marking it as completed.", "description": "When a Terminate Job request is received, the Batch service sets the job to the terminating state. The Batch service then terminates any running tasks associated with the job and runs any required job release tasks. Then the job moves into the completed state. If there are any tasks in the job in the active state, they will remain in the active state. Once a job is terminated, new tasks cannot be added and any remaining active tasks will not be scheduled.", @@ -5229,8 +5305,12 @@ ], "operationId": "Job_Add", "x-ms-examples": { - "Add a basic job": { "$ref": "./examples/JobAdd_Basic.json" }, - "Add a complex job": { "$ref": "./examples/JobAdd_Complex.json" } + "Add a basic job": { + "$ref": "./examples/JobAdd_Basic.json" + }, + "Add a complex job": { + "$ref": "./examples/JobAdd_Complex.json" + } }, "summary": "Adds a job to the specified account.", "description": "The Batch service supports two ways to control the work done as part of a job. In the first approach, the user specifies a Job Manager task. The Batch service launches this task when it is ready to start the job. The Job Manager task controls all other tasks that run under this job, by using the Task APIs. In the second approach, the user directly controls the execution of tasks under an active job, by using the Task APIs. Also note: when naming jobs, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5341,7 +5421,9 @@ }, "operationId": "Job_List", "x-ms-examples": { - "Job list": { "$ref": "./examples/JobList.json" } + "Job list": { + "$ref": "./examples/JobList.json" + } }, "summary": "Lists all of the jobs in the specified account.", "x-ms-request-id": "request-id", @@ -5487,7 +5569,9 @@ "nextLinkName": "odata.nextLink" }, "x-ms-examples": { - "List Job Under Job Schedule": { "$ref": "./examples/JobListFromJobSchedule.json" } + "List Job Under Job Schedule": { + "$ref": "./examples/JobListFromJobSchedule.json" + } }, "operationId": "Job_ListFromJobSchedule", "summary": "Lists the jobs that have been created under the specified job schedule.", @@ -5642,7 +5726,9 @@ }, "operationId": "Job_ListPreparationAndReleaseTaskStatus", "x-ms-examples": { - "Job list preparation and release task status": { "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" } + "Job list preparation and release task status": { + "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" + } }, "summary": "Lists the execution status of the Job Preparation and Job Release task for the specified job across the compute nodes where the job has run.", "description": "This API returns the Job Preparation and Job Release task status on all compute nodes that have run the Job Preparation or Job Release task. This includes nodes which have since been removed from the pool. If this API is invoked on a job which has no Job Preparation or Job Release task, the Batch service returns HTTP status code 409 (Conflict) with an error code of JobPreparationTaskNotSpecified.", @@ -5784,7 +5870,9 @@ ], "operationId": "Job_GetTaskCounts", "x-ms-examples": { - "Job get task counts": { "$ref": "./examples/JobGetTaskCounts.json" } + "Job get task counts": { + "$ref": "./examples/JobGetTaskCounts.json" + } }, "summary": "Gets the task counts for the specified job.", "description": "Task counts provide a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. Tasks in the preparing state are counted as running.", @@ -5882,9 +5970,15 @@ ], "operationId": "Pool_Add", "x-ms-examples": { - "Add a CloudServiceConfiguration pool": { "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" }, - "Add a VirtualMachineConfiguration pool": { "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" }, - "Add a VirtualMachineConfiguration pool with containers": { "$ref": "./examples/PoolAdd_VirtualMachineConfigurationWithContainers.json" } + "Add a CloudServiceConfiguration pool": { + "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool": { + "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool with containers": { + "$ref": "./examples/PoolAdd_VirtualMachineConfigurationWithContainers.json" + } }, "summary": "Adds a pool to the specified account.", "description": "When naming pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5995,7 +6089,9 @@ }, "operationId": "Pool_List", "x-ms-examples": { - "Pool list": { "$ref": "./examples/PoolList_Basic.json" } + "Pool list": { + "$ref": "./examples/PoolList_Basic.json" + } }, "summary": "Lists all of the pools in the specified account.", "x-ms-request-id": "request-id", @@ -6139,7 +6235,9 @@ ], "operationId": "Pool_Delete", "x-ms-examples": { - "Pool delete": { "$ref": "./examples/PoolDelete.json" } + "Pool delete": { + "$ref": "./examples/PoolDelete.json" + } }, "summary": "Deletes a pool from the specified account.", "description": "When you request that a pool be deleted, the following actions occur: the pool state is set to deleting; any ongoing resize operation on the pool are stopped; the Batch service starts resizing the pool to zero nodes; any tasks running on existing nodes are terminated and requeued (as if a resize pool operation had been requested with the default requeue option); finally, the pool is removed from the system. Because running tasks are requeued, the user can rerun these tasks by updating their job to target a different pool. The tasks can then run on the new pool. If you want to override the requeue behavior, then you should call resize pool explicitly to shrink the pool to zero size before deleting the pool. If you call an Update, Patch or Delete API on a pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.", @@ -6272,7 +6370,9 @@ ], "operationId": "Pool_Exists", "x-ms-examples": { - "Check Pool Exists": { "$ref": "./examples/PoolExists.json" } + "Check Pool Exists": { + "$ref": "./examples/PoolExists.json" + } }, "description": "Gets basic properties of a pool.", "x-ms-request-id": "request-id", @@ -6418,7 +6518,9 @@ ], "operationId": "Pool_Get", "x-ms-examples": { - "Pool get": { "$ref": "./examples/PoolGet_Basic.json" } + "Pool get": { + "$ref": "./examples/PoolGet_Basic.json" + } }, "description": "Gets information about the specified pool.", "x-ms-request-id": "request-id", @@ -6584,7 +6686,9 @@ ], "operationId": "Pool_Patch", "x-ms-examples": { - "Patch the Pool": { "$ref": "./examples/PoolPatch.json" } + "Patch the Pool": { + "$ref": "./examples/PoolPatch.json" + } }, "summary": "Updates the properties of the specified pool.", "description": "This only replaces the pool properties specified in the request. For example, if the pool has a start task associated with it, and a request does not specify a start task element, then the pool keeps the existing start task.", @@ -6743,7 +6847,9 @@ ], "operationId": "Pool_DisableAutoScale", "x-ms-examples": { - "Disable pool autoscale": { "$ref": "./examples/PoolDisableAutoScale.json" } + "Disable pool autoscale": { + "$ref": "./examples/PoolDisableAutoScale.json" + } }, "summary": "Disables automatic scaling for a pool.", "x-ms-request-id": "request-id", @@ -6850,7 +6956,9 @@ ], "operationId": "Pool_EnableAutoScale", "x-ms-examples": { - "Pool enable autoscale": { "$ref": "./examples/PoolEnableAutoscale.json" } + "Pool enable autoscale": { + "$ref": "./examples/PoolEnableAutoscale.json" + } }, "summary": "Enables automatic scaling for a pool.", "description": "You cannot enable automatic scaling on a pool if a resize operation is in progress on the pool. If automatic scaling of the pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same pool more than once every 30 seconds.", @@ -7009,7 +7117,9 @@ ], "operationId": "Pool_EvaluateAutoScale", "x-ms-examples": { - "Pool evaluate autoscale": { "$ref": "./examples/PoolEvaluateAutoscale.json" } + "Pool evaluate autoscale": { + "$ref": "./examples/PoolEvaluateAutoscale.json" + } }, "summary": "Gets the result of evaluating an automatic scaling formula on the pool.", "description": "This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the pool. The pool must have auto scaling enabled in order to evaluate a formula.", @@ -7129,7 +7239,9 @@ ], "operationId": "Pool_Resize", "x-ms-examples": { - "Pool resize": { "$ref": "./examples/PoolResize.json" } + "Pool resize": { + "$ref": "./examples/PoolResize.json" + } }, "summary": "Changes the number of compute nodes that are assigned to a pool.", "description": "You can only resize a pool when its allocation state is steady. If the pool is already resizing, the request fails with status code 409. When you resize a pool, the pool's allocation state changes from steady to resizing. You cannot resize pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a pool downwards, the Batch service chooses which nodes to remove. To remove specific nodes, use the pool remove nodes API instead.", @@ -7288,7 +7400,9 @@ ], "operationId": "Pool_StopResize", "x-ms-examples": { - "Pool stop resize": { "$ref": "./examples/PoolStopResize.json" } + "Pool stop resize": { + "$ref": "./examples/PoolStopResize.json" + } }, "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.", @@ -7438,7 +7552,9 @@ ], "operationId": "Pool_UpdateProperties", "x-ms-examples": { - "Pool update": { "$ref": "./examples/PoolUpdate.json" } + "Pool update": { + "$ref": "./examples/PoolUpdate.json" + } }, "summary": "Updates the properties of the specified pool.", "description": "This fully replaces all the updatable properties of the pool. For example, if the pool has a start task associated with it and if start task is not specified with this request, then the Batch service will remove the existing start task.", @@ -7555,7 +7671,9 @@ ], "operationId": "Pool_RemoveNodes", "x-ms-examples": { - "Pool remove nodes": { "$ref": "./examples/PoolRemoveNodes.json" } + "Pool remove nodes": { + "$ref": "./examples/PoolRemoveNodes.json" + } }, "summary": "Removes compute nodes from the specified pool.", "description": "This operation can only run when the allocation state of the pool is steady. When this operation runs, the allocation state changes from steady to resizing.", @@ -7714,9 +7832,15 @@ ], "operationId": "Task_Add", "x-ms-examples": { - "Add a basic task": { "$ref": "./examples/TaskAdd_Basic.json" }, - "Add a task with exit conditions": { "$ref": "./examples/TaskAdd_ExitConditions.json" }, - "Add a task with container settings": { "$ref": "./examples/TaskAdd_ContainerSettings.json" } + "Add a basic task": { + "$ref": "./examples/TaskAdd_Basic.json" + }, + "Add a task with exit conditions": { + "$ref": "./examples/TaskAdd_ExitConditions.json" + }, + "Add a task with container settings": { + "$ref": "./examples/TaskAdd_ContainerSettings.json" + } }, "summary": "Adds a task to the specified job.", "description": "The maximum lifetime of a task from addition to completion is 180 days. If a task has not completed within 180 days of being added it will be terminated by the Batch service and left in whatever state it was in at that time.", @@ -7834,7 +7958,9 @@ }, "operationId": "Task_List", "x-ms-examples": { - "Task list": { "$ref": "./examples/TaskList.json" } + "Task list": { + "$ref": "./examples/TaskList.json" + } }, "summary": "Lists all of the tasks that are associated with the specified job.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -7986,8 +8112,12 @@ ], "operationId": "Task_AddCollection", "x-ms-examples": { - "Add a basic collection of tasks": { "$ref": "./examples/TaskAddCollection_Basic.json" }, - "Add a complex collection of tasks": { "$ref": "./examples/TaskAddCollection_Complex.json" } + "Add a basic collection of tasks": { + "$ref": "./examples/TaskAddCollection_Basic.json" + }, + "Add a complex collection of tasks": { + "$ref": "./examples/TaskAddCollection_Complex.json" + } }, "summary": "Adds a collection of tasks to the specified job.", "description": "Note that each task must have a unique ID. The Batch service may not return the results for each task in the same order the tasks were submitted in this request. If the server times out or the connection is closed during the request, the request may have been partially or fully processed, or not at all. In such cases, the user should re-issue the request. Note that it is up to the user to correctly handle failures when re-issuing a request. For example, you should use the same task IDs during a retry so that if the prior operation succeeded, the retry will not create extra tasks unexpectedly. If the response contains any tasks which failed to add, a client can retry the request. In a retry, it is most efficient to resubmit only tasks that failed to add, and to omit tasks that were successfully added on the first attempt. The maximum lifetime of a task from addition to completion is 180 days. If a task has not completed within 180 days of being added it will be terminated by the Batch service and left in whatever state it was in at that time.", @@ -8092,7 +8222,9 @@ ], "operationId": "Task_Delete", "x-ms-examples": { - "Task delete": { "$ref": "./examples/TaskDelete.json" } + "Task delete": { + "$ref": "./examples/TaskDelete.json" + } }, "summary": "Deletes a task from the specified job.", "description": "When a task is deleted, all of the files in its directory on the compute node where it ran are also deleted (regardless of the retention time). For multi-instance tasks, the delete task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.", @@ -8232,7 +8364,9 @@ ], "operationId": "Task_Get", "x-ms-examples": { - "Task get": { "$ref": "./examples/TaskGet.json" } + "Task get": { + "$ref": "./examples/TaskGet.json" + } }, "summary": "Gets information about the specified task.", "description": "For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.", @@ -8410,7 +8544,9 @@ ], "operationId": "Task_Update", "x-ms-examples": { - "Task update": { "$ref": "./examples/TaskUpdate.json" } + "Task update": { + "$ref": "./examples/TaskUpdate.json" + } }, "description": "Updates the properties of the specified task.", "x-ms-request-id": "request-id", @@ -8575,7 +8711,9 @@ ], "operationId": "Task_ListSubtasks", "x-ms-examples": { - "Task list subtasks": { "$ref": "./examples/TaskListSubtasks.json" } + "Task list subtasks": { + "$ref": "./examples/TaskListSubtasks.json" + } }, "summary": "Lists all of the subtasks that are associated with the specified multi-instance task.", "description": "If the task is not a multi-instance task then this returns an empty collection.", @@ -8699,7 +8837,9 @@ ], "operationId": "Task_Terminate", "x-ms-examples": { - "Task terminate": { "$ref": "./examples/TaskTerminate.json" } + "Task terminate": { + "$ref": "./examples/TaskTerminate.json" + } }, "summary": "Terminates the specified task.", "description": "When the task has been terminated, it moves to the completed state. For multi-instance tasks, the terminate task operation applies synchronously to the primary task; subtasks are then terminated asynchronously in the background.", @@ -8856,7 +8996,9 @@ ], "operationId": "Task_Reactivate", "x-ms-examples": { - "Task reactivate": { "$ref": "./examples/TaskReactivate.json" } + "Task reactivate": { + "$ref": "./examples/TaskReactivate.json" + } }, "summary": "Reactivates a task, allowing it to run again even if its retry count has been exhausted.", "description": "Reactivation makes a task eligible to be retried again up to its maximum retry count. The task's state is changed to active. As the task is no longer in the completed state, any previous exit code or failure information is no longer available after reactivation. Each time a task is reactivated, its retry count is reset to 0. Reactivation will fail for tasks that are not completed or that previously completed successfully (with an exit code of 0). Additionally, it will fail if the job has completed (or is terminating or deleting).", @@ -9013,7 +9155,9 @@ ], "operationId": "ComputeNode_AddUser", "x-ms-examples": { - "Node add user": { "$ref": "./examples/NodeAddUser.json" } + "Node add user": { + "$ref": "./examples/NodeAddUser.json" + } }, "summary": "Adds a user account to the specified compute node.", "description": "You can add a user account to a node only when it is in the idle or running state.", @@ -9137,7 +9281,9 @@ ], "operationId": "ComputeNode_DeleteUser", "x-ms-examples": { - "Node delete user": { "$ref": "./examples/NodeDeleteUser.json" } + "Node delete user": { + "$ref": "./examples/NodeDeleteUser.json" + } }, "summary": "Deletes a user account from the specified compute node.", "description": "You can delete a user account to a node only when it is in the idle or running state.", @@ -9242,7 +9388,9 @@ ], "operationId": "ComputeNode_UpdateUser", "x-ms-examples": { - "Node update user": { "$ref": "./examples/NodeUpdateUser.json" } + "Node update user": { + "$ref": "./examples/NodeUpdateUser.json" + } }, "summary": "Updates the password and expiration time of a user account on the specified compute node.", "description": "This operation replaces of all the updatable properties of the account. For example, if the expiryTime element is not specified, the current value is replaced with the default value, not left unmodified. You can update a user account on a node only when it is in the idle or running state.", @@ -9373,7 +9521,9 @@ ], "operationId": "ComputeNode_Get", "x-ms-examples": { - "Node get": { "$ref": "./examples/NodeGet_Basic.json" } + "Node get": { + "$ref": "./examples/NodeGet_Basic.json" + } }, "summary": "Gets information about the specified compute node.", "x-ms-request-id": "request-id", @@ -9496,7 +9646,9 @@ ], "operationId": "ComputeNode_Reboot", "x-ms-examples": { - "Node reboot": { "$ref": "./examples/NodeReboot.json" } + "Node reboot": { + "$ref": "./examples/NodeReboot.json" + } }, "summary": "Restarts the specified compute node.", "description": "You can restart a node only if it is in an idle or running state.", @@ -9620,7 +9772,9 @@ ], "operationId": "ComputeNode_Reimage", "x-ms-examples": { - "Node reimage": { "$ref": "./examples/NodeReimage.json" } + "Node reimage": { + "$ref": "./examples/NodeReimage.json" + } }, "summary": "Reinstalls the operating system on the specified compute node.", "description": "You can reinstall the operating system on a node only if it is in an idle or running state. This API can be invoked only on pools created with the cloud service configuration property.", @@ -9744,7 +9898,9 @@ ], "operationId": "ComputeNode_DisableScheduling", "x-ms-examples": { - "Node disable scheduling": { "$ref": "./examples/NodeDisableScheduling.json" } + "Node disable scheduling": { + "$ref": "./examples/NodeDisableScheduling.json" + } }, "summary": "Disables task scheduling on the specified compute node.", "description": "You can disable task scheduling on a node only if its current scheduling state is enabled.", @@ -9868,7 +10024,9 @@ ], "operationId": "ComputeNode_EnableScheduling", "x-ms-examples": { - "Node enable scheduling": { "$ref": "./examples/NodeEnableScheduling.json" } + "Node enable scheduling": { + "$ref": "./examples/NodeEnableScheduling.json" + } }, "summary": "Enables task scheduling on the specified compute node.", "description": "You can enable task scheduling on a node only if its current scheduling state is disabled", @@ -9983,7 +10141,9 @@ ], "operationId": "ComputeNode_GetRemoteLoginSettings", "x-ms-examples": { - "Node get remote login settings": { "$ref": "./examples/NodeGetRemoteLoginSettings.json" } + "Node get remote login settings": { + "$ref": "./examples/NodeGetRemoteLoginSettings.json" + } }, "summary": "Gets the settings required for remote login to a compute node.", "description": "Before you can remotely login to a node using the remote login settings, you must create a user account on the node. This API can be invoked only on pools created with the virtual machine configuration property. For pools created with a cloud service configuration, see the GetRemoteDesktop API.", @@ -10097,7 +10257,9 @@ ], "operationId": "ComputeNode_GetRemoteDesktop", "x-ms-examples": { - "Get RDP file of the compute node": { "$ref": "./examples/NodeGetRemoteDesktop.json" } + "Get RDP file of the compute node": { + "$ref": "./examples/NodeGetRemoteDesktop.json" + } }, "summary": "Gets the Remote Desktop Protocol file for the specified compute node.", "description": "Before you can access a node by using the RDP file, you must create a user account on the node. This API can only be invoked on pools created with a cloud service configuration. For pools created with a virtual machine configuration, see the GetRemoteLoginSettings API.", @@ -10218,7 +10380,9 @@ "summary": "Upload Azure Batch service log files from the specified compute node to Azure Blob Storage.", "description": "This is for gathering Azure Batch service log files in an automated fashion from nodes if you are experiencing an error and wish to escalate to Azure support. The Azure Batch service log files should be shared with Azure support to aid in debugging issues with the Batch service.", "x-ms-examples": { - "Upload BatchService Logs": { "$ref": "./examples/NodeUploadBatchServiceLogs.json" } + "Upload BatchService Logs": { + "$ref": "./examples/NodeUploadBatchServiceLogs.json" + } }, "x-ms-request-id": "request-id", "parameters": [ @@ -10333,7 +10497,9 @@ }, "operationId": "ComputeNode_List", "x-ms-examples": { - "Node list": { "$ref": "./examples/NodeList.json" } + "Node list": { + "$ref": "./examples/NodeList.json" + } }, "summary": "Lists the compute nodes in the specified pool.", "x-ms-request-id": "request-id", @@ -10496,7 +10662,13 @@ "title": "The total core hours used in the pool during this aggregation interval." } }, - "required": [ "poolId", "startTime", "endTime", "vmSize", "totalCoreHours" ], + "required": [ + "poolId", + "startTime", + "endTime", + "vmSize", + "totalCoreHours" + ], "title": "Usage metrics for a pool across an aggregation interval." }, "PoolListUsageMetricsResult": { @@ -10616,7 +10788,11 @@ "title": "The aggregated wall-clock time of the dedicated compute node cores being part of the pool." } }, - "required": [ "startTime", "lastUpdateTime", "dedicatedCoreTime" ], + "required": [ + "startTime", + "lastUpdateTime", + "dedicatedCoreTime" + ], "title": "Statistics related to pool usage information." }, "ResourceStatistics": { @@ -10687,7 +10863,21 @@ "title": "The total amount of data in GiB of network writes across all nodes in the pool." } }, - "required": [ "startTime", "lastUpdateTime", "avgCPUPercentage", "avgMemoryGiB", "peakMemoryGiB", "avgDiskGiB", "peakDiskGiB", "diskReadIOps", "diskWriteIOps", "diskReadGiB", "diskWriteGiB", "networkReadGiB", "networkWriteGiB" ], + "required": [ + "startTime", + "lastUpdateTime", + "avgCPUPercentage", + "avgMemoryGiB", + "peakMemoryGiB", + "avgDiskGiB", + "peakDiskGiB", + "diskReadIOps", + "diskWriteIOps", + "diskReadGiB", + "diskWriteGiB", + "networkReadGiB", + "networkWriteGiB" + ], "title": "Statistics related to resource consumption by compute nodes in a pool." }, "PoolStatistics": { @@ -10715,7 +10905,11 @@ "title": "Statistics related to resource consumption by compute nodes in the pool." } }, - "required": [ "url", "startTime", "lastUpdateTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime" + ], "title": "Contains utilization and resource usage statistics for the lifetime of a pool." }, "JobStatistics": { @@ -10794,7 +10988,22 @@ "description": "The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.) This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job." }, "NameValuePair": { @@ -10889,7 +11098,9 @@ "description": "If this is omitted on a pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a task, and no default version is specified for this application, the task fails with a pre-processing error." } }, - "required": [ "applicationId" ], + "required": [ + "applicationId" + ], "title": "A reference to an application package to be deployed to compute nodes." }, "ApplicationSummary": { @@ -10910,7 +11121,11 @@ } } }, - "required": [ "id", "displayName", "versions" ], + "required": [ + "id", + "displayName", + "versions" + ], "title": "Contains information about an application in an Azure Batch account." }, "CertificateAddParameter": { @@ -10955,7 +11170,11 @@ "description": "This is required if the certificate format is pfx. It should be omitted if the certificate format is cer." } }, - "required": [ "thumbprint", "thumbprintAlgorithm", "data" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm", + "data" + ], "title": "A certificate that can be installed on compute nodes and can be used to authenticate operations on the machine." }, "CertificateListResult": { @@ -11002,7 +11221,10 @@ "description": "The file mode is returned only for files on Linux compute nodes." } }, - "required": [ "lastModified", "contentLength" ], + "required": [ + "lastModified", + "contentLength" + ], "title": "The properties of a file on a compute node." }, "NodeFile": { @@ -11096,7 +11318,9 @@ "description": "This is only supported for jobs running on VirtualMachineConfiguration pools. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. 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 which will run tasks from the job. For more details, see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration." } }, - "required": [ "subnetId" ], + "required": [ + "subnetId" + ], "title": "The network configuration for the job." }, "TaskContainerSettings": { @@ -11117,7 +11341,9 @@ "description": "This setting can be omitted if was already provided at pool creation." } }, - "required": [ "imageName" ], + "required": [ + "imageName" + ], "title": "The container settings for a task." }, "ResourceFile": { @@ -11166,7 +11392,9 @@ "title": "The value of the environment variable." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "An environment variable to be set on a task process." }, "ExitConditions": { @@ -11215,7 +11443,10 @@ } }, "title": "How the Batch service should respond if a task exits with a particular exit code.", - "required": [ "code", "exitOptions" ] + "required": [ + "code", + "exitOptions" + ] }, "ExitCodeRangeMapping": { "properties": { @@ -11235,7 +11466,11 @@ } }, "title": "A range of exit codes and how the Batch service should respond to exit codes within that range.", - "required": [ "start", "end", "exitOptions" ] + "required": [ + "start", + "end", + "exitOptions" + ] }, "ExitOptions": { "properties": { @@ -11419,7 +11654,10 @@ "$ref": "#/definitions/WindowsUserConfiguration" } }, - "required": [ "name", "password" ], + "required": [ + "name", + "password" + ], "title": "Properties used to create a user used to execute tasks on an Azure Batch node." }, "TaskConstraints": { @@ -11528,7 +11766,10 @@ "description": "The default value is true." } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "Specifies details of a Job Manager task.", "description": "The Job Manager task is automatically started when the job is created. The Batch service tries to schedule the Job Manager task before any other tasks in the job. When shrinking a pool, the Batch service tries to preserve compute nodes where Job Manager tasks are running for as long as possible (that is, nodes running 'normal' tasks are removed before nodes running Job Manager tasks). When a Job Manager task fails and needs to be restarted, the system tries to schedule it at the highest priority. If there are no idle nodes available, the system may terminate one of the running tasks in the pool and return it to the queue in order to make room for the Job Manager task to restart. Note that a Job Manager task in one job does not have priority over tasks in other jobs. Across jobs, only job level priorities are observed. For example, if a Job Manager in a priority 0 job needs to be restarted, it will not displace tasks of a priority 1 job. Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing." }, @@ -11584,7 +11825,9 @@ "description": "The Job Preparation task is always rerun if a compute node is reimaged, or if the Job Preparation task did not complete (e.g. because the reboot occurred while the task was running). Therefore, you should always write a Job Preparation task to be idempotent and to behave correctly if run multiple times. The default value is true." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Preparation task to run before any tasks of the job on any given compute node.", "description": "You can use Job Preparation to prepare a compute node to run tasks for the job. Activities commonly performed in Job Preparation include: Downloading common resource files used by all the tasks in the job. The Job Preparation task can download these common resource files to the shared location on the compute node. (AZ_BATCH_NODE_ROOT_DIR\\shared), or starting a local service on the compute node so that all tasks of that job can communicate with it. If the Job Preparation task fails (that is, exhausts its retry count before exiting with exit code 0), Batch will not run tasks of this job on the compute node. The node remains ineligible to run tasks of this job until it is reimaged. The node remains active and can be used for other jobs. The Job Preparation task can run multiple times on the same compute node. Therefore, you should write the Job Preparation task to handle re-execution. If the compute node is rebooted, the Job Preparation task is run again on the node before scheduling any other task of the job, if rerunOnNodeRebootAfterSuccess is true or if the Job Preparation task did not previously complete. If the compute node is reimaged, the Job Preparation task is run again before scheduling any task of the job. Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing." }, @@ -11637,7 +11880,9 @@ "description": "If omitted, the task runs as a non-administrative user unique to the task." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Release task to run on job completion on any compute node where the job has run.", "description": "The Job Release task runs when the job ends, because of one of the following: The user calls the Terminate Job API, or the Delete Job API while the job is still active, the job's maximum wall clock time constraint is reached, and the job is still active, or the job's Job Manager task completed, and the job is configured to terminate when the Job Manager completes. The Job Release task runs on each compute node where tasks of the job have run and the Job Preparation task ran and completed. If you reimage a compute node after it has run the Job Preparation task, and the job ends without any further tasks of the job running on that compute node (and hence the Job Preparation task does not re-run), then the Job Release task does not run on that node. If a compute node reboots while the Job Release task is still running, the Job Release task runs again when the compute node starts up. The job is not marked as complete until all Job Release tasks have completed. The Job Release task runs in the background. It does not occupy a scheduling slot; that is, it does not count towards the maxTasksPerNode limit specified on the pool." }, @@ -11666,7 +11911,9 @@ } } }, - "required": [ "nodeFillType" ], + "required": [ + "nodeFillType" + ], "title": "Specifies how tasks should be distributed across compute nodes." }, "StartTask": { @@ -11713,7 +11960,9 @@ "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 failure info details. 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 false." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "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": "Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing. In some cases the start task may be re-run even though the node was not rebooted. 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." }, @@ -11792,7 +12041,10 @@ "description": "You can specify more than one visibility in this collection. The default is all accounts." } }, - "required": [ "thumbprint", "thumbprintAlgorithm" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm" + ], "title": "A reference to a certificate to be installed on compute nodes in a pool." }, "MetadataItem": { @@ -11806,7 +12058,10 @@ "title": "The value of the metadata item." } }, - "required": [ "name", "value" ], + "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." }, @@ -11930,7 +12185,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "vmSize" ], + "required": [ + "vmSize" + ], "title": "Specification for creating a new pool." }, "AutoPoolSpecification": { @@ -11973,7 +12230,9 @@ "title": "The pool specification for the auto pool." } }, - "required": [ "poolLifetimeOption" ], + "required": [ + "poolLifetimeOption" + ], "title": "Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto pool when the job is submitted." }, "PoolInformation": { @@ -12062,7 +12321,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "Specifies details of the jobs to be created on a schedule." }, "RecentJob": { @@ -12174,7 +12435,22 @@ "description": "This value is only reported in the account lifetime statistics; it is not included in the job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a job schedule." }, "CloudJobSchedule": { @@ -12283,7 +12559,11 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "schedule", "jobSpecification" ], + "required": [ + "id", + "schedule", + "jobSpecification" + ], "title": "A job schedule that allows recurring jobs by specifying when to run jobs and a specification used to create each job." }, "CloudJobScheduleListResult": { @@ -12324,7 +12604,9 @@ "title": "A list of additional error details related to the scheduling error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "An error encountered by the Batch service when scheduling a job." }, "JobExecutionInformation": { @@ -12357,7 +12639,9 @@ "description": "This property is set only if the job is in the completed state. If the Batch service terminates the job, it sets the reason as follows: JMComplete - the Job Manager task completed, and killJobOnCompletion was set to true. MaxWallClockTimeExpiry - the job reached its maxWallClockTime constraint. TerminateJobSchedule - the job ran as part of a schedule, and the schedule terminated. AllTasksComplete - the job's onAllTasksComplete attribute is set to terminatejob, and all tasks in the job are complete. TaskFailed - the job's onTaskFailure attribute is set to performExitOptionsJobAction, and a task in the job failed with an exit condition that specified a jobAction of terminatejob. Any other string is a user-defined reason specified in a call to the 'Terminate a job' operation." } }, - "required": [ "startTime" ], + "required": [ + "startTime" + ], "title": "Contains information about the execution of a job in the Azure Batch service." }, "CloudJob": { @@ -12561,7 +12845,10 @@ "title": "The network configuration for the job." } }, - "required": [ "id", "poolInfo" ], + "required": [ + "id", + "poolInfo" + ], "title": "An Azure Batch job to add." }, "CloudJobListResult": { @@ -12621,7 +12908,9 @@ "title": "A list of additional details related to the error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "Information about a task failure." }, "JobPreparationTaskExecutionInformation": { @@ -12702,7 +12991,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "retryCount", "state" ], + "required": [ + "startTime", + "retryCount", + "state" + ], "title": "Contains information about the execution of a Job Preparation task on a compute node." }, "JobReleaseTaskExecutionInformation": { @@ -12771,7 +13064,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "state" ], + "required": [ + "startTime", + "state" + ], "title": "Contains information about the execution of a Job Release task on a compute node." }, "JobPreparationAndReleaseTaskExecutionInformation": { @@ -12844,7 +13140,13 @@ "title": "The number of tasks which failed. A task fails if its result (found in the executionInfo property) is 'failure'." } }, - "required": [ "active", "running", "completed", "succeeded", "failed" ], + "required": [ + "active", + "running", + "completed", + "succeeded", + "failed" + ], "title": "The task counts for a job." }, "AutoScaleRunError": { @@ -12884,7 +13186,9 @@ "title": "Details of the error encountered evaluating the autoscale formula on the pool, if the evaluation was unsuccessful." } }, - "required": [ "timestamp" ], + "required": [ + "timestamp" + ], "title": "The results and errors from an execution of a pool autoscale formula." }, "ResizeError": { @@ -12920,7 +13224,9 @@ "description": "The default value is * which specifies the latest operating system version for the specified OS family." } }, - "required": [ "osFamily" ], + "required": [ + "osFamily" + ], "title": "The configuration for nodes in a pool based on the Azure Cloud Services platform." }, "ImageReference": { @@ -13082,7 +13388,10 @@ "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." } }, - "required": [ "nodeAgentSKUId", "imageReference" ], + "required": [ + "nodeAgentSKUId", + "imageReference" + ], "title": "The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure." }, "ContainerRegistry": { @@ -13102,7 +13411,10 @@ "title": "The password to log into the registry server." } }, - "required": [ "username", "password" ], + "required": [ + "username", + "password" + ], "title": "A private container registry." }, "ContainerConfiguration": { @@ -13141,7 +13453,9 @@ "description": "If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here." } }, - "required": [ "type" ], + "required": [ + "type" + ], "title": "The configuration for container-enabled pools." }, "NetworkConfiguration": { @@ -13539,7 +13853,10 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "vmSize" ], + "required": [ + "id", + "vmSize" + ], "title": "A pool in the Azure Batch service to add." }, "ApplicationListResult": { @@ -13582,7 +13899,9 @@ "description": "You can pass the affinityId of a compute node to indicate that this task needs to run on that compute node. Note that this is just a soft affinity. If the target node is busy or unavailable at the time the task is scheduled, then the task will be scheduled elsewhere." } }, - "required": [ "affinityId" ], + "required": [ + "affinityId" + ], "title": "A locality hint that can be used by the Batch service to select a compute node on which to start a task." }, "TaskExecutionInformation": { @@ -13645,7 +13964,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "requeueCount", "retryCount" ], + "required": [ + "requeueCount", + "retryCount" + ], "title": "Information about the execution of a task." }, "ComputeNodeInformation": { @@ -13691,7 +14013,10 @@ "description": "This is the most recent time that the node agent was updated to a new version." } }, - "required": [ "version", "lastUpdateTime" ], + "required": [ + "version", + "lastUpdateTime" + ], "title": "Information about the node agent.", "description": "The Batch node agent is a program that runs on each node in the pool and provides Batch capability on the compute node." }, @@ -13717,7 +14042,9 @@ "description": "The difference between common resource files and task resource files is that common resource files are downloaded for all subtasks including the primary, whereas task resource files are downloaded only for the primary. Also note that these resource files are not downloaded to the task working directory, but instead are downloaded to the task root directory (one directory above the working directory). There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers." } }, - "required": [ "coordinationCommandLine" ], + "required": [ + "coordinationCommandLine" + ], "title": "Settings which specify how to run a multi-instance task.", "description": "Multi-instance tasks are commonly used to support MPI tasks. In the MPI case, if any of the subtasks fail (for example due to exiting with a non-zero exit code) the entire multi-instance task fails. The multi-instance task is then terminated and retried, up to its retry limit." }, @@ -13779,7 +14106,19 @@ "title": "The total wait time of the task. The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.)" } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "waitTime" + ], "title": "Resource usage statistics for a task." }, "TaskDependencies": { @@ -13817,7 +14156,10 @@ }, "title": "A range of task IDs that a task can depend on. All tasks with IDs in the range must complete successfully before the dependent task can be scheduled.", "description": "The start and end of the range are inclusive. For example, if a range has start 9 and end 12, then it represents tasks '9', '10', '11' and '12'.", - "required": [ "start", "end" ] + "required": [ + "start", + "end" + ] }, "CloudTask": { "properties": { @@ -14044,7 +14386,10 @@ "$ref": "#/definitions/AuthenticationTokenSettings" } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "An Azure Batch task to add.", "description": "Batch will retry tasks when a recovery operation is triggered on a compute node. Examples of recovery operations include (but are not limited to) when an unhealthy compute node is rebooted or a compute node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all tasks should be idempotent. This means tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running tasks is to use some form of checkpointing." }, @@ -14060,7 +14405,9 @@ "description": "The total serialized size of this collection must be less than 1MB. If it is greater than 1MB (for example if each task has 100's of resource files or environment variables), the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer tasks." } }, - "required": [ "value" ], + "required": [ + "value" + ], "title": "A collection of Azure Batch tasks to add." }, "TaskAddResult": { @@ -14117,7 +14464,10 @@ "title": "The error encountered while attempting to add the task." } }, - "required": [ "status", "taskId" ], + "required": [ + "status", + "taskId" + ], "title": "Result for a single task added as part of an add task collection operation." }, "TaskAddCollectionResult": { @@ -14254,7 +14604,9 @@ "title": "Information about the execution of the task." } }, - "required": [ "taskState" ], + "required": [ + "taskState" + ], "title": "Information about a task running on a compute node." }, "StartTaskInformation": { @@ -14327,7 +14679,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "state", "startTime", "retryCount" ], + "required": [ + "state", + "startTime", + "retryCount" + ], "title": "Information about a start task running on a compute node." }, "ComputeNodeError": { @@ -14568,7 +14924,9 @@ "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" ], + "required": [ + "inboundNATPools" + ], "title": "The endpoint configuration for a pool." }, "InboundNATPool": { @@ -14609,7 +14967,13 @@ } } }, - "required": [ "name", "protocol", "backendPort", "frontendPortRangeStart", "frontendPortRangeEnd" ], + "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": { @@ -14648,7 +15012,11 @@ "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." } }, - "required": [ "priority", "access", "sourceAddressPrefix" ], + "required": [ + "priority", + "access", + "sourceAddressPrefix" + ], "title": "A network security group rule to apply to an inbound endpoint." }, "ComputeNodeEndpointConfiguration": { @@ -14661,7 +15029,9 @@ "title": "The list of inbound endpoints that are accessible on the compute node." } }, - "required": [ "inboundEndpoints" ], + "required": [ + "inboundEndpoints" + ], "title": "The endpoint configuration for the compute node." }, "InboundEndpoint": { @@ -14693,7 +15063,14 @@ "title": "The backend port number of the endpoint." } }, - "required": [ "name", "protocol", "publicIPAddress", "publicFQDN", "frontendPort", "backendPort" ], + "required": [ + "name", + "protocol", + "publicIPAddress", + "publicFQDN", + "frontendPort", + "backendPort" + ], "title": "An inbound endpoint on a compute node." }, "ComputeNodeListResult": { @@ -14740,7 +15117,9 @@ "description": "The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux nodes. If this is specified for a Windows node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "A user account for RDP or SSH access on a compute node." }, "ComputeNodeGetRemoteLoginSettingsResult": { @@ -14755,7 +15134,10 @@ "title": "The port used for remote login to the compute node." } }, - "required": [ "remoteLoginIPAddress", "remoteLoginPort" ], + "required": [ + "remoteLoginIPAddress", + "remoteLoginPort" + ], "title": "The remote login settings for a compute node." }, "JobSchedulePatchParameter": { @@ -14802,7 +15184,10 @@ "description": "If you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted." } }, - "required": [ "schedule", "jobSpecification" ], + "required": [ + "schedule", + "jobSpecification" + ], "title": "The set of changes to be made to a job schedule." }, "JobDisableParameter": { @@ -14835,7 +15220,9 @@ } } }, - "required": [ "disableTasks" ], + "required": [ + "disableTasks" + ], "title": "Options when disabling a job." }, "JobTerminateParameter": { @@ -14913,7 +15300,9 @@ "$ref": "#/definitions/OnAllTasksComplete" } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "The set of changes to be made to a job." }, "PoolEnableAutoScaleParameter": { @@ -14940,7 +15329,9 @@ "description": "The formula is validated and its results calculated, but it is not applied to the pool. To apply the formula to the pool, 'Enable automatic scaling on a pool'. For more information about specifying this formula, see Automatically scale compute nodes in an Azure Batch pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling)." } }, - "required": [ "autoScaleFormula" ], + "required": [ + "autoScaleFormula" + ], "title": "Options for evaluating an automatic scaling formula on a pool." }, "PoolResizeParameter": { @@ -15001,7 +15392,11 @@ "description": "This list replaces any existing metadata configured on the pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the pool." } }, - "required": [ "certificateReferences", "metadata", "applicationPackageReferences" ], + "required": [ + "certificateReferences", + "metadata", + "applicationPackageReferences" + ], "title": "The set of changes to be made to a pool." }, "PoolPatchParameter": { @@ -15205,7 +15600,9 @@ "$ref": "#/definitions/ComputeNodeDeallocationOption" } }, - "required": [ "nodeList" ], + "required": [ + "nodeList" + ], "title": "Options for removing compute nodes from a pool." }, "OutputFile": { @@ -15224,7 +15621,11 @@ "$ref": "#/definitions/OutputFileUploadOptions" } }, - "required": [ "filePattern", "destination", "uploadOptions" ], + "required": [ + "filePattern", + "destination", + "uploadOptions" + ], "title": "A specification for uploading files from an Azure Batch node to another location after the Batch service has finished executing the task process." }, "OutputFileDestination": { @@ -15249,7 +15650,9 @@ "description": "The URL must include a Shared Access Signature (SAS) granting write permissions to the container." } }, - "required": [ "containerUrl" ], + "required": [ + "containerUrl" + ], "title": "Specifies a file upload destination within an Azure blob storage container." }, "OutputFileUploadOptions": { @@ -15260,7 +15663,9 @@ "$ref": "#/definitions/OutputFileUploadCondition" } }, - "required": [ "uploadCondition" ], + "required": [ + "uploadCondition" + ], "title": "Details about an output file upload operation, including under what conditions to perform the upload." }, "ErrorMessage": { @@ -15709,7 +16114,10 @@ "description": "Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime." } }, - "required": [ "containerUrl", "startTime" ], + "required": [ + "containerUrl", + "startTime" + ], "title": "The Azure Batch service log files upload configuration for a compute node." }, "UploadBatchServiceLogsResult": { @@ -15725,7 +16133,10 @@ "title": "The number of log files which will be uploaded." } }, - "required": [ "virtualDirectoryName", "numberOfFilesUploaded" ], + "required": [ + "virtualDirectoryName", + "numberOfFilesUploaded" + ], "title": "The result of uploading Batch service log files from a specific compute node." }, "PoolNodeCountsListResult": { diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/AccountListNodeAgentSkus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/AccountListNodeAgentSkus.json index d59100fda47b..612b8ada888f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/AccountListNodeAgentSkus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/AccountListNodeAgentSkus.json @@ -61,4 +61,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/AccountListPoolNodeCounts.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/AccountListPoolNodeCounts.json index 13ddd4d2ad30..f8fb3fbc8750 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/AccountListPoolNodeCounts.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/AccountListPoolNodeCounts.json @@ -118,4 +118,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/ApplicationGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/ApplicationGet.json index 404e317182fd..b9b725b902e0 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/ApplicationGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/ApplicationGet.json @@ -9,12 +9,12 @@ "responses": { "200": { "body": { - "id": "my_application_id", - "versions": [ - "v1.0" - ], - "displayName": "my_display_name" + "id": "my_application_id", + "versions": [ + "v1.0" + ], + "displayName": "my_display_name" } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/ApplicationList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/ApplicationList.json index 8faa2407818a..968c9ae24180 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/ApplicationList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/ApplicationList.json @@ -20,4 +20,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateAdd.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateAdd.json index d52b5da92f0e..b06e81b8fe30 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateAdd.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateAdd.json @@ -5,16 +5,14 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "certificate": { - "thumbprintAlgorithm":"sha1", - "thumbprint":"0123456789abcdef0123456789abcdef01234567", - "data":"#####...", - "certificateFormat":"pfx", - "password":"certpassword" + "thumbprintAlgorithm": "sha1", + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "data": "#####...", + "certificateFormat": "pfx", + "password": "certpassword" } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateCancelDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateCancelDelete.json index 3a8f6699a6e9..e5f44e995044 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateCancelDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateCancelDelete.json @@ -8,8 +8,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateDelete.json index dec2a177db34..3e27f3fa77c0 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateDelete.json @@ -8,8 +8,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateGet.json index 6c70d78421fe..bd73dc47f117 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateGet.json @@ -31,4 +31,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateList.json index d7e848f92ede..91a6ab0f5152 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/CertificateList.json @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileDeleteFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileDeleteFromNode.json index df2e9429ea9a..4bb802b8d6df 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileDeleteFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileDeleteFromNode.json @@ -10,8 +10,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileDeleteFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileDeleteFromTask.json index 24f0c8761a9b..ab1101860ff2 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileDeleteFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileDeleteFromTask.json @@ -10,8 +10,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetFromNode.json index 3a1eb00168be..f807ff0cb44a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetFromNode.json @@ -18,4 +18,4 @@ "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetFromTask.json index 4e3749693306..a3fda8f1278e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetFromTask.json @@ -18,4 +18,4 @@ "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetPropertiesFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetPropertiesFromNode.json index d7fe29cb7014..38f909823440 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetPropertiesFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetPropertiesFromNode.json @@ -10,12 +10,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetPropertiesFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetPropertiesFromTask.json index a824b9d99ae8..1153da8bf91c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetPropertiesFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileGetPropertiesFromTask.json @@ -10,12 +10,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileListFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileListFromNode.json index 344d20111976..0f30ffabe6da 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileListFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileListFromNode.json @@ -43,4 +43,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileListFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileListFromTask.json index ffa1051f4e0c..f5808c841123 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileListFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/FileListFromTask.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobAdd_Basic.json index f42ede825346..a009f21bef5c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobAdd_Basic.json @@ -13,8 +13,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobAdd_Complex.json index 3e418a47ab9e..9086328d9926 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobAdd_Complex.json @@ -36,7 +36,7 @@ "retentionTime": "PT1H" }, "killJobOnCompletion": false, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -77,7 +77,7 @@ "value": "myvalue" } ], - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -115,8 +115,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobDelete.json index 551d0c72d70d..b6d9cf94c9e1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobDelete.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobDisable.json index 3001e7497cc1..e698c7da5b03 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobDisable.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobEnable.json index 551d0c72d70d..b6d9cf94c9e1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobEnable.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobGet.json index 020a36ae8968..30334948bc64 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobGet.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobGetLifetimeStatistics.json index 370281b57dc2..1ca8d2a56229 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobGetLifetimeStatistics.json @@ -8,7 +8,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimejobstats", + "url": "https://account.region.batch.core.windows.net/lifetimejobstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "userCPUTime": "PT0S", @@ -25,4 +25,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobGetTaskCounts.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobGetTaskCounts.json index 69eeb39bad46..418da2bd06d1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobGetTaskCounts.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobGetTaskCounts.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobList.json index 5f2bf2115d0a..78de7117410f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobList.json @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobListFromJobSchedule.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobListFromJobSchedule.json index 4a581dd0be9d..5f88a5f1fcab 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobListFromJobSchedule.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobListFromJobSchedule.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobListPreparationAndReleaseTaskStatus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobListPreparationAndReleaseTaskStatus.json index 69807d33f286..10489d6da296 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobListPreparationAndReleaseTaskStatus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobListPreparationAndReleaseTaskStatus.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobPatch.json index 96d7455768f8..f3ce7769fdc1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobPatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobPatch.json @@ -6,19 +6,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "jobPatchParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleAdd_Basic.json index 5e5021633b5a..1a9fba3a2cbc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleAdd_Basic.json @@ -7,7 +7,7 @@ "cloudJobSchedule": { "id": "jobScheduleId", "schedule": { - "recurrenceInterval":"PT5M" + "recurrenceInterval": "PT5M" }, "jobSpecification": { "poolInfo": { @@ -17,8 +17,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleAdd_Complex.json index 15147f8fdcd3..9e23369bfa74 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleAdd_Complex.json @@ -123,8 +123,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleDelete.json index f4995ff15e9b..76cd9254feac 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleDelete.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleDisable.json index 2d1fed498e83..20a7f67cae31 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleDisable.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleEnable.json index 2d1fed498e83..20a7f67cae31 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleEnable.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleExists.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleExists.json index 1c7929b0e2bd..5d513bcd3973 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleExists.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleExists.json @@ -7,11 +7,7 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - }, - "404": { - "body": "" - } + "200": {}, + "404": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleGet.json index 249b2ea312a8..308289f63217 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleGet.json @@ -41,4 +41,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleList.json index 85f00683ab50..4b4e826a14ec 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleList.json @@ -71,4 +71,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobSchedulePatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobSchedulePatch.json index 974ad4b96ff9..f5b63d852ee4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobSchedulePatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobSchedulePatch.json @@ -23,8 +23,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleTerminate.json index f4995ff15e9b..76cd9254feac 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleTerminate.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleUpdate.json index 1d7b07d7c499..aa19a654a54c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobScheduleUpdate.json @@ -23,8 +23,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobTerminate.json index 386f3683ca7d..961642b4e4c3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobTerminate.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobUpdate.json index bd529af60161..4fe48618727e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/JobUpdate.json @@ -6,19 +6,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "jobUpdateParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeAddUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeAddUser.json index 9b066c59156a..9275ac2d6409 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeAddUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeAddUser.json @@ -14,8 +14,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeDeleteUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeDeleteUser.json index 38d4f051ae4d..3d5e016d0816 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeDeleteUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeDeleteUser.json @@ -9,8 +9,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeDisableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeDisableScheduling.json index 281e098ac108..622f2a091b84 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeDisableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeDisableScheduling.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeEnableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeEnableScheduling.json index c93e791f91bb..00d2db654de4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeEnableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeEnableScheduling.json @@ -8,8 +8,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeGetRemoteDesktop.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeGetRemoteDesktop.json index 6d261e4b03d5..0738f7dccced 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeGetRemoteDesktop.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeGetRemoteDesktop.json @@ -12,4 +12,4 @@ "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeGetRemoteLoginSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeGetRemoteLoginSettings.json index 9f0abc48ddd3..cb53ef78fffd 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeGetRemoteLoginSettings.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeGetRemoteLoginSettings.json @@ -15,4 +15,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeGet_Basic.json index fe55ea7bf40c..3b5efa06a66d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeGet_Basic.json @@ -26,7 +26,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -49,4 +49,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeList.json index e5ea20fbfeb3..5ccff585826f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeList.json @@ -27,7 +27,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -65,7 +65,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -103,7 +103,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -128,4 +128,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeReboot.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeReboot.json index 8fc2fd8cd55d..7cc85541a5e2 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeReboot.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeReboot.json @@ -11,8 +11,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeReimage.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeReimage.json index 1dc0643c784b..e7a7113c2db8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeReimage.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeReimage.json @@ -11,8 +11,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeUpdateUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeUpdateUser.json index 0bc124036dcf..5546d81c40b3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeUpdateUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeUpdateUser.json @@ -13,8 +13,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeUploadBatchServiceLogs.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeUploadBatchServiceLogs.json index 700bb57fc89f..b20cd97f8cac 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeUploadBatchServiceLogs.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/NodeUploadBatchServiceLogs.json @@ -14,9 +14,9 @@ "responses": { "200": { "body": { - "virtualDirectoryName": "poolId/tvm-1695681911-1-20161121t182739z/0795539d-82fe-48e3-bbff-2964905b6de0", - "numberOfFilesUploaded": 8 + "virtualDirectoryName": "poolId/tvm-1695681911-1-20161121t182739z/0795539d-82fe-48e3-bbff-2964905b6de0", + "numberOfFilesUploaded": 8 } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolAdd_CloudServiceConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolAdd_CloudServiceConfiguration.json index a93e282d0024..ba50407e79c8 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolAdd_CloudServiceConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolAdd_CloudServiceConfiguration.json @@ -10,19 +10,21 @@ "cloudServiceConfiguration": { "osFamily": "4" }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -32,4 +34,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolAdd_VirtualMachineConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolAdd_VirtualMachineConfiguration.json index b26fce77be20..0190b072510c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolAdd_VirtualMachineConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolAdd_VirtualMachineConfiguration.json @@ -15,19 +15,21 @@ }, "nodeAgentSKUId": "batch.node.ubuntu 16.04" }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -37,4 +39,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json index 04ed1c84b96b..dbecab5466d5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json @@ -21,14 +21,14 @@ ] } }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false + "enableAutoScale": false } }, "responses": { @@ -38,4 +38,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolDelete.json index b21c340c7a42..03b7ff233634 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolDelete.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolDisableAutoScale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolDisableAutoScale.json index 04670de95ac3..90a78f783888 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolDisableAutoScale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolDisableAutoScale.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolEnableAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolEnableAutoscale.json index 9c9a4d2d4b8f..9a6615b1759e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolEnableAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolEnableAutoscale.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolEvaluateAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolEvaluateAutoscale.json index c1ec9c21b633..17889505bc62 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolEvaluateAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolEvaluateAutoscale.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolExists.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolExists.json index 385984444d75..3204766bc4bd 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolExists.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolExists.json @@ -7,11 +7,7 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - }, - "404": { - "body": "" - } + "200": {}, + "404": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolGetLifetimeStatistics.json index 55e39373893a..57781f1f1463 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolGetLifetimeStatistics.json @@ -8,7 +8,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimepoolstats", + "url": "https://account.region.batch.core.windows.net/lifetimepoolstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "usageStats": { @@ -34,4 +34,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolGet_Basic.json index 9d8f7f83e19c..d0aaf3aaac18 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolGet_Basic.json @@ -28,7 +28,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "/bin/bash -c 'echo start task'", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -53,4 +53,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolListUsageMetrics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolListUsageMetrics.json index e05af7a849b2..f7fc2135825f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolListUsageMetrics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolListUsageMetrics.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolList_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolList_Basic.json index b81487f337b8..b0e4f443cbc2 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolList_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolList_Basic.json @@ -29,7 +29,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -51,4 +51,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolPatch.json index a1475eeb5410..0bedea44d721 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolPatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolPatch.json @@ -12,8 +12,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolRemoveNodes.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolRemoveNodes.json index c0bbf983e5cd..21e73f619cc5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolRemoveNodes.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolRemoveNodes.json @@ -13,8 +13,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolResize.json index 2779f892863a..ac46de9d8484 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolResize.json @@ -11,8 +11,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolStopResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolStopResize.json index b21c340c7a42..03b7ff233634 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolStopResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolStopResize.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolUpdate.json index 69fe12dd6ff3..d3ae1b1e0a78 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/PoolUpdate.json @@ -15,8 +15,6 @@ } }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAddCollection_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAddCollection_Basic.json index e162a318b08d..ae160f27f485 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAddCollection_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAddCollection_Basic.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAddCollection_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAddCollection_Complex.json index c56d31718e5d..7b4a84ee2ae4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAddCollection_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAddCollection_Complex.json @@ -74,4 +74,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAdd_Basic.json index 23a8189702d6..246fa2b7b752 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAdd_Basic.json @@ -11,8 +11,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAdd_ContainerSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAdd_ContainerSettings.json index 47f35697248f..10148a74cd9d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAdd_ContainerSettings.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAdd_ContainerSettings.json @@ -12,7 +12,7 @@ "imageName": "ubuntu", "containerRunOptions": "--rm" }, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -21,8 +21,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAdd_ExitConditions.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAdd_ExitConditions.json index 90a0999d2166..95c873916e56 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAdd_ExitConditions.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskAdd_ExitConditions.json @@ -19,7 +19,7 @@ } ] }, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -28,8 +28,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskDelete.json index 591d3dc05279..f6fb1695ca8e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskDelete.json @@ -8,8 +8,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskGet.json index bf9d9fc092e0..16ee12da0a2b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskGet.json @@ -18,7 +18,7 @@ "state": "active", "stateTransitionTime": "2016-09-06T06:59:15.1161429Z", "commandLine": "cmd /c hostname", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskList.json index ec9b85595b4b..a11c0d1c26ba 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskList.json @@ -19,7 +19,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.4733476Z", "commandLine": "cmd /c echo task1", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -44,7 +44,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.6736345Z", "commandLine": "cmd /c echo task2", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -64,4 +64,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskListSubtasks.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskListSubtasks.json index 54eddbdb91f6..309f66590252 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskListSubtasks.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskListSubtasks.json @@ -47,4 +47,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskReactivate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskReactivate.json index 6c07e145e137..b95071fb6472 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskReactivate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskReactivate.json @@ -8,8 +8,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskTerminate.json index 6c07e145e137..b95071fb6472 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskTerminate.json @@ -8,8 +8,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskUpdate.json index bcf451b6bc0c..61052902d489 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2018-12-01.8.0/examples/TaskUpdate.json @@ -8,15 +8,13 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "taskUpdateParameter": { "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":3, - "retentionTime":"PT1H" + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 3, + "retentionTime": "PT1H" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/BatchService.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/BatchService.json index 7393d7c5c856..692994b09f40 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/BatchService.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/BatchService.json @@ -63,7 +63,9 @@ }, "operationId": "Application_List", "x-ms-examples": { - "List applications": { "$ref": "./examples/ApplicationList.json" } + "List applications": { + "$ref": "./examples/ApplicationList.json" + } }, "summary": "Lists all of the applications available in the specified Account.", "description": "This operation returns only Applications and versions that are available for use on Compute Nodes; that is, that can be used in an Package reference. For administrator information about applications and versions that are not yet available to Compute Nodes, use the Azure portal or the Azure Resource Manager API.", @@ -178,10 +180,12 @@ ], "operationId": "Application_Get", "x-ms-examples": { - "Get applications": { "$ref": "./examples/ApplicationGet.json" } + "Get applications": { + "$ref": "./examples/ApplicationGet.json" + } }, "summary": "Gets information about the specified Application.", - "description": "This operation returns only Applications and versions that are available for use on Compute Nodes; that is, that can be used in an Package reference. For administrator information about Applications and versions that are not yet available to Compute Compute Nodes, use the Azure portal or the Azure Resource Manager API.", + "description": "This operation returns only Applications and versions that are available for use on Compute Nodes; that is, that can be used in an Package reference. For administrator information about Applications and versions that are not yet available to Compute Nodes, use the Azure portal or the Azure Resource Manager API.", "x-ms-request-id": "request-id", "parameters": [ { @@ -288,7 +292,9 @@ }, "operationId": "Pool_ListUsageMetrics", "x-ms-examples": { - "Pool list usage metrics": { "$ref": "./examples/PoolListUsageMetrics.json" } + "Pool list usage metrics": { + "$ref": "./examples/PoolListUsageMetrics.json" + } }, "summary": "Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account.", "description": "If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.", @@ -440,7 +446,9 @@ }, "operationId": "Account_ListSupportedImages", "x-ms-examples": { - "Account list node agent skus": { "$ref": "./examples/AccountListSupportedImages.json" } + "Account list node agent skus": { + "$ref": "./examples/AccountListSupportedImages.json" + } }, "summary": "Lists all Virtual Machine Images supported by the Azure Batch service.", "x-ms-request-id": "request-id", @@ -568,7 +576,9 @@ "operationId": "Account_ListPoolNodeCounts", "description": "Gets the number of Compute Nodes in each state, grouped by Pool.", "x-ms-examples": { - "NodeCountsPayload": { "$ref": "./examples/AccountListPoolNodeCounts.json" } + "NodeCountsPayload": { + "$ref": "./examples/AccountListPoolNodeCounts.json" + } }, "parameters": [ { @@ -681,7 +691,9 @@ ], "operationId": "Pool_GetAllLifetimeStatistics", "x-ms-examples": { - "Pool get lifetime statistics": { "$ref": "./examples/PoolGetLifetimeStatistics.json" } + "Pool get lifetime statistics": { + "$ref": "./examples/PoolGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the Pools in the specified Account.", "description": "Statistics are aggregated across all Pools that have ever existed in the Account, from Account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.", @@ -781,7 +793,9 @@ ], "operationId": "Job_GetAllLifetimeStatistics", "x-ms-examples": { - "Job get lifetime statistics": { "$ref": "./examples/JobGetLifetimeStatistics.json" } + "Job get lifetime statistics": { + "$ref": "./examples/JobGetLifetimeStatistics.json" + } }, "summary": "Gets lifetime summary statistics for all of the Jobs in the specified Account.", "description": "Statistics are aggregated across all Jobs that have ever existed in the Account, from Account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.", @@ -881,7 +895,9 @@ ], "operationId": "Certificate_Add", "x-ms-examples": { - "Certificate add": { "$ref": "./examples/CertificateAdd.json" } + "Certificate add": { + "$ref": "./examples/CertificateAdd.json" + } }, "summary": "Adds a Certificate to the specified Account.", "x-ms-request-id": "request-id", @@ -991,7 +1007,9 @@ }, "operationId": "Certificate_List", "x-ms-examples": { - "Certificate list": { "$ref": "./examples/CertificateList.json" } + "Certificate list": { + "$ref": "./examples/CertificateList.json" + } }, "summary": "Lists all of the Certificates that have been added to the specified Account.", "x-ms-request-id": "request-id", @@ -1125,7 +1143,9 @@ ], "operationId": "Certificate_CancelDeletion", "x-ms-examples": { - "Certificate cancel delete": { "$ref": "./examples/CertificateCancelDelete.json" } + "Certificate cancel delete": { + "$ref": "./examples/CertificateCancelDelete.json" + } }, "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.", @@ -1240,7 +1260,9 @@ ], "operationId": "Certificate_Delete", "x-ms-examples": { - "Certificate delete": { "$ref": "./examples/CertificateDelete.json" } + "Certificate delete": { + "$ref": "./examples/CertificateDelete.json" + } }, "summary": "Deletes a Certificate from the specified Account.", "description": "You cannot delete a Certificate if a resource (Pool or Compute Node) is using it. Before you can delete a Certificate, you must therefore make sure that the Certificate is not associated with any existing Pools, the Certificate is not installed on any Nodes (even if you remove a Certificate from a Pool, it is not removed from existing Compute Nodes in that Pool until they restart), and no running Tasks depend on the Certificate. If you try to delete a Certificate that is in use, the deletion fails. The Certificate status changes to deleteFailed. You can use Cancel Delete Certificate to set the status back to active if you decide that you want to continue using the Certificate.", @@ -1349,7 +1371,9 @@ ], "operationId": "Certificate_Get", "x-ms-examples": { - "Certificate get": { "$ref": "./examples/CertificateGet.json" } + "Certificate get": { + "$ref": "./examples/CertificateGet.json" + } }, "description": "Gets information about the specified Certificate.", "x-ms-request-id": "request-id", @@ -1472,7 +1496,9 @@ ], "operationId": "File_DeleteFromTask", "x-ms-examples": { - "File delete from task": { "$ref": "./examples/FileDeleteFromTask.json" } + "File delete from task": { + "$ref": "./examples/FileDeleteFromTask.json" + } }, "summary": "Deletes the specified Task file from the Compute Node where the Task ran.", "x-ms-request-id": "request-id", @@ -1583,7 +1609,9 @@ ], "operationId": "File_GetFromTask", "x-ms-examples": { - "Get File From Task": { "$ref": "./examples/FileGetFromTask.json" } + "Get File From Task": { + "$ref": "./examples/FileGetFromTask.json" + } }, "description": "Returns the content of the specified Task file.", "x-ms-request-id": "request-id", @@ -1764,7 +1792,9 @@ ], "operationId": "File_GetPropertiesFromTask", "x-ms-examples": { - "File get properties from task": { "$ref": "./examples/FileGetPropertiesFromTask.json" } + "File get properties from task": { + "$ref": "./examples/FileGetPropertiesFromTask.json" + } }, "description": "Gets the properties of the specified Task file.", "x-ms-request-id": "request-id", @@ -1929,7 +1959,9 @@ ], "operationId": "File_DeleteFromComputeNode", "x-ms-examples": { - "File delete from node": { "$ref": "./examples/FileDeleteFromNode.json" } + "File delete from node": { + "$ref": "./examples/FileDeleteFromNode.json" + } }, "summary": "Deletes the specified file from the Compute Node.", "x-ms-request-id": "request-id", @@ -2040,7 +2072,9 @@ ], "operationId": "File_GetFromComputeNode", "x-ms-examples": { - "Get File From Compute Node": { "$ref": "./examples/FileGetFromNode.json" } + "Get File From Compute Node": { + "$ref": "./examples/FileGetFromNode.json" + } }, "description": "Returns the content of the specified Compute Node file.", "x-ms-request-id": "request-id", @@ -2221,7 +2255,9 @@ ], "operationId": "File_GetPropertiesFromComputeNode", "x-ms-examples": { - "File get properties from node": { "$ref": "./examples/FileGetPropertiesFromNode.json" } + "File get properties from node": { + "$ref": "./examples/FileGetPropertiesFromNode.json" + } }, "description": "Gets the properties of the specified Compute Node file.", "x-ms-request-id": "request-id", @@ -2389,7 +2425,9 @@ }, "operationId": "File_ListFromTask", "x-ms-examples": { - "File list from task": { "$ref": "./examples/FileListFromTask.json" } + "File list from task": { + "$ref": "./examples/FileListFromTask.json" + } }, "summary": "Lists the files in a Task's directory on its Compute Node.", "x-ms-request-id": "request-id", @@ -2537,7 +2575,9 @@ }, "operationId": "File_ListFromComputeNode", "x-ms-examples": { - "File list from node": { "$ref": "./examples/FileListFromNode.json" } + "File list from node": { + "$ref": "./examples/FileListFromNode.json" + } }, "summary": "Lists all of the files in Task directories on the specified Compute Node.", "x-ms-request-id": "request-id", @@ -2682,7 +2722,9 @@ ], "operationId": "JobSchedule_Exists", "x-ms-examples": { - "Check Job Schedule Exists": { "$ref": "./examples/JobScheduleExists.json" } + "Check Job Schedule Exists": { + "$ref": "./examples/JobScheduleExists.json" + } }, "summary": "Checks the specified Job Schedule exists.", "x-ms-request-id": "request-id", @@ -2828,7 +2870,9 @@ ], "operationId": "JobSchedule_Delete", "x-ms-examples": { - "JobSchedule delete": { "$ref": "./examples/JobScheduleDelete.json" } + "JobSchedule delete": { + "$ref": "./examples/JobScheduleDelete.json" + } }, "summary": "Deletes a Job Schedule from the specified Account.", "description": "When you delete a Job Schedule, this also deletes all Jobs and Tasks under that schedule. When Tasks are deleted, all the files in their working directories on the Compute Nodes are also deleted (the retention period is ignored). The Job Schedule statistics are no longer accessible once the Job Schedule is deleted, though they are still counted towards Account lifetime statistics.", @@ -2961,7 +3005,9 @@ ], "operationId": "JobSchedule_Get", "x-ms-examples": { - "JobSchedule get": { "$ref": "./examples/JobScheduleGet.json" } + "JobSchedule get": { + "$ref": "./examples/JobScheduleGet.json" + } }, "description": "Gets information about the specified Job Schedule.", "x-ms-request-id": "request-id", @@ -3127,7 +3173,9 @@ ], "operationId": "JobSchedule_Patch", "x-ms-examples": { - "JobSchedule patch": { "$ref": "./examples/JobSchedulePatch.json" } + "JobSchedule patch": { + "$ref": "./examples/JobSchedulePatch.json" + } }, "summary": "Updates the properties of the specified Job Schedule.", "description": "This replaces only the Job Schedule properties specified in the request. For example, if the schedule property is not specified with this request, then the Batch service will keep the existing schedule. Changes to a Job Schedule only impact Jobs created by the schedule after the update has taken place; currently running Jobs are unaffected.", @@ -3284,7 +3332,9 @@ ], "operationId": "JobSchedule_Update", "x-ms-examples": { - "JobSchedule update": { "$ref": "./examples/JobScheduleUpdate.json" } + "JobSchedule update": { + "$ref": "./examples/JobScheduleUpdate.json" + } }, "summary": "Updates the properties of the specified Job Schedule.", "description": "This fully replaces all the updatable properties of the Job Schedule. For example, if the schedule property is not specified with this request, then the Batch service will remove the existing schedule. Changes to a Job Schedule only impact Jobs created by the schedule after the update has taken place; currently running Jobs are unaffected.", @@ -3443,7 +3493,9 @@ ], "operationId": "JobSchedule_Disable", "x-ms-examples": { - "JobSchedule disable": { "$ref": "./examples/JobScheduleDisable.json" } + "JobSchedule disable": { + "$ref": "./examples/JobScheduleDisable.json" + } }, "summary": "Disables a Job Schedule.", "description": "No new Jobs will be created until the Job Schedule is enabled again.", @@ -3593,7 +3645,9 @@ ], "operationId": "JobSchedule_Enable", "x-ms-examples": { - "JobSchedule enable": { "$ref": "./examples/JobScheduleEnable.json" } + "JobSchedule enable": { + "$ref": "./examples/JobScheduleEnable.json" + } }, "summary": "Enables a Job Schedule.", "x-ms-request-id": "request-id", @@ -3742,7 +3796,9 @@ ], "operationId": "JobSchedule_Terminate", "x-ms-examples": { - "JobSchedule terminate": { "$ref": "./examples/JobScheduleTerminate.json" } + "JobSchedule terminate": { + "$ref": "./examples/JobScheduleTerminate.json" + } }, "summary": "Terminates a Job Schedule.", "x-ms-request-id": "request-id", @@ -3891,8 +3947,12 @@ ], "operationId": "JobSchedule_Add", "x-ms-examples": { - "Add a basic JobSchedule": { "$ref": "./examples/JobScheduleAdd_Basic.json" }, - "Add a complex JobScheduleAdd": { "$ref": "./examples/JobScheduleAdd_Complex.json" } + "Add a basic JobSchedule": { + "$ref": "./examples/JobScheduleAdd_Basic.json" + }, + "Add a complex JobScheduleAdd": { + "$ref": "./examples/JobScheduleAdd_Complex.json" + } }, "summary": "Adds a Job Schedule to the specified Account.", "x-ms-request-id": "request-id", @@ -4002,7 +4062,9 @@ }, "operationId": "JobSchedule_List", "x-ms-examples": { - "JobSchedule list": { "$ref": "./examples/JobScheduleList.json" } + "JobSchedule list": { + "$ref": "./examples/JobScheduleList.json" + } }, "summary": "Lists all of the Job Schedules in the specified Account.", "x-ms-request-id": "request-id", @@ -4146,7 +4208,9 @@ ], "operationId": "Job_Delete", "x-ms-examples": { - "Delete Job": { "$ref": "./examples/JobDelete.json" } + "Delete Job": { + "$ref": "./examples/JobDelete.json" + } }, "summary": "Deletes a Job.", "description": "Deleting a Job also deletes all Tasks that are part of that Job, and all Job statistics. This also overrides the retention period for Task data; that is, if the Job contains Tasks which are still retained on Compute Nodes, the Batch services deletes those Tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the Job to the deleting state. All update operations on a Job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the Job is being deleted.", @@ -4279,7 +4343,9 @@ ], "operationId": "Job_Get", "x-ms-examples": { - "Job get": { "$ref": "./examples/JobGet.json" } + "Job get": { + "$ref": "./examples/JobGet.json" + } }, "summary": "Gets information about the specified Job.", "x-ms-request-id": "request-id", @@ -4445,7 +4511,9 @@ ], "operationId": "Job_Patch", "x-ms-examples": { - "Job patch": { "$ref": "./examples/JobPatch.json" } + "Job patch": { + "$ref": "./examples/JobPatch.json" + } }, "summary": "Updates the properties of the specified Job.", "description": "This replaces only the Job properties specified in the request. For example, if the Job has constraints, and a request does not specify the constraints element, then the Job keeps the existing constraints.", @@ -4602,7 +4670,9 @@ ], "operationId": "Job_Update", "x-ms-examples": { - "Job update": { "$ref": "./examples/JobUpdate.json" } + "Job update": { + "$ref": "./examples/JobUpdate.json" + } }, "summary": "Updates the properties of the specified Job.", "description": "This fully replaces all the updatable properties of the Job. For example, if the Job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.", @@ -4761,7 +4831,9 @@ ], "operationId": "Job_Disable", "x-ms-examples": { - "Job disable": { "$ref": "./examples/JobDisable.json" } + "Job disable": { + "$ref": "./examples/JobDisable.json" + } }, "summary": "Disables the specified Job, preventing new Tasks from running.", "description": "The Batch Service immediately moves the Job to the disabling state. Batch then uses the disableTasks parameter to determine what to do with the currently running Tasks of the Job. The Job remains in the disabling state until the disable operation is completed and all Tasks have been dealt with according to the disableTasks option; the Job then moves to the disabled state. No new Tasks are started under the Job until it moves back to active state. If you try to disable a Job that is in any state other than active, disabling, or disabled, the request fails with status code 409.", @@ -4920,7 +4992,9 @@ ], "operationId": "Job_Enable", "x-ms-examples": { - "Job enable": { "$ref": "./examples/JobEnable.json" } + "Job enable": { + "$ref": "./examples/JobEnable.json" + } }, "summary": "Enables the specified Job, allowing new Tasks to run.", "description": "When you call this API, the Batch service sets a disabled Job to the enabling state. After the this operation is completed, the Job moves to the active state, and scheduling of new Tasks under the Job resumes. The Batch service does not allow a Task to remain in the active state for more than 180 days. Therefore, if you enable a Job containing active Tasks which were added more than 180 days ago, those Tasks will not run.", @@ -5070,7 +5144,9 @@ ], "operationId": "Job_Terminate", "x-ms-examples": { - "Job terminate": { "$ref": "./examples/JobTerminate.json" } + "Job terminate": { + "$ref": "./examples/JobTerminate.json" + } }, "summary": "Terminates the specified Job, marking it as completed.", "description": "When a Terminate Job request is received, the Batch service sets the Job to the terminating state. The Batch service then terminates any running Tasks associated with the Job and runs any required Job release Tasks. Then the Job moves into the completed state. If there are any Tasks in the Job in the active state, they will remain in the active state. Once a Job is terminated, new Tasks cannot be added and any remaining active Tasks will not be scheduled.", @@ -5229,8 +5305,12 @@ ], "operationId": "Job_Add", "x-ms-examples": { - "Add a basic job": { "$ref": "./examples/JobAdd_Basic.json" }, - "Add a complex job": { "$ref": "./examples/JobAdd_Complex.json" } + "Add a basic job": { + "$ref": "./examples/JobAdd_Basic.json" + }, + "Add a complex job": { + "$ref": "./examples/JobAdd_Complex.json" + } }, "summary": "Adds a Job to the specified Account.", "description": "The Batch service supports two ways to control the work done as part of a Job. In the first approach, the user specifies a Job Manager Task. The Batch service launches this Task when it is ready to start the Job. The Job Manager Task controls all other Tasks that run under this Job, by using the Task APIs. In the second approach, the user directly controls the execution of Tasks under an active Job, by using the Task APIs. Also note: when naming Jobs, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5341,7 +5421,9 @@ }, "operationId": "Job_List", "x-ms-examples": { - "Job list": { "$ref": "./examples/JobList.json" } + "Job list": { + "$ref": "./examples/JobList.json" + } }, "summary": "Lists all of the Jobs in the specified Account.", "x-ms-request-id": "request-id", @@ -5487,7 +5569,9 @@ "nextLinkName": "odata.nextLink" }, "x-ms-examples": { - "List Job Under Job Schedule": { "$ref": "./examples/JobListFromJobSchedule.json" } + "List Job Under Job Schedule": { + "$ref": "./examples/JobListFromJobSchedule.json" + } }, "operationId": "Job_ListFromJobSchedule", "summary": "Lists the Jobs that have been created under the specified Job Schedule.", @@ -5642,7 +5726,9 @@ }, "operationId": "Job_ListPreparationAndReleaseTaskStatus", "x-ms-examples": { - "Job list preparation and release task status": { "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" } + "Job list preparation and release task status": { + "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" + } }, "summary": "Lists the execution status of the Job Preparation and Job Release Task for the specified Job across the Compute Nodes where the Job has run.", "description": "This API returns the Job Preparation and Job Release Task status on all Compute Nodes that have run the Job Preparation or Job Release Task. This includes Compute Nodes which have since been removed from the Pool. If this API is invoked on a Job which has no Job Preparation or Job Release Task, the Batch service returns HTTP status code 409 (Conflict) with an error code of JobPreparationTaskNotSpecified.", @@ -5784,7 +5870,9 @@ ], "operationId": "Job_GetTaskCounts", "x-ms-examples": { - "Job get task counts": { "$ref": "./examples/JobGetTaskCounts.json" } + "Job get task counts": { + "$ref": "./examples/JobGetTaskCounts.json" + } }, "summary": "Gets the Task counts for the specified Job.", "description": "Task counts provide a count of the Tasks by active, running or completed Task state, and a count of Tasks which succeeded or failed. Tasks in the preparing state are counted as running.", @@ -5882,9 +5970,15 @@ ], "operationId": "Pool_Add", "x-ms-examples": { - "Add a CloudServiceConfiguration pool": { "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" }, - "Add a VirtualMachineConfiguration pool": { "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" }, - "Add a VirtualMachineConfiguration pool with containers": { "$ref": "./examples/PoolAdd_VirtualMachineConfigurationWithContainers.json" } + "Add a CloudServiceConfiguration pool": { + "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool": { + "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool with containers": { + "$ref": "./examples/PoolAdd_VirtualMachineConfigurationWithContainers.json" + } }, "summary": "Adds a Pool to the specified Account.", "description": "When naming Pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", @@ -5995,7 +6089,9 @@ }, "operationId": "Pool_List", "x-ms-examples": { - "Pool list": { "$ref": "./examples/PoolList_Basic.json" } + "Pool list": { + "$ref": "./examples/PoolList_Basic.json" + } }, "summary": "Lists all of the Pools in the specified Account.", "x-ms-request-id": "request-id", @@ -6139,7 +6235,9 @@ ], "operationId": "Pool_Delete", "x-ms-examples": { - "Pool delete": { "$ref": "./examples/PoolDelete.json" } + "Pool delete": { + "$ref": "./examples/PoolDelete.json" + } }, "summary": "Deletes a Pool from the specified Account.", "description": "When you request that a Pool be deleted, the following actions occur: the Pool state is set to deleting; any ongoing resize operation on the Pool are stopped; the Batch service starts resizing the Pool to zero Compute Nodes; any Tasks running on existing Compute Nodes are terminated and requeued (as if a resize Pool operation had been requested with the default requeue option); finally, the Pool is removed from the system. Because running Tasks are requeued, the user can rerun these Tasks by updating their Job to target a different Pool. The Tasks can then run on the new Pool. If you want to override the requeue behavior, then you should call resize Pool explicitly to shrink the Pool to zero size before deleting the Pool. If you call an Update, Patch or Delete API on a Pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.", @@ -6272,7 +6370,9 @@ ], "operationId": "Pool_Exists", "x-ms-examples": { - "Check Pool Exists": { "$ref": "./examples/PoolExists.json" } + "Check Pool Exists": { + "$ref": "./examples/PoolExists.json" + } }, "description": "Gets basic properties of a Pool.", "x-ms-request-id": "request-id", @@ -6418,7 +6518,9 @@ ], "operationId": "Pool_Get", "x-ms-examples": { - "Pool get": { "$ref": "./examples/PoolGet_Basic.json" } + "Pool get": { + "$ref": "./examples/PoolGet_Basic.json" + } }, "description": "Gets information about the specified Pool.", "x-ms-request-id": "request-id", @@ -6584,7 +6686,9 @@ ], "operationId": "Pool_Patch", "x-ms-examples": { - "Patch the Pool": { "$ref": "./examples/PoolPatch.json" } + "Patch the Pool": { + "$ref": "./examples/PoolPatch.json" + } }, "summary": "Updates the properties of the specified Pool.", "description": "This only replaces the Pool properties specified in the request. For example, if the Pool has a start Task associated with it, and a request does not specify a start Task element, then the Pool keeps the existing start Task.", @@ -6743,7 +6847,9 @@ ], "operationId": "Pool_DisableAutoScale", "x-ms-examples": { - "Disable pool autoscale": { "$ref": "./examples/PoolDisableAutoScale.json" } + "Disable pool autoscale": { + "$ref": "./examples/PoolDisableAutoScale.json" + } }, "summary": "Disables automatic scaling for a Pool.", "x-ms-request-id": "request-id", @@ -6850,7 +6956,9 @@ ], "operationId": "Pool_EnableAutoScale", "x-ms-examples": { - "Pool enable autoscale": { "$ref": "./examples/PoolEnableAutoscale.json" } + "Pool enable autoscale": { + "$ref": "./examples/PoolEnableAutoscale.json" + } }, "summary": "Enables automatic scaling for a Pool.", "description": "You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. If automatic scaling of the Pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the Pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same Pool more than once every 30 seconds.", @@ -7009,7 +7117,9 @@ ], "operationId": "Pool_EvaluateAutoScale", "x-ms-examples": { - "Pool evaluate autoscale": { "$ref": "./examples/PoolEvaluateAutoscale.json" } + "Pool evaluate autoscale": { + "$ref": "./examples/PoolEvaluateAutoscale.json" + } }, "summary": "Gets the result of evaluating an automatic scaling formula on the Pool.", "description": "This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a formula.", @@ -7129,7 +7239,9 @@ ], "operationId": "Pool_Resize", "x-ms-examples": { - "Pool resize": { "$ref": "./examples/PoolResize.json" } + "Pool resize": { + "$ref": "./examples/PoolResize.json" + } }, "summary": "Changes the number of Compute Nodes that are assigned to a Pool.", "description": "You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, the request fails with status code 409. When you resize a Pool, the Pool's allocation state changes from steady to resizing. You cannot resize Pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a Pool downwards, the Batch service chooses which Compute Nodes to remove. To remove specific Compute Nodes, use the Pool remove Compute Nodes API instead.", @@ -7288,7 +7400,9 @@ ], "operationId": "Pool_StopResize", "x-ms-examples": { - "Pool stop resize": { "$ref": "./examples/PoolStopResize.json" } + "Pool stop resize": { + "$ref": "./examples/PoolStopResize.json" + } }, "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 Compute 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.", @@ -7438,7 +7552,9 @@ ], "operationId": "Pool_UpdateProperties", "x-ms-examples": { - "Pool update": { "$ref": "./examples/PoolUpdate.json" } + "Pool update": { + "$ref": "./examples/PoolUpdate.json" + } }, "summary": "Updates the properties of the specified Pool.", "description": "This fully replaces all the updatable properties of the Pool. For example, if the Pool has a start Task associated with it and if start Task is not specified with this request, then the Batch service will remove the existing start Task.", @@ -7555,7 +7671,9 @@ ], "operationId": "Pool_RemoveNodes", "x-ms-examples": { - "Pool remove nodes": { "$ref": "./examples/PoolRemoveNodes.json" } + "Pool remove nodes": { + "$ref": "./examples/PoolRemoveNodes.json" + } }, "summary": "Removes Compute Nodes from the specified Pool.", "description": "This operation can only run when the allocation state of the Pool is steady. When this operation runs, the allocation state changes from steady to resizing.", @@ -7714,9 +7832,15 @@ ], "operationId": "Task_Add", "x-ms-examples": { - "Add a basic task": { "$ref": "./examples/TaskAdd_Basic.json" }, - "Add a task with exit conditions": { "$ref": "./examples/TaskAdd_ExitConditions.json" }, - "Add a task with container settings": { "$ref": "./examples/TaskAdd_ContainerSettings.json" } + "Add a basic task": { + "$ref": "./examples/TaskAdd_Basic.json" + }, + "Add a task with exit conditions": { + "$ref": "./examples/TaskAdd_ExitConditions.json" + }, + "Add a task with container settings": { + "$ref": "./examples/TaskAdd_ContainerSettings.json" + } }, "summary": "Adds a Task to the specified Job.", "description": "The maximum lifetime of a Task from addition to completion is 180 days. If a Task has not completed within 180 days of being added it will be terminated by the Batch service and left in whatever state it was in at that time.", @@ -7834,7 +7958,9 @@ }, "operationId": "Task_List", "x-ms-examples": { - "Task list": { "$ref": "./examples/TaskList.json" } + "Task list": { + "$ref": "./examples/TaskList.json" + } }, "summary": "Lists all of the Tasks that are associated with the specified Job.", "description": "For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary Task. Use the list subtasks API to retrieve information about subtasks.", @@ -7986,8 +8112,12 @@ ], "operationId": "Task_AddCollection", "x-ms-examples": { - "Add a basic collection of tasks": { "$ref": "./examples/TaskAddCollection_Basic.json" }, - "Add a complex collection of tasks": { "$ref": "./examples/TaskAddCollection_Complex.json" } + "Add a basic collection of tasks": { + "$ref": "./examples/TaskAddCollection_Basic.json" + }, + "Add a complex collection of tasks": { + "$ref": "./examples/TaskAddCollection_Complex.json" + } }, "summary": "Adds a collection of Tasks to the specified Job.", "description": "Note that each Task must have a unique ID. The Batch service may not return the results for each Task in the same order the Tasks were submitted in this request. If the server times out or the connection is closed during the request, the request may have been partially or fully processed, or not at all. In such cases, the user should re-issue the request. Note that it is up to the user to correctly handle failures when re-issuing a request. For example, you should use the same Task IDs during a retry so that if the prior operation succeeded, the retry will not create extra Tasks unexpectedly. If the response contains any Tasks which failed to add, a client can retry the request. In a retry, it is most efficient to resubmit only Tasks that failed to add, and to omit Tasks that were successfully added on the first attempt. The maximum lifetime of a Task from addition to completion is 180 days. If a Task has not completed within 180 days of being added it will be terminated by the Batch service and left in whatever state it was in at that time.", @@ -8092,7 +8222,9 @@ ], "operationId": "Task_Delete", "x-ms-examples": { - "Task delete": { "$ref": "./examples/TaskDelete.json" } + "Task delete": { + "$ref": "./examples/TaskDelete.json" + } }, "summary": "Deletes a Task from the specified Job.", "description": "When a Task is deleted, all of the files in its directory on the Compute Node where it ran are also deleted (regardless of the retention time). For multi-instance Tasks, the delete Task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.", @@ -8232,7 +8364,9 @@ ], "operationId": "Task_Get", "x-ms-examples": { - "Task get": { "$ref": "./examples/TaskGet.json" } + "Task get": { + "$ref": "./examples/TaskGet.json" + } }, "summary": "Gets information about the specified Task.", "description": "For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary Task. Use the list subtasks API to retrieve information about subtasks.", @@ -8410,7 +8544,9 @@ ], "operationId": "Task_Update", "x-ms-examples": { - "Task update": { "$ref": "./examples/TaskUpdate.json" } + "Task update": { + "$ref": "./examples/TaskUpdate.json" + } }, "description": "Updates the properties of the specified Task.", "x-ms-request-id": "request-id", @@ -8575,7 +8711,9 @@ ], "operationId": "Task_ListSubtasks", "x-ms-examples": { - "Task list subtasks": { "$ref": "./examples/TaskListSubtasks.json" } + "Task list subtasks": { + "$ref": "./examples/TaskListSubtasks.json" + } }, "summary": "Lists all of the subtasks that are associated with the specified multi-instance Task.", "description": "If the Task is not a multi-instance Task then this returns an empty collection.", @@ -8699,7 +8837,9 @@ ], "operationId": "Task_Terminate", "x-ms-examples": { - "Task terminate": { "$ref": "./examples/TaskTerminate.json" } + "Task terminate": { + "$ref": "./examples/TaskTerminate.json" + } }, "summary": "Terminates the specified Task.", "description": "When the Task has been terminated, it moves to the completed state. For multi-instance Tasks, the terminate Task operation applies synchronously to the primary task; subtasks are then terminated asynchronously in the background.", @@ -8856,7 +8996,9 @@ ], "operationId": "Task_Reactivate", "x-ms-examples": { - "Task reactivate": { "$ref": "./examples/TaskReactivate.json" } + "Task reactivate": { + "$ref": "./examples/TaskReactivate.json" + } }, "summary": "Reactivates a Task, allowing it to run again even if its retry count has been exhausted.", "description": "Reactivation makes a Task eligible to be retried again up to its maximum retry count. The Task's state is changed to active. As the Task is no longer in the completed state, any previous exit code or failure information is no longer available after reactivation. Each time a Task is reactivated, its retry count is reset to 0. Reactivation will fail for Tasks that are not completed or that previously completed successfully (with an exit code of 0). Additionally, it will fail if the Job has completed (or is terminating or deleting).", @@ -9013,7 +9155,9 @@ ], "operationId": "ComputeNode_AddUser", "x-ms-examples": { - "Node add user": { "$ref": "./examples/NodeAddUser.json" } + "Node add user": { + "$ref": "./examples/NodeAddUser.json" + } }, "summary": "Adds a user Account to the specified Compute Node.", "description": "You can add a user Account to a Compute Node only when it is in the idle or running state.", @@ -9137,7 +9281,9 @@ ], "operationId": "ComputeNode_DeleteUser", "x-ms-examples": { - "Node delete user": { "$ref": "./examples/NodeDeleteUser.json" } + "Node delete user": { + "$ref": "./examples/NodeDeleteUser.json" + } }, "summary": "Deletes a user Account from the specified Compute Node.", "description": "You can delete a user Account to a Compute Node only when it is in the idle or running state.", @@ -9242,7 +9388,9 @@ ], "operationId": "ComputeNode_UpdateUser", "x-ms-examples": { - "Node update user": { "$ref": "./examples/NodeUpdateUser.json" } + "Node update user": { + "$ref": "./examples/NodeUpdateUser.json" + } }, "summary": "Updates the password and expiration time of a user Account on the specified Compute Node.", "description": "This operation replaces of all the updatable properties of the Account. For example, if the expiryTime element is not specified, the current value is replaced with the default value, not left unmodified. You can update a user Account on a Compute Node only when it is in the idle or running state.", @@ -9373,7 +9521,9 @@ ], "operationId": "ComputeNode_Get", "x-ms-examples": { - "Node get": { "$ref": "./examples/NodeGet_Basic.json" } + "Node get": { + "$ref": "./examples/NodeGet_Basic.json" + } }, "summary": "Gets information about the specified Compute Node.", "x-ms-request-id": "request-id", @@ -9496,7 +9646,9 @@ ], "operationId": "ComputeNode_Reboot", "x-ms-examples": { - "Node reboot": { "$ref": "./examples/NodeReboot.json" } + "Node reboot": { + "$ref": "./examples/NodeReboot.json" + } }, "summary": "Restarts the specified Compute Node.", "description": "You can restart a Compute Node only if it is in an idle or running state.", @@ -9620,7 +9772,9 @@ ], "operationId": "ComputeNode_Reimage", "x-ms-examples": { - "Node reimage": { "$ref": "./examples/NodeReimage.json" } + "Node reimage": { + "$ref": "./examples/NodeReimage.json" + } }, "summary": "Reinstalls the operating system on the specified Compute Node.", "description": "You can reinstall the operating system on a Compute Node only if it is in an idle or running state. This API can be invoked only on Pools created with the cloud service configuration property.", @@ -9744,7 +9898,9 @@ ], "operationId": "ComputeNode_DisableScheduling", "x-ms-examples": { - "Node disable scheduling": { "$ref": "./examples/NodeDisableScheduling.json" } + "Node disable scheduling": { + "$ref": "./examples/NodeDisableScheduling.json" + } }, "summary": "Disables Task scheduling on the specified Compute Node.", "description": "You can disable Task scheduling on a Compute Node only if its current scheduling state is enabled.", @@ -9868,7 +10024,9 @@ ], "operationId": "ComputeNode_EnableScheduling", "x-ms-examples": { - "Node enable scheduling": { "$ref": "./examples/NodeEnableScheduling.json" } + "Node enable scheduling": { + "$ref": "./examples/NodeEnableScheduling.json" + } }, "summary": "Enables Task scheduling on the specified Compute Node.", "description": "You can enable Task scheduling on a Compute Node only if its current scheduling state is disabled", @@ -9983,7 +10141,9 @@ ], "operationId": "ComputeNode_GetRemoteLoginSettings", "x-ms-examples": { - "Node get remote login settings": { "$ref": "./examples/NodeGetRemoteLoginSettings.json" } + "Node get remote login settings": { + "$ref": "./examples/NodeGetRemoteLoginSettings.json" + } }, "summary": "Gets the settings required for remote login to a Compute Node.", "description": "Before you can remotely login to a Compute Node using the remote login settings, you must create a user Account on the Compute Node. This API can be invoked only on Pools created with the virtual machine configuration property. For Pools created with a cloud service configuration, see the GetRemoteDesktop API.", @@ -10097,7 +10257,9 @@ ], "operationId": "ComputeNode_GetRemoteDesktop", "x-ms-examples": { - "Get RDP file of the compute node": { "$ref": "./examples/NodeGetRemoteDesktop.json" } + "Get RDP file of the compute node": { + "$ref": "./examples/NodeGetRemoteDesktop.json" + } }, "summary": "Gets the Remote Desktop Protocol file for the specified Compute Node.", "description": "Before you can access a Compute Node by using the RDP file, you must create a user Account on the Compute Node. This API can only be invoked on Pools created with a cloud service configuration. For Pools created with a virtual machine configuration, see the GetRemoteLoginSettings API.", @@ -10218,7 +10380,9 @@ "summary": "Upload Azure Batch service log files from the specified Compute Node to Azure Blob Storage.", "description": "This is for gathering Azure Batch service log files in an automated fashion from Compute Nodes if you are experiencing an error and wish to escalate to Azure support. The Azure Batch service log files should be shared with Azure support to aid in debugging issues with the Batch service.", "x-ms-examples": { - "Upload BatchService Logs": { "$ref": "./examples/NodeUploadBatchServiceLogs.json" } + "Upload BatchService Logs": { + "$ref": "./examples/NodeUploadBatchServiceLogs.json" + } }, "x-ms-request-id": "request-id", "parameters": [ @@ -10333,7 +10497,9 @@ }, "operationId": "ComputeNode_List", "x-ms-examples": { - "Node list": { "$ref": "./examples/NodeList.json" } + "Node list": { + "$ref": "./examples/NodeList.json" + } }, "summary": "Lists the Compute Nodes in the specified Pool.", "x-ms-request-id": "request-id", @@ -10496,7 +10662,13 @@ "title": "The total core hours used in the Pool during this aggregation interval." } }, - "required": [ "poolId", "startTime", "endTime", "vmSize", "totalCoreHours" ], + "required": [ + "poolId", + "startTime", + "endTime", + "vmSize", + "totalCoreHours" + ], "title": "Usage metrics for a Pool across an aggregation interval." }, "PoolListUsageMetricsResult": { @@ -10583,7 +10755,12 @@ } } }, - "required": [ "imageReference", "verificationType", "osType", "nodeAgentSKUId" ], + "required": [ + "imageReference", + "verificationType", + "osType", + "nodeAgentSKUId" + ], "title": "A reference to the Azure Virtual Machines Marketplace Image and additional information about the Image." }, "AuthenticationTokenSettings": { @@ -10647,7 +10824,11 @@ "title": "The aggregated wall-clock time of the dedicated Compute Node cores being part of the Pool." } }, - "required": [ "startTime", "lastUpdateTime", "dedicatedCoreTime" ], + "required": [ + "startTime", + "lastUpdateTime", + "dedicatedCoreTime" + ], "title": "Statistics related to Pool usage information." }, "ResourceStatistics": { @@ -10718,7 +10899,21 @@ "title": "The total amount of data in GiB of network writes across all Compute Nodes in the Pool." } }, - "required": [ "startTime", "lastUpdateTime", "avgCPUPercentage", "avgMemoryGiB", "peakMemoryGiB", "avgDiskGiB", "peakDiskGiB", "diskReadIOps", "diskWriteIOps", "diskReadGiB", "diskWriteGiB", "networkReadGiB", "networkWriteGiB" ], + "required": [ + "startTime", + "lastUpdateTime", + "avgCPUPercentage", + "avgMemoryGiB", + "peakMemoryGiB", + "avgDiskGiB", + "peakDiskGiB", + "diskReadIOps", + "diskWriteIOps", + "diskReadGiB", + "diskWriteGiB", + "networkReadGiB", + "networkWriteGiB" + ], "title": "Statistics related to resource consumption by Compute Nodes in a Pool." }, "PoolStatistics": { @@ -10746,7 +10941,11 @@ "title": "Statistics related to resource consumption by Compute Nodes in the Pool." } }, - "required": [ "url", "startTime", "lastUpdateTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime" + ], "title": "Contains utilization and resource usage statistics for the lifetime of a Pool." }, "JobStatistics": { @@ -10825,7 +11024,22 @@ "description": "The wait time for a Task is defined as the elapsed time between the creation of the Task and the start of Task execution. (If the Task is retried due to failures, the wait time is the time to the most recent Task execution.) This value is only reported in the Account lifetime statistics; it is not included in the Job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a Job." }, "NameValuePair": { @@ -10920,7 +11134,9 @@ "description": "If this is omitted on a Pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a Task, and no default version is specified for this application, the Task fails with a pre-processing error." } }, - "required": [ "applicationId" ], + "required": [ + "applicationId" + ], "title": "A reference to an Package to be deployed to Compute Nodes." }, "ApplicationSummary": { @@ -10941,7 +11157,11 @@ } } }, - "required": [ "id", "displayName", "versions" ], + "required": [ + "id", + "displayName", + "versions" + ], "title": "Contains information about an application in an Azure Batch Account." }, "CertificateAddParameter": { @@ -10986,7 +11206,11 @@ "description": "This is required if the Certificate format is pfx. It should be omitted if the Certificate format is cer." } }, - "required": [ "thumbprint", "thumbprintAlgorithm", "data" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm", + "data" + ], "title": "A Certificate that can be installed on Compute Nodes and can be used to authenticate operations on the machine." }, "CertificateListResult": { @@ -11033,7 +11257,10 @@ "description": "The file mode is returned only for files on Linux Compute Nodes." } }, - "required": [ "lastModified", "contentLength" ], + "required": [ + "lastModified", + "contentLength" + ], "title": "The properties of a file on a Compute Node." }, "NodeFile": { @@ -11131,7 +11358,9 @@ } } }, - "required": [ "subnetId" ], + "required": [ + "subnetId" + ], "title": "The network configuration for the Job." }, "TaskContainerSettings": { @@ -11175,7 +11404,9 @@ } } }, - "required": [ "imageName" ], + "required": [ + "imageName" + ], "title": "The container settings for a Task." }, "ResourceFile": { @@ -11224,7 +11455,9 @@ "title": "The value of the environment variable." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "An environment variable to be set on a Task process." }, "ExitConditions": { @@ -11273,7 +11506,10 @@ } }, "title": "How the Batch service should respond if a Task exits with a particular exit code.", - "required": [ "code", "exitOptions" ] + "required": [ + "code", + "exitOptions" + ] }, "ExitCodeRangeMapping": { "properties": { @@ -11293,7 +11529,11 @@ } }, "title": "A range of exit codes and how the Batch service should respond to exit codes within that range.", - "required": [ "start", "end", "exitOptions" ] + "required": [ + "start", + "end", + "exitOptions" + ] }, "ExitOptions": { "properties": { @@ -11477,7 +11717,10 @@ "$ref": "#/definitions/WindowsUserConfiguration" } }, - "required": [ "name", "password" ], + "required": [ + "name", + "password" + ], "title": "Properties used to create a user used to execute Tasks on an Azure Batch Compute Node." }, "TaskConstraints": { @@ -11572,8 +11815,8 @@ "items": { "$ref": "#/definitions/ApplicationPackageReference" }, - "title": "A list of Application Packages that the Batch service will deploy to the Compute Compute Node before running the command line.", - "description": "Application Packages are downloaded and deployed to a shared directory, not the Task working directory. Therefore, if a referenced Application Package is already on the Compute Node, and is up to date, then it is not re-downloaded; the existing copy on the Compute Compute Node is used. If a referenced Application Package cannot be installed, for example because the package has been deleted or because download failed, the Task fails." + "title": "A list of Application Packages that the Batch service will deploy to the Compute Node before running the command line.", + "description": "Application Packages are downloaded and deployed to a shared directory, not the Task working directory. Therefore, if a referenced Application Package is already on the Compute Node, and is up to date, then it is not re-downloaded; the existing copy on the Compute Node is used. If a referenced Application Package cannot be installed, for example because the package has been deleted or because download failed, the Task fails." }, "authenticationTokenSettings": { "title": "The settings for an authentication token that the Task can use to perform Batch service operations.", @@ -11586,7 +11829,10 @@ "description": "The default value is true." } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "Specifies details of a Job Manager Task.", "description": "The Job Manager Task is automatically started when the Job is created. The Batch service tries to schedule the Job Manager Task before any other Tasks in the Job. When shrinking a Pool, the Batch service tries to preserve Nodes where Job Manager Tasks are running for as long as possible (that is, Compute Nodes running 'normal' Tasks are removed before Compute Nodes running Job Manager Tasks). When a Job Manager Task fails and needs to be restarted, the system tries to schedule it at the highest priority. If there are no idle Compute Nodes available, the system may terminate one of the running Tasks in the Pool and return it to the queue in order to make room for the Job Manager Task to restart. Note that a Job Manager Task in one Job does not have priority over Tasks in other Jobs. Across Jobs, only Job level priorities are observed. For example, if a Job Manager in a priority 0 Job needs to be restarted, it will not displace Tasks of a priority 1 Job. Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing." }, @@ -11642,7 +11888,9 @@ "description": "The Job Preparation Task is always rerun if a Compute Node is reimaged, or if the Job Preparation Task did not complete (e.g. because the reboot occurred while the Task was running). Therefore, you should always write a Job Preparation Task to be idempotent and to behave correctly if run multiple times. The default value is true." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Preparation Task to run before any Tasks of the Job on any given Compute Node.", "description": "You can use Job Preparation to prepare a Node to run Tasks for the Job. Activities commonly performed in Job Preparation include: Downloading common resource files used by all the Tasks in the Job. The Job Preparation Task can download these common resource files to the shared location on the Node. (AZ_BATCH_NODE_ROOT_DIR\\shared), or starting a local service on the Node so that all Tasks of that Job can communicate with it. If the Job Preparation Task fails (that is, exhausts its retry count before exiting with exit code 0), Batch will not run Tasks of this Job on the Node. The Compute Node remains ineligible to run Tasks of this Job until it is reimaged. The Compute Node remains active and can be used for other Jobs. The Job Preparation Task can run multiple times on the same Node. Therefore, you should write the Job Preparation Task to handle re-execution. If the Node is rebooted, the Job Preparation Task is run again on the Compute Node before scheduling any other Task of the Job, if rerunOnNodeRebootAfterSuccess is true or if the Job Preparation Task did not previously complete. If the Node is reimaged, the Job Preparation Task is run again before scheduling any Task of the Job. Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing." }, @@ -11695,7 +11943,9 @@ "description": "If omitted, the Task runs as a non-administrative user unique to the Task." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Job Release Task to run on Job completion on any Compute Node where the Job has run.", "description": "The Job Release Task runs when the Job ends, because of one of the following: The user calls the Terminate Job API, or the Delete Job API while the Job is still active, the Job's maximum wall clock time constraint is reached, and the Job is still active, or the Job's Job Manager Task completed, and the Job is configured to terminate when the Job Manager completes. The Job Release Task runs on each Node where Tasks of the Job have run and the Job Preparation Task ran and completed. If you reimage a Node after it has run the Job Preparation Task, and the Job ends without any further Tasks of the Job running on that Node (and hence the Job Preparation Task does not re-run), then the Job Release Task does not run on that Compute Node. If a Node reboots while the Job Release Task is still running, the Job Release Task runs again when the Compute Node starts up. The Job is not marked as complete until all Job Release Tasks have completed. The Job Release Task runs in the background. It does not occupy a scheduling slot; that is, it does not count towards the maxTasksPerNode limit specified on the Pool." }, @@ -11703,7 +11953,7 @@ "properties": { "nodeFillType": { "type": "string", - "title": "How Tasks are distributed across Compute Compute Nodes in a Pool.", + "title": "How Tasks are distributed across Compute Nodes in a Pool.", "description": "If not specified, the default is spread.", "enum": [ "spread", @@ -11725,7 +11975,9 @@ } } }, - "required": [ "nodeFillType" ], + "required": [ + "nodeFillType" + ], "title": "Specifies how Tasks should be distributed across Compute Nodes." }, "StartTask": { @@ -11772,7 +12024,9 @@ "description": "If true and the start Task fails on a 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 Node unusable, and will not schedule Tasks to it. This condition can be detected via the Compute Node state and failure info details. 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 Compute Node. The default is false." } }, - "required": [ "commandLine" ], + "required": [ + "commandLine" + ], "title": "A Task which is run when a Node joins a Pool in the Azure Batch service, or when the Compute Node is rebooted or reimaged.", "description": "Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing. In some cases the start Task may be re-run even though the Compute Node was not rebooted. 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." }, @@ -11851,7 +12105,10 @@ "description": "You can specify more than one visibility in this collection. The default is all Accounts." } }, - "required": [ "thumbprint", "thumbprintAlgorithm" ], + "required": [ + "thumbprint", + "thumbprintAlgorithm" + ], "title": "A reference to a Certificate to be installed on Compute Nodes in a Pool." }, "MetadataItem": { @@ -11865,7 +12122,10 @@ "title": "The value of the metadata item." } }, - "required": [ "name", "value" ], + "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." }, @@ -11899,7 +12159,7 @@ }, "taskSchedulingPolicy": { "$ref": "#/definitions/TaskSchedulingPolicy", - "title": "How Tasks are distributed across Compute Compute Nodes in a Pool.", + "title": "How Tasks are distributed across Compute Nodes in a Pool.", "description": "If not specified, the default is spread." }, "resizeTimeout": { @@ -11989,7 +12249,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "vmSize" ], + "required": [ + "vmSize" + ], "title": "Specification for creating a new Pool." }, "AutoPoolSpecification": { @@ -12032,7 +12294,9 @@ "title": "The Pool specification for the auto Pool." } }, - "required": [ "poolLifetimeOption" ], + "required": [ + "poolLifetimeOption" + ], "title": "Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto Pool when the Job is submitted." }, "PoolInformation": { @@ -12121,7 +12385,9 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "Specifies details of the Jobs to be created on a schedule." }, "RecentJob": { @@ -12233,7 +12499,22 @@ "description": "This value is only reported in the Account lifetime statistics; it is not included in the Job statistics." } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "numSucceededTasks", "numFailedTasks", "numTaskRetries", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], "title": "Resource usage statistics for a Job Schedule." }, "CloudJobSchedule": { @@ -12342,7 +12623,11 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "schedule", "jobSpecification" ], + "required": [ + "id", + "schedule", + "jobSpecification" + ], "title": "A Job Schedule that allows recurring Jobs by specifying when to run Jobs and a specification used to create each Job." }, "CloudJobScheduleListResult": { @@ -12383,7 +12668,9 @@ "title": "A list of additional error details related to the scheduling error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "An error encountered by the Batch service when scheduling a Job." }, "JobExecutionInformation": { @@ -12416,7 +12703,9 @@ "description": "This property is set only if the Job is in the completed state. If the Batch service terminates the Job, it sets the reason as follows: JMComplete - the Job Manager Task completed, and killJobOnCompletion was set to true. MaxWallClockTimeExpiry - the Job reached its maxWallClockTime constraint. TerminateJobSchedule - the Job ran as part of a schedule, and the schedule terminated. AllTasksComplete - the Job's onAllTasksComplete attribute is set to terminatejob, and all Tasks in the Job are complete. TaskFailed - the Job's onTaskFailure attribute is set to performExitOptionsJobAction, and a Task in the Job failed with an exit condition that specified a jobAction of terminatejob. Any other string is a user-defined reason specified in a call to the 'Terminate a Job' operation." } }, - "required": [ "startTime" ], + "required": [ + "startTime" + ], "title": "Contains information about the execution of a Job in the Azure Batch service." }, "CloudJob": { @@ -12620,7 +12909,10 @@ "title": "The network configuration for the Job." } }, - "required": [ "id", "poolInfo" ], + "required": [ + "id", + "poolInfo" + ], "title": "An Azure Batch Job to add." }, "CloudJobListResult": { @@ -12680,7 +12972,9 @@ "title": "A list of additional details related to the error." } }, - "required": [ "category" ], + "required": [ + "category" + ], "title": "Information about a Task failure." }, "JobPreparationTaskExecutionInformation": { @@ -12761,7 +13055,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "retryCount", "state" ], + "required": [ + "startTime", + "retryCount", + "state" + ], "title": "Contains information about the execution of a Job Preparation Task on a Compute Node." }, "JobReleaseTaskExecutionInformation": { @@ -12830,7 +13128,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "startTime", "state" ], + "required": [ + "startTime", + "state" + ], "title": "Contains information about the execution of a Job Release Task on a Compute Node." }, "JobPreparationAndReleaseTaskExecutionInformation": { @@ -12903,7 +13204,13 @@ "title": "The number of Tasks which failed. A Task fails if its result (found in the executionInfo property) is 'failure'." } }, - "required": [ "active", "running", "completed", "succeeded", "failed" ], + "required": [ + "active", + "running", + "completed", + "succeeded", + "failed" + ], "title": "The Task counts for a Job." }, "AutoScaleRunError": { @@ -12943,7 +13250,9 @@ "title": "Details of the error encountered evaluating the autoscale formula on the Pool, if the evaluation was unsuccessful." } }, - "required": [ "timestamp" ], + "required": [ + "timestamp" + ], "title": "The results and errors from an execution of a Pool autoscale formula." }, "ResizeError": { @@ -12979,7 +13288,9 @@ "description": "The default value is * which specifies the latest operating system version for the specified OS family." } }, - "required": [ "osFamily" ], + "required": [ + "osFamily" + ], "title": "The configuration for Compute Nodes in a Pool based on the Azure Cloud Services platform." }, "ImageReference": { @@ -13141,7 +13452,10 @@ "description": "If specified, setup is performed on each Compute 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." } }, - "required": [ "nodeAgentSKUId", "imageReference" ], + "required": [ + "nodeAgentSKUId", + "imageReference" + ], "title": "The configuration for Compute Nodes in a Pool based on the Azure Virtual Machines infrastructure." }, "ContainerRegistry": { @@ -13161,7 +13475,10 @@ "title": "The password to log into the registry server." } }, - "required": [ "username", "password" ], + "required": [ + "username", + "password" + ], "title": "A private container registry." }, "ContainerConfiguration": { @@ -13200,7 +13517,9 @@ "description": "If any Images must be downloaded from a private registry which requires credentials, then those credentials must be provided here." } }, - "required": [ "type" ], + "required": [ + "type" + ], "title": "The configuration for container-enabled Pools." }, "NetworkConfiguration": { @@ -13602,7 +13921,10 @@ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." } }, - "required": [ "id", "vmSize" ], + "required": [ + "id", + "vmSize" + ], "title": "A Pool in the Azure Batch service to add." }, "ApplicationListResult": { @@ -13645,7 +13967,9 @@ "description": "You can pass the affinityId of a Node to indicate that this Task needs to run on that Compute Node. Note that this is just a soft affinity. If the target Compute Node is busy or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere." } }, - "required": [ "affinityId" ], + "required": [ + "affinityId" + ], "title": "A locality hint that can be used by the Batch service to select a Compute Node on which to start a Task." }, "TaskExecutionInformation": { @@ -13708,7 +14032,10 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "requeueCount", "retryCount" ], + "required": [ + "requeueCount", + "retryCount" + ], "title": "Information about the execution of a Task." }, "ComputeNodeInformation": { @@ -13754,7 +14081,10 @@ "description": "This is the most recent time that the Compute Node agent was updated to a new version." } }, - "required": [ "version", "lastUpdateTime" ], + "required": [ + "version", + "lastUpdateTime" + ], "title": "Information about the Compute Node agent.", "description": "The Batch Compute Node agent is a program that runs on each Compute Node in the Pool and provides Batch capability on the Compute Node." }, @@ -13780,7 +14110,9 @@ "description": "The difference between common resource files and Task resource files is that common resource files are downloaded for all subtasks including the primary, whereas Task resource files are downloaded only for the primary. Also note that these resource files are not downloaded to the Task working directory, but instead are downloaded to the Task root directory (one directory above the working directory). There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers." } }, - "required": [ "coordinationCommandLine" ], + "required": [ + "coordinationCommandLine" + ], "title": "Settings which specify how to run a multi-instance Task.", "description": "Multi-instance Tasks are commonly used to support MPI Tasks. In the MPI case, if any of the subtasks fail (for example due to exiting with a non-zero exit code) the entire multi-instance Task fails. The multi-instance Task is then terminated and retried, up to its retry limit." }, @@ -13842,7 +14174,19 @@ "title": "The total wait time of the Task. The wait time for a Task is defined as the elapsed time between the creation of the Task and the start of Task execution. (If the Task is retried due to failures, the wait time is the time to the most recent Task execution.)" } }, - "required": [ "url", "startTime", "lastUpdateTime", "userCPUTime", "kernelCPUTime", "wallClockTime", "readIOps", "writeIOps", "readIOGiB", "writeIOGiB", "waitTime" ], + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "waitTime" + ], "title": "Resource usage statistics for a Task." }, "TaskDependencies": { @@ -13880,7 +14224,10 @@ }, "title": "A range of Task IDs that a Task can depend on. All Tasks with IDs in the range must complete successfully before the dependent Task can be scheduled.", "description": "The start and end of the range are inclusive. For example, if a range has start 9 and end 12, then it represents Tasks '9', '10', '11' and '12'.", - "required": [ "start", "end" ] + "required": [ + "start", + "end" + ] }, "CloudTask": { "properties": { @@ -14107,7 +14454,10 @@ "$ref": "#/definitions/AuthenticationTokenSettings" } }, - "required": [ "id", "commandLine" ], + "required": [ + "id", + "commandLine" + ], "title": "An Azure Batch Task to add.", "description": "Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing." }, @@ -14123,7 +14473,9 @@ "description": "The total serialized size of this collection must be less than 1MB. If it is greater than 1MB (for example if each Task has 100's of resource files or environment variables), the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer Tasks." } }, - "required": [ "value" ], + "required": [ + "value" + ], "title": "A collection of Azure Batch Tasks to add." }, "TaskAddResult": { @@ -14180,7 +14532,10 @@ "title": "The error encountered while attempting to add the Task." } }, - "required": [ "status", "taskId" ], + "required": [ + "status", + "taskId" + ], "title": "Result for a single Task added as part of an add Task collection operation." }, "TaskAddCollectionResult": { @@ -14317,7 +14672,9 @@ "title": "Information about the execution of the Task." } }, - "required": [ "taskState" ], + "required": [ + "taskState" + ], "title": "Information about a Task running on a Compute Node." }, "StartTaskInformation": { @@ -14390,7 +14747,11 @@ "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." } }, - "required": [ "state", "startTime", "retryCount" ], + "required": [ + "state", + "startTime", + "retryCount" + ], "title": "Information about a start Task running on a Compute Node." }, "ComputeNodeError": { @@ -14631,7 +14992,9 @@ "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" ], + "required": [ + "inboundNATPools" + ], "title": "The endpoint configuration for a Pool." }, "InboundNATPool": { @@ -14672,7 +15035,13 @@ } } }, - "required": [ "name", "protocol", "backendPort", "frontendPortRangeStart", "frontendPortRangeEnd" ], + "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": { @@ -14719,7 +15088,11 @@ "description": "Valid values are '*' (for all ports 0 - 65535), a specific port (i.e. 22), or a port range (i.e. 100-200). The ports must be in the range of 0 to 65535. Each entry in this collection must not overlap any other entry (either a range or an individual port). If any other values are provided the request fails with HTTP status code 400. The default value is '*'." } }, - "required": [ "priority", "access", "sourceAddressPrefix" ], + "required": [ + "priority", + "access", + "sourceAddressPrefix" + ], "title": "A network security group rule to apply to an inbound endpoint." }, "ComputeNodeEndpointConfiguration": { @@ -14732,7 +15105,9 @@ "title": "The list of inbound endpoints that are accessible on the Compute Node." } }, - "required": [ "inboundEndpoints" ], + "required": [ + "inboundEndpoints" + ], "title": "The endpoint configuration for the Compute Node." }, "InboundEndpoint": { @@ -14764,7 +15139,14 @@ "title": "The backend port number of the endpoint." } }, - "required": [ "name", "protocol", "publicIPAddress", "publicFQDN", "frontendPort", "backendPort" ], + "required": [ + "name", + "protocol", + "publicIPAddress", + "publicFQDN", + "frontendPort", + "backendPort" + ], "title": "An inbound endpoint on a Compute Node." }, "ComputeNodeListResult": { @@ -14811,7 +15193,9 @@ "description": "The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux Compute Nodes. If this is specified for a Windows Compute Node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." } }, - "required": [ "name" ], + "required": [ + "name" + ], "title": "A user Account for RDP or SSH access on a Compute Node." }, "ComputeNodeGetRemoteLoginSettingsResult": { @@ -14826,7 +15210,10 @@ "title": "The port used for remote login to the Compute Node." } }, - "required": [ "remoteLoginIPAddress", "remoteLoginPort" ], + "required": [ + "remoteLoginIPAddress", + "remoteLoginPort" + ], "title": "The remote login settings for a Compute Node." }, "JobSchedulePatchParameter": { @@ -14873,7 +15260,10 @@ "description": "If you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted." } }, - "required": [ "schedule", "jobSpecification" ], + "required": [ + "schedule", + "jobSpecification" + ], "title": "The set of changes to be made to a Job Schedule." }, "JobDisableParameter": { @@ -14906,7 +15296,9 @@ } } }, - "required": [ "disableTasks" ], + "required": [ + "disableTasks" + ], "title": "Options when disabling a Job." }, "JobTerminateParameter": { @@ -14984,7 +15376,9 @@ "$ref": "#/definitions/OnAllTasksComplete" } }, - "required": [ "poolInfo" ], + "required": [ + "poolInfo" + ], "title": "The set of changes to be made to a Job." }, "PoolEnableAutoScaleParameter": { @@ -15011,7 +15405,9 @@ "description": "The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling)." } }, - "required": [ "autoScaleFormula" ], + "required": [ + "autoScaleFormula" + ], "title": "Options for evaluating an automatic scaling formula on a Pool." }, "PoolResizeParameter": { @@ -15060,8 +15456,8 @@ "items": { "$ref": "#/definitions/ApplicationPackageReference" }, - "title": "The list of Application Packages to be installed on each Compute Compute Node in the Pool.", - "description": "The list replaces any existing Application Package references on the Pool. Changes to Application Package references affect all new Compute Nodes joining the Pool, but do not affect Compute 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. If omitted, or if you specify an empty collection, any existing Application Packages references are removed from the Pool. A maximum of 10 references may be specified on a given Pool." + "title": "The list of Application Packages to be installed on each Compute Node in the Pool.", + "description": "The list replaces any existing Application Package references on the Pool. 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. If omitted, or if you specify an empty collection, any existing Application Packages references are removed from the Pool. A maximum of 10 references may be specified on a given Pool." }, "metadata": { "type": "array", @@ -15072,7 +15468,11 @@ "description": "This list replaces any existing metadata configured on the Pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the Pool." } }, - "required": [ "certificateReferences", "metadata", "applicationPackageReferences" ], + "required": [ + "certificateReferences", + "metadata", + "applicationPackageReferences" + ], "title": "The set of changes to be made to a Pool." }, "PoolPatchParameter": { @@ -15276,7 +15676,9 @@ "$ref": "#/definitions/ComputeNodeDeallocationOption" } }, - "required": [ "nodeList" ], + "required": [ + "nodeList" + ], "title": "Options for removing Compute Nodes from a Pool." }, "OutputFile": { @@ -15295,7 +15697,11 @@ "$ref": "#/definitions/OutputFileUploadOptions" } }, - "required": [ "filePattern", "destination", "uploadOptions" ], + "required": [ + "filePattern", + "destination", + "uploadOptions" + ], "title": "A specification for uploading files from an Azure Batch Compute Node to another location after the Batch service has finished executing the Task process." }, "OutputFileDestination": { @@ -15320,7 +15726,9 @@ "description": "The URL must include a Shared Access Signature (SAS) granting write permissions to the container." } }, - "required": [ "containerUrl" ], + "required": [ + "containerUrl" + ], "title": "Specifies a file upload destination within an Azure blob storage container." }, "OutputFileUploadOptions": { @@ -15331,7 +15739,9 @@ "$ref": "#/definitions/OutputFileUploadCondition" } }, - "required": [ "uploadCondition" ], + "required": [ + "uploadCondition" + ], "title": "Details about an output file upload operation, including under what conditions to perform the upload." }, "ErrorMessage": { @@ -15780,7 +16190,10 @@ "description": "Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime." } }, - "required": [ "containerUrl", "startTime" ], + "required": [ + "containerUrl", + "startTime" + ], "title": "The Azure Batch service log files upload configuration for a Compute Node." }, "UploadBatchServiceLogsResult": { @@ -15796,7 +16209,10 @@ "title": "The number of log files which will be uploaded." } }, - "required": [ "virtualDirectoryName", "numberOfFilesUploaded" ], + "required": [ + "virtualDirectoryName", + "numberOfFilesUploaded" + ], "title": "The result of uploading Batch service log files from a specific Compute Node." }, "PoolNodeCountsListResult": { diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/AccountListPoolNodeCounts.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/AccountListPoolNodeCounts.json index e5c0701bf562..7908df333e56 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/AccountListPoolNodeCounts.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/AccountListPoolNodeCounts.json @@ -118,4 +118,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/AccountListSupportedImages.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/AccountListSupportedImages.json index d29c3b2b526c..15b2216c2ca3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/AccountListSupportedImages.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/AccountListSupportedImages.json @@ -73,4 +73,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/ApplicationGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/ApplicationGet.json index eb911811b8e2..2567c848bf60 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/ApplicationGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/ApplicationGet.json @@ -9,12 +9,12 @@ "responses": { "200": { "body": { - "id": "my_application_id", - "versions": [ - "v1.0" - ], - "displayName": "my_display_name" + "id": "my_application_id", + "versions": [ + "v1.0" + ], + "displayName": "my_display_name" } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/ApplicationList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/ApplicationList.json index 3284b07fb957..f89b1d0207c4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/ApplicationList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/ApplicationList.json @@ -20,4 +20,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateAdd.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateAdd.json index d3205f4b3093..ad6cb772e725 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateAdd.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateAdd.json @@ -5,16 +5,14 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "certificate": { - "thumbprintAlgorithm":"sha1", - "thumbprint":"0123456789abcdef0123456789abcdef01234567", - "data":"#####...", - "certificateFormat":"pfx", - "password":"certpassword" + "thumbprintAlgorithm": "sha1", + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "data": "#####...", + "certificateFormat": "pfx", + "password": "certpassword" } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateCancelDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateCancelDelete.json index 4b560f6943e8..7a1536168529 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateCancelDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateCancelDelete.json @@ -8,8 +8,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateDelete.json index a8c2dc7f815b..46f68f3051cd 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateDelete.json @@ -8,8 +8,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateGet.json index b26c3da7adcb..cebf6209c0c5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateGet.json @@ -31,4 +31,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateList.json index a9879b71f144..8be49adf2740 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/CertificateList.json @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileDeleteFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileDeleteFromNode.json index b24b13a6273e..36234529359b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileDeleteFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileDeleteFromNode.json @@ -10,8 +10,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileDeleteFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileDeleteFromTask.json index f7b8168aa4e5..e025051b509f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileDeleteFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileDeleteFromTask.json @@ -10,8 +10,6 @@ "recursive": false }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetFromNode.json index 88c5efbc2199..be45aa475e3b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetFromNode.json @@ -18,4 +18,4 @@ "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetFromTask.json index 0c0357200759..2cd2538cb030 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetFromTask.json @@ -18,4 +18,4 @@ "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetPropertiesFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetPropertiesFromNode.json index c288aac6f936..1d0da53de0b4 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetPropertiesFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetPropertiesFromNode.json @@ -10,12 +10,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetPropertiesFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetPropertiesFromTask.json index 67afdc700b58..58d435dce715 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetPropertiesFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileGetPropertiesFromTask.json @@ -10,12 +10,13 @@ }, "responses": { "200": { - "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", - "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", - "ocp-batch-file-isdirectory": "false", - "Content-Length": "17", - "Content-Type": "application/octet-stream", - "body": "" + "headers": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileListFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileListFromNode.json index 4a6f4653c3d7..ecaf1e795404 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileListFromNode.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileListFromNode.json @@ -43,4 +43,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileListFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileListFromTask.json index 9db91ee11e99..3f27c84a8167 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileListFromTask.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/FileListFromTask.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobAdd_Basic.json index c4b180849a6c..80bc5b5bb728 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobAdd_Basic.json @@ -13,8 +13,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobAdd_Complex.json index 3ce77106f3e9..ab4737803d01 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobAdd_Complex.json @@ -36,7 +36,7 @@ "retentionTime": "PT1H" }, "killJobOnCompletion": false, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -77,7 +77,7 @@ "value": "myvalue" } ], - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" @@ -115,8 +115,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobDelete.json index 195af6003972..f40c3e9923f3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobDelete.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobDisable.json index 893572f83e0d..81d15824254b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobDisable.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobEnable.json index 195af6003972..f40c3e9923f3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobEnable.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobGet.json index 07e99da8bb55..8e5e624b4769 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobGet.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobGetLifetimeStatistics.json index 85ca98194004..eb39fdb867b7 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobGetLifetimeStatistics.json @@ -8,7 +8,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimejobstats", + "url": "https://account.region.batch.core.windows.net/lifetimejobstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "userCPUTime": "PT0S", @@ -25,4 +25,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobGetTaskCounts.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobGetTaskCounts.json index 673348fe36ac..dff27f89c129 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobGetTaskCounts.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobGetTaskCounts.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobList.json index 4aa7bc3f765d..ff159ab5ce2b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobList.json @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobListFromJobSchedule.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobListFromJobSchedule.json index 5ed8941f2850..a5721761fada 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobListFromJobSchedule.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobListFromJobSchedule.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobListPreparationAndReleaseTaskStatus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobListPreparationAndReleaseTaskStatus.json index 8c30d468df26..caaa1c2e8f03 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobListPreparationAndReleaseTaskStatus.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobListPreparationAndReleaseTaskStatus.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobPatch.json index 9186a99eb208..e82f228f43c6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobPatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobPatch.json @@ -6,19 +6,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "jobPatchParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleAdd_Basic.json index 060432614ae4..14ce00c357b1 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleAdd_Basic.json @@ -7,7 +7,7 @@ "cloudJobSchedule": { "id": "jobScheduleId", "schedule": { - "recurrenceInterval":"PT5M" + "recurrenceInterval": "PT5M" }, "jobSpecification": { "poolInfo": { @@ -17,8 +17,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleAdd_Complex.json index 2a9db507460e..dea55f66177b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleAdd_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleAdd_Complex.json @@ -123,8 +123,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleDelete.json index b4d4163f03e3..c3a4a0c7fd21 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleDelete.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleDisable.json index 6f6837c30f82..18c5d4fe40e5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleDisable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleDisable.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleEnable.json index 6f6837c30f82..18c5d4fe40e5 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleEnable.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleEnable.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleExists.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleExists.json index 0273954f790b..0ceae3eb4f08 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleExists.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleExists.json @@ -7,11 +7,7 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - }, - "404": { - "body": "" - } + "200": {}, + "404": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleGet.json index cf803fe831fe..daadeeb96849 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleGet.json @@ -41,4 +41,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleList.json index cb4f38b93e26..29d17dc117ad 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleList.json @@ -71,4 +71,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobSchedulePatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobSchedulePatch.json index 240c02634460..208d5fd4ae33 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobSchedulePatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobSchedulePatch.json @@ -23,8 +23,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleTerminate.json index b4d4163f03e3..c3a4a0c7fd21 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleTerminate.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleUpdate.json index 5a93b214b45e..4f4f1d2cb8e2 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobScheduleUpdate.json @@ -23,8 +23,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobTerminate.json index cdbc905f55c6..327a6d61f574 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobTerminate.json @@ -10,8 +10,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobUpdate.json index ccc269c3f5aa..b2e723ea15ea 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/JobUpdate.json @@ -6,19 +6,17 @@ "client-request-id": "00000000-0000-0000-0000-000000000000", "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "jobUpdateParameter": { - "priority":100, + "priority": 100, "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":-1 + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 }, "poolInfo": { - "poolId":"poolId" + "poolId": "poolId" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeAddUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeAddUser.json index 301acc8bda81..131693b05c3a 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeAddUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeAddUser.json @@ -14,8 +14,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeDeleteUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeDeleteUser.json index 1f4748dd1ebf..f910841bc7dc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeDeleteUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeDeleteUser.json @@ -9,8 +9,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeDisableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeDisableScheduling.json index 92758d8a1270..9a2c51abf154 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeDisableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeDisableScheduling.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeEnableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeEnableScheduling.json index 431f98c74d0c..5c3bd7e2457f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeEnableScheduling.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeEnableScheduling.json @@ -8,8 +8,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeGetRemoteDesktop.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeGetRemoteDesktop.json index a10bd7b39dcd..65f3de3c1e45 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeGetRemoteDesktop.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeGetRemoteDesktop.json @@ -12,4 +12,4 @@ "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeGetRemoteLoginSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeGetRemoteLoginSettings.json index 7017b29190af..b6fbd97c8687 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeGetRemoteLoginSettings.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeGetRemoteLoginSettings.json @@ -15,4 +15,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeGet_Basic.json index 66ded2865e78..3c4e723f9c3d 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeGet_Basic.json @@ -26,7 +26,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -49,4 +49,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeList.json index 1271434a8a29..1d9a1ad780b6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeList.json @@ -27,7 +27,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -65,7 +65,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -103,7 +103,7 @@ "isDedicated": true, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -128,4 +128,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeReboot.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeReboot.json index 12d98b92b160..15c146d98daf 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeReboot.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeReboot.json @@ -11,8 +11,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeReimage.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeReimage.json index 2bd8e9591f77..321ea192a613 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeReimage.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeReimage.json @@ -11,8 +11,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeUpdateUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeUpdateUser.json index 9e339b50ae91..02694434ea1f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeUpdateUser.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeUpdateUser.json @@ -13,8 +13,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeUploadBatchServiceLogs.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeUploadBatchServiceLogs.json index ab8ac725e3a1..5935d43526dd 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeUploadBatchServiceLogs.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/NodeUploadBatchServiceLogs.json @@ -14,9 +14,9 @@ "responses": { "200": { "body": { - "virtualDirectoryName": "poolId/tvm-1695681911-1-20161121t182739z/0795539d-82fe-48e3-bbff-2964905b6de0", - "numberOfFilesUploaded": 8 + "virtualDirectoryName": "poolId/tvm-1695681911-1-20161121t182739z/0795539d-82fe-48e3-bbff-2964905b6de0", + "numberOfFilesUploaded": 8 } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolAdd_CloudServiceConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolAdd_CloudServiceConfiguration.json index 20fcf4d11eab..e00c16cfa6a2 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolAdd_CloudServiceConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolAdd_CloudServiceConfiguration.json @@ -10,19 +10,21 @@ "cloudServiceConfiguration": { "osFamily": "4" }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -32,4 +34,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolAdd_VirtualMachineConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolAdd_VirtualMachineConfiguration.json index b1c0f534a9ad..4202caceabe0 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolAdd_VirtualMachineConfiguration.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolAdd_VirtualMachineConfiguration.json @@ -15,19 +15,21 @@ }, "nodeAgentSKUId": "batch.node.ubuntu 16.04" }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false, - "enableInterNodeCommunication":true, - "metadata": [ { - "name":"myproperty", - "value":"myvalue" - } ] + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] } }, "responses": { @@ -37,4 +39,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json index 7aee5400dba7..e95ec3c93660 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json @@ -21,14 +21,14 @@ ] } }, - "resizeTimeout":"PT15M", - "targetDedicatedNodes":5, - "targetLowPriorityNodes":0, - "maxTasksPerNode":3, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, "taskSchedulingPolicy": { - "nodeFillType":"spread" + "nodeFillType": "spread" }, - "enableAutoScale":false + "enableAutoScale": false } }, "responses": { @@ -38,4 +38,4 @@ "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolDelete.json index d702f0043779..0978665dbb42 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolDelete.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolDisableAutoScale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolDisableAutoScale.json index 75710ee0b32f..e4574cedf2cc 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolDisableAutoScale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolDisableAutoScale.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolEnableAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolEnableAutoscale.json index a13b1ded3e45..c900fbe9231c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolEnableAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolEnableAutoscale.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolEvaluateAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolEvaluateAutoscale.json index 1e60ec6235c4..6e75947cbf7e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolEvaluateAutoscale.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolEvaluateAutoscale.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolExists.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolExists.json index d287ca753f25..c766ad42016c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolExists.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolExists.json @@ -7,11 +7,7 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - }, - "404": { - "body": "" - } + "200": {}, + "404": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolGetLifetimeStatistics.json index 7269c1ec701c..2f58faa4406f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolGetLifetimeStatistics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolGetLifetimeStatistics.json @@ -8,7 +8,7 @@ "responses": { "200": { "body": { - "url":"https://account.region.batch.core.windows.net/lifetimepoolstats", + "url": "https://account.region.batch.core.windows.net/lifetimepoolstats", "startTime": "2014-08-01T18:30:00.4345729Z", "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", "usageStats": { @@ -34,4 +34,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolGet_Basic.json index 82c4186934e2..d0817e8681b3 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolGet_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolGet_Basic.json @@ -28,7 +28,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "/bin/bash -c 'echo start task'", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -53,4 +53,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolListUsageMetrics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolListUsageMetrics.json index b56637082efa..fa7d0be48b1f 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolListUsageMetrics.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolListUsageMetrics.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolList_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolList_Basic.json index 4280822cc03e..cb275eb3d16b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolList_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolList_Basic.json @@ -29,7 +29,7 @@ "enableInterNodeCommunication": false, "startTask": { "commandLine": "cmd /c echo hello", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -51,4 +51,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolPatch.json index 066aff4650b6..1aae02876500 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolPatch.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolPatch.json @@ -12,8 +12,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolRemoveNodes.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolRemoveNodes.json index 2ab4f7ace56c..5a6cf8cb0cbd 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolRemoveNodes.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolRemoveNodes.json @@ -13,8 +13,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolResize.json index 9fac0a0ea3e5..4a96fb4bac8c 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolResize.json @@ -11,8 +11,6 @@ } }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolStopResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolStopResize.json index d702f0043779..0978665dbb42 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolStopResize.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolStopResize.json @@ -7,8 +7,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolUpdate.json index 757c3fb26f6c..9056ccf613e6 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/PoolUpdate.json @@ -15,8 +15,6 @@ } }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAddCollection_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAddCollection_Basic.json index c1c48dfe4b40..1403dcd9dda0 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAddCollection_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAddCollection_Basic.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAddCollection_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAddCollection_Complex.json index c4ba526ccb19..b57c15a91dfd 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAddCollection_Complex.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAddCollection_Complex.json @@ -74,4 +74,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAdd_Basic.json index f4d85676fb3f..bfa611d043ff 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAdd_Basic.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAdd_Basic.json @@ -11,8 +11,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAdd_ContainerSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAdd_ContainerSettings.json index 0d0defeb465b..a10de9ec85c9 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAdd_ContainerSettings.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAdd_ContainerSettings.json @@ -12,7 +12,7 @@ "imageName": "ubuntu", "containerRunOptions": "--rm" }, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -21,8 +21,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAdd_ExitConditions.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAdd_ExitConditions.json index 34e4c3e73258..35131b0fda0e 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAdd_ExitConditions.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskAdd_ExitConditions.json @@ -19,7 +19,7 @@ } ] }, - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -28,8 +28,6 @@ } }, "responses": { - "201": { - "body": "" - } + "201": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskDelete.json index ee980baf06b6..c8d21694ed75 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskDelete.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskDelete.json @@ -8,8 +8,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskGet.json index 9313dc107d13..48c0ddbbe54b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskGet.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskGet.json @@ -18,7 +18,7 @@ "state": "active", "stateTransitionTime": "2016-09-06T06:59:15.1161429Z", "commandLine": "cmd /c hostname", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskList.json index 7661f785a4c6..48c51a2a54bd 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskList.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskList.json @@ -19,7 +19,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.4733476Z", "commandLine": "cmd /c echo task1", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -44,7 +44,7 @@ "state": "active", "stateTransitionTime": "2016-11-21T22:43:31.6736345Z", "commandLine": "cmd /c echo task2", - "userIdentity":{ + "userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "nonadmin" @@ -64,4 +64,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskListSubtasks.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskListSubtasks.json index 95e13e29f647..06bb1738a049 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskListSubtasks.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskListSubtasks.json @@ -47,4 +47,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskReactivate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskReactivate.json index 0a41a8e6356e..8a462234e53b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskReactivate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskReactivate.json @@ -8,8 +8,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskTerminate.json index 0a41a8e6356e..8a462234e53b 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskTerminate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskTerminate.json @@ -8,8 +8,6 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" }, "responses": { - "204": { - "body": "" - } + "204": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskUpdate.json index 1bfcc5f4df2d..aaec87d307de 100644 --- a/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskUpdate.json +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-06-01.9.0/examples/TaskUpdate.json @@ -8,15 +8,13 @@ "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", "taskUpdateParameter": { "constraints": { - "maxWallClockTime":"PT1H", - "maxTaskRetryCount":3, - "retentionTime":"PT1H" + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 3, + "retentionTime": "PT1H" } } }, "responses": { - "200": { - "body": "" - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/BatchService.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/BatchService.json new file mode 100644 index 000000000000..b23f5622c68d --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/BatchService.json @@ -0,0 +1,16552 @@ +{ + "swagger": "2.0", + "info": { + "title": "BatchService", + "version": "2019-08-01.10.0", + "description": "A client for issuing REST requests to the Azure Batch service.", + "x-ms-code-generation-settings": { + "name": "BatchServiceClient" + } + }, + "x-ms-parameterized-host": { + "hostTemplate": "{batchUrl}", + "useSchemePrefix": false, + "parameters": [ + { + "$ref": "#/parameters/batchUrl" + } + ] + }, + "schemes": [ + "https" + ], + "consumes": [ + "application/json; odata=minimalmetadata" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "api_key": [] + } + ], + "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" + } + }, + "api_key": { + "type": "apiKey", + "name": "Authorization", + "in": "header" + } + }, + "paths": { + "/applications": { + "get": { + "tags": [ + "Applications" + ], + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "operationId": "Application_List", + "x-ms-examples": { + "List applications": { + "$ref": "./examples/ApplicationList.json" + } + }, + "summary": "Lists all of the applications available in the specified Account.", + "description": "This operation returns only Applications and versions that are available for use on Compute Nodes; that is, that can be used in an Package reference. For administrator information about applications and versions that are not yet available to Compute Nodes, use the Azure portal or the Azure Resource Manager API.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 1000, + "minimum": 1, + "maximum": 1000, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response. A maximum of 1000 applications can be returned.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the list of applications.", + "schema": { + "$ref": "#/definitions/ApplicationListResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/applications/{applicationId}": { + "get": { + "tags": [ + "Applications" + ], + "operationId": "Application_Get", + "x-ms-examples": { + "Get applications": { + "$ref": "./examples/ApplicationGet.json" + } + }, + "summary": "Gets information about the specified Application.", + "description": "This operation returns only Applications and versions that are available for use on Compute Nodes; that is, that can be used in an Package reference. For administrator information about Applications and versions that are not yet available to Compute Nodes, use the Azure portal or the Azure Resource Manager API.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "applicationId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Application." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the application.", + "schema": { + "$ref": "#/definitions/ApplicationSummary" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/poolusagemetrics": { + "get": { + "tags": [ + "Pools" + ], + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "operationId": "Pool_ListUsageMetrics", + "x-ms-examples": { + "Pool list usage metrics": { + "$ref": "./examples/PoolListUsageMetrics.json" + } + }, + "summary": "Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account.", + "description": "If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "starttime", + "x-ms-client-name": "startTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time", + "description": "The earliest time from which to include metrics. This must be at least two and a half hours before the current time. If not specified this defaults to the start time of the last aggregation interval currently available.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "endtime", + "x-ms-client-name": "endTime", + "in": "query", + "required": false, + "type": "string", + "format": "date-time", + "description": "The latest time from which to include metrics. This must be at least two hours before the current time. If not specified this defaults to the end time of the last aggregation interval currently available.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 1000, + "minimum": 1, + "maximum": 1000, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response. A maximum of 1000 results will be returned.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the list of Pool usage details.", + "schema": { + "$ref": "#/definitions/PoolListUsageMetricsResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/supportedimages": { + "get": { + "tags": [ + "Accounts" + ], + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "operationId": "Account_ListSupportedImages", + "x-ms-examples": { + "Account list node agent skus": { + "$ref": "./examples/AccountListSupportedImages.json" + } + }, + "summary": "Lists all Virtual Machine Images supported by the Azure Batch service.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 1000, + "minimum": 1, + "maximum": 1000, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response. A maximum of 1000 results will be returned.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the list of supported Virtual Machine Images.", + "schema": { + "$ref": "#/definitions/AccountListSupportedImagesResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/nodecounts": { + "get": { + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "tags": [ + "Accounts" + ], + "operationId": "Account_ListPoolNodeCounts", + "description": "Gets the number of Compute Nodes in each state, grouped by Pool.", + "x-ms-examples": { + "NodeCountsPayload": { + "$ref": "./examples/AccountListPoolNodeCounts.json" + } + }, + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 10, + "minimum": 1, + "maximum": 10, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + } + }, + "description": "The response contains the number of Compute Nodes in each Compute Node state, grouped by Pool.", + "schema": { + "$ref": "#/definitions/PoolNodeCountsListResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/lifetimepoolstats": { + "get": { + "tags": [ + "Pools" + ], + "operationId": "Pool_GetAllLifetimeStatistics", + "x-ms-examples": { + "Pool get lifetime statistics": { + "$ref": "./examples/PoolGetLifetimeStatistics.json" + } + }, + "summary": "Gets lifetime summary statistics for all of the Pools in the specified Account.", + "description": "Statistics are aggregated across all Pools that have ever existed in the Account, from Account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the Pool statistics for the lifetime of the Batch Account.", + "schema": { + "$ref": "#/definitions/PoolStatistics" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/lifetimejobstats": { + "get": { + "tags": [ + "Jobs" + ], + "operationId": "Job_GetAllLifetimeStatistics", + "x-ms-examples": { + "Job get lifetime statistics": { + "$ref": "./examples/JobGetLifetimeStatistics.json" + } + }, + "summary": "Gets lifetime summary statistics for all of the Jobs in the specified Account.", + "description": "Statistics are aggregated across all Jobs that have ever existed in the Account, from Account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the Job statistics for the lifetime of the Batch Account.", + "schema": { + "$ref": "#/definitions/JobStatistics" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/certificates": { + "post": { + "tags": [ + "Certificates" + ], + "operationId": "Certificate_Add", + "x-ms-examples": { + "Certificate add": { + "$ref": "./examples/CertificateAdd.json" + } + }, + "summary": "Adds a Certificate to the specified Account.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "certificate", + "in": "body", + "description": "The Certificate to be added.", + "required": true, + "schema": { + "$ref": "#/definitions/CertificateAddParameter" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "get": { + "tags": [ + "Certificates" + ], + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "operationId": "Certificate_List", + "x-ms-examples": { + "Certificate list": { + "$ref": "./examples/CertificateList.json" + } + }, + "summary": "Lists all of the Certificates that have been added to the specified Account.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-certificates.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 1000, + "minimum": 1, + "maximum": 1000, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response. A maximum of 1000 Certificates can be returned.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the list of Certificates.", + "schema": { + "$ref": "#/definitions/CertificateListResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})/canceldelete": { + "post": { + "tags": [ + "Certificates" + ], + "operationId": "Certificate_CancelDeletion", + "x-ms-examples": { + "Certificate cancel delete": { + "$ref": "./examples/CertificateCancelDelete.json" + } + }, + "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-request-id": "request-id", + "parameters": [ + { + "name": "thumbprintAlgorithm", + "in": "path", + "required": true, + "type": "string", + "description": "The algorithm used to derive the thumbprint parameter. This must be sha1." + }, + { + "name": "thumbprint", + "in": "path", + "required": true, + "type": "string", + "description": "The thumbprint of the Certificate being deleted." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/certificates(thumbprintAlgorithm={thumbprintAlgorithm},thumbprint={thumbprint})": { + "delete": { + "tags": [ + "Certificates" + ], + "operationId": "Certificate_Delete", + "x-ms-examples": { + "Certificate delete": { + "$ref": "./examples/CertificateDelete.json" + } + }, + "summary": "Deletes a Certificate from the specified Account.", + "description": "You cannot delete a Certificate if a resource (Pool or Compute Node) is using it. Before you can delete a Certificate, you must therefore make sure that the Certificate is not associated with any existing Pools, the Certificate is not installed on any Nodes (even if you remove a Certificate from a Pool, it is not removed from existing Compute Nodes in that Pool until they restart), and no running Tasks depend on the Certificate. If you try to delete a Certificate that is in use, the deletion fails. The Certificate status changes to deleteFailed. You can use Cancel Delete Certificate to set the status back to active if you decide that you want to continue using the Certificate.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "thumbprintAlgorithm", + "in": "path", + "required": true, + "type": "string", + "description": "The algorithm used to derive the thumbprint parameter. This must be sha1." + }, + { + "name": "thumbprint", + "in": "path", + "required": true, + "type": "string", + "description": "The thumbprint of the Certificate to be deleted." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "get": { + "tags": [ + "Certificates" + ], + "operationId": "Certificate_Get", + "x-ms-examples": { + "Certificate get": { + "$ref": "./examples/CertificateGet.json" + } + }, + "description": "Gets information about the specified Certificate.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "thumbprintAlgorithm", + "in": "path", + "required": true, + "type": "string", + "description": "The algorithm used to derive the thumbprint parameter. This must be sha1." + }, + { + "name": "thumbprint", + "in": "path", + "required": true, + "type": "string", + "description": "The thumbprint of the Certificate to get." + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the Certificate.", + "schema": { + "$ref": "#/definitions/Certificate" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}/tasks/{taskId}/files/{filePath}": { + "delete": { + "tags": [ + "Files" + ], + "operationId": "File_DeleteFromTask", + "x-ms-examples": { + "File delete from task": { + "$ref": "./examples/FileDeleteFromTask.json" + } + }, + "summary": "Deletes the specified Task file from the Compute Node where the Task ran.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job that contains the Task." + }, + { + "name": "taskId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Task whose file you want to delete." + }, + { + "name": "filePath", + "in": "path", + "required": true, + "type": "string", + "description": "The path to the Task file or directory that you want to delete." + }, + { + "name": "recursive", + "in": "query", + "required": false, + "type": "boolean", + "description": "Whether to delete children of a directory. If the filePath parameter represents a directory instead of a file, you can set recursive to true to delete the directory and all of the files and subdirectories in it. If recursive is false then the directory must be empty or deletion will fail." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "get": { + "tags": [ + "Files" + ], + "operationId": "File_GetFromTask", + "x-ms-examples": { + "Get File From Task": { + "$ref": "./examples/FileGetFromTask.json" + } + }, + "description": "Returns the content of the specified Task file.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job that contains the Task." + }, + { + "name": "taskId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Task whose file you want to retrieve." + }, + { + "name": "filePath", + "in": "path", + "required": true, + "type": "string", + "description": "The path to the Task file that you want to get the content of." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-range", + "in": "header", + "required": false, + "type": "string", + "description": "The byte range to be retrieved. The default is to retrieve the entire file. The format is bytes=startRange-endRange.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "produces": [ + "application/json", + "application/octet-stream" + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "ocp-creation-time": { + "description": "The file creation time.", + "type": "string", + "format": "date-time-rfc1123" + }, + "ocp-batch-file-isdirectory": { + "description": "Whether the object represents a directory.", + "type": "boolean" + }, + "ocp-batch-file-url": { + "description": "The URL of the file.", + "type": "string" + }, + "ocp-batch-file-mode": { + "description": "The file mode attribute in octal format.", + "type": "string" + }, + "Content-Type": { + "description": "The content type of the file.", + "type": "string" + }, + "Content-Length": { + "description": "The length of the file.", + "type": "integer", + "format": "int64" + } + }, + "description": "A response containing the file content.", + "schema": { + "type": "object", + "format": "file" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "head": { + "tags": [ + "Files" + ], + "operationId": "File_GetPropertiesFromTask", + "x-ms-examples": { + "File get properties from task": { + "$ref": "./examples/FileGetPropertiesFromTask.json" + } + }, + "description": "Gets the properties of the specified Task file.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job that contains the Task." + }, + { + "name": "taskId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Task whose file you want to get the properties of." + }, + { + "name": "filePath", + "in": "path", + "required": true, + "type": "string", + "description": "The path to the Task file that you want to get the properties of." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "ocp-creation-time": { + "description": "The file creation time.", + "type": "string", + "format": "date-time-rfc1123" + }, + "ocp-batch-file-isdirectory": { + "description": "Whether the object represents a directory.", + "type": "boolean" + }, + "ocp-batch-file-url": { + "description": "The URL of the file.", + "type": "string" + }, + "ocp-batch-file-mode": { + "description": "The file mode attribute in octal format.", + "type": "string" + }, + "Content-Type": { + "description": "The content type of the file.", + "type": "string" + }, + "Content-Length": { + "description": "The length of the file.", + "type": "integer", + "format": "int64" + } + }, + "description": "A response containing the file properties." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/files/{filePath}": { + "delete": { + "tags": [ + "Files" + ], + "operationId": "File_DeleteFromComputeNode", + "x-ms-examples": { + "File delete from node": { + "$ref": "./examples/FileDeleteFromNode.json" + } + }, + "summary": "Deletes the specified file from the Compute Node.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Compute Node from which you want to delete the file." + }, + { + "name": "filePath", + "in": "path", + "required": true, + "type": "string", + "description": "The path to the file or directory that you want to delete." + }, + { + "name": "recursive", + "in": "query", + "required": false, + "type": "boolean", + "description": "Whether to delete children of a directory. If the filePath parameter represents a directory instead of a file, you can set recursive to true to delete the directory and all of the files and subdirectories in it. If recursive is false then the directory must be empty or deletion will fail." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "get": { + "tags": [ + "Files" + ], + "operationId": "File_GetFromComputeNode", + "x-ms-examples": { + "Get File From Compute Node": { + "$ref": "./examples/FileGetFromNode.json" + } + }, + "description": "Returns the content of the specified Compute Node file.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Compute Node that contains the file." + }, + { + "name": "filePath", + "in": "path", + "required": true, + "type": "string", + "description": "The path to the Compute Node file that you want to get the content of." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-range", + "in": "header", + "required": false, + "type": "string", + "description": "The byte range to be retrieved. The default is to retrieve the entire file. The format is bytes=startRange-endRange.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "produces": [ + "application/json", + "application/octet-stream" + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "ocp-creation-time": { + "description": "The file creation time.", + "type": "string", + "format": "date-time-rfc1123" + }, + "ocp-batch-file-isdirectory": { + "description": "Whether the object represents a directory.", + "type": "boolean" + }, + "ocp-batch-file-url": { + "description": "The URL of the file.", + "type": "string" + }, + "ocp-batch-file-mode": { + "description": "The file mode attribute in octal format.", + "type": "string" + }, + "Content-Type": { + "description": "The content type of the file.", + "type": "string" + }, + "Content-Length": { + "description": "The length of the file.", + "type": "integer", + "format": "int64" + } + }, + "description": "The file content.", + "schema": { + "type": "object", + "format": "file" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "head": { + "tags": [ + "Files" + ], + "operationId": "File_GetPropertiesFromComputeNode", + "x-ms-examples": { + "File get properties from node": { + "$ref": "./examples/FileGetPropertiesFromNode.json" + } + }, + "description": "Gets the properties of the specified Compute Node file.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Compute Node that contains the file." + }, + { + "name": "filePath", + "in": "path", + "required": true, + "type": "string", + "description": "The path to the Compute Node file that you want to get the properties of." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "ocp-creation-time": { + "description": "The file creation time.", + "type": "string", + "format": "date-time-rfc1123" + }, + "ocp-batch-file-isdirectory": { + "description": "Whether the object represents a directory.", + "type": "boolean" + }, + "ocp-batch-file-url": { + "description": "The URL of the file.", + "type": "string" + }, + "ocp-batch-file-mode": { + "description": "The file mode attribute in octal format.", + "type": "string" + }, + "Content-Type": { + "description": "The content type of the file.", + "type": "string" + }, + "Content-Length": { + "description": "The length of the file.", + "type": "integer", + "format": "int64" + } + }, + "description": "A response containing the file properties." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}/tasks/{taskId}/files": { + "get": { + "tags": [ + "Files" + ], + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "operationId": "File_ListFromTask", + "x-ms-examples": { + "File list from task": { + "$ref": "./examples/FileListFromTask.json" + } + }, + "summary": "Lists the files in a Task's directory on its Compute Node.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job that contains the Task." + }, + { + "name": "taskId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Task whose files you want to list." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-task-files.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "recursive", + "in": "query", + "required": false, + "type": "boolean", + "description": "Whether to list children of the Task directory. This parameter can be used in combination with the filter parameter to list specific type of files." + }, + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 1000, + "minimum": 1, + "maximum": 1000, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response. A maximum of 1000 files can be returned.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the list of files.", + "schema": { + "$ref": "#/definitions/NodeFileListResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/files": { + "get": { + "tags": [ + "Files" + ], + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "operationId": "File_ListFromComputeNode", + "x-ms-examples": { + "File list from node": { + "$ref": "./examples/FileListFromNode.json" + } + }, + "summary": "Lists all of the files in Task directories on the specified Compute Node.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Compute Node whose files you want to list." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "recursive", + "in": "query", + "required": false, + "type": "boolean", + "description": "Whether to list children of a directory." + }, + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 1000, + "minimum": 1, + "maximum": 1000, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response. A maximum of 1000 files can be returned.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the list of files.", + "schema": { + "$ref": "#/definitions/NodeFileListResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobschedules/{jobScheduleId}": { + "head": { + "tags": [ + "JobSchedules" + ], + "operationId": "JobSchedule_Exists", + "x-ms-examples": { + "Check Job Schedule Exists": { + "$ref": "./examples/JobScheduleExists.json" + } + }, + "summary": "Checks the specified Job Schedule exists.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobScheduleId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job Schedule which you want to check." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing headers related to the Job Schedule, if it exists." + }, + "404": { + "description": "The Job Schedule does not exist." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "delete": { + "tags": [ + "JobSchedules" + ], + "operationId": "JobSchedule_Delete", + "x-ms-examples": { + "JobSchedule delete": { + "$ref": "./examples/JobScheduleDelete.json" + } + }, + "summary": "Deletes a Job Schedule from the specified Account.", + "description": "When you delete a Job Schedule, this also deletes all Jobs and Tasks under that schedule. When Tasks are deleted, all the files in their working directories on the Compute Nodes are also deleted (the retention period is ignored). The Job Schedule statistics are no longer accessible once the Job Schedule is deleted, though they are still counted towards Account lifetime statistics.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobScheduleId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job Schedule to delete." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "get": { + "tags": [ + "JobSchedules" + ], + "operationId": "JobSchedule_Get", + "x-ms-examples": { + "JobSchedule get": { + "$ref": "./examples/JobScheduleGet.json" + } + }, + "description": "Gets information about the specified Job Schedule.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobScheduleId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job Schedule to get." + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $expand clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the Job Schedule.", + "schema": { + "$ref": "#/definitions/CloudJobSchedule" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "patch": { + "tags": [ + "JobSchedules" + ], + "operationId": "JobSchedule_Patch", + "x-ms-examples": { + "JobSchedule patch": { + "$ref": "./examples/JobSchedulePatch.json" + } + }, + "summary": "Updates the properties of the specified Job Schedule.", + "description": "This replaces only the Job Schedule properties specified in the request. For example, if the schedule property is not specified with this request, then the Batch service will keep the existing schedule. Changes to a Job Schedule only impact Jobs created by the schedule after the update has taken place; currently running Jobs are unaffected.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobScheduleId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job Schedule to update." + }, + { + "name": "jobSchedulePatchParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JobSchedulePatchParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "put": { + "tags": [ + "JobSchedules" + ], + "operationId": "JobSchedule_Update", + "x-ms-examples": { + "JobSchedule update": { + "$ref": "./examples/JobScheduleUpdate.json" + } + }, + "summary": "Updates the properties of the specified Job Schedule.", + "description": "This fully replaces all the updatable properties of the Job Schedule. For example, if the schedule property is not specified with this request, then the Batch service will remove the existing schedule. Changes to a Job Schedule only impact Jobs created by the schedule after the update has taken place; currently running Jobs are unaffected.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobScheduleId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job Schedule to update." + }, + { + "name": "jobScheduleUpdateParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JobScheduleUpdateParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobschedules/{jobScheduleId}/disable": { + "post": { + "tags": [ + "JobSchedules" + ], + "operationId": "JobSchedule_Disable", + "x-ms-examples": { + "JobSchedule disable": { + "$ref": "./examples/JobScheduleDisable.json" + } + }, + "summary": "Disables a Job Schedule.", + "description": "No new Jobs will be created until the Job Schedule is enabled again.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobScheduleId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job Schedule to disable." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobschedules/{jobScheduleId}/enable": { + "post": { + "tags": [ + "JobSchedules" + ], + "operationId": "JobSchedule_Enable", + "x-ms-examples": { + "JobSchedule enable": { + "$ref": "./examples/JobScheduleEnable.json" + } + }, + "summary": "Enables a Job Schedule.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobScheduleId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job Schedule to enable." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobschedules/{jobScheduleId}/terminate": { + "post": { + "tags": [ + "JobSchedules" + ], + "operationId": "JobSchedule_Terminate", + "x-ms-examples": { + "JobSchedule terminate": { + "$ref": "./examples/JobScheduleTerminate.json" + } + }, + "summary": "Terminates a Job Schedule.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobScheduleId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job Schedule to terminates." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobschedules": { + "post": { + "tags": [ + "JobSchedules" + ], + "operationId": "JobSchedule_Add", + "x-ms-examples": { + "Add a basic JobSchedule": { + "$ref": "./examples/JobScheduleAdd_Basic.json" + }, + "Add a complex JobScheduleAdd": { + "$ref": "./examples/JobScheduleAdd_Complex.json" + } + }, + "summary": "Adds a Job Schedule to the specified Account.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "cloudJobSchedule", + "in": "body", + "description": "The Job Schedule to be added.", + "required": true, + "schema": { + "$ref": "#/definitions/JobScheduleAddParameter" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "get": { + "tags": [ + "JobSchedules" + ], + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "operationId": "JobSchedule_List", + "x-ms-examples": { + "JobSchedule list": { + "$ref": "./examples/JobScheduleList.json" + } + }, + "summary": "Lists all of the Job Schedules in the specified Account.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-schedules.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $expand clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 1000, + "minimum": 1, + "maximum": 1000, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response. A maximum of 1000 Job Schedules can be returned.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the list of Job Schedules.", + "schema": { + "$ref": "#/definitions/CloudJobScheduleListResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}": { + "delete": { + "tags": [ + "Jobs" + ], + "operationId": "Job_Delete", + "x-ms-examples": { + "Delete Job": { + "$ref": "./examples/JobDelete.json" + } + }, + "summary": "Deletes a Job.", + "description": "Deleting a Job also deletes all Tasks that are part of that Job, and all Job statistics. This also overrides the retention period for Task data; that is, if the Job contains Tasks which are still retained on Compute Nodes, the Batch services deletes those Tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the Job to the deleting state. All update operations on a Job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the Job is being deleted.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job to delete." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "get": { + "tags": [ + "Jobs" + ], + "operationId": "Job_Get", + "x-ms-examples": { + "Job get": { + "$ref": "./examples/JobGet.json" + } + }, + "summary": "Gets information about the specified Job.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job." + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $expand clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the Job.", + "schema": { + "$ref": "#/definitions/CloudJob" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "patch": { + "tags": [ + "Jobs" + ], + "operationId": "Job_Patch", + "x-ms-examples": { + "Job patch": { + "$ref": "./examples/JobPatch.json" + } + }, + "summary": "Updates the properties of the specified Job.", + "description": "This replaces only the Job properties specified in the request. For example, if the Job has constraints, and a request does not specify the constraints element, then the Job keeps the existing constraints.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job whose properties you want to update." + }, + { + "name": "jobPatchParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JobPatchParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "put": { + "tags": [ + "Jobs" + ], + "operationId": "Job_Update", + "x-ms-examples": { + "Job update": { + "$ref": "./examples/JobUpdate.json" + } + }, + "summary": "Updates the properties of the specified Job.", + "description": "This fully replaces all the updatable properties of the Job. For example, if the Job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job whose properties you want to update." + }, + { + "name": "jobUpdateParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JobUpdateParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}/disable": { + "post": { + "tags": [ + "Jobs" + ], + "operationId": "Job_Disable", + "x-ms-examples": { + "Job disable": { + "$ref": "./examples/JobDisable.json" + } + }, + "summary": "Disables the specified Job, preventing new Tasks from running.", + "description": "The Batch Service immediately moves the Job to the disabling state. Batch then uses the disableTasks parameter to determine what to do with the currently running Tasks of the Job. The Job remains in the disabling state until the disable operation is completed and all Tasks have been dealt with according to the disableTasks option; the Job then moves to the disabled state. No new Tasks are started under the Job until it moves back to active state. If you try to disable a Job that is in any state other than active, disabling, or disabled, the request fails with status code 409.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job to disable." + }, + { + "name": "jobDisableParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JobDisableParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}/enable": { + "post": { + "tags": [ + "Jobs" + ], + "operationId": "Job_Enable", + "x-ms-examples": { + "Job enable": { + "$ref": "./examples/JobEnable.json" + } + }, + "summary": "Enables the specified Job, allowing new Tasks to run.", + "description": "When you call this API, the Batch service sets a disabled Job to the enabling state. After the this operation is completed, the Job moves to the active state, and scheduling of new Tasks under the Job resumes. The Batch service does not allow a Task to remain in the active state for more than 180 days. Therefore, if you enable a Job containing active Tasks which were added more than 180 days ago, those Tasks will not run.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job to enable." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}/terminate": { + "post": { + "tags": [ + "Jobs" + ], + "operationId": "Job_Terminate", + "x-ms-examples": { + "Job terminate": { + "$ref": "./examples/JobTerminate.json" + } + }, + "summary": "Terminates the specified Job, marking it as completed.", + "description": "When a Terminate Job request is received, the Batch service sets the Job to the terminating state. The Batch service then terminates any running Tasks associated with the Job and runs any required Job release Tasks. Then the Job moves into the completed state. If there are any Tasks in the Job in the active state, they will remain in the active state. Once a Job is terminated, new Tasks cannot be added and any remaining active Tasks will not be scheduled.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job to terminate." + }, + { + "name": "jobTerminateParameter", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/JobTerminateParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs": { + "post": { + "tags": [ + "Jobs" + ], + "operationId": "Job_Add", + "x-ms-examples": { + "Add a basic job": { + "$ref": "./examples/JobAdd_Basic.json" + }, + "Add a complex job": { + "$ref": "./examples/JobAdd_Complex.json" + } + }, + "summary": "Adds a Job to the specified Account.", + "description": "The Batch service supports two ways to control the work done as part of a Job. In the first approach, the user specifies a Job Manager Task. The Batch service launches this Task when it is ready to start the Job. The Job Manager Task controls all other Tasks that run under this Job, by using the Task APIs. In the second approach, the user directly controls the execution of Tasks under an active Job, by using the Task APIs. Also note: when naming Jobs, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "job", + "in": "body", + "description": "The Job to be added.", + "required": true, + "schema": { + "$ref": "#/definitions/JobAddParameter" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "get": { + "tags": [ + "Jobs" + ], + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "operationId": "Job_List", + "x-ms-examples": { + "Job list": { + "$ref": "./examples/JobList.json" + } + }, + "summary": "Lists all of the Jobs in the specified Account.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $expand clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 1000, + "minimum": 1, + "maximum": 1000, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response. A maximum of 1000 Jobs can be returned.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the list of Jobs.", + "schema": { + "$ref": "#/definitions/CloudJobListResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobschedules/{jobScheduleId}/jobs": { + "get": { + "tags": [ + "Jobs" + ], + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "x-ms-examples": { + "List Job Under Job Schedule": { + "$ref": "./examples/JobListFromJobSchedule.json" + } + }, + "operationId": "Job_ListFromJobSchedule", + "summary": "Lists the Jobs that have been created under the specified Job Schedule.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobScheduleId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job Schedule from which you want to get a list of Jobs." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $expand clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 1000, + "minimum": 1, + "maximum": 1000, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response. A maximum of 1000 Jobs can be returned.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the list of Jobs.", + "schema": { + "$ref": "#/definitions/CloudJobListResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}/jobpreparationandreleasetaskstatus": { + "get": { + "tags": [ + "Jobs" + ], + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "operationId": "Job_ListPreparationAndReleaseTaskStatus", + "x-ms-examples": { + "Job list preparation and release task status": { + "$ref": "./examples/JobListPreparationAndReleaseTaskStatus.json" + } + }, + "summary": "Lists the execution status of the Job Preparation and Job Release Task for the specified Job across the Compute Nodes where the Job has run.", + "description": "This API returns the Job Preparation and Job Release Task status on all Compute Nodes that have run the Job Preparation or Job Release Task. This includes Compute Nodes which have since been removed from the Pool. If this API is invoked on a Job which has no Job Preparation or Job Release Task, the Batch service returns HTTP status code 409 (Conflict) with an error code of JobPreparationTaskNotSpecified.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 1000, + "minimum": 1, + "maximum": 1000, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response. A maximum of 1000 Tasks can be returned.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing a list of Job Preparation and Job Release Task statuses.", + "schema": { + "$ref": "#/definitions/CloudJobListPreparationAndReleaseTaskStatusResult" + } + }, + "default": { + "description": "The error from the Batch service. If this API is invoked on a Job which has no Job Preparation or Job Release Task, the Batch service returns HTTP status code 409.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}/taskcounts": { + "get": { + "tags": [ + "Jobs" + ], + "operationId": "Job_GetTaskCounts", + "x-ms-examples": { + "Job get task counts": { + "$ref": "./examples/JobGetTaskCounts.json" + } + }, + "summary": "Gets the Task counts for the specified Job.", + "description": "Task counts provide a count of the Tasks by active, running or completed Task state, and a count of Tasks which succeeded or failed. Tasks in the preparing state are counted as running.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + } + }, + "description": "A response containing the Task counts for the specified Job.", + "schema": { + "$ref": "#/definitions/TaskCounts" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools": { + "post": { + "tags": [ + "Pools" + ], + "operationId": "Pool_Add", + "x-ms-examples": { + "Add a CloudServiceConfiguration pool": { + "$ref": "./examples/PoolAdd_CloudServiceConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool": { + "$ref": "./examples/PoolAdd_VirtualMachineConfiguration.json" + }, + "Add a VirtualMachineConfiguration pool with containers": { + "$ref": "./examples/PoolAdd_VirtualMachineConfigurationWithContainers.json" + }, + "Add a pool with mount drive specified": { + "$ref": "./examples/PoolAdd_MountConfiguration.json" + } + }, + "summary": "Adds a Pool to the specified Account.", + "description": "When naming Pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "pool", + "in": "body", + "description": "The Pool to be added.", + "required": true, + "schema": { + "$ref": "#/definitions/PoolAddParameter" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "get": { + "tags": [ + "Pools" + ], + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "operationId": "Pool_List", + "x-ms-examples": { + "Pool list": { + "$ref": "./examples/PoolList_Basic.json" + } + }, + "summary": "Lists all of the Pools in the specified Account.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-pools.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $expand clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 1000, + "minimum": 1, + "maximum": 1000, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response. A maximum of 1000 Pools can be returned.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the list of Pools.", + "schema": { + "$ref": "#/definitions/CloudPoolListResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}": { + "delete": { + "tags": [ + "Pools" + ], + "operationId": "Pool_Delete", + "x-ms-examples": { + "Pool delete": { + "$ref": "./examples/PoolDelete.json" + } + }, + "summary": "Deletes a Pool from the specified Account.", + "description": "When you request that a Pool be deleted, the following actions occur: the Pool state is set to deleting; any ongoing resize operation on the Pool are stopped; the Batch service starts resizing the Pool to zero Compute Nodes; any Tasks running on existing Compute Nodes are terminated and requeued (as if a resize Pool operation had been requested with the default requeue option); finally, the Pool is removed from the system. Because running Tasks are requeued, the user can rerun these Tasks by updating their Job to target a different Pool. The Tasks can then run on the new Pool. If you want to override the requeue behavior, then you should call resize Pool explicitly to shrink the Pool to zero size before deleting the Pool. If you call an Update, Patch or Delete API on a Pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool to delete." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "head": { + "tags": [ + "Pools" + ], + "operationId": "Pool_Exists", + "x-ms-examples": { + "Check Pool Exists": { + "$ref": "./examples/PoolExists.json" + } + }, + "description": "Gets basic properties of a Pool.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool to get." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing headers related to the Pool, if it exists." + }, + "404": { + "description": "The Pool does not exist." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "get": { + "tags": [ + "Pools" + ], + "operationId": "Pool_Get", + "x-ms-examples": { + "Pool get": { + "$ref": "./examples/PoolGet_Basic.json" + } + }, + "description": "Gets information about the specified Pool.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool to get." + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $expand clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the Pool.", + "schema": { + "$ref": "#/definitions/CloudPool" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "patch": { + "tags": [ + "Pools" + ], + "operationId": "Pool_Patch", + "x-ms-examples": { + "Patch the Pool": { + "$ref": "./examples/PoolPatch.json" + } + }, + "summary": "Updates the properties of the specified Pool.", + "description": "This only replaces the Pool properties specified in the request. For example, if the Pool has a StartTask associated with it, and a request does not specify a StartTask element, then the Pool keeps the existing StartTask.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool to update." + }, + { + "name": "poolPatchParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PoolPatchParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/disableautoscale": { + "post": { + "tags": [ + "Pools" + ], + "operationId": "Pool_DisableAutoScale", + "x-ms-examples": { + "Disable pool autoscale": { + "$ref": "./examples/PoolDisableAutoScale.json" + } + }, + "summary": "Disables automatic scaling for a Pool.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool on which to disable automatic scaling." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/enableautoscale": { + "post": { + "tags": [ + "Pools" + ], + "operationId": "Pool_EnableAutoScale", + "x-ms-examples": { + "Pool enable autoscale": { + "$ref": "./examples/PoolEnableAutoscale.json" + } + }, + "summary": "Enables automatic scaling for a Pool.", + "description": "You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. If automatic scaling of the Pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the Pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same Pool more than once every 30 seconds.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool on which to enable automatic scaling." + }, + { + "name": "poolEnableAutoScaleParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PoolEnableAutoScaleParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/evaluateautoscale": { + "post": { + "tags": [ + "Pools" + ], + "operationId": "Pool_EvaluateAutoScale", + "x-ms-examples": { + "Pool evaluate autoscale": { + "$ref": "./examples/PoolEvaluateAutoscale.json" + } + }, + "summary": "Gets the result of evaluating an automatic scaling formula on the Pool.", + "description": "This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a formula.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool on which to evaluate the automatic scaling formula." + }, + { + "name": "poolEvaluateAutoScaleParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PoolEvaluateAutoScaleParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "A response containing the results of the autoscale evaluation.", + "schema": { + "$ref": "#/definitions/AutoScaleRun" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/resize": { + "post": { + "tags": [ + "Pools" + ], + "operationId": "Pool_Resize", + "x-ms-examples": { + "Pool resize": { + "$ref": "./examples/PoolResize.json" + } + }, + "summary": "Changes the number of Compute Nodes that are assigned to a Pool.", + "description": "You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, the request fails with status code 409. When you resize a Pool, the Pool's allocation state changes from steady to resizing. You cannot resize Pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a Pool downwards, the Batch service chooses which Compute Nodes to remove. To remove specific Compute Nodes, use the Pool remove Compute Nodes API instead.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool to resize." + }, + { + "name": "poolResizeParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PoolResizeParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/stopresize": { + "post": { + "tags": [ + "Pools" + ], + "operationId": "Pool_StopResize", + "x-ms-examples": { + "Pool stop resize": { + "$ref": "./examples/PoolStopResize.json" + } + }, + "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 Compute 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-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool whose resizing you want to stop." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service. If you call this API on a Pool which is not in the resizing state, the request fails with HTTP status code 409.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/updateproperties": { + "post": { + "tags": [ + "Pools" + ], + "operationId": "Pool_UpdateProperties", + "x-ms-examples": { + "Pool update": { + "$ref": "./examples/PoolUpdate.json" + } + }, + "summary": "Updates the properties of the specified Pool.", + "description": "This fully replaces all the updatable properties of the Pool. For example, if the Pool has a StartTask associated with it and if StartTask is not specified with this request, then the Batch service will remove the existing StartTask.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool to update." + }, + { + "name": "poolUpdatePropertiesParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PoolUpdatePropertiesParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/removenodes": { + "post": { + "tags": [ + "ComputeNodes" + ], + "operationId": "Pool_RemoveNodes", + "x-ms-examples": { + "Pool remove nodes": { + "$ref": "./examples/PoolRemoveNodes.json" + } + }, + "summary": "Removes Compute Nodes from the specified Pool.", + "description": "This operation can only run when the allocation state of the Pool is steady. When this operation runs, the allocation state changes from steady to resizing.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool from which you want to remove Compute Nodes." + }, + { + "name": "nodeRemoveParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NodeRemoveParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}/tasks": { + "post": { + "tags": [ + "Tasks" + ], + "operationId": "Task_Add", + "x-ms-examples": { + "Add a basic task": { + "$ref": "./examples/TaskAdd_Basic.json" + }, + "Add a task with exit conditions": { + "$ref": "./examples/TaskAdd_ExitConditions.json" + }, + "Add a task with container settings": { + "$ref": "./examples/TaskAdd_ContainerSettings.json" + } + }, + "summary": "Adds a Task to the specified Job.", + "description": "The maximum lifetime of a Task from addition to completion is 180 days. If a Task has not completed within 180 days of being added it will be terminated by the Batch service and left in whatever state it was in at that time.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job to which the Task is to be added." + }, + { + "name": "task", + "in": "body", + "description": "The Task to be added.", + "required": true, + "schema": { + "$ref": "#/definitions/TaskAddParameter" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "get": { + "tags": [ + "Tasks" + ], + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "operationId": "Task_List", + "x-ms-examples": { + "Task list": { + "$ref": "./examples/TaskList.json" + } + }, + "summary": "Lists all of the Tasks that are associated with the specified Job.", + "description": "For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary Task. Use the list subtasks API to retrieve information about subtasks.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-tasks.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $expand clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 1000, + "minimum": 1, + "maximum": 1000, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response. A maximum of 1000 Tasks can be returned.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the list of Tasks.", + "schema": { + "$ref": "#/definitions/CloudTaskListResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}/addtaskcollection": { + "post": { + "tags": [ + "Tasks" + ], + "operationId": "Task_AddCollection", + "x-ms-examples": { + "Add a basic collection of tasks": { + "$ref": "./examples/TaskAddCollection_Basic.json" + }, + "Add a complex collection of tasks": { + "$ref": "./examples/TaskAddCollection_Complex.json" + } + }, + "summary": "Adds a collection of Tasks to the specified Job.", + "description": "Note that each Task must have a unique ID. The Batch service may not return the results for each Task in the same order the Tasks were submitted in this request. If the server times out or the connection is closed during the request, the request may have been partially or fully processed, or not at all. In such cases, the user should re-issue the request. Note that it is up to the user to correctly handle failures when re-issuing a request. For example, you should use the same Task IDs during a retry so that if the prior operation succeeded, the retry will not create extra Tasks unexpectedly. If the response contains any Tasks which failed to add, a client can retry the request. In a retry, it is most efficient to resubmit only Tasks that failed to add, and to omit Tasks that were successfully added on the first attempt. The maximum lifetime of a Task from addition to completion is 180 days. If a Task has not completed within 180 days of being added it will be terminated by the Batch service and left in whatever state it was in at that time.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job to which the Task collection is to be added." + }, + { + "name": "taskCollection", + "in": "body", + "description": "The Tasks to be added.", + "required": true, + "schema": { + "$ref": "#/definitions/TaskAddCollectionParameter" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/TaskAddCollectionResult" + }, + "description": "A response containing the results of the add Task collection operation." + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}/tasks/{taskId}": { + "delete": { + "tags": [ + "Tasks" + ], + "operationId": "Task_Delete", + "x-ms-examples": { + "Task delete": { + "$ref": "./examples/TaskDelete.json" + } + }, + "summary": "Deletes a Task from the specified Job.", + "description": "When a Task is deleted, all of the files in its directory on the Compute Node where it ran are also deleted (regardless of the retention time). For multi-instance Tasks, the delete Task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job from which to delete the Task." + }, + { + "name": "taskId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Task to delete." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "get": { + "tags": [ + "Tasks" + ], + "operationId": "Task_Get", + "x-ms-examples": { + "Task get": { + "$ref": "./examples/TaskGet.json" + } + }, + "summary": "Gets information about the specified Task.", + "description": "For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary Task. Use the list subtasks API to retrieve information about subtasks.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job that contains the Task." + }, + { + "name": "taskId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Task to get information about." + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $expand clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "A response containing the Task.", + "schema": { + "$ref": "#/definitions/CloudTask" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "put": { + "tags": [ + "Tasks" + ], + "operationId": "Task_Update", + "x-ms-examples": { + "Task update": { + "$ref": "./examples/TaskUpdate.json" + } + }, + "description": "Updates the properties of the specified Task.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job containing the Task." + }, + { + "name": "taskId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Task to update." + }, + { + "name": "taskUpdateParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TaskUpdateParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}/tasks/{taskId}/subtasksinfo": { + "get": { + "tags": [ + "Tasks" + ], + "operationId": "Task_ListSubtasks", + "x-ms-examples": { + "Task list subtasks": { + "$ref": "./examples/TaskListSubtasks.json" + } + }, + "summary": "Lists all of the subtasks that are associated with the specified multi-instance Task.", + "description": "If the Task is not a multi-instance Task then this returns an empty collection.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job." + }, + { + "name": "taskId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Task." + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the list of subtasks.", + "schema": { + "$ref": "#/definitions/CloudTaskListSubtasksResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}/tasks/{taskId}/terminate": { + "post": { + "tags": [ + "Tasks" + ], + "operationId": "Task_Terminate", + "x-ms-examples": { + "Task terminate": { + "$ref": "./examples/TaskTerminate.json" + } + }, + "summary": "Terminates the specified Task.", + "description": "When the Task has been terminated, it moves to the completed state. For multi-instance Tasks, the terminate Task operation applies synchronously to the primary task; subtasks are then terminated asynchronously in the background.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job containing the Task." + }, + { + "name": "taskId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Task to terminate." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/jobs/{jobId}/tasks/{taskId}/reactivate": { + "post": { + "tags": [ + "Tasks" + ], + "operationId": "Task_Reactivate", + "x-ms-examples": { + "Task reactivate": { + "$ref": "./examples/TaskReactivate.json" + } + }, + "summary": "Reactivates a Task, allowing it to run again even if its retry count has been exhausted.", + "description": "Reactivation makes a Task eligible to be retried again up to its maximum retry count. The Task's state is changed to active. As the Task is no longer in the completed state, any previous exit code or failure information is no longer available after reactivation. Each time a Task is reactivated, its retry count is reset to 0. Reactivation will fail for Tasks that are not completed or that previously completed successfully (with an exit code of 0). Additionally, it will fail if the Job has completed (or is terminating or deleting).", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Job containing the Task." + }, + { + "name": "taskId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Task to reactivate." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "description": "An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Modified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "If-Unmodified-Since", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/users": { + "post": { + "tags": [ + "ComputeNodes" + ], + "operationId": "ComputeNode_AddUser", + "x-ms-examples": { + "Node add user": { + "$ref": "./examples/NodeAddUser.json" + } + }, + "summary": "Adds a user Account to the specified Compute Node.", + "description": "You can add a user Account to a Compute Node only when it is in the idle or running state.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the machine on which you want to create a user Account." + }, + { + "name": "user", + "in": "body", + "description": "The user Account to be created.", + "required": true, + "schema": { + "$ref": "#/definitions/ComputeNodeUser" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/users/{userName}": { + "delete": { + "tags": [ + "ComputeNodes" + ], + "operationId": "ComputeNode_DeleteUser", + "x-ms-examples": { + "Node delete user": { + "$ref": "./examples/NodeDeleteUser.json" + } + }, + "summary": "Deletes a user Account from the specified Compute Node.", + "description": "You can delete a user Account to a Compute Node only when it is in the idle or running state.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the machine on which you want to delete a user Account." + }, + { + "name": "userName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the user Account to delete." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + }, + "put": { + "tags": [ + "ComputeNodes" + ], + "operationId": "ComputeNode_UpdateUser", + "x-ms-examples": { + "Node update user": { + "$ref": "./examples/NodeUpdateUser.json" + } + }, + "summary": "Updates the password and expiration time of a user Account on the specified Compute Node.", + "description": "This operation replaces of all the updatable properties of the Account. For example, if the expiryTime element is not specified, the current value is replaced with the default value, not left unmodified. You can update a user Account on a Compute Node only when it is in the idle or running state.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the machine on which you want to update a user Account." + }, + { + "name": "userName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the user Account to update." + }, + { + "name": "nodeUpdateUserParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NodeUpdateUserParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}": { + "get": { + "tags": [ + "ComputeNodes" + ], + "operationId": "ComputeNode_Get", + "x-ms-examples": { + "Node get": { + "$ref": "./examples/NodeGet_Basic.json" + } + }, + "summary": "Gets information about the specified Compute Node.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Compute Node that you want to get information about." + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the Compute Node.", + "schema": { + "$ref": "#/definitions/ComputeNode" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/reboot": { + "post": { + "tags": [ + "ComputeNodes" + ], + "operationId": "ComputeNode_Reboot", + "x-ms-examples": { + "Node reboot": { + "$ref": "./examples/NodeReboot.json" + } + }, + "summary": "Restarts the specified Compute Node.", + "description": "You can restart a Compute Node only if it is in an idle or running state.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Compute Node that you want to restart." + }, + { + "name": "nodeRebootParameter", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/NodeRebootParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/reimage": { + "post": { + "tags": [ + "ComputeNodes" + ], + "operationId": "ComputeNode_Reimage", + "x-ms-examples": { + "Node reimage": { + "$ref": "./examples/NodeReimage.json" + } + }, + "summary": "Reinstalls the operating system on the specified Compute Node.", + "description": "You can reinstall the operating system on a Compute Node only if it is in an idle or running state. This API can be invoked only on Pools created with the cloud service configuration property.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Compute Node that you want to restart." + }, + { + "name": "nodeReimageParameter", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/NodeReimageParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/disablescheduling": { + "post": { + "tags": [ + "ComputeNodes" + ], + "operationId": "ComputeNode_DisableScheduling", + "x-ms-examples": { + "Node disable scheduling": { + "$ref": "./examples/NodeDisableScheduling.json" + } + }, + "summary": "Disables Task scheduling on the specified Compute Node.", + "description": "You can disable Task scheduling on a Compute Node only if its current scheduling state is enabled.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Compute Node on which you want to disable Task scheduling." + }, + { + "name": "nodeDisableSchedulingParameter", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/NodeDisableSchedulingParameter" + }, + "description": "The parameters for the request." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/enablescheduling": { + "post": { + "tags": [ + "ComputeNodes" + ], + "operationId": "ComputeNode_EnableScheduling", + "x-ms-examples": { + "Node enable scheduling": { + "$ref": "./examples/NodeEnableScheduling.json" + } + }, + "summary": "Enables Task scheduling on the specified Compute Node.", + "description": "You can enable Task scheduling on a Compute Node only if its current scheduling state is disabled", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Compute Node on which you want to enable Task scheduling." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + }, + "DataServiceId": { + "description": "The OData ID of the resource to which the request applied.", + "type": "string" + } + }, + "description": "The request to the Batch service was successful." + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/remoteloginsettings": { + "get": { + "tags": [ + "ComputeNodes" + ], + "operationId": "ComputeNode_GetRemoteLoginSettings", + "x-ms-examples": { + "Node get remote login settings": { + "$ref": "./examples/NodeGetRemoteLoginSettings.json" + } + }, + "summary": "Gets the settings required for remote login to a Compute Node.", + "description": "Before you can remotely login to a Compute Node using the remote login settings, you must create a user Account on the Compute Node. This API can be invoked only on Pools created with the virtual machine configuration property. For Pools created with a cloud service configuration, see the GetRemoteDesktop API.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Compute Node for which to obtain the remote login settings." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the login settings.", + "schema": { + "$ref": "#/definitions/ComputeNodeGetRemoteLoginSettingsResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/rdp": { + "get": { + "tags": [ + "ComputeNodes" + ], + "operationId": "ComputeNode_GetRemoteDesktop", + "x-ms-examples": { + "Get RDP file of the compute node": { + "$ref": "./examples/NodeGetRemoteDesktop.json" + } + }, + "summary": "Gets the Remote Desktop Protocol file for the specified Compute Node.", + "description": "Before you can access a Compute Node by using the RDP file, you must create a user Account on the Compute Node. This API can only be invoked on Pools created with a cloud service configuration. For Pools created with a virtual machine configuration, see the GetRemoteLoginSettings API.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Compute Node for which you want to get the Remote Desktop Protocol file." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "produces": [ + "application/json", + "application/octet-stream" + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the RDP information.", + "schema": { + "type": "object", + "format": "file" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs": { + "post": { + "tags": [ + "ComputeNodes" + ], + "operationId": "ComputeNode_UploadBatchServiceLogs", + "summary": "Upload Azure Batch service log files from the specified Compute Node to Azure Blob Storage.", + "description": "This is for gathering Azure Batch service log files in an automated fashion from Compute Nodes if you are experiencing an error and wish to escalate to Azure support. The Azure Batch service log files should be shared with Azure support to aid in debugging issues with the Batch service.", + "x-ms-examples": { + "Upload BatchService Logs": { + "$ref": "./examples/NodeUploadBatchServiceLogs.json" + } + }, + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool that contains the Compute Node." + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Compute Node from which you want to upload the Azure Batch service log files." + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "uploadBatchServiceLogsConfiguration", + "in": "body", + "description": "The Azure Batch service log files upload configuration.", + "required": true, + "schema": { + "$ref": "#/definitions/UploadBatchServiceLogsConfiguration" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + } + }, + "description": "The request to the Batch service was successful.", + "schema": { + "$ref": "#/definitions/UploadBatchServiceLogsResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + }, + "/pools/{poolId}/nodes": { + "get": { + "tags": [ + "ComputeNodes" + ], + "x-ms-pageable": { + "nextLinkName": "odata.nextLink" + }, + "operationId": "ComputeNode_List", + "x-ms-examples": { + "Node list": { + "$ref": "./examples/NodeList.json" + } + }, + "summary": "Lists the Compute Nodes in the specified Pool.", + "x-ms-request-id": "request-id", + "parameters": [ + { + "name": "poolId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the Pool from which you want to list Compute Nodes." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $filter clause. For more information on constructing this filter, see https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "An OData $select clause.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "maxresults", + "x-ms-client-name": "maxResults", + "default": 1000, + "minimum": 1, + "maximum": 1000, + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of items to return in the response. A maximum of 1000 Compute Nodes can be returned.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "timeout", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "default": 30, + "description": "The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "client-request-id", + "in": "header", + "required": false, + "type": "string", + "format": "uuid", + "description": "The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.", + "x-ms-parameter-grouping": { + "postfix": "Options" + }, + "x-ms-client-request-id": true + }, + { + "name": "return-client-request-id", + "default": false, + "in": "header", + "required": false, + "type": "boolean", + "description": "Whether the server should return the client-request-id in the response.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "name": "ocp-date", + "in": "header", + "required": false, + "type": "string", + "format": "date-time-rfc1123", + "description": "The time the request was issued. Client libraries typically set this to the current system clock time; set it explicitly if you are calling the REST API directly.", + "x-ms-parameter-grouping": { + "postfix": "Options" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "headers": { + "client-request-id": { + "description": "The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.", + "type": "string", + "format": "uuid" + }, + "request-id": { + "description": "A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in.", + "type": "string", + "format": "uuid" + }, + "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-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.", + "type": "string" + }, + "Last-Modified": { + "description": "The time at which the resource was last modified.", + "type": "string", + "format": "date-time-rfc1123" + } + }, + "description": "A response containing the list of Compute Nodes.", + "schema": { + "$ref": "#/definitions/ComputeNodeListResult" + } + }, + "default": { + "description": "The error from the Batch service.", + "schema": { + "$ref": "#/definitions/BatchError" + } + } + } + } + } + }, + "definitions": { + "PoolUsageMetrics": { + "properties": { + "poolId": { + "type": "string", + "title": "The ID of the Pool whose metrics are aggregated in this entry." + }, + "startTime": { + "type": "string", + "format": "date-time", + "title": "The start time of the aggregation interval covered by this entry." + }, + "endTime": { + "type": "string", + "format": "date-time", + "title": "The end time of the aggregation interval covered by this entry." + }, + "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 in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes)." + }, + "totalCoreHours": { + "type": "number", + "format": "double", + "title": "The total core hours used in the Pool during this aggregation interval." + } + }, + "required": [ + "poolId", + "startTime", + "endTime", + "vmSize", + "totalCoreHours" + ], + "title": "Usage metrics for a Pool across an aggregation interval." + }, + "PoolListUsageMetricsResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PoolUsageMetrics" + }, + "title": "The Pool usage metrics data." + }, + "odata.nextLink": { + "type": "string", + "title": "The URL to get the next set of results." + } + }, + "title": "The result of a listing the usage metrics for an Account." + }, + "ImageInformation": { + "properties": { + "nodeAgentSKUId": { + "type": "string", + "title": "The ID of the Compute Node agent SKU which the Image supports." + }, + "imageReference": { + "$ref": "#/definitions/ImageReference", + "title": "The reference to the Azure Virtual Machine's Marketplace Image." + }, + "osType": { + "type": "string", + "title": "The type of operating system (e.g. Windows or Linux) of the Image.", + "enum": [ + "linux", + "windows" + ], + "x-ms-enum": { + "name": "OSType", + "modelAsString": false, + "values": [ + { + "value": "linux", + "description": "The Linux operating system." + }, + { + "value": "windows", + "description": "The Windows operating system." + } + ] + } + }, + "capabilities": { + "type": "array", + "items": { + "type": "string" + }, + "title": "The capabilities or features which the Image supports.", + "description": "Not every capability of the Image is listed. Capabilities in this list are considered of special interest and are generally related to integration with other features in the Azure Batch service." + }, + "batchSupportEndOfLife": { + "type": "string", + "format": "date-time", + "title": "The time when the Azure Batch service will stop accepting create Pool requests for the Image." + }, + "verificationType": { + "type": "string", + "title": "Whether the Azure Batch service actively verifies that the Image is compatible with the associated Compute Node agent SKU.", + "enum": [ + "verified", + "unverified" + ], + "x-ms-enum": { + "name": "VerificationType", + "modelAsString": false, + "values": [ + { + "value": "verified", + "description": "The Image is guaranteed to be compatible with the associated Compute Node agent SKU and all Batch features have been confirmed to work as expected." + }, + { + "value": "unverified", + "description": "The associated Compute Node agent SKU should have binary compatibility with the Image, but specific functionality has not been verified." + } + ] + } + } + }, + "required": [ + "imageReference", + "verificationType", + "osType", + "nodeAgentSKUId" + ], + "title": "A reference to the Azure Virtual Machines Marketplace Image and additional information about the Image." + }, + "AuthenticationTokenSettings": { + "properties": { + "access": { + "type": "array", + "items": { + "type": "string", + "x-nullable": false, + "enum": [ + "job" + ], + "x-ms-enum": { + "name": "AccessScope", + "modelAsString": false, + "values": [ + { + "value": "job", + "description": "Grants access to perform all operations on the Job containing the Task." + } + ] + } + }, + "title": "The Batch resources to which the token grants access.", + "description": "The authentication token grants access to a limited set of Batch service operations. Currently the only supported value for the access property is 'job', which grants access to all operations related to the Job which contains the Task." + } + }, + "title": "The settings for an authentication token that the Task can use to perform Batch service operations." + }, + "AccountListSupportedImagesResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ImageInformation" + }, + "title": "The list of supported Virtual Machine Images." + }, + "odata.nextLink": { + "type": "string", + "title": "The URL to get the next set of results." + } + }, + "title": "The result of listing the supported Virtual Machine Images." + }, + "UsageStatistics": { + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "title": "The start time of the time range covered by the statistics." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime." + }, + "dedicatedCoreTime": { + "type": "string", + "format": "duration", + "title": "The aggregated wall-clock time of the dedicated Compute Node cores being part of the Pool." + } + }, + "required": [ + "startTime", + "lastUpdateTime", + "dedicatedCoreTime" + ], + "title": "Statistics related to Pool usage information." + }, + "ResourceStatistics": { + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "title": "The start time of the time range covered by the statistics." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime." + }, + "avgCPUPercentage": { + "type": "number", + "format": "double", + "title": "The average CPU usage across all Compute Nodes in the Pool (percentage per node)." + }, + "avgMemoryGiB": { + "type": "number", + "format": "double", + "title": "The average memory usage in GiB across all Compute Nodes in the Pool." + }, + "peakMemoryGiB": { + "type": "number", + "format": "double", + "title": "The peak memory usage in GiB across all Compute Nodes in the Pool." + }, + "avgDiskGiB": { + "type": "number", + "format": "double", + "title": "The average used disk space in GiB across all Compute Nodes in the Pool." + }, + "peakDiskGiB": { + "type": "number", + "format": "double", + "title": "The peak used disk space in GiB across all Compute Nodes in the Pool." + }, + "diskReadIOps": { + "type": "integer", + "format": "int64", + "title": "The total number of disk read operations across all Compute Nodes in the Pool." + }, + "diskWriteIOps": { + "type": "integer", + "format": "int64", + "title": "The total number of disk write operations across all Compute Nodes in the Pool." + }, + "diskReadGiB": { + "type": "number", + "format": "double", + "title": "The total amount of data in GiB of disk reads across all Compute Nodes in the Pool." + }, + "diskWriteGiB": { + "type": "number", + "format": "double", + "title": "The total amount of data in GiB of disk writes across all Compute Nodes in the Pool." + }, + "networkReadGiB": { + "type": "number", + "format": "double", + "title": "The total amount of data in GiB of network reads across all Compute Nodes in the Pool." + }, + "networkWriteGiB": { + "type": "number", + "format": "double", + "title": "The total amount of data in GiB of network writes across all Compute Nodes in the Pool." + } + }, + "required": [ + "startTime", + "lastUpdateTime", + "avgCPUPercentage", + "avgMemoryGiB", + "peakMemoryGiB", + "avgDiskGiB", + "peakDiskGiB", + "diskReadIOps", + "diskWriteIOps", + "diskReadGiB", + "diskWriteGiB", + "networkReadGiB", + "networkWriteGiB" + ], + "title": "Statistics related to resource consumption by Compute Nodes in a Pool." + }, + "PoolStatistics": { + "properties": { + "url": { + "type": "string", + "title": "The URL for the statistics." + }, + "startTime": { + "type": "string", + "format": "date-time", + "title": "The start time of the time range covered by the statistics." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime." + }, + "usageStats": { + "$ref": "#/definitions/UsageStatistics", + "title": "Statistics related to Pool usage, such as the amount of core-time used." + }, + "resourceStats": { + "$ref": "#/definitions/ResourceStatistics", + "title": "Statistics related to resource consumption by Compute Nodes in the Pool." + } + }, + "required": [ + "url", + "startTime", + "lastUpdateTime" + ], + "title": "Contains utilization and resource usage statistics for the lifetime of a Pool." + }, + "JobStatistics": { + "properties": { + "url": { + "type": "string", + "title": "The URL of the statistics." + }, + "startTime": { + "type": "string", + "format": "date-time", + "title": "The start time of the time range covered by the statistics." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime." + }, + "userCPUTime": { + "type": "string", + "format": "duration", + "title": "The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in the Job." + }, + "kernelCPUTime": { + "type": "string", + "format": "duration", + "title": "The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in the Job." + }, + "wallClockTime": { + "type": "string", + "format": "duration", + "title": "The total wall clock time of all Tasks in the Job.", + "description": " The wall clock time is the elapsed time from when the Task started running on a Compute Node to when it finished (or to the last time the statistics were updated, if the Task had not finished by then). If a Task was retried, this includes the wall clock time of all the Task retries." + }, + "readIOps": { + "type": "integer", + "format": "int64", + "title": "The total number of disk read operations made by all Tasks in the Job." + }, + "writeIOps": { + "type": "integer", + "format": "int64", + "title": "The total number of disk write operations made by all Tasks in the Job." + }, + "readIOGiB": { + "type": "number", + "format": "double", + "title": "The total amount of data in GiB read from disk by all Tasks in the Job." + }, + "writeIOGiB": { + "type": "number", + "format": "double", + "title": "The total amount of data in GiB written to disk by all Tasks in the Job." + }, + "numSucceededTasks": { + "type": "integer", + "format": "int64", + "title": "The total number of Tasks successfully completed in the Job during the given time range.", + "description": "A Task completes successfully if it returns exit code 0." + }, + "numFailedTasks": { + "type": "integer", + "format": "int64", + "title": "The total number of Tasks in the Job that failed during the given time range.", + "description": "A Task fails if it exhausts its maximum retry count without returning exit code 0." + }, + "numTaskRetries": { + "type": "integer", + "format": "int64", + "title": "The total number of retries on all the Tasks in the Job during the given time range." + }, + "waitTime": { + "type": "string", + "format": "duration", + "title": "The total wait time of all Tasks in the Job.", + "description": "The wait time for a Task is defined as the elapsed time between the creation of the Task and the start of Task execution. (If the Task is retried due to failures, the wait time is the time to the most recent Task execution.) This value is only reported in the Account lifetime statistics; it is not included in the Job statistics." + } + }, + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], + "title": "Resource usage statistics for a Job." + }, + "NameValuePair": { + "properties": { + "name": { + "type": "string", + "title": "The name in the name-value pair." + }, + "value": { + "type": "string", + "title": "The value in the name-value pair." + } + }, + "title": "Represents a name-value pair." + }, + "DeleteCertificateError": { + "properties": { + "code": { + "type": "string", + "title": "An identifier for the Certificate deletion error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "title": "A message describing the Certificate deletion error, intended to be suitable for display in a user interface." + }, + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/NameValuePair" + }, + "title": "A list of additional error details related to the Certificate deletion error.", + "description": "This list includes details such as the active Pools and Compute Nodes referencing this Certificate. However, if a large number of resources reference the Certificate, the list contains only about the first hundred." + } + }, + "title": "An error encountered by the Batch service when deleting a Certificate." + }, + "Certificate": { + "properties": { + "thumbprint": { + "type": "string", + "title": "The X.509 thumbprint of the Certificate. This is a sequence of up to 40 hex digits." + }, + "thumbprintAlgorithm": { + "type": "string", + "title": "The algorithm used to derive the thumbprint." + }, + "url": { + "type": "string", + "title": "The URL of the Certificate." + }, + "state": { + "title": "The current state of the Certificate.", + "$ref": "#/definitions/CertificateState" + }, + "stateTransitionTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Certificate entered its current state." + }, + "previousState": { + "title": "The previous state of the Certificate.", + "description": "This property is not set if the Certificate is in its initial active state.", + "$ref": "#/definitions/CertificateState" + }, + "previousStateTransitionTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Certificate entered its previous state.", + "description": "This property is not set if the Certificate is in its initial Active state." + }, + "publicData": { + "type": "string", + "title": "The public part of the Certificate as a base-64 encoded .cer file." + }, + "deleteCertificateError": { + "$ref": "#/definitions/DeleteCertificateError", + "title": "The error that occurred on the last attempt to delete this Certificate.", + "description": "This property is set only if the Certificate is in the DeleteFailed state." + } + }, + "description": "A Certificate that can be installed on Compute Nodes and can be used to authenticate operations on the machine." + }, + "ApplicationPackageReference": { + "properties": { + "applicationId": { + "type": "string", + "title": "The ID of the application to deploy." + }, + "version": { + "type": "string", + "title": "The version of the application to deploy. If omitted, the default version is deployed.", + "description": "If this is omitted on a Pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a Task, and no default version is specified for this application, the Task fails with a pre-processing error." + } + }, + "required": [ + "applicationId" + ], + "title": "A reference to an Package to be deployed to Compute Nodes." + }, + "ApplicationSummary": { + "properties": { + "id": { + "type": "string", + "title": "A string that uniquely identifies the application within the Account." + }, + "displayName": { + "type": "string", + "title": "The display name for the application." + }, + "versions": { + "type": "array", + "title": "The list of available versions of the application.", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "displayName", + "versions" + ], + "title": "Contains information about an application in an Azure Batch Account." + }, + "CertificateAddParameter": { + "properties": { + "thumbprint": { + "type": "string", + "title": "The X.509 thumbprint of the Certificate. This is a sequence of up to 40 hex digits (it may include spaces but these are removed)." + }, + "thumbprintAlgorithm": { + "type": "string", + "title": "The algorithm used to derive the thumbprint. This must be sha1." + }, + "data": { + "type": "string", + "title": "The base64-encoded contents of the Certificate. The maximum size is 10KB." + }, + "certificateFormat": { + "type": "string", + "title": "The format of the Certificate data.", + "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." + } + ] + } + }, + "password": { + "type": "string", + "title": "The password to access the Certificate's private key.", + "description": "This is required if the Certificate format is pfx. It should be omitted if the Certificate format is cer." + } + }, + "required": [ + "thumbprint", + "thumbprintAlgorithm", + "data" + ], + "title": "A Certificate that can be installed on Compute Nodes and can be used to authenticate operations on the machine." + }, + "CertificateListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + }, + "title": "The list of Certificates." + }, + "odata.nextLink": { + "type": "string", + "title": "The URL to get the next set of results." + } + }, + "title": "The result of listing the Certificates in the Account." + }, + "FileProperties": { + "properties": { + "creationTime": { + "type": "string", + "format": "date-time", + "title": "The file creation time.", + "description": "The creation time is not returned for files on Linux Compute Nodes." + }, + "lastModified": { + "type": "string", + "format": "date-time", + "title": "The time at which the file was last modified." + }, + "contentLength": { + "type": "integer", + "format": "int64", + "title": "The length of the file." + }, + "contentType": { + "type": "string", + "title": "The content type of the file." + }, + "fileMode": { + "type": "string", + "title": "The file mode attribute in octal format.", + "description": "The file mode is returned only for files on Linux Compute Nodes." + } + }, + "required": [ + "lastModified", + "contentLength" + ], + "title": "The properties of a file on a Compute Node." + }, + "NodeFile": { + "properties": { + "name": { + "type": "string", + "title": "The file path." + }, + "url": { + "type": "string", + "title": "The URL of the file." + }, + "isDirectory": { + "type": "boolean", + "title": "Whether the object represents a directory." + }, + "properties": { + "$ref": "#/definitions/FileProperties", + "title": "The file properties." + } + }, + "title": "Information about a file or directory on a Compute Node." + }, + "NodeFileListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NodeFile" + }, + "title": "The list of files." + }, + "odata.nextLink": { + "type": "string", + "title": "The URL to get the next set of results." + } + }, + "title": "The result of listing the files on a Compute Node, or the files associated with a Task on a Compute Node." + }, + "Schedule": { + "properties": { + "doNotRunUntil": { + "type": "string", + "format": "date-time", + "title": "The earliest time at which any Job may be created under this Job Schedule.", + "description": "If you do not specify a doNotRunUntil time, the schedule becomes ready to create Jobs immediately." + }, + "doNotRunAfter": { + "type": "string", + "format": "date-time", + "title": "A time after which no Job will be created under this Job Schedule. The schedule will move to the completed state as soon as this deadline is past and there is no active Job under this Job Schedule.", + "description": "If you do not specify a doNotRunAfter time, and you are creating a recurring Job Schedule, the Job Schedule will remain active until you explicitly terminate it." + }, + "startWindow": { + "type": "string", + "format": "duration", + "title": "The time interval, starting from the time at which the schedule indicates a Job should be created, within which a Job must be created.", + "description": "If a Job is not created within the startWindow interval, then the 'opportunity' is lost; no Job will be created until the next recurrence of the schedule. If the schedule is recurring, and the startWindow is longer than the recurrence interval, then this is equivalent to an infinite startWindow, because the Job that is 'due' in one recurrenceInterval is not carried forward into the next recurrence interval. The default is infinite. The minimum value is 1 minute. If you specify a lower value, the Batch service rejects the schedule with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "recurrenceInterval": { + "type": "string", + "format": "duration", + "title": "The time interval between the start times of two successive Jobs under the Job Schedule. A Job Schedule can have at most one active Job under it at any given time.", + "description": "Because a Job Schedule can have at most one active Job under it at any given time, if it is time to create a new Job under a Job Schedule, but the previous Job is still running, the Batch service will not create the new Job until the previous Job finishes. If the previous Job does not finish within the startWindow period of the new recurrenceInterval, then no new Job will be scheduled for that interval. For recurring Jobs, you should normally specify a jobManagerTask in the jobSpecification. If you do not use jobManagerTask, you will need an external process to monitor when Jobs are created, add Tasks to the Jobs and terminate the Jobs ready for the next recurrence. The default is that the schedule does not recur: one Job is created, within the startWindow after the doNotRunUntil time, and the schedule is complete as soon as that Job finishes. The minimum value is 1 minute. If you specify a lower value, the Batch service rejects the schedule with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + } + }, + "title": "The schedule according to which Jobs will be created" + }, + "JobConstraints": { + "properties": { + "maxWallClockTime": { + "type": "string", + "format": "duration", + "title": "The maximum elapsed time that the Job may run, measured from the time the Job is created.", + "description": "If the Job does not complete within the time limit, the Batch service terminates it and any Tasks that are still running. In this case, the termination reason will be MaxWallClockTimeExpiry. If this property is not specified, there is no time limit on how long the Job may run." + }, + "maxTaskRetryCount": { + "type": "integer", + "format": "int32", + "title": "The maximum number of times each Task may be retried. The Batch service retries a Task if its exit code is nonzero.", + "description": "Note that this value specifically controls the number of retries. The Batch service will try each Task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries a Task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry Tasks. If the maximum retry count is -1, the Batch service retries Tasks without limit. The default value is 0 (no retries)." + } + }, + "title": "The execution constraints for a Job." + }, + "JobNetworkConfiguration": { + "properties": { + "subnetId": { + "type": "string", + "title": "The ARM resource identifier of the virtual network subnet which Compute Nodes running Tasks from the Job will join for the duration of the Task. This will only work with a VirtualMachineConfiguration Pool.", + "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 Compute Nodes which will run Tasks from the Job. This can be up to the number of Compute Nodes in the Pool. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet so that Azure Batch service can schedule Tasks on the Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication from the Azure Batch service. 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. Port 443 is also required to be open for outbound connections for communications to Azure Storage. 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" + } + } + }, + "required": [ + "subnetId" + ], + "title": "The network configuration for the Job." + }, + "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": "The location of the container Task working directory.", + "description": "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": "Use the working directory defined in the container Image. 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 blobs from the container. There are two ways to get such a URL for a container in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the container, or set the ACL for the 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 points to 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(s), 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 Compute Node. If this property is not specified for a Linux Compute 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." + }, + "ExitConditions": { + "properties": { + "exitCodes": { + "type": "array", + "items": { + "$ref": "#/definitions/ExitCodeMapping" + }, + "title": "A list of individual Task exit codes and how the Batch service should respond to them." + }, + "exitCodeRanges": { + "type": "array", + "items": { + "$ref": "#/definitions/ExitCodeRangeMapping" + }, + "title": "A list of Task exit code ranges and how the Batch service should respond to them." + }, + "preProcessingError": { + "$ref": "#/definitions/ExitOptions", + "title": "How the Batch service should respond if the Task fails to start due to an error." + }, + "fileUploadError": { + "$ref": "#/definitions/ExitOptions", + "title": "How the Batch service should respond if a file upload error occurs.", + "description": "If the Task exited with an exit code that was specified via exitCodes or exitCodeRanges, and then encountered a file upload error, then the action specified by the exit code takes precedence." + }, + "default": { + "$ref": "#/definitions/ExitOptions", + "title": "How the Batch service should respond if the Task fails with an exit condition not covered by any of the other properties.", + "description": "This value is used if the Task exits with any nonzero exit code not listed in the exitCodes or exitCodeRanges collection, with a pre-processing error if the preProcessingError property is not present, or with a file upload error if the fileUploadError property is not present. If you want non-default behavior on exit code 0, you must list it explicitly using the exitCodes or exitCodeRanges collection." + } + }, + "title": "Specifies how the Batch service should respond when the Task completes." + }, + "ExitCodeMapping": { + "properties": { + "code": { + "type": "integer", + "format": "int32", + "title": "A process exit code." + }, + "exitOptions": { + "$ref": "#/definitions/ExitOptions", + "title": "How the Batch service should respond if the Task exits with this exit code." + } + }, + "title": "How the Batch service should respond if a Task exits with a particular exit code.", + "required": [ + "code", + "exitOptions" + ] + }, + "ExitCodeRangeMapping": { + "properties": { + "start": { + "type": "integer", + "format": "int32", + "title": "The first exit code in the range." + }, + "end": { + "type": "integer", + "format": "int32", + "title": "The last exit code in the range." + }, + "exitOptions": { + "$ref": "#/definitions/ExitOptions", + "title": "How the Batch service should respond if the Task exits with an exit code in the range start to end (inclusive)." + } + }, + "title": "A range of exit codes and how the Batch service should respond to exit codes within that range.", + "required": [ + "start", + "end", + "exitOptions" + ] + }, + "ExitOptions": { + "properties": { + "jobAction": { + "type": "string", + "title": "An action to take on the Job containing the Task, if the Task completes with the given exit condition and the Job's onTaskFailed property is 'performExitOptionsJobAction'.", + "description": "The default is none for exit code 0 and terminate for all other exit conditions. If the Job's onTaskFailed property is noaction, then specifying this property returns an error and the add Task request fails with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).", + "enum": [ + "none", + "disable", + "terminate" + ], + "x-ms-enum": { + "name": "JobAction", + "modelAsString": false, + "values": [ + { + "value": "none", + "description": "Take no action." + }, + { + "value": "disable", + "description": "Disable the Job. This is equivalent to calling the disable Job API, with a disableTasks value of requeue." + }, + { + "value": "terminate", + "description": "Terminate the Job. The terminateReason in the Job's executionInfo is set to \"TaskFailed\"." + } + ] + } + }, + "dependencyAction": { + "type": "string", + "title": "An action that the Batch service performs on Tasks that depend on this Task.", + "description": "Possible values are 'satisfy' (allowing dependent tasks to progress) and 'block' (dependent tasks continue to wait). Batch does not yet support cancellation of dependent tasks.", + "enum": [ + "satisfy", + "block" + ], + "x-ms-enum": { + "name": "DependencyAction", + "modelAsString": false, + "values": [ + { + "value": "satisfy", + "description": "Satisfy tasks waiting on this task; once all dependencies are satisfied, the task will be scheduled to run." + }, + { + "value": "block", + "description": "Blocks tasks waiting on this task, preventing them from being scheduled." + } + ] + } + } + }, + "title": "Specifies how the Batch service responds to a particular exit condition." + }, + "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 StartTasks.", + "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 Compute 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." + }, + "UserIdentity": { + "properties": { + "username": { + "type": "string", + "x-ms-client-name": "userName", + "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." + }, + "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 Compute 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 Compute Nodes (no modification of the user's .ssh directory is done)." + } + }, + "title": "Properties used to create a user Account on a Linux Compute Node." + }, + "WindowsUserConfiguration": { + "properties": { + "loginMode": { + "type": "string", + "title": "The login mode for the user", + "description": "The default value for VirtualMachineConfiguration Pools is 'batch' and for CloudServiceConfiguration Pools is 'interactive'.", + "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. UAC is enabled on Windows VirtualMachineConfiguration Pools. If this option is used with an elevated user identity in a Windows VirtualMachineConfiguration Pool, the user session will not be elevated unless the application executed by the Task command line is configured to always require administrative privilege or to always require maximum privilege." + } + ] + } + } + }, + "title": "Properties used to create a user Account on a Windows Compute 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": "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 used to execute Tasks on an Azure Batch Compute Node." + }, + "TaskConstraints": { + "properties": { + "maxWallClockTime": { + "type": "string", + "format": "duration", + "title": "The maximum elapsed time that the Task may run, measured from the time the Task starts. If the Task does not complete within the time limit, the Batch service terminates it.", + "description": "If this is not specified, there is no time limit on how long the Task may run." + }, + "retentionTime": { + "type": "string", + "format": "duration", + "title": "The minimum time to retain the Task directory on the Compute Node where it ran, from the time it completes execution. After this time, the Batch service may delete the Task directory and all its contents.", + "description": "The default is 7 days, i.e. the Task directory will be retained for 7 days unless the Compute Node is removed or the Job is deleted." + }, + "maxTaskRetryCount": { + "type": "integer", + "format": "int32", + "title": "The maximum number of times the Task may be retried. The Batch service retries a Task if its exit code is nonzero.", + "description": "Note that this value specifically controls the number of retries for the Task executable due to a nonzero exit code. 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 after the first attempt. If the maximum retry count is -1, the Batch service retries the Task without limit." + } + }, + "title": "Execution constraints to apply to a Task." + }, + "JobManagerTask": { + "properties": { + "id": { + "type": "string", + "title": "A string that uniquely identifies the Job Manager Task within the Job.", + "description": "The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters." + }, + "displayName": { + "type": "string", + "title": "The display name of the Job Manager Task.", + "description": "It need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "commandLine": { + "type": "string", + "title": "The command line of the Job Manager 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. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/TaskContainerSettings", + "title": "The settings for the container under which the Job Manager Task runs.", + "description": "If the Pool that will run this Task has containerConfiguration set, this must be set as well. If the Pool that will run this Task doesn't have containerConfiguration set, this must not be set. 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. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "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.", + "description": "Files listed under this element are located in the Task's working directory. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers." + }, + "outputFiles": { + "type": "array", + "items": { + "$ref": "#/definitions/OutputFile" + }, + "title": "A list of files that the Batch service will upload from the Compute Node after running the command line.", + "description": "For multi-instance Tasks, the files will only be uploaded from the Compute Node on which the primary Task is executed." + }, + "environmentSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "title": "A list of environment variable settings for the Job Manager Task." + }, + "constraints": { + "$ref": "#/definitions/TaskConstraints", + "title": "Constraints that apply to the Job Manager Task." + }, + "killJobOnCompletion": { + "type": "boolean", + "title": "Whether completion of the Job Manager Task signifies completion of the entire Job.", + "description": "If true, when the Job Manager Task completes, the Batch service marks the Job as complete. If any Tasks are still running at this time (other than Job Release), those Tasks are terminated. If false, the completion of the Job Manager Task does not affect the Job status. In this case, you should either use the onAllTasksComplete attribute to terminate the Job, or have a client or user terminate the Job explicitly. An example of this is if the Job Manager creates a set of Tasks but then takes no further role in their execution. The default value is true. If you are using the onAllTasksComplete and onTaskFailure attributes to control Job lifetime, and using the Job Manager Task only to create the Tasks for the Job (not to monitor progress), then it is important to set killJobOnCompletion to false." + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "title": "The user identity under which the Job Manager Task runs.", + "description": "If omitted, the Task runs as a non-administrative user unique to the Task." + }, + "runExclusive": { + "type": "boolean", + "title": "Whether the Job Manager Task requires exclusive use of the Compute Node where it runs.", + "description": "If true, no other Tasks will run on the same Node for as long as the Job Manager is running. If false, other Tasks can run simultaneously with the Job Manager on a Compute Node. The Job Manager Task counts normally against the Compute Node's concurrent Task limit, so this is only relevant if the Compute Node allows multiple concurrent Tasks. The default value is true." + }, + "applicationPackageReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPackageReference" + }, + "title": "A list of Application Packages that the Batch service will deploy to the Compute Node before running the command line.", + "description": "Application Packages are downloaded and deployed to a shared directory, not the Task working directory. Therefore, if a referenced Application Package is already on the Compute Node, and is up to date, then it is not re-downloaded; the existing copy on the Compute Node is used. If a referenced Application Package cannot be installed, for example because the package has been deleted or because download failed, the Task fails." + }, + "authenticationTokenSettings": { + "title": "The settings for an authentication token that the Task can use to perform Batch service operations.", + "description": "If this property is set, the Batch service provides the Task with an authentication token which can be used to authenticate Batch service operations without requiring an Account access key. The token is provided via the AZ_BATCH_AUTHENTICATION_TOKEN environment variable. The operations that the Task can carry out using the token depend on the settings. For example, a Task can request Job permissions in order to add other Tasks to the Job, or check the status of the Job or of other Tasks under the Job.", + "$ref": "#/definitions/AuthenticationTokenSettings" + }, + "allowLowPriorityNode": { + "type": "boolean", + "title": "Whether the Job Manager Task may run on a low-priority Compute Node.", + "description": "The default value is true." + } + }, + "required": [ + "id", + "commandLine" + ], + "title": "Specifies details of a Job Manager Task.", + "description": "The Job Manager Task is automatically started when the Job is created. The Batch service tries to schedule the Job Manager Task before any other Tasks in the Job. When shrinking a Pool, the Batch service tries to preserve Nodes where Job Manager Tasks are running for as long as possible (that is, Compute Nodes running 'normal' Tasks are removed before Compute Nodes running Job Manager Tasks). When a Job Manager Task fails and needs to be restarted, the system tries to schedule it at the highest priority. If there are no idle Compute Nodes available, the system may terminate one of the running Tasks in the Pool and return it to the queue in order to make room for the Job Manager Task to restart. Note that a Job Manager Task in one Job does not have priority over Tasks in other Jobs. Across Jobs, only Job level priorities are observed. For example, if a Job Manager in a priority 0 Job needs to be restarted, it will not displace Tasks of a priority 1 Job. Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing." + }, + "JobPreparationTask": { + "properties": { + "id": { + "type": "string", + "title": "A string that uniquely identifies the Job Preparation Task within the Job.", + "description": "The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters. If you do not specify this property, the Batch service assigns a default value of 'jobpreparation'. No other Task in the Job can have the same ID as the Job Preparation Task. If you try to submit a Task with the same id, the Batch service rejects the request with error code TaskIdSameAsJobPreparationTask; if you are calling the REST API directly, the HTTP status code is 409 (Conflict)." + }, + "commandLine": { + "type": "string", + "title": "The command line of the Job Preparation 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. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/TaskContainerSettings", + "title": "The settings for the container under which the Job Preparation 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. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "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.", + "description": "Files listed under this element are located in the Task's working directory. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers." + }, + "environmentSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "title": "A list of environment variable settings for the Job Preparation Task." + }, + "constraints": { + "$ref": "#/definitions/TaskConstraints", + "title": "Constraints that apply to the Job Preparation Task." + }, + "waitForSuccess": { + "type": "boolean", + "title": "Whether the Batch service should wait for the Job Preparation Task to complete successfully before scheduling any other Tasks of the Job on the Compute Node. A Job Preparation Task has completed successfully if it exits with exit code 0.", + "description": "If true and the Job Preparation Task fails on a Node, the Batch service retries the Job Preparation Task up to its maximum retry count (as specified in the constraints element). If the Task has still not completed successfully after all retries, then the Batch service will not schedule Tasks of the Job to the Node. The Node remains active and eligible to run Tasks of other Jobs. If false, the Batch service will not wait for the Job Preparation Task to complete. In this case, other Tasks of the Job can start executing on the Compute Node while the Job Preparation Task is still running; and even if the Job Preparation Task fails, new Tasks will continue to be scheduled on the Compute Node. The default value is true." + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "title": "The user identity under which the Job Preparation Task runs.", + "description": "If omitted, the Task runs as a non-administrative user unique to the Task on Windows Compute Nodes, or a non-administrative user unique to the Pool on Linux Compute Nodes." + }, + "rerunOnNodeRebootAfterSuccess": { + "type": "boolean", + "title": "Whether the Batch service should rerun the Job Preparation Task after a Compute Node reboots.", + "description": "The Job Preparation Task is always rerun if a Compute Node is reimaged, or if the Job Preparation Task did not complete (e.g. because the reboot occurred while the Task was running). Therefore, you should always write a Job Preparation Task to be idempotent and to behave correctly if run multiple times. The default value is true." + } + }, + "required": [ + "commandLine" + ], + "title": "A Job Preparation Task to run before any Tasks of the Job on any given Compute Node.", + "description": "You can use Job Preparation to prepare a Node to run Tasks for the Job. Activities commonly performed in Job Preparation include: Downloading common resource files used by all the Tasks in the Job. The Job Preparation Task can download these common resource files to the shared location on the Node. (AZ_BATCH_NODE_ROOT_DIR\\shared), or starting a local service on the Node so that all Tasks of that Job can communicate with it. If the Job Preparation Task fails (that is, exhausts its retry count before exiting with exit code 0), Batch will not run Tasks of this Job on the Node. The Compute Node remains ineligible to run Tasks of this Job until it is reimaged. The Compute Node remains active and can be used for other Jobs. The Job Preparation Task can run multiple times on the same Node. Therefore, you should write the Job Preparation Task to handle re-execution. If the Node is rebooted, the Job Preparation Task is run again on the Compute Node before scheduling any other Task of the Job, if rerunOnNodeRebootAfterSuccess is true or if the Job Preparation Task did not previously complete. If the Node is reimaged, the Job Preparation Task is run again before scheduling any Task of the Job. Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing." + }, + "JobReleaseTask": { + "properties": { + "id": { + "type": "string", + "title": "A string that uniquely identifies the Job Release Task within the Job.", + "description": "The ID can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters. If you do not specify this property, the Batch service assigns a default value of 'jobrelease'. No other Task in the Job can have the same ID as the Job Release Task. If you try to submit a Task with the same id, the Batch service rejects the request with error code TaskIdSameAsJobReleaseTask; if you are calling the REST API directly, the HTTP status code is 409 (Conflict)." + }, + "commandLine": { + "type": "string", + "title": "The command line of the Job Release 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. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/TaskContainerSettings", + "title": "The settings for the container under which the Job Release 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. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "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. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers.", + "description": "Files listed under this element are located in the Task's working directory." + }, + "environmentSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "title": "A list of environment variable settings for the Job Release Task." + }, + "maxWallClockTime": { + "type": "string", + "format": "duration", + "title": "The maximum elapsed time that the Job Release Task may run on a given Compute Node, measured from the time the Task starts. If the Task does not complete within the time limit, the Batch service terminates it. The default value is 15 minutes. You may not specify a timeout longer than 15 minutes. If you do, the Batch service rejects it with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "retentionTime": { + "type": "string", + "format": "duration", + "title": "The minimum time to retain the Task directory for the Job Release Task on the Compute Node. After this time, the Batch service may delete the Task directory and all its contents.", + "description": "The default is 7 days, i.e. the Task directory will be retained for 7 days unless the Compute Node is removed or the Job is deleted." + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "title": "The user identity under which the Job Release Task runs.", + "description": "If omitted, the Task runs as a non-administrative user unique to the Task." + } + }, + "required": [ + "commandLine" + ], + "title": "A Job Release Task to run on Job completion on any Compute Node where the Job has run.", + "description": "The Job Release Task runs when the Job ends, because of one of the following: The user calls the Terminate Job API, or the Delete Job API while the Job is still active, the Job's maximum wall clock time constraint is reached, and the Job is still active, or the Job's Job Manager Task completed, and the Job is configured to terminate when the Job Manager completes. The Job Release Task runs on each Node where Tasks of the Job have run and the Job Preparation Task ran and completed. If you reimage a Node after it has run the Job Preparation Task, and the Job ends without any further Tasks of the Job running on that Node (and hence the Job Preparation Task does not re-run), then the Job Release Task does not run on that Compute Node. If a Node reboots while the Job Release Task is still running, the Job Release Task runs again when the Compute Node starts up. The Job is not marked as complete until all Job Release Tasks have completed. The Job Release Task runs in the background. It does not occupy a scheduling slot; that is, it does not count towards the maxTasksPerNode limit specified on the Pool." + }, + "TaskSchedulingPolicy": { + "properties": { + "nodeFillType": { + "type": "string", + "title": "How Tasks are distributed across Compute Nodes in a Pool.", + "description": "If not specified, the default is spread.", + "enum": [ + "spread", + "pack" + ], + "x-ms-enum": { + "name": "ComputeNodeFillType", + "modelAsString": false, + "values": [ + { + "value": "spread", + "description": "Tasks should be assigned evenly across all Compute Nodes in the Pool." + }, + { + "value": "pack", + "description": "As many Tasks as possible (maxTasksPerNode) should be assigned to each Compute Node in the Pool before any Tasks are assigned to the next Compute Node in the Pool." + } + ] + } + } + }, + "required": [ + "nodeFillType" + ], + "title": "Specifies how Tasks should be distributed across Compute Nodes." + }, + "StartTask": { + "properties": { + "commandLine": { + "type": "string", + "title": "The command line of the StartTask.", + "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. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/TaskContainerSettings", + "title": "The settings for the container under which the StartTask 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. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "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. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers.", + "description": "Files listed under this element are located in the Task's working directory." + }, + "environmentSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "title": "A list of environment variable settings for the StartTask." + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "title": "The user identity under which the StartTask 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 StartTask to complete successfully (that is, to exit with exit code 0) before scheduling any Tasks on the Compute Node.", + "description": "If true and the StartTask fails on a Node, the Batch service retries the StartTask up to its maximum retry count (maxTaskRetryCount). If the Task has still not completed successfully after all retries, then the Batch service marks the Node unusable, and will not schedule Tasks to it. This condition can be detected via the Compute Node state and failure info details. If false, the Batch service will not wait for the StartTask to complete. In this case, other Tasks can start executing on the Compute Node while the StartTask is still running; and even if the StartTask fails, new Tasks will continue to be scheduled on the Compute Node. The default is true." + } + }, + "required": [ + "commandLine" + ], + "title": "A Task which is run when a Node joins a Pool in the Azure Batch service, or when the Compute Node is rebooted or reimaged.", + "description": "Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing. In some cases the StartTask may be re-run even though the Compute Node was not rebooted. Special care should be taken to avoid StartTasks which create breakaway process or install/launch services from the StartTask working directory, as this will block Batch from being able to re-run the StartTask." + }, + "CertificateReference": { + "properties": { + "thumbprint": { + "type": "string", + "title": "The thumbprint of the Certificate." + }, + "thumbprintAlgorithm": { + "type": "string", + "title": "The algorithm with which the thumbprint is associated. This must be sha1." + }, + "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 Compute 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.", + "name": "currentUser" + }, + { + "value": "localmachine", + "description": "Certificates should be installed to the LocalMachine Certificate store.", + "name": "localMachine" + } + ] + } + }, + "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 Compute 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 StartTask 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.", + "name": "startTask" + }, + { + "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 Compute Node.", + "name": "remoteUser" + } + ] + } + }, + "title": "Which user Accounts on the Compute Node should have access to the private data of the Certificate.", + "description": "You can specify more than one visibility in this collection. The default is all Accounts." + } + }, + "required": [ + "thumbprint", + "thumbprintAlgorithm" + ], + "title": "A reference to a Certificate to be installed on Compute Nodes in a Pool." + }, + "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." + }, + "PoolSpecification": { + "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." + }, + "vmSize": { + "type": "string", + "title": "The size of the virtual machines in the Pool. All virtual machines in a Pool are the same size.", + "description": "For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes)." + }, + "cloudServiceConfiguration": { + "$ref": "#/definitions/CloudServiceConfiguration", + "title": "The cloud service configuration for the Pool.", + "description": "This property must be specified if the Pool needs to be created with Azure PaaS VMs. This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. If neither is specified then the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). 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 must be specified if the Pool needs to be created with Azure IaaS VMs. This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified. If neither is specified then the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "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." + }, + "resizeTimeout": { + "type": "string", + "format": "duration", + "title": "The timeout for allocation of Compute Nodes to the Pool.", + "description": "This timeout applies only to manual scaling; it has no effect when enableAutoScale is set to true. The default value is 15 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": "This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both." + }, + "targetLowPriorityNodes": { + "type": "integer", + "format": "int32", + "title": "The desired number of low-priority Compute Nodes in the Pool.", + "description": "This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both." + }, + "enableAutoScale": { + "type": "boolean", + "title": "Whether the Pool size should automatically adjust over time.", + "description": "If false, at least one of targetDedicateNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula element is required. The Pool automatically resizes according to the formula. The default value is false." + }, + "autoScaleFormula": { + "type": "string", + "title": "The formula for the desired number of Compute Nodes in the Pool.", + "description": "This property must not be specified if enableAutoScale is set to false. It is required if enableAutoScale is set to true. The formula is checked for validity before the Pool is created. If the formula is not valid, the Batch service rejects the request with detailed error information." + }, + "autoScaleEvaluationInterval": { + "type": "string", + "format": "duration", + "title": "The time interval at which to automatically adjust the Pool size according to the autoscale formula.", + "description": "The default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "enableInterNodeCommunication": { + "type": "boolean", + "title": "Whether the Pool permits direct communication between Compute Nodes.", + "description": "Enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is false." + }, + "networkConfiguration": { + "$ref": "#/definitions/NetworkConfiguration", + "title": "The network configuration for the Pool." + }, + "startTask": { + "$ref": "#/definitions/StartTask", + "title": "A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted." + }, + "certificateReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/CertificateReference" + }, + "title": "A list of Certificates to be installed on each Compute Node in the Pool.", + "description": "For Windows 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." + }, + "applicationPackageReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPackageReference" + }, + "title": "The list of Packages to be installed on each Compute Node in the Pool.", + "description": "Changes to Package references affect all new 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 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. The permitted licenses available on the Pool are 'maya', 'vray', '3dsmax', 'arnold'. An additional charge applies for each application license added to the Pool." + }, + "userAccounts": { + "type": "array", + "items": { + "$ref": "#/definitions/UserAccount" + }, + "title": "The list of user Accounts to be created on each Compute 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." + }, + "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." + } + }, + "required": [ + "vmSize" + ], + "title": "Specification for creating a new Pool." + }, + "AutoPoolSpecification": { + "properties": { + "autoPoolIdPrefix": { + "type": "string", + "title": "A prefix to be added to the unique identifier when a Pool is automatically created.", + "description": "The Batch service assigns each auto Pool a unique identifier on creation. To distinguish between Pools created for different purposes, you can specify this element to add a prefix to the ID that is assigned. The prefix can be up to 20 characters long." + }, + "poolLifetimeOption": { + "type": "string", + "title": "The minimum lifetime of created auto Pools, and how multiple Jobs on a schedule are assigned to Pools.", + "enum": [ + "jobschedule", + "job" + ], + "x-ms-enum": { + "name": "PoolLifetimeOption", + "modelAsString": false, + "values": [ + { + "value": "jobschedule", + "description": "The Pool exists for the lifetime of the Job Schedule. The Batch Service creates the Pool when it creates the first Job on the schedule. You may apply this option only to Job Schedules, not to Jobs.", + "name": "jobSchedule" + }, + { + "value": "job", + "description": "The Pool exists for the lifetime of the Job to which it is dedicated. The Batch service creates the Pool when it creates the Job. If the 'job' option is applied to a Job Schedule, the Batch service creates a new auto Pool for every Job created on the schedule." + } + ] + } + }, + "keepAlive": { + "type": "boolean", + "title": "Whether to keep an auto Pool alive after its lifetime expires.", + "description": "If false, the Batch service deletes the Pool once its lifetime (as determined by the poolLifetimeOption setting) expires; that is, when the Job or Job Schedule completes. If true, the Batch service does not delete the Pool automatically. It is up to the user to delete auto Pools created with this option." + }, + "pool": { + "$ref": "#/definitions/PoolSpecification", + "title": "The Pool specification for the auto Pool." + } + }, + "required": [ + "poolLifetimeOption" + ], + "title": "Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto Pool when the Job is submitted." + }, + "PoolInformation": { + "properties": { + "poolId": { + "type": "string", + "title": "The ID of an existing Pool. All the Tasks of the Job will run on the specified Pool.", + "description": "You must ensure that the Pool referenced by this property exists. If the Pool does not exist at the time the Batch service tries to schedule a Job, no Tasks for the Job will run until you create a Pool with that id. Note that the Batch service will not reject the Job request; it will simply not run Tasks until the Pool exists. You must specify either the Pool ID or the auto Pool specification, but not both." + }, + "autoPoolSpecification": { + "$ref": "#/definitions/AutoPoolSpecification", + "title": "Characteristics for a temporary 'auto pool'. The Batch service will create this auto Pool when the Job is submitted.", + "description": "If auto Pool creation fails, the Batch service moves the Job to a completed state, and the Pool creation error is set in the Job's scheduling error property. The Batch service manages the lifetime (both creation and, unless keepAlive is specified, deletion) of the auto Pool. Any user actions that affect the lifetime of the auto Pool while the Job is active will result in unexpected behavior. You must specify either the Pool ID or the auto Pool specification, but not both." + } + }, + "title": "Specifies how a Job should be assigned to a Pool." + }, + "JobSpecification": { + "properties": { + "priority": { + "type": "integer", + "format": "int32", + "title": "The priority of Jobs created under this schedule.", + "description": "Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. This priority is used as the default for all Jobs under the Job Schedule. You can update a Job's priority after it has been created using by using the update Job API." + }, + "displayName": { + "type": "string", + "title": "The display name for Jobs created under this schedule.", + "description": "The name need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "usesTaskDependencies": { + "type": "boolean", + "title": "Whether Tasks in the Job can define dependencies on each other. The default is false." + }, + "onAllTasksComplete": { + "title": "The action the Batch service should take when all Tasks in a Job created under this schedule are in the completed state.", + "description": "Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default is noaction.", + "$ref": "#/definitions/OnAllTasksComplete" + }, + "onTaskFailure": { + "title": "The action the Batch service should take when any Task fails in a Job created under this schedule. A Task is considered to have failed if it have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error.", + "description": "The default is noaction.", + "$ref": "#/definitions/OnTaskFailure" + }, + "networkConfiguration": { + "$ref": "#/definitions/JobNetworkConfiguration", + "title": "The network configuration for the Job." + }, + "constraints": { + "$ref": "#/definitions/JobConstraints", + "title": "The execution constraints for Jobs created under this schedule." + }, + "jobManagerTask": { + "$ref": "#/definitions/JobManagerTask", + "title": "The details of a Job Manager Task to be launched when a Job is started under this schedule.", + "description": "If the Job does not specify a Job Manager Task, the user must explicitly add Tasks to the Job using the Task API. If the Job does specify a Job Manager Task, the Batch service creates the Job Manager Task when the Job is created, and will try to schedule the Job Manager Task before scheduling other Tasks in the Job." + }, + "jobPreparationTask": { + "$ref": "#/definitions/JobPreparationTask", + "title": "The Job Preparation Task for Jobs created under this schedule.", + "description": "If a Job has a Job Preparation Task, the Batch service will run the Job Preparation Task on a Node before starting any Tasks of that Job on that Compute Node." + }, + "jobReleaseTask": { + "$ref": "#/definitions/JobReleaseTask", + "title": "The Job Release Task for Jobs created under this schedule.", + "description": "The primary purpose of the Job Release Task is to undo changes to Nodes made by the Job Preparation Task. Example activities include deleting local files, or shutting down services that were started as part of Job preparation. A Job Release Task cannot be specified without also specifying a Job Preparation Task for the Job. The Batch service runs the Job Release Task on the Compute Nodes that have run the Job Preparation Task." + }, + "commonEnvironmentSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "title": "A list of common environment variable settings. These environment variables are set for all Tasks in Jobs created under this schedule (including the Job Manager, Job Preparation and Job Release Tasks).", + "description": "Individual Tasks can override an environment setting specified here by specifying the same setting name with a different value." + }, + "poolInfo": { + "$ref": "#/definitions/PoolInformation", + "title": "The Pool on which the Batch service runs the Tasks of Jobs created under this schedule." + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "title": "A list of name-value pairs associated with each Job created under this schedule as metadata.", + "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." + } + }, + "required": [ + "poolInfo" + ], + "title": "Specifies details of the Jobs to be created on a schedule." + }, + "RecentJob": { + "properties": { + "id": { + "type": "string", + "title": "The ID of the Job." + }, + "url": { + "type": "string", + "title": "The URL of the Job." + } + }, + "title": "Information about the most recent Job to run under the Job Schedule." + }, + "JobScheduleExecutionInformation": { + "properties": { + "nextRunTime": { + "type": "string", + "format": "date-time", + "title": "The next time at which a Job will be created under this schedule.", + "description": "This property is meaningful only if the schedule is in the active state when the time comes around. For example, if the schedule is disabled, no Job will be created at nextRunTime unless the Job is enabled before then." + }, + "recentJob": { + "$ref": "#/definitions/RecentJob", + "title": "Information about the most recent Job under the Job Schedule.", + "description": "This property is present only if the at least one Job has run under the schedule." + }, + "endTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the schedule ended.", + "description": "This property is set only if the Job Schedule is in the completed state." + } + }, + "title": "Contains information about Jobs that have been and will be run under a Job Schedule." + }, + "JobScheduleStatistics": { + "properties": { + "url": { + "type": "string", + "title": "The URL of the statistics." + }, + "startTime": { + "type": "string", + "format": "date-time", + "title": "The start time of the time range covered by the statistics." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime." + }, + "userCPUTime": { + "type": "string", + "format": "duration", + "title": "The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in all Jobs created under the schedule." + }, + "kernelCPUTime": { + "type": "string", + "format": "duration", + "title": "The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in all Jobs created under the schedule." + }, + "wallClockTime": { + "type": "string", + "format": "duration", + "title": "The total wall clock time of all the Tasks in all the Jobs created under the schedule.", + "description": "The wall clock time is the elapsed time from when the Task started running on a Compute Node to when it finished (or to the last time the statistics were updated, if the Task had not finished by then). If a Task was retried, this includes the wall clock time of all the Task retries." + }, + "readIOps": { + "type": "integer", + "format": "int64", + "title": "The total number of disk read operations made by all Tasks in all Jobs created under the schedule." + }, + "writeIOps": { + "type": "integer", + "format": "int64", + "title": "The total number of disk write operations made by all Tasks in all Jobs created under the schedule." + }, + "readIOGiB": { + "type": "number", + "format": "double", + "title": "The total gibibytes read from disk by all Tasks in all Jobs created under the schedule." + }, + "writeIOGiB": { + "type": "number", + "format": "double", + "title": "The total gibibytes written to disk by all Tasks in all Jobs created under the schedule." + }, + "numSucceededTasks": { + "type": "integer", + "format": "int64", + "title": "The total number of Tasks successfully completed during the given time range in Jobs created under the schedule. A Task completes successfully if it returns exit code 0." + }, + "numFailedTasks": { + "type": "integer", + "format": "int64", + "title": "The total number of Tasks that failed during the given time range in Jobs created under the schedule. A Task fails if it exhausts its maximum retry count without returning exit code 0." + }, + "numTaskRetries": { + "type": "integer", + "format": "int64", + "title": "The total number of retries during the given time range on all Tasks in all Jobs created under the schedule." + }, + "waitTime": { + "type": "string", + "format": "duration", + "title": "The total wait time of all Tasks in all Jobs created under the schedule. The wait time for a Task is defined as the elapsed time between the creation of the Task and the start of Task execution. (If the Task is retried due to failures, the wait time is the time to the most recent Task execution.)", + "description": "This value is only reported in the Account lifetime statistics; it is not included in the Job statistics." + } + }, + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "numSucceededTasks", + "numFailedTasks", + "numTaskRetries", + "waitTime" + ], + "title": "Resource usage statistics for a Job Schedule." + }, + "CloudJobSchedule": { + "properties": { + "id": { + "type": "string", + "title": "A string that uniquely identifies the schedule within the Account." + }, + "displayName": { + "type": "string", + "title": "The display name for the schedule." + }, + "url": { + "type": "string", + "title": "The URL of the Job Schedule." + }, + "eTag": { + "type": "string", + "title": "The ETag of the Job Schedule.", + "description": "This is an opaque string. You can use it to detect whether the Job Schedule has changed between requests. In particular, you can be pass the ETag with an Update Job Schedule request to specify that your changes should take effect only if nobody else has modified the schedule in the meantime." + }, + "lastModified": { + "type": "string", + "format": "date-time", + "title": "The last modified time of the Job Schedule.", + "description": "This is the last time at which the schedule level data, such as the Job specification or recurrence information, changed. It does not factor in job-level changes such as new Jobs being created or Jobs changing state." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "title": "The creation time of the Job Schedule." + }, + "state": { + "title": "The current state of the Job Schedule.", + "$ref": "#/definitions/JobScheduleState" + }, + "stateTransitionTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Job Schedule entered the current state." + }, + "previousState": { + "title": "The previous state of the Job Schedule.", + "description": "This property is not present if the Job Schedule is in its initial active state.", + "$ref": "#/definitions/JobScheduleState" + }, + "previousStateTransitionTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Job Schedule entered its previous state.", + "description": "This property is not present if the Job Schedule is in its initial active state." + }, + "schedule": { + "$ref": "#/definitions/Schedule", + "title": "The schedule according to which Jobs will be created." + }, + "jobSpecification": { + "$ref": "#/definitions/JobSpecification", + "title": "The details of the Jobs to be created on this schedule." + }, + "executionInfo": { + "$ref": "#/definitions/JobScheduleExecutionInformation", + "title": "Information about Jobs that have been and will be run under this schedule." + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "title": "A list of name-value pairs associated with the schedule as metadata.", + "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." + }, + "stats": { + "$ref": "#/definitions/JobScheduleStatistics", + "title": "The lifetime resource usage statistics for the Job Schedule. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes." + } + }, + "title": "A Job Schedule that allows recurring Jobs by specifying when to run Jobs and a specification used to create each Job." + }, + "JobScheduleAddParameter": { + "properties": { + "id": { + "type": "string", + "title": "A string that uniquely identifies the schedule within the Account.", + "description": "The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case)." + }, + "displayName": { + "type": "string", + "title": "The display name for the schedule.", + "description": "The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "schedule": { + "$ref": "#/definitions/Schedule", + "title": "The schedule according to which Jobs will be created." + }, + "jobSpecification": { + "$ref": "#/definitions/JobSpecification", + "title": "The details of the Jobs to be created on this schedule." + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "title": "A list of name-value pairs associated with the schedule as metadata.", + "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." + } + }, + "required": [ + "id", + "schedule", + "jobSpecification" + ], + "title": "A Job Schedule that allows recurring Jobs by specifying when to run Jobs and a specification used to create each Job." + }, + "CloudJobScheduleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudJobSchedule" + }, + "title": "The list of Job Schedules." + }, + "odata.nextLink": { + "type": "string", + "title": "The URL to get the next set of results." + } + }, + "title": "The result of listing the Job Schedules in an Account." + }, + "JobSchedulingError": { + "properties": { + "category": { + "title": "The category of the Job scheduling error.", + "$ref": "#/definitions/ErrorCategory" + }, + "code": { + "type": "string", + "title": "An identifier for the Job scheduling error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "title": "A message describing the Job scheduling error, intended to be suitable for display in a user interface." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/NameValuePair" + }, + "title": "A list of additional error details related to the scheduling error." + } + }, + "required": [ + "category" + ], + "title": "An error encountered by the Batch service when scheduling a Job." + }, + "JobExecutionInformation": { + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "title": "The start time of the Job.", + "description": "This is the time at which the Job was created." + }, + "endTime": { + "type": "string", + "format": "date-time", + "title": "The completion time of the Job.", + "description": "This property is set only if the Job is in the completed state." + }, + "poolId": { + "type": "string", + "title": "The ID of the Pool to which this Job is assigned.", + "description": "This element contains the actual Pool where the Job is assigned. When you get Job details from the service, they also contain a poolInfo element, which contains the Pool configuration data from when the Job was added or updated. That poolInfo element may also contain a poolId element. If it does, the two IDs are the same. If it does not, it means the Job ran on an auto Pool, and this property contains the ID of that auto Pool." + }, + "schedulingError": { + "$ref": "#/definitions/JobSchedulingError", + "title": "Details of any error encountered by the service in starting the Job.", + "description": "This property is not set if there was no error starting the Job." + }, + "terminateReason": { + "type": "string", + "title": "A string describing the reason the Job ended.", + "description": "This property is set only if the Job is in the completed state. If the Batch service terminates the Job, it sets the reason as follows: JMComplete - the Job Manager Task completed, and killJobOnCompletion was set to true. MaxWallClockTimeExpiry - the Job reached its maxWallClockTime constraint. TerminateJobSchedule - the Job ran as part of a schedule, and the schedule terminated. AllTasksComplete - the Job's onAllTasksComplete attribute is set to terminatejob, and all Tasks in the Job are complete. TaskFailed - the Job's onTaskFailure attribute is set to performExitOptionsJobAction, and a Task in the Job failed with an exit condition that specified a jobAction of terminatejob. Any other string is a user-defined reason specified in a call to the 'Terminate a Job' operation." + } + }, + "required": [ + "startTime" + ], + "title": "Contains information about the execution of a Job in the Azure Batch service." + }, + "CloudJob": { + "properties": { + "id": { + "type": "string", + "title": "A string that uniquely identifies the Job within the Account.", + "description": "The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case)." + }, + "displayName": { + "type": "string", + "title": "The display name for the Job." + }, + "usesTaskDependencies": { + "type": "boolean", + "title": "Whether Tasks in the Job can define dependencies on each other. The default is false." + }, + "url": { + "type": "string", + "title": "The URL of the Job." + }, + "eTag": { + "type": "string", + "title": "The ETag of the Job.", + "description": "This is an opaque string. You can use it to detect whether the Job has changed between requests. In particular, you can be pass the ETag when updating a Job to specify that your changes should take effect only if nobody else has modified the Job in the meantime." + }, + "lastModified": { + "type": "string", + "format": "date-time", + "title": "The last modified time of the Job.", + "description": "This is the last time at which the Job level data, such as the Job state or priority, changed. It does not factor in task-level changes such as adding new Tasks or Tasks changing state." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "title": "The creation time of the Job." + }, + "state": { + "title": "The current state of the Job.", + "$ref": "#/definitions/JobState" + }, + "stateTransitionTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Job entered its current state." + }, + "previousState": { + "title": "The previous state of the Job.", + "description": "This property is not set if the Job is in its initial Active state.", + "$ref": "#/definitions/JobState" + }, + "previousStateTransitionTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Job entered its previous state.", + "description": "This property is not set if the Job is in its initial Active state." + }, + "priority": { + "type": "integer", + "format": "int32", + "title": "The priority of the Job.", + "description": "Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0." + }, + "constraints": { + "$ref": "#/definitions/JobConstraints", + "title": "The execution constraints for the Job." + }, + "jobManagerTask": { + "$ref": "#/definitions/JobManagerTask", + "title": "Details of a Job Manager Task to be launched when the Job is started." + }, + "jobPreparationTask": { + "$ref": "#/definitions/JobPreparationTask", + "title": "The Job Preparation Task.", + "description": "The Job Preparation Task is a special Task run on each Compute Node before any other Task of the Job." + }, + "jobReleaseTask": { + "$ref": "#/definitions/JobReleaseTask", + "title": "The Job Release Task.", + "description": "The Job Release Task is a special Task run at the end of the Job on each Compute Node that has run any other Task of the Job." + }, + "commonEnvironmentSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "title": "The list of common environment variable settings. These environment variables are set for all Tasks in the Job (including the Job Manager, Job Preparation and Job Release Tasks).", + "description": "Individual Tasks can override an environment setting specified here by specifying the same setting name with a different value." + }, + "poolInfo": { + "$ref": "#/definitions/PoolInformation", + "title": "The Pool settings associated with the Job." + }, + "onAllTasksComplete": { + "title": "The action the Batch service should take when all Tasks in the Job are in the completed state.", + "description": "The default is noaction.", + "$ref": "#/definitions/OnAllTasksComplete" + }, + "onTaskFailure": { + "title": "The action the Batch service should take when any Task in the Job fails.", + "description": "A Task is considered to have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction.", + "$ref": "#/definitions/OnTaskFailure" + }, + "networkConfiguration": { + "$ref": "#/definitions/JobNetworkConfiguration", + "title": "The network configuration for the Job." + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "title": "A list of name-value pairs associated with the Job as metadata.", + "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." + }, + "executionInfo": { + "$ref": "#/definitions/JobExecutionInformation", + "title": "The execution information for the Job." + }, + "stats": { + "$ref": "#/definitions/JobStatistics", + "title": "Resource usage statistics for the entire lifetime of the Job.", + "description": "This property is populated only if the CloudJob was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes." + } + }, + "title": "An Azure Batch Job." + }, + "JobAddParameter": { + "properties": { + "id": { + "type": "string", + "title": "A string that uniquely identifies the Job within the Account.", + "description": "The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case)." + }, + "displayName": { + "type": "string", + "title": "The display name for the Job.", + "description": "The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "priority": { + "type": "integer", + "format": "int32", + "title": "The priority of the Job.", + "description": "Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0." + }, + "constraints": { + "$ref": "#/definitions/JobConstraints", + "description": "The execution constraints for the Job." + }, + "jobManagerTask": { + "$ref": "#/definitions/JobManagerTask", + "title": "Details of a Job Manager Task to be launched when the Job is started.", + "description": "If the Job does not specify a Job Manager Task, the user must explicitly add Tasks to the Job. If the Job does specify a Job Manager Task, the Batch service creates the Job Manager Task when the Job is created, and will try to schedule the Job Manager Task before scheduling other Tasks in the Job. The Job Manager Task's typical purpose is to control and/or monitor Job execution, for example by deciding what additional Tasks to run, determining when the work is complete, etc. (However, a Job Manager Task is not restricted to these activities - it is a fully-fledged Task in the system and perform whatever actions are required for the Job.) For example, a Job Manager Task might download a file specified as a parameter, analyze the contents of that file and submit additional Tasks based on those contents." + }, + "jobPreparationTask": { + "$ref": "#/definitions/JobPreparationTask", + "title": "The Job Preparation Task.", + "description": "If a Job has a Job Preparation Task, the Batch service will run the Job Preparation Task on a Node before starting any Tasks of that Job on that Compute Node." + }, + "jobReleaseTask": { + "$ref": "#/definitions/JobReleaseTask", + "title": "The Job Release Task.", + "description": "A Job Release Task cannot be specified without also specifying a Job Preparation Task for the Job. The Batch service runs the Job Release Task on the Nodes that have run the Job Preparation Task. The primary purpose of the Job Release Task is to undo changes to Compute Nodes made by the Job Preparation Task. Example activities include deleting local files, or shutting down services that were started as part of Job preparation." + }, + "commonEnvironmentSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "title": "The list of common environment variable settings. These environment variables are set for all Tasks in the Job (including the Job Manager, Job Preparation and Job Release Tasks).", + "description": "Individual Tasks can override an environment setting specified here by specifying the same setting name with a different value." + }, + "poolInfo": { + "$ref": "#/definitions/PoolInformation", + "title": "The Pool on which the Batch service runs the Job's Tasks." + }, + "onAllTasksComplete": { + "title": "The action the Batch service should take when all Tasks in the Job are in the completed state.", + "description": "Note that if a Job contains no Tasks, then all Tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic Job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the Job properties to set onAllTasksComplete to terminatejob once you have finished adding Tasks. The default is noaction.", + "$ref": "#/definitions/OnAllTasksComplete" + }, + "onTaskFailure": { + "title": "The action the Batch service should take when any Task in the Job fails.", + "description": "A Task is considered to have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction.", + "$ref": "#/definitions/OnTaskFailure" + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "title": "A list of name-value pairs associated with the Job as metadata.", + "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code." + }, + "usesTaskDependencies": { + "type": "boolean", + "title": "Whether Tasks in the Job can define dependencies on each other. The default is false." + }, + "networkConfiguration": { + "$ref": "#/definitions/JobNetworkConfiguration", + "title": "The network configuration for the Job." + } + }, + "required": [ + "id", + "poolInfo" + ], + "title": "An Azure Batch Job to add." + }, + "CloudJobListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudJob" + }, + "title": "The list of Jobs." + }, + "odata.nextLink": { + "type": "string", + "title": "The URL to get the next set of results." + } + }, + "title": "The result of listing the Jobs in an Account." + }, + "TaskContainerExecutionInformation": { + "properties": { + "containerId": { + "type": "string", + "title": "The ID of the container." + }, + "state": { + "type": "string", + "title": "The state of the container.", + "description": "This is the state of the container according to the Docker service. It is equivalent to the status field returned by \"docker inspect\"." + }, + "error": { + "type": "string", + "title": "Detailed error information about the container.", + "description": "This is the detailed error string from the Docker service, if available. It is equivalent to the error field returned by \"docker inspect\"." + } + }, + "title": "Contains information about the container which a Task is executing." + }, + "TaskFailureInformation": { + "properties": { + "category": { + "title": "The category of the Task error.", + "$ref": "#/definitions/ErrorCategory" + }, + "code": { + "type": "string", + "title": "An identifier for the Task error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "title": "A message describing the Task error, intended to be suitable for display in a user interface." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/NameValuePair" + }, + "title": "A list of additional details related to the error." + } + }, + "required": [ + "category" + ], + "title": "Information about a Task failure." + }, + "JobPreparationTaskExecutionInformation": { + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Task started running.", + "description": "If the Task has been restarted or retried, this is the most recent time at which the Task started running." + }, + "endTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Job Preparation Task completed.", + "description": "This property is set only if the Task is in the Completed state." + }, + "state": { + "type": "string", + "title": "The current state of the Job Preparation Task on the Compute Node.", + "enum": [ + "running", + "completed" + ], + "x-ms-enum": { + "name": "JobPreparationTaskState", + "modelAsString": false, + "values": [ + { + "value": "running", + "description": "The Task is currently running (including retrying)." + }, + { + "value": "completed", + "description": "The Task has exited with exit code 0, or the Task has exhausted its retry limit, or the Batch service was unable to start the Task due to Task preparation errors (such as resource file download failures)." + } + ] + } + }, + "taskRootDirectory": { + "type": "string", + "title": "The root directory of the Job Preparation Task on the Compute Node. You can use this path to retrieve files created by the Task, such as log files." + }, + "taskRootDirectoryUrl": { + "type": "string", + "title": "The URL to the root directory of the Job Preparation Task on the Compute Node." + }, + "exitCode": { + "type": "integer", + "format": "int32", + "title": "The exit code of the program specified on the Task command line.", + "description": "This parameter is returned only if the Task is in the completed state. The exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. Note that the exit code may also be generated by the Compute Node operating system, such as when a process is forcibly terminated." + }, + "containerInfo": { + "$ref": "#/definitions/TaskContainerExecutionInformation", + "title": "Information about the container under which the Task is executing.", + "description": "This property is set only if the Task runs in a container context." + }, + "failureInfo": { + "$ref": "#/definitions/TaskFailureInformation", + "title": "Information describing the Task failure, if any.", + "description": "This property is set only if the Task is in the completed state and encountered a failure." + }, + "retryCount": { + "type": "integer", + "format": "int32", + "title": "The number of times the Task has been retried by the Batch service. Task application failures (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file upload errors are not retried. The Batch service will retry the Task up to the limit specified by the constraints.", + "description": "Task application failures (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file upload errors are not retried. The Batch service will retry the Task up to the limit specified by the constraints." + }, + "lastRetryTime": { + "type": "string", + "format": "date-time", + "title": "The most recent time at which a retry of the Job Preparation Task started running.", + "description": "This property is set only if the Task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the Task has been restarted for reasons other than retry; for example, if the Compute Node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not." + }, + "result": { + "$ref": "#/definitions/TaskExecutionResult", + "title": "The result of the Task execution.", + "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." + } + }, + "required": [ + "startTime", + "retryCount", + "state" + ], + "title": "Contains information about the execution of a Job Preparation Task on a Compute Node." + }, + "JobReleaseTaskExecutionInformation": { + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Task started running.", + "description": "If the Task has been restarted or retried, this is the most recent time at which the Task started running." + }, + "endTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Job Release Task completed.", + "description": "This property is set only if the Task is in the Completed state." + }, + "state": { + "type": "string", + "title": "The current state of the Job Release Task on the Compute Node.", + "enum": [ + "running", + "completed" + ], + "x-ms-enum": { + "name": "JobReleaseTaskState", + "modelAsString": false, + "values": [ + { + "value": "running", + "description": "The Task is currently running (including retrying)." + }, + { + "value": "completed", + "description": "The Task has exited with exit code 0, or the Task has exhausted its retry limit, or the Batch service was unable to start the Task due to Task preparation errors (such as resource file download failures)." + } + ] + } + }, + "taskRootDirectory": { + "type": "string", + "title": "The root directory of the Job Release Task on the Compute Node. You can use this path to retrieve files created by the Task, such as log files." + }, + "taskRootDirectoryUrl": { + "type": "string", + "title": "The URL to the root directory of the Job Release Task on the Compute Node." + }, + "exitCode": { + "type": "integer", + "format": "int32", + "title": "The exit code of the program specified on the Task command line.", + "description": "This parameter is returned only if the Task is in the completed state. The exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. Note that the exit code may also be generated by the Compute Node operating system, such as when a process is forcibly terminated." + }, + "containerInfo": { + "$ref": "#/definitions/TaskContainerExecutionInformation", + "title": "Information about the container under which the Task is executing.", + "description": "This property is set only if the Task runs in a container context." + }, + "failureInfo": { + "$ref": "#/definitions/TaskFailureInformation", + "title": "Information describing the Task failure, if any.", + "description": "This property is set only if the Task is in the completed state and encountered a failure." + }, + "result": { + "$ref": "#/definitions/TaskExecutionResult", + "title": "The result of the Task execution.", + "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." + } + }, + "required": [ + "startTime", + "state" + ], + "title": "Contains information about the execution of a Job Release Task on a Compute Node." + }, + "JobPreparationAndReleaseTaskExecutionInformation": { + "properties": { + "poolId": { + "type": "string", + "title": "The ID of the Pool containing the Compute Node to which this entry refers." + }, + "nodeId": { + "type": "string", + "title": "The ID of the Compute Node to which this entry refers." + }, + "nodeUrl": { + "type": "string", + "title": "The URL of the Compute Node to which this entry refers." + }, + "jobPreparationTaskExecutionInfo": { + "$ref": "#/definitions/JobPreparationTaskExecutionInformation", + "title": "Information about the execution status of the Job Preparation Task on this Compute Node." + }, + "jobReleaseTaskExecutionInfo": { + "$ref": "#/definitions/JobReleaseTaskExecutionInformation", + "title": "Information about the execution status of the Job Release Task on this Compute Node.", + "description": "This property is set only if the Job Release Task has run on the Compute Node." + } + }, + "title": "The status of the Job Preparation and Job Release Tasks on a Compute Node." + }, + "CloudJobListPreparationAndReleaseTaskStatusResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JobPreparationAndReleaseTaskExecutionInformation" + }, + "title": "A list of Job Preparation and Job Release Task execution information." + }, + "odata.nextLink": { + "type": "string", + "title": "The URL to get the next set of results." + } + }, + "title": "The result of listing the status of the Job Preparation and Job Release Tasks for a Job." + }, + "TaskCounts": { + "properties": { + "active": { + "type": "integer", + "format": "int32", + "title": "The number of Tasks in the active state." + }, + "running": { + "type": "integer", + "format": "int32", + "title": "The number of Tasks in the running or preparing state." + }, + "completed": { + "type": "integer", + "format": "int32", + "title": "The number of Tasks in the completed state." + }, + "succeeded": { + "type": "integer", + "format": "int32", + "title": "The number of Tasks which succeeded. A Task succeeds if its result (found in the executionInfo property) is 'success'." + }, + "failed": { + "type": "integer", + "format": "int32", + "title": "The number of Tasks which failed. A Task fails if its result (found in the executionInfo property) is 'failure'." + } + }, + "required": [ + "active", + "running", + "completed", + "succeeded", + "failed" + ], + "title": "The Task counts for a Job." + }, + "AutoScaleRunError": { + "properties": { + "code": { + "type": "string", + "title": "An identifier for the autoscale error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "title": "A message describing the autoscale error, intended to be suitable for display in a user interface." + }, + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/NameValuePair" + }, + "title": "A list of additional error details related to the autoscale error." + } + }, + "title": "An error that occurred when executing or evaluating a Pool autoscale formula." + }, + "AutoScaleRun": { + "properties": { + "timestamp": { + "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": [ + "timestamp" + ], + "title": "The results and errors from an execution of a Pool autoscale formula." + }, + "ResizeError": { + "properties": { + "code": { + "type": "string", + "title": "An identifier for the Pool resize error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "title": "A message describing the Pool resize error, intended to be suitable for display in a user interface." + }, + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/NameValuePair" + }, + "title": "A list of additional error details related to the Pool resize error." + } + }, + "title": "An error that occurred when resizing 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:\n2 - OS Family 2, equivalent to Windows Server 2008 R2 SP1.\n3 - OS Family 3, equivalent to Windows Server 2012.\n4 - OS Family 4, equivalent to Windows Server 2012 R2.\n5 - OS Family 5, equivalent to Windows Server 2016.\n6 - 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 Compute Nodes in a Pool based on the Azure Cloud Services platform." + }, + "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'." + }, + "virtualMachineImageId": { + "type": "string", + "title": "The ARM resource identifier of the Virtual Machine Image or Shared Image Gallery Image. Computes Compute Nodes of the Pool will be created using this Image Id. This is of either the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName} for Virtual Machine Image or /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId} for SIG image.", + "description": "This property is mutually exclusive with other ImageReference properties. For Virtual Machine Image it must be in the same region and subscription as the Azure Batch account. For SIG image it must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch Compute 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 a custom Azure Virtual Machine Image. To get the list of all Azure Marketplace Image references verified by Azure Batch, see the 'List supported Images' operation." + }, + "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." + }, + "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": "The default value for caching is readwrite. 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 gigabytes." + }, + "storageAccountType": { + "title": "The storage Account type to be used for the data disk.", + "description": "If omitted, the default is \"standard_lrs\".", + "$ref": "#/definitions/StorageAccountType" + } + }, + "required": [ + "lun", + "diskSizeGB" + ], + "title": "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." + }, + "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.", + "name": "StandardLRS" + }, + { + "value": "premium_lrs", + "description": "The data disk should use premium locally redundant storage.", + "name": "PremiumLRS" + } + ] + } + }, + "CachingType": { + "type": "string", + "title": "The type of caching to enable for the disk.", + "description": "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/.", + "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.", + "name": "readOnly" + }, + { + "value": "readwrite", + "description": "The caching mode for the disk is read and write.", + "name": "readWrite" + } + ] + } + }, + "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 Compute Node agent to be provisioned on Compute Nodes in the Pool.", + "description": "The Batch Compute Node agent is a program that runs on each Compute Node in the Pool, and provides the command-and-control interface between the Compute Node and the Batch service. There are different implementations of the Compute Node agent, known as SKUs, for different operating systems. You must specify a Compute Node agent SKU which matches the selected Image reference. To get the list of supported Compute Node agent SKUs along with their list of verified Image references, see the 'List supported Compute 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 property 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. This cannot be updated. Each Compute Node gets its own disk (the disk is not a file share). Existing disks cannot be attached, each attached disk is empty. When the Compute Node is removed from the Pool, the disk and all data associated with it is also deleted. The disk is not formatted after being attached, it must be formatted before use - for more information see https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux and https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine." + }, + "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 Compute 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 Compute 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." + } + }, + "required": [ + "nodeAgentSKUId", + "imageReference" + ], + "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." + }, + "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." + }, + "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 Compute Nodes in the Pool. If the subnet doesn't have enough free IP addresses, the Pool will partially allocate 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 Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. For Pools created with virtualMachineConfiguration only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported, but for Pools created with cloudServiceConfiguration both ARM and classic virtual networks are supported. 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 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" + } + }, + "dynamicVNetAssignmentScope": { + "type": "string", + "title": "The scope of dynamic vnet assignment.", + "enum": [ + "none", + "job" + ], + "x-ms-enum": { + "name": "DynamicVNetAssignmentScope", + "modelAsString": false, + "values": [ + { + "value": "none", + "description": "No dynamic VNet assignment is enabled." + }, + { + "value": "job", + "description": "Dynamic VNet assignment is done per-job." + } + ] + } + }, + "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." + }, + "publicIPs": { + "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 network configuration for a Pool." + }, + "CloudPool": { + "properties": { + "id": { + "type": "string", + "title": "A string that uniquely identifies the Pool within the Account.", + "description": "The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case)." + }, + "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." + }, + "url": { + "type": "string", + "title": "The URL of the Pool." + }, + "eTag": { + "type": "string", + "title": "The ETag of the Pool.", + "description": "This is an opaque string. You can use it to detect whether the Pool has changed between requests. In particular, you can be pass the ETag when updating a Pool to specify that your changes should take effect only if nobody else has modified the Pool in the meantime." + }, + "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 enableAutoscale settings, changed. It does not factor in node-level changes such as a Compute Node changing state." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "title": "The creation time of the Pool." + }, + "state": { + "type": "string", + "title": "The current state of the Pool.", + "enum": [ + "active", + "deleting" + ], + "x-ms-enum": { + "name": "PoolState", + "modelAsString": false, + "values": [ + { + "value": "active", + "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." + } + ] + } + }, + "stateTransitionTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Pool entered its current state." + }, + "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 Compute 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 Compute 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." + } + ] + } + }, + "allocationStateTransitionTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Pool entered its current allocation state." + }, + "vmSize": { + "type": "string", + "title": "The size of virtual machines in the Pool. All virtual machines in a Pool are the same size.", + "description": "For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes)." + }, + "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." + }, + "resizeTimeout": { + "type": "string", + "format": "duration", + "title": "The timeout for allocation of Compute Nodes to the Pool.", + "description": "This is the timeout for the most recent resize operation. (The initial sizing when the Pool is created counts as a resize.) The default value is 15 minutes." + }, + "resizeErrors": { + "type": "array", + "items": { + "$ref": "#/definitions/ResizeError" + }, + "title": "A list of errors encountered while performing the last resize on the Pool.", + "description": "This property is set only if one or more errors occurred during the last Pool resize, and only when the Pool allocationState is Steady." + }, + "currentDedicatedNodes": { + "type": "integer", + "format": "int32", + "title": "The number of dedicated Compute Nodes currently in the Pool." + }, + "currentLowPriorityNodes": { + "type": "integer", + "format": "int32", + "title": "The number of low-priority Compute Nodes currently in the Pool.", + "description": "Low-priority Compute Nodes which have been preempted are included in this count." + }, + "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." + }, + "enableAutoScale": { + "type": "boolean", + "title": "Whether the Pool size should automatically adjust over time.", + "description": "If false, at least one of targetDedicateNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula property is required and the Pool automatically resizes according to the formula. The default value is false." + }, + "autoScaleFormula": { + "type": "string", + "title": "A formula for the desired number of Compute Nodes in the Pool.", + "description": "This property is set only if the Pool automatically scales, i.e. enableAutoScale is true." + }, + "autoScaleEvaluationInterval": { + "type": "string", + "format": "duration", + "title": "The time interval at which to automatically adjust the Pool size according to the autoscale formula.", + "description": "This property is set only if the Pool automatically scales, i.e. enableAutoScale is true." + }, + "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. enableAutoScale is true." + }, + "enableInterNodeCommunication": { + "type": "boolean", + "title": "Whether the Pool permits direct communication between Compute Nodes.", + "description": "This imposes restrictions on which Compute Nodes can be assigned to the Pool. Specifying this value can reduce the chance of the requested number of Compute Nodes to be allocated in the Pool." + }, + "networkConfiguration": { + "$ref": "#/definitions/NetworkConfiguration", + "title": "The network configuration for the Pool." + }, + "startTask": { + "$ref": "#/definitions/StartTask", + "title": "A Task specified to run on each Compute Node as it joins the Pool." + }, + "certificateReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/CertificateReference" + }, + "title": "The list of Certificates to be installed on each Compute Node in the Pool.", + "description": "For Windows 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." + }, + "applicationPackageReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPackageReference" + }, + "title": "The list of Packages to be installed on each Compute Node in the Pool.", + "description": "Changes to Package references affect all new 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 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." + }, + "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 Compute Node in the Pool." + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "title": "A list of name-value pairs associated with the Pool as metadata." + }, + "stats": { + "$ref": "#/definitions/PoolStatistics", + "title": "Utilization and resource usage statistics for the entire lifetime of the Pool.", + "description": "This property is populated only if the CloudPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes." + }, + "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." + } + }, + "title": "A Pool in the Azure Batch service." + }, + "PoolAddParameter": { + "properties": { + "id": { + "type": "string", + "title": "A string that uniquely identifies the Pool within the Account.", + "description": "The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two Pool IDs within an Account that differ only by case)." + }, + "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." + }, + "vmSize": { + "type": "string", + "title": "The size of virtual machines in the Pool. All virtual machines 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, A1V2 and A2V2. 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)." + }, + "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." + }, + "resizeTimeout": { + "type": "string", + "format": "duration", + "title": "The timeout for allocation of Compute Nodes to the Pool.", + "description": "This timeout applies only to manual scaling; it has no effect when enableAutoScale is set to true. 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)." + }, + "targetDedicatedNodes": { + "type": "integer", + "format": "int32", + "title": "The desired number of dedicated Compute Nodes in the Pool.", + "description": "This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both." + }, + "targetLowPriorityNodes": { + "type": "integer", + "format": "int32", + "title": "The desired number of low-priority Compute Nodes in the Pool.", + "description": "This property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both." + }, + "enableAutoScale": { + "type": "boolean", + "title": "Whether the Pool size should automatically adjust over time.", + "description": "If false, at least one of targetDedicateNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula property is required and the Pool automatically resizes according to the formula. The default value is false." + }, + "autoScaleFormula": { + "type": "string", + "title": "A formula for the desired number of Compute Nodes in the Pool.", + "description": "This property must not be specified if enableAutoScale is set to false. It is required if enableAutoScale is set to true. The formula is checked for validity before the Pool is created. If the formula is not valid, the Batch service rejects the request with detailed error information. For more information about specifying this formula, see 'Automatically scale Compute Nodes in an Azure Batch Pool' (https://azure.microsoft.com/documentation/articles/batch-automatic-scaling/)." + }, + "autoScaleEvaluationInterval": { + "type": "string", + "format": "duration", + "title": "The time interval at which to automatically adjust the Pool size according to the autoscale formula.", + "description": "The default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + }, + "enableInterNodeCommunication": { + "type": "boolean", + "title": "Whether the Pool permits direct communication between Compute Nodes.", + "description": "Enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is false." + }, + "networkConfiguration": { + "$ref": "#/definitions/NetworkConfiguration", + "title": "The network configuration for the Pool." + }, + "startTask": { + "$ref": "#/definitions/StartTask", + "title": "A Task specified to run on each Compute Node as it joins the Pool.", + "description": "The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted." + }, + "certificateReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/CertificateReference" + }, + "title": "The list of Certificates to be installed on each Compute Node in the Pool.", + "description": "For Windows 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." + }, + "applicationPackageReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPackageReference" + }, + "title": "The list of Packages to be installed on each Compute Node in the Pool.", + "description": "Changes to Package references affect all new 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 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." + }, + "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 Compute 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." + }, + "mountConfiguration": { + "type": "array", + "items": { + "$ref": "#/definitions/MountConfiguration" + }, + "title": "Mount storage using specified file system for the entire lifetime of the pool.", + "description": "Mount the storage using Azure fileshare, NFS, CIFS or Blobfuse based file system." + } + }, + "required": [ + "id", + "vmSize" + ], + "title": "A Pool in the Azure Batch service to add." + }, + "ApplicationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationSummary" + }, + "title": "The list of applications available in the Account." + }, + "odata.nextLink": { + "type": "string", + "title": "The URL to get the next set of results." + } + }, + "title": "The result of listing the applications available in an Account." + }, + "CloudPoolListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudPool" + }, + "title": "The list of Pools." + }, + "odata.nextLink": { + "type": "string", + "title": "The URL to get the next set of results." + } + }, + "title": "The result of listing the Pools in an Account." + }, + "AffinityInformation": { + "properties": { + "affinityId": { + "type": "string", + "title": "An opaque string representing the location of a Compute Node or a Task that has run previously.", + "description": "You can pass the affinityId of a Node to indicate that this Task needs to run on that Compute Node. Note that this is just a soft affinity. If the target Compute Node is busy or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere." + } + }, + "required": [ + "affinityId" + ], + "title": "A locality hint that can be used by the Batch service to select a Compute Node on which to start a Task." + }, + "TaskExecutionInformation": { + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Task started running.", + "description": "'Running' corresponds to the running state, so if the Task specifies resource files or Packages, then the start time reflects the time at which the Task started downloading or deploying these. If the Task has been restarted or retried, this is the most recent time at which the Task started running. This property is present only for Tasks that are in the running or completed state." + }, + "endTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Task completed.", + "description": "This property is set only if the Task is in the Completed state." + }, + "exitCode": { + "type": "integer", + "format": "int32", + "title": "The exit code of the program specified on the Task command line.", + "description": "This property is set only if the Task is in the completed state. In general, the exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. However, if the Batch service terminates the Task (due to timeout, or user termination via the API) you may see an operating system-defined exit code." + }, + "containerInfo": { + "$ref": "#/definitions/TaskContainerExecutionInformation", + "title": "Information about the container under which the Task is executing.", + "description": "This property is set only if the Task runs in a container context." + }, + "failureInfo": { + "$ref": "#/definitions/TaskFailureInformation", + "title": "Information describing the Task failure, if any.", + "description": "This property is set only if the Task is in the completed state and encountered a failure." + }, + "retryCount": { + "type": "integer", + "format": "int32", + "title": "The number of times the Task has been retried by the Batch service.", + "description": "Task application failures (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file upload errors are not retried. The Batch service will retry the Task up to the limit specified by the constraints." + }, + "lastRetryTime": { + "type": "string", + "format": "date-time", + "title": "The most recent time at which a retry of the Task started running.", + "description": "This element is present only if the Task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the Task has been restarted for reasons other than retry; for example, if the Compute Node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not." + }, + "requeueCount": { + "type": "integer", + "format": "int32", + "title": "The number of times the Task has been requeued by the Batch service as the result of a user request.", + "description": "When the user removes Compute Nodes from a Pool (by resizing/shrinking the pool) or when the Job is being disabled, the user can specify that running Tasks on the Compute Nodes be requeued for execution. This count tracks how many times the Task has been requeued for these reasons." + }, + "lastRequeueTime": { + "type": "string", + "format": "date-time", + "title": "The most recent time at which the Task has been requeued by the Batch service as the result of a user request.", + "description": "This property is set only if the requeueCount is nonzero." + }, + "result": { + "$ref": "#/definitions/TaskExecutionResult", + "title": "The result of the Task execution.", + "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." + } + }, + "required": [ + "requeueCount", + "retryCount" + ], + "title": "Information about the execution of a Task." + }, + "ComputeNodeInformation": { + "properties": { + "affinityId": { + "type": "string", + "title": "An identifier for the Node on which the Task ran, which can be passed when adding a Task to request that the Task be scheduled on this Compute Node." + }, + "nodeUrl": { + "type": "string", + "title": "The URL of the Compute Node on which the Task ran. " + }, + "poolId": { + "type": "string", + "title": "The ID of the Pool on which the Task ran." + }, + "nodeId": { + "type": "string", + "title": "The ID of the Compute Node on which the Task ran." + }, + "taskRootDirectory": { + "type": "string", + "title": "The root directory of the Task on the Compute Node." + }, + "taskRootDirectoryUrl": { + "type": "string", + "title": "The URL to the root directory of the Task on the Compute Node." + } + }, + "title": "Information about the Compute Node on which a Task ran." + }, + "NodeAgentInformation": { + "properties": { + "version": { + "type": "string", + "title": "The version of the Batch Compute Node agent running on the Compute Node.", + "description": "This version number can be checked against the Compute Node agent release notes located at https://github.com/Azure/Batch/blob/master/changelogs/nodeagent/CHANGELOG.md." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "title": "The time when the Compute Node agent was updated on the Compute Node.", + "description": "This is the most recent time that the Compute Node agent was updated to a new version." + } + }, + "required": [ + "version", + "lastUpdateTime" + ], + "title": "Information about the Compute Node agent.", + "description": "The Batch Compute Node agent is a program that runs on each Compute Node in the Pool and provides Batch capability on the Compute Node." + }, + "MultiInstanceSettings": { + "properties": { + "numberOfInstances": { + "type": "integer", + "format": "int32", + "title": "The number of Compute Nodes required by the Task.", + "description": "If omitted, the default is 1." + }, + "coordinationCommandLine": { + "type": "string", + "title": "The command line to run on all the Compute Nodes to enable them to coordinate when the primary runs the main Task command.", + "description": "A typical coordination command line launches a background service and verifies that the service is ready to process inter-node messages." + }, + "commonResourceFiles": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceFile" + }, + "title": "A list of files that the Batch service will download before running the coordination command line.", + "description": "The difference between common resource files and Task resource files is that common resource files are downloaded for all subtasks including the primary, whereas Task resource files are downloaded only for the primary. Also note that these resource files are not downloaded to the Task working directory, but instead are downloaded to the Task root directory (one directory above the working directory). There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers." + } + }, + "required": [ + "coordinationCommandLine" + ], + "title": "Settings which specify how to run a multi-instance Task.", + "description": "Multi-instance Tasks are commonly used to support MPI Tasks. In the MPI case, if any of the subtasks fail (for example due to exiting with a non-zero exit code) the entire multi-instance Task fails. The multi-instance Task is then terminated and retried, up to its retry limit." + }, + "TaskStatistics": { + "properties": { + "url": { + "type": "string", + "title": "The URL of the statistics." + }, + "startTime": { + "type": "string", + "format": "date-time", + "title": "The start time of the time range covered by the statistics." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime." + }, + "userCPUTime": { + "type": "string", + "format": "duration", + "title": "The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by the Task." + }, + "kernelCPUTime": { + "type": "string", + "format": "duration", + "title": "The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by the Task." + }, + "wallClockTime": { + "type": "string", + "format": "duration", + "title": "The total wall clock time of the Task.", + "description": "The wall clock time is the elapsed time from when the Task started running on a Compute Node to when it finished (or to the last time the statistics were updated, if the Task had not finished by then). If the Task was retried, this includes the wall clock time of all the Task retries." + }, + "readIOps": { + "type": "integer", + "format": "int64", + "title": "The total number of disk read operations made by the Task." + }, + "writeIOps": { + "type": "integer", + "format": "int64", + "title": "The total number of disk write operations made by the Task." + }, + "readIOGiB": { + "type": "number", + "format": "double", + "title": "The total gibibytes read from disk by the Task." + }, + "writeIOGiB": { + "type": "number", + "format": "double", + "title": "The total gibibytes written to disk by the Task." + }, + "waitTime": { + "type": "string", + "format": "duration", + "title": "The total wait time of the Task. The wait time for a Task is defined as the elapsed time between the creation of the Task and the start of Task execution. (If the Task is retried due to failures, the wait time is the time to the most recent Task execution.)" + } + }, + "required": [ + "url", + "startTime", + "lastUpdateTime", + "userCPUTime", + "kernelCPUTime", + "wallClockTime", + "readIOps", + "writeIOps", + "readIOGiB", + "writeIOGiB", + "waitTime" + ], + "title": "Resource usage statistics for a Task." + }, + "TaskDependencies": { + "properties": { + "taskIds": { + "type": "array", + "items": { + "type": "string" + }, + "title": "The list of Task IDs that this Task depends on. All Tasks in this list must complete successfully before the dependent Task can be scheduled.", + "description": "The taskIds collection is limited to 64000 characters total (i.e. the combined length of all Task IDs). If the taskIds collection exceeds the maximum length, the Add Task request fails with error code TaskDependencyListTooLong. In this case consider using Task ID ranges instead." + }, + "taskIdRanges": { + "type": "array", + "items": { + "$ref": "#/definitions/TaskIdRange" + }, + "title": "The list of Task ID ranges that this Task depends on. All Tasks in all ranges must complete successfully before the dependent Task can be scheduled." + } + }, + "title": "Specifies any dependencies of a Task. Any Task that is explicitly specified or within a dependency range must complete before the dependant Task will be scheduled." + }, + "TaskIdRange": { + "properties": { + "start": { + "type": "integer", + "format": "int32", + "title": "The first Task ID in the range." + }, + "end": { + "type": "integer", + "format": "int32", + "title": "The last Task ID in the range." + } + }, + "title": "A range of Task IDs that a Task can depend on. All Tasks with IDs in the range must complete successfully before the dependent Task can be scheduled.", + "description": "The start and end of the range are inclusive. For example, if a range has start 9 and end 12, then it represents Tasks '9', '10', '11' and '12'.", + "required": [ + "start", + "end" + ] + }, + "CloudTask": { + "properties": { + "id": { + "type": "string", + "title": "A string that uniquely identifies the Task within the Job.", + "description": "The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters." + }, + "displayName": { + "type": "string", + "title": "A display name for the Task.", + "description": "The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "url": { + "type": "string", + "title": "The URL of the Task." + }, + "eTag": { + "type": "string", + "title": "The ETag of the Task.", + "description": "This is an opaque string. You can use it to detect whether the Task has changed between requests. In particular, you can be pass the ETag when updating a Task to specify that your changes should take effect only if nobody else has modified the Task in the meantime." + }, + "lastModified": { + "type": "string", + "format": "date-time", + "title": "The last modified time of the Task." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "title": "The creation time of the Task." + }, + "exitConditions": { + "$ref": "#/definitions/ExitConditions", + "description": "How the Batch service should respond when the Task completes." + }, + "state": { + "title": "The current state of the Task.", + "$ref": "#/definitions/TaskState" + }, + "stateTransitionTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Task entered its current state." + }, + "previousState": { + "title": "The previous state of the Task.", + "description": "This property is not set if the Task is in its initial Active state.", + "$ref": "#/definitions/TaskState" + }, + "previousStateTransitionTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Task entered its previous state.", + "description": "This property is not set if the Task is in its initial Active state." + }, + "commandLine": { + "type": "string", + "title": "The command line of the Task.", + "description": "For multi-instance Tasks, the command line is executed as the primary Task, after the primary Task and all subtasks have finished executing the coordination command line. 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. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/TaskContainerSettings", + "title": "The settings for the container under which the Task runs.", + "description": "If the Pool that will run this Task has containerConfiguration set, this must be set as well. If the Pool that will run this Task doesn't have containerConfiguration set, this must not be set. 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. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "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.", + "description": "For multi-instance Tasks, the resource files will only be downloaded to the Compute Node on which the primary Task is executed. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers." + }, + "outputFiles": { + "type": "array", + "items": { + "$ref": "#/definitions/OutputFile" + }, + "title": "A list of files that the Batch service will upload from the Compute Node after running the command line.", + "description": "For multi-instance Tasks, the files will only be uploaded from the Compute Node on which the primary Task is executed." + }, + "environmentSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "title": "A list of environment variable settings for the Task." + }, + "affinityInfo": { + "$ref": "#/definitions/AffinityInformation", + "title": "A locality hint that can be used by the Batch service to select a Compute Node on which to start the new Task." + }, + "constraints": { + "$ref": "#/definitions/TaskConstraints", + "title": "The execution constraints that apply to this Task." + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "title": "The user identity under which the Task runs.", + "description": "If omitted, the Task runs as a non-administrative user unique to the Task." + }, + "executionInfo": { + "$ref": "#/definitions/TaskExecutionInformation", + "title": "Information about the execution of the Task." + }, + "nodeInfo": { + "$ref": "#/definitions/ComputeNodeInformation", + "title": "Information about the Compute Node on which the Task ran." + }, + "multiInstanceSettings": { + "$ref": "#/definitions/MultiInstanceSettings", + "title": "An object that indicates that the Task is a multi-instance Task, and contains information about how to run the multi-instance Task." + }, + "stats": { + "$ref": "#/definitions/TaskStatistics", + "title": "Resource usage statistics for the Task." + }, + "dependsOn": { + "$ref": "#/definitions/TaskDependencies", + "title": "The Tasks that this Task depends on.", + "description": "This Task will not be scheduled until all Tasks that it depends on have completed successfully. If any of those Tasks fail and exhaust their retry counts, this Task will never be scheduled." + }, + "applicationPackageReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPackageReference" + }, + "title": "A list of Packages that the Batch service will deploy to the Compute Node before running the command line.", + "description": "Application packages are downloaded and deployed to a shared directory, not the Task working directory. Therefore, if a referenced package is already on the Node, and is up to date, then it is not re-downloaded; the existing copy on the Compute Node is used. If a referenced Package cannot be installed, for example because the package has been deleted or because download failed, the Task fails." + }, + "authenticationTokenSettings": { + "title": "The settings for an authentication token that the Task can use to perform Batch service operations.", + "description": "If this property is set, the Batch service provides the Task with an authentication token which can be used to authenticate Batch service operations without requiring an Account access key. The token is provided via the AZ_BATCH_AUTHENTICATION_TOKEN environment variable. The operations that the Task can carry out using the token depend on the settings. For example, a Task can request Job permissions in order to add other Tasks to the Job, or check the status of the Job or of other Tasks under the Job.", + "$ref": "#/definitions/AuthenticationTokenSettings" + } + }, + "title": "An Azure Batch Task.", + "description": "Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing." + }, + "TaskAddParameter": { + "properties": { + "id": { + "type": "string", + "title": "A string that uniquely identifies the Task within the Job.", + "description": "The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within a Job that differ only by case)." + }, + "displayName": { + "type": "string", + "title": "A display name for the Task.", + "description": "The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024." + }, + "commandLine": { + "type": "string", + "title": "The command line of the Task.", + "description": "For multi-instance Tasks, the command line is executed as the primary Task, after the primary Task and all subtasks have finished executing the coordination command line. 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. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables)." + }, + "containerSettings": { + "$ref": "#/definitions/TaskContainerSettings", + "title": "The settings for the container under which the Task runs.", + "description": "If the Pool that will run this Task has containerConfiguration set, this must be set as well. If the Pool that will run this Task doesn't have containerConfiguration set, this must not be set. 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. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files." + }, + "exitConditions": { + "$ref": "#/definitions/ExitConditions", + "description": "How the Batch service should respond when the Task completes." + }, + "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.", + "description": "For multi-instance Tasks, the resource files will only be downloaded to the Compute Node on which the primary Task is executed. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers." + }, + "outputFiles": { + "type": "array", + "items": { + "$ref": "#/definitions/OutputFile" + }, + "title": "A list of files that the Batch service will upload from the Compute Node after running the command line.", + "description": "For multi-instance Tasks, the files will only be uploaded from the Compute Node on which the primary Task is executed." + }, + "environmentSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentSetting" + }, + "title": "A list of environment variable settings for the Task." + }, + "affinityInfo": { + "$ref": "#/definitions/AffinityInformation", + "title": "A locality hint that can be used by the Batch service to select a Compute Node on which to start the new Task." + }, + "constraints": { + "$ref": "#/definitions/TaskConstraints", + "title": "The execution constraints that apply to this Task.", + "description": "If you do not specify constraints, the maxTaskRetryCount is the maxTaskRetryCount specified for the Job, the maxWallClockTime is infinite, and the retentionTime is 7 days." + }, + "userIdentity": { + "$ref": "#/definitions/UserIdentity", + "title": "The user identity under which the Task runs.", + "description": "If omitted, the Task runs as a non-administrative user unique to the Task." + }, + "multiInstanceSettings": { + "$ref": "#/definitions/MultiInstanceSettings", + "title": "An object that indicates that the Task is a multi-instance Task, and contains information about how to run the multi-instance Task." + }, + "dependsOn": { + "$ref": "#/definitions/TaskDependencies", + "title": "The Tasks that this Task depends on.", + "description": "This Task will not be scheduled until all Tasks that it depends on have completed successfully. If any of those Tasks fail and exhaust their retry counts, this Task will never be scheduled. If the Job does not have usesTaskDependencies set to true, and this element is present, the request fails with error code TaskDependenciesNotSpecifiedOnJob." + }, + "applicationPackageReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPackageReference" + }, + "title": "A list of Packages that the Batch service will deploy to the Compute Node before running the command line.", + "description": "Application packages are downloaded and deployed to a shared directory, not the Task working directory. Therefore, if a referenced package is already on the Node, and is up to date, then it is not re-downloaded; the existing copy on the Compute Node is used. If a referenced Package cannot be installed, for example because the package has been deleted or because download failed, the Task fails." + }, + "authenticationTokenSettings": { + "title": "The settings for an authentication token that the Task can use to perform Batch service operations.", + "description": "If this property is set, the Batch service provides the Task with an authentication token which can be used to authenticate Batch service operations without requiring an Account access key. The token is provided via the AZ_BATCH_AUTHENTICATION_TOKEN environment variable. The operations that the Task can carry out using the token depend on the settings. For example, a Task can request Job permissions in order to add other Tasks to the Job, or check the status of the Job or of other Tasks under the Job.", + "$ref": "#/definitions/AuthenticationTokenSettings" + } + }, + "required": [ + "id", + "commandLine" + ], + "title": "An Azure Batch Task to add.", + "description": "Batch will retry Tasks when a recovery operation is triggered on a Node. Examples of recovery operations include (but are not limited to) when an unhealthy Node is rebooted or a Compute Node disappeared due to host failure. Retries due to recovery operations are independent of and are not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an internal retry due to a recovery operation may occur. Because of this, all Tasks should be idempotent. This means Tasks need to tolerate being interrupted and restarted without causing any corruption or duplicate data. The best practice for long running Tasks is to use some form of checkpointing." + }, + "TaskAddCollectionParameter": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TaskAddParameter" + }, + "maxItems": 100, + "title": "The collection of Tasks to add. The maximum count of Tasks is 100.", + "description": "The total serialized size of this collection must be less than 1MB. If it is greater than 1MB (for example if each Task has 100's of resource files or environment variables), the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer Tasks." + } + }, + "required": [ + "value" + ], + "title": "A collection of Azure Batch Tasks to add." + }, + "TaskAddResult": { + "properties": { + "status": { + "type": "string", + "title": "The status of the add Task request.", + "enum": [ + "success", + "clienterror", + "servererror" + ], + "x-ms-enum": { + "name": "TaskAddStatus", + "modelAsString": false, + "values": [ + { + "value": "success", + "description": "The Task was added successfully." + }, + { + "value": "clienterror", + "description": "The Task failed to add due to a client error and should not be retried without modifying the request as appropriate.", + "name": "clientError" + }, + { + "value": "servererror", + "description": "Task failed to add due to a server error and can be retried without modification.", + "name": "serverError" + } + ] + } + }, + "taskId": { + "type": "string", + "title": "The ID of the Task for which this is the result." + }, + "eTag": { + "type": "string", + "title": "The ETag of the Task, if the Task was successfully added.", + "description": "You can use this to detect whether the Task has changed between requests. In particular, you can be pass the ETag with an Update Task request to specify that your changes should take effect only if nobody else has modified the Job in the meantime." + }, + "lastModified": { + "type": "string", + "format": "date-time", + "title": "The last modified time of the Task." + }, + "location": { + "type": "string", + "title": "The URL of the Task, if the Task was successfully added." + }, + "error": { + "$ref": "#/definitions/BatchError", + "title": "The error encountered while attempting to add the Task." + } + }, + "required": [ + "status", + "taskId" + ], + "title": "Result for a single Task added as part of an add Task collection operation." + }, + "TaskAddCollectionResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TaskAddResult" + }, + "title": "The results of the add Task collection operation." + } + }, + "title": "The result of adding a collection of Tasks to a Job." + }, + "SubtaskInformation": { + "properties": { + "id": { + "type": "integer", + "format": "int32", + "title": "The ID of the subtask." + }, + "nodeInfo": { + "$ref": "#/definitions/ComputeNodeInformation", + "title": "Information about the Compute Node on which the subtask ran." + }, + "startTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the subtask started running. If the subtask has been restarted or retried, this is the most recent time at which the subtask started running." + }, + "endTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the subtask completed.", + "description": "This property is set only if the subtask is in the Completed state." + }, + "exitCode": { + "type": "integer", + "format": "int32", + "title": "The exit code of the program specified on the subtask command line.", + "description": "This property is set only if the subtask is in the completed state. In general, the exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. However, if the Batch service terminates the subtask (due to timeout, or user termination via the API) you may see an operating system-defined exit code." + }, + "containerInfo": { + "$ref": "#/definitions/TaskContainerExecutionInformation", + "title": "Information about the container under which the Task is executing.", + "description": "This property is set only if the Task runs in a container context." + }, + "failureInfo": { + "$ref": "#/definitions/TaskFailureInformation", + "title": "Information describing the Task failure, if any.", + "description": "This property is set only if the Task is in the completed state and encountered a failure." + }, + "state": { + "title": "The current state of the subtask.", + "$ref": "#/definitions/SubtaskState" + }, + "stateTransitionTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the subtask entered its current state." + }, + "previousState": { + "title": "The previous state of the subtask.", + "description": "This property is not set if the subtask is in its initial running state.", + "$ref": "#/definitions/SubtaskState" + }, + "previousStateTransitionTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the subtask entered its previous state.", + "description": "This property is not set if the subtask is in its initial running state." + }, + "result": { + "$ref": "#/definitions/TaskExecutionResult", + "title": "The result of the Task execution.", + "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." + } + }, + "title": "Information about an Azure Batch subtask." + }, + "CloudTaskListSubtasksResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SubtaskInformation" + }, + "title": "The list of subtasks." + } + }, + "title": "The result of listing the subtasks of a Task." + }, + "CloudTaskListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudTask" + }, + "title": "The list of Tasks." + }, + "odata.nextLink": { + "type": "string", + "title": "The URL to get the next set of results." + } + }, + "title": "The result of listing the Tasks in a Job." + }, + "TaskInformation": { + "properties": { + "taskUrl": { + "type": "string", + "title": "The URL of the Task." + }, + "jobId": { + "type": "string", + "title": "The ID of the Job to which the Task belongs." + }, + "taskId": { + "type": "string", + "title": "The ID of the Task." + }, + "subtaskId": { + "type": "integer", + "format": "int32", + "title": "The ID of the subtask if the Task is a multi-instance Task." + }, + "taskState": { + "title": "The current state of the Task.", + "$ref": "#/definitions/TaskState" + }, + "executionInfo": { + "$ref": "#/definitions/TaskExecutionInformation", + "title": "Information about the execution of the Task." + } + }, + "required": [ + "taskState" + ], + "title": "Information about a Task running on a Compute Node." + }, + "StartTaskInformation": { + "properties": { + "state": { + "type": "string", + "title": "The state of the StartTask on the Compute Node.", + "enum": [ + "running", + "completed" + ], + "x-ms-enum": { + "name": "StartTaskState", + "modelAsString": false, + "values": [ + { + "value": "running", + "description": "The StartTask is currently running." + }, + { + "value": "completed", + "description": "The StartTask has exited with exit code 0, or the StartTask has failed and the retry limit has reached, or the StartTask process did not run due to Task preparation errors (such as resource file download failures)." + } + ] + } + }, + "startTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the StartTask started running.", + "description": "This value is reset every time the Task is restarted or retried (that is, this is the most recent time at which the StartTask started running)." + }, + "endTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the StartTask stopped running.", + "description": "This is the end time of the most recent run of the StartTask, if that run has completed (even if that run failed and a retry is pending). This element is not present if the StartTask is currently running." + }, + "exitCode": { + "type": "integer", + "format": "int32", + "title": "The exit code of the program specified on the StartTask command line.", + "description": "This property is set only if the StartTask is in the completed state. In general, the exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. However, if the Batch service terminates the StartTask (due to timeout, or user termination via the API) you may see an operating system-defined exit code." + }, + "containerInfo": { + "$ref": "#/definitions/TaskContainerExecutionInformation", + "title": "Information about the container under which the Task is executing.", + "description": "This property is set only if the Task runs in a container context." + }, + "failureInfo": { + "$ref": "#/definitions/TaskFailureInformation", + "title": "Information describing the Task failure, if any.", + "description": "This property is set only if the Task is in the completed state and encountered a failure." + }, + "retryCount": { + "type": "integer", + "format": "int32", + "title": "The number of times the Task has been retried by the Batch service.", + "description": "Task application failures (non-zero exit code) are retried, pre-processing errors (the Task could not be run) and file upload errors are not retried. The Batch service will retry the Task up to the limit specified by the constraints." + }, + "lastRetryTime": { + "type": "string", + "format": "date-time", + "title": "The most recent time at which a retry of the Task started running.", + "description": "This element is present only if the Task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the Task has been restarted for reasons other than retry; for example, if the Compute Node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not." + }, + "result": { + "$ref": "#/definitions/TaskExecutionResult", + "title": "The result of the Task execution.", + "description": "If the value is 'failed', then the details of the failure can be found in the failureInfo property." + } + }, + "required": [ + "state", + "startTime", + "retryCount" + ], + "title": "Information about a StartTask running on a Compute Node." + }, + "ComputeNodeError": { + "properties": { + "code": { + "type": "string", + "title": "An identifier for the Compute Node error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "title": "A message describing the Compute Node error, intended to be suitable for display in a user interface." + }, + "errorDetails": { + "type": "array", + "items": { + "$ref": "#/definitions/NameValuePair" + }, + "title": "The list of additional error details related to the Compute Node error." + } + }, + "title": "An error encountered by a Compute Node." + }, + "ComputeNode": { + "properties": { + "id": { + "type": "string", + "title": "The ID of the Compute Node.", + "description": "Every Compute Node that is added to a Pool is assigned a unique ID. Whenever a Compute Node is removed from a Pool, all of its local files are deleted, and the ID is reclaimed and could be reused for new Compute Nodes." + }, + "url": { + "type": "string", + "title": "The URL of the Compute Node." + }, + "state": { + "type": "string", + "title": "The current state of the Compute Node.", + "description": "The low-priority Compute Node has been preempted. Tasks which were running on the Compute Node when it was preempted will be rescheduled when another Compute Node becomes available.", + "enum": [ + "idle", + "rebooting", + "reimaging", + "running", + "unusable", + "creating", + "starting", + "waitingforstarttask", + "starttaskfailed", + "unknown", + "leavingpool", + "offline", + "preempted" + ], + "x-ms-enum": { + "name": "ComputeNodeState", + "modelAsString": false, + "values": [ + { + "value": "idle", + "description": "The Compute Node is not currently running a Task." + }, + { + "value": "rebooting", + "description": "The Compute Node is rebooting." + }, + { + "value": "reimaging", + "description": "The Compute Node is reimaging." + }, + { + "value": "running", + "description": "The Compute Node is running one or more Tasks (other than a StartTask)." + }, + { + "value": "unusable", + "description": "The Compute Node cannot be used for Task execution due to errors." + }, + { + "value": "creating", + "description": "The Batch service has obtained the underlying virtual machine from Azure Compute, but it has not yet started to join the Pool." + }, + { + "value": "starting", + "description": "The Batch service is starting on the underlying virtual machine." + }, + { + "value": "waitingforstarttask", + "description": "The StartTask has started running on the Compute Node, but waitForSuccess is set and the StartTask has not yet completed.", + "name": "waitingForStartTask" + }, + { + "value": "starttaskfailed", + "description": "The StartTask has failed on the Compute Node (and exhausted all retries), and waitForSuccess is set. The Compute Node is not usable for running Tasks.", + "name": "startTaskFailed" + }, + { + "value": "unknown", + "description": "The Batch service has lost contact with the Compute Node, and does not know its true state." + }, + { + "value": "leavingpool", + "description": "The Compute Node is leaving the Pool, either because the user explicitly removed it or because the Pool is resizing or autoscaling down.", + "name": "leavingPool" + }, + { + "value": "offline", + "description": "The Compute Node is not currently running a Task, and scheduling of new Tasks to the Compute Node is disabled." + }, + { + "value": "preempted", + "description": "The low-priority Compute Node has been preempted. Tasks which were running on the Compute Node when it was preempted will be rescheduled when another Compute Node becomes available." + } + ] + } + }, + "schedulingState": { + "type": "string", + "title": "Whether the Compute Node is available for Task scheduling.", + "enum": [ + "enabled", + "disabled" + ], + "x-ms-enum": { + "name": "SchedulingState", + "modelAsString": false, + "values": [ + { + "value": "enabled", + "description": "Tasks can be scheduled on the Compute Node." + }, + { + "value": "disabled", + "description": "No new Tasks will be scheduled on the Compute Node. Tasks already running on the Compute Node may still run to completion. All Compute Nodes start with scheduling enabled." + } + ] + } + }, + "stateTransitionTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Compute Node entered its current state." + }, + "lastBootTime": { + "type": "string", + "format": "date-time", + "title": "The last time at which the Compute Node was started.", + "description": "This property may not be present if the Compute Node state is unusable." + }, + "allocationTime": { + "type": "string", + "format": "date-time", + "title": "The time at which this Compute Node was allocated to the Pool.", + "description": "This is the time when the Compute Node was initially allocated and doesn't change once set. It is not updated when the Compute Node is service healed or preempted." + }, + "ipAddress": { + "type": "string", + "title": "The IP address that other Nodes can use to communicate with this Compute Node.", + "description": "Every Compute Node that is added to a Pool is assigned a unique IP address. Whenever a Compute Node is removed from a Pool, all of its local files are deleted, and the IP address is reclaimed and could be reused for new Compute Nodes." + }, + "affinityId": { + "type": "string", + "title": "An identifier which can be passed when adding a Task to request that the Task be scheduled on this Compute Node.", + "description": "Note that this is just a soft affinity. If the target Compute Node is busy or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere." + }, + "vmSize": { + "type": "string", + "title": "The size of the virtual machine hosting the Compute Node.", + "description": "For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes)." + }, + "totalTasksRun": { + "type": "integer", + "format": "int32", + "title": "The total number of Job Tasks completed on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks." + }, + "runningTasksCount": { + "type": "integer", + "format": "int32", + "title": "The total number of currently running Job Tasks on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks." + }, + "totalTasksSucceeded": { + "type": "integer", + "format": "int32", + "title": "The total number of Job Tasks which completed successfully (with exitCode 0) on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks." + }, + "recentTasks": { + "type": "array", + "items": { + "$ref": "#/definitions/TaskInformation" + }, + "title": "A list of Tasks whose state has recently changed.", + "description": "This property is present only if at least one Task has run on this Compute Node since it was assigned to the Pool." + }, + "startTask": { + "$ref": "#/definitions/StartTask", + "title": "The Task specified to run on the Compute Node as it joins the Pool." + }, + "startTaskInfo": { + "$ref": "#/definitions/StartTaskInformation", + "title": "Runtime information about the execution of the StartTask on the Compute Node." + }, + "certificateReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/CertificateReference" + }, + "title": "The list of Certificates installed on the Compute Node.", + "description": "For Windows 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." + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/definitions/ComputeNodeError" + }, + "title": "The list of errors that are currently being encountered by the Compute Node." + }, + "isDedicated": { + "type": "boolean", + "title": "Whether this Compute Node is a dedicated Compute Node. If false, the Compute Node is a low-priority Compute Node." + }, + "endpointConfiguration": { + "$ref": "#/definitions/ComputeNodeEndpointConfiguration", + "title": "The endpoint configuration for the Compute Node." + }, + "nodeAgentInfo": { + "$ref": "#/definitions/NodeAgentInformation", + "title": "Information about the Compute Node agent version and the time the Compute Node upgraded to a new version." + } + }, + "title": "A Compute Node in the Batch service." + }, + "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": { + "$ref": "#/definitions/InboundEndpointProtocol", + "title": "The protocol of 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. Each range must contain at least 40 ports. 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. Each range must contain at least 40 ports. 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 3500. 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), a specific port (i.e. 22), or a port range (i.e. 100-200). The ports must be in the range of 0 to 65535. Each entry in this collection must not overlap any other entry (either a range or an individual port). If any other values are provided the request fails with HTTP status code 400. The default value is '*'." + } + }, + "required": [ + "priority", + "access", + "sourceAddressPrefix" + ], + "title": "A network security group rule to apply to an inbound endpoint." + }, + "ComputeNodeEndpointConfiguration": { + "properties": { + "inboundEndpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/InboundEndpoint" + }, + "title": "The list of inbound endpoints that are accessible on the Compute Node." + } + }, + "required": [ + "inboundEndpoints" + ], + "title": "The endpoint configuration for the Compute Node." + }, + "InboundEndpoint": { + "properties": { + "name": { + "type": "string", + "title": "The name of the endpoint." + }, + "protocol": { + "$ref": "#/definitions/InboundEndpointProtocol", + "title": "The protocol of the endpoint." + }, + "publicIPAddress": { + "type": "string", + "title": "The public IP address of the Compute Node." + }, + "publicFQDN": { + "type": "string", + "title": "The public fully qualified domain name for the Compute Node." + }, + "frontendPort": { + "type": "integer", + "format": "int32", + "title": "The public port number of the endpoint." + }, + "backendPort": { + "type": "integer", + "format": "int32", + "title": "The backend port number of the endpoint." + } + }, + "required": [ + "name", + "protocol", + "publicIPAddress", + "publicFQDN", + "frontendPort", + "backendPort" + ], + "title": "An inbound endpoint on a Compute Node." + }, + "ComputeNodeListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ComputeNode" + }, + "title": "The list of Compute Nodes." + }, + "odata.nextLink": { + "type": "string", + "title": "The URL to get the next set of results." + } + }, + "title": "The result of listing the Compute Nodes in a Pool." + }, + "ComputeNodeUser": { + "properties": { + "name": { + "type": "string", + "title": "The user name of the Account." + }, + "isAdmin": { + "type": "boolean", + "title": "Whether the Account should be an administrator on the Compute Node.", + "description": "The default value is false." + }, + "expiryTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Account should expire.", + "description": "If omitted, the default is 1 day from the current time. For Linux Compute Nodes, the expiryTime has a precision up to a day." + }, + "password": { + "type": "string", + "title": "The password of the Account.", + "description": "The password is required for Windows Compute Nodes (those created with 'cloudServiceConfiguration', or created with 'virtualMachineConfiguration' using a Windows Image reference). For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property." + }, + "sshPublicKey": { + "type": "string", + "title": "The SSH public key that can be used for remote login to the Compute Node.", + "description": "The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux Compute Nodes. If this is specified for a Windows Compute Node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)." + } + }, + "required": [ + "name" + ], + "title": "A user Account for RDP or SSH access on a Compute Node." + }, + "ComputeNodeGetRemoteLoginSettingsResult": { + "properties": { + "remoteLoginIPAddress": { + "type": "string", + "title": "The IP address used for remote login to the Compute Node." + }, + "remoteLoginPort": { + "type": "integer", + "format": "int32", + "title": "The port used for remote login to the Compute Node." + } + }, + "required": [ + "remoteLoginIPAddress", + "remoteLoginPort" + ], + "title": "The remote login settings for a Compute Node." + }, + "JobSchedulePatchParameter": { + "properties": { + "schedule": { + "$ref": "#/definitions/Schedule", + "title": "The schedule according to which Jobs will be created.", + "description": "If you do not specify this element, the existing schedule is left unchanged." + }, + "jobSpecification": { + "$ref": "#/definitions/JobSpecification", + "title": "The details of the Jobs to be created on this schedule.", + "description": "Updates affect only Jobs that are started after the update has taken place. Any currently active Job continues with the older specification." + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "title": "A list of name-value pairs associated with the Job Schedule as metadata.", + "description": "If you do not specify this element, existing metadata is left unchanged." + } + }, + "title": "The set of changes to be made to a Job Schedule." + }, + "JobScheduleUpdateParameter": { + "properties": { + "schedule": { + "$ref": "#/definitions/Schedule", + "title": "The schedule according to which Jobs will be created.", + "description": "If you do not specify this element, it is equivalent to passing the default schedule: that is, a single Job scheduled to run immediately." + }, + "jobSpecification": { + "$ref": "#/definitions/JobSpecification", + "title": "Details of the Jobs to be created on this schedule.", + "description": "Updates affect only Jobs that are started after the update has taken place. Any currently active Job continues with the older specification." + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "title": "A list of name-value pairs associated with the Job Schedule as metadata.", + "description": "If you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted." + } + }, + "required": [ + "schedule", + "jobSpecification" + ], + "title": "The set of changes to be made to a Job Schedule." + }, + "JobDisableParameter": { + "properties": { + "disableTasks": { + "type": "string", + "title": "What to do with active Tasks associated with the Job.", + "enum": [ + "requeue", + "terminate", + "wait" + ], + "x-ms-enum": { + "name": "DisableJobOption", + "modelAsString": false, + "values": [ + { + "value": "requeue", + "description": "Terminate running Tasks and requeue them. The Tasks will run again when the Job is enabled." + }, + { + "value": "terminate", + "description": "Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they were terminated, and will not run again." + }, + { + "value": "wait", + "description": "Allow currently running Tasks to complete." + } + ] + } + } + }, + "required": [ + "disableTasks" + ], + "title": "Options when disabling a Job." + }, + "JobTerminateParameter": { + "properties": { + "terminateReason": { + "type": "string", + "title": "The text you want to appear as the Job's TerminateReason. The default is 'UserTerminate'." + } + }, + "title": "Options when terminating a Job." + }, + "JobPatchParameter": { + "properties": { + "priority": { + "type": "integer", + "format": "int32", + "title": "The priority of the Job.", + "description": "Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. If omitted, the priority of the Job is left unchanged." + }, + "onAllTasksComplete": { + "title": "The action the Batch service should take when all Tasks in the Job are in the completed state.", + "description": "If omitted, the completion behavior is left unchanged. You may not change the value from terminatejob to noaction - that is, once you have engaged automatic Job termination, you cannot turn it off again. If you try to do this, the request fails with an 'invalid property value' error response; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).", + "$ref": "#/definitions/OnAllTasksComplete" + }, + "constraints": { + "$ref": "#/definitions/JobConstraints", + "title": "The execution constraints for the Job.", + "description": "If omitted, the existing execution constraints are left unchanged." + }, + "poolInfo": { + "$ref": "#/definitions/PoolInformation", + "title": "The Pool on which the Batch service runs the Job's Tasks.", + "description": "You may change the Pool for a Job only when the Job is disabled. The Patch Job call will fail if you include the poolInfo element and the Job is not disabled. If you specify an autoPoolSpecification in the poolInfo, only the keepAlive property of the autoPoolSpecification can be updated, and then only if the autoPoolSpecification has a poolLifetimeOption of Job (other job properties can be updated as normal). If omitted, the Job continues to run on its current Pool." + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "title": "A list of name-value pairs associated with the Job as metadata.", + "description": "If omitted, the existing Job metadata is left unchanged." + } + }, + "title": "The set of changes to be made to a Job." + }, + "JobUpdateParameter": { + "properties": { + "priority": { + "type": "integer", + "format": "int32", + "title": "The priority of the Job.", + "description": "Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. If omitted, it is set to the default value 0." + }, + "constraints": { + "$ref": "#/definitions/JobConstraints", + "title": "The execution constraints for the Job.", + "description": "If omitted, the constraints are cleared." + }, + "poolInfo": { + "$ref": "#/definitions/PoolInformation", + "title": "The Pool on which the Batch service runs the Job's Tasks.", + "description": "You may change the Pool for a Job only when the Job is disabled. The Update Job call will fail if you include the poolInfo element and the Job is not disabled. If you specify an autoPoolSpecification in the poolInfo, only the keepAlive property of the autoPoolSpecification can be updated, and then only if the autoPoolSpecification has a poolLifetimeOption of Job (other job properties can be updated as normal)." + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "title": "A list of name-value pairs associated with the Job as metadata.", + "description": "If omitted, it takes the default value of an empty list; in effect, any existing metadata is deleted." + }, + "onAllTasksComplete": { + "title": "The action the Batch service should take when all Tasks in the Job are in the completed state.", + "description": "If omitted, the completion behavior is set to noaction. If the current value is terminatejob, this is an error because a Job's completion behavior may not be changed from terminatejob to noaction. You may not change the value from terminatejob to noaction - that is, once you have engaged automatic Job termination, you cannot turn it off again. If you try to do this, the request fails and Batch returns status code 400 (Bad Request) and an 'invalid property value' error response. If you do not specify this element in a PUT request, it is equivalent to passing noaction. This is an error if the current value is terminatejob.", + "$ref": "#/definitions/OnAllTasksComplete" + } + }, + "required": [ + "poolInfo" + ], + "title": "The set of changes to be made to a Job." + }, + "PoolEnableAutoScaleParameter": { + "properties": { + "autoScaleFormula": { + "type": "string", + "title": "The formula for the desired number of Compute Nodes in the Pool.", + "description": "The formula is checked for validity before it is applied to the Pool. If the formula is not valid, the Batch service rejects the request with detailed error information. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling)." + }, + "autoScaleEvaluationInterval": { + "type": "string", + "format": "duration", + "title": "The time interval at which to automatically adjust the Pool size according to the autoscale formula.", + "description": "The default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). If you specify a new interval, then the existing autoscale evaluation schedule will be stopped and a new autoscale evaluation schedule will be started, with its starting time being the time when this request was issued." + } + }, + "title": "Options for enabling automatic scaling on a Pool." + }, + "PoolEvaluateAutoScaleParameter": { + "properties": { + "autoScaleFormula": { + "type": "string", + "title": "The formula for the desired number of Compute Nodes in the Pool.", + "description": "The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling)." + } + }, + "required": [ + "autoScaleFormula" + ], + "title": "Options for evaluating an automatic scaling formula on a Pool." + }, + "PoolResizeParameter": { + "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 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 Compute Node and its running task(s) if the Pool size is decreasing.", + "description": "The default value is requeue.", + "$ref": "#/definitions/ComputeNodeDeallocationOption" + } + }, + "title": "Options for changing the size of a Pool." + }, + "PoolUpdatePropertiesParameter": { + "properties": { + "startTask": { + "$ref": "#/definitions/StartTask", + "title": "A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted.", + "description": "If this element is present, it overwrites any existing StartTask. If omitted, any existing StartTask is removed from the Pool." + }, + "certificateReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/CertificateReference" + }, + "title": "A list of Certificates to be installed on each Compute Node in the Pool.", + "description": "This list replaces any existing Certificate references configured on the Pool. If you specify an empty collection, any existing Certificate references are removed from the Pool. For Windows 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." + }, + "applicationPackageReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPackageReference" + }, + "title": "The list of Application Packages to be installed on each Compute Node in the Pool.", + "description": "The list replaces any existing Application Package references on the Pool. 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. If omitted, or if you specify an empty collection, any existing Application Packages references are removed from the Pool. A maximum of 10 references may be specified on a given Pool." + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "title": "A list of name-value pairs associated with the Pool as metadata.", + "description": "This list replaces any existing metadata configured on the Pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the Pool." + } + }, + "required": [ + "certificateReferences", + "metadata", + "applicationPackageReferences" + ], + "title": "The set of changes to be made to a Pool." + }, + "PoolPatchParameter": { + "properties": { + "startTask": { + "$ref": "#/definitions/StartTask", + "title": "A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted.", + "description": "If this element is present, it overwrites any existing StartTask. If omitted, any existing StartTask is left unchanged." + }, + "certificateReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/CertificateReference" + }, + "title": "A list of Certificates to be installed on each Compute Node in the Pool.", + "description": "If this element is present, it replaces any existing Certificate references configured on the Pool. If omitted, any existing Certificate references are left unchanged. For Windows 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." + }, + "applicationPackageReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationPackageReference" + }, + "title": "A list of Packages to be installed on each Compute Node in the Pool.", + "description": "Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. If this element is present, it replaces any existing Package references. If you specify an empty collection, then all Package references are removed from the Pool. If omitted, any existing Package references are left unchanged." + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/MetadataItem" + }, + "title": "A list of name-value pairs associated with the Pool as metadata.", + "description": "If this element is present, it replaces any existing metadata configured on the Pool. If you specify an empty collection, any metadata is removed from the Pool. If omitted, any existing metadata is left unchanged." + } + }, + "title": "The set of changes to be made to a Pool." + }, + "TaskUpdateParameter": { + "properties": { + "constraints": { + "$ref": "#/definitions/TaskConstraints", + "title": "Constraints that apply to this Task.", + "description": "If omitted, the Task is given the default constraints. For multi-instance Tasks, updating the retention time applies only to the primary Task and not subtasks." + } + }, + "title": "The set of changes to be made to a Task." + }, + "NodeUpdateUserParameter": { + "properties": { + "password": { + "type": "string", + "title": "The password of the Account.", + "description": "The password is required for Windows Compute Nodes (those created with 'cloudServiceConfiguration', or created with 'virtualMachineConfiguration' using a Windows Image reference). For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property. If omitted, any existing password is removed." + }, + "expiryTime": { + "type": "string", + "format": "date-time", + "title": "The time at which the Account should expire.", + "description": "If omitted, the default is 1 day from the current time. For Linux Compute Nodes, the expiryTime has a precision up to a day." + }, + "sshPublicKey": { + "type": "string", + "title": "The SSH public key that can be used for remote login to the Compute Node.", + "description": "The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux Compute Nodes. If this is specified for a Windows Compute Node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). If omitted, any existing SSH public key is removed." + } + }, + "title": "The set of changes to be made to a user Account on a Compute Node." + }, + "NodeRebootParameter": { + "properties": { + "nodeRebootOption": { + "type": "string", + "title": "When to reboot the Compute Node and what to do with currently running Tasks.", + "description": "The default value is requeue.", + "enum": [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ], + "x-ms-enum": { + "name": "ComputeNodeRebootOption", + "modelAsString": false, + "values": [ + { + "value": "requeue", + "description": "Terminate running Task processes and requeue the Tasks. The Tasks will run again when a Compute Node is available. Restart the Compute Node 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. Restart the Compute Node as soon as Tasks have been terminated." + }, + { + "value": "taskcompletion", + "description": "Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Restart the Compute Node when all Tasks have completed.", + "name": "taskCompletion" + }, + { + "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. Restart the Compute Node when all Task retention periods have expired.", + "name": "retainedData" + } + ] + } + } + }, + "title": "Options for rebooting a Compute Node." + }, + "NodeReimageParameter": { + "properties": { + "nodeReimageOption": { + "type": "string", + "title": "When to reimage the Compute Node and what to do with currently running Tasks.", + "description": "The default value is requeue.", + "enum": [ + "requeue", + "terminate", + "taskcompletion", + "retaineddata" + ], + "x-ms-enum": { + "name": "ComputeNodeReimageOption", + "modelAsString": false, + "values": [ + { + "value": "requeue", + "description": "Terminate running Task processes and requeue the Tasks. The Tasks will run again when a Compute Node is available. Reimage the Compute Node 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. Reimage the Compute Node as soon as Tasks have been terminated." + }, + { + "value": "taskcompletion", + "description": "Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Reimage the Compute Node when all Tasks have completed.", + "name": "taskCompletion" + }, + { + "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. Reimage the Compute Node when all Task retention periods have expired.", + "name": "retainedData" + } + ] + } + } + }, + "title": "Options for reimaging a Compute Node." + }, + "NodeDisableSchedulingParameter": { + "properties": { + "nodeDisableSchedulingOption": { + "type": "string", + "title": "What to do with currently running Tasks when disabling Task scheduling on the Compute Node.", + "description": "The default value is requeue.", + "enum": [ + "requeue", + "terminate", + "taskcompletion" + ], + "x-ms-enum": { + "name": "DisableComputeNodeSchedulingOption", + "modelAsString": false, + "values": [ + { + "value": "requeue", + "description": "Terminate running Task processes and requeue the Tasks. The Tasks may run again on other Compute Nodes, or when Task scheduling is re-enabled on this Compute Node. Enter offline state 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. Enter offline state as soon as Tasks have been terminated." + }, + { + "value": "taskcompletion", + "description": "Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Enter offline state when all Tasks have completed.", + "name": "taskCompletion" + } + ] + } + } + }, + "title": "Options for disabling scheduling on a Compute Node." + }, + "NodeRemoveParameter": { + "properties": { + "nodeList": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string" + }, + "title": "A list containing the IDs of the Compute Nodes to be removed from the specified Pool." + }, + "resizeTimeout": { + "type": "string", + "format": "duration", + "title": "The timeout for removal of Compute Nodes to 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 Compute Node and its running task(s) after it has been selected for deallocation.", + "description": "The default value is requeue.", + "$ref": "#/definitions/ComputeNodeDeallocationOption" + } + }, + "required": [ + "nodeList" + ], + "title": "Options for removing Compute Nodes from a Pool." + }, + "OutputFile": { + "properties": { + "filePattern": { + "type": "string", + "title": "A pattern indicating which file(s) to upload.", + "description": "Both relative and absolute paths are supported. Relative paths are relative to the Task working directory. The following wildcards are supported: * matches 0 or more characters (for example pattern abc* would match abc or abcdef), ** matches any directory, ? matches any single character, [abc] matches one character in the brackets, and [a-c] matches one character in the range. Brackets can include a negation to match any character not specified (for example [!abc] matches any character but a, b, or c). If a file name starts with \".\" it is ignored by default but may be matched by specifying it explicitly (for example *.gif will not match .a.gif, but .*.gif will). A simple example: **\\*.txt matches any file that does not start in '.' and ends with .txt in the Task working directory or any subdirectory. If the filename contains a wildcard character it can be escaped using brackets (for example abc[*] would match a file named abc*). Note that both \\ and / are treated as directory separators on Windows, but only / is on Linux. Environment variables (%var% on Windows or $var on Linux) are expanded prior to the pattern being applied." + }, + "destination": { + "title": "The destination for the output file(s).", + "$ref": "#/definitions/OutputFileDestination" + }, + "uploadOptions": { + "title": "Additional options for the upload operation, including under what conditions to perform the upload.", + "$ref": "#/definitions/OutputFileUploadOptions" + } + }, + "required": [ + "filePattern", + "destination", + "uploadOptions" + ], + "title": "A specification for uploading files from an Azure Batch Compute Node to another location after the Batch service has finished executing the Task process." + }, + "OutputFileDestination": { + "properties": { + "container": { + "title": "A location in Azure blob storage to which files are uploaded.", + "$ref": "#/definitions/OutputFileBlobContainerDestination" + } + }, + "title": "The destination to which a file should be uploaded." + }, + "OutputFileBlobContainerDestination": { + "properties": { + "path": { + "type": "string", + "title": "The destination blob or virtual directory within the Azure Storage container.", + "description": "If filePattern refers to a specific file (i.e. contains no wildcards), then path is the name of the blob to which to upload that file. If filePattern contains one or more wildcards (and therefore may match multiple files), then path is the name of the blob virtual directory (which is prepended to each blob name) to which to upload the file(s). If omitted, file(s) are uploaded to the root of the container with a blob name matching their file name." + }, + "containerUrl": { + "type": "string", + "title": "The URL of the container within Azure Blob Storage to which to upload the file(s).", + "description": "The URL must include a Shared Access Signature (SAS) granting write permissions to the container." + } + }, + "required": [ + "containerUrl" + ], + "title": "Specifies a file upload destination within an Azure blob storage container." + }, + "OutputFileUploadOptions": { + "properties": { + "uploadCondition": { + "title": "The conditions under which the Task output file or set of files should be uploaded.", + "description": "The default is taskcompletion.", + "$ref": "#/definitions/OutputFileUploadCondition" + } + }, + "required": [ + "uploadCondition" + ], + "title": "Details about an output file upload operation, including under what conditions to perform the upload." + }, + "ErrorMessage": { + "properties": { + "lang": { + "type": "string", + "title": "The language code of the error message" + }, + "value": { + "type": "string", + "title": "The text of the message." + } + }, + "title": "An error message received in an Azure Batch error response." + }, + "BatchErrorDetail": { + "properties": { + "key": { + "type": "string", + "title": "An identifier specifying the meaning of the Value property." + }, + "value": { + "type": "string", + "title": "The additional information included with the error response." + } + }, + "title": "An item of additional information included in an Azure Batch error response." + }, + "BatchError": { + "properties": { + "code": { + "type": "string", + "title": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "$ref": "#/definitions/ErrorMessage", + "title": "A message describing the error, intended to be suitable for display in a user interface." + }, + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/BatchErrorDetail" + }, + "title": "A collection of key-value pairs containing additional details about the error." + } + }, + "title": "An error response received from the Azure Batch service." + }, + "CertificateState": { + "type": "string", + "title": "The state of the Certificate.", + "enum": [ + "active", + "deleting", + "deletefailed" + ], + "x-ms-enum": { + "name": "CertificateState", + "modelAsString": false, + "values": [ + { + "value": "active", + "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": "deletefailed", + "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 Nodes. (The latter can occur if the Certificate has been removed from the Pool, but the Compute Node has not yet restarted. Compute 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.", + "name": "deleteFailed" + } + ] + } + }, + "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.", + "name": "nonAdmin" + }, + { + "value": "admin", + "description": "The user is a user with elevated access and operates with full Administrator permissions." + } + ] + } + }, + "JobScheduleState": { + "type": "string", + "title": "The state of the Job Schedule.", + "enum": [ + "active", + "completed", + "disabled", + "terminating", + "deleting" + ], + "x-ms-enum": { + "name": "JobScheduleState", + "modelAsString": false, + "values": [ + { + "value": "active", + "description": "The Job Schedule is active and will create Jobs as per its schedule." + }, + { + "value": "completed", + "description": "The Job Schedule has terminated, either by reaching its end time or by the user terminating it explicitly." + }, + { + "value": "disabled", + "description": "The user has disabled the Job Schedule. The scheduler will not initiate any new Jobs will on this schedule, but any existing active Job will continue to run." + }, + { + "value": "terminating", + "description": "The Job Schedule has no more work to do, or has been explicitly terminated by the user, but the termination operation is still in progress. The scheduler will not initiate any new Jobs for this Job Schedule, nor is any existing Job active." + }, + { + "value": "deleting", + "description": "The user has requested that the Job Schedule be deleted, but the delete operation is still in progress. The scheduler will not initiate any new Jobs for this Job Schedule, and will delete any existing Jobs and Tasks under the Job Schedule, including any active Job. The Job Schedule will be deleted when all Jobs and Tasks under the Job Schedule have been deleted." + } + ] + } + }, + "JobState": { + "type": "string", + "title": "The state of the Job.", + "enum": [ + "active", + "disabling", + "disabled", + "enabling", + "terminating", + "completed", + "deleting" + ], + "x-ms-enum": { + "name": "JobState", + "modelAsString": false, + "values": [ + { + "value": "active", + "description": "The Job is available to have Tasks scheduled." + }, + { + "value": "disabling", + "description": "A user has requested that the Job be disabled, but the disable operation is still in progress (for example, waiting for Tasks to terminate)." + }, + { + "value": "disabled", + "description": "A user has disabled the Job. No Tasks are running, and no new Tasks will be scheduled." + }, + { + "value": "enabling", + "description": "A user has requested that the Job be enabled, but the enable operation is still in progress." + }, + { + "value": "terminating", + "description": "The Job is about to complete, either because a Job Manager Task has completed or because the user has terminated the Job, but the terminate operation is still in progress (for example, because Job Release Tasks are running)." + }, + { + "value": "completed", + "description": "All Tasks have terminated, and the system will not accept any more Tasks or any further changes to the Job." + }, + { + "value": "deleting", + "description": "A user has requested that the Job be deleted, but the delete operation is still in progress (for example, because the system is still terminating running Tasks)." + } + ] + } + }, + "OnAllTasksComplete": { + "type": "string", + "title": "The action the Batch service should take when all Tasks in the Job are in the completed state.", + "enum": [ + "noaction", + "terminatejob" + ], + "x-ms-enum": { + "name": "OnAllTasksComplete", + "modelAsString": false, + "values": [ + { + "value": "noaction", + "description": "Do nothing. The Job remains active unless terminated or disabled by some other means.", + "name": "noAction" + }, + { + "value": "terminatejob", + "description": "Terminate the Job. The Job's terminateReason is set to 'AllTasksComplete'.", + "name": "terminateJob" + } + ] + } + }, + "OnTaskFailure": { + "type": "string", + "title": "The action the Batch service should take when any Task in the Job fails.", + "description": "A Task is considered to have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction.", + "enum": [ + "noaction", + "performexitoptionsjobaction" + ], + "x-ms-enum": { + "name": "OnTaskFailure", + "modelAsString": false, + "values": [ + { + "value": "noaction", + "description": "Do nothing. The Job remains active unless terminated or disabled by some other means.", + "name": "noAction" + }, + { + "value": "performexitoptionsjobaction", + "description": "Take the action associated with the Task exit condition in the Task's exitConditions collection. (This may still result in no action being taken, if that is what the Task specifies.)", + "name": "performExitOptionsJobAction" + } + ] + } + }, + "ErrorCategory": { + "type": "string", + "title": "The category of the error.", + "enum": [ + "usererror", + "servererror" + ], + "x-ms-enum": { + "name": "ErrorCategory", + "modelAsString": false, + "values": [ + { + "value": "usererror", + "description": "The error is due to a user issue, such as misconfiguration.", + "name": "userError" + }, + { + "value": "servererror", + "description": "The error is due to an internal server issue.", + "name": "serverError" + } + ] + } + }, + "TaskState": { + "type": "string", + "title": "The state of the Task.", + "enum": [ + "active", + "preparing", + "running", + "completed" + ], + "x-ms-enum": { + "name": "TaskState", + "modelAsString": false, + "values": [ + { + "value": "active", + "description": "The Task is queued and able to run, but is not currently assigned to a Compute Node. A Task enters this state when it is created, when it is enabled after being disabled, or when it is awaiting a retry after a failed run." + }, + { + "value": "preparing", + "description": "The Task has been assigned to a Compute Node, but is waiting for a required Job Preparation Task to complete on the Compute Node. If the Job Preparation Task succeeds, the Task will move to running. If the Job Preparation Task fails, the Task will return to active and will be eligible to be assigned to a different Compute Node." + }, + { + "value": "running", + "description": "The Task is running on a Compute Node. This includes task-level preparation such as downloading resource files or deploying Packages specified on the Task - it does not necessarily mean that the Task command line has started executing." + }, + { + "value": "completed", + "description": "The Task is no longer eligible to run, usually because the Task has finished successfully, or the Task has finished unsuccessfully and has exhausted its retry limit. A Task is also marked as completed if an error occurred launching the Task, or when the Task has been terminated." + } + ] + } + }, + "SubtaskState": { + "type": "string", + "title": "The state of the subtask.", + "enum": [ + "preparing", + "running", + "completed" + ], + "x-ms-enum": { + "name": "SubtaskState", + "modelAsString": false, + "values": [ + { + "value": "preparing", + "description": "The Task has been assigned to a Compute Node, but is waiting for a required Job Preparation Task to complete on the Compute Node. If the Job Preparation Task succeeds, the Task will move to running. If the Job Preparation Task fails, the Task will return to active and will be eligible to be assigned to a different Compute Node." + }, + { + "value": "running", + "description": "The Task is running on a Compute Node. This includes task-level preparation such as downloading resource files or deploying Packages specified on the Task - it does not necessarily mean that the Task command line has started executing." + }, + { + "value": "completed", + "description": "The Task is no longer eligible to run, usually because the Task has finished successfully, or the Task has finished unsuccessfully and has exhausted its retry limit. A Task is also marked as completed if an error occurred launching the Task, or when the Task has been terminated." + } + ] + } + }, + "ComputeNodeDeallocationOption": { + "type": "string", + "title": "Determines what to do with a Compute Node and its running task(s) after it has been selected for deallocation.", + "description": "The default value is requeue.", + "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 Compute Node is available. Remove Compute 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 Compute Nodes as soon as Tasks have been terminated." + }, + { + "value": "taskcompletion", + "description": "Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Remove Compute Nodes when all Tasks have completed.", + "name": "taskCompletion" + }, + { + "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 Compute Nodes when all Task retention periods have expired.", + "name": "retainedData" + } + ] + } + }, + "OutputFileUploadCondition": { + "type": "string", + "title": "The conditions under which a Task output file or set of files should be uploaded.", + "enum": [ + "tasksuccess", + "taskfailure", + "taskcompletion" + ], + "x-ms-enum": { + "name": "OutputFileUploadCondition", + "modelAsString": false, + "values": [ + { + "value": "tasksuccess", + "description": "Upload the file(s) only after the Task process exits with an exit code of 0.", + "name": "taskSuccess" + }, + { + "value": "taskfailure", + "description": "Upload the file(s) only after the Task process exits with a nonzero exit code.", + "name": "taskFailure" + }, + { + "value": "taskcompletion", + "description": "Upload the file(s) after the Task process exits, no matter what the exit code was.", + "name": "taskCompletion" + } + ] + } + }, + "TaskExecutionResult": { + "type": "string", + "title": "The result of Task execution.", + "enum": [ + "success", + "failure" + ], + "x-ms-enum": { + "name": "TaskExecutionResult", + "modelAsString": false, + "values": [ + { + "value": "success", + "description": "The Task ran successfully.", + "name": "success" + }, + { + "value": "failure", + "description": "There was an error during processing of the Task. The failure may have occurred before the Task process was launched, while the Task process was executing, or after the Task process exited.", + "name": "failure" + } + ] + } + }, + "InboundEndpointProtocol": { + "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.", + "name": "tcp" + }, + { + "value": "udp", + "description": "Use UDP for the endpoint.", + "name": "udp" + } + ] + } + }, + "UploadBatchServiceLogsConfiguration": { + "properties": { + "containerUrl": { + "type": "string", + "title": "The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s).", + "description": "The URL must include a Shared Access Signature (SAS) granting write permissions to the container. The SAS duration must allow enough time for the upload to finish. The start time for SAS is optional and recommended to not be specified." + }, + "startTime": { + "type": "string", + "format": "date-time", + "title": "The start of the time range from which to upload Batch Service log file(s).", + "description": "Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested." + }, + "endTime": { + "type": "string", + "format": "date-time", + "title": "The end of the time range from which to upload Batch Service log file(s).", + "description": "Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime." + } + }, + "required": [ + "containerUrl", + "startTime" + ], + "title": "The Azure Batch service log files upload configuration for a Compute Node." + }, + "UploadBatchServiceLogsResult": { + "properties": { + "virtualDirectoryName": { + "type": "string", + "title": "The virtual directory within Azure Blob Storage container to which the Batch Service log file(s) will be uploaded.", + "description": "The virtual directory name is part of the blob name for each log file uploaded, and it is built based poolId, nodeId and a unique identifier." + }, + "numberOfFilesUploaded": { + "type": "integer", + "format": "int32", + "title": "The number of log files which will be uploaded." + } + }, + "required": [ + "virtualDirectoryName", + "numberOfFilesUploaded" + ], + "title": "The result of uploading Batch service log files from a specific Compute Node." + }, + "PoolNodeCountsListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PoolNodeCounts" + }, + "description": "A list of Compute Node counts by Pool." + }, + "odata.nextLink": { + "type": "string", + "title": "The URL to get the next set of results." + } + }, + "title": "The result of listing the Compute Node counts in the Account." + }, + "PoolNodeCounts": { + "properties": { + "poolId": { + "type": "string", + "title": "The ID of the Pool." + }, + "dedicated": { + "$ref": "#/definitions/NodeCounts", + "title": "The number of dedicated Compute Nodes in each state." + }, + "lowPriority": { + "$ref": "#/definitions/NodeCounts", + "title": "The number of low priority Compute Nodes in each state." + } + }, + "required": [ + "poolId" + ], + "title": "The number of Compute Nodes in each state for a Pool." + }, + "NodeCounts": { + "properties": { + "creating": { + "type": "integer", + "format": "int32", + "title": "The number of Compute Nodes in the creating state." + }, + "idle": { + "type": "integer", + "format": "int32", + "title": "The number of Compute Nodes in the idle state." + }, + "offline": { + "type": "integer", + "format": "int32", + "title": "The number of Compute Nodes in the offline state." + }, + "preempted": { + "type": "integer", + "format": "int32", + "title": "The number of Compute Nodes in the preempted state." + }, + "rebooting": { + "type": "integer", + "format": "int32", + "title": "The count of Compute Nodes in the rebooting state." + }, + "reimaging": { + "type": "integer", + "format": "int32", + "title": "The number of Compute Nodes in the reimaging state." + }, + "running": { + "type": "integer", + "format": "int32", + "title": "The number of Compute Nodes in the running state." + }, + "starting": { + "type": "integer", + "format": "int32", + "title": "The number of Compute Nodes in the starting state." + }, + "startTaskFailed": { + "type": "integer", + "format": "int32", + "title": "The number of Compute Nodes in the startTaskFailed state." + }, + "leavingPool": { + "type": "integer", + "format": "int32", + "title": "The number of Compute Nodes in the leavingPool state." + }, + "unknown": { + "type": "integer", + "format": "int32", + "title": "The number of Compute Nodes in the unknown state." + }, + "unusable": { + "type": "integer", + "format": "int32", + "title": "The number of Compute Nodes in the unusable state." + }, + "waitingForStartTask": { + "type": "integer", + "format": "int32", + "title": "The number of Compute Nodes in the waitingForStartTask state." + }, + "total": { + "type": "integer", + "format": "int32", + "title": "The total number of Compute Nodes." + } + }, + "required": [ + "creating", + "idle", + "offline", + "preempted", + "rebooting", + "reimaging", + "running", + "starting", + "startTaskFailed", + "leavingPool", + "unknown", + "unusable", + "waitingForStartTask", + "total" + ], + "title": "The number of Compute Nodes in each Compute Node state." + }, + "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": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API Version." + }, + "batchUrl": { + "name": "batchUrl", + "x-ms-parameter-location": "client", + "required": true, + "type": "string", + "in": "path", + "x-ms-skip-url-encoding": true, + "description": "The base URL for all Azure Batch service requests." + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/AccountListPoolNodeCounts.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/AccountListPoolNodeCounts.json new file mode 100644 index 000000000000..4591aa187647 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/AccountListPoolNodeCounts.json @@ -0,0 +1,121 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "poolId": "pool1", + "dedicated": { + "creating": 0, + "idle": 0, + "leavingPool": 0, + "offline": 0, + "preempted": 0, + "rebooting": 0, + "reimaging": 0, + "running": 0, + "starting": 0, + "startTaskFailed": 0, + "unknown": 0, + "unusable": 0, + "waitingForStartTask": 0, + "total": 0 + }, + "lowPriority": { + "creating": 0, + "idle": 0, + "leavingPool": 0, + "offline": 0, + "preempted": 0, + "rebooting": 0, + "reimaging": 0, + "running": 2, + "starting": 1, + "startTaskFailed": 0, + "unknown": 0, + "unusable": 0, + "waitingForStartTask": 0, + "total": 3 + } + }, + { + "poolId": "pool2", + "dedicated": { + "creating": 0, + "idle": 1, + "leavingPool": 0, + "offline": 3, + "preempted": 0, + "rebooting": 0, + "reimaging": 0, + "running": 0, + "starting": 0, + "startTaskFailed": 0, + "unknown": 0, + "unusable": 0, + "waitingForStartTask": 0, + "total": 4 + }, + "lowPriority": { + "creating": 0, + "idle": 0, + "leavingPool": 0, + "offline": 0, + "preempted": 0, + "rebooting": 0, + "reimaging": 0, + "running": 0, + "starting": 0, + "startTaskFailed": 0, + "unknown": 0, + "unusable": 0, + "waitingForStartTask": 0, + "total": 0 + } + }, + { + "poolId": "pool3", + "dedicated": { + "creating": 0, + "idle": 5, + "leavingPool": 0, + "offline": 0, + "preempted": 0, + "rebooting": 0, + "reimaging": 4, + "running": 0, + "starting": 0, + "startTaskFailed": 0, + "unknown": 0, + "unusable": 0, + "waitingForStartTask": 0, + "total": 9 + }, + "lowPriority": { + "creating": 7, + "idle": 0, + "leavingPool": 0, + "offline": 0, + "preempted": 0, + "rebooting": 0, + "reimaging": 0, + "running": 4, + "starting": 0, + "startTaskFailed": 0, + "unknown": 0, + "unusable": 0, + "waitingForStartTask": 0, + "total": 11 + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/AccountListSupportedImages.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/AccountListSupportedImages.json new file mode 100644 index 000000000000..c9e9b87352a7 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/AccountListSupportedImages.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "nodeAgentSKUId": "batch.node.centos 7", + "imageReference": { + "publisher": "OpenLogic", + "offer": "CentOS", + "sku": "7.2", + "version": "latest" + }, + "verificationType": "verified", + "capabilities": [ + "DockerCompatible", + "NvidiaTeslaDriverInstalled" + ], + "osType": "linux" + }, + { + "nodeAgentSKUId": "batch.node.centos 7", + "imageReference": { + "publisher": "OpenLogic", + "offer": "CentOS", + "sku": "7.1", + "version": "latest" + }, + "verificationType": "unverified", + "osType": "linux", + "batchSupportEndOfLife": "2019-11-01T00:00:00.0Z" + }, + { + "nodeAgentSKUId": "batch.node.debian 8", + "imageReference": { + "publisher": "Credativ", + "offer": "Debian", + "sku": "8", + "version": "latest" + }, + "verificationType": "verified", + "osType": "linux" + }, + { + "nodeAgentSKUId": "batch.node.windows amd64", + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2012-R2-Datacenter", + "version": "latest" + }, + "verificationType": "verified", + "osType": "windows" + }, + { + "nodeAgentSKUId": "batch.node.windows amd64", + "imageReference": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2012-Datacenter", + "version": "latest" + }, + "verificationType": "verified", + "osType": "windows" + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/ApplicationGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/ApplicationGet.json new file mode 100644 index 000000000000..89901c9c19c7 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/ApplicationGet.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "applicationId": "my_application_id" + }, + "responses": { + "200": { + "body": { + "id": "my_application_id", + "versions": [ + "v1.0" + ], + "displayName": "my_display_name" + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/ApplicationList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/ApplicationList.json new file mode 100644 index 000000000000..4d0c21d32ddf --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/ApplicationList.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "my_application_id", + "versions": [ + "v1.0" + ], + "displayName": "my_display_name" + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateAdd.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateAdd.json new file mode 100644 index 000000000000..43badf092110 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateAdd.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "certificate": { + "thumbprintAlgorithm": "sha1", + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "data": "#####...", + "certificateFormat": "pfx", + "password": "certpassword" + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateCancelDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateCancelDelete.json new file mode 100644 index 000000000000..5a26439110fc --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateCancelDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "thumbprintAlgorithm": "sha1", + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "204": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateDelete.json new file mode 100644 index 000000000000..34c2323fbdd7 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "thumbprintAlgorithm": "sha1", + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateGet.json new file mode 100644 index 000000000000..8bd190258b81 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateGet.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "thumbprintAlgorithm": "sha1", + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "thumbprintAlgorithm": "sha1", + "url": "https://account.region.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=0123456789abcdef0123456789abcdef01234567)", + "state": "deletefailed", + "stateTransitionTime": "2014-07-31T21:12:58.236Z", + "previousState": "deleting", + "previousStateTransitionTime": "2014-07-31T21:11:58.236Z", + "publicData": "#####...", + "deleteCertificateError": { + "code": "PoolsReferencingCertificate", + "message": "The specified certificate is being used by the below mentioned pool(s)", + "values": [ + { + "name": "Pools", + "value": "mypool1" + } + ] + } + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateList.json new file mode 100644 index 000000000000..2b8fa4d5953d --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/CertificateList.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "thumbprintAlgorithm": "sha1", + "url": "https://account.region.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=0123456789abcdef0123456789abcdef01234567)", + "state": "deletefailed", + "stateTransitionTime": "2014-07-31T21:12:58.236Z", + "previousState": "deleting", + "previousStateTransitionTime": "2014-07-31T21:11:58.236Z", + "publicData": "#####...", + "deleteCertificateError": { + "code": "PoolsReferencingCertificate", + "message": "The specified certificate is being used by the below mentioned pool(s)", + "values": [ + { + "name": "Pools", + "value": "mypool1" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileDeleteFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileDeleteFromNode.json new file mode 100644 index 000000000000..5c4720cb8453 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileDeleteFromNode.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "filePath": "workitems\\jobId\\job-1\\task1\\wd\\testFile.txt", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "recursive": false + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileDeleteFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileDeleteFromTask.json new file mode 100644 index 000000000000..55f2d73ffa50 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileDeleteFromTask.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "taskId": "task1", + "filePath": "wd\\testFile.txt", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "recursive": false + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileGetFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileGetFromNode.json new file mode 100644 index 000000000000..a955d283a9c4 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileGetFromNode.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "nodeId", + "filePath": "workitems\\jobId\\job-1\\task1\\wd\\testFile.txt", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream", + "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileGetFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileGetFromTask.json new file mode 100644 index 000000000000..5148507c5793 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileGetFromTask.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "taskId": "task1", + "filePath": "wd\\testFile.txt", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream", + "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileGetPropertiesFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileGetPropertiesFromNode.json new file mode 100644 index 000000000000..aa477636134d --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileGetPropertiesFromNode.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "nodeId", + "filePath": "workitems\\jobId\\job-1\\task1\\wd\\testFile.txt", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileGetPropertiesFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileGetPropertiesFromTask.json new file mode 100644 index 000000000000..009c6529c237 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileGetPropertiesFromTask.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "taskId": "taskId", + "filePath": "wd\\testFile.txt", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "ocp-creation-time": "Fri, 17 Feb 2017 00:00:00 GMT", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT", + "ocp-batch-file-isdirectory": "false", + "Content-Length": "17", + "Content-Type": "application/octet-stream" + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileListFromNode.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileListFromNode.json new file mode 100644 index 000000000000..3dc350f63a2a --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileListFromNode.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "recursive": false + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "shared", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_2-20140919t215614z/files/shared", + "isDirectory": true + }, + { + "name": "startup\\ProcessEnv.cmd", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_2-20140919t215614z/files/startup\\ProcessEnv.cmd", + "isDirectory": false, + "properties": { + "creationTime": "2014-09-19T21:56:17.679195Z", + "lastModified": "2014-09-19T21:56:17.679195Z", + "contentLength": 1813, + "contentType": "application/octet-stream" + } + }, + { + "name": "startup\\stderr.txt", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_2-20140919t215614z/files/startup\\stderr.txt", + "isDirectory": false, + "properties": { + "creationTime": "2014-09-19T21:56:17.5590855Z", + "lastModified": "2014-09-19T21:56:17.5590855Z", + "contentLength": 0, + "contentType": "application/octet-stream" + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileListFromTask.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileListFromTask.json new file mode 100644 index 000000000000..d9a541a363d1 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/FileListFromTask.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "recursive": false + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "startup\\ProcessEnv.cmd", + "url": "https://account.region.batch.azure.com/jobs/jobId/tasks/taskId/files/startup\\ProcessEnv.cmd", + "isDirectory": false, + "properties": { + "creationTime": "2014-09-19T21:56:17.679195Z", + "lastModified": "2014-09-19T21:56:17.679195Z", + "contentLength": 1813, + "contentType": "application/octet-stream" + } + }, + { + "name": "startup\\stderr.txt", + "url": "https://account.region.batch.azure.com/jobs/jobId/tasks/taskId/files/startup\\stderr.txt", + "isDirectory": false, + "properties": { + "creationTime": "2014-09-19T21:56:17.5590855Z", + "lastModified": "2014-09-19T21:56:17.5590855Z", + "contentLength": 0, + "contentType": "application/octet-stream" + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobAdd_Basic.json new file mode 100644 index 000000000000..76a87f08a597 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobAdd_Basic.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "job": { + "id": "jobId", + "priority": 0, + "poolInfo": { + "poolId": "poolId" + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobAdd_Complex.json new file mode 100644 index 000000000000..27c8a480da56 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobAdd_Complex.json @@ -0,0 +1,120 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "job": { + "id": "jobId", + "priority": 100, + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 + }, + "jobManagerTask": { + "id": "taskId", + "commandLine": "myprogram.exe", + "resourceFiles": [ + { + "httpUrl": "http://mystorage1.blob.core.windows.net/scripts/myprogram.exe?sas", + "filePath": "myprogram.exe" + }, + { + "storageContainerUrl": "http://mystorage1.blob.core.windows.net/data?sas", + "filePath": "datafolder" + } + ], + "environmentSettings": [ + { + "name": "myvariable", + "value": "myvalue" + } + ], + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 0, + "retentionTime": "PT1H" + }, + "killJobOnCompletion": false, + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "admin" + } + }, + "runExclusive": true + }, + "poolInfo": { + "autoPoolSpecification": { + "autoPoolIdPrefix": "mypool", + "poolLifetimeOption": "job", + "pool": { + "vmSize": "small", + "cloudServiceConfiguration": { + "osFamily": "4", + "osVersion": "*" + }, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 3, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 2, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "startTask": { + "commandLine": "myprogram2.exe", + "resourceFiles": [ + { + "httpUrl": "http://mystorage1.blob.core.windows.net/scripts/myprogram2.exe?sas", + "filePath": "myprogram2.exe" + } + ], + "environmentSettings": [ + { + "name": "myvariable", + "value": "myvalue" + } + ], + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "admin" + } + }, + "maxTaskRetryCount": 2, + "waitForSuccess": true + }, + "certificateReferences": [ + { + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "thumbprintAlgorithm": "sha1", + "storeLocation": "localmachine", + "storeName": "Root", + "visibility": [ + "task" + ] + } + ], + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] + } + } + }, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobDelete.json new file mode 100644 index 000000000000..efb88cc5bcce --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobDisable.json new file mode 100644 index 000000000000..d2376477bfba --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobDisable.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "jobDisableParameter": { + "disableTasks": "terminate" + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobEnable.json new file mode 100644 index 000000000000..efb88cc5bcce --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobEnable.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobGet.json new file mode 100644 index 000000000000..ac721666ba78 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobGet.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "id": "jobId", + "url": "https://account.region.batch.azure.com/jobs/jobId", + "eTag": "0x8D4100FC49F0278", + "lastModified": "2016-11-19T00:05:27.5391608Z", + "creationTime": "2016-11-19T00:05:25.311915Z", + "state": "completed", + "stateTransitionTime": "2016-11-19T00:05:27.578581Z", + "previousState": "active", + "previousStateTransitionTime": "2016-11-19T00:05:27.2137716Z", + "priority": 0, + "usesTaskDependencies": false, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "poolId" + }, + "executionInfo": { + "startTime": "2016-11-19T00:05:25.3309105Z", + "endTime": "2016-11-19T00:05:27.578581Z", + "poolId": "poolId", + "terminateReason": "UserTerminate" + }, + "onAllTasksComplete": "noaction", + "onTaskFailure": "noaction" + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobGetLifetimeStatistics.json new file mode 100644 index 000000000000..405a2ee392bf --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobGetLifetimeStatistics.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "url": "https://account.region.batch.core.windows.net/lifetimejobstats", + "startTime": "2014-08-01T18:30:00.4345729Z", + "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", + "userCPUTime": "PT0S", + "kernelCPUTime": "PT0S", + "wallClockTime": "PT0S", + "readIOps": 0, + "writeIOps": 0, + "readIOGiB": 10.0, + "writeIOGiB": 5.0, + "numSucceededTasks": 0, + "numFailedTasks": 0, + "numTaskRetries": 0, + "waitTime": "PT0S" + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobGetTaskCounts.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobGetTaskCounts.json new file mode 100644 index 000000000000..89a798fb0fef --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobGetTaskCounts.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "active": 5, + "running": 7, + "completed": 4, + "succeeded": 2, + "failed": 2 + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobList.json new file mode 100644 index 000000000000..4140ad069687 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobList.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jobId", + "url": "https://account.region.batch.azure.com/jobs/jobId", + "eTag": "0x8D4100FC46D5BF4", + "lastModified": "2016-11-19T00:05:27.2137716Z", + "creationTime": "2016-11-19T00:05:25.311915Z", + "state": "active", + "stateTransitionTime": "2016-11-19T00:05:27.2137716Z", + "previousState": "disabled", + "previousStateTransitionTime": "2016-11-19T00:05:26.88777Z", + "priority": 0, + "usesTaskDependencies": false, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "poolId" + }, + "executionInfo": { + "startTime": "2016-11-19T00:05:25.3309105Z", + "poolId": "poolId" + }, + "onAllTasksComplete": "noaction", + "onTaskFailure": "noaction" + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobListFromJobSchedule.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobListFromJobSchedule.json new file mode 100644 index 000000000000..853ce5b6796b --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobListFromJobSchedule.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jobId", + "url": "https://account.region.batch.azure.com/jobs/jobId", + "eTag": "0x8D4100FC46D5BF4", + "lastModified": "2016-11-19T00:05:27.2137716Z", + "creationTime": "2016-11-19T00:05:25.311915Z", + "state": "active", + "stateTransitionTime": "2016-11-19T00:05:27.2137716Z", + "previousState": "disabled", + "previousStateTransitionTime": "2016-11-19T00:05:26.88777Z", + "priority": 0, + "usesTaskDependencies": false, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "poolId" + }, + "executionInfo": { + "startTime": "2016-11-19T00:05:25.3309105Z", + "poolId": "poolId" + }, + "onAllTasksComplete": "noaction", + "onTaskFailure": "noaction" + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobListPreparationAndReleaseTaskStatus.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobListPreparationAndReleaseTaskStatus.json new file mode 100644 index 000000000000..dc89f6b51890 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobListPreparationAndReleaseTaskStatus.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "poolId": "poolId", + "nodeId": "tvm-2167304207_1-20140905t174658z", + "nodeUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_1-20140905t174658z", + "jobPreparationTaskExecutionInfo": { + "state": "completed", + "startTime": "2015-05-01T10:20:31Z", + "endTime": "2015-05-02T20:12:42Z", + "taskRootDirectory": "tasks/myjob/job-1/myjobpreptask", + "taskRootDirectoryUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_1-20140905t174658z/files/tasks/myjob/job-1/myjobpreptask", + "exitCode": 0, + "retryCount": 0 + }, + "jobReleaseTaskExecutionInfo": { + "state": "completed", + "startTime": "2015-05-01T10:20:31Z", + "endTime": "2015-05-02T20:12:42Z", + "taskRootDirectory": "tasks/myjob/job-1/myjobreleasetask", + "taskRootDirectoryUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2167304207_1-20140905t174658z/files/tasks/myjob/job-1/myjobreleasetask", + "exitCode": 0 + } + } + ], + "odata.nextLink": "https://account.region.batch.azure.com/jobs/myjob/jobpreparationandreleasestatus?$skipToken=tvm-2167304207_1-20140905t174658z&api-version=2019-08-01.10.0" + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobPatch.json new file mode 100644 index 000000000000..e7f50e034ed8 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobPatch.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "jobPatchParameter": { + "priority": 100, + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 + }, + "poolInfo": { + "poolId": "poolId" + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleAdd_Basic.json new file mode 100644 index 000000000000..54ea9a95fd66 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleAdd_Basic.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "cloudJobSchedule": { + "id": "jobScheduleId", + "schedule": { + "recurrenceInterval": "PT5M" + }, + "jobSpecification": { + "poolInfo": { + "poolId": "poolId" + } + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleAdd_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleAdd_Complex.json new file mode 100644 index 000000000000..d22f1b0dd441 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleAdd_Complex.json @@ -0,0 +1,128 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "cloudJobSchedule": { + "id": "jobScheduleId", + "schedule": { + "doNotRunUntil": "2014-09-10T02:30:00.000Z", + "doNotRunAfter": "2014-09-10T06:30:00.000Z", + "startWindow": "PT1M", + "recurrenceInterval": "PT5M" + }, + "jobSpecification": { + "priority": 100, + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 + }, + "jobManagerTask": { + "id": "mytask1", + "commandLine": "myprogram.exe", + "resourceFiles": [ + { + "httpUrl": "http://mystorage1.blob.core.windows.net/scripts/myprogram.exe?sas", + "filePath": "myprogram.exe" + }, + { + "httpUrl": "http://mystorage1.blob.core.windows.net/scripts/test.txt?sas", + "filePath": "test.txt" + } + ], + "environmentSettings": [ + { + "name": "myvariable", + "value": "myvalue" + } + ], + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 0, + "retentionTime": "PT1H" + }, + "killJobOnCompletion": true, + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "runExclusive": true + }, + "poolInfo": { + "autoPoolSpecification": { + "autoPoolIdPrefix": "mypool", + "poolLifetimeOption": "jobschedule", + "pool": { + "vmSize": "small", + "cloudServiceConfiguration": { + "osFamily": "4", + "osVersion": "*" + }, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 3, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 2, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "startTask": { + "commandLine": "myprogram2.exe", + "resourceFiles": [ + { + "httpUrl": "http://mystorage1.blob.core.windows.net/scripts/myprogram2.exe?sas", + "filePath": "myprogram2.exe" + } + ], + "environmentSettings": [ + { + "name": "myvariable", + "value": "myvalue" + } + ], + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "admin" + } + }, + "maxTaskRetryCount": 2, + "waitForSuccess": true + }, + "certificateReferences": [ + { + "thumbprint": "0123456789abcdef0123456789abcdef01234567", + "thumbprintAlgorithm": "sha1", + "storeLocation": "localmachine", + "storeName": "Root", + "visibility": [ + "task" + ] + } + ], + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] + } + } + } + }, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleDelete.json new file mode 100644 index 000000000000..61b57238375c --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleDisable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleDisable.json new file mode 100644 index 000000000000..2dd14a6aac6f --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleDisable.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "204": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleEnable.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleEnable.json new file mode 100644 index 000000000000..2dd14a6aac6f --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleEnable.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "204": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleExists.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleExists.json new file mode 100644 index 000000000000..f41f1c884c0d --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleExists.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": {}, + "404": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleGet.json new file mode 100644 index 000000000000..382699ea5393 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleGet.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "id": "jobScheduleId", + "url": "https://account.region.batch.azure.com/jobschedules/jobScheduleId", + "eTag": "0x8D40FFD2E848323", + "lastModified": "2016-11-18T21:52:24.7661347Z", + "creationTime": "2016-11-18T21:52:22.5431125Z", + "state": "completed", + "stateTransitionTime": "2016-11-18T21:52:24.8371778Z", + "previousState": "active", + "previousStateTransitionTime": "2016-11-18T21:52:24.0064874Z", + "jobSpecification": { + "priority": 0, + "usesTaskDependencies": false, + "onAllTasksComplete": "noaction", + "onTaskFailure": "noaction", + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "testPool" + } + }, + "executionInfo": { + "recentJob": { + "url": "https://account.region.batch.azure.com/jobschedules/jobScheduleId:job-1", + "id": "jobScheduleId:job-1" + }, + "endTime": "2016-11-18T21:52:24.8371778Z" + } + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleList.json new file mode 100644 index 000000000000..2d4874c0029f --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleList.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "jobSchedule1", + "url": "https://account.region.batch.azure.com/jobschedules/jobSchedule1", + "eTag": "0x8D40FFD2E10996A", + "lastModified": "2016-11-18T21:52:24.0064874Z", + "creationTime": "2016-11-18T21:52:22.5431125Z", + "state": "active", + "stateTransitionTime": "2016-11-18T21:52:24.0064874Z", + "previousState": "disabled", + "previousStateTransitionTime": "2016-11-18T21:52:23.6471782Z", + "jobSpecification": { + "priority": 0, + "usesTaskDependencies": false, + "onAllTasksComplete": "noaction", + "onTaskFailure": "noaction", + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "poolId" + } + }, + "executionInfo": { + "recentJob": { + "url": "https://account.region.batch.azure.com/jobs/jobSchedule1:job-1", + "id": "jobSchedule1:job-1" + } + } + }, + { + "id": "jobSchedule2", + "url": "https://account.region.batch.azure.com/jobschedules/jobSchedule2", + "eTag": "0x8D40FFCFF760B51", + "lastModified": "2016-11-18T21:51:05.8184017Z", + "creationTime": "2016-11-18T21:51:05.8184017Z", + "state": "active", + "stateTransitionTime": "2016-11-18T21:51:05.8184017Z", + "schedule": { + "doNotRunUntil": "2020-01-01T12:30:00Z" + }, + "jobSpecification": { + "priority": 0, + "usesTaskDependencies": false, + "onAllTasksComplete": "noaction", + "onTaskFailure": "noaction", + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "testPool2" + } + }, + "executionInfo": { + "nextRunTime": "2020-01-01T12:30:00Z" + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobSchedulePatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobSchedulePatch.json new file mode 100644 index 000000000000..9d21bbb7e022 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobSchedulePatch.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "jobSchedulePatchParameter": { + "schedule": { + "doNotRunUntil": "2025-01-01T12:30:00Z" + }, + "jobSpecification": { + "priority": 0, + "usesTaskDependencies": false, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "poolId" + } + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleTerminate.json new file mode 100644 index 000000000000..61b57238375c --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleTerminate.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleUpdate.json new file mode 100644 index 000000000000..4381edba20ed --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobScheduleUpdate.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobScheduleId": "jobScheduleId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "jobScheduleUpdateParameter": { + "schedule": { + "doNotRunUntil": "2025-01-01T12:30:00Z" + }, + "jobSpecification": { + "priority": 0, + "usesTaskDependencies": false, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "poolInfo": { + "poolId": "poolId" + } + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobTerminate.json new file mode 100644 index 000000000000..9ce95c08e928 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobTerminate.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "jobTerminateParameter": { + "terminateReason": "User supplied termination reason" + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobUpdate.json new file mode 100644 index 000000000000..92f88f370163 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/JobUpdate.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "jobUpdateParameter": { + "priority": 100, + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": -1 + }, + "poolInfo": { + "poolId": "poolId" + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeAddUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeAddUser.json new file mode 100644 index 000000000000..2dbcb39a090b --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeAddUser.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161121t182739z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "user": { + "name": "userName", + "isAdmin": false, + "expiryTime": "2017-08-01T00:00:00Z", + "password": "Password" + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeDeleteUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeDeleteUser.json new file mode 100644 index 000000000000..9c3c0d2bf201 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeDeleteUser.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161121t182739z", + "userName": "userName", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeDisableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeDisableScheduling.json new file mode 100644 index 000000000000..4b965fcaa5e1 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeDisableScheduling.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "nodeDisableSchedulingParameter": { + "nodeDisableSchedulingOption": "terminate" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeEnableScheduling.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeEnableScheduling.json new file mode 100644 index 000000000000..7b9607e580a4 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeEnableScheduling.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeGetRemoteDesktop.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeGetRemoteDesktop.json new file mode 100644 index 000000000000..3819b9de0358 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeGetRemoteDesktop.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161121t182739z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeGetRemoteLoginSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeGetRemoteLoginSettings.json new file mode 100644 index 000000000000..ce99ea41c920 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeGetRemoteLoginSettings.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161121t182739z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "remoteLoginIPAddress": "1.1.1.1", + "remoteLoginPort": 50000 + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeGet_Basic.json new file mode 100644 index 000000000000..72b9ea4f00c2 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeGet_Basic.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "poolId": "poolId", + "nodeId": "tvm-1695681911_2-20161122t193202z", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "id": "tvm-1695681911_2-20161122t193202z", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-1695681911_2-20161122t193202z", + "state": "idle", + "schedulingState": "enabled", + "stateTransitionTime": "2016-11-22T19:37:31.4285526Z", + "lastBootTime": "2016-11-22T19:37:28.623369Z", + "allocationTime": "2016-11-22T19:32:02.8155319Z", + "ipAddress": "1.1.1.1", + "affinityId": "TVM:tvm-1695681911_2-20161122t193202z", + "vmSize": "small", + "totalTasksRun": 0, + "totalTasksSucceeded": 0, + "runningTasksCount": 0, + "isDedicated": true, + "startTask": { + "commandLine": "cmd /c echo hello", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": false + }, + "startTaskInfo": { + "state": "completed", + "startTime": "2016-11-22T19:37:31.4285526Z", + "endTime": "2016-11-22T19:37:31.838028Z", + "exitCode": 0, + "retryCount": 0 + }, + "nodeAgentInfo": { + "version": "1.2.0.0", + "lastUpdateTime": "2016-11-22T19:37:28.623369Z" + } + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeList.json new file mode 100644 index 000000000000..b37e956fc4fe --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeList.json @@ -0,0 +1,131 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "tvm-1695681911_1-20161122t193202z", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-1695681911_1-20161122t193202z", + "state": "idle", + "schedulingState": "enabled", + "stateTransitionTime": "2016-11-22T22:22:27.2236818Z", + "lastBootTime": "2016-11-22T22:22:24.4634125Z", + "allocationTime": "2016-11-22T19:32:02.8155319Z", + "ipAddress": "1.1.1.1", + "affinityId": "TVM:tvm-1695681911_1-20161122t193202z", + "vmSize": "small", + "totalTasksRun": 0, + "totalTasksSucceeded": 0, + "runningTasksCount": 0, + "isDedicated": true, + "startTask": { + "commandLine": "cmd /c echo hello", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": false + }, + "startTaskInfo": { + "state": "completed", + "startTime": "2016-11-22T22:22:27.2236818Z", + "endTime": "2016-11-22T22:22:27.567189Z", + "exitCode": 0, + "retryCount": 0 + }, + "nodeAgentInfo": { + "version": "1.2.0.0", + "lastUpdateTime": "2016-11-22T22:22:24.4634125Z" + } + }, + { + "id": "tvm-1695681911_2-20161122t193202z", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-1695681911_2-20161122t193202z", + "state": "idle", + "schedulingState": "enabled", + "stateTransitionTime": "2016-11-22T19:37:31.4285526Z", + "lastBootTime": "2016-11-22T19:37:28.623369Z", + "allocationTime": "2016-11-22T19:32:02.8155319Z", + "ipAddress": "1.1.1.1", + "affinityId": "TVM:tvm-1695681911_2-20161122t193202z", + "vmSize": "small", + "totalTasksRun": 0, + "totalTasksSucceeded": 0, + "runningTasksCount": 0, + "isDedicated": true, + "startTask": { + "commandLine": "cmd /c echo hello", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": false + }, + "startTaskInfo": { + "state": "completed", + "startTime": "2016-11-22T19:37:31.4285526Z", + "endTime": "2016-11-22T19:37:31.838028Z", + "exitCode": 0, + "retryCount": 0 + }, + "nodeAgentInfo": { + "version": "1.2.0.0", + "lastUpdateTime": "2016-11-22T22:22:24.4634125Z" + } + }, + { + "id": "tvm-1695681911_3-20161122t193202z", + "url": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-1695681911_3-20161122t193202z", + "state": "idle", + "schedulingState": "enabled", + "stateTransitionTime": "2016-11-22T19:36:51.0013378Z", + "lastBootTime": "2016-11-22T19:36:48.21721Z", + "allocationTime": "2016-11-22T19:32:02.8155319Z", + "ipAddress": "1.1.1.1", + "affinityId": "TVM:tvm-1695681911_3-20161122t193202z", + "vmSize": "small", + "totalTasksRun": 0, + "totalTasksSucceeded": 0, + "runningTasksCount": 0, + "isDedicated": true, + "startTask": { + "commandLine": "cmd /c echo hello", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": false + }, + "startTaskInfo": { + "state": "completed", + "startTime": "2016-11-22T19:36:51.0013378Z", + "endTime": "2016-11-22T19:36:51.2363447Z", + "exitCode": 0, + "retryCount": 0 + }, + "nodeAgentInfo": { + "version": "1.2.0.0", + "lastUpdateTime": "2016-11-22T22:22:24.4634125Z" + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeReboot.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeReboot.json new file mode 100644 index 000000000000..08203231735b --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeReboot.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "nodeRebootParameter": { + "nodeRebootOption": "terminate" + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeReimage.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeReimage.json new file mode 100644 index 000000000000..e8f4c68e3fe7 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeReimage.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161122t193202z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "nodeReimageParameter": { + "nodeReimageOption": "terminate" + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeUpdateUser.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeUpdateUser.json new file mode 100644 index 000000000000..50a27f9f2848 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeUpdateUser.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161121t182739z", + "userName": "userName", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "nodeUpdateUserParameter": { + "password": "12345", + "expiryTime": "2016-11-27T00:45:48.7320857Z" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeUploadBatchServiceLogs.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeUploadBatchServiceLogs.json new file mode 100644 index 000000000000..b42b6b733935 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/NodeUploadBatchServiceLogs.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "nodeId": "tvm-1695681911_1-20161121t182739z", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "uploadBatchServiceLogsConfiguration": { + "containerUrl": "https://somestorageacct.blob.core.windows.net/batch-compute-node-logs?se=2017-12-09T18%3A51%3A00Z&sp=w&sv=2016-05-31&sr=c&sig", + "startTime": "2017-11-27T00:00:00Z" + } + }, + "responses": { + "200": { + "body": { + "virtualDirectoryName": "poolId/tvm-1695681911-1-20161121t182739z/0795539d-82fe-48e3-bbff-2964905b6de0", + "numberOfFilesUploaded": 8 + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolAdd_CloudServiceConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolAdd_CloudServiceConfiguration.json new file mode 100644 index 000000000000..acc39d97c943 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolAdd_CloudServiceConfiguration.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "pool": { + "id": "poolId", + "vmSize": "small", + "cloudServiceConfiguration": { + "osFamily": "4" + }, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] + } + }, + "responses": { + "201": { + "request-id": "00000000-0000-0000-0000-000000000000", + "ETag": "0x8D45765A6A2DC04", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolAdd_MountConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolAdd_MountConfiguration.json new file mode 100644 index 000000000000..904c395240b4 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolAdd_MountConfiguration.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-data": "Fri, 17 Feb 2017 00:00:00 GMT", + "pool": { + "id": "pool2", + "vmSize": "standard_a1", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "UbuntuServer", + "sku": "16.04.0-LTS" + }, + "nodeAgentSKUId": "batch.node.ubuntu 16.04" + }, + "mountConfiguration": [ + { + "azureBlobFileSystemConfiguration": { + "accountName": "accountName", + "containerName": "blobContainerName", + "accountKey": "accountKey", + "relativeMountPath": "bfusepath" + } + }, + { + "azureFileShareConfiguration": { + "accountName": "accountName", + "azureFileUrl": "https://myaccount.file.core.windows.net/fileshare", + "accountKey": "accountKey", + "relativeMountPath": "filesharepath", + "mountOptions": "mount options ver=1.0" + } + }, + { + "nfsMountConfiguration": { + "source": "somesource nfs url", + "relativeMountPath": "mountpath", + "mountOptions": "mount options ver=1.0" + } + }, + { + "cifsMountConfiguration": { + "username": "accountName", + "password": "password", + "source": "//myaccount.file.core.windows.net/file", + "relativeMountPath": "mountpath", + "mountOptions": "mount options ver=1.0" + } + } + ], + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "enableAutoScale": false + } + }, + "responses": { + "201": { + "request-id": "00000000-0000-0000-0000-000000000000", + "ETag": "0x8D45765A6A2DC04", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolAdd_VirtualMachineConfiguration.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolAdd_VirtualMachineConfiguration.json new file mode 100644 index 000000000000..870ea6d10f7e --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolAdd_VirtualMachineConfiguration.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "pool": { + "id": "pool2", + "vmSize": "standard_a1", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "UbuntuServer", + "sku": "16.04.0-LTS" + }, + "nodeAgentSKUId": "batch.node.ubuntu 16.04" + }, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "enableAutoScale": false, + "enableInterNodeCommunication": true, + "metadata": [ + { + "name": "myproperty", + "value": "myvalue" + } + ] + } + }, + "responses": { + "201": { + "request-id": "00000000-0000-0000-0000-000000000000", + "ETag": "0x8D45765A6A2DC04", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json new file mode 100644 index 000000000000..471ffe2ebb55 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolAdd_VirtualMachineConfigurationWithContainers.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "pool": { + "id": "pool2", + "vmSize": "standard_a1", + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "UbuntuServer", + "sku": "16.04.0-LTS" + }, + "nodeAgentSKUId": "batch.node.ubuntu 16.04", + "containerConfiguration": { + "type": "dockerCompatible", + "containerImageNames": [ + "busybox" + ] + } + }, + "resizeTimeout": "PT15M", + "targetDedicatedNodes": 5, + "targetLowPriorityNodes": 0, + "maxTasksPerNode": 3, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "enableAutoScale": false + } + }, + "responses": { + "201": { + "request-id": "00000000-0000-0000-0000-000000000000", + "ETag": "0x8D45765A6A2DC04", + "Last-Modified": "Fri, 17 Feb 2017 00:00:00 GMT" + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolDelete.json new file mode 100644 index 000000000000..6d55c3c47372 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolDisableAutoScale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolDisableAutoScale.json new file mode 100644 index 000000000000..ffb6ba2b31b0 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolDisableAutoScale.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolEnableAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolEnableAutoscale.json new file mode 100644 index 000000000000..f04251501d79 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolEnableAutoscale.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "poolEnableAutoScaleParameter": { + "autoScaleFormula": "$TargetDedicated=0", + "autoScaleEvaluationInterval": "PT8M" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolEvaluateAutoscale.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolEvaluateAutoscale.json new file mode 100644 index 000000000000..58e71301c449 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolEvaluateAutoscale.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "poolEvaluateAutoScaleParameter": { + "autoScaleFormula": "$TargetDedicated=1" + } + }, + "responses": { + "200": { + "body": { + "timestamp": "2016-11-22T19:39:28.5246331Z", + "results": "$TargetDedicated=1;$NodeDeallocationOption=requeue" + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolExists.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolExists.json new file mode 100644 index 000000000000..c10ff8f72b2b --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolExists.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": {}, + "404": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolGetLifetimeStatistics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolGetLifetimeStatistics.json new file mode 100644 index 000000000000..5340f9d18894 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolGetLifetimeStatistics.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "url": "https://account.region.batch.core.windows.net/lifetimepoolstats", + "startTime": "2014-08-01T18:30:00.4345729Z", + "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", + "usageStats": { + "startTime": "2014-08-01T18:30:00.4345729Z", + "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", + "dedicatedCoreTime": "PT0S" + }, + "resourceStats": { + "startTime": "2014-08-01T18:30:00.4345729Z", + "lastUpdateTime": "2014-08-04T18:30:00.4345729Z", + "avgCPUPercentage": 40.0, + "avgMemoryGiB": 2.0, + "peakMemoryGiB": 4.0, + "avgDiskGiB": 125.0, + "peakDiskGiB": 240.0, + "diskReadIOps": 0, + "diskWriteIOps": 0, + "diskReadGiB": 10.0, + "diskWriteGiB": 1.0, + "networkReadGiB": 20.0, + "networkWriteGiB": 25.0 + } + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolGet_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolGet_Basic.json new file mode 100644 index 000000000000..3b5732a75c7f --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolGet_Basic.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "pool", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "id": "pool", + "url": "https://account.region.batch.azure.com/pools/pool", + "eTag": "0x8D413091E739A56", + "lastModified": "2016-11-22T18:55:25.2608598Z", + "creationTime": "2016-11-22T18:55:24.2632496Z", + "state": "active", + "stateTransitionTime": "2016-11-22T18:55:24.2632496Z", + "allocationState": "steady", + "allocationStateTransitionTime": "2016-11-22T18:55:24.8154041Z", + "vmSize": "standard_a1", + "resizeTimeout": "PT15M", + "currentDedicatedNodes": 0, + "currentLowPriorityNodes": 0, + "targetDedicatedNodes": 0, + "targetLowPriorityNodes": 0, + "enableAutoScale": false, + "enableInterNodeCommunication": false, + "startTask": { + "commandLine": "/bin/bash -c 'echo start task'", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": false + }, + "maxTasksPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "virtualMachineConfiguration": { + "imageReference": { + "publisher": "Canonical", + "offer": "UbuntuServer", + "sku": "16.04.0-LTS", + "version": "latest" + }, + "nodeAgentSKUId": "batch.node.ubuntu 16.04" + } + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolListUsageMetrics.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolListUsageMetrics.json new file mode 100644 index 000000000000..8388fbf9d710 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolListUsageMetrics.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "startTime": "2013-04-01T00:00:00Z", + "endTime": "2013-04-01T00:30:00Z", + "poolId": "p1", + "vmSize": "a1", + "totalCoreHours": 39.384838 + }, + { + "startTime": "2013-04-01T00:30:00Z", + "endTime": "2013-04-01T01:00:00Z", + "poolId": "p2", + "vmSize": "a8", + "totalCoreHours": 3039.384838 + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolList_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolList_Basic.json new file mode 100644 index 000000000000..4b273d031029 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolList_Basic.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "testPool", + "url": "https://accountname.region.batch.azure.com/pools/testPool", + "eTag": "0x8D4123BEF87D233", + "lastModified": "2016-11-21T18:26:39.7108787Z", + "creationTime": "2016-11-21T18:26:39.7108787Z", + "state": "active", + "stateTransitionTime": "2016-11-21T18:26:39.7108787Z", + "allocationState": "steady", + "allocationStateTransitionTime": "2016-11-21T18:27:40.287803Z", + "vmSize": "small", + "resizeTimeout": "PT15M", + "currentDedicatedNodes": 3, + "currentLowPriorityNodes": 0, + "targetDedicatedNodes": 3, + "targetLowPriorityNodes": 0, + "enableAutoScale": false, + "enableInterNodeCommunication": false, + "startTask": { + "commandLine": "cmd /c echo hello", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "maxTaskRetryCount": 0, + "waitForSuccess": false + }, + "maxTasksPerNode": 1, + "taskSchedulingPolicy": { + "nodeFillType": "spread" + }, + "cloudServiceConfiguration": { + "osFamily": "4", + "osVersion": "*" + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolPatch.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolPatch.json new file mode 100644 index 000000000000..7bb1453fc5a2 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolPatch.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "poolPatchParameter": { + "startTask": { + "commandLine": "/bin/bash -c 'echo start task'" + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolRemoveNodes.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolRemoveNodes.json new file mode 100644 index 000000000000..e785e9d5b8cc --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolRemoveNodes.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "nodeRemoveParameter": { + "nodeList": [ + "tvm-1695681911_1-20161122t224741z", + "tvm-1695681911_2-20161122t224741z" + ] + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolResize.json new file mode 100644 index 000000000000..453ad670f7ac --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolResize.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "resizePool", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "poolResizeParameter": { + "targetDedicatedNodes": 1, + "targetLowPriorityNodes": 0 + } + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolStopResize.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolStopResize.json new file mode 100644 index 000000000000..6d55c3c47372 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolStopResize.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "202": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolUpdate.json new file mode 100644 index 000000000000..6f2f5bde4e86 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/PoolUpdate.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "poolId": "poolId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "poolUpdatePropertiesParameter": { + "startTask": { + "commandLine": "/bin/bash -c 'echo start task'" + }, + "certificateReferences": [], + "applicationPackageReferences": [], + "metadata": [] + } + }, + "responses": { + "204": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAddCollection_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAddCollection_Basic.json new file mode 100644 index 000000000000..441c32588adb --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAddCollection_Basic.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "taskCollection": { + "value": [ + { + "id": "simple1", + "commandLine": "cmd /c dir /s" + }, + { + "id": "simple2", + "commandLine": "cmd /c dir /s" + } + ] + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "status": "success", + "taskId": "simple1", + "eTag": "0x8D3D623CD661246", + "lastModified": "2016-09-06T07:02:44.7589958Z", + "location": "https://account.region.batch.azure.com/jobs/jobId/tasks/simple1" + }, + { + "status": "success", + "taskId": "simple2", + "eTag": "0x8D3D623CD7072CC", + "lastModified": "2016-09-06T07:02:44.8270028Z", + "location": "https://account.region.batch.azure.com/jobs/jobId/tasks/simple2" + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAddCollection_Complex.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAddCollection_Complex.json new file mode 100644 index 000000000000..cbf4547d1dc3 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAddCollection_Complex.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "taskCollection": { + "value": [ + { + "id": "complex1", + "commandLine": "cmd /c dir /s", + "resourceFiles": [ + { + "autoStorageContainerName": "containerName", + "filePath": "data" + } + ], + "environmentSettings": [ + { + "name": "env1", + "value": "value1" + }, + { + "name": "env2", + "value": "value2" + } + ], + "affinityInfo": { + "affinityId": "affinityId" + }, + "constraints": { + "maxWallClockTime": "P1D", + "retentionTime": "P2D", + "maxTaskRetryCount": 5 + }, + "multiInstanceSettings": { + "numberOfInstances": 3, + "coordinationCommandLine": "cmd /c echo coordinating", + "commonResourceFiles": [ + { + "httpUrl": "https://common.blob.core.windows.net/", + "filePath": "common.exe" + } + ] + } + }, + { + "id": "simple3", + "commandLine": "cmd /c dir /s" + } + ] + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "taskId": "simple3", + "status": "success", + "eTag": "0x8D3D623CE295629", + "lastModified": "2016-09-06T07:02:46.0386857Z", + "location": "https://account.region.batch.azure.com/jobs/jobId/tasks/simple3" + }, + { + "taskId": "complex1", + "status": "success", + "eTag": "0x8D3D623CE29A412", + "lastModified": "2016-09-06T07:02:46.0406802Z", + "location": "https://account.region.batch.azure.com/jobs/jobId/tasks/complex1" + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAdd_Basic.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAdd_Basic.json new file mode 100644 index 000000000000..58baf28af916 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAdd_Basic.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "task": { + "id": "task1", + "commandLine": "cmd /c echo task1" + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAdd_ContainerSettings.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAdd_ContainerSettings.json new file mode 100644 index 000000000000..fe9ef95233bf --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAdd_ContainerSettings.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "task": { + "id": "taskId", + "commandLine": "bash -c 'echo hello'", + "containerSettings": { + "imageName": "ubuntu", + "containerRunOptions": "--rm" + }, + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAdd_ExitConditions.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAdd_ExitConditions.json new file mode 100644 index 000000000000..60e606c7c17b --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskAdd_ExitConditions.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "task": { + "id": "taskId", + "commandLine": "cmd /c exit 3", + "exitConditions": { + "exitCodeRanges": [ + { + "start": 2, + "end": 4, + "exitOptions": { + "jobAction": "terminate" + } + } + ] + }, + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + } + } + }, + "responses": { + "201": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskDelete.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskDelete.json new file mode 100644 index 000000000000..815e09c4b7aa --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskGet.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskGet.json new file mode 100644 index 000000000000..c78aba329a8d --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskGet.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "id": "testTask", + "url": "https://account.region.batch.azure.com/jobs/jobId/tasks/taskId", + "eTag": "0x8D3D62350711C55", + "creationTime": "2016-09-06T06:59:15.1161429Z", + "lastModified": "2016-09-06T06:59:15.1161429Z", + "state": "active", + "stateTransitionTime": "2016-09-06T06:59:15.1161429Z", + "commandLine": "cmd /c hostname", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "multiInstanceSettings": { + "numberOfInstances": 3, + "coordinationCommandLine": "cmd /c echo coordinating" + }, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "retentionTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "executionInfo": { + "retryCount": 0, + "requeueCount": 0 + } + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskList.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskList.json new file mode 100644 index 000000000000..0a6857c07b1e --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskList.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "task1", + "url": "https://account.region.batch.azure.com/jobs/jobId/tasks/task1", + "eTag": "0x8D4125FD1A825A4", + "creationTime": "2016-11-21T22:43:31.4733476Z", + "lastModified": "2016-11-21T22:43:31.4733476Z", + "state": "active", + "stateTransitionTime": "2016-11-21T22:43:31.4733476Z", + "commandLine": "cmd /c echo task1", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "retentionTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 0 + }, + "executionInfo": { + "retryCount": 0, + "requeueCount": 0 + } + }, + { + "id": "task2", + "url": "https://account.region.batch.azure.com/jobs/jobId/tasks/task2", + "eTag": "0x8D4125FD2153345", + "creationTime": "2016-11-21T22:43:31.6736345Z", + "lastModified": "2016-11-21T22:43:32.1880389Z", + "state": "active", + "stateTransitionTime": "2016-11-21T22:43:31.6736345Z", + "commandLine": "cmd /c echo task2", + "userIdentity": { + "autoUser": { + "scope": "task", + "elevationLevel": "nonadmin" + } + }, + "constraints": { + "maxWallClockTime": "P10675199DT2H48M5.4775807S", + "retentionTime": "P10675199DT2H48M5.4775807S", + "maxTaskRetryCount": 3 + }, + "executionInfo": { + "retryCount": 0, + "requeueCount": 0 + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskListSubtasks.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskListSubtasks.json new file mode 100644 index 000000000000..59c8c9c1c84a --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskListSubtasks.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": 1, + "startTime": "2016-09-06T06:59:16.3139271Z", + "endTime": "2016-09-06T06:59:20.0242024Z", + "state": "completed", + "stateTransitionTime": "2016-09-06T06:59:20.0242024Z", + "previousState": "running", + "previousStateTransitionTime": "2016-09-06T06:59:16.3139271Z", + "exitCode": 0, + "nodeInfo": { + "affinityId": "TVM:tvm-2544493925_3-20160905t051718z", + "nodeUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2544493925_3-20160905t051718z", + "poolId": "mpiPool", + "nodeId": "tvm-2544493925_3-20160905t051718z", + "taskRootDirectory": "\\workitems\\jobId\\job-1\\taskId\\1", + "taskRootDirectoryUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2544493925_3-20160905t051718z/files//workitems/jobId/job-1/taskId/1" + } + }, + { + "id": 2, + "startTime": "2016-09-06T06:59:16.9702844Z", + "state": "running", + "stateTransitionTime": "2016-09-06T06:59:16.9702844Z", + "nodeInfo": { + "affinityId": "TVM:tvm-2544493925_2-20160905t051718z", + "nodeUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2544493925_2-20160905t051718z", + "poolId": "mpiPool", + "nodeId": "tvm-2544493925_2-20160905t051718z", + "taskRootDirectory": "\\workitems\\jobId\\job-1\\taskId\\2", + "taskRootDirectoryUrl": "https://account.region.batch.azure.com/pools/poolId/nodes/tvm-2544493925_2-20160905t051718z/files//workitems/jobId/job-1/taskId/2" + } + } + ] + } + } + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskReactivate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskReactivate.json new file mode 100644 index 000000000000..037b719d7619 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskReactivate.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "204": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskTerminate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskTerminate.json new file mode 100644 index 000000000000..037b719d7619 --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskTerminate.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT" + }, + "responses": { + "204": {} + } +} diff --git a/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskUpdate.json b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskUpdate.json new file mode 100644 index 000000000000..fd020a4359ec --- /dev/null +++ b/specification/batch/data-plane/Microsoft.Batch/stable/2019-08-01.10.0/examples/TaskUpdate.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "batchUrl": "account.region.batch.azure.com", + "api-version": "2019-08-01.10.0", + "jobId": "jobId", + "taskId": "taskId", + "client-request-id": "00000000-0000-0000-0000-000000000000", + "ocp-date": "Fri, 17 Feb 2017 00:00:00 GMT", + "taskUpdateParameter": { + "constraints": { + "maxWallClockTime": "PT1H", + "maxTaskRetryCount": 3, + "retentionTime": "PT1H" + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/batch/data-plane/readme.go.md b/specification/batch/data-plane/readme.go.md index b1c62e2a22ae..97a9240d60c4 100644 --- a/specification/batch/data-plane/readme.go.md +++ b/specification/batch/data-plane/readme.go.md @@ -18,6 +18,16 @@ batch: - tag: package-2018-08.7.0 - tag: package-2018-12.8.0 - tag: package-2019-06.9.0 + - tag: package-2019-08.10.0 +``` + +### Tag: package-2019-08.10.0 and go + +These settings apply only when `--tag=package-2019-06.9.0 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag)=='package-2019-08.10.0' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/2019-08-01.10.0/$(namespace) ``` ### Tag: package-2019-06.9.0 and go diff --git a/specification/batch/data-plane/readme.md b/specification/batch/data-plane/readme.md index cd89c2e2a8fe..399ab6d11296 100644 --- a/specification/batch/data-plane/readme.md +++ b/specification/batch/data-plane/readme.md @@ -26,7 +26,16 @@ These are the global settings for the Batch API. ``` yaml openapi-type: data-plane -tag: package-2019-06.9.0 +tag: package-2019-08.10.0 +``` + +### Tag: package-2019-08.10.0 + +These settings apply only when `--tag=package-2019-08.10.0` is specified on the command line. + +``` yaml $(tag) == 'package-2019-08.10.0' +input-file: +- Microsoft.Batch/stable/2019-08-01.10.0/BatchService.json ``` ### Tag: package-2019-06.9.0 @@ -329,3 +338,39 @@ java: payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-batch ``` + +## 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.Batch/stable/2019-08-01.10.0/BatchService.json + - $(this-folder)/Microsoft.Batch/stable/2019-06-01.9.0/BatchService.json + - $(this-folder)/Microsoft.Batch/stable/2018-12-01.8.0/BatchService.json + - $(this-folder)/Microsoft.Batch/stable/2018-08-01.7.0/BatchService.json + - $(this-folder)/Microsoft.Batch/stable/2018-03-01.6.1/BatchService.json + - $(this-folder)/Microsoft.Batch/stable/2017-09-01.6.0/BatchService.json + - $(this-folder)/Microsoft.Batch/stable/2017-06-01.5.1/BatchService.json + - $(this-folder)/Microsoft.Batch/stable/2017-05-01.5.0/BatchService.json + - $(this-folder)/Microsoft.Batch/stable/2017-01-01.4.0/BatchService.json + - $(this-folder)/Microsoft.Batch/stable/2016-07-01.3.1/BatchService.json + - $(this-folder)/Microsoft.Batch/stable/2016-02-01.3.0/BatchService.json + - $(this-folder)/Microsoft.Batch/stable/2015-12-01.2.2/BatchService.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/batch/data-plane/readme.nodejs.md b/specification/batch/data-plane/readme.nodejs.md index bfa69d5ebf73..153fd930a812 100644 --- a/specification/batch/data-plane/readme.nodejs.md +++ b/specification/batch/data-plane/readme.nodejs.md @@ -6,6 +6,7 @@ Please also specify `--node-sdks-folder=`. + +``` yaml $(tag) == 'package-2019-08' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2019-08-01/$(namespace) +``` + +### Tag: package-2019-04 and go + +These settings apply only when `--tag=package-2019-04 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2019-04' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2019-04-01/$(namespace) +``` + ### Tag: package-2018-12 and go These settings apply only when `--tag=package-2018-12 --go` is specified on the command line. diff --git a/specification/batch/resource-manager/readme.md b/specification/batch/resource-manager/readme.md index 45918b60c2d9..a8d86ed9acdd 100644 --- a/specification/batch/resource-manager/readme.md +++ b/specification/batch/resource-manager/readme.md @@ -26,9 +26,17 @@ These are the global settings for the Batch API. ``` yaml openapi-type: arm -tag: package-2019-04 +tag: package-2019-08 ``` +### Tag: package-2019-08 + +These settings apply only when `--tag=package-2019-08` is specified on the command line. + +```yaml $(tag) == 'package-2019-08' +input-file: + - Microsoft.Batch/stable/2019-08-01/BatchManagement.json +``` ### Tag: package-2019-04 @@ -38,6 +46,7 @@ These settings apply only when `--tag=package-2019-04` is specified on the comma input-file: - Microsoft.Batch/stable/2019-04-01/BatchManagement.json ``` + ### Tag: package-2018-12 These settings apply only when `--tag=package-2018-12` is specified on the command line. @@ -131,6 +140,7 @@ 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 @@ -153,7 +163,7 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.Batch payload-flattening-threshold: 1 - output-folder: $(csharp-sdks-folder)/Batch/Management/Management.Batch/Generated + output-folder: $(csharp-sdks-folder)/batch/Microsoft.Azure.Management.Batch/src/Generated clear-output-folder: true ``` @@ -239,3 +249,34 @@ generate-interface: 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)/Microsoft.Batch/stable/2019-08-01/BatchManagement.json + - $(this-folder)/Microsoft.Batch/stable/2019-04-01/BatchManagement.json + - $(this-folder)/Microsoft.Batch/stable/2018-12-01/BatchManagement.json + - $(this-folder)/Microsoft.Batch/stable/2017-09-01/BatchManagement.json + - $(this-folder)/Microsoft.Batch/stable/2017-05-01/BatchManagement.json + - $(this-folder)/Microsoft.Batch/stable/2017-01-01/BatchManagement.json + - $(this-folder)/Microsoft.Batch/stable/2015-12-01/BatchManagement.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/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PutFileServer.json b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PutFileServer.json index 1b3154d420e0..f511bcdaa541 100644 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PutFileServer.json +++ b/specification/batchai/resource-manager/Microsoft.BatchAI/preview/2017-09-01-preview/examples/PutFileServer.json @@ -24,7 +24,7 @@ }, "responses": { "200": { - "parameters": { + "body": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b", "name": "demo_nfs", "type": "Microsoft.BatchAI/FileServers", diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PutFileServer.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PutFileServer.json index 19986c09970c..f319ee74030f 100644 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PutFileServer.json +++ b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-03-01/examples/PutFileServer.json @@ -24,7 +24,7 @@ }, "responses": { "200": { - "parameters": { + "body": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/fileservers/fileservercedd134b", "name": "demo_nfs", "type": "Microsoft.BatchAI/FileServers", diff --git a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutFileServer.json b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutFileServer.json index 86208593a021..e11fd4ec53b0 100644 --- a/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutFileServer.json +++ b/specification/batchai/resource-manager/Microsoft.BatchAI/stable/2018-05-01/examples/PutFileServer.json @@ -24,7 +24,7 @@ }, "responses": { "200": { - "parameters": { + "body": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.BatchAI/workspaces/demo_workspace/fileservers/fileservercedd134b", "name": "demo_nfs", "type": "Microsoft.BatchAI/FileServers", diff --git a/specification/batchai/resource-manager/readme.md b/specification/batchai/resource-manager/readme.md index 15d120a5b5b0..446e40b4458d 100644 --- a/specification/batchai/resource-manager/readme.md +++ b/specification/batchai/resource-manager/readme.md @@ -66,6 +66,7 @@ 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 @@ -181,3 +182,30 @@ java: regenerate-manager: true generate-interface: 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)/Microsoft.BatchAI/preview/2017-09-01-preview/BatchAI.json + - $(this-folder)/Microsoft.BatchAI/stable/2018-03-01/BatchAI.json + - $(this-folder)/Microsoft.BatchAI/stable/2018-05-01/BatchAI.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/billing/resource-manager/Microsoft.Billing/preview/2017-02-27-preview/examples/InvoicesExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2017-02-27-preview/examples/InvoicesExpand.json index 6c8bbfc5a30c..986377cc6b64 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2017-02-27-preview/examples/InvoicesExpand.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2017-02-27-preview/examples/InvoicesExpand.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2017-02-27", "subscriptionId": "subid", - "$top": "1", + "$top": 1, "$filter": "invoicePeriodStartDate le 2017-02-01", "$expand": "downloadUrl" }, diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2017-04-24-preview/examples/InvoicesExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2017-04-24-preview/examples/InvoicesExpand.json index e8dd72ba9303..0e33bd95ca03 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2017-04-24-preview/examples/InvoicesExpand.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2017-04-24-preview/examples/InvoicesExpand.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2017-04-24-preview", "subscriptionId": "subid", - "$top": "1", + "$top": 1, "$filter": "invoicePeriodEndDate le 2017-02-01", "$expand": "downloadUrl" }, diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json index 9d0f890cf182..4c0327656ae6 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json @@ -33,7 +33,7 @@ } }, "operationId": "BillingAccounts_List", - "description": "Lists all billing accounts for a user which he has access to.", + "description": "Lists all billing accounts for which a user has access.", "parameters": [ { "$ref": "#/parameters/apiVersionParameter" @@ -59,6 +59,9 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -368,6 +371,9 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } }, "post": { @@ -538,6 +544,108 @@ } } }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers": { + "get": { + "tags": [ + "Customers" + ], + "x-ms-examples": { + "CustomersListByBillingAccountName": { + "$ref": "./examples/CustomersListByBillingAccountName.json" + } + }, + "operationId": "Customers_ListByBillingAccountName", + "description": "Lists all customers which the current user can work with on-behalf of a partner.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "$filter", + "description": "May be used to filter using hasPermission('{permissionId}') to only return customers for which the caller has the specified permission.", + "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" + } + ], + "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": "Get the customer by id.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand enabledAzureSkus, 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}/invoiceSections": { "get": { "tags": [ @@ -552,7 +660,7 @@ } }, "operationId": "InvoiceSections_ListByBillingAccountName", - "description": "Lists all invoice sections for a user which he has access to.", + "description": "Lists all invoice sections for which a user has access.", "parameters": [ { "$ref": "#/parameters/apiVersionParameter" @@ -656,7 +764,7 @@ } }, "operationId": "InvoiceSections_ListByBillingProfileName", - "description": "Lists all invoice sections under a billing profile for a user which he has access to.", + "description": "Lists all invoice sections under a billing profile for which a user has access.", "parameters": [ { "$ref": "#/parameters/apiVersionParameter" @@ -681,6 +789,9 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -727,6 +838,9 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -853,7 +967,7 @@ } }, "operationId": "Departments_ListByBillingAccountName", - "description": "Lists all departments for a user which he has access to.", + "description": "Lists all departments for which a user has access.", "parameters": [ { "$ref": "#/parameters/apiVersionParameter" @@ -889,6 +1003,9 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -962,7 +1079,7 @@ } }, "operationId": "EnrollmentAccounts_ListByBillingAccountName", - "description": "Lists all Enrollment Accounts for a user which he has access to.", + "description": "Lists all Enrollment Accounts for which a user has access.", "parameters": [ { "$ref": "#/parameters/apiVersionParameter" @@ -998,6 +1115,9 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -1104,6 +1224,9 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -1229,6 +1352,9 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -1355,6 +1481,99 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions": { + "get": { + "tags": [ + "BillingSubscriptions" + ], + "operationId": "BillingSubscriptions_ListByCustomerName", + "description": "Lists billing subscription by customer name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "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}/billingSubscriptions/{billingSubscriptionName}": { + "get": { + "tags": [ + "BillingSubscriptions" + ], + "operationId": "BillingSubscriptions_GetByCustomerName", + "description": "Get a single billing subscription by name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "BillingSubscriptionByCustomerName": { + "$ref": "./examples/BillingSubscriptionByCustomerName.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + }, + { + "$ref": "#/parameters/billingSubscriptionNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingSubscriptionSummary" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } } }, @@ -1397,6 +1616,9 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -1651,6 +1873,9 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -1944,6 +2169,78 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/transactions": { + "get": { + "tags": [ + "Transactions" + ], + "operationId": "Transactions_ListByCustomerName", + "description": "Lists the transactions by invoice section name for given start date and end date.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "TransactionsListByCustomer": { + "$ref": "./examples/TransactionsListByCustomer.json" + }, + "ReservationTransactionsListByCustomer": { + "$ref": "./examples/ReservationTransactionsListByCustomer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "startDate", + "in": "query", + "description": "Start date", + "required": true, + "type": "string" + }, + { + "name": "endDate", + "in": "query", + "description": "End date", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "description": "May be used to filter by transaction kind. 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 is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/TransactionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -2010,6 +2307,9 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -2614,6 +2914,45 @@ } } }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/providers/Microsoft.Billing/billingPermissions": { + "get": { + "tags": [ + "BillingPermissions" + ], + "x-ms-examples": { + "CustomerPermissionsList": { + "$ref": "./examples/CustomerPermissionsList.json" + } + }, + "operationId": "BillingPermissions_ListByCustomers", + "description": "Lists all billing permissions for the caller under customer.", + "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" + } + } + } + } + }, "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Billing/billingPermissions": { "get": { "tags": [ @@ -3464,6 +3803,9 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -4679,6 +5021,63 @@ } } }, + "CustomerListResult": { + "description": "Result of listing 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": { + "displayName": { + "description": "The name of the customer.", + "type": "string" + }, + "enabledAzureSKUs": { + "description": "Information about the product.", + "type": "array", + "items": { + "$ref": "#/definitions/EnabledAzureSKUs" + } + }, + "resellers": { + "description": "The resellers which are allowed to provide service to this customer.", + "type": "array", + "items": { + "$ref": "#/definitions/Reseller" + } + } + } + }, "InvoiceSectionCreationRequest": { "description": "The properties of an InvoiceSection.", "properties": { @@ -4756,6 +5155,21 @@ } } }, + "Reseller": { + "description": "Details about a reseller.", + "properties": { + "resellerId": { + "description": "The reseller id.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "A description of the reseller.", + "type": "string", + "readOnly": true + } + } + }, "OperationStatus": { "description": "status of the Billing POST/PUT operation.", "properties": { @@ -5286,6 +5700,16 @@ "type": "string", "readOnly": true }, + "customerId": { + "description": "Customer id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "customerDisplayName": { + "description": "Display name of customer to which this product belongs.", + "type": "string", + "readOnly": true + }, "invoiceSectionId": { "description": "Invoice section id to which this product belongs.", "type": "string", @@ -5304,6 +5728,11 @@ "description": "The sku description.", "type": "string", "readOnly": true + }, + "reseller": { + "description": "Reseller for this subscription.", + "readOnly": true, + "$ref": "#/definitions/Reseller" } } }, @@ -5442,6 +5871,16 @@ "type": "integer", "readOnly": true }, + "customerId": { + "description": "Customer id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "customerDisplayName": { + "description": "Display name of customer to which this product belongs.", + "type": "string", + "readOnly": true + }, "invoiceSectionId": { "description": "Invoice section id to which this product belongs.", "type": "string", @@ -6006,14 +6445,22 @@ "subscriptionIdParameter": { "name": "subscriptionId", "in": "path", - "description": "Azure Subscription ID.", + "description": "Azure Subscription Id.", "required": true, "type": "string" }, "billingAccountNameParameter": { "name": "billingAccountName", "in": "path", - "description": "billing Account Id.", + "description": "Billing Account Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "customerNameParameter": { + "name": "customerName", + "in": "path", + "description": "Customer Id.", "required": true, "type": "string", "x-ms-parameter-location": "method" diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/BillingSubscription.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/BillingSubscription.json index 77bb958f69e5..caebe45d22cd 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/BillingSubscription.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/BillingSubscription.json @@ -3,8 +3,7 @@ "api-version": "2018-11-01-preview", "billingAccountName": "{billingAccountName}", "invoiceSectionName": "{invoiceSectionName}", - "billingSubscriptionName": "{billingSubscriptionName}", - "$expand": "billingProfile" + "billingSubscriptionName": "{billingSubscriptionName}" }, "responses": { "200": { diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/BillingSubscriptionByCustomerName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/BillingSubscriptionByCustomerName.json new file mode 100644 index 000000000000..87cb62f38536 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/BillingSubscriptionByCustomerName.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}", + "billingSubscriptionName": "{billingSubscriptionName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions/{billingSubscriptionName}", + "name": "{billingSubscriptionName}", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "My Subscription", + "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 5000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 600 + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "customerDisplayName": "Customer1", + "reseller": { + "resellerId": "3b65b5a8-bd4f-4084-90e9-e1bd667a2b19", + "description": "Reseller2" + }, + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/BillingSubscriptionsListByCustomer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/BillingSubscriptionsListByCustomer.json new file mode 100644 index 000000000000..3ea99fe15706 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/BillingSubscriptionsListByCustomer.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions/billinSubscriptionId1", + "name": "billingSubscriptionId1", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "My subscription", + "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 5000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 600 + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "customerDisplayName": "Customer1", + "reseller": { + "resellerId": "89e87bdf-a2a2-4687-925f-4c18b27bccfd", + "description": "Reseller1" + }, + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions/billinSubscriptionId2", + "name": "billingSubscriptionId2", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "Test subscription", + "subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 1000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 400 + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "customerDisplayName": "Customer1", + "reseller": { + "resellerId": "3b65b5a8-bd4f-4084-90e9-e1bd667a2b19", + "description": "Reseller3" + }, + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/Customer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/Customer.json new file mode 100644 index 000000000000..af01afa95c5c --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/Customer.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "name": "{customerName}", + "type": "Microsoft.Billing/customers", + "properties": { + "displayName": "customer1" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/CustomerPermissionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/CustomerPermissionsList.json new file mode 100644 index 000000000000..0878a6a87c4d --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/CustomerPermissionsList.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "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/preview/2018-11-01-preview/examples/CustomerWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/CustomerWithExpand.json new file mode 100644 index 000000000000..ca79253ff3b8 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/CustomerWithExpand.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}", + "$expand": "enabledAzureSkus,resellers" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "name": "{customerName}", + "type": "Microsoft.Billing/customers", + "properties": { + "displayName": "customerName1", + "enabledAzureSKUs": [ + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "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/preview/2018-11-01-preview/examples/CustomersListByBillingAccountName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/CustomersListByBillingAccountName.json new file mode 100644 index 000000000000..e5541abe9ec2 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/CustomersListByBillingAccountName.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "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/customers", + "properties": { + "displayName": "customer1" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/22000000-0000-0000-0000-000000000011", + "name": "22000000-0000-0000-0000-000000000011", + "type": "Microsoft.Billing/customers", + "properties": { + "displayName": "customer2" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/InvoiceSectionRoleAssignmentList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/InvoiceSectionRoleAssignmentList.json index 75c6219d8af9..f5b78d5af888 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/InvoiceSectionRoleAssignmentList.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/InvoiceSectionRoleAssignmentList.json @@ -6,7 +6,7 @@ }, "responses": { "200": { - "200": { + "body": { "value": [ { "id": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/PaymentMethodsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/PaymentMethodsListByBillingAccount.json index e915c042a78c..a3c60fad1a81 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/PaymentMethodsListByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/PaymentMethodsListByBillingAccount.json @@ -5,37 +5,39 @@ }, "responses": { "200": { - "value": [ - { - "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000055", - "name": "00000000-0000-0000-0000-000000000055", - "type": "Microsoft.Billing/paymentMethods", - "properties": { - "currency": "USD", - "details": "Credits", - "expiration": "4/2020", - "paymentMethodType": "Credits" + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000055", + "name": "00000000-0000-0000-0000-000000000055", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "currency": "USD", + "details": "Credits", + "expiration": "2014-03-18T18:25:43.511Z", + "paymentMethodType": "Credits" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000022/paymentMethods/00000000-0000-0000-0000-000000000026", + "name": "00000000-0000-0000-0000-000000000026", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "details": "Check Wire", + "paymentMethodType": "CheckWire" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000026", + "name": "00000000-0000-0000-0000-000000000026", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "details": "Check Wire", + "paymentMethodType": "CheckWire" + } } - }, - { - "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000022/paymentMethods/00000000-0000-0000-0000-000000000026", - "name": "00000000-0000-0000-0000-000000000026", - "type": "Microsoft.Billing/paymentMethods", - "properties": { - "details": "Check Wire", - "paymentMethodType": "CheckWire" - } - }, - { - "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000026", - "name": "00000000-0000-0000-0000-000000000026", - "type": "Microsoft.Billing/paymentMethods", - "properties": { - "details": "Check Wire", - "paymentMethodType": "CheckWire" - } - } - ] + ] + } } } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/PaymentMethodsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/PaymentMethodsListByBillingProfile.json index 6e133b1cdb44..58b96f9d9a57 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/PaymentMethodsListByBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/PaymentMethodsListByBillingProfile.json @@ -6,28 +6,30 @@ }, "responses": { "200": { - "value": [ - { - "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000055", - "name": "00000000-0000-0000-0000-000000000055", - "type": "Microsoft.Billing/paymentMethods", - "properties": { - "currency": "USD", - "details": "Credits", - "expiration": "4/2020", - "paymentMethodType": "Credits" + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000055", + "name": "00000000-0000-0000-0000-000000000055", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "currency": "USD", + "details": "Credits", + "expiration": "2014-03-18T18:25:43.511Z", + "paymentMethodType": "Credits" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000026", + "name": "00000000-0000-0000-0000-000000000026", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "details": "Check Wire", + "paymentMethodType": "CheckWire" + } } - }, - { - "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000026", - "name": "00000000-0000-0000-0000-000000000026", - "type": "Microsoft.Billing/paymentMethods", - "properties": { - "details": "Check Wire", - "paymentMethodType": "CheckWire" - } - } - ] + ] + } } } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ReservationTransactionsListByCustomer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ReservationTransactionsListByCustomer.json new file mode 100644 index 000000000000..2a3ec53d45fb --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ReservationTransactionsListByCustomer.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30", + "$filter": "properties/kind eq 'Reservation'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "reservation", + "date": "2018-04-23T00:00:00Z", + "invoice": "2344233", + "orderName": "Contoso Reserved", + "orderId": "6d8e7ed9-d3be-48b0-8c7a-e19246a6d30c", + "productDescription": "Standard D1, US West 3", + "transactionType": "Cancel", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "quantity": 4, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "customerDisplayName": "Contoso operations customer", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/transactions/82000000-0000-0000-0000-000000000000", + "name": "82000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "reservation", + "date": "2018-05-05T00:00:00Z", + "invoice": "Pending", + "orderName": "Test Reserved", + "orderId": "1c24006f-8350-4315-ad8f-6d11180448f9", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 6000.00 + }, + "quantity": 5, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "customerDisplayName": "Contoso operations customer", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/TransactionsListByCustomer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/TransactionsListByCustomer.json new file mode 100644 index 000000000000..c920861adb83 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/TransactionsListByCustomer.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "all", + "date": "2018-05-01T00:00:00Z", + "invoice": "2344233", + "productFamily": "Storage", + "productTypeId": "A12345", + "productType": "Reserved VM Instance", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "customerDisplayName": "Contoso operations customer" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/transactions/51000000-0000-0000-0000-000000000000", + "name": "51000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/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 + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "customerDisplayName": "Contoso operations customer" + } + } + ] + } + } + } +} 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 new file mode 100644 index 000000000000..624b2b78b55a --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -0,0 +1,7122 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-10-01-preview", + "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 all billing accounts for a user which he has access to.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the address, invoiceSections and billingProfiles.", + "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" + } + } + } + } + }, + "/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": "Get the billing account by id.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the address, invoiceSections and billingProfiles.", + "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": "The operation to update a billing account.", + "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 supplied 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}/paymentMethods": { + "get": { + "tags": [ + "PaymentMethods" + ], + "operationId": "PaymentMethods_ListByBillingAccount", + "description": "Lists the Payment Methods by billing account Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/2019-10-01-preview/paymentmethods" + }, + "x-ms-examples": { + "PaymentMethodsListByBillingAccount": { + "$ref": "./examples/PaymentMethodsListByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/PaymentMethodsListResult" + } + }, + "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 the address.", + "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_GetByBillingProfile", + "description": "The latest available credit balance for a given billingAccountName and billingProfileName.", + "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}/paymentMethods": { + "get": { + "tags": [ + "PaymentMethods" + ], + "operationId": "PaymentMethods_ListByBillingProfile", + "description": "Lists the Payment Methods by billing profile Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "PaymentMethodsListByBillingProfile": { + "$ref": "./examples/PaymentMethodsListByBillingProfile.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/PaymentMethodsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/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 all billing profiles for a user which that user has access to.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the invoiceSections.", + "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" + } + } + } + } + }, + "/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": "Get the billing profile by id.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the invoiceSections.", + "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_Create", + "x-ms-long-running-operation": true, + "description": "The operation to create a BillingProfile.", + "x-ms-examples": { + "CreateBillingProfile": { + "$ref": "./examples/CreateBillingProfile.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BillingProfileCreationRequest" + }, + "description": "Request parameters supplied to the Create BillingProfile operation." + } + ], + "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": "Recommends the retryable time after receiving this.", + "type": "integer" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "BillingProfiles" + ], + "operationId": "BillingProfiles_Update", + "x-ms-long-running-operation": true, + "description": "The operation to update a billing profile.", + "x-ms-examples": { + "UpdateBillingProfile": { + "$ref": "./examples/UpdateBillingProfile.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BillingProfile" + }, + "description": "Request parameters supplied to the update billing profile operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingProfile" + } + }, + "202": { + "description": "Accepted. Billing profile update is in progress.", + "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" + } + } + }, + "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 customers by billing profile which the current user can work with on-behalf of a partner.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "name": "$filter", + "description": "May be used to filter the list of customers.", + "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" + } + ], + "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 all invoice sections for a user which he has access to.", + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}": { + "get": { + "tags": [ + "InvoiceSections" + ], + "x-ms-examples": { + "InvoiceSection": { + "$ref": "./examples/InvoiceSection.json" + } + }, + "operationId": "InvoiceSections_Get", + "description": "Get the InvoiceSection by id.", + "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_Create", + "x-ms-long-running-operation": true, + "description": "The operation to create an invoice section.", + "x-ms-examples": { + "CreateInvoiceSection": { + "$ref": "./examples/CreateInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InvoiceSectionCreationRequest" + }, + "description": "Request parameters supplied to the Create InvoiceSection operation." + } + ], + "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": "Recommends the retryable time after receiving this.", + "type": "integer" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "InvoiceSections" + ], + "operationId": "InvoiceSections_Update", + "x-ms-long-running-operation": true, + "description": "The operation to update a InvoiceSection.", + "x-ms-examples": { + "UpdateInvoiceSection": { + "$ref": "./examples/UpdateInvoiceSection.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": "Request parameters supplied to the Create InvoiceSection operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/InvoiceSection" + } + }, + "202": { + "description": "Accepted. InvoiceSection update is in progress.", + "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" + } + } + }, + "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 customers which the current user can work with on-behalf of a partner.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "$filter", + "description": "May be used to filter the list of customers.", + "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" + } + ], + "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.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand enabledAzurePlans, 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 all billing permissions the caller has for a customer.", + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions": { + "get": { + "tags": [ + "BillingSubscriptions" + ], + "operationId": "BillingSubscriptions_ListByCustomer", + "description": "Lists billing subscription by customer id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "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}/billingSubscriptions/{billingSubscriptionName}": { + "get": { + "tags": [ + "BillingSubscriptions" + ], + "operationId": "BillingSubscriptions_GetByCustomer", + "description": "Get a single billing subscription by id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "BillingSubscriptionByCustomer": { + "$ref": "./examples/BillingSubscriptionByCustomer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + }, + { + "$ref": "#/parameters/billingSubscriptionNameParameter" + }, + { + "$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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/products": { + "get": { + "tags": [ + "Products" + ], + "operationId": "Products_ListByCustomer", + "description": "Lists products by customer id.", + "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" + }, + { + "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 is 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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/products/{productName}": { + "get": { + "tags": [ + "Products" + ], + "operationId": "Products_GetByCustomer", + "description": "Get a customer's product by name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "Product": { + "$ref": "./examples/ProductByCustomer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + }, + { + "$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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/transactions": { + "get": { + "tags": [ + "Transactions" + ], + "operationId": "Transactions_ListByCustomer", + "description": "Lists the transactions by customer id for given start date and end date.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "TransactionsListByCustomer": { + "$ref": "./examples/TransactionsListByCustomer.json" + }, + "ReservationTransactionsListByCustomer": { + "$ref": "./examples/ReservationTransactionsListByCustomer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "startDate", + "in": "query", + "description": "Start date", + "required": true, + "type": "string" + }, + { + "name": "endDate", + "in": "query", + "description": "End date", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "description": "May be used to filter by transaction kind. 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 is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "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}/departments": { + "get": { + "tags": [ + "Departments" + ], + "x-ms-examples": { + "DepartmentsListByBillingAccount": { + "$ref": "./examples/DepartmentsListByBillingAccount.json" + }, + "DepartmentsListByBillingAccountWithExpand": { + "$ref": "./examples/DepartmentsListByBillingAccountWithExpand.json" + } + }, + "operationId": "Departments_ListByBillingAccountName", + "description": "Lists all departments for a user which he has access to.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the enrollmentAccounts.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "description": "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 is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DepartmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}": { + "get": { + "tags": [ + "Departments" + ], + "x-ms-examples": { + "Department": { + "$ref": "./examples/Department.json" + }, + "DepartmentWithExpand": { + "$ref": "./examples/DepartmentWithExpand.json" + } + }, + "operationId": "Departments_Get", + "description": "Get the department by id.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/departmentNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the enrollmentAccounts.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "description": "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 is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Department" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts": { + "get": { + "tags": [ + "EnrollmentAccounts" + ], + "x-ms-examples": { + "EnrollmentAccountsListByBillingAccount": { + "$ref": "./examples/EnrollmentAccountsListByBillingAccount.json" + }, + "EnrollmentAccountsListByBillingAccountWithExpand": { + "$ref": "./examples/EnrollmentAccountsListByBillingAccountWithExpand.json" + } + }, + "operationId": "EnrollmentAccounts_ListByBillingAccountName", + "description": "Lists all Enrollment Accounts for a user which he has access to.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the department.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "description": "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 is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnrollmentAccountListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}": { + "get": { + "tags": [ + "EnrollmentAccounts" + ], + "x-ms-examples": { + "EnrollmentAccount": { + "$ref": "./examples/EnrollmentAccount.json" + }, + "EnrollmentAccountWithExpand": { + "$ref": "./examples/EnrollmentAccountWithExpand.json" + } + }, + "operationId": "EnrollmentAccounts_GetByEnrollmentAccountId", + "description": "Get the enrollment account by id.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/enrollmentAccountNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the Department.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "description": "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 is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnrollmentAccount" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices": { + "get": { + "tags": [ + "Invoices" + ], + "x-ms-examples": { + "BillingAccountInvoicesList": { + "$ref": "./examples/BillingAccountInvoicesList.json" + } + }, + "operationId": "Invoices_ListByBillingAccount", + "description": "List of invoices for a billing account.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "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" + } + ], + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/pricesheet/default/download": { + "post": { + "tags": [ + "PriceSheet" + ], + "x-ms-examples": { + "PricesheetDownload": { + "$ref": "./examples/PricesheetDownload.json" + } + }, + "operationId": "PriceSheet_Download", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "description": "Download price sheet for an invoice.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceNameParameter" + } + ], + "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" + }, + "OData-EntityId": { + "description": "The operation entity Id GUID.", + "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}/pricesheet/default/download": { + "post": { + "tags": [ + "PriceSheet" + ], + "x-ms-examples": { + "PricesheetDownloadByBillingProfile": { + "$ref": "./examples/PricesheetDownloadByBillingProfile.json" + } + }, + "operationId": "PriceSheet_DownloadByBillingProfile", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "description": "Download price sheet for a billing profile.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + } + ], + "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" + }, + "OData-EntityId": { + "description": "The operation entity Id GUID.", + "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}/invoices": { + "get": { + "tags": [ + "Invoices" + ], + "x-ms-examples": { + "InvoicesListByBillingProfile": { + "$ref": "./examples/InvoicesListByBillingProfile.json" + } + }, + "operationId": "Invoices_ListByBillingProfile", + "description": "List of invoices for a billing profile.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "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" + } + ], + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}": { + "get": { + "tags": [ + "Invoices" + ], + "x-ms-examples": { + "Invoice": { + "$ref": "./examples/Invoice.json" + } + }, + "operationId": "Invoices_Get", + "description": "Get the invoice by name.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$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}/billingSubscriptions": { + "get": { + "tags": [ + "BillingSubscriptions" + ], + "operationId": "BillingSubscriptions_ListByBillingAccount", + "description": "Lists billing subscriptions by billing account name.", + "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/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions": { + "get": { + "tags": [ + "BillingSubscriptions" + ], + "operationId": "BillingSubscriptions_ListByBillingProfile", + "description": "Lists billing subscriptions by billing profile name.", + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions": { + "get": { + "tags": [ + "BillingSubscriptions" + ], + "operationId": "BillingSubscriptions_ListByInvoiceSection", + "description": "Lists billing subscription by invoice section name.", + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}": { + "get": { + "tags": [ + "BillingSubscriptions" + ], + "operationId": "BillingSubscriptions_Get", + "description": "Get a single billing subscription by name.", + "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/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/billingSubscriptionNameParameter" + }, + { + "$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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}/transfer": { + "post": { + "description": "Transfers the subscription from one invoice section to another within a billing account.", + "operationId": "BillingSubscriptions_Transfer", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "TransferBillingSubscription": { + "$ref": "./examples/TransferBillingSubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/billingSubscriptionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TransferBillingSubscriptionRequestProperties" + }, + "description": "Request parameters supplied to the Transfer Billing Subscription operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/TransferBillingSubscriptionResult" + } + }, + "202": { + "description": "Accepted. Billing Subscription transfer is in progress.", + "headers": { + "Location": { + "description": "Location URI to poll for result.", + "type": "string" + }, + "Retry-After": { + "description": "Recommends the retryable time after receiving this.", + "type": "integer" + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}/validateTransferEligibility": { + "post": { + "x-ms-examples": { + "SubscriptionTransferValidateSuccess": { + "$ref": "./examples/ValidateSubscriptionTransferSuccess.json" + }, + "SubscriptionTransferValidateFailure": { + "$ref": "./examples/ValidateSubscriptionTransferFailure.json" + } + }, + "operationId": "BillingSubscriptions_ValidateTransfer", + "description": "Validates the transfer of billing subscriptions across invoice sections.", + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/billingSubscriptionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TransferBillingSubscriptionRequestProperties" + }, + "description": "Parameters supplied to the Transfer Billing Subscription 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 products by billing account name.", + "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 is 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 products by invoice section name.", + "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 is 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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}": { + "get": { + "tags": [ + "Products" + ], + "operationId": "Products_Get", + "description": "Get a single product by name.", + "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/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}/transfer": { + "post": { + "tags": [ + "Products" + ], + "operationId": "Products_Transfer", + "description": "The operation to transfer a Product to another invoice section.", + "x-ms-examples": { + "TransferProduct": { + "$ref": "./examples/TransferProduct.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/productNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TransferProductRequestProperties" + }, + "description": "Parameters supplied to the Transfer 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": "Recommends the retryable time after receiving this.", + "type": "integer" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}/validateTransferEligibility": { + "post": { + "x-ms-examples": { + "SubscriptionTransferValidateSuccess": { + "$ref": "./examples/ValidateProductTransferSuccess.json" + }, + "SubscriptionTransferValidateFailure": { + "$ref": "./examples/ValidateProductTransferFailure.json" + } + }, + "operationId": "Products_ValidateTransfer", + "description": "Validates the transfer of products across invoice sections.", + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/productNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TransferProductRequestProperties" + }, + "description": "Parameters supplied to the Transfer Products 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}/transactions": { + "get": { + "tags": [ + "Transactions" + ], + "operationId": "Transactions_ListByBillingAccount", + "description": "Lists the transactions by billing account name for given start and end date.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "TransactionsListByBillingAccount": { + "$ref": "./examples/TransactionsListByBillingAccount.json" + }, + "ReservationTransactionsListByBillingAccount": { + "$ref": "./examples/ReservationTransactionsListByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "startDate", + "in": "query", + "description": "Start date", + "required": true, + "type": "string" + }, + { + "name": "endDate", + "in": "query", + "description": "End date", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "description": "May be used to filter by transaction kind. 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 is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "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}/transactions": { + "get": { + "tags": [ + "Transactions" + ], + "operationId": "Transactions_ListByBillingProfile", + "description": "Lists the transactions by billing profile name for given start date and end date.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "TransactionsListByBillingProfile": { + "$ref": "./examples/TransactionsListByBillingProfile.json" + }, + "ReservationTransactionsListByBillingProfile": { + "$ref": "./examples/ReservationTransactionsListByBillingProfile.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "startDate", + "in": "query", + "description": "Start date", + "required": true, + "type": "string" + }, + { + "name": "endDate", + "in": "query", + "description": "End date", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "description": "May be used to filter by transaction kind. 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 is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions": { + "get": { + "tags": [ + "Transactions" + ], + "operationId": "Transactions_ListByInvoiceSection", + "description": "Lists the transactions by invoice section name for given start date and end date.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "TransactionsListByInvoiceSection": { + "$ref": "./examples/TransactionsListByInvoiceSection.json" + }, + "ReservationTransactionsListByInvoiceSection": { + "$ref": "./examples/ReservationTransactionsListByInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "startDate", + "in": "query", + "description": "Start date", + "required": true, + "type": "string" + }, + { + "name": "endDate", + "in": "query", + "description": "End date", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "description": "May be used to filter by transaction kind. 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 is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/{transactionName}": { + "get": { + "tags": [ + "Transactions" + ], + "operationId": "Transactions_Get", + "description": "Get the transaction.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "Transaction": { + "$ref": "./examples/Transaction.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/transactionNameParameter" + }, + { + "name": "startDate", + "in": "query", + "description": "Start date", + "required": true, + "type": "string" + }, + { + "name": "endDate", + "in": "query", + "description": "End date", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Transaction" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default": { + "get": { + "tags": [ + "Policies" + ], + "operationId": "Policies_GetByBillingProfile", + "description": "The policy for a given billing account name and billing profile name.", + "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": "The operation to update a policy.", + "x-ms-examples": { + "UpdateBillingProfile": { + "$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": "Parameters supplied to the update policy 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" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingProperty": { + "get": { + "tags": [ + "BillingProperties" + ], + "operationId": "BillingProperty_Get", + "description": "Get billing property by subscription Id.", + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/products/{productName}/updateAutoRenew": { + "post": { + "tags": [ + "Products" + ], + "operationId": "Products_UpdateAutoRenewByBillingAccount", + "description": "Cancel auto renew for product by product id and billing account name", + "x-ms-examples": { + "ProductsCancelByBillingAccount": { + "$ref": "./examples/ProductCancelByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/productNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/updateAutoRenewRequestParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/UpdateAutoRenewOperation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}/updateAutoRenew": { + "post": { + "tags": [ + "Products" + ], + "operationId": "Products_UpdateAutoRenewByInvoiceSection", + "description": "Cancel auto renew for product by product id and invoice section name", + "x-ms-examples": { + "CancelProductForInvoiceSection": { + "$ref": "./examples/ProductCancelForInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/productNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/updateAutoRenewRequestParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/UpdateAutoRenewOperation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/elevate": { + "post": { + "tags": [ + "InvoiceSections" + ], + "description": "Elevates the caller's access to match their billing profile access.", + "operationId": "InvoiceSections_ElevateToBillingProfile", + "x-ms-examples": { + "Elevate": { + "$ref": "./examples/ElevateInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + } + ], + "responses": { + "204": { + "description": "Elevated the caller's access to the invoice section." + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/initiateTransfer": { + "post": { + "tags": [ + "Transfers" + ], + "description": "Initiates the request to transfer the legacy subscriptions or RIs.", + "operationId": "Transfers_Initiate", + "x-ms-examples": { + "InitiateTransfer": { + "$ref": "./examples/InitiateTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InitiateTransferRequest" + }, + "description": "Parameters supplied to initiate the transfer." + } + ], + "responses": { + "200": { + "description": "Initiated transfer details.", + "schema": { + "$ref": "#/definitions/TransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transfers/{transferName}": { + "get": { + "tags": [ + "Transfers" + ], + "description": "Gets the transfer details for given transfer Id.", + "operationId": "Transfers_Get", + "x-ms-examples": { + "TransferGet": { + "$ref": "./examples/GetTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/transferNameParameter" + } + ], + "responses": { + "200": { + "description": "Details of transfer.", + "schema": { + "$ref": "#/definitions/TransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Transfers" + ], + "description": "Cancels the transfer for given transfer Id.", + "operationId": "Transfers_Cancel", + "x-ms-examples": { + "TransferCancel": { + "$ref": "./examples/CancelTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/transferNameParameter" + } + ], + "responses": { + "200": { + "description": "Details of canceled transfer.", + "schema": { + "$ref": "#/definitions/TransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transfers": { + "get": { + "tags": [ + "Transfers" + ], + "description": "Lists all transfer's details initiated from given invoice section.", + "operationId": "Transfers_List", + "x-ms-examples": { + "TransfersList": { + "$ref": "./examples/ListTransfers.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + } + ], + "responses": { + "200": { + "description": "List of transfers initiated from this invoice section.", + "schema": { + "$ref": "#/definitions/TransferDetailsListResult" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/initiateTransfer": { + "post": { + "tags": [ + "Transfers" + ], + "description": "Initiates the request to transfer the legacy subscriptions or RIs.", + "operationId": "PartnerTransfers_Initiate", + "x-ms-examples": { + "InitiatePartnerTransfer": { + "$ref": "./examples/PartnerInitiateTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InitiateTransferRequest" + }, + "description": "Parameters supplied to initiate the transfer." + } + ], + "responses": { + "200": { + "description": "Initiated transfer details.", + "schema": { + "$ref": "#/definitions/TransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers/{transferName}": { + "get": { + "tags": [ + "Transfers" + ], + "description": "Gets the transfer details for given transfer Id.", + "operationId": "PartnerTransfers_Get", + "x-ms-examples": { + "TransferGet": { + "$ref": "./examples/PartnerGetTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + }, + { + "$ref": "#/parameters/transferNameParameter" + } + ], + "responses": { + "200": { + "description": "Details of transfer.", + "schema": { + "$ref": "#/definitions/TransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Transfers" + ], + "description": "Cancels the transfer for given transfer Id.", + "operationId": "PartnerTransfers_Cancel", + "x-ms-examples": { + "TransferCancel": { + "$ref": "./examples/PartnerCancelTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + }, + { + "$ref": "#/parameters/transferNameParameter" + } + ], + "responses": { + "200": { + "description": "Details of canceled transfer.", + "schema": { + "$ref": "#/definitions/TransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers": { + "get": { + "tags": [ + "Transfers" + ], + "description": "Lists all transfer's details initiated from given invoice section.", + "operationId": "PartnerTransfersTransfers_List", + "x-ms-examples": { + "TransfersList": { + "$ref": "./examples/PartnerListTransfers.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + } + ], + "responses": { + "200": { + "description": "List of transfers initiated from this invoice section.", + "schema": { + "$ref": "#/definitions/TransferDetailsListResult" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/transfers/{transferName}/acceptTransfer": { + "post": { + "tags": [ + "RecipientTransfers" + ], + "summary": "Accepts the transfer with given transfer Id.", + "operationId": "RecipientTransfers_Accept", + "x-ms-examples": { + "AcceptTransfer": { + "$ref": "./examples/AcceptTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/transferNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AcceptTransferRequest" + }, + "description": "Parameters supplied to accept the transfer." + } + ], + "responses": { + "200": { + "description": "Details of the accepted transfer.", + "schema": { + "$ref": "#/definitions/RecipientTransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/transfers/{transferName}/validateTransfer": { + "post": { + "tags": [ + "RecipientTransfers" + ], + "summary": "Validates if the products can be transferred in the context of the given transfer name.", + "operationId": "RecipientTransfers_Validate", + "x-ms-examples": { + "ValidateTransfer": { + "$ref": "./examples/ValidateTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/transferNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AcceptTransferRequest" + }, + "description": "Parameters supplied to validate the transfer." + } + ], + "responses": { + "200": { + "description": "Results of the transfer validation.", + "schema": { + "$ref": "#/definitions/ValidateTransferListResponse" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/transfers/{transferName}/declineTransfer": { + "post": { + "tags": [ + "RecipientTransfers" + ], + "summary": "Declines the transfer with given transfer Id.", + "operationId": "RecipientTransfers_Decline", + "x-ms-examples": { + "DeclineTransfer": { + "$ref": "./examples/DeclineTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/transferNameParameter" + } + ], + "responses": { + "200": { + "description": "Details of the declined transfer.", + "schema": { + "$ref": "#/definitions/RecipientTransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/transfers/{transferName}": { + "get": { + "tags": [ + "RecipientTransfers" + ], + "summary": "Gets the transfer with given transfer Id.", + "operationId": "RecipientTransfers_Get", + "x-ms-examples": { + "RecipientTransferGet": { + "$ref": "./examples/GetRecipientTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/transferNameParameter" + } + ], + "responses": { + "200": { + "description": "Details of the transfers with given Id.", + "schema": { + "$ref": "#/definitions/RecipientTransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/transfers": { + "get": { + "tags": [ + "RecipientTransfers" + ], + "summary": "Lists the transfers received by caller.", + "operationId": "RecipientTransfers_List", + "x-ms-examples": { + "RecipientTransfersList": { + "$ref": "./examples/ListRecipientTransfers.json" + } + }, + "responses": { + "200": { + "description": "List of transfers received by caller.", + "schema": { + "$ref": "#/definitions/RecipientTransferDetailsListResult" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available billing 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" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingPermissions": { + "get": { + "tags": [ + "BillingPermissions" + ], + "x-ms-examples": { + "BillingAccountPermissionsList": { + "$ref": "./examples/BillingAccountPermissionsList.json" + } + }, + "operationId": "BillingPermissions_ListByBillingAccount", + "description": "Lists all billing permissions for the caller under a billing account.", + "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" + } + } + } + } + }, + "/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 all billing permissions for the caller under invoice section.", + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingPermissions": { + "get": { + "tags": [ + "BillingPermissions" + ], + "x-ms-examples": { + "BillingProfilePermissionsList": { + "$ref": "./examples/BillingProfilePermissionsList.json" + } + }, + "operationId": "BillingPermissions_ListByBillingProfile", + "description": "Lists all billing permissions the caller has for a billing account.", + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/{billingRoleDefinitionName}": { + "get": { + "tags": [ + "BillingRoleDefinitions" + ], + "x-ms-examples": { + "BillingAccountRoleDefinition": { + "$ref": "./examples/BillingAccountRoleDefinition.json" + } + }, + "operationId": "BillingRoleDefinitions_GetByBillingAccount", + "description": "Gets the role definition for a role", + "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 role definition for a role", + "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 role definition for a role", + "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 definition for a billing account", + "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" + } + } + } + } + }, + "/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 definition for an invoice Section", + "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" + } + } + } + } + }, + "/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 definition for a Billing Profile", + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments/{billingRoleAssignmentName}": { + "get": { + "tags": [ + "BillingRoleAssignments" + ], + "x-ms-examples": { + "BillingAccountRoleAssignment": { + "$ref": "./examples/BillingAccountRoleAssignment.json" + } + }, + "operationId": "BillingRoleAssignments_GetByBillingAccount", + "description": "Get the role assignment for the caller", + "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": "Delete the role assignment on this billing account", + "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": "Get the role assignment for the caller on the invoice Section", + "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": "Delete the role assignment on the invoice Section", + "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": "Get the role assignment for the caller on the Billing Profile", + "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": "Delete the role assignment on this Billing Profile", + "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": "Get the role assignments on the Billing Account", + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/createBillingRoleAssignment": { + "post": { + "tags": [ + "BillingRoleAssignments" + ], + "operationId": "BillingRoleAssignments_AddByBillingAccount", + "description": "The operation to add a role assignment to a billing account.", + "x-ms-examples": { + "AddRoleAssignmentToBillingAccount": { + "$ref": "./examples/AddRoleAssignmentToBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentPayload" + }, + "description": "Parameters supplied to add a role assignment." + } + ], + "responses": { + "201": { + "description": "Role assignment is successfully created", + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/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": "Get the role assignments on the invoice Section", + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/createBillingRoleAssignment": { + "post": { + "tags": [ + "BillingRoleAssignments" + ], + "operationId": "BillingRoleAssignments_AddByInvoiceSection", + "description": "The operation to add a role assignment to a invoice Section.", + "x-ms-examples": { + "AddRoleAssignmentToInvoiceSection": { + "$ref": "./examples/AddRoleAssignmentToInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentPayload" + }, + "description": "Parameters supplied to add a role assignment." + } + ], + "responses": { + "201": { + "description": "Role assignment is successfully created", + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleAssignments": { + "get": { + "tags": [ + "BillingRoleAssignments" + ], + "x-ms-examples": { + "BillingProfileRoleAssignmentList": { + "$ref": "./examples/BillingProfileRoleAssignmentList.json" + } + }, + "operationId": "BillingRoleAssignments_ListByBillingProfile", + "description": "Get the role assignments on the Billing Profile", + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/createBillingRoleAssignment": { + "post": { + "tags": [ + "BillingRoleAssignments" + ], + "operationId": "BillingRoleAssignments_AddByBillingProfile", + "description": "The operation to add a role assignment to a billing profile.", + "x-ms-examples": { + "AddRoleAssignmentToBillingProfile": { + "$ref": "./examples/AddRoleAssignmentToBillingProfile.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentPayload" + }, + "description": "Parameters supplied to add a role assignment." + } + ], + "responses": { + "201": { + "description": "Role assignment is successfully created", + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements": { + "get": { + "tags": [ + "Agreements" + ], + "x-ms-examples": { + "AgreementsListByBillingAccount": { + "$ref": "./examples/AgreementsListByBillingAccount.json" + } + }, + "operationId": "Agreements_ListByBillingAccount", + "description": "Lists all agreements for a billing account.", + "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" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements/{agreementName}": { + "get": { + "tags": [ + "Agreements" + ], + "x-ms-examples": { + "AgreementByName": { + "$ref": "./examples/AgreementByName.json" + } + }, + "operationId": "Agreements_Get", + "description": "Get the agreement by name.", + "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" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingAccounts/default/lineOfCredit/default": { + "get": { + "tags": [ + "LineOfCredits" + ], + "x-ms-examples": { + "LineOfCreditBySubscription": { + "$ref": "./examples/LineOfCreditBySubscription.json" + } + }, + "operationId": "LineOfCredits_Get", + "description": "Get the current line of credit.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LineOfCredit" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "LineOfCredits" + ], + "operationId": "LineOfCredits_Update", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "IncreaseLineOfCreditBySubscription": { + "$ref": "./examples/IncreaseLineOfCreditBySubscription.json" + } + }, + "description": "Increase the current line of credit.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LineOfCredit" + }, + "description": "Parameters supplied to the increase line of credit operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LineOfCredit" + } + }, + "202": { + "description": "Accepted. Line of credit increase is in progress.", + "headers": { + "Location": { + "description": "Location URI to poll for result.", + "type": "string" + }, + "Retry-After": { + "description": "Recommends the retryable time after receiving this.", + "type": "integer" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "CustomerListResult": { + "description": "Result of listing 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": { + "displayName": { + "description": "The name of the customer.", + "type": "string" + }, + "enabledAzurePlans": { + "description": "Information about the product.", + "type": "array", + "items": { + "$ref": "#/definitions/AzurePlan" + } + }, + "resellers": { + "description": "The resellers which are allowed to provide service to this customer.", + "type": "array", + "items": { + "$ref": "#/definitions/Reseller" + } + } + } + }, + "InitiateTransferRequest": { + "type": "object", + "description": "Request parameters to initiate transfer.", + "properties": { + "properties": { + "description": "Request parameters to initiate transfer.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/InitiateTransferProperties" + } + } + }, + "ValidateAddressResponse": { + "type": "object", + "description": "Result of the address validation", + "properties": { + "status": { + "description": "status of the address validation.", + "$ref": "#/definitions/AddressValidationStatus" + }, + "suggestedAddresses": { + "description": "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 response.", + "enum": [ + "Valid", + "Invalid" + ], + "x-ms-enum": { + "name": "addressValidationStatus", + "modelAsString": true + } + }, + "InitiateTransferProperties": { + "type": "object", + "description": "Request parameters to initiate transfer.", + "properties": { + "recipientEmailId": { + "type": "string", + "description": "Email Id of recipient for transfer." + }, + "resellerId": { + "type": "string", + "description": "Optional reseller Id for transfer." + } + } + }, + "AcceptTransferRequest": { + "type": "object", + "description": "Request parameters to accept transfer.", + "properties": { + "properties": { + "description": "Request parameters to accept transfer.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AcceptTransferProperties" + } + } + }, + "AcceptTransferProperties": { + "type": "object", + "description": "Request parameters to accept transfer.", + "properties": { + "productDetails": { + "description": "Request parameters to accept transfer.", + "type": "array", + "items": { + "$ref": "#/definitions/ProductDetails" + } + } + } + }, + "ProductDetails": { + "type": "object", + "description": "Details of the product to be transferred.", + "properties": { + "productType": { + "description": "Type of the product to be transferred.", + "$ref": "#/definitions/ProductType" + }, + "productId": { + "type": "string", + "description": "Id of product to be transferred." + } + } + }, + "ProductType": { + "type": "string", + "description": "Type of the product to be transferred.", + "enum": [ + "AzureSubscription", + "AzureReservation" + ], + "x-ms-enum": { + "name": "productType", + "modelAsString": true + } + }, + "TransferDetails": { + "type": "object", + "description": "Details of the transfer.", + "properties": { + "properties": { + "description": "Details of the transfer.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/TransferProperties" + } + } + }, + "RecipientTransferDetails": { + "type": "object", + "description": "Details of the transfer.", + "properties": { + "properties": { + "description": "Details of the transfer.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/RecipientTransferProperties" + } + } + }, + "DetailedTransferStatus": { + "type": "object", + "description": "Detailed transfer status.", + "properties": { + "productType": { + "type": "string", + "$ref": "#/definitions/ProductType", + "readOnly": true, + "description": "Type of product being transferred." + }, + "productId": { + "type": "string", + "readOnly": true, + "description": "Id of product being transferred." + }, + "transferStatus": { + "type": "string", + "$ref": "#/definitions/ProductTransferStatus", + "readOnly": true, + "description": "Transfer status." + }, + "errorDetails": { + "description": "Error details for transfer execution.", + "$ref": "#/definitions/Error" + } + } + }, + "Error": { + "description": "Error details for transfer execution.", + "properties": { + "errorCode": { + "type": "string", + "readOnly": true, + "description": "Error code." + }, + "errorMessage": { + "type": "string", + "readOnly": true, + "description": "Error message." + } + } + }, + "EligibleProductType": { + "type": "string", + "description": "Type of the products that can be transferred.", + "enum": [ + "DevTestAzureSubscription", + "StandardAzureSubscription", + "AzureReservation" + ], + "x-ms-enum": { + "name": "eligibleProductType", + "modelAsString": true + } + }, + "TransferProperties": { + "description": "Transfer details", + "type": "object", + "properties": { + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Transfer creation time.", + "readOnly": true + }, + "expirationTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Transfer expiration time." + }, + "invoiceSectionId": { + "type": "string", + "description": "Target invoice section Id.", + "readOnly": true + }, + "billingAccountId": { + "type": "string", + "description": "Target billing account Id.", + "readOnly": true + }, + "resellerId": { + "type": "string", + "description": "Reseller Id for transfer.", + "readOnly": true + }, + "resellerName": { + "type": "string", + "description": "Reseller name for transfer.", + "readOnly": true + }, + "initiatorCustomerType": { + "type": "string", + "description": "Customer type of the initiator.", + "readOnly": true + }, + "billingProfileId": { + "type": "string", + "description": "Target billing profile Id.", + "readOnly": true + }, + "transferStatus": { + "type": "string", + "$ref": "#/definitions/TransferStatus", + "description": "Overall transfer status.", + "readOnly": true + }, + "recipientEmailId": { + "type": "string", + "readOnly": true, + "description": "Email Id of recipient of transfer." + }, + "initiatorEmailId": { + "type": "string", + "readOnly": true, + "description": "Email Id of initiator of transfer." + }, + "canceledBy": { + "type": "string", + "readOnly": true, + "description": "Email Id who user canceled the transfer." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Transfer last modification time." + }, + "detailedTransferStatus": { + "type": "array", + "readOnly": true, + "description": "Detailed transfer status.", + "items": { + "$ref": "#/definitions/DetailedTransferStatus" + } + } + } + }, + "RecipientTransferProperties": { + "description": "Transfer Details.", + "type": "object", + "properties": { + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Transfer creation time.", + "readOnly": true + }, + "expirationTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Transfer expiration time." + }, + "allowedProductType": { + "type": "array", + "readOnly": true, + "description": "Type of subscriptions that can be transferred.", + "items": { + "$ref": "#/definitions/EligibleProductType" + } + }, + "transferStatus": { + "type": "string", + "$ref": "#/definitions/TransferStatus", + "description": "Overall transfer status.", + "readOnly": true + }, + "recipientEmailId": { + "type": "string", + "readOnly": true, + "description": "Email Id of recipient of transfer." + }, + "initiatorEmailId": { + "type": "string", + "readOnly": true, + "description": "Email Id of initiator of transfer." + }, + "resellerId": { + "type": "string", + "description": "Reseller Id for transfer.", + "readOnly": true + }, + "resellerName": { + "type": "string", + "description": "Reseller name for transfer.", + "readOnly": true + }, + "initiatorCustomerType": { + "type": "string", + "description": "Customer type of the initiator.", + "readOnly": true + }, + "canceledBy": { + "type": "string", + "readOnly": true, + "description": "Email Id who user canceled the transfer." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Transfer last modification time." + }, + "detailedTransferStatus": { + "type": "array", + "readOnly": true, + "description": "Detailed transfer status.", + "items": { + "$ref": "#/definitions/DetailedTransferStatus" + } + } + } + }, + "TransferStatus": { + "type": "string", + "description": "Possible transfer status.", + "enum": [ + "Pending", + "InProgress", + "Completed", + "CompletedWithErrors", + "Failed", + "Canceled", + "Declined" + ], + "x-ms-enum": { + "name": "transferStatus", + "modelAsString": true + } + }, + "ProductTransferStatus": { + "type": "string", + "description": "Possible transfer status.", + "enum": [ + "NotStarted", + "InProgress", + "Completed", + "Failed" + ], + "x-ms-enum": { + "name": "productTransferStatus", + "modelAsString": true + } + }, + "RecipientTransferDetailsListResult": { + "description": "Result of listing details of the transfer received by caller.", + "properties": { + "value": { + "description": "The list of transfers received by caller.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/RecipientTransferDetails" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "TransferDetailsListResult": { + "description": "Result of listing details of the transfer initiated by caller.", + "properties": { + "value": { + "description": "The list of transfers initiated by caller.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/TransferDetails" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "TransferProductRequestProperties": { + "description": "The properties of the product to initiate a transfer.", + "properties": { + "destinationInvoiceSectionId": { + "type": "string", + "description": "The destination invoice section id." + }, + "destinationBillingProfileId": { + "type": "string", + "description": "The destination billing profile id." + } + } + }, + "TransferBillingSubscriptionResult": { + "type": "object", + "description": "Request parameters to transfer billing subscription.", + "properties": { + "properties": { + "description": "Request parameters to transfer billing subscription.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/TransferBillingSubscriptionResultProperties" + } + } + }, + "TransferBillingSubscriptionResultProperties": { + "type": "object", + "description": "Transfer billing subscription result properties.", + "properties": { + "billingSubscriptionName": { + "type": "string", + "description": "The destination billing subscription id." + } + } + }, + "TransferBillingSubscriptionRequest": { + "type": "object", + "description": "Request parameters to transfer billing subscription.", + "properties": { + "properties": { + "description": "Request parameters to transfer billing subscription.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/TransferBillingSubscriptionRequestProperties" + } + } + }, + "TransferBillingSubscriptionRequestProperties": { + "type": "object", + "description": "Request parameters to transfer billing subscription.", + "properties": { + "destinationInvoiceSectionId": { + "type": "string", + "description": "The destination invoice section id." + }, + "destinationBillingProfileId": { + "type": "string", + "description": "The destination billing profile id." + } + } + }, + "ValidateSubscriptionTransferEligibilityResult": { + "type": "object", + "description": "Result of the transfer eligibility validation.", + "properties": { + "isTransferEligible": { + "description": "Specifies whether the transfer is eligible or not.", + "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 + } + }, + "UpdateAutoRenewOperation": { + "type": "object", + "description": "Summary of cancel product operation", + "properties": { + "properties": { + "description": "Summary of update auto renew operation properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/UpdateAutoRenewOperationProperties" + } + } + }, + "UpdateAutoRenewOperationProperties": { + "type": "object", + "description": "update auto renew operation properties", + "properties": { + "endDate": { + "type": "string", + "format": "date-time", + "description": "The end date of this asset" + } + } + }, + "BillingAccountListResult": { + "description": "Result of listing 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 resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "A 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", + "readOnly": true + }, + "address": { + "description": "The address associated with billing account.", + "$ref": "#/definitions/AddressDetails" + }, + "agreementType": { + "description": "The type of agreement.", + "type": "string", + "enum": [ + "MicrosoftCustomerAgreement", + "EnterpriseAgreement", + "MicrosoftOnlineServicesProgram" + ], + "readOnly": true, + "x-ms-enum": { + "name": "AgreementType", + "modelAsString": true + } + }, + "customerType": { + "description": "The type of customer.", + "type": "string", + "enum": [ + "Enterprise", + "Individual", + "Partner" + ], + "readOnly": true, + "x-ms-enum": { + "name": "CustomerType", + "modelAsString": true + } + }, + "billingProfiles": { + "description": "The billing profiles associated to the billing account. By default this is not populated, unless it's specified in $expand.", + "type": "array", + "items": { + "$ref": "#/definitions/BillingProfile" + } + }, + "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" + } + }, + "organizationId": { + "description": "Organization id.", + "type": "string", + "readOnly": true + } + } + }, + "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 resource.", + "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": { + "billingTenantId": { + "description": "Billing tenant Id.", + "type": "string", + "readOnly": true + }, + "billingAccountId": { + "description": "Billing account Id.", + "type": "string", + "readOnly": true + }, + "billingAccountDisplayName": { + "description": "Billing account display name.", + "type": "string", + "readOnly": true + }, + "billingProfileId": { + "description": "Billing profile Id.", + "type": "string", + "readOnly": true + }, + "billingProfileDisplayName": { + "description": "Billing profile display name.", + "type": "string", + "readOnly": true + }, + "costCenter": { + "description": "Cost center name.", + "type": "string", + "readOnly": true + }, + "invoiceSectionId": { + "description": "Invoice Section Id.", + "type": "string", + "readOnly": true + }, + "invoiceSectionDisplayName": { + "description": "Invoice Section display name.", + "type": "string", + "readOnly": true + }, + "productId": { + "description": "Product Id.", + "type": "string", + "readOnly": true + }, + "productName": { + "description": "Product name.", + "type": "string", + "readOnly": true + }, + "skuId": { + "description": "SKU Id.", + "type": "string", + "readOnly": true + }, + "skuDescription": { + "description": "SKU description.", + "type": "string", + "readOnly": true + } + } + }, + "Enrollment": { + "description": "Current entity level details", + "properties": { + "startDate": { + "description": "Enrollment Start Date", + "type": "string", + "format": "date-time" + }, + "endDate": { + "description": "Enrollment End Date", + "type": "string", + "format": "date-time" + }, + "currency": { + "description": "The currency associated with enrollment", + "type": "string", + "readOnly": true + }, + "channel": { + "description": "The channel for Enrollment", + "type": "string", + "readOnly": true + }, + "policies": { + "description": "The attributes associated with legacy enrollment.", + "$ref": "#/definitions/EnrollmentPolicies", + "readOnly": true + }, + "language": { + "description": "The language for Enrollment", + "type": "string", + "readOnly": true + }, + "countryCode": { + "description": "The countryCode for Enrollment", + "type": "string", + "readOnly": true + }, + "status": { + "description": "Enrollment status", + "type": "string", + "readOnly": true + }, + "billingCycle": { + "description": "Enrollment billing cycle", + "type": "string", + "readOnly": true + } + } + }, + "EnrollmentPolicies": { + "description": "The attributes associated with legacy enrollment", + "properties": { + "accountOwnerViewCharges": { + "description": "The accountOwnerViewCharges flag for Enrollment", + "type": "boolean", + "readOnly": true + }, + "departmentAdminViewCharges": { + "description": "The departmentAdminViewCharges flag for Enrollment", + "type": "boolean", + "readOnly": true + }, + "marketplacesEnabled": { + "description": "The marketplaces flag for Enrollment", + "type": "boolean", + "readOnly": true + }, + "reservedInstancesEnabled": { + "description": "The reserved instances flag for Enrollment", + "type": "boolean", + "readOnly": true + } + } + }, + "DepartmentListResult": { + "description": "Result of listing departments.", + "properties": { + "value": { + "description": "The list of departments.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Department" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "Department": { + "description": "A department resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "A department.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DepartmentProperties" + } + } + }, + "DepartmentProperties": { + "description": "The properties of the department.", + "properties": { + "departmentName": { + "description": "The name for department.", + "type": "string" + }, + "costCenter": { + "description": "The cost center name.", + "type": "string" + }, + "status": { + "description": "The status for 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" + } + } + } + }, + "EnrollmentAccountListResult": { + "description": "Result of listing enrollment accounts.", + "properties": { + "value": { + "description": "The list of enrollment accounts.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/EnrollmentAccount" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "EnrollmentAccount": { + "description": "An account resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "An account.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/EnrollmentAccountProperties" + } + } + }, + "EnrollmentAccountProperties": { + "description": "The properties of the account.", + "properties": { + "accountName": { + "description": "The account name.", + "type": "string" + }, + "costCenter": { + "description": "The cost center name.", + "type": "string" + }, + "accountOwner": { + "description": "The account owner", + "type": "string" + }, + "status": { + "description": "The status for account.", + "type": "string" + }, + "startDate": { + "description": "Account Start Date", + "type": "string", + "format": "date-time" + }, + "endDate": { + "description": "Account End Date", + "type": "string", + "format": "date-time" + }, + "department": { + "description": "Associated department. By default this is not populated, unless it's specified in $expand.", + "$ref": "#/definitions/Department" + } + } + }, + "BillingProfileListResult": { + "description": "Result of listing 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 resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "A billing profile.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/BillingProfileProperties" + } + } + }, + "BillingProfileCreationRequest": { + "description": "The request parameters for creating a new billing profile.", + "properties": { + "displayName": { + "description": "The billing profile name.", + "type": "string" + }, + "poNumber": { + "description": "Purchase order number.", + "type": "string" + }, + "address": { + "description": "Billing address.", + "$ref": "#/definitions/AddressDetails" + }, + "invoiceEmailOptIn": { + "description": "If the billing profile is opted in to receive invoices via email.", + "type": "boolean" + }, + "enabledAzurePlans": { + "description": "Enabled azure plans for this billing profile.", + "type": "array", + "items": { + "$ref": "#/definitions/AzurePlan" + } + } + } + }, + "BillingProfileProperties": { + "description": "The properties of the billing profile.", + "properties": { + "displayName": { + "description": "The billing profile name.", + "type": "string" + }, + "poNumber": { + "description": "Purchase order number.", + "type": "string" + }, + "address": { + "description": "Billing address.", + "$ref": "#/definitions/AddressDetails" + }, + "invoiceEmailOptIn": { + "description": "If the billing profile is opted in to receive invoices via email.", + "type": "boolean", + "readOnly": true + }, + "invoiceDay": { + "description": "Invoice day.", + "type": "integer", + "readOnly": true + }, + "currency": { + "description": "The currency associated with the billing profile.", + "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.", + "type": "array", + "items": { + "$ref": "#/definitions/InvoiceSection" + } + } + } + }, + "AddressDetails": { + "description": "Address details.", + "properties": { + "firstName": { + "description": "First Name.", + "type": "string" + }, + "lastName": { + "description": "Last Name.", + "type": "string" + }, + "companyName": { + "description": "Company Name.", + "type": "string" + }, + "addressLine1": { + "description": "Address Line1.", + "type": "string" + }, + "addressLine2": { + "description": "Address Line2.", + "type": "string" + }, + "addressLine3": { + "description": "Address Line3.", + "type": "string" + }, + "city": { + "description": "Address City.", + "type": "string" + }, + "region": { + "description": "Address Region.", + "type": "string" + }, + "country": { + "description": "Country code uses ISO2, 2-digit format.", + "type": "string" + }, + "postalCode": { + "description": "Address Postal Code.", + "type": "string" + } + } + }, + "InvoiceSectionCreationRequest": { + "description": "The properties of an InvoiceSection.", + "properties": { + "displayName": { + "description": "The name of the InvoiceSection.", + "type": "string" + } + } + }, + "InvoiceSectionListResult": { + "description": "Result of listing 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 InvoiceSection resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "The InvoiceSection.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/InvoiceSectionProperties" + } + } + }, + "InvoiceSectionProperties": { + "description": "The properties of an InvoiceSection.", + "properties": { + "displayName": { + "description": "The name of the InvoiceSection.", + "type": "string" + } + } + }, + "AzurePlan": { + "description": "Details about 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 at which this 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 about a reseller.", + "properties": { + "resellerId": { + "description": "The reseller id.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "A description 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": "Result of listing 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 resource.", + "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 invoice.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "invoiceDate": { + "description": "The date when invoice was created.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "status": { + "description": "Invoice status.", + "type": "string", + "enum": [ + "PastDue", + "Due", + "Paid", + "Void" + ], + "readOnly": true, + "x-ms-enum": { + "name": "InvoiceStatus", + "modelAsString": true + } + }, + "amountDue": { + "description": "Amount due.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "billedAmount": { + "description": "Amount billed.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "invoicePeriodStartDate": { + "description": "The start date of the billing period.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "invoicePeriodEndDate": { + "description": "The end date of the billing period.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "billingProfileId": { + "description": "The billing profile id this invoice belongs to.", + "type": "string", + "readOnly": true + }, + "billingProfileDisplayName": { + "description": "The billing profile display name this invoice belongs to.", + "type": "string", + "readOnly": true + }, + "purchaseOrderNumber": { + "description": "The purchase identifier for the invoice.", + "type": "string", + "readOnly": true + }, + "documents": { + "description": "List of documents available to download including invoice and tax documents.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Document" + } + }, + "payments": { + "description": "List of payments.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PaymentProperties" + } + } + } + }, + "PaymentProperties": { + "description": "The properties of the 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 of the payment.", + "type": "string", + "format": "date-time", + "readOnly": true + } + } + }, + "Document": { + "description": "The properties of the invoice download.", + "properties": { + "kind": { + "description": "Document type.", + "type": "string", + "enum": [ + "Invoice", + "VoidNote", + "Receipt", + "CreditNote" + ], + "readOnly": true, + "x-ms-enum": { + "name": "DocumentType", + "modelAsString": true + } + }, + "url": { + "description": "Document URL.", + "type": "string", + "readOnly": true + } + } + }, + "ProductsListResult": { + "description": "Result of listing products. It contains a list of available products 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 resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProductProperties", + "title": "Product properties" + } + } + }, + "ProductProperties": { + "description": "The properties of the product.", + "properties": { + "displayName": { + "description": "The display name of the product.", + "type": "string", + "readOnly": true + }, + "purchaseDate": { + "description": "The date of purchase.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "productTypeId": { + "description": "The product type id.", + "type": "string", + "readOnly": true + }, + "productType": { + "description": "The type of product.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "Product status.", + "type": "string", + "enum": [ + "Active", + "Inactive", + "PastDue", + "Expiring", + "Expired", + "Disabled", + "Cancelled", + "AutoRenew" + ], + "x-ms-enum": { + "name": "ProductStatusType", + "modelAsString": true + } + }, + "endDate": { + "description": "end date.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "billingFrequency": { + "description": "Billing frequency.", + "type": "string", + "enum": [ + "OneTime", + "Monthly", + "UsageBased" + ], + "x-ms-enum": { + "name": "BillingFrequency", + "modelAsString": true + } + }, + "lastCharge": { + "description": "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 purchased product quantity.", + "type": "number", + "readOnly": true + }, + "skuId": { + "description": "Sku Id.", + "type": "string", + "readOnly": true + }, + "skuDescription": { + "description": "Sku description.", + "type": "string", + "readOnly": true + }, + "availabilityId": { + "description": "Availability Id.", + "type": "string", + "readOnly": true + }, + "parentProductId": { + "description": "Parent Product Id.", + "type": "string", + "readOnly": true + }, + "invoiceSectionId": { + "description": "Invoice section id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "invoiceSectionDisplayName": { + "description": "Invoice section display name to which this product belongs.", + "type": "string", + "readOnly": true + }, + "billingProfileId": { + "description": "Billing Profile id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "billingProfileDisplayName": { + "description": "Billing Profile display name to which this product belongs.", + "type": "string", + "readOnly": true + }, + "customerId": { + "description": "Customer id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "customerDisplayName": { + "description": "Display name of customer to which this product belongs.", + "type": "string", + "readOnly": true + } + } + }, + "ValidateProductTransferEligibilityResult": { + "type": "object", + "description": "Result of the product transfer eligibility validation.", + "properties": { + "isTransferEligible": { + "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": "Result of listing 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 resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BillingSubscriptionProperties", + "title": "Billing subscription properties" + } + } + }, + "BillingSubscriptionProperties": { + "description": "The usage context properties.", + "properties": { + "displayName": { + "description": "display name.", + "type": "string", + "readOnly": true + }, + "subscriptionId": { + "description": "Subscription Id.", + "type": "string", + "format": "uuid", + "readOnly": true + }, + "subscriptionBillingStatus": { + "description": "Subscription billing status.", + "type": "string", + "enum": [ + "Active", + "Inactive", + "Abandoned", + "Deleted", + "Warning" + ], + "x-ms-enum": { + "name": "BillingSubscriptionStatusType", + "modelAsString": true + } + }, + "lastMonthCharges": { + "description": "Last month charges.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "monthToDateCharges": { + "description": "Month to date charges.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "billingProfileId": { + "description": "Billing Profile id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "billingProfileDisplayName": { + "description": "Billing Profile display name to which this product belongs.", + "type": "string", + "readOnly": true + }, + "customerId": { + "description": "Customer id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "customerDisplayName": { + "description": "Display name of customer to which this product belongs.", + "type": "string", + "readOnly": true + }, + "invoiceSectionId": { + "description": "Invoice section id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "invoiceSectionDisplayName": { + "description": "Invoice section display name to which this product belongs.", + "type": "string", + "readOnly": true + }, + "reseller": { + "description": "Reseller for this subscription.", + "readOnly": true, + "$ref": "#/definitions/Reseller" + }, + "skuId": { + "description": "The sku id.", + "type": "string" + }, + "skuDescription": { + "description": "The sku description.", + "type": "string", + "readOnly": true + } + } + }, + "EnrollmentAccountContext": { + "description": "The rating context.", + "properties": { + "costCenter": { + "description": "The cost center name.", + "type": "string" + }, + "startDate": { + "description": "Account Start Date", + "type": "string", + "format": "date-time" + }, + "endDate": { + "description": "Account End Date", + "type": "string", + "format": "date-time" + }, + "enrollmentAccountName": { + "description": "The enrollment account id.", + "type": "string" + } + } + }, + "TransactionListResult": { + "description": "Result of listing reservation transactions.", + "properties": { + "value": { + "description": "The list of reservation 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 reservation transaction resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TransactionProperties", + "title": "Reservation transaction properties" + } + } + }, + "TransactionProperties": { + "description": "The properties of the reservation transaction.", + "properties": { + "kind": { + "type": "string", + "description": "The kind of transaction. Choices are all and reservation.", + "enum": [ + "all", + "reservation" + ], + "x-ms-enum": { + "name": "TransactionTypeKind", + "modelAsString": true + } + }, + "date": { + "description": "The date of reservation transaction.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "invoice": { + "description": "Invoice number or 'pending' if not invoiced.", + "type": "string", + "readOnly": true + }, + "orderId": { + "description": "The reservation order id.", + "type": "string", + "readOnly": true + }, + "orderName": { + "description": "The reservation order name.", + "type": "string", + "readOnly": true + }, + "productFamily": { + "description": "The product family.", + "type": "string", + "readOnly": true + }, + "productTypeId": { + "description": "The product type id.", + "type": "string", + "readOnly": true + }, + "productType": { + "description": "The type of product.", + "type": "string", + "readOnly": true + }, + "productDescription": { + "description": "Product description.", + "type": "string", + "readOnly": true + }, + "transactionType": { + "description": "Transaction types.", + "type": "string", + "enum": [ + "Purchase", + "Usage Charge" + ], + "x-ms-enum": { + "name": "ReservationType", + "modelAsString": true + } + }, + "transactionAmount": { + "description": "Last charge associated with the purchase.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "quantity": { + "description": "Purchase quantity.", + "type": "integer", + "readOnly": true + }, + "invoiceSectionId": { + "description": "Invoice section id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "invoiceSectionDisplayName": { + "description": "Invoice section display name to which this product belongs.", + "type": "string", + "readOnly": true + }, + "billingProfileId": { + "description": "Billing Profile id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "billingProfileDisplayName": { + "description": "Billing Profile display name to which this product belongs.", + "type": "string", + "readOnly": true + }, + "customerId": { + "description": "Customer id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "customerDisplayName": { + "description": "Display name of customer to which this product belongs.", + "type": "string", + "readOnly": true + }, + "subscriptionId": { + "description": "The subscription id.", + "type": "string", + "readOnly": true + }, + "subscriptionName": { + "description": "The subscription name.", + "type": "string", + "readOnly": true + } + } + }, + "Policy": { + "description": "The 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 policy.", + "properties": { + "marketplacePurchases": { + "description": "The marketplace purchases are free, allowed or not allowed.", + "type": "string", + "enum": [ + "AllAllowed", + "FreeAllowed", + "NotAllowed" + ], + "x-ms-enum": { + "name": "MarketplacePurchasesPolicy", + "modelAsString": true + } + }, + "reservationPurchases": { + "description": "The reservation purchases allowed or not.", + "type": "string", + "enum": [ + "Allowed", + "NotAllowed" + ], + "x-ms-enum": { + "name": "ReservationPurchasesPolicy", + "modelAsString": true + } + }, + "viewCharges": { + "description": "Who can view charges.", + "type": "string", + "enum": [ + "None", + "SubscriptionOwner" + ], + "x-ms-enum": { + "name": "ViewChargesPolicy", + "modelAsString": true + } + } + } + }, + "AvailableBalance": { + "description": "Latest available balance on Monetary Credit PI.", + "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" + } + } + }, + "PaymentMethodsListResult": { + "description": "Result of listing payment methods.", + "properties": { + "value": { + "description": "The list of payment methods.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PaymentMethod" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "PaymentMethod": { + "description": "A payment method resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PaymentMethodProperties", + "title": "Payment method properties" + } + } + }, + "PaymentMethodProperties": { + "description": "The properties of the payment method.", + "properties": { + "paymentMethodType": { + "description": "Payment method type.", + "type": "string", + "enum": [ + "Credits", + "ChequeWire" + ], + "x-ms-enum": { + "name": "PaymentMethodType", + "modelAsString": true + } + }, + "details": { + "description": "Details about the payment method.", + "type": "string", + "readOnly": true + }, + "expiration": { + "description": "Expiration month and year.", + "type": "string", + "readOnly": true + }, + "currency": { + "description": "The currency associated with the payment method.", + "type": "string", + "readOnly": true + } + } + }, + "UpdateAutoRenewRequest": { + "type": "object", + "description": "Request parameters to update auto renew for support product.", + "properties": { + "autoRenew": { + "description": "Request parameters to update auto renew policy a product.", + "type": "string", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "UpdateAutoRenew", + "modelAsString": true + } + } + } + }, + "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: Invoice, etc.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string", + "readOnly": true + } + } + } + } + }, + "OperationListResult": { + "description": "Result listing billing operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "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 + } + } + }, + "BillingRoleAssignmentPayload": { + "description": "The payload use to update role assignment on a scope", + "properties": { + "principalId": { + "description": "The user's principal id that the role gets assigned to", + "type": "string" + }, + "billingRoleDefinitionId": { + "description": "The role definition id", + "type": "string" + } + } + }, + "BillingRoleAssignmentListResult": { + "description": "Result of get list of role assignments", + "properties": { + "value": { + "description": "The list role assignments", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/BillingRoleAssignment" + } + } + } + }, + "BillingRoleAssignment": { + "description": "a role assignment", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "The role assignment the caller has", + "x-ms-client-flatten": true, + "$ref": "#/definitions/BillingRoleAssignmentProperties" + } + } + }, + "BillingRoleAssignmentProperties": { + "description": "The properties of the a role assignment.", + "properties": { + "createdOn": { + "description": "the date the role assignment is created", + "type": "string", + "readOnly": true + }, + "createdByPrincipalTenantId": { + "description": "the creator's tenant Id", + "type": "string", + "readOnly": true + }, + "createdByPrincipalId": { + "description": "the creator's principal Id", + "type": "string", + "readOnly": true + }, + "name": { + "description": "the name of the role assignment", + "type": "string", + "readOnly": true + }, + "principalId": { + "description": "The user's principal id that the role gets assigned to", + "type": "string", + "readOnly": true + }, + "roleDefinitionName": { + "description": "The role definition id", + "type": "string", + "readOnly": true + }, + "scope": { + "description": "The scope the role get assigned to", + "type": "string", + "readOnly": true + } + } + }, + "BillingRoleDefinitionListResult": { + "description": "list the role definitions.", + "properties": { + "value": { + "description": "The list of role definitions.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/BillingRoleDefinition" + } + } + } + }, + "BillingRoleDefinition": { + "description": "Result of get role definition for a role.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "The role definition for a role.", + "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", + "x-ms-client-flatten": true, + "$ref": "#/definitions/BillingPermissionsListResult" + }, + "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" + } + } + } + }, + "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 do", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Action" + } + }, + "notActions": { + "description": "The set of actions the caller is not allowed to do", + "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 resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "An agreement.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AgreementProperties" + } + } + }, + "AgreementProperties": { + "description": "The properties of the agreement.", + "properties": { + "agreementLink": { + "description": "The link to the agreement.", + "type": "string", + "readOnly": true + }, + "effectiveDate": { + "description": "Effective date.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "expirationDate": { + "description": "Expiration date.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "participants": { + "description": "Participants or signer of the agreement.", + "type": "array", + "items": { + "$ref": "#/definitions/Participants" + } + }, + "status": { + "description": "The agreement status", + "type": "string", + "readOnly": true + } + } + }, + "ValidateTransferListResponse": { + "description": "Result of transfer validation.", + "properties": { + "value": { + "description": "The list of transfer validation results.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ValidateTransferResponse" + } + } + } + }, + "ValidateTransferResponse": { + "type": "object", + "description": "Transfer validation response.", + "properties": { + "properties": { + "description": "Transfer validation response properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ValidateTransferResponseProperties" + } + } + }, + "ValidateTransferResponseProperties": { + "type": "object", + "description": "Properties of transfer validation response.", + "properties": { + "status": { + "description": "The status of validation", + "type": "string", + "readOnly": true + }, + "productId": { + "description": "The product id for which this result applies.", + "type": "string", + "readOnly": true + }, + "results": { + "description": "Array of validation results.", + "type": "array", + "items": { + "$ref": "#/definitions/ValidationResultProperties" + } + } + } + }, + "ValidationResultProperties": { + "description": "The properties of the validation result.", + "properties": { + "level": { + "description": "Result Level.", + "type": "string", + "readOnly": true + }, + "code": { + "description": "Result Code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "The validation message.", + "type": "string", + "readOnly": true + } + } + }, + "Participants": { + "description": "Details about the participant or signer.", + "properties": { + "status": { + "description": "The signing status", + "type": "string", + "readOnly": true + }, + "statusDate": { + "description": "The date when status got changed.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "email": { + "description": "The email address of the participant or signer.", + "type": "string", + "readOnly": true + } + } + }, + "LineOfCredit": { + "description": "Line of credit resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "A line of credit.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/LineOfCreditProperties" + } + } + }, + "LineOfCreditProperties": { + "description": "The properties of the line of credit.", + "properties": { + "creditLimit": { + "description": "The current credit limit.", + "$ref": "#/definitions/Amount", + "readOnly": false + }, + "reason": { + "description": "The reason for the line of credit status when not approved.", + "type": "string", + "readOnly": true + }, + "remainingBalance": { + "description": "Remaining balance.", + "$ref": "#/definitions/Amount", + "readOnly": true + }, + "status": { + "description": "The line of credit status.", + "type": "string", + "enum": [ + "Approved", + "Rejected" + ], + "x-ms-enum": { + "name": "status", + "modelAsString": true + } + } + } + }, + "Action": { + "description": "the action the caller allowed to do", + "type": "string", + "readOnly": true + }, + "NotAction": { + "description": "the action the caller doesn't allowed to do", + "type": "string", + "readOnly": true + } + }, + "parameters": { + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request. The current version is 2019-10-01-preview." + }, + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Azure Subscription ID.", + "required": true, + "type": "string" + }, + "billingAccountNameParameter": { + "name": "billingAccountName", + "in": "path", + "description": "billing Account Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "invoiceSectionNameParameter": { + "name": "invoiceSectionName", + "in": "path", + "description": "InvoiceSection Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "enrollmentAccountNameParameter": { + "name": "enrollmentAccountName", + "in": "path", + "description": "Enrollment Account Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "departmentNameParameter": { + "name": "departmentName", + "in": "path", + "description": "Department Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingProfileNameParameter": { + "name": "billingProfileName", + "in": "path", + "description": "Billing Profile Id.", + "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": "role definition id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingRoleAssignmentNameParameter": { + "name": "billingRoleAssignmentName", + "in": "path", + "description": "role assignment id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "invoiceNameParameter": { + "name": "invoiceName", + "in": "path", + "description": "Invoice Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "productNameParameter": { + "name": "productName", + "in": "path", + "description": "Invoice Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingSubscriptionNameParameter": { + "name": "billingSubscriptionName", + "in": "path", + "description": "Billing Subscription Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "transferNameParameter": { + "name": "transferName", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "Transfer Name." + }, + "agreementNameParameter": { + "name": "agreementName", + "in": "path", + "description": "Agreement Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "transactionNameParameter": { + "name": "transactionName", + "in": "path", + "description": "Transaction name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "updateAutoRenewRequestParameter": { + "name": "body", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Update auto renew request parameters.", + "schema": { + "$ref": "#/definitions/UpdateAutoRenewRequest" + } + }, + "customerNameParameter": { + "name": "customerName", + "in": "path", + "description": "Customer name.", + "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/preview/2019-10-01-preview/examples/AcceptTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json new file mode 100644 index 000000000000..9f185466b835 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "transferName": "transferName", + "parameters": { + "properties": { + "productDetails": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingAccount.json new file mode 100644 index 000000000000..f73ffa2b0feb --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingAccount.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "parameters": { + "principalId": "00000000-0000-0000-0000-000000000000", + "billingRoleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/providers/Microsoft.Billing/billingRoleDefinition/10000000-aaaa-bbbb-cccc-100000000000" + } + }, + "responses": { + "201": { + "body": { + "value": [ + { + "id": "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:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "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": "46b831ec-42b2-4f1a-8b54-3fd5ff9d6aa1", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "principalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "name": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "properties": { + "createdOn": "2018-06-22T06:03:51.430844+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "principalId": "129db794-64a5-44e0-9838-002780478959", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "name": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "properties": { + "createdOn": "2018-07-06T05:52:57.1463874+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "principalId": "d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "name": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "properties": { + "createdOn": "2018-07-10T22:04:33.8309285+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "principalId": "c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingProfile.json new file mode 100644 index 000000000000..f3995e9ec50f --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingProfile.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "parameters": { + "principalId": "00000000-0000-0000-0000-000000000000", + "billingRoleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Billing/billingRoleDefinition/10000000-aaaa-bbbb-cccc-100000000000" + } + }, + "responses": { + "201": { + "body": { + "value": [ + { + "id": "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:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToInvoiceSection.json new file mode 100644 index 000000000000..6fe07a1e5fb1 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToInvoiceSection.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "parameters": { + "principalId": "00000000-0000-0000-0000-000000000000", + "billingRoleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Billing/billingRoleDefinition/10000000-aaaa-bbbb-cccc-100000000000" + } + }, + "responses": { + "201": { + "body": { + "value": [ + { + "id": "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:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressInvalid.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressInvalid.json new file mode 100644 index 000000000000..7866e1f28e47 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressInvalid.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "address": { + "addressLine1": "55 110th Ave NE", + "city": "bellevue", + "region": "wa", + "postalCode": "98004", + "country": "us" + } + }, + "responses": { + "200": { + "body": { + "status": "Invalid", + "suggestedAddresses": [ + { + "country": "US", + "region": "WA", + "city": "Bellevue", + "addressLine1": "100 110th Ave NE", + "postalCode": "98004" + }, + { + "country": "US", + "region": "WA", + "city": "Bellevue", + "addressLine1": "102 110th Ave NE", + "postalCode": "98004-5804" + }, + { + "country": "US", + "region": "WA", + "city": "Bellevue", + "addressLine1": "104 110th Ave NE", + "postalCode": "98004-5804" + } + ], + "validationMessage": "Invalid address" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressValid.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressValid.json new file mode 100644 index 000000000000..f22d87b8f0d6 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressValid.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "address": { + "addressLine1": "555 110th Ave NE", + "city": "bellevue", + "region": "wa", + "postalCode": "98004", + "country": "us" + } + }, + "responses": { + "200": { + "body": { + "status": "Valid", + "suggestedAddresses": [ + { + "country": "US", + "region": "WA", + "city": "Bellevue", + "addressLine1": "555 110th Ave NE", + "postalCode": "98004-5124" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementByName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementByName.json new file mode 100644 index 000000000000..a74474b993f3 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementByName.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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", + "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/preview/2019-10-01-preview/examples/AgreementsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementsListByBillingAccount.json new file mode 100644 index 000000000000..7858b33f3449 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementsListByBillingAccount.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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", + "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", + "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/preview/2019-10-01-preview/examples/AvailableBalanceByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AvailableBalanceByBillingProfile.json new file mode 100644 index 000000000000..9d5dfbeecf45 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AvailableBalanceByBillingProfile.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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/preview/2019-10-01-preview/examples/BillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccount.json new file mode 100644 index 000000000000..aa49d5ce7f72 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccount.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}", + "name": "{billingAccountName}", + "type": "Microsoft.Billing/billingAccounts", + "properties": { + "displayName": "Test Account", + "agreementType": "MicrosoftCustomerAgreement", + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoicesList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoicesList.json new file mode 100644 index 000000000000..f12d4ea01d35 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoicesList.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "periodStartDate": "2018-01-01", + "periodEndDate": "2018-06-30", + "$filter": "invoicePeriodStartDate le 2018-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoices/1383723", + "name": "1383723", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoices", + "properties": { + "dueDate": "2018-01-16T17:32:28Z", + "invoiceDate": "2018-01-01T17:32:28Z", + "status": "Due", + "amountDue": { + "currency": "USD", + "value": 2000.00 + }, + "billedAmount": { + "currency": "USD", + "value": 2000.00 + }, + "invoicePeriodStartDate": "2018-01-01T17:32:28Z", + "invoicePeriodEndDate": "2018-01-15T17:32:28Z", + "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" + } + ], + "payments": [ + { + "date": "2018-01-14T17:32:28Z", + "paymentType": "credited", + "amount": { + "currency": "USD", + "value": 2000.00 + } + } + ] + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoices/1383724", + "name": "1383724", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoices", + "properties": { + "dueDate": "2018-03-01T17:32:28Z", + "invoiceDate": "2018-02-01T17:32:28Z", + "status": "PastDue", + "amountDue": { + "currency": "USD", + "value": 2000.00 + }, + "billedAmount": { + "currency": "USD", + "value": 2000.00 + }, + "invoicePeriodStartDate": "2018-02-01T17:32:28Z", + "invoicePeriodEndDate": "2018-02-30T17:32:28Z", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso Operations Billing", + "purchaseOrderNumber": "123456", + "documents": [ + { + "kind": "VoidNote", + "url": "https://microsoft.com/voidNote.pdf" + } + ], + "payments": [ + { + "date": "2018-01-14T17:32:28Z", + "paymentType": "credited", + "amount": { + "currency": "USD", + "value": 2000.00 + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountPermissionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountPermissionsList.json new file mode 100644 index 000000000000..26c530ba03ed --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountPermissionsList.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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/preview/2019-10-01-preview/examples/BillingAccountRoleAssignment.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignment.json new file mode 100644 index 000000000000..c8e641b5a9e9 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignment.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingRoleAssignmentName": "{billingRoleAssignmentId}" + }, + "responses": { + "200": { + "body": { + "id": "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": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentDelete.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentDelete.json new file mode 100644 index 000000000000..8df315a28b98 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentDelete.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingRoleAssignmentName": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9" + }, + "responses": { + "200": { + "body": { + "id": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "type": "Microsoft.Billing/roleAssignments", + "properties": { + "createdOn": "2018-06-21T21:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentList.json new file mode 100644 index 000000000000..40ed0ea73d50 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "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": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "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": "46b831ec-42b2-4f1a-8b54-3fd5ff9d6aa1", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "principalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinition.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinition.json new file mode 100644 index 000000000000..61a74831ac7a --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinition.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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 Commerce Root.", + "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": "commerce_root_owner" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinitionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinitionsList.json new file mode 100644 index 000000000000..59e5114ee84b --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinitionsList.json @@ -0,0 +1,162 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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 Commerce Root.", + "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": "commerce_root_owner" + }, + "type": "Microsoft.Billing/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 Commerce Root.", + "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": "commerce_root_contributor" + }, + "type": "Microsoft.Billing/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 Commerce Root.", + "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": "commerce_root_reader" + }, + "type": "Microsoft.Billing/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/billingRoleDefinitions" + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000004", + "name": "10000000-aaaa-bbbb-cccc-100000000004", + "properties": { + "description": "The Basic Purchaser role gives the user the ability to make purchases by creating new Projects and Billing Groups.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000007" + ], + "notActions": [] + } + ], + "roleName": "commerce_root_basic_purchaser" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000005", + "name": "10000000-aaaa-bbbb-cccc-100000000005", + "properties": { + "description": "The Project Creator role gives the user the ability to create new Projects.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000006" + ], + "notActions": [] + } + ], + "roleName": "project_creator" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountWithExpand.json new file mode 100644 index 000000000000..4d567b59a53a --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountWithExpand.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "$expand": "address, invoiceSections, billingProfiles" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}", + "name": "{billingAccountName}", + "type": "Microsoft.Billing/billingAccounts", + "properties": { + "displayName": "Test Account 1", + "agreementType": "MicrosoftCustomerAgreement", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address", + "addressLine2": "Test Address", + "addressLine3": "Test Address", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000", + "billingProfiles": [ + { + "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", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "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" + } + } + ] + } + }, + { + "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", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "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" + } + } + ] + } + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsList.json new file mode 100644 index 000000000000..8ae24f9be32b --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsList.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview" + }, + "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", + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000" + } + }, + { + "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", + "address": null, + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000" + } + }, + { + "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", + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpand.json new file mode 100644 index 000000000000..e4c38f61575b --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpand.json @@ -0,0 +1,253 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "$expand": "address, 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", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address", + "addressLine2": "Test Address", + "addressLine3": "Test Address", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000", + "billingProfiles": [ + { + "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", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "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" + } + }, + { + "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" + } + } + ] + } + }, + { + "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", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "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" + } + } + ] + } + } + ] + } + }, + { + "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", + "address": null, + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000", + "billingProfiles": [ + { + "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", + "address": { + "companyName": "Contoso Test", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "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" + } + }, + { + "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" + } + } + ] + } + }, + { + "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", + "address": { + "companyName": "Contoso Test", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "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" + } + }, + { + "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" + } + } + ] + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpandForEnrollmentDetails.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpandForEnrollmentDetails.json new file mode 100644 index 000000000000..6ffece0e6a18 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpandForEnrollmentDetails.json @@ -0,0 +1,107 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "$expand": "properties/enrollmentDetails, properties/departments, properties/enrollmentAccounts" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/7645820", + "name": "7645820", + "type": "Microsoft.Billing/billingAccounts", + "properties": { + "agreementType": "EnterpriseAgreement", + "address": { + "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/preview/2019-10-01-preview/examples/BillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfile.json new file mode 100644 index 000000000000..0d6b2db613f9 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfile.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilePermissionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilePermissionsList.json new file mode 100644 index 000000000000..d4f6696d9ce1 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilePermissionsList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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/preview/2019-10-01-preview/examples/BillingProfileRoleAssignment.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignment.json new file mode 100644 index 000000000000..9ad68a7d9234 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignment.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "billingRoleAssignmentName": "{billingRoleAssignmentName}" + }, + "responses": { + "200": { + "body": { + "id": "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": "46b831ec-42b2-4f1a-8b54-3fd5ff9d6aa1", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "principalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentDelete.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentDelete.json new file mode 100644 index 000000000000..9ad68a7d9234 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentDelete.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "billingRoleAssignmentName": "{billingRoleAssignmentName}" + }, + "responses": { + "200": { + "body": { + "id": "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": "46b831ec-42b2-4f1a-8b54-3fd5ff9d6aa1", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "principalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentList.json new file mode 100644 index 000000000000..53d8c28df1f1 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentList.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "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": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "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", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "46b831ec-42b2-4f1a-8b54-3fd5ff9d6aa1", + "name": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "name": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "properties": { + "createdOn": "2018-06-22T06:03:51.430844+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "00000000-0000-0000-0000-000000000000", + "name": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "principalId": "129db794-64a5-44e0-9838-002780478959", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "name": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "properties": { + "createdOn": "2018-07-06T05:52:57.1463874+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "00000000-0000-0000-0000-000000000000", + "name": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "principalId": "d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "name": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "properties": { + "createdOn": "2018-07-10T22:04:33.8309285+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "00000000-0000-0000-0000-000000000000", + "name": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "principalId": "c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinition.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinition.json new file mode 100644 index 000000000000..97a3427d47df --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinition.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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 Commerce Root.", + "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": "commerce_root_owner" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinitionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinitionsList.json new file mode 100644 index 000000000000..b89181677bbd --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinitionsList.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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 Commerce Root.", + "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/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 Commerce Root.", + "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/billingRoleDefinitions" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileWithExpand.json new file mode 100644 index 000000000000..9353a69265a5 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileWithExpand.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/invoiceSectionId1", + "name": "invoiceSectionId1", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSectionName1" + } + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListByBillingAccount.json new file mode 100644 index 000000000000..5fba4a2affa6 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListByBillingAccount.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345" + } + }, + { + "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", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListWithExpand.json new file mode 100644 index 000000000000..d102cee86f2a --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListWithExpand.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "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" + } + } + ] + } + }, + { + "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", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "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" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProperty.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProperty.json new file mode 100644 index 000000000000..29cdfa58259d --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProperty.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingProperty/default", + "name": "default", + "type": "Microsoft.Billing/billingProperty", + "properties": { + "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", + "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", + "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 Standard" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscription.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscription.json new file mode 100644 index 000000000000..6442bcb59bfe --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscription.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingSubscriptionName": "{billingSubscriptionName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}", + "name": "{billingSubscriptionName}", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/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", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionByCustomer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionByCustomer.json new file mode 100644 index 000000000000..87cb62f38536 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionByCustomer.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}", + "billingSubscriptionName": "{billingSubscriptionName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions/{billingSubscriptionName}", + "name": "{billingSubscriptionName}", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "My Subscription", + "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 5000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 600 + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "customerDisplayName": "Customer1", + "reseller": { + "resellerId": "3b65b5a8-bd4f-4084-90e9-e1bd667a2b19", + "description": "Reseller2" + }, + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingAccount.json new file mode 100644 index 000000000000..f2df4d2c9b1e --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingAccount.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/90000000-0000-0000-0000-000000000000", + "name": "90000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/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", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/90000000-0000-0000-0000-000000000001", + "name": "90000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/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", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/90000000-0000-0000-0000-000000000002", + "name": "90000000-0000-0000-0000-000000000002", + "type": "Microsoft.Billing/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", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingProfile.json new file mode 100644 index 000000000000..b7b98e0caf11 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingProfile.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/billinSubscriptionId1", + "name": "billingSubscriptionId1", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/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", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/billinSubscriptionId2", + "name": "billingSubscriptionId2", + "type": "Microsoft.Billing/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", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/billinSubscriptionId3", + "name": "billingSubscriptionId3", + "type": "Microsoft.Billing/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", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByCustomer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByCustomer.json new file mode 100644 index 000000000000..bf39a4d40d36 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByCustomer.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions/billinSubscriptionId1", + "name": "billingSubscriptionId1", + "type": "Microsoft.Billing/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 + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "customerDisplayName": "Customer1", + "reseller": { + "resellerId": "89e87bdf-a2a2-4687-925f-4c18b27bccfd", + "description": "Reseller1" + }, + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions/billinSubscriptionId2", + "name": "billingSubscriptionId2", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "Test subscription", + "subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 1000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 400 + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "customerDisplayName": "Customer1", + "reseller": { + "resellerId": "3b65b5a8-bd4f-4084-90e9-e1bd667a2b19", + "description": "Reseller3" + }, + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByInvoiceSection.json new file mode 100644 index 000000000000..c2c53fbe18e5 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByInvoiceSection.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/billinSubscriptionId1", + "name": "billingSubscriptionId1", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/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", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/billinSubscriptionId2", + "name": "billingSubscriptionId2", + "type": "Microsoft.Billing/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", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/billinSubscriptionId3", + "name": "billingSubscriptionId3", + "type": "Microsoft.Billing/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", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CancelTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CancelTransfer.json new file mode 100644 index 000000000000..a8ef6f9eb25e --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CancelTransfer.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "transferName": "transferName" + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "transferStatus": "Pending", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "canceledBy": "user@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateBillingProfile.json new file mode 100644 index 000000000000..dbc4fe70d1d2 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateBillingProfile.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "parameters": { + "displayName": "Finance", + "address": { + "firstName": "Test", + "lastName": "User", + "addressLine1": "1 Microsoft Way", + "city": "Redmond", + "postalCode": "98052", + "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}/billingProfiles/operationResults/ed2975a8-8f77-43bb-a717-ace54326b14b?api-version=2018-07-31", + "Retry-After": "60" + } + }, + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/billingProfileId1", + "name": "billingProfileId1", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "Finance", + "address": { + "firstName": "Test", + "lastName": "User", + "addressLine1": "1 Microsoft Way", + "city": "Redmond", + "postalCode": "98052", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateInvoiceSection.json new file mode 100644 index 000000000000..a47f90decfae --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateInvoiceSection.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "parameters": { + "displayName": "invoiceSection1" + } + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/operationResults/ed2975a8-8f77-43bb-a717-ace54326b14b?api-version=2018-07-31", + "Retry-After": "60" + } + }, + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/invoiceSectionId1", + "name": "invoiceSectionId1", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSection1" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Customer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Customer.json new file mode 100644 index 000000000000..af01afa95c5c --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Customer.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "name": "{customerName}", + "type": "Microsoft.Billing/customers", + "properties": { + "displayName": "customer1" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CustomerPermissionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CustomerPermissionsList.json new file mode 100644 index 000000000000..0878a6a87c4d --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CustomerPermissionsList.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "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/preview/2019-10-01-preview/examples/CustomerWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CustomerWithExpand.json new file mode 100644 index 000000000000..545e94a1f695 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CustomerWithExpand.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}", + "$expand": "enabledAzurePlans,resellers" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "name": "{customerName}", + "type": "Microsoft.Billing/customers", + "properties": { + "displayName": "customerName1", + "enabledAzurePlans": [ + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "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/preview/2019-10-01-preview/examples/CustomersListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CustomersListByBillingAccount.json new file mode 100644 index 000000000000..e5541abe9ec2 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CustomersListByBillingAccount.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "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/customers", + "properties": { + "displayName": "customer1" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/22000000-0000-0000-0000-000000000011", + "name": "22000000-0000-0000-0000-000000000011", + "type": "Microsoft.Billing/customers", + "properties": { + "displayName": "customer2" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CustomersListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CustomersListByBillingProfile.json new file mode 100644 index 000000000000..a5cef0d8a1f4 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CustomersListByBillingProfile.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "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/customers", + "properties": { + "displayName": "customer1" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/22000000-0000-0000-0000-000000000011", + "name": "22000000-0000-0000-0000-000000000011", + "type": "Microsoft.Billing/customers", + "properties": { + "displayName": "customer2" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DeclineTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DeclineTransfer.json new file mode 100644 index 000000000000..b29b036b64a1 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DeclineTransfer.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "transferName": "transferName" + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "transferStatus": "Declined", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Department.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Department.json new file mode 100644 index 000000000000..f63b9c9d1366 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Department.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "departmentName": "{departmentName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}", + "name": "{departmentName}", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "Test department", + "costCenter": "C1", + "status": "Active" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentWithExpand.json new file mode 100644 index 000000000000..af95f0b8bd81 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentWithExpand.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "departmentName": "{departmentName}", + "$expand": "properties/enrollmentAccounts" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}", + "name": "{departmentName}", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName1", + "costCenter": "C1", + "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" + } + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccount.json new file mode 100644 index 000000000000..3b3bbfe078f6 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccount.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "nextLink": "Link to next page", + "value": [ + { + "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" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccountWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccountWithExpand.json new file mode 100644 index 000000000000..18cf8d671a03 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccountWithExpand.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "$expand": "properties/enrollmentAccounts" + }, + "responses": { + "200": { + "body": { + "nextLink": "Link to next page", + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId1", + "name": "departmentId1", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName1", + "costCenter": "C1", + "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}/departments/departmentId2", + "name": "departmentId2", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName2", + "costCenter": "C4", + "status": "Active", + "enrollmentAccounts": [ + { + "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" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId5", + "name": "accountId5", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName5", + "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/preview/2019-10-01-preview/examples/ElevateInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ElevateInvoiceSection.json new file mode 100644 index 000000000000..af82c205f36c --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ElevateInvoiceSection.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "204": {} + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccount.json new file mode 100644 index 000000000000..a70aebe49bc9 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccount.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "enrollmentAccountName": "{enrollmentAccountName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}", + "name": "{enrollmentAccountName}", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName0", + "costCenter": "C0", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountWithExpand.json new file mode 100644 index 000000000000..cb5a33d1a34f --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountWithExpand.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "enrollmentAccountName": "{enrollmentAccountName}", + "$expand": "properties/department" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}", + "name": "{enrollmentAccountName}", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName0", + "costCenter": "C0", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z", + "department": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId1", + "name": "departmentId1", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName1", + "costCenter": "C1", + "status": "Active" + } + } + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccount.json new file mode 100644 index 000000000000..083e08c85171 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccount.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "nextLink": "Link to next page", + "value": [ + { + "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/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccountWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccountWithExpand.json new file mode 100644 index 000000000000..b0d7ebb49ec3 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccountWithExpand.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "$expand": "properties/department" + }, + "responses": { + "200": { + "body": { + "nextLink": "Link to next page", + "value": [ + { + "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", + "department": { + "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}/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", + "department": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId1", + "name": "departmentId1", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName1", + "costCenter": "C1", + "status": "Active" + } + } + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetRecipientTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetRecipientTransfer.json new file mode 100644 index 000000000000..54bd3b29282e --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetRecipientTransfer.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "transferName": "transferName" + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetTransfer.json new file mode 100644 index 000000000000..8cd4ba588f44 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetTransfer.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "transferName": "transferName" + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/IncreaseLineOfCreditBySubscription.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/IncreaseLineOfCreditBySubscription.json new file mode 100644 index 000000000000..ba785726b009 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/IncreaseLineOfCreditBySubscription.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "subscriptionId": "{subscriptionId}", + "parameters": { + "properties": { + "creditLimit": { + "value": 20000.00 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingAccounts/default/lineOfCredit/default", + "name": "default", + "type": "Microsoft.Billing/lineOfCredit", + "properties": { + "creditLimit": { + "currency": "USD", + "value": 20000.00 + }, + "reason": null, + "remainingBalance": { + "currency": "USD", + "value": 6000.00 + }, + "status": "Approved" + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/44000000-0000-0000-0000-000000000000?api-version=2019-10-01-preview", + "Retry-After": "60", + "OData-EntityId": "44000000-0000-0000-0000-000000000000" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InitiateTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InitiateTransfer.json new file mode 100644 index 000000000000..df700ca7644f --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InitiateTransfer.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "parameters": { + "properties": { + "recipientEmailId": "user@contoso.com" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "transferStatus": "Pending", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Invoice.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Invoice.json new file mode 100644 index 000000000000..24f9fc2a1ba3 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Invoice.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceName": "{invoiceName}" + }, + "responses": { + "200": { + "body": { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}", + "name": "{invoiceName}", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoices", + "properties": { + "dueDate": "2018-01-16T17:32:28Z", + "invoiceDate": "2018-01-01T17:32:28Z", + "status": "Due", + "amountDue": { + "currency": "USD", + "value": 2000.00 + }, + "billedAmount": { + "currency": "USD", + "value": 2000.00 + }, + "invoicePeriodStartDate": "2018-01-01T17:32:28Z", + "invoicePeriodEndDate": "2018-01-15T17:32:28Z", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileDisplayName": "Contoso Operations Billing", + "purchaseOrderNumber": "123456", + "documents": [ + { + "kind": "Invoice", + "url": "https://microsoft.com/invoice.pdf" + }, + { + "kind": "Receipt", + "url": "https://microsoft.com/taxDoc.pdf" + }, + { + "kind": "CreditNote", + "url": "https://microsoft.com/creditNote.pdf" + } + ], + "payments": [ + { + "date": "2018-01-14T17:32:28Z", + "paymentType": "credited", + "amount": { + "currency": "USD", + "value": 2000.00 + } + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSection.json new file mode 100644 index 000000000000..90367f326204 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSection.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionPermissionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionPermissionsList.json new file mode 100644 index 000000000000..173d621d8994 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionPermissionsList.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignment.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignment.json new file mode 100644 index 000000000000..b47ac8409fe6 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignment.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingRoleAssignmentName": "{billingRoleAssignmentName}" + }, + "responses": { + "200": { + "body": { + "id": "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": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentDelete.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentDelete.json new file mode 100644 index 000000000000..b47ac8409fe6 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentDelete.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingRoleAssignmentName": "{billingRoleAssignmentName}" + }, + "responses": { + "200": { + "body": { + "id": "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": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentList.json new file mode 100644 index 000000000000..a97a36058424 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentList.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "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": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "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": "46b831ec-42b2-4f1a-8b54-3fd5ff9d6aa1", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "principalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "name": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "properties": { + "createdOn": "2018-06-22T06:03:51.430844+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "principalId": "129db794-64a5-44e0-9838-002780478959", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "name": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "properties": { + "createdOn": "2018-07-06T05:52:57.1463874+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "principalId": "d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "name": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "properties": { + "createdOn": "2018-07-10T22:04:33.8309285+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "principalId": "c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinition.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinition.json new file mode 100644 index 000000000000..945da1be3053 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinition.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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 Commerce Root.", + "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": "commerce_root_owner" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinitionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinitionsList.json new file mode 100644 index 000000000000..a38965fe088c --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinitionsList.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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 Commerce Root.", + "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": "project_owner" + }, + "type": "Microsoft.Billing/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 Commerce Root.", + "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": "project_contributor" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingProfile.json new file mode 100644 index 000000000000..d4da6f96e6f8 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingProfile.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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" + } + }, + { + "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" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoicesListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoicesListByBillingProfile.json new file mode 100644 index 000000000000..f956758dfce4 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoicesListByBillingProfile.json @@ -0,0 +1,112 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "periodStartDate": "2018-01-01", + "periodEndDate": "2018-06-30", + "$filter": "invoicePeriodStartDate le 2018-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/1383723", + "name": "1383723", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoices", + "properties": { + "dueDate": "2018-01-16T17:32:28Z", + "invoiceDate": "2018-01-01T17:32:28Z", + "status": "Due", + "amountDue": { + "currency": "USD", + "value": 2000.00 + }, + "billedAmount": { + "currency": "USD", + "value": 2000.00 + }, + "invoicePeriodStartDate": "2018-01-01T17:32:28Z", + "invoicePeriodEndDate": "2018-01-15T17:32:28Z", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileDisplayName": "Contoso Operations Billing", + "purchaseOrderNumber": "123456", + "documents": [ + { + "kind": "Invoice", + "url": "https://microsoft.com/invoice.pdf" + }, + { + "kind": "Receipt", + "url": "https://microsoft.com/taxDoc.pdf" + }, + { + "kind": "CreditNote", + "url": "https://microsoft.com/creditNote.pdf" + } + ], + "payments": [ + { + "date": "2018-01-14T17:32:28Z", + "paymentType": "credited", + "amount": { + "currency": "USD", + "value": 2000.00 + } + } + ] + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/1383724", + "name": "1383724", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoices", + "properties": { + "dueDate": "2018-03-01T17:32:28Z", + "invoiceDate": "2018-01-01T17:32:28Z", + "status": "PastDue", + "amountDue": { + "currency": "USD", + "value": 2000.00 + }, + "billedAmount": { + "currency": "USD", + "value": 2000.00 + }, + "invoicePeriodStartDate": "2018-02-01T17:32:28Z", + "invoicePeriodEndDate": "2018-02-30T17:32:28Z", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileDisplayName": "Contoso Operations Billing", + "purchaseOrderNumber": "123456", + "documents": [ + { + "kind": "Invoice", + "url": "https://microsoft.com/invoice.pdf" + }, + { + "kind": "Receipt", + "url": "https://microsoft.com/taxDoc.pdf" + }, + { + "kind": "CreditNote", + "url": "https://microsoft.com/creditNote.pdf" + } + ], + "payments": [ + { + "date": "2018-01-14T17:32:28Z", + "paymentType": "credited", + "amount": { + "currency": "USD", + "value": 2000.00 + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/LineOfCreditBySubscription.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/LineOfCreditBySubscription.json new file mode 100644 index 000000000000..8e1fb4a25ff5 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/LineOfCreditBySubscription.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingAccounts/default/lineOfCredit/default", + "name": "default", + "type": "Microsoft.Billing/lineOfCredit", + "properties": { + "creditLimit": { + "currency": "USD", + "value": 20000.00 + }, + "reason": null, + "remainingBalance": { + "currency": "USD", + "value": 6000.00 + }, + "status": "Approved" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListRecipientTransfers.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListRecipientTransfers.json new file mode 100644 index 000000000000..f74de2bc4fbe --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListRecipientTransfers.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "ReservedInstance", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListTransfers.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListTransfers.json new file mode 100644 index 000000000000..f74b70eceff0 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListTransfers.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerCancelTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerCancelTransfer.json new file mode 100644 index 000000000000..d028698305f9 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerCancelTransfer.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "customerName": "{customerName}", + "transferName": "transferName" + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}", + "transferStatus": "Pending", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "canceledBy": "user@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerGetTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerGetTransfer.json new file mode 100644 index 000000000000..5c7540f29c58 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerGetTransfer.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "customerName": "{customerName}", + "transferName": "transferName" + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}", + "initiatorCustomerType": "Partner", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerInitiateTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerInitiateTransfer.json new file mode 100644 index 000000000000..d9f14dde3aae --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerInitiateTransfer.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "customerName": "{customerName}", + "parameters": { + "properties": { + "recipientEmailId": "user@contoso.com" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}", + "transferStatus": "Pending", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerListTransfers.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerListTransfers.json new file mode 100644 index 000000000000..34ca3d04c1dc --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerListTransfers.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "customerName": "{customerName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json new file mode 100644 index 000000000000..c19b410527cd --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000055", + "name": "00000000-0000-0000-0000-000000000055", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/paymentMethods", + "properties": { + "currency": "USD", + "details": "Credits", + "expiration": "4/2020", + "paymentMethodType": "Credits" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000022/paymentMethods/00000000-0000-0000-0000-000000000026", + "name": "00000000-0000-0000-0000-000000000026", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/paymentMethods", + "properties": { + "details": "Check Wire", + "paymentMethodType": "CheckWire" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000026", + "name": "00000000-0000-0000-0000-000000000026", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/paymentMethods", + "properties": { + "details": "Check Wire", + "paymentMethodType": "CheckWire" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json new file mode 100644 index 000000000000..6506d4a85345 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000055", + "name": "00000000-0000-0000-0000-000000000055", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/paymentMethods", + "properties": { + "currency": "USD", + "details": "Credits", + "expiration": "4/2020", + "paymentMethodType": "Credits" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000026", + "name": "00000000-0000-0000-0000-000000000026", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/paymentMethods", + "properties": { + "details": "Check Wire", + "paymentMethodType": "CheckWire" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json new file mode 100644 index 000000000000..2f9f8684219b --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "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": "SubscriptionOwner" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownload.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownload.json new file mode 100644 index 000000000000..99dd9c120725 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownload.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceName": "{invoiceName}" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", + "Retry-After": "60", + "OData-EntityId": "45000000-0000-0000-0000-000000000000" + } + }, + "200": { + "body": { + "url": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", + "expiryTime": "2018-07-21T17:32:28Z" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownloadByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownloadByBillingProfile.json new file mode 100644 index 000000000000..ce84c4d3c0c3 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownloadByBillingProfile.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", + "Retry-After": "60", + "OData-EntityId": "45000000-0000-0000-0000-000000000000" + } + }, + "200": { + "body": { + "url": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", + "expiryTime": "2018-07-21T17:32:28Z" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Product.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Product.json new file mode 100644 index 000000000000..8fd3e3f66b12 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Product.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "productName": "{productName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}", + "name": "{productName}", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/products", + "properties": { + "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", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "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/preview/2019-10-01-preview/examples/ProductByCustomer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductByCustomer.json new file mode 100644 index 000000000000..e455c28950aa --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductByCustomer.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}", + "productName": "{productName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/products/{productName}", + "name": "{productName}", + "type": "Microsoft.Billing/billingAccounts/customers/products", + "properties": { + "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", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "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/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json new file mode 100644 index 000000000000..f644c52ce463 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "productName": "{productName}", + "body": { + "autoRenew": "false" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "endDate": "2018-05-01T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json new file mode 100644 index 000000000000..b8e1fdd126b2 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "productName": "{productName}", + "body": { + "autoRenew": "false" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "endDate": "2018-05-01T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByBillingAccount.json new file mode 100644 index 000000000000..501b5d32eba2 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByBillingAccount.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/products", + "properties": { + "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", + "availabilityId": "AvailabilityId1", + "billingFrequency": "OneTime", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "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}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/10000000-0000-0000-0000-000000000001", + "name": "10000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/products", + "properties": { + "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", + "availabilityId": "AvailabilityId1", + "billingFrequency": "Monthly", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "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/preview/2019-10-01-preview/examples/ProductsListByCustomer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByCustomer.json new file mode 100644 index 000000000000..b0b423f7bd82 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByCustomer.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/products/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/customers/products", + "properties": { + "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", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "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" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/products/10000000-0000-0000-0000-000000000001", + "name": "10000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/billingAccounts/customers/products", + "properties": { + "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", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "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/preview/2019-10-01-preview/examples/ProductsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByInvoiceSection.json new file mode 100644 index 000000000000..a8ab1eaf3cb5 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByInvoiceSection.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/products", + "properties": { + "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", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "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}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/10000000-0000-0000-0000-000000000001", + "name": "10000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/products", + "properties": { + "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", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "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/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingAccount.json new file mode 100644 index 000000000000..9837318050a0 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingAccount.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30", + "$filter": "properties/kind eq 'Reservation'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/11000000-0000-0000-0000-000000000000/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", + "properties": { + "kind": "reservation", + "date": "2018-04-23T00:00:00Z", + "invoice": "2344233", + "orderName": "Contoso Reserved", + "orderId": "6d8e7ed9-d3be-48b0-8c7a-e19246a6d30c", + "productDescription": "Standard D1, US West 3", + "transactionType": "Cancel", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "quantity": 4, + "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", + "subscriptionId": "7800000000-0000-0000-0000-0000000000009456", + "subscriptionName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/11000000-0000-0000-0000-000000000000/transactions/21000000-0000-0000-0000-000000000000", + "name": "21000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", + "properties": { + "kind": "reservation", + "date": "2018-05-05T00:00:00Z", + "invoice": "Pending", + "orderName": "Test Reserved", + "orderId": "1c24006f-8350-4315-ad8f-6d11180448f9", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 6000.00 + }, + "quantity": 5, + "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", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingProfile.json new file mode 100644 index 000000000000..6a3087f4d285 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingProfile.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30", + "$filter": "properties/kind eq 'Reservation'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", + "properties": { + "kind": "reservation", + "date": "2018-04-23T00:00:00Z", + "invoice": "2344233", + "orderName": "Contoso Reserved", + "orderId": "6d8e7ed9-d3be-48b0-8c7a-e19246a6d30c", + "productDescription": "Standard D1, US West 3", + "transactionType": "Cancel", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "quantity": 4, + "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", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/65000000-0000-0000-0000-000000000000", + "name": "65000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", + "properties": { + "kind": "reservation", + "date": "2018-05-05T00:00:00Z", + "invoice": "Pending", + "orderName": "Test Reserved", + "orderId": "1c24006f-8350-4315-ad8f-6d11180448f9", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 6000.00 + }, + "quantity": 5, + "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", + "subscriptionId": "82000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByCustomer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByCustomer.json new file mode 100644 index 000000000000..79632f8e73a7 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByCustomer.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30", + "$filter": "properties/kind eq 'Reservation'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", + "properties": { + "kind": "reservation", + "date": "2018-04-23T00:00:00Z", + "invoice": "2344233", + "orderName": "Contoso Reserved", + "orderId": "6d8e7ed9-d3be-48b0-8c7a-e19246a6d30c", + "productDescription": "Standard D1, US West 3", + "transactionType": "Cancel", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "quantity": 4, + "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", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/82000000-0000-0000-0000-000000000000", + "name": "82000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", + "properties": { + "kind": "reservation", + "date": "2018-05-05T00:00:00Z", + "invoice": "Pending", + "orderName": "Test Reserved", + "orderId": "1c24006f-8350-4315-ad8f-6d11180448f9", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 6000.00 + }, + "quantity": 5, + "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", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByInvoiceSection.json new file mode 100644 index 000000000000..1fa92aa00514 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByInvoiceSection.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30", + "$filter": "properties/kind eq 'Reservation'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", + "properties": { + "kind": "reservation", + "date": "2018-04-23T00:00:00Z", + "invoice": "2344233", + "orderName": "Contoso Reserved", + "orderId": "6d8e7ed9-d3be-48b0-8c7a-e19246a6d30c", + "productDescription": "Standard D1, US West 3", + "transactionType": "Cancel", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "quantity": 4, + "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", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/82000000-0000-0000-0000-000000000000", + "name": "82000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", + "properties": { + "kind": "reservation", + "date": "2018-05-05T00:00:00Z", + "invoice": "Pending", + "orderName": "Test Reserved", + "orderId": "1c24006f-8350-4315-ad8f-6d11180448f9", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 6000.00 + }, + "quantity": 5, + "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", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Transaction.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Transaction.json new file mode 100644 index 000000000000..d8cea9b67c25 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Transaction.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "transactionName": "{transactionName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/{transactionName}", + "name": "{transactionName}", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", + "properties": { + "kind": "all", + "date": "2018-05-01T00:00:00Z", + "invoice": "2344233", + "productFamily": "Storage", + "productTypeId": "A12345", + "productType": "Reserved 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/{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/preview/2019-10-01-preview/examples/TransactionsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingAccount.json new file mode 100644 index 000000000000..93bd0ca988c8 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingAccount.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/11000000-0000-0000-0000-000000000000/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", + "properties": { + "kind": "all", + "date": "2018-05-01T00:00:00Z", + "invoice": "2344233", + "productFamily": "Storage", + "productTypeId": "A12345", + "productType": "Dev Support", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "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" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/11000000-0000-0000-0000-000000000000/transactions/51000000-0000-0000-0000-000000000000", + "name": "51000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", + "properties": { + "kind": "all", + "date": "2018-04-01T00:00:00Z", + "invoice": "pending", + "productFamily": "Storage", + "productTypeId": "A12345", + "productType": "Azure subscription", + "productDescription": "Send grid Gold", + "transactionType": "Usage Charge", + "transactionAmount": { + "currency": "USD", + "value": 50.00 + }, + "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" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingProfile.json new file mode 100644 index 000000000000..9df271727ab7 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingProfile.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", + "properties": { + "kind": "all", + "date": "2018-05-01T00:00:00Z", + "invoice": "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" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/51000000-0000-0000-0000-000000000000", + "name": "51000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/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" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByCustomer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByCustomer.json new file mode 100644 index 000000000000..c920861adb83 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByCustomer.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "customerName": "{customerName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "all", + "date": "2018-05-01T00:00:00Z", + "invoice": "2344233", + "productFamily": "Storage", + "productTypeId": "A12345", + "productType": "Reserved VM Instance", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "customerDisplayName": "Contoso operations customer" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/transactions/51000000-0000-0000-0000-000000000000", + "name": "51000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/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 + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}", + "customerDisplayName": "Contoso operations customer" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByInvoiceSection.json new file mode 100644 index 000000000000..1d293179d171 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByInvoiceSection.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", + "properties": { + "kind": "all", + "date": "2018-05-01T00:00:00Z", + "invoice": "2344233", + "productFamily": "Storage", + "productTypeId": "A12345", + "productType": "Reserved 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/{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}/billingProfiles/{billingProfileName}/transactions/51000000-0000-0000-0000-000000000000", + "name": "51000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/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/{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/preview/2019-10-01-preview/examples/TransferBillingSubscription.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransferBillingSubscription.json new file mode 100644 index 000000000000..64c231d3945f --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransferBillingSubscription.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingSubscriptionName": "{billingSubscriptionName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "billingSubscriptionName": "Test subscription" + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}/transfer/operationResults/10000000-0000-0000-0000-000000000001?api-version=2019-10-01-preview", + "Retry-After": "30" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransferProduct.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransferProduct.json new file mode 100644 index 000000000000..6f12595407f9 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransferProduct.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "productName": "{productName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}/products/{productName}", + "name": "{productName}", + "type": "Microsoft.Billing/products", + "properties": { + "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", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "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=2019-10-01-preview", + "Retry-After": "60", + "OData-EntityId": "44000000-0000-0000-0000-000000000000" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingAccount.json new file mode 100644 index 000000000000..7217cbd1c847 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingAccount.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "parameters": { + "properties": { + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "1 Microsoft Way", + "city": "Redmond", + "postalCode": "98052", + "region": "WA", + "country": "US" + } + } + } + }, + "responses": { + "202": { + "headers": { + "Location": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/operationStatus/65e1f2bf-c31c-4b89-a599-25d9d4172af9?api-version=2019-10-01-preview", + "Retry-After": "10" + } + }, + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}", + "name": "{billingAccountName}", + "type": "Microsoft.Billing/billingAccounts", + "properties": { + "displayName": "Test Account", + "agreementType": "MicrosoftCustomerAgreement", + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingProfile.json new file mode 100644 index 000000000000..e961486ce376 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingProfile.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "parameters": { + "properties": { + "displayName": "BillingProfile11", + "poNumber": "ABC12345" + } + } + }, + "responses": { + "202": { + "headers": { + "Location": "/providers/Microsoft.Billing/billingOperations/ed2975a8-8f77-43bb-a717-ace54326b14b?api-version=2018-05-31-preview", + "Retry-After": "60" + } + }, + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "name": "{billingProfileName}", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "BillingProfile11", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateInvoiceSection.json new file mode 100644 index 000000000000..cb8d162ad843 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateInvoiceSection.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "parameters": { + "properties": { + "displayName": "invoiceSection1" + } + } + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/operationResults/ed2975a8-8f77-43bb-a717-ace54326b14b?api-version=2019-10-01-preview", + "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" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json new file mode 100644 index 000000000000..b433103f8405 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "eTag": "\"1d34d012214157f\"", + "parameters": { + "properties": { + "marketplacePurchases": "FreeAllowed", + "reservationPurchases": "NotAllowed", + "viewCharges": "SubscriptionOwner" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default", + "name": "default", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/policies", + "properties": { + "marketplacePurchases": "FreeAllowed", + "reservationPurchases": "NotAllowed", + "viewCharges": "SubscriptionOwner" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferFailure.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferFailure.json new file mode 100644 index 000000000000..4d64f82de2b0 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferFailure.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "productName": "{productName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "isTransferEligible": false, + "errorDetails": { + "code": "ProductTypeNotSupported", + "message": "Product '{productName}' is not allowed to be transferred." + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferSuccess.json new file mode 100644 index 000000000000..0fe8a40992bf --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferSuccess.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "productName": "{productName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "isTransferEligible": true + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferFailure.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferFailure.json new file mode 100644 index 000000000000..40c754ee5b50 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferFailure.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingSubscriptionName": "{billingSubscriptionName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "isTransferEligible": false, + "errorDetails": { + "code": "SubscriptionNotActive", + "message": "Invoice Sections can only be changed for active subscriptions." + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferSuccess.json new file mode 100644 index 000000000000..3c0e5e220b3c --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferSuccess.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingSubscriptionName": "{billingSubscriptionName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "isTransferEligible": true + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateTransfer.json new file mode 100644 index 000000000000..e9c86fa0809b --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateTransfer.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "transferName": "transferName", + "parameters": { + "properties": { + "productDetails": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "productId": "subscriptionId", + "status": "Failed", + "results": [ + { + "level": "Error", + "code": "NotIntendedRecipient", + "message": "Intented recipient is different." + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/readme.md b/specification/billing/resource-manager/readme.md index 06b504538849..2c5a7289d1aa 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-2018-11-preview +tag: package-2019-10-preview +``` + +### Tag: package-2019-10-preview + +These settings apply only when `--tag=package-2019-10-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2019-10-preview' +input-file: +- Microsoft.Billing/preview/2019-10-01-preview/billing.json ``` ### Tag: package-2018-11-preview @@ -76,6 +85,7 @@ 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 @@ -123,12 +133,26 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-billing ``` yaml $(java) && $(multiapi) batch: + - tag: package-2019-10-preview - tag: package-2018-11-preview - tag: package-2018-03-preview - tag: package-2017-04-preview - tag: package-2017-02-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.billing.v2019_10_01_preview + output-folder: $(azure-libraries-for-java-folder)/billing/resource-manager/v2019_10_01_preview +regenerate-manager: true +generate-interface: true +``` + ### Tag: package-2018-11-preview and java These settings apply only when `--tag=package-2018-11-preview --java` is specified on the command line. @@ -182,3 +206,32 @@ generate-interface: 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)/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 + - $(this-folder)/Microsoft.Billing/preview/2017-04-24-preview/billing.json + - $(this-folder)/Microsoft.Billing/preview/2017-02-27-preview/billing.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/blockchain/resource-manager/readme.csharp.md b/specification/blockchain/resource-manager/readme.csharp.md index d655d961e23d..81346a910cf1 100644 --- a/specification/blockchain/resource-manager/readme.csharp.md +++ b/specification/blockchain/resource-manager/readme.csharp.md @@ -9,6 +9,6 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.Blockchain payload-flattening-threshold: 2 - output-folder: $(csharp-sdks-folder)/Blockchain/Management.Blockchain/Generated + output-folder: $(csharp-sdks-folder)/blockchain/Microsoft.Azure.Management.Blockchain/src/Generated clear-output-folder: true ``` diff --git a/specification/blockchain/resource-manager/readme.md b/specification/blockchain/resource-manager/readme.md index 8ae32e2548d4..d0aa094d899f 100644 --- a/specification/blockchain/resource-manager/readme.md +++ b/specification/blockchain/resource-manager/readme.md @@ -84,3 +84,28 @@ See configuration in [readme.node.md](./readme.node.md) 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.Blockchain/preview/2018-06-01-preview/blockchain.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/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintAssignment.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintAssignment.json index 854a5822aec2..51375d097579 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintAssignment.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintAssignment.json @@ -42,8 +42,12 @@ "operationId": "Assignments_CreateOrUpdate", "description": "Create or update a blueprint assignment.", "x-ms-examples": { - "Assignment with system-assigned managed identity": { "$ref": "./examples/BlueprintAssignment_Create_SystemAssignedMSI.json" }, - "Assignment with user-assigned managed identity": { "$ref": "./examples/BlueprintAssignment_Create_UserAssignedMSI.json" } + "Assignment with system-assigned managed identity": { + "$ref": "./examples/BlueprintAssignment_Create_SystemAssignedMSI.json" + }, + "Assignment with user-assigned managed identity": { + "$ref": "./examples/BlueprintAssignment_Create_UserAssignedMSI.json" + } }, "parameters": [ { diff --git a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintDefinition.json b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintDefinition.json index c0fa224da67f..8e438d1ceedd 100644 --- a/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintDefinition.json +++ b/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintDefinition.json @@ -416,6 +416,15 @@ }, { "$ref": "#/parameters/PublishedBlueprintVersionIdParameter" + }, + { + "name": "publishedBlueprint", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/PublishedBlueprint" + }, + "description": "Published Blueprint to create or update." } ], "responses": { diff --git a/specification/blueprint/resource-manager/readme.md b/specification/blueprint/resource-manager/readme.md index 264c8ebcc2a5..5fbee9859aa1 100644 --- a/specification/blueprint/resource-manager/readme.md +++ b/specification/blueprint/resource-manager/readme.md @@ -59,6 +59,7 @@ 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-js - repo: azure-sdk-for-python @@ -129,3 +130,32 @@ directive: where: $.paths reason: OperationsAPI for Microsoft.Management is out of scope. ``` + +## 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.Blueprint/preview/2017-11-11-preview/blueprintDefinition.json + - $(this-folder)/Microsoft.Blueprint/preview/2017-11-11-preview/blueprintAssignment.json + - $(this-folder)/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintDefinition.json + - $(this-folder)/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintAssignment.json + - $(this-folder)/Microsoft.Blueprint/preview/2018-11-01-preview/assignmentOperation.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/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/botservice.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/botservice.json index c4c0937d18bb..bdb75d317201 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/botservice.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/botservice.json @@ -762,7 +762,7 @@ } } } - } + } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}": { "put": { @@ -1904,7 +1904,7 @@ ], "properties": { "properties": { - "$ref": "#/definitions/ConnectionSettingProperties", + "$ref": "#/definitions/ConnectionSettingProperties", "description": "The set of properties specific to bot channel resource" } } @@ -1929,7 +1929,7 @@ "ServiceProviderResponseList": { "properties": { "nextLink": { - "description": "The link used to get the next page of bot service service providers.", + "description": "The link used to get the next page of bot service providers.", "type": "string" }, "value": { @@ -1938,10 +1938,10 @@ "items": { "$ref": "#/definitions/ServiceProvider" }, - "description": "Gets the list of bot service service providers and their properties." + "description": "Gets the list of bot service providers and their properties." } }, - "description": "The list of bot service service providers response." + "description": "The list of bot service providers response." }, "ServiceProviderParameter": { "properties": { @@ -1990,7 +1990,7 @@ "description": "Display Name of the Service Provider", "readOnly": true }, - "serviceProviderName": { + "serviceProviderName": { "type": "string", "description": "Display Name of the Service Provider", "readOnly": true @@ -2212,38 +2212,38 @@ "modelAsString": false, "values": [ { - "value": "FacebookChannel" + "value": "FacebookChannel" }, { - "value": "EmailChannel" + "value": "EmailChannel" }, { - "value": "KikChannel" + "value": "KikChannel" }, { - "value": "TelegramChannel" + "value": "TelegramChannel" }, { - "value": "SlackChannel" + "value": "SlackChannel" }, { - "value": "MsTeamsChannel" + "value": "MsTeamsChannel" }, { - "value": "SkypeChannel" + "value": "SkypeChannel" }, { - "value": "WebChatChannel" + "value": "WebChatChannel" }, { - "value": "DirectLineChannel" + "value": "DirectLineChannel" }, { - "value": "SmsChannel" + "value": "SmsChannel" } ] }, "description": "The name of the Channel resource." } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/CheckNameAvailability.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/CheckNameAvailability.json index 76879ee47152..9fcfe64e34f5 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/CheckNameAvailability.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/CheckNameAvailability.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/CreateBot.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/CreateBot.json index 93aef41e70a4..d996c2ff1856 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/CreateBot.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/CreateBot.json @@ -105,4 +105,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/DeleteBot.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/DeleteBot.json index 08b09eeb7aaa..db0a9ac54feb 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/DeleteBot.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/DeleteBot.json @@ -6,9 +6,7 @@ "resourceName": "samplebotname" }, "responses": { - "200": { - }, - "204": { - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/DeleteChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/DeleteChannel.json index 3ef121f395fe..e4d585042a4e 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/DeleteChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/DeleteChannel.json @@ -1,15 +1,13 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "channelName": "EmailChannel" - }, - "responses": { - "200": { - }, - "204": { - } - } - } \ No newline at end of file + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "channelName": "EmailChannel" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/DeleteConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/DeleteConnection.json index 7f11a36734a0..cbf6b1cbcae2 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/DeleteConnection.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/DeleteConnection.json @@ -1,15 +1,13 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "connectionName": "sampleConnection" - }, - "responses": { - "200": { - }, - "204": { - } - } - } \ No newline at end of file + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "connectionName": "sampleConnection" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetBot.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetBot.json index 2a350bd44f8c..2f10fc01f960 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetBot.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetBot.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetChannel.json index b4d47e2ff7bd..347067a44c35 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetChannel.json @@ -1,24 +1,24 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "channelName": "EmailChannel" - }, - "responses": { - "200": { - "body": { - "location": "global", + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "channelName": "EmailChannel" + }, + "responses": { + "200": { + "body": { + "location": "global", + "properties": { + "channelName": "EmailChannel", "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true } } } } - } \ No newline at end of file + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetConnection.json index c77afa08e4f4..68d996399fbb 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetConnection.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetConnection.json @@ -1,36 +1,36 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "connectionName": "sampleConnection" - }, - "responses": { - "200": { - "body": { - "location": "global", - "id": "someid", - "etag": "etag1", - "name": "The Name of the Connection Setting", - "properties": { - "clientId": "sampleclientid", - "clientSecret": "samplesecret", - "scopes": "samplescope", - "serviceProviderId": "serviceproviderid", - "serviceProviderDisplayName": "serviceProviderDisplayName", - "parameters": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "value2" - } - ] - } + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "connectionName": "sampleConnection" + }, + "responses": { + "200": { + "body": { + "location": "global", + "id": "someid", + "etag": "etag1", + "name": "The Name of the Connection Setting", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "serviceProviderDisplayName": "serviceProviderDisplayName", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] } } } - } \ No newline at end of file + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetOperations.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetOperations.json index 1f4b66c26e48..69c51e28cc39 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetOperations.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/GetOperations.json @@ -50,4 +50,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListBotsByResourceGroup.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListBotsByResourceGroup.json index 848588797bff..a4149dff51f7 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListBotsByResourceGroup.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListBotsByResourceGroup.json @@ -45,4 +45,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListBotsBySubscription.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListBotsBySubscription.json index d67462778e86..e9b7512bea46 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListBotsBySubscription.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListBotsBySubscription.json @@ -44,4 +44,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListChannel.json index e67f9a9991cc..9e40a9715f36 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListChannel.json @@ -1,27 +1,27 @@ { + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "channelName": "EmailChannel", "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "channelName": "EmailChannel", - "parameters": { - "location": "global" - } - }, - "responses": { - "200": { - "body": { - "location": "global", + "location": "global" + } + }, + "responses": { + "200": { + "body": { + "location": "global", + "properties": { + "channelName": "EmailChannel", "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true } } } } - } \ No newline at end of file + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListChannelsByBotService.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListChannelsByBotService.json index 2f6126c6eef8..679c19597e75 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListChannelsByBotService.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListChannelsByBotService.json @@ -1,46 +1,46 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "resourceName": "samplebotname", - "api-version": "2017-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "location": "global", + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "resourceName": "samplebotname", + "api-version": "2017-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "global", + "properties": { + "channelName": "EmailChannel", "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true } - }, - { - "location": "global", + } + }, + { + "location": "global", + "properties": { + "channelName": "FacebookChannel", "properties": { - "channelName": "FacebookChannel", - "properties":{ - "verifyToken": "othertoken", - "appId": "id", - "appSecret": "secret", - "callbackUrl": "appid", - "isEnabled": true, - "pages": [ - { - "accessToken": "token", - "id": "id" - } - ] - } + "verifyToken": "othertoken", + "appId": "id", + "appSecret": "secret", + "callbackUrl": "appid", + "isEnabled": true, + "pages": [ + { + "accessToken": "token", + "id": "id" + } + ] } } - ] - } + } + ] } } - } \ No newline at end of file + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListConnectionsByBotService.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListConnectionsByBotService.json index 49c377536a72..e43d92231c3a 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListConnectionsByBotService.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListConnectionsByBotService.json @@ -1,35 +1,35 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "The Name of the Connection Setting", - "properties": { - "clientId": "sampleclientid", - "clientSecret": "samplesecret", - "scopes": "samplescope", - "serviceProviderId": "serviceproviderid", - "parameters": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "value2" - } - ] + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "The Name of the Connection Setting", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" } - } - ] + ] + } + } + ] } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListServiceProviders.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListServiceProviders.json index ff0c08f4bb8d..b74af64b98b1 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListServiceProviders.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/ListServiceProviders.json @@ -1,33 +1,33 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "api-version": "2017-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "id": "sampleId", - "displayName": "sample display name", - "serviceProviderName": "sampleServiceProvider", - "devPortalUrl": "sampleDevPortalUrl", - "iconUrl": "sampleIconUrl", - "parameters": [ - { - "name": "sampleParameterName", - "type": "sampleParameterType", - "displayName": "sampleDisplayName", - "description": "sampleDescription", - "helpUrl": "sampleHelpUrl", - "default": "sampleDefaultValue" - } - ] + "parameters": { + "subscriptionId": "subscription-id", + "api-version": "2017-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "id": "sampleId", + "displayName": "sample display name", + "serviceProviderName": "sampleServiceProvider", + "devPortalUrl": "sampleDevPortalUrl", + "iconUrl": "sampleIconUrl", + "parameters": [ + { + "name": "sampleParameterName", + "type": "sampleParameterType", + "displayName": "sampleDisplayName", + "description": "sampleDescription", + "helpUrl": "sampleHelpUrl", + "default": "sampleDefaultValue" } - } - ] + ] + } + } + ] } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/PutChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/PutChannel.json index e14c2fd30a52..7b9f1bb62567 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/PutChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/PutChannel.json @@ -1,15 +1,29 @@ { + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "channelName": "EmailChannel", "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "channelName": "EmailChannel", - "parameters": { + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { "location": "global", "properties": { "channelName": "EmailChannel", - "properties":{ + "properties": { "emailAddress": "a@b.com", "password": "pwd", "isEnabled": true @@ -17,32 +31,18 @@ } } }, - "responses": { - "200": { - "body": { - "location": "global", - "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } - } - } - }, - "201": { - "body": { - "location": "global", + "201": { + "body": { + "location": "global", + "properties": { + "channelName": "EmailChannel", "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true } } } } - } \ No newline at end of file + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/PutConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/PutConnection.json index 513f1bd473c5..d010920c65a2 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/PutConnection.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/PutConnection.json @@ -1,84 +1,84 @@ { + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "connectionName": "sampleConnection", "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "connectionName": "sampleConnection", - "parameters": { - "location": "West US", - "etag": "etag1", - "name": "samplename", - "type": "sampletype", + "location": "West US", + "etag": "etag1", + "name": "samplename", + "type": "sampletype", + "id": "someid", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "location": "global", "id": "someid", + "etag": "etag1", + "name": "The Name of the Connection Setting", "properties": { "clientId": "sampleclientid", "clientSecret": "samplesecret", "scopes": "samplescope", "serviceProviderId": "serviceproviderid", + "serviceProviderDisplayName": "serviceProviderDisplayName", "parameters": [ { - "key": "key1", - "value": "value1" + "key": "key1", + "value": "value1" }, { - "key": "key2", - "value": "value2" + "key": "key2", + "value": "value2" } ] } } }, - "responses": { - "200": { - "body": { - "location": "global", - "id": "someid", - "etag": "etag1", - "name": "The Name of the Connection Setting", - "properties": { - "clientId": "sampleclientid", - "clientSecret": "samplesecret", - "scopes": "samplescope", - "serviceProviderId": "serviceproviderid", - "serviceProviderDisplayName": "serviceProviderDisplayName", - "parameters": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "value2" - } - ] - } - } - }, - "201": { - "body": { - "location": "global", - "id": "someid", - "etag": "etag1", - "name": "The Name of the Connection Setting", - "properties": { - "clientId": "sampleclientid", - "clientSecret": "samplesecret", - "scopes": "samplescope", - "serviceProviderId": "serviceproviderid", - "serviceProviderDisplayName": "serviceProviderDisplayName", - "parameters": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "value2" - } - ] - } + "201": { + "body": { + "location": "global", + "id": "someid", + "etag": "etag1", + "name": "The Name of the Connection Setting", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "serviceProviderDisplayName": "serviceProviderDisplayName", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] } + } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/UpdateBot.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/UpdateBot.json index 350fb4b8dd25..e43047d57cae 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/UpdateBot.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/UpdateBot.json @@ -107,4 +107,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/UpdateChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/UpdateChannel.json index e14c2fd30a52..7b9f1bb62567 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/UpdateChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/UpdateChannel.json @@ -1,15 +1,29 @@ { + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "channelName": "EmailChannel", "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "channelName": "EmailChannel", - "parameters": { + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { "location": "global", "properties": { "channelName": "EmailChannel", - "properties":{ + "properties": { "emailAddress": "a@b.com", "password": "pwd", "isEnabled": true @@ -17,32 +31,18 @@ } } }, - "responses": { - "200": { - "body": { - "location": "global", - "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } - } - } - }, - "201": { - "body": { - "location": "global", + "201": { + "body": { + "location": "global", + "properties": { + "channelName": "EmailChannel", "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true } } } } - } \ No newline at end of file + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/UpdateConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/UpdateConnection.json index ed4550c1d27f..37bf4e7d4431 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/UpdateConnection.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2017-12-01/examples/UpdateConnection.json @@ -1,13 +1,38 @@ { + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "connectionName": "sampleConnection", "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "connectionName": "sampleConnection", - "parameters": { + "location": "global", + "etag": "etag1", + "id": "someid", + "name": "The Name of the Connection Setting", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "serviceProviderDisplayName": "serviceProviderDisplayName", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] + } + } + }, + "responses": { + "200": { + "body": { "location": "global", - "etag": "etag1", "id": "someid", "name": "The Name of the Connection Setting", "properties": { @@ -18,66 +43,41 @@ "serviceProviderDisplayName": "serviceProviderDisplayName", "parameters": [ { - "key": "key1", - "value": "value1" + "key": "key1", + "value": "value1" }, { - "key": "key2", - "value": "value2" + "key": "key2", + "value": "value2" } ] } } }, - "responses": { - "200": { - "body": { - "location": "global", - "id": "someid", - "name": "The Name of the Connection Setting", - "properties": { - "clientId": "sampleclientid", - "clientSecret": "samplesecret", - "scopes": "samplescope", - "serviceProviderId": "serviceproviderid", - "serviceProviderDisplayName": "serviceProviderDisplayName", - "parameters": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "value2" - } - ] - } - } - }, - "201": { - "body": { - "location": "global", - "etag": "etag1", - "id": "someid", - "name": "The Name of the Connection Setting", - "properties": { - "clientId": "sampleclientid", - "clientSecret": "samplesecret", - "scopes": "samplescope", - "serviceProviderId": "serviceproviderid", - "serviceProviderDisplayName": "serviceProviderDisplayName", - "parameters": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "value2" - } - ] - } + "201": { + "body": { + "location": "global", + "etag": "etag1", + "id": "someid", + "name": "The Name of the Connection Setting", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "serviceProviderDisplayName": "serviceProviderDisplayName", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] } + } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/botservice.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/botservice.json index f49c370b5504..507ff3a08f79 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/botservice.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/botservice.json @@ -1105,7 +1105,7 @@ "description": "Creates an Enterprise Channel.", "operationId": "EnterpriseChannels_Create", "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options" : { + "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, "x-ms-examples": { @@ -1164,7 +1164,7 @@ "description": "Updates an Enterprise Channel.", "operationId": "EnterpriseChannels_Update", "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options" : { + "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, "x-ms-examples": { @@ -1224,7 +1224,7 @@ "description": "Deletes an Enterprise Channel from the resource group", "operationId": "EnterpriseChannels_Delete", "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options" : { + "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, "x-ms-examples": { @@ -2217,7 +2217,7 @@ "ServiceProviderResponseList": { "properties": { "nextLink": { - "description": "The link used to get the next page of bot service service providers.", + "description": "The link used to get the next page of bot service providers.", "type": "string" }, "value": { @@ -2226,10 +2226,10 @@ "items": { "$ref": "#/definitions/ServiceProvider" }, - "description": "Gets the list of bot service service providers and their properties." + "description": "Gets the list of bot service providers and their properties." } }, - "description": "The list of bot service service providers response." + "description": "The list of bot service providers response." }, "ServiceProviderParameter": { "properties": { @@ -2489,7 +2489,18 @@ "state": { "type": "string", "description": "The current state of the Enterprise Channel.", - "enum": ["Creating", "CreateFailed", "Started", "Starting", "StartFailed", "Stopped", "Stopping", "StopFailed", "Deleting", "DeleteFailed"], + "enum": [ + "Creating", + "CreateFailed", + "Started", + "Starting", + "StartFailed", + "Stopped", + "Stopping", + "StopFailed", + "Deleting", + "DeleteFailed" + ], "x-ms-enum": { "name": "EnterpriseChannelState", "modelAsString": true @@ -2518,7 +2529,18 @@ "state": { "type": "string", "description": "The current state of the Enterprise Channel Node.", - "enum": ["Creating", "CreateFailed", "Started", "Starting", "StartFailed", "Stopped", "Stopping", "StopFailed", "Deleting", "DeleteFailed"], + "enum": [ + "Creating", + "CreateFailed", + "Started", + "Starting", + "StartFailed", + "Stopped", + "Stopping", + "StopFailed", + "Deleting", + "DeleteFailed" + ], "x-ms-enum": { "name": "EnterpriseChannelNodeState", "modelAsString": true @@ -2650,4 +2672,4 @@ "description": "The name of the Channel resource." } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/CheckNameAvailability.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/CheckNameAvailability.json index 28cf840c235e..b2cfc2eea323 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/CheckNameAvailability.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/CheckNameAvailability.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/CreateBot.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/CreateBot.json index 93aef41e70a4..d996c2ff1856 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/CreateBot.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/CreateBot.json @@ -105,4 +105,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/CreateEnterpriseChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/CreateEnterpriseChannel.json index 85c333d8ee82..24158455c93a 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/CreateEnterpriseChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/CreateEnterpriseChannel.json @@ -73,4 +73,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteBot.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteBot.json index 08b09eeb7aaa..db0a9ac54feb 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteBot.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteBot.json @@ -6,9 +6,7 @@ "resourceName": "samplebotname" }, "responses": { - "200": { - }, - "204": { - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteChannel.json index 3ef121f395fe..e4d585042a4e 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteChannel.json @@ -1,15 +1,13 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "channelName": "EmailChannel" - }, - "responses": { - "200": { - }, - "204": { - } - } - } \ No newline at end of file + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "channelName": "EmailChannel" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteConnection.json index 7f11a36734a0..cbf6b1cbcae2 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteConnection.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteConnection.json @@ -1,15 +1,13 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "connectionName": "sampleConnection" - }, - "responses": { - "200": { - }, - "204": { - } - } - } \ No newline at end of file + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "connectionName": "sampleConnection" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteEnterpriseChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteEnterpriseChannel.json index 06808df3de3f..5c848da77dce 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteEnterpriseChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/DeleteEnterpriseChannel.json @@ -6,9 +6,7 @@ "resourceName": "contoso-dl" }, "responses": { - "200": { - }, - "204": { - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/EnterpriseChannelCheckNameAvailability.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/EnterpriseChannelCheckNameAvailability.json index a5f6c1221cd6..6718a287512b 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/EnterpriseChannelCheckNameAvailability.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/EnterpriseChannelCheckNameAvailability.json @@ -2,8 +2,7 @@ "parameters": { "api-version": "2018-07-12", "parameters": { - "name": "enterpriseChannelName", - "type": "string" + "name": "enterpriseChannelName" } }, "responses": { @@ -14,4 +13,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetBot.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetBot.json index 2a350bd44f8c..2f10fc01f960 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetBot.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetBot.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetChannel.json index b4d47e2ff7bd..347067a44c35 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetChannel.json @@ -1,24 +1,24 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "channelName": "EmailChannel" - }, - "responses": { - "200": { - "body": { - "location": "global", + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "channelName": "EmailChannel" + }, + "responses": { + "200": { + "body": { + "location": "global", + "properties": { + "channelName": "EmailChannel", "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true } } } } - } \ No newline at end of file + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetConnection.json index c77afa08e4f4..68d996399fbb 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetConnection.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetConnection.json @@ -1,36 +1,36 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "connectionName": "sampleConnection" - }, - "responses": { - "200": { - "body": { - "location": "global", - "id": "someid", - "etag": "etag1", - "name": "The Name of the Connection Setting", - "properties": { - "clientId": "sampleclientid", - "clientSecret": "samplesecret", - "scopes": "samplescope", - "serviceProviderId": "serviceproviderid", - "serviceProviderDisplayName": "serviceProviderDisplayName", - "parameters": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "value2" - } - ] - } + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "connectionName": "sampleConnection" + }, + "responses": { + "200": { + "body": { + "location": "global", + "id": "someid", + "etag": "etag1", + "name": "The Name of the Connection Setting", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "serviceProviderDisplayName": "serviceProviderDisplayName", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] } } } - } \ No newline at end of file + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetEnterpriseChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetEnterpriseChannel.json index 36160b0941fc..e75ee68f0148 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetEnterpriseChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetEnterpriseChannel.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetOperations.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetOperations.json index 1f4b66c26e48..69c51e28cc39 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetOperations.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/GetOperations.json @@ -50,4 +50,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListBotsByResourceGroup.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListBotsByResourceGroup.json index 848588797bff..a4149dff51f7 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListBotsByResourceGroup.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListBotsByResourceGroup.json @@ -45,4 +45,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListBotsBySubscription.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListBotsBySubscription.json index d67462778e86..e9b7512bea46 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListBotsBySubscription.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListBotsBySubscription.json @@ -44,4 +44,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListChannel.json index e67f9a9991cc..9e40a9715f36 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListChannel.json @@ -1,27 +1,27 @@ { + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "channelName": "EmailChannel", "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "channelName": "EmailChannel", - "parameters": { - "location": "global" - } - }, - "responses": { - "200": { - "body": { - "location": "global", + "location": "global" + } + }, + "responses": { + "200": { + "body": { + "location": "global", + "properties": { + "channelName": "EmailChannel", "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true } } } } - } \ No newline at end of file + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListChannelsByBotService.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListChannelsByBotService.json index 2f6126c6eef8..679c19597e75 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListChannelsByBotService.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListChannelsByBotService.json @@ -1,46 +1,46 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "resourceName": "samplebotname", - "api-version": "2017-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "location": "global", + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "resourceName": "samplebotname", + "api-version": "2017-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "global", + "properties": { + "channelName": "EmailChannel", "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true } - }, - { - "location": "global", + } + }, + { + "location": "global", + "properties": { + "channelName": "FacebookChannel", "properties": { - "channelName": "FacebookChannel", - "properties":{ - "verifyToken": "othertoken", - "appId": "id", - "appSecret": "secret", - "callbackUrl": "appid", - "isEnabled": true, - "pages": [ - { - "accessToken": "token", - "id": "id" - } - ] - } + "verifyToken": "othertoken", + "appId": "id", + "appSecret": "secret", + "callbackUrl": "appid", + "isEnabled": true, + "pages": [ + { + "accessToken": "token", + "id": "id" + } + ] } } - ] - } + } + ] } } - } \ No newline at end of file + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListConnectionsByBotService.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListConnectionsByBotService.json index 49c377536a72..e43d92231c3a 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListConnectionsByBotService.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListConnectionsByBotService.json @@ -1,35 +1,35 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "The Name of the Connection Setting", - "properties": { - "clientId": "sampleclientid", - "clientSecret": "samplesecret", - "scopes": "samplescope", - "serviceProviderId": "serviceproviderid", - "parameters": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "value2" - } - ] + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "The Name of the Connection Setting", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" } - } - ] + ] + } + } + ] } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListEnterpriseChannelsByResourceGroup.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListEnterpriseChannelsByResourceGroup.json index a3ec61874c53..efce8f37fc1a 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListEnterpriseChannelsByResourceGroup.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListEnterpriseChannelsByResourceGroup.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListServiceProviders.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListServiceProviders.json index ff0c08f4bb8d..b74af64b98b1 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListServiceProviders.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/ListServiceProviders.json @@ -1,33 +1,33 @@ { - "parameters": { - "subscriptionId": "subscription-id", - "api-version": "2017-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "id": "sampleId", - "displayName": "sample display name", - "serviceProviderName": "sampleServiceProvider", - "devPortalUrl": "sampleDevPortalUrl", - "iconUrl": "sampleIconUrl", - "parameters": [ - { - "name": "sampleParameterName", - "type": "sampleParameterType", - "displayName": "sampleDisplayName", - "description": "sampleDescription", - "helpUrl": "sampleHelpUrl", - "default": "sampleDefaultValue" - } - ] + "parameters": { + "subscriptionId": "subscription-id", + "api-version": "2017-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "id": "sampleId", + "displayName": "sample display name", + "serviceProviderName": "sampleServiceProvider", + "devPortalUrl": "sampleDevPortalUrl", + "iconUrl": "sampleIconUrl", + "parameters": [ + { + "name": "sampleParameterName", + "type": "sampleParameterType", + "displayName": "sampleDisplayName", + "description": "sampleDescription", + "helpUrl": "sampleHelpUrl", + "default": "sampleDefaultValue" } - } - ] + ] + } + } + ] } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/PutChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/PutChannel.json index e14c2fd30a52..7b9f1bb62567 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/PutChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/PutChannel.json @@ -1,15 +1,29 @@ { + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "channelName": "EmailChannel", "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "channelName": "EmailChannel", - "parameters": { + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { "location": "global", "properties": { "channelName": "EmailChannel", - "properties":{ + "properties": { "emailAddress": "a@b.com", "password": "pwd", "isEnabled": true @@ -17,32 +31,18 @@ } } }, - "responses": { - "200": { - "body": { - "location": "global", - "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } - } - } - }, - "201": { - "body": { - "location": "global", + "201": { + "body": { + "location": "global", + "properties": { + "channelName": "EmailChannel", "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true } } } } - } \ No newline at end of file + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/PutConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/PutConnection.json index 513f1bd473c5..d010920c65a2 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/PutConnection.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/PutConnection.json @@ -1,84 +1,84 @@ { + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "connectionName": "sampleConnection", "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "connectionName": "sampleConnection", - "parameters": { - "location": "West US", - "etag": "etag1", - "name": "samplename", - "type": "sampletype", + "location": "West US", + "etag": "etag1", + "name": "samplename", + "type": "sampletype", + "id": "someid", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "location": "global", "id": "someid", + "etag": "etag1", + "name": "The Name of the Connection Setting", "properties": { "clientId": "sampleclientid", "clientSecret": "samplesecret", "scopes": "samplescope", "serviceProviderId": "serviceproviderid", + "serviceProviderDisplayName": "serviceProviderDisplayName", "parameters": [ { - "key": "key1", - "value": "value1" + "key": "key1", + "value": "value1" }, { - "key": "key2", - "value": "value2" + "key": "key2", + "value": "value2" } ] } } }, - "responses": { - "200": { - "body": { - "location": "global", - "id": "someid", - "etag": "etag1", - "name": "The Name of the Connection Setting", - "properties": { - "clientId": "sampleclientid", - "clientSecret": "samplesecret", - "scopes": "samplescope", - "serviceProviderId": "serviceproviderid", - "serviceProviderDisplayName": "serviceProviderDisplayName", - "parameters": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "value2" - } - ] - } - } - }, - "201": { - "body": { - "location": "global", - "id": "someid", - "etag": "etag1", - "name": "The Name of the Connection Setting", - "properties": { - "clientId": "sampleclientid", - "clientSecret": "samplesecret", - "scopes": "samplescope", - "serviceProviderId": "serviceproviderid", - "serviceProviderDisplayName": "serviceProviderDisplayName", - "parameters": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "value2" - } - ] - } + "201": { + "body": { + "location": "global", + "id": "someid", + "etag": "etag1", + "name": "The Name of the Connection Setting", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "serviceProviderDisplayName": "serviceProviderDisplayName", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] } + } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateBot.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateBot.json index 350fb4b8dd25..e43047d57cae 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateBot.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateBot.json @@ -107,4 +107,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateChannel.json index e14c2fd30a52..7b9f1bb62567 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateChannel.json @@ -1,15 +1,29 @@ { + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "channelName": "EmailChannel", "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "channelName": "EmailChannel", - "parameters": { + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { "location": "global", "properties": { "channelName": "EmailChannel", - "properties":{ + "properties": { "emailAddress": "a@b.com", "password": "pwd", "isEnabled": true @@ -17,32 +31,18 @@ } } }, - "responses": { - "200": { - "body": { - "location": "global", - "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } - } - } - }, - "201": { - "body": { - "location": "global", + "201": { + "body": { + "location": "global", + "properties": { + "channelName": "EmailChannel", "properties": { - "channelName": "EmailChannel", - "properties":{ - "emailAddress": "a@b.com", - "password": "pwd", - "isEnabled": true - } + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true } } } } - } \ No newline at end of file + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateConnection.json index ed4550c1d27f..37bf4e7d4431 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateConnection.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateConnection.json @@ -1,13 +1,38 @@ { + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2017-01-01", + "resourceName": "samplebotname", + "connectionName": "sampleConnection", "parameters": { - "subscriptionId": "subscription-id", - "resourceGroupName": "OneResourceGroupName", - "api-version": "2017-01-01", - "resourceName": "samplebotname", - "connectionName": "sampleConnection", - "parameters": { + "location": "global", + "etag": "etag1", + "id": "someid", + "name": "The Name of the Connection Setting", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "serviceProviderDisplayName": "serviceProviderDisplayName", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] + } + } + }, + "responses": { + "200": { + "body": { "location": "global", - "etag": "etag1", "id": "someid", "name": "The Name of the Connection Setting", "properties": { @@ -18,66 +43,41 @@ "serviceProviderDisplayName": "serviceProviderDisplayName", "parameters": [ { - "key": "key1", - "value": "value1" + "key": "key1", + "value": "value1" }, { - "key": "key2", - "value": "value2" + "key": "key2", + "value": "value2" } ] } } }, - "responses": { - "200": { - "body": { - "location": "global", - "id": "someid", - "name": "The Name of the Connection Setting", - "properties": { - "clientId": "sampleclientid", - "clientSecret": "samplesecret", - "scopes": "samplescope", - "serviceProviderId": "serviceproviderid", - "serviceProviderDisplayName": "serviceProviderDisplayName", - "parameters": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "value2" - } - ] - } - } - }, - "201": { - "body": { - "location": "global", - "etag": "etag1", - "id": "someid", - "name": "The Name of the Connection Setting", - "properties": { - "clientId": "sampleclientid", - "clientSecret": "samplesecret", - "scopes": "samplescope", - "serviceProviderId": "serviceproviderid", - "serviceProviderDisplayName": "serviceProviderDisplayName", - "parameters": [ - { - "key": "key1", - "value": "value1" - }, - { - "key": "key2", - "value": "value2" - } - ] - } + "201": { + "body": { + "location": "global", + "etag": "etag1", + "id": "someid", + "name": "The Name of the Connection Setting", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "serviceProviderDisplayName": "serviceProviderDisplayName", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] } + } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateEnterpriseChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateEnterpriseChannel.json index 1481a2406a65..c3c9eb05a1a7 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateEnterpriseChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2018-07-12/examples/UpdateEnterpriseChannel.json @@ -76,4 +76,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/botservice/resource-manager/readme.java.md b/specification/botservice/resource-manager/readme.java.md new file mode 100644 index 000000000000..7c13266e26db --- /dev/null +++ b/specification/botservice/resource-manager/readme.java.md @@ -0,0 +1,46 @@ +## 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.botservice +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-botservice +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-07-12 + - tag: package-2017-12-01 +``` + +### Tag: package-2018-07-12 and java + +These settings apply only when `--tag=package-2018-07-12 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-07-12' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.botservice.v2018_07_12 + output-folder: $(azure-libraries-for-java-folder)/botservice/resource-manager/v2018_07_12 +regenerate-manager: true +generate-interface: true +``` +### Tag: package-2017-12-01 and java + +These settings apply only when `--tag=package-2017-12-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2017-12-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.botservice.v2017_12_01 + output-folder: $(azure-libraries-for-java-folder)/botservice/resource-manager/v2017_12_01 +regenerate-manager: true +generate-interface: true +``` \ No newline at end of file diff --git a/specification/botservice/resource-manager/readme.md b/specification/botservice/resource-manager/readme.md index feddccaf1218..4e13dd4c54a1 100644 --- a/specification/botservice/resource-manager/readme.md +++ b/specification/botservice/resource-manager/readme.md @@ -7,40 +7,6 @@ This is the AutoRest configuration file for BotService. --- - -### Java multi-api - -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2017-12-01 - - tag: package-2018-07-12 -``` - -### Tag: package-2018-07-12 and java - -These settings apply only when `--tag=package-2018-07-12 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2018-07-12' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.botservice.v2018-07-12 - output-folder: $(azure-libraries-for-java-folder)/botservice/resource-manager/v2018-07-12 -regenerate-manager: true -generate-interface: true -``` -### Tag: package-2017-12-01 and java - -These settings apply only when `--tag=package-2017-12-01 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2017-12-01' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.botservice.v2017_12_01 - output-folder: $(azure-libraries-for-java-folder)/botservice/resource-manager/v2017_12_01 -regenerate-manager: true -generate-interface: true -``` - ## Getting Started To build the SDK for BotService, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: @@ -116,6 +82,7 @@ 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-go ``` @@ -138,6 +105,36 @@ csharp: See configuration in [readme.go.md](./readme.go.md) +## Java + +See configuration in [readme.java.md](./readme.java.md) + ## Python See readme.python.md file. + +## 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.BotService/preview/2018-07-12/botservice.json + - $(this-folder)/Microsoft.BotService/preview/2017-12-01/botservice.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/cdn/resource-manager/Microsoft.Cdn/preview/2019-06-15-preview/cdn.json b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2019-06-15-preview/cdn.json index f5137d463e36..3080deedf48a 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2019-06-15-preview/cdn.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2019-06-15-preview/cdn.json @@ -3228,7 +3228,7 @@ "type": "string" }, "customHostname": { - "description": "Host to redirect. Leave empty to use use the incoming host as the destination host.", + "description": "Host to redirect. Leave empty to use the incoming host as the destination host.", "type": "string" }, "customQueryString": { diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2019-04-15/cdn.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2019-04-15/cdn.json index b45f81d57230..5bb4fb80a430 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2019-04-15/cdn.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2019-04-15/cdn.json @@ -3143,9 +3143,11 @@ "type": "string", "enum": [ "CacheExpiration", + "CacheKeyQueryString", "ModifyRequestHeader", "ModifyResponseHeader", - "UrlRedirect" + "UrlRedirect", + "UrlRewrite" ], "x-ms-enum": { "name": "DeliveryRuleAction", @@ -3230,6 +3232,52 @@ } } }, + "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", @@ -3366,6 +3414,58 @@ } } }, + "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", diff --git a/specification/cdn/resource-manager/readme.go.md b/specification/cdn/resource-manager/readme.go.md index 1ab801621aad..2700f6d89157 100644 --- a/specification/cdn/resource-manager/readme.go.md +++ b/specification/cdn/resource-manager/readme.go.md @@ -28,7 +28,7 @@ These settings apply only when `--tag=package-2019-06 --go` is specified on the Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2019-06' && $(go) -output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/preview/2019-06-15-preview/$(namespace) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-06-15-preview/$(namespace) ``` ### Tag: package-2019-04 and go diff --git a/specification/cdn/resource-manager/readme.md b/specification/cdn/resource-manager/readme.md index 2ab64af3ab52..05316f09283b 100644 --- a/specification/cdn/resource-manager/readme.md +++ b/specification/cdn/resource-manager/readme.md @@ -119,8 +119,6 @@ swagger-to-sdk: - repo: azure-sdk-for-js - repo: azure-sdk-for-node - repo: azure-sdk-for-ruby - after_scripts: - - bundle install && rake arm:regen_all_profiles['azure_mgmt_cdn'] ``` @@ -147,3 +145,35 @@ 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! + +``` 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.Cdn/preview/2019-06-15-preview/cdn.json + - $(this-folder)/Microsoft.Cdn/preview/2019-06-15-preview/cdnwebapplicationfirewall.json + - $(this-folder)/Microsoft.Cdn/stable/2019-04-15/cdn.json + - $(this-folder)/Microsoft.Cdn/stable/2017-10-12/cdn.json + - $(this-folder)/Microsoft.Cdn/stable/2017-04-02/cdn.json + - $(this-folder)/Microsoft.Cdn/stable/2016-10-02/cdn.json + - $(this-folder)/Microsoft.Cdn/stable/2016-04-02/cdn.json + - $(this-folder)/Microsoft.Cdn/stable/2015-06-01/cdn.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/AnomalyDetector/readme.md b/specification/cognitiveservices/data-plane/AnomalyDetector/readme.md index 167f4f4cfbfc..b09563822d24 100644 --- a/specification/cognitiveservices/data-plane/AnomalyDetector/readme.md +++ b/specification/cognitiveservices/data-plane/AnomalyDetector/readme.md @@ -75,3 +75,28 @@ java: 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/v1.0/AnomalyDetector.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/AutoSuggest/readme.md b/specification/cognitiveservices/data-plane/AutoSuggest/readme.md index ac8d53bb38fc..6b6ed5c1122e 100644 --- a/specification/cognitiveservices/data-plane/AutoSuggest/readme.md +++ b/specification/cognitiveservices/data-plane/AutoSuggest/readme.md @@ -101,3 +101,28 @@ java: prefix-model-type: Bing 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)/stable/v1.0/AutoSuggest.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/ComputerVision/readme.md b/specification/cognitiveservices/data-plane/ComputerVision/readme.md index 9281c84f539d..d43f37fd6ae0 100644 --- a/specification/cognitiveservices/data-plane/ComputerVision/readme.md +++ b/specification/cognitiveservices/data-plane/ComputerVision/readme.md @@ -120,3 +120,29 @@ directive: $ = $.replace( /TextRecognitionMode mode, String url/g, "String url, TextRecognitionMode mode" ); $ = $.replace( /recognizeTextWithServiceResponseAsync\(mode, url\)/g, "recognizeTextWithServiceResponseAsync(url, mode)" ) ``` + +## 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)/stable/v2.0/ComputerVision.json + - $(this-folder)/stable/v2.0/Ocr.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/ContentModerator/readme.md b/specification/cognitiveservices/data-plane/ContentModerator/readme.md index e335566dd8aa..bad11ca66b02 100644 --- a/specification/cognitiveservices/data-plane/ContentModerator/readme.md +++ b/specification/cognitiveservices/data-plane/ContentModerator/readme.md @@ -107,3 +107,28 @@ java: 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)/stable/v1.0/ContentModerator.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/ContentModerator/stable/v1.0/ContentModerator.json b/specification/cognitiveservices/data-plane/ContentModerator/stable/v1.0/ContentModerator.json index 46f997866223..da898426929b 100644 --- a/specification/cognitiveservices/data-plane/ContentModerator/stable/v1.0/ContentModerator.json +++ b/specification/cognitiveservices/data-plane/ContentModerator/stable/v1.0/ContentModerator.json @@ -967,8 +967,7 @@ ], "responses": { "201": { - "description": "Created", - "schema": {} + "description": "Created" }, "default": { "description": "Error response.", diff --git a/specification/cognitiveservices/data-plane/ContentModerator/stable/v1.0/examples/AddTermResource.JSON b/specification/cognitiveservices/data-plane/ContentModerator/stable/v1.0/examples/AddTermResource.JSON index 673d551a6eb8..29472f38deb0 100644 --- a/specification/cognitiveservices/data-plane/ContentModerator/stable/v1.0/examples/AddTermResource.JSON +++ b/specification/cognitiveservices/data-plane/ContentModerator/stable/v1.0/examples/AddTermResource.JSON @@ -7,9 +7,6 @@ "language": "eng" }, "responses": { - "201": { - "headers": {}, - "body": {} - } + "201": {} } } diff --git a/specification/cognitiveservices/data-plane/CustomImageSearch/readme.md b/specification/cognitiveservices/data-plane/CustomImageSearch/readme.md index 1af777d98f3b..67fae62999a9 100644 --- a/specification/cognitiveservices/data-plane/CustomImageSearch/readme.md +++ b/specification/cognitiveservices/data-plane/CustomImageSearch/readme.md @@ -101,3 +101,28 @@ java: prefix-model-type: Bing 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)/stable/v1.0/CustomImageSearch.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/CustomVision/Prediction/readme.md b/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md index 438e862b93ce..806fa4654f8d 100644 --- a/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md +++ b/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md @@ -114,3 +114,29 @@ java: 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)/stable/v2.0/Prediction.json + - $(this-folder)/stable/v3.0/Prediction.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/CustomVision/Training/readme.md b/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md index 9bfa6d7c8b41..ce4d4504d2ab 100644 --- a/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md +++ b/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md @@ -129,3 +129,31 @@ java: 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)/stable/v2.0/Training.json + - $(this-folder)/stable/v2.1/Training.json + - $(this-folder)/stable/v2.2/Training.json + - $(this-folder)/stable/v3.0/Training.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/CustomWebSearch/readme.md b/specification/cognitiveservices/data-plane/CustomWebSearch/readme.md index 0d368a06ce39..8ee85e0ee746 100644 --- a/specification/cognitiveservices/data-plane/CustomWebSearch/readme.md +++ b/specification/cognitiveservices/data-plane/CustomWebSearch/readme.md @@ -77,3 +77,28 @@ java: prefix-model-type: Bing 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)/stable/v1.0/CustomSearch.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/EntitySearch/readme.md b/specification/cognitiveservices/data-plane/EntitySearch/readme.md index 84aca57beeca..747b3e3a58d3 100644 --- a/specification/cognitiveservices/data-plane/EntitySearch/readme.md +++ b/specification/cognitiveservices/data-plane/EntitySearch/readme.md @@ -94,3 +94,28 @@ java: prefix-model-type: Bing 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)/stable/v1.0/EntitySearch.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/Face/readme.md b/specification/cognitiveservices/data-plane/Face/readme.md index 5c6a367eb0f6..94ccd041fce0 100644 --- a/specification/cognitiveservices/data-plane/Face/readme.md +++ b/specification/cognitiveservices/data-plane/Face/readme.md @@ -70,3 +70,28 @@ java: 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)/stable/v1.0/Face.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/Face/stable/v1.0/examples/ApplySnapshot.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/ApplySnapshot.json index 7ce325b284f1..b6a9b3b07da6 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/ApplySnapshot.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/ApplySnapshot.json @@ -11,7 +11,6 @@ }, "responses": { "202": { - "body": "", "header": { "Operation-Location": "/operations/84276574-2a2a-4540-a1b0-f65d834d225b" } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewFaceList.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewFaceList.json index 5139ad3dabeb..27b931726dc5 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewFaceList.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewFaceList.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewLargeFaceList.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewLargeFaceList.json index 33bb88993941..7d9471cc218b 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewLargeFaceList.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewLargeFaceList.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewLargePersonGroup.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewLargePersonGroup.json index 6f831a39b042..213cca68a808 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewLargePersonGroup.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewLargePersonGroup.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewPersonGroup.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewPersonGroup.json index 9d5dd84abfc6..47bac3dae296 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewPersonGroup.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/CreateNewPersonGroup.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteFaceList.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteFaceList.json index 6c4f6cd264e2..8a56998fe56e 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteFaceList.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteFaceList.json @@ -6,8 +6,6 @@ "faceListId": "sample_face_list" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteFaceListFace.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteFaceListFace.json index f62209d70196..3c7cb6945fad 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteFaceListFace.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteFaceListFace.json @@ -7,8 +7,6 @@ "persistedFaceId": "62004fa7-1ac0-478e-9d5a-b38f9e7fbc68" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargeFaceList.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargeFaceList.json index e27143c42a60..a17660fd24a8 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargeFaceList.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargeFaceList.json @@ -6,8 +6,6 @@ "largeFaceListId": "sample_face_list" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargeFaceListFace.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargeFaceListFace.json index 1ca196e08f84..c51df9d7089e 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargeFaceListFace.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargeFaceListFace.json @@ -7,8 +7,6 @@ "persistedFaceId": "62004fa7-1ac0-478e-9d5a-b38f9e7fbc68" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroup.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroup.json index 838301622851..e9888166e026 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroup.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroup.json @@ -6,8 +6,6 @@ "largePersonGroupId": "abc" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroupPerson.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroupPerson.json index 5034b6b0ca10..f75102f3a28b 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroupPerson.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroupPerson.json @@ -7,8 +7,6 @@ "personId": "25985303-c537-4467-b41d-bdb45cd95ca1" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroupPersonFace.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroupPersonFace.json index 79f8b40cd415..593ea9f58f47 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroupPersonFace.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteLargePersonGroupPersonFace.json @@ -8,8 +8,6 @@ "persistedFaceId": "62004fa7-1ac0-478e-9d5a-b38f9e7fbc68" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeletePersonGroup.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeletePersonGroup.json index 56590ec14bf8..f7c062c6a2e0 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeletePersonGroup.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeletePersonGroup.json @@ -6,8 +6,6 @@ "personGroupId": "abc" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeletePersonGroupPerson.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeletePersonGroupPerson.json index 4248f956f019..b9a3e416b947 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeletePersonGroupPerson.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeletePersonGroupPerson.json @@ -7,8 +7,6 @@ "personId": "25985303-c537-4467-b41d-bdb45cd95ca1" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeletePersonGroupPersonFace.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeletePersonGroupPersonFace.json index a08c4b459b06..459adbe3eda5 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeletePersonGroupPersonFace.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeletePersonGroupPersonFace.json @@ -8,8 +8,6 @@ "persistedFaceId": "62004fa7-1ac0-478e-9d5a-b38f9e7fbc68" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteSnapshot.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteSnapshot.json index 872ed45189aa..48c5abc49858 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteSnapshot.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/DeleteSnapshot.json @@ -6,8 +6,6 @@ "snapshotId": "e58b3f08-1e8b-4165-81df-aa9858f233dc" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/QueueLargeFaceListTraining.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/QueueLargeFaceListTraining.json index 6c8cb3a790bb..38b96eb8dd09 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/QueueLargeFaceListTraining.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/QueueLargeFaceListTraining.json @@ -6,8 +6,6 @@ "largeFaceListId": "abc" }, "responses": { - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/QueueLargePersonGroupTraining.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/QueueLargePersonGroupTraining.json index eb6dd2a84ae6..62cf89c96bc1 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/QueueLargePersonGroupTraining.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/QueueLargePersonGroupTraining.json @@ -6,8 +6,6 @@ "largePersonGroupId": "abc" }, "responses": { - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/QueuePersonGroupTraining.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/QueuePersonGroupTraining.json index f2fb3725df1c..998a4eb523ea 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/QueuePersonGroupTraining.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/QueuePersonGroupTraining.json @@ -6,8 +6,6 @@ "personGroupId": "abc" }, "responses": { - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/TakeSnapshot.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/TakeSnapshot.json index b4abe2c1b607..ef925f79b927 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/TakeSnapshot.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/TakeSnapshot.json @@ -15,7 +15,6 @@ }, "responses": { "202": { - "body": "", "header": { "Operation-Location": "/operations/a63a3bdd-a1db-4d05-87b8-dbad6850062a" } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateFaceList.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateFaceList.json index d3561f0d94cb..78ec8efe493a 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateFaceList.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateFaceList.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargeFaceList.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargeFaceList.json index 5e2bb4069849..e1918aef1e28 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargeFaceList.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargeFaceList.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargeFaceListFace.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargeFaceListFace.json index 21f6ea0a21e9..fe742c9bb920 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargeFaceListFace.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargeFaceListFace.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargePersonGroup.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargePersonGroup.json index 8ab8de61cdda..b15516c4b0f3 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargePersonGroup.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargePersonGroup.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargePersonGroupPerson.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargePersonGroupPerson.json index a4048c361c89..eee119bf114b 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargePersonGroupPerson.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargePersonGroupPerson.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargePersonGroupPersonFace.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargePersonGroupPersonFace.json index ed8acfa1b62e..0b91ecb07efc 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargePersonGroupPersonFace.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateLargePersonGroupPersonFace.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdatePersonGroup.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdatePersonGroup.json index 9d103c49f698..2ed80b8253cd 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdatePersonGroup.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdatePersonGroup.json @@ -10,8 +10,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdatePersonGroupPerson.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdatePersonGroupPerson.json index 6f1ce9932704..76fc46fc4deb 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdatePersonGroupPerson.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdatePersonGroupPerson.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdatePersonGroupPersonFace.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdatePersonGroupPersonFace.json index 44d9cfe34734..b3e7b74542d5 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdatePersonGroupPersonFace.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdatePersonGroupPersonFace.json @@ -11,8 +11,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateSnapshot.json b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateSnapshot.json index 697285601dc8..5d56c58b9de4 100644 --- a/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateSnapshot.json +++ b/specification/cognitiveservices/data-plane/Face/stable/v1.0/examples/UpdateSnapshot.json @@ -12,8 +12,6 @@ } }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/feedback.receipt.md b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/feedback.receipt.md index 6edd7618a0e9..28b298dd7fe5 100644 --- a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/feedback.receipt.md +++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v1.0/feedback.receipt.md @@ -6,7 +6,7 @@ Feedback: --------- 1. [dsgouda] Mark user non-editable properties as Readonly - related discussion: https://github.com/Azure/azure-rest-api-specs/pull/6042#discussion_r289147638 + related discussion: https://github.com/Azure/azure-rest-api-specs/pull/6042#discussion_r289147638 reference: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/data-plane/LocalSearch/stable/v1.0/LocalSearch.json#L241 diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/readme.md b/specification/cognitiveservices/data-plane/FormRecognizer/readme.md index c646ca05210c..1ecb8d09f9fa 100644 --- a/specification/cognitiveservices/data-plane/FormRecognizer/readme.md +++ b/specification/cognitiveservices/data-plane/FormRecognizer/readme.md @@ -73,3 +73,30 @@ java: 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/v1.0/FormRecognizer.json + - $(this-folder)/preview/v1.0/FormRecognizerReceipt.json + - $(this-folder)/preview/v1.0/FormRecognizerReceiptOcr.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/ImageSearch/readme.md b/specification/cognitiveservices/data-plane/ImageSearch/readme.md index c9a1db15157b..384d238d36ea 100644 --- a/specification/cognitiveservices/data-plane/ImageSearch/readme.md +++ b/specification/cognitiveservices/data-plane/ImageSearch/readme.md @@ -103,3 +103,28 @@ java: prefix-model-type: Bing 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)/stable/v1.0/ImageSearch.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/InkRecognizer/preview/v1.0/InkRecognizer.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json index d391c3680892..ecac78960a8f 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/InkRecognizer.json @@ -215,9 +215,9 @@ "type": "string", "description": "The category of a recognition unit represents the type of content for that unit.", "enum": [ + "root", "writingRegion", "paragraph", - "listItem", "line", "inkBullet", "inkDrawing", @@ -233,9 +233,9 @@ "type": "string", "description": "The category of recognition units that represent types that have children recognition units.", "enum": [ + "root", "writingRegion", "paragraph", - "listItem", "line" ], "x-ms-enum": { @@ -292,6 +292,94 @@ "type": "object" } }, + "inkPointValueAttribute": { + "type": "object", + "description": "A container for the attributes of a value contained in the ink point object.", + "properties": { + "name": { + "type": "string", + "description": "The name of the point attribute." + }, + "logicalMinimum": { + "type": "number", + "description": "The minimum value for the attribute" + }, + "logicalMaximum": { + "type": "number", + "description": "The maximum value for the attribute" + } + } + }, + "inkPoint": { + "type": "object", + "description": "An object containing the properties of an point in the path of an ink stroke. The main properties are the x and y values. Other include tip pressure, x tilt etc. For the coordinate values, it is recommended to have a precision of 8 digits after the decimal to obtain most accurate recognition results. The origin (0,0) of the canvas is assumed to be at the top left corner of the canvas", + "properties": { + "x": { + "type": "number", + "description": "The x coordinate of the pen location on the writing surface." + }, + "y": { + "type": "number", + "description": "The y coordinate of the pen location on the writing surface." + }, + "z": { + "type": "number", + "description": "The z coordinate of the pen location on the writing space. This may not be used for recognition." + }, + "tipPressure": { + "type": "number", + "description": "The force exerted against the tablet surface by the transducer, typically a stylus. This may not be used for recognition." + }, + "barrelPressure": { + "type": "number", + "description": "The force exerted directly by the user on a transducer sensor, such as a pressure-sensitive button on the barrel of a stylus. This may not be used for recognition." + }, + "timestamp": { + "type": "number", + "description": "The time relative to the absolute time the transducer last became active. This may not be used for recognition." + }, + "xTilt": { + "type": "number", + "description": "The plane angle between the Y-Z plane and the plane containing the transducer axis and the Y axis. This may not be used for recognition." + }, + "yTilt": { + "type": "number", + "description": "The angle between the X-Z and transducer-X planes. A positive Y Tilt is toward the user. This may not be used for recognition." + }, + "width": { + "type": "number", + "description": "The width of the tip of the writing instrument. This is used by touch screen devices to report the width of the finger contact on the writing surface. This may not be used for recognition." + }, + "height": { + "type": "number", + "description": "The height of the tip of the writing instrument. This is used by touch screen devices to report the height of the finger contact on the writing surface. This may not be used for recognition." + }, + "tipSwitch": { + "type": "boolean", + "description": "A switch located on the tip of a stylus indicating contact of the stylus with a surface. This may not be used for recognition." + }, + "inverted": { + "type": "boolean", + "description": "A value that indicates that the currently sensed position originates from the end of a stylus opposite the tip switch. This may not be used for recognition." + }, + "barrelSwitch": { + "type": "boolean", + "description": "A non-tip button located on the barrel of a stylus. Its function is typically mapped to a system secondary button. This may not be used for recognition." + }, + "eraser": { + "type": "boolean", + "description": "The control is used for erasing objects. It is typically located opposite the writing end of a stylus. This may not be used for recognition." + }, + "secondaryTip": { + "type": "boolean", + "description": "A secondary switch used in conjunction with the tip switch to indicate pressure above a certain threshold applied with the stylus. This may not be used for recognition." + } + }, + "required": [ + "x", + "y" + ] + }, "recognitionUnit": { "items": { "properties": { @@ -331,36 +419,36 @@ "description": "The id of the parent node in the tree structure of the recognition results. parent = 0 indicates that there is no dedicated parent node for this unit." }, "boundingRectangle": { - "description": "The bounding rectangle of the recognized unit represented by the coordinates of the top left corner (x,y) along with width (w) and height (h) of the rectangle. Note that this rectangle is not rotated. So for rotated objects such as slanted handwriting, it will cover the entire object. The unit will be matched to the one specified in the original request (mm by default.) ", + "description": "The bounding rectangle of the recognition unit represented by the coordinates of the top left corner (topX,topY) along with width and height of the rectangle. Note that this rectangle is not rotated. So for rotated objects such as slanted handwriting, it will cover the entire object. The unit will be matched to the one specified in the original request (mm by default.) ", "type": "object", "properties": { "topX": { "type": "number", - "description": "This represents the top left x coordinate" + "description": "This is the top left x coordinate" }, "topY": { "type": "number", - "description": "This represents the top left y coordinate" + "description": "This is the top left y coordinate" }, "width": { "type": "number", - "description": "This represents width of the bounding rectangle" + "description": "This is width of the bounding rectangle" }, "height": { "type": "number", - "description": "The represents the height of the bounding rectangle" + "description": "The is the height of the bounding rectangle" } } }, "rotatedBoundingRectangle": { - "description": "This property provides the rotated bounding rectangle that covers the entire recognized object along the angle of rotation of the object. Note that this is NOT the same as rotating the boundingRectangle by the rotation angle.", + "description": "This is the rotated bounding rectangle that covers the entire recognized object along the angle of rotation of the object. Note that this is NOT the same as rotating the boundingRectangle by the rotation angle.", "type": "array", "items": { "$ref": "#/definitions/pointDetailsPattern" } }, "strokeIds": { - "description": "This is an array of integers representing the list of stroke Identifier integers from the input request body that belong to this recognition unit.", + "description": "This is an array of integers representing the list of stroke Identifiers from the input request body that belong to this recognition unit.", "type": "array", "items": { "type": "integer" @@ -368,15 +456,15 @@ }, "recognizedText": { "type": "string", - "description": "The string represents the text that was recognized. It can be an empty string if the recognizer cannot determine the text." + "description": "The string contains the text that was recognized. It can be an empty string if the recognizer cannot determine the text." }, "confidence": { "type": "number", - "description": "The class represents the type of the recognition unit. A recognition unit can be a leaf node or a container node. Container nodes typically have leaf nodes as children." + "description": "A number between 0 and 1 which indicates the confidence level in the result." }, "rotationAngle": { "type": "number", - "description": "This represents the angle at which the unit is rotated in degrees with respect to the positive X axis." + "description": "This is the angle at which the unit is rotated in degrees with respect to the positive X axis." }, "recognizedObject": { "$ref": "#/definitions/shapePattern" @@ -390,7 +478,7 @@ "id" ], "type": "object", - "description": "This represents the recognized entity" + "description": "This identifies the recognized entity" }, "type": "array", "description": "The list of recognition units based on the analysis of the ink strokes." @@ -407,8 +495,10 @@ "description": "The IETF BCP 47 language code (for ex. en-US, en-GB, hi-IN etc.) of the expected language for the handwritten content in this stroke. The response will include results from this language." }, "points": { - "type": "string", - "description": "A string of comma separated floating point values that represent the x and y coordinates of points that are part of the stroke. (X1,Y1, X2,Y2…). It is recommended to have a precision of 8 digits after the decimal to obtain most accurate recognition results. The origin (0,0) of the canvas is assumed to be at the top left corner of the canvas" + "type": "array", + "items": { + "$ref": "#/definitions/inkPoint" + } }, "drawingAttributes": { "$ref": "#/definitions/drawingAttributesPattern" @@ -437,7 +527,7 @@ "properties": { "unit": { "type": "string", - "description": "This represents the physical units of the ink strokes. It is up to the application developer to decide how to convert the device specific units to physical units before calling the service. The conversion factor can be different based on the type of the device used.", + "description": "This is the physical unit of the ink strokes. It is up to the application developer to decide how to convert the device specific units to physical units before calling the service. The conversion factor can be different based on the type of the device used.", "enum": [ "mm", "cm", @@ -454,7 +544,7 @@ }, "language": { "type": "string", - "description": "This is the language used for recognizing handwriting from the ink strokes in the request. Set this to the user’s preferred language." + "description": "This is the language used for recognizing handwriting from the ink strokes in the request." }, "recognitionUnits": { "$ref": "#/definitions/recognitionUnit" @@ -526,14 +616,38 @@ "modelAsString": true } }, + "inputDeviceKind": { + "type": "string", + "description": "This identifies the kind of device used as the writing instrument", + "enum": [ + "digitizer", + "pen", + "lightPen", + "touchScreen", + "touchPad", + "whiteBoard", + "3dDigitizer", + "stereoPlotter", + "articulatedArm", + "armature" + ], + "x-ms-enum": { + "name": "inputDevice", + "modelAsString": true + } + }, "unit": { "type": "string", - "description": "This represents the physical units of the ink strokes. It is up to the application developer to decide how to convert the device specific units to physical units before calling the service. The conversion factor can be different based on the type of the device used.", + "description": "This is the physical unit of the ink strokes. It is up to the application developer to decide how to convert the device specific units to physical units before calling the service. The conversion factor can be different based on the type of the device used.", "enum": [ "mm", "cm", "in" - ] + ], + "x-ms-enum": { + "name": "unit", + "modelAsString": true + } }, "unitMultiple": { "description": " This is a scaling factor to be applied to the point coordinates when interpreting them in the physical units specified.", @@ -544,6 +658,12 @@ "example": "en-US", "description": "The IETF BCP 47 language code (for ex. en-US, en-GB, hi-IN etc.) of the expected language for the handwritten content in the ink strokes. The response will include results from this language." }, + "inkPointValueAttributes": { + "type": "array", + "items": { + "$ref": "#/definitions/inkPointValueAttribute" + } + }, "strokes": { "type": "array", "items": { diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/examples/InkWordRecognition.json b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/examples/InkWordRecognition.json index d3a41e0403d2..d82ecae40824 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/examples/InkWordRecognition.json +++ b/specification/cognitiveservices/data-plane/InkRecognizer/preview/v1.0/examples/InkWordRecognition.json @@ -9,12 +9,1638 @@ { "id": 1, "kind": "inkWriting", - "points": "19.34498,28.21327,19.34498,27.93462,19.34498,27.65597,19.0157,27.65597,18.76874,27.44698,18.27483,27.44698,18.02787,27.44698,17.45164,27.44698,16.62845,27.65597,15.88758,27.93462,15.06439,28.49191,14.32351,28.97955,13.25337,29.53685,11.36003,31.41773,10.61916,32.46267,9.795967,33.50761,8.972776,34.83119,8.231905,35.87613,7.655672,37.19971,7.161757,38.24465,6.9148,39.35925,6.9148,40.12554,6.9148,40.89182,6.9148,41.72777,7.408715,42.2154,7.902629,42.49405,8.478863,42.77271,8.972776,43.05135,9.795967,43.05135,10.28988,43.05135,11.11307,42.77271,11.93626,42.2154,12.43018,41.72777,13.25337,41.17047,13.74728,40.12554,14.57047,39.0806,15.31134,37.75701,15.88758,36.15478,16.62845,34.27389,17.20468,32.46267,17.6986,30.30314,18.27483,28.21327,18.76874,26.12339,19.34498,23.96386,19.59193,21.87399,19.83889,19.9931,20.08585,18.46053,20.08585,17.13695,20.08585,16.02235,20.08585,14.97741,20.08585,14.48978,20.08585,13.93248,19.83889,13.65383,19.83889,13.65383,19.83889,13.65383,19.59193,13.65383,19.59193,13. 65383,19.34498,14.21113,19.34498,14.69876,19.0157,15.25606,19.0157,16.02235,18.76874,17.13695,18.76874,18.46053,18.52179,19.78412,18.27483,21.31669,18.02787,22.91892,18.02787,24.52116,17.6986,26.33238,17.45164,28.21327,17.20468,30.09415,16.95773,31.90537,16.62845,33.50761,16.62845,35.10984,16.62845,36.71207,16.62845,38.03566,16.95773,39.0806,17.20468,39.84688,17.45164,40.68283,18.02787,41.17047,18.52179,41.72777,19.34498,42.00642,19.83889,42.00642,20.90904,41.72777,21.73223,41.44912,22.4731,40.89182,23.54325,40.12554,24.36644,39.35925,25.10731,38.5233,25.9305,37.47836,26.75369,36.71207,27.24761,35.59748,27.49457,34.55254,27.74152,33.50761,28.0708,32.46267,28.0708,31.62672,28.0708,30.86044,28.0708,30.09415,27.74152,29.53685,27.49457,28.97955,27.24761,28.77056,26.75369,28.49191,26.42442,28.49191,25.9305,28.49191,25.43659,28.97955,25.10731,29.53685,24.6134,30.09415,24.03716,30.86044,23.79021,31.90537,23.29629,33.22896,23.04934,34.27389,22.72006,35.59748,22.72006,36.71207,22.4731,38.03566,22.72006,39.0806,22.72006,40.12554,23.04934,40.89182,23.29629,41.72777,23.79021,42.2154,24.36644,42.77271,24.86036,43.05135,25.68354,43.05135,26.42442,43.05135,27.24761,42.77271,28.31775,42.2154,29.3879,41.72777,30.45805,40.89182,31.44588,39.84688,32.8453,38.80195,33.83313,37.47836,35.15023,35.87613,36.22039,34.27389,37.29053,32.46267,39.43083,27.93462,40.50097,25.5661,41.24184,23.19757,41.81808,20.82905,42.55895,18.46053,42.88823,16.301,43.38214,14.48978,43.6291,11.84261,43.6291,10.72801,43.6291,10.24037,43.38214,9.96172,43.38214,9.96172,43.13519,9.96172,42.88823,10.72801,42.31199,12.60889,41.81808,14.21113,41.24184,16.02235,40.74793,18.18188,40.25402,20.5504,39.67778,23.19757,39.43083,25.84475,38.60764,31.13909,38.36068,33.78626,38.36068,36.43343,38.11372,38.80195,38.11372,40.89182,38.11372,43.05135,37.86677,45.14123,37.53749,48.62434,37.53749,49.94793,37.29053,51.27151,37.04358,52.31645,36.79662,53.08273,36.54966,53.64004,35.97342,53.84902,34.65633,53.64004,33.83313,53.08273,33.09226,52.5951,32.26907,51.75915,31.19892,50.71421,30.45805,49.66928,29.88182,48.83333,28.56471,47.02211,28.31775,46.18616,28.0708,45.69852,28.0708,45.14123,28.31775,44.37494,28.56471,43.53899,29.88182,42.2154,30.70501,41.44912,31.77516,40.68283,32.8453,39.56823,35.47952,37.75701,36.79662,36.92107,39.67778,35.38849,42.31199,34.0649,43.6291,33.50761,46.26331,32.74132,47.33346,32.46267,49.22679,32.18402,49.72071,31.90537,50.29694,31.90537,50.79086,31.90537,51.03782,31.90537,51.03782,31.90537,50.29694,31.90537,49.96766,32.18402,49.47375,32.46267,48.65057,32.74132,47.90969,33.22896,47.0865,33.78626,46.26331,34.27389,44.69925,35.87613,44.20533,36.71207,43.95837,37.75701,43.6291,38.5233,43.38214,39.84688,43.6291,40.12554,43.95837,40.40418,44.20533,40.68283,45.27548,40.40418,46.01635,40.12554,46.59258,39.56823,47.0865,38.80195,47.90969,38.03566,48.97984,36.15478,49.47375,35.10984,49.72071,34.27389,49.96766,33.50761,50.29694,32.46267,50.5439,31.90537,50.5439,31.90537,50.29694,32.18402,50.29694,32.74132,49.96766,33.22896,49.72071,34.83119,49.47375,35.87613,49.47375,37.75701,49.47375,38.5233,49.72071,39.0806,49.72071,39.35925,50.29694,39.56823,50.79086,39.56823,51.03782,39.35925,51.61405,38.80195,52.6842,37.47836,53.1781,36.71207,53.67202,35.87613,54.24826,35.10984,54.74217,34.55254,55.3184,33.50761,55.56536,33.22896,55.56536,32.95031,55.56536,32.95031,55.56536,33.78626,55.3184,34.27389,55.07145,35.38849,55.07145,36.15478,55.07145,36.92107,55.07145,37.47836,55.3184,38.03566,55.3184,38.24465,55.56536,38.5233,56.05928,38.5233,56.38855,38.24465,56.63551,38.03566,57.12943,37.75701,57.70565,36.71207,58.19957,36.15478,58.44653,35.10984,58.77581,34.55254,58.77581,34.27389,59.02276,34.0649,59.02276,33.78626,59.02276,33.78626,58.77581,34.27389,58.77581,34.55254,58.77581,35.10984,58.77581,35.38849,58.44653,36.71207,58.77581,37.47836,58.77581,38.03566,59.02276,38.80195,59.51667,39.56823,60.09291,39.84688,60.58682,39.84688,61.08074,39.56823,61.90393,39.35925,63.46799,38.24465,64.53814,37.19971,65.60828,36.15478,66.67844,34.55254,68.48946,31.41773,69.31265,29.53685,70.62975,25.5661,71.20598,23.47622,71.45294,21.87399,71.6999,20.5504,71.6999,18.18188,71.45294,17.34593,70.8767,16.57965,70.62975,16.301,70.3828,16.57965,69.88888,16.8583,68.81873,18.18188,68.24249,19.22682,67.17235,21.59534,66.43147,22.91892,65.85524,24.52116,65.60828,26.12339,64.7851,29.2582,64.53814,30.58179,64.29118,33.22896,64.53814,34.55254,64.53814,35.59748,64.7851,36.71207,65.85524,38.24465,66.43147,38.80195,67.99554,39.35925,68.81873,39.56823,69.5596,39.35925,70.62975,39.0806,73.01699,37.75701,74.33411,36.71207,76.72135,34.0649,78.03847,32.18402,79.35557,30.30314,80.67267,28.21327,82.81297,23.75487,83.88311,21.31669,85.20022,17.34593,85.69414,15.53471,86.02341,14.21113,86.27037,13.16619,86.27037,11.56396,86.27037,11.28531,86.27037,11.00666,86.02341,11.28531,86.02341,11.28531,86.02341,11.84261,85.44718,12.88754,85.44718,13.65383,84.95326,15.81336,84.70631,16.8583,84.37703,17.90323,83.88311,19.22682,83.30688,22.15264,82.81297,23.75487,81.98978,26.88968,81.49586,28.49191,81.00195,30.09415,80.67267,31.62672,80.17876,34.27389,79.9318,35.38849,79.60252,37.47836,79.60252,38.24465,79.60252,38.80195,79.9318,39.35925,80.42571,40.40418,81.00195,40.68283,82.31906,40.89182,83.05993,40.89182,83.88311,40.89182,84.95326,40.68283,86.76428,39.56823,87.58747,39.0806,89.15154,38.03566,89.72777,37.19971,90.22169,36.43343" + "points": [ + { + "x": 19.34498, + "y": 28.21327 + }, + { + "x": 19.34498, + "y": 27.93462 + }, + { + "x": 19.34498, + "y": 27.65597 + }, + { + "x": 19.0157, + "y": 27.65597 + }, + { + "x": 18.76874, + "y": 27.44698 + }, + { + "x": 18.27483, + "y": 27.44698 + }, + { + "x": 18.02787, + "y": 27.44698 + }, + { + "x": 17.45164, + "y": 27.44698 + }, + { + "x": 16.62845, + "y": 27.65597 + }, + { + "x": 15.88758, + "y": 27.93462 + }, + { + "x": 15.06439, + "y": 28.49191 + }, + { + "x": 14.32351, + "y": 28.97955 + }, + { + "x": 13.25337, + "y": 29.53685 + }, + { + "x": 11.36003, + "y": 31.41773 + }, + { + "x": 10.61916, + "y": 32.46267 + }, + { + "x": 9.795967, + "y": 33.50761 + }, + { + "x": 8.972776, + "y": 34.83119 + }, + { + "x": 8.231905, + "y": 35.87613 + }, + { + "x": 7.655672, + "y": 37.19971 + }, + { + "x": 7.161757, + "y": 38.24465 + }, + { + "x": 6.9148, + "y": 39.35925 + }, + { + "x": 6.9148, + "y": 40.12554 + }, + { + "x": 6.9148, + "y": 40.89182 + }, + { + "x": 6.9148, + "y": 41.72777 + }, + { + "x": 7.408715, + "y": 42.2154 + }, + { + "x": 7.902629, + "y": 42.49405 + }, + { + "x": 8.478863, + "y": 42.77271 + }, + { + "x": 8.972776, + "y": 43.05135 + }, + { + "x": 9.795967, + "y": 43.05135 + }, + { + "x": 10.28988, + "y": 43.05135 + }, + { + "x": 11.11307, + "y": 42.77271 + }, + { + "x": 11.93626, + "y": 42.2154 + }, + { + "x": 12.43018, + "y": 41.72777 + }, + { + "x": 13.25337, + "y": 41.17047 + }, + { + "x": 13.74728, + "y": 40.12554 + }, + { + "x": 14.57047, + "y": 39.0806 + }, + { + "x": 15.31134, + "y": 37.75701 + }, + { + "x": 15.88758, + "y": 36.15478 + }, + { + "x": 16.62845, + "y": 34.27389 + }, + { + "x": 17.20468, + "y": 32.46267 + }, + { + "x": 17.6986, + "y": 30.30314 + }, + { + "x": 18.27483, + "y": 28.21327 + }, + { + "x": 18.76874, + "y": 26.12339 + }, + { + "x": 19.34498, + "y": 23.96386 + }, + { + "x": 19.59193, + "y": 21.87399 + }, + { + "x": 19.83889, + "y": 19.9931 + }, + { + "x": 20.08585, + "y": 18.46053 + }, + { + "x": 20.08585, + "y": 17.13695 + }, + { + "x": 20.08585, + "y": 16.02235 + }, + { + "x": 20.08585, + "y": 14.97741 + }, + { + "x": 20.08585, + "y": 14.48978 + }, + { + "x": 20.08585, + "y": 13.93248 + }, + { + "x": 19.83889, + "y": 13.65383 + }, + { + "x": 19.83889, + "y": 13.65383 + }, + { + "x": 19.83889, + "y": 13.65383 + }, + { + "x": 19.59193, + "y": 13.65383 + }, + { + "x": 19.59193, + "y": 13.65383 + }, + { + "x": 19.34498, + "y": 14.21113 + }, + { + "x": 19.34498, + "y": 14.69876 + }, + { + "x": 19.0157, + "y": 15.25606 + }, + { + "x": 19.0157, + "y": 16.02235 + }, + { + "x": 18.76874, + "y": 17.13695 + }, + { + "x": 18.76874, + "y": 18.46053 + }, + { + "x": 18.52179, + "y": 19.78412 + }, + { + "x": 18.27483, + "y": 21.31669 + }, + { + "x": 18.02787, + "y": 22.91892 + }, + { + "x": 18.02787, + "y": 24.52116 + }, + { + "x": 17.6986, + "y": 26.33238 + }, + { + "x": 17.45164, + "y": 28.21327 + }, + { + "x": 17.20468, + "y": 30.09415 + }, + { + "x": 16.95773, + "y": 31.90537 + }, + { + "x": 16.62845, + "y": 33.50761 + }, + { + "x": 16.62845, + "y": 35.10984 + }, + { + "x": 16.62845, + "y": 36.71207 + }, + { + "x": 16.62845, + "y": 38.03566 + }, + { + "x": 16.95773, + "y": 39.0806 + }, + { + "x": 17.20468, + "y": 39.84688 + }, + { + "x": 17.45164, + "y": 40.68283 + }, + { + "x": 18.02787, + "y": 41.17047 + }, + { + "x": 18.52179, + "y": 41.72777 + }, + { + "x": 19.34498, + "y": 42.00642 + }, + { + "x": 19.83889, + "y": 42.00642 + }, + { + "x": 20.90904, + "y": 41.72777 + }, + { + "x": 21.73223, + "y": 41.44912 + }, + { + "x": 22.4731, + "y": 40.89182 + }, + { + "x": 23.54325, + "y": 40.12554 + }, + { + "x": 24.36644, + "y": 39.35925 + }, + { + "x": 25.10731, + "y": 38.5233 + }, + { + "x": 25.9305, + "y": 37.47836 + }, + { + "x": 26.75369, + "y": 36.71207 + }, + { + "x": 27.24761, + "y": 35.59748 + }, + { + "x": 27.49457, + "y": 34.55254 + }, + { + "x": 27.74152, + "y": 33.50761 + }, + { + "x": 28.0708, + "y": 32.46267 + }, + { + "x": 28.0708, + "y": 31.62672 + }, + { + "x": 28.0708, + "y": 30.86044 + }, + { + "x": 28.0708, + "y": 30.09415 + }, + { + "x": 27.74152, + "y": 29.53685 + }, + { + "x": 27.49457, + "y": 28.97955 + }, + { + "x": 27.24761, + "y": 28.77056 + }, + { + "x": 26.75369, + "y": 28.49191 + }, + { + "x": 26.42442, + "y": 28.49191 + }, + { + "x": 25.9305, + "y": 28.49191 + }, + { + "x": 25.43659, + "y": 28.97955 + }, + { + "x": 25.10731, + "y": 29.53685 + }, + { + "x": 24.6134, + "y": 30.09415 + }, + { + "x": 24.03716, + "y": 30.86044 + }, + { + "x": 23.79021, + "y": 31.90537 + }, + { + "x": 23.29629, + "y": 33.22896 + }, + { + "x": 23.04934, + "y": 34.27389 + }, + { + "x": 22.72006, + "y": 35.59748 + }, + { + "x": 22.72006, + "y": 36.71207 + }, + { + "x": 22.4731, + "y": 38.03566 + }, + { + "x": 22.72006, + "y": 39.0806 + }, + { + "x": 22.72006, + "y": 40.12554 + }, + { + "x": 23.04934, + "y": 40.89182 + }, + { + "x": 23.29629, + "y": 41.72777 + }, + { + "x": 23.79021, + "y": 42.2154 + }, + { + "x": 24.36644, + "y": 42.77271 + }, + { + "x": 24.86036, + "y": 43.05135 + }, + { + "x": 25.68354, + "y": 43.05135 + }, + { + "x": 26.42442, + "y": 43.05135 + }, + { + "x": 27.24761, + "y": 42.77271 + }, + { + "x": 28.31775, + "y": 42.2154 + }, + { + "x": 29.3879, + "y": 41.72777 + }, + { + "x": 30.45805, + "y": 40.89182 + }, + { + "x": 31.44588, + "y": 39.84688 + }, + { + "x": 32.8453, + "y": 38.80195 + }, + { + "x": 33.83313, + "y": 37.47836 + }, + { + "x": 35.15023, + "y": 35.87613 + }, + { + "x": 36.22039, + "y": 34.27389 + }, + { + "x": 37.29053, + "y": 32.46267 + }, + { + "x": 39.43083, + "y": 27.93462 + }, + { + "x": 40.50097, + "y": 25.5661 + }, + { + "x": 41.24184, + "y": 23.19757 + }, + { + "x": 41.81808, + "y": 20.82905 + }, + { + "x": 42.55895, + "y": 18.46053 + }, + { + "x": 42.88823, + "y": 16.301 + }, + { + "x": 43.38214, + "y": 14.48978 + }, + { + "x": 43.6291, + "y": 11.84261 + }, + { + "x": 43.6291, + "y": 10.72801 + }, + { + "x": 43.6291, + "y": 10.24037 + }, + { + "x": 43.38214, + "y": 9.96172 + }, + { + "x": 43.38214, + "y": 9.96172 + }, + { + "x": 43.13519, + "y": 9.96172 + }, + { + "x": 42.88823, + "y": 10.72801 + }, + { + "x": 42.31199, + "y": 12.60889 + }, + { + "x": 41.81808, + "y": 14.21113 + }, + { + "x": 41.24184, + "y": 16.02235 + }, + { + "x": 40.74793, + "y": 18.18188 + }, + { + "x": 40.25402, + "y": 20.5504 + }, + { + "x": 39.67778, + "y": 23.19757 + }, + { + "x": 39.43083, + "y": 25.84475 + }, + { + "x": 38.60764, + "y": 31.13909 + }, + { + "x": 38.36068, + "y": 33.78626 + }, + { + "x": 38.36068, + "y": 36.43343 + }, + { + "x": 38.11372, + "y": 38.80195 + }, + { + "x": 38.11372, + "y": 40.89182 + }, + { + "x": 38.11372, + "y": 43.05135 + }, + { + "x": 37.86677, + "y": 45.14123 + }, + { + "x": 37.53749, + "y": 48.62434 + }, + { + "x": 37.53749, + "y": 49.94793 + }, + { + "x": 37.29053, + "y": 51.27151 + }, + { + "x": 37.04358, + "y": 52.31645 + }, + { + "x": 36.79662, + "y": 53.08273 + }, + { + "x": 36.54966, + "y": 53.64004 + }, + { + "x": 35.97342, + "y": 53.84902 + }, + { + "x": 34.65633, + "y": 53.64004 + }, + { + "x": 33.83313, + "y": 53.08273 + }, + { + "x": 33.09226, + "y": 52.5951 + }, + { + "x": 32.26907, + "y": 51.75915 + }, + { + "x": 31.19892, + "y": 50.71421 + }, + { + "x": 30.45805, + "y": 49.66928 + }, + { + "x": 29.88182, + "y": 48.83333 + }, + { + "x": 28.56471, + "y": 47.02211 + }, + { + "x": 28.31775, + "y": 46.18616 + }, + { + "x": 28.0708, + "y": 45.69852 + }, + { + "x": 28.0708, + "y": 45.14123 + }, + { + "x": 28.31775, + "y": 44.37494 + }, + { + "x": 28.56471, + "y": 43.53899 + }, + { + "x": 29.88182, + "y": 42.2154 + }, + { + "x": 30.70501, + "y": 41.44912 + }, + { + "x": 31.77516, + "y": 40.68283 + }, + { + "x": 32.8453, + "y": 39.56823 + }, + { + "x": 35.47952, + "y": 37.75701 + }, + { + "x": 36.79662, + "y": 36.92107 + }, + { + "x": 39.67778, + "y": 35.38849 + }, + { + "x": 42.31199, + "y": 34.0649 + }, + { + "x": 43.6291, + "y": 33.50761 + }, + { + "x": 46.26331, + "y": 32.74132 + }, + { + "x": 47.33346, + "y": 32.46267 + }, + { + "x": 49.22679, + "y": 32.18402 + }, + { + "x": 49.72071, + "y": 31.90537 + }, + { + "x": 50.29694, + "y": 31.90537 + }, + { + "x": 50.79086, + "y": 31.90537 + }, + { + "x": 51.03782, + "y": 31.90537 + }, + { + "x": 51.03782, + "y": 31.90537 + }, + { + "x": 50.29694, + "y": 31.90537 + }, + { + "x": 49.96766, + "y": 32.18402 + }, + { + "x": 49.47375, + "y": 32.46267 + }, + { + "x": 48.65057, + "y": 32.74132 + }, + { + "x": 47.90969, + "y": 33.22896 + }, + { + "x": 47.0865, + "y": 33.78626 + }, + { + "x": 46.26331, + "y": 34.27389 + }, + { + "x": 44.69925, + "y": 35.87613 + }, + { + "x": 44.20533, + "y": 36.71207 + }, + { + "x": 43.95837, + "y": 37.75701 + }, + { + "x": 43.6291, + "y": 38.5233 + }, + { + "x": 43.38214, + "y": 39.84688 + }, + { + "x": 43.6291, + "y": 40.12554 + }, + { + "x": 43.95837, + "y": 40.40418 + }, + { + "x": 44.20533, + "y": 40.68283 + }, + { + "x": 45.27548, + "y": 40.40418 + }, + { + "x": 46.01635, + "y": 40.12554 + }, + { + "x": 46.59258, + "y": 39.56823 + }, + { + "x": 47.0865, + "y": 38.80195 + }, + { + "x": 47.90969, + "y": 38.03566 + }, + { + "x": 48.97984, + "y": 36.15478 + }, + { + "x": 49.47375, + "y": 35.10984 + }, + { + "x": 49.72071, + "y": 34.27389 + }, + { + "x": 49.96766, + "y": 33.50761 + }, + { + "x": 50.29694, + "y": 32.46267 + }, + { + "x": 50.5439, + "y": 31.90537 + }, + { + "x": 50.5439, + "y": 31.90537 + }, + { + "x": 50.29694, + "y": 32.18402 + }, + { + "x": 50.29694, + "y": 32.74132 + }, + { + "x": 49.96766, + "y": 33.22896 + }, + { + "x": 49.72071, + "y": 34.83119 + }, + { + "x": 49.47375, + "y": 35.87613 + }, + { + "x": 49.47375, + "y": 37.75701 + }, + { + "x": 49.47375, + "y": 38.5233 + }, + { + "x": 49.72071, + "y": 39.0806 + }, + { + "x": 49.72071, + "y": 39.35925 + }, + { + "x": 50.29694, + "y": 39.56823 + }, + { + "x": 50.79086, + "y": 39.56823 + }, + { + "x": 51.03782, + "y": 39.35925 + }, + { + "x": 51.61405, + "y": 38.80195 + }, + { + "x": 52.6842, + "y": 37.47836 + }, + { + "x": 53.1781, + "y": 36.71207 + }, + { + "x": 53.67202, + "y": 35.87613 + }, + { + "x": 54.24826, + "y": 35.10984 + }, + { + "x": 54.74217, + "y": 34.55254 + }, + { + "x": 55.3184, + "y": 33.50761 + }, + { + "x": 55.56536, + "y": 33.22896 + }, + { + "x": 55.56536, + "y": 32.95031 + }, + { + "x": 55.56536, + "y": 32.95031 + }, + { + "x": 55.56536, + "y": 33.78626 + }, + { + "x": 55.3184, + "y": 34.27389 + }, + { + "x": 55.07145, + "y": 35.38849 + }, + { + "x": 55.07145, + "y": 36.15478 + }, + { + "x": 55.07145, + "y": 36.92107 + }, + { + "x": 55.07145, + "y": 37.47836 + }, + { + "x": 55.3184, + "y": 38.03566 + }, + { + "x": 55.3184, + "y": 38.24465 + }, + { + "x": 55.56536, + "y": 38.5233 + }, + { + "x": 56.05928, + "y": 38.5233 + }, + { + "x": 56.38855, + "y": 38.24465 + }, + { + "x": 56.63551, + "y": 38.03566 + }, + { + "x": 57.12943, + "y": 37.75701 + }, + { + "x": 57.70565, + "y": 36.71207 + }, + { + "x": 58.19957, + "y": 36.15478 + }, + { + "x": 58.44653, + "y": 35.10984 + }, + { + "x": 58.77581, + "y": 34.55254 + }, + { + "x": 58.77581, + "y": 34.27389 + }, + { + "x": 59.02276, + "y": 34.0649 + }, + { + "x": 59.02276, + "y": 33.78626 + }, + { + "x": 59.02276, + "y": 33.78626 + }, + { + "x": 58.77581, + "y": 34.27389 + }, + { + "x": 58.77581, + "y": 34.55254 + }, + { + "x": 58.77581, + "y": 35.10984 + }, + { + "x": 58.77581, + "y": 35.38849 + }, + { + "x": 58.44653, + "y": 36.71207 + }, + { + "x": 58.77581, + "y": 37.47836 + }, + { + "x": 58.77581, + "y": 38.03566 + }, + { + "x": 59.02276, + "y": 38.80195 + }, + { + "x": 59.51667, + "y": 39.56823 + }, + { + "x": 60.09291, + "y": 39.84688 + }, + { + "x": 60.58682, + "y": 39.84688 + }, + { + "x": 61.08074, + "y": 39.56823 + }, + { + "x": 61.90393, + "y": 39.35925 + }, + { + "x": 63.46799, + "y": 38.24465 + }, + { + "x": 64.53814, + "y": 37.19971 + }, + { + "x": 65.60828, + "y": 36.15478 + }, + { + "x": 66.67844, + "y": 34.55254 + }, + { + "x": 68.48946, + "y": 31.41773 + }, + { + "x": 69.31265, + "y": 29.53685 + }, + { + "x": 70.62975, + "y": 25.5661 + }, + { + "x": 71.20598, + "y": 23.47622 + }, + { + "x": 71.45294, + "y": 21.87399 + }, + { + "x": 71.6999, + "y": 20.5504 + }, + { + "x": 71.6999, + "y": 18.18188 + }, + { + "x": 71.45294, + "y": 17.34593 + }, + { + "x": 70.8767, + "y": 16.57965 + }, + { + "x": 70.62975, + "y": 16.301 + }, + { + "x": 70.3828, + "y": 16.57965 + }, + { + "x": 69.88888, + "y": 16.8583 + }, + { + "x": 68.81873, + "y": 18.18188 + }, + { + "x": 68.24249, + "y": 19.22682 + }, + { + "x": 67.17235, + "y": 21.59534 + }, + { + "x": 66.43147, + "y": 22.91892 + }, + { + "x": 65.85524, + "y": 24.52116 + }, + { + "x": 65.60828, + "y": 26.12339 + }, + { + "x": 64.7851, + "y": 29.2582 + }, + { + "x": 64.53814, + "y": 30.58179 + }, + { + "x": 64.29118, + "y": 33.22896 + }, + { + "x": 64.53814, + "y": 34.55254 + }, + { + "x": 64.53814, + "y": 5.59748 + }, + { + "x": 64.7851, + "y": 36.71207 + }, + { + "x": 65.85524, + "y": 38.24465 + }, + { + "x": 66.43147, + "y": 38.80195 + }, + { + "x": 67.99554, + "y": 39.35925 + }, + { + "x": 68.81873, + "y": 39.56823 + }, + { + "x": 69.5596, + "y": 39.35925 + }, + { + "x": 70.62975, + "y": 39.0806 + }, + { + "x": 73.01699, + "y": 37.75701 + }, + { + "x": 74.33411, + "y": 36.71207 + }, + { + "x": 76.72135, + "y": 34.0649 + }, + { + "x": 78.03847, + "y": 32.18402 + }, + { + "x": 79.35557, + "y": 30.30314 + }, + { + "x": 80.67267, + "y": 28.21327 + }, + { + "x": 82.81297, + "y": 23.75487 + }, + { + "x": 83.88311, + "y": 21.31669 + }, + { + "x": 85.20022, + "y": 17.34593 + }, + { + "x": 85.69414, + "y": 15.53471 + }, + { + "x": 86.02341, + "y": 14.21113 + }, + { + "x": 86.27037, + "y": 13.16619 + }, + { + "x": 86.27037, + "y": 11.56396 + }, + { + "x": 86.27037, + "y": 11.28531 + }, + { + "x": 86.27037, + "y": 11.00666 + }, + { + "x": 86.02341, + "y": 11.28531 + }, + { + "x": 86.02341, + "y": 11.28531 + }, + { + "x": 86.02341, + "y": 11.84261 + }, + { + "x": 85.44718, + "y": 12.88754 + }, + { + "x": 85.44718, + "y": 13.65383 + }, + { + "x": 84.95326, + "y": 15.81336 + }, + { + "x": 84.70631, + "y": 16.8583 + }, + { + "x": 84.37703, + "y": 17.90323 + }, + { + "x": 83.88311, + "y": 19.22682 + }, + { + "x": 83.30688, + "y": 22.15264 + }, + { + "x": 82.81297, + "y": 23.75487 + }, + { + "x": 81.98978, + "y": 26.88968 + }, + { + "x": 81.49586, + "y": 28.49191 + }, + { + "x": 81.00195, + "y": 30.09415 + }, + { + "x": 80.67267, + "y": 31.62672 + }, + { + "x": 80.17876, + "y": 34.27389 + }, + { + "x": 79.9318, + "y": 35.38849 + }, + { + "x": 79.60252, + "y": 37.47836 + }, + { + "x": 79.60252, + "y": 38.24465 + }, + { + "x": 79.60252, + "y": 38.80195 + }, + { + "x": 79.9318, + "y": 39.35925 + }, + { + "x": 80.42571, + "y": 40.40418 + }, + { + "x": 81.00195, + "y": 40.68283 + }, + { + "x": 82.31906, + "y": 40.89182 + }, + { + "x": 83.05993, + "y": 40.89182 + }, + { + "x": 83.88311, + "y": 40.89182 + }, + { + "x": 84.95326, + "y": 40.68283 + }, + { + "x": 86.76428, + "y": 39.56823 + }, + { + "x": 87.58747, + "y": 39.0806 + }, + { + "x": 89.15154, + "y": 38.03566 + }, + { + "x": 89.72777, + "y": 37.19971 + }, + { + "x": 90.22169, + "y": 36.43343 + } + ] }, { "id": 2, "kind": "inkWriting", - "points": "80.17876,20.27175,80.17876,20.27175,80.17876,20.27175,80.17876,20.27175,80.17876,20.5504,80.17876,20.5504,80.17876,20.5504,80.17876,20.5504,80.42571,20.5504,80.42571,20.5504,80.67267,20.5504,81.00195,20.5504,81.49586,20.5504,81.98978,20.5504,82.56602,20.5504,83.30688,20.5504,84.13007,20.5504,84.95326,20.27175,86.02341,20.27175,86.76428,20.27175,87.58747,20.27175,88.41067,19.9931,89.15154,19.9931,89.72777,19.9931,90.22169,19.78412,90.46864,19.78412,90.7156,19.78412,91.04487,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.29183,19.78412,91.53879,19.78412,91.53879,19.78412,91.78574,19.78412" + "points": [ + { + "x": 80.17876, + "y": 20.27175 + }, + { + "x": 80.17876, + "y": 20.27175 + }, + { + "x": 80.17876, + "y": 20.27175 + }, + { + "x": 80.17876, + "y": 20.27175 + }, + { + "x": 80.17876, + "y": 20.5504 + }, + { + "x": 80.17876, + "y": 20.5504 + }, + { + "x": 80.17876, + "y": 20.5504 + }, + { + "x": 80.17876, + "y": 20.5504 + }, + { + "x": 80.42571, + "y": 20.5504 + }, + { + "x": 80.42571, + "y": 20.5504 + }, + { + "x": 80.67267, + "y": 20.5504 + }, + { + "x": 81.00195, + "y": 20.5504 + }, + { + "x": 81.49586, + "y": 20.5504 + }, + { + "x": 81.98978, + "y": 20.5504 + }, + { + "x": 82.56602, + "y": 20.5504 + }, + { + "x": 83.30688, + "y": 20.5504 + }, + { + "x": 84.13007, + "y": 20.5504 + }, + { + "x": 84.95326, + "y": 20.27175 + }, + { + "x": 86.02341, + "y": 20.27175 + }, + { + "x": 86.76428, + "y": 20.27175 + }, + { + "x": 87.58747, + "y": 20.27175 + }, + { + "x": 88.41067, + "y": 19.9931 + }, + { + "x": 89.15154, + "y": 19.9931 + }, + { + "x": 89.72777, + "y": 19.9931 + }, + { + "x": 90.22169, + "y": 19.78412 + }, + { + "x": 90.46864, + "y": 19.78412 + }, + { + "x": 90.7156, + "y": 19.78412 + }, + { + "x": 91.04487, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.29183, + "y": 19.78412 + }, + { + "x": 91.53879, + "y": 19.78412 + }, + { + "x": 91.53879, + "y": 19.78412 + }, + { + "x": 91.78574, + "y": 19.78412 + } + ] } ] } @@ -246,6 +1872,43 @@ 1, 2 ] + }, + { + "boundingRectangle": { + "height": 43.889999389648438, + "topX": 6.9099998474121094, + "topY": 9.9600000381469727, + "width": 84.879997253417969 + }, + "category": "root", + "childIds": [ + 1 + ], + "class": "container", + "id": 0, + "parentId": -1, + "rotatedBoundingRectangle": [ + { + "x": 6.9099998474121094, + "y": 9.9600000381469727 + }, + { + "x": 91.7899957275305, + "y": 9.9600000381469727 + }, + { + "x": 6.9099998474121094, + "y": 53.84999393463135 + }, + { + "x": 91.78999572753905, + "y": 53.84999393463135 + } + ], + "strokeIds": [ + 1, + 2 + ] } ] } diff --git a/specification/cognitiveservices/data-plane/InkRecognizer/readme.md b/specification/cognitiveservices/data-plane/InkRecognizer/readme.md index c3206872d5b3..726cbbe9a406 100644 --- a/specification/cognitiveservices/data-plane/InkRecognizer/readme.md +++ b/specification/cognitiveservices/data-plane/InkRecognizer/readme.md @@ -82,3 +82,28 @@ See configuration in [readme.csharp.md](./readme.csharp.md) ## NodeJS See configuration in [readme.nodejs.md](./readme.nodejs.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)/preview/v1.0/InkRecognizer.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/LUIS/Authoring/readme.md b/specification/cognitiveservices/data-plane/LUIS/Authoring/readme.md index 9d0ed5da2638..58b49fc6c834 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/readme.md +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/readme.md @@ -96,3 +96,28 @@ java: 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)/stable/v2.0/LUIS-Authoring.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/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index 07bbfb137d93..af14091b21c8 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -7841,6 +7841,10 @@ "endCharIndex": { "description": "The index within the utterance where the extracted entity ends.", "type": "integer" + }, + "role": { + "description": "The role of the entity within the utterance.", + "type": "string" } } }, @@ -7970,6 +7974,10 @@ "entity": { "description": "The entity name.", "type": "string" + }, + "role": { + "description": "The role of the entity within the utterance.", + "type": "string" } } }, @@ -8758,6 +8766,14 @@ "endTokenIndex": { "description": "The index within the utterance where the extracted entity ends.", "type": "integer" + }, + "role": { + "description": "The role of the entity within the utterance.", + "type": "string" + }, + "roleId": { + "description": "The role Id.", + "type": "string" } }, "required": [ diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/examples/SuccessfulReviewLabeledExamplesRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/examples/SuccessfulReviewLabeledExamplesRequest.json index fd523836028c..a0a43d373b31 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/examples/SuccessfulReviewLabeledExamplesRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/examples/SuccessfulReviewLabeledExamplesRequest.json @@ -72,14 +72,16 @@ "intentLabel": "BookFlight", "entityLabels": [ { - "entityName": "Location::To", + "entityName": "Location", "startTokenIndex": 7, - "endTokenIndex": 7 + "endTokenIndex": 7, + "role": "To" }, { - "entityName": "Location::From", + "entityName": "Location", "startTokenIndex": 5, - "endTokenIndex": 5 + "endTokenIndex": 5, + "role": "from" } ], "intentPredictions": [ diff --git a/specification/cognitiveservices/data-plane/LUIS/Runtime/preview/v3.0/LUIS-Runtime.json b/specification/cognitiveservices/data-plane/LUIS/Runtime/preview/v3.0/LUIS-Runtime.json index df09eeccfb82..3de6b0d061a2 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Runtime/preview/v3.0/LUIS-Runtime.json +++ b/specification/cognitiveservices/data-plane/LUIS/Runtime/preview/v3.0/LUIS-Runtime.json @@ -1,8 +1,8 @@ { "swagger": "2.0", "info": { - "version": "3.0-preview", - "title": "LUIS Runtime Client" + "title": "LUIS Runtime Client", + "version": "3.0-preview" }, "x-ms-parameterized-host": { "hostTemplate": "{Endpoint}/luis/v3.0-preview", @@ -30,43 +30,65 @@ "get": { "description": "Gets the predictions for an application version.", "operationId": "Prediction_GetVersionPredictionGET", + "produces": [ + "application/json" + ], "parameters": [ { - "$ref": "#/parameters/AppIdInPath" + "in": "path", + "name": "appId", + "description": "The application ID.", + "required": true, + "type": "string", + "format": "uuid" }, { - "$ref": "#/parameters/VersionIdInPath" + "in": "path", + "name": "versionId", + "description": "The application version ID.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/Query" + "in": "query", + "name": "query", + "description": "The query to predict.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/Verbose" + "in": "query", + "name": "verbose", + "description": "Indicates whether to get extra metadata for the entities predictions or not.", + "type": "boolean" }, { - "$ref": "#/parameters/ShowAllIntents" + "in": "query", + "name": "show-all-intents", + "description": "Indicates whether to return all the intents in the response or just the top intent.", + "type": "boolean" }, { - "$ref": "#/parameters/Log" + "in": "query", + "name": "log", + "description": "Indicates whether to log the endpoint query or not.", + "type": "boolean" } ], "responses": { "200": { - "description": "The prediction for the supplied query", + "description": "The prediction for the supplied query.", "schema": { "$ref": "#/definitions/PredictionResponse" } }, "default": { - "description": "unexpected error", + "description": "Unexpected error.", "schema": { "$ref": "#/definitions/Error" } } }, - "produces": [ - "application/json" - ], "x-ms-examples": { "Successful Get Version Predictions From Endpoint Via Get request": { "$ref": "./examples/prediction/SuccessfulGetVersionPredictionsFromEndpointViaGetRequest.json" @@ -76,43 +98,70 @@ "post": { "description": "Gets the predictions for an application version.", "operationId": "Prediction_GetVersionPrediction", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { - "$ref": "#/parameters/AppIdInPath" + "in": "path", + "name": "appId", + "description": "The application ID.", + "required": true, + "type": "string", + "format": "uuid" }, { - "$ref": "#/parameters/VersionIdInPath" + "in": "path", + "name": "versionId", + "description": "The application version ID.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/Verbose" + "in": "query", + "name": "verbose", + "description": "Indicates whether to get extra metadata for the entities predictions or not.", + "type": "boolean" }, { - "$ref": "#/parameters/ShowAllIntents" + "in": "query", + "name": "show-all-intents", + "description": "Indicates whether to return all the intents in the response or just the top intent.", + "type": "boolean" }, { - "$ref": "#/parameters/Log" + "in": "query", + "name": "log", + "description": "Indicates whether to log the endpoint query or not.", + "type": "boolean" }, { - "$ref": "#/parameters/PredictionRequest" + "in": "body", + "name": "predictionRequest", + "description": "The prediction request parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/PredictionRequest" + } } ], "responses": { "200": { - "description": "The prediction for the supplied query", + "description": "The prediction for the supplied query.", "schema": { "$ref": "#/definitions/PredictionResponse" } }, "default": { - "description": "unexpected error", + "description": "Unexpected error.", "schema": { "$ref": "#/definitions/Error" } } }, - "produces": [ - "application/json" - ], "x-ms-examples": { "Successful Get Version Predictions From Endpoint Via Post request": { "$ref": "./examples/prediction/SuccessfulGetVersionPredictionsFromEndpointViaPostRequest.json" @@ -124,38 +173,60 @@ "get": { "description": "Gets the predictions for an application slot.", "operationId": "Prediction_GetSlotPredictionGET", + "produces": [ + "application/json" + ], "parameters": [ { - "$ref": "#/parameters/AppIdInPath" + "in": "path", + "name": "appId", + "description": "The application ID.", + "required": true, + "type": "string", + "format": "uuid" }, { - "$ref": "#/parameters/SlotNameInPath" + "in": "path", + "name": "slotName", + "description": "The application slot name.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/Query" + "in": "query", + "name": "query", + "description": "The query to predict.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/Verbose" + "in": "query", + "name": "verbose", + "description": "Indicates whether to get extra metadata for the entities predictions or not.", + "type": "boolean" }, { - "$ref": "#/parameters/ShowAllIntents" + "in": "query", + "name": "show-all-intents", + "description": "Indicates whether to return all the intents in the response or just the top intent.", + "type": "boolean" }, { - "$ref": "#/parameters/Log" + "in": "query", + "name": "log", + "description": "Indicates whether to log the endpoint query or not.", + "type": "boolean" } ], - "produces": [ - "application/json" - ], "responses": { "200": { - "description": "The prediction for the supplied query", + "description": "The prediction for the supplied query.", "schema": { "$ref": "#/definitions/PredictionResponse" } }, "default": { - "description": "unexpected error", + "description": "Unexpected error.", "schema": { "$ref": "#/definitions/Error" } @@ -170,43 +241,70 @@ "post": { "description": "Gets the predictions for an application slot.", "operationId": "Prediction_GetSlotPrediction", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { - "$ref": "#/parameters/AppIdInPath" + "in": "path", + "name": "appId", + "description": "The application ID.", + "required": true, + "type": "string", + "format": "uuid" }, { - "$ref": "#/parameters/SlotNameInPath" + "in": "path", + "name": "slotName", + "description": "The application slot name.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/Verbose" + "in": "query", + "name": "verbose", + "description": "Indicates whether to get extra metadata for the entities predictions or not.", + "type": "boolean" }, { - "$ref": "#/parameters/ShowAllIntents" + "in": "query", + "name": "show-all-intents", + "description": "Indicates whether to return all the intents in the response or just the top intent.", + "type": "boolean" }, { - "$ref": "#/parameters/Log" + "in": "query", + "name": "log", + "description": "Indicates whether to log the endpoint query or not.", + "type": "boolean" }, { - "$ref": "#/parameters/PredictionRequest" + "in": "body", + "name": "predictionRequest", + "description": "The prediction request parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/PredictionRequest" + } } ], "responses": { "200": { - "description": "The prediction for the supplied query", + "description": "The prediction for the supplied query.", "schema": { "$ref": "#/definitions/PredictionResponse" } }, "default": { - "description": "unexpected error", + "description": "Unexpected error.", "schema": { "$ref": "#/definitions/Error" } } }, - "produces": [ - "application/json" - ], "x-ms-examples": { "Successful Get Slot Predictions From Endpoint Via Post request": { "$ref": "./examples/prediction/SuccessfulGetSlotPredictionsFromEndpointViaPostRequest.json" @@ -216,63 +314,17 @@ } }, "definitions": { - "PredictionRequest": { - "type": "object", - "description": "Represents the prediction request parameters.", - "required": [ - "query" - ], - "properties": { - "query": { - "description": "The query to predict", - "type": "string" - }, - "options": { - "description": "The custom options defined for this request.", - "$ref": "#/definitions/PredictionRequestOptions" - }, - "externalEntities": { - "description": "The externally predicted entities for this request", - "type": "array", - "items": { - "$ref": "#/definitions/ExternalEntity" - } - }, - "dynamicLists": { - "description": "The dynamically created list entities for this request", - "type": "array", - "items": { - "$ref": "#/definitions/DynamicList" - } - } - } - }, - "PredictionRequestOptions": { - "type": "object", - "description": "The custom options for the prediction request.", - "properties": { - "datetimeReference": { - "type": "string", - "format": "date-time", - "description": "The reference DateTime used for predicting datetime entities." - }, - "overridePredictions": { - "type": "boolean", - "description": "Whether to make the external entities resolution override the predictions if an overlap occurs." - } - } - }, "PredictionResponse": { - "type": "object", "description": "Represents the prediction response.", "required": [ "query", "prediction" ], + "type": "object", "properties": { "query": { - "type": "string", - "description": "The query used in the prediction." + "description": "The query used in the prediction.", + "type": "string" }, "prediction": { "description": "The prediction of the requested query.", @@ -281,7 +333,6 @@ } }, "Prediction": { - "type": "object", "description": "Represents the prediction of a query.", "required": [ "normalizedQuery", @@ -289,29 +340,30 @@ "intents", "entities" ], + "type": "object", "properties": { "normalizedQuery": { - "type": "string", - "description": "The query after pre-processing and normalization." + "description": "The query after pre-processing and normalization.", + "type": "string" }, "alteredQuery": { - "type": "string", - "description": "The query after spell checking. Only set if spell check was enabled and a spelling mistake was found." + "description": "The query after spell checking. Only set if spell check was enabled and a spelling mistake was found.", + "type": "string" }, "topIntent": { - "type": "string", - "description": "The name of the top scoring intent." + "description": "The name of the top scoring intent.", + "type": "string" }, "intents": { - "type": "object", "description": "A dictionary representing the intents that fired.", + "type": "object", "additionalProperties": { "$ref": "#/definitions/Intent" } }, "entities": { - "type": "object", "description": "The dictionary representing the entities that fired.", + "type": "object", "additionalProperties": {} }, "sentiment": { @@ -321,12 +373,13 @@ } }, "Intent": { - "type": "object", "description": "Represents an intent prediction.", + "type": "object", "properties": { "score": { - "type": "number", - "description": "The score of the fired intent." + "format": "float", + "description": "The score of the fired intent.", + "type": "number" }, "childApp": { "description": "The prediction of the dispatched application.", @@ -335,42 +388,121 @@ } }, "Sentiment": { - "type": "object", "description": "The result of the sentiment analysis.", "required": [ "score" ], + "type": "object", "properties": { + "label": { + "description": "The label of the sentiment analysis result.", + "type": "string" + }, "score": { - "type": "number", - "description": "The sentiment score of the query." + "format": "float", + "description": "The sentiment score of the query.", + "type": "number" + } + } + }, + "Error": { + "description": "Represents the error that occurred.", + "required": [ + "error" + ], + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ErrorBody" + } + } + }, + "ErrorBody": { + "description": "Represents the definition of the error that occurred.", + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string" }, - "label": { - "type": "string", - "description": "The label of the sentiment analysis result." + "message": { + "description": "The error message.", + "type": "string" } } }, - "ExternalEntity": { + "PredictionRequest": { + "description": "Represents the prediction request parameters.", + "required": [ + "query" + ], "type": "object", + "properties": { + "query": { + "description": "The query to predict.", + "type": "string" + }, + "options": { + "description": "The custom options defined for this request.", + "$ref": "#/definitions/PredictionRequestOptions" + }, + "externalEntities": { + "description": "The externally predicted entities for this request.", + "type": "array", + "items": { + "$ref": "#/definitions/ExternalEntity" + } + }, + "dynamicLists": { + "description": "The dynamically created list entities for this request.", + "type": "array", + "items": { + "$ref": "#/definitions/DynamicList" + } + } + } + }, + "PredictionRequestOptions": { + "description": "The custom options for the prediction request.", + "type": "object", + "properties": { + "datetimeReference": { + "format": "date-time", + "description": "The reference DateTime used for predicting datetime entities.", + "type": "string" + }, + "overridePredictions": { + "description": "Whether to make the external entities resolution override the predictions if an overlap occurs.", + "type": "boolean" + } + } + }, + "ExternalEntity": { "description": "Defines a user predicted entity that extends an already existing one.", "required": [ "entityName", "startIndex", "entityLength" ], + "type": "object", "properties": { "entityName": { - "type": "string", - "description": "The name of the entity to extend." + "description": "The name of the entity to extend.", + "type": "string" }, "startIndex": { - "type": "integer", - "description": "The start character index of the predicted entity." + "format": "int32", + "description": "The start character index of the predicted entity.", + "type": "integer" }, "entityLength": { - "type": "integer", - "description": "The length of the predicted entity." + "format": "int32", + "description": "The length of the predicted entity.", + "type": "integer" }, "resolution": { "description": "A user supplied custom resolution to return as the entity's prediction." @@ -378,20 +510,20 @@ } }, "DynamicList": { - "type": "object", "description": "Defines an extension for a list entity.", "required": [ "listEntityName", "requestLists" ], + "type": "object", "properties": { "listEntityName": { - "type": "string", - "description": "The name of the list entity to extend." + "description": "The name of the list entity to extend.", + "type": "string" }, "requestLists": { - "type": "array", "description": "The lists to append on the extended list entity.", + "type": "array", "items": { "$ref": "#/definitions/RequestList" } @@ -399,125 +531,31 @@ } }, "RequestList": { - "type": "object", "description": "Defines a sub-list to append to an existing list entity.", "required": [ "canonicalForm" ], + "type": "object", "properties": { "name": { - "type": "string", - "description": "The name of the sub-list." + "description": "The name of the sub-list.", + "type": "string" }, "canonicalForm": { - "type": "string", - "description": "The canonical form of the sub-list." + "description": "The canonical form of the sub-list.", + "type": "string" }, "synonyms": { - "type": "array", "description": "The synonyms of the canonical form.", + "type": "array", "items": { "type": "string" } } } - }, - "Error": { - "type": "object", - "description": "Represents the error that occurred.", - "required": [ - "error" - ], - "properties": { - "error": { - "$ref": "#/definitions/ErrorBody" - } - } - }, - "ErrorBody": { - "type": "object", - "description": "Represents the definition of the error that occurred.", - "required": [ - "code", - "message" - ], - "properties": { - "code": { - "type": "string", - "description": "The error code." - }, - "message": { - "type": "string", - "description": "The error message." - } - } } }, "parameters": { - "AppIdInPath": { - "name": "appId", - "in": "path", - "required": true, - "type": "string", - "format": "uuid", - "description": "The application ID.", - "x-ms-parameter-location": "method" - }, - "VersionIdInPath": { - "name": "versionId", - "in": "path", - "description": "The application version ID.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "SlotNameInPath": { - "name": "slotName", - "in": "path", - "description": "The application slot name.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "Query": { - "name": "query", - "in": "query", - "description": "The query to predict.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "Verbose": { - "name": "verbose", - "in": "query", - "description": "Indicates whether to get extra metadata for the entities predictions or not.", - "type": "boolean", - "x-ms-parameter-location": "method" - }, - "ShowAllIntents": { - "name": "show-all-intents", - "in": "query", - "description": "Indicates whether to return all the intents in the response or just the top intent.", - "type": "boolean", - "x-ms-parameter-location": "method" - }, - "Log": { - "name": "log", - "in": "query", - "description": "Indicates whether to log the endpoint query or not.", - "type": "boolean", - "x-ms-parameter-location": "method" - }, - "PredictionRequest": { - "name": "predictionRequest", - "in": "body", - "description": "The prediction request parameters.", - "required": true, - "schema": { - "$ref": "#/definitions/PredictionRequest" - }, - "x-ms-parameter-location": "method" - }, "Endpoint": { "name": "Endpoint", "description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).", diff --git a/specification/cognitiveservices/data-plane/LUIS/Runtime/preview/v3.0/examples/prediction/SuccessfulGetSlotPredictionsFromEndpointViaPostRequest.json b/specification/cognitiveservices/data-plane/LUIS/Runtime/preview/v3.0/examples/prediction/SuccessfulGetSlotPredictionsFromEndpointViaPostRequest.json index 0f1a054a3015..cc69253c04a0 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Runtime/preview/v3.0/examples/prediction/SuccessfulGetSlotPredictionsFromEndpointViaPostRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Runtime/preview/v3.0/examples/prediction/SuccessfulGetSlotPredictionsFromEndpointViaPostRequest.json @@ -7,7 +7,7 @@ "predictionRequest": { "query": "forward to frank 30 dollars through HSBC", "options": { - "datetimeReference": "2015-02-13T13:15:00" + "datetimeReference": "2015-02-13T13:15:00.000Z" }, "externalEntities": [ { diff --git a/specification/cognitiveservices/data-plane/LUIS/Runtime/preview/v3.0/examples/prediction/SuccessfulGetVersionPredictionsFromEndpointViaPostRequest.json b/specification/cognitiveservices/data-plane/LUIS/Runtime/preview/v3.0/examples/prediction/SuccessfulGetVersionPredictionsFromEndpointViaPostRequest.json index 1e7b109d2996..3ffa8f619d8c 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Runtime/preview/v3.0/examples/prediction/SuccessfulGetVersionPredictionsFromEndpointViaPostRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Runtime/preview/v3.0/examples/prediction/SuccessfulGetVersionPredictionsFromEndpointViaPostRequest.json @@ -7,7 +7,7 @@ "predictionRequest": { "query": "forward to frank 30 dollars through HSBC", "options": { - "datetimeReference": "2015-02-13T13:15:00" + "datetimeReference": "2015-02-13T13:15:00.000Z" }, "externalEntities": [ { diff --git a/specification/cognitiveservices/data-plane/LUIS/Runtime/readme.md b/specification/cognitiveservices/data-plane/LUIS/Runtime/readme.md index c994685ab9c7..f3cfc53a6e6e 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Runtime/readme.md +++ b/specification/cognitiveservices/data-plane/LUIS/Runtime/readme.md @@ -96,3 +96,29 @@ java: 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)/stable/v2.0/LUIS-Runtime.json + - $(this-folder)/preview/v3.0/LUIS-Runtime.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/LocalSearch/readme.md b/specification/cognitiveservices/data-plane/LocalSearch/readme.md index 1b53ed690abb..69f96913ec62 100644 --- a/specification/cognitiveservices/data-plane/LocalSearch/readme.md +++ b/specification/cognitiveservices/data-plane/LocalSearch/readme.md @@ -60,3 +60,28 @@ directive: - suppress: R3016 reason: _type is a polymorphic discriminator that can't be changed. ``` + +## 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)/stable/v1.0/LocalSearch.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/NewsSearch/readme.md b/specification/cognitiveservices/data-plane/NewsSearch/readme.md index b8d166b487b3..3c24792e9411 100644 --- a/specification/cognitiveservices/data-plane/NewsSearch/readme.md +++ b/specification/cognitiveservices/data-plane/NewsSearch/readme.md @@ -104,3 +104,28 @@ java: prefix-model-type: Bing 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)/stable/v1.0/NewsSearch.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/Personalizer/preview/v1.0/examples/Events_Activate.json b/specification/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Events_Activate.json index 4eba04cbff60..a7bec92839a5 100644 --- a/specification/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Events_Activate.json +++ b/specification/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Events_Activate.json @@ -5,9 +5,6 @@ "Ocp-Apim-Subscription-Key": "{API key}" }, "responses": { - "204": { - "body": "", - "header": {} - } + "204": {} } } diff --git a/specification/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Events_Reward.json b/specification/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Events_Reward.json index 947d5410a1dc..78802cdfed80 100644 --- a/specification/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Events_Reward.json +++ b/specification/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Events_Reward.json @@ -8,9 +8,6 @@ } }, "responses": { - "204": { - "body": "", - "header": {} - } + "204": {} } } diff --git a/specification/cognitiveservices/data-plane/Personalizer/readme.md b/specification/cognitiveservices/data-plane/Personalizer/readme.md index f2c84b564c6a..c779dc0463e0 100644 --- a/specification/cognitiveservices/data-plane/Personalizer/readme.md +++ b/specification/cognitiveservices/data-plane/Personalizer/readme.md @@ -60,3 +60,28 @@ directive: .replace( /this.Endpoint/g, "Client.Endpoint" ); return $; ``` + +## 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/v1.0/Personalizer.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/QnAMaker/readme.go.md b/specification/cognitiveservices/data-plane/QnAMaker/readme.go.md index 412a87aa9eac..214d27ace71d 100644 --- a/specification/cognitiveservices/data-plane/QnAMaker/readme.go.md +++ b/specification/cognitiveservices/data-plane/QnAMaker/readme.go.md @@ -5,7 +5,6 @@ These settings apply only when `--go` is specified on the command line. ``` yaml $(go) go: license-header: MICROSOFT_APACHE_NO_VERSION - namespace: qnamaker clear-output-folder: true ``` @@ -14,6 +13,7 @@ go: ``` yaml $(go) && $(multiapi) batch: - tag: release_4_0 + - tag: runtime_release_4_0 ``` ### Tag: release_4_0 and go @@ -22,5 +22,16 @@ These settings apply only when `--tag=release_4_0 --go` is specified on the comm Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'release_4_0' && $(go) +namespace: qnamaker output-folder: $(go-sdk-folder)/services/cognitiveservices/v4.0/$(namespace) -``` \ No newline at end of file +``` + +### Tag: runtime_release_4_0 and go + +These settings apply only when `--tag=runtime_release_4_0 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'runtime_release_4_0' && $(go) +namespace: qnamakerruntime +output-folder: $(go-sdk-folder)/services/cognitiveservices/v4.0/$(namespace) +``` diff --git a/specification/cognitiveservices/data-plane/QnAMaker/readme.md b/specification/cognitiveservices/data-plane/QnAMaker/readme.md index 65005674ef5b..23b55def218b 100644 --- a/specification/cognitiveservices/data-plane/QnAMaker/readme.md +++ b/specification/cognitiveservices/data-plane/QnAMaker/readme.md @@ -22,7 +22,6 @@ input-file: stable/v4.0/QnAMaker.json ``` ``` yaml - tag: runtime_release_4_0 add-credentials: true openapi-type: data-plane @@ -36,6 +35,12 @@ These settings apply only when `--tag=runtime_release_4_0` is specified on the c input-file: stable/v4.0/QnAMakerRuntime.json ``` +``` yaml +batch: + - tag: release_4_0 + - tag: runtime_release_4_0 +``` + ## Swagger to SDK This section describes what SDK should be generated by the automatic system. @@ -89,3 +94,29 @@ java: 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)/stable/v4.0/QnAMaker.json + - $(this-folder)/stable/v4.0/QnAMakerRuntime.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/QnAMaker/stable/v4.0/QnAMaker.json b/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/QnAMaker.json index 9d93cd4ef960..1e2608898e8c 100644 --- a/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/QnAMaker.json +++ b/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/QnAMaker.json @@ -828,18 +828,6 @@ } } }, - "KnowledgebaseEnvironment": { - "type": "string", - "description": "Enumeration of knowledgebase environments.", - "x-ms-enum": { - "name": "KnowledgebaseEnvironmentType", - "modelAsString": true - }, - "enum": [ - "Prod", - "Test" - ] - }, "QnADocumentsDTO": { "type": "object", "description": "List of QnADTO", @@ -1346,9 +1334,6 @@ "name": "environment", "in": "path", "required": true, - "x-schema": { - "$ref": "#/definitions/KnowledgebaseEnvironment" - }, "x-nullable": false, "description": "Specifies whether environment is Test or Prod.", "x-ms-enum": { diff --git a/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/QnAMakerRuntime.json b/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/QnAMakerRuntime.json index 480a5eb4ec37..adc3dd313096 100644 --- a/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/QnAMakerRuntime.json +++ b/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/QnAMakerRuntime.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "version": "4.0", - "title": "QnAMaker Client", + "title": "QnAMaker Runtime Client", "description": "An API for QnAMaker runtime" }, "securityDefinitions": { @@ -33,7 +33,7 @@ "Knowledgebases" ], "summary": "GenerateAnswer call to query the knowledgebase.", - "operationId": "Knowledgebase_GenerateAnswer", + "operationId": "Runtime_GenerateAnswer", "parameters": [ { "$ref": "#/parameters/KbId" @@ -75,7 +75,7 @@ "Knowledgebases" ], "summary": "Train call to add suggestions to the knowledgebase.", - "operationId": "Knowledgebase_Train", + "operationId": "Runtime_Train", "parameters": [ { "$ref": "#/parameters/KbId" diff --git a/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/examples/SuccessfulCreateKb.json b/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/examples/SuccessfulCreateKb.json index 58ae1825d372..2f0bc8e9ee82 100644 --- a/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/examples/SuccessfulCreateKb.json +++ b/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/examples/SuccessfulCreateKb.json @@ -17,17 +17,53 @@ }, { "id": 0, - "answer": "You can use our REST apis to manage your KB. See here for details: https://westus.dev.cognitive.microsoft.com/docs/services/58994a073d9e04097c7ba6fe/operations/58994a073d9e041ad42d9baa", + "answer": "You can use our REST apis to create a KB. See here for details: https://docs.microsoft.com/en-us/rest/api/cognitiveservices/qnamaker/knowledgebase/create", "source": "Custom Editorial", "questions": [ - "How do I programmatically update my KB?" + "How do I programmatically create a KB?" ], "metadata": [ { "name": "category", "value": "api" } - ] + ], + "context": { + "isContextOnly": false, + "prompts": [ + { + "displayOrder": 1, + "displayText": "Update KB", + "qna": { + "answer": "You can use our REST apis to update your KB. See here for details: https://docs.microsoft.com/en-us/rest/api/cognitiveservices/qnamaker/knowledgebase/update", + "questions": [ + "How do I programmatically update my KB?" + ], + "metadata": [ + { + "name": "category", + "value": "api" + } + ], + "context": { + "isContextOnly": false, + "prompts": [ + { + "displayOrder": 1, + "displayText": "Refresh Endpoint Keys", + "qna": { + "answer": "You can use our REST apis to refresh endpoint keys. See here for details: https://docs.microsoft.com/en-us/rest/api/cognitiveservices/qnamaker/endpointkeys/refreshkeys", + "questions": [ + "How do I programmatically refresh endpoint keys?" + ] + } + } + ] + } + } + } + ] + } } ], "urls": [ diff --git a/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/examples/SuccessfulDelKb.json b/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/examples/SuccessfulDelKb.json index 9f24b4710f4a..bcd50173c37b 100644 --- a/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/examples/SuccessfulDelKb.json +++ b/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/examples/SuccessfulDelKb.json @@ -6,8 +6,6 @@ "kbId": "9d091697-fb8c-4ed5-9ac0-35bf8273bfff" }, "responses": { - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/examples/SuccessfulUpdKb.json b/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/examples/SuccessfulUpdKb.json index cfb8f1166c13..0a767648beb6 100644 --- a/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/examples/SuccessfulUpdKb.json +++ b/specification/cognitiveservices/data-plane/QnAMaker/stable/v4.0/examples/SuccessfulUpdKb.json @@ -15,20 +15,6 @@ "How can I change the default message from QnA Maker?" ], "metadata": [] - }, - { - "id": 0, - "answer": "You can use our REST apis to manage your KB. See here for details: https://westus.dev.cognitive.microsoft.com/docs/services/58994a073d9e04097c7ba6fe/operations/58994a073d9e041ad42d9baa", - "source": "Custom Editorial", - "questions": [ - "How do I programmatically update my KB?" - ], - "metadata": [ - { - "name": "category", - "value": "api" - } - ] } ], "urls": [ @@ -43,28 +29,88 @@ }, "delete": { "ids": [ - 4, 13, 35 - ], - "sources": [ - "Custom Editorial" ] }, "update": { - "name": "QnA Maker + Emotion API FAQ Bot", + "name": "QnA Maker FAQ Prompts Bot", "qnaList": [ { - "id": 30, - "answer": "Yes, you can use our REST APIs to manage a KB. Please check our documentation for details.", - "source": "Custom Q&A", + "id": 2, + "answer": "You can use our REST apis to create a KB. See here for details: https://docs.microsoft.com/en-us/rest/api/cognitiveservices/qnamaker/knowledgebase/create", + "source": "Custom Editorial", "questions": { - "add": [ - "can I programmatically manage a KB?" + "add": [], + "delete": [] + }, + "metadata": { + "add": [], + "delete": [] + }, + "alternateQuestionClusters": { + "delete": [] + }, + "context": { + "isContextOnly": false, + "promptsToAdd": [ + { + "displayText": "Add Prompts", + "displayOrder": 0, + "qna": { + "id": 0, + "answer": "Click here to know more https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/how-to/multiturn-conversation", + "source": "Editorial", + "questions": [ + "How can I add prompts?" + ], + "metadata": [], + "alternateQuestionClusters": [], + "context": { + "isContextOnly": false, + "prompts": [] + } + }, + "qnaId": 0 + }, + { + "displayText": "Delete Prompts", + "displayOrder": 0, + "qna": { + "id": 0, + "answer": "Click here to know more https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/how-to/multiturn-conversation", + "source": "Editorial", + "questions": [ + "How can I delete delete prompts?" + ], + "metadata": [], + "alternateQuestionClusters": [], + "context": { + "isContextOnly": false, + "prompts": [] + } + }, + "qnaId": 0 + }, + { + "displayText": "Update Knowledgebase", + "displayOrder": 0, + "qna": null, + "qnaId": 3 + } ], - "delete": [ - "How do I programmatically update my KB?" + "promptsToDelete": [ + 3 ] + } + }, + { + "id": 3, + "answer": "You can use our REST apis to update your KB. See here for details: https://docs.microsoft.com/en-us/rest/api/cognitiveservices/qnamaker/knowledgebase/update", + "source": "Custom Editorial", + "questions": { + "add": [], + "delete": [] }, "metadata": { "delete": [ @@ -79,11 +125,25 @@ "value": "programmatic" } ] + }, + "alternateQuestionClusters": { + "delete": [] + }, + "context": { + "isContextOnly": false, + "promptsToAdd": [ + { + "displayText": "Regenerate Endpoint keys", + "displayOrder": 1, + "qna": null, + "qnaId": 4 + } + ], + "promptsToDelete": [ + 4 + ] } } - ], - "urls": [ - "https://docs.microsoft.com/en-us/bot-framework/resources-bot-framework-faq" ] } } diff --git a/specification/cognitiveservices/data-plane/SpellCheck/readme.md b/specification/cognitiveservices/data-plane/SpellCheck/readme.md index 7c48dc8de8f7..02878b9a4149 100644 --- a/specification/cognitiveservices/data-plane/SpellCheck/readme.md +++ b/specification/cognitiveservices/data-plane/SpellCheck/readme.md @@ -95,3 +95,28 @@ java: prefix-model-type: Bing 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)/stable/v1.0/SpellCheck.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/TextAnalytics/readme.md b/specification/cognitiveservices/data-plane/TextAnalytics/readme.md index e9c4d2d81ebd..60e5b6ad8d9d 100644 --- a/specification/cognitiveservices/data-plane/TextAnalytics/readme.md +++ b/specification/cognitiveservices/data-plane/TextAnalytics/readme.md @@ -228,3 +228,30 @@ java: 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)/stable/v2.0/TextAnalytics.json + - $(this-folder)/stable/v2.1/TextAnalytics.json + - $(this-folder)/preview/v2.1/TextAnalytics.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/TranslatorText/readme.md b/specification/cognitiveservices/data-plane/TranslatorText/readme.md index 43aa4b1e5439..4e0143fa3acc 100644 --- a/specification/cognitiveservices/data-plane/TranslatorText/readme.md +++ b/specification/cognitiveservices/data-plane/TranslatorText/readme.md @@ -128,3 +128,28 @@ nodejs: generate-package-json: true generate-readme-md: false ``` + +## 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)/stable/v3.0/TranslatorText.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/VideoSearch/readme.md b/specification/cognitiveservices/data-plane/VideoSearch/readme.md index 4b8fd2f89368..2a3acb0300b2 100644 --- a/specification/cognitiveservices/data-plane/VideoSearch/readme.md +++ b/specification/cognitiveservices/data-plane/VideoSearch/readme.md @@ -95,3 +95,28 @@ java: prefix-model-type: Bing 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)/stable/v1.0/VideoSearch.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/VisualSearch/readme.md b/specification/cognitiveservices/data-plane/VisualSearch/readme.md index 0e818d289d03..8816ed60c016 100644 --- a/specification/cognitiveservices/data-plane/VisualSearch/readme.md +++ b/specification/cognitiveservices/data-plane/VisualSearch/readme.md @@ -98,3 +98,28 @@ java: prefix-model-type: Bing 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/v1.0/VisualSearch.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/WebSearch/readme.md b/specification/cognitiveservices/data-plane/WebSearch/readme.md index 344668b66a48..761b65bdd1be 100644 --- a/specification/cognitiveservices/data-plane/WebSearch/readme.md +++ b/specification/cognitiveservices/data-plane/WebSearch/readme.md @@ -96,3 +96,28 @@ java: prefix-model-type: Bing 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)/stable/v1.0/WebSearch.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/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/examples/CheckDomainAvailability.json b/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/examples/CheckDomainAvailability.json index cf0b02e4ec38..65fe3be46b54 100644 --- a/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/examples/CheckDomainAvailability.json +++ b/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/examples/CheckDomainAvailability.json @@ -1,21 +1,21 @@ { + "parameters": { + "api-version": "2017-04-18", + "subscriptionId": "f9b96b36-1f5e-4021-8959-51527e26e6d3", + "location": "westus", "parameters": { - "api-version": "2017-04-18", - "subscriptionId": "f9b96b36-1f5e-4021-8959-51527e26e6d3", - "location": "westus", - "parameters": { + "subdomainName": "contosodemoapp1", + "type": "Microsoft.CognitiveServices/accounts" + } + }, + "responses": { + "200": { + "body": { + "isSubdomainAvailable": false, + "reason": "Sub domain name 'contosodemoapp1' is not valid", "subdomainName": "contosodemoapp1", "type": "Microsoft.CognitiveServices/accounts" } - }, - "responses": { - "200": { - "body": { - "isSubdomainAvailable": false, - "reason": "Sub domain name 'contosodemoapp1' is not valid", - "subdomainName": "contosodemoapp1", - "type": "Microsoft.CognitiveServices/accounts" - } - } } - } \ No newline at end of file + } +} diff --git a/specification/cognitiveservices/resource-manager/readme.md b/specification/cognitiveservices/resource-manager/readme.md index 5ab5aa5d012c..7751e5797cdf 100644 --- a/specification/cognitiveservices/resource-manager/readme.md +++ b/specification/cognitiveservices/resource-manager/readme.md @@ -61,6 +61,7 @@ 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 @@ -139,3 +140,29 @@ generate-interface: 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)/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json + - $(this-folder)/Microsoft.CognitiveServices/preview/2016-02-01-preview/cognitiveservices.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/commerce/resource-manager/readme.md b/specification/commerce/resource-manager/readme.md index 3a712aa11bfe..89f0fcc0901d 100644 --- a/specification/commerce/resource-manager/readme.md +++ b/specification/commerce/resource-manager/readme.md @@ -127,3 +127,28 @@ generate-interface: 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)/Microsoft.Commerce/preview/2015-06-01-preview/commerce.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/common-types/resource-management/v1/types.json b/specification/common-types/resource-management/v1/types.json index c16bdb29214c..178a5b236304 100644 --- a/specification/common-types/resource-management/v1/types.json +++ b/specification/common-types/resource-management/v1/types.json @@ -268,6 +268,57 @@ "publisher", "product" ] + }, + "ErrorResponse": { + "properties": { + "code": { + "readOnly": true, + "type": "string", + "description": "The error code." + }, + "message": { + "readOnly": true, + "type": "string", + "description": "The error message." + }, + "target": { + "readOnly": true, + "type": "string", + "description": "The error target." + }, + "details": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorResponse" + }, + "description": "The error details." + }, + "additionalInfo": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorAdditionalInfo" + }, + "description": "The error additional info." + } + }, + "description": "The resource management error response." + }, + "ErrorAdditionalInfo": { + "properties": { + "type": { + "readOnly": true, + "type": "string", + "description": "The additional info type." + }, + "info": { + "readOnly": true, + "type": "object", + "description": "The additional info." + } + }, + "description": "The resource management error additional info." } }, "parameters": { diff --git a/specification/compute/quickstart-templates/aliases.json b/specification/compute/quickstart-templates/aliases.json index 30585fbf3bd0..c3166eef59fc 100644 --- a/specification/compute/quickstart-templates/aliases.json +++ b/specification/compute/quickstart-templates/aliases.json @@ -12,7 +12,7 @@ "CentOS": { "publisher": "OpenLogic", "offer": "CentOS", - "sku": "7.3", + "sku": "7.5", "version": "latest" }, "CoreOS": { @@ -22,9 +22,9 @@ "version": "latest" }, "Debian": { - "publisher": "credativ", - "offer": "Debian", - "sku": "8", + "publisher": "Debian", + "offer": "debian-10", + "sku": "10", "version": "latest" }, "openSUSE-Leap": { @@ -36,23 +36,29 @@ "RHEL": { "publisher": "RedHat", "offer": "RHEL", - "sku": "7.3", + "sku": "7-RAW", "version": "latest" }, "SLES": { "publisher": "SUSE", "offer": "SLES", - "sku": "12-SP2", + "sku": "15", "version": "latest" }, "UbuntuLTS": { "publisher": "Canonical", "offer": "UbuntuServer", - "sku": "16.04-LTS", + "sku": "18.04-LTS", "version": "latest" } }, "Windows": { + "Win2019Datacenter": { + "publisher": "MicrosoftWindowsServer", + "offer": "WindowsServer", + "sku": "2019-Datacenter", + "version": "latest" + }, "Win2016Datacenter": { "publisher": "MicrosoftWindowsServer", "offer": "WindowsServer", diff --git a/specification/compute/quickstart-templates/vm-simple.json b/specification/compute/quickstart-templates/vm-simple.json index edc226d02023..d2f4bec8f5dc 100644 --- a/specification/compute/quickstart-templates/vm-simple.json +++ b/specification/compute/quickstart-templates/vm-simple.json @@ -22,7 +22,7 @@ "name": "nestedTemplate", "type": "Microsoft.Resources/deployments", "properties": { - "mode": "Incremental", + "mode": "incremental", "templateLink": { "uri": "[variables('templatelink')]", "contentVersion": "1.0.0.0" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/VirtualMachineRunCommand.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/VirtualMachineRunCommand.json index 7aa6a9a7bffa..81a391c98a53 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/VirtualMachineRunCommand.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/VirtualMachineRunCommand.json @@ -35,8 +35,6 @@ "name": "289dbc84-3c84-4a86-9e40-bbd4d61edcaf" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-09-01/examples/ListAvailableResourceSkus.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-09-01/examples/ListAvailableResourceSkus.json index b9c81fb06147..8e99ea6ab92a 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-09-01/examples/ListAvailableResourceSkus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-09-01/examples/ListAvailableResourceSkus.json @@ -7,170 +7,170 @@ "200": { "body": { "value": [ - { - "resourceType": "virtualMachines", - "locations": [ - "westus" - ], - "capabilities": [ - { - "name": "MaxResourceVolumeMB", - "value": "20480" - }, - { - "name": "OSVhdSizeMB", - "value": "1047552" - }, - { - "name": "vCPUs", - "value": "1" - }, - { - "name": "HyperVGenerations", - "value": "V1" - }, - { - "name": "MemoryGB", - "value": "0.75" - }, - { - "name": "MaxDataDiskCount", - "value": "1" - }, - { - "name": "LowPriorityCapable", - "value": "False" - }, - { - "name": "PremiumIO", - "value": "False" - }, - { - "name": "vCPUsAvailable", - "value": "1" - }, - { - "name": "ACUs", - "value": "50" - }, - { - "name": "vCPUsPerCore", - "value": "1" - }, - { - "name": "EphemeralOSDiskSupported", - "value": "False" - }, - { - "name": "AcceleratedNetworkingEnabled", - "value": "False" - }, - { - "name": "RdmaEnabled", - "value": "False" - }, - { - "name": "MaxNetworkInterfaces", - "value": "2" - } - ], - "locationInfo": [ - { - "location": "westus", - "zones": [ - "westus-AZ01" - ] - } - ], - "name": "Standard_A0", - "tier": "Standard", - "size": "A0", - "family": "standardA0_A7Family" - }, - { - "resourceType": "virtualMachines", - "locations": [ - "westus" - ], - "capabilities": [ - { - "name": "MaxResourceVolumeMB", - "value": "71680" - }, - { - "name": "OSVhdSizeMB", - "value": "1047552" - }, - { - "name": "vCPUs", - "value": "1" - }, - { - "name": "HyperVGenerations", - "value": "V1" - }, - { - "name": "MemoryGB", - "value": "1.75" - }, - { - "name": "MaxDataDiskCount", - "value": "2" - }, - { - "name": "LowPriorityCapable", - "value": "True" - }, - { - "name": "PremiumIO", - "value": "False" - }, - { - "name": "vCPUsAvailable", - "value": "1" - }, - { - "name": "ACUs", - "value": "100" - }, - { - "name": "vCPUsPerCore", - "value": "1" - }, - { - "name": "EphemeralOSDiskSupported", - "value": "False" - }, - { - "name": "AcceleratedNetworkingEnabled", - "value": "False" - }, - { - "name": "RdmaEnabled", - "value": "False" - }, - { - "name": "MaxNetworkInterfaces", - "value": "2" - } - ], - "locationInfo": [ - { - "location": "westus", - "zones": [ - "westus-AZ02", - "westus-AZ01" - ] - } - ], - "name": "Standard_A1", - "tier": "Standard", - "size": "A1", - "family": "standardA0_A7Family" - } + { + "resourceType": "virtualMachines", + "locations": [ + "westus" + ], + "capabilities": [ + { + "name": "MaxResourceVolumeMB", + "value": "20480" + }, + { + "name": "OSVhdSizeMB", + "value": "1047552" + }, + { + "name": "vCPUs", + "value": "1" + }, + { + "name": "HyperVGenerations", + "value": "V1" + }, + { + "name": "MemoryGB", + "value": "0.75" + }, + { + "name": "MaxDataDiskCount", + "value": "1" + }, + { + "name": "LowPriorityCapable", + "value": "False" + }, + { + "name": "PremiumIO", + "value": "False" + }, + { + "name": "vCPUsAvailable", + "value": "1" + }, + { + "name": "ACUs", + "value": "50" + }, + { + "name": "vCPUsPerCore", + "value": "1" + }, + { + "name": "EphemeralOSDiskSupported", + "value": "False" + }, + { + "name": "AcceleratedNetworkingEnabled", + "value": "False" + }, + { + "name": "RdmaEnabled", + "value": "False" + }, + { + "name": "MaxNetworkInterfaces", + "value": "2" + } + ], + "locationInfo": [ + { + "location": "westus", + "zones": [ + "westus-AZ01" + ] + } + ], + "name": "Standard_A0", + "tier": "Standard", + "size": "A0", + "family": "standardA0_A7Family" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "westus" + ], + "capabilities": [ + { + "name": "MaxResourceVolumeMB", + "value": "71680" + }, + { + "name": "OSVhdSizeMB", + "value": "1047552" + }, + { + "name": "vCPUs", + "value": "1" + }, + { + "name": "HyperVGenerations", + "value": "V1" + }, + { + "name": "MemoryGB", + "value": "1.75" + }, + { + "name": "MaxDataDiskCount", + "value": "2" + }, + { + "name": "LowPriorityCapable", + "value": "True" + }, + { + "name": "PremiumIO", + "value": "False" + }, + { + "name": "vCPUsAvailable", + "value": "1" + }, + { + "name": "ACUs", + "value": "100" + }, + { + "name": "vCPUsPerCore", + "value": "1" + }, + { + "name": "EphemeralOSDiskSupported", + "value": "False" + }, + { + "name": "AcceleratedNetworkingEnabled", + "value": "False" + }, + { + "name": "RdmaEnabled", + "value": "False" + }, + { + "name": "MaxNetworkInterfaces", + "value": "2" + } + ], + "locationInfo": [ + { + "location": "westus", + "zones": [ + "westus-AZ02", + "westus-AZ01" + ] + } + ], + "name": "Standard_A1", + "tier": "Standard", + "size": "A1", + "family": "standardA0_A7Family" + } ], "nextLink": null } } } -} \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/LogAnalyticsRequestRateByInterval.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/LogAnalyticsRequestRateByInterval.json index 3b994abb5dd1..0ad626e16c4b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/LogAnalyticsRequestRateByInterval.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/LogAnalyticsRequestRateByInterval.json @@ -23,8 +23,6 @@ "name": "8eb1169a-5cf9-46b1-aadf-41e4f60692df" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/LogAnalyticsThrottledRequests.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/LogAnalyticsThrottledRequests.json index 0379b5a9dc6d..479d57345ad6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/LogAnalyticsThrottledRequests.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/LogAnalyticsThrottledRequests.json @@ -23,8 +23,6 @@ "name": "8eb1169a-5cf9-46b1-aadf-41e4f60692df" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/VirtualMachineRunCommand.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/VirtualMachineRunCommand.json index 94ee9b08e157..64a1080ac3bd 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/VirtualMachineRunCommand.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/VirtualMachineRunCommand.json @@ -35,8 +35,6 @@ "name": "289dbc84-3c84-4a86-9e40-bbd4d61edcaf" } }, - "202": { - "body": "" - } + "202": {} } } 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 ec1852411a99..b0ad1015e966 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 @@ -4635,7 +4635,7 @@ "properties": { "proximityPlacementGroupType": { "type": "string", - "description": "Specifies the type of the proximity placement group.

Possible values are:

**Standard**

**Ultra**", + "description": "Specifies the type of the proximity placement group.

Possible values are:

**Standard** : Co-locate resources within an Azure region or Availability Zone.

**Ultra** : For future use.", "enum": [ "Standard", "Ultra" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsRequestRateByInterval.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsRequestRateByInterval.json index d453283944d7..7c1ede1e077b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsRequestRateByInterval.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsRequestRateByInterval.json @@ -23,8 +23,6 @@ "name": "8eb1169a-5cf9-46b1-aadf-41e4f60692df" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsThrottledRequests.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsThrottledRequests.json index ad168bcd799b..5dfa9a403195 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsThrottledRequests.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/LogAnalyticsThrottledRequests.json @@ -23,8 +23,6 @@ "name": "8eb1169a-5cf9-46b1-aadf-41e4f60692df" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/VirtualMachineRunCommand.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/VirtualMachineRunCommand.json index 92ad7fb460a2..2466564f1304 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/VirtualMachineRunCommand.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/VirtualMachineRunCommand.json @@ -29,8 +29,6 @@ ] } }, - "202": { - "body": "" - } + "202": {} } } 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 ececa2dd3666..9d872a0199b0 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 @@ -4766,7 +4766,7 @@ "properties": { "proximityPlacementGroupType": { "type": "string", - "description": "Specifies the type of the proximity placement group.

Possible values are:

**Standard**

**Ultra**", + "description": "Specifies the type of the proximity placement group.

Possible values are:

**Standard** : Co-locate resources within an Azure region or Availability Zone.

**Ultra** : For future use.", "enum": [ "Standard", "Ultra" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/ListAvailableVmSizes_VirtualMachines.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/ListAvailableVmSizes_VirtualMachines.json index a6a3e4f8e1b8..7b69a8cdf5f4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/ListAvailableVmSizes_VirtualMachines.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/ListAvailableVmSizes_VirtualMachines.json @@ -10,23 +10,23 @@ "body": { "value": [ { - "name": "Standard_A1_V2", - "numberOfCores": 1, - "osDiskSizeInMB": 1047552, - "resourceDiskSizeInMB": 10240, - "memoryInMB": 2048, - "maxDataDiskCount": 2 + "name": "Standard_A1_V2", + "numberOfCores": 1, + "osDiskSizeInMB": 1047552, + "resourceDiskSizeInMB": 10240, + "memoryInMB": 2048, + "maxDataDiskCount": 2 }, { - "name": "Standard_A2_V2", - "numberOfCores": 2, - "osDiskSizeInMB": 1047552, - "resourceDiskSizeInMB": 20480, - "memoryInMB": 4096, - "maxDataDiskCount": 4 + "name": "Standard_A2_V2", + "numberOfCores": 2, + "osDiskSizeInMB": 1047552, + "resourceDiskSizeInMB": 20480, + "memoryInMB": 4096, + "maxDataDiskCount": 4 } ] } } } -} \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/LogAnalyticsRequestRateByInterval.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/LogAnalyticsRequestRateByInterval.json index 220d13819906..26f0ec9a9703 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/LogAnalyticsRequestRateByInterval.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/LogAnalyticsRequestRateByInterval.json @@ -19,8 +19,6 @@ } } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/LogAnalyticsThrottledRequests.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/LogAnalyticsThrottledRequests.json index 1d94418a5062..0d9097a0e0fb 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/LogAnalyticsThrottledRequests.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/LogAnalyticsThrottledRequests.json @@ -19,8 +19,6 @@ } } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/VirtualMachineRunCommand.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/VirtualMachineRunCommand.json index f0ab1e1d4a79..cd8fed6fa5b4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/VirtualMachineRunCommand.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/VirtualMachineRunCommand.json @@ -29,8 +29,6 @@ ] } }, - "202": { - "body": "" - } + "202": {} } } 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 c86656e73fb7..82faabebd76c 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 @@ -4766,7 +4766,7 @@ "properties": { "proximityPlacementGroupType": { "type": "string", - "description": "Specifies the type of the proximity placement group.

Possible values are:

**Standard**

**Ultra**", + "description": "Specifies the type of the proximity placement group.

Possible values are:

**Standard** : Co-locate resources within an Azure region or Availability Zone.

**Ultra** : For future use.", "enum": [ "Standard", "Ultra" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListAvailableVmSizes_VirtualMachines.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListAvailableVmSizes_VirtualMachines.json index 2869a69e2b87..cae7a6e72447 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListAvailableVmSizes_VirtualMachines.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListAvailableVmSizes_VirtualMachines.json @@ -10,23 +10,23 @@ "body": { "value": [ { - "name": "Standard_A1_V2", - "numberOfCores": 1, - "osDiskSizeInMB": 1047552, - "resourceDiskSizeInMB": 10240, - "memoryInMB": 2048, - "maxDataDiskCount": 2 + "name": "Standard_A1_V2", + "numberOfCores": 1, + "osDiskSizeInMB": 1047552, + "resourceDiskSizeInMB": 10240, + "memoryInMB": 2048, + "maxDataDiskCount": 2 }, { - "name": "Standard_A2_V2", - "numberOfCores": 2, - "osDiskSizeInMB": 1047552, - "resourceDiskSizeInMB": 20480, - "memoryInMB": 4096, - "maxDataDiskCount": 4 + "name": "Standard_A2_V2", + "numberOfCores": 2, + "osDiskSizeInMB": 1047552, + "resourceDiskSizeInMB": 20480, + "memoryInMB": 4096, + "maxDataDiskCount": 4 } ] } } } -} \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsRequestRateByInterval.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsRequestRateByInterval.json index 6a8ec46f8b21..ab4598b144ab 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsRequestRateByInterval.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsRequestRateByInterval.json @@ -19,8 +19,6 @@ } } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsThrottledRequests.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsThrottledRequests.json index ca5f9bec8d1e..a09dc14189fa 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsThrottledRequests.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsThrottledRequests.json @@ -19,8 +19,6 @@ } } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommand.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommand.json index f0400897c0dd..541bf267e627 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommand.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommand.json @@ -29,8 +29,6 @@ ] } }, - "202": { - "body": "" - } + "202": {} } } 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 fab6b534f1e8..272dbe6db8c3 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 @@ -601,6 +601,527 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}": { + "put": { + "tags": [ + "DedicatedHostGroups" + ], + "operationId": "DedicatedHostGroups_CreateOrUpdate", + "description": "Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596)", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hostGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dedicated host group." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DedicatedHostGroup" + }, + "description": "Parameters supplied to the Create Dedicated Host Group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedHostGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/DedicatedHostGroup" + } + } + }, + "x-ms-examples": { + "Create or update a dedicated host group.": { + "$ref": "./examples/CreateOrUpdateADedicatedHostGroup.json" + } + } + }, + "patch": { + "tags": [ + "DedicatedHostGroups" + ], + "operationId": "DedicatedHostGroups_Update", + "description": "Update an dedicated host group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hostGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dedicated host group." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DedicatedHostGroupUpdate" + }, + "description": "Parameters supplied to the Update Dedicated Host Group operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedHostGroup" + } + } + } + }, + "delete": { + "tags": [ + "DedicatedHostGroups" + ], + "operationId": "DedicatedHostGroups_Delete", + "description": "Delete a dedicated host group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hostGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dedicated host group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + } + } + }, + "get": { + "tags": [ + "DedicatedHostGroups" + ], + "operationId": "DedicatedHostGroups_Get", + "description": "Retrieves information about a dedicated host group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hostGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dedicated host group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedHostGroup" + } + } + }, + "x-ms-examples": { + "Create a dedicated host group.": { + "$ref": "./examples/GetADedicatedHostGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups": { + "get": { + "tags": [ + "DedicatedHostGroups" + ], + "operationId": "DedicatedHostGroups_ListByResourceGroup", + "description": "Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedHostGroupListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups": { + "get": { + "tags": [ + "DedicatedHostGroups" + ], + "operationId": "DedicatedHostGroups_ListBySubscription", + "description": "Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedHostGroupListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}": { + "put": { + "tags": [ + "DedicatedHosts" + ], + "operationId": "DedicatedHosts_CreateOrUpdate", + "description": "Create or update a dedicated host .", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hostGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dedicated host group." + }, + { + "name": "hostName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dedicated host ." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DedicatedHost" + }, + "description": "Parameters supplied to the Create Dedicated Host." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedHost" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/DedicatedHost" + } + } + }, + "x-ms-examples": { + "Create or update a dedicated host .": { + "$ref": "./examples/CreateOrUpdateADedicatedHost.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "DedicatedHosts" + ], + "operationId": "DedicatedHosts_Update", + "description": "Update an dedicated host .", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hostGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dedicated host group." + }, + { + "name": "hostName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dedicated host ." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DedicatedHostUpdate" + }, + "description": "Parameters supplied to the Update Dedicated Host operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedHost" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "DedicatedHosts" + ], + "operationId": "DedicatedHosts_Delete", + "description": "Delete a dedicated host.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hostGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dedicated host group." + }, + { + "name": "hostName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dedicated host." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "DedicatedHosts" + ], + "operationId": "DedicatedHosts_Get", + "description": "Retrieves information about a dedicated host.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hostGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dedicated host group." + }, + { + "name": "hostName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dedicated host." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation.", + "enum": [ + "instanceView" + ], + "x-ms-enum": { + "name": "InstanceViewTypes", + "modelAsString": false + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedHost" + } + } + }, + "x-ms-examples": { + "Get a dedicated host.": { + "$ref": "./examples/GetADedicatedHost.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts": { + "get": { + "tags": [ + "DedicatedHost" + ], + "operationId": "DedicatedHosts_ListByHostGroup", + "description": "Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hostGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dedicated host group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DedicatedHostListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}": { "get": { "tags": [ @@ -2605,6 +3126,9 @@ }, "Create a scale set with ephemeral os disks.": { "$ref": "./examples/CreateAScaleSetWithDiffOsDisk.json" + }, + "Create a scale set with terminate scheduled events enabled.": { + "$ref": "./examples/CreateAScaleSetWithTerminateScheduledEventEnabled.json" } } }, @@ -4160,6 +4684,20 @@ "type": "string", "description": "The instance ID of the virtual machine." }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation.", + "enum": [ + "instanceView" + ], + "x-ms-enum": { + "name": "InstanceViewTypes", + "modelAsString": false + } + }, { "$ref": "#/parameters/ApiVersionParameter" }, @@ -4699,7 +5237,7 @@ }, "HyperVGenerationType": { "type": "string", - "description": "Specifies the HyperVGeneration Type for the Virtual Machine created from the image", + "description": "Specifies the HyperVGeneration Type", "enum": [ "V1", "V2" @@ -4849,7 +5387,7 @@ "properties": { "proximityPlacementGroupType": { "type": "string", - "description": "Specifies the type of the proximity placement group.

Possible values are:

**Standard**

**Ultra**", + "description": "Specifies the type of the proximity placement group.

Possible values are:

**Standard** : Co-locate resources within an Azure region or Availability Zone.

**Ultra** : For future use.", "enum": [ "Standard", "Ultra" @@ -4928,6 +5466,253 @@ ], "description": "The List Proximity Placement Group operation response." }, + "DedicatedHostGroupProperties": { + "properties": { + "platformFaultDomainCount": { + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 3, + "description": "Number of fault domains that the host group can span." + }, + "hosts": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResourceReadOnly" + }, + "readOnly": true, + "description": "A list of references to all dedicated hosts in the dedicated host group." + } + }, + "required": [ + "platformFaultDomainCount" + ], + "description": "Dedicated Host Group Properties." + }, + "DedicatedHostGroup": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DedicatedHostGroupProperties" + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the dedicated host group that the dedicated hosts should be assigned to.

Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group." + }, + "DedicatedHostGroupUpdate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DedicatedHostGroupProperties" + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone." + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "description": "Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated." + }, + "DedicatedHostGroupListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DedicatedHostGroup" + }, + "description": "The list of dedicated host groups" + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of Dedicated Host Groups. Call ListNext() with this URI to fetch the next page of Dedicated Host Groups." + } + }, + "required": [ + "value" + ], + "description": "The List Dedicated Host Group with resource group response." + }, + "DedicatedHostLicenseType": { + "type": "string", + "description": "Specifies the software license type that will be applied to the VMs deployed on the dedicated host.

Possible values are:

**None**

**Windows_Server_Hybrid**

**Windows_Server_Perpetual**

Default: **None**", + "enum": [ + "None", + "Windows_Server_Hybrid", + "Windows_Server_Perpetual" + ], + "x-ms-enum": { + "name": "DedicatedHostLicenseTypes", + "modelAsString": false + } + }, + "DedicatedHostAllocatableVM": { + "properties": { + "vmSize": { + "type": "string", + "description": "VM size in terms of which the unutilized capacity is represented." + }, + "count": { + "type": "number", + "format": "double", + "description": "Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity." + } + }, + "description": "Represents the dedicated host unutilized capacity in terms of a specific VM size." + }, + "DedicatedHostAvailableCapacity": { + "properties": { + "allocatableVMs": { + "type": "array", + "items": { + "$ref": "#/definitions/DedicatedHostAllocatableVM" + }, + "description": "The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host." + } + }, + "description": "Dedicated host unutilized capacity." + }, + "DedicatedHostInstanceView": { + "properties": { + "assetId": { + "readOnly": true, + "type": "string", + "description": "Specifies the unique id of the dedicated physical machine on which the dedicated host resides." + }, + "availableCapacity": { + "$ref": "#/definitions/DedicatedHostAvailableCapacity", + "description": "Unutilized capacity of the dedicated host." + }, + "statuses": { + "type": "array", + "items": { + "$ref": "#/definitions/InstanceViewStatus" + }, + "description": "The resource status information." + } + }, + "description": "The instance view of a dedicated host." + }, + "DedicatedHostProperties": { + "properties": { + "platformFaultDomain": { + "type": "integer", + "format": "int32", + "minimum": 0, + "maximum": 2, + "description": "Fault domain of the dedicated host within a dedicated host group." + }, + "autoReplaceOnFailure": { + "type": "boolean", + "description": "Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided." + }, + "hostId": { + "readOnly": true, + "type": "string", + "description": "A unique id generated and assigned to the dedicated host by the platform.

Does not change throughout the lifetime of the host." + }, + "virtualMachines": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResourceReadOnly" + }, + "readOnly": true, + "description": "A list of references to all virtual machines in the Dedicated Host." + }, + "licenseType": { + "$ref": "#/definitions/DedicatedHostLicenseType", + "description": "Specifies the software license type that will be applied to the VMs deployed on the dedicated host.

Possible values are:

**None**

**Windows_Server_Hybrid**

**Windows_Server_Perpetual**

Default: **None**" + }, + "provisioningTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The date when the host was first provisioned." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "instanceView": { + "$ref": "#/definitions/DedicatedHostInstanceView", + "readOnly": true, + "description": "The dedicated host instance view." + } + }, + "description": "Properties of the dedicated host." + }, + "DedicatedHost": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DedicatedHostProperties" + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "required": [ + "sku" + ], + "description": "Specifies information about the Dedicated host." + }, + "DedicatedHostUpdate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DedicatedHostProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "description": "Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated." + }, + "DedicatedHostListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DedicatedHost" + }, + "description": "The list of dedicated hosts" + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of dedicated hosts. Call ListNext() with this URI to fetch the next page of dedicated hosts." + } + }, + "required": [ + "value" + ], + "description": "The list dedicated host operation response." + }, "VirtualMachineSize": { "properties": { "name": { @@ -5278,6 +6063,9 @@ }, "automaticOSUpgradeProperties": { "$ref": "#/definitions/AutomaticOSUpgradeProperties" + }, + "hyperVGeneration": { + "$ref": "#/definitions/HyperVGenerationType" } }, "description": "Describes the properties of a Virtual Machine Image." @@ -6490,12 +7278,20 @@ }, "availabilitySet": { "$ref": "#/definitions/SubResource", - "description": "Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).

For more information on Azure planned maintenance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set." + "description": "Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).

For more information on Azure planned maintenance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.

This property cannot exist along with a non-null properties.virtualMachineScaleSet reference." + }, + "virtualMachineScaleSet": { + "$ref": "#/definitions/SubResource", + "description": "Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set.

This property cannot exist along with a non-null properties.availabilitySet reference.

Minimum api‐version: 2019‐03‐01" }, "proximityPlacementGroup": { "$ref": "#/definitions/SubResource", "description": "Specifies information about the proximity placement group that the virtual machine should be assigned to.

Minimum api-version: 2018-04-01." }, + "host": { + "$ref": "#/definitions/SubResource", + "description": "Specifies information about the dedicated host that the virtual machine resides in.

Minimum api-version: 2018-10-01." + }, "provisioningState": { "readOnly": true, "type": "string", @@ -7726,6 +8522,10 @@ "name": "VirtualMachineEvictionPolicyTypes", "modelAsString": true } + }, + "scheduledEventsProfile": { + "$ref": "#/definitions/ScheduledEventsProfile", + "description": "Specifies Scheduled Event related configurations." } }, "description": "Describes a virtual machine scale set virtual machine profile." @@ -7755,6 +8555,10 @@ "licenseType": { "type": "string", "description": "The license type, which is for bring your own license scenario." + }, + "scheduledEventsProfile": { + "$ref": "#/definitions/ScheduledEventsProfile", + "description": "Specifies Scheduled Event related configurations." } }, "description": "Describes a virtual machine scale set virtual machine profile." @@ -8469,6 +9273,28 @@ }, "description": "The protection policy of a virtual machine scale set VM." }, + "ScheduledEventsProfile": { + "type": "object", + "properties": { + "terminateNotificationProfile": { + "$ref": "#/definitions/TerminateNotificationProfile", + "description": "Specifies Terminate Scheduled Event related configurations." + } + } + }, + "TerminateNotificationProfile": { + "type": "object", + "properties": { + "notBeforeTimeout": { + "type": "string", + "description": "Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 minutes (PT5M)" + }, + "enable": { + "type": "boolean", + "description": "Specifies whether the Terminate Scheduled event is enabled or disabled." + } + } + }, "VirtualMachineHealthStatus": { "properties": { "status": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/disk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/disk.json new file mode 100644 index 000000000000..eb4686849f5d --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/disk.json @@ -0,0 +1,1441 @@ +{ + "swagger": "2.0", + "info": { + "title": "DiskResourceProviderClient", + "description": "The Disk Resource Provider Client.", + "version": "2019-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.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" + } + }, + "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 + }, + "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" + } + } + } + }, + "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." + }, + "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": "int32", + "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." + }, + "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." + } + ] + } + } + }, + "required": [ + "creationData" + ], + "description": "Disk resource properties." + }, + "SnapshotProperties": { + "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 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." + } + }, + "required": [ + "creationData" + ], + "description": "Snapshot resource properties." + }, + "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}" + }, + "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": "int32", + "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." + } + }, + "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." + } + }, + "description": "Snapshot 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." + }, + { + "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": "If createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription" + }, + "imageReference": { + "$ref": "#/definitions/ImageDiskReference", + "description": "Disk source information." + }, + "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 1073741824 (1 GiB + 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." + } + }, + "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" + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAManagedDiskByCopyingASnapshot.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAManagedDiskByCopyingASnapshot.json new file mode 100644 index 000000000000..7ed820a1226c --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAManagedDiskByCopyingASnapshot.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-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/2019-03-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscription.json new file mode 100644 index 000000000000..a7e3bc7fa91d --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscription.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-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/2019-03-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscription.json new file mode 100644 index 000000000000..22a92edbe4fa --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscription.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-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/2019-03-01/examples/CreateAManagedDiskFromAPlatformImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAManagedDiskFromAPlatformImage.json new file mode 100644 index 000000000000..50a6f0c757d4 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAManagedDiskFromAPlatformImage.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-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/2019-03-01/examples/CreateAManagedDiskFromAnExistingManagedDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAManagedDiskFromAnExistingManagedDisk.json new file mode 100644 index 000000000000..f6b53b2b5458 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAManagedDiskFromAnExistingManagedDisk.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-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/2019-03-01/examples/CreateAManagedUploadDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAManagedUploadDisk.json new file mode 100644 index 000000000000..6c0c126b4fac --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAManagedUploadDisk.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-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/2019-03-01/examples/CreateAScaleSetWithTerminateScheduledEventEnabled.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAScaleSetWithTerminateScheduledEventEnabled.json new file mode 100644 index 000000000000..87e6b25d2c87 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAScaleSetWithTerminateScheduledEventEnabled.json @@ -0,0 +1,233 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2019-03-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "location": "westus", + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + }, + "scheduledEventsProfile": { + "terminateNotificationProfile": { + "enable": true, + "notBeforeTimeout": "PT5M" + } + } + }, + "upgradePolicy": { + "mode": "Manual" + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "d053ec5a-8da6-495f-ab13-38216503c6d7", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + }, + "scheduledEventsProfile": { + "terminateNotificationProfile": { + "enable": true, + "notBeforeTimeout": "PT5M" + } + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "d053ec5a-8da6-495f-ab13-38216503c6d7", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + }, + "scheduledEventsProfile": { + "terminateNotificationProfile": { + "enable": true, + "notBeforeTimeout": "PT5M" + } + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.json index 1ea6c5bd022c..ac1676ea844d 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.json @@ -5,7 +5,6 @@ "api-version": "2019-03-01", "snapshotName": "mySnapshot1", "snapshot": { - "name": "mySnapshot1", "location": "West US", "properties": { "creationData": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription.json index 051f1355d167..f9624c059273 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription.json @@ -5,7 +5,6 @@ "api-version": "2019-03-01", "snapshotName": "mySnapshot1", "snapshot": { - "name": "mySnapshot1", "location": "West US", "properties": { "creationData": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateASnapshotFromAnExistingSnapshot.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateASnapshotFromAnExistingSnapshot.json index 80b14028c83f..8ad3baf76972 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateASnapshotFromAnExistingSnapshot.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateASnapshotFromAnExistingSnapshot.json @@ -5,7 +5,6 @@ "api-version": "2019-03-01", "snapshotName": "mySnapshot2", "snapshot": { - "name": "mySnapshot2", "location": "West US", "properties": { "creationData": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAnEmptyManagedDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAnEmptyManagedDisk.json new file mode 100644 index 000000000000..cc89b4a11e20 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateAnEmptyManagedDisk.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-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/2019-03-01/examples/CreateOrUpdateADedicatedHost.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateADedicatedHost.json new file mode 100644 index 000000000000..be99526847e4 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateADedicatedHost.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "tags": { + "department": "HR" + }, + "properties": { + "platformFaultDomain": 1 + }, + "sku": { + "name": "DSv3-Type1" + } + }, + "hostGroupName": "myDedicatedHostGroup", + "hostName": "myDedicatedHost" + }, + "responses": { + "201": { + "body": { + "name": "myDedicatedHost", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/HostGroups/myDedicatedHostGroup/hosts/myDedicatedHost", + "tags": { + "department": "HR" + }, + "sku": { + "name": "DSv3-Type1" + }, + "properties": { + "platformFaultDomain": 1, + "autoReplaceOnFailure": true, + "hostId": "{GUID}" + } + } + }, + "200": { + "body": { + "properties": { + "platformFaultDomain": 1, + "autoReplaceOnFailure": false, + "licenseType": "Windows_Server_Hybrid", + "hostId": "{GUID}" + }, + "location": "westus", + "tags": { + "department": "HR" + }, + "name": "myDedicatedHost", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/HostGroups/myDedicatedHostGroup/hosts/myDedicatedHost", + "sku": { + "name": "DSv3-Type1" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateADedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateADedicatedHostGroup.json new file mode 100644 index 000000000000..3d4ec8a42903 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateADedicatedHostGroup.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "hostGroupName": "myDedicatedHostGroup", + "parameters": { + "location": "westus", + "tags": { + "department": "finance" + }, + "zones": [ + "1" + ], + "properties": { + "platformFaultDomainCount": 3 + } + } + }, + "responses": { + "201": { + "body": { + "name": "myDedicatedHostGroup", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/HostGroups/myDedicatedHostGroup", + "tags": { + "department": "finance" + }, + "zones": [ + "1" + ], + "properties": { + "platformFaultDomainCount": 3, + "hosts": [] + } + } + }, + "200": { + "body": { + "properties": { + "platformFaultDomainCount": 3, + "hosts": [] + }, + "location": "westus", + "tags": { + "department": "finance", + "owner": "myCompany" + }, + "name": "myDedicatedHostGroup", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/HostGroups/myDedicatedHostGroup", + "zones": [ + "1" + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateASimpleGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateASimpleGalleryApplication.json new file mode 100644 index 000000000000..8354364631a0 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateASimpleGalleryApplication.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplication": { + "location": "West US", + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName", + "type": "Microsoft.Compute/galleries", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName" + } + }, + "201": { + "body": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName", + "type": "Microsoft.Compute/galleries", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName" + } + }, + "202": { + "body": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName", + "type": "Microsoft.Compute/galleries", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json new file mode 100644 index 000000000000..bf1184f95048 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplicationVersionName": "1.0.0", + "galleryApplicationVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "endOfLifeDate": "2019-07-01T07:00:00Z", + "storageAccountType": "Standard_LRS" + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Updating" + } + } + }, + "201": { + "body": { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Creating" + } + } + }, + "202": { + "body": { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Updating" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/DeleteAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/DeleteAGalleryApplication.json new file mode 100644 index 000000000000..d5d4629a4917 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/DeleteAGalleryApplication.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/DeleteAGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/DeleteAGalleryApplicationVersion.json new file mode 100644 index 000000000000..7a1d3aec5113 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/DeleteAGalleryApplicationVersion.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplicationVersionName": "1.0.0" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetADedicatedHost.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetADedicatedHost.json new file mode 100644 index 000000000000..0da47da294d4 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetADedicatedHost.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "hostGroupName": "myDedicatedHostGroup", + "hostName": "myHost" + }, + "responses": { + "200": { + "body": { + "properties": { + "platformFaultDomain": 1, + "autoReplaceOnFailure": true, + "hostId": "{GUID}", + "provisioningTime": "2019-06-27T01:02:38.3138469+00:00", + "virtualMachines": [ + { + "id": "/subscriptions/subId/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/vm1" + } + ], + "provisioningState": "Succeeded", + "instanceView": { + "assetId": "eb3f58b8-b4e8-4882-b69f-301a01812407", + "availableCapacity": { + "allocatableVMs": [ + { + "vmSize": "Standard_A1", + "count": 10 + } + ] + }, + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "level": "Info", + "displayStatus": "Provisioning succeeded" + }, + { + "code": "HealthState/available", + "level": "Info", + "displayStatus": "Host available" + } + ] + } + }, + "location": "westus", + "tags": { + "department": "HR" + }, + "sku": { + "name": "DSv3-Type1" + }, + "name": "myHost" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetADedicatedHostGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetADedicatedHostGroup.json new file mode 100644 index 000000000000..f383d65e8771 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetADedicatedHostGroup.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "hostGroupName": "myDedicatedHostGroup" + }, + "responses": { + "200": { + "body": { + "properties": { + "platformFaultDomainCount": 3, + "hosts": [ + { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/myDedicatedHostGroup/myHostGroup/Hosts/myHost1" + }, + { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/myDedicatedHostGroup/myHostGroup/Hosts/myHost2" + } + ] + }, + "location": "westus", + "tags": { + "{tagName}": "{tagValue}" + }, + "name": "myDedicatedHostGroup", + "zones": [ + "3" + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplication.json new file mode 100644 index 000000000000..94e1cd7e7f8e --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplication.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersion.json new file mode 100644 index 000000000000..8b9c1fe5a139 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersion.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplicationVersionName": "1.0.0" + }, + "responses": { + "200": { + "body": { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json new file mode 100644 index 000000000000..12bfa07e8838 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplicationVersionName": "1.0.0", + "$expand": "ReplicationStatus" + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "replicationStatus": { + "aggregatedState": "Completed", + "summary": [ + { + "region": "West US", + "state": "Completed", + "details": "", + "progress": 100 + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetInformationAboutAManagedDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetInformationAboutAManagedDisk.json new file mode 100644 index 000000000000..db5b5b0b7674 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetInformationAboutAManagedDisk.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-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}" + } + } + ] + }, + "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/2019-03-01/examples/GetInformationAboutASnapshot.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetInformationAboutASnapshot.json index ba15a0355b35..8342655dd2e1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetInformationAboutASnapshot.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetInformationAboutASnapshot.json @@ -14,20 +14,24 @@ "createOption": "Empty" }, "diskSizeGB": 100, - "encryptionSettings": { + "encryptionSettingsCollection": { "enabled": true, - "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}" - } + "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}" + } + } + ] }, "timeCreated": "2016-12-28T04:41:35.079872+00:00", "provisioningState": "Succeeded" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListAvailableVmSizes_VirtualMachines.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListAvailableVmSizes_VirtualMachines.json index fc3729903061..150d4cd85b61 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListAvailableVmSizes_VirtualMachines.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListAvailableVmSizes_VirtualMachines.json @@ -10,23 +10,23 @@ "body": { "value": [ { - "name": "Standard_A1_V2", - "numberOfCores": 1, - "osDiskSizeInMB": 1047552, - "resourceDiskSizeInMB": 10240, - "memoryInMB": 2048, - "maxDataDiskCount": 2 + "name": "Standard_A1_V2", + "numberOfCores": 1, + "osDiskSizeInMB": 1047552, + "resourceDiskSizeInMB": 10240, + "memoryInMB": 2048, + "maxDataDiskCount": 2 }, { - "name": "Standard_A2_V2", - "numberOfCores": 2, - "osDiskSizeInMB": 1047552, - "resourceDiskSizeInMB": 20480, - "memoryInMB": 4096, - "maxDataDiskCount": 4 + "name": "Standard_A2_V2", + "numberOfCores": 2, + "osDiskSizeInMB": 1047552, + "resourceDiskSizeInMB": 20480, + "memoryInMB": 4096, + "maxDataDiskCount": 4 } ] } } } -} \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json new file mode 100644 index 000000000000..4396c3195f78 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName/versions?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/applications/myGalleryApplicationName/versions/myGalleryApplicationVersionName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListGalleryApplicationsInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListGalleryApplicationsInAGallery.json new file mode 100644 index 000000000000..73500729155b --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListGalleryApplicationsInAGallery.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-01", + "galleryName": "myGalleryName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/applications/myGalleryApplicationName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListManagedDisksInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListManagedDisksInAResourceGroup.json new file mode 100644 index 000000000000..34c4bedb2fde --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListManagedDisksInAResourceGroup.json @@ -0,0 +1,111 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-03-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}" + } + } + ] + }, + "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": "myManagedDisk" + }, + { + "properties": { + "osType": "Windows", + "creationData": { + "createOption": "Empty" + }, + "diskSizeGB": 10, + "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": "myManagedDisk" + }, + { + "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}" + } + } + ] + }, + "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": "myManagedDisk" + } + ], + "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/2019-03-01/examples/ListManagedDisksInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListManagedDisksInASubscription.json new file mode 100644 index 000000000000..a41b163eb3ee --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListManagedDisksInASubscription.json @@ -0,0 +1,110 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2019-03-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}" + } + } + ] + }, + "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, + "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}" + } + } + ] + }, + "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/2019-03-01/examples/ListSnapshotsInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListSnapshotsInAResourceGroup.json index f8707ac42962..16db4e118fb1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListSnapshotsInAResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListSnapshotsInAResourceGroup.json @@ -16,20 +16,24 @@ "sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" }, "diskSizeGB": 200, - "encryptionSettings": { + "encryptionSettingsCollection": { "enabled": true, - "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}" - } + "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}" + } + } + ] }, "timeCreated": "2016-12-28T04:41:35.9278721+00:00", "provisioningState": "Succeeded" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListSnapshotsInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListSnapshotsInASubscription.json index 631da8b04aa3..56e7ab7a494b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListSnapshotsInASubscription.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListSnapshotsInASubscription.json @@ -15,20 +15,24 @@ "sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" }, "diskSizeGB": 200, - "encryptionSettings": { + "encryptionSettingsCollection": { "enabled": true, - "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}" - } + "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}" + } + } + ] }, "timeCreated": "2016-12-28T04:47:30.6630569+00:00", "provisioningState": "Succeeded" @@ -51,20 +55,24 @@ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" }, "diskSizeGB": 200, - "encryptionSettings": { + "encryptionSettingsCollection": { "enabled": true, - "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}" - } + "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}" + } + } + ] }, "timeCreated": "2016-12-28T04:47:30.3247198+00:00", "provisioningState": "Succeeded" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/LogAnalyticsRequestRateByInterval.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/LogAnalyticsRequestRateByInterval.json index cabcb6fb61de..72970a8e1337 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/LogAnalyticsRequestRateByInterval.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/LogAnalyticsRequestRateByInterval.json @@ -19,8 +19,6 @@ } } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/LogAnalyticsThrottledRequests.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/LogAnalyticsThrottledRequests.json index 774bacfdb1c7..545f5ac0db08 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/LogAnalyticsThrottledRequests.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/LogAnalyticsThrottledRequests.json @@ -19,8 +19,6 @@ } } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/VirtualMachineRunCommand.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/VirtualMachineRunCommand.json index f3bc0ccfbe29..465e1fa418d8 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/VirtualMachineRunCommand.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/VirtualMachineRunCommand.json @@ -29,8 +29,6 @@ ] } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/gallery.json index 6cda8efb547c..5e478800029a 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/gallery.json @@ -451,7 +451,7 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Create or update a simple gallery Image Version.": { + "Create or update a simple Gallery Image Version.": { "$ref": "./examples/CreateOrUpdateASimpleGalleryImageVersion.json" } } @@ -594,6 +594,406 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}": { + "put": { + "tags": [ + "GalleryApplications" + ], + "operationId": "GalleryApplications_CreateOrUpdate", + "description": "Create or update a gallery Application Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition is to be created." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryApplication", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryApplication" + }, + "description": "Parameters supplied to the create or update gallery Application operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplication" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GalleryApplication" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GalleryApplication" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple gallery Application.": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryApplication.json" + } + } + }, + "get": { + "tags": [ + "GalleryApplications" + ], + "operationId": "GalleryApplications_Get", + "description": "Retrieves information about a gallery Application Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery from which the Application Definitions are to be retrieved." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition to be retrieved." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplication" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery Application.": { + "$ref": "./examples/GetAGalleryApplication.json" + } + } + }, + "delete": { + "tags": [ + "GalleryApplications" + ], + "operationId": "GalleryApplications_Delete", + "description": "Delete a gallery Application.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition is to be deleted." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "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, + "x-ms-examples": { + "Delete a gallery Application.": { + "$ref": "./examples/DeleteAGalleryApplication.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}": { + "put": { + "tags": [ + "GalleryApplicationVersions" + ], + "operationId": "GalleryApplicationVersions_CreateOrUpdate", + "description": "Create or update a gallery Application Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition resides." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition in which the Application Version is to be created." + }, + { + "name": "galleryApplicationVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryApplicationVersion", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + }, + "description": "Parameters supplied to the create or update gallery Application Version operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple gallery Application Version.": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryApplicationVersion.json" + } + } + }, + "get": { + "tags": [ + "GalleryApplicationVersions" + ], + "operationId": "GalleryApplicationVersions_Get", + "description": "Retrieves information about a gallery Application Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition resides." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition in which the Application Version resides." + }, + { + "name": "galleryApplicationVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Version to be retrieved." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation.", + "enum": [ + "ReplicationStatus" + ], + "x-ms-enum": { + "name": "ReplicationStatusTypes", + "modelAsString": true + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery Application Version.": { + "$ref": "./examples/GetAGalleryApplicationVersion.json" + }, + "Get a gallery Application Version with replication status.": { + "$ref": "./examples/GetAGalleryApplicationVersionWithReplicationStatus.json" + } + } + }, + "delete": { + "tags": [ + "GalleryApplicationVersions" + ], + "operationId": "GalleryApplicationVersions_Delete", + "description": "Delete a gallery Application Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition resides." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition in which the Application Version resides." + }, + { + "name": "galleryApplicationVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Version to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "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, + "x-ms-examples": { + "Delete a gallery Application Version.": { + "$ref": "./examples/DeleteAGalleryApplicationVersion.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries": { "get": { "tags": [ @@ -639,14 +1039,119 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries": { "get": { "tags": [ - "Galleries" + "Galleries" + ], + "operationId": "Galleries_List", + "description": "List galleries under a subscription.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List galleries in a subscription.": { + "$ref": "./examples/ListGalleriesInASubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images": { + "get": { + "tags": [ + "GalleryImages" + ], + "operationId": "GalleryImages_ListByGallery", + "description": "List gallery Image Definitions in a gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery from which Image Definitions are to be listed." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List gallery images in a gallery.": { + "$ref": "./examples/ListGalleryImagesInAGallery.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions": { + "get": { + "tags": [ + "GalleryImageVersions" ], - "operationId": "Galleries_List", - "description": "List galleries under a subscription.", + "operationId": "GalleryImageVersions_ListByGalleryImage", + "description": "List gallery Image Versions in a gallery Image Definition.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition resides." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + }, { "$ref": "#/parameters/ApiVersionParameter" } @@ -655,7 +1160,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GalleryList" + "$ref": "#/definitions/GalleryImageVersionList" } }, "default": { @@ -666,8 +1171,8 @@ } }, "x-ms-examples": { - "List galleries in a subscription.": { - "$ref": "./examples/ListGalleriesInASubscription.json" + "List gallery Image Versions in a gallery Image Definition.": { + "$ref": "./examples/ListGalleryImageVersionsInAGalleryImage.json" } }, "x-ms-pageable": { @@ -675,13 +1180,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications": { "get": { "tags": [ - "GalleryImages" + "GalleryApplications" ], - "operationId": "GalleryImages_ListByGallery", - "description": "List gallery Image Definitions in a gallery.", + "operationId": "GalleryApplications_ListByGallery", + "description": "List gallery Application Definitions in a gallery.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -694,7 +1199,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Shared Image Gallery from which Image Definitions are to be listed." + "description": "The name of the Shared Application Gallery from which Application Definitions are to be listed." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -704,7 +1209,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GalleryImageList" + "$ref": "#/definitions/GalleryApplicationList" } }, "default": { @@ -715,8 +1220,8 @@ } }, "x-ms-examples": { - "List gallery images in a gallery.": { - "$ref": "./examples/ListGalleryImagesInAGallery.json" + "List gallery Applications in a gallery.": { + "$ref": "./examples/ListGalleryApplicationsInAGallery.json" } }, "x-ms-pageable": { @@ -724,13 +1229,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions": { "get": { "tags": [ - "GalleryImageVersions" + "GalleryApplicationVersions" ], - "operationId": "GalleryImageVersions_ListByGalleryImage", - "description": "List gallery Image Versions in a gallery Image Definition.", + "operationId": "GalleryApplicationVersions_ListByGalleryApplication", + "description": "List gallery Application Versions in a gallery Application Definition.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -743,14 +1248,14 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Shared Image Gallery in which the Image Definition resides." + "description": "The name of the Shared Application Gallery in which the Application Definition resides." }, { - "name": "galleryImageName", + "name": "galleryApplicationName", "in": "path", "required": true, "type": "string", - "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + "description": "The name of the Shared Application Gallery Application Definition from which the Application Versions are to be listed." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -760,7 +1265,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GalleryImageVersionList" + "$ref": "#/definitions/GalleryApplicationVersionList" } }, "default": { @@ -771,8 +1276,8 @@ } }, "x-ms-examples": { - "List gallery Image Versions in a gallery Image Definition.": { - "$ref": "./examples/ListGalleryImageVersionsInAGalleryImage.json" + "List gallery Application Versions in a gallery Application Definition.": { + "$ref": "./examples/ListGalleryApplicationVersionsInAGalleryApplication.json" } }, "x-ms-pageable": { @@ -832,6 +1337,145 @@ }, "description": "Describes the gallery unique name." }, + "GalleryApplication": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryApplicationProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery Application Definition that you want to create or update." + }, + "GalleryApplicationProperties": { + "properties": { + "description": { + "type": "string", + "description": "The description of this gallery Application Definition resource. This property is updatable." + }, + "eula": { + "type": "string", + "description": "The Eula agreement for the gallery Application Definition." + }, + "privacyStatementUri": { + "type": "string", + "description": "The privacy statement uri." + }, + "releaseNoteUri": { + "type": "string", + "description": "The release note uri." + }, + "endOfLifeDate": { + "type": "string", + "format": "date-time", + "description": "The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable." + }, + "supportedOSType": { + "type": "string", + "description": "This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux**", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + } + } + }, + "required": [ + "supportedOSType" + ], + "description": "Describes the properties of a gallery Application Definition." + }, + "GalleryApplicationVersion": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryApplicationVersionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery Application Version that you want to create or update." + }, + "GalleryApplicationVersionProperties": { + "properties": { + "publishingProfile": { + "$ref": "#/definitions/GalleryApplicationVersionPublishingProfile" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "title": "The current state of the gallery Application Version.", + "description": "The provisioning state, which only appears in the response.", + "enum": [ + "Creating", + "Updating", + "Failed", + "Succeeded", + "Deleting", + "Migrating" + ] + }, + "replicationStatus": { + "readOnly": true, + "$ref": "#/definitions/ReplicationStatus" + } + }, + "required": [ + "publishingProfile" + ], + "description": "Describes the properties of a gallery Image Version." + }, + "GalleryApplicationVersionPublishingProfile": { + "properties": { + "source": { + "$ref": "#/definitions/UserArtifactSource" + }, + "contentType": { + "type": "string", + "description": "Optional. May be used to help process this file. The type of file contained in the source, e.g. zip, json, etc." + }, + "enableHealthCheck": { + "type": "boolean", + "description": "Optional. Whether or not this application reports health." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GalleryArtifactPublishingProfileBase" + } + ], + "required": [ + "source" + ], + "description": "The publishing profile of a gallery Image Version." + }, + "UserArtifactSource": { + "properties": { + "fileName": { + "type": "string", + "description": "Required. The fileName of the artifact." + }, + "mediaLink": { + "type": "string", + "description": "Required. The mediaLink of the artifact, must be a readable storage blob." + } + }, + "required": [ + "fileName", + "mediaLink" + ], + "description": "The source image from which the Image Version is going to be created." + }, "GalleryImage": { "properties": { "properties": { @@ -878,7 +1522,7 @@ }, "osState": { "type": "string", - "description": "The allowed values for OS State are 'Generalized'.", + "description": "This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.", "enum": [ "Generalized", "Specialized" @@ -1060,13 +1704,39 @@ }, "description": "The target regions where the Image Version is going to be replicated to. This property is updatable." }, - "source": { - "$ref": "#/definitions/GalleryArtifactSource" + "replicaCount": { + "type": "integer", + "format": "int32", + "description": "The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable." + }, + "excludeFromLatest": { + "type": "boolean", + "description": "If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version." + }, + "publishedDate": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The timestamp for when the gallery Image Version is published." + }, + "endOfLifeDate": { + "type": "string", + "format": "date-time", + "description": "The end of life date of the gallery Image Version. This property can be used for decommissioning purposes. This property is updatable." + }, + "storageAccountType": { + "type": "string", + "description": "Specifies the storage account type to be used to store the image. This property is not updatable.", + "enum": [ + "Standard_LRS", + "Standard_ZRS" + ], + "x-ms-enum": { + "name": "StorageAccountType", + "modelAsString": true + } } }, - "required": [ - "source" - ], "description": "Describes the basic gallery artifact publishing profile." }, "TargetRegion": { @@ -1123,37 +1793,8 @@ }, "GalleryImageVersionPublishingProfile": { "properties": { - "replicaCount": { - "type": "integer", - "format": "int32", - "description": "The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable." - }, - "excludeFromLatest": { - "type": "boolean", - "description": "If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version." - }, - "publishedDate": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The timestamp for when the gallery Image Version is published." - }, - "endOfLifeDate": { - "type": "string", - "format": "date-time", - "description": "The end of life date of the gallery Image Version. This property can be used for decommissioning purposes. This property is updatable." - }, - "storageAccountType": { - "type": "string", - "description": "Specifies the storage account type to be used to store the image. This property is not updatable.", - "enum": [ - "Standard_LRS", - "Standard_ZRS" - ], - "x-ms-enum": { - "name": "StorageAccountType", - "modelAsString": true - } + "source": { + "$ref": "#/definitions/GalleryArtifactSource" } }, "allOf": [ @@ -1161,6 +1802,9 @@ "$ref": "#/definitions/GalleryArtifactPublishingProfileBase" } ], + "required": [ + "source" + ], "description": "The publishing profile of a gallery Image Version." }, "GalleryImageVersionStorageProfile": { @@ -1178,7 +1822,7 @@ "description": "A list of data disk images." } }, - "description": "This is the storage profile of a gallery Image Version." + "description": "This is the storage profile of a Gallery Image Version." }, "GalleryOSDiskImage": { "allOf": [ @@ -1350,6 +1994,44 @@ ], "description": "The List Gallery Image version operation response." }, + "GalleryApplicationList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryApplication" + }, + "description": "A list of Gallery Applications." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of Application Definitions in the Application Gallery. Call ListNext() with this to fetch the next page of gallery Application Definitions." + } + }, + "required": [ + "value" + ], + "description": "The List Gallery Applications operation response." + }, + "GalleryApplicationVersionList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryApplicationVersion" + }, + "description": "A list of gallery Application Versions." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of gallery Application Versions. Call ListNext() with this to fetch the next page of gallery Application Versions." + } + }, + "required": [ + "value" + ], + "description": "The List Gallery Application version operation response." + }, "CloudError": { "x-ms-external": true, "properties": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-04-01/examples/ListAvailableResourceSkus.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-04-01/examples/ListAvailableResourceSkus.json index 7bdc95a4ef6f..98525fa615dc 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-04-01/examples/ListAvailableResourceSkus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-04-01/examples/ListAvailableResourceSkus.json @@ -7,183 +7,183 @@ "200": { "body": { "value": [ - { - "resourceType": "virtualMachines", - "locations": [ - "westus" - ], - "capabilities": [ - { - "name": "MaxResourceVolumeMB", - "value": "20480" - }, - { - "name": "OSVhdSizeMB", - "value": "1047552" - }, - { - "name": "vCPUs", - "value": "1" - }, - { - "name": "HyperVGenerations", - "value": "V1" - }, - { - "name": "MemoryGB", - "value": "0.75" - }, - { - "name": "MaxDataDiskCount", - "value": "1" - }, - { - "name": "LowPriorityCapable", - "value": "False" - }, - { - "name": "PremiumIO", - "value": "False" - }, - { - "name": "vCPUsAvailable", - "value": "1" - }, - { - "name": "ACUs", - "value": "50" - }, - { - "name": "vCPUsPerCore", - "value": "1" - }, - { - "name": "EphemeralOSDiskSupported", - "value": "False" - }, - { - "name": "AcceleratedNetworkingEnabled", - "value": "False" - }, - { - "name": "RdmaEnabled", - "value": "False" - }, - { - "name": "MaxNetworkInterfaces", - "value": "2" - } - ], - "locationInfo": [ - { - "location": "westus", - "zones": [ - "westus-AZ01" - ], - "zoneDetails": [ - { - "name": [ - "westus-AZ01" - ], - "capabilities": [ - { - "name": "UltraSSDAvailable", - "value": "True" - } - ] - } - ] - } - ], - "name": "Standard_A0", - "tier": "Standard", - "size": "A0", - "family": "standardA0_A7Family" - }, - { - "resourceType": "virtualMachines", - "locations": [ - "westus" - ], - "capabilities": [ - { - "name": "MaxResourceVolumeMB", - "value": "71680" - }, - { - "name": "OSVhdSizeMB", - "value": "1047552" - }, - { - "name": "vCPUs", - "value": "1" - }, - { - "name": "HyperVGenerations", - "value": "V1" - }, - { - "name": "MemoryGB", - "value": "1.75" - }, - { - "name": "MaxDataDiskCount", - "value": "2" - }, - { - "name": "LowPriorityCapable", - "value": "True" - }, - { - "name": "PremiumIO", - "value": "False" - }, - { - "name": "vCPUsAvailable", - "value": "1" - }, - { - "name": "ACUs", - "value": "100" - }, - { - "name": "vCPUsPerCore", - "value": "1" - }, - { - "name": "EphemeralOSDiskSupported", - "value": "False" - }, - { - "name": "AcceleratedNetworkingEnabled", - "value": "False" - }, - { - "name": "RdmaEnabled", - "value": "False" - }, - { - "name": "MaxNetworkInterfaces", - "value": "2" - } - ], - "locationInfo": [ - { - "location": "westus", - "zones": [ - "westus-AZ02", - "westus-AZ01" - ] - } - ], - "name": "Standard_A1", - "tier": "Standard", - "size": "A1", - "family": "standardA0_A7Family" - } + { + "resourceType": "virtualMachines", + "locations": [ + "westus" + ], + "capabilities": [ + { + "name": "MaxResourceVolumeMB", + "value": "20480" + }, + { + "name": "OSVhdSizeMB", + "value": "1047552" + }, + { + "name": "vCPUs", + "value": "1" + }, + { + "name": "HyperVGenerations", + "value": "V1" + }, + { + "name": "MemoryGB", + "value": "0.75" + }, + { + "name": "MaxDataDiskCount", + "value": "1" + }, + { + "name": "LowPriorityCapable", + "value": "False" + }, + { + "name": "PremiumIO", + "value": "False" + }, + { + "name": "vCPUsAvailable", + "value": "1" + }, + { + "name": "ACUs", + "value": "50" + }, + { + "name": "vCPUsPerCore", + "value": "1" + }, + { + "name": "EphemeralOSDiskSupported", + "value": "False" + }, + { + "name": "AcceleratedNetworkingEnabled", + "value": "False" + }, + { + "name": "RdmaEnabled", + "value": "False" + }, + { + "name": "MaxNetworkInterfaces", + "value": "2" + } + ], + "locationInfo": [ + { + "location": "westus", + "zones": [ + "westus-AZ01" + ], + "zoneDetails": [ + { + "name": [ + "westus-AZ01" + ], + "capabilities": [ + { + "name": "UltraSSDAvailable", + "value": "True" + } + ] + } + ] + } + ], + "name": "Standard_A0", + "tier": "Standard", + "size": "A0", + "family": "standardA0_A7Family" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "westus" + ], + "capabilities": [ + { + "name": "MaxResourceVolumeMB", + "value": "71680" + }, + { + "name": "OSVhdSizeMB", + "value": "1047552" + }, + { + "name": "vCPUs", + "value": "1" + }, + { + "name": "HyperVGenerations", + "value": "V1" + }, + { + "name": "MemoryGB", + "value": "1.75" + }, + { + "name": "MaxDataDiskCount", + "value": "2" + }, + { + "name": "LowPriorityCapable", + "value": "True" + }, + { + "name": "PremiumIO", + "value": "False" + }, + { + "name": "vCPUsAvailable", + "value": "1" + }, + { + "name": "ACUs", + "value": "100" + }, + { + "name": "vCPUsPerCore", + "value": "1" + }, + { + "name": "EphemeralOSDiskSupported", + "value": "False" + }, + { + "name": "AcceleratedNetworkingEnabled", + "value": "False" + }, + { + "name": "RdmaEnabled", + "value": "False" + }, + { + "name": "MaxNetworkInterfaces", + "value": "2" + } + ], + "locationInfo": [ + { + "location": "westus", + "zones": [ + "westus-AZ02", + "westus-AZ01" + ] + } + ], + "name": "Standard_A1", + "tier": "Standard", + "size": "A1", + "family": "standardA0_A7Family" + } ], "nextLink": null } } } -} \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGallery.json new file mode 100644 index 000000000000..adbb58c5dd9b --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGallery.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "gallery": { + "location": "West US", + "properties": { + "description": "This is the gallery description." + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "myGalleryName" + } + }, + "201": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Creating" + }, + "location": "West US", + "name": "myGalleryName" + } + }, + "202": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "myGalleryName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryApplication.json new file mode 100644 index 000000000000..75db97c61c85 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryApplication.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplication": { + "location": "West US", + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName", + "type": "Microsoft.Compute/galleries", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName" + } + }, + "201": { + "body": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName", + "type": "Microsoft.Compute/galleries", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName" + } + }, + "202": { + "body": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName", + "type": "Microsoft.Compute/galleries", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json new file mode 100644 index 000000000000..aede7a8eeae6 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplicationVersionName": "1.0.0", + "galleryApplicationVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "endOfLifeDate": "2019-07-01T07:00:00Z", + "storageAccountType": "Standard_LRS" + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Updating" + } + } + }, + "201": { + "body": { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Creating" + } + } + }, + "202": { + "body": { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Updating" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryImage.json new file mode 100644 index 000000000000..80569aca3ff5 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryImage.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImage": { + "location": "West US", + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "myGalleryImageName" + } + }, + "201": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Creating" + }, + "location": "West US", + "name": "myGalleryImageName" + } + }, + "202": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "myGalleryImageName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json new file mode 100644 index 000000000000..4b05335ae1e9 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json @@ -0,0 +1,161 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "galleryImageVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ] + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + }, + "201": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Creating" + }, + "location": "West US", + "name": "1.0.0" + } + }, + "202": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json new file mode 100644 index 000000000000..25a999414e66 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json @@ -0,0 +1,166 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "galleryImageVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ] + }, + "storageProfile": { + "osDiskImage": { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{snapshotName}", + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}", + "lun": 1, + "hostCaching": "None" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "osDiskImage": { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}", + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}", + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + }, + "201": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "osDiskImage": { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}", + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}", + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Creating" + }, + "location": "West US", + "name": "1.0.0" + } + }, + "202": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "osDiskImage": { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{snapshotName}", + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}", + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGallery.json new file mode 100644 index 000000000000..237492343931 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGallery.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGalleryApplication.json new file mode 100644 index 000000000000..f17c5a1f99eb --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGalleryApplication.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGalleryApplicationVersion.json new file mode 100644 index 000000000000..49369a076b86 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGalleryApplicationVersion.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplicationVersionName": "1.0.0" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGalleryImage.json new file mode 100644 index 000000000000..be505784e861 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGalleryImage.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGalleryImageVersion.json new file mode 100644 index 000000000000..5f0211b5c89b --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/DeleteAGalleryImageVersion.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGallery.json new file mode 100644 index 000000000000..0fb4c40475e6 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGallery.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplication.json new file mode 100644 index 000000000000..045dde2dcd4d --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplication.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersion.json new file mode 100644 index 000000000000..6fea34a1fd64 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersion.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplicationVersionName": "1.0.0" + }, + "responses": { + "200": { + "body": { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json new file mode 100644 index 000000000000..a91a4daf865b --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplicationVersionName": "1.0.0", + "$expand": "ReplicationStatus" + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "replicationStatus": { + "aggregatedState": "Completed", + "summary": [ + { + "region": "West US", + "state": "Completed", + "details": "", + "progress": 100 + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryImage.json new file mode 100644 index 000000000000..339310ce97ab --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryImage.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryImageName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryImageVersion.json new file mode 100644 index 000000000000..d23c816b7bdc --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryImageVersion.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "galleryImageVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2 + } + ] + } + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryImageVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryImageVersionWithReplicationStatus.json new file mode 100644 index 000000000000..25a5ec435a8e --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryImageVersionWithReplicationStatus.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "galleryImageVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2 + } + ] + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + } + } + } + }, + "$expand": "ReplicationStatus" + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "replicationStatus": { + "aggregatedState": "Completed", + "summary": [ + { + "region": "West US", + "state": "Completed", + "details": "", + "progress": 100 + }, + { + "region": "East US", + "state": "Completed", + "details": "", + "progress": 100 + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json new file mode 100644 index 000000000000..646500c6b1e6 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "galleryImageVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2 + } + ] + } + }, + "storageProfile": { + "osDiskImage": { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{snapshotName}", + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}", + "lun": 1, + "hostCaching": "None" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "osDiskImage": { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{snapshotName}", + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}", + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleriesInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleriesInAResourceGroup.json new file mode 100644 index 000000000000..864afaf1d651 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleriesInAResourceGroup.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryName", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleriesInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleriesInASubscription.json new file mode 100644 index 000000000000..cbba47e4c19d --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleriesInASubscription.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2019-07-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryName", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json new file mode 100644 index 000000000000..af550ea5e129 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName/versions?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/applications/myGalleryApplicationName/versions/myGalleryApplicationVersionName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryApplicationsInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryApplicationsInAGallery.json new file mode 100644 index 000000000000..ea07a1d0c8e3 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryApplicationsInAGallery.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/applications/myGalleryApplicationName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryImageVersionsInAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryImageVersionsInAGalleryImage.json new file mode 100644 index 000000000000..afc59ec26b96 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryImageVersionsInAGalleryImage.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images/myGalleryImageName/versions?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/images/myGalleryImageName/versions/myGalleryImageVersionName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryImagesInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryImagesInAGallery.json new file mode 100644 index 000000000000..a07c6028a2da --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryImagesInAGallery.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "galleryName": "myGalleryName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryImageName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/images/myGalleryImageName" + } + } + } +} 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 new file mode 100644 index 000000000000..9af963b8fced --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/gallery.json @@ -0,0 +1,2188 @@ +{ + "swagger": "2.0", + "info": { + "title": "SharedImageGalleryServiceClient", + "description": "Shared Image Gallery Service Client.", + "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.Compute/galleries/{galleryName}": { + "put": { + "tags": [ + "Galleries" + ], + "operationId": "Galleries_CreateOrUpdate", + "description": "Create or update a Shared Image Gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "gallery", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Gallery" + }, + "description": "Parameters supplied to the create or update Shared Image Gallery operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Gallery" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Gallery" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/Gallery" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple gallery.": { + "$ref": "./examples/CreateOrUpdateASimpleGallery.json" + } + } + }, + "get": { + "tags": [ + "Galleries" + ], + "operationId": "Galleries_Get", + "description": "Retrieves information about a Shared Image Gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Gallery" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/GetAGallery.json" + } + } + }, + "delete": { + "tags": [ + "Galleries" + ], + "operationId": "Galleries_Delete", + "description": "Delete a Shared Image Gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "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, + "x-ms-examples": { + "Delete a gallery.": { + "$ref": "./examples/DeleteAGallery.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}": { + "put": { + "tags": [ + "GalleryImages" + ], + "operationId": "GalleryImages_CreateOrUpdate", + "description": "Create or update a gallery Image Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition is to be created." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryImage", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryImage" + }, + "description": "Parameters supplied to the create or update gallery image operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple gallery image.": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryImage.json" + } + } + }, + "get": { + "tags": [ + "GalleryImages" + ], + "operationId": "GalleryImages_Get", + "description": "Retrieves information about a gallery Image Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery from which the Image Definitions are to be retrieved." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition to be retrieved." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery image.": { + "$ref": "./examples/GetAGalleryImage.json" + } + } + }, + "delete": { + "tags": [ + "GalleryImages" + ], + "operationId": "GalleryImages_Delete", + "description": "Delete a gallery image.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition is to be deleted." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "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, + "x-ms-examples": { + "Delete a gallery image.": { + "$ref": "./examples/DeleteAGalleryImage.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}": { + "put": { + "tags": [ + "GalleryImageVersions" + ], + "operationId": "GalleryImageVersions_CreateOrUpdate", + "description": "Create or update a gallery Image Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition resides." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition in which the Image Version is to be created." + }, + { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryImageVersion", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + }, + "description": "Parameters supplied to the create or update gallery Image Version operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple Gallery Image Version (Managed Image as source).": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryImageVersion.json" + }, + "Create or update a simple Gallery Image Version using snapshots as a source.": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json" + } + } + }, + "get": { + "tags": [ + "GalleryImageVersions" + ], + "operationId": "GalleryImageVersions_Get", + "description": "Retrieves information about a gallery Image Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition resides." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition in which the Image Version resides." + }, + { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Version to be retrieved." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation.", + "enum": [ + "ReplicationStatus" + ], + "x-ms-enum": { + "name": "ReplicationStatusTypes", + "modelAsString": true + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery Image Version.": { + "$ref": "./examples/GetAGalleryImageVersion.json" + }, + "Get a gallery Image Version with replication status.": { + "$ref": "./examples/GetAGalleryImageVersionWithReplicationStatus.json" + }, + "Get a gallery Image Version with snapshots as a source.": { + "$ref": "./examples/GetAGalleryImageVersionWithSnapshotsAsSource.json" + } + } + }, + "delete": { + "tags": [ + "GalleryImageVersions" + ], + "operationId": "GalleryImageVersions_Delete", + "description": "Delete a gallery Image Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition resides." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition in which the Image Version resides." + }, + { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Version to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "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, + "x-ms-examples": { + "Delete a gallery Image Version.": { + "$ref": "./examples/DeleteAGalleryImageVersion.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}": { + "put": { + "tags": [ + "GalleryApplications" + ], + "operationId": "GalleryApplications_CreateOrUpdate", + "description": "Create or update a gallery Application Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition is to be created." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryApplication", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryApplication" + }, + "description": "Parameters supplied to the create or update gallery Application operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplication" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GalleryApplication" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GalleryApplication" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple gallery Application.": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryApplication.json" + } + } + }, + "get": { + "tags": [ + "GalleryApplications" + ], + "operationId": "GalleryApplications_Get", + "description": "Retrieves information about a gallery Application Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery from which the Application Definitions are to be retrieved." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition to be retrieved." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplication" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery Application.": { + "$ref": "./examples/GetAGalleryApplication.json" + } + } + }, + "delete": { + "tags": [ + "GalleryApplications" + ], + "operationId": "GalleryApplications_Delete", + "description": "Delete a gallery Application.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition is to be deleted." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "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, + "x-ms-examples": { + "Delete a gallery Application.": { + "$ref": "./examples/DeleteAGalleryApplication.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}": { + "put": { + "tags": [ + "GalleryApplicationVersions" + ], + "operationId": "GalleryApplicationVersions_CreateOrUpdate", + "description": "Create or update a gallery Application Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition resides." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition in which the Application Version is to be created." + }, + { + "name": "galleryApplicationVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryApplicationVersion", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + }, + "description": "Parameters supplied to the create or update gallery Application Version operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple gallery Application Version.": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryApplicationVersion.json" + } + } + }, + "get": { + "tags": [ + "GalleryApplicationVersions" + ], + "operationId": "GalleryApplicationVersions_Get", + "description": "Retrieves information about a gallery Application Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition resides." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition in which the Application Version resides." + }, + { + "name": "galleryApplicationVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Version to be retrieved." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation.", + "enum": [ + "ReplicationStatus" + ], + "x-ms-enum": { + "name": "ReplicationStatusTypes", + "modelAsString": true + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery Application Version.": { + "$ref": "./examples/GetAGalleryApplicationVersion.json" + }, + "Get a gallery Application Version with replication status.": { + "$ref": "./examples/GetAGalleryApplicationVersionWithReplicationStatus.json" + } + } + }, + "delete": { + "tags": [ + "GalleryApplicationVersions" + ], + "operationId": "GalleryApplicationVersions_Delete", + "description": "Delete a gallery Application Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition resides." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition in which the Application Version resides." + }, + { + "name": "galleryApplicationVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Version to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "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, + "x-ms-examples": { + "Delete a gallery Application Version.": { + "$ref": "./examples/DeleteAGalleryApplicationVersion.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries": { + "get": { + "tags": [ + "Galleries" + ], + "operationId": "Galleries_ListByResourceGroup", + "description": "List galleries under a resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List galleries in a resource group.": { + "$ref": "./examples/ListGalleriesInAResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries": { + "get": { + "tags": [ + "Galleries" + ], + "operationId": "Galleries_List", + "description": "List galleries under a subscription.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List galleries in a subscription.": { + "$ref": "./examples/ListGalleriesInASubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images": { + "get": { + "tags": [ + "GalleryImages" + ], + "operationId": "GalleryImages_ListByGallery", + "description": "List gallery Image Definitions in a gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery from which Image Definitions are to be listed." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List gallery images in a gallery.": { + "$ref": "./examples/ListGalleryImagesInAGallery.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions": { + "get": { + "tags": [ + "GalleryImageVersions" + ], + "operationId": "GalleryImageVersions_ListByGalleryImage", + "description": "List gallery Image Versions in a gallery Image Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition resides." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageVersionList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List gallery Image Versions in a gallery Image Definition.": { + "$ref": "./examples/ListGalleryImageVersionsInAGalleryImage.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications": { + "get": { + "tags": [ + "GalleryApplications" + ], + "operationId": "GalleryApplications_ListByGallery", + "description": "List gallery Application Definitions in a gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery from which Application Definitions are to be listed." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplicationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List gallery Applications in a gallery.": { + "$ref": "./examples/ListGalleryApplicationsInAGallery.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions": { + "get": { + "tags": [ + "GalleryApplicationVersions" + ], + "operationId": "GalleryApplicationVersions_ListByGalleryApplication", + "description": "List gallery Application Versions in a gallery Application Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition resides." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery Application Definition from which the Application Versions are to be listed." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersionList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List gallery Application Versions in a gallery Application Definition.": { + "$ref": "./examples/ListGalleryApplicationVersionsInAGalleryApplication.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "Gallery": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the Shared Image Gallery that you want to create or update." + }, + "GalleryProperties": { + "properties": { + "description": { + "type": "string", + "description": "The description of this Shared Image Gallery resource. This property is updatable." + }, + "identifier": { + "$ref": "#/definitions/GalleryIdentifier" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "title": "The current state of the gallery.", + "description": "The provisioning state, which only appears in the response.", + "enum": [ + "Creating", + "Updating", + "Failed", + "Succeeded", + "Deleting", + "Migrating" + ] + } + }, + "description": "Describes the properties of a Shared Image Gallery." + }, + "GalleryIdentifier": { + "properties": { + "uniqueName": { + "readOnly": true, + "type": "string", + "description": "The unique name of the Shared Image Gallery. This name is generated automatically by Azure." + } + }, + "description": "Describes the gallery unique name." + }, + "GalleryApplication": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryApplicationProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery Application Definition that you want to create or update." + }, + "GalleryApplicationProperties": { + "properties": { + "description": { + "type": "string", + "description": "The description of this gallery Application Definition resource. This property is updatable." + }, + "eula": { + "type": "string", + "description": "The Eula agreement for the gallery Application Definition." + }, + "privacyStatementUri": { + "type": "string", + "description": "The privacy statement uri." + }, + "releaseNoteUri": { + "type": "string", + "description": "The release note uri." + }, + "endOfLifeDate": { + "type": "string", + "format": "date-time", + "description": "The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable." + }, + "supportedOSType": { + "type": "string", + "description": "This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux**", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + } + } + }, + "required": [ + "supportedOSType" + ], + "description": "Describes the properties of a gallery Application Definition." + }, + "GalleryApplicationVersion": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryApplicationVersionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery Application Version that you want to create or update." + }, + "GalleryApplicationVersionProperties": { + "properties": { + "publishingProfile": { + "$ref": "#/definitions/GalleryApplicationVersionPublishingProfile" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "title": "The current state of the gallery Application Version.", + "description": "The provisioning state, which only appears in the response.", + "enum": [ + "Creating", + "Updating", + "Failed", + "Succeeded", + "Deleting", + "Migrating" + ] + }, + "replicationStatus": { + "readOnly": true, + "$ref": "#/definitions/ReplicationStatus" + } + }, + "required": [ + "publishingProfile" + ], + "description": "Describes the properties of a gallery Image Version." + }, + "GalleryApplicationVersionPublishingProfile": { + "properties": { + "source": { + "$ref": "#/definitions/UserArtifactSource" + }, + "contentType": { + "type": "string", + "description": "Optional. May be used to help process this file. The type of file contained in the source, e.g. zip, json, etc." + }, + "enableHealthCheck": { + "type": "boolean", + "description": "Optional. Whether or not this application reports health." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GalleryArtifactPublishingProfileBase" + } + ], + "required": [ + "source" + ], + "description": "The publishing profile of a gallery Image Version." + }, + "UserArtifactSource": { + "properties": { + "fileName": { + "type": "string", + "description": "Required. The fileName of the artifact." + }, + "mediaLink": { + "type": "string", + "description": "Required. The mediaLink of the artifact, must be a readable storage blob." + } + }, + "required": [ + "fileName", + "mediaLink" + ], + "description": "The source image from which the Image Version is going to be created." + }, + "GalleryImage": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryImageProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery Image Definition that you want to create or update." + }, + "GalleryImageProperties": { + "properties": { + "description": { + "type": "string", + "description": "The description of this gallery Image Definition resource. This property is updatable." + }, + "eula": { + "type": "string", + "description": "The Eula agreement for the gallery Image Definition." + }, + "privacyStatementUri": { + "type": "string", + "description": "The privacy statement uri." + }, + "releaseNoteUri": { + "type": "string", + "description": "The release note uri." + }, + "osType": { + "type": "string", + "description": "This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux**", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + } + }, + "osState": { + "type": "string", + "description": "This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.", + "enum": [ + "Generalized", + "Specialized" + ], + "x-ms-enum": { + "name": "OperatingSystemStateTypes", + "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 + } + }, + "endOfLifeDate": { + "type": "string", + "format": "date-time", + "description": "The end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable." + }, + "identifier": { + "$ref": "#/definitions/GalleryImageIdentifier" + }, + "recommended": { + "$ref": "#/definitions/RecommendedMachineConfiguration" + }, + "disallowed": { + "$ref": "#/definitions/Disallowed" + }, + "purchasePlan": { + "$ref": "#/definitions/ImagePurchasePlan" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "title": "The current state of the gallery Image Definition.", + "description": "The provisioning state, which only appears in the response.", + "enum": [ + "Creating", + "Updating", + "Failed", + "Succeeded", + "Deleting", + "Migrating" + ] + } + }, + "required": [ + "osType", + "osState", + "identifier" + ], + "description": "Describes the properties of a gallery Image Definition." + }, + "GalleryImageIdentifier": { + "properties": { + "publisher": { + "type": "string", + "description": "The name of the gallery Image Definition publisher." + }, + "offer": { + "type": "string", + "description": "The name of the gallery Image Definition offer." + }, + "sku": { + "type": "string", + "description": "The name of the gallery Image Definition SKU." + } + }, + "required": [ + "publisher", + "offer", + "sku" + ], + "description": "This is the gallery Image Definition identifier." + }, + "RecommendedMachineConfiguration": { + "properties": { + "vCPUs": { + "$ref": "#/definitions/ResourceRange" + }, + "memory": { + "$ref": "#/definitions/ResourceRange" + } + }, + "description": "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable." + }, + "ResourceRange": { + "properties": { + "min": { + "type": "integer", + "format": "int32", + "description": "The minimum number of the resource." + }, + "max": { + "type": "integer", + "format": "int32", + "description": "The maximum number of the resource." + } + }, + "description": "Describes the resource range." + }, + "Disallowed": { + "properties": { + "diskTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of disk types." + } + }, + "description": "Describes the disallowed disk types." + }, + "ImagePurchasePlan": { + "properties": { + "name": { + "type": "string", + "description": "The plan ID." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product ID." + } + }, + "description": "Describes the gallery Image Definition purchase plan. This is used by marketplace images." + }, + "GalleryImageVersion": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryImageVersionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery Image Version that you want to create or update." + }, + "GalleryImageVersionProperties": { + "properties": { + "publishingProfile": { + "$ref": "#/definitions/GalleryImageVersionPublishingProfile" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "title": "The current state of the gallery Image Version.", + "description": "The provisioning state, which only appears in the response.", + "enum": [ + "Creating", + "Updating", + "Failed", + "Succeeded", + "Deleting", + "Migrating" + ] + }, + "storageProfile": { + "$ref": "#/definitions/GalleryImageVersionStorageProfile" + }, + "replicationStatus": { + "readOnly": true, + "$ref": "#/definitions/ReplicationStatus" + } + }, + "required": [ + "storageProfile" + ], + "description": "Describes the properties of a gallery Image Version." + }, + "GalleryArtifactPublishingProfileBase": { + "properties": { + "targetRegions": { + "type": "array", + "items": { + "$ref": "#/definitions/TargetRegion" + }, + "description": "The target regions where the Image Version is going to be replicated to. This property is updatable." + }, + "replicaCount": { + "type": "integer", + "format": "int32", + "description": "The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable." + }, + "excludeFromLatest": { + "type": "boolean", + "description": "If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version." + }, + "publishedDate": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The timestamp for when the gallery Image Version is published." + }, + "endOfLifeDate": { + "type": "string", + "format": "date-time", + "description": "The end of life date of the gallery Image Version. This property can be used for decommissioning purposes. This property is updatable." + }, + "storageAccountType": { + "type": "string", + "description": "Specifies the storage account type to be used to store the image. This property is not updatable.", + "enum": [ + "Standard_LRS", + "Standard_ZRS" + ], + "x-ms-enum": { + "name": "StorageAccountType", + "modelAsString": true + } + } + }, + "description": "Describes the basic gallery artifact publishing profile." + }, + "TargetRegion": { + "properties": { + "name": { + "type": "string", + "description": "The name of the region." + }, + "regionalReplicaCount": { + "type": "integer", + "format": "int32", + "description": "The number of replicas of the Image Version to be created per region. This property is updatable." + }, + "storageAccountType": { + "type": "string", + "description": "Specifies the storage account type to be used to store the image. This property is not updatable.", + "enum": [ + "Standard_LRS", + "Standard_ZRS" + ], + "x-ms-enum": { + "name": "StorageAccountType", + "modelAsString": true + } + } + }, + "required": [ + "name" + ], + "description": "Describes the target region information." + }, + "GalleryArtifactSource": { + "properties": { + "managedImage": { + "$ref": "#/definitions/ManagedArtifact" + } + }, + "required": [ + "managedImage" + ], + "description": "The source image from which the Image Version is going to be created." + }, + "ManagedArtifact": { + "properties": { + "id": { + "type": "string", + "description": "The managed artifact id." + } + }, + "required": [ + "id" + ], + "description": "The managed artifact." + }, + "GalleryImageVersionPublishingProfile": { + "allOf": [ + { + "$ref": "#/definitions/GalleryArtifactPublishingProfileBase" + } + ], + "description": "The publishing profile of a gallery Image Version." + }, + "GalleryImageVersionStorageProfile": { + "properties": { + "source": { + "$ref": "#/definitions/GalleryArtifactVersionSource" + }, + "osDiskImage": { + "$ref": "#/definitions/GalleryOSDiskImage" + }, + "dataDiskImages": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryDataDiskImage" + }, + "description": "A list of data disk images." + } + }, + "description": "This is the storage profile of a Gallery Image Version." + }, + "GalleryArtifactVersionSource": { + "properties": { + "id": { + "type": "string", + "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": { + "allOf": [ + { + "$ref": "#/definitions/GalleryDiskImage" + } + ], + "description": "This is the OS disk image." + }, + "GalleryDataDiskImage": { + "properties": { + "lun": { + "type": "integer", + "format": "int32", + "description": "This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GalleryDiskImage" + } + ], + "required": [ + "lun" + ], + "description": "This is the data disk image." + }, + "GalleryDiskImage": { + "properties": { + "sizeInGB": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "This property indicates the size of the VHD to be created." + }, + "hostCaching": { + "type": "string", + "description": "The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'", + "enum": [ + "None", + "ReadOnly", + "ReadWrite" + ], + "x-ms-enum": { + "name": "HostCaching", + "modelAsString": false + } + }, + "source": { + "$ref": "#/definitions/GalleryArtifactVersionSource" + } + }, + "description": "This is the disk image base class." + }, + "ReplicationStatus": { + "properties": { + "aggregatedState": { + "readOnly": true, + "type": "string", + "description": "This is the aggregated replication status based on all the regional replication status flags.", + "enum": [ + "Unknown", + "InProgress", + "Completed", + "Failed" + ], + "x-ms-enum": { + "name": "AggregatedReplicationState", + "modelAsString": true + } + }, + "summary": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RegionalReplicationStatus" + }, + "description": "This is a summary of replication status for each region." + } + }, + "description": "This is the replication status of the gallery Image Version." + }, + "RegionalReplicationStatus": { + "properties": { + "region": { + "readOnly": true, + "type": "string", + "description": "The region to which the gallery Image Version is being replicated to." + }, + "state": { + "readOnly": true, + "type": "string", + "description": "This is the regional replication state.", + "enum": [ + "Unknown", + "Replicating", + "Completed", + "Failed" + ], + "x-ms-enum": { + "name": "ReplicationState", + "modelAsString": true + } + }, + "details": { + "readOnly": true, + "type": "string", + "description": "The details of the replication status." + }, + "progress": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "It indicates progress of the replication job." + } + }, + "description": "This is the regional replication status." + }, + "GalleryList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Gallery" + }, + "description": "A list of galleries." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries." + } + }, + "required": [ + "value" + ], + "description": "The List Galleries operation response." + }, + "GalleryImageList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryImage" + }, + "description": "A list of Shared Image Gallery images." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call ListNext() with this to fetch the next page of gallery Image Definitions." + } + }, + "required": [ + "value" + ], + "description": "The List Gallery Images operation response." + }, + "GalleryImageVersionList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryImageVersion" + }, + "description": "A list of gallery Image Versions." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of gallery Image Versions. Call ListNext() with this to fetch the next page of gallery Image Versions." + } + }, + "required": [ + "value" + ], + "description": "The List Gallery Image version operation response." + }, + "GalleryApplicationList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryApplication" + }, + "description": "A list of Gallery Applications." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of Application Definitions in the Application Gallery. Call ListNext() with this to fetch the next page of gallery Application Definitions." + } + }, + "required": [ + "value" + ], + "description": "The List Gallery Applications operation response." + }, + "GalleryApplicationVersionList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryApplicationVersion" + }, + "description": "A list of gallery Application Versions." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of gallery Application Versions. Call ListNext() with this to fetch the next page of gallery Application Versions." + } + }, + "required": [ + "value" + ], + "description": "The List Gallery Application version operation response." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/ApiError" + } + }, + "description": "An error response from the Gallery 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." + }, + "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 + } + }, + "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." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The name of the resource group." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + } +} diff --git a/specification/compute/resource-manager/readme.csharp.md b/specification/compute/resource-manager/readme.csharp.md index 3e124e82fb59..a3fe8bb4dac8 100644 --- a/specification/compute/resource-manager/readme.csharp.md +++ b/specification/compute/resource-manager/readme.csharp.md @@ -19,7 +19,7 @@ csharp: ``` yaml $(csharp) && !$(multiapi) && !$(csharp-profile) namespace: Microsoft.Azure.Management.Compute -output-folder: $(csharp-sdks-folder)/Compute/Management.Compute/Generated +output-folder: $(csharp-sdks-folder)/compute/Microsoft.Azure.Management.Compute/src/Generated ``` ## Batch settings @@ -74,4 +74,4 @@ output-folder: $(csharp-sdks-folder)/$(csharp-profile)/Compute/Management.Comput batch: - tag: profile-hybrid-2019-03-01 - ``` \ No newline at end of file + ``` diff --git a/specification/compute/resource-manager/readme.go.md b/specification/compute/resource-manager/readme.go.md index 998dc934c02c..2cd48aec7d6a 100644 --- a/specification/compute/resource-manager/readme.go.md +++ b/specification/compute/resource-manager/readme.go.md @@ -12,6 +12,7 @@ go: ```yaml $(go) && $(multiapi) batch: + - tag: package-2019-07-01 - tag: package-2019-03-01 - tag: package-2018-10-01 - tag: package-2018-06 @@ -28,6 +29,16 @@ batch: - tag: package-container-service-2015-11-preview ``` +### Tag: package-2019-07-01 and go + +These settings apply only when `--tag=package-2019-07-01 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +```yaml $(tag)=='package-2019-07-01' && $(go) +namespace: compute +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2019-07-01/$(namespace) +``` + ### Tag: package-2019-03-01 and go These settings apply only when `--tag=package-2019-03-01 --go` is specified on the command line. diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index f50fd8354c0e..c1b299be432b 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-03-01 +tag: package-2019-07-01 directive: - where: @@ -126,7 +126,14 @@ directive: - $.definitions.ImageUpdate suppress: - RequiredPropertiesMissingInResourceModel - + - where: + - $.definitions.DedicatedHostGroupUpdate + suppress: + - RequiredPropertiesMissingInResourceModel + - where: + - $.definitions.DedicatedHostUpdate + suppress: + - RequiredPropertiesMissingInResourceModel - where: - $.definitions.VirtualMachineScaleSetVM @@ -189,6 +196,20 @@ directive: - ACS service is deprecated so a PATCH endpoint won't be implemented ``` +### Tag: package-2019-07-01 + +These settings apply only when `--tag=package-2019-07-01` is specified on the command line. + +``` yaml $(tag) == 'package-2019-07-01' +input-file: +- Microsoft.Compute/stable/2019-03-01/compute.json +- Microsoft.Compute/stable/2019-03-01/runCommands.json +- Microsoft.Compute/stable/2019-04-01/skus.json +- Microsoft.Compute/stable/2019-03-01/disk.json +- Microsoft.Compute/stable/2019-07-01/gallery.json +- Microsoft.ContainerService/stable/2017-01-31/containerService.json +``` + ### Tag: package-2019-03-01 These settings apply only when `--tag=package-2019-03-01` is specified on the command line. @@ -198,7 +219,7 @@ input-file: - Microsoft.Compute/stable/2019-03-01/compute.json - Microsoft.Compute/stable/2019-03-01/runCommands.json - Microsoft.Compute/stable/2019-04-01/skus.json -- Microsoft.Compute/stable/2018-09-30/disk.json +- Microsoft.Compute/stable/2019-03-01/disk.json - Microsoft.Compute/stable/2019-03-01/gallery.json - Microsoft.ContainerService/stable/2017-01-31/containerService.json ``` @@ -543,6 +564,7 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: + - repo: azure-sdk-for-net - repo: azure-sdk-for-python after_scripts: - python ./scripts/multiapi_init_gen.py azure-mgmt-compute @@ -645,3 +667,57 @@ input-file: - Microsoft.Compute/stable/2017-12-01/compute.json - Microsoft.Compute/stable/2017-03-30/disk.json ``` + +## 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.Compute/stable/2019-03-01/compute.json + - $(this-folder)/Microsoft.Compute/stable/2019-03-01/runCommands.json + - $(this-folder)/Microsoft.Compute/stable/2019-04-01/skus.json + - $(this-folder)/Microsoft.Compute/stable/2019-03-01/disk.json + - $(this-folder)/Microsoft.Compute/stable/2019-07-01/gallery.json + - $(this-folder)/Microsoft.ContainerService/stable/2017-01-31/containerService.json + - $(this-folder)/Microsoft.Compute/stable/2019-03-01/gallery.json + - $(this-folder)/Microsoft.Compute/stable/2018-10-01/compute.json + - $(this-folder)/Microsoft.Compute/stable/2018-10-01/runCommands.json + - $(this-folder)/Microsoft.Compute/stable/2017-09-01/skus.json + - $(this-folder)/Microsoft.Compute/stable/2018-09-30/disk.json + - $(this-folder)/Microsoft.Compute/stable/2018-06-01/gallery.json + - $(this-folder)/Microsoft.Compute/stable/2018-06-01/disk.json + - $(this-folder)/Microsoft.Compute/stable/2018-06-01/compute.json + - $(this-folder)/Microsoft.Compute/stable/2018-06-01/runCommands.json + - $(this-folder)/Microsoft.Compute/stable/2018-04-01/compute.json + - $(this-folder)/Microsoft.Compute/stable/2018-04-01/runCommands.json + - $(this-folder)/Microsoft.Compute/stable/2018-04-01/disk.json + - $(this-folder)/Microsoft.Compute/stable/2017-12-01/compute.json + - $(this-folder)/Microsoft.Compute/stable/2017-12-01/runCommands.json + - $(this-folder)/Microsoft.Compute/stable/2017-03-30/disk.json + - $(this-folder)/Microsoft.Compute/stable/2017-03-30/compute.json + - $(this-folder)/Microsoft.Compute/stable/2017-03-30/runCommands.json + - $(this-folder)/Microsoft.ContainerService/stable/2016-09-30/containerService.json + - $(this-folder)/Microsoft.Compute/preview/2016-04-30-preview/compute.json + - $(this-folder)/Microsoft.Compute/preview/2016-04-30-preview/disk.json + - $(this-folder)/Microsoft.Compute/stable/2016-03-30/compute.json + - $(this-folder)/Microsoft.ContainerService/stable/2016-03-30/containerService.json + - $(this-folder)/Microsoft.ContainerService/preview/2015-11-01-preview/containerService.json + - $(this-folder)/Microsoft.Compute/stable/2015-06-15/compute.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/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/consumption.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/consumption.json new file mode 100644 index 000000000000..5bc21e118986 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/consumption.json @@ -0,0 +1,3175 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-05-01-preview", + "title": "ConsumptionManagementClient", + "description": "Consumption management client provides access to consumption resources for Azure Enterprise Subscriptions." + }, + "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.Consumption/usageDetails": { + "get": { + "tags": [ + "UsageDetails" + ], + "operationId": "UsageDetails_List", + "description": "Lists the usage details for the defined scope. Usage details are available via this API only for May 1, 2014 or later.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "UsageDetailsList": { + "$ref": "./examples/UsageDetailsList.json" + }, + "UsageDetailsListFilterByTag": { + "$ref": "./examples/UsageDetailsListFilterByTag.json" + }, + "UsageDetailsListForBillingPeriod": { + "$ref": "./examples/UsageDetailsListForBillingPeriod.json" + }, + "UsageDetailsExpand": { + "$ref": "./examples/UsageDetailsExpand.json" + }, + "UsageDetailsListByMetricActualCost": { + "$ref": "./examples/UsageDetailsListByMetricActualCost.json" + }, + "UsageDetailsListByMetricAmortizedCost": { + "$ref": "./examples/UsageDetailsListByMetricAmortizedCost.json" + }, + "UsageDetailsListByMetricUsage": { + "$ref": "./examples/UsageDetailsListByMetricUsage.json" + }, + "BillingAccountUsageDetailsList": { + "$ref": "./examples/UsageDetailsListByBillingAccount.json" + }, + "BillingAccountUsageDetailsListForBillingPeriod": { + "$ref": "./examples/UsageDetailsListForBillingPeriodByBillingAccount.json" + }, + "DepartmentUsageDetailsList": { + "$ref": "./examples/UsageDetailsListByDepartment.json" + }, + "DepartmentUsageDetailsListForBillingPeriod": { + "$ref": "./examples/UsageDetailsListForBillingPeriodByDepartment.json" + }, + "EnrollmentAccountUsageDetailsList": { + "$ref": "./examples/UsageDetailsListByEnrollmentAccount.json" + }, + "EnrollmentAccountUsageDetailsListForBillingPeriod": { + "$ref": "./examples/UsageDetailsListForBillingPeriodByEnrollmentAccount.json" + }, + "ManagementGroupUsageDetailsList": { + "$ref": "./examples/UsageDetailsListByManagementGroup.json" + }, + "ManagementGroupUsageDetailsListForBillingPeriod": { + "$ref": "./examples/UsageDetailsListForBillingPeriodByManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeUsageDetailsParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the properties/additionalInfo or properties/meterDetails within a list of usage details. By default, these fields are not included when listing usage details.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "description": "May be used to filter usageDetails by properties/resourceGroup, properties/resourceName, properties/resourceId, properties/chargeType, properties/reservationId, properties/publisherType or tags. 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 is separated by a colon (:). PublisherType Filter accepts two values azure and marketplace and it is currently supported for Web Direct Offer Type", + "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 usageDetails.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/metricParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/UsageDetailsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.Consumption/usageDetails/download": { + "post": { + "tags": [ + "UsageDetails" + ], + "x-ms-examples": { + "UsageDetailsDownload": { + "$ref": "./examples/UsageDetailsDownload.json" + }, + "UsageDetailsDownloadByMetricUsage": { + "$ref": "./examples/UsageDetailsDownloadByMetricUsage.json" + } + }, + "operationId": "UsageDetails_Download", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "description": "Download usage details data.", + "parameters": [ + { + "$ref": "#/parameters/scopeUsageDetailsParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/metricParameter" + }, + { + "name": "$filter", + "description": "May be used to filter usageDetails by properties/resourceGroup, properties/resourceName, properties/resourceId, properties/chargeType, properties/reservationId, properties/publisherType or tags. 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 is separated by a colon (:). PublisherType Filter accepts two values azure and marketplace and it is currently supported for Web Direct Offer Type", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/UsageDetailsDownloadResponse" + } + }, + "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" + }, + "Azure-AsyncOperation": { + "description": "To get the progress of the operation, call GET operation on the URL in Azure-AsyncOperation header field.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Consumption/marketplaces": { + "get": { + "tags": [ + "Marketplaces" + ], + "x-ms-odata": "#/definitions/Marketplace", + "operationId": "Marketplaces_List", + "description": "Lists the marketplaces for a scope at the defined scope. Marketplaces are available via this API only for May 1, 2014 or later.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "SubscriptionMarketplacesList": { + "$ref": "./examples/MarketplacesList.json" + }, + "SubscriptionMarketplacesListForBillingPeriod": { + "$ref": "./examples/MarketplacesListForBillingPeriod.json" + }, + "BillingAccountMarketplacesList": { + "$ref": "./examples/MarketplacesByBillingAccountList.json" + }, + "BillingAccountMarketplacesListForBillingPeriod": { + "$ref": "./examples/MarketplacesByBillingAccountListForBillingPeriod.json" + }, + "DepartmentMarketplacesList": { + "$ref": "./examples/MarketplacesByDepartmentList.json" + }, + "DepartmentMarketplacesListForBillingPeriod": { + "$ref": "./examples/MarketplacesByDepartment_ListByBillingPeriod.json" + }, + "EnrollmentAccountMarketplacesList": { + "$ref": "./examples/MarketplacesByEnrollmentAccountList.json" + }, + "EnrollmentAccountMarketplacesListForBillingPeriod": { + "$ref": "./examples/MarketplacesByEnrollmentAccounts_ListByBillingPeriod.json" + }, + "ManagementGroupMarketplacesList": { + "$ref": "./examples/MarketplacesByManagementGroupList.json" + }, + "ManagementGroupMarketplacesListForBillingPeriod": { + "$ref": "./examples/MarketplacesByManagementGroup_ListForBillingPeriod.json" + } + }, + "parameters": [ + { + "name": "$filter", + "description": "May be used to filter marketplaces by properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. 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" + }, + { + "name": "$top", + "description": "May be used to limit the number of results to the most recent N marketplaces.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + }, + { + "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" + }, + { + "$ref": "#/parameters/scopeMarketplaceParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/MarketplacesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.Consumption/budgets": { + "get": { + "tags": [ + "Budgets" + ], + "operationId": "Budgets_List", + "description": "Lists all budgets for the defined scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "BudgetsList": { + "$ref": "./examples/BudgetsList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeBudgetParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BudgetsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.Consumption/budgets/{budgetName}": { + "get": { + "tags": [ + "Budgets" + ], + "operationId": "Budgets_Get", + "description": "Gets the budget for the scope by budget name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "Budget": { + "$ref": "./examples/Budget.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeBudgetParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/budgetNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Budget" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Budgets" + ], + "operationId": "Budgets_CreateOrUpdate", + "description": "The operation to create or update a budget. Update operation requires latest eTag to be set in the request mandatorily. 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/consumption/" + }, + "x-ms-examples": { + "CreateOrUpdateBudget": { + "$ref": "./examples/CreateOrUpdateBudget.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeBudgetParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/budgetNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Budget" + }, + "description": "Parameters supplied to the Create Budget operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Budget" + } + }, + "201": { + "description": "Created.", + "schema": { + "$ref": "#/definitions/Budget" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Budgets" + ], + "operationId": "Budgets_Delete", + "description": "The operation to delete a budget.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "DeleteBudget": { + "$ref": "./examples/DeleteBudget.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeBudgetParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/budgetNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Consumption/tags": { + "get": { + "tags": [ + "Tags" + ], + "operationId": "Tags_Get", + "description": "Get all available tag keys for the defined scope", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "Tags_Get": { + "$ref": "./examples/Tags.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeTagsParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/TagsResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Consumption/charges": { + "get": { + "tags": [ + "Charges" + ], + "operationId": "Charges_ListByScope", + "description": "Lists the charges based for the defined scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ChangesForBillingPeriodByEnrollmentAccount": { + "$ref": "./examples/ChargesForBillingPeriodByEnrollmentAccount.json" + }, + "ChangesForBillingPeriodByDepartment": { + "$ref": "./examples/ChargesForBillingPeriodByDepartment.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeChargesParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "$filter", + "description": "May be used to filter charges by properties/usageEnd (Utc time), properties/usageStart (Utc time). 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 is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ChargeSummary" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/balances": { + "get": { + "tags": [ + "Balances" + ], + "operationId": "Balances_GetByBillingAccount", + "description": "Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "Balances": { + "$ref": "./examples/BalancesByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Balance" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/balances": { + "get": { + "tags": [ + "Balances" + ], + "operationId": "Balances_GetForBillingPeriodByBillingAccount", + "description": "Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "Balances": { + "$ref": "./examples/BalancesByBillingAccountForBillingPeriod.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/billingPeriodNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Balance" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationSummaries": { + "get": { + "tags": [ + "ReservedInstances" + ], + "operationId": "ReservationsSummaries_ListByReservationOrder", + "description": "Lists the reservations summaries for daily or monthly grain.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ReservationSummariesDaily": { + "$ref": "./examples/ReservationSummariesDaily.json" + }, + "ReservationSummariesMonthly": { + "$ref": "./examples/ReservationSummariesMonthly.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/reservationOrderIdParameter" + }, + { + "$ref": "#/parameters/grainParameter" + }, + { + "name": "$filter", + "description": "Required only for daily grain. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'", + "in": "query", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationSummariesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationSummaries": { + "get": { + "tags": [ + "ReservedInstances" + ], + "operationId": "ReservationsSummaries_ListByReservationOrderAndReservation", + "description": "Lists the reservations summaries for daily or monthly grain.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ReservationSummariesDailyWithReservationId": { + "$ref": "./examples/ReservationSummariesDailyWithReservationId.json" + }, + "ReservationSummariesMonthlyWithReservationId": { + "$ref": "./examples/ReservationSummariesMonthlyWithReservationId.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/reservationOrderIdParameter" + }, + { + "$ref": "#/parameters/reservationIdParameter" + }, + { + "$ref": "#/parameters/grainParameter" + }, + { + "name": "$filter", + "description": "Required only for daily grain. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'", + "in": "query", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationSummariesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationDetails": { + "get": { + "tags": [ + "ReservedInstances" + ], + "operationId": "ReservationsDetails_ListByReservationOrder", + "description": "Lists the reservations details for provided date range.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ReservationDetails": { + "$ref": "./examples/ReservationDetails.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/reservationOrderIdParameter" + }, + { + "name": "$filter", + "description": "Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge' ", + "in": "query", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationDetailsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationDetails": { + "get": { + "tags": [ + "ReservedInstances" + ], + "operationId": "ReservationsDetails_ListByReservationOrderAndReservation", + "description": "Lists the reservations details for provided date range.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ReservationDetailsWithReservationId": { + "$ref": "./examples/ReservationDetailsWithReservationId.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/reservationOrderIdParameter" + }, + { + "$ref": "#/parameters/reservationIdParameter" + }, + { + "name": "$filter", + "description": "Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge' ", + "in": "query", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationDetailsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/reservationRecommendations": { + "get": { + "tags": [ + "ReservationRecommendations" + ], + "operationId": "ReservationRecommendations_List", + "description": "List of recommendations for purchasing reserved instances.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ReservationRecommendations": { + "$ref": "./examples/ReservationRecommendationsList.json" + }, + "ReservationRecommendationsFilterByScopeLookBackPeriod": { + "$ref": "./examples/ReservationRecommendationsFilterByScopeLookBackPeriod.json" + } + }, + "parameters": [ + { + "name": "$filter", + "description": "May be used to filter reservationRecommendations by properties/scope and properties/lookBackPeriod.", + "in": "query", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationRecommendationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/pricesheets/default": { + "get": { + "tags": [ + "PriceSheet" + ], + "operationId": "PriceSheet_Get", + "description": "Gets the price sheet for a scope by subscriptionId. Price sheet is available via this API only for May 1, 2014 or later.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "PriceSheet": { + "$ref": "./examples/PriceSheet.json" + } + }, + "parameters": [ + { + "name": "$expand", + "description": "May be used to expand the properties/meterDetails within a price sheet. By default, these fields are not included when returning price sheet.", + "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 top N results.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/PriceSheetResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/pricesheets/default": { + "get": { + "tags": [ + "PriceSheet" + ], + "operationId": "PriceSheet_GetByBillingPeriod", + "description": "Get the price sheet for a scope by subscriptionId and billing period. Price sheet is available via this API only for May 1, 2014 or later.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "PriceSheetForBillingPeriod": { + "$ref": "./examples/PriceSheetForBillingPeriod.json" + }, + "PriceSheetExpand": { + "$ref": "./examples/PriceSheetExpand.json" + } + }, + "parameters": [ + { + "name": "$expand", + "description": "May be used to expand the properties/meterDetails within a price sheet. By default, these fields are not included when returning price sheet.", + "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 top N results.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingPeriodNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/PriceSheetResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/forecasts": { + "get": { + "tags": [ + "Forecasts" + ], + "x-ms-odata": "#/definitions/Forecast", + "operationId": "Forecasts_List", + "description": "Lists the forecast charges by subscriptionId.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ForecastsList": { + "$ref": "./examples/ForecastsList.json" + }, + "ForecastsListFilterByGrain": { + "$ref": "./examples/ForecastsListFilterByGrain.json" + }, + "ForecastsListFilterByDates": { + "$ref": "./examples/ForecastsListFilterByDates.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/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ForecastsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/providers/Microsoft.Consumption/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available consumption 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" + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Consumption/aggregatedcost": { + "get": { + "tags": [ + "AggregatedCost" + ], + "operationId": "AggregatedCost_GetByManagementGroup", + "description": "Provides the aggregate cost of a management group and all child management groups by current billing period.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "AggregatedCostByManagementGroup": { + "$ref": "./examples/AggregatedCostByManagementGroup.json" + }, + "AggregatedCostByManagementGroupFilterByDate": { + "$ref": "./examples/AggregatedCostByManagementGroupFilterByDate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/managementGroupIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "$filter", + "description": "May be used to filter aggregated cost by properties/usageStart (Utc time), properties/usageEnd (Utc time). 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 is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ManagementGroupAggregatedCostResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/Microsoft.Consumption/aggregatedcost": { + "get": { + "tags": [ + "AggregatedCost" + ], + "operationId": "AggregatedCost_GetForBillingPeriodByManagementGroup", + "description": "Provides the aggregate cost of a management group and all child management groups by specified billing period", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "AggregatedCostListForBillingPeriodByManagementGroup": { + "$ref": "./examples/AggregatedCostForBillingPeriodByManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/managementGroupIdParameter" + }, + { + "$ref": "#/parameters/billingPeriodNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ManagementGroupAggregatedCostResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "MeterDetails": { + "description": "The properties of the meter detail.", + "properties": { + "meterName": { + "description": "The name of the meter, within the given meter category", + "type": "string", + "readOnly": true + }, + "meterCategory": { + "description": "The category of the meter, for example, 'Cloud services', 'Networking', etc..", + "type": "string", + "readOnly": true + }, + "meterSubCategory": { + "description": "The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc..", + "type": "string", + "readOnly": true + }, + "unit": { + "description": "The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc.", + "type": "string", + "readOnly": true + }, + "meterLocation": { + "description": "The location in which the Azure service is available.", + "type": "string", + "readOnly": true + }, + "totalIncludedQuantity": { + "description": "The total included quantity associated with the offer.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "pretaxStandardRate": { + "description": "The pretax listing price.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "serviceName": { + "description": "The name of the service.", + "type": "string", + "readOnly": true + }, + "serviceTier": { + "description": "The service tier.", + "type": "string", + "readOnly": true + } + } + }, + "UsageDetail": { + "description": "An usage detail resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/UsageDetailProperties", + "title": "Usage detail properties" + } + } + }, + "UsageDetailsListResult": { + "description": "Result of listing usage details. It contains a list of available usage details in reverse chronological order by billing period.", + "properties": { + "value": { + "description": "The list of usage details.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/UsageDetail" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "UsageDetailProperties": { + "description": "The properties of the usage detail.", + "properties": { + "billingAccountId": { + "description": "Billing Account identifier.", + "type": "string", + "readOnly": true + }, + "billingAccountName": { + "description": "Billing Account Name.", + "type": "string", + "readOnly": true + }, + "billingPeriodStartDate": { + "description": "The billing period start date.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "billingPeriodEndDate": { + "description": "The billing period end date.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "billingProfileId": { + "description": "Billing Profile identifier.", + "type": "string", + "readOnly": true + }, + "billingProfileName": { + "description": "Billing Profile Name.", + "type": "string", + "readOnly": true + }, + "accountOwnerId": { + "description": "Account Owner Id.", + "type": "string", + "readOnly": true + }, + "accountName": { + "description": "Account Name.", + "type": "string", + "readOnly": true + }, + "subscriptionId": { + "description": "Subscription guid.", + "type": "string", + "readOnly": true + }, + "subscriptionName": { + "description": "Subscription name.", + "type": "string", + "readOnly": true + }, + "date": { + "description": "Date for the usage record.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "product": { + "description": "Product name for the consumed service or purchase. Not available for Marketplace.", + "type": "string", + "readOnly": true + }, + "partNumber": { + "description": "Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace.", + "type": "string", + "readOnly": true + }, + "meterId": { + "description": "The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName.", + "type": "string", + "format": "uuid", + "readOnly": true + }, + "meterDetails": { + "description": "The details about the meter. By default this is not populated, unless it's specified in $expand.", + "$ref": "#/definitions/MeterDetailsResponse", + "readOnly": true + }, + "quantity": { + "description": "The usage quantity.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "effectivePrice": { + "description": "Effective Price that’s charged for the usage.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "cost": { + "description": "The amount of cost before tax.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "unitPrice": { + "description": "Unit Price is the price applicable to you. (your EA or other contract price).", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "billingCurrency": { + "description": "Billing Currency.", + "type": "string", + "readOnly": true + }, + "resourceLocation": { + "description": "Resource Location.", + "type": "string", + "readOnly": true + }, + "consumedService": { + "description": "Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage.", + "type": "string", + "readOnly": true + }, + "resourceId": { + "description": "Azure resource manager resource identifier.", + "type": "string", + "readOnly": true + }, + "resourceName": { + "description": "Resource Name.", + "type": "string", + "readOnly": true + }, + "serviceInfo1": { + "description": "Service Info 1.", + "type": "string", + "readOnly": true + }, + "serviceInfo2": { + "description": "Service Info 2.", + "type": "string", + "readOnly": true + }, + "additionalInfo": { + "description": "Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied.", + "type": "string", + "readOnly": true + }, + "invoiceSection": { + "description": "Invoice Section Name.", + "type": "string", + "readOnly": true + }, + "costCenter": { + "description": "The cost center of this department if it is a department and a cost center is provided.", + "type": "string", + "readOnly": true + }, + "resourceGroup": { + "description": "Resource Group Name.", + "type": "string", + "readOnly": true + }, + "reservationId": { + "description": "ARM resource id of the reservation. Only applies to records relevant to reservations.", + "type": "string", + "readOnly": true + }, + "reservationName": { + "description": "User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations.", + "type": "string", + "readOnly": true + }, + "productOrderId": { + "description": "Product Order Id. For reservations this is the Reservation Order ID.", + "type": "string", + "readOnly": true + }, + "productOrderName": { + "description": "Product Order Name. For reservations this is the SKU that was purchased.", + "type": "string", + "readOnly": true + }, + "offerId": { + "description": "Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P.", + "type": "string", + "readOnly": true + }, + "isAzureCreditEligible": { + "description": "Is Azure Credit Eligible.", + "type": "boolean", + "readOnly": true + }, + "term": { + "description": "Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation.", + "type": "string", + "readOnly": true + }, + "publisherName": { + "description": "Publisher Name.", + "type": "string", + "readOnly": true + }, + "publisherType": { + "description": "Publisher Type.", + "type": "string", + "readOnly": true + }, + "planName": { + "description": "Plan Name.", + "type": "string", + "readOnly": true + }, + "chargeType": { + "description": "Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund.", + "type": "string", + "readOnly": true + }, + "frequency": { + "description": "Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used.", + "type": "string", + "readOnly": true + } + } + }, + "UsageDetailsDownloadResponse": { + "description": "Download response of Usage Details.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DownloadUrl", + "title": "Download url properties." + } + } + }, + "DownloadUrl": { + "description": "A secure URL that can be used to download a an entity until the URL expires.", + "properties": { + "downloadUrl": { + "description": "The URL to the csv file.", + "type": "string", + "readOnly": true + }, + "validTill": { + "description": "The time in UTC at which this download URL will expire.", + "type": "string", + "readOnly": true + } + } + }, + "Marketplace": { + "description": "An marketplace resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MarketplaceProperties", + "title": "Marketplace properties" + } + } + }, + "MarketplacesListResult": { + "description": "Result of listing marketplaces. It contains a list of available marketplaces in reverse chronological order by billing period.", + "type": "object", + "properties": { + "value": { + "description": "The list of marketplaces.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Marketplace" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "MarketplaceProperties": { + "description": "The properties of the marketplace usage detail.", + "type": "object", + "properties": { + "billingPeriodId": { + "description": "The id of the billing period resource that the usage belongs to.", + "type": "string", + "readOnly": true + }, + "usageStart": { + "description": "The start of the date time range covered by the usage detail.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "usageEnd": { + "description": "The end of the date time range covered by the usage detail.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "resourceRate": { + "description": "The marketplace resource rate.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "offerName": { + "description": "The type of offer.", + "type": "string", + "readOnly": true + }, + "resourceGroup": { + "description": "The name of resource group.", + "type": "string", + "readOnly": true + }, + "orderNumber": { + "description": "The order number.", + "type": "string", + "readOnly": true + }, + "instanceName": { + "description": "The name of the resource instance that the usage is about.", + "type": "string", + "readOnly": true + }, + "instanceId": { + "description": "The uri of the resource instance that the usage is about.", + "type": "string", + "readOnly": true + }, + "currency": { + "description": "The ISO currency in which the meter is charged, for example, USD.", + "type": "string", + "readOnly": true + }, + "consumedQuantity": { + "description": "The quantity of usage.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "unitOfMeasure": { + "description": "The unit of measure.", + "type": "string", + "readOnly": true + }, + "pretaxCost": { + "description": "The amount of cost before tax.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "isEstimated": { + "description": "The estimated usage is subject to change.", + "type": "boolean", + "readOnly": true + }, + "meterId": { + "description": "The meter id (GUID).", + "type": "string", + "format": "uuid", + "readOnly": true + }, + "subscriptionGuid": { + "description": "Subscription guid.", + "type": "string", + "format": "uuid", + "readOnly": true + }, + "subscriptionName": { + "description": "Subscription name.", + "type": "string", + "readOnly": true + }, + "accountName": { + "description": "Account name.", + "type": "string", + "readOnly": true + }, + "departmentName": { + "description": "Department name.", + "type": "string", + "readOnly": true + }, + "consumedService": { + "description": "Consumed service name.", + "type": "string", + "readOnly": true + }, + "costCenter": { + "description": "The cost center of this department if it is a department and a costcenter exists", + "type": "string", + "readOnly": true + }, + "additionalProperties": { + "description": "Additional details of this usage item. By default this is not populated, unless it's specified in $expand.", + "type": "string", + "readOnly": true + }, + "publisherName": { + "description": "The name of publisher.", + "type": "string", + "readOnly": true + }, + "planName": { + "description": "The name of plan.", + "type": "string", + "readOnly": true + }, + "isRecurringCharge": { + "description": "Flag indicating whether this is a recurring charge or not.", + "type": "boolean", + "readOnly": true + } + } + }, + "Balance": { + "description": "A balance resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BalanceProperties", + "title": "Balance properties" + } + } + }, + "BalanceProperties": { + "description": "The properties of the balance.", + "type": "object", + "properties": { + "currency": { + "description": "The ISO currency in which the meter is charged, for example, USD.", + "type": "string", + "readOnly": true + }, + "beginningBalance": { + "description": "The beginning balance for the billing period.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "endingBalance": { + "description": "The ending balance for the billing period (for open periods this will be updated daily).", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "newPurchases": { + "description": "Total new purchase amount.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "adjustments": { + "description": "Total adjustment amount.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "utilized": { + "description": "Total Commitment usage.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "serviceOverage": { + "description": "Overage for Azure services.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "chargesBilledSeparately": { + "description": "Charges Billed separately.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "totalOverage": { + "description": "serviceOverage + chargesBilledSeparately.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "totalUsage": { + "description": "Azure service commitment + total Overage.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "azureMarketplaceServiceCharges": { + "description": "Total charges for Azure Marketplace.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "billingFrequency": { + "description": "The billing frequency.", + "type": "string", + "enum": [ + "Month", + "Quarter", + "Year" + ], + "x-ms-enum": { + "name": "BillingFrequency", + "modelAsString": true + } + }, + "priceHidden": { + "description": "Price is hidden or not.", + "type": "boolean", + "readOnly": true + }, + "newPurchasesDetails": { + "description": "List of new purchases.", + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "description": "the name of new purchase.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "the value of new purchase.", + "type": "number", + "format": "decimal", + "readOnly": true + } + } + }, + "readOnly": true + }, + "adjustmentDetails": { + "description": "List of Adjustments (Promo credit, SIE credit etc.).", + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "description": "the name of new adjustment.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "the value of new adjustment.", + "type": "number", + "format": "decimal", + "readOnly": true + } + } + }, + "readOnly": true + } + } + }, + "ReservationSummary": { + "description": "reservation summary resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReservationSummaryProperties", + "title": "Reservation Summary properties" + } + } + }, + "ReservationSummariesListResult": { + "description": "Result of listing reservation summaries.", + "properties": { + "value": { + "description": "The list of reservation summaries.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ReservationSummary" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "ReservationSummaryProperties": { + "description": "The properties of the reservation summary.", + "properties": { + "reservationOrderId": { + "description": "The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations.", + "type": "string", + "readOnly": true + }, + "reservationId": { + "description": "The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to.", + "type": "string", + "readOnly": true + }, + "skuName": { + "description": "This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records.", + "type": "string", + "readOnly": true + }, + "reservedHours": { + "description": "This is the total hours reserved. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "usageDate": { + "description": "Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "usedHours": { + "description": "Total used hours by the reservation", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "minUtilizationPercentage": { + "description": "This is the minimum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 10%, this field will return 10% for that day", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "avgUtilizationPercentage": { + "description": "This is average utilization for the entire time range. (day or month depending on the grain)", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "maxUtilizationPercentage": { + "description": "This is the maximum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 100%, this field will return 100% for that day.", + "type": "number", + "format": "decimal", + "readOnly": true + } + } + }, + "ReservationDetail": { + "description": "reservation detail resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReservationDetailProperties", + "title": "Reservation Detail properties" + } + } + }, + "ReservationDetailsListResult": { + "description": "Result of listing reservation details.", + "properties": { + "value": { + "description": "The list of reservation details.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ReservationDetail" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "ReservationDetailProperties": { + "description": "The properties of the reservation detail.", + "properties": { + "reservationOrderId": { + "description": "The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations.", + "type": "string", + "readOnly": true + }, + "reservationId": { + "description": "The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to.", + "type": "string", + "readOnly": true + }, + "skuName": { + "description": "This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records.", + "type": "string", + "readOnly": true + }, + "reservedHours": { + "description": "This is the total hours reserved for the day. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "usageDate": { + "description": "The date on which consumption occurred.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "usedHours": { + "description": "This is the total hours used by the instance.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "instanceId": { + "description": "This identifier is the name of the resource or the fully qualified Resource ID.", + "type": "string", + "readOnly": true + }, + "totalReservedQuantity": { + "description": "This is the total count of instances that are reserved for the reservationId.", + "type": "number", + "format": "decimal", + "readOnly": true + } + } + }, + "ReservationRecommendation": { + "description": "Reservation recommendation resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + }, + { + "$ref": "#/definitions/ResourceAttributes" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReservationRecommendationProperties", + "title": "Reservation Recommendation properties" + } + } + }, + "ReservationRecommendationsListResult": { + "description": "Result of listing reservation recommendations.", + "properties": { + "value": { + "description": "The list of reservation recommendations.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ReservationRecommendation" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "ReservationRecommendationProperties": { + "description": "The properties of the reservation recommendation.", + "properties": { + "lookBackPeriod": { + "description": "The number of days of usage to look back for recommendation.", + "type": "string", + "readOnly": true + }, + "meterId": { + "description": "The meter id (GUID)", + "type": "string", + "format": "uuid", + "readOnly": true + }, + "term": { + "description": "RI recommendations in one or three year terms.", + "type": "string", + "readOnly": true + }, + "costWithNoReservedInstances": { + "description": "The total amount of cost without reserved instances.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "recommendedQuantity": { + "description": "Recommended quality for reserved instances.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "totalCostWithReservedInstances": { + "description": "The total amount of cost with reserved instances.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "netSavings": { + "description": "Total estimated savings with reserved instances.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "firstUsageDate": { + "description": "The usage date for looking back.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "scope": { + "description": "Shared or single recommendation.", + "type": "string", + "readOnly": true + } + } + }, + "TagsResult": { + "description": "A resource listing all tags.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TagProperties", + "title": "Tag properties" + } + } + }, + "TagProperties": { + "description": "The properties of the tag.", + "properties": { + "tags": { + "description": "A list of Tag.", + "type": "array", + "items": { + "$ref": "#/definitions/Tag" + } + } + } + }, + "Tag": { + "description": "The tag resource.", + "properties": { + "key": { + "description": "Tag key.", + "type": "string" + } + } + }, + "BudgetsListResult": { + "description": "Result of listing budgets. It contains a list of available budgets in the scope provided.", + "properties": { + "value": { + "description": "The list of budgets.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Budget" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "Budget": { + "description": "A budget resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BudgetProperties", + "title": "Budget properties" + } + } + }, + "BudgetProperties": { + "description": "The properties of the budget.", + "properties": { + "category": { + "description": "The category of the budget, whether the budget tracks cost or usage.", + "type": "string", + "enum": [ + "Cost", + "Usage" + ], + "x-ms-enum": { + "name": "CategoryType", + "modelAsString": true + } + }, + "amount": { + "description": "The total amount of cost to track with the budget", + "type": "number", + "format": "decimal" + }, + "timeGrain": { + "description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain.", + "type": "string", + "enum": [ + "Monthly", + "Quarterly", + "Annually" + ], + "x-ms-enum": { + "name": "TimeGrainType", + "modelAsString": true + } + }, + "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.", + "$ref": "#/definitions/BudgetTimePeriod" + }, + "filters": { + "description": "May be used to filter budgets by resource group, resource, or meter.", + "type": "object", + "$ref": "#/definitions/Filters" + }, + "currentSpend": { + "description": "The current amount of cost which is being tracked for a budget.", + "$ref": "#/definitions/CurrentSpend", + "readOnly": true + }, + "notifications": { + "type": "object", + "description": "Dictionary of notifications associated with the budget. Budget can have up to five notifications.", + "additionalProperties": { + "type": "object", + "$ref": "#/definitions/Notification" + }, + "maxItems": 5 + } + }, + "required": [ + "category", + "amount", + "timeGrain", + "timePeriod" + ] + }, + "BudgetTimePeriod": { + "description": "The start and end date for a budget.", + "properties": { + "startDate": { + "description": "The start date for the budget.", + "type": "string", + "format": "date-time" + }, + "endDate": { + "description": "The end date for the budget. If not provided, we default this to 10 years from the start date.", + "type": "string", + "format": "date-time" + } + }, + "required": [ + "startDate" + ] + }, + "Filters": { + "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.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 0, + "maxItems": 10 + }, + "resources": { + "description": "The list of filters on resources.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 0, + "maxItems": 10 + }, + "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 + }, + "tags": { + "type": "object", + "description": "The dictionary of filters on tags.", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "minItems": 0, + "maxItems": 10 + } + } + }, + "CurrentSpend": { + "description": "The current amount of cost which is being tracked for a budget.", + "properties": { + "amount": { + "description": "The total amount of cost which is being tracked by the budget.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "unit": { + "description": "The unit of measure for the budget amount.", + "type": "string", + "readOnly": true + } + } + }, + "Notification": { + "description": "The notification associated with a budget.", + "properties": { + "enabled": { + "description": "The notification is enabled or not.", + "type": "boolean" + }, + "operator": { + "description": "The comparison operator.", + "type": "string", + "enum": [ + "EqualTo", + "GreaterThan", + "GreaterThanOrEqualTo" + ], + "x-ms-enum": { + "name": "OperatorType", + "modelAsString": true + } + }, + "threshold": { + "description": "Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.", + "type": "number", + "format": "decimal" + }, + "contactEmails": { + "description": "Email addresses to send the budget notification to when the threshold is exceeded.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1, + "maxItems": 50 + }, + "contactRoles": { + "description": "Contact roles to send the budget notification to when the threshold is exceeded.", + "type": "array", + "items": { + "type": "string" + } + }, + "contactGroups": { + "description": "Action groups to send the budget notification to when the threshold is exceeded.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 0, + "maxItems": 50 + } + }, + "required": [ + "enabled", + "operator", + "threshold", + "contactEmails" + ] + }, + "PriceSheetResult": { + "description": "An pricesheet resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PriceSheetModel", + "title": "Price sheet properties" + } + } + }, + "PriceSheetModel": { + "description": "price sheet result. It contains the pricesheet associated with billing period", + "properties": { + "pricesheets": { + "description": "Price sheet", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PriceSheetProperties" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "PriceSheetProperties": { + "description": "The properties of the price sheet.", + "properties": { + "billingPeriodId": { + "description": "The id of the billing period resource that the usage belongs to.", + "type": "string", + "readOnly": true + }, + "meterId": { + "description": "The meter id (GUID)", + "type": "string", + "format": "uuid", + "readOnly": true + }, + "meterDetails": { + "description": "The details about the meter. By default this is not populated, unless it's specified in $expand.", + "$ref": "#/definitions/MeterDetails", + "readOnly": true + }, + "unitOfMeasure": { + "description": "Unit of measure", + "type": "string", + "readOnly": true + }, + "includedQuantity": { + "description": "Included quality for an offer", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "partNumber": { + "description": "Part Number", + "type": "string", + "readOnly": true + }, + "unitPrice": { + "description": "Unit Price", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "currencyCode": { + "description": "Currency Code", + "type": "string", + "readOnly": true + }, + "offerId": { + "description": "Offer Id", + "type": "string", + "readOnly": true + } + } + }, + "Forecast": { + "description": "A forecast resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ForecastProperties", + "title": "Forecast properties" + } + } + }, + "ForecastsListResult": { + "description": "Result of listing forecasts. It contains a list of available forecasts.", + "type": "object", + "properties": { + "value": { + "description": "The list of forecasts.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Forecast" + } + } + } + }, + "ForecastProperties": { + "description": "The properties of the forecast charge.", + "type": "object", + "properties": { + "usageDate": { + "description": "The usage date of the forecast.", + "type": "string", + "readOnly": true + }, + "grain": { + "description": "The granularity of forecast.", + "type": "string", + "enum": [ + "Daily", + "Monthly", + "Yearly" + ], + "x-ms-enum": { + "name": "Grain", + "modelAsString": true + } + }, + "charge": { + "description": "The amount of charge", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "currency": { + "description": "The ISO currency in which the meter is charged, for example, USD.", + "type": "string", + "readOnly": true + }, + "chargeType": { + "description": "The type of the charge. Could be actual or forecast", + "type": "string", + "enum": [ + "Actual", + "Forecast" + ], + "x-ms-enum": { + "name": "ChargeType", + "modelAsString": true + } + }, + "confidenceLevels": { + "description": "The details about the forecast confidence levels. This is populated only when chargeType is Forecast.", + "type": "array", + "items": { + "type": "object", + "properties": { + "percentage": { + "description": "The percentage level of the confidence", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "bound": { + "description": "The boundary of the percentage, values could be 'Upper' or 'Lower'", + "type": "string", + "enum": [ + "Upper", + "Lower" + ], + "x-ms-enum": { + "name": "Bound", + "modelAsString": true + } + }, + "value": { + "description": "The amount of forecast within the percentage level", + "type": "number", + "format": "decimal", + "readOnly": true + } + } + }, + "readOnly": true + } + } + }, + "ManagementGroupAggregatedCostResult": { + "description": "A management group aggregated cost resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagementGroupAggregatedCostProperties", + "title": "Management Group Aggregated Cost properties" + } + } + }, + "ManagementGroupAggregatedCostProperties": { + "description": "The properties of the Management Group Aggregated Cost.", + "type": "object", + "properties": { + "billingPeriodId": { + "description": "The id of the billing period resource that the aggregated cost belongs to.", + "type": "string", + "readOnly": true + }, + "usageStart": { + "description": "The start of the date time range covered by aggregated cost.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "usageEnd": { + "description": "The end of the date time range covered by the aggregated cost.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "azureCharges": { + "description": "Azure Charges.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "marketplaceCharges": { + "description": "Marketplace Charges.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "chargesBilledSeparately": { + "description": "Charges Billed Separately.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "currency": { + "description": "The ISO currency in which the meter is charged, for example, USD.", + "type": "string", + "readOnly": true + }, + "children": { + "description": "Children of a management group", + "type": "array", + "items": { + "$ref": "#/definitions/ManagementGroupAggregatedCostResult" + } + }, + "includedSubscriptions": { + "description": "List of subscription Guids included in the calculation of aggregated cost", + "type": "array", + "items": { + "type": "string" + } + }, + "excludedSubscriptions": { + "description": "List of subscription Guids excluded from the calculation of aggregated cost", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ChargesListResult": { + "description": "Result of listing charge summary.", + "properties": { + "value": { + "description": "The list of charge summary", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ChargeSummary" + } + } + } + }, + "ChargeSummary": { + "description": "A charge summary resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ChargeSummaryProperties", + "title": "Charge summary properties" + } + } + }, + "ChargeSummaryProperties": { + "description": "The properties of the charge summary.", + "type": "object", + "properties": { + "billingPeriodId": { + "description": "The id of the billing period resource that the charge belongs to.", + "type": "string", + "readOnly": true + }, + "usageStart": { + "description": "Usage start date.", + "type": "string", + "readOnly": true + }, + "usageEnd": { + "description": " Usage end date.", + "type": "string", + "readOnly": true + }, + "azureCharges": { + "description": "Azure Charges.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "chargesBilledSeparately": { + "description": "Charges Billed separately.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "marketplaceCharges": { + "description": "Marketplace Charges.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "currency": { + "description": "Currency Code", + "type": "string", + "readOnly": true + } + } + }, + "MeterDetailsResponse": { + "description": "The properties of the meter detail.", + "properties": { + "meterName": { + "description": "The name of the meter, within the given meter category", + "type": "string", + "readOnly": true + }, + "meterCategory": { + "description": "The category of the meter, for example, 'Cloud services', 'Networking', etc..", + "type": "string", + "readOnly": true + }, + "meterSubCategory": { + "description": "The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc..", + "type": "string", + "readOnly": true + }, + "unitOfMeasure": { + "description": "The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc.", + "type": "string", + "readOnly": true + }, + "serviceFamily": { + "description": "The service family.", + "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 + } + } + }, + "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" + } + } + }, + "Operation": { + "description": "A Consumption 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.Consumption.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "Resource on which the operation is performed: UsageDetail, etc.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string", + "readOnly": true + } + } + } + } + }, + "OperationListResult": { + "description": "Result of listing consumption operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of consumption operations supported by the Microsoft.Consumption 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 + } + } + }, + "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." + }, + "tags": { + "readOnly": true, + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "x-ms-azure-resource": true + }, + "ResourceAttributes": { + "description": "The Resource model definition.", + "properties": { + "location": { + "readOnly": true, + "type": "string", + "description": "Resource location" + }, + "sku": { + "readOnly": true, + "type": "string", + "description": "Resource sku" + } + } + }, + "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 + } + }, + "parameters": { + "scopeChargesParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope associated with usage details operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope. For department and enrollment accounts, you can also add billing period to the scope using '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g. to specify billing period at department scope use '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "scopeUsageDetailsParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope associated with usage details 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/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope. For subscription, billing account, department, enrollment account and management group, you can also add billing period to the scope using '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g. to specify billing period at department scope use '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "scopeMarketplaceParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope associated with marketplace 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/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope. For subscription, billing account, department, enrollment account and ManagementGroup, you can also add billing period to the scope using '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g. to specify billing period at department scope use '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "scopeBudgetParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope associated with budget 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.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "scopeTagsParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope associated with tags 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 and '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope..", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request. The current version is 2019-05-01-preview." + }, + "billingAccountIdParameter": { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "departmentIdParameter": { + "name": "departmentId", + "in": "path", + "description": "Department ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "enrollmentAccountIdParameter": { + "name": "enrollmentAccountId", + "in": "path", + "description": "EnrollmentAccount ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Azure Subscription ID.", + "required": true, + "type": "string" + }, + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "Azure Resource Group Name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "budgetNameParameter": { + "name": "budgetName", + "in": "path", + "description": "Budget Name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingPeriodNameParameter": { + "name": "billingPeriodName", + "in": "path", + "description": "Billing Period Name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "reservationOrderIdParameter": { + "name": "reservationOrderId", + "in": "path", + "description": "Order Id of the reservation", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "reservationIdParameter": { + "name": "reservationId", + "in": "path", + "description": "Id of the reservation", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "grainParameter": { + "name": "grain", + "description": "Can be daily or monthly", + "x-ms-parameter-location": "method", + "in": "query", + "required": true, + "type": "string", + "enum": [ + "daily", + "monthly" + ], + "x-ms-enum": { + "name": "datagrain", + "modelAsString": true, + "values": [ + { + "value": "daily", + "description": "Daily grain of data", + "name": "DailyGrain" + }, + { + "value": "monthly", + "description": "Monthly grain of data", + "name": "MonthlyGrain" + } + ] + } + }, + "managementGroupIdParameter": { + "name": "managementGroupId", + "in": "path", + "description": "Azure Management Group ID.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingProfileIdParameter": { + "name": "billingProfileId", + "in": "path", + "description": "Azure Billing Profile ID.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "invoiceSectionIdParameter": { + "name": "invoiceSectionId", + "in": "path", + "description": "Azure Invoice Section ID.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "metricParameter": { + "name": "metric", + "in": "query", + "description": "Allows to select different type of cost/usage records.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "enum": [ + "actualcost", + "amortizedcost", + "usage" + ], + "x-ms-enum": { + "name": "metrictype", + "modelAsString": true, + "values": [ + { + "value": "actualcost", + "description": "Actual cost data.", + "name": "ActualCostMetricType" + }, + { + "value": "amortizedcost", + "description": "Amortized cost data.", + "name": "AmortizedCostMetricType" + }, + { + "value": "usage", + "description": "Usage data.", + "name": "UsageMetricType" + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/AggregatedCostByManagementGroup.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/AggregatedCostByManagementGroup.json new file mode 100644 index 000000000000..9f9c465f48e3 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/AggregatedCostByManagementGroup.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "managementGroupId": "managementGroupForTest" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupForTest/providers/Microsoft.Consumption/aggregatedcostId1", + "name": "aggregatedcostId1", + "type": "Microsoft.Consumption/aggregatedcost", + "properties": { + "includedSubscriptions": [ + "1caaa5a3-2b66-438e-8ab4-bce37d518c5d" + ], + "excludedSubscriptions": [], + "usageStart": "2019-04-01T00:00:00.0000000Z", + "usageEnd": "2018-10-31T00:00:00.0000000Z", + "azureCharges": 250.9876, + "marketplaceCharges": 150.786, + "chargesBilledSeparately": 120.345, + "currency": "USD", + "children": [ + { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupChildForTest/providers/Microsoft.Consumption/aggregatedcostId2", + "name": "aggregatedcostId2", + "type": "Microsoft.Consumption/aggregatedcost", + "properties": { + "includedSubscriptions": [ + "c349567d-c83a-48c9-ab0e-578c69dc97a4" + ], + "excludedSubscriptions": [], + "usageStart": "2019-04-01T00:00:00.0000000Z", + "usageEnd": "2018-10-31T00:00:00.0000000Z", + "azureCharges": 150.0, + "marketplaceCharges": 50.786, + "chargesBilledSeparately": 30.345, + "currency": "USD", + "children": [] + } + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/AggregatedCostByManagementGroupFilterByDate.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/AggregatedCostByManagementGroupFilterByDate.json new file mode 100644 index 000000000000..0f971f3d8cc3 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/AggregatedCostByManagementGroupFilterByDate.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "managementGroupId": "managementGroupForTest", + "$filter": "usageStart ge '2018-08-15' and properties/usageStart le '2018-08-31'" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupForTest/providers/Microsoft.Consumption/aggregatedcostId1", + "name": "aggregatedcostId1", + "type": "Microsoft.Consumption/aggregatedcost", + "properties": { + "includedSubscriptions": [ + "1caaa5a3-2b66-438e-8ab4-bce37d518c5d" + ], + "excludedSubscriptions": [], + "usageStart": "2018-08-15T00:00:00.0000000Z", + "usageEnd": "2018-08-31T00:00:00.0000000Z", + "azureCharges": 150.9876, + "marketplaceCharges": 80.786, + "chargesBilledSeparately": 90.345, + "currency": "USD", + "children": [ + { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupChildForTest/providers/Microsoft.Consumption/aggregatedcostId2", + "name": "aggregatedcostId2", + "type": "Microsoft.Consumption/aggregatedcost", + "properties": { + "includedSubscriptions": [ + "c349567d-c83a-48c9-ab0e-578c69dc97a4" + ], + "excludedSubscriptions": [], + "usageStart": "2018-08-15T00:00:00.0000000Z", + "usageEnd": "2018-08-31T00:00:00.0000000Z", + "azureCharges": 50.0, + "marketplaceCharges": 10.786, + "chargesBilledSeparately": 30.345, + "currency": "USD", + "children": [] + } + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/AggregatedCostForBillingPeriodByManagementGroup.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/AggregatedCostForBillingPeriodByManagementGroup.json new file mode 100644 index 000000000000..c68f3cfd81ab --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/AggregatedCostForBillingPeriodByManagementGroup.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "managementGroupId": "managementGroupForTest", + "billingPeriodName": "201807" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupForTest/providers/Microsoft.Consumption/aggregatedcostId1", + "name": "aggregatedcostId1", + "type": "Microsoft.Consumption/aggregatedcost", + "properties": { + "usageStart": "2018-07-01T00:00:00.0000000Z", + "usageEnd": "2018-07-31T00:00:00.0000000Z", + "azureCharges": 250.9876, + "marketplaceCharges": 150.786, + "chargesBilledSeparately": 120.345, + "currency": "USD", + "children": [ + { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupChildForTest/providers/Microsoft.Consumption/aggregatedcostId2", + "name": "aggregatedcostId2", + "type": "Microsoft.Consumption/aggregatedcost", + "properties": { + "usageStart": "2018-07-01T00:00:00.0000000Z", + "usageEnd": "2018-07-31T00:00:00.0000000Z", + "azureCharges": 150.0, + "marketplaceCharges": 50.786, + "chargesBilledSeparately": 30.345, + "currency": "USD", + "children": [] + } + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/BalancesByBillingAccount.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/BalancesByBillingAccount.json new file mode 100644 index 000000000000..ab76190c11f9 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/BalancesByBillingAccount.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "billingAccountId": "123456" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/balances/balanceId1", + "name": "balanceId1", + "type": "Microsoft.Consumption/balances", + "properties": { + "currency": "USD ", + "beginningBalance": 3396469.19, + "endingBalance": 2922371.02, + "newPurchases": 0, + "adjustments": 0, + "utilized": 474098.17, + "serviceOverage": 0, + "chargesBilledSeparately": 0, + "totalOverage": 0, + "totalUsage": 474098.17, + "azureMarketplaceServiceCharges": 609.82, + "billingFrequency": "Month", + "priceHidden": false, + "newPurchasesDetails": [ + { + "name": "Promo Purchase", + "value": 1 + } + ], + "adjustmentDetails": [ + { + "name": "Promo Credit", + "value": 1.1 + }, + { + "name": "SIE Credit", + "value": 1.0 + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/BalancesByBillingAccountForBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/BalancesByBillingAccountForBillingPeriod.json new file mode 100644 index 000000000000..d27546e238e7 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/BalancesByBillingAccountForBillingPeriod.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "billingAccountId": "123456", + "billingPeriodName": "201702" + }, + "responses": { + "200": { + "body": { + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/balances/balanceId1", + "name": "balanceId1", + "type": "Microsoft.Consumption/balances", + "properties": { + "currency": "USD ", + "beginningBalance": 3396469.19, + "endingBalance": 2922371.02, + "newPurchases": 0, + "adjustments": 0, + "utilized": 474098.17, + "serviceOverage": 0, + "chargesBilledSeparately": 0, + "totalOverage": 0, + "totalUsage": 474098.17, + "azureMarketplaceServiceCharges": 609.82, + "billingFrequency": "Month", + "priceHidden": false, + "newPurchasesDetails": [ + { + "name": "Promo Purchase", + "value": 1 + } + ], + "adjustmentDetails": [ + { + "name": "Promo Credit", + "value": 1.1 + }, + { + "name": "SIE Credit", + "value": 1.0 + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/Budget.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/Budget.json new file mode 100644 index 000000000000..9d4ee2f7731b --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/Budget.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "budgetName": "TestBudget", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget", + "name": "TestBudget", + "type": "Microsoft.Consumption/budgets", + "eTag": "\"1d34d012214157f\"", + "properties": { + "category": "Cost", + "amount": 100.65, + "timeGrain": "Monthly", + "timePeriod": { + "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" + ] + } + }, + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "contactGroups": [ + "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ] + } + } + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/BudgetsList.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/BudgetsList.json new file mode 100644 index 000000000000..a3434af41381 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/BudgetsList.json @@ -0,0 +1,160 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget", + "name": "TestBudget", + "type": "Microsoft.Consumption/budgets", + "eTag": "\"1d34d012214157f\"", + "properties": { + "category": "Cost", + "amount": 100.65, + "timeGrain": "Monthly", + "timePeriod": { + "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" + ] + } + }, + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ] + }, + "Actual_GreaterThanOrEqualTo_90_Percent": { + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 90, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "contactGroups": [ + "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ] + } + } + } + }, + { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget", + "name": "TestBudget", + "type": "Microsoft.Consumption/budgets", + "eTag": "\"1d34d012214157f\"", + "properties": { + "category": "Cost", + "amount": 600.65, + "timeGrain": "Monthly", + "timePeriod": { + "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" + ] + } + }, + "currentSpend": { + "amount": 120.89, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThan_40_Percent": { + "enabled": true, + "operator": "GreaterThan", + "threshold": 40, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ] + }, + "Actual_GreaterThanOrEqualTo_60_Percent": { + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 60, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "contactGroups": [ + "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ] + } + } + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ChargesForBillingPeriodByDepartment.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ChargesForBillingPeriodByDepartment.json new file mode 100644 index 000000000000..1eb2d5ecaab5 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ChargesForBillingPeriodByDepartment.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "billingAccountId": "1234", + "departmentId": "42425", + "billingPeriodName": "201804", + "scope": "providers/Microsoft.Billing/BillingAccounts/1234" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/1234/departments/42425/providers/Microsoft.Consumption/charges/chargeSummaryId1", + "name": "chargeSummaryId1", + "type": "Microsoft.Consumption/charges", + "properties": { + "billingPeriodId": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201804", + "usageStart": "2018-04-01", + "usageEnd": "2018-04-30", + "azureCharges": 5000.00, + "chargesBilledSeparately": 60.90, + "marketplaceCharges": 100.00, + "currency": "USD" + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ChargesForBillingPeriodByEnrollmentAccount.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ChargesForBillingPeriodByEnrollmentAccount.json new file mode 100644 index 000000000000..f9b47775197a --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ChargesForBillingPeriodByEnrollmentAccount.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "billingAccountId": "1234", + "enrollmentAccountId": "42425", + "billingPeriodName": "201804", + "scope": "providers/Microsoft.Billing/BillingAccounts/1234" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/1234/enrollmentAccounts/42425/providers/Microsoft.Consumption/charges/chargeSummaryId1", + "name": "chargeSummaryId1", + "type": "Microsoft.Consumption/charges", + "properties": { + "billingPeriodId": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201804", + "usageStart": "2018-04-01", + "usageEnd": "2018-04-30", + "azureCharges": 5000.00, + "chargesBilledSeparately": 60.90, + "marketplaceCharges": 100.00, + "currency": "USD" + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/CreateOrUpdateBudget.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/CreateOrUpdateBudget.json new file mode 100644 index 000000000000..4e9962dbf6ff --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/CreateOrUpdateBudget.json @@ -0,0 +1,185 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "budgetName": "TestBudget", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "parameters": { + "eTag": "\"1d34d016a593709\"", + "properties": { + "category": "Cost", + "amount": 100.65, + "timeGrain": "Monthly", + "timePeriod": { + "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" + ] + } + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "contactGroups": [ + "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ] + } + } + } + } + }, + "responses": { + "201": { + "body": { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget", + "name": "TestBudget", + "type": "Microsoft.Consumption/budgets", + "eTag": "\"1d34d012214157f\"", + "properties": { + "category": "Cost", + "amount": 100.65, + "timeGrain": "Monthly", + "timePeriod": { + "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" + ] + } + }, + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "contactGroups": [ + "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ] + } + } + } + } + }, + "200": { + "body": { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget", + "name": "TestBudget", + "type": "Microsoft.Consumption/budgets", + "eTag": "\"1d34d012214157f\"", + "properties": { + "category": "Cost", + "amount": 100.65, + "timeGrain": "Monthly", + "timePeriod": { + "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" + ] + } + }, + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "contactGroups": [ + "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ] + } + } + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/DeleteBudget.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/DeleteBudget.json new file mode 100644 index 000000000000..3bb1f870f51e --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/DeleteBudget.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "budgetName": "TestBudget", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {} + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ForecastsList.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ForecastsList.json new file mode 100644 index 000000000000..54a5de15adf0 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ForecastsList.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId1", + "name": "forecastId1", + "type": "Microsoft.Consumption/forecasts", + "properties": { + "usageDate": "2018-04-01", + "grain": "Daily", + "charge": 752.000000, + "currency": "USD", + "chargeType": "Actual", + "confidenceLevels": null + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId2", + "name": "forecastId2", + "type": "Microsoft.Consumption/forecasts", + "properties": { + "usageDate": "2018-04-02", + "grain": "Daily", + "charge": 753.809074, + "currency": "USD", + "chargeType": "Forecast", + "confidenceLevels": [ + { + "percentage": 95, + "bound": "Upper", + "value": 1165.951737 + }, + { + "percentage": 95, + "bound": "Lower", + "value": 340.753404 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ForecastsListFilterByDates.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ForecastsListFilterByDates.json new file mode 100644 index 000000000000..f35dff045b7d --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ForecastsListFilterByDates.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "$filter": "usagedate ge '2018-04-01' AND usagedate le '2018-04-02'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId1", + "name": "forecastId1", + "type": "Microsoft.Consumption/forecasts", + "properties": { + "usageDate": "2018-04-01", + "grain": "Daily", + "charge": 752.000000, + "currency": "USD", + "chargeType": "Actual", + "confidenceLevels": null + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId2", + "name": "forecastId2", + "type": "Microsoft.Consumption/forecasts", + "properties": { + "usageDate": "2018-04-02", + "grain": "Daily", + "charge": 753.809074, + "currency": "USD", + "chargeType": "Forecast", + "confidenceLevels": [ + { + "percentage": 95, + "bound": "Upper", + "value": 1165.951737 + }, + { + "percentage": 95, + "bound": "Lower", + "value": 340.753404 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ForecastsListFilterByGrain.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ForecastsListFilterByGrain.json new file mode 100644 index 000000000000..465b9a365a70 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ForecastsListFilterByGrain.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "$filter": "Grain eq 'Monthly'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId1", + "name": "forecastId1", + "type": "Microsoft.Consumption/forecasts", + "properties": { + "usageDate": "2018-04-01", + "grain": "Monthly", + "charge": 752.000000, + "currency": "USD", + "chargeType": "Actual", + "confidenceLevels": null + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId2", + "name": "forecastId2", + "type": "Microsoft.Consumption/forecasts", + "properties": { + "usageDate": "2018-05-01", + "grain": "Monthly", + "charge": 753.809074, + "currency": "USD", + "chargeType": "Forecast", + "confidenceLevels": [ + { + "percentage": 95, + "bound": "Upper", + "value": 1165.951737 + }, + { + "percentage": 95, + "bound": "Lower", + "value": 340.753404 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByBillingAccountList.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByBillingAccountList.json new file mode 100644 index 000000000000..fd8d3cbe3f8b --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByBillingAccountList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "billingAccountId": "123456", + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplaceId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan1", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByBillingAccountListForBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByBillingAccountListForBillingPeriod.json new file mode 100644 index 000000000000..848e7d740c10 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByBillingAccountListForBillingPeriod.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "billingAccountId": "123456", + "billingPeriodName": "201702", + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByDepartmentList.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByDepartmentList.json new file mode 100644 index 000000000000..fb7335bd3e48 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByDepartmentList.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "departmentId": "123456", + "billingPeriodName": "201702", + "scope": "providers/Microsoft.Billing/departments/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/departments/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/providers/Microsoft.Billing/departments/123456/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByDepartment_ListByBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByDepartment_ListByBillingPeriod.json new file mode 100644 index 000000000000..fb7335bd3e48 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByDepartment_ListByBillingPeriod.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "departmentId": "123456", + "billingPeriodName": "201702", + "scope": "providers/Microsoft.Billing/departments/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/departments/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/providers/Microsoft.Billing/departments/123456/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByEnrollmentAccountList.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByEnrollmentAccountList.json new file mode 100644 index 000000000000..83cfe3b4ef72 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByEnrollmentAccountList.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "enrollmentAccountId": "123456", + "billingPeriodName": "201702", + "scope": "providers/Microsoft.Billing/enrollmentAccounts/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/enrollmentAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/providers/Microsoft.Billing/enrollmentAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByEnrollmentAccounts_ListByBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByEnrollmentAccounts_ListByBillingPeriod.json new file mode 100644 index 000000000000..83cfe3b4ef72 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByEnrollmentAccounts_ListByBillingPeriod.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "enrollmentAccountId": "123456", + "billingPeriodName": "201702", + "scope": "providers/Microsoft.Billing/enrollmentAccounts/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/enrollmentAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/providers/Microsoft.Billing/enrollmentAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByManagementGroupList.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByManagementGroupList.json new file mode 100644 index 000000000000..2a33d09cc5a5 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByManagementGroupList.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "managementGroupId": "managementGroupForTest", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201810/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201810", + "usageStart": "2018-10-13T00:00:00Z", + "usageEnd": "2018-10-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + }, + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Billing/billingPeriods/201810/providers/Microsoft.Consumption/marketplaces/marketplaceId2", + "name": "marketplacesId2", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account2", + "additionalProperties": "additionalProperties", + "costCenter": "Center2", + "departmentName": "Department2", + "billingPeriodId": "/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Billing/billingPeriods/201810", + "usageStart": "2018-10-13T00:00:00Z", + "usageEnd": "2018-10-13T23:59:59Z", + "instanceName": "shared2", + "instanceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared2", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "11111111-1111-1111-1111-111111111111", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "11111111-1111-1111-1111-111111111111", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "11111111-1111-1111-1111-111111111111", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByManagementGroup_ListForBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByManagementGroup_ListForBillingPeriod.json new file mode 100644 index 000000000000..bc96c08f7021 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesByManagementGroup_ListForBillingPeriod.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "managementGroupId": "managementGroupForTest", + "billingPeriodName": "201808", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201808/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201808", + "usageStart": "2018-08-13T00:00:00Z", + "usageEnd": "2018-08-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + }, + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Billing/billingPeriods/201808/providers/Microsoft.Consumption/marketplaces/marketplaceId2", + "name": "marketplacesId2", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account2", + "additionalProperties": "additionalProperties", + "costCenter": "Center2", + "departmentName": "Department2", + "billingPeriodId": "/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Billing/billingPeriods/201810", + "usageStart": "2018-08-13T00:00:00Z", + "usageEnd": "2018-08-13T23:59:59Z", + "instanceName": "shared2", + "instanceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared2", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "11111111-1111-1111-1111-111111111111", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "11111111-1111-1111-1111-111111111111", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "11111111-1111-1111-1111-111111111111", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesList.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesList.json new file mode 100644 index 000000000000..60be50130611 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketPlaces/marketplaceId1", + "name": "marketplaceId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan1", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesListForBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesListForBillingPeriod.json new file mode 100644 index 000000000000..c60d1cc958df --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/MarketplacesListForBillingPeriod.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "billingPeriodName": "201801", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketPlaces/marketplacesId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/PriceSheet.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/PriceSheet.json new file mode 100644 index 000000000000..dec92bedea1c --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/PriceSheet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/pricesheets/default", + "name": "default", + "type": "Microsoft.Consumption/pricesheets", + "properties": { + "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.consumption/pricesheets/default?api-version=2018-01-31&$skiptoken=AQAAAA%3D%3D", + "pricesheets": [ + { + "billingPeriodId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702", + "meterId": "00000000-0000-0000-0000-000000000000", + "unitOfMeasure": "100 Hours", + "includedQuantity": 100, + "partNumber": "XX-11110", + "unitPrice": 0.00328, + "currencyCode": "EUR", + "offerId": "OfferId 1" + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/PriceSheetExpand.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/PriceSheetExpand.json new file mode 100644 index 000000000000..24064c1b5825 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/PriceSheetExpand.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "billingPeriodName": "201801", + "$expand": "meterDetails" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/pricesheets/default", + "name": "default", + "type": "Microsoft.Consumption/pricesheets", + "properties": { + "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.consumption/pricesheets/default?api-version=2018-01-31&$skiptoken=AQAAAA%3D%3D&$expand=properties/pricesheets/meterDetails", + "pricesheets": [ + { + "billingPeriodId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702", + "meterId": "00000000-0000-0000-0000-000000000000", + "unitOfMeasure": "100 Hours", + "includedQuantity": 100, + "partNumber": "XX-11110", + "unitPrice": 0.00328, + "currencyCode": "EUR", + "offerId": "OfferId 1", + "meterDetails": { + "meterName": "Data Transfer Out (GB)", + "meterCategory": "Networking", + "unit": "GB", + "meterLocation": "Zone 2", + "totalIncludedQuantity": 0, + "pretaxStandardRate": 0.138 + } + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/PriceSheetForBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/PriceSheetForBillingPeriod.json new file mode 100644 index 000000000000..5ff07dec369b --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/PriceSheetForBillingPeriod.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "billingPeriodName": "201801" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/pricesheets/default", + "name": "default", + "type": "Microsoft.Consumption/pricesheets", + "properties": { + "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702/providers/microsoft.consumption/pricesheets/default?api-version=2018-01-31", + "pricesheets": [ + { + "billingPeriodId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702", + "meterId": "00000000-0000-0000-0000-000000000000", + "unitOfMeasure": "100 Hours", + "includedQuantity": 100, + "partNumber": "XX-11110", + "unitPrice": 0.00328, + "currencyCode": "EUR", + "offerId": "OfferId 1" + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationDetails.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationDetails.json new file mode 100644 index 000000000000..aa4872c6c42b --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationDetails.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "$filter": "properties/usageDate ge '2017-10-01' AND properties/usageDate le '2017-12-05'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationDetails/20171129", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000_20171129", + "type": "Microsoft.Consumption/reservationDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "usageDate": "2017-11-29T00:00:00Z", + "skuName": "Standard_D2_v2", + "instanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/wvn-sql/providers/microsoft.compute/virtualmachines/abc-sql2014sp33", + "totalReservedQuantity": 1.000000000000000, + "reservedHours": 24.000000000000000, + "usedHours": 24.000000000000000 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationDetailsWithReservationId.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationDetailsWithReservationId.json new file mode 100644 index 000000000000..0a210f3ce5f2 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationDetailsWithReservationId.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "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'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationDetails/20171129", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000_20171129", + "type": "Microsoft.Consumption/reservationDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "usageDate": "2017-11-29T00:00:00Z", + "skuName": "Standard_D2_v2", + "instanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/wvn-sql/providers/microsoft.compute/virtualmachines/wvn-sql2014sp33", + "totalReservedQuantity": 1.000000000000000, + "reservedHours": 24.000000000000000, + "usedHours": 24.000000000000000 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationRecommendationsFilterByScopeLookBackPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationRecommendationsFilterByScopeLookBackPeriod.json new file mode 100644 index 000000000000..36b30157a817 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationRecommendationsFilterByScopeLookBackPeriod.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "$filter": "properties/scope eq 'Single' AND properties/lookBackPeriod eq 'Last7Days'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationRecommendations/reservationRecommendations1", + "name": "reservationRecommendations1", + "type": "Microsoft.Consumption/reservationRecommendations", + "sku": "Standard_DS1_v2", + "location": "northeurope", + "properties": { + "lookBackPeriod": "Last7Days", + "meterId": "00000000-0000-0000-0000-000000000000", + "term": "P1Y", + "costWithNoReservedInstances": 0.0, + "recommendedQuantity": 1, + "totalCostWithReservedInstances": 0.0, + "netSavings": 4.634521202630137, + "firstUsageDate": "2018-03-06T00:00:00Z", + "scope": "Single" + } + }, + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationRecommendations/reservationRecommendations2", + "name": "reservationRecommendations2", + "type": "Microsoft.Consumption/reservationRecommendations", + "sku": "Standard_DS1_v2", + "location": "northeurope", + "properties": { + "lookBackPeriod": "Last7Days", + "meterId": "00000000-0000-0000-0000-000000000000", + "term": "P3Y", + "costWithNoReservedInstances": 0.0, + "recommendedQuantity": 1, + "totalCostWithReservedInstances": 0.0, + "netSavings": 7.2893157231780812, + "firstUsageDate": "2018-03-06T00:00:00Z", + "scope": "Single" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationRecommendations?api-version=2018-03-31&$filter=properties/scope+eq+'Single'+AND+properties/lookBackPeriod+eq+'Last7Days'&$skiptoken=AQAAAA%3D%3D&" + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationRecommendationsList.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationRecommendationsList.json new file mode 100644 index 000000000000..8e0d68ff5ff5 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationRecommendationsList.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationRecommendations/reservationRecommendations1", + "name": "reservationRecommendations1", + "type": "Microsoft.Consumption/reservationRecommendations", + "sku": "Standard_DS1_v2", + "location": "northeurope", + "properties": { + "lookBackPeriod": "Last7Days", + "meterId": "00000000-0000-0000-0000-000000000000", + "term": "P1Y", + "costWithNoReservedInstances": 0.0, + "recommendedQuantity": 1, + "totalCostWithReservedInstances": 0.0, + "netSavings": 4.634521202630137, + "firstUsageDate": "2018-03-06T00:00:00Z", + "scope": "Single" + } + }, + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationRecommendations/reservationRecommendations2", + "name": "reservationRecommendations2", + "type": "Microsoft.Consumption/reservationRecommendations", + "sku": "Standard_DS1_v2", + "location": "northeurope", + "properties": { + "lookBackPeriod": "Last7Days", + "meterId": "00000000-0000-0000-0000-000000000000", + "term": "P3Y", + "costWithNoReservedInstances": 0.0, + "recommendedQuantity": 1, + "totalCostWithReservedInstances": 0.0, + "netSavings": 7.2893157231780812, + "firstUsageDate": "2018-03-06T00:00:00Z", + "scope": "Single" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationRecommendations?api-version=2018-03-31&$skiptoken=AQAAAA%3D%3D&" + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationSummariesDaily.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationSummariesDaily.json new file mode 100644 index 000000000000..286de40a0a90 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationSummariesDaily.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "grain": "daily", + "$filter": "properties/usageDate ge '2017-10-01' AND properties/usageDate le '2017-11-20'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationSummaries/20171001", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000_20171001", + "type": "Microsoft.Consumption/reservationsummaries", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "skuName": "Standard_D8s_v3", + "reservedHours": 0.0, + "usageDate": "2017-10-01T00:00:00Z", + "usedHours": 0.0, + "minUtilizationPercentage": 0.0, + "avgUtilizationPercentage": 0.0, + "maxUtilizationPercentage": 0.0 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationSummariesDailyWithReservationId.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationSummariesDailyWithReservationId.json new file mode 100644 index 000000000000..d0193527db59 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationSummariesDailyWithReservationId.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "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'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationSummaries/20171001", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000_20171001", + "type": "Microsoft.Consumption/reservationsummaries", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "skuName": "Standard_D8s_v3", + "reservedHours": 0.0, + "usageDate": "2017-10-01T00:00:00Z", + "usedHours": 0.0, + "minUtilizationPercentage": 0.0, + "avgUtilizationPercentage": 0.0, + "maxUtilizationPercentage": 0.0 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationSummariesMonthly.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationSummariesMonthly.json new file mode 100644 index 000000000000..814eaa7f4b9f --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationSummariesMonthly.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "grain": "monthly" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationSummaries/20171001", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000_20171001", + "type": "Microsoft.Consumption/reservationsummaries", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "skuName": "Standard_D8s_v3", + "reservedHours": 0.0, + "usageDate": "2017-10-01T00:00:00Z", + "usedHours": 0.0, + "minUtilizationPercentage": 0.0, + "avgUtilizationPercentage": 0.0, + "maxUtilizationPercentage": 0.0 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationSummariesMonthlyWithReservationId.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationSummariesMonthlyWithReservationId.json new file mode 100644 index 000000000000..a989b8ab82a0 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/ReservationSummariesMonthlyWithReservationId.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "grain": "monthly" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationSummaries/20171001", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000_20171001", + "type": "Microsoft.Consumption/reservationsummaries", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "skuName": "Standard_D8s_v3", + "reservedHours": 0.0, + "usageDate": "2017-10-01T00:00:00Z", + "usedHours": 0.0, + "minUtilizationPercentage": 0.0, + "avgUtilizationPercentage": 0.0, + "maxUtilizationPercentage": 0.0 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/Tags.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/Tags.json new file mode 100644 index 000000000000..a1dea0076566 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/Tags.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "billingAccountId": "12345", + "scope": "providers/Microsoft.CostManagement/billingAccounts/1234" + }, + "responses": { + "200": { + "body": { + "id": "providers/Microsoft.CostManagement/billingAccounts/{billingaccount-id}/providers/Microsoft.Consumption/tags/tags1", + "name": "tags1", + "type": "Microsoft.Consumption/tags", + "eTag": "\"1d34d012214157f\"", + "properties": { + "tags": [ + { + "key": "Department" + }, + { + "key": "CostCenter" + }, + { + "key": "Portal" + }, + { + "key": "OrgName" + }, + { + "key": "Namespace" + }, + { + "key": "resourceType" + }, + { + "key": "Subsystem" + }, + { + "key": "Environment" + }, + { + "key": "clusterName" + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsDownload.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsDownload.json new file mode 100644 index 000000000000..f7501c385ac2 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsDownload.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "providers/Microsoft.Billing/billingAccounts/1234" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/1234/providers/Microsoft.Consumption/operationStatus/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "properties": { + "downloadUrl": "https://account.blob.core.windows.net/usageReports/20190409/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&st=2019-04-10T00%3A04%3A27Z&se=2019-04-10T06%3A09%3A27Z&sp=r", + "validTill": "03/05/2019 20:13:06" + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/1234/providers/Microsoft.Consumption/operationResults/00000000-0000-0000-0000-000000000000?api-version=2019-05-01-preview", + "Retry-After": "10", + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/1234/providers/Microsoft.Consumption/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2019-05-01-preview" + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsDownloadByMetricUsage.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsDownloadByMetricUsage.json new file mode 100644 index 000000000000..26dc8a3658d4 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsDownloadByMetricUsage.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "metric": "usage" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/operationStatus/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "properties": { + "downloadUrl": "https://account.blob.core.windows.net/usageReports/20190409/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&st=2019-04-10T00%3A04%3A27Z&se=2019-04-10T06%3A09%3A27Z&sp=r", + "validTill": "03/05/2019 20:13:06" + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/operationResults/00000000-0000-0000-0000-000000000000?api-version=2019-05-01-preview", + "Retry-After": "10", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2019-05-01-preview" + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsExpand.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsExpand.json new file mode 100644 index 000000000000..da3b085112b4 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsExpand.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "billingPeriodName": "201903", + "$expand": "meterDetails,additionalInfo", + "$filter": "tags eq 'dev:tools'", + "$top": 1 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": { + "meterName": "Data Transfer Out (GB)", + "meterCategory": "Networking", + "meterSubCategory": "ExpressRoute", + "unitOfMeasure": "GB", + "serviceFamily": "Compute" + }, + "quantity": 0.8234, + "effectivePrice": 0.010464556322455, + "cost": 0.000342194841184, + "unitPrice": 3.54, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage", + "frequency": "UsageBased", + "additionalInfo": "{\"MyType\":\"\",\"ServiceType\":\"\",\"VMName\":\"\",\"UsageType\":\"MyUsage\"}" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsList.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsList.json new file mode 100644 index 000000000000..c91c1bfd48db --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsList.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Customer Name 1", + "billingPeriodStartDate": "2019-04-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-04-30T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Customer Name 1", + "accountName": "AccountName", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "SubscriptionName 1", + "date": "2019-04-09T00:00:00.0000000Z", + "product": "Product1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.000036, + "effectivePrice": 0.054693034210767, + "cost": 0.000001980949998, + "unitPrice": 5.47, + "billingCurrency": "CAD", + "resourceLocation": "uswest", + "consumedService": "Microsoft.ClassicStorage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource-Group-westus/providers/Microsoft.ClassicStorage/storageAccounts/ResourceName1", + "resourceName": "ResourceName1", + "invoiceSection": "Invoice Section 1", + "costCenter": "BAS", + "resourceGroup": "Resource-Group-westus", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage", + "frequency": "UsageBased" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByBillingAccount.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByBillingAccount.json new file mode 100644 index 000000000000..8cfcd69aafdd --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByBillingAccount.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "providers/Microsoft.Billing/BillingAccounts/1234", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.7329, + "effectivePrice": 0.000402776395232, + "cost": 0.000295194820065, + "unitPrice": 4.38, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByDepartment.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByDepartment.json new file mode 100644 index 000000000000..64fb2442c745 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByDepartment.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "providers/Microsoft.Billing/Departments/1234", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/Departments/1234/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.7329, + "effectivePrice": 0.000402776395232, + "cost": 0.000295194820065, + "unitPrice": 4.38, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByEnrollmentAccount.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByEnrollmentAccount.json new file mode 100644 index 000000000000..d70160f5c3e7 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByEnrollmentAccount.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "providers/Microsoft.Billing/EnrollmentAccounts/1234", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/EnrollmentAccounts/1234/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.7329, + "effectivePrice": 0.000402776395232, + "cost": 0.000295194820065, + "unitPrice": 4.38, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByManagementGroup.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByManagementGroup.json new file mode 100644 index 000000000000..435f9c35b2a0 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByManagementGroup.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "managementGroupId": "managementGroupForTest", + "billingPeriodName": "201903", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + }, + { + "id": "/scope/providers/Microsoft.Billing/billingPeriods/20180801/providers/Microsoft.Consumption/usageDetails/usageDetails_Id2", + "name": "usageDetails_Id2", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 2", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 2", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 2", + "partNumber": "Part Number 2", + "meterId": "11111111-1111-1111-1111-111111111111", + "meterDetails": null, + "quantity": 0.7329, + "effectivePrice": 0.000402776395232, + "cost": 0.000295194820065, + "unitPrice": 4.38, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 2/providers/Microsoft.Storage/storageAccounts/Resource Name 2", + "resourceName": "Resource Name 2", + "invoiceSection": "Invoice Section 2", + "costCenter": "DEV", + "resourceGroup": "Resource Group 2", + "offerId": "Offer Id 2", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByMetricActualCost.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByMetricActualCost.json new file mode 100644 index 000000000000..9eeed12f0b59 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByMetricActualCost.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "metric": "actualcost", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Customer Name 1", + "billingPeriodStartDate": "2019-04-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-04-30T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Customer Name 1", + "accountName": "AccountName", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "SubscriptionName 1", + "date": "2019-04-09T00:00:00.0000000Z", + "product": "Product1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.000036, + "effectivePrice": 0.054693055510767, + "cost": 0.000001968949998, + "unitPrice": 5.47, + "billingCurrency": "CAD", + "resourceLocation": "uswest", + "consumedService": "Microsoft.ClassicStorage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource-Group-westus/providers/Microsoft.ClassicStorage/storageAccounts/ResourceName1", + "resourceName": "ResourceName1", + "invoiceSection": "Invoice Section 1", + "costCenter": "BAS", + "resourceGroup": "Resource-Group-westus", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByMetricAmortizedCost.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByMetricAmortizedCost.json new file mode 100644 index 000000000000..9897d7cf78c4 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByMetricAmortizedCost.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "metric": "amortizedcost", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Customer Name 1", + "billingPeriodStartDate": "2019-04-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-04-30T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Customer Name 1", + "accountName": "AccountName", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "SubscriptionName 1", + "date": "2019-04-09T00:00:00.0000000Z", + "product": "Product1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.000036, + "effectivePrice": 0.054693055510767, + "cost": 0.000001968949998, + "unitPrice": 5.47, + "billingCurrency": "CAD", + "resourceLocation": "uswest", + "consumedService": "Microsoft.ClassicStorage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource-Group-westus/providers/Microsoft.ClassicStorage/storageAccounts/ResourceName1", + "resourceName": "ResourceName1", + "invoiceSection": "Invoice Section 1", + "costCenter": "BAS", + "resourceGroup": "Resource-Group-westus", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage", + "frequency": "UsageBased" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByMetricUsage.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByMetricUsage.json new file mode 100644 index 000000000000..745a163e8817 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListByMetricUsage.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "metric": "usage", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Customer Name 1", + "billingPeriodStartDate": "2019-04-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-04-30T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Customer Name 1", + "accountName": "AccountName", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "SubscriptionName 1", + "date": "2019-04-09T00:00:00.0000000Z", + "product": "Product1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.000036, + "effectivePrice": 0.054693055510767, + "cost": 0.000001968949998, + "unitPrice": 5.47, + "billingCurrency": "CAD", + "resourceLocation": "uswest", + "consumedService": "Microsoft.ClassicStorage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource-Group-westus/providers/Microsoft.ClassicStorage/storageAccounts/ResourceName1", + "resourceName": "ResourceName1", + "invoiceSection": "Invoice Section 1", + "costCenter": "BAS", + "resourceGroup": "Resource-Group-westus", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListFilterByTag.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListFilterByTag.json new file mode 100644 index 000000000000..6e1e1d30dddb --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListFilterByTag.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "$filter": "tags eq 'dev:tools'", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriod.json new file mode 100644 index 000000000000..3d412576d2e3 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriod.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriodByBillingAccount.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriodByBillingAccount.json new file mode 100644 index 000000000000..9b18a420e1fe --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriodByBillingAccount.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "providers/Microsoft.Billing/BillingAccounts/1234", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriodByDepartment.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriodByDepartment.json new file mode 100644 index 000000000000..63cdff469fa2 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriodByDepartment.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "providers/Microsoft.Billing/Departments/1234", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/Departments/1234/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriodByEnrollmentAccount.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriodByEnrollmentAccount.json new file mode 100644 index 000000000000..844a6b00171c --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriodByEnrollmentAccount.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "providers/Microsoft.Billing/EnrollmentAccounts/1234", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/EnrollmentAccounts/1234/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriodByManagementGroup.json b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriodByManagementGroup.json new file mode 100644 index 000000000000..5abcace4e978 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/examples/UsageDetailsListForBillingPeriodByManagementGroup.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "managementGroupId": "managementGroupForTest", + "billingPeriodName": "201903", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + }, + { + "id": "/scope/providers/Microsoft.Billing/billingPeriods/billingPeriodName/providers/Microsoft.Consumption/usageDetails/usageDetails_Id2", + "name": "usageDetails_Id2", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 2", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 2", + "accountName": "Account Name 2", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 2", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 2", + "partNumber": "Part Number 2", + "meterId": "11111111-1111-1111-1111-111111111111", + "meterDetails": null, + "quantity": 0.4759, + "effectivePrice": 0.073488920944598, + "cost": 0.000821821271948, + "unitPrice": 5.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 2/providers/Microsoft.Storage/storageAccounts/Resource Name 2", + "resourceName": "Resource Name 2", + "invoiceSection": "Invoice Section 2", + "costCenter": "DEV", + "resourceGroup": "Resource Group 2", + "offerId": "Offer Id 2", + "isAzureCreditEligible": false, + "chargeType": "UnusedReservation" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2018-10-01/examples/TenantsGet.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2018-10-01/examples/TenantsGet.json index ac8fb9efe60e..16069d401113 100644 --- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2018-10-01/examples/TenantsGet.json +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2018-10-01/examples/TenantsGet.json @@ -16,7 +16,7 @@ "billingProfileName": "PayByCheck01", "billingAccountName": "Create Customer", "tenantId": "251d3d06-c6e0-487b-bd5e-5c2e4c23d51a", - "BillingAccountId": "0d49b9e9-dfe7-536e-ede4-bae1d63adbb7" + "billingAccountId": "0d49b9e9-dfe7-536e-ede4-bae1d63adbb7" } } ] diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/consumption.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/consumption.json new file mode 100644 index 000000000000..7e11190e7dd8 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/consumption.json @@ -0,0 +1,3266 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-05-01", + "title": "ConsumptionManagementClient", + "description": "Consumption management client provides access to consumption resources for Azure Enterprise Subscriptions." + }, + "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.Consumption/usageDetails": { + "get": { + "tags": [ + "UsageDetails" + ], + "operationId": "UsageDetails_List", + "description": "Lists the usage details for the defined scope. Usage details are available via this API only for May 1, 2014 or later.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "UsageDetailsList": { + "$ref": "./examples/UsageDetailsList.json" + }, + "UsageDetailsListFilterByTag": { + "$ref": "./examples/UsageDetailsListFilterByTag.json" + }, + "UsageDetailsListForBillingPeriod": { + "$ref": "./examples/UsageDetailsListForBillingPeriod.json" + }, + "UsageDetailsExpand": { + "$ref": "./examples/UsageDetailsExpand.json" + }, + "UsageDetailsListByMetricActualCost": { + "$ref": "./examples/UsageDetailsListByMetricActualCost.json" + }, + "UsageDetailsListByMetricAmortizedCost": { + "$ref": "./examples/UsageDetailsListByMetricAmortizedCost.json" + }, + "UsageDetailsListByMetricUsage": { + "$ref": "./examples/UsageDetailsListByMetricUsage.json" + }, + "BillingAccountUsageDetailsList": { + "$ref": "./examples/UsageDetailsListByBillingAccount.json" + }, + "BillingAccountUsageDetailsListForBillingPeriod": { + "$ref": "./examples/UsageDetailsListForBillingPeriodByBillingAccount.json" + }, + "DepartmentUsageDetailsList": { + "$ref": "./examples/UsageDetailsListByDepartment.json" + }, + "DepartmentUsageDetailsListForBillingPeriod": { + "$ref": "./examples/UsageDetailsListForBillingPeriodByDepartment.json" + }, + "EnrollmentAccountUsageDetailsList": { + "$ref": "./examples/UsageDetailsListByEnrollmentAccount.json" + }, + "EnrollmentAccountUsageDetailsListForBillingPeriod": { + "$ref": "./examples/UsageDetailsListForBillingPeriodByEnrollmentAccount.json" + }, + "ManagementGroupUsageDetailsList": { + "$ref": "./examples/UsageDetailsListByManagementGroup.json" + }, + "ManagementGroupUsageDetailsListForBillingPeriod": { + "$ref": "./examples/UsageDetailsListForBillingPeriodByManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeUsageDetailsParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the properties/additionalInfo or properties/meterDetails within a list of usage details. By default, these fields are not included when listing usage details.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "description": "May be used to filter usageDetails by properties/resourceGroup, properties/resourceName, properties/resourceId, properties/chargeType, properties/reservationId, properties/publisherType or tags. 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 is separated by a colon (:). PublisherType Filter accepts two values azure and marketplace and it is currently supported for Web Direct Offer Type", + "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 usageDetails.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/metricParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/UsageDetailsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.Consumption/marketplaces": { + "get": { + "tags": [ + "Marketplaces" + ], + "x-ms-odata": "#/definitions/Marketplace", + "operationId": "Marketplaces_List", + "description": "Lists the marketplaces for a scope at the defined scope. Marketplaces are available via this API only for May 1, 2014 or later.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "SubscriptionMarketplacesList": { + "$ref": "./examples/MarketplacesList.json" + }, + "SubscriptionMarketplacesListForBillingPeriod": { + "$ref": "./examples/MarketplacesListForBillingPeriod.json" + }, + "BillingAccountMarketplacesList": { + "$ref": "./examples/MarketplacesByBillingAccountList.json" + }, + "BillingAccountMarketplacesListForBillingPeriod": { + "$ref": "./examples/MarketplacesByBillingAccountListForBillingPeriod.json" + }, + "DepartmentMarketplacesList": { + "$ref": "./examples/MarketplacesByDepartmentList.json" + }, + "DepartmentMarketplacesListForBillingPeriod": { + "$ref": "./examples/MarketplacesByDepartment_ListByBillingPeriod.json" + }, + "EnrollmentAccountMarketplacesList": { + "$ref": "./examples/MarketplacesByEnrollmentAccountList.json" + }, + "EnrollmentAccountMarketplacesListForBillingPeriod": { + "$ref": "./examples/MarketplacesByEnrollmentAccounts_ListByBillingPeriod.json" + }, + "ManagementGroupMarketplacesList": { + "$ref": "./examples/MarketplacesByManagementGroupList.json" + }, + "ManagementGroupMarketplacesListForBillingPeriod": { + "$ref": "./examples/MarketplacesByManagementGroup_ListForBillingPeriod.json" + } + }, + "parameters": [ + { + "name": "$filter", + "description": "May be used to filter marketplaces by properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. 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" + }, + { + "name": "$top", + "description": "May be used to limit the number of results to the most recent N marketplaces.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + }, + { + "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" + }, + { + "$ref": "#/parameters/scopeMarketplaceParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/MarketplacesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.Consumption/budgets": { + "get": { + "tags": [ + "Budgets" + ], + "operationId": "Budgets_List", + "description": "Lists all budgets for the defined scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "BudgetsList": { + "$ref": "./examples/BudgetsList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeBudgetParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BudgetsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.Consumption/budgets/{budgetName}": { + "get": { + "tags": [ + "Budgets" + ], + "operationId": "Budgets_Get", + "description": "Gets the budget for the scope by budget name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "Budget": { + "$ref": "./examples/Budget.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeBudgetParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/budgetNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Budget" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Budgets" + ], + "operationId": "Budgets_CreateOrUpdate", + "description": "The operation to create or update a budget. Update operation requires latest eTag to be set in the request mandatorily. 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/consumption/" + }, + "x-ms-examples": { + "CreateOrUpdateBudget": { + "$ref": "./examples/CreateOrUpdateBudget.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeBudgetParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/budgetNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Budget" + }, + "description": "Parameters supplied to the Create Budget operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Budget" + } + }, + "201": { + "description": "Created.", + "schema": { + "$ref": "#/definitions/Budget" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Budgets" + ], + "operationId": "Budgets_Delete", + "description": "The operation to delete a budget.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "DeleteBudget": { + "$ref": "./examples/DeleteBudget.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeBudgetParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/budgetNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Consumption/tags": { + "get": { + "tags": [ + "Tags" + ], + "operationId": "Tags_Get", + "description": "Get all available tag keys for the defined scope", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "Tags_Get": { + "$ref": "./examples/Tags.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeTagsParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/TagsResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Consumption/charges": { + "get": { + "tags": [ + "Charges" + ], + "operationId": "Charges_ListByScope", + "description": "Lists the charges based for the defined scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ChargesListForEnrollmentAccount": { + "$ref": "./examples/ChargesListForEnrollmentAccountFilterByStartEndDate.json" + }, + "ChangesForBillingPeriodByEnrollmentAccount": { + "$ref": "./examples/ChargesForBillingPeriodByEnrollmentAccount.json" + }, + "ChargesListByDepartment": { + "$ref": "./examples/ChargesListForDepartmentFilterByStartEndDate.json" + }, + "ChangesForBillingPeriodByDepartment": { + "$ref": "./examples/ChargesForBillingPeriodByDepartment.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeChargesParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "$filter", + "description": "May be used to filter charges by properties/usageEnd (Utc time), properties/usageStart (Utc time). 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 is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ChargeSummary" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/balances": { + "get": { + "tags": [ + "Balances" + ], + "operationId": "Balances_GetByBillingAccount", + "description": "Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "Balances": { + "$ref": "./examples/BalancesByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Balance" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/balances": { + "get": { + "tags": [ + "Balances" + ], + "operationId": "Balances_GetForBillingPeriodByBillingAccount", + "description": "Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "Balances": { + "$ref": "./examples/BalancesByBillingAccountForBillingPeriod.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/billingPeriodNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Balance" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationSummaries": { + "get": { + "tags": [ + "ReservedInstances" + ], + "operationId": "ReservationsSummaries_ListByReservationOrder", + "description": "Lists the reservations summaries for daily or monthly grain.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ReservationSummariesDaily": { + "$ref": "./examples/ReservationSummariesDaily.json" + }, + "ReservationSummariesMonthly": { + "$ref": "./examples/ReservationSummariesMonthly.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/reservationOrderIdParameter" + }, + { + "$ref": "#/parameters/grainParameter" + }, + { + "name": "$filter", + "description": "Required only for daily grain. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'", + "in": "query", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationSummariesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationSummaries": { + "get": { + "tags": [ + "ReservedInstances" + ], + "operationId": "ReservationsSummaries_ListByReservationOrderAndReservation", + "description": "Lists the reservations summaries for daily or monthly grain.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ReservationSummariesDailyWithReservationId": { + "$ref": "./examples/ReservationSummariesDailyWithReservationId.json" + }, + "ReservationSummariesMonthlyWithReservationId": { + "$ref": "./examples/ReservationSummariesMonthlyWithReservationId.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/reservationOrderIdParameter" + }, + { + "$ref": "#/parameters/reservationIdParameter" + }, + { + "$ref": "#/parameters/grainParameter" + }, + { + "name": "$filter", + "description": "Required only for daily grain. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'", + "in": "query", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationSummariesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/reservationSummaries": { + "get": { + "tags": [ + "ReservedInstances" + ], + "operationId": "ReservationsSummaries_ListByBillingAccountId", + "description": "Lists the reservations summaries for daily or monthly grain.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ReservationSummariesDailyWithReservationId": { + "$ref": "./examples/ReservationSummariesDailyWithBillingAccountId.json" + }, + "ReservationSummariesMonthlyWithReservationId": { + "$ref": "./examples/ReservationSummariesMonthlyWithBillingAccountId.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/grainParameter" + }, + { + "name": "$filter", + "description": "Required only for daily grain. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'", + "in": "query", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationSummariesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationDetails": { + "get": { + "tags": [ + "ReservedInstances" + ], + "operationId": "ReservationsDetails_ListByReservationOrder", + "description": "Lists the reservations details for provided date range.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ReservationDetails": { + "$ref": "./examples/ReservationDetails.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/reservationOrderIdParameter" + }, + { + "name": "$filter", + "description": "Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge' ", + "in": "query", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationDetailsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationDetails": { + "get": { + "tags": [ + "ReservedInstances" + ], + "operationId": "ReservationsDetails_ListByReservationOrderAndReservation", + "description": "Lists the reservations details for provided date range.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ReservationDetailsWithReservationId": { + "$ref": "./examples/ReservationDetailsWithReservationId.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/reservationOrderIdParameter" + }, + { + "$ref": "#/parameters/reservationIdParameter" + }, + { + "name": "$filter", + "description": "Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge' ", + "in": "query", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationDetailsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/reservationDetails": { + "get": { + "tags": [ + "ReservedInstances" + ], + "operationId": "ReservationsDetails_ListByBillingAccountId", + "description": "Lists the reservations details for provided date range.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ReservationDetails": { + "$ref": "./examples/ReservationDetailsByBillingAccountId.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "name": "$filter", + "description": "Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge' ", + "in": "query", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationDetailsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/reservationRecommendations": { + "get": { + "tags": [ + "ReservationRecommendations" + ], + "operationId": "ReservationRecommendations_List", + "description": "List of recommendations for purchasing reserved instances.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ReservationRecommendations": { + "$ref": "./examples/ReservationRecommendationsList.json" + }, + "ReservationRecommendationsFilterByScopeLookBackPeriod": { + "$ref": "./examples/ReservationRecommendationsFilterByScopeLookBackPeriod.json" + } + }, + "parameters": [ + { + "name": "$filter", + "description": "May be used to filter reservationRecommendations by properties/scope and properties/lookBackPeriod.", + "in": "query", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationRecommendationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/microsoft.consumption/ReservationRecommendations": { + "get": { + "tags": [ + "ReservationRecommendations" + ], + "operationId": "ReservationRecommendations_ListByBillingAccountId", + "description": "List of recommendations for purchasing reserved instances on billing account scope", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ReservationRecommendations": { + "$ref": "./examples/ReservationRecommendationsByBillingAccountList.json" + } + }, + "parameters": [ + { + "name": "$filter", + "description": "May be used to filter reservationRecommendations by properties/scope and properties/lookBackPeriod.", + "in": "query", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationRecommendationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/pricesheets/default": { + "get": { + "tags": [ + "PriceSheet" + ], + "operationId": "PriceSheet_Get", + "description": "Gets the price sheet for a scope by subscriptionId. Price sheet is available via this API only for May 1, 2014 or later.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "PriceSheet": { + "$ref": "./examples/PriceSheet.json" + } + }, + "parameters": [ + { + "name": "$expand", + "description": "May be used to expand the properties/meterDetails within a price sheet. By default, these fields are not included when returning price sheet.", + "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 top N results.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/PriceSheetResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/pricesheets/default": { + "get": { + "tags": [ + "PriceSheet" + ], + "operationId": "PriceSheet_GetByBillingPeriod", + "description": "Get the price sheet for a scope by subscriptionId and billing period. Price sheet is available via this API only for May 1, 2014 or later.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "PriceSheetForBillingPeriod": { + "$ref": "./examples/PriceSheetForBillingPeriod.json" + }, + "PriceSheetExpand": { + "$ref": "./examples/PriceSheetExpand.json" + } + }, + "parameters": [ + { + "name": "$expand", + "description": "May be used to expand the properties/meterDetails within a price sheet. By default, these fields are not included when returning price sheet.", + "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 top N results.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingPeriodNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/PriceSheetResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/forecasts": { + "get": { + "tags": [ + "Forecasts" + ], + "x-ms-odata": "#/definitions/Forecast", + "operationId": "Forecasts_List", + "description": "Lists the forecast charges by subscriptionId.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "ForecastsList": { + "$ref": "./examples/ForecastsList.json" + }, + "ForecastsListFilterByGrain": { + "$ref": "./examples/ForecastsListFilterByGrain.json" + }, + "ForecastsListFilterByDates": { + "$ref": "./examples/ForecastsListFilterByDates.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/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ForecastsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/providers/Microsoft.Consumption/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available consumption 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" + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Consumption/aggregatedcost": { + "get": { + "tags": [ + "AggregatedCost" + ], + "operationId": "AggregatedCost_GetByManagementGroup", + "description": "Provides the aggregate cost of a management group and all child management groups by current billing period.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "AggregatedCostByManagementGroup": { + "$ref": "./examples/AggregatedCostByManagementGroup.json" + }, + "AggregatedCostByManagementGroupFilterByDate": { + "$ref": "./examples/AggregatedCostByManagementGroupFilterByDate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/managementGroupIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "$filter", + "description": "May be used to filter aggregated cost by properties/usageStart (Utc time), properties/usageEnd (Utc time). 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 is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ManagementGroupAggregatedCostResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/Microsoft.Consumption/aggregatedcost": { + "get": { + "tags": [ + "AggregatedCost" + ], + "operationId": "AggregatedCost_GetForBillingPeriodByManagementGroup", + "description": "Provides the aggregate cost of a management group and all child management groups by specified billing period", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "AggregatedCostListForBillingPeriodByManagementGroup": { + "$ref": "./examples/AggregatedCostForBillingPeriodByManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/managementGroupIdParameter" + }, + { + "$ref": "#/parameters/billingPeriodNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ManagementGroupAggregatedCostResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "MeterDetails": { + "description": "The properties of the meter detail.", + "properties": { + "meterName": { + "description": "The name of the meter, within the given meter category", + "type": "string", + "readOnly": true + }, + "meterCategory": { + "description": "The category of the meter, for example, 'Cloud services', 'Networking', etc..", + "type": "string", + "readOnly": true + }, + "meterSubCategory": { + "description": "The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc..", + "type": "string", + "readOnly": true + }, + "unit": { + "description": "The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc.", + "type": "string", + "readOnly": true + }, + "meterLocation": { + "description": "The location in which the Azure service is available.", + "type": "string", + "readOnly": true + }, + "totalIncludedQuantity": { + "description": "The total included quantity associated with the offer.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "pretaxStandardRate": { + "description": "The pretax listing price.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "serviceName": { + "description": "The name of the service.", + "type": "string", + "readOnly": true + }, + "serviceTier": { + "description": "The service tier.", + "type": "string", + "readOnly": true + } + } + }, + "UsageDetail": { + "description": "An usage detail resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/UsageDetailProperties", + "title": "Usage detail properties" + } + } + }, + "UsageDetailsListResult": { + "description": "Result of listing usage details. It contains a list of available usage details in reverse chronological order by billing period.", + "properties": { + "value": { + "description": "The list of usage details.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/UsageDetail" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "UsageDetailProperties": { + "description": "The properties of the usage detail.", + "properties": { + "billingAccountId": { + "description": "Billing Account identifier.", + "type": "string", + "readOnly": true + }, + "billingAccountName": { + "description": "Billing Account Name.", + "type": "string", + "readOnly": true + }, + "billingPeriodStartDate": { + "description": "The billing period start date.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "billingPeriodEndDate": { + "description": "The billing period end date.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "billingProfileId": { + "description": "Billing Profile identifier.", + "type": "string", + "readOnly": true + }, + "billingProfileName": { + "description": "Billing Profile Name.", + "type": "string", + "readOnly": true + }, + "accountOwnerId": { + "description": "Account Owner Id.", + "type": "string", + "readOnly": true + }, + "accountName": { + "description": "Account Name.", + "type": "string", + "readOnly": true + }, + "subscriptionId": { + "description": "Subscription guid.", + "type": "string", + "readOnly": true + }, + "subscriptionName": { + "description": "Subscription name.", + "type": "string", + "readOnly": true + }, + "date": { + "description": "Date for the usage record.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "product": { + "description": "Product name for the consumed service or purchase. Not available for Marketplace.", + "type": "string", + "readOnly": true + }, + "partNumber": { + "description": "Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace.", + "type": "string", + "readOnly": true + }, + "meterId": { + "description": "The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName.", + "type": "string", + "format": "uuid", + "readOnly": true + }, + "meterDetails": { + "description": "The details about the meter. By default this is not populated, unless it's specified in $expand.", + "$ref": "#/definitions/MeterDetailsResponse", + "readOnly": true + }, + "quantity": { + "description": "The usage quantity.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "effectivePrice": { + "description": "Effective Price that’s charged for the usage.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "cost": { + "description": "The amount of cost before tax.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "unitPrice": { + "description": "Unit Price is the price applicable to you. (your EA or other contract price).", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "billingCurrency": { + "description": "Billing Currency.", + "type": "string", + "readOnly": true + }, + "resourceLocation": { + "description": "Resource Location.", + "type": "string", + "readOnly": true + }, + "consumedService": { + "description": "Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage.", + "type": "string", + "readOnly": true + }, + "resourceId": { + "description": "Azure resource manager resource identifier.", + "type": "string", + "readOnly": true + }, + "resourceName": { + "description": "Resource Name.", + "type": "string", + "readOnly": true + }, + "serviceInfo1": { + "description": "Service Info 1.", + "type": "string", + "readOnly": true + }, + "serviceInfo2": { + "description": "Service Info 2.", + "type": "string", + "readOnly": true + }, + "additionalInfo": { + "description": "Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied.", + "type": "string", + "readOnly": true + }, + "invoiceSection": { + "description": "Invoice Section Name.", + "type": "string", + "readOnly": true + }, + "costCenter": { + "description": "The cost center of this department if it is a department and a cost center is provided.", + "type": "string", + "readOnly": true + }, + "resourceGroup": { + "description": "Resource Group Name.", + "type": "string", + "readOnly": true + }, + "reservationId": { + "description": "ARM resource id of the reservation. Only applies to records relevant to reservations.", + "type": "string", + "readOnly": true + }, + "reservationName": { + "description": "User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations.", + "type": "string", + "readOnly": true + }, + "productOrderId": { + "description": "Product Order Id. For reservations this is the Reservation Order ID.", + "type": "string", + "readOnly": true + }, + "productOrderName": { + "description": "Product Order Name. For reservations this is the SKU that was purchased.", + "type": "string", + "readOnly": true + }, + "offerId": { + "description": "Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P.", + "type": "string", + "readOnly": true + }, + "isAzureCreditEligible": { + "description": "Is Azure Credit Eligible.", + "type": "boolean", + "readOnly": true + }, + "term": { + "description": "Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation.", + "type": "string", + "readOnly": true + }, + "publisherName": { + "description": "Publisher Name.", + "type": "string", + "readOnly": true + }, + "publisherType": { + "description": "Publisher Type.", + "type": "string", + "readOnly": true + }, + "planName": { + "description": "Plan Name.", + "type": "string", + "readOnly": true + }, + "chargeType": { + "description": "Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund.", + "type": "string", + "readOnly": true + }, + "frequency": { + "description": "Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used.", + "type": "string", + "readOnly": true + } + } + }, + "Marketplace": { + "description": "An marketplace resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MarketplaceProperties", + "title": "Marketplace properties" + } + } + }, + "MarketplacesListResult": { + "description": "Result of listing marketplaces. It contains a list of available marketplaces in reverse chronological order by billing period.", + "type": "object", + "properties": { + "value": { + "description": "The list of marketplaces.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Marketplace" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "MarketplaceProperties": { + "description": "The properties of the marketplace usage detail.", + "type": "object", + "properties": { + "billingPeriodId": { + "description": "The id of the billing period resource that the usage belongs to.", + "type": "string", + "readOnly": true + }, + "usageStart": { + "description": "The start of the date time range covered by the usage detail.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "usageEnd": { + "description": "The end of the date time range covered by the usage detail.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "resourceRate": { + "description": "The marketplace resource rate.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "offerName": { + "description": "The type of offer.", + "type": "string", + "readOnly": true + }, + "resourceGroup": { + "description": "The name of resource group.", + "type": "string", + "readOnly": true + }, + "orderNumber": { + "description": "The order number.", + "type": "string", + "readOnly": true + }, + "instanceName": { + "description": "The name of the resource instance that the usage is about.", + "type": "string", + "readOnly": true + }, + "instanceId": { + "description": "The uri of the resource instance that the usage is about.", + "type": "string", + "readOnly": true + }, + "currency": { + "description": "The ISO currency in which the meter is charged, for example, USD.", + "type": "string", + "readOnly": true + }, + "consumedQuantity": { + "description": "The quantity of usage.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "unitOfMeasure": { + "description": "The unit of measure.", + "type": "string", + "readOnly": true + }, + "pretaxCost": { + "description": "The amount of cost before tax.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "isEstimated": { + "description": "The estimated usage is subject to change.", + "type": "boolean", + "readOnly": true + }, + "meterId": { + "description": "The meter id (GUID).", + "type": "string", + "format": "uuid", + "readOnly": true + }, + "subscriptionGuid": { + "description": "Subscription guid.", + "type": "string", + "format": "uuid", + "readOnly": true + }, + "subscriptionName": { + "description": "Subscription name.", + "type": "string", + "readOnly": true + }, + "accountName": { + "description": "Account name.", + "type": "string", + "readOnly": true + }, + "departmentName": { + "description": "Department name.", + "type": "string", + "readOnly": true + }, + "consumedService": { + "description": "Consumed service name.", + "type": "string", + "readOnly": true + }, + "costCenter": { + "description": "The cost center of this department if it is a department and a costcenter exists", + "type": "string", + "readOnly": true + }, + "additionalProperties": { + "description": "Additional details of this usage item. By default this is not populated, unless it's specified in $expand.", + "type": "string", + "readOnly": true + }, + "publisherName": { + "description": "The name of publisher.", + "type": "string", + "readOnly": true + }, + "planName": { + "description": "The name of plan.", + "type": "string", + "readOnly": true + }, + "isRecurringCharge": { + "description": "Flag indicating whether this is a recurring charge or not.", + "type": "boolean", + "readOnly": true + } + } + }, + "Balance": { + "description": "A balance resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BalanceProperties", + "title": "Balance properties" + } + } + }, + "BalanceProperties": { + "description": "The properties of the balance.", + "type": "object", + "properties": { + "currency": { + "description": "The ISO currency in which the meter is charged, for example, USD.", + "type": "string", + "readOnly": true + }, + "beginningBalance": { + "description": "The beginning balance for the billing period.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "endingBalance": { + "description": "The ending balance for the billing period (for open periods this will be updated daily).", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "newPurchases": { + "description": "Total new purchase amount.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "adjustments": { + "description": "Total adjustment amount.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "utilized": { + "description": "Total Commitment usage.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "serviceOverage": { + "description": "Overage for Azure services.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "chargesBilledSeparately": { + "description": "Charges Billed separately.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "totalOverage": { + "description": "serviceOverage + chargesBilledSeparately.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "totalUsage": { + "description": "Azure service commitment + total Overage.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "azureMarketplaceServiceCharges": { + "description": "Total charges for Azure Marketplace.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "billingFrequency": { + "description": "The billing frequency.", + "type": "string", + "enum": [ + "Month", + "Quarter", + "Year" + ], + "x-ms-enum": { + "name": "BillingFrequency", + "modelAsString": true + } + }, + "priceHidden": { + "description": "Price is hidden or not.", + "type": "boolean", + "readOnly": true + }, + "newPurchasesDetails": { + "description": "List of new purchases.", + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "description": "the name of new purchase.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "the value of new purchase.", + "type": "number", + "format": "decimal", + "readOnly": true + } + } + }, + "readOnly": true + }, + "adjustmentDetails": { + "description": "List of Adjustments (Promo credit, SIE credit etc.).", + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "description": "the name of new adjustment.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "the value of new adjustment.", + "type": "number", + "format": "decimal", + "readOnly": true + } + } + }, + "readOnly": true + } + } + }, + "ReservationSummary": { + "description": "reservation summary resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReservationSummaryProperties", + "title": "Reservation Summary properties" + } + } + }, + "ReservationSummariesListResult": { + "description": "Result of listing reservation summaries.", + "properties": { + "value": { + "description": "The list of reservation summaries.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ReservationSummary" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "ReservationSummaryProperties": { + "description": "The properties of the reservation summary.", + "properties": { + "reservationOrderId": { + "description": "The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations.", + "type": "string", + "readOnly": true + }, + "reservationId": { + "description": "The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to.", + "type": "string", + "readOnly": true + }, + "skuName": { + "description": "This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records.", + "type": "string", + "readOnly": true + }, + "reservedHours": { + "description": "This is the total hours reserved. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "usageDate": { + "description": "Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "usedHours": { + "description": "Total used hours by the reservation", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "minUtilizationPercentage": { + "description": "This is the minimum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 10%, this field will return 10% for that day", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "avgUtilizationPercentage": { + "description": "This is average utilization for the entire time range. (day or month depending on the grain)", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "maxUtilizationPercentage": { + "description": "This is the maximum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 100%, this field will return 100% for that day.", + "type": "number", + "format": "decimal", + "readOnly": true + } + } + }, + "ReservationDetail": { + "description": "reservation detail resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReservationDetailProperties", + "title": "Reservation Detail properties" + } + } + }, + "ReservationDetailsListResult": { + "description": "Result of listing reservation details.", + "properties": { + "value": { + "description": "The list of reservation details.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ReservationDetail" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "ReservationDetailProperties": { + "description": "The properties of the reservation detail.", + "properties": { + "reservationOrderId": { + "description": "The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations.", + "type": "string", + "readOnly": true + }, + "instanceFlexibilityRatio": { + "description": "The instance Flexibility Ratio.", + "type": "string", + "readOnly": true + }, + "instanceFlexibilityGroup": { + "description": "The instance Flexibility Group.", + "type": "string", + "readOnly": true + }, + "reservationId": { + "description": "The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to.", + "type": "string", + "readOnly": true + }, + "skuName": { + "description": "This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records.", + "type": "string", + "readOnly": true + }, + "reservedHours": { + "description": "This is the total hours reserved for the day. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "usageDate": { + "description": "The date on which consumption occurred.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "usedHours": { + "description": "This is the total hours used by the instance.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "instanceId": { + "description": "This identifier is the name of the resource or the fully qualified Resource ID.", + "type": "string", + "readOnly": true + }, + "totalReservedQuantity": { + "description": "This is the total count of instances that are reserved for the reservationId.", + "type": "number", + "format": "decimal", + "readOnly": true + } + } + }, + "ReservationRecommendation": { + "description": "Reservation recommendation resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + }, + { + "$ref": "#/definitions/ResourceAttributes" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReservationRecommendationProperties", + "title": "Reservation Recommendation properties" + } + } + }, + "ReservationRecommendationsListResult": { + "description": "Result of listing reservation recommendations.", + "properties": { + "value": { + "description": "The list of reservation recommendations.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ReservationRecommendation" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "ReservationRecommendationProperties": { + "description": "The properties of the reservation recommendation.", + "properties": { + "lookBackPeriod": { + "description": "The number of days of usage to look back for recommendation.", + "type": "string", + "readOnly": true + }, + "instanceFlexibilityRatio": { + "description": "The instance Flexibility Ratio.", + "type": "integer", + "readOnly": true + }, + "instanceFlexibilityGroup": { + "description": "The instance Flexibility Group.", + "type": "string", + "readOnly": true + }, + "normalizedSize": { + "description": "The normalized Size.", + "type": "string", + "readOnly": true + }, + "recommendedQuantityNormalized": { + "description": "The recommended Quantity Normalized.", + "type": "number", + "readOnly": true + }, + "meterId": { + "description": "The meter id (GUID)", + "type": "string", + "format": "uuid", + "readOnly": true + }, + "term": { + "description": "RI recommendations in one or three year terms.", + "type": "string", + "readOnly": true + }, + "costWithNoReservedInstances": { + "description": "The total amount of cost without reserved instances.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "recommendedQuantity": { + "description": "Recommended quality for reserved instances.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "totalCostWithReservedInstances": { + "description": "The total amount of cost with reserved instances.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "netSavings": { + "description": "Total estimated savings with reserved instances.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "firstUsageDate": { + "description": "The usage date for looking back.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "scope": { + "description": "Shared or single recommendation.", + "type": "string", + "readOnly": true + } + } + }, + "TagsResult": { + "description": "A resource listing all tags.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TagProperties", + "title": "Tag properties" + } + } + }, + "TagProperties": { + "description": "The properties of the tag.", + "properties": { + "tags": { + "description": "A list of Tag.", + "type": "array", + "items": { + "$ref": "#/definitions/Tag" + } + } + } + }, + "Tag": { + "description": "The tag resource.", + "properties": { + "key": { + "description": "Tag key.", + "type": "string" + } + } + }, + "BudgetsListResult": { + "description": "Result of listing budgets. It contains a list of available budgets in the scope provided.", + "properties": { + "value": { + "description": "The list of budgets.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Budget" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "Budget": { + "description": "A budget resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BudgetProperties", + "title": "Budget properties" + } + } + }, + "BudgetProperties": { + "description": "The properties of the budget.", + "properties": { + "category": { + "description": "The category of the budget, whether the budget tracks cost or usage.", + "type": "string", + "enum": [ + "Cost", + "Usage" + ], + "x-ms-enum": { + "name": "CategoryType", + "modelAsString": true + } + }, + "amount": { + "description": "The total amount of cost to track with the budget", + "type": "number", + "format": "decimal" + }, + "timeGrain": { + "description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain.", + "type": "string", + "enum": [ + "Monthly", + "Quarterly", + "Annually", + "BillingMonth", + "BillingQuarter", + "BillingAnnual" + ], + "x-ms-enum": { + "name": "TimeGrainType", + "modelAsString": true + } + }, + "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.", + "$ref": "#/definitions/BudgetTimePeriod" + }, + "filters": { + "description": "May be used to filter budgets by resource group, resource, or meter.", + "type": "object", + "$ref": "#/definitions/Filters" + }, + "currentSpend": { + "description": "The current amount of cost which is being tracked for a budget.", + "$ref": "#/definitions/CurrentSpend", + "readOnly": true + }, + "notifications": { + "type": "object", + "description": "Dictionary of notifications associated with the budget. Budget can have up to five notifications.", + "additionalProperties": { + "type": "object", + "$ref": "#/definitions/Notification" + }, + "maxItems": 5 + } + }, + "required": [ + "category", + "amount", + "timeGrain", + "timePeriod" + ] + }, + "BudgetTimePeriod": { + "description": "The start and end date for a budget.", + "properties": { + "startDate": { + "description": "The start date for the budget.", + "type": "string", + "format": "date-time" + }, + "endDate": { + "description": "The end date for the budget. If not provided, we default this to 10 years from the start date.", + "type": "string", + "format": "date-time" + } + }, + "required": [ + "startDate" + ] + }, + "Filters": { + "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.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 0, + "maxItems": 10 + }, + "resources": { + "description": "The list of filters on resources.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 0, + "maxItems": 10 + }, + "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 + }, + "tags": { + "type": "object", + "description": "The dictionary of filters on tags.", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "minItems": 0, + "maxItems": 10 + } + } + }, + "CurrentSpend": { + "description": "The current amount of cost which is being tracked for a budget.", + "properties": { + "amount": { + "description": "The total amount of cost which is being tracked by the budget.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "unit": { + "description": "The unit of measure for the budget amount.", + "type": "string", + "readOnly": true + } + } + }, + "Notification": { + "description": "The notification associated with a budget.", + "properties": { + "enabled": { + "description": "The notification is enabled or not.", + "type": "boolean" + }, + "operator": { + "description": "The comparison operator.", + "type": "string", + "enum": [ + "EqualTo", + "GreaterThan", + "GreaterThanOrEqualTo" + ], + "x-ms-enum": { + "name": "OperatorType", + "modelAsString": true + } + }, + "threshold": { + "description": "Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.", + "type": "number", + "format": "decimal" + }, + "contactEmails": { + "description": "Email addresses to send the budget notification to when the threshold is exceeded.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1, + "maxItems": 50 + }, + "contactRoles": { + "description": "Contact roles to send the budget notification to when the threshold is exceeded.", + "type": "array", + "items": { + "type": "string" + } + }, + "contactGroups": { + "description": "Action groups to send the budget notification to when the threshold is exceeded.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 0, + "maxItems": 50 + } + }, + "required": [ + "enabled", + "operator", + "threshold", + "contactEmails" + ] + }, + "PriceSheetResult": { + "description": "An pricesheet resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PriceSheetModel", + "title": "Price sheet properties" + } + } + }, + "PriceSheetModel": { + "description": "price sheet result. It contains the pricesheet associated with billing period", + "properties": { + "pricesheets": { + "description": "Price sheet", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PriceSheetProperties" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "PriceSheetProperties": { + "description": "The properties of the price sheet.", + "properties": { + "billingPeriodId": { + "description": "The id of the billing period resource that the usage belongs to.", + "type": "string", + "readOnly": true + }, + "meterId": { + "description": "The meter id (GUID)", + "type": "string", + "format": "uuid", + "readOnly": true + }, + "meterDetails": { + "description": "The details about the meter. By default this is not populated, unless it's specified in $expand.", + "$ref": "#/definitions/MeterDetails", + "readOnly": true + }, + "unitOfMeasure": { + "description": "Unit of measure", + "type": "string", + "readOnly": true + }, + "includedQuantity": { + "description": "Included quality for an offer", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "partNumber": { + "description": "Part Number", + "type": "string", + "readOnly": true + }, + "unitPrice": { + "description": "Unit Price", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "currencyCode": { + "description": "Currency Code", + "type": "string", + "readOnly": true + }, + "offerId": { + "description": "Offer Id", + "type": "string", + "readOnly": true + } + } + }, + "Forecast": { + "description": "A forecast resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ForecastProperties", + "title": "Forecast properties" + } + } + }, + "ForecastsListResult": { + "description": "Result of listing forecasts. It contains a list of available forecasts.", + "type": "object", + "properties": { + "value": { + "description": "The list of forecasts.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Forecast" + } + } + } + }, + "ForecastProperties": { + "description": "The properties of the forecast charge.", + "type": "object", + "properties": { + "usageDate": { + "description": "The usage date of the forecast.", + "type": "string", + "readOnly": true + }, + "grain": { + "description": "The granularity of forecast.", + "type": "string", + "enum": [ + "Daily", + "Monthly", + "Yearly" + ], + "x-ms-enum": { + "name": "Grain", + "modelAsString": true + } + }, + "charge": { + "description": "The amount of charge", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "currency": { + "description": "The ISO currency in which the meter is charged, for example, USD.", + "type": "string", + "readOnly": true + }, + "chargeType": { + "description": "The type of the charge. Could be actual or forecast", + "type": "string", + "enum": [ + "Actual", + "Forecast" + ], + "x-ms-enum": { + "name": "ChargeType", + "modelAsString": true + } + }, + "confidenceLevels": { + "description": "The details about the forecast confidence levels. This is populated only when chargeType is Forecast.", + "type": "array", + "items": { + "type": "object", + "properties": { + "percentage": { + "description": "The percentage level of the confidence", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "bound": { + "description": "The boundary of the percentage, values could be 'Upper' or 'Lower'", + "type": "string", + "enum": [ + "Upper", + "Lower" + ], + "x-ms-enum": { + "name": "Bound", + "modelAsString": true + } + }, + "value": { + "description": "The amount of forecast within the percentage level", + "type": "number", + "format": "decimal", + "readOnly": true + } + } + }, + "readOnly": true + } + } + }, + "ManagementGroupAggregatedCostResult": { + "description": "A management group aggregated cost resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagementGroupAggregatedCostProperties", + "title": "Management Group Aggregated Cost properties" + } + } + }, + "ManagementGroupAggregatedCostProperties": { + "description": "The properties of the Management Group Aggregated Cost.", + "type": "object", + "properties": { + "billingPeriodId": { + "description": "The id of the billing period resource that the aggregated cost belongs to.", + "type": "string", + "readOnly": true + }, + "usageStart": { + "description": "The start of the date time range covered by aggregated cost.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "usageEnd": { + "description": "The end of the date time range covered by the aggregated cost.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "azureCharges": { + "description": "Azure Charges.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "marketplaceCharges": { + "description": "Marketplace Charges.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "chargesBilledSeparately": { + "description": "Charges Billed Separately.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "currency": { + "description": "The ISO currency in which the meter is charged, for example, USD.", + "type": "string", + "readOnly": true + }, + "children": { + "description": "Children of a management group", + "type": "array", + "items": { + "$ref": "#/definitions/ManagementGroupAggregatedCostResult" + } + }, + "includedSubscriptions": { + "description": "List of subscription Guids included in the calculation of aggregated cost", + "type": "array", + "items": { + "type": "string" + } + }, + "excludedSubscriptions": { + "description": "List of subscription Guids excluded from the calculation of aggregated cost", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ChargesListResult": { + "description": "Result of listing charge summary.", + "properties": { + "value": { + "description": "The list of charge summary", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ChargeSummary" + } + } + } + }, + "ChargeSummary": { + "description": "A charge summary resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ChargeSummaryProperties", + "title": "Charge summary properties" + } + } + }, + "ChargeSummaryProperties": { + "description": "The properties of the charge summary.", + "type": "object", + "properties": { + "billingPeriodId": { + "description": "The id of the billing period resource that the charge belongs to.", + "type": "string", + "readOnly": true + }, + "usageStart": { + "description": "Usage start date.", + "type": "string", + "readOnly": true + }, + "usageEnd": { + "description": " Usage end date.", + "type": "string", + "readOnly": true + }, + "azureCharges": { + "description": "Azure Charges.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "chargesBilledSeparately": { + "description": "Charges Billed separately.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "marketplaceCharges": { + "description": "Marketplace Charges.", + "type": "number", + "format": "decimal", + "readOnly": true + }, + "currency": { + "description": "Currency Code", + "type": "string", + "readOnly": true + } + } + }, + "MeterDetailsResponse": { + "description": "The properties of the meter detail.", + "properties": { + "meterName": { + "description": "The name of the meter, within the given meter category", + "type": "string", + "readOnly": true + }, + "meterCategory": { + "description": "The category of the meter, for example, 'Cloud services', 'Networking', etc..", + "type": "string", + "readOnly": true + }, + "meterSubCategory": { + "description": "The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc..", + "type": "string", + "readOnly": true + }, + "unitOfMeasure": { + "description": "The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc.", + "type": "string", + "readOnly": true + }, + "serviceFamily": { + "description": "The service family.", + "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 + } + } + }, + "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" + } + } + }, + "Operation": { + "description": "A Consumption 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.Consumption.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "Resource on which the operation is performed: UsageDetail, etc.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string", + "readOnly": true + } + } + } + } + }, + "OperationListResult": { + "description": "Result of listing consumption operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of consumption operations supported by the Microsoft.Consumption 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 + } + } + }, + "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." + }, + "tags": { + "readOnly": true, + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "x-ms-azure-resource": true + }, + "ResourceAttributes": { + "description": "The Resource model definition.", + "properties": { + "location": { + "readOnly": true, + "type": "string", + "description": "Resource location" + }, + "sku": { + "readOnly": true, + "type": "string", + "description": "Resource sku" + } + } + }, + "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 + } + }, + "parameters": { + "scopeChargesParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope associated with usage details operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope. For department and enrollment accounts, you can also add billing period to the scope using '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g. to specify billing period at department scope use '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "scopeUsageDetailsParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope associated with usage details 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/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope. For subscription, billing account, department, enrollment account and management group, you can also add billing period to the scope using '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g. to specify billing period at department scope use '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "scopeMarketplaceParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope associated with marketplace 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/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope. For subscription, billing account, department, enrollment account and ManagementGroup, you can also add billing period to the scope using '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g. to specify billing period at department scope use '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "scopeBudgetParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope associated with budget 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.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "scopeTagsParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope associated with tags 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 and '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope..", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request. The current version is 2019-05-01." + }, + "billingAccountIdParameter": { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "departmentIdParameter": { + "name": "departmentId", + "in": "path", + "description": "Department ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "enrollmentAccountIdParameter": { + "name": "enrollmentAccountId", + "in": "path", + "description": "EnrollmentAccount ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Azure Subscription ID.", + "required": true, + "type": "string" + }, + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "Azure Resource Group Name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "budgetNameParameter": { + "name": "budgetName", + "in": "path", + "description": "Budget Name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingPeriodNameParameter": { + "name": "billingPeriodName", + "in": "path", + "description": "Billing Period Name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "reservationOrderIdParameter": { + "name": "reservationOrderId", + "in": "path", + "description": "Order Id of the reservation", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "reservationIdParameter": { + "name": "reservationId", + "in": "path", + "description": "Id of the reservation", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "grainParameter": { + "name": "grain", + "description": "Can be daily or monthly", + "x-ms-parameter-location": "method", + "in": "query", + "required": true, + "type": "string", + "enum": [ + "daily", + "monthly" + ], + "x-ms-enum": { + "name": "datagrain", + "modelAsString": true, + "values": [ + { + "value": "daily", + "description": "Daily grain of data", + "name": "DailyGrain" + }, + { + "value": "monthly", + "description": "Monthly grain of data", + "name": "MonthlyGrain" + } + ] + } + }, + "managementGroupIdParameter": { + "name": "managementGroupId", + "in": "path", + "description": "Azure Management Group ID.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingProfileIdParameter": { + "name": "billingProfileId", + "in": "path", + "description": "Azure Billing Profile ID.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "invoiceSectionIdParameter": { + "name": "invoiceSectionId", + "in": "path", + "description": "Azure Invoice Section ID.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "metricParameter": { + "name": "metric", + "in": "query", + "description": "Allows to select different type of cost/usage records.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "enum": [ + "actualcost", + "amortizedcost", + "usage" + ], + "x-ms-enum": { + "name": "metrictype", + "modelAsString": true, + "values": [ + { + "value": "actualcost", + "description": "Actual cost data.", + "name": "ActualCostMetricType" + }, + { + "value": "amortizedcost", + "description": "Amortized cost data.", + "name": "AmortizedCostMetricType" + }, + { + "value": "usage", + "description": "Usage data.", + "name": "UsageMetricType" + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/AggregatedCostByManagementGroup.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/AggregatedCostByManagementGroup.json new file mode 100644 index 000000000000..9935a249ce99 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/AggregatedCostByManagementGroup.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "managementGroupId": "managementGroupForTest" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupForTest/providers/Microsoft.Consumption/aggregatedcostId1", + "name": "aggregatedcostId1", + "type": "Microsoft.Consumption/aggregatedcost", + "properties": { + "includedSubscriptions": [ + "1caaa5a3-2b66-438e-8ab4-bce37d518c5d" + ], + "excludedSubscriptions": [], + "usageStart": "2019-05-01T00:00:00.0000000Z", + "usageEnd": "2018-10-31T00:00:00.0000000Z", + "azureCharges": 250.9876, + "marketplaceCharges": 150.786, + "chargesBilledSeparately": 120.345, + "currency": "USD", + "children": [ + { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupChildForTest/providers/Microsoft.Consumption/aggregatedcostId2", + "name": "aggregatedcostId2", + "type": "Microsoft.Consumption/aggregatedcost", + "properties": { + "includedSubscriptions": [ + "c349567d-c83a-48c9-ab0e-578c69dc97a4" + ], + "excludedSubscriptions": [], + "usageStart": "2019-05-01T00:00:00.0000000Z", + "usageEnd": "2018-10-31T00:00:00.0000000Z", + "azureCharges": 150.0, + "marketplaceCharges": 50.786, + "chargesBilledSeparately": 30.345, + "currency": "USD", + "children": [] + } + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/AggregatedCostByManagementGroupFilterByDate.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/AggregatedCostByManagementGroupFilterByDate.json new file mode 100644 index 000000000000..cf899d3abb70 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/AggregatedCostByManagementGroupFilterByDate.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "managementGroupId": "managementGroupForTest", + "$filter": "usageStart ge '2018-08-15' and properties/usageStart le '2018-08-31'" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupForTest/providers/Microsoft.Consumption/aggregatedcostId1", + "name": "aggregatedcostId1", + "type": "Microsoft.Consumption/aggregatedcost", + "properties": { + "includedSubscriptions": [ + "1caaa5a3-2b66-438e-8ab4-bce37d518c5d" + ], + "excludedSubscriptions": [], + "usageStart": "2018-08-15T00:00:00.0000000Z", + "usageEnd": "2018-08-31T00:00:00.0000000Z", + "azureCharges": 150.9876, + "marketplaceCharges": 80.786, + "chargesBilledSeparately": 90.345, + "currency": "USD", + "children": [ + { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupChildForTest/providers/Microsoft.Consumption/aggregatedcostId2", + "name": "aggregatedcostId2", + "type": "Microsoft.Consumption/aggregatedcost", + "properties": { + "includedSubscriptions": [ + "c349567d-c83a-48c9-ab0e-578c69dc97a4" + ], + "excludedSubscriptions": [], + "usageStart": "2018-08-15T00:00:00.0000000Z", + "usageEnd": "2018-08-31T00:00:00.0000000Z", + "azureCharges": 50.0, + "marketplaceCharges": 10.786, + "chargesBilledSeparately": 30.345, + "currency": "USD", + "children": [] + } + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/AggregatedCostForBillingPeriodByManagementGroup.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/AggregatedCostForBillingPeriodByManagementGroup.json new file mode 100644 index 000000000000..bc0631163d53 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/AggregatedCostForBillingPeriodByManagementGroup.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "managementGroupId": "managementGroupForTest", + "billingPeriodName": "201807" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupForTest/providers/Microsoft.Consumption/aggregatedcostId1", + "name": "aggregatedcostId1", + "type": "Microsoft.Consumption/aggregatedcost", + "properties": { + "usageStart": "2018-07-01T00:00:00.0000000Z", + "usageEnd": "2018-07-31T00:00:00.0000000Z", + "azureCharges": 250.9876, + "marketplaceCharges": 150.786, + "chargesBilledSeparately": 120.345, + "currency": "USD", + "children": [ + { + "id": "/providers/Microsoft.Management/managementGroups/managementGroupChildForTest/providers/Microsoft.Consumption/aggregatedcostId2", + "name": "aggregatedcostId2", + "type": "Microsoft.Consumption/aggregatedcost", + "properties": { + "usageStart": "2018-07-01T00:00:00.0000000Z", + "usageEnd": "2018-07-31T00:00:00.0000000Z", + "azureCharges": 150.0, + "marketplaceCharges": 50.786, + "chargesBilledSeparately": 30.345, + "currency": "USD", + "children": [] + } + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/BalancesByBillingAccount.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/BalancesByBillingAccount.json new file mode 100644 index 000000000000..661d34975d1b --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/BalancesByBillingAccount.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "billingAccountId": "123456" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/balances/balanceId1", + "name": "balanceId1", + "type": "Microsoft.Consumption/balances", + "properties": { + "currency": "USD ", + "beginningBalance": 3396469.19, + "endingBalance": 2922371.02, + "newPurchases": 0, + "adjustments": 0, + "utilized": 474098.17, + "serviceOverage": 0, + "chargesBilledSeparately": 0, + "totalOverage": 0, + "totalUsage": 474098.17, + "azureMarketplaceServiceCharges": 609.82, + "billingFrequency": "Month", + "priceHidden": false, + "newPurchasesDetails": [ + { + "name": "Promo Purchase", + "value": 1 + } + ], + "adjustmentDetails": [ + { + "name": "Promo Credit", + "value": 1.1 + }, + { + "name": "SIE Credit", + "value": 1.0 + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/BalancesByBillingAccountForBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/BalancesByBillingAccountForBillingPeriod.json new file mode 100644 index 000000000000..45b4f03410fc --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/BalancesByBillingAccountForBillingPeriod.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "billingAccountId": "123456", + "billingPeriodName": "201702" + }, + "responses": { + "200": { + "body": { + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/balances/balanceId1", + "name": "balanceId1", + "type": "Microsoft.Consumption/balances", + "properties": { + "currency": "USD ", + "beginningBalance": 3396469.19, + "endingBalance": 2922371.02, + "newPurchases": 0, + "adjustments": 0, + "utilized": 474098.17, + "serviceOverage": 0, + "chargesBilledSeparately": 0, + "totalOverage": 0, + "totalUsage": 474098.17, + "azureMarketplaceServiceCharges": 609.82, + "billingFrequency": "Month", + "priceHidden": false, + "newPurchasesDetails": [ + { + "name": "Promo Purchase", + "value": 1 + } + ], + "adjustmentDetails": [ + { + "name": "Promo Credit", + "value": 1.1 + }, + { + "name": "SIE Credit", + "value": 1.0 + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/Budget.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/Budget.json new file mode 100644 index 000000000000..be9537a6b425 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/Budget.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "budgetName": "TestBudget", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget", + "name": "TestBudget", + "type": "Microsoft.Consumption/budgets", + "eTag": "\"1d34d012214157f\"", + "properties": { + "category": "Cost", + "amount": 100.65, + "timeGrain": "Monthly", + "timePeriod": { + "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" + ] + } + }, + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "contactGroups": [ + "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ] + } + } + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/BudgetsList.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/BudgetsList.json new file mode 100644 index 000000000000..9ec90134c5e8 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/BudgetsList.json @@ -0,0 +1,160 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget", + "name": "TestBudget", + "type": "Microsoft.Consumption/budgets", + "eTag": "\"1d34d012214157f\"", + "properties": { + "category": "Cost", + "amount": 100.65, + "timeGrain": "Monthly", + "timePeriod": { + "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" + ] + } + }, + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ] + }, + "Actual_GreaterThanOrEqualTo_90_Percent": { + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 90, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "contactGroups": [ + "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ] + } + } + } + }, + { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget", + "name": "TestBudget", + "type": "Microsoft.Consumption/budgets", + "eTag": "\"1d34d012214157f\"", + "properties": { + "category": "Cost", + "amount": 600.65, + "timeGrain": "Monthly", + "timePeriod": { + "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" + ] + } + }, + "currentSpend": { + "amount": 120.89, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThan_40_Percent": { + "enabled": true, + "operator": "GreaterThan", + "threshold": 40, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ] + }, + "Actual_GreaterThanOrEqualTo_60_Percent": { + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 60, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "contactGroups": [ + "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ] + } + } + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ChargesForBillingPeriodByDepartment.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ChargesForBillingPeriodByDepartment.json new file mode 100644 index 000000000000..760afa147745 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ChargesForBillingPeriodByDepartment.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "billingAccountId": "1234", + "departmentId": "42425", + "billingPeriodName": "201804", + "scope": "providers/Microsoft.Billing/BillingAccounts/1234" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/1234/departments/42425/providers/Microsoft.Consumption/charges/chargeSummaryId1", + "name": "chargeSummaryId1", + "type": "Microsoft.Consumption/charges", + "properties": { + "billingPeriodId": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201804", + "usageStart": "2018-04-01", + "usageEnd": "2018-04-30", + "azureCharges": 5000.00, + "chargesBilledSeparately": 60.90, + "marketplaceCharges": 100.00, + "currency": "USD" + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ChargesForBillingPeriodByEnrollmentAccount.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ChargesForBillingPeriodByEnrollmentAccount.json new file mode 100644 index 000000000000..be9ee3e1757b --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ChargesForBillingPeriodByEnrollmentAccount.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "billingAccountId": "1234", + "enrollmentAccountId": "42425", + "billingPeriodName": "201804", + "scope": "providers/Microsoft.Billing/BillingAccounts/1234" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/1234/enrollmentAccounts/42425/providers/Microsoft.Consumption/charges/chargeSummaryId1", + "name": "chargeSummaryId1", + "type": "Microsoft.Consumption/charges", + "properties": { + "billingPeriodId": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201804", + "usageStart": "2018-04-01", + "usageEnd": "2018-04-30", + "azureCharges": 5000.00, + "chargesBilledSeparately": 60.90, + "marketplaceCharges": 100.00, + "currency": "USD" + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ChargesListForDepartmentFilterByStartEndDate.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ChargesListForDepartmentFilterByStartEndDate.json new file mode 100644 index 000000000000..9fc435a17ef4 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ChargesListForDepartmentFilterByStartEndDate.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "billingAccountId": "1234", + "departmentId": "42425", + "scope": "providers/Microsoft.Billing/BillingAccounts/1234", + "$filter": "usageStart eq '2018-04-01' AND usageEnd eq '2018-05-30'" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/1234/departments/42425/providers/Microsoft.Consumption/charges/chargeSummaryId1", + "name": "chargeSummaryId1", + "type": "Microsoft.Consumption/charges", + "properties": { + "billingPeriodId": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201804", + "usageStart": "2018-04-01", + "usageEnd": "2018-04-30", + "azureCharges": 5000.00, + "chargesBilledSeparately": 60.90, + "marketplaceCharges": 100.00, + "currency": "USD" + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ChargesListForEnrollmentAccountFilterByStartEndDate.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ChargesListForEnrollmentAccountFilterByStartEndDate.json new file mode 100644 index 000000000000..eae6f9b6745c --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ChargesListForEnrollmentAccountFilterByStartEndDate.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "billingAccountId": "1234", + "enrollmentAccountId": "42425", + "scope": "providers/Microsoft.Billing/BillingAccounts/1234" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/1234/enrollmentAccounts/42425/providers/Microsoft.Consumption/charges/chargeSummaryId1", + "name": "chargeSummaryId1", + "type": "Microsoft.Consumption/charges", + "properties": { + "billingPeriodId": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201804", + "usageStart": "2018-04-01", + "usageEnd": "2018-04-30", + "azureCharges": 5000.00, + "chargesBilledSeparately": 60.90, + "marketplaceCharges": 100.00, + "currency": "USD" + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/CreateOrUpdateBudget.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/CreateOrUpdateBudget.json new file mode 100644 index 000000000000..ca3c4cd7030c --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/CreateOrUpdateBudget.json @@ -0,0 +1,185 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "budgetName": "TestBudget", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "parameters": { + "eTag": "\"1d34d016a593709\"", + "properties": { + "category": "Cost", + "amount": 100.65, + "timeGrain": "Monthly", + "timePeriod": { + "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" + ] + } + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "contactGroups": [ + "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ] + } + } + } + } + }, + "responses": { + "201": { + "body": { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget", + "name": "TestBudget", + "type": "Microsoft.Consumption/budgets", + "eTag": "\"1d34d012214157f\"", + "properties": { + "category": "Cost", + "amount": 100.65, + "timeGrain": "Monthly", + "timePeriod": { + "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" + ] + } + }, + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "contactGroups": [ + "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ] + } + } + } + } + }, + "200": { + "body": { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget", + "name": "TestBudget", + "type": "Microsoft.Consumption/budgets", + "eTag": "\"1d34d012214157f\"", + "properties": { + "category": "Cost", + "amount": 100.65, + "timeGrain": "Monthly", + "timePeriod": { + "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" + ] + } + }, + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "contactGroups": [ + "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ] + } + } + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/DeleteBudget.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/DeleteBudget.json new file mode 100644 index 000000000000..4a0056ec54ec --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/DeleteBudget.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "budgetName": "TestBudget", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {} + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ForecastsList.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ForecastsList.json new file mode 100644 index 000000000000..de0ea04661b4 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ForecastsList.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId1", + "name": "forecastId1", + "type": "Microsoft.Consumption/forecasts", + "properties": { + "usageDate": "2018-04-01", + "grain": "Daily", + "charge": 752.000000, + "currency": "USD", + "chargeType": "Actual", + "confidenceLevels": null + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId2", + "name": "forecastId2", + "type": "Microsoft.Consumption/forecasts", + "properties": { + "usageDate": "2018-04-02", + "grain": "Daily", + "charge": 753.809074, + "currency": "USD", + "chargeType": "Forecast", + "confidenceLevels": [ + { + "percentage": 95, + "bound": "Upper", + "value": 1165.951737 + }, + { + "percentage": 95, + "bound": "Lower", + "value": 340.753404 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ForecastsListFilterByDates.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ForecastsListFilterByDates.json new file mode 100644 index 000000000000..858ff397f1ff --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ForecastsListFilterByDates.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "$filter": "usagedate ge '2018-04-01' AND usagedate le '2018-04-02'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId1", + "name": "forecastId1", + "type": "Microsoft.Consumption/forecasts", + "properties": { + "usageDate": "2018-04-01", + "grain": "Daily", + "charge": 752.000000, + "currency": "USD", + "chargeType": "Actual", + "confidenceLevels": null + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId2", + "name": "forecastId2", + "type": "Microsoft.Consumption/forecasts", + "properties": { + "usageDate": "2018-04-02", + "grain": "Daily", + "charge": 753.809074, + "currency": "USD", + "chargeType": "Forecast", + "confidenceLevels": [ + { + "percentage": 95, + "bound": "Upper", + "value": 1165.951737 + }, + { + "percentage": 95, + "bound": "Lower", + "value": 340.753404 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ForecastsListFilterByGrain.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ForecastsListFilterByGrain.json new file mode 100644 index 000000000000..bc34d29580af --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ForecastsListFilterByGrain.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "$filter": "Grain eq 'Monthly'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId1", + "name": "forecastId1", + "type": "Microsoft.Consumption/forecasts", + "properties": { + "usageDate": "2018-04-01", + "grain": "Monthly", + "charge": 752.000000, + "currency": "USD", + "chargeType": "Actual", + "confidenceLevels": null + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.Consumption/forecasts/forecastId2", + "name": "forecastId2", + "type": "Microsoft.Consumption/forecasts", + "properties": { + "usageDate": "2018-05-01", + "grain": "Monthly", + "charge": 753.809074, + "currency": "USD", + "chargeType": "Forecast", + "confidenceLevels": [ + { + "percentage": 95, + "bound": "Upper", + "value": 1165.951737 + }, + { + "percentage": 95, + "bound": "Lower", + "value": 340.753404 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByBillingAccountList.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByBillingAccountList.json new file mode 100644 index 000000000000..bdea38e8cf96 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByBillingAccountList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "providers/Microsoft.Billing/billingAccounts/123456", + "billingAccountId": "123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplaceId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan1", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByBillingAccountListForBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByBillingAccountListForBillingPeriod.json new file mode 100644 index 000000000000..8bd2142eafcc --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByBillingAccountListForBillingPeriod.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "billingAccountId": "123456", + "scope": "providers/Microsoft.Billing/billingAccounts/123456", + "billingPeriodName": "201702" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByDepartmentList.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByDepartmentList.json new file mode 100644 index 000000000000..9b988bfaa787 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByDepartmentList.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "departmentId": "123456", + "billingPeriodName": "201702", + "scope": "providers/Microsoft.Billing/departments/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/departments/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/providers/Microsoft.Billing/departments/123456/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByDepartment_ListByBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByDepartment_ListByBillingPeriod.json new file mode 100644 index 000000000000..9b988bfaa787 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByDepartment_ListByBillingPeriod.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "departmentId": "123456", + "billingPeriodName": "201702", + "scope": "providers/Microsoft.Billing/departments/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/departments/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/providers/Microsoft.Billing/departments/123456/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByEnrollmentAccountList.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByEnrollmentAccountList.json new file mode 100644 index 000000000000..4d1f6f881938 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByEnrollmentAccountList.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "enrollmentAccountId": "123456", + "billingPeriodName": "201702", + "scope": "providers/Microsoft.Billing/enrollmentAccounts/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/enrollmentAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/providers/Microsoft.Billing/enrollmentAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByEnrollmentAccounts_ListByBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByEnrollmentAccounts_ListByBillingPeriod.json new file mode 100644 index 000000000000..4d1f6f881938 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByEnrollmentAccounts_ListByBillingPeriod.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "enrollmentAccountId": "123456", + "billingPeriodName": "201702", + "scope": "providers/Microsoft.Billing/enrollmentAccounts/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/enrollmentAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/providers/Microsoft.Billing/enrollmentAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByManagementGroupList.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByManagementGroupList.json new file mode 100644 index 000000000000..0116a8fa0d5e --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByManagementGroupList.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "managementGroupId": "managementGroupForTest", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201810/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201810", + "usageStart": "2018-10-13T00:00:00Z", + "usageEnd": "2018-10-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + }, + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Billing/billingPeriods/201810/providers/Microsoft.Consumption/marketplaces/marketplaceId2", + "name": "marketplacesId2", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account2", + "additionalProperties": "additionalProperties", + "costCenter": "Center2", + "departmentName": "Department2", + "billingPeriodId": "/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Billing/billingPeriods/201810", + "usageStart": "2018-10-13T00:00:00Z", + "usageEnd": "2018-10-13T23:59:59Z", + "instanceName": "shared2", + "instanceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared2", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "11111111-1111-1111-1111-111111111111", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "11111111-1111-1111-1111-111111111111", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "11111111-1111-1111-1111-111111111111", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByManagementGroup_ListForBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByManagementGroup_ListForBillingPeriod.json new file mode 100644 index 000000000000..c649c3588c2d --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesByManagementGroup_ListForBillingPeriod.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "managementGroupId": "managementGroupForTest", + "billingPeriodName": "201808", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201808/providers/Microsoft.Consumption/marketplaces/marketplaceId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201808", + "usageStart": "2018-08-13T00:00:00Z", + "usageEnd": "2018-08-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + }, + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Billing/billingPeriods/201808/providers/Microsoft.Consumption/marketplaces/marketplaceId2", + "name": "marketplacesId2", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account2", + "additionalProperties": "additionalProperties", + "costCenter": "Center2", + "departmentName": "Department2", + "billingPeriodId": "/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Billing/billingPeriods/201810", + "usageStart": "2018-08-13T00:00:00Z", + "usageEnd": "2018-08-13T23:59:59Z", + "instanceName": "shared2", + "instanceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared2", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "11111111-1111-1111-1111-111111111111", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "11111111-1111-1111-1111-111111111111", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "11111111-1111-1111-1111-111111111111", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesList.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesList.json new file mode 100644 index 000000000000..935b6f58d6a9 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketPlaces/marketplaceId1", + "name": "marketplaceId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan1", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesListForBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesListForBillingPeriod.json new file mode 100644 index 000000000000..dc141d289de4 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/MarketplacesListForBillingPeriod.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "billingPeriodName": "201801" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/marketPlaces/marketplacesId1", + "name": "marketplacesId1", + "type": "Microsoft.Consumption/marketPlaces", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "accountName": "Account1", + "additionalProperties": "additionalProperties", + "costCenter": "Center1", + "departmentName": "Department1", + "billingPeriodId": "/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201702", + "usageStart": "2017-02-13T00:00:00Z", + "usageEnd": "2017-02-13T23:59:59Z", + "instanceName": "shared1", + "instanceId": "/subscriptions/subid/resourceGroups/Default-Web-eastasia/providers/Microsoft.Web/sites/shared1", + "currency": "USD", + "consumedQuantity": 0.00328, + "pretaxCost": 0.67, + "isEstimated": false, + "meterId": "00000000-0000-0000-0000-000000000000", + "offerName": "offer1", + "resourceGroup": "TEST", + "orderNumber": "00000000-0000-0000-0000-000000000000", + "publisherName": "xyz", + "planName": "plan2", + "resourceRate": 0.24, + "subscriptionGuid": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "azure subscription", + "unitOfMeasure": "10 Hours", + "isRecurringCharge": false + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/PriceSheet.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/PriceSheet.json new file mode 100644 index 000000000000..be47e0b2621a --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/PriceSheet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/pricesheets/default", + "name": "default", + "type": "Microsoft.Consumption/pricesheets", + "properties": { + "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.consumption/pricesheets/default?api-version=2018-01-31&$skiptoken=AQAAAA%3D%3D", + "pricesheets": [ + { + "billingPeriodId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702", + "meterId": "00000000-0000-0000-0000-000000000000", + "unitOfMeasure": "100 Hours", + "includedQuantity": 100, + "partNumber": "XX-11110", + "unitPrice": 0.00328, + "currencyCode": "EUR", + "offerId": "OfferId 1" + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/PriceSheetExpand.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/PriceSheetExpand.json new file mode 100644 index 000000000000..f010627dcbcd --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/PriceSheetExpand.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "billingPeriodName": "201801", + "$expand": "meterDetails" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/pricesheets/default", + "name": "default", + "type": "Microsoft.Consumption/pricesheets", + "properties": { + "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.consumption/pricesheets/default?api-version=2018-01-31&$skiptoken=AQAAAA%3D%3D&$expand=properties/pricesheets/meterDetails", + "pricesheets": [ + { + "billingPeriodId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702", + "meterId": "00000000-0000-0000-0000-000000000000", + "unitOfMeasure": "100 Hours", + "includedQuantity": 100, + "partNumber": "XX-11110", + "unitPrice": 0.00328, + "currencyCode": "EUR", + "offerId": "OfferId 1", + "meterDetails": { + "meterName": "Data Transfer Out (GB)", + "meterCategory": "Networking", + "unit": "GB", + "meterLocation": "Zone 2", + "totalIncludedQuantity": 0, + "pretaxStandardRate": 0.138 + } + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/PriceSheetForBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/PriceSheetForBillingPeriod.json new file mode 100644 index 000000000000..6d78cf22f1c9 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/PriceSheetForBillingPeriod.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "billingPeriodName": "201801" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/pricesheets/default", + "name": "default", + "type": "Microsoft.Consumption/pricesheets", + "properties": { + "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702/providers/microsoft.consumption/pricesheets/default?api-version=2018-01-31", + "pricesheets": [ + { + "billingPeriodId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201702", + "meterId": "00000000-0000-0000-0000-000000000000", + "unitOfMeasure": "100 Hours", + "includedQuantity": 100, + "partNumber": "XX-11110", + "unitPrice": 0.00328, + "currencyCode": "EUR", + "offerId": "OfferId 1" + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationDetails.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationDetails.json new file mode 100644 index 000000000000..451a7d35c563 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationDetails.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "$filter": "properties/usageDate ge '2017-10-01' AND properties/usageDate le '2017-12-05'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationDetails/20171129", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000_20171129", + "type": "Microsoft.Consumption/reservationDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "usageDate": "2017-11-29T00:00:00Z", + "skuName": "Standard_D2_v2", + "instanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/wvn-sql/providers/microsoft.compute/virtualmachines/abc-sql2014sp33", + "totalReservedQuantity": 1.000000000000000, + "reservedHours": 24.000000000000000, + "usedHours": 24.000000000000000 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationDetailsByBillingAccountId.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationDetailsByBillingAccountId.json new file mode 100644 index 000000000000..71b4bc55ac28 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationDetailsByBillingAccountId.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "billingAccountId": "12345", + "$filter": "properties/usageDate ge '2017-10-01' AND properties/usageDate le '2017-12-05'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationDetails/20171130", + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Consumption/reservationDetails", + "tags": null, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "usageDate": "2017-11-30T00:00:00-08:00", + "skuName": "Standard_D2s_v3", + "instanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sqlh1/providers/microsoft.compute/virtualmachines/sqlh1", + "totalReservedQuantity": 0, + "reservedHours": 48, + "usedHours": 0.6, + "instanceFlexibilityGroup": "DSv3 Series", + "instanceFlexibilityRatio": "1" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationDetailsWithReservationId.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationDetailsWithReservationId.json new file mode 100644 index 000000000000..7b4aa9510345 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationDetailsWithReservationId.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-05-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'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationDetails/20171129", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000_20171129", + "type": "Microsoft.Consumption/reservationDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "usageDate": "2017-11-29T00:00:00Z", + "skuName": "Standard_D2_v2", + "instanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/wvn-sql/providers/microsoft.compute/virtualmachines/wvn-sql2014sp33", + "totalReservedQuantity": 1.000000000000000, + "reservedHours": 24.000000000000000, + "usedHours": 24.000000000000000 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationRecommendationsByBillingAccountList.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationRecommendationsByBillingAccountList.json new file mode 100644 index 000000000000..ceea409e3207 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationRecommendationsByBillingAccountList.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "billingAccountId": "123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "billingAccount/123456/providers/Microsoft.Consumption/reservationRecommendations/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Consumption/reservationRecommendations", + "location": "westus", + "sku": "Standard_DS1_v2", + "properties": { + "meterId": "00000000-0000-0000-0000-000000000000", + "term": "P1Y", + "costWithNoReservedInstances": 12.0785105, + "recommendedQuantity": 1, + "totalCostWithReservedInstances": 11.4899644807748, + "netSavings": 0.588546019225182, + "firstUsageDate": "2019-07-07T00:00:00-07:00", + "scope": "Shared", + "lookBackPeriod": "Last7Days", + "instanceFlexibilityRatio": 1, + "instanceFlexibilityGroup": "DSv2 Series", + "normalizedSize": "Standard_DS1_v2", + "recommendedQuantityNormalized": 1 + } + }, + { + "id": "billingAccount/123456/providers/Microsoft.Consumption/reservationRecommendations/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Consumption/reservationRecommendations", + "location": "westus", + "sku": "Standard_DS1_v2", + "properties": { + "meterId": "00000000-0000-0000-0000-000000000000", + "term": "P1Y", + "costWithNoReservedInstances": 10.0785105, + "recommendedQuantity": 1, + "totalCostWithReservedInstances": 13.48, + "netSavings": 0.68, + "firstUsageDate": "2019-07-07T00:00:00-07:00", + "scope": "Shared", + "lookBackPeriod": "Last7Days", + "instanceFlexibilityRatio": 1, + "instanceFlexibilityGroup": "DSv2 Series", + "normalizedSize": "Standard_DS1", + "recommendedQuantityNormalized": 1.2 + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationRecommendations?api-version=2018-03-31&$skiptoken=AQAAAA%3D%3D&" + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationRecommendationsFilterByScopeLookBackPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationRecommendationsFilterByScopeLookBackPeriod.json new file mode 100644 index 000000000000..f169b528120d --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationRecommendationsFilterByScopeLookBackPeriod.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "$filter": "properties/scope eq 'Single' AND properties/lookBackPeriod eq 'Last7Days'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationRecommendations/reservationRecommendations1", + "name": "reservationRecommendations1", + "type": "Microsoft.Consumption/reservationRecommendations", + "sku": "Standard_DS1_v2", + "location": "northeurope", + "properties": { + "lookBackPeriod": "Last7Days", + "meterId": "00000000-0000-0000-0000-000000000000", + "term": "P1Y", + "costWithNoReservedInstances": 0.0, + "recommendedQuantity": 1, + "totalCostWithReservedInstances": 0.0, + "netSavings": 4.634521202630137, + "firstUsageDate": "2018-03-06T00:00:00Z", + "scope": "Single" + } + }, + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationRecommendations/reservationRecommendations2", + "name": "reservationRecommendations2", + "type": "Microsoft.Consumption/reservationRecommendations", + "sku": "Standard_DS1_v2", + "location": "northeurope", + "properties": { + "lookBackPeriod": "Last7Days", + "meterId": "00000000-0000-0000-0000-000000000000", + "term": "P3Y", + "costWithNoReservedInstances": 0.0, + "recommendedQuantity": 1, + "totalCostWithReservedInstances": 0.0, + "netSavings": 7.2893157231780812, + "firstUsageDate": "2018-03-06T00:00:00Z", + "scope": "Single" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationRecommendations?api-version=2018-03-31&$filter=properties/scope+eq+'Single'+AND+properties/lookBackPeriod+eq+'Last7Days'&$skiptoken=AQAAAA%3D%3D&" + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationRecommendationsList.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationRecommendationsList.json new file mode 100644 index 000000000000..c0788f41b413 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationRecommendationsList.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationRecommendations/reservationRecommendations1", + "name": "reservationRecommendations1", + "type": "Microsoft.Consumption/reservationRecommendations", + "sku": "Standard_DS1_v2", + "location": "northeurope", + "properties": { + "lookBackPeriod": "Last7Days", + "meterId": "00000000-0000-0000-0000-000000000000", + "term": "P1Y", + "costWithNoReservedInstances": 0.0, + "recommendedQuantity": 1, + "totalCostWithReservedInstances": 0.0, + "netSavings": 4.634521202630137, + "firstUsageDate": "2018-03-06T00:00:00Z", + "scope": "Single" + } + }, + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationRecommendations/reservationRecommendations2", + "name": "reservationRecommendations2", + "type": "Microsoft.Consumption/reservationRecommendations", + "sku": "Standard_DS1_v2", + "location": "northeurope", + "properties": { + "lookBackPeriod": "Last7Days", + "meterId": "00000000-0000-0000-0000-000000000000", + "term": "P3Y", + "costWithNoReservedInstances": 0.0, + "recommendedQuantity": 1, + "totalCostWithReservedInstances": 0.0, + "netSavings": 7.2893157231780812, + "firstUsageDate": "2018-03-06T00:00:00Z", + "scope": "Single" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationRecommendations?api-version=2018-03-31&$skiptoken=AQAAAA%3D%3D&" + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesDaily.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesDaily.json new file mode 100644 index 000000000000..ea44229b7720 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesDaily.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "grain": "daily", + "$filter": "properties/usageDate ge '2017-10-01' AND properties/usageDate le '2017-11-20'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationSummaries/20171001", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000_20171001", + "type": "Microsoft.Consumption/reservationSummaries", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "skuName": "Standard_D8s_v3", + "reservedHours": 0.0, + "usageDate": "2017-10-01T00:00:00Z", + "usedHours": 0.0, + "minUtilizationPercentage": 0.0, + "avgUtilizationPercentage": 0.0, + "maxUtilizationPercentage": 0.0 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesDailyWithBillingAccountId.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesDailyWithBillingAccountId.json new file mode 100644 index 000000000000..332967a84a10 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesDailyWithBillingAccountId.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "billingAccountId": "12345", + "grain": "daily", + "$filter": "properties/usageDate ge '2017-10-01' AND properties/usageDate le '2017-11-20'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationSummaries/20180901", + "name": "00000000-0000-0000-0000-000000000000_20180901", + "type": "Microsoft.Consumption/reservationSummaries", + "tags": null, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "skuName": "Standard_B1s", + "reservedHours": 720, + "usageDate": "2018-09-01T00:00:00-07:00", + "usedHours": 0, + "minUtilizationPercentage": 0, + "avgUtilizationPercentage": 0, + "maxUtilizationPercentage": 0 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesDailyWithReservationId.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesDailyWithReservationId.json new file mode 100644 index 000000000000..baa406ca7f38 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesDailyWithReservationId.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "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'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationSummaries/20171001", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000_20171001", + "type": "Microsoft.Consumption/reservationSummaries", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "skuName": "Standard_D8s_v3", + "reservedHours": 0.0, + "usageDate": "2017-10-01T00:00:00Z", + "usedHours": 0.0, + "minUtilizationPercentage": 0.0, + "avgUtilizationPercentage": 0.0, + "maxUtilizationPercentage": 0.0 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesMonthly.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesMonthly.json new file mode 100644 index 000000000000..6ad998620c4b --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesMonthly.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "grain": "monthly" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationSummaries/20171001", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000_20171001", + "type": "Microsoft.Consumption/reservationSummaries", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "skuName": "Standard_D8s_v3", + "reservedHours": 0.0, + "usageDate": "2017-10-01T00:00:00Z", + "usedHours": 0.0, + "minUtilizationPercentage": 0.0, + "avgUtilizationPercentage": 0.0, + "maxUtilizationPercentage": 0.0 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesMonthlyWithBillingAccountId.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesMonthlyWithBillingAccountId.json new file mode 100644 index 000000000000..160de086c909 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesMonthlyWithBillingAccountId.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "billingAccountId": "12345", + "grain": "monthly" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationSummaries/20180901", + "name": "00000000-0000-0000-0000-000000000000_20180901", + "type": "Microsoft.Consumption/reservationSummaries", + "tags": null, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "skuName": "Standard_B1s", + "reservedHours": 720, + "usageDate": "2018-09-01T00:00:00-07:00", + "usedHours": 0, + "minUtilizationPercentage": 0, + "avgUtilizationPercentage": 0, + "maxUtilizationPercentage": 0 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesMonthlyWithReservationId.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesMonthlyWithReservationId.json new file mode 100644 index 000000000000..55a214dae0cd --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/ReservationSummariesMonthlyWithReservationId.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "grain": "monthly" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Capacity/reservationOrders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/reservationSummaries/20171001", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000_20171001", + "type": "Microsoft.Consumption/reservationSummaries", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "reservationOrderId": "00000000-0000-0000-0000-000000000000", + "reservationId": "00000000-0000-0000-0000-000000000000", + "skuName": "Standard_D8s_v3", + "reservedHours": 0.0, + "usageDate": "2017-10-01T00:00:00Z", + "usedHours": 0.0, + "minUtilizationPercentage": 0.0, + "avgUtilizationPercentage": 0.0, + "maxUtilizationPercentage": 0.0 + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/Tags.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/Tags.json new file mode 100644 index 000000000000..37ba1e8f4985 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/Tags.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "billingAccountId": "12345", + "scope": "providers/Microsoft.CostManagement/billingAccounts/1234" + }, + "responses": { + "200": { + "body": { + "id": "providers/Microsoft.CostManagement/billingAccounts/{billingaccount-id}/providers/Microsoft.Consumption/tags/tags1", + "name": "tags1", + "type": "Microsoft.Consumption/tags", + "eTag": "\"1d34d012214157f\"", + "properties": { + "tags": [ + { + "key": "Department" + }, + { + "key": "CostCenter" + }, + { + "key": "Portal" + }, + { + "key": "OrgName" + }, + { + "key": "Namespace" + }, + { + "key": "resourceType" + }, + { + "key": "Subsystem" + }, + { + "key": "Environment" + }, + { + "key": "clusterName" + } + ] + } + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsExpand.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsExpand.json new file mode 100644 index 000000000000..619386b1432c --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsExpand.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "billingPeriodName": "201903", + "$expand": "meterDetails,additionalInfo", + "$filter": "tags eq 'dev:tools'", + "$top": 1 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": { + "meterName": "Data Transfer Out (GB)", + "meterCategory": "Networking", + "meterSubCategory": "ExpressRoute", + "unitOfMeasure": "GB", + "serviceFamily": "Compute" + }, + "quantity": 0.8234, + "effectivePrice": 0.010464556322455, + "cost": 0.000342194841184, + "unitPrice": 3.54, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage", + "frequency": "UsageBased", + "additionalInfo": "{\"MyType\":\"\",\"ServiceType\":\"\",\"VMName\":\"\",\"UsageType\":\"MyUsage\"}" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsList.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsList.json new file mode 100644 index 000000000000..6f914eb30ac5 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsList.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Customer Name 1", + "billingPeriodStartDate": "2019-04-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-04-30T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Customer Name 1", + "accountName": "AccountName", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "SubscriptionName 1", + "date": "2019-04-09T00:00:00.0000000Z", + "product": "Product1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.000036, + "effectivePrice": 0.054693034210767, + "cost": 0.000001980949998, + "unitPrice": 5.47, + "billingCurrency": "CAD", + "resourceLocation": "uswest", + "consumedService": "Microsoft.ClassicStorage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource-Group-westus/providers/Microsoft.ClassicStorage/storageAccounts/ResourceName1", + "resourceName": "ResourceName1", + "invoiceSection": "Invoice Section 1", + "costCenter": "BAS", + "resourceGroup": "Resource-Group-westus", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage", + "frequency": "UsageBased" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByBillingAccount.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByBillingAccount.json new file mode 100644 index 000000000000..8cfcd69aafdd --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByBillingAccount.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01-preview", + "scope": "providers/Microsoft.Billing/BillingAccounts/1234", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.7329, + "effectivePrice": 0.000402776395232, + "cost": 0.000295194820065, + "unitPrice": 4.38, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByDepartment.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByDepartment.json new file mode 100644 index 000000000000..83b746be6294 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByDepartment.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "providers/Microsoft.Billing/Departments/1234", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/Departments/1234/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.7329, + "effectivePrice": 0.000402776395232, + "cost": 0.000295194820065, + "unitPrice": 4.38, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByEnrollmentAccount.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByEnrollmentAccount.json new file mode 100644 index 000000000000..19ee428df5af --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByEnrollmentAccount.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "providers/Microsoft.Billing/EnrollmentAccounts/1234", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/EnrollmentAccounts/1234/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.7329, + "effectivePrice": 0.000402776395232, + "cost": 0.000295194820065, + "unitPrice": 4.38, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByManagementGroup.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByManagementGroup.json new file mode 100644 index 000000000000..85e0d0bf2c41 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByManagementGroup.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "managementGroupId": "managementGroupForTest", + "billingPeriodName": "201903", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + }, + { + "id": "/scope/providers/Microsoft.Billing/billingPeriods/20180801/providers/Microsoft.Consumption/usageDetails/usageDetails_Id2", + "name": "usageDetails_Id2", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 2", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 2", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 2", + "partNumber": "Part Number 2", + "meterId": "11111111-1111-1111-1111-111111111111", + "meterDetails": null, + "quantity": 0.7329, + "effectivePrice": 0.000402776395232, + "cost": 0.000295194820065, + "unitPrice": 4.38, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 2/providers/Microsoft.Storage/storageAccounts/Resource Name 2", + "resourceName": "Resource Name 2", + "invoiceSection": "Invoice Section 2", + "costCenter": "DEV", + "resourceGroup": "Resource Group 2", + "offerId": "Offer Id 2", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByMetricActualCost.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByMetricActualCost.json new file mode 100644 index 000000000000..53956c8f4d72 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByMetricActualCost.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "metric": "actualcost", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Customer Name 1", + "billingPeriodStartDate": "2019-04-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-04-30T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Customer Name 1", + "accountName": "AccountName", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "SubscriptionName 1", + "date": "2019-04-09T00:00:00.0000000Z", + "product": "Product1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.000036, + "effectivePrice": 0.054693055510767, + "cost": 0.000001968949998, + "unitPrice": 5.47, + "billingCurrency": "CAD", + "resourceLocation": "uswest", + "consumedService": "Microsoft.ClassicStorage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource-Group-westus/providers/Microsoft.ClassicStorage/storageAccounts/ResourceName1", + "resourceName": "ResourceName1", + "invoiceSection": "Invoice Section 1", + "costCenter": "BAS", + "resourceGroup": "Resource-Group-westus", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByMetricAmortizedCost.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByMetricAmortizedCost.json new file mode 100644 index 000000000000..5cb0d3221d75 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByMetricAmortizedCost.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "metric": "amortizedcost", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Customer Name 1", + "billingPeriodStartDate": "2019-04-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-04-30T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Customer Name 1", + "accountName": "AccountName", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "SubscriptionName 1", + "date": "2019-04-09T00:00:00.0000000Z", + "product": "Product1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.000036, + "effectivePrice": 0.054693055510767, + "cost": 0.000001968949998, + "unitPrice": 5.47, + "billingCurrency": "CAD", + "resourceLocation": "uswest", + "consumedService": "Microsoft.ClassicStorage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource-Group-westus/providers/Microsoft.ClassicStorage/storageAccounts/ResourceName1", + "resourceName": "ResourceName1", + "invoiceSection": "Invoice Section 1", + "costCenter": "BAS", + "resourceGroup": "Resource-Group-westus", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage", + "frequency": "UsageBased" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByMetricUsage.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByMetricUsage.json new file mode 100644 index 000000000000..1646532866f6 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListByMetricUsage.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "metric": "usage", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Customer Name 1", + "billingPeriodStartDate": "2019-04-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-04-30T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Customer Name 1", + "accountName": "AccountName", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "SubscriptionName 1", + "date": "2019-04-09T00:00:00.0000000Z", + "product": "Product1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.000036, + "effectivePrice": 0.054693055510767, + "cost": 0.000001968949998, + "unitPrice": 5.47, + "billingCurrency": "CAD", + "resourceLocation": "uswest", + "consumedService": "Microsoft.ClassicStorage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource-Group-westus/providers/Microsoft.ClassicStorage/storageAccounts/ResourceName1", + "resourceName": "ResourceName1", + "invoiceSection": "Invoice Section 1", + "costCenter": "BAS", + "resourceGroup": "Resource-Group-westus", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListFilterByTag.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListFilterByTag.json new file mode 100644 index 000000000000..4eaa20890fd1 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListFilterByTag.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "$filter": "tags eq 'dev:tools'", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriod.json new file mode 100644 index 000000000000..359761c4d338 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriod.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriodByBillingAccount.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriodByBillingAccount.json new file mode 100644 index 000000000000..6af55a086805 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriodByBillingAccount.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "providers/Microsoft.Billing/BillingAccounts/1234", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriodByDepartment.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriodByDepartment.json new file mode 100644 index 000000000000..ad785e54ff58 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriodByDepartment.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "providers/Microsoft.Billing/Departments/1234", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/Departments/1234/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriodByEnrollmentAccount.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriodByEnrollmentAccount.json new file mode 100644 index 000000000000..b40461c9561d --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriodByEnrollmentAccount.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "scope": "providers/Microsoft.Billing/EnrollmentAccounts/1234", + "billingPeriodName": "201903" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/EnrollmentAccounts/1234/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriodByManagementGroup.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriodByManagementGroup.json new file mode 100644 index 000000000000..3a938a094870 --- /dev/null +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-05-01/examples/UsageDetailsListForBillingPeriodByManagementGroup.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "managementGroupId": "managementGroupForTest", + "billingPeriodName": "201903", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing/billingPeriods/201903/providers/Microsoft.Consumption/usageDetails/usageDetails_Id1", + "name": "usageDetails_Id1", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 1", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 1", + "accountName": "Account Name 1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 1", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 1", + "partNumber": "Part Number 1", + "meterId": "00000000-0000-0000-0000-000000000000", + "meterDetails": null, + "quantity": 0.8234, + "effectivePrice": 0.010534556373432, + "cost": 0.000342194841184, + "unitPrice": 3.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 1/providers/Microsoft.Storage/storageAccounts/Resource Name 1", + "resourceName": "Resource Name 1", + "invoiceSection": "Invoice Section 1", + "costCenter": "DEV", + "resourceGroup": "Resource Group 1", + "offerId": "Offer Id 1", + "isAzureCreditEligible": false, + "chargeType": "Usage" + } + }, + { + "id": "/scope/providers/Microsoft.Billing/billingPeriods/billingPeriodName/providers/Microsoft.Consumption/usageDetails/usageDetails_Id2", + "name": "usageDetails_Id2", + "type": "Microsoft.Consumption/usageDetails", + "tags": { + "env": "newcrp", + "dev": "tools" + }, + "properties": { + "billingAccountId": "xxxxxxxx", + "billingAccountName": "Account Name 2", + "billingPeriodStartDate": "2019-03-01T00:00:00.0000000Z", + "billingPeriodEndDate": "2019-03-31T00:00:00.0000000Z", + "billingProfileId": "xxxxxxxx", + "billingProfileName": "Account Name 2", + "accountName": "Account Name 2", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Subscription Name 2", + "date": "2019-03-30T00:00:00.0000000Z", + "product": "Product Name 2", + "partNumber": "Part Number 2", + "meterId": "11111111-1111-1111-1111-111111111111", + "meterDetails": null, + "quantity": 0.4759, + "effectivePrice": 0.073488920944598, + "cost": 0.000821821271948, + "unitPrice": 5.74, + "billingCurrency": "CAD", + "resourceLocation": "USEast", + "consumedService": "Microsoft.Storage", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Resource Group 2/providers/Microsoft.Storage/storageAccounts/Resource Name 2", + "resourceName": "Resource Name 2", + "invoiceSection": "Invoice Section 2", + "costCenter": "DEV", + "resourceGroup": "Resource Group 2", + "offerId": "Offer Id 2", + "isAzureCreditEligible": false, + "chargeType": "UnusedReservation" + } + } + ] + } + } + } +} diff --git a/specification/consumption/resource-manager/readme.md b/specification/consumption/resource-manager/readme.md index f28b7a4e49e5..175559ebc3b8 100644 --- a/specification/consumption/resource-manager/readme.md +++ b/specification/consumption/resource-manager/readme.md @@ -26,18 +26,38 @@ These are the global settings for the Consumption API. ``` yaml openapi-type: arm -tag: package-preview-2019-04 +tag: package-2019-05 ``` +### Tag: package-2019-05 + +These settings apply only when `--tag=package-2019-05` is specified on the command line. + +```yaml $(tag) == 'package-2019-05' +input-file: + - Microsoft.Consumption/stable/2019-05-01/consumption.json +``` + + +### Tag: package-preview-2019-05 + +These settings apply only when `--tag=package-preview-2019-05` is specified on the command line. + +```yaml $(tag) == 'package-preview-2019-05' +input-file: + - Microsoft.Consumption/preview/2019-05-01-preview/consumption.json +``` + ### Tag: package-preview-2019-04 These settings apply only when `--tag=package-preview-2019-04` is specified on the command line. -```yaml $(tag) == 'package-preview-2019-04' +``` yaml $(tag) == 'package-preview-2019-04' input-file: - Microsoft.Consumption/preview/2019-04-01-preview/consumption.json ``` + ### Tag: package-preview-2018-11 These settings apply only when `--tag=package-preview-2018-11` is specified on the command line. @@ -174,6 +194,7 @@ 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-java @@ -365,4 +386,42 @@ java: output-folder: $(azure-libraries-for-java-folder)/consumption/resource-manager/v2019_01_01 regenerate-manager: true generate-interface: true -``` \ No newline at end of file +``` + +## 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.Consumption/stable/2019-05-01/consumption.json + - $(this-folder)/Microsoft.Consumption/preview/2019-05-01-preview/consumption.json + - $(this-folder)/Microsoft.Consumption/preview/2019-04-01-preview/consumption.json + - $(this-folder)/Microsoft.Consumption/preview/2018-11-01-preview/consumption.json + - $(this-folder)/Microsoft.Consumption/stable/2019-01-01/consumption.json + - $(this-folder)/Microsoft.Consumption/stable/2017-11-30/consumption.json + - $(this-folder)/Microsoft.Consumption/stable/2018-01-31/consumption.json + - $(this-folder)/Microsoft.Consumption/stable/2018-03-31/consumption.json + - $(this-folder)/Microsoft.Consumption/stable/2018-05-31/consumption.json + - $(this-folder)/Microsoft.Consumption/stable/2018-06-30/consumption.json + - $(this-folder)/Microsoft.Consumption/stable/2018-08-31/consumption.json + - $(this-folder)/Microsoft.Consumption/stable/2018-10-01/consumption.json + - $(this-folder)/Microsoft.Consumption/preview/2017-04-24-preview/consumption.json + - $(this-folder)/Microsoft.Consumption/preview/2017-12-30-preview/consumption.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/containerinstance/resource-manager/readme.md b/specification/containerinstance/resource-manager/readme.md index 69dc6d1a78a0..299a172a18d4 100644 --- a/specification/containerinstance/resource-manager/readme.md +++ b/specification/containerinstance/resource-manager/readme.md @@ -123,6 +123,7 @@ 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 @@ -255,4 +256,36 @@ java: output-folder: $(azure-libraries-for-java-folder)/containerinstance/resource-manager/v2017_08_01_preview regenerate-manager: true generate-interface: true -``` \ No newline at end of file +``` + +## 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.ContainerInstance/stable/2018-10-01/containerInstance.json + - $(this-folder)/Microsoft.ContainerInstance/stable/2018-09-01/containerInstance.json + - $(this-folder)/Microsoft.ContainerInstance/stable/2018-06-01/containerInstance.json + - $(this-folder)/Microsoft.ContainerInstance/stable/2018-04-01/containerInstance.json + - $(this-folder)/Microsoft.ContainerInstance/preview/2018-02-01-preview/containerInstance.json + - $(this-folder)/Microsoft.ContainerInstance/preview/2017-12-01-preview/containerInstance.json + - $(this-folder)/Microsoft.ContainerInstance/preview/2017-10-01-preview/containerInstance.json + - $(this-folder)/Microsoft.ContainerInstance/preview/2017-08-01-preview/containerInstance.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/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/containerregistry.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/containerregistry.json new file mode 100644 index 000000000000..eaa2fbb79191 --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/containerregistry.json @@ -0,0 +1,1863 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Container Registry", + "description": "Metadata API definition for the Azure Container Registry runtime", + "version": "2019-07-15-preview" + }, + "x-ms-parameterized-host": { + "hostTemplate": "{url}", + "useSchemePrefix": false, + "positionInOperation": "first", + "parameters": [ + { + "$ref": "#/parameters/Url" + } + ] + }, + "securityDefinitions": { + "registry_auth": { + "type": "basic" + }, + "registry_oauth2": { + "type": "apiKey", + "in": "header", + "name": "Authorization" + } + }, + "security": [ + { + "registry_auth": [], + "registry_oauth2": [] + } + ], + "tags": [ + { + "name": "v2", + "description": "Root API" + }, + { + "name": "Manifest", + "description": "Everything about manifests" + }, + { + "name": "Tag", + "description": "Everything about tags" + }, + { + "name": "Layer", + "description": "Everything about layers" + }, + { + "name": "Repository", + "description": "Everything about repository" + }, + { + "name": "AcrRepository", + "description": "ACR APIs related to repositories" + }, + { + "name": "AcrManifest", + "description": "ACR APIs related to manifests" + }, + { + "name": "AcrTag", + "description": "ACR APIs related to tags" + } + ], + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v2/": { + "get": { + "tags": [ + "v2" + ], + "description": "Tells whether this Docker Registry instance supports Docker Registry HTTP API v2", + "x-ms-examples": { + "Check Docker Registry V2 Support": { + "$ref": "./examples/GetDockerRegistryV2Support.json" + } + }, + "operationId": "GetDockerRegistryV2Support", + "responses": { + "200": { + "description": "Successful response. API v2 supported" + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + } + }, + "/v2/{name}/tags/list": { + "get": { + "tags": [ + "Tag" + ], + "description": "Fetch the tags under the repository identified by name", + "x-ms-examples": { + "List tags": { + "$ref": "./examples/GetTagList.json" + } + }, + "operationId": "GetTagList", + "parameters": [ + { + "$ref": "#/parameters/ImageName" + } + ], + "responses": { + "200": { + "description": "Gives a list of tags for the names repository.", + "headers": { + "Link": { + "description": "next paginated result", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/RepositoryTags" + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + } + }, + "/v2/{name}/manifests/{reference}": { + "get": { + "tags": [ + "Manifest" + ], + "description": "Pulls the image manifest file associated with the specified name and reference. Reference may be a tag or a digest", + "x-ms-examples": { + "Get manifest": { + "$ref": "./examples/GetManifest.json" + } + }, + "operationId": "GetManifest", + "parameters": [ + { + "$ref": "#/parameters/ImageName" + }, + { + "$ref": "#/parameters/ImageReference" + }, + { + "name": "accept", + "in": "header", + "description": "Accept header string delimited by comma. For example, application/vnd.docker.distribution.manifest.v2+json", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Returns the requested manifest file", + "schema": { + "$ref": "#/definitions/Manifest" + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + }, + "put": { + "tags": [ + "Manifest" + ], + "x-ms-long-running-operation": false, + "description": "Put the manifest identified by `name` and `reference` where `reference` can be a tag or digest.", + "x-ms-examples": { + "Put manifest": { + "$ref": "./examples/CreateManifest.json" + } + }, + "consumes": [ + "application/vnd.docker.distribution.manifest.v2+json" + ], + "operationId": "CreateManifest", + "parameters": [ + { + "$ref": "#/parameters/ImageName" + }, + { + "$ref": "#/parameters/ImageReference" + }, + { + "$ref": "#/parameters/ManifestBody" + } + ], + "responses": { + "201": { + "description": "The manifest is updated", + "schema": {}, + "headers": { + "Docker-Content-Digest": { + "type": "string", + "description": "Identifies the docker upload uuid for the current request." + }, + "Location": { + "type": "string", + "description": "The canonical location url of the uploaded manifest." + }, + "Content-Length": { + "type": "integer", + "description": "The canonical location url of the uploaded manifest." + } + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + }, + "delete": { + "tags": [ + "Manifest" + ], + "description": "Delete the manifest identified by `name` and `reference`. Note that a manifest can _only_ be deleted by `digest`.", + "x-ms-examples": { + "Delete manifest": { + "$ref": "./examples/DeleteManifest.json" + } + }, + "operationId": "DeleteManifest", + "parameters": [ + { + "$ref": "#/parameters/ImageName" + }, + { + "$ref": "#/parameters/ImageReference" + } + ], + "responses": { + "202": { + "description": "The manifest has been deleted" + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + } + }, + "/v2/_catalog": { + "get": { + "tags": [ + "Repository" + ], + "description": "List repositories", + "operationId": "GetRepositories", + "x-ms-examples": { + "Get repositories in a registry": { + "$ref": "./examples/GetRepositories.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/QueryLast" + }, + { + "$ref": "#/parameters/QueryNum" + } + ], + "responses": { + "200": { + "description": "Returns a list of repositories", + "headers": { + "Link": { + "description": "next paginated result", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/Repositories" + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + } + }, + "/acr/v1/_catalog": { + "get": { + "tags": [ + "AcrRepository" + ], + "description": "List repositories", + "operationId": "GetAcrRepositories", + "x-ms-examples": { + "Get repositories in a registry": { + "$ref": "./examples/GetRepositories.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/QueryLast" + }, + { + "$ref": "#/parameters/QueryNum" + } + ], + "responses": { + "200": { + "description": "Returns a list of repositories", + "schema": { + "$ref": "#/definitions/Repositories" + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + } + }, + "/acr/v1/{name}": { + "get": { + "tags": [ + "AcrRepository", + "AcrMetadata" + ], + "description": "Get repository attributes", + "operationId": "GetAcrRepositoryAttributes", + "x-ms-examples": { + "Get details of repository": { + "$ref": "./examples/GetAcrRepositoryAttributes.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ImageName" + } + ], + "responses": { + "200": { + "description": "Returns a list of attributes", + "schema": { + "$ref": "#/definitions/RepositoryAttributes" + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + }, + "delete": { + "tags": [ + "AcrRepository" + ], + "description": "Delete the repository identified by `name`", + "operationId": "DeleteAcrRepository", + "x-ms-examples": { + "Delete a repository": { + "$ref": "./examples/DeleteAcrRepository.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ImageName" + } + ], + "responses": { + "202": { + "description": "The repository is deleted", + "schema": { + "$ref": "#/definitions/DeletedRepository" + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + }, + "patch": { + "tags": [ + "AcrRepository", + "AcrMetadata" + ], + "description": "Update the attribute identified by `name` where `reference` is the name of the repository.", + "operationId": "UpdateAcrRepositoryAttributes", + "x-ms-examples": { + "Update repository attributes": { + "$ref": "./examples/UpdateAcrRepository.json" + } + }, + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ImageName" + }, + { + "name": "value", + "in": "body", + "description": "Repository attribute value", + "required": false, + "schema": { + "$ref": "#/definitions/ChangeableAttributes" + } + } + ], + "responses": { + "200": { + "description": "The attributes is updated" + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + } + }, + "/acr/v1/{name}/_tags": { + "get": { + "tags": [ + "AcrTag", + "AcrMetadata" + ], + "description": "List tags of a repository", + "operationId": "GetAcrTags", + "x-ms-examples": { + "Get tags of a repository": { + "$ref": "./examples/GetAcrTags.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ImageName" + }, + { + "$ref": "#/parameters/QueryLast" + }, + { + "$ref": "#/parameters/QueryNum" + }, + { + "$ref": "#/parameters/QueryOrderBy" + }, + { + "$ref": "#/parameters/QueryDigest" + } + ], + "responses": { + "200": { + "description": "Tag details of a repository", + "schema": { + "$ref": "#/definitions/AcrRepositoryTags" + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + } + }, + "/acr/v1/{name}/_tags/{reference}": { + "get": { + "tags": [ + "AcrTag", + "AcrMetadata" + ], + "description": "Get tag attributes by tag", + "operationId": "GetAcrTagAttributes", + "x-ms-examples": { + "Get tag attributes": { + "$ref": "./examples/GetAcrTagAttributes.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ImageName" + }, + { + "$ref": "#/parameters/ManifestReference" + } + ], + "responses": { + "200": { + "description": "Tag attributes", + "schema": { + "$ref": "#/definitions/AcrTagAttributes" + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + }, + "patch": { + "tags": [ + "AcrTag", + "AcrMetadata" + ], + "description": "Update tag attributes", + "operationId": "UpdateAcrTagAttributes", + "consumes": [ + "application/json" + ], + "x-ms-examples": { + "Update attributes of a manifest": { + "$ref": "./examples/UpdateAcrTagAttributes.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ImageName" + }, + { + "$ref": "#/parameters/ManifestReference" + }, + { + "$ref": "#/parameters/RepoValue" + } + ], + "responses": { + "200": { + "description": "The attributes are updated" + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + }, + "delete": { + "tags": [ + "AcrTag", + "AcrMetadata" + ], + "description": "Delete tag", + "operationId": "DeleteAcrTag", + "consumes": [ + "application/json" + ], + "x-ms-examples": { + "Update attributes of a manifest": { + "$ref": "./examples/DeleteAcrTag.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ImageName" + }, + { + "$ref": "#/parameters/ManifestReference" + } + ], + "responses": { + "202": { + "description": "The tag is deleted" + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + } + }, + "/acr/v1/{name}/_manifests": { + "get": { + "tags": [ + "AcrManifest", + "AcrMetadata" + ], + "description": "List manifests of a repository", + "operationId": "GetAcrManifests", + "x-ms-examples": { + "Get details of repository": { + "$ref": "./examples/GetAcrManifests.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ImageName" + }, + { + "$ref": "#/parameters/QueryLast" + }, + { + "$ref": "#/parameters/QueryNum" + }, + { + "$ref": "#/parameters/QueryOrderBy" + } + ], + "responses": { + "200": { + "description": "Returns a list of manifests", + "schema": { + "$ref": "#/definitions/AcrManifests" + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + } + }, + "/acr/v1/{name}/_manifests/{reference}": { + "get": { + "tags": [ + "AcrManifest", + "AcrMetadata" + ], + "description": "Get manifest attributes", + "operationId": "GetAcrManifestAttributes", + "x-ms-examples": { + "Get manifest attributes": { + "$ref": "./examples/GetAcrManifestAttributes.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ImageName" + }, + { + "$ref": "#/parameters/ImageReference" + } + ], + "responses": { + "200": { + "description": "List of attributes", + "schema": { + "$ref": "#/definitions/AcrManifestAttributes" + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + }, + "patch": { + "tags": [ + "AcrManifest", + "AcrMetadata" + ], + "description": "Update attributes of a manifest", + "operationId": "UpdateAcrManifestAttributes", + "consumes": [ + "application/json" + ], + "x-ms-examples": { + "Update attributes of a manifest": { + "$ref": "./examples/UpdateAcrManifestAttributes.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ImageName" + }, + { + "$ref": "#/parameters/ImageReference" + }, + { + "$ref": "#/parameters/RepoValue" + } + ], + "responses": { + "200": { + "description": "The attributes are updated" + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + } + } + }, + "/oauth2/exchange": { + "post": { + "tags": [ + "AcrToken", + "RefreshToken" + ], + "description": "Exchange AAD tokens for an ACR refresh Token", + "operationId": "GetAcrRefreshTokenFromExchange", + "consumes": [ + "application/x-www-form-urlencoded" + ], + "parameters": [ + { + "$ref": "#/parameters/Grant_type" + }, + { + "$ref": "#/parameters/Service" + }, + { + "$ref": "#/parameters/Tenant" + }, + { + "$ref": "#/parameters/RefreshToken" + }, + { + "$ref": "#/parameters/AccessToken" + } + ], + "responses": { + "200": { + "description": "Refresh token acquired", + "schema": { + "$ref": "#/definitions/RefreshToken" + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + }, + "security": [], + "x-ms-examples": { + "Exchange AAD Token for ACR Refresh": { + "$ref": "./examples/PostRefreshToken.json" + } + } + } + }, + "/oauth2/token": { + "post": { + "tags": [ + "AcrToken", + "AccessToken" + ], + "description": "Exchange ACR Refresh token for an ACR Access Token", + "operationId": "GetAcrAccessToken", + "consumes": [ + "application/x-www-form-urlencoded" + ], + "parameters": [ + { + "name": "grant_type", + "in": "formData", + "description": "Grant type is expected to be refresh_token", + "required": true, + "type": "string", + "enum": [ + "refresh_token" + ] + }, + { + "$ref": "#/parameters/Service" + }, + { + "name": "scope", + "in": "formData", + "required": true, + "description": "Which is expected to be a valid scope, and can be specified more than once for multiple scope requests. You obtained this from the Www-Authenticate response header from the challenge.", + "type": "string" + }, + { + "name": "refresh_token", + "in": "formData", + "required": true, + "description": "Must be a valid ACR refresh token", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Access token acquired", + "schema": { + "$ref": "#/definitions/AccessToken" + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + }, + "security": [], + "x-ms-examples": { + "Get Access Token with Refresh Token": { + "$ref": "./examples/PostAccessToken.json" + } + } + }, + "get": { + "tags": [ + "AcrToken", + "AccessToken", + "userLogin" + ], + "description": "Exchange Username, Password and Scope an ACR Access Token", + "operationId": "GetAcrAccessTokenFromLogin", + "parameters": [ + { + "name": "service", + "in": "query", + "required": true, + "description": "Indicates the name of your Azure container registry.", + "type": "string" + }, + { + "name": "scope", + "in": "query", + "required": true, + "description": "Expected to be a valid scope, and can be specified more than once for multiple scope requests. You can obtain this from the Www-Authenticate response header from the challenge.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Access token acquired", + "schema": { + "$ref": "#/definitions/AccessToken" + } + }, + "default": { + "description": "ACR error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/AcrErrors" + } + } + }, + "security": [ + { + "registry_auth": [] + } + ], + "x-ms-examples": { + "Get Access Token with username and password": { + "$ref": "./examples/GetAccessToken.json" + } + } + } + } + }, + "definitions": { + "RepositoryAttributes": { + "type": "object", + "description": "Repository attributes", + "properties": { + "registry": { + "type": "string", + "description": "Registry name" + }, + "imageName": { + "type": "string", + "description": "Image name" + }, + "createdTime": { + "type": "string", + "description": "Image created time" + }, + "lastUpdateTime": { + "type": "string", + "description": "Image last update time" + }, + "manifestCount": { + "type": "integer", + "description": "Number of the manifests" + }, + "tagCount": { + "type": "integer", + "description": "Number of the tags" + }, + "changeableAttributes": { + "description": "Changeable attributes", + "$ref": "#/definitions/ChangeableAttributes" + } + }, + "example": { + "registry": "registryname.azurecr.io", + "changeableAttributes": { + "readEnabled": true, + "listEnabled": true, + "deleteEnabled": true, + "writeEnabled": true + }, + "imageName": "imageName", + "createdTime": "2018-09-07T16:30:46.6583219Z", + "tagCount": 6, + "manifestCount": 2, + "lastUpdateTime": "2018-09-07T16:30:46.6583219Z" + } + }, + "AcrRepositoryTags": { + "description": "List of tag details", + "properties": { + "registry": { + "type": "string", + "description": "Registry name" + }, + "imageName": { + "type": "string", + "description": "Image name" + }, + "tags": { + "type": "array", + "x-ms-client-name": "TagsAttributes", + "description": "List of tag attribute details", + "items": { + "$ref": "#/definitions/AcrTagAttributesBase" + } + } + }, + "example": { + "registry": "registry", + "imageName": "imageName", + "tags": [ + { + "changeableAttributes": { + "readEnabled": true, + "listEnabled": true, + "deleteEnabled": true, + "writeEnabled": true + }, + "name": "name", + "digest": "digest", + "createdTime": "createdTime", + "signed": true, + "lastUpdateTime": "lastUpdateTime" + }, + { + "changeableAttributes": { + "readEnabled": true, + "listEnabled": true, + "deleteEnabled": true, + "writeEnabled": true + }, + "name": "name", + "digest": "digest", + "createdTime": "createdTime", + "signed": true, + "lastUpdateTime": "lastUpdateTime" + } + ] + } + }, + "AcrTagAttributes": { + "description": "Tag attributes", + "properties": { + "registry": { + "type": "string", + "description": "Registry name" + }, + "imageName": { + "type": "string", + "description": "Image name" + }, + "tag": { + "x-ms-client-name": "TagAttributes", + "description": "List of tag attribute details", + "$ref": "#/definitions/AcrTagAttributesBase" + } + }, + "example": { + "registry": "registry", + "imageName": "imageName", + "tag": { + "changeableAttributes": { + "readEnabled": true, + "listEnabled": true, + "deleteEnabled": true, + "writeEnabled": true + }, + "name": "name", + "digest": "digest", + "createdTime": "createdTime", + "signed": true, + "lastUpdateTime": "lastUpdateTime" + } + } + }, + "TagAttributes": { + "description": "Tag attributes", + "properties": { + "registry": { + "description": "Registry name", + "type": "string" + }, + "imageName": { + "description": "Image name", + "type": "string" + }, + "tag": { + "$ref": "#/definitions/TagAttributes_tag", + "description": "Tag attributes" + } + }, + "example": { + "registry": "registry", + "imageName": "imageName", + "tag": { + "signatureRecord": "signatureRecord" + } + } + }, + "AcrTagAttributesBase": { + "description": "Tag attribute details", + "properties": { + "name": { + "type": "string", + "description": "Tag name" + }, + "digest": { + "type": "string", + "description": "Tag digest" + }, + "createdTime": { + "type": "string", + "description": "Tag created time" + }, + "lastUpdateTime": { + "type": "string", + "description": "Tag last update time" + }, + "signed": { + "type": "boolean", + "description": "Is signed" + }, + "changeableAttributes": { + "$ref": "#/definitions/ChangeableAttributes", + "description": "Changeable attributes" + } + }, + "example": { + "changeableAttributes": { + "readEnabled": true, + "listEnabled": true, + "deleteEnabled": true, + "writeEnabled": true + }, + "name": "tagname", + "digest": "sha256:0873c923e00e0fd2ba78041bfb64a105e1ecb7678916d1f7776311e45bf5634b", + "createdTime": "2018-08-10T17:28:44.1082945Z", + "signed": true, + "lastUpdateTime": "2018-08-10T17:28:44.1082945Z" + } + }, + "AcrManifests": { + "description": "Manifest attributes", + "properties": { + "registry": { + "type": "string", + "description": "Registry name" + }, + "imageName": { + "type": "string", + "description": "Image name" + }, + "manifests": { + "x-ms-client-name": "ManifestsAttributes", + "type": "array", + "description": "List of manifests", + "items": { + "$ref": "#/definitions/AcrManifestAttributesBase", + "description": "Manifest details" + } + } + }, + "example": { + "registry": "registry", + "imageName": "imageName", + "manifests": [ + { + "changeableAttributes": { + "quarantineDetails": "quarantineDetails", + "readEnabled": true, + "quarantineState": "quarantineState", + "listEnabled": true, + "deleteEnabled": true, + "writeEnabled": true + }, + "os": "os", + "digest": "digest", + "imageSize": 2401606, + "createdTime": "createdTime", + "mediaType": "mediaType", + "configMediaType": "configMediaType", + "lastUpdateTime": "lastUpdateTime", + "architecture": "architecture", + "tags": [ + "tags", + "tags" + ] + }, + { + "changeableAttributes": { + "quarantineDetails": "quarantineDetails", + "readEnabled": true, + "quarantineState": "quarantineState", + "listEnabled": true, + "deleteEnabled": true, + "writeEnabled": true + }, + "os": "os", + "digest": "digest", + "imageSize": 2401606, + "createdTime": "createdTime", + "mediaType": "mediaType", + "configMediaType": "configMediaType", + "lastUpdateTime": "lastUpdateTime", + "architecture": "architecture", + "tags": [ + "tags", + "tags" + ] + } + ] + } + }, + "AcrManifestAttributes": { + "description": "Manifest attributes details", + "properties": { + "registry": { + "description": "Registry name", + "type": "string" + }, + "imageName": { + "description": "Image name", + "type": "string" + }, + "manifest": { + "x-ms-client-name": "ManifestAttributes", + "description": "Manifest attributes", + "$ref": "#/definitions/AcrManifestAttributesBase" + } + }, + "example": { + "registry": "acrapi.azurecr-test.io", + "imageName": "nanoserver", + "manifest": { + "digest": "sha256:110d2b6c84592561338aa040b1b14b7ab81c2f9edbd564c2285dd7d70d777086", + "imageSize": 2401606, + "createdTime": "2018-09-06T06:17:20.9983915Z", + "lastUpdateTime": "2018-09-06T06:17:20.9983915Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2+json", + "configMediaType": "application/vnd.docker.container.image.v1+json", + "tags": [ + "4.7.2-20180905-nanoserver-1803" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + "AcrManifestAttributesBase": { + "type": "object", + "description": "Manifest details", + "properties": { + "digest": { + "type": "string", + "description": "Manifest" + }, + "imageSize": { + "type": "integer", + "description": "Image size" + }, + "createdTime": { + "type": "string", + "description": "Created time" + }, + "lastUpdateTime": { + "type": "string", + "description": "Last update time" + }, + "architecture": { + "type": "string", + "description": "CPU architecture" + }, + "os": { + "type": "string", + "description": "Operating system" + }, + "mediaType": { + "type": "string", + "description": "Media type" + }, + "configMediaType": { + "type": "string", + "description": "Config blob media type" + }, + "tags": { + "type": "array", + "description": "List of tags", + "items": { + "type": "string", + "description": "Tag name" + } + }, + "changeableAttributes": { + "$ref": "#/definitions/ChangeableAttributes", + "description": "Changeable attributes" + } + }, + "example": { + "changeableAttributes": { + "readEnabled": true, + "listEnabled": true, + "deleteEnabled": true, + "writeEnabled": true + }, + "os": "os", + "digest": "digest", + "imageSize": 2401606, + "createdTime": "createdTime", + "mediaType": "mediaType", + "configMediaType": "configMediaType", + "lastUpdateTime": "lastUpdateTime", + "architecture": "architecture", + "tags": [ + "tags", + "tags" + ] + } + }, + "RefreshToken": { + "type": "object", + "properties": { + "refresh_token": { + "description": "The refresh token to be used for generating access tokens", + "type": "string" + } + } + }, + "AccessToken": { + "type": "object", + "properties": { + "access_token": { + "description": "The access token for performing authenticated requests", + "type": "string" + } + } + }, + "AcrErrors": { + "description": "Acr error response describing why the operation failed", + "properties": { + "errors": { + "type": "array", + "description": "Array of detailed error", + "items": { + "$ref": "#/definitions/AcrErrorInfo" + } + } + } + }, + "RepositoryTags": { + "description": "Result of the request to list tags of the image", + "properties": { + "name": { + "type": "string", + "description": "Name of the image" + }, + "tags": { + "type": "array", + "description": "List of tags", + "items": { + "type": "string", + "description": "Tag name" + } + } + }, + "example": { + "name": "name", + "tags": [ + "tags", + "tags" + ] + } + }, + "Manifest": { + "description": "Returns the requested manifest file", + "properties": { + "schemaVersion": { + "type": "integer", + "description": "Schema version" + }, + "mediaType": { + "type": "string", + "description": "Media type usually application/vnd.docker.distribution.manifest.v2+json if this is in the accept header" + }, + "config": { + "description": "V2 image config descriptor", + "$ref": "#/definitions/V2Descriptor" + }, + "layers": { + "type": "array", + "description": "List of V2 image layer information", + "items": { + "$ref": "#/definitions/V2Descriptor" + } + }, + "architecture": { + "type": "string", + "description": "CPU architecture" + }, + "name": { + "type": "string", + "description": "Image name" + }, + "tag": { + "type": "string", + "description": "Image tag" + }, + "fsLayers": { + "type": "array", + "description": "List of layer information", + "items": { + "$ref": "#/definitions/FsLayer" + } + }, + "history": { + "type": "array", + "description": "Image history", + "items": { + "$ref": "#/definitions/History" + } + }, + "signatures": { + "type": "array", + "description": "Image signature", + "items": { + "$ref": "#/definitions/ImageSignature" + } + } + }, + "example": { + "schemaVersion": 2, + "mediaType": "application/vnd.docker.distribution.manifest.v2+json", + "config": { + "mediaType": "application/vnd.docker.container.image.v1+json", + "size": 1512, + "digest": "sha256:6d1ef012b5674ad8a127ecfa9b5e6f5178d171b90ee462846974177fd9bdd39f" + }, + "layers": [ + { + "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", + "size": 2107098, + "digest": "sha256:5d20c808ce198565ff70b3ed23a991dd49afac45dece63474b27ce6ed036adc6" + } + ] + } + }, + "ImageSignature": { + "description": "Signature of a signed manifest", + "properties": { + "header": { + "description": "A JSON web signature", + "$ref": "#/definitions/JWK" + }, + "signature": { + "type": "string", + "description": "A signature for the image manifest, signed by a libtrust private key" + }, + "protected": { + "type": "string", + "description": "The signed protected header" + } + }, + "example": { + "header": { + "jwk": { + "crv": "P-256", + "kid": "WGXM:EYWQ:DA53:LQUP:BCWG:5RDG:S3ZM:ETH7:VMQS:WWKZ:EWDG:V74Q", + "kty": "EC", + "x": "OxZ9k5BVjPZ7jb3BmBD4X0d8MVPJqfF4NeSe8reoqnY", + "y": "EaCqTe4-vYwhk7qU6Bs2-AeLGOVtCe_-IY2MdE0Vfyc" + }, + "alg": "ES256" + }, + "signature": "p73LfotMGD8nNXz2g9YX2XtSllb4GI5-b3vjqP5N0nkv8QXg-r5z_omGiVbOZE2BYG1X_4TIN23l1KSEqsXxOg", + "protected": "eyJmb3JtYXRMZW5ndGgiOjI5ODYsImZvcm1hdFRhaWwiOiJDbjAiLCJ0aW1lIjoiMjAxOC0wOS0yMFQyMzo0MTo1MloifQ" + } + }, + "JWK": { + "description": "A JSON web signature", + "properties": { + "jwk": { + "$ref": "#/definitions/JWKHeader" + }, + "alg": { + "type": "string", + "description": "The algorithm used to sign or encrypt the JWT" + } + } + }, + "JWKHeader": { + "description": "JSON web key parameter", + "properties": { + "crv": { + "type": "string", + "description": "crv value" + }, + "kid": { + "type": "string", + "description": "kid value" + }, + "kty": { + "type": "string", + "description": "kty value" + }, + "x": { + "type": "string", + "description": "x value" + }, + "y": { + "type": "string", + "description": "y value" + } + } + }, + "History": { + "description": "A list of unstructured historical data for v1 compatibility", + "properties": { + "v1Compatibility": { + "type": "string", + "description": "The raw v1 compatibility information" + } + }, + "example": { + "v1Compatibility": "v1 compatibility info" + } + }, + "Repositories": { + "description": "List of repositories", + "properties": { + "repositories": { + "type": "array", + "x-ms-client-name": "Names", + "description": "Repository names", + "items": { + "type": "string" + } + } + }, + "example": { + "repositories": [ + "production/alpine", + "testing/alpine" + ] + } + }, + "DeletedRepository": { + "description": "Deleted repository", + "properties": { + "manifestsDeleted": { + "type": "array", + "description": "SHA of the deleted image", + "items": { + "type": "string" + } + }, + "tagsDeleted": { + "type": "array", + "description": "Tag of the deleted image", + "items": { + "type": "string" + } + } + } + }, + "AcrErrorInfo": { + "description": "Error information", + "properties": { + "code": { + "description": "Error code", + "type": "string" + }, + "message": { + "type": "string", + "description": "Error message" + }, + "detail": { + "type": "object", + "description": "Error details" + } + } + }, + "FsLayer": { + "description": "Image layer information", + "properties": { + "blobSum": { + "type": "string", + "description": "SHA of an image layer" + } + }, + "example": { + "blobSum": "sha256:1f7d468f830cb0ed4beb8edc9438f18096e8c682e56a35242f60e6c61b718b30" + } + }, + "V2Descriptor": { + "description": "Docker V2 image layer descriptor including config and layers", + "properties": { + "mediaType": { + "type": "string", + "description": "Layer media type" + }, + "size": { + "type": "integer", + "description": "Layer size" + }, + "digest": { + "type": "string", + "description": "Layer digest" + } + }, + "example": { + "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", + "size": 2107098, + "digest": "sha256:5d20c808ce198565ff70b3ed23a991dd49afac45dece63474b27ce6ed036adc6" + } + }, + "ChangeableAttributes": { + "properties": { + "deleteEnabled": { + "type": "boolean", + "description": "Delete enabled" + }, + "writeEnabled": { + "type": "boolean", + "description": "Write enabled" + }, + "listEnabled": { + "type": "boolean", + "description": "List enabled" + }, + "readEnabled": { + "type": "boolean", + "description": "Read enabled" + } + }, + "example": { + "readEnabled": true, + "listEnabled": true, + "deleteEnabled": true, + "writeEnabled": true + } + }, + "TagAttributes_tag": { + "description": "Tag", + "properties": { + "signatureRecord": { + "description": "SignatureRecord value", + "type": "string" + } + }, + "example": { + "signatureRecord": "signatureRecord" + } + }, + "ManifestAttributes_manifest_references": { + "description": "Manifest attributes details", + "properties": { + "digest": { + "type": "string", + "description": "Manifest digest" + }, + "architecture": { + "type": "string", + "description": "CPU architecture" + }, + "os": { + "type": "string", + "description": "Operating system" + } + }, + "example": { + "os": "os", + "digest": "digest", + "architecture": "architecture" + } + }, + "ManifestAttributes_manifest": { + "description": "List of manifest attributes", + "properties": { + "references": { + "type": "array", + "description": "List of manifest attributes details", + "items": { + "$ref": "#/definitions/ManifestAttributes_manifest_references", + "description": "Manifest attributes details" + } + }, + "quarantineTag": { + "type": "string", + "description": "Quarantine tag name" + } + }, + "example": { + "quarantineTag": "quarantineTag", + "references": [ + { + "os": "os", + "digest": "digest", + "architecture": "architecture" + }, + { + "os": "os", + "digest": "digest", + "architecture": "architecture" + } + ] + } + }, + "ManifestChangeableAttributes": { + "description": "Changeable attributes", + "properties": { + "deleteEnabled": { + "type": "boolean", + "description": "Delete enabled" + }, + "writeEnabled": { + "type": "boolean", + "description": "Write enabled" + }, + "listEnabled": { + "type": "boolean", + "description": "List enabled" + }, + "readEnabled": { + "type": "boolean", + "description": "Read enabled" + }, + "quarantineState": { + "type": "string", + "description": "Quarantine state" + }, + "quarantineDetails": { + "type": "string", + "description": "Quarantine details" + } + }, + "example": { + "quarantineDetails": "quarantineDetails", + "readEnabled": true, + "quarantineState": "quarantineState", + "listEnabled": true, + "deleteEnabled": true, + "writeEnabled": true + } + } + }, + "parameters": { + "Url": { + "name": "url", + "x-ms-client-name": "loginUri", + "description": "Registry login URL", + "required": true, + "type": "string", + "in": "path", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "client" + }, + "ImageReference": { + "name": "reference", + "in": "path", + "description": "A tag or a digest, pointing to a specific image", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ManifestReference": { + "name": "reference", + "in": "path", + "description": "Tag or digest of the target manifest", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "Digest": { + "name": "digest", + "in": "path", + "description": "Digest of a desired BLOB", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "metadata": { + "name": "metadata", + "in": "path", + "description": "Name of the metadata", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "property": { + "name": "property", + "in": "path", + "description": "Name of the property", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "RepoValue": { + "name": "value", + "in": "body", + "description": "Repository attribute value", + "required": false, + "schema": { + "$ref": "#/definitions/ChangeableAttributes" + }, + "x-ms-parameter-location": "method" + }, + "QueryOrderBy": { + "name": "orderby", + "in": "query", + "description": "orderby query parameter", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "QueryNum": { + "name": "n", + "in": "query", + "description": "query parameter for max number of items", + "required": false, + "type": "integer", + "x-ms-parameter-location": "method" + }, + "QueryLast": { + "name": "last", + "in": "query", + "description": "Query parameter for the last item in previous query. Result set will include values lexically after last.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "QueryDigest": { + "name": "digest", + "in": "query", + "description": "filter by digest", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "Grant_type": { + "name": "grant_type", + "description": "Can take a value of access_token_refresh_token, or access_token, or refresh_token", + "type": "string", + "in": "formData", + "required": true, + "enum": [ + "access_token_refresh_token", + "access_token", + "refresh_token" + ], + "x-ms-parameter-location": "method" + }, + "Service": { + "name": "service", + "in": "formData", + "required": true, + "description": "Indicates the name of your Azure container registry.", + "type": "string", + "x-ms-parameter-location": "method" + }, + "Tenant": { + "name": "tenant", + "in": "formData", + "required": false, + "description": "AAD tenant associated to the AAD credentials.", + "type": "string", + "x-ms-parameter-location": "method" + }, + "Scope": { + "name": "scope", + "in": "formData", + "required": true, + "description": "Which is expected to be a valid scope, and can be specified more than once for multiple scope requests. You can obtain this from the Www-Authenticate response header from the challenge.", + "type": "string", + "x-ms-parameter-location": "method" + }, + "RefreshToken": { + "name": "refresh_token", + "in": "formData", + "required": false, + "description": "AAD refresh token, mandatory when grant_type is access_token_refresh_token or refresh_token", + "type": "string", + "x-ms-parameter-location": "method" + }, + "AccessToken": { + "name": "access_token", + "in": "formData", + "required": false, + "description": "AAD access token, mandatory when grant_type is access_token_refresh_token or access_token.", + "type": "string", + "x-ms-parameter-location": "method" + }, + "ImageName": { + "name": "name", + "in": "path", + "description": "Name of the image (including the namespace)", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ManifestBody": { + "description": "Manifest body, can take v1 or v2 values depending on accept header", + "name": "payload", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Manifest" + }, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/CreateManifest.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/CreateManifest.json new file mode 100644 index 000000000000..9009925c6027 --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/CreateManifest.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "hello-world", + "reference": "a20190628-081044z", + "payload": "{\"schemaVersion\":2,\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"config\":{\"mediaType\":\"application/vnd.docker.container.image.v1+json\",\"size\":1512,\"digest\":\"sha256:6d1ef012b5674ad8a127ecfa9b5e6f5178d171b90ee462846974177fd9bdd39f\"},\"layers\":[{\"mediaType\":\"application/vnd.docker.image.rootfs.diff.tar.gzip\",\"size\":2107098,\"digest\":\"sha256:5d20c808ce198565ff70b3ed23a991dd49afac45dece63474b27ce6ed036adc6\"}]}" + }, + "responses": { + "201": { + "headers": { + "Docker-Content-Digest": "sha256:15685c48490175b7dde62e6bfcfb54d9420c6495ea6404776e2facca3da93cd8", + "Location": "/v2/hello-world/manifests/sha256:15685c48490175b7dde62e6bfcfb54d9420c6495ea6404776e2facca3da93cd8", + "Content-Length": 0 + }, + "body": {} + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/DeleteAcrRepository.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/DeleteAcrRepository.json new file mode 100644 index 000000000000..8449e47855ec --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/DeleteAcrRepository.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "nanoserver" + }, + "responses": { + "202": { + "body": { + "manifestsDeleted": [ + "sha256:e31831d63f77a0a6d74ef5b16df619a50808dac842190d07ae24e8b520d159fa" + ], + "tagsDeleted": [ + "4.7.2-20180814-windowsservercore-1709" + ] + } + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/DeleteAcrTag.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/DeleteAcrTag.json new file mode 100644 index 000000000000..fec441eeaf12 --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/DeleteAcrTag.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "nanoserver", + "reference": "4.7.2-20180905-nanoserver-1803" + }, + "responses": { + "202": {} + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/DeleteManifest.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/DeleteManifest.json new file mode 100644 index 000000000000..50afe0bd523e --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/DeleteManifest.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "alpine", + "reference": "3.7" + }, + "responses": { + "202": {} + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAccessToken.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAccessToken.json new file mode 100644 index 000000000000..416fd08ca49b --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAccessToken.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "service": "someregistry.azurecr.io", + "scope": "registry:catalog:*" + }, + "responses": { + "200": { + "body": { + "access_token": "eyJ0eXAiOiJKJhbGcigdCI6IkN0ZlFaOExlLTMejlnIiwidGlkIjoiNzbmOTgWItMmQ3Y2QwMTFkYjQ3Ii..." + } + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrManifestAttributes.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrManifestAttributes.json new file mode 100644 index 000000000000..a8163814b8c1 --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrManifestAttributes.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "nanoserver", + "reference": "sha256:110d2b6c84592561338aa040b1b14b7ab81c2f9edbd564c2285dd7d70d777086" + }, + "responses": { + "200": { + "body": { + "registry": "acrapi.azurecr-test.io", + "imageName": "nanoserver", + "manifest": { + "digest": "sha256:110d2b6c84592561338aa040b1b14b7ab81c2f9edbd564c2285dd7d70d777086", + "imageSize": 2401606, + "createdTime": "2018-09-06T06:17:20.9983915Z", + "lastUpdateTime": "2018-09-06T06:17:20.9983915Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2+json", + "configMediaType": "application/vnd.docker.container.image.v1+json", + "tags": [ + "4.7.2-20180905-nanoserver-1803" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrManifests.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrManifests.json new file mode 100644 index 000000000000..08eaec214eca --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrManifests.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "nanoserver" + }, + "responses": { + "200": { + "body": { + "registry": "acrapi.azurecr-test.io", + "imageName": "nanoserver", + "manifests": [ + { + "digest": "sha256:110d2b6c84592561338aa040b1b14b7ab81c2f9edbd564c2285dd7d70d777086", + "imageSize": 2401606, + "createdTime": "2018-09-06T06:17:20.9983915Z", + "lastUpdateTime": "2018-09-06T06:17:20.9983915Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2+json", + "configMediaType": "application/vnd.docker.container.image.v1+json", + "tags": [ + "4.7.2-20180905-nanoserver-1803" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:7af5cd1dde3e8f5c2c9103860afa4ca871a6075373b6564b0e7b1b47866dab52", + "imageSize": 4135121, + "createdTime": "2018-09-07T16:30:46.5651701Z", + "lastUpdateTime": "2018-09-07T16:30:46.5651701Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2+json", + "configMediaType": "application/vnd.docker.container.image.v1+json", + "tags": [ + "4.7.2-20180906-nanoserver-1803" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrRepositoryAttributes.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrRepositoryAttributes.json new file mode 100644 index 000000000000..c6791683bfd2 --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrRepositoryAttributes.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "nanoserver" + }, + "responses": { + "200": { + "body": { + "registry": "acrapi.azurecr-test.io", + "imageName": "nanoserver", + "createdTime": "2018-09-06T06:17:20.9531248Z", + "lastUpdateTime": "2018-09-07T16:30:46.6583219Z", + "manifestCount": 2, + "tagCount": 2, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrTagAttributes.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrTagAttributes.json new file mode 100644 index 000000000000..ed58c44d6f71 --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrTagAttributes.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "test/bash", + "reference": "sha256:eabe547f78d4c18c708dd97ec3166cf7464cc651f1cbb67e7afas407405b7ad7b6" + }, + "responses": { + "200": { + "body": { + "registry": "acrapi.azurecr-test.io", + "imageName": "test/bash", + "tag": { + "name": "tagName", + "digest": "sha256:eabe547f78d4c18c708dd97ec3166cf7464cc651f1cbb67e70d407405b7ad7b6", + "createdTime": "2018-10-05T20:54:24.1286047Z", + "lastUpdateTime": "2018-10-05T20:54:24.1286047Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": false, + "readEnabled": true, + "listEnabled": true + } + } + } + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrTags.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrTags.json new file mode 100644 index 000000000000..e5342cd2295f --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetAcrTags.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "nanoserver" + }, + "responses": { + "200": { + "body": { + "registry": "acrapi.azurecr-test.io", + "imageName": "nanoserver", + "tags": [ + { + "name": "4.7.2-20180905-nanoserver-1803", + "digest": "sha256:110d2b6c84592561338aa040b1b14b7ab81c2f9edbd564c2285dd7d70d777086", + "createdTime": "2018-09-06T06:17:21.0856539Z", + "lastUpdateTime": "2018-09-06T06:17:21.0856539Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "4.7.2-20180906-nanoserver-1803", + "digest": "sha256:7af5cd1dde3e8f5c2c9103860afa4ca871a6075373b6564b0e7b1b47866dab52", + "createdTime": "2018-09-06T16:30:43.3860166Z", + "lastUpdateTime": "2018-09-07T16:30:46.7022734Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetDockerRegistryV2Support.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetDockerRegistryV2Support.json new file mode 100644 index 000000000000..181e2eec438e --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetDockerRegistryV2Support.json @@ -0,0 +1,8 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io" + }, + "responses": { + "200": {} + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetManifest.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetManifest.json new file mode 100644 index 000000000000..2768e76d6a0d --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetManifest.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "hello-world-dangling", + "reference": "20190628-033033z", + "accept": "application/vnd.docker.distribution.manifest.v2+json" + }, + "responses": { + "200": { + "body": { + "schemaVersion": 2, + "mediaType": "application/vnd.docker.distribution.manifest.v2+json", + "config": { + "mediaType": "application/vnd.docker.container.image.v1+json", + "size": 5824, + "digest": "sha256:691fbc2d44fff48357bba69ab0505b9bf12b2b250a925a84a0b8e8e7eed390b2" + }, + "layers": [ + { + "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", + "size": 2014658, + "digest": "sha256:a073c86ecf9e0f29180e80e9638d4c741970695851ea48247276c32c57e40282" + }, + { + "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", + "size": 19778035, + "digest": "sha256:0e28711eb56d78f1e3dfde1807eba529d1346222bcd07d1cb1e436a18a0388bd" + }, + { + "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", + "size": 1074044, + "digest": "sha256:e460dd483fddb555911f7ed188c319fd97542c60e36843dcb1c5d753f733e1fa" + }, + { + "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", + "size": 5827, + "digest": "sha256:6aa301222093bfb8cf424ccb387f59e2c9510c3a30cca7fbcf8c954f88e6600c" + }, + { + "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", + "size": 568, + "digest": "sha256:9c5d80083a57d565f684e0155707204d497a5ad965279f92927452f15dae17e6" + } + ] + } + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetRepositories.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetRepositories.json new file mode 100644 index 000000000000..4b6864e0ea95 --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetRepositories.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io" + }, + "responses": { + "200": { + "body": { + "repositories": [ + "production/alpine", + "testing/alpine" + ] + } + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetTagList.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetTagList.json new file mode 100644 index 000000000000..c1e81b2f664e --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/GetTagList.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "nanoserver" + }, + "responses": { + "200": { + "body": { + "name": "nanoserver", + "tags": [ + "4.7.2-20180905-nanoserver-1803", + "4.7.2-20180906-nanoserver-1803" + ] + } + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/PostAccessToken.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/PostAccessToken.json new file mode 100644 index 000000000000..a4e6293133b5 --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/PostAccessToken.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "grant_type": "refresh_token", + "service": "someregistry.azurecr.io", + "scope": "registry:catalog:*", + "refresh_token": "eyJ0eXAiOiJKJhbGci1dCI6IkN0ZlFDOExlLTMejlnIiwidGlkIjoiNzJmOTgWItMmQ3Y2QwMTFkYjQ3Ii..." + }, + "responses": { + "200": { + "body": { + "access_token": "eyJ0eXAiOiJKJhbGcigdCI6IkN0ZlFaOExlLTMejlnIiwidGlkIjoiNzbmOTgWItMmQ3Y2QwMTFkYjQ3Ii..." + } + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/PostRefreshToken.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/PostRefreshToken.json new file mode 100644 index 000000000000..768ca1680ba1 --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/PostRefreshToken.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "grant_type": "access_token", + "url": "acrapi.azurecr-test.io", + "service": "someregistry.azurecr.io", + "tenant": "02f900bf-86f1-31af-p1ab-2b7cd0nndb47", + "accessToken": "eyJ0eXAiOiJKJhbGci1dCI6IkN0ZlFDOExlLTMejlnIiwidGlkIjoiNzJmOTgWItMmQ3Y2QwMTFkYjQ3Ii..." + }, + "responses": { + "200": { + "body": { + "refresh_token": "eyJ0eXAiOiJKJhbGcigdCI6IkN0ZlFaOExlLTMejlnIiwidGlkIjoiNzbmOTgWItMmQ3Y2QwMTFkYjQ3Ii..." + } + } + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/UpdateAcrManifestAttributes.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/UpdateAcrManifestAttributes.json new file mode 100644 index 000000000000..4c25514ab2f2 --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/UpdateAcrManifestAttributes.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "nanoserver", + "reference": "sha256:110d2b6c84592561338aa040b1b14b7ab81c2f9edbd564c2285dd7d70d777086", + "value": "{\"writeEnabled\": false}" + }, + "responses": { + "200": {} + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/UpdateAcrRepository.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/UpdateAcrRepository.json new file mode 100644 index 000000000000..14a61f118d0f --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/UpdateAcrRepository.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "nanoserver", + "value": { + "writeEnabled": false + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/UpdateAcrTagAttributes.json b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/UpdateAcrTagAttributes.json new file mode 100644 index 000000000000..16e13e3c4ec2 --- /dev/null +++ b/specification/containerregistry/data-plane/Microsoft.ContainerRegistry/preview/2019-07-15/examples/UpdateAcrTagAttributes.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "url": "acrapi.azurecr-test.io", + "name": "nanoserver", + "reference": "4.7.2-20180905-nanoserver-1803", + "value": "{\"writeEnabled\": false}" + }, + "responses": { + "200": {} + } +} diff --git a/specification/containerregistry/data-plane/readme.go.md b/specification/containerregistry/data-plane/readme.go.md new file mode 100644 index 000000000000..97ef4154aa73 --- /dev/null +++ b/specification/containerregistry/data-plane/readme.go.md @@ -0,0 +1,27 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + namespace: containerregistry + clear-output-folder: true + add-credentials: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2019-07 +``` + +### Tag: package-2019-07 and go + +These settings apply only when `--tag=package-2019-07 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2019-07' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/runtime/2019-07/$(namespace) +``` diff --git a/specification/containerregistry/data-plane/readme.md b/specification/containerregistry/data-plane/readme.md index 7a48a2056db5..2ad5a15737c2 100644 --- a/specification/containerregistry/data-plane/readme.md +++ b/specification/containerregistry/data-plane/readme.md @@ -1,13 +1,13 @@ # ContainerRegistry - + > see https://aka.ms/autorest This is the AutoRest configuration file for ContainerRegistry. +--- +## Getting Started ---- -## Getting Started To build the SDK for ContainerRegistry, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -19,14 +19,23 @@ To see additional help and options, run: ## Configuration +### Basic Information -#### Basic Information These are the global settings for the ContainerRegistry API. ``` yaml -# common +# common openapi-type: data-plane -tag: package-2018-08 +tag: package-2019-07 +``` + +### Tag: package-2019-07 + +These settings apply only when `--tag=package-2019-07` is specified on the command line. + +``` yaml $(tag) == 'package-2019-07' +input-file: +- Microsoft.ContainerRegistry/preview/2019-07-15/containerregistry.json ``` ### Tag: package-2018-08 @@ -39,7 +48,6 @@ input-file: ``` --- -# Code Generation ## Swagger to SDK @@ -49,6 +57,7 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-sdk-for-net + - repo: azure-sdk-for-go ``` ## C# @@ -62,7 +71,54 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.ContainerRegistry sync-methods: None - output-folder: $(csharp-sdks-folder)/ContainerRegistry/Microsoft.Azure.ContainerRegistry/src/Generated + output-folder: $(csharp-sdks-folder)/ContainerRegistry/preview/Microsoft.Azure.ContainerRegistry/src/Generated clear-output-folder: true add-credentials: true -``` \ No newline at end of file +``` + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Suppression + +``` yaml +directive: + - suppress: DefinitionsPropertiesNamesCamelCase + from: containerregistry.json + where: $.definitions.AccessToken.properties.access_token + reason: Property name is used in compliance with Docker's own specs for compatibility purposes. Specifics https://docs.docker.com/registry/spec/auth/oauth/ + - suppress: DefinitionsPropertiesNamesCamelCase + from: containerregistry.json + where: $.definitions.RefreshToken.properties.refresh_token + reason: Property name is used in compliance with Docker's own specs for compatibility purposes. Specifics https://docs.docker.com/registry/spec/auth/oauth/ + - suppress: LROStatusCodesReturnTypeSchema + reason: No content is returned by put Manifest in compliance with Docker's own specs for compatibility purposes. Specifics https://docs.docker.com/registry/spec/api/#put-manifest + from: containerregistry.json + where: $.paths["/v2/{name}/manifests/{reference}"].put.responses["201"] +``` +## 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.ContainerRegistry/preview/2019-07-15/containerregistry.json + - $(this-folder)/Microsoft.ContainerRegistry/preview/2018-08-10/containerregistry.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/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/containerregistry_build.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/containerregistry_build.json new file mode 100644 index 000000000000..f3362eb1fe81 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/containerregistry_build.json @@ -0,0 +1,2646 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-06-01-preview", + "title": "ContainerRegistryManagementClient" + }, + "host": "management.azure.com", + "basePath": "/", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun": { + "post": { + "tags": [ + "Registries" + ], + "description": "Schedules a new run based on the request parameters and add it to the run queue.", + "operationId": "Registries_ScheduleRun", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "runRequest", + "in": "body", + "description": "The parameters of a run that needs to scheduled.", + "required": true, + "schema": { + "$ref": "#/definitions/RunRequest" + } + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Run" + } + }, + "202": { + "description": "The request was successfully accepted; the operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed. If the registry/run doesn't exist, 404 (Not found) is returned. If any of the input parameters is wrong, 400(Bad Request) is returned." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Registries_ScheduleRun": { + "$ref": "./examples/RegistriesScheduleRun.json" + }, + "Registries_ScheduleRun_EncodedTaskRun": { + "$ref": "./examples/RegistriesScheduleRun_EncodedTaskRun.json" + }, + "Registries_ScheduleRun_FileTaskRun": { + "$ref": "./examples/RegistriesScheduleRun_FileTaskRun.json" + }, + "Registries_ScheduleRun_Task": { + "$ref": "./examples/RegistriesScheduleRun_Task.json" + }, + "Registries_ScheduleRun_Task_WithCustomCredentials": { + "$ref": "./examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json" + }, + "Registries_ScheduleRun_WithCustomCredentials": { + "$ref": "./examples/RegistriesScheduleRun_WithCustomCredentials.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listBuildSourceUploadUrl": { + "post": { + "tags": [ + "Registries" + ], + "description": "Get the upload location for the user to be able to upload the source.", + "operationId": "Registries_GetBuildSourceUploadUrl", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/SourceUploadDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry doesn't exist, 404 (Not found) is returned." + } + }, + "x-ms-examples": { + "Registries_GetBuildSourceUploadUrl": { + "$ref": "./examples/RegistriesGetBuildSourceUploadUrl.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs": { + "get": { + "tags": [ + "Runs" + ], + "description": "Gets all the runs for a registry.", + "operationId": "Runs_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "The runs filter to apply on the operation. Arithmetic operators are not supported. The allowed string function is 'contains'. All logical operators except 'Not', 'Has', 'All' are allowed.", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "$top is supported for get list of runs, which limits the maximum number of runs to return.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/RunListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-odata": "#/definitions/RunFilter", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Runs_List": { + "$ref": "./examples/RunsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}": { + "get": { + "tags": [ + "Runs" + ], + "description": "Gets the detailed information for a given run.", + "operationId": "Runs_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "runId", + "in": "path", + "description": "The run ID.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Run" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry/run doesn't exist, 404 (Not found) is returned." + } + }, + "x-ms-examples": { + "Runs_Get": { + "$ref": "./examples/RunsGet.json" + } + } + }, + "patch": { + "tags": [ + "Runs" + ], + "description": "Patch the run properties.", + "operationId": "Runs_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "runId", + "in": "path", + "description": "The run ID.", + "required": true, + "type": "string" + }, + { + "name": "runUpdateParameters", + "in": "body", + "description": "The run update properties.", + "required": true, + "schema": { + "$ref": "#/definitions/RunUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Run" + } + }, + "201": { + "description": "The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource.", + "schema": { + "$ref": "#/definitions/Run" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry/build doesn't exist, 404 (Not found) is returned. If any of the input parameters is wrong, 400(Bad Request) is returned." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Runs_Update": { + "$ref": "./examples/RunsUpdate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/listLogSasUrl": { + "post": { + "tags": [ + "Runs" + ], + "description": "Gets a link to download the run logs.", + "operationId": "Runs_GetLogSasUrl", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "runId", + "in": "path", + "description": "The run ID.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/RunGetLogResult" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry/run doesn't exist, 404 (Not found) is returned." + } + }, + "x-ms-examples": { + "Runs_GetLogSasUrl": { + "$ref": "./examples/RunsGetLogSasUrl.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/cancel": { + "post": { + "tags": [ + "Runs" + ], + "description": "Cancel an existing run.", + "operationId": "Runs_Cancel", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "runId", + "in": "path", + "description": "The run ID.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly." + }, + "202": { + "description": "The request was successfully accepted; the operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed. If the registry/run doesn't exist, 404 (Not found) is returned." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Runs_Cancel": { + "$ref": "./examples/RunsCancel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks": { + "get": { + "tags": [ + "Tasks" + ], + "description": "Lists all the tasks for a specified container registry.", + "operationId": "Tasks_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/TaskListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Tasks_List": { + "$ref": "./examples/TasksList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}": { + "get": { + "tags": [ + "Tasks" + ], + "description": "Get the properties of a specified task.", + "operationId": "Tasks_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TaskNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Task" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry doesn't exist, 404 (Not found) is returned." + } + }, + "x-ms-examples": { + "Tasks_Get": { + "$ref": "./examples/TasksGet.json" + } + } + }, + "put": { + "tags": [ + "Tasks" + ], + "description": "Creates a task for a container registry with the specified parameters.", + "operationId": "Tasks_Create", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TaskNameParameter" + }, + { + "name": "taskCreateParameters", + "in": "body", + "description": "The parameters for creating a task.", + "required": true, + "schema": { + "$ref": "#/definitions/Task" + } + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Task" + } + }, + "201": { + "description": "The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource.", + "schema": { + "$ref": "#/definitions/Task" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry doesn't exist, 404 (Not found) is returned. If any of the input parameters is wrong, 400(Bad Request) is returned." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Tasks_Create": { + "$ref": "./examples/TasksCreate.json" + }, + "Tasks_Create_WithSystemAndUserIdentities": { + "$ref": "./examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json" + }, + "Tasks_Create_WithUserIdentities_WithSystemIdentity": { + "$ref": "./examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json" + }, + "Tasks_Create_WithUserIdentities": { + "$ref": "./examples/ManagedIdentity/TasksCreate_WithUserIdentities.json" + } + } + }, + "delete": { + "tags": [ + "Tasks" + ], + "description": "Deletes a specified task.", + "operationId": "Tasks_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TaskNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly." + }, + "202": { + "description": "The request was successfully accepted; the operation will complete asynchronously." + }, + "204": { + "description": "No Content - the specified resource was not found." + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Tasks_Delete": { + "$ref": "./examples/TasksDelete.json" + } + } + }, + "patch": { + "tags": [ + "Tasks" + ], + "description": "Updates a task with the specified parameters.", + "operationId": "Tasks_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TaskNameParameter" + }, + { + "name": "taskUpdateParameters", + "in": "body", + "description": "The parameters for updating a task.", + "required": true, + "schema": { + "$ref": "#/definitions/TaskUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Task" + } + }, + "201": { + "description": "The request was successfully accepted; the operation will complete asynchronously. The provisioning state of the resource should indicate the current state of the resource.", + "schema": { + "$ref": "#/definitions/Task" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry doesn't exist, 404 (Not found) is returned. If any of the input parameters is wrong, 400(Bad Request) is returned." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Tasks_Update": { + "$ref": "./examples/TasksUpdate.json" + }, + "Tasks_Update_WithKeyVaultCustomCredentials": { + "$ref": "./examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json" + }, + "Tasks_Update_WithMSICustomCredentials": { + "$ref": "./examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json" + }, + "Tasks_Update_WithOpaqueCustomCredentials": { + "$ref": "./examples/TasksUpdate_WithOpaqueCustomCredentials.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}/listDetails": { + "post": { + "tags": [ + "Tasks" + ], + "description": "Returns a task with extended information that includes all secrets.", + "operationId": "Tasks_GetDetails", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RegistryNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TaskNameParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/Task" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the registry doesn't exist, 404 (Not found) is returned." + } + }, + "x-ms-examples": { + "Tasks_GetDetails": { + "$ref": "./examples/TasksGetDetails.json" + } + } + } + } + }, + "definitions": { + "RunRequest": { + "description": "The request parameters for scheduling a run.", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "description": "The type of the run request.", + "type": "string" + }, + "isArchiveEnabled": { + "description": "The value that indicates whether archiving is enabled for the run or not.", + "default": false, + "type": "boolean" + } + }, + "discriminator": "type" + }, + "Run": { + "description": "Run resource properties", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/RunProperties", + "description": "The properties of a run.", + "x-ms-client-flatten": true + } + } + }, + "RunProperties": { + "description": "The properties for a run.", + "type": "object", + "properties": { + "runId": { + "description": "The unique identifier for the run.", + "type": "string" + }, + "status": { + "description": "The current status of the run.", + "enum": [ + "Queued", + "Started", + "Running", + "Succeeded", + "Failed", + "Canceled", + "Error", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "RunStatus", + "modelAsString": true + } + }, + "lastUpdatedTime": { + "format": "date-time", + "description": "The last updated time for the run.", + "type": "string" + }, + "runType": { + "description": "The type of run.", + "enum": [ + "QuickBuild", + "QuickRun", + "AutoBuild", + "AutoRun" + ], + "type": "string", + "x-ms-enum": { + "name": "RunType", + "modelAsString": true + } + }, + "createTime": { + "format": "date-time", + "description": "The time the run was scheduled.", + "type": "string" + }, + "startTime": { + "format": "date-time", + "description": "The time the run started.", + "type": "string" + }, + "finishTime": { + "format": "date-time", + "description": "The time the run finished.", + "type": "string" + }, + "outputImages": { + "description": "The list of all images that were generated from the run. This is applicable if the run generates base image dependencies.", + "type": "array", + "items": { + "$ref": "#/definitions/ImageDescriptor" + } + }, + "task": { + "description": "The task against which run was scheduled.", + "type": "string" + }, + "imageUpdateTrigger": { + "$ref": "#/definitions/ImageUpdateTrigger", + "description": "The image update trigger that caused the run. This is applicable if the task has base image trigger configured." + }, + "sourceTrigger": { + "$ref": "#/definitions/SourceTriggerDescriptor", + "description": "The source trigger that caused the run." + }, + "timerTrigger": { + "$ref": "#/definitions/TimerTriggerDescriptor", + "description": "The timer trigger that caused the run." + }, + "platform": { + "$ref": "#/definitions/PlatformProperties", + "description": "The platform properties against which the run will happen." + }, + "agentConfiguration": { + "$ref": "#/definitions/AgentProperties", + "description": "The machine configuration of the run agent." + }, + "sourceRegistryAuth": { + "description": "The scope of the credentials that were used to login to the source registry during this run.", + "type": "string" + }, + "customRegistries": { + "description": "The list of custom registries that were logged in during this run.", + "type": "array", + "items": { + "type": "string" + } + }, + "runErrorMessage": { + "description": "The error message received from backend systems after the run is scheduled.", + "type": "string", + "readOnly": true + }, + "updateTriggerToken": { + "description": "The update trigger token passed for the Run.", + "type": "string" + }, + "provisioningState": { + "description": "The provisioning state of a run.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "isArchiveEnabled": { + "description": "The value that indicates whether archiving is enabled or not.", + "default": false, + "type": "boolean" + } + } + }, + "ImageDescriptor": { + "description": "Properties for a registry image.", + "type": "object", + "properties": { + "registry": { + "description": "The registry login server.", + "type": "string" + }, + "repository": { + "description": "The repository name.", + "type": "string" + }, + "tag": { + "description": "The tag name.", + "type": "string" + }, + "digest": { + "description": "The sha256-based digest of the image manifest.", + "type": "string" + } + } + }, + "ImageUpdateTrigger": { + "description": "The image update trigger that caused a build.", + "type": "object", + "properties": { + "id": { + "description": "The unique ID of the trigger.", + "type": "string" + }, + "timestamp": { + "format": "date-time", + "description": "The timestamp when the image update happened.", + "type": "string" + }, + "images": { + "description": "The list of image updates that caused the build.", + "type": "array", + "items": { + "$ref": "#/definitions/ImageDescriptor" + } + } + } + }, + "SourceTriggerDescriptor": { + "description": "The source trigger that caused a run.", + "type": "object", + "properties": { + "id": { + "description": "The unique ID of the trigger.", + "type": "string" + }, + "eventType": { + "description": "The event type of the trigger.", + "type": "string" + }, + "commitId": { + "description": "The unique ID that identifies a commit.", + "type": "string" + }, + "pullRequestId": { + "description": "The unique ID that identifies pull request.", + "type": "string" + }, + "repositoryUrl": { + "description": "The repository URL.", + "type": "string" + }, + "branchName": { + "description": "The branch name in the repository.", + "type": "string" + }, + "providerType": { + "description": "The source control provider type.", + "type": "string" + } + } + }, + "TimerTriggerDescriptor": { + "type": "object", + "properties": { + "timerTriggerName": { + "description": "The timer trigger name that caused the run.", + "type": "string" + }, + "scheduleOccurrence": { + "description": "The occurrence that triggered the run.", + "type": "string" + } + } + }, + "PlatformProperties": { + "description": "The platform properties against which the run has to happen.", + "required": [ + "os" + ], + "type": "object", + "properties": { + "os": { + "description": "The operating system type required for the run.", + "enum": [ + "Windows", + "Linux" + ], + "type": "string", + "x-ms-enum": { + "name": "OS", + "modelAsString": true + } + }, + "architecture": { + "description": "The OS architecture.", + "enum": [ + "amd64", + "x86", + "386", + "arm", + "arm64" + ], + "type": "string", + "x-ms-enum": { + "name": "Architecture", + "modelAsString": true + } + }, + "variant": { + "description": "Variant of the CPU.", + "enum": [ + "v6", + "v7", + "v8" + ], + "type": "string", + "x-ms-enum": { + "name": "Variant", + "modelAsString": true + } + } + } + }, + "AgentProperties": { + "description": "The properties that determine the run agent configuration.", + "type": "object", + "properties": { + "cpu": { + "format": "int32", + "description": "The CPU configuration in terms of number of cores required for the run.", + "type": "integer" + } + } + }, + "SourceUploadDefinition": { + "description": "The properties of a response to source upload request.", + "type": "object", + "properties": { + "uploadUrl": { + "description": "The URL where the client can upload the source.", + "type": "string" + }, + "relativePath": { + "description": "The relative path to the source. This is used to submit the subsequent queue build request.", + "type": "string" + } + } + }, + "RunListResult": { + "description": "Collection of runs.", + "type": "object", + "properties": { + "value": { + "description": "The collection value.", + "type": "array", + "items": { + "$ref": "#/definitions/Run" + } + }, + "nextLink": { + "description": "The URI that can be used to request the next set of paged results.", + "type": "string" + } + } + }, + "RunFilter": { + "description": "Properties that are enabled for Odata querying on runs.", + "type": "object", + "properties": { + "runId": { + "description": "The unique identifier for the run.", + "type": "string" + }, + "runType": { + "description": "The type of run.", + "enum": [ + "QuickBuild", + "QuickRun", + "AutoBuild", + "AutoRun" + ], + "type": "string", + "x-ms-enum": { + "name": "RunType", + "modelAsString": true + } + }, + "status": { + "description": "The current status of the run.", + "enum": [ + "Queued", + "Started", + "Running", + "Succeeded", + "Failed", + "Canceled", + "Error", + "Timeout" + ], + "type": "string", + "x-ms-enum": { + "name": "RunStatus", + "modelAsString": true + } + }, + "createTime": { + "format": "date-time", + "description": "The create time for a run.", + "type": "string" + }, + "finishTime": { + "format": "date-time", + "description": "The time the run finished.", + "type": "string" + }, + "outputImageManifests": { + "description": "The list of comma-separated image manifests that were generated from the run. This is applicable if the run is of\r\nbuild type.", + "type": "string" + }, + "isArchiveEnabled": { + "description": "The value that indicates whether archiving is enabled or not.", + "type": "boolean" + }, + "taskName": { + "description": "The name of the task that the run corresponds to.", + "type": "string" + } + } + }, + "RunUpdateParameters": { + "description": "The set of run properties that can be updated.", + "type": "object", + "properties": { + "isArchiveEnabled": { + "description": "The value that indicates whether archiving is enabled or not.", + "type": "boolean" + } + } + }, + "RunGetLogResult": { + "description": "The result of get log link operation.", + "type": "object", + "properties": { + "logLink": { + "description": "The link to logs for a run on a azure container registry.", + "type": "string" + } + } + }, + "TaskListResult": { + "description": "The collection of tasks.", + "type": "object", + "properties": { + "value": { + "description": "The collection value.", + "type": "array", + "items": { + "$ref": "#/definitions/Task" + } + }, + "nextLink": { + "description": "The URI that can be used to request the next set of paged results.", + "type": "string" + } + } + }, + "Task": { + "description": "The task that has the ARM resource and task properties. \r\nThe task will have all information to schedule a run against it.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "identity": { + "$ref": "#/definitions/IdentityProperties", + "description": "Identity for the resource." + }, + "properties": { + "$ref": "#/definitions/TaskProperties", + "description": "The properties of a task.", + "x-ms-client-flatten": true + } + } + }, + "IdentityProperties": { + "description": "Managed identity for the resource.", + "type": "object", + "properties": { + "principalId": { + "description": "The principal ID of resource identity.", + "type": "string" + }, + "tenantId": { + "description": "The tenant ID of resource.", + "type": "string" + }, + "type": { + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "type": "string", + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "description": "The list of user identities associated with the resource. The user identity \r\ndictionary key references will be ARM resource ids in the form: \r\n'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/\r\n providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/UserIdentityProperties" + } + } + } + }, + "TaskProperties": { + "description": "The properties of a task.", + "required": [ + "platform", + "step" + ], + "type": "object", + "properties": { + "provisioningState": { + "description": "The provisioning state of the task.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "creationDate": { + "format": "date-time", + "description": "The creation date of task.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "The current status of task.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TaskStatus", + "modelAsString": true + } + }, + "platform": { + "$ref": "#/definitions/PlatformProperties", + "description": "The platform properties against which the run has to happen." + }, + "agentConfiguration": { + "$ref": "#/definitions/AgentProperties", + "description": "The machine configuration of the run agent." + }, + "timeout": { + "format": "int32", + "description": "Run timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "step": { + "$ref": "#/definitions/TaskStepProperties", + "description": "The properties of a task step." + }, + "trigger": { + "$ref": "#/definitions/TriggerProperties", + "description": "The properties that describe all triggers for the task." + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The properties that describes a set of credentials that will be used when this run is invoked." + } + } + }, + "UserIdentityProperties": { + "type": "object", + "properties": { + "principalId": { + "description": "The principal id of user assigned identity.", + "type": "string" + }, + "clientId": { + "description": "The client id of user assigned identity.", + "type": "string" + } + } + }, + "TaskStepProperties": { + "description": "Base properties for any task step.", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "description": "The type of the step.", + "enum": [ + "Docker", + "FileTask", + "EncodedTask" + ], + "type": "string", + "x-ms-enum": { + "name": "StepType", + "modelAsString": true + } + }, + "baseImageDependencies": { + "description": "List of base image dependencies for a step.", + "type": "array", + "items": { + "$ref": "#/definitions/BaseImageDependency" + }, + "readOnly": true + }, + "contextPath": { + "description": "The URL(absolute or relative) of the source context for the task step.", + "type": "string" + }, + "contextAccessToken": { + "description": "The token (git PAT or SAS token of storage account blob) associated with the context for a step.", + "type": "string" + } + }, + "discriminator": "type" + }, + "TriggerProperties": { + "description": "The properties of a trigger.", + "type": "object", + "properties": { + "timerTriggers": { + "description": "The collection of timer triggers.", + "type": "array", + "items": { + "$ref": "#/definitions/TimerTrigger" + } + }, + "sourceTriggers": { + "description": "The collection of triggers based on source code repository.", + "type": "array", + "items": { + "$ref": "#/definitions/SourceTrigger" + } + }, + "baseImageTrigger": { + "$ref": "#/definitions/BaseImageTrigger", + "description": "The trigger based on base image dependencies." + } + } + }, + "Credentials": { + "description": "The parameters that describes a set of credentials that will be used when a run is invoked.", + "type": "object", + "properties": { + "sourceRegistry": { + "$ref": "#/definitions/SourceRegistryCredentials", + "description": "Describes the credential parameters for accessing the source registry." + }, + "customRegistries": { + "description": "Describes the credential parameters for accessing other custom registries. The key\r\nfor the dictionary item will be the registry login server (myregistry.azurecr.io) and\r\nthe value of the item will be the registry credentials for accessing the registry.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/CustomRegistryCredentials" + } + } + } + }, + "BaseImageDependency": { + "description": "Properties that describe a base image dependency.", + "type": "object", + "properties": { + "type": { + "description": "The type of the base image dependency.", + "enum": [ + "BuildTime", + "RunTime" + ], + "type": "string", + "x-ms-enum": { + "name": "BaseImageDependencyType", + "modelAsString": true + } + }, + "registry": { + "description": "The registry login server.", + "type": "string" + }, + "repository": { + "description": "The repository name.", + "type": "string" + }, + "tag": { + "description": "The tag name.", + "type": "string" + }, + "digest": { + "description": "The sha256-based digest of the image manifest.", + "type": "string" + } + } + }, + "TimerTrigger": { + "description": "The properties of a timer trigger.", + "required": [ + "schedule", + "name" + ], + "type": "object", + "properties": { + "schedule": { + "description": "The CRON expression for the task schedule", + "type": "string" + }, + "status": { + "description": "The current status of trigger.", + "default": "Enabled", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, + "SourceTrigger": { + "description": "The properties of a source based trigger.", + "required": [ + "sourceRepository", + "sourceTriggerEvents", + "name" + ], + "type": "object", + "properties": { + "sourceRepository": { + "$ref": "#/definitions/SourceProperties", + "description": "The properties that describes the source(code) for the task." + }, + "sourceTriggerEvents": { + "description": "The source event corresponding to the trigger.", + "type": "array", + "items": { + "enum": [ + "commit", + "pullrequest" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceTriggerEvent", + "modelAsString": true + } + } + }, + "status": { + "description": "The current status of trigger.", + "default": "Enabled", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, + "BaseImageTrigger": { + "description": "The trigger based on base image dependency.", + "required": [ + "baseImageTriggerType", + "name" + ], + "type": "object", + "properties": { + "baseImageTriggerType": { + "description": "The type of the auto trigger for base image dependency updates.", + "enum": [ + "All", + "Runtime" + ], + "type": "string", + "x-ms-enum": { + "name": "BaseImageTriggerType", + "modelAsString": true + } + }, + "updateTriggerEndpoint": { + "description": "The endpoint URL for receiving update triggers.", + "type": "string" + }, + "updateTriggerPayloadType": { + "description": "Type of Payload body for Base image update triggers.", + "enum": [ + "Default", + "Token" + ], + "type": "string", + "x-ms-enum": { + "name": "UpdateTriggerPayloadType", + "modelAsString": true + } + }, + "status": { + "description": "The current status of trigger.", + "default": "Enabled", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, + "SourceRegistryCredentials": { + "description": "Describes the credential parameters for accessing the source registry.", + "type": "object", + "properties": { + "loginMode": { + "description": "The authentication mode which determines the source registry login scope. The credentials for the source registry\r\nwill be generated using the given scope. These credentials will be used to login to\r\nthe source registry during the run.", + "enum": [ + "None", + "Default" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceRegistryLoginMode", + "modelAsString": true + } + } + } + }, + "CustomRegistryCredentials": { + "description": "Describes the credentials that will be used to access a custom registry during a run.", + "type": "object", + "properties": { + "userName": { + "$ref": "#/definitions/SecretObject", + "description": "The username for logging into the custom registry." + }, + "password": { + "$ref": "#/definitions/SecretObject", + "description": "The password for logging into the custom registry. The password is a secret \r\nobject that allows multiple ways of providing the value for it." + }, + "identity": { + "description": "Indicates the managed identity assigned to the custom credential. If a user-assigned identity\r\nthis value is the Client ID. If a system-assigned identity, the value will be `system`. In\r\nthe case of a system-assigned identity, the Client ID will be determined by the runner. This\r\nidentity may be used to authenticate to key vault to retrieve credentials or it may be the only \r\nsource of authentication used for accessing the registry.", + "type": "string" + } + } + }, + "SourceProperties": { + "description": "The properties of the source code repository.", + "required": [ + "sourceControlType", + "repositoryUrl" + ], + "type": "object", + "properties": { + "sourceControlType": { + "description": "The type of source control service.", + "enum": [ + "Github", + "VisualStudioTeamService" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceControlType", + "modelAsString": true + } + }, + "repositoryUrl": { + "description": "The full URL to the source code repository", + "type": "string" + }, + "branch": { + "description": "The branch name of the source code.", + "type": "string" + }, + "sourceControlAuthProperties": { + "$ref": "#/definitions/AuthInfo", + "description": "The authorization properties for accessing the source code repository and to set up\r\nwebhooks for notifications." + } + } + }, + "SecretObject": { + "description": "Describes the properties of a secret object value.", + "type": "object", + "properties": { + "value": { + "description": "The value of the secret. The format of this value will be determined\r\nbased on the type of the secret object. If the type is Opaque, the value will be\r\nused as is without any modification.", + "type": "string" + }, + "type": { + "description": "The type of the secret object which determines how the value of the secret object has to be\r\ninterpreted.", + "enum": [ + "Opaque", + "Vaultsecret" + ], + "type": "string", + "x-ms-enum": { + "name": "SecretObjectType", + "modelAsString": true + } + } + } + }, + "AuthInfo": { + "description": "The authorization properties for accessing the source code repository.", + "required": [ + "tokenType", + "token" + ], + "type": "object", + "properties": { + "tokenType": { + "description": "The type of Auth token.", + "enum": [ + "PAT", + "OAuth" + ], + "type": "string", + "x-ms-enum": { + "name": "TokenType", + "modelAsString": true + } + }, + "token": { + "description": "The access token used to access the source control provider.", + "type": "string" + }, + "refreshToken": { + "description": "The refresh token used to refresh the access token.", + "type": "string" + }, + "scope": { + "description": "The scope of the access token.", + "type": "string" + }, + "expiresIn": { + "format": "int32", + "description": "Time in seconds that the token remains valid", + "type": "integer" + } + } + }, + "TaskUpdateParameters": { + "description": "The parameters for updating a task.", + "type": "object", + "properties": { + "identity": { + "$ref": "#/definitions/IdentityProperties", + "description": "Identity for the resource." + }, + "properties": { + "$ref": "#/definitions/TaskPropertiesUpdateParameters", + "description": "The properties for updating a task.", + "x-ms-client-flatten": true + }, + "tags": { + "description": "The ARM resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "TaskPropertiesUpdateParameters": { + "description": "The properties for updating a task.", + "type": "object", + "properties": { + "status": { + "description": "The current status of task.", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TaskStatus", + "modelAsString": true + } + }, + "platform": { + "$ref": "#/definitions/PlatformUpdateParameters", + "description": "The platform properties against which the run has to happen." + }, + "agentConfiguration": { + "$ref": "#/definitions/AgentProperties", + "description": "The machine configuration of the run agent." + }, + "timeout": { + "format": "int32", + "description": "Run timeout in seconds.", + "type": "integer" + }, + "step": { + "$ref": "#/definitions/TaskStepUpdateParameters", + "description": "The properties for updating a task step." + }, + "trigger": { + "$ref": "#/definitions/TriggerUpdateParameters", + "description": "The properties for updating trigger properties." + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The parameters that describes a set of credentials that will be used when this run is invoked." + } + } + }, + "PlatformUpdateParameters": { + "description": "The properties for updating the platform configuration.", + "type": "object", + "properties": { + "os": { + "description": "The operating system type required for the run.", + "enum": [ + "Windows", + "Linux" + ], + "type": "string", + "x-ms-enum": { + "name": "OS", + "modelAsString": true + } + }, + "architecture": { + "description": "The OS architecture.", + "enum": [ + "amd64", + "x86", + "386", + "arm", + "arm64" + ], + "type": "string", + "x-ms-enum": { + "name": "Architecture", + "modelAsString": true + } + }, + "variant": { + "description": "Variant of the CPU.", + "enum": [ + "v6", + "v7", + "v8" + ], + "type": "string", + "x-ms-enum": { + "name": "Variant", + "modelAsString": true + } + } + } + }, + "TaskStepUpdateParameters": { + "description": "Base properties for updating any task step.", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "description": "The type of the step.", + "enum": [ + "Docker", + "FileTask", + "EncodedTask" + ], + "type": "string", + "x-ms-enum": { + "name": "StepType", + "modelAsString": true + } + }, + "contextPath": { + "description": "The URL(absolute or relative) of the source context for the task step.", + "type": "string" + }, + "contextAccessToken": { + "description": "The token (git PAT or SAS token of storage account blob) associated with the context for a step.", + "type": "string" + } + }, + "discriminator": "type" + }, + "TriggerUpdateParameters": { + "description": "The properties for updating triggers.", + "type": "object", + "properties": { + "timerTriggers": { + "description": "The collection of timer triggers.", + "type": "array", + "items": { + "$ref": "#/definitions/TimerTriggerUpdateParameters" + } + }, + "sourceTriggers": { + "description": "The collection of triggers based on source code repository.", + "type": "array", + "items": { + "$ref": "#/definitions/SourceTriggerUpdateParameters" + } + }, + "baseImageTrigger": { + "$ref": "#/definitions/BaseImageTriggerUpdateParameters", + "description": "The trigger based on base image dependencies." + } + } + }, + "TimerTriggerUpdateParameters": { + "description": "The properties for updating a timer trigger.", + "required": [ + "name" + ], + "type": "object", + "properties": { + "schedule": { + "description": "The CRON expression for the task schedule", + "type": "string" + }, + "status": { + "description": "The current status of trigger.", + "default": "Enabled", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, + "SourceTriggerUpdateParameters": { + "description": "The properties for updating a source based trigger.", + "required": [ + "name" + ], + "type": "object", + "properties": { + "sourceRepository": { + "$ref": "#/definitions/SourceUpdateParameters", + "description": "The properties that describes the source(code) for the task." + }, + "sourceTriggerEvents": { + "description": "The source event corresponding to the trigger.", + "type": "array", + "items": { + "enum": [ + "commit", + "pullrequest" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceTriggerEvent", + "modelAsString": true + } + } + }, + "status": { + "description": "The current status of trigger.", + "default": "Enabled", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, + "BaseImageTriggerUpdateParameters": { + "description": "The properties for updating base image dependency trigger.", + "required": [ + "name" + ], + "type": "object", + "properties": { + "baseImageTriggerType": { + "description": "The type of the auto trigger for base image dependency updates.", + "enum": [ + "All", + "Runtime" + ], + "type": "string", + "x-ms-enum": { + "name": "BaseImageTriggerType", + "modelAsString": true + } + }, + "updateTriggerEndpoint": { + "description": "The endpoint URL for receiving update triggers.", + "type": "string" + }, + "updateTriggerPayloadType": { + "description": "Type of Payload body for Base image update triggers.", + "enum": [ + "Default", + "Token" + ], + "type": "string", + "x-ms-enum": { + "name": "UpdateTriggerPayloadType", + "modelAsString": true + } + }, + "status": { + "description": "The current status of trigger.", + "default": "Enabled", + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "TriggerStatus", + "modelAsString": true + } + }, + "name": { + "description": "The name of the trigger.", + "type": "string" + } + } + }, + "SourceUpdateParameters": { + "description": "The properties for updating the source code repository.", + "type": "object", + "properties": { + "sourceControlType": { + "description": "The type of source control service.", + "enum": [ + "Github", + "VisualStudioTeamService" + ], + "type": "string", + "x-ms-enum": { + "name": "SourceControlType", + "modelAsString": true + } + }, + "repositoryUrl": { + "description": "The full URL to the source code repository", + "type": "string" + }, + "branch": { + "description": "The branch name of the source code.", + "type": "string" + }, + "sourceControlAuthProperties": { + "$ref": "#/definitions/AuthInfoUpdateParameters", + "description": "The authorization properties for accessing the source code repository and to set up\r\nwebhooks for notifications." + } + } + }, + "AuthInfoUpdateParameters": { + "description": "The authorization properties for accessing the source code repository.", + "type": "object", + "properties": { + "tokenType": { + "description": "The type of Auth token.", + "enum": [ + "PAT", + "OAuth" + ], + "type": "string", + "x-ms-enum": { + "name": "TokenType", + "modelAsString": true + } + }, + "token": { + "description": "The access token used to access the source control provider.", + "type": "string" + }, + "refreshToken": { + "description": "The refresh token used to refresh the access token.", + "type": "string" + }, + "scope": { + "description": "The scope of the access token.", + "type": "string" + }, + "expiresIn": { + "format": "int32", + "description": "Time in seconds that the token remains valid", + "type": "integer" + } + } + }, + "Resource": { + "description": "An Azure resource.", + "required": [ + "location" + ], + "properties": { + "id": { + "description": "The resource ID.", + "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 + }, + "location": { + "description": "The location of the resource. This cannot be changed after the resource is created.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "description": "The tags of the resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-ms-azure-resource": true + }, + "ProxyResource": { + "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags.", + "properties": { + "id": { + "description": "The resource ID.", + "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 + } + }, + "x-ms-azure-resource": true + }, + "DockerBuildRequest": { + "description": "The parameters for a docker quick build.", + "required": [ + "type", + "dockerFilePath", + "platform" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/RunRequest" + } + ], + "properties": { + "imageNames": { + "description": "The fully qualified image names including the repository and tag.", + "type": "array", + "items": { + "type": "string" + } + }, + "isPushEnabled": { + "description": "The value of this property indicates whether the image built should be pushed to the registry or not.", + "default": true, + "type": "boolean" + }, + "noCache": { + "description": "The value of this property indicates whether the image cache is enabled or not.", + "default": false, + "type": "boolean" + }, + "dockerFilePath": { + "description": "The Docker file path relative to the source location.", + "type": "string" + }, + "target": { + "description": "The name of the target build stage for the docker build.", + "type": "string" + }, + "arguments": { + "description": "The collection of override arguments to be used when executing the run.", + "type": "array", + "items": { + "$ref": "#/definitions/Argument" + } + }, + "timeout": { + "format": "int32", + "description": "Run timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "platform": { + "$ref": "#/definitions/PlatformProperties", + "description": "The platform properties against which the run has to happen." + }, + "agentConfiguration": { + "$ref": "#/definitions/AgentProperties", + "description": "The machine configuration of the run agent." + }, + "sourceLocation": { + "description": "The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.\r\nIf it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.", + "type": "string" + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The properties that describes a set of credentials that will be used when this run is invoked." + } + }, + "x-ms-discriminator-value": "DockerBuildRequest" + }, + "Argument": { + "description": "The properties of a run argument.", + "required": [ + "name", + "value" + ], + "type": "object", + "properties": { + "name": { + "description": "The name of the argument.", + "type": "string" + }, + "value": { + "description": "The value of the argument.", + "type": "string" + }, + "isSecret": { + "description": "Flag to indicate whether the argument represents a secret and want to be removed from build logs.", + "default": false, + "type": "boolean" + } + } + }, + "FileTaskRunRequest": { + "description": "The request parameters for a scheduling run against a task file.", + "required": [ + "type", + "taskFilePath", + "platform" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/RunRequest" + } + ], + "properties": { + "taskFilePath": { + "description": "The template/definition file path relative to the source.", + "type": "string" + }, + "valuesFilePath": { + "description": "The values/parameters file path relative to the source.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + }, + "timeout": { + "format": "int32", + "description": "Run timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "platform": { + "$ref": "#/definitions/PlatformProperties", + "description": "The platform properties against which the run has to happen." + }, + "agentConfiguration": { + "$ref": "#/definitions/AgentProperties", + "description": "The machine configuration of the run agent." + }, + "sourceLocation": { + "description": "The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.\r\nIf it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.", + "type": "string" + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The properties that describes a set of credentials that will be used when this run is invoked." + } + }, + "x-ms-discriminator-value": "FileTaskRunRequest" + }, + "SetValue": { + "description": "The properties of a overridable value that can be passed to a task template.", + "required": [ + "name", + "value" + ], + "type": "object", + "properties": { + "name": { + "description": "The name of the overridable value.", + "type": "string" + }, + "value": { + "description": "The overridable value.", + "type": "string" + }, + "isSecret": { + "description": "Flag to indicate whether the value represents a secret or not.", + "default": false, + "type": "boolean" + } + } + }, + "TaskRunRequest": { + "description": "The parameters for a task run request.", + "required": [ + "type", + "taskId" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/RunRequest" + } + ], + "properties": { + "taskId": { + "description": "The resource ID of task against which run has to be queued.", + "type": "string" + }, + "overrideTaskStepProperties": { + "$ref": "#/definitions/OverrideTaskStepProperties", + "description": "Set of overridable parameters that can be passed when running a Task." + } + }, + "x-ms-discriminator-value": "TaskRunRequest" + }, + "OverrideTaskStepProperties": { + "type": "object", + "properties": { + "contextPath": { + "description": "The source context against which run has to be queued.", + "type": "string" + }, + "file": { + "description": "The file against which run has to be queued.", + "type": "string" + }, + "arguments": { + "description": "Gets or sets the collection of override arguments to be used when\r\nexecuting a build step.", + "type": "array", + "items": { + "$ref": "#/definitions/Argument" + } + }, + "target": { + "description": "The name of the target build stage for the docker build.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a Task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + }, + "updateTriggerToken": { + "description": "Base64 encoded update trigger token that will be attached with the base image trigger webhook.", + "type": "string" + } + } + }, + "EncodedTaskRunRequest": { + "description": "The parameters for a quick task run request.", + "required": [ + "type", + "encodedTaskContent", + "platform" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/RunRequest" + } + ], + "properties": { + "encodedTaskContent": { + "description": "Base64 encoded value of the template/definition file content.", + "type": "string" + }, + "encodedValuesContent": { + "description": "Base64 encoded value of the parameters/values file content.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + }, + "timeout": { + "format": "int32", + "description": "Run timeout in seconds.", + "default": 3600, + "maximum": 28800, + "minimum": 300, + "type": "integer" + }, + "platform": { + "$ref": "#/definitions/PlatformProperties", + "description": "The platform properties against which the run has to happen." + }, + "agentConfiguration": { + "$ref": "#/definitions/AgentProperties", + "description": "The machine configuration of the run agent." + }, + "sourceLocation": { + "description": "The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.\r\nIf it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.", + "type": "string" + }, + "credentials": { + "$ref": "#/definitions/Credentials", + "description": "The properties that describes a set of credentials that will be used when this run is invoked." + } + }, + "x-ms-discriminator-value": "EncodedTaskRunRequest" + }, + "DockerBuildStep": { + "description": "The Docker build step.", + "required": [ + "dockerFilePath", + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepProperties" + } + ], + "properties": { + "imageNames": { + "description": "The fully qualified image names including the repository and tag.", + "type": "array", + "items": { + "type": "string" + } + }, + "isPushEnabled": { + "description": "The value of this property indicates whether the image built should be pushed to the registry or not.", + "default": true, + "type": "boolean" + }, + "noCache": { + "description": "The value of this property indicates whether the image cache is enabled or not.", + "default": false, + "type": "boolean" + }, + "dockerFilePath": { + "description": "The Docker file path relative to the source context.", + "type": "string" + }, + "target": { + "description": "The name of the target build stage for the docker build.", + "type": "string" + }, + "arguments": { + "description": "The collection of override arguments to be used when executing this build step.", + "type": "array", + "items": { + "$ref": "#/definitions/Argument" + } + } + }, + "x-ms-discriminator-value": "Docker" + }, + "FileTaskStep": { + "description": "The properties of a task step.", + "required": [ + "taskFilePath", + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepProperties" + } + ], + "properties": { + "taskFilePath": { + "description": "The task template/definition file path relative to the source context.", + "type": "string" + }, + "valuesFilePath": { + "description": "The task values/parameters file path relative to the source context.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + } + }, + "x-ms-discriminator-value": "FileTask" + }, + "EncodedTaskStep": { + "description": "The properties of a encoded task step.", + "required": [ + "encodedTaskContent", + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepProperties" + } + ], + "properties": { + "encodedTaskContent": { + "description": "Base64 encoded value of the template/definition file content.", + "type": "string" + }, + "encodedValuesContent": { + "description": "Base64 encoded value of the parameters/values file content.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + } + }, + "x-ms-discriminator-value": "EncodedTask" + }, + "DockerBuildStepUpdateParameters": { + "description": "The properties for updating a docker build step.", + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepUpdateParameters" + } + ], + "properties": { + "imageNames": { + "description": "The fully qualified image names including the repository and tag.", + "type": "array", + "items": { + "type": "string" + } + }, + "isPushEnabled": { + "description": "The value of this property indicates whether the image built should be pushed to the registry or not.", + "type": "boolean" + }, + "noCache": { + "description": "The value of this property indicates whether the image cache is enabled or not.", + "type": "boolean" + }, + "dockerFilePath": { + "description": "The Docker file path relative to the source context.", + "type": "string" + }, + "arguments": { + "description": "The collection of override arguments to be used when executing this build step.", + "type": "array", + "items": { + "$ref": "#/definitions/Argument" + } + }, + "target": { + "description": "The name of the target build stage for the docker build.", + "type": "string" + } + }, + "x-ms-discriminator-value": "Docker" + }, + "FileTaskStepUpdateParameters": { + "description": "The properties of updating a task step.", + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepUpdateParameters" + } + ], + "properties": { + "taskFilePath": { + "description": "The task template/definition file path relative to the source context.", + "type": "string" + }, + "valuesFilePath": { + "description": "The values/parameters file path relative to the source context.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + } + }, + "x-ms-discriminator-value": "FileTask" + }, + "EncodedTaskStepUpdateParameters": { + "description": "The properties for updating encoded task step.", + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TaskStepUpdateParameters" + } + ], + "properties": { + "encodedTaskContent": { + "description": "Base64 encoded value of the template/definition file content.", + "type": "string" + }, + "encodedValuesContent": { + "description": "Base64 encoded value of the parameters/values file content.", + "type": "string" + }, + "values": { + "description": "The collection of overridable values that can be passed when running a task.", + "type": "array", + "items": { + "$ref": "#/definitions/SetValue" + } + } + }, + "x-ms-discriminator-value": "EncodedTask" + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "The Microsoft Azure subscription ID.", + "required": true, + "type": "string" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group to which the container registry belongs.", + "required": true, + "type": "string", + "minLength": 1, + "x-ms-parameter-location": "method" + }, + "RegistryNameParameter": { + "name": "registryName", + "in": "path", + "description": "The name of the container registry.", + "required": true, + "type": "string", + "maxLength": 50, + "minLength": 5, + "pattern": "^[a-zA-Z0-9]*$", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "The client API version.", + "required": true, + "type": "string" + }, + "TaskNameParameter": { + "name": "taskName", + "in": "path", + "description": "The name of the container registry task.", + "required": true, + "type": "string", + "maxLength": 50, + "minLength": 5, + "pattern": "^[a-zA-Z0-9-_]*$", + "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/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json new file mode 100644 index 000000000000..98a8d6b98259 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json @@ -0,0 +1,248 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "taskName": "mytTask", + "taskCreateParameters": { + "properties": { + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master", + "sourceControlAuthProperties": { + "tokenType": "PAT", + "token": "xxxxx" + } + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": "https://user:pass@mycicd.webhook.com?token=foo", + "updateTriggerPayloadType": "Default" + } + } + }, + "location": "eastus", + "identity": { + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {} + } + }, + "tags": { + "testkey": "value" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": null, + "updateTriggerPayloadType": "Default" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fc99dc67-1ad9-45c8-9ebc-e438081c8e30", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" + } + } + }, + "tags": { + "testkey": "value" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Creating", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": null, + "updateTriggerPayloadType": "Default" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fc99dc67-1ad9-45c8-9ebc-e438081c8e30", + "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", + "type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" + } + } + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json new file mode 100644 index 000000000000..eeeb532c2556 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json @@ -0,0 +1,227 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "taskName": "mytTask", + "taskCreateParameters": { + "properties": { + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master", + "sourceControlAuthProperties": { + "tokenType": "PAT", + "token": "xxxxx" + } + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "baseImageTriggerType": "Runtime" + } + } + }, + "location": "eastus", + "identity": { + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Creating", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json new file mode 100644 index 000000000000..06577bf137e2 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json @@ -0,0 +1,253 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "taskName": "mytTask", + "taskCreateParameters": { + "properties": { + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master", + "sourceControlAuthProperties": { + "tokenType": "PAT", + "token": "xxxxx" + } + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": "https://user:pass@mycicd.webhook.com?token=foo", + "updateTriggerPayloadType": "Default" + } + } + }, + "location": "eastus", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}, + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {} + } + }, + "tags": { + "testkey": "value" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": null, + "updateTriggerPayloadType": "Default" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { + "clientId": "d3ce1bc2-f7d7-4a5b-9979-950f4e57680e", + "principalId": "b6p9f58b-6fbf-4efd-a7e0-fvd46911a466" + }, + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" + } + } + }, + "tags": { + "testkey": "value" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Creating", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": null, + "updateTriggerPayloadType": "Default" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { + "clientId": "d3ce1bc2-f7d7-4a5b-9979-950f4e57680e", + "principalId": "b6p9f58b-6fbf-4efd-a7e0-fvd46911a466" + }, + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": { + "clientId": "e35621a5-f615-4a20-940e-de8a84b15abc", + "principalId": "e45e3m7c-176e-416a-b466-0c5ec8298f8a" + } + } + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json new file mode 100644 index 000000000000..edbd95c29df8 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json @@ -0,0 +1,222 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "taskName": "myTask", + "taskUpdateParameters": { + "properties": { + "status": "Enabled", + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile" + }, + "trigger": { + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlAuthProperties": { + "tokenType": "PAT", + "token": "xxxxx" + } + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ] + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "type": "Vaultsecret", + "value": "https://myacbvault.vault.azure.net/secrets/username" + }, + "password": { + "type": "Vaultsecret", + "value": "https://myacbvault.vault.azure.net/secrets/password" + }, + "identity": "[system]" + } + } + } + }, + "tags": { + "testkey": "value" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": "https://user:pass@mycicd.webhook.com?token=foo", + "updateTriggerPayloadType": "Token" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": null, + "updateTriggerPayloadType": "Token" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json new file mode 100644 index 000000000000..fc5ca27f5bcd --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json @@ -0,0 +1,210 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "taskName": "myTask", + "taskUpdateParameters": { + "properties": { + "status": "Enabled", + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile" + }, + "trigger": { + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlAuthProperties": { + "tokenType": "PAT", + "token": "xxxxx" + } + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ] + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "identity": "[system]" + } + } + } + }, + "tags": { + "testkey": "value" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesGetBuildSourceUploadUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesGetBuildSourceUploadUrl.json new file mode 100644 index 000000000000..1c20d1f9e6d1 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesGetBuildSourceUploadUrl.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview" + }, + "responses": { + "200": { + "body": { + "relativePath": "source/201802130000/b52f12d8-c3d6-4d75-9107-220f0bfc681d.tar.gz", + "uploadUrl": "https://registrystorageaccount.blob.core.windows.net/registrycontainer/source/201802130000/b52f12d8-c3d6-4d75-9107-220f0bfc681d.tar.gz?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D" + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun.json new file mode 100644 index 000000000000..0c308e07a823 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "runRequest": { + "type": "DockerBuildRequest", + "isArchiveEnabled": true, + "imageNames": [ + "azurerest:testtag" + ], + "noCache": true, + "sourceLocation": "https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D", + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "isPushEnabled": true, + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "dockerFilePath": "DockerFile" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/run" + } + }, + "202": {} + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_EncodedTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_EncodedTaskRun.json new file mode 100644 index 000000000000..785f9cb290f7 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_EncodedTaskRun.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "runRequest": { + "type": "EncodedTaskRunRequest", + "values": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "platform": { + "os": "Linux" + }, + "agentConfiguration": { + "cpu": 2 + }, + "encodedTaskContent": "c3RlcHM6Cnt7IGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAncHJvZCcgfX0KICAtIHJ1bjogcHJvZCBzZXR1cAp7eyBlbHNlIGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAnc3RhZ2luZycgfX0KICAtIHJ1bjogc3RhZ2luZyBzZXR1cAp7eyBlbHNlIH19CiAgLSBydW46IGRlZmF1bHQgc2V0dXAKe3sgZW5kIH19CgogIC0gcnVuOiBidWlsZCAtdCBGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0gLgoKcHVzaDogWydGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0nXQ==", + "encodedValuesContent": "ZW52aXJvbm1lbnQ6IHByb2QKdmVyc2lvbjogMQ==" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/run" + } + }, + "202": {} + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_FileTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_FileTaskRun.json new file mode 100644 index 000000000000..6decf05e3486 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_FileTaskRun.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "runRequest": { + "type": "FileTaskRunRequest", + "sourceLocation": "https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D", + "values": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "platform": { + "os": "Linux" + }, + "agentConfiguration": { + "cpu": 2 + }, + "taskFilePath": "acb.yaml", + "valuesFilePath": "prod-values.yaml" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/run" + } + }, + "202": {} + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json new file mode 100644 index 000000000000..1deef75f4cce --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "runRequest": { + "type": "FileTaskRunRequest", + "values": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "platform": { + "os": "Linux" + }, + "taskFilePath": "acb.yaml", + "credentials": { + "sourceRegistry": { + "loginMode": "Default" + }, + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "reg1" + }, + "password": { + "type": "Opaque", + "value": "***" + } + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/run" + } + }, + "202": {} + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_Task.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_Task.json new file mode 100644 index 000000000000..574b28d7c3ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_Task.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "runRequest": { + "type": "TaskRunRequest", + "overrideTaskStepProperties": { + "file": "overriddenDockerfile", + "target": "build", + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "values": [ + { + "name": "mytestname", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestname", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "updateTriggerToken": "aGVsbG8gd29ybGQ=" + }, + "taskId": "myTask" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/run" + } + }, + "202": {} + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_WithCustomCredentials.json new file mode 100644 index 000000000000..b5efffdaa698 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_WithCustomCredentials.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "runRequest": { + "type": "DockerBuildRequest", + "isArchiveEnabled": true, + "imageNames": [ + "azurerest:testtag" + ], + "noCache": true, + "sourceLocation": "https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D", + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ], + "isPushEnabled": true, + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "dockerFilePath": "DockerFile", + "target": "stage1", + "credentials": { + "sourceRegistry": { + "loginMode": "Default" + }, + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "reg1" + }, + "password": { + "type": "Opaque", + "value": "***" + } + }, + "myregistry2.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "reg2" + }, + "password": { + "type": "Opaque", + "value": "***" + } + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/run" + } + }, + "202": {} + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsCancel.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsCancel.json new file mode 100644 index 000000000000..f996e9d12bcf --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsCancel.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsGet.json new file mode 100644 index 000000000000..cd6d56392ffd --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsGet.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z", + "runType": "AutoBuild", + "createTime": "2018-01-25T05:13:51.618Z", + "startTime": "2018-01-25T05:50:51.618Z", + "finishTime": "2018-01-25T06:13:51.618Z", + "outputImages": [ + { + "registry": "myregistry.azurecr.io", + "repository": "myimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ], + "task": "myTask", + "imageUpdateTrigger": { + "id": "c0c43143-da5d-41ef-b9e1-e7d749272e88", + "timestamp": "2018-01-25T05:13:51.618Z", + "images": [ + { + "registry": "registry.hub.docker.com", + "repository": "mybaseimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ] + }, + "isArchiveEnabled": true, + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/runs" + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsGetLogSasUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsGetLogSasUrl.json new file mode 100644 index 000000000000..545fa7324b18 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsGetLogSasUrl.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab" + }, + "responses": { + "200": { + "body": { + "logLink": "https://registrystorageaccount.blob.core.windows.net/sascontainer/logs/0accec26-d6de-4757-8e74-d080f38eaaab/rawtext.log?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D" + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsList.json new file mode 100644 index 000000000000..08cf3291f7c3 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsList.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "$filter": "", + "$top": 10 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z", + "runType": "AutoBuild", + "createTime": "2018-01-25T05:13:51.618Z", + "startTime": "2018-01-25T05:50:51.618Z", + "finishTime": "2018-01-25T06:13:51.618Z", + "outputImages": [ + { + "registry": "myregistry.azurecr.io", + "repository": "myimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ], + "task": "myTask", + "imageUpdateTrigger": { + "id": "c0c43143-da5d-41ef-b9e1-e7d749272e88", + "timestamp": "2018-01-25T05:13:51.618Z", + "images": [ + { + "registry": "registry.hub.docker.com", + "repository": "mybaseimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ] + }, + "isArchiveEnabled": true, + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/runs" + } + ] + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsUpdate.json new file mode 100644 index 000000000000..67554f360bd5 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsUpdate.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "runUpdateParameters": { + "isArchiveEnabled": true + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z", + "runType": "AutoBuild", + "createTime": "2018-01-25T05:13:51.618Z", + "startTime": "2018-01-25T05:50:51.618Z", + "finishTime": "2018-01-25T06:13:51.618Z", + "outputImages": [ + { + "registry": "myregistry.azurecr.io", + "repository": "myimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ], + "task": "myTask", + "imageUpdateTrigger": { + "id": "c0c43143-da5d-41ef-b9e1-e7d749272e88", + "timestamp": "2018-01-25T05:13:51.618Z", + "images": [ + { + "registry": "registry.hub.docker.com", + "repository": "mybaseimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ] + }, + "isArchiveEnabled": true, + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/runs" + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Updating", + "runId": "0accec26-d6de-4757-8e74-d080f38eaaab", + "status": "Succeeded", + "lastUpdatedTime": "2018-01-25T05:13:51.617Z", + "runType": "AutoBuild", + "createTime": "2018-01-25T05:13:51.618Z", + "startTime": "2018-01-25T05:50:51.618Z", + "finishTime": "2018-01-25T06:13:51.618Z", + "outputImages": [ + { + "registry": "myregistry.azurecr.io", + "repository": "myimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ], + "task": "myTask", + "imageUpdateTrigger": { + "id": "c0c43143-da5d-41ef-b9e1-e7d749272e88", + "timestamp": "2018-01-25T05:13:51.618Z", + "images": [ + { + "registry": "registry.hub.docker.com", + "repository": "mybaseimage", + "tag": "latest", + "digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0" + } + ] + }, + "isArchiveEnabled": true, + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab", + "name": "0accec26-d6de-4757-8e74-d080f38eaaab", + "type": "Microsoft.ContainerRegistry/registries/runs" + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksCreate.json new file mode 100644 index 000000000000..6200b73c0b1e --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksCreate.json @@ -0,0 +1,233 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "taskName": "mytTask", + "taskCreateParameters": { + "properties": { + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master", + "sourceControlAuthProperties": { + "tokenType": "PAT", + "token": "xxxxx" + } + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": "https://user:pass@mycicd.webhook.com?token=foo", + "updateTriggerPayloadType": "Token" + } + } + }, + "location": "eastus", + "identity": { + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": null, + "updateTriggerPayloadType": "Token" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Creating", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": null, + "updateTriggerPayloadType": "Token" + } + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksDelete.json new file mode 100644 index 000000000000..7d7f0ee06428 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "taskName": "myTask" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksGet.json new file mode 100644 index 000000000000..35233c27670d --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksGet.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "taskName": "myTask" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": null, + "updateTriggerPayloadType": "Token" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksGetDetails.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksGetDetails.json new file mode 100644 index 000000000000..a68531461844 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksGetDetails.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "taskName": "myTask" + }, + "responses": { + "200": { + "body": { + "properties": { + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + }, + { + "name": "mysecrettestargument", + "value": "mysecrettestvalue", + "isSecret": true + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master", + "sourceControlAuthProperties": { + "tokenType": "PAT", + "token": "xxxxx" + } + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": "https://user:pass@mycicd.webhook.com?token=foo", + "updateTriggerPayloadType": "Token" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure-test.io": { + "userName": { + "type": "Opaque", + "value": "username" + }, + "password": { + "type": "Vaultsecret", + "value": "https://myacbvault.vault.azure.net/secrets/username" + }, + "identity": "[system]" + } + }, + "sourceRegistry": null + } + }, + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksList.json new file mode 100644 index 000000000000..f76332bc0790 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksList.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 2 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": null, + "updateTriggerPayloadType": "Default" + } + }, + "credentials": { + "customRegistries": { + "myRegistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + ] + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksUpdate.json new file mode 100644 index 000000000000..fb0e6621cb2e --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksUpdate.json @@ -0,0 +1,222 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "taskName": "myTask", + "taskUpdateParameters": { + "properties": { + "status": "Enabled", + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile" + }, + "trigger": { + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlAuthProperties": { + "tokenType": "PAT", + "token": "xxxxx" + } + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ] + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "username" + }, + "password": { + "type": "Vaultsecret", + "value": "https://myacbvault.vault.azure.net/secrets/password" + }, + "identity": "[system]" + } + } + } + }, + "tags": { + "testkey": "value" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": null, + "updateTriggerPayloadType": "Default" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime", + "updateTriggerEndpoint": null, + "updateTriggerPayloadType": "Default" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": null + }, + "sourceRegistry": null + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksUpdate_WithOpaqueCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksUpdate_WithOpaqueCustomCredentials.json new file mode 100644 index 000000000000..8072e5b19b6e --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksUpdate_WithOpaqueCustomCredentials.json @@ -0,0 +1,217 @@ +{ + "parameters": { + "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce", + "resourceGroupName": "myResourceGroup", + "registryName": "myRegistry", + "api-version": "2019-06-01-preview", + "taskName": "myTask", + "taskUpdateParameters": { + "properties": { + "status": "Enabled", + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile" + }, + "trigger": { + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "sourceRepository": { + "sourceControlAuthProperties": { + "tokenType": "PAT", + "token": "xxxxx" + } + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ] + }, + "credentials": { + "customRegistries": { + "myregistry.azurecr.io": { + "userName": { + "type": "Opaque", + "value": "username" + }, + "password": { + "type": "Opaque", + "value": "***" + } + } + } + } + }, + "tags": { + "testkey": "value" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "creationDate": "2018-01-25T06:54:23.536Z", + "status": "Enabled", + "platform": { + "os": "Linux", + "architecture": "amd64" + }, + "agentConfiguration": { + "cpu": 3 + }, + "step": { + "type": "Docker", + "imageNames": [ + "azurerest:testtag1" + ], + "dockerFilePath": "src/DockerFile", + "contextPath": "src", + "isPushEnabled": true, + "noCache": false, + "arguments": [ + { + "name": "mytestargument", + "value": "mytestvalue", + "isSecret": false + } + ] + }, + "trigger": { + "timerTriggers": [ + { + "name": "myTimerTrigger", + "status": "Enabled", + "schedule": "30 9 * * 1-5" + } + ], + "sourceTriggers": [ + { + "name": "mySourceTrigger", + "status": "Enabled", + "sourceRepository": { + "sourceControlType": "Github", + "repositoryUrl": "https://github.com/Azure/azure-rest-api-specs", + "branch": "master" + }, + "sourceTriggerEvents": [ + "commit" + ] + } + ], + "baseImageTrigger": { + "name": "myBaseImageTrigger", + "status": "Enabled", + "baseImageTriggerType": "Runtime" + } + }, + "credentials": { + "customRegistries": { + "myregistry.azure.io": null + }, + "sourceRegistry": null + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask", + "name": "myTask", + "type": "Microsoft.ContainerRegistry/registries/tasks", + "location": "eastus", + "identity": { + "principalId": "fa153151-b9fd-46f4-9088-5e6600f2689v", + "tenantId": "f686d426-8d16-42db-81b7-abu4gm510ccd", + "type": "SystemAssigned" + }, + "tags": { + "testkey": "value" + } + } + } + } +} diff --git a/specification/containerregistry/resource-manager/readme.go.md b/specification/containerregistry/resource-manager/readme.go.md index 5b94af21f1cc..85f4c0eb0e79 100644 --- a/specification/containerregistry/resource-manager/readme.go.md +++ b/specification/containerregistry/resource-manager/readme.go.md @@ -13,6 +13,7 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-2019-06-preview - tag: package-2019-05 - tag: package-2019-05-preview - tag: package-2019-04 @@ -24,6 +25,15 @@ batch: - tag: package-2016-06-preview ``` +### Tag: package-2019-06-preview and go + +These settings apply only when `--tag=package-2019-06-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2019-06-preview' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2019-06-01-preview/$(namespace) +``` + ### Tag: package-2018-05 and go These settings apply only when `--tag=package-2019-05 --go` is specified on the command line. diff --git a/specification/containerregistry/resource-manager/readme.java.md b/specification/containerregistry/resource-manager/readme.java.md index 5dde66ea9609..d91b48cab2e5 100644 --- a/specification/containerregistry/resource-manager/readme.java.md +++ b/specification/containerregistry/resource-manager/readme.java.md @@ -16,6 +16,7 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-containerregistry ``` yaml $(java) && $(multiapi) batch: + - tag: package-2019-06-preview-only - tag: package-2019-04-only - tag: package-2019-04 - tag: package-2018-09 @@ -26,6 +27,19 @@ batch: - tag: package-2016-06-preview ``` +### Tag: package-2019-06-preview-only and java + +These settings apply only when `--tag=package-2019-06-preview-only --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2019-06-preview-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.containerregistry.v2019_06_01_preview + output-folder: $(azure-libraries-for-java-folder)/containerregistry/resource-manager/v2019_06_01_preview +regenerate-manager: true +generate-interface: true +``` + ### Tag: package-2019-04-only and java These settings apply only when `--tag=package-2019-04-only --java` is specified on the command line. diff --git a/specification/containerregistry/resource-manager/readme.md b/specification/containerregistry/resource-manager/readme.md index 0b21b2c74848..2d47f5dc7df7 100644 --- a/specification/containerregistry/resource-manager/readme.md +++ b/specification/containerregistry/resource-manager/readme.md @@ -26,7 +26,26 @@ These are the global settings for the ContainerRegistry API. ``` yaml openapi-type: arm -tag: package-2019-05 +tag: package-2019-06-preview +``` + +### Tag: package-2019-06-preview + +These settings apply only when `--tag=package-2019-06-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2019-06-preview' +input-file: +- Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json +- Microsoft.ContainerRegistry/preview/2019-06-01-preview/containerregistry_build.json +``` + +### Tag: package-2019-06-preview-only + +These settings apply only when `--tag=package-2019-06-preview-only` is specified on the command line. + +``` yaml $(tag) == 'package-2019-06-preview-only' +input-file: +- Microsoft.ContainerRegistry/preview/2019-06-01-preview/containerregistry_build.json ``` ### Tag: package-2019-05 @@ -136,6 +155,7 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: + - repo: azure-sdk-for-net - repo: azure-sdk-for-python autorest_options: use: "@microsoft.azure/autorest.python@4.0.70" @@ -178,3 +198,37 @@ 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. + +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.ContainerRegistry/stable/2019-05-01/containerregistry.json + - $(this-folder)/Microsoft.ContainerRegistry/preview/2019-06-01-preview/containerregistry_build.json + - $(this-folder)/Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json + - $(this-folder)/Microsoft.ContainerRegistry/stable/2017-10-01/containerregistry.json + - $(this-folder)/Microsoft.ContainerRegistry/preview/2019-05-01-preview/containerregistry_scopemap.json + - $(this-folder)/Microsoft.ContainerRegistry/stable/2018-09-01/containerregistry_build.json + - $(this-folder)/Microsoft.ContainerRegistry/preview/2018-02-01-preview/containerregistry_build.json + - $(this-folder)/Microsoft.ContainerRegistry/preview/2017-06-01-preview/containerregistry.json + - $(this-folder)/Microsoft.ContainerRegistry/stable/2017-03-01/containerregistry.json + - $(this-folder)/Microsoft.ContainerRegistry/preview/2016-06-27-preview/containerregistry.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/containerregistry/resource-manager/readme.nodejs.md b/specification/containerregistry/resource-manager/readme.nodejs.md index 3a94e64e04ca..7ab8e1d2785e 100644 --- a/specification/containerregistry/resource-manager/readme.nodejs.md +++ b/specification/containerregistry/resource-manager/readme.nodejs.md @@ -13,6 +13,6 @@ nodejs: generate-readme-md: true input-file: - Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json -- Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json +- Microsoft.ContainerRegistry/preview/2019-06-01-preview/containerregistry_build.json - Microsoft.ContainerRegistry/preview/2019-05-01-preview/containerregistry_scopemap.json ``` diff --git a/specification/containerregistry/resource-manager/readme.python.md b/specification/containerregistry/resource-manager/readme.python.md index 8c14c4b13c47..35505275362d 100644 --- a/specification/containerregistry/resource-manager/readme.python.md +++ b/specification/containerregistry/resource-manager/readme.python.md @@ -18,6 +18,7 @@ Generate all API versions currently shipped for this package ```yaml $(python) && $(multiapi) batch: + - tag: package-2019-06-preview - tag: package-2019-05 - tag: package-2019-05-preview - tag: package-2019-04 @@ -27,6 +28,17 @@ batch: - tag: package-2017-03 ``` +### Tag: package-2019-06-preview and python + +These settings apply only when `--tag=package-2019-06-preview --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2019-06-preview' && $(python) +python: + namespace: azure.mgmt.containerregistry.v2019_06_01_preview + output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview +``` + ### Tag: package-2019-05 and python These settings apply only when `--tag=package-2019-05 --python` is specified on the command line. diff --git a/specification/containerregistry/resource-manager/readme.typescript.md b/specification/containerregistry/resource-manager/readme.typescript.md index 5ad53f281574..b532cf90e05c 100644 --- a/specification/containerregistry/resource-manager/readme.typescript.md +++ b/specification/containerregistry/resource-manager/readme.typescript.md @@ -6,7 +6,7 @@ Please also specify `--typescript-sdks-folder=`. + +``` yaml $(tag)=='package-2019-08' && $(go) +namespace: containerservice +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2019-08-01/$(namespace) +``` + ### Tag: package-2019-06 and go These settings apply only when `--package-2019-06 --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 new file mode 100644 index 000000000000..f91e0036361c --- /dev/null +++ b/specification/containerservice/resource-manager/readme.java.md @@ -0,0 +1,85 @@ +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.containerservice +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-containerservice +title: ContainerServiceManagementClient +description: "Container Service Client" +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2019-06 +``` + +### Tag: package-2019-06 and java + +These settings apply only when `--tag=package-2019-06` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2019-06' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.containerservice.v2019_06_01 + output-folder: $(azure-libraries-for-java-folder)/containerservice/resource-manager/v2019_06_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2019-04-only and java + +These settings apply only when `--tag=package-2019-04-only` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2019-04-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.containerservice.v2019_04_01 + output-folder: $(azure-libraries-for-java-folder)/containerservice/resource-manager/v2019_04_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-09-only and java + +These settings apply only when `--tag=package-2017-09-only` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2017-09-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.containerservice.v2017_09_30 + output-folder: $(azure-libraries-for-java-folder)/containerservice/resource-manager/v2017_09_30 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-08-only and java + +These settings apply only when `--tag=package-2017-08-only` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2017-08-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.containerservice.v2017_08_31 + output-folder: $(azure-libraries-for-java-folder)/containerservice/resource-manager/v2017_08_31 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-07 and java + +These settings apply only when `--tag=package-2017-07` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2017-07' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.containerservice.v2017_07_01 + output-folder: $(azure-libraries-for-java-folder)/containerservice/resource-manager/v2017_07_01 +regenerate-manager: true +generate-interface: true +``` \ No newline at end of file diff --git a/specification/containerservice/resource-manager/readme.md b/specification/containerservice/resource-manager/readme.md index 7dd13f349048..ed0ece1b2398 100644 --- a/specification/containerservice/resource-manager/readme.md +++ b/specification/containerservice/resource-manager/readme.md @@ -34,15 +34,26 @@ These are the global settings for the ContainerServices API. ``` yaml openapi-type: arm -tag: package-2019-06 +tag: package-2019-08 ``` +### Tag: package-2019-08 + +These settings apply only when `--tag=package-2019-08` is specified on the command line. + +``` yaml $(tag) == 'package-2019-08' +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/2019-08-01/managedClusters.json +``` ### Tag: package-2019-06 These settings apply only when `--tag=package-2019-06` is specified on the command line. -```yaml $(tag) == 'package-2019-06' +``` yaml $(tag) == 'package-2019-06' input-file: - Microsoft.ContainerService/stable/2019-04-30/openShiftManagedClusters.json - Microsoft.ContainerService/stable/2017-07-01/containerService.json @@ -139,6 +150,15 @@ input-file: - Microsoft.ContainerService/stable/2017-07-01/containerService.json ``` +### Tag: package-2019-08-01-only + +These settings apply only when `--tag=package-2019-08-01-only` is specified on the command line. + +``` yaml $(tag) == 'package-2019-08-01-only' +input-file: +- Microsoft.ContainerService/stable/2019-08-01/managedClusters.json +``` + ### Tag: package-2019-06-01-only These settings apply only when `--tag=package-2019-06-01-only` is specified on the command line. @@ -306,76 +326,57 @@ 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) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.containerservice -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-containerservice -title: ContainerServiceManagementClient -description: "Container Service Client" -``` +See configuration in [readme.java.md](./readme.java.md) -### Java multi-api +## Suppression -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2017-09-only - - tag: package-2017-08-only - - tag: package-2017-07 +``` yaml +directive: + - suppress: DefinitionsPropertiesNamesCamelCase + from: managedClusters.json + reason: Name change of "enableRBAC" property would break compatibility + - suppress: TrackedResourcePatchOperation + from: containerService.json + reason: ACS service is deprecated so a PATCH endpoint won't be implemented ``` -### Tag: package-2017-09-only and java +## Multi-API/Profile support for AutoRest v3 generators -These settings apply only when `--tag=package-2017-09-only` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2017-09-only' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.containerservice.v2017_09_30 - output-folder: $(azure-libraries-for-java-folder)/containerservice/resource-manager/v2017_09_30 -regenerate-manager: true -generate-interface: true -``` +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -### Tag: package-2017-08-only and java +This block is updated by an automatic script. Edits may be lost! -These settings apply only when `--tag=package-2017-08-only` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2017-08-only' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.containerservice.v2017_08_31 - output-folder: $(azure-libraries-for-java-folder)/containerservice/resource-manager/v2017_08_31 -regenerate-manager: true -generate-interface: true -``` +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -### Tag: package-2017-07 and java +# all the input files across all versions +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/2019-08-01/managedClusters.json + - $(this-folder)/Microsoft.ContainerService/stable/2019-06-01/location.json + - $(this-folder)/Microsoft.ContainerService/stable/2019-06-01/managedClusters.json + - $(this-folder)/Microsoft.ContainerService/stable/2019-04-01/managedClusters.json + - $(this-folder)/Microsoft.ContainerService/stable/2019-04-01/location.json + - $(this-folder)/Microsoft.ContainerService/preview/2018-09-30-preview/openShiftManagedClusters.json + - $(this-folder)/Microsoft.ContainerService/stable/2019-02-01/managedClusters.json + - $(this-folder)/Microsoft.ContainerService/stable/2017-09-30/location.json + - $(this-folder)/Microsoft.ContainerService/preview/2018-08-01-preview/managedClusters.json + - $(this-folder)/Microsoft.ContainerService/stable/2018-03-31/managedClusters.json + - $(this-folder)/Microsoft.ContainerService/stable/2017-08-31/managedClusters.json + - $(this-folder)/Microsoft.ContainerService/stable/2017-01-31/containerService.json + - $(this-folder)/Microsoft.ContainerService/stable/2016-09-30/containerService.json + - $(this-folder)/Microsoft.ContainerService/stable/2016-03-30/containerService.json -These settings apply only when `--tag=package-2017-07` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2017-07' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.containerservice.v2017_07_01 - output-folder: $(azure-libraries-for-java-folder)/containerservice/resource-manager/v2017_07_01 -regenerate-manager: true -generate-interface: true ``` -## Suppression +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 -directive: - - suppress: DefinitionsPropertiesNamesCamelCase - from: managedClusters.json - reason: Name change of "enableRBAC" property would break compatibility - - suppress: TrackedResourcePatchOperation - from: containerService.json - reason: ACS service is deprecated so a PATCH endpoint won't be implemented +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json ``` + diff --git a/specification/containerservice/resource-manager/readme.python.md b/specification/containerservice/resource-manager/readme.python.md index 1b10b8c9525f..6823a0015142 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-2019-08-01-only - tag: package-2019-06-01-only - tag: package-2019-04-30-only - tag: package-2019-04-01-only @@ -27,6 +28,16 @@ batch: - tag: package-2018-03-only - tag: package-2017-07-only-extended ``` +### Tag: package-2019-08-01-only and python + +These settings apply only when `--tag=package-2019-08-01-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2019-08-01-only' && $(python) +python: + namespace: azure.mgmt.containerservice.v2019_08_01 + output-folder: $(python-sdks-folder)/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_08_01 +``` ### Tag: package-2019-06-01-only and python diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/cosmos-db.json index 125d85a870f7..b1f3a328b89f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/cosmos-db.json @@ -4343,6 +4343,14 @@ "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" } } }, @@ -4407,6 +4415,14 @@ "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" } }, "required": [ @@ -4486,12 +4502,13 @@ "readOnly": true, "type": "string", "description": "Base 64 encoded value of the secondary read-write key." - }, - "properties": { - "x-ms-client-flatten": true, + } + }, + "allOf": [ + { "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult" } - } + ] }, "DatabaseAccountConnectionString": { "description": "Connection string for the Cosmos DB account", @@ -5868,6 +5885,17 @@ "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 + } } }, "parameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/examples/CosmosDBDatabaseAccountListKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/examples/CosmosDBDatabaseAccountListKeys.json index f04f6c904308..05a9097380c6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/examples/CosmosDBDatabaseAccountListKeys.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/examples/CosmosDBDatabaseAccountListKeys.json @@ -10,10 +10,8 @@ "body": { "primaryMasterKey": "primaryMasterKey", "secondaryMasterKey": "secondaryMasterKey", - "properties": { - "primaryReadonlyMasterKey": "primaryReadonlyMasterKey", - "secondaryReadonlyMasterKey": "secondaryReadonlyMasterKey" - } + "primaryReadonlyMasterKey": "primaryReadonlyMasterKey", + "secondaryReadonlyMasterKey": "secondaryReadonlyMasterKey" } } } diff --git a/specification/cosmos-db/resource-manager/readme.md b/specification/cosmos-db/resource-manager/readme.md index 743b27dd23b0..1bae2976fd2c 100644 --- a/specification/cosmos-db/resource-manager/readme.md +++ b/specification/cosmos-db/resource-manager/readme.md @@ -181,4 +181,28 @@ See configuration in [readme.go.md](./readme.go.md) ## Java -See configuration in [readme.java.md](./readme.java.md) \ No newline at end of file +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. + +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.DocumentDB/stable/2015-04-08/cosmos-db.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/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json index b7dbe1c0dc05..254541ce9660 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json @@ -1224,7 +1224,7 @@ ] }, "ExportDeliveryDestination": { - "description": "The destination information for the delivery of the export.", + "description": "The destination information for the delivery of the export. To allow access to a storage account, you must register the account's subscription with the Microsoft.CostManagementExports resource provider. This is required once per subscription. When creating an export in the Azure portal, it is done automatically. However, API users need to register the subscription. For more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services .", "properties": { "resourceId": { "description": "The resource id of the storage account where exports will be delivered.", diff --git a/specification/cost-management/resource-manager/readme.md b/specification/cost-management/resource-manager/readme.md index 8865981a12d7..483100612d7d 100644 --- a/specification/cost-management/resource-manager/readme.md +++ b/specification/cost-management/resource-manager/readme.md @@ -156,6 +156,7 @@ 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-node @@ -287,3 +288,33 @@ regenerate-manager: true generate-interface: 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)/Microsoft.CostManagement/preview/2019-04-01-preview/costmanagement.json + - $(this-folder)/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json + - $(this-folder)/Microsoft.CostManagement/preview/2019-03-01-preview/costmanagement.json + - $(this-folder)/Microsoft.CostManagement/stable/2018-05-31/costmanagement.json + - $(this-folder)/Microsoft.CostManagement/preview/2018-08-01-preview/costmanagement.json + - $(this-folder)/Microsoft.CostManagement/preview/2018-12-01-preview/costmanagement.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/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-01-01/examples/DCIOperations_List.json b/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-01-01/examples/DCIOperations_List.json index 5b6b170d8388..6d393905cd54 100644 --- a/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-01-01/examples/DCIOperations_List.json +++ b/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-01-01/examples/DCIOperations_List.json @@ -8,7 +8,6 @@ "value": [ { "display": { - "description": "Read any Azure Customer Insights Hub", "operation": "Read Azure Customer Insights Hub", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Hubs" @@ -17,7 +16,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Hub", "operation": "Create or Update Azure Customer Insights Hub", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Hubs" @@ -26,7 +24,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights Hub", "operation": "Delete Azure Customer Insights Hub", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Hubs" @@ -35,7 +32,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights App View", "operation": "Read Azure Customer Insights App View", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights App Views" @@ -44,7 +40,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights App View", "operation": "Create or Update Azure Customer Insights App View", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights App Views" @@ -53,7 +48,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights App View", "operation": "Delete Azure Customer Insights App View", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights App Views" @@ -62,7 +56,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Connector", "operation": "Read Azure Customer Insights Connector", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Connectors" @@ -71,7 +64,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Connector", "operation": "Create or Update Azure Customer Insights Connector", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Connectors" @@ -80,7 +72,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights Connector", "operation": "Delete Azure Customer Insights Connector", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Connectors" @@ -89,7 +80,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Connector Mapping", "operation": "Read Azure Customer Insights Connector Mapping", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Connector Mappings" @@ -98,7 +88,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Connector Mapping", "operation": "Create or Update Azure Customer Insights Connector Mapping", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Connector Mappings" @@ -107,7 +96,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights Connector Mapping", "operation": "Delete Azure Customer Insights App View", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Connector Mappings" @@ -116,7 +104,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Interaction", "operation": "Read Azure Customer Insights Interaction", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Interactions" @@ -125,7 +112,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Interaction", "operation": "Create or Update Azure Customer Insights Interaction", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Interactions" @@ -134,7 +120,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Profile", "operation": "Read Azure Customer Insights Profile", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Profiles" @@ -143,7 +128,6 @@ }, { "display": { - "description": "Write any Azure Customer Insights Profile", "operation": "Create or Update Azure Customer Insights Profile", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Profiles" @@ -152,7 +136,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Key Performance Indicator", "operation": "Read Azure Customer Insights Key Performance Indicator", "provider": "Microsoft Azure Customer Insights", "resource": "Create or Update Customer Insights Key Performance Indicators" @@ -161,7 +144,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Key Performance Indicator", "operation": "Create or Update Azure Customer Insights Key Performance Indicator", "provider": "Microsoft Azure Customer Insights", "resource": "Create or Update Customer Insights Key Performance Indicators" @@ -170,7 +152,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights Key Performance Indicator", "operation": "Delete Azure Customer Insights Key Performance Indicator", "provider": "Microsoft Azure Customer Insights", "resource": "Create or Update Customer Insights Key Performance Indicators" @@ -179,7 +160,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Rbac Assignment", "operation": "Read Azure Customer Insights Rbac Assignment", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Rbac Assignments" @@ -188,7 +168,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Rbac Assignment", "operation": "Create or Update Azure Customer Insights Rbac Assignment", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Rbac Assignments" @@ -197,7 +176,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights Rbac Assignment", "operation": "Delete Azure Customer Insights Rbac Assignment", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Rbac Assignments" @@ -206,7 +184,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Shared Access Signature Policy", "operation": "Read Azure Customer Insights Shared Access Signature Policy", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Shared Access Signature Policies" @@ -215,7 +192,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Shared Access Signature Policy", "operation": "Create or Update Azure Customer Insights Shared Access Signature Policy", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Shared Access Signature Policies" @@ -224,7 +200,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights Shared Access Signature Policy", "operation": "Delete Azure Customer Insights Shared Access Signature Policy", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Shared Access Signature Policies" @@ -233,7 +208,6 @@ }, { "display": { - "description": "Regenerate Azure Customer Insights Shared Access Signature Policy primary key", "operation": "Regenerate Azure Customer Insights Shared Access Signature Policy primary key", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Shared Access Signature Policies" @@ -242,7 +216,6 @@ }, { "display": { - "description": "Regenerate Azure Customer Insights Shared Access Signature Policy secondary key", "operation": "Regenerate Azure Customer Insights Shared Access Signature Policy secondary key", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Shared Access Signature Policies" @@ -251,7 +224,6 @@ }, { "display": { - "description": "Gets the available metrics for resource", "operation": "Read resource metric definitions", "provider": "Microsoft Azure Customer Insights", "resource": "Microsoft Azure Customer Insights Metric Definition" @@ -260,7 +232,6 @@ }, { "display": { - "description": "Gets the available logs for resource", "operation": "Read resource log definitions", "provider": "Microsoft Azure Customer Insights", "resource": "Microsoft Azure Customer Insights Log Definition" @@ -269,7 +240,6 @@ }, { "display": { - "description": "Gets the diagnostic setting for the resource", "operation": "Diagnostic setting read", "provider": "Microsoft Azure Customer Insights", "resource": "Microsoft Azure Customer Insights Diagnostic Settings" @@ -278,7 +248,6 @@ }, { "display": { - "description": "Creates or updates the diagnostic setting for the resource", "operation": "Diagnostic setting write", "provider": "Microsoft Azure Customer Insights", "resource": "Microsoft Azure Customer Insights Diagnostic Settings" diff --git a/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-01-01/examples/ProfilesListByHub.json b/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-01-01/examples/ProfilesListByHub.json index 5afff68434b9..737d0bcbd885 100644 --- a/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-01-01/examples/ProfilesListByHub.json +++ b/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-01-01/examples/ProfilesListByHub.json @@ -111,7 +111,7 @@ "type": "Microsoft.CustomerInsights/hubs/profiles" } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-04-26/examples/DCIOperations_List.json b/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-04-26/examples/DCIOperations_List.json index 5b6b170d8388..6d393905cd54 100644 --- a/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-04-26/examples/DCIOperations_List.json +++ b/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-04-26/examples/DCIOperations_List.json @@ -8,7 +8,6 @@ "value": [ { "display": { - "description": "Read any Azure Customer Insights Hub", "operation": "Read Azure Customer Insights Hub", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Hubs" @@ -17,7 +16,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Hub", "operation": "Create or Update Azure Customer Insights Hub", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Hubs" @@ -26,7 +24,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights Hub", "operation": "Delete Azure Customer Insights Hub", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Hubs" @@ -35,7 +32,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights App View", "operation": "Read Azure Customer Insights App View", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights App Views" @@ -44,7 +40,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights App View", "operation": "Create or Update Azure Customer Insights App View", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights App Views" @@ -53,7 +48,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights App View", "operation": "Delete Azure Customer Insights App View", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights App Views" @@ -62,7 +56,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Connector", "operation": "Read Azure Customer Insights Connector", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Connectors" @@ -71,7 +64,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Connector", "operation": "Create or Update Azure Customer Insights Connector", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Connectors" @@ -80,7 +72,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights Connector", "operation": "Delete Azure Customer Insights Connector", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Connectors" @@ -89,7 +80,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Connector Mapping", "operation": "Read Azure Customer Insights Connector Mapping", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Connector Mappings" @@ -98,7 +88,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Connector Mapping", "operation": "Create or Update Azure Customer Insights Connector Mapping", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Connector Mappings" @@ -107,7 +96,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights Connector Mapping", "operation": "Delete Azure Customer Insights App View", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Connector Mappings" @@ -116,7 +104,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Interaction", "operation": "Read Azure Customer Insights Interaction", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Interactions" @@ -125,7 +112,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Interaction", "operation": "Create or Update Azure Customer Insights Interaction", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Interactions" @@ -134,7 +120,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Profile", "operation": "Read Azure Customer Insights Profile", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Profiles" @@ -143,7 +128,6 @@ }, { "display": { - "description": "Write any Azure Customer Insights Profile", "operation": "Create or Update Azure Customer Insights Profile", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Profiles" @@ -152,7 +136,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Key Performance Indicator", "operation": "Read Azure Customer Insights Key Performance Indicator", "provider": "Microsoft Azure Customer Insights", "resource": "Create or Update Customer Insights Key Performance Indicators" @@ -161,7 +144,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Key Performance Indicator", "operation": "Create or Update Azure Customer Insights Key Performance Indicator", "provider": "Microsoft Azure Customer Insights", "resource": "Create or Update Customer Insights Key Performance Indicators" @@ -170,7 +152,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights Key Performance Indicator", "operation": "Delete Azure Customer Insights Key Performance Indicator", "provider": "Microsoft Azure Customer Insights", "resource": "Create or Update Customer Insights Key Performance Indicators" @@ -179,7 +160,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Rbac Assignment", "operation": "Read Azure Customer Insights Rbac Assignment", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Rbac Assignments" @@ -188,7 +168,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Rbac Assignment", "operation": "Create or Update Azure Customer Insights Rbac Assignment", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Rbac Assignments" @@ -197,7 +176,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights Rbac Assignment", "operation": "Delete Azure Customer Insights Rbac Assignment", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Rbac Assignments" @@ -206,7 +184,6 @@ }, { "display": { - "description": "Read any Azure Customer Insights Shared Access Signature Policy", "operation": "Read Azure Customer Insights Shared Access Signature Policy", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Shared Access Signature Policies" @@ -215,7 +192,6 @@ }, { "display": { - "description": "Create or Update any Azure Customer Insights Shared Access Signature Policy", "operation": "Create or Update Azure Customer Insights Shared Access Signature Policy", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Shared Access Signature Policies" @@ -224,7 +200,6 @@ }, { "display": { - "description": "Delete any Azure Customer Insights Shared Access Signature Policy", "operation": "Delete Azure Customer Insights Shared Access Signature Policy", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Shared Access Signature Policies" @@ -233,7 +208,6 @@ }, { "display": { - "description": "Regenerate Azure Customer Insights Shared Access Signature Policy primary key", "operation": "Regenerate Azure Customer Insights Shared Access Signature Policy primary key", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Shared Access Signature Policies" @@ -242,7 +216,6 @@ }, { "display": { - "description": "Regenerate Azure Customer Insights Shared Access Signature Policy secondary key", "operation": "Regenerate Azure Customer Insights Shared Access Signature Policy secondary key", "provider": "Microsoft Azure Customer Insights", "resource": "Azure Customer Insights Shared Access Signature Policies" @@ -251,7 +224,6 @@ }, { "display": { - "description": "Gets the available metrics for resource", "operation": "Read resource metric definitions", "provider": "Microsoft Azure Customer Insights", "resource": "Microsoft Azure Customer Insights Metric Definition" @@ -260,7 +232,6 @@ }, { "display": { - "description": "Gets the available logs for resource", "operation": "Read resource log definitions", "provider": "Microsoft Azure Customer Insights", "resource": "Microsoft Azure Customer Insights Log Definition" @@ -269,7 +240,6 @@ }, { "display": { - "description": "Gets the diagnostic setting for the resource", "operation": "Diagnostic setting read", "provider": "Microsoft Azure Customer Insights", "resource": "Microsoft Azure Customer Insights Diagnostic Settings" @@ -278,7 +248,6 @@ }, { "display": { - "description": "Creates or updates the diagnostic setting for the resource", "operation": "Diagnostic setting write", "provider": "Microsoft Azure Customer Insights", "resource": "Microsoft Azure Customer Insights Diagnostic Settings" diff --git a/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-04-26/examples/ProfilesListByHub.json b/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-04-26/examples/ProfilesListByHub.json index 5afff68434b9..737d0bcbd885 100644 --- a/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-04-26/examples/ProfilesListByHub.json +++ b/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-04-26/examples/ProfilesListByHub.json @@ -111,7 +111,7 @@ "type": "Microsoft.CustomerInsights/hubs/profiles" } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/customer-insights/resource-manager/readme.md b/specification/customer-insights/resource-manager/readme.md index 071d85f2c435..ab957ead38bf 100644 --- a/specification/customer-insights/resource-manager/readme.md +++ b/specification/customer-insights/resource-manager/readme.md @@ -61,6 +61,7 @@ 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-js - repo: azure-sdk-for-node @@ -138,3 +139,29 @@ generate-interface: 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)/Microsoft.CustomerInsights/stable/2017-04-26/customer-insights.json + - $(this-folder)/Microsoft.CustomerInsights/stable/2017-01-01/customer-insights.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/customproviders/resource-manager/readme.md b/specification/customproviders/resource-manager/readme.md index 1c4039307b08..8b3656a01526 100644 --- a/specification/customproviders/resource-manager/readme.md +++ b/specification/customproviders/resource-manager/readme.md @@ -49,6 +49,7 @@ 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 @@ -82,3 +83,28 @@ See configuration in [readme.csharp.md](./readme.csharp.md) ## NodeJS See configuration in [readme.nodejs.md](./readme.nodejs.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.CustomProviders/preview/2018-09-01-preview/customproviders.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/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCancelPost.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCancelPost.json index 27d6c0b10ee1..53b1e531c3b8 100644 --- a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCancelPost.json +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCancelPost.json @@ -26,8 +26,6 @@ } }, "responses": { - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCreate.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCreate.json index a8d3fce74ad3..7aecaf824e8c 100644 --- a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCreate.json +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsCreate.json @@ -60,9 +60,7 @@ } }, "responses": { - "202": { - "body": "" - }, + "202": {}, "200": { "body": { "properties": { diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsDelete.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsDelete.json index c6e0b8f29e28..a1ab18e456e4 100644 --- a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsDelete.json +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsDelete.json @@ -17,11 +17,7 @@ ] }, "responses": { - "202": { - "body": "" - }, - "204": { - "body": "" - } + "202": {}, + "204": {} } } diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsPatch.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsPatch.json index 75d9a8fa2cd4..2a7b81772c4d 100644 --- a/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsPatch.json +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2018-01-01/examples/JobsPatch.json @@ -47,9 +47,7 @@ } }, "responses": { - "202": { - "body": "" - }, + "202": {}, "200": { "body": { "properties": { diff --git a/specification/databox/resource-manager/readme.md b/specification/databox/resource-manager/readme.md index 3b2641d9d795..4e44f25b8584 100644 --- a/specification/databox/resource-manager/readme.md +++ b/specification/databox/resource-manager/readme.md @@ -49,6 +49,7 @@ 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-js - repo: azure-sdk-for-node @@ -145,3 +146,28 @@ java: regenerate-manager: true generate-interface: 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)/Microsoft.DataBox/stable/2018-01-01/databox.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/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceCreate.json b/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceCreate.json index 2b537b634673..012fdf9674c1 100644 --- a/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceCreate.json +++ b/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceCreate.json @@ -14,7 +14,6 @@ }, "responses": { "200": { - "headers": {}, "body": { "name": "myWorkspace", "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Databricks/workspaces/myWorkspace", @@ -32,6 +31,23 @@ } } }, - "201": {} + "201": { + "body": { + "name": "myWorkspace", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Databricks/workspaces/myWorkspace", + "type": "Microsoft.Databricks/workspaces", + "location": "East US 2", + "tags": null, + "sku": { + "name": "skuName" + }, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "parameters": null, + "provisioningState": "Created", + "uiDefinitionUri": "https://path/to/workspaceCreateUiDefinition.json" + } + } + } } } diff --git a/specification/databricks/resource-manager/readme.md b/specification/databricks/resource-manager/readme.md index 4ba4790f62fa..7aea7abb8e97 100644 --- a/specification/databricks/resource-manager/readme.md +++ b/specification/databricks/resource-manager/readme.md @@ -82,4 +82,28 @@ See configuration in [readme.go.md](./readme.go.md) ## Python -See configuration in [readme.python.md](./readme.python.md) \ No newline at end of file +See configuration in [readme.python.md](./readme.python.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.Databricks/stable/2018-04-01/databricks.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/datacatalog/resource-manager/Microsoft.DataCatalog/stable/2016-03-30/examples/DeleteADCCatalog.json b/specification/datacatalog/resource-manager/Microsoft.DataCatalog/stable/2016-03-30/examples/DeleteADCCatalog.json index 9ea2274c10ad..93c4c2e8ba46 100644 --- a/specification/datacatalog/resource-manager/Microsoft.DataCatalog/stable/2016-03-30/examples/DeleteADCCatalog.json +++ b/specification/datacatalog/resource-manager/Microsoft.DataCatalog/stable/2016-03-30/examples/DeleteADCCatalog.json @@ -6,29 +6,8 @@ "catalogName": "exampleCatalog" }, "responses": { - "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 17:55:54 GMT", - "x-ms-request-id": "a8bb197f-b00f-4add-a847-59f6aa0315ab", - "x-ms-correlation-request-id": "acdb3257-c6cb-44f1-8e14-afa3ebf471fa" - }, - "body": null - }, - "202": { - "headers": { - "Date": "Wed, 13 Sep 2017 17:55:54 GMT", - "x-ms-request-id": "a8bb197f-b00f-4add-a847-59f6aa0315ab", - "x-ms-correlation-request-id": "acdb3257-c6cb-44f1-8e14-afa3ebf471fa" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Wed, 13 Sep 2017 17:55:54 GMT", - "x-ms-request-id": "a8bb197f-b00f-4add-a847-59f6aa0315ab", - "x-ms-correlation-request-id": "acdb3257-c6cb-44f1-8e14-afa3ebf471fa" - }, - "body": null - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/datacatalog/resource-manager/readme.md b/specification/datacatalog/resource-manager/readme.md index 1d1e58a97db7..bdd675ff4582 100644 --- a/specification/datacatalog/resource-manager/readme.md +++ b/specification/datacatalog/resource-manager/readme.md @@ -50,6 +50,7 @@ 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-js - repo: azure-sdk-for-node @@ -65,7 +66,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.DataCatalog - output-folder: $(csharp-sdks-folder)/DataCatalog/Management.DataCatalog/Generated + output-folder: $(csharp-sdks-folder)/datacatalog/Microsoft.Azure.Management.DataCatalog/src/Generated clear-output-folder: true ``` @@ -132,3 +133,28 @@ generate-interface: 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)/Microsoft.DataCatalog/stable/2016-03-30/datacatalog.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/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/entityTypes/Pipeline.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/entityTypes/Pipeline.json index 3d0b863ca2d4..554d2135c6b2 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/entityTypes/Pipeline.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/entityTypes/Pipeline.json @@ -2076,6 +2076,10 @@ "additionalProperties": { "$ref": "#/definitions/SSISPropertyOverride" } + }, + "logLocation": { + "description": "SSIS package execution log location.", + "$ref": "#/definitions/SSISLogLocation" } }, "required": [ @@ -2090,12 +2094,47 @@ "packagePath": { "description": "The SSIS package path. Type: string (or Expression with resultType string).", "type": "object" + }, + "type": { + "description": "The type of SSIS package location.", + "type": "string", + "enum": [ + "SSISDB", + "File" + ], + "x-ms-enum": { + "name": "SsisPackageLocationType", + "modelAsString": true + } + }, + "typeProperties": { + "x-ms-client-flatten": true, + "description": "SSIS package location properties.", + "$ref": "#/definitions/SSISPackageLocationTypeProperties" } }, "required": [ "packagePath" ] }, + "SSISPackageLocationTypeProperties": { + "description": "SSIS package location properties.", + "type": "object", + "properties": { + "packagePassword": { + "$ref": "../datafactory.json#/definitions/SecretBase", + "description": "Password of the package." + }, + "accessCredential": { + "description": "The package access credential.", + "$ref": "#/definitions/SSISAccessCredential" + }, + "configurationPath": { + "description": "The configuration file of the package execution. Type: string (or Expression with resultType string).", + "type": "object" + } + } + }, "SSISConnectionManager": { "description": "SSIS Connection Manager.", "type": "object", @@ -2156,6 +2195,74 @@ "password" ] }, + "SSISAccessCredential": { + "description": "SSIS access credential.", + "type": "object", + "properties": { + "domain": { + "type": "object", + "description": "Domain for windows authentication." + }, + "userName": { + "type": "object", + "description": "UseName for windows authentication." + }, + "password": { + "$ref": "../datafactory.json#/definitions/SecretBase", + "description": "Password for windows authentication." + } + }, + "required": [ + "domain", + "userName", + "password" + ] + }, + "SSISLogLocation": { + "description": "SSIS package execution log location", + "type": "object", + "properties": { + "logPath": { + "description": "The SSIS package execution log path. Type: string (or Expression with resultType string).", + "type": "object" + }, + "type": { + "description": "The type of SSIS log location.", + "type": "string", + "enum": [ + "File" + ], + "x-ms-enum": { + "name": "SsisLogLocationType", + "modelAsString": true + } + }, + "typeProperties": { + "x-ms-client-flatten": true, + "description": "SSIS package execution log location properties.", + "$ref": "#/definitions/SSISLogLocationTypeProperties" + } + }, + "required": [ + "logPath", + "type", + "typeProperties" + ] + }, + "SSISLogLocationTypeProperties": { + "description": "SSIS package execution log location properties.", + "type": "object", + "properties": { + "accessCredential": { + "description": "The package execution log access credential.", + "$ref": "#/definitions/SSISAccessCredential" + }, + "logRefreshInterval": { + "type": "object", + "description": "Specifies the interval to refresh log. The default interval is 5 minutes. Type: string (or Expression with resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))." + } + } + }, "CustomActivity": { "description": "Custom activity type.", "x-ms-discriminator-value": "Custom", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Datasets_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Datasets_Delete.json index 04e92c709fc0..36f069df03a6 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Datasets_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Datasets_Delete.json @@ -7,25 +7,7 @@ "api-version": "2017-09-01-preview" }, "responses": { - "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:27 GMT", - "x-ms-request-id": "70d3cf1f-bf14-40f5-bb56-1550a317ce8b", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1183", - "x-ms-correlation-request-id": "d56bf687-df32-4313-87ec-ff22ba9bd192" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:27 GMT", - "x-ms-request-id": "a2347ff3-4018-4815-b58a-9fbe3cdcab52", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1182", - "x-ms-correlation-request-id": "9b926944-88d9-4d77-b1a8-5540c803f933" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Factories_CancelPipelineRun.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Factories_CancelPipelineRun.json index 4a1f6a1a490e..83817e9074a7 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Factories_CancelPipelineRun.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Factories_CancelPipelineRun.json @@ -7,15 +7,6 @@ "api-version": "2017-09-01-preview" }, "responses": { - "200": { - "headers": { - "Date": "Mon, 02 Oct 2017 17:27:33 GMT", - "x-ms-request-id": "fd3867ea-c65c-470d-a17b-d83c8864cf90", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1113", - "x-ms-correlation-request-id": "d0b45db5-c155-4991-95d9-22655c72c986" - }, - "body": null - } + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Factories_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Factories_Delete.json index 8fdcc97b90e3..622af493483a 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Factories_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Factories_Delete.json @@ -6,24 +6,7 @@ "api-version": "2017-09-01-preview" }, "responses": { - "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:31 GMT", - "x-ms-request-id": "00d8b4cd-058f-4da8-a3a9-7a7a9ae772f0", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1177", - "x-ms-correlation-request-id": "9693bca3-4ee7-4501-865e-8411952d196b" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:31 GMT", - "x-ms-ratelimit-remaining-subscription-writes": "1176", - "x-ms-request-id": "95fce457-ddee-44a2-84a1-05c33b32d807", - "x-ms-correlation-request-id": "95fce457-ddee-44a2-84a1-05c33b32d807" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimeNodes_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimeNodes_Delete.json index fbb4a3da2a86..088318838d46 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimeNodes_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimeNodes_Delete.json @@ -8,21 +8,7 @@ "api-version": "2017-09-01-preview" }, "responses": { - "200": { - "headers": { - "Date": "Thu, 19 Oct 2017 15:22:16 GMT", - "x-ms-request-id": "75a166f9-75ed-48d9-bc9b-08682dfdd0eb", - "X-Content-Type-Options": "nosniff" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Thu, 19 Oct 2017 15:22:16 GMT", - "x-ms-request-id": "d05cec68-ec62-4e95-97b6-9572eeab8ef2", - "X-Content-Type-Options": "nosniff" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Delete.json index ca78dd6b94da..3bbeae4d09ec 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Delete.json @@ -7,25 +7,7 @@ "api-version": "2017-09-01-preview" }, "responses": { - "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:29 GMT", - "x-ms-request-id": "6d1ee741-7850-484b-99cd-b42ef08fd18c", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1179", - "x-ms-correlation-request-id": "f931d2aa-0021-43ee-8005-2653da5e86d4" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:29 GMT", - "x-ms-request-id": "afb27d48-0c81-4e62-92c4-6fcb8c35c8a2", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1178", - "x-ms-correlation-request-id": "543d80b4-c9d0-418d-bf16-d2434abac0cb" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_RemoveNode.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_RemoveNode.json index dcf0d9e9440c..72163a4ed20a 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_RemoveNode.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_RemoveNode.json @@ -10,21 +10,7 @@ "api-version": "2017-09-01-preview" }, "responses": { - "200": { - "headers": { - "Date": "Tue, 28 Nov 2017 06:05:42 GMT", - "x-ms-request-id": "f1b13f98-0659-4eaa-a676-29912ae0a4f3", - "X-Content-Type-Options": "nosniff" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Tue, 28 Nov 2017 06:05:44 GMT", - "x-ms-request-id": "3d15a37e-f3f2-4e21-a90a-316f695a3f90", - "X-Content-Type-Options": "nosniff" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Start.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Start.json index 34cac9c4bc49..bfa4edc8cd78 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Start.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Start.json @@ -7,16 +7,7 @@ "api-version": "2017-09-01-preview" }, "responses": { - "202": { - "headers": { - "Date": "Tue, 28 Nov 2017 07:17:56 GMT", - "Location": "https://adfrpnightly.svc.datafactory-test.azure.com/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationRuntimes/exampleManagedIntegrationRuntime/start/operationresults/9a070152cddb4c839d482ccfb76a7537?api-version=2017-09-01-preview", - "Retry-After": "15", - "x-ms-request-id": "aa8a8ed1-7b2e-40eb-b734-9b7a5f393aed", - "X-Content-Type-Options": "nosniff" - }, - "body": null - }, + "202": {}, "200": { "headers": { "Date": "Tue, 28 Nov 2017 07:39:18 GMT", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Stop.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Stop.json index 351b499eb7d7..48bd7f969e40 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Stop.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Stop.json @@ -7,23 +7,7 @@ "api-version": "2017-09-01-preview" }, "responses": { - "202": { - "headers": { - "Date": "Tue, 28 Nov 2017 07:39:21 GMT", - "Location": "https://adfrpnightly.svc.datafactory-test.azure.com/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationRuntimes/exampleManagedIntegrationRuntime/stop/operationresults/50799841b7f94497ae43291b791db7e0?api-version=2017-09-01-preview", - "Retry-After": "15", - "x-ms-request-id": "b36c64a2-3306-4374-b93f-ec91dbb3bf26", - "X-Content-Type-Options": "nosniff" - }, - "body": null - }, - "200": { - "headers": { - "Date": "Tue, 28 Nov 2017 07:40:23 GMT", - "x-ms-request-id": "bcff281c-ae61-4e2d-8a0c-044e34c1d04a", - "X-Content-Type-Options": "nosniff" - }, - "body": null - } + "202": {}, + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_SyncCredentials.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_SyncCredentials.json index 0778b1f16a8e..74bb858cac73 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_SyncCredentials.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_SyncCredentials.json @@ -7,13 +7,6 @@ "api-version": "2017-09-01-preview" }, "responses": { - "200": { - "headers": { - "Date": "Sun, 20 Aug 2017 08:46:58 GMT", - "x-ms-request-id": "05bae251-45ef-4bca-9710-ecfc0181755b", - "X-Content-Type-Options": "nosniff" - }, - "body": null - } + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Upgrade.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Upgrade.json index 365c903ca287..74bb858cac73 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Upgrade.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/IntegrationRuntimes_Upgrade.json @@ -7,13 +7,6 @@ "api-version": "2017-09-01-preview" }, "responses": { - "200": { - "headers": { - "Date": "Tue, 14 Nov 2017 03:42:42 GMT", - "x-ms-request-id": "599429b9-3add-4d0c-973b-91ddaf3364e7", - "X-Content-Type-Options": "nosniff" - }, - "body": null - } + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/LinkedServices_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/LinkedServices_Delete.json index ac1d5ba9bc8d..79202e3a1b86 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/LinkedServices_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/LinkedServices_Delete.json @@ -7,25 +7,7 @@ "api-version": "2017-09-01-preview" }, "responses": { - "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:28 GMT", - "x-ms-request-id": "7383dae8-e077-4472-8f2e-91e1163dcbb2", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1181", - "x-ms-correlation-request-id": "af89dcb6-8a1e-498a-9b0c-3e866bd80f39" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:28 GMT", - "x-ms-request-id": "097cab57-d2b8-442d-90f0-2deb5e3733e5", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1180", - "x-ms-correlation-request-id": "3adc7b84-2fbe-4409-9481-bf2bd489f49f" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Pipelines_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Pipelines_Delete.json index 39feb99341db..590c4e3c3d2b 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Pipelines_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Pipelines_Delete.json @@ -7,25 +7,7 @@ "api-version": "2017-09-01-preview" }, "responses": { - "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:27 GMT", - "x-ms-request-id": "74ec3492-79c4-4028-9db1-fe7054e794d4", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-correlation-request-id": "332e562a-b3f8-4f5d-852d-8bb1bfc6a798" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:27 GMT", - "x-ms-request-id": "86b4c1f6-9944-4cef-8147-170c856da5ec", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-correlation-request-id": "5ba4c3d0-6e6a-465d-8ffd-592c38380527" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Triggers_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Triggers_Delete.json index 12ce3c425a33..668b64edef08 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Triggers_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Triggers_Delete.json @@ -7,25 +7,7 @@ "api-version": "2017-09-01-preview" }, "responses": { - "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:26 GMT", - "x-ms-request-id": "797186e9-af57-4d6c-8b4b-c363df9e9bf1", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-correlation-request-id": "19402448-85f2-4872-b998-9c6c1e17f04d" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:26 GMT", - "x-ms-request-id": "7d968b21-a030-4ba9-961b-7bbc799c0810", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-correlation-request-id": "d66d750a-c28f-4be6-852a-30a67be744a1" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Triggers_Start.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Triggers_Start.json index 56838942d01e..147ff22449c9 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Triggers_Start.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Triggers_Start.json @@ -7,15 +7,6 @@ "api-version": "2017-09-01-preview" }, "responses": { - "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 17:58:23 GMT", - "x-ms-request-id": "13c76ae4-02b3-49a2-9f2a-d2c9f8511507", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-correlation-request-id": "a28c76fa-3343-4bfb-9508-c92e2f374e79" - }, - "body": null - } + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Triggers_Stop.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Triggers_Stop.json index c89c07541ab5..147ff22449c9 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Triggers_Stop.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/examples/Triggers_Stop.json @@ -7,15 +7,6 @@ "api-version": "2017-09-01-preview" }, "responses": { - "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 18:04:25 GMT", - "x-ms-request-id": "601d7eac-1d85-4196-a70b-76b9b906d6dd", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-correlation-request-id": "c1f7bc90-6b21-464f-9c00-6e3869c0e63c" - }, - "body": null - } + "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 987f1e3df0be..abfeb6407b35 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 @@ -2765,6 +2765,149 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents": { + "post": { + "tags": [ + "triggers" + ], + "operationId": "Triggers_SubscribeToEvents", + "x-ms-examples": { + "Triggers_SubscribeToEvents": { + "$ref": "./examples/Triggers_SubscribeToEvents.json" + } + }, + "description": "Subscribe event trigger to events.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/factoryName" + }, + { + "$ref": "#/parameters/triggerName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Trigger is subscribed to events.", + "schema": { + "$ref": "#/definitions/TriggerSubscriptionOperationStatus" + } + }, + "202": { + "description": "Accepted." + }, + "default": { + "description": "An error response received from the Azure Data Factory service.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus": { + "post": { + "tags": [ + "triggers" + ], + "operationId": "Triggers_GetEventSubscriptionStatus", + "x-ms-examples": { + "Triggers_GetEventSubscriptionStatus": { + "$ref": "./examples/Triggers_GetEventSubscriptionStatus.json" + } + }, + "description": "Get a trigger's event subscription status.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/factoryName" + }, + { + "$ref": "#/parameters/triggerName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Trigger event subscription state.", + "schema": { + "$ref": "#/definitions/TriggerSubscriptionOperationStatus" + } + }, + "default": { + "description": "An error response received from the Azure Data Factory service.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents": { + "post": { + "tags": [ + "triggers" + ], + "operationId": "Triggers_UnsubscribeFromEvents", + "x-ms-examples": { + "Triggers_UnsubscribeFromEvents": { + "$ref": "./examples/Triggers_UnsubscribeFromEvents.json" + } + }, + "description": "Unsubscribe event trigger from events.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/factoryName" + }, + { + "$ref": "#/parameters/triggerName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Trigger is unsubscribed from events.", + "schema": { + "$ref": "#/definitions/TriggerSubscriptionOperationStatus" + } + }, + "202": { + "description": "Accepted." + }, + "default": { + "description": "An error response received from the Azure Data Factory service.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start": { "post": { "tags": [ @@ -2851,6 +2994,51 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/rerun": { + "post": { + "tags": [ + "triggerruns" + ], + "operationId": "TriggerRuns_Rerun", + "x-ms-examples": { + "Triggers_Rerun": { + "$ref": "./examples/TriggerRuns_Rerun.json" + } + }, + "description": "Rerun single trigger instance by runId.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/factoryName" + }, + { + "$ref": "#/parameters/triggerName" + }, + { + "$ref": "#/parameters/runId" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "TriggerRun has been restarted." + }, + "default": { + "description": "An error response received from the Azure Data Factory service.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/rerunTriggers/{rerunTriggerName}": { "put": { "tags": [ @@ -3613,6 +3801,33 @@ "message" ] }, + "TriggerSubscriptionOperationStatus": { + "description": "Defines the response of a trigger subscription operation.", + "type": "object", + "properties": { + "triggerName": { + "description": "Trigger name.", + "type": "string", + "readOnly": true + }, + "status": { + "type": "string", + "enum": [ + "Enabled", + "Provisioning", + "Deprovisioning", + "Disabled", + "Unknown" + ], + "x-ms-enum": { + "name": "EventSubscriptionStatus", + "modelAsString": true + }, + "description": "Event Subscription Status.", + "readOnly": true + } + } + }, "VariableDefinitionSpecification": { "description": "Definition of variable for a Pipeline.", "type": "object", 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 2b872d64d788..88b3adaca912 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 @@ -516,6 +516,54 @@ "bucketName" ] }, + "AvroDataset": { + "x-ms-discriminator-value": "Avro", + "description": "Avro dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Avro dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AvroDatasetTypeProperties" + } + } + }, + "AvroDatasetTypeProperties": { + "description": "Avro dataset properties.", + "properties": { + "location": { + "$ref": "#/definitions/DatasetLocation", + "description": "The location of the avro storage." + }, + "avroCompressionCodec": { + "type": "string", + "enum": [ + "none", + "deflate", + "snappy", + "xz", + "bzip2" + ], + "x-ms-enum": { + "name": "avroCompressionCodec", + "modelAsString": true + } + }, + "avroCompressionLevel": { + "type": "integer", + "minimum": 1, + "maximum": 9 + } + }, + "required": [ + "location" + ] + }, "ParquetDataset": { "x-ms-discriminator-value": "Parquet", "description": "Parquet dataset.", @@ -634,6 +682,77 @@ "location" ] }, + "JsonDataset": { + "x-ms-discriminator-value": "Json", + "description": "Json dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Json dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/JsonDatasetTypeProperties" + } + } + }, + "JsonDatasetTypeProperties": { + "description": "Json 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)." + }, + "compression": { + "description": "The data compression method used for the json dataset.", + "$ref": "#/definitions/DatasetCompression" + } + }, + "required": [ + "location" + ] + }, + "BinaryDataset": { + "x-ms-discriminator-value": "Binary", + "description": "Binary dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Binary dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/BinaryDatasetTypeProperties" + } + } + }, + "BinaryDatasetTypeProperties": { + "description": "Binary dataset properties.", + "type": "object", + "properties": { + "location": { + "$ref": "#/definitions/DatasetLocation", + "description": "The location of the Binary storage." + }, + "compression": { + "description": "The data compression method used for the binary dataset.", + "$ref": "#/definitions/DatasetCompression" + } + }, + "required": [ + "location" + ] + }, "AzureBlobDataset": { "x-ms-discriminator-value": "AzureBlob", "description": "The Azure Blob storage.", @@ -737,11 +856,53 @@ "description": "Azure SQL dataset properties.", "properties": { "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "schema": { + "type": "object", + "description": "The schema name of the Azure SQL database. Type: string (or Expression with resultType string)." + }, + "table": { "type": "object", "description": "The table name of the Azure SQL database. Type: string (or Expression with resultType string)." } } }, + "AzureSqlMITableDataset": { + "x-ms-discriminator-value": "AzureSqlMITable", + "description": "The Azure SQL Managed Instance dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Azure SQL Managed Instance dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AzureSqlMITableDatasetTypeProperties" + } + } + }, + "AzureSqlMITableDatasetTypeProperties": { + "description": "Azure SQL Managed Instance dataset properties.", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "schema": { + "type": "object", + "description": "The schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType string)." + }, + "table": { + "type": "object", + "description": "The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression with resultType string)." + } + } + }, "AzureSqlDWTableDataset": { "x-ms-discriminator-value": "AzureSqlDWTable", "description": "The Azure SQL Data Warehouse dataset.", @@ -763,6 +924,14 @@ "description": "Azure SQL Data Warehouse dataset properties.", "properties": { "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "schema": { + "type": "object", + "description": "The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string)." + }, + "table": { "type": "object", "description": "The table name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string)." } @@ -872,6 +1041,58 @@ } } }, + "DynamicsCrmEntityDataset": { + "x-ms-discriminator-value": "DynamicsCrmEntity", + "description": "The Dynamics CRM entity dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Dynamics CRM entity dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DynamicsCrmEntityDatasetTypeProperties" + } + } + }, + "DynamicsCrmEntityDatasetTypeProperties": { + "description": "Dynamics CRM entity dataset properties.", + "properties": { + "entityName": { + "type": "object", + "description": "The logical name of the entity. Type: string (or Expression with resultType string)." + } + } + }, + "CommonDataServiceForAppsEntityDataset": { + "x-ms-discriminator-value": "CommonDataServiceForAppsEntity", + "description": "The Common Data Service for Apps entity dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Common Data Service for Apps entity dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/CommonDataServiceForAppsEntityDatasetTypeProperties" + } + } + }, + "CommonDataServiceForAppsEntityDatasetTypeProperties": { + "description": "Common Data Service for Apps entity dataset properties.", + "properties": { + "entityName": { + "type": "object", + "description": "The logical name of the entity. Type: string (or Expression with resultType string)." + } + } + }, "AzureDataLakeStoreDataset": { "x-ms-discriminator-value": "AzureDataLakeStoreFile", "description": "Azure Data Lake Store dataset.", @@ -1130,9 +1351,274 @@ "collection" ] }, - "ODataResourceDataset": { - "x-ms-discriminator-value": "ODataResource", - "description": "The Open Data Protocol (OData) resource dataset.", + "ODataResourceDataset": { + "x-ms-discriminator-value": "ODataResource", + "description": "The Open Data Protocol (OData) resource dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "OData dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ODataResourceDatasetTypeProperties" + } + } + }, + "ODataResourceDatasetTypeProperties": { + "description": "OData dataset properties.", + "properties": { + "path": { + "type": "object", + "description": "The OData resource path. Type: string (or Expression with resultType string)." + } + } + }, + "OracleTableDataset": { + "x-ms-discriminator-value": "OracleTable", + "description": "The on-premises Oracle database dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "On-premises Oracle dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/OracleTableDatasetTypeProperties" + } + } + }, + "OracleTableDatasetTypeProperties": { + "description": "On-premises Oracle dataset properties.", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "schema": { + "type": "object", + "description": "The schema name of the on-premises Oracle database. Type: string (or Expression with resultType string)." + }, + "table": { + "type": "object", + "description": "The table name of the on-premises Oracle database. Type: string (or Expression with resultType string)." + } + } + }, + "TeradataTableDataset": { + "x-ms-discriminator-value": "TeradataTable", + "description": "The Teradata database dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Teradata dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/TeradataTableDatasetTypeProperties" + } + } + }, + "TeradataTableDatasetTypeProperties": { + "description": "Teradata dataset properties.", + "properties": { + "database": { + "type": "object", + "description": "The database name of Teradata. Type: string (or Expression with resultType string)." + }, + "table": { + "type": "object", + "description": "The table name of Teradata. Type: string (or Expression with resultType string)." + } + } + }, + "AzureMySqlTableDataset": { + "x-ms-discriminator-value": "AzureMySqlTable", + "description": "The Azure MySQL database dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Azure MySQL database dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AzureMySqlTableDatasetTypeProperties" + } + }, + "required": [ + "typeProperties" + ] + }, + "AzureMySqlTableDatasetTypeProperties": { + "description": "Azure MySQL database dataset properties.", + "properties": { + "tableName": { + "type": "object", + "description": "The Azure MySQL database table name. Type: string (or Expression with resultType string)." + } + } + }, + "AmazonRedshiftTableDataset": { + "x-ms-discriminator-value": "AmazonRedshiftTable", + "description": "The Amazon Redshift table dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Amazon Redshift table dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AmazonRedshiftTableDatasetTypeProperties" + } + } + }, + "AmazonRedshiftTableDatasetTypeProperties": { + "description": "Amazon Redshift table dataset properties.", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "table": { + "type": "object", + "description": "The Amazon Redshift table name. Type: string (or Expression with resultType string)." + }, + "schema": { + "type": "object", + "description": "The Amazon Redshift schema name. Type: string (or Expression with resultType string)." + } + } + }, + "Db2TableDataset": { + "x-ms-discriminator-value": "Db2Table", + "description": "The Db2 table dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Db2 table dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/Db2TableDatasetTypeProperties" + } + } + }, + "Db2TableDatasetTypeProperties": { + "description": "Db2 table dataset properties.", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "schema": { + "type": "object", + "description": "The Db2 schema name. Type: string (or Expression with resultType string)." + }, + "table": { + "type": "object", + "description": "The Db2 table name. Type: string (or Expression with resultType string)." + } + } + }, + "RelationalTableDataset": { + "x-ms-discriminator-value": "RelationalTable", + "description": "The relational table dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Relational table dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/RelationalTableDatasetTypeProperties" + } + } + }, + "RelationalTableDatasetTypeProperties": { + "description": "Relational table dataset properties.", + "properties": { + "tableName": { + "type": "object", + "description": "The relational table name. Type: string (or Expression with resultType string)." + } + } + }, + "InformixTableDataset": { + "x-ms-discriminator-value": "InformixTable", + "description": "The Informix table dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Informix table dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/InformixTableDatasetTypeProperties" + } + } + }, + "InformixTableDatasetTypeProperties": { + "description": "Informix table dataset properties.", + "properties": { + "tableName": { + "type": "object", + "description": "The Informix table name. Type: string (or Expression with resultType string)." + } + } + }, + "OdbcTableDataset": { + "x-ms-discriminator-value": "OdbcTable", + "description": "The ODBC table dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "ODBC table dataset properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/OdbcTableDatasetTypeProperties" + } + } + }, + "OdbcTableDatasetTypeProperties": { + "description": "ODBC table dataset properties.", + "properties": { + "tableName": { + "type": "object", + "description": "The ODBC table name. Type: string (or Expression with resultType string)." + } + } + }, + "MySqlTableDataset": { + "x-ms-discriminator-value": "MySqlTable", + "description": "The MySQL table dataset.", "type": "object", "allOf": [ { @@ -1141,24 +1627,24 @@ ], "properties": { "typeProperties": { - "description": "OData dataset properties.", + "description": "MySQL table dataset properties.", "x-ms-client-flatten": true, - "$ref": "#/definitions/ODataResourceDatasetTypeProperties" + "$ref": "#/definitions/MySqlTableDatasetTypeProperties" } } }, - "ODataResourceDatasetTypeProperties": { - "description": "OData dataset properties.", + "MySqlTableDatasetTypeProperties": { + "description": "MySql table dataset properties.", "properties": { - "path": { + "tableName": { "type": "object", - "description": "The OData resource path. Type: string (or Expression with resultType string)." + "description": "The MySQL table name. Type: string (or Expression with resultType string)." } } }, - "OracleTableDataset": { - "x-ms-discriminator-value": "OracleTable", - "description": "The on-premises Oracle database dataset.", + "PostgreSqlTableDataset": { + "x-ms-discriminator-value": "PostgreSqlTable", + "description": "The PostgreSQL table dataset.", "type": "object", "allOf": [ { @@ -1167,37 +1653,32 @@ ], "properties": { "typeProperties": { - "description": "On-premises Oracle dataset properties.", + "description": "PostgreSQL table dataset properties.", "x-ms-client-flatten": true, - "$ref": "#/definitions/OracleTableDatasetTypeProperties" + "$ref": "#/definitions/PostgreSqlTableDatasetTypeProperties" } } }, - "OracleTableDatasetTypeProperties": { - "description": "On-premises Oracle dataset properties.", + "PostgreSqlTableDatasetTypeProperties": { + "description": "PostgreSQL table dataset properties.", "properties": { "tableName": { "type": "object", - "description": "The table name of the on-premises Oracle database. Type: string (or Expression with resultType string)." - } - } - }, - "TeradataTableDatasetTypeProperties": { - "description": "Teradata dataset properties.", - "properties": { - "database": { - "type": "object", - "description": "The database name of Teradata. Type: string (or Expression with resultType string)." + "description": "This property will be retired. Please consider using schema + table properties instead." }, "table": { "type": "object", - "description": "The table name of Teradata. Type: string (or Expression with resultType string)." + "description": "The PostgreSQL table name. Type: string (or Expression with resultType string)." + }, + "schema": { + "type": "object", + "description": "The PostgreSQL schema name. Type: string (or Expression with resultType string)." } } }, - "TeradataTableDataset": { - "x-ms-discriminator-value": "TeradataTable", - "description": "The Teradata database dataset.", + "MicrosoftAccessTableDataset": { + "x-ms-discriminator-value": "MicrosoftAccessTable", + "description": "The Microsoft Access table dataset.", "type": "object", "allOf": [ { @@ -1206,15 +1687,24 @@ ], "properties": { "typeProperties": { - "description": "Teradata dataset properties.", + "description": "Microsoft Access table dataset properties.", "x-ms-client-flatten": true, - "$ref": "#/definitions/TeradataTableDatasetTypeProperties" + "$ref": "#/definitions/MicrosoftAccessTableDatasetTypeProperties" } } }, - "AzureMySqlTableDataset": { - "x-ms-discriminator-value": "AzureMySqlTable", - "description": "The Azure MySQL database dataset.", + "MicrosoftAccessTableDatasetTypeProperties": { + "description": "Microsoft Access table dataset properties.", + "properties": { + "tableName": { + "type": "object", + "description": "The Microsoft Access table name. Type: string (or Expression with resultType string)." + } + } + }, + "SalesforceObjectDataset": { + "x-ms-discriminator-value": "SalesforceObject", + "description": "The Salesforce object dataset.", "type": "object", "allOf": [ { @@ -1223,27 +1713,24 @@ ], "properties": { "typeProperties": { - "description": "Azure MySQL database dataset properties.", + "description": "Salesforce object dataset properties.", "x-ms-client-flatten": true, - "$ref": "#/definitions/AzureMySqlTableDatasetTypeProperties" + "$ref": "#/definitions/SalesforceObjectDatasetTypeProperties" } - }, - "required": [ - "typeProperties" - ] + } }, - "AzureMySqlTableDatasetTypeProperties": { - "description": "Azure MySQL database dataset properties.", + "SalesforceObjectDatasetTypeProperties": { + "description": "Salesforce object dataset properties.", "properties": { - "tableName": { + "objectApiName": { "type": "object", - "description": "The Azure MySQL database table name. Type: string (or Expression with resultType string)." + "description": "The Salesforce object API name. Type: string (or Expression with resultType string)." } } }, - "RelationalTableDataset": { - "x-ms-discriminator-value": "RelationalTable", - "description": "The relational table dataset.", + "SalesforceServiceCloudObjectDataset": { + "x-ms-discriminator-value": "SalesforceServiceCloudObject", + "description": "The Salesforce Service Cloud object dataset.", "type": "object", "allOf": [ { @@ -1252,24 +1739,24 @@ ], "properties": { "typeProperties": { - "description": "Relational table dataset properties.", + "description": "Salesforce Service Cloud object dataset properties.", "x-ms-client-flatten": true, - "$ref": "#/definitions/RelationalTableDatasetTypeProperties" + "$ref": "#/definitions/SalesforceServiceCloudObjectDatasetTypeProperties" } } }, - "RelationalTableDatasetTypeProperties": { - "description": "Relational table dataset properties.", + "SalesforceServiceCloudObjectDatasetTypeProperties": { + "description": "Salesforce Service Cloud object dataset properties.", "properties": { - "tableName": { + "objectApiName": { "type": "object", - "description": "The relational table name. Type: string (or Expression with resultType string)." + "description": "The Salesforce Service Cloud object API name. Type: string (or Expression with resultType string)." } } }, - "SalesforceObjectDataset": { - "x-ms-discriminator-value": "SalesforceObject", - "description": "The Salesforce object dataset.", + "SybaseTableDataset": { + "x-ms-discriminator-value": "SybaseTable", + "description": "The Sybase table dataset.", "type": "object", "allOf": [ { @@ -1278,21 +1765,32 @@ ], "properties": { "typeProperties": { - "description": "Salesforce object dataset properties.", + "description": "Sybase table dataset properties.", "x-ms-client-flatten": true, - "$ref": "#/definitions/SalesforceObjectDatasetTypeProperties" + "$ref": "#/definitions/SybaseTableDatasetTypeProperties" } } }, - "SalesforceObjectDatasetTypeProperties": { - "description": "Salesforce object dataset properties.", + "SybaseTableDatasetTypeProperties": { + "description": "Sybase table dataset properties.", "properties": { - "objectApiName": { + "tableName": { "type": "object", - "description": "The Salesforce object API name. Type: string (or Expression with resultType string)." + "description": "The Sybase table name. Type: string (or Expression with resultType string)." } } }, + "SapBwCubeDataset": { + "x-ms-discriminator-value": "SapBwCube", + "description": "The SAP BW cube dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": {} + }, "SapCloudForCustomerResourceDataset": { "x-ms-discriminator-value": "SapCloudForCustomerResource", "description": "The path of the SAP Cloud for Customer OData entity.", @@ -1448,6 +1946,14 @@ "description": "On-premises SQL Server dataset properties.", "properties": { "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "schema": { + "type": "object", + "description": "The schema name of the SQL Server dataset. Type: string (or Expression with resultType string)." + }, + "table": { "type": "object", "description": "The table name of the SQL Server dataset. Type: string (or Expression with resultType string)." } @@ -1680,7 +2186,24 @@ "typeProperties": { "description": "Properties specific to this dataset type.", "x-ms-client-flatten": true, - "$ref": "#/definitions/GenericDatasetTypeProperties" + "$ref": "#/definitions/AzurePostgreSqlTableDatasetTypeProperties" + } + } + }, + "AzurePostgreSqlTableDatasetTypeProperties": { + "description": "Azure PostgreSQL dataset properties.", + "properties": { + "tableName": { + "type": "object", + "description": "The table name of the Azure PostgreSQL database which includes both schema and table. Type: string (or Expression with resultType string)." + }, + "table": { + "type": "object", + "description": "The table name of the Azure PostgreSQL database. Type: string (or Expression with resultType string)." + }, + "schema": { + "type": "object", + "description": "The schema name of the Azure PostgreSQL database. Type: string (or Expression with resultType string)." } } }, @@ -1731,7 +2254,24 @@ "typeProperties": { "description": "Properties specific to this dataset type.", "x-ms-client-flatten": true, - "$ref": "#/definitions/GenericDatasetTypeProperties" + "$ref": "#/definitions/DrillDatasetTypeProperties" + } + } + }, + "DrillDatasetTypeProperties": { + "description": "Drill Dataset Properties", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "table": { + "type": "object", + "description": "The table name of the Drill. Type: string (or Expression with resultType string)." + }, + "schema": { + "type": "object", + "description": "The schema name of the Drill. Type: string (or Expression with resultType string)." } } }, @@ -1765,7 +2305,24 @@ "typeProperties": { "description": "Properties specific to this dataset type.", "x-ms-client-flatten": true, - "$ref": "#/definitions/GenericDatasetTypeProperties" + "$ref": "#/definitions/GoogleBigQueryDatasetTypeProperties" + } + } + }, + "GoogleBigQueryDatasetTypeProperties": { + "description": "Google BigQuery Dataset Properties", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using database + table properties instead." + }, + "table": { + "type": "object", + "description": "The table name of the Google BigQuery. Type: string (or Expression with resultType string)." + }, + "dataset": { + "type": "object", + "description": "The database name of the Google BigQuery. Type: string (or Expression with resultType string)." } } }, @@ -1782,7 +2339,24 @@ "typeProperties": { "description": "Properties specific to this dataset type.", "x-ms-client-flatten": true, - "$ref": "#/definitions/GenericDatasetTypeProperties" + "$ref": "#/definitions/GreenplumDatasetTypeProperties" + } + } + }, + "GreenplumDatasetTypeProperties": { + "description": "Greenplum Dataset Properties", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "table": { + "type": "object", + "description": "The table name of Greenplum. Type: string (or Expression with resultType string)." + }, + "schema": { + "type": "object", + "description": "The schema name of Greenplum. Type: string (or Expression with resultType string)." } } }, @@ -1816,7 +2390,24 @@ "typeProperties": { "description": "Properties specific to this dataset type.", "x-ms-client-flatten": true, - "$ref": "#/definitions/GenericDatasetTypeProperties" + "$ref": "#/definitions/HiveDatasetTypeProperties" + } + } + }, + "HiveDatasetTypeProperties": { + "description": "Hive Properties", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "table": { + "type": "object", + "description": "The table name of the Hive. Type: string (or Expression with resultType string)." + }, + "schema": { + "type": "object", + "description": "The schema name of the Hive. Type: string (or Expression with resultType string)." } } }, @@ -1850,7 +2441,24 @@ "typeProperties": { "description": "Properties specific to this dataset type.", "x-ms-client-flatten": true, - "$ref": "#/definitions/GenericDatasetTypeProperties" + "$ref": "#/definitions/ImpalaDatasetTypeProperties" + } + } + }, + "ImpalaDatasetTypeProperties": { + "description": "Impala Dataset Properties", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "table": { + "type": "object", + "description": "The table name of the Impala. Type: string (or Expression with resultType string)." + }, + "schema": { + "type": "object", + "description": "The schema name of the Impala. Type: string (or Expression with resultType string)." } } }, @@ -1905,6 +2513,23 @@ } } }, + "AzureMariaDBTableDataset": { + "x-ms-discriminator-value": "AzureMariaDBTable", + "description": "Azure Database for MariaDB dataset.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Dataset" + } + ], + "properties": { + "typeProperties": { + "description": "Properties specific to this dataset type.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/GenericDatasetTypeProperties" + } + } + }, "MarketoObjectDataset": { "x-ms-discriminator-value": "MarketoObject", "description": "Marketo server dataset.", @@ -1952,7 +2577,24 @@ "typeProperties": { "description": "Properties specific to this dataset type.", "x-ms-client-flatten": true, - "$ref": "#/definitions/GenericDatasetTypeProperties" + "$ref": "#/definitions/PhoenixDatasetTypeProperties" + } + } + }, + "PhoenixDatasetTypeProperties": { + "description": "Phoenix Dataset Properties", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "table": { + "type": "object", + "description": "The table name of the Phoenix. Type: string (or Expression with resultType string)." + }, + "schema": { + "type": "object", + "description": "The schema name of the Phoenix. Type: string (or Expression with resultType string)." } } }, @@ -1969,7 +2611,24 @@ "typeProperties": { "description": "Properties specific to this dataset type.", "x-ms-client-flatten": true, - "$ref": "#/definitions/GenericDatasetTypeProperties" + "$ref": "#/definitions/PrestoDatasetTypeProperties" + } + } + }, + "PrestoDatasetTypeProperties": { + "description": "Presto Dataset Properties", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "table": { + "type": "object", + "description": "The table name of the Presto. Type: string (or Expression with resultType string)." + }, + "schema": { + "type": "object", + "description": "The schema name of the Presto. Type: string (or Expression with resultType string)." } } }, @@ -2037,7 +2696,24 @@ "typeProperties": { "description": "Properties specific to this dataset type.", "x-ms-client-flatten": true, - "$ref": "#/definitions/GenericDatasetTypeProperties" + "$ref": "#/definitions/SparkDatasetTypeProperties" + } + } + }, + "SparkDatasetTypeProperties": { + "description": "Spark Properties", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "table": { + "type": "object", + "description": "The table name of the Spark. Type: string (or Expression with resultType string)." + }, + "schema": { + "type": "object", + "description": "The schema name of the Spark. Type: string (or Expression with resultType string)." } } }, @@ -2105,7 +2781,24 @@ "typeProperties": { "description": "Properties specific to this dataset type.", "x-ms-client-flatten": true, - "$ref": "#/definitions/GenericDatasetTypeProperties" + "$ref": "#/definitions/NetezzaTableDatasetTypeProperties" + } + } + }, + "NetezzaTableDatasetTypeProperties": { + "description": "Netezza dataset properties.", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "table": { + "type": "object", + "description": "The table name of the Netezza. Type: string (or Expression with resultType string)." + }, + "schema": { + "type": "object", + "description": "The schema name of the Netezza. Type: string (or Expression with resultType string)." } } }, @@ -2122,7 +2815,24 @@ "typeProperties": { "description": "Properties specific to this dataset type.", "x-ms-client-flatten": true, - "$ref": "#/definitions/GenericDatasetTypeProperties" + "$ref": "#/definitions/VerticaDatasetTypeProperties" + } + } + }, + "VerticaDatasetTypeProperties": { + "description": "Vertica Properties", + "properties": { + "tableName": { + "type": "object", + "description": "This property will be retired. Please consider using schema + table properties instead." + }, + "table": { + "type": "object", + "description": "The table name of the Vertica. Type: string (or Expression with resultType string)." + }, + "schema": { + "type": "object", + "description": "The schema name of the Vertica. Type: string (or Expression with resultType string)." } } }, diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/IntegrationRuntime.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/IntegrationRuntime.json index 2f9c9ca48e09..76d990e2fb31 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/IntegrationRuntime.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/IntegrationRuntime.json @@ -362,7 +362,10 @@ }, "additionalProperties": { "type": "object" - } + }, + "required": [ + "type" + ] }, "IntegrationRuntimeState": { "description": "The state of integration runtime.", @@ -681,7 +684,6 @@ "IntegrationRuntimeAutoUpdate": { "description": "The state of integration runtime auto update.", "type": "string", - "readOnly": true, "enum": [ "On", "Off" @@ -1040,7 +1042,10 @@ "type": "string", "description": "Metadata description." } - } + }, + "required": [ + "type" + ] }, "SsisObjectMetadataType": { "description": "The type of SSIS object metadata.", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/LinkedService.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/LinkedService.json index bb72a07710f7..12b90c896c65 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/LinkedService.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/LinkedService.json @@ -316,6 +316,58 @@ "connectionString" ] }, + "AzureSqlMILinkedService": { + "x-ms-discriminator-value": "AzureSqlMI", + "description": "Azure SQL Managed Instance linked service.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/LinkedService" + } + ], + "properties": { + "typeProperties": { + "description": "Azure SQL Managed Instance linked service properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AzureSqlMILinkedServiceTypeProperties" + } + }, + "required": [ + "typeProperties" + ] + }, + "AzureSqlMILinkedServiceTypeProperties": { + "description": "Azure SQL Managed Instance linked service properties.", + "properties": { + "connectionString": { + "description": "The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.", + "type": "object" + }, + "password": { + "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference", + "description": "The Azure key vault secret reference of password in connection string." + }, + "servicePrincipalId": { + "type": "object", + "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", + "description": "The key of the service principal used to authenticate against Azure SQL Managed Instance." + }, + "tenant": { + "type": "object", + "description": "The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string)." + }, + "encryptedCredential": { + "type": "object", + "description": "The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string)." + } + }, + "required": [ + "connectionString" + ] + }, "AzureBatchLinkedService": { "x-ms-discriminator-value": "AzureBatch", "description": "Azure Batch linked service.", @@ -525,6 +577,170 @@ "username" ] }, + "DynamicsCrmLinkedService": { + "x-ms-discriminator-value": "DynamicsCrm", + "description": "Dynamics CRM linked service.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/LinkedService" + } + ], + "properties": { + "typeProperties": { + "description": "Dynamics CRM linked service properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DynamicsCrmLinkedServiceTypeProperties" + } + }, + "required": [ + "typeProperties" + ] + }, + "DynamicsCrmLinkedServiceTypeProperties": { + "description": "Dynamics CRM linked service properties.", + "properties": { + "deploymentType": { + "x-ms-enum": { + "name": "DynamicsDeploymentType", + "modelAsString": true + }, + "enum": [ + "Online", + "OnPremisesWithIfd" + ], + "type": "string", + "description": "The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType string)." + }, + "hostName": { + "type": "object", + "description": "The host name of the on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. Type: string (or Expression with resultType string)." + }, + "port": { + "type": "object", + "description": "The port of on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0." + }, + "serviceUri": { + "type": "object", + "description": "The URL to the Microsoft Dynamics CRM server. The property is required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string)." + }, + "organizationName": { + "type": "object", + "description": "The organization name of the Dynamics CRM instance. The property is required for on-prem and required for online when there are more than one Dynamics CRM instances associated with the user. Type: string (or Expression with resultType string)." + }, + "authenticationType": { + "x-ms-enum": { + "name": "DynamicsAuthenticationType", + "modelAsString": true + }, + "enum": [ + "Office365", + "Ifd" + ], + "type": "string", + "description": "The authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string)." + }, + "username": { + "type": "object", + "description": "User name to access the Dynamics CRM instance. Type: string (or Expression with resultType string)." + }, + "password": { + "description": "Password to access the Dynamics CRM instance.", + "$ref": "../datafactory.json#/definitions/SecretBase" + }, + "encryptedCredential": { + "type": "object", + "description": "The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string)." + } + }, + "required": [ + "deploymentType", + "authenticationType", + "username" + ] + }, + "CommonDataServiceForAppsLinkedService": { + "x-ms-discriminator-value": "CommonDataServiceForApps", + "description": "Common Data Service for Apps linked service.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/LinkedService" + } + ], + "properties": { + "typeProperties": { + "description": "Common Data Service for Apps linked service properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/CommonDataServiceForAppsLinkedServiceTypeProperties" + } + }, + "required": [ + "typeProperties" + ] + }, + "CommonDataServiceForAppsLinkedServiceTypeProperties": { + "description": "Common Data Service for Apps linked service properties.", + "properties": { + "deploymentType": { + "x-ms-enum": { + "name": "DynamicsDeploymentType", + "modelAsString": true + }, + "enum": [ + "Online", + "OnPremisesWithIfd" + ], + "type": "string", + "description": "The deployment type of the Common Data Service for Apps instance. 'Online' for Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with Ifd. Type: string (or Expression with resultType string)." + }, + "hostName": { + "type": "object", + "description": "The host name of the on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed for online. Type: string (or Expression with resultType string)." + }, + "port": { + "type": "object", + "description": "The port of on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0." + }, + "serviceUri": { + "type": "object", + "description": "The URL to the Microsoft Common Data Service for Apps server. The property is required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string)." + }, + "organizationName": { + "type": "object", + "description": "The organization name of the Common Data Service for Apps instance. The property is required for on-prem and required for online when there are more than one Common Data Service for Apps instances associated with the user. Type: string (or Expression with resultType string)." + }, + "authenticationType": { + "x-ms-enum": { + "name": "DynamicsAuthenticationType", + "modelAsString": true + }, + "enum": [ + "Office365", + "Ifd" + ], + "type": "string", + "description": "The authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string)." + }, + "username": { + "type": "object", + "description": "User name to access the Common Data Service for Apps instance. Type: string (or Expression with resultType string)." + }, + "password": { + "description": "Password to access the Common Data Service for Apps instance.", + "$ref": "../datafactory.json#/definitions/SecretBase" + }, + "encryptedCredential": { + "type": "object", + "description": "The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string)." + } + }, + "required": [ + "deploymentType", + "authenticationType", + "username" + ] + }, "HDInsightLinkedService": { "x-ms-discriminator-value": "HDInsight", "description": "HDInsight linked service.", @@ -1080,6 +1296,110 @@ "connectionString" ] }, + "InformixLinkedService": { + "x-ms-discriminator-value": "Informix", + "description": "Informix linked service.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/LinkedService" + } + ], + "properties": { + "typeProperties": { + "description": "Informix linked service properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/InformixLinkedServiceTypeProperties" + } + }, + "required": [ + "typeProperties" + ] + }, + "InformixLinkedServiceTypeProperties": { + "description": "Informix linked service properties.", + "properties": { + "connectionString": { + "description": "The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference.", + "type": "object" + }, + "authenticationType": { + "type": "object", + "description": "Type of authentication used to connect to the Informix as ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string)." + }, + "credential": { + "description": "The access credential portion of the connection string specified in driver-specific property-value format.", + "$ref": "../datafactory.json#/definitions/SecretBase" + }, + "userName": { + "type": "object", + "description": "User name for Basic authentication. Type: string (or Expression with resultType string)." + }, + "password": { + "description": "Password for Basic authentication.", + "$ref": "../datafactory.json#/definitions/SecretBase" + }, + "encryptedCredential": { + "type": "object", + "description": "The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string)." + } + }, + "required": [ + "connectionString" + ] + }, + "MicrosoftAccessLinkedService": { + "x-ms-discriminator-value": "MicrosoftAccess", + "description": "Microsoft Access linked service.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/LinkedService" + } + ], + "properties": { + "typeProperties": { + "description": "Microsoft Access linked service properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/MicrosoftAccessLinkedServiceTypeProperties" + } + }, + "required": [ + "typeProperties" + ] + }, + "MicrosoftAccessLinkedServiceTypeProperties": { + "description": "Microsoft Access linked service properties.", + "properties": { + "connectionString": { + "description": "The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference.", + "type": "object" + }, + "authenticationType": { + "type": "object", + "description": "Type of authentication used to connect to the Microsoft Access as ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string)." + }, + "credential": { + "description": "The access credential portion of the connection string specified in driver-specific property-value format.", + "$ref": "../datafactory.json#/definitions/SecretBase" + }, + "userName": { + "type": "object", + "description": "User name for Basic authentication. Type: string (or Expression with resultType string)." + }, + "password": { + "description": "Password for Basic authentication.", + "$ref": "../datafactory.json#/definitions/SecretBase" + }, + "encryptedCredential": { + "type": "object", + "description": "The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string)." + } + }, + "required": [ + "connectionString" + ] + }, "HdfsLinkedService": { "x-ms-discriminator-value": "Hdfs", "description": "Hadoop Distributed File System (HDFS) linked service.", @@ -1736,6 +2056,55 @@ } } }, + "SalesforceServiceCloudLinkedService": { + "x-ms-discriminator-value": "SalesforceServiceCloud", + "description": "Linked service for Salesforce Service Cloud.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/LinkedService" + } + ], + "properties": { + "typeProperties": { + "description": "Salesforce Service Cloud linked service properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/SalesforceServiceCloudLinkedServiceTypeProperties" + } + }, + "required": [ + "typeProperties" + ] + }, + "SalesforceServiceCloudLinkedServiceTypeProperties": { + "description": "Salesforce Service Cloud linked service properties.", + "properties": { + "environmentUrl": { + "type": "object", + "description": "The URL of Salesforce Service Cloud instance. Default is 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. To copy data from custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string)." + }, + "username": { + "type": "object", + "description": "The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string)." + }, + "password": { + "description": "The password for Basic authentication of the Salesforce instance.", + "$ref": "../datafactory.json#/definitions/SecretBase" + }, + "securityToken": { + "description": "The security token is required to remotely access Salesforce instance.", + "$ref": "../datafactory.json#/definitions/SecretBase" + }, + "extendedProperties": { + "type": "object", + "description": "Extended properties appended to the connection string. Type: string (or Expression with resultType string)." + }, + "encryptedCredential": { + "type": "object", + "description": "The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string)." + } + } + }, "SapCloudForCustomerLinkedService": { "x-ms-discriminator-value": "SapCloudForCustomer", "description": "Linked service for SAP Cloud for Customer.", @@ -3364,6 +3733,43 @@ } } }, + "AzureMariaDBLinkedService": { + "x-ms-discriminator-value": "AzureMariaDB", + "description": "Azure Database for MariaDB linked service.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/LinkedService" + } + ], + "properties": { + "typeProperties": { + "description": "Azure Database for MariaDB linked service properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AzureMariaDBLinkedServiceTypeProperties" + } + }, + "required": [ + "typeProperties" + ] + }, + "AzureMariaDBLinkedServiceTypeProperties": { + "description": "Azure Database for MariaDB linked service properties.", + "properties": { + "connectionString": { + "description": "An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference.", + "type": "object" + }, + "pwd": { + "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference", + "description": "The Azure key vault secret reference of password in connection string." + }, + "encryptedCredential": { + "description": "The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).", + "type": "object" + } + } + }, "MarketoLinkedService": { "x-ms-discriminator-value": "Marketo", "description": "Marketo server linked service.", 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 0db420e5ad13..86582a37911e 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 @@ -205,7 +205,7 @@ "type": "object" } }, - "ConnectorReadSetting": { + "StoreReadSettings": { "description": "Connector read setting.", "type": "object", "properties": { @@ -225,12 +225,12 @@ "type" ] }, - "AzureBlobStorageReadSetting": { + "AzureBlobStorageReadSettings": { "description": "Azure blob read settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/ConnectorReadSetting" + "$ref": "#/definitions/StoreReadSettings" } ], "properties": { @@ -260,12 +260,12 @@ } } }, - "AzureBlobFSReadSetting": { + "AzureBlobFSReadSettings": { "description": "Azure blobFS read settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/ConnectorReadSetting" + "$ref": "#/definitions/StoreReadSettings" } ], "properties": { @@ -295,12 +295,12 @@ } } }, - "AzureDataLakeStoreReadSetting": { + "AzureDataLakeStoreReadSettings": { "description": "Azure data lake store read settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/ConnectorReadSetting" + "$ref": "#/definitions/StoreReadSettings" } ], "properties": { @@ -330,12 +330,12 @@ } } }, - "AmazonS3ReadSetting": { + "AmazonS3ReadSettings": { "description": "Azure data lake store read settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/ConnectorReadSetting" + "$ref": "#/definitions/StoreReadSettings" } ], "properties": { @@ -369,12 +369,12 @@ } } }, - "FileServerReadSetting": { + "FileServerReadSettings": { "description": "File server read settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/ConnectorReadSetting" + "$ref": "#/definitions/StoreReadSettings" } ], "properties": { @@ -404,12 +404,12 @@ } } }, - "FtpReadSetting": { + "FtpReadSettings": { "description": "Ftp read settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/ConnectorReadSetting" + "$ref": "#/definitions/StoreReadSettings" } ], "properties": { @@ -431,12 +431,12 @@ } } }, - "SftpReadSetting": { + "SftpReadSettings": { "description": "Sftp read settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/ConnectorReadSetting" + "$ref": "#/definitions/StoreReadSettings" } ], "properties": { @@ -462,12 +462,12 @@ } } }, - "HttpReadSetting": { + "HttpReadSettings": { "description": "Sftp read settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/ConnectorReadSetting" + "$ref": "#/definitions/StoreReadSettings" } ], "properties": { @@ -489,12 +489,12 @@ } } }, - "HdfsReadSetting": { + "HdfsReadSettings": { "description": "HDFS read settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/ConnectorReadSetting" + "$ref": "#/definitions/StoreReadSettings" } ], "properties": { @@ -528,8 +528,9 @@ } } }, - "ConnectorWriteSetting": { + "StoreWriteSettings": { "description": "Connector write settings.", + "discriminator": "type", "type": "object", "properties": { "type": { @@ -552,43 +553,55 @@ "type" ] }, - "AzureBlobStorageWriteSetting": { + "AzureBlobStorageWriteSettings": { "description": "Azure blob write settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/ConnectorWriteSetting" + "$ref": "#/definitions/StoreWriteSettings" } - ] + ], + "properties": { + "blockSizeInMB": { + "description": "Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer).", + "type": "object" + } + } }, - "AzureBlobFSWriteSetting": { + "AzureBlobFSWriteSettings": { "description": "Azure blobFS write settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/ConnectorWriteSetting" + "$ref": "#/definitions/StoreWriteSettings" } - ] + ], + "properties": { + "blockSizeInMB": { + "description": "Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer).", + "type": "object" + } + } }, - "AzureDataLakeStoreWriteSetting": { + "AzureDataLakeStoreWriteSettings": { "description": "Azure data lake store write settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/ConnectorWriteSetting" + "$ref": "#/definitions/StoreWriteSettings" } ] }, - "FileServerWriteSetting": { + "FileServerWriteSettings": { "description": "File server write settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/ConnectorWriteSetting" + "$ref": "#/definitions/StoreWriteSettings" } ] }, - "FormatReadSetting": { + "FormatReadSettings": { "description": "Format read settings.", "type": "object", "properties": { @@ -604,12 +617,12 @@ "type" ] }, - "DelimitedTextReadSetting": { + "DelimitedTextReadSettings": { "description": "Delimited text read settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/FormatReadSetting" + "$ref": "#/definitions/FormatReadSettings" } ], "properties": { @@ -619,7 +632,7 @@ } } }, - "FormatWriteSetting": { + "FormatWriteSettings": { "description": "Format write settings.", "type": "object", "properties": { @@ -635,12 +648,31 @@ "type" ] }, - "DelimitedTextWriteSetting": { + "AvroWriteSettings": { + "description": "Avro write settings.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/FormatWriteSettings" + } + ], + "properties": { + "recordName": { + "type": "string", + "description": "Top level record name in write result, which is required in AVRO spec." + }, + "recordNamespace": { + "type": "string", + "description": "Record namespace in the write result." + } + } + }, + "DelimitedTextWriteSettings": { "description": "Delimited text write settings.", "type": "object", "allOf": [ { - "$ref": "#/definitions/FormatWriteSetting" + "$ref": "#/definitions/FormatWriteSettings" } ], "properties": { @@ -657,6 +689,44 @@ "fileExtension" ] }, + "JsonWriteSettings": { + "description": "Json write settings.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/FormatWriteSettings" + } + ], + "properties": { + "filePattern": { + "description": "File pattern of JSON. This setting controls the way a collection of JSON objects will be treated. The default value is 'setOfObjects'. It is case-sensitive.", + "type": "string", + "enum": [ + "setOfObjects", + "arrayOfObjects" + ], + "x-ms-enum": { + "name": "JsonWriteFilePattern", + "modelAsString": true + } + } + } + }, + "AvroSource": { + "description": "A copy activity Avro source.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "storeSettings": { + "$ref": "#/definitions/StoreReadSettings", + "description": "Avro store settings." + } + } + }, "ParquetSource": { "description": "A copy activity Parquet source.", "type": "object", @@ -667,7 +737,7 @@ ], "properties": { "storeSettings": { - "$ref": "#/definitions/ConnectorReadSetting", + "$ref": "#/definitions/StoreReadSettings", "description": "Parquet store settings." } } @@ -682,15 +752,30 @@ ], "properties": { "storeSettings": { - "$ref": "#/definitions/ConnectorReadSetting", + "$ref": "#/definitions/StoreReadSettings", "description": "DelimitedText store settings." }, "formatSettings": { - "$ref": "#/definitions/DelimitedTextReadSetting", + "$ref": "#/definitions/DelimitedTextReadSettings", "description": "DelimitedText format settings." } } }, + "JsonSource": { + "description": "A copy activity Json source.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "storeSettings": { + "$ref": "#/definitions/StoreReadSettings", + "description": "Json store settings." + } + } + }, "DelimitedTextSink": { "description": "A copy activity DelimitedText sink.", "type": "object", @@ -701,15 +786,34 @@ ], "properties": { "storeSettings": { - "$ref": "#/definitions/ConnectorWriteSetting", + "$ref": "#/definitions/StoreWriteSettings", "description": "DelimitedText store settings." }, "formatSettings": { - "$ref": "#/definitions/DelimitedTextWriteSetting", + "$ref": "#/definitions/DelimitedTextWriteSettings", "description": "DelimitedText format settings." } } }, + "JsonSink": { + "description": "A copy activity Json sink.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySink" + } + ], + "properties": { + "storeSettings": { + "$ref": "#/definitions/StoreWriteSettings", + "description": "Json store settings." + }, + "formatSettings": { + "$ref": "#/definitions/JsonWriteSettings", + "description": "Json format settings." + } + } + }, "CopyActivity": { "x-ms-discriminator-value": "Copy", "description": "Copy activity.", @@ -833,6 +937,21 @@ "type" ] }, + "BinarySource": { + "description": "A copy activity Binary source.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "storeSettings": { + "$ref": "#/definitions/StoreReadSettings", + "description": "Binary store settings." + } + } + }, "AzureTableSource": { "description": "A copy activity Azure Table source.", "type": "object", @@ -909,6 +1028,36 @@ } } }, + "DynamicsCrmSource": { + "description": "A copy activity Dynamics CRM source.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "query": { + "type": "object", + "description": "FetchXML is a proprietary query language that is used in Microsoft Dynamics CRM (online & on-premises). Type: string (or Expression with resultType string)." + } + } + }, + "CommonDataServiceForAppsSource": { + "description": "A copy activity Common Data Service for Apps source.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "query": { + "type": "object", + "description": "FetchXML is a proprietary query language that is used in Microsoft Common Data Service for Apps (online & on-premises). Type: string (or Expression with resultType string)." + } + } + }, "RelationalSource": { "description": "A copy activity source for various relational databases.", "type": "object", @@ -924,6 +1073,141 @@ } } }, + "InformixSource": { + "description": "A copy activity source for Informix.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "query": { + "type": "object", + "description": "Database query. Type: string (or Expression with resultType string)." + } + } + }, + "MicrosoftAccessSource": { + "description": "A copy activity source for Microsoft Access.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "query": { + "type": "object", + "description": "Database query. Type: string (or Expression with resultType string)." + } + } + }, + "Db2Source": { + "description": "A copy activity source for Db2 databases.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "query": { + "type": "object", + "description": "Database query. Type: string (or Expression with resultType string)." + } + } + }, + "OdbcSource": { + "description": "A copy activity source for ODBC databases.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "query": { + "type": "object", + "description": "Database query. Type: string (or Expression with resultType string)." + } + } + }, + "MySqlSource": { + "description": "A copy activity source for MySQL databases.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "query": { + "type": "object", + "description": "Database query. Type: string (or Expression with resultType string)." + } + } + }, + "PostgreSqlSource": { + "description": "A copy activity source for PostgreSQL databases.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "query": { + "type": "object", + "description": "Database query. Type: string (or Expression with resultType string)." + } + } + }, + "SybaseSource": { + "description": "A copy activity source for Sybase databases.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "query": { + "type": "object", + "description": "Database query. Type: string (or Expression with resultType string)." + } + } + }, + "SapBwSource": { + "description": "A copy activity source for SapBW server via MDX.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "query": { + "type": "object", + "description": "MDX query. Type: string (or Expression with resultType string)." + } + } + }, + "ODataSource": { + "description": "A copy activity source for OData source.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "query": { + "type": "object", + "description": "OData query. For example, \"$top=1\". Type: string (or Expression with resultType string)." + } + } + }, "SalesforceSource": { "description": "A copy activity Salesforce source.", "type": "object", @@ -939,7 +1223,34 @@ }, "readBehavior": { "description": "The read behavior for the operation. Default is Query.", + "type": "string", + "enum": [ + "Query", + "QueryAll" + ], + "x-ms-enum": { + "name": "SalesforceSourceReadBehavior", + "modelAsString": true + } + } + } + }, + "SalesforceServiceCloudSource": { + "description": "A copy activity Salesforce Service Cloud source.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "query": { "type": "object", + "description": "Database query. Type: string (or Expression with resultType string)." + }, + "readBehavior": { + "description": "The read behavior for the operation. Default is Query.", + "type": "string", "enum": [ "Query", "QueryAll" @@ -1008,7 +1319,16 @@ "$ref": "#/definitions/CopySource" } ], - "properties": {} + "properties": { + "excludeLastRequest": { + "type": "object", + "description": "Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType boolean)." + }, + "baseRequestId": { + "type": "object", + "description": "The ID of request for delta loading. Once it is set, only data with requestId larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression with resultType integer )." + } + } }, "SapTableSource": { "description": "A copy activity source for SAP Table source.", @@ -1045,16 +1365,17 @@ }, "partitionOption": { "description": "The partition mechanism that will be used for SAP table read in parallel.", - "type": "object", + "type": "string", "enum": [ "None", "PartitionOnInt", "PartitionOnCalendarYear", "PartitionOnCalendarMonth", - "PartitionOnCalendarDate" + "PartitionOnCalendarDate", + "PartitionOnTime" ], "x-ms-enum": { - "name": "TabularPartitionOption", + "name": "SapTablePartitionOption", "modelAsString": true } }, @@ -1095,6 +1416,22 @@ } ], "properties": { + "requestMethod": { + "type": "object", + "description": "The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string)." + }, + "requestBody": { + "type": "object", + "description": "The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string)." + }, + "additionalHeaders": { + "type": "object", + "description": "The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string)." + }, + "paginationRules": { + "type": "object", + "description": "The pagination rules to compose next page requests. Type: string (or Expression with resultType string)." + }, "httpRequestTimeout": { "type": "object", "description": "The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))." @@ -1191,6 +1528,36 @@ } } }, + "SqlMISource": { + "description": "A copy activity Azure SQL Managed Instance source.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "sqlReaderQuery": { + "type": "object", + "description": "SQL reader query. Type: string (or Expression with resultType string)." + }, + "sqlReaderStoredProcedureName": { + "type": "object", + "description": "Name of the stored procedure for a Azure SQL Managed Instance source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string)." + }, + "storedProcedureParameters": { + "description": "Value and type setting for stored procedure parameters. Example: \"{Parameter1: {value: \"1\", type: \"int\"}}\".", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/StoredProcedureParameter" + } + }, + "produceAdditionalTypes": { + "description": "Which additional types to produce.", + "type": "object" + } + } + }, "SqlDWSource": { "description": "A copy activity SQL Data Warehouse source.", "type": "object", @@ -1329,26 +1696,26 @@ "description": "Query timeout. Type: string (or Expression with resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))." }, "partitionOption": { - "description": "The partition mechanism that will be used for oracle read in parallel.", - "type": "object", + "description": "The partition mechanism that will be used for Oracle read in parallel.", + "type": "string", "enum": [ "None", "PhysicalPartitionsOfTable", "DynamicRange" ], "x-ms-enum": { - "name": "TabularPartitionOption", + "name": "OraclePartitionOption", "modelAsString": true } }, "partitionSettings": { - "description": "The settings that will be leveraged for oracle source partitioning.", + "description": "The settings that will be leveraged for Oracle source partitioning.", "$ref": "#/definitions/OraclePartitionSettings" } } }, "OraclePartitionSettings": { - "description": "The settings that will be leveraged for oracle source partitioning.", + "description": "The settings that will be leveraged for Oracle source partitioning.", "type": "object", "properties": { "partitionNames": { @@ -1357,7 +1724,7 @@ "type": "object", "description": "Type: string (or Expression with resultType string)." }, - "description": "Names of the physical partitions of oracle table. " + "description": "Names of the physical partitions of Oracle table. " }, "partitionColumnName": { "type": "object", @@ -1388,14 +1755,14 @@ }, "partitionOption": { "description": "The partition mechanism that will be used for teradata read in parallel.", - "type": "object", + "type": "string", "enum": [ "None", "Hash", "DynamicRange" ], "x-ms-enum": { - "name": "TabularPartitionOption", + "name": "TeradataPartitionOption", "modelAsString": true } }, @@ -1411,7 +1778,7 @@ "properties": { "partitionColumnName": { "type": "object", - "description": "The name of the column in integer type that will be used for proceeding range or hash partitioning. Type: string (or Expression with resultType string)." + "description": "The name of the column that will be used for proceeding range or hash partitioning. Type: string (or Expression with resultType string)." }, "partitionUpperBound": { "type": "object", @@ -1448,7 +1815,7 @@ }, "consistencyLevel": { "description": "The consistency level specifies how many Cassandra servers must respond to a read request before returning data to the client application. Cassandra checks the specified number of Cassandra servers for data to satisfy the read request. Must be one of cassandraSourceReadConsistencyLevels. The default value is 'ONE'. It is case-insensitive.", - "type": "object", + "type": "string", "enum": [ "ALL", "EACH_QUORUM", @@ -1502,7 +1869,7 @@ }, "batchSize": { "type": "object", - "description": "Specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This property�s main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer)." + "description": "Specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer)." } } }, @@ -1525,7 +1892,7 @@ }, "batchSize": { "type": "object", - "description": "Specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This property�s main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer)." + "description": "Specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer)." } } }, @@ -1562,7 +1929,28 @@ "$ref": "#/definitions/CopySource" } ], - "properties": {} + "properties": { + "allowedGroups": { + "type": "object", + "description": "The groups containing all the users. Type: array of strings (or Expression with resultType array of strings)." + }, + "userScopeFilterUri": { + "type": "object", + "description": "The user scope uri. Type: string (or Expression with resultType string)." + }, + "dateFilterColumn": { + "type": "object", + "description": "The Column to apply the and . Type: string (or Expression with resultType string)." + }, + "startTime": { + "type": "object", + "description": "Start time of the requested range for this dataset. Type: string (or Expression with resultType string)." + }, + "endTime": { + "type": "object", + "description": "End time of the requested range for this dataset. Type: string (or Expression with resultType string)." + } + } }, "AzureDataLakeStoreSource": { "description": "A copy activity Azure Data Lake source.", @@ -1647,6 +2035,36 @@ } } }, + "AzurePostgreSqlSink": { + "description": "A copy activity Azure PostgreSQL sink.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySink" + } + ], + "properties": { + "preCopyScript": { + "type": "object", + "description": "A query to execute before starting the copy. Type: string (or Expression with resultType string)." + } + } + }, + "AzureMySqlSink": { + "description": "A copy activity Azure MySql sink.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySink" + } + ], + "properties": { + "preCopyScript": { + "type": "object", + "description": "A query to execute before starting the copy. Type: string (or Expression with resultType string)." + } + } + }, "ConcurSource": { "description": "A copy activity Concur Service source.", "type": "object", @@ -1842,6 +2260,21 @@ } } }, + "AzureMariaDBSource": { + "description": "A copy activity Azure MariaDB source.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySource" + } + ], + "properties": { + "query": { + "type": "object", + "description": "A query to retrieve data from source. Type: string (or Expression with resultType string)." + } + } + }, "MarketoSource": { "description": "A copy activity Marketo server source.", "type": "object", @@ -2019,6 +2452,41 @@ "query": { "type": "object", "description": "A query to retrieve data from source. Type: string (or Expression with resultType string)." + }, + "partitionOption": { + "description": "The partition mechanism that will be used for Netezza read in parallel.", + "type": "string", + "enum": [ + "None", + "DataSlice", + "DynamicRange" + ], + "x-ms-enum": { + "name": "NetezzaPartitionOption", + "modelAsString": true + } + }, + "partitionSettings": { + "description": "The settings that will be leveraged for Netezza source partitioning.", + "$ref": "#/definitions/NetezzaPartitionSettings" + } + } + }, + "NetezzaPartitionSettings": { + "description": "The settings that will be leveraged for Netezza source partitioning.", + "type": "object", + "properties": { + "partitionColumnName": { + "type": "object", + "description": "The name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression with resultType string)." + }, + "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)." + }, + "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)." } } }, @@ -2228,7 +2696,7 @@ "properties": { "writeBehavior": { "description": "The write behavior for the operation. Default is 'Insert'.", - "type": "object", + "type": "string", "enum": [ "Insert", "Update" @@ -2252,7 +2720,7 @@ }, "CopyBehaviorType": { "description": "All available types of copy behavior.", - "type": "object", + "type": "string", "enum": [ "PreserveHierarchy", "FlattenHierarchy", @@ -2290,8 +2758,42 @@ } } }, - "ParquetSink": { - "description": "A copy activity Parquet sink.", + "AvroSink": { + "description": "A copy activity Avro sink.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySink" + } + ], + "properties": { + "storeSettings": { + "$ref": "#/definitions/StoreWriteSettings", + "description": "Avro store settings." + }, + "formatSettings": { + "$ref": "#/definitions/AvroWriteSettings", + "description": "Avro format settings." + } + } + }, + "ParquetSink": { + "description": "A copy activity Parquet sink.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySink" + } + ], + "properties": { + "storeSettings": { + "$ref": "#/definitions/StoreWriteSettings", + "description": "Parquet store settings." + } + } + }, + "BinarySink": { + "description": "A copy activity Binary sink.", "type": "object", "allOf": [ { @@ -2300,8 +2802,8 @@ ], "properties": { "storeSettings": { - "$ref": "#/definitions/ConnectorWriteSetting", - "description": "Parquet store settings." + "$ref": "#/definitions/StoreWriteSettings", + "description": "Binary store settings." } } }, @@ -2397,6 +2899,10 @@ "storedProcedureTableTypeParameterName": { "type": "object", "description": "The stored procedure parameter name of the table type. Type: string (or Expression with resultType string)." + }, + "tableOption": { + "type": "object", + "description": "The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string)." } } }, @@ -2431,6 +2937,10 @@ "storedProcedureTableTypeParameterName": { "type": "object", "description": "The stored procedure parameter name of the table type. Type: string (or Expression with resultType string)." + }, + "tableOption": { + "type": "object", + "description": "The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string)." } } }, @@ -2465,6 +2975,48 @@ "storedProcedureTableTypeParameterName": { "type": "object", "description": "The stored procedure parameter name of the table type. Type: string (or Expression with resultType string)." + }, + "tableOption": { + "type": "object", + "description": "The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string)." + } + } + }, + "SqlMISink": { + "description": "A copy activity Azure SQL Managed Instance sink.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySink" + } + ], + "properties": { + "sqlWriterStoredProcedureName": { + "type": "object", + "description": "SQL writer stored procedure name. Type: string (or Expression with resultType string)." + }, + "sqlWriterTableType": { + "type": "object", + "description": "SQL writer table type. Type: string (or Expression with resultType string)." + }, + "preCopyScript": { + "type": "object", + "description": "SQL pre-copy script. Type: string (or Expression with resultType string)." + }, + "storedProcedureParameters": { + "description": "SQL stored procedure parameters.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/StoredProcedureParameter" + } + }, + "storedProcedureTableTypeParameterName": { + "type": "object", + "description": "The stored procedure parameter name of the table type. Type: string (or Expression with resultType string)." + }, + "tableOption": { + "type": "object", + "description": "The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string)." } } }, @@ -2488,6 +3040,10 @@ "polyBaseSettings": { "description": "Specifies PolyBase-related settings when allowPolyBase is true.", "$ref": "#/definitions/PolybaseSettings" + }, + "tableOption": { + "type": "object", + "description": "The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string)." } } }, @@ -2652,7 +3208,7 @@ "properties": { "writeBehavior": { "description": "Specify the write behavior when upserting documents into Azure Search Index.", - "type": "object", + "type": "string", "enum": [ "Merge", "Upload" @@ -2679,6 +3235,36 @@ } } }, + "InformixSink": { + "description": "A copy activity Informix sink.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySink" + } + ], + "properties": { + "preCopyScript": { + "type": "object", + "description": "A query to execute before starting the copy. Type: string (or Expression with resultType string)." + } + } + }, + "MicrosoftAccessSink": { + "description": "A copy activity Microsoft Access sink.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySink" + } + ], + "properties": { + "preCopyScript": { + "type": "object", + "description": "A query to execute before starting the copy. Type: string (or Expression with resultType string)." + } + } + }, "DynamicsSink": { "description": "A copy activity Dynamics sink.", "type": "object", @@ -2690,7 +3276,7 @@ "properties": { "writeBehavior": { "description": "The write behavior for the operation.", - "type": "object", + "type": "string", "enum": [ "Upsert" ], @@ -2708,6 +3294,64 @@ "writeBehavior" ] }, + "DynamicsCrmSink": { + "description": "A copy activity Dynamics CRM sink.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySink" + } + ], + "properties": { + "writeBehavior": { + "description": "The write behavior for the operation.", + "type": "string", + "enum": [ + "Upsert" + ], + "x-ms-enum": { + "name": "DynamicsSinkWriteBehavior", + "modelAsString": true + } + }, + "ignoreNullValues": { + "type": "object", + "description": "The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean)." + } + }, + "required": [ + "writeBehavior" + ] + }, + "CommonDataServiceForAppsSink": { + "description": "A copy activity Common Data Service for Apps sink.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySink" + } + ], + "properties": { + "writeBehavior": { + "description": "The write behavior for the operation.", + "type": "string", + "enum": [ + "Upsert" + ], + "x-ms-enum": { + "name": "DynamicsSinkWriteBehavior", + "modelAsString": true + } + }, + "ignoreNullValues": { + "type": "object", + "description": "The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean)." + } + }, + "required": [ + "writeBehavior" + ] + }, "AzureDataExplorerSink": { "description": "A copy activity Azure Data Explorer sink.", "type": "object", @@ -2742,7 +3386,38 @@ "properties": { "writeBehavior": { "description": "The write behavior for the operation. Default is Insert.", + "type": "string", + "enum": [ + "Insert", + "Upsert" + ], + "x-ms-enum": { + "name": "SalesforceSinkWriteBehavior", + "modelAsString": true + } + }, + "externalIdFieldName": { "type": "object", + "description": "The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with resultType string)." + }, + "ignoreNullValues": { + "type": "object", + "description": "The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. Default value is false. If set it to true, it means ADF will leave the data in the destination object unchanged when doing upsert/update operation and insert defined default value when doing insert operation, versus ADF will update the data in the destination object to NULL when doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType boolean)." + } + } + }, + "SalesforceServiceCloudSink": { + "description": "A copy activity Salesforce Service Cloud sink.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CopySink" + } + ], + "properties": { + "writeBehavior": { + "description": "The write behavior for the operation. Default is Insert.", + "type": "string", "enum": [ "Insert", "Upsert" @@ -3285,6 +3960,10 @@ "additionalProperties": { "$ref": "#/definitions/SSISPropertyOverride" } + }, + "logLocation": { + "description": "SSIS package execution log location.", + "$ref": "#/definitions/SSISLogLocation" } }, "required": [ @@ -3299,12 +3978,47 @@ "packagePath": { "description": "The SSIS package path. Type: string (or Expression with resultType string).", "type": "object" + }, + "type": { + "description": "The type of SSIS package location.", + "type": "string", + "enum": [ + "SSISDB", + "File" + ], + "x-ms-enum": { + "name": "SsisPackageLocationType", + "modelAsString": true + } + }, + "typeProperties": { + "x-ms-client-flatten": true, + "description": "SSIS package location properties.", + "$ref": "#/definitions/SSISPackageLocationTypeProperties" } }, "required": [ "packagePath" ] }, + "SSISPackageLocationTypeProperties": { + "description": "SSIS package location properties.", + "type": "object", + "properties": { + "packagePassword": { + "$ref": "../datafactory.json#/definitions/SecureString", + "description": "Password of the package." + }, + "accessCredential": { + "description": "The package access credential.", + "$ref": "#/definitions/SSISAccessCredential" + }, + "configurationPath": { + "description": "The configuration file of the package execution. Type: string (or Expression with resultType string).", + "type": "object" + } + } + }, "SSISConnectionManager": { "description": "SSIS Connection Manager.", "type": "object", @@ -3365,6 +4079,74 @@ "password" ] }, + "SSISAccessCredential": { + "description": "SSIS access credential.", + "type": "object", + "properties": { + "domain": { + "type": "object", + "description": "Domain for windows authentication." + }, + "userName": { + "type": "object", + "description": "UseName for windows authentication." + }, + "password": { + "$ref": "../datafactory.json#/definitions/SecureString", + "description": "Password for windows authentication." + } + }, + "required": [ + "domain", + "userName", + "password" + ] + }, + "SSISLogLocation": { + "description": "SSIS package execution log location", + "type": "object", + "properties": { + "logPath": { + "description": "The SSIS package execution log path. Type: string (or Expression with resultType string).", + "type": "object" + }, + "type": { + "description": "The type of SSIS log location.", + "type": "string", + "enum": [ + "File" + ], + "x-ms-enum": { + "name": "SsisLogLocationType", + "modelAsString": true + } + }, + "typeProperties": { + "x-ms-client-flatten": true, + "description": "SSIS package execution log location properties.", + "$ref": "#/definitions/SSISLogLocationTypeProperties" + } + }, + "required": [ + "logPath", + "type", + "typeProperties" + ] + }, + "SSISLogLocationTypeProperties": { + "description": "SSIS package execution log location properties.", + "type": "object", + "properties": { + "accessCredential": { + "description": "The package execution log access credential.", + "$ref": "#/definitions/SSISAccessCredential" + }, + "logRefreshInterval": { + "type": "object", + "description": "Specifies the interval to refresh log. The default interval is 5 minutes. Type: string (or Expression with resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))." + } + } + }, "CustomActivity": { "description": "Custom activity type.", "x-ms-discriminator-value": "Custom", @@ -3565,6 +4347,41 @@ "dataset" ] }, + "AzureDataExplorerCommandActivity": { + "x-ms-discriminator-value": "AzureDataExplorerCommand", + "description": "Azure Data Explorer command activity.", + "allOf": [ + { + "$ref": "#/definitions/ExecutionActivity" + } + ], + "properties": { + "typeProperties": { + "description": "Azure Data Explorer command activity properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AzureDataExplorerCommandActivityTypeProperties" + } + }, + "required": [ + "typeProperties" + ] + }, + "AzureDataExplorerCommandActivityTypeProperties": { + "description": "Azure Data Explorer command activity properties.", + "properties": { + "command": { + "type": "object", + "description": "A control command, according to the Azure Data Explorer command syntax. Type: string (or Expression with resultType string)." + }, + "commandTimeout": { + "type": "object", + "description": "Control command timeout. Type: string (or Expression with resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..)" + } + }, + "required": [ + "command" + ] + }, "LookupActivity": { "x-ms-discriminator-value": "Lookup", "description": "Lookup activity.", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json index 47e68c5727f4..35a7e0d225b9 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json @@ -7,25 +7,7 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:46:28 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "586c27ed-d96c-42eb-8336-a077ef7e8358", - "x-ms-correlation-request-id": "586c27ed-d96c-42eb-8336-a077ef7e8358" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:46:28 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "18f08a60-3963-4a85-9db9-5122fad759ae", - "x-ms-correlation-request-id": "18f08a60-3963-4a85-9db9-5122fad759ae" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json index 2f9bfca0e407..ce48b64a5ce7 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json @@ -8,16 +8,7 @@ "api-version": "2018-06-01" }, "responses": { - "304": { - "headers": { - "Date": "Mon, 22 Apr 2019 18:33:50 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "9db13e51-b9bb-4b29-89bf-2fb1636e7050", - "x-ms-correlation-request-id": "9db13e51-b9bb-4b29-89bf-2fb1636e7050" - }, - "body": null - }, + "304": {}, "200": { "headers": { "Date": "Mon, 22 Apr 2019 18:33:50 GMT", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json index 9e08c0d44edb..630f8c0cae8d 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json @@ -6,25 +6,7 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:46:32 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-deletes": "14989", - "x-ms-request-id": "ea0cf989-0831-4d49-84a8-9732da344b72", - "x-ms-correlation-request-id": "ea0cf989-0831-4d49-84a8-9732da344b72" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:46:32 GMT", - "x-ms-ratelimit-remaining-subscription-deletes": "14988", - "x-ms-request-id": "3bf2d00f-7f37-4ab0-96c4-9ae560bc1f64", - "x-ms-correlation-request-id": "3bf2d00f-7f37-4ab0-96c4-9ae560bc1f64", - "X-Content-Type-Options": "nosniff" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json index fb52e24bd0ed..2a43ca5e1cae 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json @@ -7,16 +7,7 @@ "api-version": "2018-06-01" }, "responses": { - "304": { - "headers": { - "Date": "Mon, 22 Apr 2019 18:33:50 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "9db13e51-b9bb-4b29-89bf-2fb1636e7050", - "x-ms-correlation-request-id": "9db13e51-b9bb-4b29-89bf-2fb1636e7050" - }, - "body": null - }, + "304": {}, "200": { "headers": { "Date": "Tue, 19 Jun 2018 05:41:50 GMT", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json index 0f1b126c114d..8fc6d176f77c 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json @@ -8,25 +8,7 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Thu, 14 Jun 2018 15:01:22 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "c1016b57-daf8-4476-b9eb-d02890d03f8d", - "x-ms-correlation-request-id": "c1016b57-daf8-4476-b9eb-d02890d03f8d" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Thu, 14 Jun 2018 15:01:34 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "9c6aed81-8fd1-477e-b365-c7b15fc7f51a", - "x-ms-correlation-request-id": "9c6aed81-8fd1-477e-b365-c7b15fc7f51a" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json index 149f79cf2b13..855e1340c2e3 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json @@ -3,231 +3,429 @@ "subscriptionId": "12345678-1234-1234-1234-12345678abc", "resourceGroupName": "exampleResourceGroup", "factoryName": "exampleFactoryName", - "integrationRuntimeName": "integrationRuntime1", + "integrationRuntimeName": "testactivityv2", "getMetadataRequest": { - "metadataPath": "ssisFolders/2/ssisProjects/6/ssisPackages" + "metadataPath": "ssisFolders" }, "api-version": "2018-06-01" }, "responses": { "200": { "headers": { - "Date": "Thu, 09 May 2019 09:39:51 GMT", + "Date": "Mon, 03 Dec 2018 06:24:54 GMT", "X-Content-Type-Options": "nosniff", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "63fab708-842b-4b19-9811-5e128905e824", - "x-ms-correlation-request-id": "63fab708-842b-4b19-9811-5e128905e824" + "x-ms-request-id": "0cbc67c4-60e7-4d49-97d9-e4bc4f9851cd", + "x-ms-correlation-request-id": "0cbc67c4-60e7-4d49-97d9-e4bc4f9851cd" }, "body": { "value": [ { - "folderId": 2, - "projectVersion": 23, - "projectId": 6, - "parameters": [ - { - "id": 278, - "name": "Parameter1", - "description": "", - "dataType": "Int32", - "required": false, - "sensitive": false, - "designDefaultValue": "0", - "valueType": "V", - "valueSet": false - }, - { - "id": 279, - "name": "Parameter10", - "description": "", - "dataType": "Decimal", - "required": false, - "sensitive": false, - "designDefaultValue": "0", - "valueType": "V", - "valueSet": false - }, - { - "id": 280, - "name": "Parameter11", - "description": "", - "dataType": "Double", - "required": false, - "sensitive": false, - "designDefaultValue": "0", - "valueType": "V", - "valueSet": false - }, - { - "id": 281, - "name": "Parameter12", - "description": "", - "dataType": "Int16", - "required": false, - "sensitive": false, - "designDefaultValue": "0", - "valueType": "V", - "valueSet": false - }, - { - "id": 282, - "name": "Parameter2", - "description": "", - "dataType": "Boolean", - "required": false, - "sensitive": false, - "designDefaultValue": "False", - "valueType": "V", - "valueSet": false - }, - { - "id": 283, - "name": "Parameter3", - "description": "", - "dataType": "Int64", - "required": false, - "sensitive": false, - "designDefaultValue": "0", - "valueType": "V", - "valueSet": false - }, - { - "id": 284, - "name": "Parameter4", - "description": "", - "dataType": "SByte", - "required": false, - "sensitive": false, - "designDefaultValue": "0", - "valueType": "V", - "valueSet": false - }, - { - "id": 285, - "name": "Parameter5", - "description": "", - "dataType": "Single", - "required": false, - "sensitive": false, - "designDefaultValue": "0", - "valueType": "V", - "valueSet": false - }, - { - "id": 286, - "name": "Parameter6", - "description": "", - "dataType": "UInt32", - "required": false, - "sensitive": false, - "designDefaultValue": "0", - "valueType": "V", - "valueSet": false - }, - { - "id": 287, - "name": "Parameter7", - "description": "", - "dataType": "UInt64", - "required": false, - "sensitive": false, - "designDefaultValue": "0", - "valueType": "V", - "valueSet": false - }, - { - "id": 288, - "name": "Parameter8", - "description": "", - "dataType": "Byte", - "required": false, - "sensitive": false, - "designDefaultValue": "0", - "valueType": "V", - "valueSet": false - }, - { - "id": 289, - "name": "Parameter9", - "description": "", - "dataType": "DateTime", - "required": false, - "sensitive": false, - "designDefaultValue": "2/15/2019 3:33:59 PM", - "valueType": "V", - "valueSet": false - }, - { - "id": 290, - "name": "CM.SSISDB.connection.manager.ConnectionString", - "description": "", - "dataType": "String", - "required": false, - "sensitive": false, - "designDefaultValue": "Data Source=********;User ID=liubing;Initial Catalog=SSISDB;Provider=SQLNCLI11.1;Persist Security Info=True;Auto Translate=False;", - "valueType": "V", - "valueSet": false - }, - { - "id": 291, - "name": "CM.SSISDB.connection.manager.InitialCatalog", - "description": "", - "dataType": "String", - "required": false, - "sensitive": false, - "designDefaultValue": "SSISDB", - "valueType": "V", - "valueSet": false - }, - { - "id": 292, - "name": "CM.SSISDB.connection.manager.Password", - "description": "", - "dataType": "String", - "required": false, - "sensitive": true, - "valueType": "V", - "valueSet": false - }, - { - "id": 293, - "name": "CM.SSISDB.connection.manager.RetainSameConnection", - "description": "", - "dataType": "Boolean", - "required": false, - "sensitive": false, - "designDefaultValue": "False", - "valueType": "V", - "valueSet": false - }, - { - "id": 294, - "name": "CM.SSISDB.connection.manager.ServerName", - "description": "", - "dataType": "String", - "required": false, - "sensitive": false, - "designDefaultValue": "********", - "valueType": "V", - "valueSet": false - }, - { - "id": 295, - "name": "CM.SSISDB.connection.manager.UserName", - "description": "", - "dataType": "String", - "required": false, - "sensitive": false, - "designDefaultValue": "liubing", - "valueType": "V", - "valueSet": false - } - ], - "id": 53, - "name": "Package.dtsx", + "id": 1, + "name": "TestFolder", + "description": "" + }, + { + "id": 2, + "name": "EnvironmentFolder", + "description": "" + }, + { + "id": 3, + "name": "ActivityTest", + "description": "" + }, + { + "id": 4, + "name": "这是文件夹", "description": "" + }, + { + "id": 5, + "name": "1" + }, + { + "id": 6, + "name": "2" + }, + { + "id": 7, + "name": "3" + }, + { + "id": 8, + "name": "4" + }, + { + "id": 9, + "name": "5" + }, + { + "id": 10, + "name": "6" + }, + { + "id": 11, + "name": "7" + }, + { + "id": 12, + "name": "8" + }, + { + "id": 13, + "name": "9" + }, + { + "id": 14, + "name": "10" + }, + { + "id": 15, + "name": "11" + }, + { + "id": 16, + "name": "12" + }, + { + "id": 17, + "name": "13" + }, + { + "id": 18, + "name": "14" + }, + { + "id": 19, + "name": "15" + }, + { + "id": 20, + "name": "16" + }, + { + "id": 21, + "name": "17" + }, + { + "id": 22, + "name": "18" + }, + { + "id": 23, + "name": "19" + }, + { + "id": 24, + "name": "20" + }, + { + "id": 25, + "name": "21" + }, + { + "id": 26, + "name": "22" + }, + { + "id": 27, + "name": "23" + }, + { + "id": 28, + "name": "24" + }, + { + "id": 29, + "name": "25" + }, + { + "id": 30, + "name": "26" + }, + { + "id": 31, + "name": "27" + }, + { + "id": 32, + "name": "28" + }, + { + "id": 33, + "name": "29" + }, + { + "id": 34, + "name": "30" + }, + { + "id": 35, + "name": "31" + }, + { + "id": 36, + "name": "32" + }, + { + "id": 37, + "name": "33" + }, + { + "id": 38, + "name": "34" + }, + { + "id": 39, + "name": "35" + }, + { + "id": 40, + "name": "36" + }, + { + "id": 41, + "name": "37" + }, + { + "id": 42, + "name": "38" + }, + { + "id": 43, + "name": "39" + }, + { + "id": 44, + "name": "40" + }, + { + "id": 45, + "name": "41" + }, + { + "id": 46, + "name": "42" + }, + { + "id": 47, + "name": "43" + }, + { + "id": 48, + "name": "44" + }, + { + "id": 49, + "name": "45" + }, + { + "id": 50, + "name": "46" + }, + { + "id": 51, + "name": "47" + }, + { + "id": 52, + "name": "48" + }, + { + "id": 53, + "name": "49" + }, + { + "id": 54, + "name": "50" + }, + { + "id": 55, + "name": "51" + }, + { + "id": 56, + "name": "52" + }, + { + "id": 57, + "name": "53" + }, + { + "id": 58, + "name": "54" + }, + { + "id": 59, + "name": "55" + }, + { + "id": 60, + "name": "56" + }, + { + "id": 61, + "name": "57" + }, + { + "id": 62, + "name": "58" + }, + { + "id": 63, + "name": "59" + }, + { + "id": 64, + "name": "60" + }, + { + "id": 65, + "name": "61" + }, + { + "id": 66, + "name": "62" + }, + { + "id": 67, + "name": "63" + }, + { + "id": 68, + "name": "64" + }, + { + "id": 69, + "name": "65" + }, + { + "id": 70, + "name": "66" + }, + { + "id": 71, + "name": "67" + }, + { + "id": 72, + "name": "68" + }, + { + "id": 73, + "name": "69" + }, + { + "id": 74, + "name": "70" + }, + { + "id": 75, + "name": "71" + }, + { + "id": 76, + "name": "72" + }, + { + "id": 77, + "name": "73" + }, + { + "id": 78, + "name": "74" + }, + { + "id": 79, + "name": "75" + }, + { + "id": 80, + "name": "76" + }, + { + "id": 81, + "name": "77" + }, + { + "id": 82, + "name": "78" + }, + { + "id": 83, + "name": "79" + }, + { + "id": 84, + "name": "80" + }, + { + "id": 85, + "name": "81" + }, + { + "id": 86, + "name": "82" + }, + { + "id": 87, + "name": "83" + }, + { + "id": 88, + "name": "84" + }, + { + "id": 89, + "name": "85" + }, + { + "id": 90, + "name": "86" + }, + { + "id": 91, + "name": "87" + }, + { + "id": 92, + "name": "88" + }, + { + "id": 93, + "name": "89" + }, + { + "id": 94, + "name": "90" + }, + { + "id": 95, + "name": "91" + }, + { + "id": 96, + "name": "92" + }, + { + "id": 97, + "name": "93" + }, + { + "id": 98, + "name": "94" + }, + { + "id": 99, + "name": "95" + }, + { + "id": 100, + "name": "96" } - ] + ], + "nextLink": "https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationRuntimes/testactivityv2/getObjectMetadata?api-version=2018-06-01&%24skipToken=https%3a%2f%2fwcu.frontend.clouddatahub.net%2fsubscriptions%2f12345678-1234-1234-1234-12345678abc%2fdatafactories%2f6C8E7C90-FD45-4010-8B7C-B5227D0F0CB7%2fintegrationruntimes%2fTESTACTIVITYV2%2fgetSsisObjectMetadata%3f%24skipToken%3dc3Npc0ZvbGRlcnNAQDIwMTgtMTEtMjlUMDM6NTk6MzIuMDQ1Mzc1MiswMDowMEBAZm9sZGVyQEAwMDAwMDAwMDAwMDAwMDAwMTAx0%26api-version%3d1.0" } } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json index 12223de81dad..ff8c80b0f4d9 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json @@ -7,19 +7,7 @@ "api-version": "2018-06-01" }, "responses": { - "202": { - "headers": { - "Date": "Mon, 03 Dec 2018 06:24:38 GMT", - "Location": "https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationRuntimes/testactivityv2/refreshObjectMetadata/operationresults/ca63c855b72d44959653ffcc6eb0b96c?api-version=2018-06-01", - "Retry-After": "15", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationRuntimes/testactivityv2/refreshObjectMetadata/operationstatuses/ca63c855b72d44959653ffcc6eb0b96c?api-version=2018-06-01", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "abf136ad-39c8-4ee8-9098-7866f9433d13", - "x-ms-correlation-request-id": "abf136ad-39c8-4ee8-9098-7866f9433d13" - }, - "body": null - }, + "202": {}, "200": { "headers": { "Date": "Mon, 03 Dec 2018 06:24:53 GMT", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json index fef7de2ae1b8..742aefa60d83 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json @@ -7,25 +7,7 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Wed, 13 Jun 2018 22:30:01 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-deletes": "14979", - "x-ms-request-id": "6551f7f4-0d7f-4d02-a3a0-c4ee3b7bf15c", - "x-ms-correlation-request-id": "6551f7f4-0d7f-4d02-a3a0-c4ee3b7bf15c" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Wed, 13 Jun 2018 22:30:02 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-deletes": "14978", - "x-ms-request-id": "7c5c6c3d-fca3-469e-9b6b-63ed9e4997dd", - "x-ms-correlation-request-id": "7c5c6c3d-fca3-469e-9b6b-63ed9e4997dd" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json index bf176d4c530c..55fe8b7f97c5 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json @@ -8,16 +8,7 @@ "api-version": "2018-06-01" }, "responses": { - "304": { - "headers": { - "Date": "Mon, 22 Apr 2019 18:33:47 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "7b3673dc-aef9-411c-8138-e6778231c474", - "x-ms-correlation-request-id": "7b3673dc-aef9-411c-8138-e6778231c474" - }, - "body": null - }, + "304": {}, "200": { "headers": { "Date": "Mon, 22 Apr 2019 18:33:47 GMT", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json index 0b1ee0992f65..33c1f7eda83e 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json @@ -10,15 +10,6 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Tue, 03 Jul 2018 06:33:25 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "360fbe4c-a1a7-436b-b0f5-e27a474a6b16", - "x-ms-correlation-request-id": "360fbe4c-a1a7-436b-b0f5-e27a474a6b16" - }, - "body": null - } + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json index 5204f13a4efb..81bcbb87fa24 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json @@ -7,18 +7,7 @@ "api-version": "2018-06-01" }, "responses": { - "202": { - "headers": { - "Date": "Wed, 13 Jun 2018 21:11:03 GMT", - "Location": "https://api-dogfood.resources.windows-int.net/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationRuntimes/exampleManagedIntegrationRuntime/start/operationresults/301b9c4b1c43415594e11918e678383c?api-version=2018-06-01", - "Retry-After": "15", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "cb03ccdd-9d7a-4ebe-a967-0edc96f33904", - "x-ms-correlation-request-id": "cb03ccdd-9d7a-4ebe-a967-0edc96f33904" - }, - "body": null - }, + "202": {}, "200": { "headers": { "Date": "Wed, 13 Jun 2018 21:33:00 GMT", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json index 6dbb6c741832..5ae0f3f8f835 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json @@ -7,27 +7,7 @@ "api-version": "2018-06-01" }, "responses": { - "202": { - "headers": { - "Date": "Wed, 13 Jun 2018 21:11:03 GMT", - "Location": "https://api-dogfood.resources.windows-int.net/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationRuntimes/exampleManagedIntegrationRuntime/stop/operationresults/301b9c4b1c43415594e11918e678385f?api-version=2018-06-01", - "Retry-After": "15", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "cb03ccdd-9d7a-4ebe-a967-0edc96f33904", - "x-ms-correlation-request-id": "cb03ccdd-9d7a-4ebe-a967-0edc96f33904" - }, - "body": null - }, - "200": { - "headers": { - "Date": "Wed, 13 Jun 2018 21:33:03 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "87f6c2c7-92f1-40e6-bb01-769f9e6ca22f", - "x-ms-correlation-request-id": "87f6c2c7-92f1-40e6-bb01-769f9e6ca22f" - }, - "body": null - } + "202": {}, + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json index dca3b2c54e68..cdd180d2e720 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json @@ -7,15 +7,6 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Thu, 14 Jun 2018 15:27:47 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "a991b4b4-e33a-4973-9088-200f9137fb84", - "x-ms-correlation-request-id": "a991b4b4-e33a-4973-9088-200f9137fb84" - }, - "body": null - } + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json index 2130bac563ad..cdd180d2e720 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json @@ -7,15 +7,6 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Thu, 14 Jun 2018 14:53:30 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "e12b9b30-54bf-49a0-8b7e-c8ce58ba6a36", - "x-ms-correlation-request-id": "e12b9b30-54bf-49a0-8b7e-c8ce58ba6a36" - }, - "body": null - } + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json index 77b54d160ffb..86ce004138cf 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json @@ -7,25 +7,7 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:46:29 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "f55bd1ad-2ab5-4b94-bca5-01489e1b9d57", - "x-ms-correlation-request-id": "f55bd1ad-2ab5-4b94-bca5-01489e1b9d57" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:46:29 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "b1456813-e580-4cb0-bb05-ffd6099320e6", - "x-ms-correlation-request-id": "b1456813-e580-4cb0-bb05-ffd6099320e6" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json index bcfc70fc842c..b6b18d4691ef 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json @@ -8,16 +8,7 @@ "api-version": "2018-06-01" }, "responses": { - "304": { - "headers": { - "Date": "Mon, 22 Apr 2019 18:33:49 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "9a503b24-1b14-4242-9fab-598c81881370", - "x-ms-correlation-request-id": "9a503b24-1b14-4242-9fab-598c81881370" - }, - "body": null - }, + "304": {}, "200": { "headers": { "Date": "Mon, 22 Apr 2019 18:33:48 GMT", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json index 24fb26ea9bd7..8a43a61a8bfd 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json @@ -7,15 +7,6 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:39:51 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00215772-3147-4e15-99ae-fbf225d5dd0a", - "x-ms-correlation-request-id": "00215772-3147-4e15-99ae-fbf225d5dd0a" - }, - "body": null - } + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json index 7bbfe9b6ccda..dd54c881c5f5 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json @@ -7,25 +7,7 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:46:27 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "10ea8bd9-4620-425c-92dd-adadef31c9e4", - "x-ms-correlation-request-id": "10ea8bd9-4620-425c-92dd-adadef31c9e4" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:46:27 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "cfb3e876-4271-4300-bf3d-3bffc5a34695", - "x-ms-correlation-request-id": "cfb3e876-4271-4300-bf3d-3bffc5a34695" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json index 68f3ff289730..82a21a869f01 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json @@ -8,16 +8,7 @@ "api-version": "2018-06-01" }, "responses": { - "304": { - "headers": { - "Date": "Mon, 22 Apr 2019 18:33:51 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "819ef646-692f-4d1b-8717-0b4fe493e2aa", - "x-ms-correlation-request-id": "819ef646-692f-4d1b-8717-0b4fe493e2aa" - }, - "body": null - }, + "304": {}, "200": { "headers": { "Date": "Mon, 22 Apr 2019 18:33:51 GMT", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/RerunTriggers_Cancel.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/RerunTriggers_Cancel.json index 3b2d7aab6b24..1e3d8b98ec8b 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/RerunTriggers_Cancel.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/RerunTriggers_Cancel.json @@ -8,15 +8,6 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:46:24 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "5aa854a5-7ac0-4c7e-9356-79c657f4e231", - "x-ms-correlation-request-id": "5aa854a5-7ac0-4c7e-9356-79c657f4e231" - }, - "body": null - } + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/RerunTriggers_Start.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/RerunTriggers_Start.json index d3ec620445f6..1e3d8b98ec8b 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/RerunTriggers_Start.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/RerunTriggers_Start.json @@ -8,15 +8,6 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:40:20 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-request-id": "0c1669a9-5b55-47fe-9413-df6d8710697d", - "x-ms-correlation-request-id": "0c1669a9-5b55-47fe-9413-df6d8710697d" - }, - "body": null - } + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/RerunTriggers_Stop.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/RerunTriggers_Stop.json index 3b2d7aab6b24..1e3d8b98ec8b 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/RerunTriggers_Stop.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/RerunTriggers_Stop.json @@ -8,15 +8,6 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:46:24 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "5aa854a5-7ac0-4c7e-9356-79c657f4e231", - "x-ms-correlation-request-id": "5aa854a5-7ac0-4c7e-9356-79c657f4e231" - }, - "body": null - } + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json new file mode 100644 index 000000000000..b06046f294f8 --- /dev/null +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-12345678abc", + "resourceGroupName": "exampleResourceGroup", + "factoryName": "exampleFactoryName", + "triggerName": "exampleTrigger", + "runId": "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": { + "Date": "Sat, 16 Jun 2018 00:46:24 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "5aa854a5-7ac0-4c7e-9356-79c657f4e231", + "x-ms-correlation-request-id": "5aa854a5-7ac0-4c7e-9356-79c657f4e231" + } + } + } +} diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json index 1708b189ac2a..e7d4a03ea08a 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json @@ -7,25 +7,7 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:46:26 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "1eea81f0-87de-4c9d-87cd-915e592a9bcc", - "x-ms-correlation-request-id": "1eea81f0-87de-4c9d-87cd-915e592a9bcc" - }, - "body": null - }, - "204": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:46:26 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "833e731f-67dc-48d3-b90f-6dd08e9d819f", - "x-ms-correlation-request-id": "833e731f-67dc-48d3-b90f-6dd08e9d819f" - }, - "body": null - } + "200": {}, + "204": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json index ff4f437452f4..446697f3a5eb 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json @@ -8,16 +8,7 @@ "api-version": "2018-06-01" }, "responses": { - "304": { - "headers": { - "Date": "Mon, 22 Apr 2019 18:33:52 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "ca7b5df3-83ee-42a1-88f3-e417baa37900", - "x-ms-correlation-request-id": "ca7b5df3-83ee-42a1-88f3-e417baa37900" - }, - "body": null - }, + "304": {}, "200": { "headers": { "Date": "Mon, 22 Apr 2019 18:33:52 GMT", diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json new file mode 100644 index 000000000000..5efc8eebb44b --- /dev/null +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-12345678abc", + "resourceGroupName": "exampleResourceGroup", + "factoryName": "exampleFactoryName", + "triggerName": "exampleTrigger", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "body": { + "triggerName": "exampleTrigger", + "status": "Enabled" + } + } + } +} diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json index e037a3de47e6..558c3f6b3afa 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json @@ -7,15 +7,6 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:40:20 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-request-id": "0c1669a9-5b55-47fe-9413-df6d8710697d", - "x-ms-correlation-request-id": "0c1669a9-5b55-47fe-9413-df6d8710697d" - }, - "body": null - } + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json index b311f31a3f50..558c3f6b3afa 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json @@ -7,15 +7,6 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "headers": { - "Date": "Sat, 16 Jun 2018 00:46:24 GMT", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "5aa854a5-7ac0-4c7e-9356-79c657f4e231", - "x-ms-correlation-request-id": "5aa854a5-7ac0-4c7e-9356-79c657f4e231" - }, - "body": null - } + "200": {} } } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json new file mode 100644 index 000000000000..82d16f4b2448 --- /dev/null +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-12345678abc", + "resourceGroupName": "exampleResourceGroup", + "factoryName": "exampleFactoryName", + "triggerName": "exampleTrigger", + "api-version": "2018-06-01" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger/getEventSubscriptionStatus?api-version=2018-06-01" + } + }, + "200": { + "body": { + "triggerName": "exampleTrigger", + "status": "Enabled" + } + } + } +} diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json new file mode 100644 index 000000000000..55cb7979d4d5 --- /dev/null +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-12345678abc", + "resourceGroupName": "exampleResourceGroup", + "factoryName": "exampleFactoryName", + "triggerName": "exampleTrigger", + "api-version": "2018-06-01" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger/getEventSubscriptionStatus?api-version=2018-06-01" + } + }, + "200": { + "body": { + "triggerName": "exampleTrigger", + "status": "Disabled" + } + } + } +} diff --git a/specification/datafactory/resource-manager/readme.java.md b/specification/datafactory/resource-manager/readme.java.md new file mode 100644 index 000000000000..d67ddd779a9a --- /dev/null +++ b/specification/datafactory/resource-manager/readme.java.md @@ -0,0 +1,50 @@ +## 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.datafactory +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-datafactory +``` + +# Validation + + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2017-09-preview + - tag: package-2018-06 +``` + +### Tag: package-2017-09-preview and java + +These settings apply only when `--tag=package-2017-09-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2017-09-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.datafactory.v2017_09_01_preview + output-folder: $(azure-libraries-for-java-folder)/datafactory/resource-manager/v2017_09_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-06 and java + +These settings apply only when `--tag=package-2018-06 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-06' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.datafactory.v2018_06_01 + output-folder: $(azure-libraries-for-java-folder)/datafactory/resource-manager/v2018_06_01 +regenerate-manager: true +generate-interface: true +``` \ No newline at end of file diff --git a/specification/datafactory/resource-manager/readme.md b/specification/datafactory/resource-manager/readme.md index 02c837b7fd01..7961ef331280 100644 --- a/specification/datafactory/resource-manager/readme.md +++ b/specification/datafactory/resource-manager/readme.md @@ -59,6 +59,7 @@ 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 @@ -115,54 +116,7 @@ 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) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.datafactory -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-datafactory -``` - -# Validation - - -### Java multi-api - -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2017-09-preview - - tag: package-2018-06 -``` - -### Tag: package-2017-09-preview and java - -These settings apply only when `--tag=package-2017-09-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2017-09-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.datafactoryv2.v2017_09_01_preview - output-folder: $(azure-libraries-for-java-folder)/datafactoryv2/resource-manager/v2017_09_01_preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2018-06 and java - -These settings apply only when `--tag=package-2018-06 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2018-06' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.datafactoryv2.v2018_06_01 - output-folder: $(azure-libraries-for-java-folder)/datafactoryv2/resource-manager/v2018_06_01 -regenerate-manager: true -generate-interface: true -``` +See configuration in [readme.java.md](./readme.java.md) ## Suppression @@ -260,3 +214,29 @@ directive: - The other properties are simple and self explanatory ``` + +## 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.DataFactory/stable/2018-06-01/datafactory.json + - $(this-folder)/Microsoft.DataFactory/preview/2017-09-01-preview/datafactory.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/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2015-10-01-preview/catalog.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2015-10-01-preview/catalog.json index 95331d8e363d..4d377d679b65 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2015-10-01-preview/catalog.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2015-10-01-preview/catalog.json @@ -2901,4 +2901,4 @@ "x-ms-parameter-location": "client" } } -} \ No newline at end of file +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2015-11-01-preview/job.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2015-11-01-preview/job.json index 0d3a24a48e0a..7bf8ab43655e 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2015-11-01-preview/job.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2015-11-01-preview/job.json @@ -1023,4 +1023,4 @@ "x-ms-parameter-location": "client" } } -} \ No newline at end of file +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2016-03-20-preview/job.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2016-03-20-preview/job.json index 0db2aa94ac9d..416404d9d156 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2016-03-20-preview/job.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2016-03-20-preview/job.json @@ -536,7 +536,6 @@ "VertexResourceInUserFolder", "JobManagerResourceInUserFolder", "StatisticsResourceInUserFolder" - ], "x-ms-enum": { "name": "JobResourceType", @@ -690,32 +689,32 @@ }, "description": "The common Data Lake Analytics job properties." }, - "Diagnostics" : { + "Diagnostics": { "properties": { - "columnNumber" : { + "columnNumber": { "description": "the column where the error occurred.", "type": "integer", "format": "int32", "readOnly": true }, - "end" : { + "end": { "description": "the ending index of the error.", "type": "integer", "format": "int32", "readOnly": true }, - "lineNumber" : { + "lineNumber": { "description": "the line number the error occurred on.", "type": "integer", "format": "int32", "readOnly": true }, - "message" : { + "message": { "description": "the error message.", "type": "string", "readOnly": true }, - "severity" : { + "severity": { "description": "the severity of the error.", "readOnly": true, "type": "string", @@ -729,7 +728,7 @@ "modelAsString": false } }, - "start" : { + "start": { "description": "the starting index of the error.", "type": "integer", "format": "int32", @@ -1007,7 +1006,7 @@ "type": "array", "items": { "type": "string" - }, + }, "description": "the list of log file name patterns to find in the logFolder. '*' is the only matching character allowed. Example format: jobExecution*.log or *mylog*.txt" }, "stateAuditRecords": { diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Build.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Build.json index 6ceeb3ab4b79..baa5e5b204e3 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Build.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Build.json @@ -1,88 +1,92 @@ { + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaJobDnsSuffix": "azuredatalakeanalytics.net", "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaJobDnsSuffix": "azuredatalakeanalytics.net", - "parameters": { - "type": "USql", - "properties": { - "runtimeVersion": "test_runtime_version", - "script": "test_script", - "type": "USql" + "type": "USql", + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "USql" + }, + "name": "test_name" + } + }, + "responses": { + "200": { + "body": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + }, + "tags": { + "test_key": "test_value" + }, + "errorMessage": [ + { + "description": "test_description", + "details": "test_details", + "endOffset": 1, + "errorId": "test_error_id", + "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "lineNumber": 1, + "message": "test_message", + "resolution": "test_resolution", + "innerError": { + "diagnosticCode": 1, + "severity": "Warning", + "details": "test_details", + "component": "test_component", + "errorId": "test_error_id", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "message": "test_message", + "resolution": "test_resolution", + "source": "SYSTEM", + "description": "test_description" }, - "name": "test_name" - } - }, - "responses": { - "200": { - "body": { - "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "name": "test_name", - "type": "USql", - "submitter": "test_submitter", - "degreeOfParallelism": 1, - "priority": 1, - "submitTime": "2017-04-18T11:16:49.0748958-07:00", - "startTime": "2017-04-18T11:16:49.0748958-07:00", - "endTime": "2017-04-18T11:16:49.0748958-07:00", - "state": "Accepted", - "result": "Succeeded", - "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", - "logFilePatterns": [ - "test_log_file_pattern_1", - "test_log_file_pattern_2" - ], - "related": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", - "recurrenceName": "test_recurrence_name" - }, - "tags": { - "test_key": "test_value" - }, - "errorMessage": [{ - "description": "test_description", - "details": "test_details", - "endOffset": 1, - "errorId": "test_error_id", - "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "lineNumber": 1, - "message": "test_message", - "resolution": "test_resolution", - "innerError": { - "diagnosticCode": 1, - "severity": "Warning", - "details": "test_details", - "component": "test_component", - "errorId": "test_error_id", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "message": "test_message", - "resolution": "test_resolution", - "source": "SYSTEM", - "description": "test_description" - }, - "severity": "Warning", - "source": "SYSTEM", - "startOffset": 1 - }], - "stateAuditRecords": [{ - "newState": "test_new_state", - "timeStamp": "2017-04-18T11:16:49.0748958-07:00", - "requestedByUser": "test_requested_by_user", - "details": "test_details" - }], - "properties": { - "runtimeVersion": "test_runtime_version", - "script": "test_script", - "type": "USql" - } - } + "severity": "Warning", + "source": "SYSTEM", + "startOffset": 1 + } + ], + "stateAuditRecords": [ + { + "newState": "test_new_state", + "timeStamp": "2017-04-18T11:16:49.0748958-07:00", + "requestedByUser": "test_requested_by_user", + "details": "test_details" + } + ], + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "USql" } + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Cancel.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Cancel.json index 09f18758b1bc..0f6b9bfbcaea 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Cancel.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Cancel.json @@ -1,16 +1,13 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaJobDnsSuffix": "azuredatalakeanalytics.net", - "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" - }, - "responses": { - "200": { - }, - "202": { - }, - "204": { - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaJobDnsSuffix": "azuredatalakeanalytics.net", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Create.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Create.json index e18aa9f2425a..74d84f3f66c3 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Create.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Create.json @@ -1,103 +1,107 @@ { + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaJobDnsSuffix": "azuredatalakeanalytics.net", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaJobDnsSuffix": "azuredatalakeanalytics.net", - "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", - "parameters": { - "type": "USql", - "properties": { - "runtimeVersion": "test_runtime_version", - "script": "test_script", - "type": "USql" + "type": "USql", + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "USql" + }, + "name": "test_name", + "degreeOfParallelism": 1, + "priority": 1, + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + } + } + }, + "responses": { + "200": { + "body": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + }, + "tags": { + "test_key": "test_value" + }, + "errorMessage": [ + { + "description": "test_description", + "details": "test_details", + "endOffset": 1, + "errorId": "test_error_id", + "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "lineNumber": 1, + "message": "test_message", + "resolution": "test_resolution", + "innerError": { + "diagnosticCode": 1, + "severity": "Warning", + "details": "test_details", + "component": "test_component", + "errorId": "test_error_id", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "message": "test_message", + "resolution": "test_resolution", + "source": "SYSTEM", + "description": "test_description" }, - "name": "test_name", - "degreeOfParallelism": 1, - "priority": 1, - "logFilePatterns": [ - "test_log_file_pattern_1", - "test_log_file_pattern_2" - ], - "related": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", - "recurrenceName": "test_recurrence_name" - } - } - }, - "responses": { - "200": { - "body": { - "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "name": "test_name", - "type": "USql", - "submitter": "test_submitter", - "degreeOfParallelism": 1, - "priority": 1, - "submitTime": "2017-04-18T11:16:49.0748958-07:00", - "startTime": "2017-04-18T11:16:49.0748958-07:00", - "endTime": "2017-04-18T11:16:49.0748958-07:00", - "state": "Accepted", - "result": "Succeeded", - "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", - "logFilePatterns": [ - "test_log_file_pattern_1", - "test_log_file_pattern_2" - ], - "related": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", - "recurrenceName": "test_recurrence_name" - }, - "tags": { - "test_key": "test_value" - }, - "errorMessage": [{ - "description": "test_description", - "details": "test_details", - "endOffset": 1, - "errorId": "test_error_id", - "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "lineNumber": 1, - "message": "test_message", - "resolution": "test_resolution", - "innerError": { - "diagnosticCode": 1, - "severity": "Warning", - "details": "test_details", - "component": "test_component", - "errorId": "test_error_id", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "message": "test_message", - "resolution": "test_resolution", - "source": "SYSTEM", - "description": "test_description" - }, - "severity": "Warning", - "source": "SYSTEM", - "startOffset": 1 - }], - "stateAuditRecords": [{ - "newState": "test_new_state", - "timeStamp": "2017-04-18T11:16:49.0748958-07:00", - "requestedByUser": "test_requested_by_user", - "details": "test_details" - }], - "properties": { - "runtimeVersion": "test_runtime_version", - "script": "test_script", - "type": "USql" - } - } + "severity": "Warning", + "source": "SYSTEM", + "startOffset": 1 + } + ], + "stateAuditRecords": [ + { + "newState": "test_new_state", + "timeStamp": "2017-04-18T11:16:49.0748958-07:00", + "requestedByUser": "test_requested_by_user", + "details": "test_details" + } + ], + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "USql" } + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Get.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Get.json index 9c71939c68ab..bcf9262e5433 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Get.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Get.json @@ -1,80 +1,84 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaJobDnsSuffix": "azuredatalakeanalytics.net", - "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" - }, - "responses": { - "200": { - "body": { - "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "name": "test_name", - "type": "USql", - "submitter": "test_submitter", - "degreeOfParallelism": 1, - "priority": 1, - "submitTime": "2017-04-18T11:16:49.0748958-07:00", - "startTime": "2017-04-18T11:16:49.0748958-07:00", - "endTime": "2017-04-18T11:16:49.0748958-07:00", - "state": "Accepted", - "result": "Succeeded", - "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", - "logFilePatterns": [ - "test_log_file_pattern_1", - "test_log_file_pattern_2" - ], - "related": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", - "recurrenceName": "test_recurrence_name" - }, - "tags": { - "test_key": "test_value" - }, - "errorMessage": [{ - "description": "test_description", - "details": "test_details", - "endOffset": 1, - "errorId": "test_error_id", - "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "lineNumber": 1, - "message": "test_message", - "resolution": "test_resolution", - "innerError": { - "diagnosticCode": 1, - "severity": "Warning", - "details": "test_details", - "component": "test_component", - "errorId": "test_error_id", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "message": "test_message", - "resolution": "test_resolution", - "source": "SYSTEM", - "description": "test_description" - }, - "severity": "Warning", - "source": "SYSTEM", - "startOffset": 1 - }], - "stateAuditRecords": [{ - "newState": "test_new_state", - "timeStamp": "2017-04-18T11:16:49.0748958-07:00", - "requestedByUser": "test_requested_by_user", - "details": "test_details" - }], - "properties": { - "runtimeVersion": "test_runtime_version", - "script": "test_script", - "type": "USql" - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaJobDnsSuffix": "azuredatalakeanalytics.net", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" + }, + "responses": { + "200": { + "body": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + }, + "tags": { + "test_key": "test_value" + }, + "errorMessage": [ + { + "description": "test_description", + "details": "test_details", + "endOffset": 1, + "errorId": "test_error_id", + "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "lineNumber": 1, + "message": "test_message", + "resolution": "test_resolution", + "innerError": { + "diagnosticCode": 1, + "severity": "Warning", + "details": "test_details", + "component": "test_component", + "errorId": "test_error_id", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "message": "test_message", + "resolution": "test_resolution", + "source": "SYSTEM", + "description": "test_description" + }, + "severity": "Warning", + "source": "SYSTEM", + "startOffset": 1 + } + ], + "stateAuditRecords": [ + { + "newState": "test_new_state", + "timeStamp": "2017-04-18T11:16:49.0748958-07:00", + "requestedByUser": "test_requested_by_user", + "details": "test_details" + } + ], + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "USql" } + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_GetDebugDataPath.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_GetDebugDataPath.json index 1dd27580aa29..7d1e0fe91660 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_GetDebugDataPath.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_GetDebugDataPath.json @@ -1,20 +1,20 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaJobDnsSuffix": "azuredatalakeanalytics.net", - "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" - }, - "responses": { - "200": { - "body": { - "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "command": "test_command", - "paths": [ - "test_path_1", - "test_path_2" - ] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaJobDnsSuffix": "azuredatalakeanalytics.net", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" + }, + "responses": { + "200": { + "body": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "command": "test_command", + "paths": [ + "test_path_1", + "test_path_2" + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_GetStatistics.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_GetStatistics.json index 182690613ad8..7c254cf468fa 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_GetStatistics.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_GetStatistics.json @@ -1,38 +1,40 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaJobDnsSuffix": "azuredatalakeanalytics.net", - "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" - }, - "responses": { - "200": { - "body": { - "lastUpdateTimeUtc": "2017-04-18T11:16:49.0748958-07:00", - "finalizingTimeUtc": "2017-04-18T11:16:49.0748958-07:00", - "stages": [{ - "dataRead": 1, - "dataReadCrossPod": 1, - "dataReadIntraPod": 1, - "dataToRead": 1, - "dataWritten": 1, - "duplicateDiscardCount": 1, - "failedCount": 1, - "maxVertexDataRead": 1, - "minVertexDataRead": 1, - "readFailureCount": 1, - "revocationCount": 1, - "runningCount": 1, - "scheduledCount": 1, - "stageName": "test_stage_name", - "succeededCount": 1, - "tempDataWritten": 1, - "totalCount": 1, - "totalFailedTime": "PT0S", - "totalProgress": 1, - "totalSucceededTime": "PT0S" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaJobDnsSuffix": "azuredatalakeanalytics.net", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" + }, + "responses": { + "200": { + "body": { + "lastUpdateTimeUtc": "2017-04-18T11:16:49.0748958-07:00", + "finalizingTimeUtc": "2017-04-18T11:16:49.0748958-07:00", + "stages": [ + { + "dataRead": 1, + "dataReadCrossPod": 1, + "dataReadIntraPod": 1, + "dataToRead": 1, + "dataWritten": 1, + "duplicateDiscardCount": 1, + "failedCount": 1, + "maxVertexDataRead": 1, + "minVertexDataRead": 1, + "readFailureCount": 1, + "revocationCount": 1, + "runningCount": 1, + "scheduledCount": 1, + "stageName": "test_stage_name", + "succeededCount": 1, + "tempDataWritten": 1, + "totalCount": 1, + "totalFailedTime": "PT0S", + "totalProgress": 1, + "totalSucceededTime": "PT0S" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_List.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_List.json index 3d8689c9bb33..8ccd670d6930 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_List.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_List.json @@ -1,49 +1,51 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaJobDnsSuffix": "azuredatalakeanalytics.net", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "value": [{ - "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "name": "test_name", - "type": "USql", - "submitter": "test_submitter", - "degreeOfParallelism": 1, - "priority": 1, - "submitTime": "2017-04-18T11:16:49.0748958-07:00", - "startTime": "2017-04-18T11:16:49.0748958-07:00", - "endTime": "2017-04-18T11:16:49.0748958-07:00", - "state": "Accepted", - "result": "Succeeded", - "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", - "logFilePatterns": [ - "test_log_file_pattern_1", - "test_log_file_pattern_2" - ], - "related": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", - "recurrenceName": "test_recurrence_name" - }, - "tags": { - "test_key": "test_value" - } - }], - "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaJobDnsSuffix": "azuredatalakeanalytics.net", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "value": [ + { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + }, + "tags": { + "test_key": "test_value" } - } + } + ], + "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Update.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Update.json index 54cd118c364e..41cad2d3a8de 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Update.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Update.json @@ -1,91 +1,93 @@ { + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaJobDnsSuffix": "azuredatalakeanalytics.net", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaJobDnsSuffix": "azuredatalakeanalytics.net", - "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", - "parameters": { - "degreeOfParallelism": 1, - "priority": 1, - "tags": { - "test_key": "test_value" - } - } - }, - "responses": { - "200": { - "body": { - "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "name": "test_name", - "type": "USql", - "submitter": "test_submitter", - "degreeOfParallelism": 1, - "priority": 1, - "submitTime": "2017-04-18T11:16:49.0748958-07:00", - "startTime": "2017-04-18T11:16:49.0748958-07:00", - "endTime": "2017-04-18T11:16:49.0748958-07:00", - "state": "Accepted", - "result": "Succeeded", - "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", - "logFilePatterns": [ - "test_log_file_pattern_1", - "test_log_file_pattern_2" - ], - "related": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", - "recurrenceName": "test_recurrence_name" - }, - "tags": { - "test_key": "test_value" - }, - "errorMessage": [{ - "description": "test_description", - "details": "test_details", - "endOffset": 1, - "errorId": "test_error_id", - "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "lineNumber": 1, - "message": "test_message", - "resolution": "test_resolution", - "innerError": { - "diagnosticCode": 1, - "severity": "Warning", - "details": "test_details", - "component": "test_component", - "errorId": "test_error_id", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "message": "test_message", - "resolution": "test_resolution", - "source": "SYSTEM", - "description": "test_description" - }, - "severity": "Warning", - "source": "SYSTEM", - "startOffset": 1 - }], - "stateAuditRecords": [{ - "newState": "test_new_state", - "timeStamp": "2017-04-18T11:16:49.0748958-07:00", - "requestedByUser": "test_requested_by_user", - "details": "test_details" - }], - "properties": { - "runtimeVersion": "test_runtime_version", - "script": "test_script", - "type": "Hive" - } - } + "degreeOfParallelism": 1, + "priority": 1, + "tags": { + "test_key": "test_value" + } + } + }, + "responses": { + "200": { + "body": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" }, - "201": { + "tags": { + "test_key": "test_value" }, - "202": { + "errorMessage": [ + { + "description": "test_description", + "details": "test_details", + "endOffset": 1, + "errorId": "test_error_id", + "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "lineNumber": 1, + "message": "test_message", + "resolution": "test_resolution", + "innerError": { + "diagnosticCode": 1, + "severity": "Warning", + "details": "test_details", + "component": "test_component", + "errorId": "test_error_id", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "message": "test_message", + "resolution": "test_resolution", + "source": "SYSTEM", + "description": "test_description" + }, + "severity": "Warning", + "source": "SYSTEM", + "startOffset": 1 + } + ], + "stateAuditRecords": [ + { + "newState": "test_new_state", + "timeStamp": "2017-04-18T11:16:49.0748958-07:00", + "requestedByUser": "test_requested_by_user", + "details": "test_details" + } + ], + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "Hive" } - } + } + }, + "201": {}, + "202": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Yield.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Yield.json index 09f18758b1bc..0f6b9bfbcaea 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Yield.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Job_Yield.json @@ -1,16 +1,13 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaJobDnsSuffix": "azuredatalakeanalytics.net", - "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" - }, - "responses": { - "200": { - }, - "202": { - }, - "204": { - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaJobDnsSuffix": "azuredatalakeanalytics.net", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Pipeline_Get.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Pipeline_Get.json index 76fddedb5fd2..83b65ea13fb5 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Pipeline_Get.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Pipeline_Get.json @@ -1,34 +1,36 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaJobDnsSuffix": "azuredatalakeanalytics.net", - "pipelineIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", - "startDateTime": "2017-04-18T11:16:49.0748958-07:00", - "endDateTime": "2017-04-18T11:16:49.0748958-07:00" - }, - "responses": { - "200": { - "body": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "numJobsFailed": 1, - "numJobsCanceled": 1, - "numJobsSucceeded": 1, - "auHoursFailed": 1.0, - "auHoursCanceled": 1.0, - "auHoursSucceeded": 1.0, - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00", - "runs": [{ - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" - }], - "recurrences": [ - "2ba01f6c-562d-4246-90ff-0b8c2d10e346", - "da8dc3de-2fd8-4641-8968-40dbbf11e95f" - ] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaJobDnsSuffix": "azuredatalakeanalytics.net", + "pipelineIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", + "startDateTime": "2017-04-18T11:16:49.0748958-07:00", + "endDateTime": "2017-04-18T11:16:49.0748958-07:00" + }, + "responses": { + "200": { + "body": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "numJobsFailed": 1, + "numJobsCanceled": 1, + "numJobsSucceeded": 1, + "auHoursFailed": 1.0, + "auHoursCanceled": 1.0, + "auHoursSucceeded": 1.0, + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00", + "runs": [ + { + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" + } + ], + "recurrences": [ + "2ba01f6c-562d-4246-90ff-0b8c2d10e346", + "da8dc3de-2fd8-4641-8968-40dbbf11e95f" + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Pipeline_List.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Pipeline_List.json index 7803c038f2f0..a686098793b5 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Pipeline_List.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Pipeline_List.json @@ -1,36 +1,40 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaJobDnsSuffix": "azuredatalakeanalytics.net", - "startDateTime": "2017-04-18T11:16:49.0748958-07:00", - "endDateTime": "2017-04-18T11:16:49.0748958-07:00" - }, - "responses": { - "200": { - "body": { - "value": [{ - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "numJobsFailed": 1, - "numJobsCanceled": 1, - "numJobsSucceeded": 1, - "auHoursFailed": 1.0, - "auHoursCanceled": 1.0, - "auHoursSucceeded": 1.0, - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00", - "runs": [{ - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" - }], - "recurrences": [ - "2ba01f6c-562d-4246-90ff-0b8c2d10e346", - "da8dc3de-2fd8-4641-8968-40dbbf11e95f" - ] - }], - "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaJobDnsSuffix": "azuredatalakeanalytics.net", + "startDateTime": "2017-04-18T11:16:49.0748958-07:00", + "endDateTime": "2017-04-18T11:16:49.0748958-07:00" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "numJobsFailed": 1, + "numJobsCanceled": 1, + "numJobsSucceeded": 1, + "auHoursFailed": 1.0, + "auHoursCanceled": 1.0, + "auHoursSucceeded": 1.0, + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00", + "runs": [ + { + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" + } + ], + "recurrences": [ + "2ba01f6c-562d-4246-90ff-0b8c2d10e346", + "da8dc3de-2fd8-4641-8968-40dbbf11e95f" + ] + } + ], + "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Recurrence_Get.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Recurrence_Get.json index 9f8e326cba38..83174744e93c 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Recurrence_Get.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Recurrence_Get.json @@ -1,25 +1,25 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaJobDnsSuffix": "azuredatalakeanalytics.net", - "recurrenceIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", - "startDateTime": "2017-04-18T11:16:49.0748958-07:00", - "endDateTime": "2017-04-18T11:16:49.0748958-07:00" - }, - "responses": { - "200": { - "body": { - "recurrenceId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "recurrenceName": "test_recurrence_name", - "numJobsFailed": 1, - "numJobsCanceled": 1, - "numJobsSucceeded": 1, - "auHoursFailed": 1.0, - "auHoursCanceled": 1.0, - "auHoursSucceeded": 1.0, - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaJobDnsSuffix": "azuredatalakeanalytics.net", + "recurrenceIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", + "startDateTime": "2017-04-18T11:16:49.0748958-07:00", + "endDateTime": "2017-04-18T11:16:49.0748958-07:00" + }, + "responses": { + "200": { + "body": { + "recurrenceId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "recurrenceName": "test_recurrence_name", + "numJobsFailed": 1, + "numJobsCanceled": 1, + "numJobsSucceeded": 1, + "auHoursFailed": 1.0, + "auHoursCanceled": 1.0, + "auHoursSucceeded": 1.0, + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Recurrence_List.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Recurrence_List.json index f12dad78264f..6c85120742ea 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Recurrence_List.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/examples/Recurrence_List.json @@ -1,27 +1,29 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaJobDnsSuffix": "azuredatalakeanalytics.net", - "startDateTime": "2017-04-18T11:16:49.0748958-07:00", - "endDateTime": "2017-04-18T11:16:49.0748958-07:00" - }, - "responses": { - "200": { - "body": { - "value": [{ - "recurrenceId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "recurrenceName": "test_recurrence_name", - "numJobsFailed": 1, - "numJobsCanceled": 1, - "numJobsSucceeded": 1, - "auHoursFailed": 1.0, - "auHoursCanceled": 1.0, - "auHoursSucceeded": 1.0, - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" - }], - "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaJobDnsSuffix": "azuredatalakeanalytics.net", + "startDateTime": "2017-04-18T11:16:49.0748958-07:00", + "endDateTime": "2017-04-18T11:16:49.0748958-07:00" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "recurrenceId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "recurrenceName": "test_recurrence_name", + "numJobsFailed": 1, + "numJobsCanceled": 1, + "numJobsSucceeded": 1, + "auHoursFailed": 1.0, + "auHoursCanceled": 1.0, + "auHoursSucceeded": 1.0, + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" + } + ], + "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/job.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/job.json index 911c3e76cd92..65f78c6aeb25 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/job.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/job.json @@ -1890,7 +1890,6 @@ "description": "The recurring job relationship information properties." } }, - "description": "The parameters used to submit a new Data Lake Analytics job." }, "CreateScopeJobParameters": { diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Build.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Build.json index 520955a36cb6..f3d02df1083d 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Build.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Build.json @@ -1,85 +1,89 @@ { + "parameters": { + "accountName": "account123", + "adlaJobDnsSuffix": "contosopipelineservice.com", + "api-version": "2016-11-01", "parameters": { - "accountName": "account123", - "adlaJobDnsSuffix": "contosopipelineservice.com", - "api-version": "2016-11-01", - "parameters": { - "type": "USql", - "properties": { - "runtimeVersion": "test_runtime_version", - "script": "test_script", - "type": "USql" + "type": "USql", + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "USql" + }, + "name": "test_name" + } + }, + "responses": { + "200": { + "body": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + }, + "errorMessage": [ + { + "description": "test_description", + "details": "test_details", + "endOffset": 1, + "errorId": "test_error_id", + "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "lineNumber": 1, + "message": "test_message", + "resolution": "test_resolution", + "innerError": { + "diagnosticCode": 1, + "severity": "Warning", + "details": "test_details", + "component": "test_component", + "errorId": "test_error_id", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "message": "test_message", + "resolution": "test_resolution", + "source": "SYSTEM", + "description": "test_description" }, - "name": "test_name" - } - }, - "responses": { - "200": { - "body": { - "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "name": "test_name", - "type": "USql", - "submitter": "test_submitter", - "degreeOfParallelism": 1, - "priority": 1, - "submitTime": "2017-04-18T11:16:49.0748958-07:00", - "startTime": "2017-04-18T11:16:49.0748958-07:00", - "endTime": "2017-04-18T11:16:49.0748958-07:00", - "state": "Accepted", - "result": "Succeeded", - "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", - "logFilePatterns": [ - "test_log_file_pattern_1", - "test_log_file_pattern_2" - ], - "related": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", - "recurrenceName": "test_recurrence_name" - }, - "errorMessage": [{ - "description": "test_description", - "details": "test_details", - "endOffset": 1, - "errorId": "test_error_id", - "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "lineNumber": 1, - "message": "test_message", - "resolution": "test_resolution", - "innerError": { - "diagnosticCode": 1, - "severity": "Warning", - "details": "test_details", - "component": "test_component", - "errorId": "test_error_id", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "message": "test_message", - "resolution": "test_resolution", - "source": "SYSTEM", - "description": "test_description" - }, - "severity": "Warning", - "source": "SYSTEM", - "startOffset": 1 - }], - "stateAuditRecords": [{ - "newState": "test_new_state", - "timeStamp": "2017-04-18T11:16:49.0748958-07:00", - "requestedByUser": "test_requested_by_user", - "details": "test_details" - }], - "properties": { - "runtimeVersion": "test_runtime_version", - "script": "test_script", - "type": "USql" - } - } + "severity": "Warning", + "source": "SYSTEM", + "startOffset": 1 + } + ], + "stateAuditRecords": [ + { + "newState": "test_new_state", + "timeStamp": "2017-04-18T11:16:49.0748958-07:00", + "requestedByUser": "test_requested_by_user", + "details": "test_details" + } + ], + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "USql" } + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Cancel.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Cancel.json index b7ae114a3b7d..c39750162dab 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Cancel.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Cancel.json @@ -1,12 +1,11 @@ { - "parameters": { - "accountName": "account123", - "adlaJobDnsSuffix": "contosopipelineservice.com", - "api-version": "2016-11-01", - "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" - }, - "responses": { - "200": { - } - } + "parameters": { + "accountName": "account123", + "adlaJobDnsSuffix": "contosopipelineservice.com", + "api-version": "2016-11-01", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Create.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Create.json index e2330dc879e9..f1c5fa864086 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Create.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Create.json @@ -1,100 +1,104 @@ { + "parameters": { + "accountName": "account123", + "adlaJobDnsSuffix": "contosopipelineservice.com", + "api-version": "2016-11-01", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", "parameters": { - "accountName": "account123", - "adlaJobDnsSuffix": "contosopipelineservice.com", - "api-version": "2016-11-01", - "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", - "parameters": { - "type": "USql", - "properties": { - "runtimeVersion": "test_runtime_version", - "script": "test_script", - "type": "USql" + "type": "USql", + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "USql" + }, + "name": "test_name", + "degreeOfParallelism": 1, + "priority": 1, + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + } + } + }, + "responses": { + "200": { + "body": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + }, + "errorMessage": [ + { + "description": "test_description", + "details": "test_details", + "endOffset": 1, + "errorId": "test_error_id", + "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "lineNumber": 1, + "message": "test_message", + "resolution": "test_resolution", + "innerError": { + "diagnosticCode": 1, + "severity": "Warning", + "details": "test_details", + "component": "test_component", + "errorId": "test_error_id", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "message": "test_message", + "resolution": "test_resolution", + "source": "SYSTEM", + "description": "test_description" }, - "name": "test_name", - "degreeOfParallelism": 1, - "priority": 1, - "logFilePatterns": [ - "test_log_file_pattern_1", - "test_log_file_pattern_2" - ], - "related": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", - "recurrenceName": "test_recurrence_name" - } - } - }, - "responses": { - "200": { - "body": { - "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "name": "test_name", - "type": "USql", - "submitter": "test_submitter", - "degreeOfParallelism": 1, - "priority": 1, - "submitTime": "2017-04-18T11:16:49.0748958-07:00", - "startTime": "2017-04-18T11:16:49.0748958-07:00", - "endTime": "2017-04-18T11:16:49.0748958-07:00", - "state": "Accepted", - "result": "Succeeded", - "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", - "logFilePatterns": [ - "test_log_file_pattern_1", - "test_log_file_pattern_2" - ], - "related": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", - "recurrenceName": "test_recurrence_name" - }, - "errorMessage": [{ - "description": "test_description", - "details": "test_details", - "endOffset": 1, - "errorId": "test_error_id", - "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "lineNumber": 1, - "message": "test_message", - "resolution": "test_resolution", - "innerError": { - "diagnosticCode": 1, - "severity": "Warning", - "details": "test_details", - "component": "test_component", - "errorId": "test_error_id", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "message": "test_message", - "resolution": "test_resolution", - "source": "SYSTEM", - "description": "test_description" - }, - "severity": "Warning", - "source": "SYSTEM", - "startOffset": 1 - }], - "stateAuditRecords": [{ - "newState": "test_new_state", - "timeStamp": "2017-04-18T11:16:49.0748958-07:00", - "requestedByUser": "test_requested_by_user", - "details": "test_details" - }], - "properties": { - "runtimeVersion": "test_runtime_version", - "script": "test_script", - "type": "USql" - } - } + "severity": "Warning", + "source": "SYSTEM", + "startOffset": 1 + } + ], + "stateAuditRecords": [ + { + "newState": "test_new_state", + "timeStamp": "2017-04-18T11:16:49.0748958-07:00", + "requestedByUser": "test_requested_by_user", + "details": "test_details" + } + ], + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "USql" } + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Get.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Get.json index f73037f5ce56..f2d0d0c690d1 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Get.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_Get.json @@ -1,77 +1,81 @@ { - "parameters": { - "accountName": "account123", - "adlaJobDnsSuffix": "contosopipelineservice.com", - "api-version": "2016-11-01", - "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" - }, - "responses": { - "200": { - "body": { - "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "name": "test_name", - "type": "USql", - "submitter": "test_submitter", - "degreeOfParallelism": 1, - "priority": 1, - "submitTime": "2017-04-18T11:16:49.0748958-07:00", - "startTime": "2017-04-18T11:16:49.0748958-07:00", - "endTime": "2017-04-18T11:16:49.0748958-07:00", - "state": "Accepted", - "result": "Succeeded", - "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", - "logFilePatterns": [ - "test_log_file_pattern_1", - "test_log_file_pattern_2" - ], - "related": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", - "recurrenceName": "test_recurrence_name" - }, - "errorMessage": [{ - "description": "test_description", - "details": "test_details", - "endOffset": 1, - "errorId": "test_error_id", - "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "lineNumber": 1, - "message": "test_message", - "resolution": "test_resolution", - "innerError": { - "diagnosticCode": 1, - "severity": "Warning", - "details": "test_details", - "component": "test_component", - "errorId": "test_error_id", - "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", - "internalDiagnostics": "test_internal_diagnostics", - "message": "test_message", - "resolution": "test_resolution", - "source": "SYSTEM", - "description": "test_description" - }, - "severity": "Warning", - "source": "SYSTEM", - "startOffset": 1 - }], - "stateAuditRecords": [{ - "newState": "test_new_state", - "timeStamp": "2017-04-18T11:16:49.0748958-07:00", - "requestedByUser": "test_requested_by_user", - "details": "test_details" - }], - "properties": { - "runtimeVersion": "test_runtime_version", - "script": "test_script", - "type": "USql" - } - } + "parameters": { + "accountName": "account123", + "adlaJobDnsSuffix": "contosopipelineservice.com", + "api-version": "2016-11-01", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" + }, + "responses": { + "200": { + "body": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + }, + "errorMessage": [ + { + "description": "test_description", + "details": "test_details", + "endOffset": 1, + "errorId": "test_error_id", + "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "lineNumber": 1, + "message": "test_message", + "resolution": "test_resolution", + "innerError": { + "diagnosticCode": 1, + "severity": "Warning", + "details": "test_details", + "component": "test_component", + "errorId": "test_error_id", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "message": "test_message", + "resolution": "test_resolution", + "source": "SYSTEM", + "description": "test_description" + }, + "severity": "Warning", + "source": "SYSTEM", + "startOffset": 1 + } + ], + "stateAuditRecords": [ + { + "newState": "test_new_state", + "timeStamp": "2017-04-18T11:16:49.0748958-07:00", + "requestedByUser": "test_requested_by_user", + "details": "test_details" + } + ], + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "USql" } + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_GetDebugDataPath.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_GetDebugDataPath.json index 7726d97fdc90..d7839a080d13 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_GetDebugDataPath.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_GetDebugDataPath.json @@ -1,20 +1,20 @@ { - "parameters": { - "accountName": "account123", - "adlaJobDnsSuffix": "contosopipelineservice.com", - "api-version": "2016-11-01", - "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" - }, - "responses": { - "200": { - "body": { - "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "command": "test_command", - "paths": [ - "test_path_1", - "test_path_2" - ] - } - } + "parameters": { + "accountName": "account123", + "adlaJobDnsSuffix": "contosopipelineservice.com", + "api-version": "2016-11-01", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" + }, + "responses": { + "200": { + "body": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "command": "test_command", + "paths": [ + "test_path_1", + "test_path_2" + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_GetStatistics.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_GetStatistics.json index 3b240a387852..3015262ac05f 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_GetStatistics.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_GetStatistics.json @@ -1,38 +1,40 @@ { - "parameters": { - "accountName": "account123", - "adlaJobDnsSuffix": "contosopipelineservice.com", - "api-version": "2016-11-01", - "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" - }, - "responses": { - "200": { - "body": { - "lastUpdateTimeUtc": "2017-04-18T11:16:49.0748958-07:00", - "finalizingTimeUtc": "2017-04-18T11:16:49.0748958-07:00", - "stages": [{ - "dataRead": 1, - "dataReadCrossPod": 1, - "dataReadIntraPod": 1, - "dataToRead": 1, - "dataWritten": 1, - "duplicateDiscardCount": 1, - "failedCount": 1, - "maxVertexDataRead": 1, - "minVertexDataRead": 1, - "readFailureCount": 1, - "revocationCount": 1, - "runningCount": 1, - "scheduledCount": 1, - "stageName": "test_stage_name", - "succeededCount": 1, - "tempDataWritten": 1, - "totalCount": 1, - "totalFailedTime": "PT0S", - "totalProgress": 1, - "totalSucceededTime": "PT0S" - }] - } - } + "parameters": { + "accountName": "account123", + "adlaJobDnsSuffix": "contosopipelineservice.com", + "api-version": "2016-11-01", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" + }, + "responses": { + "200": { + "body": { + "lastUpdateTimeUtc": "2017-04-18T11:16:49.0748958-07:00", + "finalizingTimeUtc": "2017-04-18T11:16:49.0748958-07:00", + "stages": [ + { + "dataRead": 1, + "dataReadCrossPod": 1, + "dataReadIntraPod": 1, + "dataToRead": 1, + "dataWritten": 1, + "duplicateDiscardCount": 1, + "failedCount": 1, + "maxVertexDataRead": 1, + "minVertexDataRead": 1, + "readFailureCount": 1, + "revocationCount": 1, + "runningCount": 1, + "scheduledCount": 1, + "stageName": "test_stage_name", + "succeededCount": 1, + "tempDataWritten": 1, + "totalCount": 1, + "totalFailedTime": "PT0S", + "totalProgress": 1, + "totalSucceededTime": "PT0S" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_List.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_List.json index c15f4d3a332c..8fd9f03ecba5 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_List.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Job_List.json @@ -1,46 +1,48 @@ { - "parameters": { - "accountName": "account123", - "adlaJobDnsSuffix": "contosopipelineservice.com", - "api-version": "2016-11-01", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "value": [{ - "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "name": "test_name", - "type": "USql", - "submitter": "test_submitter", - "degreeOfParallelism": 1, - "priority": 1, - "submitTime": "2017-04-18T11:16:49.0748958-07:00", - "startTime": "2017-04-18T11:16:49.0748958-07:00", - "endTime": "2017-04-18T11:16:49.0748958-07:00", - "state": "Accepted", - "result": "Succeeded", - "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", - "logFilePatterns": [ - "test_log_file_pattern_1", - "test_log_file_pattern_2" - ], - "related": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", - "recurrenceName": "test_recurrence_name" - } - }], - "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" + "parameters": { + "accountName": "account123", + "adlaJobDnsSuffix": "contosopipelineservice.com", + "api-version": "2016-11-01", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "value": [ + { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" } - } + } + ], + "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Pipeline_Get.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Pipeline_Get.json index d0969ab1dead..902807b48173 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Pipeline_Get.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Pipeline_Get.json @@ -1,34 +1,36 @@ { - "parameters": { - "accountName": "account123", - "adlaJobDnsSuffix": "contosopipelineservice.com", - "api-version": "2016-11-01", - "pipelineIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", - "startDateTime": "2017-04-18T11:16:49.0748958-07:00", - "endDateTime": "2017-04-18T11:16:49.0748958-07:00" - }, - "responses": { - "200": { - "body": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "numJobsFailed": 1, - "numJobsCanceled": 1, - "numJobsSucceeded": 1, - "auHoursFailed": 1.0, - "auHoursCanceled": 1.0, - "auHoursSucceeded": 1.0, - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00", - "runs": [{ - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" - }], - "recurrences": [ - "2ba01f6c-562d-4246-90ff-0b8c2d10e346", - "da8dc3de-2fd8-4641-8968-40dbbf11e95f" - ] - } - } + "parameters": { + "accountName": "account123", + "adlaJobDnsSuffix": "contosopipelineservice.com", + "api-version": "2016-11-01", + "pipelineIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", + "startDateTime": "2017-04-18T11:16:49.0748958-07:00", + "endDateTime": "2017-04-18T11:16:49.0748958-07:00" + }, + "responses": { + "200": { + "body": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "numJobsFailed": 1, + "numJobsCanceled": 1, + "numJobsSucceeded": 1, + "auHoursFailed": 1.0, + "auHoursCanceled": 1.0, + "auHoursSucceeded": 1.0, + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00", + "runs": [ + { + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" + } + ], + "recurrences": [ + "2ba01f6c-562d-4246-90ff-0b8c2d10e346", + "da8dc3de-2fd8-4641-8968-40dbbf11e95f" + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Pipeline_List.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Pipeline_List.json index bbaffcc35e5d..5a797c4b8f52 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Pipeline_List.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Pipeline_List.json @@ -1,36 +1,40 @@ { - "parameters": { - "accountName": "account123", - "adlaJobDnsSuffix": "contosopipelineservice.com", - "api-version": "2016-11-01", - "startDateTime": "2017-04-18T11:16:49.0748958-07:00", - "endDateTime": "2017-04-18T11:16:49.0748958-07:00" - }, - "responses": { - "200": { - "body": { - "value": [{ - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "test_pipeline_name", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "numJobsFailed": 1, - "numJobsCanceled": 1, - "numJobsSucceeded": 1, - "auHoursFailed": 1.0, - "auHoursCanceled": 1.0, - "auHoursSucceeded": 1.0, - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00", - "runs": [{ - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" - }], - "recurrences": [ - "2ba01f6c-562d-4246-90ff-0b8c2d10e346", - "da8dc3de-2fd8-4641-8968-40dbbf11e95f" - ] - }], - "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" - } - } + "parameters": { + "accountName": "account123", + "adlaJobDnsSuffix": "contosopipelineservice.com", + "api-version": "2016-11-01", + "startDateTime": "2017-04-18T11:16:49.0748958-07:00", + "endDateTime": "2017-04-18T11:16:49.0748958-07:00" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "numJobsFailed": 1, + "numJobsCanceled": 1, + "numJobsSucceeded": 1, + "auHoursFailed": 1.0, + "auHoursCanceled": 1.0, + "auHoursSucceeded": 1.0, + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00", + "runs": [ + { + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" + } + ], + "recurrences": [ + "2ba01f6c-562d-4246-90ff-0b8c2d10e346", + "da8dc3de-2fd8-4641-8968-40dbbf11e95f" + ] + } + ], + "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Recurrence_Get.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Recurrence_Get.json index 806b549a7c39..fcae5974bf10 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Recurrence_Get.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Recurrence_Get.json @@ -1,25 +1,25 @@ { - "parameters": { - "accountName": "account123", - "adlaJobDnsSuffix": "contosopipelineservice.com", - "api-version": "2016-11-01", - "recurrenceIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", - "startDateTime": "2017-04-18T11:16:49.0748958-07:00", - "endDateTime": "2017-04-18T11:16:49.0748958-07:00" - }, - "responses": { - "200": { - "body": { - "recurrenceId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "recurrenceName": "test_recurrence_name", - "numJobsFailed": 1, - "numJobsCanceled": 1, - "numJobsSucceeded": 1, - "auHoursFailed": 1.0, - "auHoursCanceled": 1.0, - "auHoursSucceeded": 1.0, - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" - } - } + "parameters": { + "accountName": "account123", + "adlaJobDnsSuffix": "contosopipelineservice.com", + "api-version": "2016-11-01", + "recurrenceIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", + "startDateTime": "2017-04-18T11:16:49.0748958-07:00", + "endDateTime": "2017-04-18T11:16:49.0748958-07:00" + }, + "responses": { + "200": { + "body": { + "recurrenceId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "recurrenceName": "test_recurrence_name", + "numJobsFailed": 1, + "numJobsCanceled": 1, + "numJobsSucceeded": 1, + "auHoursFailed": 1.0, + "auHoursCanceled": 1.0, + "auHoursSucceeded": 1.0, + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Recurrence_List.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Recurrence_List.json index 8ee7ee002381..427e1a6b1725 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Recurrence_List.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Adla_Recurrence_List.json @@ -1,27 +1,29 @@ { - "parameters": { - "accountName": "account123", - "adlaJobDnsSuffix": "contosopipelineservice.com", - "api-version": "2016-11-01", - "startDateTime": "2017-04-18T11:16:49.0748958-07:00", - "endDateTime": "2017-04-18T11:16:49.0748958-07:00" - }, - "responses": { - "200": { - "body": { - "value": [{ - "recurrenceId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "recurrenceName": "test_recurrence_name", - "numJobsFailed": 1, - "numJobsCanceled": 1, - "numJobsSucceeded": 1, - "auHoursFailed": 1.0, - "auHoursCanceled": 1.0, - "auHoursSucceeded": 1.0, - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" - }], - "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" - } - } + "parameters": { + "accountName": "account123", + "adlaJobDnsSuffix": "contosopipelineservice.com", + "api-version": "2016-11-01", + "startDateTime": "2017-04-18T11:16:49.0748958-07:00", + "endDateTime": "2017-04-18T11:16:49.0748958-07:00" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "recurrenceId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "recurrenceName": "test_recurrence_name", + "numJobsFailed": 1, + "numJobsCanceled": 1, + "numJobsSucceeded": 1, + "auHoursFailed": 1.0, + "auHoursCanceled": 1.0, + "auHoursSucceeded": 1.0, + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" + } + ], + "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_CreateCredential.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_CreateCredential.json index 3ecec8d20ed9..f8367c30e275 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_CreateCredential.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_CreateCredential.json @@ -1,18 +1,17 @@ { + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "credentialName": "test_credential_name", "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "credentialName": "test_credential_name", - "parameters": { - "password": "test_password", - "uri": "test_host:8000", - "userId": "test_user_id" - } - }, - "responses": { - "200": { - } + "password": "test_password", + "uri": "test_host:8000", + "userId": "test_user_id" } + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_CreateSecret.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_CreateSecret.json index 610d09b19144..fc541925934e 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_CreateSecret.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_CreateSecret.json @@ -1,17 +1,16 @@ { + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "secretName": "test_secret_name", "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "secretName": "test_secret_name", - "parameters": { - "password": "test_password", - "uri": "test_host:8000" - } - }, - "responses": { - "200": { - } + "password": "test_password", + "uri": "test_host:8000" } + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_DeleteAllSecrets.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_DeleteAllSecrets.json index 9e8b91296054..67403b1fb40e 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_DeleteAllSecrets.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_DeleteAllSecrets.json @@ -1,12 +1,11 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master" - }, - "responses": { - "200": { - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master" + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_DeleteCredential.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_DeleteCredential.json index 735406634a0c..ff464fb20a93 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_DeleteCredential.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_DeleteCredential.json @@ -1,17 +1,16 @@ { + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "credentialName": "test_credential_name", "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "credentialName": "test_credential_name", - "parameters": { - "password": "test_password" - }, - "cascade": false + "password": "test_password" }, - "responses": { - "200": { - } - } + "cascade": false + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_DeleteSecret.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_DeleteSecret.json index 62d68222eee3..6f27e947a052 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_DeleteSecret.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_DeleteSecret.json @@ -1,13 +1,12 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "secretName": "test_secret_name" - }, - "responses": { - "200": { - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "secretName": "test_secret_name" + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetAssembly.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetAssembly.json index 821a7d192e6e..e583c97819ba 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetAssembly.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetAssembly.json @@ -1,38 +1,42 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "assemblyName": "test_assembly_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "databaseName": "master", - "assemblyName": "test_assembly_name" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "assemblyName": "test_assembly_name", - "clrName": "test_clr_name", - "isVisible": false, - "isUserDefined": false, - "files": [{ - "type": "Assembly", - "originalPath": "test_original_path", - "contentPath": "test_content_path" - }], - "dependencies": [{ - "entityId": { - "name": { - "firstPart": "test_first_part", - "secondPart": "test_second_part", - "thirdPart": "test_third_part", - "server": "test_server" - }, - "version":"34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" - } - }] + "assemblyName": "test_assembly_name", + "clrName": "test_clr_name", + "isVisible": false, + "isUserDefined": false, + "files": [ + { + "type": "Assembly", + "originalPath": "test_original_path", + "contentPath": "test_content_path" + } + ], + "dependencies": [ + { + "entityId": { + "name": { + "firstPart": "test_first_part", + "secondPart": "test_second_part", + "thirdPart": "test_third_part", + "server": "test_server" + }, + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" } - } + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetCredential.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetCredential.json index ed310d3c0249..481038e559da 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetCredential.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetCredential.json @@ -1,18 +1,18 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "credentialName": "test_credential_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "credentialName": "test_credential_name" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "credentialName": "test_credential_name" - } - } + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetDatabase.json index ae7ce0caba76..af15531c676d 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetDatabase.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetDatabase.json @@ -1,17 +1,17 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "databaseName": "master" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master" - } - } + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetExternalDataSource.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetExternalDataSource.json index 0109800c719a..4353518b82c1 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetExternalDataSource.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetExternalDataSource.json @@ -1,24 +1,24 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "externalDataSourceName": "test_external_data_source_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "databaseName": "master", - "externalDataSourceName": "test_external_data_source_name" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "externalDataSourceName": "test_external_data_source_name", - "provider": "test_provider", - "providerString": "test_provider_string", - "pushdownTypes": [ - "test_pushdown_type" - ] - } - } + "externalDataSourceName": "test_external_data_source_name", + "provider": "test_provider", + "providerString": "test_provider_string", + "pushdownTypes": [ + "test_pushdown_type" + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetPackage.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetPackage.json index fb123d4c667d..c91926a60b87 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetPackage.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetPackage.json @@ -1,22 +1,22 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "packageName": "test_package_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "databaseName": "master", "schemaName": "dbo", - "packageName": "test_package_name" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "packageName": "test_package_name", - "definition": "test_definition" - } - } + "packageName": "test_package_name", + "definition": "test_definition" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetProcedure.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetProcedure.json index 1c4339bbc95d..c931fc1dbba6 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetProcedure.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetProcedure.json @@ -1,22 +1,22 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "procedureName": "test_procedure_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "databaseName": "master", "schemaName": "dbo", - "procedureName": "test_procedure_name" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "procName": "test_proc_name", - "definition": "test_definition" - } - } + "procName": "test_proc_name", + "definition": "test_definition" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetSchema.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetSchema.json index 66c62125e3e9..36c9a9693031 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetSchema.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetSchema.json @@ -1,19 +1,19 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "databaseName": "master", "schemaName": "dbo" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo" - } - } + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetSecret.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetSecret.json index 454a4557f4aa..a40c57830525 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetSecret.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetSecret.json @@ -1,22 +1,22 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "secretName": "test_secret_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "databaseName": "master", - "secretName": "test_secret_name" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "secretName": "test_secret_name", - "creationTime": "2017-04-14T13:21:56.6819037-07:00", - "uri": "test_host:8000", - "password": "test_password" - } - } + "secretName": "test_secret_name", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "uri": "test_host:8000", + "password": "test_password" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTable.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTable.json index 3914fa94a342..86e10aa2ed4e 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTable.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTable.json @@ -1,78 +1,88 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "databaseName": "master", "schemaName": "dbo", - "tableName": "test_table_name" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "tableName": "test_table_name", - "columnList": [{ - "name": "test_column_name", - "type": "test_type" - }], - "indexList": [{ - "name": "test_index_name", - "indexKeys": [{ - "name": "test_index_key", - "descending": false - }], - "columns": [ - "test_column" - ], - "distributionInfo": { - "type": 1, - "keys": [{ - "name": "test_key", - "descending": false - }], - "count": 1, - "dynamicCount": 1 - }, - "partitionFunction": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", - "partitionKeyList": [ - "test_partition_key" - ], - "streamNames": [ - "test_stream_name" - ], - "isColumnstore": false, - "indexId": 1, - "isUnique": false - }], - "partitionKeyList":[ - "test_partition_key" - ], - "externalTable": { - "tableName":"test_table_name", - "dataSource": { - "name": { - "firstPart": "test_first_part", - "secondPart": "test_second_part", - "thirdPart": "test_third_part", - "server": "test_server" - }, - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" - } - }, - "distributionInfo": { - "type": 1, - "keys": [{ - "name": "test_key", - "descending": false - }], - "count": 1, - "dynamicCount": 1 + "tableName": "test_table_name", + "columnList": [ + { + "name": "test_column_name", + "type": "test_type" + } + ], + "indexList": [ + { + "name": "test_index_name", + "indexKeys": [ + { + "name": "test_index_key", + "descending": false + } + ], + "columns": [ + "test_column" + ], + "distributionInfo": { + "type": 1, + "keys": [ + { + "name": "test_key", + "descending": false } + ], + "count": 1, + "dynamicCount": 1 + }, + "partitionFunction": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "partitionKeyList": [ + "test_partition_key" + ], + "streamNames": [ + "test_stream_name" + ], + "isColumnstore": false, + "indexId": 1, + "isUnique": false + } + ], + "partitionKeyList": [ + "test_partition_key" + ], + "externalTable": { + "tableName": "test_table_name", + "dataSource": { + "name": { + "firstPart": "test_first_part", + "secondPart": "test_second_part", + "thirdPart": "test_third_part", + "server": "test_server" + }, + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + } + }, + "distributionInfo": { + "type": 1, + "keys": [ + { + "name": "test_key", + "descending": false } + ], + "count": 1, + "dynamicCount": 1 } + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTablePartition.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTablePartition.json index e367e0e3d105..a288c553e3e3 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTablePartition.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTablePartition.json @@ -1,29 +1,29 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "partitionName": "test_partition_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "databaseName": "master", "schemaName": "dbo", - "tableName": "test_table_name", - "partitionName": "test_partition_name" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "partitionName": "test_partition_name", - "parentName": "test_parent_name", - "indexId": 1, - "label": [ - "test_label_1", - "test_label_2" - ], - "createDate": "2017-04-14T13:21:56.6819037-07:00" - } - } + "partitionName": "test_partition_name", + "parentName": "test_parent_name", + "indexId": 1, + "label": [ + "test_label_1", + "test_label_2" + ], + "createDate": "2017-04-14T13:21:56.6819037-07:00" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTableStatistic.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTableStatistic.json index 0b41a3b773e2..0a5f83294d82 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTableStatistic.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTableStatistic.json @@ -1,35 +1,35 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "statisticsName": "test_statistics_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "databaseName": "master", "schemaName": "dbo", "tableName": "test_table_name", - "statisticsName": "test_statistics_name" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "tableName": "test_table_name", - "statisticsName": "test_statistics_name", - "userStatName": "test_user_stat_name", - "statDataPath": "test_stat_data_path", - "createTime": "2017-04-14T13:21:56.6819037-07:00", - "updateTime": "2017-04-14T13:21:56.6819037-07:00", - "isUserCreated": false, - "isAutoCreated": false, - "hasFilter": false, - "filterDefinition": "test_filter_definition", - "colNames": [ - "test_column_name_1", - "test_column_name_2" - ] - } - } + "statisticsName": "test_statistics_name", + "userStatName": "test_user_stat_name", + "statDataPath": "test_stat_data_path", + "createTime": "2017-04-14T13:21:56.6819037-07:00", + "updateTime": "2017-04-14T13:21:56.6819037-07:00", + "isUserCreated": false, + "isAutoCreated": false, + "hasFilter": false, + "filterDefinition": "test_filter_definition", + "colNames": [ + "test_column_name_1", + "test_column_name_2" + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTableType.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTableType.json index 22b244d4c67c..1eff65de8aee 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTableType.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTableType.json @@ -1,37 +1,39 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "tableTypeName": "test_table_type_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "databaseName": "master", "schemaName": "dbo", - "tableTypeName": "test_table_type_name" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "typeName": "test_type_name", - "typeFamily": "test_type_family", - "cSharpName": "test_csharp_name", - "fullCSharpName": "test_full_csharp_name", - "systemTypeId": 1, - "userTypeId": 2, - "schemaId": 3, - "principalId": 4, - "isNullable": false, - "isUserDefined": false, - "isAssemblyType": false, - "isTableType": false, - "isComplexType": false, - "columns":[{ - "name": "test_column_name", - "type": "test_column_type" - }] - } - } + "typeName": "test_type_name", + "typeFamily": "test_type_family", + "cSharpName": "test_csharp_name", + "fullCSharpName": "test_full_csharp_name", + "systemTypeId": 1, + "userTypeId": 2, + "schemaId": 3, + "principalId": 4, + "isNullable": false, + "isUserDefined": false, + "isAssemblyType": false, + "isTableType": false, + "isComplexType": false, + "columns": [ + { + "name": "test_column_name", + "type": "test_column_type" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTableValuedFunction.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTableValuedFunction.json index e50c8a3eeb7f..153f7dd218ad 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTableValuedFunction.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetTableValuedFunction.json @@ -1,22 +1,22 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "tableValuedFunctionName": "test_table_valued_function_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "databaseName": "master", "schemaName": "dbo", - "tableValuedFunctionName": "test_table_valued_function_name" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "tvfName": "test_tvf_name", - "definition": "test_definition" - } - } + "tvfName": "test_tvf_name", + "definition": "test_definition" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetView.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetView.json index d8e521763c0d..8cbb54a2b8a9 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetView.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GetView.json @@ -1,22 +1,22 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "viewName": "test_view_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "databaseName": "master", "schemaName": "dbo", - "viewName": "test_view_name" - }, - "responses": { - "200": { - "body": { - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "viewName": "test_view_name", - "definition": "test_definition" - } - } + "viewName": "test_view_name", + "definition": "test_definition" + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GrantAcl.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GrantAcl.json index 527eab876111..b3a323473d5e 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GrantAcl.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GrantAcl.json @@ -1,17 +1,16 @@ { + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "parameters": { - "aceType": "User", - "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "permission": "Use" - }, - "op": "GRANTACE" + "aceType": "User", + "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "permission": "Use" }, - "responses": { - "200": { - } - } + "op": "GRANTACE" + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GrantAclToDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GrantAclToDatabase.json index e1161b4d68b3..d4a3090912f1 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GrantAclToDatabase.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_GrantAclToDatabase.json @@ -1,18 +1,17 @@ { + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "parameters": { - "aceType": "User", - "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "permission": "Use" - }, - "op": "GRANTACE" + "aceType": "User", + "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "permission": "Use" }, - "responses": { - "200": { - } - } + "op": "GRANTACE" + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListAcls.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListAcls.json index 3520a5c8814c..bd6e131eae46 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListAcls.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListAcls.json @@ -1,25 +1,27 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "aceType": "User", - "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "permission": "Use" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "aceType": "User", + "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "permission": "Use" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListAclsByDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListAclsByDatabase.json index ad3a6f9e928b..e6b3957b23e9 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListAclsByDatabase.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListAclsByDatabase.json @@ -1,26 +1,28 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "aceType": "User", - "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "permission": "Use" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "aceType": "User", + "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "permission": "Use" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListAssemblies.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListAssemblies.json index f29786e3e431..032cf60bbd11 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListAssemblies.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListAssemblies.json @@ -1,28 +1,30 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "assemblyClrName": "test_assembly_clr_name", - "clrName": "test_clr_name" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "assemblyClrName": "test_assembly_clr_name", + "clrName": "test_clr_name" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListCredentials.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListCredentials.json index 3666ea447370..0a8ffdf18fae 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListCredentials.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListCredentials.json @@ -1,26 +1,28 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "credentialName": "test_credential_name" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "credentialName": "test_credential_name" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListDatabases.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListDatabases.json index 8afb3c82c79e..28f7387f8967 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListDatabases.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListDatabases.json @@ -1,25 +1,27 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListExternalDataSources.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListExternalDataSources.json index cfff2b00bd17..8cbdc9aa261c 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListExternalDataSources.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListExternalDataSources.json @@ -1,32 +1,34 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "externalDataSourceName": "test_external_data_source_name", - "provider": "test_provider", - "providerString": "test_provider_string", - "pushdownTypes": [ - "test_pushdown_type" - ] - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "externalDataSourceName": "test_external_data_source_name", + "provider": "test_provider", + "providerString": "test_provider_string", + "pushdownTypes": [ + "test_pushdown_type" + ] + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListPackages.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListPackages.json index db0b0831a2d3..6ae2c538ca6a 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListPackages.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListPackages.json @@ -1,30 +1,32 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "schemaName": "dbo", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value":[{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "packageName": "test_package_name", - "definition": "test_definition" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "packageName": "test_package_name", + "definition": "test_definition" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListProcedures.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListProcedures.json index 63711b33ff73..ebf232895732 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListProcedures.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListProcedures.json @@ -1,30 +1,32 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "schemaName": "dbo", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "procName": "test_proc_name", - "definition": "test_definition" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "procName": "test_proc_name", + "definition": "test_definition" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListSchemas.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListSchemas.json index 4e7662b58658..c36946981f01 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListSchemas.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListSchemas.json @@ -1,27 +1,29 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableFragments.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableFragments.json index f9404d635a04..77ddc357b11f 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableFragments.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableFragments.json @@ -1,32 +1,34 @@ { "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "schemaName": "dbo", - "tableName": "test_table_name", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false }, "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/tables/test_table_name/tablefragments?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "parentId": "9d2d7abd-c641-4ddb-88ab-90cafdfe1c1b", - "fragmentId": "797d2643-eed9-4900-8090-0f8ddd9e8ba7", - "indexId": 1, - "size": 33786, - "rowCount": 1, - "createDate": "2017-10-11T06:38:31.567-07:00", - "streamPath":"catalog/database/86bf2a20-b511-48c8-91c5-1f73c4c0ec74/schema/b83d3be1-9e11-40b7-85f9-ad823efe2414/table/1e666ab1-d6f0-4990-8180-1a6160caf405/91193f18-06dd-47a2-96fa-2cca3b4777e1.ss" - }] + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/tables/test_table_name/tablefragments?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "parentId": "9d2d7abd-c641-4ddb-88ab-90cafdfe1c1b", + "fragmentId": "797d2643-eed9-4900-8090-0f8ddd9e8ba7", + "indexId": 1, + "size": 33786, + "rowCount": 1, + "createDate": "2017-10-11T06:38:31.567-07:00", + "streamPath": "catalog/database/86bf2a20-b511-48c8-91c5-1f73c4c0ec74/schema/b83d3be1-9e11-40b7-85f9-ad823efe2414/table/1e666ab1-d6f0-4990-8180-1a6160caf405/91193f18-06dd-47a2-96fa-2cca3b4777e1.ss" } + ] } + } } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTablePartitions.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTablePartitions.json index bd2d66de562a..249a45c53d58 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTablePartitions.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTablePartitions.json @@ -1,37 +1,39 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "schemaName": "dbo", - "tableName": "test_table_name", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "partitionName": "test_partition_name", - "parentName": "test_parent_name", - "indexId": 1, - "label": [ - "test_label_1", - "test_label_2" - ], - "createDate": "2017-04-14T13:21:56.6819037-07:00" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "partitionName": "test_partition_name", + "parentName": "test_parent_name", + "indexId": 1, + "label": [ + "test_label_1", + "test_label_2" + ], + "createDate": "2017-04-14T13:21:56.6819037-07:00" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableStatistics.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableStatistics.json index acd9670cb21e..391f98fa93d4 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableStatistics.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableStatistics.json @@ -1,43 +1,45 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "schemaName": "dbo", - "tableName": "test_view_name", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value":[{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "tableName": "test_table_name", - "statisticsName": "test_statistics_name", - "userStatName": "test_user_stat_name", - "statDataPath": "test_stat_data_path", - "createTime": "2017-04-14T13:21:56.6819037-07:00", - "updateTime": "2017-04-14T13:21:56.6819037-07:00", - "isUserCreated": false, - "isAutoCreated": false, - "hasFilter": false, - "filterDefinition": "test_filter_definition", - "colNames": [ - "test_column_name_1", - "test_column_name_2" - ] - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_view_name", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "statisticsName": "test_statistics_name", + "userStatName": "test_user_stat_name", + "statDataPath": "test_stat_data_path", + "createTime": "2017-04-14T13:21:56.6819037-07:00", + "updateTime": "2017-04-14T13:21:56.6819037-07:00", + "isUserCreated": false, + "isAutoCreated": false, + "hasFilter": false, + "filterDefinition": "test_filter_definition", + "colNames": [ + "test_column_name_1", + "test_column_name_2" + ] + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableStatisticsByDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableStatisticsByDatabase.json index 4b61e4daafba..dcaf31d18e34 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableStatisticsByDatabase.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableStatisticsByDatabase.json @@ -1,41 +1,43 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value":[{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "tableName": "test_table_name", - "statisticsName": "test_statistics_name", - "userStatName": "test_user_stat_name", - "statDataPath": "test_stat_data_path", - "createTime": "2017-04-14T13:21:56.6819037-07:00", - "updateTime": "2017-04-14T13:21:56.6819037-07:00", - "isUserCreated": false, - "isAutoCreated": false, - "hasFilter": false, - "filterDefinition": "test_filter_definition", - "colNames": [ - "test_column_name_1", - "test_column_name_2" - ] - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "statisticsName": "test_statistics_name", + "userStatName": "test_user_stat_name", + "statDataPath": "test_stat_data_path", + "createTime": "2017-04-14T13:21:56.6819037-07:00", + "updateTime": "2017-04-14T13:21:56.6819037-07:00", + "isUserCreated": false, + "isAutoCreated": false, + "hasFilter": false, + "filterDefinition": "test_filter_definition", + "colNames": [ + "test_column_name_1", + "test_column_name_2" + ] + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableStatisticsByDatabaseAndSchema.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableStatisticsByDatabaseAndSchema.json index 5bc1acc5e772..e290189fce55 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableStatisticsByDatabaseAndSchema.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableStatisticsByDatabaseAndSchema.json @@ -1,42 +1,44 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "schemaName": "dbo", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value":[{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "tableName": "test_table_name", - "statisticsName": "test_statistics_name", - "userStatName": "test_user_stat_name", - "statDataPath": "test_stat_data_path", - "createTime": "2017-04-14T13:21:56.6819037-07:00", - "updateTime": "2017-04-14T13:21:56.6819037-07:00", - "isUserCreated": false, - "isAutoCreated": false, - "hasFilter": false, - "filterDefinition": "test_filter_definition", - "colNames": [ - "test_column_name_1", - "test_column_name_2" - ] - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "statisticsName": "test_statistics_name", + "userStatName": "test_user_stat_name", + "statDataPath": "test_stat_data_path", + "createTime": "2017-04-14T13:21:56.6819037-07:00", + "updateTime": "2017-04-14T13:21:56.6819037-07:00", + "isUserCreated": false, + "isAutoCreated": false, + "hasFilter": false, + "filterDefinition": "test_filter_definition", + "colNames": [ + "test_column_name_1", + "test_column_name_2" + ] + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableTypes.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableTypes.json index d6320995ae46..5b669d598e31 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableTypes.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableTypes.json @@ -1,45 +1,49 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "schemaName": "dbo", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value":[{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "typeName": "test_type_name", - "typeFamily": "test_type_family", - "cSharpName": "test_csharp_name", - "fullCSharpName": "test_full_csharp_name", - "systemTypeId": 1, - "userTypeId": 2, - "schemaId": 3, - "principalId": 4, - "isNullable": false, - "isUserDefined": false, - "isAssemblyType": false, - "isTableType": false, - "isComplexType": false, - "columns":[{ - "name": "test_column_name", - "type": "test_column_type" - }] - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "typeName": "test_type_name", + "typeFamily": "test_type_family", + "cSharpName": "test_csharp_name", + "fullCSharpName": "test_full_csharp_name", + "systemTypeId": 1, + "userTypeId": 2, + "schemaId": 3, + "principalId": 4, + "isNullable": false, + "isUserDefined": false, + "isAssemblyType": false, + "isTableType": false, + "isComplexType": false, + "columns": [ + { + "name": "test_column_name", + "type": "test_column_type" + } + ] + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableValuedFunctions.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableValuedFunctions.json index 9a2cbc27567c..f41ad0d80d3e 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableValuedFunctions.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableValuedFunctions.json @@ -1,30 +1,32 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "schemaName": "dbo", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "tvfName": "test_tvf_name", - "definition": "test_definition" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tvfName": "test_tvf_name", + "definition": "test_definition" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableValuedFunctionsByDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableValuedFunctionsByDatabase.json index cc92fbd51b46..9deeee909f0a 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableValuedFunctionsByDatabase.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTableValuedFunctionsByDatabase.json @@ -1,29 +1,31 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "tvfName": "test_tvf_name", - "definition": "test_definition" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tvfName": "test_tvf_name", + "definition": "test_definition" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTables.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTables.json index 8b09461b6b9e..6cc1ae432ff4 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTables.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTables.json @@ -1,87 +1,99 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "schemaName": "dbo", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false, - "basic": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "tableName": "test_table_name", - "columnList": [{ - "name": "test_column_name", - "type": "test_type" - }], - "indexList": [{ - "name": "test_index_name", - "indexKeys": [{ - "name": "test_index_key", - "descending": false - }], - "columns": [ - "test_column" - ], - "distributionInfo": { - "type": 1, - "keys": [{ - "name": "test_key", - "descending": false - }], - "count": 1, - "dynamicCount": 1 - }, - "partitionFunction": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", - "partitionKeyList": [ - "test_partition_key" - ], - "streamNames": [ - "test_stream_name" - ], - "isColumnstore": false, - "indexId": 1, - "isUnique": false - }], - "partitionKeyList":[ - "test_partition_key" - ], - "externalTable": { - "tableName":"test_table_name", - "dataSource": { - "name": { - "firstPart": "test_first_part", - "secondPart": "test_second_part", - "thirdPart": "test_third_part", - "server": "test_server" - }, - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" - } - }, - "distributionInfo": { - "type": 1, - "keys": [{ - "name": "test_key", - "descending": false - }], - "count": 1, - "dynamicCount": 1 + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false, + "basic": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "columnList": [ + { + "name": "test_column_name", + "type": "test_type" + } + ], + "indexList": [ + { + "name": "test_index_name", + "indexKeys": [ + { + "name": "test_index_key", + "descending": false + } + ], + "columns": [ + "test_column" + ], + "distributionInfo": { + "type": 1, + "keys": [ + { + "name": "test_key", + "descending": false } - }] + ], + "count": 1, + "dynamicCount": 1 + }, + "partitionFunction": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "partitionKeyList": [ + "test_partition_key" + ], + "streamNames": [ + "test_stream_name" + ], + "isColumnstore": false, + "indexId": 1, + "isUnique": false + } + ], + "partitionKeyList": [ + "test_partition_key" + ], + "externalTable": { + "tableName": "test_table_name", + "dataSource": { + "name": { + "firstPart": "test_first_part", + "secondPart": "test_second_part", + "thirdPart": "test_third_part", + "server": "test_server" + }, + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + } + }, + "distributionInfo": { + "type": 1, + "keys": [ + { + "name": "test_key", + "descending": false + } + ], + "count": 1, + "dynamicCount": 1 } - } + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTablesByDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTablesByDatabase.json index 422319648d42..11be556867eb 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTablesByDatabase.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTablesByDatabase.json @@ -1,86 +1,98 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false, - "basic": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value":[{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "tableName": "test_table_name", - "columnList": [{ - "name": "test_column_name", - "type": "test_type" - }], - "indexList": [{ - "name": "test_index_name", - "indexKeys": [{ - "name": "test_index_key", - "descending": false - }], - "columns": [ - "test_column" - ], - "distributionInfo": { - "type": 1, - "keys": [{ - "name": "test_key", - "descending": false - }], - "count": 1, - "dynamicCount": 1 - }, - "partitionFunction": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", - "partitionKeyList": [ - "test_partition_key" - ], - "streamNames": [ - "test_stream_name" - ], - "isColumnstore": false, - "indexId": 1, - "isUnique": false - }], - "partitionKeyList":[ - "test_partition_key" - ], - "externalTable": { - "tableName":"test_table_name", - "dataSource": { - "name": { - "firstPart": "test_first_part", - "secondPart": "test_second_part", - "thirdPart": "test_third_part", - "server": "test_server" - }, - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" - } - }, - "distributionInfo": { - "type": 1, - "keys": [{ - "name": "test_key", - "descending": false - }], - "count": 1, - "dynamicCount": 1 + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false, + "basic": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "columnList": [ + { + "name": "test_column_name", + "type": "test_type" + } + ], + "indexList": [ + { + "name": "test_index_name", + "indexKeys": [ + { + "name": "test_index_key", + "descending": false + } + ], + "columns": [ + "test_column" + ], + "distributionInfo": { + "type": 1, + "keys": [ + { + "name": "test_key", + "descending": false } - }] + ], + "count": 1, + "dynamicCount": 1 + }, + "partitionFunction": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "partitionKeyList": [ + "test_partition_key" + ], + "streamNames": [ + "test_stream_name" + ], + "isColumnstore": false, + "indexId": 1, + "isUnique": false + } + ], + "partitionKeyList": [ + "test_partition_key" + ], + "externalTable": { + "tableName": "test_table_name", + "dataSource": { + "name": { + "firstPart": "test_first_part", + "secondPart": "test_second_part", + "thirdPart": "test_third_part", + "server": "test_server" + }, + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + } + }, + "distributionInfo": { + "type": 1, + "keys": [ + { + "name": "test_key", + "descending": false + } + ], + "count": 1, + "dynamicCount": 1 } - } + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTypes.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTypes.json index a12fd57d00fa..b991a45f0222 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTypes.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListTypes.json @@ -1,41 +1,43 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "schemaName": "dbo", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value": [{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "typeName": "test_type_name", - "typeFamily": "test_type_family", - "cSharpName": "test_csharp_name", - "fullCSharpName": "test_full_csharp_name", - "systemTypeId": 1, - "userTypeId": 2, - "schemaId": 3, - "principalId": 4, - "isNullable": false, - "isUserDefined": false, - "isAssemblyType": false, - "isTableType": false, - "isComplexType": false - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "typeName": "test_type_name", + "typeFamily": "test_type_family", + "cSharpName": "test_csharp_name", + "fullCSharpName": "test_full_csharp_name", + "systemTypeId": 1, + "userTypeId": 2, + "schemaId": 3, + "principalId": 4, + "isNullable": false, + "isUserDefined": false, + "isAssemblyType": false, + "isTableType": false, + "isComplexType": false + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListViews.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListViews.json index 045583455676..19bff1292cd3 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListViews.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListViews.json @@ -1,30 +1,32 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "schemaName": "dbo", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value":[{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "viewName": "test_view_name", - "definition": "test_definition" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "viewName": "test_view_name", + "definition": "test_definition" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListViewsByDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListViewsByDatabase.json index f9558d85d6eb..9dd93b72804a 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListViewsByDatabase.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_ListViewsByDatabase.json @@ -1,29 +1,31 @@ { - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", - "value":[{ - "computeAccountName": "contosoadla", - "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "databaseName": "master", - "schemaName": "dbo", - "viewName": "test_view_name", - "definition": "test_definition" - }] - } - } + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink": "https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [ + { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "viewName": "test_view_name", + "definition": "test_definition" + } + ] + } } + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_RevokeAcl.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_RevokeAcl.json index c37b49068e35..7c22cb6fd567 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_RevokeAcl.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_RevokeAcl.json @@ -1,16 +1,15 @@ { + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "parameters": { - "aceType": "User", - "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" - }, - "op": "REVOKEACE" + "aceType": "User", + "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, - "responses": { - "200": { - } - } + "op": "REVOKEACE" + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_RevokeAclFromDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_RevokeAclFromDatabase.json index 28ecb0f98ab9..c0efcc099e1c 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_RevokeAclFromDatabase.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_RevokeAclFromDatabase.json @@ -1,17 +1,16 @@ { + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "parameters": { - "aceType": "User", - "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" - }, - "op": "REVOKEACE" + "aceType": "User", + "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, - "responses": { - "200": { - } - } + "op": "REVOKEACE" + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_UpdateCredential.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_UpdateCredential.json index 2771e90ee959..94d512da1ecf 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_UpdateCredential.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_UpdateCredential.json @@ -1,19 +1,18 @@ { + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "credentialName": "test_credential_name", "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "credentialName": "test_credential_name", - "parameters": { - "password": "test_password", - "newPassword": "test_new_password", - "uri": "test_host:8000", - "userId": "test_user_id" - } - }, - "responses": { - "200": { - } + "password": "test_password", + "newPassword": "test_new_password", + "uri": "test_host:8000", + "userId": "test_user_id" } + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_UpdateSecret.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_UpdateSecret.json index 610d09b19144..fc541925934e 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_UpdateSecret.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Catalog_UpdateSecret.json @@ -1,17 +1,16 @@ { + "parameters": { + "api-version": "2016-11-01", + "accountName": "contosoadla", + "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", + "databaseName": "master", + "secretName": "test_secret_name", "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "adlaCatalogDnsSuffix": "azuredatalakeanalytics.net", - "databaseName": "master", - "secretName": "test_secret_name", - "parameters": { - "password": "test_password", - "uri": "test_host:8000" - } - }, - "responses": { - "200": { - } + "password": "test_password", + "uri": "test_host:8000" } + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/job.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/job.json index 128dc2377633..ab484fbbba3a 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/job.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/job.json @@ -43,7 +43,9 @@ "operationId": "Pipeline_List", "description": "Lists all pipelines.", "x-ms-examples": { - "Lists all pipelines": { "$ref": "./examples/Adla_Pipeline_List.json" } + "Lists all pipelines": { + "$ref": "./examples/Adla_Pipeline_List.json" + } }, "parameters": [ { @@ -87,7 +89,9 @@ "operationId": "Pipeline_Get", "description": "Gets the Pipeline information for the specified pipeline ID.", "x-ms-examples": { - "Gets the Pipeline information for the specified pipeline ID": { "$ref": "./examples/Adla_Pipeline_Get.json" } + "Gets the Pipeline information for the specified pipeline ID": { + "$ref": "./examples/Adla_Pipeline_Get.json" + } }, "parameters": [ { @@ -136,7 +140,9 @@ "operationId": "Recurrence_List", "description": "Lists all recurrences.", "x-ms-examples": { - "Lists all recurrences": { "$ref": "./examples/Adla_Recurrence_List.json" } + "Lists all recurrences": { + "$ref": "./examples/Adla_Recurrence_List.json" + } }, "parameters": [ { @@ -180,7 +186,9 @@ "operationId": "Recurrence_Get", "description": "Gets the recurrence information for the specified recurrence ID.", "x-ms-examples": { - "Gets the recurrence information for the specified recurrence ID": { "$ref": "./examples/Adla_Recurrence_Get.json" } + "Gets the recurrence information for the specified recurrence ID": { + "$ref": "./examples/Adla_Recurrence_Get.json" + } }, "parameters": [ { @@ -229,7 +237,9 @@ "operationId": "Job_GetStatistics", "description": "Gets statistics of the specified job.", "x-ms-examples": { - "Gets statistics of the specified job": { "$ref": "./examples/Adla_Job_GetStatistics.json" } + "Gets statistics of the specified job": { + "$ref": "./examples/Adla_Job_GetStatistics.json" + } }, "parameters": [ { @@ -262,7 +272,9 @@ "operationId": "Job_GetDebugDataPath", "description": "Gets the job debug data information specified by the job ID.", "x-ms-examples": { - "Gets the job debug data information specified by the job ID": { "$ref": "./examples/Adla_Job_GetDebugDataPath.json" } + "Gets the job debug data information specified by the job ID": { + "$ref": "./examples/Adla_Job_GetDebugDataPath.json" + } }, "parameters": [ { @@ -295,7 +307,9 @@ "operationId": "Job_Build", "description": "Builds (compiles) the specified job in the specified Data Lake Analytics account for job correctness and validation.", "x-ms-examples": { - "Builds (compiles) the specified job in the specified Data Lake Analytics account for job correctness and validation": { "$ref": "./examples/Adla_Job_Build.json" } + "Builds (compiles) the specified job in the specified Data Lake Analytics account for job correctness and validation": { + "$ref": "./examples/Adla_Job_Build.json" + } }, "parameters": [ { @@ -329,7 +343,9 @@ "operationId": "Job_Cancel", "description": "Cancels the running job specified by the job ID.", "x-ms-examples": { - "Cancels the running job specified by the job ID": { "$ref": "./examples/Adla_Job_Cancel.json" } + "Cancels the running job specified by the job ID": { + "$ref": "./examples/Adla_Job_Cancel.json" + } }, "parameters": [ { @@ -359,7 +375,9 @@ "operationId": "Job_Create", "description": "Submits a job to the specified Data Lake Analytics account.", "x-ms-examples": { - "Submits a job to the specified Data Lake Analytics account": { "$ref": "./examples/Adla_Job_Create.json" } + "Submits a job to the specified Data Lake Analytics account": { + "$ref": "./examples/Adla_Job_Create.json" + } }, "parameters": [ { @@ -399,7 +417,9 @@ "operationId": "Job_Get", "description": "Gets the job information for the specified job ID.", "x-ms-examples": { - "Gets the job information for the specified job ID": { "$ref": "./examples/Adla_Job_Get.json" } + "Gets the job information for the specified job ID": { + "$ref": "./examples/Adla_Job_Get.json" + } }, "parameters": [ { @@ -432,7 +452,9 @@ "operationId": "Job_List", "description": "Lists the jobs, if any, associated with the specified Data Lake Analytics account. The response includes a link to the next page of results, if any.", "x-ms-examples": { - "Lists the jobs, if any, associated with the specified Data Lake Analytics account": { "$ref": "./examples/Adla_Job_List.json" } + "Lists the jobs, if any, associated with the specified Data Lake Analytics account": { + "$ref": "./examples/Adla_Job_List.json" + } }, "parameters": [ { @@ -1655,7 +1677,7 @@ "default": "azuredatalakeanalytics.net", "x-ms-skip-url-encoding": true, "description": "Gets the DNS suffix used as the base for all Azure Data Lake Analytics Job service requests.", - "x-ms-parameter-location":"client" + "x-ms-parameter-location": "client" } } } diff --git a/specification/datalake-analytics/data-plane/readme.md b/specification/datalake-analytics/data-plane/readme.md index f5b05e4a9c9a..8e1d6cbe2fbb 100644 --- a/specification/datalake-analytics/data-plane/readme.md +++ b/specification/datalake-analytics/data-plane/readme.md @@ -200,3 +200,33 @@ batch: - package-catalog: true - package-job: 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)/Microsoft.DataLakeAnalytics/stable/2016-11-01/catalog.json + - $(this-folder)/Microsoft.DataLakeAnalytics/preview/2015-10-01-preview/catalog.json + - $(this-folder)/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/job.json + - $(this-folder)/Microsoft.DataLakeAnalytics/stable/2016-11-01/job.json + - $(this-folder)/Microsoft.DataLakeAnalytics/preview/2016-03-20-preview/job.json + - $(this-folder)/Microsoft.DataLakeAnalytics/preview/2015-11-01-preview/job.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/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_CheckNameAvailability.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_CheckNameAvailability.json index 5f6b962a58d2..540b83710b8c 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_CheckNameAvailability.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_CheckNameAvailability.json @@ -1,20 +1,20 @@ { + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "location": "EastUS2", "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "location": "EastUS2", - "parameters": { - "name": "contosoadla", - "type": "Microsoft.DataLakeAnalytics/accounts" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": false, - "reason": "AlreadyExists", - "message": "An account named 'abc' already exists." - } - } + "name": "contosoadla", + "type": "Microsoft.DataLakeAnalytics/accounts" } + }, + "responses": { + "200": { + "body": { + "nameAvailable": false, + "reason": "AlreadyExists", + "message": "An account named 'abc' already exists." + } + } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Create.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Create.json index c37a85108dbc..ed48cf8913f3 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Create.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Create.json @@ -1,190 +1,214 @@ { + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "parameters": { - "location": "eastus2", - "tags": { - "test_key": "test_value" - }, + "location": "eastus2", + "tags": { + "test_key": "test_value" + }, + "properties": { + "defaultDataLakeStoreAccount": "test_adls", + "dataLakeStoreAccounts": [ + { + "name": "test_adls", "properties": { - "defaultDataLakeStoreAccount": "test_adls", - "dataLakeStoreAccounts": [{ - "name": "test_adls", - "properties": { - "suffix": "test_suffix" - } - }], - "storageAccounts": [{ - "name": "test_storage", - "properties": { - "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", - "suffix": "test_suffix" - } - }], - "computePolicies": [{ - "name": "test_policy", - "properties": { - "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "objectType": "User", - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1 - } - }], - "firewallRules": [{ - "name": "test_rule", - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - }], - "firewallState": "Enabled", - "firewallAllowAzureIps": "Enabled", - "newTier": "Consumption", - "maxJobCount": 3, - "maxDegreeOfParallelism": 30, + "suffix": "test_suffix" + } + } + ], + "storageAccounts": [ + { + "name": "test_storage", + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } + } + ], + "computePolicies": [ + { + "name": "test_policy", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + } + ], + "firewallRules": [ + { + "name": "test_rule", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + ], + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "newTier": "Consumption", + "maxJobCount": 3, + "maxDegreeOfParallelism": 30, + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "queryStoreRetention": 30 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgaba12041/providers/Microsoft.DataLakeAnalytics/accounts/testaba15818", + "name": "test_account", + "type": "Microsoft.DataLakeAnalytics/accounts", + "location": "eastus2", + "tags": { + "test_key": "test_value" + }, + "properties": { + "accountId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "defaultDataLakeStoreAccount": "test_adls", + "dataLakeStoreAccounts": [ + { + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + } + ], + "storageAccounts": [ + { + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + } + ], + "computePolicies": [ + { + "id": "test_policy_id", + "name": "test_policy", + "type": "test_type", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1, - "queryStoreRetention": 30 + "minPriorityPerJob": 1 + } } + ], + "firewallRules": [ + { + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + ], + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "newTier": "Consumption", + "currentTier": "Consumption", + "maxJobCount": 3, + "systemMaxJobCount": 1, + "maxDegreeOfParallelism": 30, + "systemMaxDegreeOfParallelism": 1, + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "queryStoreRetention": 30 } + } }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgaba12041/providers/Microsoft.DataLakeAnalytics/accounts/testaba15818", - "name": "test_account", - "type": "Microsoft.DataLakeAnalytics/accounts", - "location": "eastus2", - "tags": { - "test_key": "test_value" - }, - "properties": { - "accountId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "provisioningState": "Succeeded", - "state": "Active", - "creationTime": "2017-04-14T13:21:56.6819037-07:00", - "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", - "endpoint": "test_endpoint", - "defaultDataLakeStoreAccount": "test_adls", - "dataLakeStoreAccounts": [{ - "id": "test_adls_id", - "name": "test_adls", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "storageAccounts": [{ - "id": "test_storage_id", - "name": "test_storage", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "computePolicies": [{ - "id": "test_policy_id", - "name": "test_policy", - "type": "test_type", - "properties": { - "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "objectType": "User", - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1 - } - }], - "firewallRules": [{ - "id": "test_firewall_id", - "name": "test_rule", - "type": "test_type", - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - }], - "firewallState": "Enabled", - "firewallAllowAzureIps": "Enabled", - "newTier": "Consumption", - "currentTier": "Consumption", - "maxJobCount": 3, - "systemMaxJobCount": 1, - "maxDegreeOfParallelism": 30, - "systemMaxDegreeOfParallelism": 1, - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1, - "queryStoreRetention": 30 - } - } + "201": { + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgaba12041/providers/Microsoft.DataLakeAnalytics/accounts/testaba15818", + "name": "test_account", + "type": "Microsoft.DataLakeAnalytics/accounts", + "location": "eastus2", + "tags": { + "test_key": "test_value" }, - "201": { - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgaba12041/providers/Microsoft.DataLakeAnalytics/accounts/testaba15818", - "name": "test_account", - "type": "Microsoft.DataLakeAnalytics/accounts", - "location": "eastus2", - "tags": { - "test_key": "test_value" - }, - "properties": { - "accountId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "provisioningState": "Succeeded", - "state": "Active", - "creationTime": "2017-04-14T13:21:56.6819037-07:00", - "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", - "endpoint": "test_endpoint", - "defaultDataLakeStoreAccount": "test_adls", - "dataLakeStoreAccounts": [{ - "id": "test_adls_id", - "name": "test_adls", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "storageAccounts": [{ - "id": "test_storage_id", - "name": "test_storage", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "computePolicies": [{ - "id": "test_policy_id", - "name": "test_policy", - "type": "test_type", - "properties": { - "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "objectType": "User", - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1 - } - }], - "firewallRules": [{ - "id": "test_firewall_id", - "name": "test_rule", - "type": "test_type", - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - }], - "firewallState": "Enabled", - "firewallAllowAzureIps": "Enabled", - "newTier": "Consumption", - "currentTier": "Consumption", - "maxJobCount": 3, - "systemMaxJobCount": 1, - "maxDegreeOfParallelism": 30, - "systemMaxDegreeOfParallelism": 1, - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1, - "queryStoreRetention": 30 - } + "properties": { + "accountId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "defaultDataLakeStoreAccount": "test_adls", + "dataLakeStoreAccounts": [ + { + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + } + ], + "storageAccounts": [ + { + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + } + ], + "computePolicies": [ + { + "id": "test_policy_id", + "name": "test_policy", + "type": "test_type", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + } + ], + "firewallRules": [ + { + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } } + ], + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "newTier": "Consumption", + "currentTier": "Consumption", + "maxJobCount": 3, + "systemMaxJobCount": 1, + "maxDegreeOfParallelism": 30, + "systemMaxDegreeOfParallelism": 1, + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "queryStoreRetention": 30 } + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Delete.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Delete.json index 324b2630a98a..1a07094bb30b 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Delete.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Delete.json @@ -1,16 +1,13 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla" - }, - "responses": { - "200": { - }, - "202": { - }, - "204": { - } - } + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Get.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Get.json index a23b56e134bb..18c39e8c95bb 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Get.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Get.json @@ -1,77 +1,85 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgaba12041/providers/Microsoft.DataLakeAnalytics/accounts/testaba15818", - "name": "test_account", - "type": "Microsoft.DataLakeAnalytics/accounts", - "location": "eastus2", - "tags": { - "test_key": "test_value" - }, - "properties": { - "accountId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "provisioningState": "Succeeded", - "state": "Active", - "creationTime": "2017-04-14T13:21:56.6819037-07:00", - "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", - "endpoint": "test_endpoint", - "defaultDataLakeStoreAccount": "test_adls", - "dataLakeStoreAccounts": [{ - "id": "test_adls_id", - "name": "test_adls", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "storageAccounts": [{ - "id": "test_storage_id", - "name": "test_storage", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "computePolicies": [{ - "id": "test_policy_id", - "name": "test_policy", - "type": "test_type", - "properties": { - "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "objectType": "User", - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1 - } - }], - "firewallRules": [{ - "id": "test_firewall_id", - "name": "test_rule", - "type": "test_type", - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - }], - "firewallState": "Enabled", - "firewallAllowAzureIps": "Enabled", - "newTier": "Consumption", - "currentTier": "Consumption", - "maxJobCount": 3, - "systemMaxJobCount": 1, - "maxDegreeOfParallelism": 30, - "systemMaxDegreeOfParallelism": 1, - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1, - "queryStoreRetention": 30 - } + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgaba12041/providers/Microsoft.DataLakeAnalytics/accounts/testaba15818", + "name": "test_account", + "type": "Microsoft.DataLakeAnalytics/accounts", + "location": "eastus2", + "tags": { + "test_key": "test_value" + }, + "properties": { + "accountId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "defaultDataLakeStoreAccount": "test_adls", + "dataLakeStoreAccounts": [ + { + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } } + ], + "storageAccounts": [ + { + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + } + ], + "computePolicies": [ + { + "id": "test_policy_id", + "name": "test_policy", + "type": "test_type", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + } + ], + "firewallRules": [ + { + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + ], + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "newTier": "Consumption", + "currentTier": "Consumption", + "maxJobCount": 3, + "systemMaxJobCount": 1, + "maxDegreeOfParallelism": 30, + "systemMaxDegreeOfParallelism": 1, + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "queryStoreRetention": 30 } + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_List.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_List.json index 35783421c127..f53524c11613 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_List.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_List.json @@ -1,36 +1,38 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "value": [{ - "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "name": "test_account", - "type": "test_type", - "location": "eastus2", - "tags": { - "test_key": "test_value" - }, - "properties": { - "provisioningState": "Succeeded", - "state": "Active", - "creationTime": "2017-04-14T13:21:56.6819037-07:00", - "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", - "endpoint": "test_endpoint", - "accountId": "94f4bf5d-78a9-4c31-8aa7-b34d07bad898" - } - }], - "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_account", + "type": "test_type", + "location": "eastus2", + "tags": { + "test_key": "test_value" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "accountId": "94f4bf5d-78a9-4c31-8aa7-b34d07bad898" } - } + } + ], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_ListByResourceGroup.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_ListByResourceGroup.json index ed943f7e8615..a016492f43b2 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_ListByResourceGroup.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_ListByResourceGroup.json @@ -1,37 +1,39 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "value": [{ - "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "name": "test_account", - "type": "test_type", - "location": "eastus2", - "tags": { - "test_key": "test_value" - }, - "properties": { - "provisioningState": "Succeeded", - "state": "Active", - "creationTime": "2017-04-14T13:21:56.6819037-07:00", - "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", - "endpoint": "test_endpoint", - "accountId": "94f4bf5d-78a9-4c31-8aa7-b34d07bad898" - } - }], - "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_account", + "type": "test_type", + "location": "eastus2", + "tags": { + "test_key": "test_value" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "accountId": "94f4bf5d-78a9-4c31-8aa7-b34d07bad898" } - } + } + ], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Update.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Update.json index 8c4cb32d43a6..5bb75f25eb15 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Update.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Accounts_Update.json @@ -1,242 +1,270 @@ { + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "parameters": { - "tags": { - "test_key": "test_value" - }, + "tags": { + "test_key": "test_value" + }, + "properties": { + "computePolicies": [ + { + "name": "test_policy", "properties": { - "computePolicies": [{ - "name": "test_policy", - "properties": { - "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "objectType": "User", - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1 - } - }], - "firewallRules": [{ - "name": "test_rule", - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - }], - "firewallState": "Enabled", - "firewallAllowAzureIps": "Enabled", - "newTier": "Consumption", - "maxJobCount": 1, - "maxDegreeOfParallelism": 1, + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + } + ], + "firewallRules": [ + { + "name": "test_rule", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + ], + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "newTier": "Consumption", + "maxJobCount": 1, + "maxDegreeOfParallelism": 1, + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "queryStoreRetention": 1 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgaba12041/providers/Microsoft.DataLakeAnalytics/accounts/testaba15818", + "name": "test_account", + "type": "Microsoft.DataLakeAnalytics/accounts", + "location": "eastus2", + "tags": { + "test_key": "test_value" + }, + "properties": { + "accountId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "defaultDataLakeStoreAccount": "test_adls", + "dataLakeStoreAccounts": [ + { + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + } + ], + "storageAccounts": [ + { + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + } + ], + "computePolicies": [ + { + "id": "test_policy_id", + "name": "test_policy", + "type": "test_type", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1, - "queryStoreRetention": 1 + "minPriorityPerJob": 1 + } + } + ], + "firewallRules": [ + { + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } } + ], + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "newTier": "Consumption", + "currentTier": "Consumption", + "maxJobCount": 3, + "systemMaxJobCount": 1, + "maxDegreeOfParallelism": 30, + "systemMaxDegreeOfParallelism": 1, + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "queryStoreRetention": 30 } + } }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgaba12041/providers/Microsoft.DataLakeAnalytics/accounts/testaba15818", - "name": "test_account", - "type": "Microsoft.DataLakeAnalytics/accounts", - "location": "eastus2", - "tags": { - "test_key": "test_value" - }, - "properties": { - "accountId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "provisioningState": "Succeeded", - "state": "Active", - "creationTime": "2017-04-14T13:21:56.6819037-07:00", - "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", - "endpoint": "test_endpoint", - "defaultDataLakeStoreAccount": "test_adls", - "dataLakeStoreAccounts": [{ - "id": "test_adls_id", - "name": "test_adls", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "storageAccounts": [{ - "id": "test_storage_id", - "name": "test_storage", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "computePolicies": [{ - "id": "test_policy_id", - "name": "test_policy", - "type": "test_type", - "properties": { - "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "objectType": "User", - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1 - } - }], - "firewallRules": [{ - "id": "test_firewall_id", - "name": "test_rule", - "type": "test_type", - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - }], - "firewallState": "Enabled", - "firewallAllowAzureIps": "Enabled", - "newTier": "Consumption", - "currentTier": "Consumption", - "maxJobCount": 3, - "systemMaxJobCount": 1, - "maxDegreeOfParallelism": 30, - "systemMaxDegreeOfParallelism": 1, - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1, - "queryStoreRetention": 30 - } - } + "201": { + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgaba12041/providers/Microsoft.DataLakeAnalytics/accounts/testaba15818", + "name": "test_account", + "type": "Microsoft.DataLakeAnalytics/accounts", + "location": "eastus2", + "tags": { + "test_key": "test_value" }, - "201": { - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgaba12041/providers/Microsoft.DataLakeAnalytics/accounts/testaba15818", - "name": "test_account", - "type": "Microsoft.DataLakeAnalytics/accounts", - "location": "eastus2", - "tags": { - "test_key": "test_value" - }, - "properties": { - "accountId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "provisioningState": "Succeeded", - "state": "Active", - "creationTime": "2017-04-14T13:21:56.6819037-07:00", - "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", - "endpoint": "test_endpoint", - "defaultDataLakeStoreAccount": "test_adls", - "dataLakeStoreAccounts": [{ - "id": "test_adls_id", - "name": "test_adls", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "storageAccounts": [{ - "id": "test_storage_id", - "name": "test_storage", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "computePolicies": [{ - "id": "test_policy_id", - "name": "test_policy", - "type": "test_type", - "properties": { - "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "objectType": "User", - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1 - } - }], - "firewallRules": [{ - "id": "test_firewall_id", - "name": "test_rule", - "type": "test_type", - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - }], - "firewallState": "Enabled", - "firewallAllowAzureIps": "Enabled", - "newTier": "Consumption", - "currentTier": "Consumption", - "maxJobCount": 3, - "systemMaxJobCount": 1, - "maxDegreeOfParallelism": 30, - "systemMaxDegreeOfParallelism": 1, - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1, - "queryStoreRetention": 30 - } + "properties": { + "accountId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "defaultDataLakeStoreAccount": "test_adls", + "dataLakeStoreAccounts": [ + { + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + } + ], + "storageAccounts": [ + { + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } } + ], + "computePolicies": [ + { + "id": "test_policy_id", + "name": "test_policy", + "type": "test_type", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + } + ], + "firewallRules": [ + { + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + ], + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "newTier": "Consumption", + "currentTier": "Consumption", + "maxJobCount": 3, + "systemMaxJobCount": 1, + "maxDegreeOfParallelism": 30, + "systemMaxDegreeOfParallelism": 1, + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "queryStoreRetention": 30 + } + } + }, + "202": { + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgaba12041/providers/Microsoft.DataLakeAnalytics/accounts/testaba15818", + "name": "test_account", + "type": "Microsoft.DataLakeAnalytics/accounts", + "location": "eastus2", + "tags": { + "test_key": "test_value" }, - "202": { - "body": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgaba12041/providers/Microsoft.DataLakeAnalytics/accounts/testaba15818", - "name": "test_account", - "type": "Microsoft.DataLakeAnalytics/accounts", - "location": "eastus2", - "tags": { - "test_key": "test_value" - }, - "properties": { - "accountId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "provisioningState": "Succeeded", - "state": "Active", - "creationTime": "2017-04-14T13:21:56.6819037-07:00", - "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", - "endpoint": "test_endpoint", - "defaultDataLakeStoreAccount": "test_adls", - "dataLakeStoreAccounts": [{ - "id": "test_adls_id", - "name": "test_adls", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "storageAccounts": [{ - "id": "test_storage_id", - "name": "test_storage", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "computePolicies": [{ - "id": "test_policy_id", - "name": "test_policy", - "type": "test_type", - "properties": { - "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "objectType": "User", - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1 - } - }], - "firewallRules": [{ - "id": "test_firewall_id", - "name": "test_rule", - "type": "test_type", - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - }], - "firewallState": "Enabled", - "firewallAllowAzureIps": "Enabled", - "newTier": "Consumption", - "currentTier": "Consumption", - "maxJobCount": 3, - "systemMaxJobCount": 1, - "maxDegreeOfParallelism": 30, - "systemMaxDegreeOfParallelism": 1, - "maxDegreeOfParallelismPerJob": 1, - "minPriorityPerJob": 1, - "queryStoreRetention": 30 - } + "properties": { + "accountId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "defaultDataLakeStoreAccount": "test_adls", + "dataLakeStoreAccounts": [ + { + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + } + ], + "storageAccounts": [ + { + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + } + ], + "computePolicies": [ + { + "id": "test_policy_id", + "name": "test_policy", + "type": "test_type", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + } + ], + "firewallRules": [ + { + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } } + ], + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "newTier": "Consumption", + "currentTier": "Consumption", + "maxJobCount": 3, + "systemMaxJobCount": 1, + "maxDegreeOfParallelism": 30, + "systemMaxDegreeOfParallelism": 1, + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "queryStoreRetention": 30 } + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_CreateOrUpdate.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_CreateOrUpdate.json index 0c2a7f5e1964..a802a4462e77 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_CreateOrUpdate.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_CreateOrUpdate.json @@ -1,30 +1,30 @@ { + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "computePolicyName": "test_policy", "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "computePolicyName": "test_policy", - "parameters": { - "properties": { - "objectId": "776b9091-8916-4638-87f7-9c989a38da98", - "objectType": "User", - "maxDegreeOfParallelismPerJob": 10, - "minPriorityPerJob": 30 - } - } - }, - "responses": { - "200": { - "body": { - "name": "test_policy", - "properties": { - "objectId": "776b9091-8916-4638-87f7-9c989a38da98", - "objectType": "User", - "maxDegreeOfParallelismPerJob": 10, - "minPriorityPerJob": 30 - } - } + "properties": { + "objectId": "776b9091-8916-4638-87f7-9c989a38da98", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 10, + "minPriorityPerJob": 30 + } + } + }, + "responses": { + "200": { + "body": { + "name": "test_policy", + "properties": { + "objectId": "776b9091-8916-4638-87f7-9c989a38da98", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 10, + "minPriorityPerJob": 30 } + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_Delete.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_Delete.json index ef4331040ff4..e293c9e12322 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_Delete.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_Delete.json @@ -1,15 +1,13 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "computePolicyName": "test_policy" - }, - "responses": { - "200": { - }, - "204": { - } - } + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "computePolicyName": "test_policy" + }, + "responses": { + "200": {}, + "204": {} + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_Get.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_Get.json index c5eba4e3f678..f7c98bb948c7 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_Get.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_Get.json @@ -1,22 +1,22 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "computePolicyName": "test_policy" - }, - "responses": { - "200": { - "body": { - "name": "test_policy", - "properties": { - "objectId": "776b9091-8916-4638-87f7-9c989a38da98", - "objectType": "User", - "maxDegreeOfParallelismPerJob": 10, - "minPriorityPerJob": 30 - } - } + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "computePolicyName": "test_policy" + }, + "responses": { + "200": { + "body": { + "name": "test_policy", + "properties": { + "objectId": "776b9091-8916-4638-87f7-9c989a38da98", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 10, + "minPriorityPerJob": 30 } + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_ListByAccount.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_ListByAccount.json index 84e157f00fff..f43cbe04636c 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_ListByAccount.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_ListByAccount.json @@ -1,42 +1,44 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla" - }, - "responses": { - "200": { - "body": { - "value": [{ - "name": "test_policy", - "properties": { - "objectId": "776b9091-8916-4638-87f7-9c989a38da98", - "objectType": "User", - "maxDegreeOfParallelismPerJob": 10, - "minPriorityPerJob": 30 - } - }, - { - "name": "test_policy1", - "properties": { - "objectId": "776b9091-8916-4638-87f7-9c989a38da99", - "objectType": "Group", - "maxDegreeOfParallelismPerJob": 5, - "minPriorityPerJob": 15 - } - }, - { - "name": "test_policy2", - "properties": { - "objectId": "776b9091-8916-4638-87f7-9c989a38da97", - "objectType": "ServicePrincipal", - "maxDegreeOfParallelismPerJob": 20, - "minPriorityPerJob": 60 - } - }], - "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test_policy", + "properties": { + "objectId": "776b9091-8916-4638-87f7-9c989a38da98", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 10, + "minPriorityPerJob": 30 } - } + }, + { + "name": "test_policy1", + "properties": { + "objectId": "776b9091-8916-4638-87f7-9c989a38da99", + "objectType": "Group", + "maxDegreeOfParallelismPerJob": 5, + "minPriorityPerJob": 15 + } + }, + { + "name": "test_policy2", + "properties": { + "objectId": "776b9091-8916-4638-87f7-9c989a38da97", + "objectType": "ServicePrincipal", + "maxDegreeOfParallelismPerJob": 20, + "minPriorityPerJob": 60 + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_Update.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_Update.json index 96829136040b..24876110d2f5 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_Update.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ComputePolicies_Update.json @@ -1,28 +1,28 @@ { + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "computePolicyName": "test_policy", "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "computePolicyName": "test_policy", - "parameters": { - "properties": { - "maxDegreeOfParallelismPerJob": 11, - "minPriorityPerJob": 31 - } - } - }, - "responses": { - "200": { - "body": { - "name": "test_policy", - "properties": { - "objectId": "776b9091-8916-4638-87f7-9c989a38da98", - "objectType": "User", - "maxDegreeOfParallelismPerJob": 11, - "minPriorityPerJob": 31 - } - } + "properties": { + "maxDegreeOfParallelismPerJob": 11, + "minPriorityPerJob": 31 + } + } + }, + "responses": { + "200": { + "body": { + "name": "test_policy", + "properties": { + "objectId": "776b9091-8916-4638-87f7-9c989a38da98", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 11, + "minPriorityPerJob": 31 } + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_Add.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_Add.json index a8bac50059fe..0dd76d13c698 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_Add.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_Add.json @@ -1,18 +1,17 @@ { + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "dataLakeStoreAccountName": "test_adls_account", "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "dataLakeStoreAccountName": "test_adls_account", - "parameters": { - "properties": { - "suffix": "test_suffix" - } - } - }, - "responses": { - "200": { - } + "properties": { + "suffix": "test_suffix" + } } + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_Delete.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_Delete.json index d8df893ea83b..81ea00b35fcf 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_Delete.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_Delete.json @@ -1,13 +1,12 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "dataLakeStoreAccountName": "test_adls_account" - }, - "responses": { - "200": { - } - } + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "dataLakeStoreAccountName": "test_adls_account" + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_Get.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_Get.json index 2e6a341cd68b..47994990a1c4 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_Get.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_Get.json @@ -1,21 +1,21 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1669ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "dataLakeStoreAccountName": "test_adls_account" - }, - "responses": { - "200": { - "body": { - "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "name": "test_adls", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - } + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1669ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "dataLakeStoreAccountName": "test_adls_account" + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" } + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_ListByAccount.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_ListByAccount.json index 75fc6588bd81..b5022bc391b8 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_ListByAccount.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/DataLakeStoreAccounts_ListByAccount.json @@ -1,29 +1,31 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "value": [{ - "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "name": "test_adls", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" } - } + } + ], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_CreateOrUpdate.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_CreateOrUpdate.json index 80e20e0cff4a..7c239fc53e9f 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_CreateOrUpdate.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_CreateOrUpdate.json @@ -1,28 +1,28 @@ { + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "firewallRuleName": "test_rule", "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "firewallRuleName": "test_rule", - "parameters": { - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - } - }, - "responses": { - "200": { - "body": { - "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "name": "test_rule", - "type": "test_type", - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - } + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" } + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_Delete.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_Delete.json index 53cac4aaabaf..5cec7e998778 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_Delete.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_Delete.json @@ -1,15 +1,13 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "firewallRuleName": "test_rule" - }, - "responses": { - "200": { - }, - "204": { - } - } + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "firewallRuleName": "test_rule" + }, + "responses": { + "200": {}, + "204": {} + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_Get.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_Get.json index 137b32e4246d..03ba39bf887e 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_Get.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_Get.json @@ -1,22 +1,22 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "firewallRuleName": "test_rule" - }, - "responses": { - "200": { - "body": { - "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "name": "test_rule", - "type": "test_type", - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - } + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "firewallRuleName": "test_rule" + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" } + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_ListByAccount.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_ListByAccount.json index 20bbfa6262fb..0fdb92c73190 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_ListByAccount.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_ListByAccount.json @@ -1,24 +1,26 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla" - }, - "responses": { - "200": { - "body": { - "value": [{ - "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "name": "test_rule", - "type": "test_type", - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - }], - "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" } - } + } + ], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_Update.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_Update.json index 78b55e76537e..7c239fc53e9f 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_Update.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/FirewallRules_Update.json @@ -1,28 +1,28 @@ { + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "firewallRuleName": "test_rule", "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "firewallRuleName": "test_rule", - "parameters": { - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - } - }, - "responses": { - "200": { - "body": { - "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "name": "test_rule", - "type": "test_type", - "properties": { - "startIpAddress": "1.1.1.1", - "endIpAddress": "2.2.2.2" - } - } + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" } + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Locations_GetCapability.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Locations_GetCapability.json index c44d18cbfdcb..627c2d8e525f 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Locations_GetCapability.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Locations_GetCapability.json @@ -1,20 +1,19 @@ { - "parameters": { - "api-version": "2016-11-01", + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "location": "EastUS2" + }, + "responses": { + "200": { + "body": { "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "location": "EastUS2" + "state": "Registered", + "maxAccountCount": 150, + "accountCount": 100, + "migrationState": false + } }, - "responses": { - "200": { - "body": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "state": "Registered", - "maxAccountCount": 150, - "accountCount": 100, - "migrationState": false - } - }, - "404": { - } - } + "404": {} + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Operations_List.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Operations_List.json index c16b26ab7e22..5b1bc50fd2ea 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Operations_List.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/Operations_List.json @@ -1,21 +1,23 @@ { - "parameters": { - "api-version": "2016-11-01" - }, - "responses": { - "200": { - "body": { - "value": [{ - "name": "Microsoft.DataLakeAnalytics/operations/read", - "display": { - "provider": "Microsoft DataLakeAnalytics", - "resource": "Available Operations", - "operation": "Get Available Operations", - "description": "Get available operations of DataLakeAnalytics." - } - }], - "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + "parameters": { + "api-version": "2016-11-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DataLakeAnalytics/operations/read", + "display": { + "provider": "Microsoft DataLakeAnalytics", + "resource": "Available Operations", + "operation": "Get Available Operations", + "description": "Get available operations of DataLakeAnalytics." } - } + } + ], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Add.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Add.json index 631c6f8fb1f3..536e2eebafee 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Add.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Add.json @@ -1,19 +1,18 @@ { + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage", "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "storageAccountName": "test_storage", - "parameters": { - "properties": { - "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", - "suffix": "test_suffix" - } - } - }, - "responses": { - "200": { - } + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } } + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Delete.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Delete.json index 4bbfc5535080..9dcbca8c42dd 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Delete.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Delete.json @@ -1,13 +1,12 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "storageAccountName": "test_storage" - }, - "responses": { - "200": { - } - } + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage" + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Get.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Get.json index 7108df56459a..910efe0766bb 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Get.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Get.json @@ -1,21 +1,21 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "storageAccountName": "test_storage" - }, - "responses": { - "200": { - "body": { - "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "name": "test_storage", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - } + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage" + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_storage", + "type": "test_type", + "properties": { + "suffix": "test_suffix" } + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_GetStorageContainer.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_GetStorageContainer.json index 74715e0a2159..732b7d348498 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_GetStorageContainer.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_GetStorageContainer.json @@ -1,22 +1,22 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "storageAccountName": "test_storage", - "containerName": "test_container" - }, - "responses": { - "200": { - "body": { - "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "name": "test_storage", - "type": "test_type", - "properties": { - "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00" - } - } + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage", + "containerName": "test_container" + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_storage", + "type": "test_type", + "properties": { + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00" } + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_ListByAccount.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_ListByAccount.json index e86f81925843..7ec163bfb791 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_ListByAccount.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_ListByAccount.json @@ -1,29 +1,31 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "$filter": "test_filter", - "$top": 1, - "$skip": 1, - "$select": "test_select", - "$orderby": "test_orderby", - "$count": false - }, - "responses": { - "200": { - "body": { - "value": [{ - "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "name": "test_storage", - "type": "test_type", - "properties": { - "suffix": "test_suffix" - } - }], - "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_storage", + "type": "test_type", + "properties": { + "suffix": "test_suffix" } - } + } + ], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_ListSasTokens.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_ListSasTokens.json index 7be802bcac66..6fe68e619157 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_ListSasTokens.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_ListSasTokens.json @@ -1,20 +1,22 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "storageAccountName": "test_storage", - "containerName": "test_container" - }, - "responses": { - "200": { - "body": { - "value": [{ - "accessToken": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346" - }], - "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" - } - } + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage", + "containerName": "test_container" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "accessToken": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346" + } + ], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_ListStorageContainers.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_ListStorageContainers.json index 573524d96bc4..2b24017f689b 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_ListStorageContainers.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_ListStorageContainers.json @@ -1,24 +1,26 @@ { - "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "storageAccountName": "test_storage" - }, - "responses": { - "200": { - "body": { - "value": [{ - "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "name": "test_storage", - "type": "test_type", - "properties": { - "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00" - } - }], - "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_storage", + "type": "test_type", + "properties": { + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00" } - } + } + ], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } } + } } diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Update.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Update.json index 631c6f8fb1f3..536e2eebafee 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Update.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/StorageAccounts_Update.json @@ -1,19 +1,18 @@ { + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage", "parameters": { - "api-version": "2016-11-01", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "storageAccountName": "test_storage", - "parameters": { - "properties": { - "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", - "suffix": "test_suffix" - } - } - }, - "responses": { - "200": { - } + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } } + }, + "responses": { + "200": {} + } } diff --git a/specification/datalake-analytics/resource-manager/readme.md b/specification/datalake-analytics/resource-manager/readme.md index 06ba974f042e..3499f82c1ce5 100644 --- a/specification/datalake-analytics/resource-manager/readme.md +++ b/specification/datalake-analytics/resource-manager/readme.md @@ -73,6 +73,7 @@ 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 @@ -166,3 +167,29 @@ generate-interface: 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)/Microsoft.DataLakeAnalytics/stable/2016-11-01/account.json + - $(this-folder)/Microsoft.DataLakeAnalytics/preview/2015-10-01-preview/account.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/datalake-store/data-plane/Microsoft.DataLakeStore/stable/2016-11-01/examples/FileSystem_GetAclStatus.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/stable/2016-11-01/examples/FileSystem_GetAclStatus.json index 13013e316bf9..b34de8e52650 100644 --- a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/stable/2016-11-01/examples/FileSystem_GetAclStatus.json +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/stable/2016-11-01/examples/FileSystem_GetAclStatus.json @@ -9,15 +9,17 @@ }, "responses": { "200": { - "AclStatus": { - "entries": [ - "test_entry_1", - "test_entry_2" - ], - "group": "test_group", - "owner": "test_owner", - "permission": "1", - "stickyBit": false + "body": { + "aclStatus": { + "entries": [ + "test_entry_1", + "test_entry_2" + ], + "group": "test_group", + "owner": "test_owner", + "permission": "1", + "stickyBit": false + } } } } diff --git a/specification/datalake-store/data-plane/readme.md b/specification/datalake-store/data-plane/readme.md index e755ae825d69..837954fd458f 100644 --- a/specification/datalake-store/data-plane/readme.md +++ b/specification/datalake-store/data-plane/readme.md @@ -94,3 +94,29 @@ java: payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-datalake/store ``` + +## 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.DataLakeStore/stable/2016-11-01/filesystem.json + - $(this-folder)/Microsoft.DataLakeStore/preview/2015-10-01-preview/filesystem.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/datalake-store/resource-manager/readme.md b/specification/datalake-store/resource-manager/readme.md index 37fc3f33809f..957bfc47afd6 100644 --- a/specification/datalake-store/resource-manager/readme.md +++ b/specification/datalake-store/resource-manager/readme.md @@ -75,6 +75,7 @@ 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 @@ -178,3 +179,29 @@ generate-interface: 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)/Microsoft.DataLakeStore/stable/2016-11-01/account.json + - $(this-folder)/Microsoft.DataLakeStore/preview/2015-10-01-preview/account.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/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/Common.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/Common.json index 6549b3558e6c..005287b48330 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/Common.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/Common.json @@ -226,7 +226,6 @@ "ConnectionInfo": { "type": "object", "description": "Defines the connection properties of a server", - "x-ms-discriminator-value": "Unknown", "properties": { "type": { "type": "string", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/Tasks.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/Tasks.json index af7c2fe56d1d..a190d98f0bfa 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/Tasks.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/Tasks.json @@ -20,7 +20,6 @@ "ProjectTaskProperties": { "type": "object", "description": "Base class for all types of DMS task properties. If task is not supported by current client, this object is returned.", - "x-ms-discriminator-value": "Unknown", "properties": { "taskType": { "description": "Task type.", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Projects_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Projects_Delete.json index c1af9cd40cf2..4bc7a548a680 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Projects_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Projects_Delete.json @@ -7,11 +7,7 @@ "api-version": "2017-11-15-preview" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Services_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Services_Delete.json index 19646568ce48..2b1a2d892240 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Services_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Services_Delete.json @@ -7,9 +7,7 @@ }, "responses": { "200": {}, - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Services_Start.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Services_Start.json index da650394b9b1..7457bbbb1f2a 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Services_Start.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Services_Start.json @@ -6,11 +6,7 @@ "api-version": "2017-11-15-preview" }, "responses": { - "202": { - "body": "" - }, - "200": { - "body": "" - } + "202": {}, + "200": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Services_Stop.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Services_Stop.json index da650394b9b1..7457bbbb1f2a 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Services_Stop.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Services_Stop.json @@ -6,11 +6,7 @@ "api-version": "2017-11-15-preview" }, "responses": { - "202": { - "body": "" - }, - "200": { - "body": "" - } + "202": {}, + "200": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Tasks_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Tasks_Delete.json index d4ea93c8e322..786f7259c5a5 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Tasks_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2017-11-15-preview/examples/Tasks_Delete.json @@ -8,11 +8,7 @@ "api-version": "2017-11-15-preview" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/Common.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/Common.json index cf40cb1b52a2..fa4ab96ff2f6 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/Common.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/Common.json @@ -226,7 +226,6 @@ "ConnectionInfo": { "type": "object", "description": "Defines the connection properties of a server", - "x-ms-discriminator-value": "Unknown", "properties": { "type": { "type": "string", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/Tasks.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/Tasks.json index 13e3955198a7..0929346bb8ff 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/Tasks.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/Tasks.json @@ -20,7 +20,6 @@ "ProjectTaskProperties": { "type": "object", "description": "Base class for all types of DMS task properties. If task is not supported by current client, this object is returned.", - "x-ms-discriminator-value": "Unknown", "properties": { "taskType": { "description": "Task type.", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Projects_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Projects_Delete.json index c020ec725f08..5aac822d4ab6 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Projects_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Projects_Delete.json @@ -7,11 +7,7 @@ "api-version": "2018-03-15-preview" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Services_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Services_Delete.json index eb1e827ecc47..755c8163f7b4 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Services_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Services_Delete.json @@ -7,9 +7,7 @@ }, "responses": { "200": {}, - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Services_Start.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Services_Start.json index 4403a3f61948..a7f69ae432b9 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Services_Start.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Services_Start.json @@ -6,11 +6,7 @@ "api-version": "2018-03-15-preview" }, "responses": { - "202": { - "body": "" - }, - "200": { - "body": "" - } + "202": {}, + "200": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Services_Stop.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Services_Stop.json index 4403a3f61948..a7f69ae432b9 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Services_Stop.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Services_Stop.json @@ -6,11 +6,7 @@ "api-version": "2018-03-15-preview" }, "responses": { - "202": { - "body": "" - }, - "200": { - "body": "" - } + "202": {}, + "200": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Tasks_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Tasks_Delete.json index ee46d51f9dba..300999e84157 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Tasks_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/examples/Tasks_Delete.json @@ -8,11 +8,7 @@ "api-version": "2018-03-15-preview" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/Common.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/Common.json index b854b04aea65..44aaf3bc1a29 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/Common.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/Common.json @@ -226,7 +226,6 @@ "ConnectionInfo": { "type": "object", "description": "Defines the connection properties of a server", - "x-ms-discriminator-value": "Unknown", "properties": { "type": { "type": "string", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/Tasks.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/Tasks.json index 40350b3f721f..67281236879f 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/Tasks.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/Tasks.json @@ -20,7 +20,6 @@ "ProjectTaskProperties": { "type": "object", "description": "Base class for all types of DMS task properties. If task is not supported by current client, this object is returned.", - "x-ms-discriminator-value": "Unknown", "properties": { "taskType": { "description": "Task type.", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Projects_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Projects_Delete.json index 3586f57e6fcf..fe6ed3465ef6 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Projects_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Projects_Delete.json @@ -7,11 +7,7 @@ "api-version": "2018-03-31-preview" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Services_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Services_Delete.json index 76db9aa89856..1140ad6e70d6 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Services_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Services_Delete.json @@ -7,9 +7,7 @@ }, "responses": { "200": {}, - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Services_Start.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Services_Start.json index 316eb74b5589..f4aa3c470af8 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Services_Start.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Services_Start.json @@ -6,11 +6,7 @@ "api-version": "2018-03-31-preview" }, "responses": { - "202": { - "body": "" - }, - "200": { - "body": "" - } + "202": {}, + "200": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Services_Stop.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Services_Stop.json index 316eb74b5589..f4aa3c470af8 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Services_Stop.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Services_Stop.json @@ -6,11 +6,7 @@ "api-version": "2018-03-31-preview" }, "responses": { - "202": { - "body": "" - }, - "200": { - "body": "" - } + "202": {}, + "200": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Tasks_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Tasks_Delete.json index 632384179449..b3a32d15bfe7 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Tasks_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-31-preview/examples/Tasks_Delete.json @@ -8,11 +8,7 @@ "api-version": "2018-03-31-preview" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Commands.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Commands.json index defe9abbb3b6..92af6a9a11dd 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Commands.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Commands.json @@ -20,7 +20,6 @@ "CommandProperties": { "type": "object", "description": "Base class for all types of DMS command properties. If command is not supported by current client, this object is returned.", - "x-ms-discriminator-value": "Unknown", "properties": { "commandType": { "description": "Command type.", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Common.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Common.json index 962a5b8cf42d..651b9c6840cf 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Common.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Common.json @@ -230,7 +230,6 @@ "ConnectionInfo": { "type": "object", "description": "Defines the connection properties of a server", - "x-ms-discriminator-value": "Unknown", "properties": { "type": { "type": "string", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToSourceSqlServerTask.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToSourceSqlServerTask.json index 292e118e49e8..8a573d43aafe 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToSourceSqlServerTask.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToSourceSqlServerTask.json @@ -29,6 +29,11 @@ "$ref": "./Common.json#/definitions/ServerLevelPermissionsGroup", "description": "Permission group for validations" }, + "collectDatabases": { + "type": "boolean", + "description": "Flag for whether to collect databases from source server.", + "default": true + }, "collectLogins": { "type": "boolean", "description": "Flag for whether to collect logins from source server.", @@ -43,6 +48,11 @@ "type": "boolean", "description": "Flag for whether to collect TDE Certificate names from source server.", "default": false + }, + "validateSsisCatalogOnly": { + "type": "boolean", + "description": "Flag for whether to validate SSIS catalog is reachable on the source server.", + "default": false } }, "required": [ diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetSqlMITask.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetSqlMITask.json index 71a8f095ae91..90d9acf66450 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetSqlMITask.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetSqlMITask.json @@ -24,6 +24,21 @@ "targetConnectionInfo": { "description": "Connection information for target SQL Server", "$ref": "./Common.json#/definitions/SqlConnectionInfo" + }, + "collectLogins": { + "type": "boolean", + "description": "Flag for whether to collect logins from target SQL MI server.", + "default": true + }, + "collectAgentJobs": { + "type": "boolean", + "description": "Flag for whether to collect agent jobs from target SQL MI server.", + "default": true + }, + "validateSsisCatalogOnly": { + "type": "boolean", + "description": "Flag for whether to validate SSIS catalog is reachable on the target SQL MI server.", + "default": false } }, "required": [ diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Files.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Files.json index 3fb111285387..67d2a32d08a0 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Files.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Files.json @@ -86,7 +86,6 @@ "FileStorageInfo": { "type": "object", "description": "File storage information.", - "x-ms-discriminator-value": "Unknown", "properties": { "uri": { "description": "A URI that can be used to access the file content.", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSsisTask.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSsisTask.json new file mode 100644 index 000000000000..38df9713771b --- /dev/null +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSsisTask.json @@ -0,0 +1,178 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Database Migration Service Resource Provider", + "version": "2018-07-15-preview" + }, + "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": { + "MigrateSsisTaskInput": { + "type": "object", + "description": "Input for task that migrates SSIS packages from SQL Server to Azure SQL Database Managed Instance.", + "allOf": [ + { + "$ref": "./TasksCommon.json#/definitions/SqlMigrationTaskInput" + } + ], + "properties": { + "ssisMigrationInfo": { + "$ref": "./TasksCommon.json#/definitions/SsisMigrationInfo", + "description": "SSIS package migration information." + } + }, + "required": [ + "ssisMigrationInfo" + ] + }, + "MigrateSsisTaskOutput": { + "type": "object", + "description": "Output for task that migrates SSIS packages from SQL Server to Azure SQL Database Managed Instance.", + "properties": { + "id": { + "type": "string", + "description": "Result identifier", + "readOnly": true + }, + "resultType": { + "description": "Result type", + "type": "string", + "readOnly": true + } + }, + "discriminator": "resultType" + }, + "MigrateSsisTaskOutputMigrationLevel": { + "type": "object", + "x-ms-discriminator-value": "MigrationLevelOutput", + "properties": { + "startedOn": { + "type": "string", + "format": "date-time", + "description": "Migration start time", + "readOnly": true + }, + "endedOn": { + "type": "string", + "format": "date-time", + "description": "Migration end time", + "readOnly": true + }, + "status": { + "$ref": "TasksCommon.json#/definitions/MigrationStatus", + "description": "Current status of migration", + "readOnly": true + }, + "message": { + "type": "string", + "description": "Migration progress message", + "readOnly": true + }, + "sourceServerVersion": { + "type": "string", + "description": "Source server version", + "readOnly": true + }, + "sourceServerBrandVersion": { + "type": "string", + "description": "Source server brand version", + "readOnly": true + }, + "targetServerVersion": { + "type": "string", + "description": "Target server version", + "readOnly": true + }, + "targetServerBrandVersion": { + "type": "string", + "description": "Target server brand version", + "readOnly": true + }, + "exceptionsAndWarnings": { + "description": "Migration exceptions and warnings.", + "type": "array", + "items": { + "$ref": "./Common.json#/definitions/ReportableException" + }, + "readOnly": true + }, + "stage": { + "description": "Stage of SSIS migration.", + "$ref": "./TasksCommon.json#/definitions/SsisMigrationStage", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/MigrateSsisTaskOutput" + } + ] + }, + "MigrateSsisTaskOutputProjectLevel": { + "type": "object", + "x-ms-discriminator-value": "SsisProjectLevelOutput", + "properties": { + "folderName": { + "type": "string", + "description": "Name of the folder", + "readOnly": true + }, + "projectName": { + "type": "string", + "description": "Name of the project", + "readOnly": true + }, + "state": { + "$ref": "./TasksCommon.json#/definitions/MigrationState", + "description": "Current state of migration", + "readOnly": true + }, + "stage": { + "description": "Stage of SSIS migration.", + "$ref": "./TasksCommon.json#/definitions/SsisMigrationStage", + "readOnly": true + }, + "startedOn": { + "type": "string", + "format": "date-time", + "description": "Migration start time", + "readOnly": true + }, + "endedOn": { + "type": "string", + "format": "date-time", + "description": "Migration end time", + "readOnly": true + }, + "message": { + "type": "string", + "description": "Migration progress message", + "readOnly": true + }, + "exceptionsAndWarnings": { + "description": "Migration exceptions and warnings", + "type": "array", + "items": { + "$ref": "Common.json#/definitions/ReportableException" + }, + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/MigrateSsisTaskOutput" + } + ] + } + } +} diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/OracleAzureDbPostgreSqlSyncTask.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/OracleAzureDbPostgreSqlSyncTask.json index 2e189177cf3c..b647d8d3ab5e 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/OracleAzureDbPostgreSqlSyncTask.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/OracleAzureDbPostgreSqlSyncTask.json @@ -97,6 +97,120 @@ "description": "Target server brand version", "readOnly": true }, + "validationErrors": { + "description": "Validation errors associated with the task", + "type": "array", + "items": { + "$ref": "./Common.json#/definitions/ReportableException" + }, + "readOnly": true + }, + "databaseSchemaMap": { + "type": "array", + "description": "Mapping of schemas per database", + "items": { + "type": "object", + "properties": { + "database": { + "type": "string" + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "GetUserTablesOracleTaskInput": { + "type": "object", + "description": "Input for the task that gets the list of tables contained within a provided list of Oracle schemas.", + "properties": { + "connectionInfo": { + "$ref": "./Common.json#/definitions/OracleConnectionInfo", + "description": "Information for connecting to Oracle source" + }, + "selectedSchemas": { + "type": "array", + "description": "List of Oracle schemas for which to collect tables", + "items": { + "type": "string" + } + } + }, + "required": [ + "connectionInfo", + "selectedSchemas" + ] + }, + "GetUserTablesOracleTaskOutput": { + "type": "object", + "description": "Output for the task that gets the list of tables contained within a provided list of Oracle schemas.", + "properties": { + "schemaName": { + "type": "string", + "description": "The schema this result is for", + "readOnly": true + }, + "tables": { + "type": "array", + "description": "List of valid tables found for this schema", + "items": { + "$ref": "./TasksCommon.json#/definitions/DatabaseTable" + }, + "readOnly": true + }, + "validationErrors": { + "description": "Validation errors associated with the task", + "type": "array", + "items": { + "$ref": "./Common.json#/definitions/ReportableException" + }, + "readOnly": true + } + } + }, + "GetUserTablesPostgreSqlTaskInput": { + "type": "object", + "description": "Input for the task that gets the list of tables for a provided list of PostgreSQL databases.", + "properties": { + "connectionInfo": { + "$ref": "./Common.json#/definitions/PostgreSqlConnectionInfo", + "description": "Information for connecting to PostgreSQL source" + }, + "selectedDatabases": { + "type": "array", + "description": "List of PostgreSQL databases for which to collect tables", + "items": { + "type": "string" + } + } + }, + "required": [ + "connectionInfo", + "selectedDatabases" + ] + }, + "GetUserTablesPostgreSqlTaskOutput": { + "type": "object", + "description": "Output for the task that gets the list of tables for a provided list of PostgreSQL databases.", + "properties": { + "databaseName": { + "type": "string", + "description": "The database this result is for", + "readOnly": true + }, + "tables": { + "type": "array", + "description": "List of valid tables found for this database", + "items": { + "$ref": "./TasksCommon.json#/definitions/DatabaseTable" + }, + "readOnly": true + }, "validationErrors": { "description": "Validation errors associated with the task", "type": "array", @@ -433,6 +547,10 @@ "type": "object", "description": "Database specific information for Oracle to Azure Database for PostgreSQL migration task inputs", "properties": { + "caseManipulation": { + "type": "string", + "description": "How to handle object name casing: either Preserve or ToLower" + }, "name": { "type": "string", "description": "Name of the migration pipeline" diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Tasks.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Tasks.json index a8478951b492..8c8798a0d89b 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Tasks.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Tasks.json @@ -20,7 +20,6 @@ "ProjectTaskProperties": { "type": "object", "description": "Base class for all types of DMS task properties. If task is not supported by current client, this object is returned.", - "x-ms-discriminator-value": "Unknown", "properties": { "taskType": { "description": "Task type.", @@ -373,6 +372,54 @@ } ] }, + "GetUserTablesOracleTaskProperties": { + "x-ms-discriminator-value": "GetUserTablesOracle", + "type": "object", + "description": "Properties for the task that collects user tables for the given list of Oracle schemas", + "properties": { + "input": { + "description": "Task input", + "$ref": "./OracleAzureDbPostgreSqlSyncTask.json#/definitions/GetUserTablesOracleTaskInput" + }, + "output": { + "description": "Task output. This is ignored if submitted.", + "type": "array", + "items": { + "$ref": "./OracleAzureDbPostgreSqlSyncTask.json#/definitions/GetUserTablesOracleTaskOutput" + }, + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProjectTaskProperties" + } + ] + }, + "GetUserTablesPostgreSqlTaskProperties": { + "x-ms-discriminator-value": "GetUserTablesPostgreSql", + "type": "object", + "description": "Properties for the task that collects user tables for the given list of databases", + "properties": { + "input": { + "description": "Task input", + "$ref": "./OracleAzureDbPostgreSqlSyncTask.json#/definitions/GetUserTablesPostgreSqlTaskInput" + }, + "output": { + "description": "Task output. This is ignored if submitted.", + "type": "array", + "items": { + "$ref": "./OracleAzureDbPostgreSqlSyncTask.json#/definitions/GetUserTablesPostgreSqlTaskOutput" + }, + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProjectTaskProperties" + } + ] + }, "ConnectToTargetSqlMITaskProperties": { "x-ms-discriminator-value": "ConnectToTarget.AzureSqlDbMI", "type": "object", @@ -612,7 +659,7 @@ ] }, "MigrateOracleAzureDbForPostgreSqlSyncTaskProperties": { - "x-ms-discriminator-value": "Migrate.Oracle.Sql.Sync", + "x-ms-discriminator-value": "Migrate.Oracle.AzureDbForPostgreSql.Sync", "type": "object", "description": "Properties for the task that migrates Oracle to Azure Database for PostgreSQL for online migrations", "properties": { @@ -776,6 +823,30 @@ "$ref": "#/definitions/ProjectTaskProperties" } ] + }, + "MigrateSsisTaskProperties": { + "x-ms-discriminator-value": "Migrate.Ssis", + "type": "object", + "description": "Properties for task that migrates SSIS packages from SQL Server databases to Azure SQL Database Managed Instance.", + "properties": { + "input": { + "description": "Task input", + "$ref": "./MigrateSsisTask.json#/definitions/MigrateSsisTaskInput" + }, + "output": { + "description": "Task output. This is ignored if submitted.", + "type": "array", + "items": { + "$ref": "./MigrateSsisTask.json#/definitions/MigrateSsisTaskOutput" + }, + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProjectTaskProperties" + } + ] } } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/TasksCommon.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/TasksCommon.json index b638c99db158..aebe0e18411a 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/TasksCommon.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/TasksCommon.json @@ -1182,6 +1182,61 @@ "name": "DatabaseMigrationState", "modelAsString": true } + }, + "SsisMigrationInfo": { + "type": "object", + "description": "SSIS migration info with SSIS store type, overwrite policy.", + "properties": { + "ssisStoreType": { + "$ref": "#/definitions/SsisStoreType", + "description": "The SSIS store type of source, only SSIS catalog is supported now in DMS" + }, + "projectOverwriteOption": { + "$ref": "#/definitions/SsisMigrationOverwriteOption", + "description": "The overwrite option for the SSIS project migration" + }, + "environmentOverwriteOption": { + "$ref": "#/definitions/SsisMigrationOverwriteOption", + "description": "The overwrite option for the SSIS environment migration" + } + } + }, + "SsisStoreType": { + "type": "string", + "description": "An enumeration of supported source SSIS store type in DMS", + "enum": [ + "SsisCatalog" + ], + "x-ms-enum": { + "name": "SsisStoreType", + "modelAsString": true + } + }, + "SsisMigrationOverwriteOption": { + "type": "string", + "description": "The overwrite option for SSIS object migration, only ignore and overwrite are supported in DMS now and future may add Reuse option for container object", + "enum": [ + "Ignore", + "Overwrite" + ], + "x-ms-enum": { + "name": "SsisMigrationOverwriteOption", + "modelAsString": true + } + }, + "SsisMigrationStage": { + "type": "string", + "description": "Current stage of SSIS migration", + "enum": [ + "None", + "Initialize", + "InProgress", + "Completed" + ], + "x-ms-enum": { + "name": "SsisMigrationStage", + "modelAsString": true + } } } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Files_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Files_Delete.json index 0aed4cdfcba6..834beea8673a 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Files_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Files_Delete.json @@ -8,11 +8,7 @@ "api-version": "2018-07-15-preview" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Projects_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Projects_Delete.json index aa1f249390cf..2415228a11bb 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Projects_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Projects_Delete.json @@ -7,11 +7,7 @@ "api-version": "2018-07-15-preview" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/ServiceTasks_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/ServiceTasks_Delete.json index 7c5fd00999e2..ad1b0d4b80b0 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/ServiceTasks_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/ServiceTasks_Delete.json @@ -7,11 +7,7 @@ "api-version": "2018-07-15-preview" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Services_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Services_Delete.json index c7492fd18630..63e585c067fb 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Services_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Services_Delete.json @@ -6,9 +6,7 @@ "api-version": "2018-07-15-preview" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "200": {}, "204": {} } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Services_Start.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Services_Start.json index 85f9f1e7cb45..5a6d0658bd17 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Services_Start.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Services_Start.json @@ -6,11 +6,7 @@ "api-version": "2018-07-15-preview" }, "responses": { - "202": { - "body": "" - }, - "200": { - "body": "" - } + "202": {}, + "200": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Services_Stop.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Services_Stop.json index 85f9f1e7cb45..5a6d0658bd17 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Services_Stop.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Services_Stop.json @@ -6,11 +6,7 @@ "api-version": "2018-07-15-preview" }, "responses": { - "202": { - "body": "" - }, - "200": { - "body": "" - } + "202": {}, + "200": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Tasks_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Tasks_Delete.json index cad5eafa7417..20b8c4165a0e 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Tasks_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-07-15-preview/examples/Tasks_Delete.json @@ -8,11 +8,7 @@ "api-version": "2018-07-15-preview" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/definitions/Commands.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/definitions/Commands.json index d64ec7602b6f..8280bb0ca60f 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/definitions/Commands.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/definitions/Commands.json @@ -20,7 +20,6 @@ "CommandProperties": { "type": "object", "description": "Base class for all types of DMS command properties. If command is not supported by current client, this object is returned.", - "x-ms-discriminator-value": "Unknown", "properties": { "commandType": { "description": "Command type.", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/definitions/Common.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/definitions/Common.json index 5e7c7e93e173..5a446ff1378d 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/definitions/Common.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/definitions/Common.json @@ -241,7 +241,6 @@ "ConnectionInfo": { "type": "object", "description": "Defines the connection properties of a server", - "x-ms-discriminator-value": "Unknown", "properties": { "type": { "type": "string", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/definitions/Tasks.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/definitions/Tasks.json index 8eeb0ef0b4a3..82b295eb649e 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/definitions/Tasks.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/definitions/Tasks.json @@ -20,7 +20,6 @@ "ProjectTaskProperties": { "type": "object", "description": "Base class for all types of DMS task properties. If task is not supported by current client, this object is returned.", - "x-ms-discriminator-value": "Unknown", "properties": { "taskType": { "description": "Task type.", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Projects_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Projects_Delete.json index 1ca3cf94f885..28efc7fb1d13 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Projects_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Projects_Delete.json @@ -7,11 +7,7 @@ "api-version": "2018-04-19" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Services_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Services_Delete.json index fe08f524ec9a..e6614aa25e3a 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Services_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Services_Delete.json @@ -7,9 +7,7 @@ }, "responses": { "200": {}, - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Services_Start.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Services_Start.json index a5b2cdc6786d..27f5738628ae 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Services_Start.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Services_Start.json @@ -6,11 +6,7 @@ "api-version": "2018-04-19" }, "responses": { - "202": { - "body": "" - }, - "200": { - "body": "" - } + "202": {}, + "200": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Services_Stop.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Services_Stop.json index a5b2cdc6786d..27f5738628ae 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Services_Stop.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Services_Stop.json @@ -6,11 +6,7 @@ "api-version": "2018-04-19" }, "responses": { - "202": { - "body": "" - }, - "200": { - "body": "" - } + "202": {}, + "200": {} } } diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Tasks_Delete.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Tasks_Delete.json index 127e2379dbd1..727f4431d06d 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Tasks_Delete.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2018-04-19/examples/Tasks_Delete.json @@ -8,11 +8,7 @@ "api-version": "2018-04-19" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/datamigration/resource-manager/readme.java.md b/specification/datamigration/resource-manager/readme.java.md new file mode 100644 index 000000000000..a7aa7dec7a71 --- /dev/null +++ b/specification/datamigration/resource-manager/readme.java.md @@ -0,0 +1,61 @@ +## 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.datamigration +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-datamigration +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-07-15-preview + - tag: package-2017-11-15-preview + - tag: package-2018-03-31-preview +``` + +### Tag: package-2018-07-15-preview and java + +These settings apply only when `--tag=package-2018-07-15-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-07-15-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.datamigration.v2018_07_15_preview + output-folder: $(azure-libraries-for-java-folder)/datamigration/resource-manager/v2018_07_15_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-11-15-preview and java + +These settings apply only when `--tag=package-2017-11-15-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2017-11-15-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.datamigration.v2017_11_15_preview + output-folder: $(azure-libraries-for-java-folder)/datamigration/resource-manager/v2017_11_15_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-03-31-preview and java + +These settings apply only when `--tag=package-2018-03-31-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-03-31-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.datamigration.v2018_03_31_preview + output-folder: $(azure-libraries-for-java-folder)/datamigration/resource-manager/v2018_03_31_preview +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/datamigration/resource-manager/readme.md b/specification/datamigration/resource-manager/readme.md index 92226f984ab6..52e90b3fd384 100644 --- a/specification/datamigration/resource-manager/readme.md +++ b/specification/datamigration/resource-manager/readme.md @@ -95,6 +95,7 @@ input-file: - Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSqlServerSqlDbTask.json - Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSqlServerSqlMiSyncTask.json - Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSqlServerSqlMITask.json +- Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSsisTask.json - Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrationValidation.json - Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MongoDbTasks.json - Microsoft.DataMigration/preview/2018-07-15-preview/definitions/GetTdeCertificatesSqlTask.json @@ -185,6 +186,7 @@ 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-go - repo: azure-sdk-for-js @@ -212,64 +214,131 @@ 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=`. +See configuration in [readme.java.md](./readme.java.md) -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.datamigration -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-datamigration -``` - -### Java multi-api +## Multi-API/Profile support for AutoRest v3 generators -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2018-07-15-preview - - tag: package-2017-11-15-preview - - tag: package-2018-03-31-preview -``` +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -### Tag: package-2018-07-15-preview and java +This block is updated by an automatic script. Edits may be lost! -These settings apply only when `--tag=package-2018-07-15-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2018-07-15-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.azuredatabasemigrationservice.v2018_07_15_preview - output-folder: $(azure-libraries-for-java-folder)/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview -regenerate-manager: true -generate-interface: true -``` +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -### Tag: package-2017-11-15-preview and java - -These settings apply only when `--tag=package-2017-11-15-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/datamigration.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/Commands.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/Common.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/ConnectToSourceMySqlTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/ConnectToSourcePostgreSqlSyncTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/ConnectToSourceSqlServerTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/ConnectToTargetAzureDbForMySqlTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/ConnectToTargetAzureDbForPostgreSqlSyncTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/ConnectToTargetSqlDbTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/ConnectToTargetSqlMITask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/ConnectToTargetSqlMiSyncTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/ConnectToTargetSqlSqlDbSyncTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/GetTdeCertificatesSqlTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/GetUserTablesSqlSyncTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/GetUserTablesSqlTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/MigrateMySqlAzureDbForMySqlSyncTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/MigratePostgreSqlAzureDbForPostgreSqlSyncTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/MigrateSqlServerSqlDbSyncTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/MigrateSqlServerSqlDbTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/MigrateSqlServerSqlMITask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/MigrateSqlServerSqlMiSyncTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/Projects.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/Services.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/Tasks.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/TasksCommon.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/MigrationValidation.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/ValidateMigrationInputSqlServerSqlMITask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/ValidateMigrationInputSqlServerSqlMiSyncTask.json + - $(this-folder)/Microsoft.DataMigration/stable/2018-04-19/definitions/ValidateSyncMigrationInputSqlServerTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/datamigration.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Commands.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Common.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToSourceMySqlTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToSourceSqlServerTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToSourcePostgreSqlSyncTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetAzureDbForMySqlTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetSqlDbTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetSqlMiSyncTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetSqlMITask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetSqlSqlDbSyncTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ConnectToTargetAzureDbForPostgreSqlSyncTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/GetUserTablesSqlSyncTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/GetUserTablesSqlTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSchemaSqlServerSqlDbTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateMySqlAzureDbForMySqlSyncTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigratePostgreSqlAzureDbForPostgreSqlSyncTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSqlServerSqlDbSyncTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSqlServerSqlDbTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSqlServerSqlMiSyncTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSqlServerSqlMITask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrateSsisTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MigrationValidation.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/MongoDbTasks.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/GetTdeCertificatesSqlTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/OracleAzureDbPostgreSqlSyncTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Projects.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ServiceFeatureOCITask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Services.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ServiceTasks.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/Tasks.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/TasksCommon.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ValidateMigrationInputSqlServerSqlMITask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ValidateSyncMigrationInputSqlServerTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-07-15-preview/definitions/ValidateMigrationInputSqlServerSqlMiSyncTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/datamigration.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/Common.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/ConnectToSourceSqlServerTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/ConnectToTargetSqlDbTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/ConnectToTargetSqlMITask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/GetUserTablesSqlTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/MigrateSqlServerSqlDbTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/MigrateSqlServerSqlMITask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/Projects.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/Services.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/Tasks.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/TasksCommon.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/MigrationValidation.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-31-preview/definitions/ValidateMigrationInputSqlServerSqlMITask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/datamigration.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/Common.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/ConnectToSourceSqlServerTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/ConnectToTargetSqlDbTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/ConnectToTargetSqlMITask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/GetUserTablesSqlTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/MigrateSqlServerSqlDbTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/MigrateSqlServerSqlMITask.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/Projects.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/Services.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/Tasks.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/TasksCommon.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/MigrationValidation.json + - $(this-folder)/Microsoft.DataMigration/preview/2018-03-15-preview/definitions/ValidateMigrationInputSqlServerSqlMITask.json + - $(this-folder)/Microsoft.DataMigration/preview/2017-11-15-preview/datamigration.json + - $(this-folder)/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/Common.json + - $(this-folder)/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/ConnectToSourceSqlServerTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/ConnectToTargetSqlDbTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/GetUserTablesSqlTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/MigrateSqlServerSqlDbTask.json + - $(this-folder)/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/Projects.json + - $(this-folder)/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/Services.json + - $(this-folder)/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/Tasks.json + - $(this-folder)/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/TasksCommon.json + - $(this-folder)/Microsoft.DataMigration/preview/2017-11-15-preview/definitions/MigrationValidation.json -``` yaml $(tag) == 'package-2017-11-15-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.azuredatabasemigrationservice.v2017_11_15_preview - output-folder: $(azure-libraries-for-java-folder)/azuredatabasemigrationservice/resource-manager/v2017_11_15_preview -regenerate-manager: true -generate-interface: true ``` -### Tag: package-2018-03-31-preview and java +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. -These settings apply only when `--tag=package-2018-03-31-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2018-03-31-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.azuredatabasemigrationservice.v2018_03_31_preview - output-folder: $(azure-libraries-for-java-folder)/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview -regenerate-manager: true -generate-interface: true +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json ``` - diff --git a/specification/datamigration/resource-manager/readme.typescript.md b/specification/datamigration/resource-manager/readme.typescript.md index 86dcd424b9c7..b43aa2c0f365 100644 --- a/specification/datamigration/resource-manager/readme.typescript.md +++ b/specification/datamigration/resource-manager/readme.typescript.md @@ -7,6 +7,6 @@ Please also specify `--typescript-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-11-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/datashare/mgmt/2018-11-01-preview/$(namespace) +``` \ No newline at end of file diff --git a/specification/datashare/resource-manager/readme.md b/specification/datashare/resource-manager/readme.md new file mode 100644 index 000000000000..5943db1b4950 --- /dev/null +++ b/specification/datashare/resource-manager/readme.md @@ -0,0 +1,128 @@ +# DataShare + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for DataShare. + + + +--- +## Getting Started +To build the SDK for DataShare, 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 DataShare API. + +``` yaml +openapi-type: arm +tag: package-2018-11-01-preview +``` + + +### Tag: package-2018-11-01-preview + +These settings apply only when `--tag=package-2018-11-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2018-11-01-preview' +input-file: +- Microsoft.DataShare/preview/2018-11-01-preview/DataShare.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-net + - repo: azure-sdk-for-python + - repo: azure-sdk-for-go +``` + + +## 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.Management.DataShare + output-folder: $(csharp-sdks-folder)/datashare/Microsoft.Azure.Management.DataShare/src/Generated + 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.DataShare + package-name: azure-mgmt-DataShare + clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt-DataShare/azure/mgmt/DataShare +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/azure-mgmt-DataShare +``` + + +## Go + +See configuration in [readme.go.md](./readme.go.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.DataShare/preview/2018-11-01-preview/DataShare.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/deploymentmanager/resource-manager/readme.md b/specification/deploymentmanager/resource-manager/readme.md index f6a785bb254e..d3e274de3163 100644 --- a/specification/deploymentmanager/resource-manager/readme.md +++ b/specification/deploymentmanager/resource-manager/readme.md @@ -75,6 +75,7 @@ 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 @@ -166,3 +167,28 @@ java: regenerate-manager: true generate-interface: 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)/Microsoft.DeploymentManager/preview/2018-09-01-preview/deploymentmanager.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/deviceprovisioningservices/resource-manager/readme.md b/specification/deviceprovisioningservices/resource-manager/readme.md index 34a7848ff58a..18155cc20851 100644 --- a/specification/deviceprovisioningservices/resource-manager/readme.md +++ b/specification/deviceprovisioningservices/resource-manager/readme.md @@ -65,6 +65,7 @@ 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 @@ -181,3 +182,30 @@ generate-interface: 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)/Microsoft.Devices/preview/2017-08-21-preview/iotdps.json + - $(this-folder)/Microsoft.Devices/stable/2017-11-15/iotdps.json + - $(this-folder)/Microsoft.Devices/stable/2018-01-22/iotdps.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/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/devops.json b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/devops.json new file mode 100644 index 000000000000..45b65c921dd3 --- /dev/null +++ b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/devops.json @@ -0,0 +1,870 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure DevOps", + "description": "Azure DevOps Resource Provider", + "version": "2019-07-01-preview", + "x-ms-code-generation-settings": { + "name": "DevOpsClient" + } + }, + "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.DevOps/operations": { + "get": { + "operationId": "Operations_List", + "description": "Lists all the operations supported by Microsoft.DevOps resource provider.", + "tags": [ + "Operations" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The list of supported operations has been fetched successfully.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get a list of operations supported by Microsoft.DevOps resource provider": { + "$ref": "./examples/ListOperations.json" + } + } + } + }, + "/providers/Microsoft.DevOps/pipelineTemplateDefinitions": { + "get": { + "tags": [ + "PipelineTemplateDefinitions" + ], + "operationId": "PipelineTemplateDefinitions_List", + "description": "Lists all pipeline templates which can be used to configure an Azure Pipeline.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "The pipeline template definitions have been fetched successfully.", + "schema": { + "$ref": "#/definitions/PipelineTemplateDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get the list of pipeline template definitions": { + "$ref": "./examples/ListPipelineTemplateDefinitions.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOps/pipelines/{pipelineName}": { + "put": { + "operationId": "Pipelines_CreateOrUpdate", + "description": "Creates or updates an Azure Pipeline.", + "tags": [ + "Pipelines" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "pipelineName", + "description": "The name of the Azure Pipeline resource in ARM.", + "in": "path", + "type": "string", + "required": true, + "x-ms-parameter-location": "method" + }, + { + "name": "createOperationParameters", + "description": "The request payload to create the Azure Pipeline.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Pipeline" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing and the Azure Pipeline will be configured asynchronously." + }, + "200": { + "description": "The Azure Pipeline has been configured successfully.", + "schema": { + "$ref": "#/definitions/Pipeline" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create an Azure pipeline to deploy a sample ASP.Net application to Azure web-app": { + "$ref": "./examples/CreateAzurePipeline-Sample-AspNet-WindowsWebApp.json" + } + } + }, + "get": { + "operationId": "Pipelines_Get", + "description": "Gets an existing Azure Pipeline.", + "tags": [ + "Pipelines" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "pipelineName", + "description": "The name of the Azure Pipeline resource in ARM.", + "in": "path", + "type": "string", + "required": true, + "x-ms-parameter-location": "method" + } + ], + "responses": { + "200": { + "description": "The Azure Pipeline has been fetched successfully.", + "schema": { + "$ref": "#/definitions/Pipeline" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get an existing Azure pipeline": { + "$ref": "./examples/GetAzurePipeline.json" + } + } + }, + "patch": { + "operationId": "Pipelines_Update", + "description": "Updates the properties of an Azure Pipeline. Currently, only tags can be updated.", + "tags": [ + "Pipelines" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "pipelineName", + "description": "The name of the Azure Pipeline resource.", + "in": "path", + "type": "string", + "required": true, + "x-ms-parameter-location": "method" + }, + { + "name": "updateOperationParameters", + "description": "The request payload containing the properties to update in the Azure Pipeline.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PipelineUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The Azure Pipeline has been updated successfully.", + "schema": { + "$ref": "#/definitions/Pipeline" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get an existing Azure pipeline": { + "$ref": "./examples/UpdateAzurePipeline.json" + } + } + }, + "delete": { + "operationId": "Pipelines_Delete", + "description": "Deletes an Azure Pipeline.", + "tags": [ + "Pipelines" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "pipelineName", + "description": "The name of the Azure Pipeline resource.", + "in": "path", + "type": "string", + "required": true, + "x-ms-parameter-location": "method" + } + ], + "responses": { + "200": { + "description": "The Azure Pipeline has been deleted successfully." + }, + "204": { + "description": "The Azure Pipeline is not found or has been deleted already." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get an existing Azure pipeline": { + "$ref": "./examples/DeleteAzurePipeline.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOps/pipelines": { + "get": { + "operationId": "Pipelines_ListByResourceGroup", + "description": "Lists all Azure Pipelines under the specified resource group.", + "tags": [ + "Pipelines" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Azure Pipelines have been fetched successfully.", + "schema": { + "$ref": "#/definitions/PipelineListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all Azure Pipelines under the specified resource group": { + "$ref": "./examples/ListAzurePipelinesByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DevOps/pipelines": { + "get": { + "operationId": "Pipelines_ListBySubscription", + "description": "Lists all Azure Pipelines under the specified subscription.", + "tags": [ + "Pipelines" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Azure Pipelines have been fetched successfully.", + "schema": { + "$ref": "#/definitions/PipelineListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all Azure pipelines under the specified subscription": { + "$ref": "./examples/ListAzurePipelinesBySubscription.json" + } + } + } + } + }, + "definitions": { + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "description": "Details of the error from the Pipelines Resource Provider.", + "$ref": "#/definitions/CloudErrorBody" + } + }, + "description": "An error response from the Pipelines Resource Provider." + }, + "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 or the method where the error occurred." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from the Pipelines Resource Provider." + }, + "OperationListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of operations supported by Microsoft.DevOps resource provider." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of operations, if there are any." + } + }, + "description": "Result of a request to list all operations supported by Microsoft.DevOps resource provider." + }, + "Operation": { + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "Name of the operation." + }, + "isDataAction": { + "type": "string", + "description": "Indicates whether the operation applies to data-plane." + }, + "display": { + "description": "Display information of the operation.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/OperationDisplayValue" + } + }, + "description": "Properties of an Operation." + }, + "OperationDisplayValue": { + "properties": { + "operation": { + "type": "string", + "readOnly": true, + "description": "Friendly name of the operation." + }, + "resource": { + "type": "string", + "readOnly": true, + "description": "Friendly name of the resource type the operation applies to." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "Friendly description of the operation." + }, + "provider": { + "type": "string", + "readOnly": true, + "description": "Friendly name of the resource provider." + } + }, + "description": "Display information of an operation." + }, + "PipelineTemplateDefinitionListResult": { + "type": "object", + "description": "Result of a request to list all pipeline template definitions.", + "properties": { + "value": { + "description": "List of pipeline template definitions.", + "type": "array", + "items": { + "$ref": "#/definitions/PipelineTemplateDefinition" + } + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of pipeline template definitions, if there are any." + } + } + }, + "PipelineTemplateDefinition": { + "type": "object", + "description": "Definition of a pipeline template.", + "properties": { + "id": { + "description": "Unique identifier of the pipeline template.", + "type": "string" + }, + "description": { + "description": "Description of the pipeline enabled by the template.", + "type": "string" + }, + "inputs": { + "description": "List of input parameters required by the template to create a pipeline.", + "type": "array", + "items": { + "$ref": "#/definitions/InputDescriptor" + } + } + }, + "required": [ + "id" + ] + }, + "InputDescriptor": { + "type": "object", + "description": "Representation of a pipeline template input parameter.", + "properties": { + "id": { + "description": "Identifier of the input parameter.", + "type": "string" + }, + "description": { + "description": "Description of the input parameter.", + "type": "string" + }, + "type": { + "description": "Data type of the value of the input parameter.", + "type": "string", + "enum": [ + "String", + "SecureString", + "Int", + "Bool", + "Authorization" + ], + "x-ms-enum": { + "name": "InputDataType", + "modelAsString": true + } + }, + "possibleValues": { + "description": "List of possible values for the input parameter.", + "type": "array", + "items": { + "$ref": "#/definitions/InputValue" + } + } + }, + "required": [ + "id", + "type" + ] + }, + "InputValue": { + "type": "object", + "description": "Representation of a pipeline template input parameter value.", + "properties": { + "value": { + "description": "Value of an input parameter.", + "type": "string" + }, + "displayValue": { + "description": "Description of the input parameter value.", + "type": "string" + } + } + }, + "Pipeline": { + "type": "object", + "description": "Azure DevOps Pipeline used to configure Continuous Integration (CI) & Continuous Delivery (CD) for Azure resources.", + "properties": { + "properties": { + "$ref": "#/definitions/PipelineProperties", + "description": "Custom properties of the Pipeline.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "required": [ + "properties" + ] + }, + "PipelineProperties": { + "type": "object", + "description": "Custom properties of a Pipeline.", + "properties": { + "pipelineId": { + "type": "integer", + "readOnly": true, + "description": "Unique identifier of the Azure Pipeline within the Azure DevOps Project." + }, + "organization": { + "$ref": "#/definitions/OrganizationReference", + "description": "Reference to the Azure DevOps Organization containing the Pipeline." + }, + "project": { + "$ref": "#/definitions/ProjectReference", + "description": "Reference to the Azure DevOps Project containing the Pipeline." + }, + "bootstrapConfiguration": { + "$ref": "#/definitions/BootstrapConfiguration", + "description": "Configuration used to bootstrap the Pipeline." + } + }, + "required": [ + "organization", + "project", + "bootstrapConfiguration" + ] + }, + "OrganizationReference": { + "type": "object", + "description": "Reference to an Azure DevOps Organization.", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Unique immutable identifier for the Azure DevOps Organization." + }, + "name": { + "type": "string", + "description": "Name of the Azure DevOps Organization." + } + }, + "required": [ + "name" + ] + }, + "ProjectReference": { + "type": "object", + "description": "Reference to an Azure DevOps Project.", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Unique immutable identifier of the Azure DevOps Project." + }, + "name": { + "type": "string", + "description": "Name of the Azure DevOps Project." + } + }, + "required": [ + "name" + ] + }, + "BootstrapConfiguration": { + "type": "object", + "description": "Configuration used to bootstrap a Pipeline.", + "properties": { + "repository": { + "$ref": "#/definitions/CodeRepository", + "description": "Repository containing the source code for the pipeline." + }, + "template": { + "$ref": "#/definitions/PipelineTemplate", + "description": "Template used to bootstrap the pipeline." + } + }, + "required": [ + "template" + ] + }, + "CodeRepository": { + "type": "object", + "description": "Repository containing the source code for a pipeline.", + "properties": { + "repositoryType": { + "description": "Type of code repository.", + "type": "string", + "enum": [ + "gitHub", + "vstsGit" + ], + "x-ms-enum": { + "name": "CodeRepositoryType", + "modelAsString": true + } + }, + "id": { + "description": "Unique immutable identifier of the code repository.", + "type": "string" + }, + "defaultBranch": { + "description": "Default branch used to configure Continuous Integration (CI) in the pipeline.", + "type": "string" + }, + "authorization": { + "description": "Authorization info to access the code repository.", + "$ref": "#/definitions/Authorization" + }, + "properties": { + "description": "Repository-specific properties.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-client-flatten": true + } + }, + "required": [ + "repositoryType", + "id", + "defaultBranch" + ] + }, + "Authorization": { + "description": "Authorization info used to access a resource (like code repository).", + "type": "object", + "properties": { + "authorizationType": { + "description": "Type of authorization.", + "type": "string", + "enum": [ + "personalAccessToken" + ], + "x-ms-enum": { + "name": "AuthorizationType", + "modelAsString": true + } + }, + "parameters": { + "description": "Authorization parameters corresponding to the authorization type.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "required": [ + "authorizationType" + ] + }, + "PipelineTemplate": { + "type": "object", + "description": "Template used to bootstrap the pipeline.", + "properties": { + "id": { + "type": "string", + "description": "Unique identifier of the pipeline template." + }, + "parameters": { + "type": "object", + "description": "Dictionary of input parameters used in the pipeline template.", + "additionalProperties": { + "type": "string" + } + } + }, + "required": [ + "id" + ] + }, + "Resource": { + "type": "object", + "description": "An Azure Resource Manager (ARM) resource.", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource Type" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource Tags" + }, + "location": { + "type": "string", + "description": "Resource Location" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource Name" + } + }, + "x-ms-azure-resource": true + }, + "PipelineUpdateParameters": { + "type": "object", + "description": "Request payload used to update an existing Azure Pipeline.", + "properties": { + "tags": { + "type": "object", + "description": "Dictionary of key-value pairs to be set as tags on the Azure Pipeline. This will overwrite any existing tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "PipelineListResult": { + "description": "Result of a request to list all Azure Pipelines under a given scope.", + "properties": { + "value": { + "description": "List of pipelines.", + "type": "array", + "items": { + "$ref": "#/definitions/Pipeline" + } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of Pipelines, if there are any." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Unique identifier of the Azure subscription. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the resource group within the Azure subscription.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "API version to be used with the HTTP request." + } + } +} diff --git a/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/CreateAzurePipeline-Sample-AspNet-WindowsWebApp.json b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/CreateAzurePipeline-Sample-AspNet-WindowsWebApp.json new file mode 100644 index 000000000000..0a6934d91396 --- /dev/null +++ b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/CreateAzurePipeline-Sample-AspNet-WindowsWebApp.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myAspNetWebAppPipeline-rg", + "pipelineName": "myAspNetWebAppPipeline", + "api-version": "2019-07-01-preview", + "createOperationParameters": { + "location": "South India", + "tags": {}, + "properties": { + "organization": { + "name": "myAspNetWebAppPipeline-org" + }, + "project": { + "name": "myAspNetWebAppPipeline-project" + }, + "bootstrapConfiguration": { + "template": { + "id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp", + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroup": "myAspNetWebAppPipeline-rg", + "webAppName": "myAspNetWebApp", + "location": "South India", + "appServicePlan": "S1 Standard", + "appInsightLocation": "South India", + "azureAuth": "{\"scheme\":\"ServicePrincipal\",\"parameters\":{\"tenantid\":\"{subscriptionTenantId}\",\"objectid\":\"{appObjectId}\",\"serviceprincipalid\":\"{appId}\",\"serviceprincipalkey\":\"{appSecret}\"}}" + } + } + } + } + } + }, + "responses": { + "202": { + "description": "The request has been accepted for processing and the Azure Pipeline will be configured asynchronously.", + "headers": { + "location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/myAspNetWebAppPipeline-rg/providers/Microsoft.DevOps/pipelines/myAspNetWebAppPipeline/operations/{operationId}", + "retry-after": "5" + } + }, + "200": { + "description": "The Azure Pipeline has been configured successfully.", + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myAspNetWebAppPipeline-rg/providers/Microsoft.DevOps/pipelines/myAspNetWebAppPipeline", + "name": "myAspNetWebAppPipeline", + "type": "Microsoft.DevOps/pipelines", + "location": "South India", + "properties": { + "organization": { + "name": "myAspNetWebAppPipeline-org" + }, + "project": { + "name": "myAspNetWebAppPipeline-project" + }, + "bootstrapConfiguration": { + "template": { + "id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp", + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroup": "myAspNetWebAppPipeline-rg", + "webAppName": "myAspNetWebApp", + "location": "South India", + "appServicePlan": "S1 Standard", + "appInsightLocation": "South India", + "azureAuth": null + } + } + } + } + } + } + } +} diff --git a/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/DeleteAzurePipeline.json b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/DeleteAzurePipeline.json new file mode 100644 index 000000000000..87a96b97812a --- /dev/null +++ b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/DeleteAzurePipeline.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myAspNetWebAppPipeline-rg", + "pipelineName": "myAspNetWebAppPipeline", + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": { + "description": "The Azure Pipeline has been deleted successfully." + }, + "204": { + "description": "The Azure Pipeline is not found or has been deleted already." + } + } +} diff --git a/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/GetAzurePipeline.json b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/GetAzurePipeline.json new file mode 100644 index 000000000000..e76aa49aeca0 --- /dev/null +++ b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/GetAzurePipeline.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myAspNetWebAppPipeline-rg", + "pipelineName": "myAspNetWebAppPipeline", + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": { + "description": "The Azure Pipeline has been configured successfully.", + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myAspNetWebAppPipeline-rg/providers/Microsoft.DevOps/pipelines/myAspNetWebAppPipeline", + "name": "myAspNetWebAppPipeline", + "type": "Microsoft.DevOps/pipelines", + "location": "South India", + "properties": { + "organization": { + "name": "myAspNetWebAppPipeline-org" + }, + "project": { + "name": "myAspNetWebAppPipeline-project" + }, + "bootstrapConfiguration": { + "template": { + "id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp", + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroup": "myAspNetWebAppPipeline-rg", + "webAppName": "myAspNetWebApp", + "location": "South India", + "appServicePlan": "S1 Standard", + "appInsightLocation": "South India", + "azureAuth": null + } + } + } + } + } + } + } +} diff --git a/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListAzurePipelinesByResourceGroup.json b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListAzurePipelinesByResourceGroup.json new file mode 100644 index 000000000000..e6b20a3bc65c --- /dev/null +++ b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListAzurePipelinesByResourceGroup.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myAspNetWebAppPipeline-rg", + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": { + "description": "The Azure Pipelines has been fetched successfully.", + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myAspNetWebAppPipeline-rg/providers/Microsoft.DevOps/pipelines/myAspNetWebAppPipeline", + "name": "myAspNetWebAppPipeline", + "type": "Microsoft.DevOps/pipelines", + "location": "South India", + "properties": { + "organization": { + "name": "myAspNetWebAppPipeline-org" + }, + "project": { + "name": "myAspNetWebAppPipeline-project" + }, + "bootstrapConfiguration": { + "template": { + "id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp", + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroup": "myAspNetWebAppPipeline-rg", + "webAppName": "myAspNetWebApp", + "location": "South India", + "appServicePlan": "S1 Standard", + "appInsightLocation": "South India", + "azureAuth": null + } + } + } + } + } + ] + } + } + } +} diff --git a/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListAzurePipelinesBySubscription.json b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListAzurePipelinesBySubscription.json new file mode 100644 index 000000000000..f4efc388d643 --- /dev/null +++ b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListAzurePipelinesBySubscription.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": { + "description": "The Azure Pipelines have been fetched successfully.", + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myAspNetWebAppPipeline-rg/providers/Microsoft.DevOps/pipelines/myAspNetWebAppPipeline", + "name": "myAspNetWebAppPipeline", + "type": "Microsoft.DevOps/pipelines", + "location": "South India", + "properties": { + "organization": { + "name": "myAspNetWebAppPipeline-org" + }, + "project": { + "name": "myAspNetWebAppPipeline-project" + }, + "bootstrapConfiguration": { + "template": { + "id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp", + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroup": "myAspNetWebAppPipeline-rg", + "webAppName": "myAspNetWebApp", + "location": "South India", + "appServicePlan": "S1 Standard", + "appInsightLocation": "South India", + "azureAuth": null + } + } + } + } + }, + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myAspNetWebAppPipeline-rg1/providers/Microsoft.DevOps/pipelines/myAspNetWebAppPipeline1", + "name": "myAspNetWebAppPipeline1", + "type": "Microsoft.DevOps/pipelines", + "location": "South India", + "properties": { + "organization": { + "name": "myAspNetWebAppPipeline-org1" + }, + "project": { + "name": "myAspNetWebAppPipeline-project1" + }, + "bootstrapConfiguration": { + "template": { + "id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp", + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroup": "myAspNetWebAppPipeline-rg", + "webAppName": "myAspNetWebApp", + "location": "South India", + "appServicePlan": "S1 Standard", + "appInsightLocation": "South India", + "azureAuth": null + } + } + } + } + } + ] + } + } + } +} diff --git a/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListOperations.json b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListOperations.json new file mode 100644 index 000000000000..94b99e0ce784 --- /dev/null +++ b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListOperations.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": { + "description": "The list of supported operations has been fetched successfully.", + "body": { + "value": [ + { + "name": "Microsoft.DevOps/register/action", + "isDataAction": "false", + "display": { + "provider": "Microsoft DevOps", + "resource": "register", + "operation": "Register for Microsoft.DevOps", + "description": "Registers the specified subscription with Microsoft.DevOps resource provider and enables the creation of Pipelines" + } + }, + { + "name": "Microsoft.DevOps/pipelines/write", + "isDataAction": "false", + "display": { + "provider": "Microsoft DevOps", + "resource": "Pipelines", + "operation": "Create or Update Pipeline", + "description": "Creates or Updates any Pipeline" + } + }, + { + "name": "Microsoft.DevOps/pipelines/read", + "isDataAction": "false", + "display": { + "provider": "Microsoft DevOps", + "resource": "Pipelines", + "operation": "Read Pipeline", + "description": "Reads any Pipeline" + } + }, + { + "name": "Microsoft.DevOps/pipelines/delete", + "isDataAction": "false", + "display": { + "provider": "Microsoft DevOps", + "resource": "Pipelines", + "operation": "Delete Pipeline", + "description": "Deletes any Pipeline" + } + }, + { + "name": "Microsoft.DevOps/pipelineTemplateDefinitions/read", + "isDataAction": "false", + "display": { + "provider": "Microsoft DevOps", + "resource": "PipelineTemplateDefinitions", + "operation": "Read PipelineTemplateDefinition", + "description": "Reads any PipelineTemplateDefinition" + } + } + ] + } + } + } +} diff --git a/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListPipelineTemplateDefinitions.json b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListPipelineTemplateDefinitions.json new file mode 100644 index 000000000000..75e8bfc6863f --- /dev/null +++ b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/ListPipelineTemplateDefinitions.json @@ -0,0 +1,107 @@ +{ + "parameters": { + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": { + "description": "The pipeline template definitions have been fetched successfully.", + "body": { + "value": [ + { + "id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp", + "description": "Template for configuring CI/CD pipeline for ASP.Net app on Azure windows app service", + "inputs": [ + { + "id": "azureAuth", + "description": "Authorization for Azure ARM endpoints.", + "type": "String", + "possibleValues": [] + }, + { + "id": "subscriptionId", + "description": "Id of subscription where azure resources will be created.", + "type": "String", + "possibleValues": [] + }, + { + "id": "resourceGroup", + "description": "A resource group is a collection of resources that share the same lifecycle, permissions, and policies. Name of resource group which should contain web app.", + "type": "String", + "possibleValues": [] + }, + { + "id": "webAppName", + "description": "Name of web app to be created", + "type": "String", + "possibleValues": [] + }, + { + "id": "location", + "description": "Choose the Azure region that's right for you and your customers.", + "type": "String", + "possibleValues": [] + }, + { + "id": "appServicePlan", + "description": "Details of cost and compute resource associated with the web app", + "type": "String", + "possibleValues": [ + { + "value": "P1 Premium", + "displayValue": "P1 Premium (1 Core, 1.75 GB RAM)" + }, + { + "value": "P2 Premium", + "displayValue": "P2 Premium (2 Core, 3.5 GB RAM)" + }, + { + "value": "P3 Premium", + "displayValue": "P3 Premium (4 Core, 7 GB RAM)" + }, + { + "value": "S1 Standard", + "displayValue": "S1 Standard (1 Core, 1.75 GB RAM)" + }, + { + "value": "S2 Standard", + "displayValue": "S2 Standard (2 Core, 3.5 GB RAM)" + }, + { + "value": "S3 Standard", + "displayValue": "S3 Standard (4 Core, 7 GB RAM)" + }, + { + "value": "B1 Basic", + "displayValue": "B1 Basic (1 Core, 1.75 GB RAM)" + }, + { + "value": "B2 Basic", + "displayValue": "B2 Basic (2 Core, 3.5 GB RAM)" + }, + { + "value": "B3 Basic", + "displayValue": "B3 Basic (4 Core, 7 GB RAM)" + }, + { + "value": "F1 Free", + "displayValue": "F1 Free" + }, + { + "value": "D1 Shared", + "displayValue": "D1 Shared" + } + ] + }, + { + "id": "appInsightLocation", + "description": "Collect application monitoring data using Application Insights.", + "type": "String", + "possibleValues": [] + } + ] + } + ] + } + } + } +} diff --git a/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/UpdateAzurePipeline.json b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/UpdateAzurePipeline.json new file mode 100644 index 000000000000..e43c73c93596 --- /dev/null +++ b/specification/devops/resource-manager/Microsoft.DevOps/preview/2019-07-01-preview/examples/UpdateAzurePipeline.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myAspNetWebAppPipeline-rg", + "pipelineName": "myAspNetWebAppPipeline", + "api-version": "2019-07-01-preview", + "updateOperationParameters": { + "tags": { + "tagKey": "tagvalue" + } + } + }, + "responses": { + "200": { + "description": "The Azure Pipeline has been updated successfully.", + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myAspNetWebAppPipeline-rg/providers/Microsoft.DevOps/pipelines/myAspNetWebAppPipeline", + "name": "myAspNetWebAppPipeline", + "type": "Microsoft.DevOps/pipelines", + "location": "South India", + "tags": { + "tagKey": "tagvalue" + }, + "properties": { + "organization": { + "name": "myAspNetWebAppPipeline-org" + }, + "project": { + "name": "myAspNetWebAppPipeline-project" + }, + "bootstrapConfiguration": { + "template": { + "id": "ms.vss-continuous-delivery-pipeline-templates.aspnet-windowswebapp", + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroup": "myAspNetWebAppPipeline-rg", + "webAppName": "myAspNetWebApp", + "location": "South India", + "appServicePlan": "S1 Standard", + "appInsightLocation": "South India", + "azureAuth": null + } + } + } + } + } + } + } +} diff --git a/specification/devops/resource-manager/readme.csharp.md b/specification/devops/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..e57eee4b0e72 --- /dev/null +++ b/specification/devops/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.Azure.Management.DevOps + output-folder: $(csharp-sdks-folder)/devops/Microsoft.Azure.Management.DevOps/src/Generated +``` diff --git a/specification/devops/resource-manager/readme.go.md b/specification/devops/resource-manager/readme.go.md new file mode 100644 index 000000000000..70edb4ea11ce --- /dev/null +++ b/specification/devops/resource-manager/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: devops + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2019-07-01-preview +``` + +### Tag: package-2019-07-01-preview and go + +These settings apply only when `--tag=package-2019-07-01-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +```yaml $(tag) == 'package-2019-07-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-07-01-preview/$(namespace) +``` diff --git a/specification/devops/resource-manager/readme.md b/specification/devops/resource-manager/readme.md new file mode 100644 index 000000000000..f534d4c2d21b --- /dev/null +++ b/specification/devops/resource-manager/readme.md @@ -0,0 +1,105 @@ +# devops + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for devops. + +## 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 devops. + +```yaml +openapi-type: arm +tag: package-2019-07-01-preview +``` + +### Tag: package-2019-07-01-preview + +These settings apply only when `--tag=package-2019-07-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2019-07-01-preview' +input-file: + - Microsoft.DevOps/preview/2019-07-01-preview/devops.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-net + - 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_devops'] +``` + +## 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.DevOps/preview/2019-07-01-preview/devops.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/devops/resource-manager/readme.python.md b/specification/devops/resource-manager/readme.python.md new file mode 100644 index 000000000000..d8329e41d90e --- /dev/null +++ b/specification/devops/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: azure.mgmt.devops + package-name: azure-mgmt-devops + package-version: 2019-07-01-preview + clear-output-folder: true +``` + +```yaml $(python) +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/devops/azure-mgmt-devops/azure/mgmt/devops +``` diff --git a/specification/devops/resource-manager/readme.ruby.md b/specification/devops/resource-manager/readme.ruby.md new file mode 100644 index 000000000000..3522830affc4 --- /dev/null +++ b/specification/devops/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_devops +package-version: 2019-07-01-preview +azure-arm: true +``` + +### Tag: package-2019-07-01-preview and ruby + +These settings apply only when `--tag=package-2019-07-01-preview --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +```yaml $(tag) == 'package-2019-07-01-preview' && $(ruby) +namespace: Azure::DevOps::Mgmt::V2019_07_01_preview +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_devops/lib +``` diff --git a/specification/devops/resource-manager/readme.typescript.md b/specification/devops/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..e6d6211f234a --- /dev/null +++ b/specification/devops/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-devops" + output-folder: "$(typescript-sdks-folder)/sdk/devops/arm-devops" + payload-flattening-threshold: 1 + generate-metadata: true +``` diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/devspaces.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/devspaces.json deleted file mode 100644 index a39810c4acb0..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/devspaces.json +++ /dev/null @@ -1,789 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2018-06-01-preview", - "title": "DevSpacesManagement", - "description": "Dev Spaces REST API" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/providers/Microsoft.DevSpaces/locations/{location}/checkContainerHostMapping": { - "post": { - "tags": [ - "ContainerHostMappings" - ], - "summary": "Returns container host mapping object for a container host resource ID if an associated controller exists.", - "operationId": "ContainerHostMappings_GetContainerHostMapping", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "containerHostMapping", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContainerHostMapping" - } - }, - { - "name": "location", - "in": "path", - "description": "Location of the container host.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": {} - } - }, - "x-ms-examples": { - "ContainerHostMappingsGetContainerHostMapping": { - "$ref": "./examples/ContainerHostMappingsGetContainerHostMapping_example.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}": { - "get": { - "tags": [ - "Controllers" - ], - "summary": "Gets an Azure Dev Spaces Controller.", - "description": "Gets the properties for an Azure Dev Spaces Controller.", - "operationId": "Controllers_Get", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/NameParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the Azure Dev Spaces Controller.", - "schema": { - "$ref": "#/definitions/Controller" - } - }, - "default": { - "description": "Error response describing the reason for operation failure. 404 - NotFound(Azure Dev Spaces Controller doesn't exist.)", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersGet": { - "$ref": "./examples/ControllersGet_example.json" - } - } - }, - "put": { - "tags": [ - "Controllers" - ], - "summary": "Creates an Azure Dev Spaces Controller.", - "description": "Creates an Azure Dev Spaces Controller with the specified create parameters.", - "operationId": "Controllers_Create", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/NameParameter" - }, - { - "name": "controller", - "in": "body", - "description": "Controller create parameters.", - "required": true, - "schema": { - "$ref": "#/definitions/Controller" - } - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the created Azure Dev Spaces Controller .", - "schema": { - "$ref": "#/definitions/Controller" - } - }, - "201": { - "description": "The request was successful; Azure Dev Spaces Controller is being created.", - "schema": { - "$ref": "#/definitions/Controller" - } - }, - "default": { - "description": "Error response describing the reason for operation failure. 404 - NotFound(Azure Dev Spaces Controller doesn't exist.), 400 - BadRequest(One or more creation parameters are invalid.)", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersCreate": { - "$ref": "./examples/ControllersCreate_example.json" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "Controllers" - ], - "summary": "Deletes an Azure Dev Spaces Controller.", - "description": "Deletes an existing Azure Dev Spaces Controller.", - "operationId": "Controllers_Delete", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/NameParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; the Azure Dev Spaces Controller is deleted." - }, - "202": { - "description": "The request was successful; Azure Dev Spaces Controller is being deleted." - }, - "204": { - "description": "The request was successful; Azure Dev Spaces Controller does not exist." - }, - "default": { - "description": "Error response describing the reason for operation failure. 409 - Conflict(Azure Dev Spaces Controller is already getting deleted.)", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersDelete": { - "$ref": "./examples/ControllersDelete_example.json" - } - }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "Controllers" - ], - "summary": "Updates an Azure Dev Spaces Controller.", - "description": "Updates the properties of an existing Azure Dev Spaces Controller with the specified update parameters.", - "operationId": "Controllers_Update", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/NameParameter" - }, - { - "name": "controllerUpdateParameters", - "in": "body", - "description": "Parameters for updating the Azure Dev Spaces Controller.", - "required": true, - "schema": { - "$ref": "#/definitions/ControllerUpdateParameters" - } - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the updated Azure Dev Spaces Controller .", - "schema": { - "$ref": "#/definitions/Controller" - } - }, - "default": { - "description": "Error response describing the reason for operation failure. 404 - NotFound(Azure Dev Spaces Controller doesn't exist.), 400 - BadRequest(One or more update parameters are invalid.)", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersUpdate": { - "$ref": "./examples/ControllersUpdate_example.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers": { - "get": { - "tags": [ - "Controllers" - ], - "summary": "Lists the Azure Dev Spaces Controllers in a resource group.", - "description": "Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and subscription.", - "operationId": "Controllers_ListByResourceGroup", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the list of Azure Dev Spaces Controllers in the resource group.", - "schema": { - "$ref": "#/definitions/ControllerList" - } - }, - "default": { - "description": "Error response describing the reason for operation failure.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersListByResourceGroup": { - "$ref": "./examples/ControllersListByResourceGroup_example.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevSpaces/controllers": { - "get": { - "tags": [ - "Controllers" - ], - "summary": "Lists the Azure Dev Spaces Controllers in a subscription.", - "description": "Lists all the Azure Dev Spaces Controllers with their properties in the subscription.", - "operationId": "Controllers_List", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the list of Azure Dev Spaces Controllers in the subscription.", - "schema": { - "$ref": "#/definitions/ControllerList" - } - }, - "default": { - "description": "Error response describing the reason for operation failure.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersList": { - "$ref": "./examples/ControllersList_example.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}/listConnectionDetails": { - "post": { - "tags": [ - "Controllers" - ], - "summary": "Lists connection details for an Azure Dev Spaces Controller.", - "description": "Lists connection details for the underlying container resources of an Azure Dev Spaces Controller.", - "operationId": "Controllers_ListConnectionDetails", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/NameParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the list of connection details for the Azure Dev Spaces Controller .", - "schema": { - "$ref": "#/definitions/ControllerConnectionDetailsList" - } - }, - "default": { - "description": "Error response describing the reason for operation failure. 404 - NotFound(Azure Dev Spaces Controller doesn't exist.)", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersListConnectionDetails": { - "$ref": "./examples/ControllersListConnectionDetails_example.json" - } - } - } - }, - "/providers/Microsoft.DevSpaces/operations": { - "get": { - "tags": [ - "Operations" - ], - "summary": "Lists operations for the resource provider.", - "description": "Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their description.", - "operationId": "Operations_List", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the list of operations under Microsoft.DevSpaces resource provider.", - "schema": { - "$ref": "#/definitions/ResourceProviderOperationList" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "ContainerHostMapping": { - "description": "Container host mapping object specifying the Container host resource ID and its associated Controller resource.", - "properties": { - "containerHostResourceId": { - "description": "ARM ID of the Container Host resource", - "type": "string" - }, - "mappedControllerResourceId": { - "description": "ARM ID of the mapped Controller resource", - "type": "string", - "readOnly": true - } - } - }, - "Controller": { - "required": [ - "properties", - "sku", - "location" - ], - "allOf": [ - { - "$ref": "#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ControllerProperties", - "x-ms-client-flatten": true - }, - "sku": { - "$ref": "#/definitions/Sku" - } - } - }, - "ControllerProperties": { - "required": [ - "hostSuffix", - "targetContainerHostResourceId", - "targetContainerHostCredentialsBase64" - ], - "properties": { - "provisioningState": { - "description": "Provisioning state of the Azure Dev Spaces Controller.", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Updating", - "Creating", - "Deleting", - "Deleted" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - }, - "hostSuffix": { - "description": "DNS suffix for public endpoints running in the Azure Dev Spaces Controller.", - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "dataPlaneFqdn": { - "description": "DNS name for accessing DataPlane services", - "type": "string", - "readOnly": true - }, - "targetContainerHostResourceId": { - "description": "Resource ID of the target container host", - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "targetContainerHostCredentialsBase64": { - "description": "Credentials of the target container host (base64).", - "type": "string", - "x-ms-mutability": [ - "create" - ] - } - } - }, - "Sku": { - "description": "Model representing SKU for Azure Dev Spaces Controller.", - "required": [ - "name" - ], - "properties": { - "name": { - "description": "The name of the SKU for Azure Dev Spaces Controller.", - "enum": [ - "S1" - ], - "type": "string", - "x-ms-enum": { - "name": "SkuName", - "modelAsString": true - } - }, - "tier": { - "description": "The tier of the SKU for Azure Dev Spaces Controller.", - "enum": [ - "Standard" - ], - "type": "string", - "x-ms-enum": { - "name": "SkuTier", - "modelAsString": true - } - } - } - }, - "ControllerUpdateParameters": { - "description": "Parameters for updating an Azure Dev Spaces Controller.", - "properties": { - "tags": { - "description": "Tags for the Azure Dev Spaces Controller.", - "additionalProperties": { - "type": "string" - } - } - } - }, - "ControllerList": { - "properties": { - "value": { - "description": "List of Azure Dev Spaces Controllers.", - "type": "array", - "items": { - "$ref": "#/definitions/Controller" - } - }, - "nextLink": { - "description": "The URI that can be used to request the next page for list of Azure Dev Spaces Controllers.", - "type": "string", - "readOnly": true - } - } - }, - "ControllerConnectionDetailsList": { - "properties": { - "connectionDetailsList": { - "description": "List of Azure Dev Spaces Controller connection details.", - "type": "array", - "items": { - "$ref": "#/definitions/ControllerConnectionDetails" - } - } - } - }, - "ControllerConnectionDetails": { - "properties": { - "authKey": { - "description": "Authentication key for communicating with services.", - "type": "string", - "readOnly": true - }, - "workspaceStorageAccountName": { - "description": "Workspace storage account name.", - "type": "string", - "readOnly": true - }, - "workspaceStorageSasToken": { - "description": "Workspace storage account SAS token.", - "type": "string", - "readOnly": true - }, - "orchestratorSpecificConnectionDetails": { - "$ref": "#/definitions/OrchestratorSpecificConnectionDetails" - } - } - }, - "OrchestratorSpecificConnectionDetails": { - "description": "Base class for types that supply values used to connect to container orchestrators", - "properties": { - "instanceType": { - "description": "Gets the Instance type.", - "type": "string", - "readOnly": true - } - }, - "discriminator": "instanceType" - }, - "TrackedResource": { - "description": "The resource model definition for a ARM tracked top level resource.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "tags": { - "description": "Tags for the Azure resource.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-ms-mutability": [ - "read", - "create", - "update" - ] - }, - "location": { - "description": "Region where the Azure resource is located.", - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ] - } - } - }, - "ResourceProviderOperationList": { - "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", - "readOnly": true - } - } - }, - "ResourceProviderOperationDefinition": { - "properties": { - "name": { - "description": "Resource provider operation name.", - "type": "string" - }, - "display": { - "$ref": "#/definitions/ResourceProviderOperationDisplay" - } - } - }, - "ResourceProviderOperationDisplay": { - "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" - } - } - }, - "Resource": { - "description": "An Azure resource.", - "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.", - "type": "string", - "readOnly": true - } - }, - "x-ms-azure-resource": true - }, - "KubernetesConnectionDetails": { - "description": "Contains information used to connect to a Kubernetes cluster", - "allOf": [ - { - "$ref": "#/definitions/OrchestratorSpecificConnectionDetails" - } - ], - "properties": { - "kubeConfig": { - "description": "Gets the kubeconfig for the cluster.", - "type": "string" - } - }, - "x-ms-discriminator-value": "Kubernetes" - }, - "ErrorResponse": { - "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", - "properties": { - "error": { - "$ref": "#/definitions/ErrorDetails", - "description": "The details of the error." - } - } - }, - "ErrorDetails": { - "properties": { - "code": { - "description": "Status code for the error.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Error message describing the error in detail.", - "type": "string", - "readOnly": true - }, - "target": { - "description": "The target of the particular error.", - "type": "string", - "readOnly": true - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "description": "Azure subscription ID.", - "required": true, - "type": "string" - }, - "ResourceGroupParameter": { - "name": "resourceGroupName", - "in": "path", - "description": "Resource group to which the resource belongs.", - "required": true, - "type": "string", - "maxLength": 90, - "minLength": 1, - "x-ms-parameter-location": "method" - }, - "NameParameter": { - "name": "name", - "in": "path", - "description": "Name of the resource.", - "required": true, - "type": "string", - "maxLength": 31, - "minLength": 3, - "pattern": "^[a-zA-Z0-9](-?[a-zA-Z0-9])*$", - "x-ms-parameter-location": "method" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "description": "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" - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ContainerHostMappingsGetContainerHostMapping_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ContainerHostMappingsGetContainerHostMapping_example.json deleted file mode 100644 index 23e38a3aabb8..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ContainerHostMappingsGetContainerHostMapping_example.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "location": "eastus", - "containerHostMapping": { - "containerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedCluster/myCluster" - } - }, - "responses": { - "200": { - "body": { - "containerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedCluster/myCluster", - "mappedControllerResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myController" - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersCreate_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersCreate_example.json deleted file mode 100644 index 5798550f09bf..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersCreate_example.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "name": "myControllerResource", - "controller": { - "location": "eastus", - "tags": {}, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "hostSuffix": "suffix", - "targetContainerHostCredentialsBase64": "QmFzZTY0IEVuY29kZWQgVmFsdWUK", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedCluster/myCluster" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource", - "name": "myControllerResource", - "type": "Microsoft.DevSpaces/controllers", - "location": "eastus", - "tags": {}, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "provisioningState": "Succeeded", - "hostSuffix": "suffix", - "dataPlaneFqdn": "dataplane.azds.io", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedCluster/myCluster" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource", - "name": "myControllerResource", - "type": "Microsoft.DevSpaces/controllers", - "location": "eastus", - "tags": {}, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "provisioningState": "Creating", - "hostSuffix": "suffix", - "dataPlaneFqdn": "dataplane.azds.io", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedCluster/myCluster" - } - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersDelete_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersDelete_example.json deleted file mode 100644 index ea383f5e5396..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersDelete_example.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "name": "myControllerResource" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "Location": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevSpaces/operationresults/00000000-0000-0000-0000-000000000000" - } - }, - "204": {} - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersGet_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersGet_example.json deleted file mode 100644 index 654fe322419b..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersGet_example.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "name": "myControllerResource" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource", - "name": "myControllerResource", - "type": "Microsoft.DevSpaces/controllers", - "location": "eastus", - "tags": {}, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "provisioningState": "Succeeded", - "hostSuffix": "suffix", - "dataPlaneFqdn": "dataplane.azds.io", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedCluster/myCluster" - } - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersListByResourceGroup_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersListByResourceGroup_example.json deleted file mode 100644 index 4a352ae92104..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersListByResourceGroup_example.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource", - "name": "myControllerResource", - "type": "Microsoft.DevSpaces/controllers", - "location": "eastus", - "tags": {}, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "provisioningState": "Succeeded", - "hostSuffix": "suffix", - "dataPlaneFqdn": "dataplane.azds.io", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedCluster/myCluster" - } - } - ] - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersListConnectionDetails_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersListConnectionDetails_example.json deleted file mode 100644 index ca66caf7b7cf..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersListConnectionDetails_example.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "name": "myControllerResource" - }, - "responses": { - "200": { - "body": { - "connectionDetailsList": [ - { - "authKey": "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "workspaceStorageAccountName": "storageAccount", - "workspaceStorageSasToken": "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "orchestratorSpecificConnectionDetails": { - "instanceType": "Kubernetes", - "kubeConfig": "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" - } - } - ] - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersList_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersList_example.json deleted file mode 100644 index be06d920d7a1..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersList_example.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource", - "name": "myControllerResource", - "type": "Microsoft.DevSpaces/controllers", - "location": "eastus", - "tags": {}, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "provisioningState": "Succeeded", - "hostSuffix": "suffix", - "dataPlaneFqdn": "dataplane.azds.io", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedCluster/myCluster" - } - } - ] - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersUpdate_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersUpdate_example.json deleted file mode 100644 index 3aad3140b22e..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2018-06-01-preview/examples/ControllersUpdate_example.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "name": "myControllerResource", - "controllerUpdateParameters": { - "tags": { - "key": "value" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource", - "name": "myControllerResource", - "type": "Microsoft.DevSpaces/controllers", - "location": "eastus", - "tags": { - "key": "value" - }, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "provisioningState": "Succeeded", - "hostSuffix": "suffix", - "dataPlaneFqdn": "dataplane.azds.io", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedCluster/myCluster" - } - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/devspaces.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/devspaces.json deleted file mode 100644 index 193c945e342e..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/devspaces.json +++ /dev/null @@ -1,781 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2019-01-01-preview", - "title": "DevSpacesManagement", - "description": "Dev Spaces REST API" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/locations/{location}/checkContainerHostMapping": { - "post": { - "tags": [ - "ContainerHostMappings" - ], - "summary": "Returns container host mapping object for a container host resource ID if an associated controller exists.", - "operationId": "ContainerHostMappings_GetContainerHostMapping", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "containerHostMapping", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContainerHostMapping" - } - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "name": "location", - "in": "path", - "description": "Location of the container host.", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": {} - } - }, - "x-ms-examples": { - "ContainerHostMappingsGetContainerHostMapping": { - "$ref": "./examples/ContainerHostMappingsGetContainerHostMapping_example.json" - } - } - } - }, - "/providers/Microsoft.DevSpaces/operations": { - "get": { - "tags": [ - "Operations" - ], - "summary": "Lists operations for the resource provider.", - "description": "Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their description.", - "operationId": "Operations_List", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the list of operations under Microsoft.DevSpaces resource provider.", - "schema": { - "$ref": "#/definitions/ResourceProviderOperationList" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}": { - "get": { - "tags": [ - "Controllers" - ], - "summary": "Gets an Azure Dev Spaces Controller.", - "description": "Gets the properties for an Azure Dev Spaces Controller.", - "operationId": "Controllers_Get", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/NameParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the Azure Dev Spaces Controller.", - "schema": { - "$ref": "#/definitions/Controller" - } - }, - "default": { - "description": "Error response describing the reason for operation failure. 404 - NotFound(Azure Dev Spaces Controller doesn't exist.)", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersGet": { - "$ref": "./examples/ControllersGet_example.json" - } - } - }, - "put": { - "tags": [ - "Controllers" - ], - "summary": "Creates an Azure Dev Spaces Controller.", - "description": "Creates an Azure Dev Spaces Controller with the specified create parameters.", - "operationId": "Controllers_Create", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/NameParameter" - }, - { - "name": "controller", - "in": "body", - "description": "Controller create parameters.", - "required": true, - "schema": { - "$ref": "#/definitions/Controller" - } - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the created Azure Dev Spaces Controller .", - "schema": { - "$ref": "#/definitions/Controller" - } - }, - "201": { - "description": "The request was successful; Azure Dev Spaces Controller is being created.", - "schema": { - "$ref": "#/definitions/Controller" - } - }, - "default": { - "description": "Error response describing the reason for operation failure. 404 - NotFound(Azure Dev Spaces Controller doesn't exist.), 400 - BadRequest(One or more creation parameters are invalid.)", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersCreate": { - "$ref": "./examples/ControllersCreate_example.json" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "Controllers" - ], - "summary": "Deletes an Azure Dev Spaces Controller.", - "description": "Deletes an existing Azure Dev Spaces Controller.", - "operationId": "Controllers_Delete", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/NameParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; the Azure Dev Spaces Controller is deleted." - }, - "202": { - "description": "The request was successful; Azure Dev Spaces Controller is being deleted." - }, - "204": { - "description": "The request was successful; Azure Dev Spaces Controller does not exist." - }, - "default": { - "description": "Error response describing the reason for operation failure. 409 - Conflict(Azure Dev Spaces Controller is already getting deleted.)", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersDelete": { - "$ref": "./examples/ControllersDelete_example.json" - } - }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "Controllers" - ], - "summary": "Updates an Azure Dev Spaces Controller.", - "description": "Updates the properties of an existing Azure Dev Spaces Controller with the specified update parameters.", - "operationId": "Controllers_Update", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/NameParameter" - }, - { - "name": "controllerUpdateParameters", - "in": "body", - "description": "Parameters for updating the Azure Dev Spaces Controller.", - "required": true, - "schema": { - "$ref": "#/definitions/ControllerUpdateParameters" - } - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the updated Azure Dev Spaces Controller .", - "schema": { - "$ref": "#/definitions/Controller" - } - }, - "default": { - "description": "Error response describing the reason for operation failure. 404 - NotFound(Azure Dev Spaces Controller doesn't exist.), 400 - BadRequest(One or more update parameters are invalid.)", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersUpdate": { - "$ref": "./examples/ControllersUpdate_example.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers": { - "get": { - "tags": [ - "Controllers" - ], - "summary": "Lists the Azure Dev Spaces Controllers in a resource group.", - "description": "Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and subscription.", - "operationId": "Controllers_ListByResourceGroup", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the list of Azure Dev Spaces Controllers in the resource group.", - "schema": { - "$ref": "#/definitions/ControllerList" - } - }, - "default": { - "description": "Error response describing the reason for operation failure.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersListByResourceGroup": { - "$ref": "./examples/ControllersListByResourceGroup_example.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DevSpaces/controllers": { - "get": { - "tags": [ - "Controllers" - ], - "summary": "Lists the Azure Dev Spaces Controllers in a subscription.", - "description": "Lists all the Azure Dev Spaces Controllers with their properties in the subscription.", - "operationId": "Controllers_List", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the list of Azure Dev Spaces Controllers in the subscription.", - "schema": { - "$ref": "#/definitions/ControllerList" - } - }, - "default": { - "description": "Error response describing the reason for operation failure.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersList": { - "$ref": "./examples/ControllersList_example.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}/listConnectionDetails": { - "post": { - "tags": [ - "Controllers" - ], - "summary": "Lists connection details for an Azure Dev Spaces Controller.", - "description": "Lists connection details for the underlying container resources of an Azure Dev Spaces Controller.", - "operationId": "Controllers_ListConnectionDetails", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/NameParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; response contains the list of connection details for the Azure Dev Spaces Controller .", - "schema": { - "$ref": "#/definitions/ControllerConnectionDetailsList" - } - }, - "default": { - "description": "Error response describing the reason for operation failure. 404 - NotFound(Azure Dev Spaces Controller doesn't exist.)", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "ControllersListConnectionDetails": { - "$ref": "./examples/ControllersListConnectionDetails_example.json" - } - } - } - } - }, - "definitions": { - "ContainerHostMapping": { - "description": "Container host mapping object specifying the Container host resource ID and its associated Controller resource.", - "properties": { - "containerHostResourceId": { - "description": "ARM ID of the Container Host resource", - "type": "string" - }, - "mappedControllerResourceId": { - "description": "ARM ID of the mapped Controller resource", - "type": "string", - "readOnly": true - } - } - }, - "TrackedResource": { - "description": "The resource model definition for a ARM tracked top level resource.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "tags": { - "description": "Tags for the Azure resource.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-ms-mutability": [ - "read", - "create", - "update" - ] - }, - "location": { - "description": "Region where the Azure resource is located.", - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ] - } - } - }, - "ResourceProviderOperationList": { - "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", - "readOnly": true - } - } - }, - "ResourceProviderOperationDefinition": { - "properties": { - "name": { - "description": "Resource provider operation name.", - "type": "string" - }, - "display": { - "$ref": "#/definitions/ResourceProviderOperationDisplay" - } - } - }, - "ResourceProviderOperationDisplay": { - "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" - } - } - }, - "Controller": { - "required": [ - "properties", - "sku", - "location" - ], - "allOf": [ - { - "$ref": "#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ControllerProperties", - "x-ms-client-flatten": true - }, - "sku": { - "$ref": "#/definitions/Sku" - } - } - }, - "ControllerProperties": { - "required": [ - "targetContainerHostResourceId", - "targetContainerHostCredentialsBase64" - ], - "properties": { - "provisioningState": { - "description": "Provisioning state of the Azure Dev Spaces Controller.", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Updating", - "Creating", - "Deleting", - "Deleted" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - }, - "hostSuffix": { - "description": "DNS suffix for public endpoints running in the Azure Dev Spaces Controller.", - "type": "string", - "readOnly": true - }, - "dataPlaneFqdn": { - "description": "DNS name for accessing DataPlane services", - "type": "string", - "readOnly": true - }, - "targetContainerHostResourceId": { - "description": "Resource ID of the target container host", - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "targetContainerHostCredentialsBase64": { - "description": "Credentials of the target container host (base64).", - "type": "string", - "x-ms-mutability": [ - "create" - ] - } - } - }, - "Sku": { - "description": "Model representing SKU for Azure Dev Spaces Controller.", - "required": [ - "name" - ], - "properties": { - "name": { - "description": "The name of the SKU for Azure Dev Spaces Controller.", - "enum": [ - "S1" - ], - "type": "string", - "x-ms-enum": { - "name": "SkuName", - "modelAsString": true - } - }, - "tier": { - "description": "The tier of the SKU for Azure Dev Spaces Controller.", - "enum": [ - "Standard" - ], - "type": "string", - "x-ms-enum": { - "name": "SkuTier", - "modelAsString": true - } - } - } - }, - "ControllerUpdateParameters": { - "description": "Parameters for updating an Azure Dev Spaces Controller.", - "properties": { - "tags": { - "description": "Tags for the Azure Dev Spaces Controller.", - "additionalProperties": { - "type": "string" - } - } - } - }, - "ControllerList": { - "properties": { - "value": { - "description": "List of Azure Dev Spaces Controllers.", - "type": "array", - "items": { - "$ref": "#/definitions/Controller" - } - }, - "nextLink": { - "description": "The URI that can be used to request the next page for list of Azure Dev Spaces Controllers.", - "type": "string", - "readOnly": true - } - } - }, - "ControllerConnectionDetailsList": { - "properties": { - "connectionDetailsList": { - "description": "List of Azure Dev Spaces Controller connection details.", - "type": "array", - "items": { - "$ref": "#/definitions/ControllerConnectionDetails" - } - } - } - }, - "ControllerConnectionDetails": { - "properties": { - "authKey": { - "description": "Authentication key for communicating with services.", - "type": "string", - "readOnly": true - }, - "orchestratorSpecificConnectionDetails": { - "$ref": "#/definitions/OrchestratorSpecificConnectionDetails" - } - } - }, - "OrchestratorSpecificConnectionDetails": { - "description": "Base class for types that supply values used to connect to container orchestrators", - "properties": { - "instanceType": { - "description": "Gets the Instance type.", - "type": "string", - "readOnly": true - } - }, - "discriminator": "instanceType" - }, - "Resource": { - "description": "An Azure resource.", - "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.", - "type": "string", - "readOnly": true - } - }, - "x-ms-azure-resource": true - }, - "KubernetesConnectionDetails": { - "description": "Contains information used to connect to a Kubernetes cluster", - "allOf": [ - { - "$ref": "#/definitions/OrchestratorSpecificConnectionDetails" - } - ], - "properties": { - "kubeConfig": { - "description": "Gets the kubeconfig for the cluster.", - "type": "string" - } - }, - "x-ms-discriminator-value": "Kubernetes" - }, - "ErrorResponse": { - "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", - "properties": { - "error": { - "$ref": "#/definitions/ErrorDetails", - "description": "The details of the error." - } - } - }, - "ErrorDetails": { - "properties": { - "code": { - "description": "Status code for the error.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Error message describing the error in detail.", - "type": "string", - "readOnly": true - }, - "target": { - "description": "The target of the particular error.", - "type": "string", - "readOnly": true - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "description": "Azure subscription ID.", - "required": true, - "type": "string" - }, - "ResourceGroupParameter": { - "name": "resourceGroupName", - "in": "path", - "description": "Resource group to which the resource belongs.", - "required": true, - "type": "string", - "maxLength": 90, - "minLength": 1, - "x-ms-parameter-location": "method" - }, - "NameParameter": { - "name": "name", - "in": "path", - "description": "Name of the resource.", - "required": true, - "type": "string", - "maxLength": 31, - "minLength": 3, - "pattern": "^[a-zA-Z0-9](-?[a-zA-Z0-9])*$", - "x-ms-parameter-location": "method" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "description": "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" - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ContainerHostMappingsGetContainerHostMapping_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ContainerHostMappingsGetContainerHostMapping_example.json deleted file mode 100644 index adc9b2ef040f..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ContainerHostMappingsGetContainerHostMapping_example.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "api-version": "2019-01-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "location": "eastus", - "containerHostMapping": { - "containerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster" - } - }, - "responses": { - "200": { - "body": { - "containerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster", - "mappedControllerResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myController" - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersCreate_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersCreate_example.json deleted file mode 100644 index b15b8c8ce608..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersCreate_example.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "api-version": "2019-01-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "name": "myControllerResource", - "controller": { - "location": "eastus", - "tags": {}, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "targetContainerHostCredentialsBase64": "QmFzZTY0IEVuY29kZWQgVmFsdWUK", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource", - "name": "myControllerResource", - "type": "Microsoft.DevSpaces/controllers", - "location": "eastus", - "tags": {}, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "provisioningState": "Succeeded", - "hostSuffix": "suffix.azds.io", - "dataPlaneFqdn": "dataplane.azds.io", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource", - "name": "myControllerResource", - "type": "Microsoft.DevSpaces/controllers", - "location": "eastus", - "tags": {}, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "provisioningState": "Creating", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster" - } - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersDelete_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersDelete_example.json deleted file mode 100644 index 64b07e0568cb..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersDelete_example.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2019-01-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "name": "myControllerResource" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "Location": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevSpaces/operationresults/00000000-0000-0000-0000-000000000000" - } - }, - "204": {} - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersGet_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersGet_example.json deleted file mode 100644 index 23ec5e93df6f..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersGet_example.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "api-version": "2019-01-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "name": "myControllerResource" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource", - "name": "myControllerResource", - "type": "Microsoft.DevSpaces/controllers", - "location": "eastus", - "tags": {}, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "provisioningState": "Succeeded", - "hostSuffix": "suffix.azds.io", - "dataPlaneFqdn": "dataplane.azds.io", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster" - } - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersListByResourceGroup_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersListByResourceGroup_example.json deleted file mode 100644 index f77b862515bc..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersListByResourceGroup_example.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2019-01-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource", - "name": "myControllerResource", - "type": "Microsoft.DevSpaces/controllers", - "location": "eastus", - "tags": {}, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "provisioningState": "Succeeded", - "hostSuffix": "suffix.azds.io", - "dataPlaneFqdn": "dataplane.azds.io", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster" - } - } - ] - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersListConnectionDetails_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersListConnectionDetails_example.json deleted file mode 100644 index a0b7175dcbaf..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersListConnectionDetails_example.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "api-version": "2019-01-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "name": "myControllerResource" - }, - "responses": { - "200": { - "body": { - "connectionDetailsList": [ - { - "authKey": "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "orchestratorSpecificConnectionDetails": { - "instanceType": "Kubernetes", - "kubeConfig": "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" - } - } - ] - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersList_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersList_example.json deleted file mode 100644 index 7db9ae039ab0..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersList_example.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "api-version": "2019-01-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource", - "name": "myControllerResource", - "type": "Microsoft.DevSpaces/controllers", - "location": "eastus", - "tags": {}, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "provisioningState": "Succeeded", - "hostSuffix": "suffix.azds.io", - "dataPlaneFqdn": "dataplane.azds.io", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster" - } - } - ] - } - } - } -} diff --git a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersUpdate_example.json b/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersUpdate_example.json deleted file mode 100644 index 4f9bd133c3c5..000000000000 --- a/specification/devspaces/resource-manager/Microsoft.DevSpaces/preview/2019-01-01-preview/examples/ControllersUpdate_example.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2019-01-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "name": "myControllerResource", - "controllerUpdateParameters": { - "tags": { - "key": "value" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DevSpaces/controllers/myControllerResource", - "name": "myControllerResource", - "type": "Microsoft.DevSpaces/controllers", - "location": "eastus", - "tags": { - "key": "value" - }, - "sku": { - "name": "S1", - "tier": "Standard" - }, - "properties": { - "provisioningState": "Succeeded", - "hostSuffix": "suffix.azds.io", - "dataPlaneFqdn": "dataplane.azds.io", - "targetContainerHostResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster" - } - } - } - } -} diff --git a/specification/devspaces/resource-manager/readme.go.md b/specification/devspaces/resource-manager/readme.go.md index d6f9bb313f0e..3bf8fa8f5bbb 100644 --- a/specification/devspaces/resource-manager/readme.go.md +++ b/specification/devspaces/resource-manager/readme.go.md @@ -14,33 +14,13 @@ go: ``` yaml $(go) && $(multiapi) batch: - tag: package-2019-04-01 - - tag: package-2019-01-01-preview - - tag: package-2018-06-01-preview ``` -### Tag: package-2019-01-01-preview and go +### Tag: package-2019-04-01 and go These settings apply only when `--tag=package-2019-04-01 --go` is specified on the command line. Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2019-04-01' && $(go) output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2019-04-01/$(namespace) -``` - -### Tag: package-2019-01-01-preview and go - -These settings apply only when `--tag=package-2019-01-01-preview --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-2019-01-01-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-01-01-preview/$(namespace) -``` - -### 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) ``` \ No newline at end of file diff --git a/specification/devspaces/resource-manager/readme.md b/specification/devspaces/resource-manager/readme.md index efcef02e7bc7..2ed721e861f0 100644 --- a/specification/devspaces/resource-manager/readme.md +++ b/specification/devspaces/resource-manager/readme.md @@ -39,24 +39,6 @@ input-file: - Microsoft.DevSpaces/stable/2019-04-01/devspaces.json ``` -### Tag: package-2019-01-01-preview - -These settings apply only when `--tag=package-2019-01-01-preview` is specified on the command line. - -``` yaml $(tag) == 'package-2019-01-01-preview' -input-file: -- Microsoft.DevSpaces/preview/2019-01-01-preview/devspaces.json -``` - -### Tag: package-2018-06-01-preview - -These settings apply only when `--tag=package-2018-06-01-preview` is specified on the command line. - -``` yaml $(tag) == 'package-2018-06-01-preview' -input-file: -- Microsoft.DevSpaces/preview/2018-06-01-preview/devspaces.json -``` - --- # Code Generation @@ -68,6 +50,7 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: + - repo: azure-sdk-for-net - repo: azure-sdk-for-java - repo: azure-sdk-for-python - repo: azure-sdk-for-js @@ -112,32 +95,43 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-devspaces ``` yaml $(java) && $(multiapi) batch: - - tag: package-2018-06-01-preview - - tag: package-2019-01-01-preview + - tag: package-2019-04-01 ``` -### Tag: package-2018-06-01-preview and java +### Tag: package-2019-04-01-preview and java -These settings apply only when `--tag=2018-06-01-preview --java` is specified on the command line. +These settings apply only when `--tag=2019-04-01 --java` is specified on the command line. Please also specify `--azure-libraries-for-java-folder=`. -``` yaml $(tag)=='package-2018-06-01-preview' && $(java) && $(multiapi) +``` yaml $(tag)=='package-2019-04-01' && $(java) && $(multiapi) java: - namespace: com.microsoft.azure.management.devspaces.v2018_06_01_preview - output-folder: $(azure-libraries-for-java-folder)/devspaces/resource-manager/v2018_06_01_preview + namespace: com.microsoft.azure.management.devspaces.v2019_04_01 + output-folder: $(azure-libraries-for-java-folder)/devspaces/resource-manager/v2019_04_01 regenerate-manager: true generate-interface: true ``` -### Tag: package-2019-01-01-preview and java +## Multi-API/Profile support for AutoRest v3 generators -These settings apply only when `--tag=2019-01-01-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. +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.DevSpaces/stable/2019-04-01/devspaces.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 +``` -``` yaml $(tag)=='package-2019-01-01-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.devspaces.v2019_01_01_preview - output-folder: $(azure-libraries-for-java-folder)/devspaces/resource-manager/v2019_01_01_preview -regenerate-manager: true -generate-interface: true -``` \ No newline at end of file diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json index 0f95e1b0fca3..74d5b0ed98f2 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json @@ -61,21 +61,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -83,7 +80,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -171,21 +167,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -193,7 +186,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -238,21 +230,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -260,7 +249,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -317,21 +305,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=displayName)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -339,7 +324,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -398,21 +382,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=displayName)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -420,7 +401,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -478,7 +458,7 @@ { "name": "name", "in": "path", - "description": "The name of the azure Resource Manager template.", + "description": "The name of the azure resource manager template.", "required": true, "type": "string" }, @@ -486,7 +466,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=displayName)'", - "required": false, "type": "string" }, { @@ -541,21 +520,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=title)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -563,7 +539,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -629,7 +604,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=title)'", - "required": false, "type": "string" }, { @@ -748,7 +722,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=displayName)'", - "required": false, "type": "string" }, { @@ -881,7 +854,7 @@ "tags": [ "ArtifactSources" ], - "description": "Modify properties of artifact sources.", + "description": "Allows modifying tags of artifact sources. All other properties will be ignored.", "operationId": "ArtifactSources_Update", "parameters": [ { @@ -965,7 +938,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($expand=labCostDetails)'", - "required": false, "type": "string" }, { @@ -1074,21 +1046,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=vm)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -1096,7 +1065,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -1155,7 +1123,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=vm)'", - "required": false, "type": "string" }, { @@ -1293,7 +1260,7 @@ "tags": [ "CustomImages" ], - "description": "Modify properties of custom images.", + "description": "Allows modifying tags of custom images. All other properties will be ignored.", "operationId": "CustomImages_Update", "parameters": [ { @@ -1370,21 +1337,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=description)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -1392,7 +1356,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -1451,7 +1414,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=description)'", - "required": false, "type": "string" }, { @@ -1477,7 +1439,7 @@ "tags": [ "Formulas" ], - "description": "Create or replace an existing Formula. This operation can take a while to complete.", + "description": "Create or replace an existing formula. This operation can take a while to complete.", "operationId": "Formulas_CreateOrUpdate", "parameters": [ { @@ -1585,7 +1547,7 @@ "tags": [ "Formulas" ], - "description": "Modify properties of formulas.", + "description": "Allows modifying tags of formulas. All other properties will be ignored.", "operationId": "Formulas_Update", "parameters": [ { @@ -1662,21 +1624,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=author)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -1684,7 +1643,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -1736,21 +1694,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=webHookUrl)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -1758,7 +1713,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -1809,7 +1763,7 @@ { "name": "name", "in": "path", - "description": "The name of the notificationChannel.", + "description": "The name of the notification channel.", "required": true, "type": "string" }, @@ -1817,7 +1771,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=webHookUrl)'", - "required": false, "type": "string" }, { @@ -1843,7 +1796,7 @@ "tags": [ "NotificationChannels" ], - "description": "Create or replace an existing notificationChannel.", + "description": "Create or replace an existing notification channel.", "operationId": "NotificationChannels_CreateOrUpdate", "parameters": [ { @@ -1862,7 +1815,7 @@ { "name": "name", "in": "path", - "description": "The name of the notificationChannel.", + "description": "The name of the notification channel.", "required": true, "type": "string" }, @@ -1923,7 +1876,7 @@ { "name": "name", "in": "path", - "description": "The name of the notificationChannel.", + "description": "The name of the notification channel.", "required": true, "type": "string" }, @@ -1950,7 +1903,7 @@ "tags": [ "NotificationChannels" ], - "description": "Modify properties of notification channels.", + "description": "Allows modifying tags of notification channels. All other properties will be ignored.", "operationId": "NotificationChannels_Update", "parameters": [ { @@ -1969,7 +1922,7 @@ { "name": "name", "in": "path", - "description": "The name of the notificationChannel.", + "description": "The name of the notification channel.", "required": true, "type": "string" }, @@ -2026,7 +1979,7 @@ { "name": "name", "in": "path", - "description": "The name of the notificationChannel.", + "description": "The name of the notification channel.", "required": true, "type": "string" }, @@ -2145,21 +2098,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=description)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -2167,7 +2117,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -2233,7 +2182,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=description)'", - "required": false, "type": "string" }, { @@ -2380,7 +2328,7 @@ "tags": [ "Policies" ], - "description": "Modify properties of policies.", + "description": "Allows modifying tags of policies. All other properties will be ignored.", "operationId": "Policies_Update", "parameters": [ { @@ -2464,21 +2412,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -2486,7 +2431,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -2545,7 +2489,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, "type": "string" }, { @@ -2678,7 +2621,7 @@ "tags": [ "Schedules" ], - "description": "Modify properties of schedules.", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "operationId": "Schedules_Update", "parameters": [ { @@ -2830,73 +2773,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners": { - "get": { - "tags": [ - "ServiceRunners" - ], - "description": "List service runners in a given lab.", - "operationId": "ServiceRunners_List", - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "labName", - "in": "path", - "description": "The name of the lab.", - "required": true, - "type": "string" - }, - { - "name": "$filter", - "in": "query", - "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, - "type": "string" - }, - { - "name": "$top", - "in": "query", - "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$orderby", - "in": "query", - "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, - "type": "string" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServiceRunnerList" - } - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/ServiceRunner" - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{name}": { "get": { "tags": [ @@ -2948,7 +2824,7 @@ "tags": [ "ServiceRunners" ], - "description": "Create or replace an existing Service runner.", + "description": "Create or replace an existing service runner.", "operationId": "ServiceRunners_CreateOrUpdate", "parameters": [ { @@ -3077,21 +2953,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=identity)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -3099,7 +2972,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -3158,7 +3030,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=identity)'", - "required": false, "type": "string" }, { @@ -3296,7 +3167,7 @@ "tags": [ "Users" ], - "description": "Modify properties of user profiles.", + "description": "Allows modifying tags of user profiles. All other properties will be ignored.", "operationId": "Users_Update", "parameters": [ { @@ -3380,21 +3251,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=diskType)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -3402,7 +3270,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -3468,7 +3335,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=diskType)'", - "required": false, "type": "string" }, { @@ -3620,7 +3486,7 @@ "tags": [ "Disks" ], - "description": "Modify properties of disks.", + "description": "Allows modifying tags of disks. All other properties will be ignored.", "operationId": "Disks_Update", "parameters": [ { @@ -3841,21 +3707,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -3863,7 +3726,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -3929,7 +3791,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=deploymentProperties)'", - "required": false, "type": "string" }, { @@ -4081,7 +3942,7 @@ "tags": [ "Environments" ], - "description": "Modify properties of environments.", + "description": "Allows modifying tags of environments. All other properties will be ignored.", "operationId": "Environments_Update", "parameters": [ { @@ -4172,21 +4033,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=value)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -4194,7 +4052,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -4260,7 +4117,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=value)'", - "required": false, "type": "string" }, { @@ -4408,7 +4264,7 @@ "tags": [ "Secrets" ], - "description": "Modify properties of secrets.", + "description": "Allows modifying tags of secrets. All other properties will be ignored.", "operationId": "Secrets_Update", "parameters": [ { @@ -4499,21 +4355,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -4521,7 +4374,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -4579,7 +4431,7 @@ { "name": "name", "in": "path", - "description": "The name of the service Fabric.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, @@ -4587,7 +4439,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($expand=applicableSchedule)'", - "required": false, "type": "string" }, { @@ -4613,7 +4464,7 @@ "tags": [ "ServiceFabrics" ], - "description": "Create or replace an existing Service Fabric. This operation can take a while to complete.", + "description": "Create or replace an existing service fabric. This operation can take a while to complete.", "operationId": "ServiceFabrics_CreateOrUpdate", "parameters": [ { @@ -4639,7 +4490,7 @@ { "name": "name", "in": "path", - "description": "The name of the service Fabric.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, @@ -4708,7 +4559,7 @@ { "name": "name", "in": "path", - "description": "The name of the service Fabric.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, @@ -4739,7 +4590,7 @@ "tags": [ "ServiceFabrics" ], - "description": "Modify properties of service fabrics.", + "description": "Allows modifying tags of service fabrics. All other properties will be ignored.", "operationId": "ServiceFabrics_Update", "parameters": [ { @@ -4765,7 +4616,7 @@ { "name": "name", "in": "path", - "description": "The name of the service Fabric.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, @@ -4829,7 +4680,7 @@ { "name": "name", "in": "path", - "description": "The name of the service Fabric.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, @@ -4884,7 +4735,7 @@ { "name": "name", "in": "path", - "description": "The name of the service Fabric.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, @@ -4940,7 +4791,7 @@ { "name": "name", "in": "path", - "description": "The name of the service Fabric.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, @@ -4996,7 +4847,7 @@ { "name": "serviceFabricName", "in": "path", - "description": "The name of the service Fabric.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, @@ -5004,21 +4855,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -5026,7 +4874,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -5084,7 +4931,7 @@ { "name": "serviceFabricName", "in": "path", - "description": "The name of the service Fabric.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, @@ -5099,7 +4946,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, "type": "string" }, { @@ -5151,7 +4997,7 @@ { "name": "serviceFabricName", "in": "path", - "description": "The name of the service Fabric.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, @@ -5226,7 +5072,7 @@ { "name": "serviceFabricName", "in": "path", - "description": "The name of the service Fabric.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, @@ -5260,7 +5106,7 @@ "tags": [ "ServiceFabricSchedules" ], - "description": "Modify properties of schedules.", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "operationId": "ServiceFabricSchedules_Update", "parameters": [ { @@ -5286,7 +5132,7 @@ { "name": "serviceFabricName", "in": "path", - "description": "The name of the service Fabric.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, @@ -5357,7 +5203,7 @@ { "name": "serviceFabricName", "in": "path", - "description": "The name of the service Fabric.", + "description": "The name of the service fabric.", "required": true, "type": "string" }, @@ -5414,21 +5260,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -5436,7 +5279,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -5500,7 +5342,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'", - "required": false, "type": "string" }, { @@ -5531,7 +5372,7 @@ "tags": [ "VirtualMachines" ], - "description": "Create or replace an existing Virtual machine. This operation can take a while to complete.", + "description": "Create or replace an existing virtual machine. This operation can take a while to complete.", "operationId": "VirtualMachines_CreateOrUpdate", "parameters": [ { @@ -5653,7 +5494,7 @@ "tags": [ "VirtualMachines" ], - "description": "Modify properties of virtual machines.", + "description": "Allows modifying tags of virtual machines. All other properties will be ignored.", "operationId": "VirtualMachines_Update", "parameters": [ { @@ -6453,21 +6294,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -6475,7 +6313,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -6541,7 +6378,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, "type": "string" }, { @@ -6688,7 +6524,7 @@ "tags": [ "VirtualMachineSchedules" ], - "description": "Modify properties of schedules.", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "operationId": "VirtualMachineSchedules_Update", "parameters": [ { @@ -6828,21 +6664,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -6850,7 +6683,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -6914,7 +6746,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($expand=externalSubnets)'", - "required": false, "type": "string" }, { @@ -7067,7 +6898,7 @@ "tags": [ "VirtualNetworks" ], - "description": "Modify properties of virtual networks.", + "description": "Allows modifying tags of virtual networks. All other properties will be ignored.", "operationId": "VirtualNetworks_Update", "parameters": [ { @@ -7149,7 +6980,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'", - "required": false, "type": "string" }, { @@ -7288,7 +7118,7 @@ "tags": [ "Labs" ], - "description": "Modify properties of labs.", + "description": "Allows modifying tags of labs. All other properties will be ignored.", "operationId": "Labs_Update", "parameters": [ { @@ -7660,21 +7490,18 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "The filter to apply to the operation. Example: '$filter=contains(name,'myName')", - "required": false, "type": "string" }, { "name": "$top", "in": "query", "description": "The maximum number of resources to return from the operation. Example: '$top=10'", - "required": false, "type": "integer", "format": "int32" }, @@ -7682,7 +7509,6 @@ "name": "$orderby", "in": "query", "description": "The ordering expression for the results, using OData notation. Example: '$orderby=name desc'", - "required": false, "type": "string" }, { @@ -7734,7 +7560,6 @@ "name": "$expand", "in": "query", "description": "Specify the $expand query. Example: 'properties($select=status)'", - "required": false, "type": "string" }, { @@ -7853,7 +7678,7 @@ "tags": [ "GlobalSchedules" ], - "description": "Modify properties of schedules.", + "description": "Allows modifying tags of schedules. All other properties will be ignored.", "operationId": "GlobalSchedules_Update", "parameters": [ { @@ -8616,7 +8441,7 @@ "properties": { "diskSizeGiB": { "format": "int32", - "description": "Size of the disk to be attached in Gibibytes.", + "description": "Size of the disk to be attached in GibiBytes.", "type": "integer" }, "diskName": { @@ -8627,7 +8452,8 @@ "description": "The storage type for the disk (i.e. Standard, Premium).", "enum": [ "Standard", - "Premium" + "Premium", + "StandardSSD" ], "type": "string", "x-ms-enum": { @@ -8643,7 +8469,7 @@ "properties": { "diskSizeGiB": { "format": "int32", - "description": "Size of the disk to be attached in Gibibytes.", + "description": "Size of the disk to be attached in GibiBytes.", "type": "integer" }, "diskName": { @@ -8654,7 +8480,8 @@ "description": "The storage type for the disk (i.e. Standard, Premium).", "enum": [ "Standard", - "Premium" + "Premium", + "StandardSSD" ], "type": "string", "x-ms-enum": { @@ -9286,7 +9113,8 @@ "description": "Disk Storage Type", "enum": [ "Standard", - "Premium" + "Premium", + "StandardSSD" ], "type": "string", "x-ms-enum": { @@ -9308,7 +9136,8 @@ "description": "Disk Storage Type", "enum": [ "Standard", - "Premium" + "Premium", + "StandardSSD" ], "type": "string", "x-ms-enum": { @@ -9418,7 +9247,8 @@ "description": "The storage type for the disk (i.e. Standard, Premium).", "enum": [ "Standard", - "Premium" + "Premium", + "StandardSSD" ], "type": "string", "x-ms-enum": { @@ -9428,7 +9258,7 @@ }, "diskSizeGiB": { "format": "int32", - "description": "The size of the disk in Gibibytes.", + "description": "The size of the disk in GibiBytes.", "type": "integer" }, "leasedByLabVmId": { @@ -9477,7 +9307,8 @@ "description": "The storage type for the disk (i.e. Standard, Premium).", "enum": [ "Standard", - "Premium" + "Premium", + "StandardSSD" ], "type": "string", "x-ms-enum": { @@ -9487,7 +9318,7 @@ }, "diskSizeGiB": { "format": "int32", - "description": "The size of the disk in Gibibytes.", + "description": "The size of the disk in GibiBytes.", "type": "integer" }, "leasedByLabVmId": { @@ -10489,7 +10320,8 @@ "description": "Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.", "enum": [ "Standard", - "Premium" + "Premium", + "StandardSSD" ], "type": "string", "x-ms-enum": { @@ -10550,7 +10382,7 @@ "description": "The properties of any lab support message associated with this lab" }, "vmCreationResourceGroup": { - "description": "The resource group in which lab virtual machines will be created in.", + "description": "The resource group in which all new lab virtual machines will be created. To let DevTest Labs manage resource group creation, set this value to null.", "type": "string", "readOnly": true }, @@ -10596,7 +10428,8 @@ "description": "Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.", "enum": [ "Standard", - "Premium" + "Premium", + "StandardSSD" ], "type": "string", "x-ms-enum": { @@ -10965,7 +10798,8 @@ "description": "Tells source of creation of lab virtual machine. Output property only.", "enum": [ "FromCustomImage", - "FromGalleryImage" + "FromGalleryImage", + "FromSharedGalleryImage" ], "type": "string", "x-ms-enum": { @@ -11118,7 +10952,8 @@ "description": "Tells source of creation of lab virtual machine. Output property only.", "enum": [ "FromCustomImage", - "FromGalleryImage" + "FromGalleryImage", + "FromSharedGalleryImage" ], "type": "string", "x-ms-enum": { @@ -11310,7 +11145,8 @@ "description": "Tells source of creation of lab virtual machine. Output property only.", "enum": [ "FromCustomImage", - "FromGalleryImage" + "FromGalleryImage", + "FromSharedGalleryImage" ], "type": "string", "x-ms-enum": { @@ -11469,7 +11305,8 @@ "description": "Tells source of creation of lab virtual machine. Output property only.", "enum": [ "FromCustomImage", - "FromGalleryImage" + "FromGalleryImage", + "FromSharedGalleryImage" ], "type": "string", "x-ms-enum": { @@ -12846,23 +12683,6 @@ } } }, - "ServiceRunnerList": { - "description": "The response of a list operation.", - "type": "object", - "properties": { - "value": { - "description": "Results of the list operation.", - "type": "array", - "items": { - "$ref": "#/definitions/ServiceRunner" - } - }, - "nextLink": { - "description": "Link for next set of results.", - "type": "string" - } - } - }, "SharedPublicIpAddressConfiguration": { "description": "Properties of a virtual machine that determine how it is connected to a load balancer.", "type": "object", @@ -13598,13 +13418,13 @@ }, "securityDefinitions": { "azure_auth": { - "type": "oauth2", - "description": "OAuth2 Implicit Grant", "flow": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { "user_impersonation": "Access Microsoft Azure" - } + }, + "type": "oauth2", + "description": "OAuth2 Implicit Grant" } }, "security": [ diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json index 09ad003c2b9f..5a656e392f58 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json @@ -7,11 +7,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json index df19c66124ae..9ade4318f1ef 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json @@ -31,11 +31,7 @@ } }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json index 77e16cc7eada..6b4b5a2a48f4 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json @@ -6,14 +6,8 @@ "api-version": "2018-09-15" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json index a224814ddf06..3f7db707c177 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json @@ -7,11 +7,7 @@ "api-version": "2018-09-15" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json index 434631786d71..a1aafb6bfe79 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json @@ -7,14 +7,8 @@ "api-version": "2018-09-15" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json index d072ba194309..a8bfaf2ad517 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json @@ -8,11 +8,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json index ba1e766ac5b5..754ec9a5df56 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json @@ -11,11 +11,7 @@ } }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json index d072ba194309..a8bfaf2ad517 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json @@ -8,11 +8,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json index d072ba194309..a8bfaf2ad517 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json @@ -8,11 +8,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json index a224814ddf06..3f7db707c177 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json @@ -7,11 +7,7 @@ "api-version": "2018-09-15" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json index d072ba194309..a8bfaf2ad517 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json @@ -8,11 +8,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json index 267520b2dc4e..81e4b24e8741 100644 --- a/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json +++ b/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json @@ -7,14 +7,8 @@ "api-version": "2018-09-15" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/devtestlabs/resource-manager/readme.java.md b/specification/devtestlabs/resource-manager/readme.java.md new file mode 100644 index 000000000000..353933d0fcb5 --- /dev/null +++ b/specification/devtestlabs/resource-manager/readme.java.md @@ -0,0 +1,62 @@ +## 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.devtestlabs +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-devtestlabs +service-name: DevTestLabs +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-09 + - tag: package-2016-05 + - tag: package-2015-05-preview +``` + +### Tag: package-2018-09 and java + +These settings apply only when `--tag=package-2018-09 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-09' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.devtestlabs.v2018_09_15 + output-folder: $(azure-libraries-for-java-folder)/devtestlabs/resource-manager/v2018_09_15 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2016-05 and java + +These settings apply only when `--tag=package-2016-05 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2016-05' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.devtestlabs.v2016_05_15 + output-folder: $(azure-libraries-for-java-folder)/devtestlabs/resource-manager/v2016_05_15 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2015-05-preview and java + +These settings apply only when `--tag=package-2015-05-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2015-05-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.devtestlabs.v2015_05_21_preview + output-folder: $(azure-libraries-for-java-folder)/devtestlabs/resource-manager/v2015_05_21_preview +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/devtestlabs/resource-manager/readme.md b/specification/devtestlabs/resource-manager/readme.md index 929dab3a3ae8..1e4ac41bae02 100644 --- a/specification/devtestlabs/resource-manager/readme.md +++ b/specification/devtestlabs/resource-manager/readme.md @@ -69,6 +69,7 @@ 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 @@ -127,64 +128,31 @@ 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=`. +See configuration in [readme.java.md](./readme.java.md) -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.devtestlabs -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-devtestlabs -``` - -### Java multi-api +## Multi-API/Profile support for AutoRest v3 generators -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2018-09 - - tag: package-2016-05 - - tag: package-2015-05-preview -``` +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -### Tag: package-2018-09 and java +This block is updated by an automatic script. Edits may be lost! -These settings apply only when `--tag=package-2018-09 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2018-09' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.devtestlab.v2018_09_15 - output-folder: $(azure-libraries-for-java-folder)/devtestlab/resource-manager/v2018_09_15 -regenerate-manager: true -generate-interface: true -``` +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -### Tag: package-2016-05 and java - -These settings apply only when `--tag=package-2016-05 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.DevTestLab/stable/2018-09-15/DTL.json + - $(this-folder)/Microsoft.DevTestLab/stable/2016-05-15/DTL.json + - $(this-folder)/Microsoft.DevTestLab/preview/2015-05-21-preview/DTL.json -``` yaml $(tag) == 'package-2016-05' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.devtestlab.v2016_05_15 - output-folder: $(azure-libraries-for-java-folder)/devtestlab/resource-manager/v2016_05_15 -regenerate-manager: true -generate-interface: true ``` -### Tag: package-2015-05-preview and java +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. -These settings apply only when `--tag=package-2015-05-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2015-05-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.devtestlab.v2015_05_21_preview - output-folder: $(azure-libraries-for-java-folder)/devtestlab/resource-manager/v2015_05_21_preview -regenerate-manager: true -generate-interface: true +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json ``` - diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 6b589d51b724..d54ee0216ba4 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -223,3 +223,33 @@ Creating this tag to pick proper resources from the hybrid profile. input-file: - Microsoft.Network/stable/2016-04-01/dns.json ``` + +## 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.Network/stable/2018-05-01/dns.json + - $(this-folder)/Microsoft.Network/preview/2018-03-01-preview/dns.json + - $(this-folder)/Microsoft.Network/stable/2017-10-01/dns.json + - $(this-folder)/Microsoft.Network/stable/2017-09-01/dns.json + - $(this-folder)/Microsoft.Network/stable/2016-04-01/dns.json + - $(this-folder)/Microsoft.Network/preview/2015-05-04-preview/dns.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/domainservices/resource-manager/readme.md b/specification/domainservices/resource-manager/readme.md index 0a169d44c0c7..ca3f980926f6 100644 --- a/specification/domainservices/resource-manager/readme.md +++ b/specification/domainservices/resource-manager/readme.md @@ -58,6 +58,7 @@ 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-js - repo: azure-sdk-for-node @@ -74,7 +75,7 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.DomainServices payload-flattening-threshold: 2 - output-folder: $(csharp-sdks-folder)/DomainServices/Management.DomainServices/Generated + output-folder: $(csharp-sdks-folder)/domainservices/Microsoft.Azure.Management.DomainServices/src/Generated clear-output-folder: true ``` @@ -131,3 +132,29 @@ generate-interface: 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)/Microsoft.AAD/stable/2017-06-01/domainservices.json + - $(this-folder)/Microsoft.AAD/stable/2017-01-01/domainservices.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/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/BandwidthScheduleDelete.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/BandwidthScheduleDelete.json index 06409da9941c..c73e97af3845 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/BandwidthScheduleDelete.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/BandwidthScheduleDelete.json @@ -10,12 +10,8 @@ ] }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, + "200": {}, + "202": {}, "204": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/BandwidthSchedulePut.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/BandwidthSchedulePut.json index 6a04074239a3..b039cfa005b4 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/BandwidthSchedulePut.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/BandwidthSchedulePut.json @@ -49,8 +49,6 @@ "type": "dataBoxEdgeDevices/bandwidthSchedules" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/DataBoxEdgeDeviceDelete.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/DataBoxEdgeDeviceDelete.json index d4996c74daf2..ac93980803ff 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/DataBoxEdgeDeviceDelete.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/DataBoxEdgeDeviceDelete.json @@ -12,12 +12,8 @@ ] }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, + "200": {}, + "202": {}, "204": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/DownloadUpdatesPost.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/DownloadUpdatesPost.json index 920d64ff998c..6c6fecf2e72c 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/DownloadUpdatesPost.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/DownloadUpdatesPost.json @@ -18,11 +18,7 @@ ] }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/InstallUpdatesPost.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/InstallUpdatesPost.json index 920d64ff998c..6c6fecf2e72c 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/InstallUpdatesPost.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/InstallUpdatesPost.json @@ -18,11 +18,7 @@ ] }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/OrderDelete.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/OrderDelete.json index d4996c74daf2..ac93980803ff 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/OrderDelete.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/OrderDelete.json @@ -12,12 +12,8 @@ ] }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, + "200": {}, + "202": {}, "204": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/OrderPut.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/OrderPut.json index 5575a3b4655d..bdbb6747b11c 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/OrderPut.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/OrderPut.json @@ -83,8 +83,6 @@ } } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/RoleDelete.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/RoleDelete.json index 8df3a8dd54e7..ebdd3b6bfc90 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/RoleDelete.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/RoleDelete.json @@ -10,12 +10,8 @@ ] }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, + "200": {}, + "202": {}, "204": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/RolePut.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/RolePut.json index 53eb42489913..0e5c6e435f4d 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/RolePut.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/RolePut.json @@ -83,8 +83,6 @@ "type": "dataBoxEdgeDevices/roles" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SACDelete.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SACDelete.json index 72d4d68271e5..899d4f6eb3ef 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SACDelete.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SACDelete.json @@ -13,12 +13,8 @@ ] }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, + "200": {}, + "202": {}, "204": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SACPut.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SACPut.json index 51fdd14745f7..6189f1131b4d 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SACPut.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SACPut.json @@ -46,8 +46,6 @@ "type": "Microsoft.DataBoxEdge/dataBoxEdgeDevices/storageAccountCredentials" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/ScanForUpdatesPost.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/ScanForUpdatesPost.json index 920d64ff998c..6c6fecf2e72c 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/ScanForUpdatesPost.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/ScanForUpdatesPost.json @@ -18,11 +18,7 @@ ] }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SecuritySettingsUpdatePost.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SecuritySettingsUpdatePost.json index 5f2cb1062fa3..2ea930bd2c2a 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SecuritySettingsUpdatePost.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SecuritySettingsUpdatePost.json @@ -30,9 +30,7 @@ } }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/ShareDelete.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/ShareDelete.json index a7ab923549cd..e6d7c4fd52e1 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/ShareDelete.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/ShareDelete.json @@ -13,12 +13,8 @@ ] }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, + "200": {}, + "202": {}, "204": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SharePut.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SharePut.json index 3c2d8d597270..09856ca5abe4 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SharePut.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/SharePut.json @@ -68,8 +68,6 @@ "type": "dataBoxEdgeDevices/shares" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/ShareRefreshPost.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/ShareRefreshPost.json index 0f0b398ffb7a..5a71cfd977ee 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/ShareRefreshPost.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/ShareRefreshPost.json @@ -19,11 +19,7 @@ ] }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/TriggerDelete.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/TriggerDelete.json index 41ebef6f9af5..566a90ea402c 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/TriggerDelete.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/TriggerDelete.json @@ -13,12 +13,8 @@ ] }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, + "200": {}, + "202": {}, "204": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/TriggerPut.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/TriggerPut.json index f67faf57b6d8..c6e550e6e404 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/TriggerPut.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/TriggerPut.json @@ -51,8 +51,6 @@ "kind": "FileEvent" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/UserDelete.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/UserDelete.json index e795417316fb..3e8de067bca0 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/UserDelete.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/UserDelete.json @@ -19,12 +19,8 @@ ] }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, + "200": {}, + "202": {}, "204": {} } } diff --git a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/UserPut.json b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/UserPut.json index 702350716a99..0d80882deef3 100644 --- a/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/UserPut.json +++ b/specification/edgegateway/resource-manager/Microsoft.DataBoxEdge/stable/2019-03-01/examples/UserPut.json @@ -39,8 +39,6 @@ "type": "Microsoft.DataBoxEdge/dataBoxEdgeDevices/users" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/edgegateway/resource-manager/readme.md b/specification/edgegateway/resource-manager/readme.md index abdb058d5992..0112771ddc2f 100644 --- a/specification/edgegateway/resource-manager/readme.md +++ b/specification/edgegateway/resource-manager/readme.md @@ -49,6 +49,7 @@ 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-js - repo: azure-sdk-for-go @@ -144,3 +145,28 @@ java: regenerate-manager: true generate-interface: 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)/Microsoft.DataBoxEdge/stable/2019-03-01/edgegateway.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/engagementfabric/resource-manager/readme.md b/specification/engagementfabric/resource-manager/readme.md index 2d491db5a1ce..728d6321e9fd 100644 --- a/specification/engagementfabric/resource-manager/readme.md +++ b/specification/engagementfabric/resource-manager/readme.md @@ -51,6 +51,7 @@ 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 @@ -71,7 +72,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.EngagementFabric - output-folder: $(csharp-sdks-folder)/EngagementFabric/Management.EngagementFabric/Generated + output-folder: $(csharp-sdks-folder)/engagementfabric/Microsoft.Azure.Management.EngagementFabric/src/Generated clear-output-folder: true ``` @@ -121,4 +122,29 @@ namespace: com.microsoft.azure.management.engagementfabric license-header: MICROSOFT_MIT_NO_CODEGEN payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-engagementfabric -``` \ No newline at end of file +``` + +## 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.EngagementFabric/preview/2018-09-01/EngagementFabric.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/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json b/specification/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json index 0d2582a667dc..b84735e9dc70 100644 --- a/specification/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json +++ b/specification/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json @@ -16,7 +16,7 @@ "format": "date-time", "type": "string" }, - "hub": { + "hubName": { "description": "The hub of connected client connection.", "type": "string" }, @@ -39,7 +39,7 @@ "format": "date-time", "type": "string" }, - "hub": { + "hubName": { "description": "The hub of connected client connection.", "type": "string" }, diff --git a/specification/eventgrid/data-plane/readme.md b/specification/eventgrid/data-plane/readme.md index d48d2be1cf34..7eab6e07b842 100644 --- a/specification/eventgrid/data-plane/readme.md +++ b/specification/eventgrid/data-plane/readme.md @@ -109,3 +109,38 @@ license-header: MICROSOFT_MIT_NO_CODEGEN payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/eventgrid/data-plane ``` + +## 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.Storage/stable/2018-01-01/Storage.json + - $(this-folder)/Microsoft.EventHub/stable/2018-01-01/EventHub.json + - $(this-folder)/Microsoft.Resources/stable/2018-01-01/Resources.json + - $(this-folder)/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json + - $(this-folder)/Microsoft.Devices/stable/2018-01-01/IotHub.json + - $(this-folder)/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json + - $(this-folder)/Microsoft.ServiceBus/stable/2018-01-01/ServiceBus.json + - $(this-folder)/Microsoft.Media/stable/2018-01-01/MediaServices.json + - $(this-folder)/Microsoft.Maps/stable/2018-01-01/Maps.json + - $(this-folder)/Microsoft.AppConfiguration/stable/2018-01-01/AppConfiguration.json + - $(this-folder)/Microsoft.SignalRService/stable/2018-01-01/SignalRService.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/eventgrid/resource-manager/readme.md b/specification/eventgrid/resource-manager/readme.md index 89ea7bdd6ad5..b36653107114 100644 --- a/specification/eventgrid/resource-manager/readme.md +++ b/specification/eventgrid/resource-manager/readme.md @@ -137,6 +137,7 @@ 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 @@ -168,4 +169,36 @@ See configuration in [readme.go.md](./readme.go.md) ## Java -See configuration in [readme.java.md](./readme.java.md) \ No newline at end of file +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. + +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.EventGrid/stable/2019-06-01/EventGrid.json + - $(this-folder)/Microsoft.EventGrid/preview/2019-02-01-preview/EventGrid.json + - $(this-folder)/Microsoft.EventGrid/stable/2019-01-01/EventGrid.json + - $(this-folder)/Microsoft.EventGrid/preview/2018-09-15-preview/EventGrid.json + - $(this-folder)/Microsoft.EventGrid/preview/2018-05-01-preview/EventGrid.json + - $(this-folder)/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json + - $(this-folder)/Microsoft.EventGrid/preview/2017-09-15-preview/EventGrid.json + - $(this-folder)/Microsoft.EventGrid/preview/2017-06-15-preview/EventGrid.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/eventhub/resource-manager/Microsoft.EventHub/stable/2015-08-01/EventHub.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2015-08-01/EventHub.json index cf1f9218496d..c9c13c235a16 100644 --- a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2015-08-01/EventHub.json +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2015-08-01/EventHub.json @@ -920,7 +920,7 @@ "tags": [ "EventHubs" ], - "operationId": "EventHubs_PosttAuthorizationRule", + "operationId": "EventHubs_PostAuthorizationRule", "x-ms-examples": { "EventHubAuthorizationRuleGet": { "$ref": "./examples/EHEventHubAuthorizationRuleGet.json" diff --git a/specification/eventhub/resource-manager/readme.java.md b/specification/eventhub/resource-manager/readme.java.md new file mode 100644 index 000000000000..3b9b1a0e5243 --- /dev/null +++ b/specification/eventhub/resource-manager/readme.java.md @@ -0,0 +1,62 @@ +## 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.eventhubs +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-eventhubs +service-name: EventHubs +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-01-preview + - tag: package-2015-08 + - tag: package-2017-04 +``` + +### Tag: package-2018-01-preview and java + +These settings apply only when `--tag=package-2018-01-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-01-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.eventhubs.v2018_01_01_preview + output-folder: $(azure-libraries-for-java-folder)/eventhubs/resource-manager/v2018_01_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2015-08 and java + +These settings apply only when `--tag=package-2015-08 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2015-08' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.eventhubs.v2015_08_01 + output-folder: $(azure-libraries-for-java-folder)/eventhubs/resource-manager/v2015_08_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-04 and java + +These settings apply only when `--tag=package-2017-04 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2017-04' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.eventhubs.v2017_04_01 + output-folder: $(azure-libraries-for-java-folder)/eventhubs/resource-manager/v2017_04_01 +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/eventhub/resource-manager/readme.md b/specification/eventhub/resource-manager/readme.md index c616b290721f..79f815441b8b 100644 --- a/specification/eventhub/resource-manager/readme.md +++ b/specification/eventhub/resource-manager/readme.md @@ -81,6 +81,7 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: + - repo: azure-sdk-for-net - repo: azure-sdk-for-python after_scripts: - python ./scripts/multiapi_init_gen.py azure-mgmt-eventhub @@ -118,64 +119,32 @@ 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=`. +See configuration in [readme.java.md](./readme.java.md) -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.eventhub -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-eventhub -``` - -### Java multi-api +## Multi-API/Profile support for AutoRest v3 generators -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2018-01-preview - - tag: package-2015-08 - - tag: package-2017-04 -``` +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -### Tag: package-2018-01-preview and java +This block is updated by an automatic script. Edits may be lost! -These settings apply only when `--tag=package-2018-01-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2018-01-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.eventhub.v2018_01_01_preview - output-folder: $(azure-libraries-for-java-folder)/eventhub/resource-manager/v2018_01_01_preview -regenerate-manager: true -generate-interface: true -``` +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -### Tag: package-2015-08 and java - -These settings apply only when `--tag=package-2015-08 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.EventHub/stable/2017-04-01/EventHub.json + - $(this-folder)/Microsoft.EventHub/stable/2015-08-01/EventHub.json + - $(this-folder)/Microsoft.EventHub/stable/2014-09-01/EventHub.json + - $(this-folder)/Microsoft.EventHub/preview/2018-01-01-preview/EventHub-preview.json -``` yaml $(tag) == 'package-2015-08' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.eventhub.v2015_08_01 - output-folder: $(azure-libraries-for-java-folder)/eventhub/resource-manager/v2015_08_01 -regenerate-manager: true -generate-interface: true ``` -### Tag: package-2017-04 and java +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. -These settings apply only when `--tag=package-2017-04 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2017-04' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.eventhub.v2017_04_01 - output-folder: $(azure-libraries-for-java-folder)/eventhub/resource-manager/v2017_04_01 -regenerate-manager: true -generate-interface: true +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json ``` - diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/README.md b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/README.md new file mode 100644 index 000000000000..cdb350ea928f --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/README.md @@ -0,0 +1,21 @@ +# General Availability API specification for FrontDoor Azure Resource +> see https://aka.ms/autorest + +This directory contains the schema specifications for the Front Door Azure Resource. The API will be added to support Front Door on Azure Resource Manager. + +The base swagger document for new features for Frontdoor: [frontdoor.json](./frontdoor.json) + +## Overview +The Front Door ARM API supports CRUD functionality on four objects in the resource schema: +`FrontDoor`, a collection of child objects `BackendPool`, a collection of child objects `FrontendEndpoints` and the primary child object `RoutingRule`, which each reference one `BackendPool` and `FrontendEndpoints` . Each routing rule encapsulates +all of the settings needed to configure the AzureFD backend infrastructure to set up a +reverse-proxy route to accelerate traffic, detect backend availability, +and balance between healthy members of the pool. + +## Generated object-model UML diagram +This diagram is generated from the swagger spec by "[`oav`](https://github.com/Azure/oav) `generate-uml`" +![Generated UML snapshot](./assets/frontdoor.svg) + +## Swagger and JSON specification reference and tools +- [OpenAPI specification v2.0 (aka Swagger 2.0)](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md) +- [Swagger.io online editor](https://editor.swagger.io/) diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/assets/frontdoor.svg b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/assets/frontdoor.svg new file mode 100644 index 000000000000..2806bba823df --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/assets/frontdoor.svg @@ -0,0 +1,668 @@ + + + + + + +G + + + +A0 + +Frontdoor + +-properties:FrontdoorProperties + + + +A2 + +FrontdoorProperties + +-resourceState:ResourceState +-provisioningState:string +-cname:string + + + +A0->A2 + + + + + +A1 + +FrontdoorUpdateParameters + +-friendlyName:string +-routingRules:Array<RoutingRule> +-loadBalancingSettings:Array<LoadBalancingSettingsModel> +-healthProbeSettings:Array<HealthProbeSettingsModel> +-backendPools:Array<BackendPool> +-frontendEndpoints:Array<FrontendEndpoint> +-enabledState:string + + + +A1->A2 + + +allOf + + + +A5 + +RoutingRule + +-properties:RoutingRuleProperties +-name:string +-type:string + + + +A1->A5 + + + + + +A10 + +LoadBalancingSettingsModel + +-properties:LoadBalancingSettingsProperties +-name:string +-type:string + + + +A1->A10 + + + + + +A14 + +HealthProbeSettingsModel + +-properties:HealthProbeSettingsProperties +-name:string +-type:string + + + +A1->A14 + + + + + +A18 + +BackendPool + +-properties:BackendPoolProperties +-name:string +-type:string + + + +A1->A18 + + + + + +A26 + +FrontendEndpoint + +-properties:FrontendEndpointProperties +-name:string +-type:string + + + +A1->A26 + + + + + +A30 + +ResourceState + + + +A2->A30 + + + + + +A3 + +FrontdoorListResult + +-value:Array<Frontdoor> +-nextLink:string + + + +A3->A0 + + + + + +A4 + +PurgeParameters + +-contentPaths:Array<string> + + + +A6 + +RoutingRuleProperties + +-resourceState:ResourceState + + + +A5->A6 + + + + + +A6->A30 + + + + + +A7 + +RoutingRuleListResult + +-value:Array<RoutingRule> +-nextLink:string + + + +A7->A5 + + + + + +A8 + +RoutingRuleUpdateParameters + +-frontendEndpoints:Array<SubResource> +-acceptedProtocols:Array<string> +-patternsToMatch:Array<string> +-customForwardingPath:string +-forwardingProtocol:string +-cacheConfiguration:CacheConfiguration +-backendPool:SubResource +-enabledState:string + + + +A8->A6 + + +allOf + + + +A22 + +CacheConfiguration + +-queryParameterStripDirective:string +-dynamicCompression:string + + + +A8->A22 + + + + + +A38 + +SubResource + +-id:string + + + +A8->A38 + + + + + +A8->A38 + + + + + +A9 + +Backend + +-address:string +-httpPort: +-httpsPort: +-enabledState:string +-priority: +-weight: +-backendHostHeader:string + + + +A11 + +LoadBalancingSettingsProperties + +-resourceState:ResourceState + + + +A10->A11 + + + + + +A11->A30 + + + + + +A12 + +LoadBalancingSettingsListResult + +-value:Array<LoadBalancingSettingsModel> +-nextLink:string + + + +A12->A10 + + + + + +A13 + +LoadBalancingSettingsUpdateParameters + +-sampleSize: +-successfulSamplesRequired: +-additionalLatencyMilliseconds: + + + +A13->A11 + + +allOf + + + +A15 + +HealthProbeSettingsProperties + +-resourceState:ResourceState + + + +A14->A15 + + + + + +A15->A30 + + + + + +A16 + +HealthProbeSettingsListResult + +-value:Array<HealthProbeSettingsModel> +-nextLink:string + + + +A16->A14 + + + + + +A17 + +HealthProbeSettingsUpdateParameters + +-path:string +-protocol:string +-intervalInSeconds: + + + +A17->A15 + + +allOf + + + +A20 + +BackendPoolProperties + +-resourceState:ResourceState + + + +A18->A20 + + + + + +A19 + +BackendPoolUpdateParameters + +-backends:Array<Backend> +-loadBalancingSettings:SubResource +-healthProbeSettings:SubResource + + + +A19->A9 + + + + + +A19->A20 + + +allOf + + + +A19->A38 + + + + + +A19->A38 + + + + + +A20->A30 + + + + + +A21 + +BackendPoolListResult + +-value:Array<BackendPool> +-nextLink:string + + + +A21->A18 + + + + + +A23 + +KeyVaultCertificateSourceParameters + +-vault:Object +-secretName:string +-secretVersion:string + + + +A24 + +FrontdoorCertificateSourceParameters + +-certificateType:string + + + +A25 + +CustomHttpsConfiguration + +-certificateSource:string +-protocolType:string +-keyVaultCertificateSourceParameters:KeyVaultCertificateSourceParameters +-frontdoorCertificateSourceParameters:FrontdoorCertificateSourceParameters + + + +A25->A23 + + + + + +A25->A24 + + + + + +A27 + +FrontendEndpointProperties + +-resourceState:ResourceState +-customHttpsProvisioningState:string +-customHttpsProvisioningSubstate:string +-customHttpsConfiguration:CustomHttpsConfiguration + + + +A26->A27 + + + + + +A27->A25 + + + + + +A27->A30 + + + + + +A28 + +FrontendEndpointUpdateParameters + +-hostName:string +-sessionAffinityEnabledState:string +-sessionAffinityTtlSeconds: +-webApplicationFirewallPolicyLink:Object + + + +A28->A27 + + +allOf + + + +A29 + +FrontendEndpointsListResult + +-value:Array<FrontendEndpoint> +-nextLink:string + + + +A29->A26 + + + + + +A31 + +ValidateCustomDomainInput + +-hostName:string + + + +A32 + +ValidateCustomDomainOutput + +-customDomainValidated:boolean +-reason:string +-message:string + + + +A33 + +ErrorResponse + +-code:string +-message:string + + + +A34 + +CheckNameAvailabilityInput + +-name:string +-type:ResourceType + + + +A36 + +ResourceType + + + +A34->A36 + + + + + +A35 + +CheckNameAvailabilityOutput + +-nameAvailability:string +-reason:string +-message:string + + + +A37 + +Resource + +-id:string +-name:string +-type:string +-location:string +-tags:Dictionary<string> + + + +A37->A0 + + +allOf + + + +A38->A5 + + +allOf + + + +A38->A10 + + +allOf + + + +A38->A14 + + +allOf + + + +A38->A18 + + +allOf + + + +A38->A26 + + +allOf + + + diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/CheckFrontdoorNameAvailability.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/CheckFrontdoorNameAvailability.json new file mode 100644 index 000000000000..f14c8283f56a --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/CheckFrontdoorNameAvailability.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2019-05-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/2019-05-01/examples/CheckFrontdoorNameAvailabilityWithSubscription.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/CheckFrontdoorNameAvailabilityWithSubscription.json new file mode 100644 index 000000000000..99f3651cc57c --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/CheckFrontdoorNameAvailabilityWithSubscription.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2019-05-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/2019-05-01/examples/FrontdoorBackendPoolCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorBackendPoolCreate.json new file mode 100644 index 000000000000..173d7a44b340 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorBackendPoolCreate.json @@ -0,0 +1,165 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "backendPoolName": "backendPool1", + "backendPoolParameters": { + "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 + }, + { + "address": "contoso1.azurewebsites.net", + "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" + } + } + } + }, + "responses": { + "200": { + "body": { + "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 + }, + { + "address": "contoso1.azurewebsites.net", + "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" + } + } + } + }, + "201": { + "body": { + "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 + }, + { + "address": "contoso1.azurewebsites.net", + "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" + } + } + } + }, + "202": { + "body": { + "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 + }, + { + "address": "contoso1.azurewebsites.net", + "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" + } + } + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorBackendPoolDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorBackendPoolDelete.json new file mode 100644 index 000000000000..90cff1080966 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorBackendPoolDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "backendPoolName": "backendPool1" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorBackendPoolGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorBackendPoolGet.json new file mode 100644 index 000000000000..27302d8e8160 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorBackendPoolGet.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "backendPoolName": "backendPool1" + }, + "responses": { + "200": { + "body": { + "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 + }, + { + "address": "contoso1.azurewebsites.net", + "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" + } + } + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorBackendPoolList.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorBackendPoolList.json new file mode 100644 index 000000000000..cdf8b2d57b7e --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorBackendPoolList.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "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 + }, + { + "address": "contoso1.azurewebsites.net", + "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" + } + } + } + ] + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorCreate.json new file mode 100644 index 000000000000..2620327488ce --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorCreate.json @@ -0,0 +1,533 @@ +{ + "parameters": { + "api-version": "2019-05-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" + } + }, + "enabledState": "Enabled" + } + } + ], + "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 + }, + { + "address": "contoso1.azurewebsites.net", + "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" + } + }, + "enabledState": "Enabled" + } + } + ], + "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 + }, + { + "address": "contoso1.azurewebsites.net", + "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" + } + }, + "enabledState": "Enabled" + } + } + ], + "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 + }, + { + "address": "contoso1.azurewebsites.net", + "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" + } + }, + "enabledState": "Enabled" + } + } + ], + "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 + }, + { + "address": "contoso1.azurewebsites.net", + "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/2019-05-01/examples/FrontdoorDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorDelete.json new file mode 100644 index 000000000000..24bd1ac8e15d --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorDisableHttps.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorDisableHttps.json new file mode 100644 index 000000000000..42f17fb474fd --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorDisableHttps.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "frontendEndpointName": "frontendEndpoint1" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorEnableHttps.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorEnableHttps.json new file mode 100644 index 000000000000..53d20926cc0c --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorEnableHttps.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-05-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/2019-05-01/examples/FrontdoorFrontendEndpointCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorFrontendEndpointCreate.json new file mode 100644 index 000000000000..9d6c548a8d5f --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorFrontendEndpointCreate.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "frontendEndpointName": "frontDoorEndpoint1", + "frontendEndpointParameters": { + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + } + }, + "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" + } + } + } + }, + "201": { + "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" + } + } + } + }, + "202": { + "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/2019-05-01/examples/FrontdoorFrontendEndpointDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorFrontendEndpointDelete.json new file mode 100644 index 000000000000..49981f5191da --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorFrontendEndpointDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "frontendEndpointName": "frontendEndpoint1" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorFrontendEndpointGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorFrontendEndpointGet.json new file mode 100644 index 000000000000..337e24bdeba2 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorFrontendEndpointGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-05-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/2019-05-01/examples/FrontdoorFrontendEndpointList.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorFrontendEndpointList.json new file mode 100644 index 000000000000..24c4b57d0f41 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorFrontendEndpointList.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2019-05-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/2019-05-01/examples/FrontdoorGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorGet.json new file mode 100644 index 000000000000..9f7ee4677cb6 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorGet.json @@ -0,0 +1,145 @@ +{ + "parameters": { + "api-version": "2019-05-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" + } + }, + "enabledState": "Enabled" + } + } + ], + "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 + }, + { + "address": "contoso1.azurewebsites.net", + "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": "Enabled", + "provisioningState": "Succeeded", + "cname": "frontDoor1.azurefd.net" + } + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorHealthProbeSettingsCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorHealthProbeSettingsCreate.json new file mode 100644 index 000000000000..7ce9145d834a --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorHealthProbeSettingsCreate.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "healthProbeSettingsName": "healthProbeSettings1", + "healthProbeSettingsParameters": { + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120, + "enabledState": "Enabled" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1", + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120, + "enabledState": "Enabled" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1", + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120, + "enabledState": "Enabled" + } + } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1", + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120, + "enabledState": "Enabled" + } + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorHealthProbeSettingsDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorHealthProbeSettingsDelete.json new file mode 100644 index 000000000000..8e0660c6269a --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorHealthProbeSettingsDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "healthProbeSettingsName": "healthProbeSettings1" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorHealthProbeSettingsGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorHealthProbeSettingsGet.json new file mode 100644 index 000000000000..05ec6f5747cd --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorHealthProbeSettingsGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "healthProbeSettingsName": "healthProbeSettings1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1", + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120, + "enabledState": "Enabled", + "healthProbeMethod": "HEAD" + } + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorHealthProbeSettingsList.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorHealthProbeSettingsList.json new file mode 100644 index 000000000000..fc21bfbdff29 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorHealthProbeSettingsList.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1", + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120, + "enabledState": "Enabled", + "healthProbeMethod": "HEAD" + } + } + ] + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorList.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorList.json new file mode 100644 index 000000000000..b38a3201d8d8 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorList.json @@ -0,0 +1,148 @@ +{ + "parameters": { + "api-version": "2019-05-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" + } + }, + "enabledState": "Enabled" + } + } + ], + "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 + }, + { + "address": "contoso1.azurewebsites.net", + "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": "Enabled", + "provisioningState": "Succeeded", + "cname": "frontDoor1.azurefd.net" + } + } + ] + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorListAll.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorListAll.json new file mode 100644 index 000000000000..4bf212cd88dd --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorListAll.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "api-version": "2019-05-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" + } + }, + "enabledState": "Enabled" + } + } + ], + "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 + }, + { + "address": "contoso1.azurewebsites.net", + "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" + }, + "enabledState": "Enabled", + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "cname": "frontDoor1.azurefd.net" + } + } + ] + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorLoadBalancingSettingsCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorLoadBalancingSettingsCreate.json new file mode 100644 index 000000000000..d06b3e12d04d --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorLoadBalancingSettingsCreate.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "loadBalancingSettingsName": "loadBalancingSettings1", + "loadBalancingSettingsParameters": { + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadbalancingSettings1", + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadbalancingSettings1", + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadbalancingSettings1", + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorLoadBalancingSettingsDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorLoadBalancingSettingsDelete.json new file mode 100644 index 000000000000..a28375d1d443 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorLoadBalancingSettingsDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "loadBalancingSettingsName": "loadBalancingSettings1" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorLoadBalancingSettingsGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorLoadBalancingSettingsGet.json new file mode 100644 index 000000000000..d6584f79194f --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorLoadBalancingSettingsGet.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "loadBalancingSettingsName": "loadBalancingSettings1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadbalancingSettings1", + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorLoadBalancingSettingsList.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorLoadBalancingSettingsList.json new file mode 100644 index 000000000000..3fca126ab439 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorLoadBalancingSettingsList.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadbalancingSettings1", + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + ] + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorPurgeContent.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorPurgeContent.json new file mode 100644 index 000000000000..cb4608227472 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorPurgeContent.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2019-05-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/2019-05-01/examples/FrontdoorRedirectRoutingRuleCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRedirectRoutingRuleCreate.json new file mode 100644 index 000000000000..fa146c71e1cf --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRedirectRoutingRuleCreate.json @@ -0,0 +1,136 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "routingRuleName": "redirectRoutingRule1", + "routingRuleParameters": { + "name": "redirectRoutingRule1", + "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": [ + "Https" + ], + "patternsToMatch": [ + "/*" + ], + "routeConfiguration": { + "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration", + "redirectType": "Moved", + "redirectProtocol": "HttpsOnly", + "customHost": "www.bing.com", + "customPath": "/api", + "customFragment": "fragment", + "customQueryString": "a=b" + }, + "enabledState": "Enabled" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/redirectRoutingRule1", + "name": "redirectRoutingRule1", + "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": [ + "Https" + ], + "patternsToMatch": [ + "/*" + ], + "routeConfiguration": { + "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration", + "redirectType": "Moved", + "redirectProtocol": "HttpsOnly", + "customHost": "www.bing.com", + "customPath": "/api", + "customFragment": "fragment", + "customQueryString": "a=b" + }, + "enabledState": "Enabled" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/redirectRoutingRule1", + "name": "redirectRoutingRule1", + "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": [ + "Https" + ], + "patternsToMatch": [ + "/*" + ], + "routeConfiguration": { + "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration", + "redirectType": "Moved", + "redirectProtocol": "HttpsOnly", + "customHost": "www.bing.com", + "customPath": "/api", + "customFragment": "fragment", + "customQueryString": "a=b" + }, + "enabledState": "Enabled" + } + } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/redirectRoutingRule1", + "name": "redirectRoutingRule1", + "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": [ + "Https" + ], + "patternsToMatch": [ + "/*" + ], + "routeConfiguration": { + "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration", + "redirectType": "Moved", + "redirectProtocol": "HttpsOnly", + "customHost": "www.bing.com", + "customPath": "/api", + "customFragment": "fragment", + "customQueryString": "a=b" + }, + "enabledState": "Enabled" + } + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRedirectRoutingRuleGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRedirectRoutingRuleGet.json new file mode 100644 index 000000000000..e7acb420d61f --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRedirectRoutingRuleGet.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "routingRuleName": "redirectRoutingRule1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/redirectRoutingRule1", + "name": "redirectRoutingRule1", + "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": [ + "Https" + ], + "patternsToMatch": [ + "/*" + ], + "routeConfiguration": { + "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration", + "redirectType": "Moved", + "redirectProtocol": "HttpsOnly", + "customHost": "www.bing.com", + "customPath": "/api", + "customFragment": "fragment", + "customQueryString": "a=b" + }, + "enabledState": "Enabled" + } + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRoutingRuleCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRoutingRuleCreate.json new file mode 100644 index 000000000000..02e739ea6562 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRoutingRuleCreate.json @@ -0,0 +1,130 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "routingRuleName": "routingRule1", + "routingRuleParameters": { + "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" + } + }, + "enabledState": "Enabled" + } + } + }, + "responses": { + "200": { + "body": { + "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" + } + }, + "enabledState": "Enabled" + } + } + }, + "201": { + "body": { + "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" + } + }, + "enabledState": "Enabled" + } + } + }, + "202": { + "body": { + "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" + } + }, + "enabledState": "Enabled" + } + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRoutingRuleDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRoutingRuleDelete.json new file mode 100644 index 000000000000..11e04942505d --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRoutingRuleDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "routingRuleName": "routingRule1" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRoutingRuleGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRoutingRuleGet.json new file mode 100644 index 000000000000..8947311421b1 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRoutingRuleGet.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "routingRuleName": "routingRule1" + }, + "responses": { + "200": { + "body": { + "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" + } + }, + "enabledState": "Enabled" + } + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRoutingRuleList.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRoutingRuleList.json new file mode 100644 index 000000000000..50cf21f7dd3c --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorRoutingRuleList.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2019-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "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" + } + }, + "enabledState": "Enabled" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/redirectRoutingRule1", + "name": "redirectRoutingRule1", + "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": [ + "Https" + ], + "patternsToMatch": [ + "/*" + ], + "routeConfiguration": { + "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration", + "redirectType": "Moved", + "redirectProtocol": "HttpsOnly", + "customHost": "www.bing.com", + "customPath": "/api", + "customFragment": "fragment", + "customQueryString": "a=b" + }, + "enabledState": "Enabled" + } + } + ] + } + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorValidateCustomDomain.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorValidateCustomDomain.json new file mode 100644 index 000000000000..7b6bb8216c0f --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/examples/FrontdoorValidateCustomDomain.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-05-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/2019-05-01/frontdoor.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/frontdoor.json new file mode 100644 index 000000000000..f41aad8fd5bc --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/frontdoor.json @@ -0,0 +1,2711 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-05-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 + }, + "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 + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Lists all of the Routing Rules within a Front Door.", + "operationId": "RoutingRules_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/RoutingRuleListResult" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Routing Rules in a Front Door": { + "$ref": "./examples/FrontdoorRoutingRuleList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules/{routingRuleName}": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Gets a Routing Rule with the specified Rule name within the specified Front Door.", + "operationId": "RoutingRules_Get", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/routingRuleNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/RoutingRule" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Forwarding Routing Rule": { + "$ref": "./examples/FrontdoorRoutingRuleGet.json" + }, + "Get Redirect Routing Rule": { + "$ref": "./examples/FrontdoorRedirectRoutingRuleGet.json" + } + } + }, + "put": { + "tags": [ + "FrontDoors" + ], + "description": "Creates a new Routing Rule with the specified Rule name within the specified Front Door.", + "operationId": "RoutingRules_CreateOrUpdate", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/routingRuleNameParameter" + }, + { + "description": "Routing Rule properties needed to create a new Front Door.", + "in": "body", + "name": "routingRuleParameters", + "required": true, + "schema": { + "$ref": "#/definitions/RoutingRule" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/RoutingRule" + } + }, + "201": { + "description": "Created. The request has been fulfilled and a new RoutingRule has been created.", + "schema": { + "$ref": "#/definitions/RoutingRule" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/RoutingRule" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update specific Forwarding Routing Rule": { + "$ref": "./examples/FrontdoorRoutingRuleCreate.json" + }, + "Create or update specific Redirect Routing Rule": { + "$ref": "./examples/FrontdoorRedirectRoutingRuleCreate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FrontDoors" + ], + "description": "Deletes an existing Routing Rule with the specified parameters.", + "operationId": "RoutingRules_Delete", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/routingRuleNameParameter" + }, + { + "$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 Routing Rule was not found." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Routing Rule": { + "$ref": "./examples/FrontdoorRoutingRuleDelete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Lists all of the HealthProbeSettings within a Front Door.", + "operationId": "HealthProbeSettings_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/HealthProbeSettingsListResult" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List HealthProbeSettings in a Front Door": { + "$ref": "./examples/FrontdoorHealthProbeSettingsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Gets a HealthProbeSettings with the specified Rule name within the specified Front Door.", + "operationId": "HealthProbeSettings_Get", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/healthProbeSettingsNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/HealthProbeSettingsModel" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get HealthProbeSettings": { + "$ref": "./examples/FrontdoorHealthProbeSettingsGet.json" + } + } + }, + "put": { + "tags": [ + "FrontDoors" + ], + "description": "Creates a new HealthProbeSettings with the specified Rule name within the specified Front Door.", + "operationId": "HealthProbeSettings_CreateOrUpdate", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/healthProbeSettingsNameParameter" + }, + { + "description": "HealthProbeSettings properties needed to create a new Front Door.", + "in": "body", + "name": "healthProbeSettingsParameters", + "required": true, + "schema": { + "$ref": "#/definitions/HealthProbeSettingsModel" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/HealthProbeSettingsModel" + } + }, + "201": { + "description": "Created. The request has been fulfilled and a new HealthProbeSettings has been created.", + "schema": { + "$ref": "#/definitions/HealthProbeSettingsModel" + } + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/HealthProbeSettingsModel" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update specific HealthProbeSettings": { + "$ref": "./examples/FrontdoorHealthProbeSettingsCreate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FrontDoors" + ], + "description": "Deletes an existing HealthProbeSettings with the specified parameters.", + "operationId": "HealthProbeSettings_Delete", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/healthProbeSettingsNameParameter" + }, + { + "$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 HealthProbeSettings was not found." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete HealthProbeSettings": { + "$ref": "./examples/FrontdoorHealthProbeSettingsDelete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Lists all of the LoadBalancingSettings within a Front Door.", + "operationId": "LoadBalancingSettings_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/LoadBalancingSettingsListResult" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List LoadBalancingSettings in a Front Door": { + "$ref": "./examples/FrontdoorLoadBalancingSettingsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings/{loadBalancingSettingsName}": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Gets a LoadBalancingSettings with the specified Rule name within the specified Front Door.", + "operationId": "LoadBalancingSettings_Get", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/loadBalancingSettingsNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LoadBalancingSettingsModel" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get LoadBalancingSettings": { + "$ref": "./examples/FrontdoorLoadBalancingSettingsGet.json" + } + } + }, + "put": { + "tags": [ + "FrontDoors" + ], + "description": "Creates a new LoadBalancingSettings with the specified Rule name within the specified Front Door.", + "operationId": "LoadBalancingSettings_CreateOrUpdate", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/loadBalancingSettingsNameParameter" + }, + { + "description": "LoadBalancingSettings properties needed to create a new Front Door.", + "in": "body", + "name": "loadBalancingSettingsParameters", + "required": true, + "schema": { + "$ref": "#/definitions/LoadBalancingSettingsModel" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LoadBalancingSettingsModel" + } + }, + "201": { + "description": "Created. The request has been fulfilled and a new LoadBalancingSettings has been created.", + "schema": { + "$ref": "#/definitions/LoadBalancingSettingsModel" + } + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/LoadBalancingSettingsModel" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update specific LoadBalancingSettings": { + "$ref": "./examples/FrontdoorLoadBalancingSettingsCreate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FrontDoors" + ], + "description": "Deletes an existing LoadBalancingSettings with the specified parameters.", + "operationId": "LoadBalancingSettings_Delete", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/loadBalancingSettingsNameParameter" + }, + { + "$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 LoadBalancingSettings was not found." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete LoadBalancingSettings": { + "$ref": "./examples/FrontdoorLoadBalancingSettingsDelete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Lists all of the Backend Pools within a Front Door.", + "operationId": "BackendPools_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/BackendPoolListResult" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Backend Pools in a Front Door": { + "$ref": "./examples/FrontdoorBackendPoolList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Gets a Backend Pool with the specified Pool name within the specified Front Door.", + "operationId": "BackendPools_Get", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/backendPoolNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BackendPool" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Backend Pool": { + "$ref": "./examples/FrontdoorBackendPoolGet.json" + } + } + }, + "put": { + "tags": [ + "FrontDoors" + ], + "description": "Creates a new Backend Pool with the specified Pool name within the specified Front Door.", + "operationId": "BackendPools_CreateOrUpdate", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/backendPoolNameParameter" + }, + { + "description": "Backend Pool properties needed to create a new Pool.", + "in": "body", + "name": "backendPoolParameters", + "required": true, + "schema": { + "$ref": "#/definitions/BackendPool" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BackendPool" + } + }, + "201": { + "description": "Created. The request has been fulfilled and a new BackendPool has been created.", + "schema": { + "$ref": "#/definitions/BackendPool" + } + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/BackendPool" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update specific Backend Pool": { + "$ref": "./examples/FrontdoorBackendPoolCreate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FrontDoors" + ], + "description": "Deletes an existing Backend Pool with the specified parameters.", + "operationId": "BackendPools_Delete", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/backendPoolNameParameter" + }, + { + "$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 Backend Pool was not found." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Backend Pool": { + "$ref": "./examples/FrontdoorBackendPoolDelete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/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" + } + } + }, + "put": { + "tags": [ + "FrontDoors" + ], + "description": "Creates a new frontend endpoint with the specified host name within the specified Front Door.", + "operationId": "FrontendEndpoints_CreateOrUpdate", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/frontendEndpointNameParameter" + }, + { + "description": "Frontend endpoint properties needed to create a new endpoint.", + "in": "body", + "name": "frontendEndpointParameters", + "required": true, + "schema": { + "$ref": "#/definitions/FrontendEndpoint" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/FrontendEndpoint" + } + }, + "201": { + "description": "Created. The request has been fulfilled and a new frontend endpoint has been created.", + "schema": { + "$ref": "#/definitions/FrontendEndpoint" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/FrontendEndpoint" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update specific Frontend Endpoint": { + "$ref": "./examples/FrontdoorFrontendEndpointCreate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FrontDoors" + ], + "description": "Deletes an existing frontend endpoint with the specified parameters.", + "operationId": "FrontendEndpoints_Delete", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/frontendEndpointNameParameter" + }, + { + "$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 Backend Pool was not found." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Backend Pool": { + "$ref": "./examples/FrontdoorFrontendEndpointDelete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/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 + } + }, + "/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 + } + }, + "/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 + } + }, + "/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" + } + } + } + } + } + }, + "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." + } + } + }, + "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" + } + } + }, + "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" + }, + "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 routing rule.", + "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" + ], + "type": "string", + "x-ms-enum": { + "name": "FrontDoorQuery", + "modelAsString": true + } + }, + "dynamicCompression": { + "description": "Whether to use dynamic compression for cached content", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "DynamicCompressionEnabled", + "modelAsString": true + } + } + } + }, + "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 + } + } + }, + "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 + } + }, + "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." + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/network.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-01/network.json new file mode 100644 index 000000000000..fae4970303db --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2019-05-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": "2018-02-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/readme.go.md b/specification/frontdoor/resource-manager/readme.go.md index 288feae0d19c..920ec28581f1 100644 --- a/specification/frontdoor/resource-manager/readme.go.md +++ b/specification/frontdoor/resource-manager/readme.go.md @@ -15,8 +15,18 @@ go: batch: - tag: package-2018-08-preview - tag: package-2019-04 + - tag: package-2019-05 ``` +### Tag: package-2019-05 and go + +These settings apply only when `--tag=package-2019-05 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2019-05' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-05-01/$(namespace) +``` + ### Tag: package-2019-04 and go These settings apply only when `--tag=package-2019-04 --go` is specified on the command line. diff --git a/specification/frontdoor/resource-manager/readme.md b/specification/frontdoor/resource-manager/readme.md index ce393c177fe7..cdce964779b7 100644 --- a/specification/frontdoor/resource-manager/readme.md +++ b/specification/frontdoor/resource-manager/readme.md @@ -28,7 +28,23 @@ These are the global settings for the FrontDoor API. title: FrontDoorManagementClient description: FrontDoor Client openapi-type: arm -tag: package-2019-04 +tag: package-2019-05 +``` + +### Tag: package-2019-05 + +These settings apply only when `--tag=package-2019-05` is specified on the command line. + +``` yaml $(tag) == 'package-2019-05' +input-file: +- Microsoft.Network/stable/2019-05-01/frontdoor.json +- Microsoft.Network/stable/2019-05-01/network.json +- Microsoft.Network/stable/2019-03-01/webapplicationfirewall.json +directive: + - where: + - $.paths + suppress: + - OperationsAPIImplementation ``` ### Tag: package-2019-04 @@ -90,6 +106,7 @@ 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-libraries-for-java - repo: azure-sdk-for-go @@ -148,3 +165,36 @@ directive: suppress: EnumInsteadOfBoolean reason: Direct copy of ValidateCustomDomain API in CDN Resource Provider. ``` + +## 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.Network/stable/2019-05-01/frontdoor.json + - $(this-folder)/Microsoft.Network/stable/2019-05-01/network.json + - $(this-folder)/Microsoft.Network/stable/2019-03-01/webapplicationfirewall.json + - $(this-folder)/Microsoft.Network/stable/2019-04-01/frontdoor.json + - $(this-folder)/Microsoft.Network/stable/2019-04-01/network.json + - $(this-folder)/Microsoft.Network/preview/2018-08-01-preview/frontdoor.json + - $(this-folder)/Microsoft.Network/preview/2018-08-01-preview/network.json + - $(this-folder)/Microsoft.Network/preview/2019-03-01-preview/webapplicationfirewall.json + - $(this-folder)/Microsoft.Network/preview/2018-08-01-preview/webapplicationfirewall.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/graphrbac/data-plane/readme.md b/specification/graphrbac/data-plane/readme.md index e7e79334fb34..20cd5f677c81 100644 --- a/specification/graphrbac/data-plane/readme.md +++ b/specification/graphrbac/data-plane/readme.md @@ -105,3 +105,28 @@ java: payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-graphrbac ``` + +## 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.GraphRbac/stable/1.6/graphrbac.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/guestconfiguration/resource-manager/readme.md b/specification/guestconfiguration/resource-manager/readme.md index 9066c1cd1eab..0951302918bc 100644 --- a/specification/guestconfiguration/resource-manager/readme.md +++ b/specification/guestconfiguration/resource-manager/readme.md @@ -109,3 +109,30 @@ csharp: output-folder: $(csharp-sdks-folder)/guestconfiguration/Microsoft.Azure.Management.GuestConfiguration/src/Generated clear-output-folder: 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)/Microsoft.GuestConfiguration/stable/2018-11-20/guestconfiguration.json + - $(this-folder)/Microsoft.GuestConfiguration/preview/2018-06-30-preview/guestconfiguration.json + - $(this-folder)/Microsoft.GuestConfiguration/preview/2018-01-20-preview/guestconfiguration.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/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/HanaInstances_EnableMonitoring.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/HanaInstances_EnableMonitoring.json deleted file mode 100644 index 2c9dafcc48b4..000000000000 --- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/HanaInstances_EnableMonitoring.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "api-version": "2017-11-03-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "hanaInstanceName": "myHanaInstance", - "monitoringParameter": { - "hanaSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", - "hanaHostname": "hana.hostname", - "hanaDbSqlPort": 50, - "hanaDbUsername": "SYSTEM", - "hanaDbPassword": "passExample" - } - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/HanaInstances_Shutdown.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/HanaInstances_Shutdown.json new file mode 100644 index 000000000000..ecfa2c7e10c3 --- /dev/null +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/HanaInstances_Shutdown.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2017-11-03-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "hanaInstanceName": "myHanaInstance" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/HanaInstances_Start.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/HanaInstances_Start.json new file mode 100644 index 000000000000..ecfa2c7e10c3 --- /dev/null +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/HanaInstances_Start.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2017-11-03-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "hanaInstanceName": "myHanaInstance" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_Create.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_Create.json new file mode 100644 index 000000000000..10f8de0e3941 --- /dev/null +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_Create.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2017-11-03-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "sapMonitorName": "mySapMonitor", + "sapMonitorParameter": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor", + "name": "mySapMonitor", + "type": "Microsoft.HanaOnAzure/sapMonitors", + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "hanaSubnet": "", + "hanaHostname": "", + "hanaDbName": "", + "hanaDbSqlPort": 1234, + "hanaDbUsername": "", + "hanaDbPassword": "", + "HanaDbPasswordKeyVaultURL": "", + "HanaDbCredentialsMsiID": "", + "provisioningState": "Succeeded" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance", + "name": "myHanaInstance", + "type": "Microsoft.HanaOnAzure/hanaInstances", + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "hanaSubnet": "", + "hanaHostname": "", + "hanaDbName": "", + "hanaDbSqlPort": 1234, + "hanaDbUsername": "", + "hanaDbPasswordKeyVaultUrl": "", + "hanaDbCredentialsMsiId": "", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance", + "name": "myHanaInstance", + "type": "Microsoft.HanaOnAzure/hanaInstances", + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "hanaSubnet": "", + "hanaHostname": "", + "hanaDbName": "", + "hanaDbSqlPort": 1234, + "hanaDbUsername": "", + "hanaDbPasswordKeyVaultUrl": "", + "hanaDbCredentialsMsiId": "", + "provisioningState": "Accepted" + } + } + } + } +} diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_Delete.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_Delete.json new file mode 100644 index 000000000000..4b82a98dfefc --- /dev/null +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2017-11-03-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "sapMonitorName": "mySapMonitor" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_Get.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_Get.json new file mode 100644 index 000000000000..25a8cbc41f9f --- /dev/null +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_Get.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2017-11-03-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "sapMonitorName": "mySapMonitor" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor", + "name": "mySapMonitor", + "type": "Microsoft.HanaOnAzure/sapMonitors", + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "hanaSubnet": "", + "hanaHostname": "", + "hanaDbName": "", + "hanaDbSqlPort": 1234, + "hanaDbUsername": "", + "hanaDbPasswordKeyVaultUrl": "", + "hanaDbCredentialsMsiId": "", + "managedResourceGroupName": "testManagedRg", + "logAnalyticsWorkspaceArmId": "", + "keyVaultId": "", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_List.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_List.json new file mode 100644 index 000000000000..c24117fd378f --- /dev/null +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_List.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2017-11-03-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor1", + "name": "mySapMonitor1", + "type": "Microsoft.HanaOnAzure/sapMonitors", + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "hanaSubnet": "", + "hanaHostname": "", + "hanaDbName": "", + "hanaDbSqlPort": 1234, + "hanaDbUsername": "", + "hanaDbPasswordKeyVaultUrl": "", + "hanaDbCredentialsMsiId": "", + "managedResourceGroupName": "testManagedRg", + "logAnalyticsWorkspaceArmId": "", + "keyVaultId": "", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor2", + "name": "mySapMonitor2", + "type": "Microsoft.HanaOnAzure/sapMonitors", + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "hanaSubnet": "", + "hanaHostname": "", + "hanaDbName": "", + "hanaDbSqlPort": 1234, + "hanaDbUsername": "", + "hanaDbPasswordKeyVaultUrl": "", + "hanaDbCredentialsMsiId": "", + "managedResourceGroupName": "testManagedRg", + "logAnalyticsWorkspaceArmId": "", + "keyVaultId": "", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_PatchTags.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_PatchTags.json new file mode 100644 index 000000000000..448423990c2c --- /dev/null +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_PatchTags.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2017-11-03-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "sapMonitorName": "mySapMonitor", + "tagsParameter": { + "tags": { + "testkey": "testvalue" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor", + "name": "mySapMonitor", + "type": "Microsoft.HanaOnAzure/sapMonitors", + "location": "westus", + "tags": { + "testkey": "testvalue" + }, + "properties": { + "hanaSubnet": "", + "hanaHostname": "", + "hanaDbName": "", + "hanaDbSqlPort": 1234, + "hanaDbUsername": "", + "hanaDbPasswordKeyVaultUrl": "", + "hanaDbCredentialsMsiId": "", + "managedResourceGroupName": "testManagedRg", + "logAnalyticsWorkspaceArmId": "", + "keyVaultId": "", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_PatchTags_Delete.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_PatchTags_Delete.json new file mode 100644 index 000000000000..b30452d0cc35 --- /dev/null +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/examples/SapMonitors_PatchTags_Delete.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2017-11-03-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "sapMonitorName": "mySapMonitor", + "tagsParameter": { + "tags": {} + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor", + "name": "mySapMonitor", + "type": "Microsoft.HanaOnAzure/sapMonitors", + "location": "westus", + "tags": {}, + "properties": { + "hanaSubnet": "", + "hanaHostname": "", + "hanaDbName": "", + "hanaDbSqlPort": 1234, + "hanaDbUsername": "", + "hanaDbPasswordKeyVaultUrl": "", + "hanaDbCredentialsMsiId": "", + "managedResourceGroupName": "testManagedRg", + "logAnalyticsWorkspaceArmId": "", + "keyVaultId": "", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json index 4937fc445a20..262f7e50271a 100644 --- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json @@ -377,21 +377,27 @@ }, "202": { "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances/{hanaInstanceName}/monitoring": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances/{hanaInstanceName}/start": { "post": { "tags": [ "HanaOnAzure" ], - "operationId": "HanaInstances_EnableMonitoring", + "operationId": "HanaInstances_Start", "x-ms-long-running-operation": true, - "description": "The operation to add a monitor to an SAP HANA instance.", + "description": "The operation to start a SAP HANA instance.", "x-ms-examples": { - "Monitor a HANA instance": { - "$ref": "./examples/HanaInstances_EnableMonitoring.json" + "Start a HANA instance": { + "$ref": "./examples/HanaInstances_Start.json" } }, "consumes": [ @@ -412,9 +418,55 @@ }, { "$ref": "#/parameters/HanaInstanceNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances/{hanaInstanceName}/shutdown": { + "post": { + "tags": [ + "HanaOnAzure" + ], + "operationId": "HanaInstances_Shutdown", + "x-ms-long-running-operation": true, + "description": "The operation to shutdown a SAP HANA instance.", + "x-ms-examples": { + "Shutdown a HANA instance": { + "$ref": "./examples/HanaInstances_Shutdown.json" + } + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/MonitoringParameter" + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/HanaInstanceNameParameter" } ], "responses": { @@ -423,6 +475,241 @@ }, "202": { "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HanaOnAzure/sapMonitors": { + "get": { + "tags": [ + "HanaOnAzure" + ], + "operationId": "SapMonitors_List", + "summary": "Gets a list of SAP monitors in the specified subscription.", + "description": "Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP monitor.", + "x-ms-examples": { + "List all SAP Monitors in a subscription": { + "$ref": "./examples/SapMonitors_List.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SapMonitorListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}": { + "get": { + "tags": [ + "HanaOnAzure" + ], + "operationId": "SapMonitors_Get", + "summary": "Gets properties of a SAP monitor.", + "description": "Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.", + "x-ms-examples": { + "Get properties of a SAP monitor": { + "$ref": "./examples/SapMonitors_Get.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SapMonitorNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SapMonitor" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "HanaOnAzure" + ], + "operationId": "SapMonitors_Create", + "x-ms-long-running-operation": true, + "summary": "Creates a SAP monitor.", + "description": "Creates a SAP monitor for the specified subscription, resource group, and resource name.", + "x-ms-examples": { + "Create a SAP Monitor": { + "$ref": "./examples/SapMonitors_Create.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SapMonitorNameParameter" + }, + { + "$ref": "#/parameters/SapMonitorParameter" + } + ], + "responses": { + "200": { + "description": "Created SapMonitor", + "schema": { + "$ref": "#/definitions/SapMonitor" + } + }, + "201": { + "description": "Creating SapMonitor", + "schema": { + "$ref": "#/definitions/SapMonitor" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "HanaOnAzure" + ], + "operationId": "SapMonitors_Delete", + "x-ms-long-running-operation": true, + "summary": "Deletes a SAP monitor.", + "description": "Deletes a SAP monitor with the specified subscription, resource group, and monitor name.", + "x-ms-examples": { + "Deletes a SAP monitor": { + "$ref": "./examples/SapMonitors_Delete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SapMonitorNameParameter" + } + ], + "responses": { + "200": { + "description": "Deleted SapMonitor" + }, + "202": { + "description": "Deleting SapMonitor" + }, + "204": { + "description": "No SapMonitor to delete" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "HanaOnAzure" + ], + "operationId": "SapMonitors_Update", + "summary": "Patches the Tags field of a SAP monitor.", + "description": "Patches the Tags field of a SAP monitor for the specified subscription, resource group, and monitor name.", + "x-ms-examples": { + "Update Tags field of a SAP monitor": { + "$ref": "./examples/SapMonitors_PatchTags.json" + }, + "Delete Tags field of a SAP monitor": { + "$ref": "./examples/SapMonitors_PatchTags_Delete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SapMonitorNameParameter" + }, + { + "$ref": "#/parameters/TagsParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SapMonitor" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } } @@ -821,6 +1108,106 @@ } }, "description": "Details needed to monitor a Hana Instance" + }, + "SapMonitorListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SapMonitor" + }, + "description": "The list of SAP monitors." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of SAP monitors." + } + }, + "description": "The response from the List SAP monitors operation." + }, + "SapMonitor": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SapMonitorProperties", + "description": "SAP monitor properties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "SAP monitor info on Azure (ARM properties and SAP monitor properties)" + }, + "SapMonitorProperties": { + "properties": { + "hanaSubnet": { + "type": "string", + "description": "Specifies the SAP monitor unique ID." + }, + "hanaHostname": { + "type": "string", + "description": "Hostname of the HANA instance." + }, + "hanaDbName": { + "type": "string", + "description": "Database name of the HANA instance." + }, + "hanaDbSqlPort": { + "type": "integer", + "description": "Database port of the HANA instance." + }, + "hanaDbUsername": { + "type": "string", + "description": "Database username of the HANA instance." + }, + "hanaDbPassword": { + "type": "string", + "description": "Database password of the HANA instance." + }, + "hanaDbPasswordKeyVaultUrl": { + "type": "string", + "description": "KeyVault URL link to the password for the HANA database." + }, + "hanaDbCredentialsMsiId": { + "type": "string", + "description": "MSI ID passed by customer which has access to customer's KeyVault and to be assigned to the Collector VM." + }, + "keyVaultId": { + "type": "string", + "description": "Key Vault ID containing customer's HANA credentials." + }, + "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 HanaInstance" + }, + "managedResourceGroupName": { + "readOnly": true, + "type": "string", + "description": "The name of the resource group the SAP Monitor resources get deployed into." + }, + "logAnalyticsWorkspaceArmId": { + "readOnly": true, + "type": "string", + "description": "The ARM ID of the Log Analytics Workspace that is used for monitoring" + } + }, + "description": "Describes the properties of a SAP monitor." } }, "parameters": { @@ -847,6 +1234,14 @@ "description": "Name of the SAP HANA on Azure instance.", "x-ms-parameter-location": "method" }, + "SapMonitorNameParameter": { + "name": "sapMonitorName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the SAP monitor resource.", + "x-ms-parameter-location": "method" + }, "ApiVersionParameter": { "name": "api-version", "in": "query", @@ -883,6 +1278,16 @@ }, "description": "Request body representing a HanaInstance", "x-ms-parameter-location": "method" + }, + "SapMonitorParameter": { + "name": "sapMonitorParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SapMonitor" + }, + "description": "Request body representing a SAP Monitor", + "x-ms-parameter-location": "method" } } } diff --git a/specification/hanaonazure/resource-manager/readme.md b/specification/hanaonazure/resource-manager/readme.md index 98a46c8e5b20..8149f71f2662 100644 --- a/specification/hanaonazure/resource-manager/readme.md +++ b/specification/hanaonazure/resource-manager/readme.md @@ -98,3 +98,28 @@ generate-interface: 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)/Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.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/hardwaresecuritymodules/resource-manager/readme.md b/specification/hardwaresecuritymodules/resource-manager/readme.md index 3b81dbae6a45..a5ccc9edd197 100644 --- a/specification/hardwaresecuritymodules/resource-manager/readme.md +++ b/specification/hardwaresecuritymodules/resource-manager/readme.md @@ -40,3 +40,28 @@ input-file: ``` + +## 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.HardwareSecurityModules/preview/2018-10-31-preview/dedicatedhsm.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/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 fb6834c613ef..d6b5d8d8977d 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 @@ -7,70 +7,72 @@ }, "responses": { "200": { - "status": { - "mapProgress": 1.0, - "reduceProgress": 1.0, - "cleanupProgress": 0.0, - "setupProgress": 0.0, - "runState": 2, - "startTime": 1542088206436, - "queue": "default", - "priority": "NORMAL", - "schedulingInfo": "NA", - "failureInfo": "NA", - "jobACLs": {}, - "jobName": "TempletonControllerJob", - "jobFile": "wasb://testcontainer11549@testazureblob1114.blob.core.windows.net/mr-history/done/2018/11/13/000000/job_1542085634998_0024_conf.xml", - "finishTime": 1542088277769, - "historyFile": "", - "trackingUrl": "hn1-testcl.422g4qa5a0lehgxxtnagxxuu2h.ex.internal.cloudapp.net:19888/jobhistory/job/job_1542085634998_0024", - "numUsedSlots": 0, - "numReservedSlots": 0, - "usedMem": 0, - "reservedMem": 0, - "neededMem": 0, - "jobPriority": "NORMAL", - "jobID": { - "id": 24, - "jtIdentifier": "1542085634998" + "body": { + "status": { + "mapProgress": 1.0, + "reduceProgress": 1.0, + "cleanupProgress": 0.0, + "setupProgress": 0.0, + "runState": 2, + "startTime": 1542088206436, + "queue": "default", + "priority": "NORMAL", + "schedulingInfo": "NA", + "failureInfo": "NA", + "jobACLs": {}, + "jobName": "TempletonControllerJob", + "jobFile": "wasb://testcontainer11549@testazureblob1114.blob.core.windows.net/mr-history/done/2018/11/13/000000/job_1542085634998_0024_conf.xml", + "finishTime": 1542088277769, + "historyFile": "", + "trackingUrl": "hn1-testcl.422g4qa5a0lehgxxtnagxxuu2h.ex.internal.cloudapp.net:19888/jobhistory/job/job_1542085634998_0024", + "numUsedSlots": 0, + "numReservedSlots": 0, + "usedMem": 0, + "reservedMem": 0, + "neededMem": 0, + "jobPriority": "NORMAL", + "jobID": { + "id": 24, + "jtIdentifier": "1542085634998" + }, + "jobId": "job_1542085634998_0024", + "username": "testuser11750", + "state": "SUCCEEDED", + "retired": false, + "jobComplete": true, + "uber": false }, - "jobId": "job_1542085634998_0024", - "username": "testuser11750", - "state": "SUCCEEDED", - "retired": false, - "jobComplete": true, - "uber": false - }, - "profile": { - "user": "testuser11750", - "jobFile": "wasb://testcontainer11549@testazureblob1114.blob.core.windows.net/mr-history/done/2018/11/13/000000/job_1542085634998_0024_conf.xml", - "url": null, - "queueName": "default", - "jobName": "TempletonControllerJob", - "jobID": { - "id": 24, - "jtIdentifier": "1542085634998" + "profile": { + "user": "testuser11750", + "jobFile": "wasb://testcontainer11549@testazureblob1114.blob.core.windows.net/mr-history/done/2018/11/13/000000/job_1542085634998_0024_conf.xml", + "url": null, + "queueName": "default", + "jobName": "TempletonControllerJob", + "jobID": { + "id": 24, + "jtIdentifier": "1542085634998" + }, + "jobId": "job_1542085634998_0024" }, - "jobId": "job_1542085634998_0024" - }, - "id": "job_1542085634998_0024", - "parentId": null, - "percentComplete": null, - "exitValue": 0, - "user": "testuser11750", - "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, + "id": "job_1542085634998_0024", + "parentId": null, + "percentComplete": null, + "exitValue": 0, + "user": "testuser11750", "callback": null, - "execute": "select querydwelltime+2 from hivesampletable where clientid = 8" - }, - "msg": null + "completed": "done", + "userargs": { + "statusdir": "2018-11-13T05-49-52-4418fce1-e92e-4732-bc12-f2a3b8ef4432", + "file": null, + "enablejobreconnect": null, + "define": [], + "enablelog": "false", + "files": null, + "callback": null, + "execute": "select querydwelltime+2 from hivesampletable where clientid = 8" + }, + "msg": null + } } } } 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 9a3a26b8f473..a5574d18d08e 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 @@ -6,79 +6,81 @@ }, "responses": { "200": { - "status": { - "mapProgress": 0.0, - "reduceProgress": 0.0, - "cleanupProgress": 0.0, - "setupProgress": 0.0, - "runState": 5, - "startTime": 1542087304445, - "queue": "default", - "priority": "NORMAL", - "schedulingInfo": "NA", - "failureInfo": "NA", - "jobACLs": {}, - "jobName": "TempletonControllerJob", - "jobFile": "/mapreducestaging/testuser11750/.staging/job_1542085634998_0007/job.xml", - "finishTime": 1542087305443, - "historyFile": "", - "trackingUrl": "http://hn0-testcl.422g4qa5a0lehgxxtnagxxuu2h.ex.internal.cloudapp.net:8088/cluster/app/application_1542085634998_0007", - "numUsedSlots": 0, - "numReservedSlots": 0, - "usedMem": 0, - "reservedMem": 0, - "neededMem": 0, - "jobPriority": "NORMAL", - "jobID": { - "id": 7, - "jtIdentifier": "1542085634998" + "body": { + "status": { + "mapProgress": 0.0, + "reduceProgress": 0.0, + "cleanupProgress": 0.0, + "setupProgress": 0.0, + "runState": 5, + "startTime": 1542087304445, + "queue": "default", + "priority": "NORMAL", + "schedulingInfo": "NA", + "failureInfo": "NA", + "jobACLs": {}, + "jobName": "TempletonControllerJob", + "jobFile": "/mapreducestaging/testuser11750/.staging/job_1542085634998_0007/job.xml", + "finishTime": 1542087305443, + "historyFile": "", + "trackingUrl": "http://hn0-testcl.422g4qa5a0lehgxxtnagxxuu2h.ex.internal.cloudapp.net:8088/cluster/app/application_1542085634998_0007", + "numUsedSlots": 0, + "numReservedSlots": 0, + "usedMem": 0, + "reservedMem": 0, + "neededMem": 0, + "jobPriority": "NORMAL", + "jobID": { + "id": 7, + "jtIdentifier": "1542085634998" + }, + "jobId": "job_1542085634998_0007", + "username": "testuser11750", + "state": "KILLED", + "retired": false, + "jobComplete": true, + "uber": false }, - "jobId": "job_1542085634998_0007", - "username": "testuser11750", - "state": "KILLED", - "retired": false, - "jobComplete": true, - "uber": false - }, - "profile": { - "user": "testuser11750", - "jobFile": "/mapreducestaging/testuser11750/.staging/job_1542085634998_0007/job.xml", - "url": "http://hn0-testcl.422g4qa5a0lehgxxtnagxxuu2h.ex.internal.cloudapp.net:8088/cluster/app/application_1542085634998_0007", - "queueName": "default", - "jobName": "TempletonControllerJob", - "jobID": { - "id": 7, - "jtIdentifier": "1542085634998" + "profile": { + "user": "testuser11750", + "jobFile": "/mapreducestaging/testuser11750/.staging/job_1542085634998_0007/job.xml", + "url": "http://hn0-testcl.422g4qa5a0lehgxxtnagxxuu2h.ex.internal.cloudapp.net:8088/cluster/app/application_1542085634998_0007", + "queueName": "default", + "jobName": "TempletonControllerJob", + "jobID": { + "id": 7, + "jtIdentifier": "1542085634998" + }, + "jobId": "job_1542085634998_0007" }, - "jobId": "job_1542085634998_0007" - }, - "id": "job_1542085634998_0007", - "parentId": null, - "percentComplete": null, - "exitValue": null, - "user": "testuser11750", - "callback": null, - "completed": null, - "userargs": { - "statusdir": "2018-11-13T05-35-01-6f79af0f-6157-494a-a03e-eabb190a0c10", - "enablejobreconnect": null, - "arg": [ - "10", - "1000" - ], - "define": [ - "mapreduce.map.maxattempts=10", - "mapreduce.reduce.maxattempts=10", - "mapreduce.task.timeout=60000" - ], - "enablelog": "false", - "libjars": null, - "files": null, + "id": "job_1542085634998_0007", + "parentId": null, + "percentComplete": null, + "exitValue": null, + "user": "testuser11750", "callback": null, - "jar": "/example/jars/hadoop-mapreduce-examples.jar", - "class": "pi" - }, - "msg": null + "completed": null, + "userargs": { + "statusdir": "2018-11-13T05-35-01-6f79af0f-6157-494a-a03e-eabb190a0c10", + "enablejobreconnect": null, + "arg": [ + "10", + "1000" + ], + "define": [ + "mapreduce.map.maxattempts=10", + "mapreduce.reduce.maxattempts=10", + "mapreduce.task.timeout=60000" + ], + "enablelog": "false", + "libjars": null, + "files": null, + "callback": null, + "jar": "/example/jars/hadoop-mapreduce-examples.jar", + "class": "pi" + }, + "msg": null + } } } } diff --git a/specification/hdinsight/data-plane/readme.md b/specification/hdinsight/data-plane/readme.md index 63fd8611a96a..ffd1eb557e82 100644 --- a/specification/hdinsight/data-plane/readme.md +++ b/specification/hdinsight/data-plane/readme.md @@ -132,3 +132,28 @@ java: regenerate-manager: true generate-interface: 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)/Microsoft.HDInsight/preview/2018-11-01-preview/job.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/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/applications.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/applications.json index 6860a6200a4a..492ba977f0f7 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/applications.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/applications.json @@ -250,6 +250,14 @@ "type": "integer", "format": "int32", "description": "The public port to connect to." + }, + "subDomainSuffix": { + "type": "string", + "description": "The subdomain suffix of the application." + }, + "disableGatewayAuth": { + "type": "boolean", + "description": "Disable gateway authentication." } } }, diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/cluster.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/cluster.json index 263fc59b3384..f12668bbc9c1 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/cluster.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/cluster.json @@ -56,6 +56,9 @@ }, "Create Hadoop cluster with Azure Data Lake Storage Gen 2": { "$ref": "./examples/CreateLinuxHadoopAdlsGen2.json" + }, + "Create HDInsight cluster with Autoscale configuration": { + "$ref": "./examples/CreateHDInsightClusterWithAutoscaleConfig.json" } }, "parameters": [ @@ -605,6 +608,98 @@ } } }, + "AutoscaleTimeAndCapacity": { + "properties": { + "time": { + "type": "string", + "description": "24-hour time in the form xx:xx" + }, + "minInstanceCount": { + "type": "integer", + "format": "int32", + "description": "The minimum instance count of the cluster" + }, + "maxInstanceCount": { + "type": "integer", + "format": "int32", + "description": "The maximum instance count of the cluster" + } + }, + "description": "Time and capacity request parameters" + }, + "AutoscaleSchedule": { + "properties": { + "days": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "x-ms-enum": { + "name": "DaysOfWeek", + "modelAsString": false + } + }, + "description": "Days of the week for a schedule-based autoscale rule" + }, + "timeAndCapacity": { + "$ref": "#/definitions/AutoscaleTimeAndCapacity", + "description": "Time and capacity for a schedule-based autoscale rule" + } + }, + "description": "Parameters for a schedule-based autoscale rule, consisting of an array of days + a time and capacity" + }, + "AutoscaleCapacity": { + "properties": { + "minInstanceCount": { + "type": "integer", + "format": "int32", + "description": "The minimum instance count of the cluster" + }, + "maxInstanceCount": { + "type": "integer", + "format": "int32", + "description": "The maximum instance count of the cluster" + } + }, + "description": "The load-based autoscale request parameters" + }, + "AutoscaleRecurrence": { + "properties": { + "timeZone": { + "type": "string", + "description": "The time zone for the autoscale schedule times" + }, + "schedule": { + "type": "array", + "items": { + "$ref": "#/definitions/AutoscaleSchedule" + }, + "description": "Array of schedule-based autoscale rules" + } + }, + "description": "Schedule-based autoscale request parameters" + }, + "Autoscale": { + "properties": { + "capacity": { + "$ref": "#/definitions/AutoscaleCapacity", + "description": "Parameters for load-based autoscale" + }, + "recurrence": { + "$ref": "#/definitions/AutoscaleRecurrence", + "description": "Parameters for schedule-based autoscale" + } + }, + "description": "The autoscale request parameters" + }, "HardwareProfile": { "properties": { "vmSize": { @@ -710,6 +805,11 @@ "format": "int32", "description": "The instance count of the cluster." }, + "autoscale": { + "$ref": "#/definitions/Autoscale", + "x-ms-client-name": "autoscaleConfiguration", + "description": "The autoscale configurations." + }, "hardwareProfile": { "$ref": "#/definitions/HardwareProfile", "description": "The hardware profile." diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/CreateApplication.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/CreateApplication.json index 857b25e96859..09c1ed6184bb 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/CreateApplication.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/CreateApplication.json @@ -38,7 +38,6 @@ ] } ], - "provisioningState": "", "applicationType": "CustomApplication", "errors": [] } diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json new file mode 100644 index 000000000000..7d11ae887c01 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "clusterName": "cluster1", + "resourceGroupName": "rg1", + "api-version": "2015-03-01-preview", + "subscriptionId": "subid", + "parameters": { + "properties": { + "clusterVersion": "3.6", + "osType": "Linux", + "tier": "Standard", + "clusterDefinition": { + "kind": "hadoop", + "componentVersion": { + "Hadoop": "2.7" + }, + "configurations": { + "gateway": { + "restAuthCredential.isEnabled": true, + "restAuthCredential.username": "admin", + "restAuthCredential.password": "**********" + } + } + }, + "storageProfile": { + "storageaccounts": [ + { + "name": "mystorage.blob.core.windows.net", + "isDefault": true, + "container": "hdinsight-autoscale-tes-2019-06-18t05-49-16-591z", + "key": "storagekey" + } + ] + }, + "computeProfile": { + "roles": [ + { + "autoscale": { + "capacity": null, + "recurrence": { + "timeZone": "China Standard Time", + "schedule": [ + { + "days": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "timeAndCapacity": { + "time": "09:00", + "minInstanceCount": 3, + "maxInstanceCount": 3 + } + }, + { + "days": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "timeAndCapacity": { + "time": "18:00", + "minInstanceCount": 6, + "maxInstanceCount": 6 + } + }, + { + "days": [ + "Saturday", + "Sunday" + ], + "timeAndCapacity": { + "time": "09:00", + "minInstanceCount": 2, + "maxInstanceCount": 2 + } + }, + { + "days": [ + "Saturday", + "Sunday" + ], + "timeAndCapacity": { + "time": "18:00", + "minInstanceCount": 4, + "maxInstanceCount": 4 + } + } + ] + } + }, + "name": "workernode", + "targetInstanceCount": 4, + "hardwareProfile": { + "vmSize": "Standard_D4_V2" + }, + "osProfile": { + "linuxOperatingSystemProfile": { + "username": "sshuser", + "password": "**********" + } + }, + "virtualNetworkProfile": null, + "scriptActions": [], + "dataDisksGroups": null + } + ] + } + } + } + }, + "responses": { + "200": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult" + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/GetHDInsightCapabilities.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/GetHDInsightCapabilities.json index e6cd831b81d9..fe4ddb221398 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/GetHDInsightCapabilities.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/GetHDInsightCapabilities.json @@ -6,19 +6,19 @@ }, "responses": { "200": { - "Body": { + "body": { "versions": { "paas": { "available": [ { "friendlyName": "1.6", "displayName": "HdInsight version 1.6.1.0.335536", - "isDefault": false + "isDefault": "false" }, { "friendlyName": "2.1", "displayName": "Version 2.1.9.406.1221105", - "isDefault": false, + "isDefault": "false", "componentVersions": { "HDP": "1.3", "Hadoop": "1.2.0" @@ -27,7 +27,7 @@ { "friendlyName": "3.0", "displayName": "Version 3.0.6.989.2441725", - "isDefault": false, + "isDefault": "false", "componentVersions": { "HDP": "2.0", "Hadoop": "2.2.0" @@ -36,7 +36,7 @@ { "friendlyName": "3.1", "displayName": "Version 3.1.4.989.2441725", - "isDefault": false, + "isDefault": "false", "componentVersions": { "HDP": "2.1.7", "Hadoop": "2.4.0", @@ -46,7 +46,7 @@ { "friendlyName": "3.2", "displayName": "Version 3.2.7.989.2441725", - "isDefault": false, + "isDefault": "false", "componentVersions": { "HDP": "2.2", "Hadoop": "2.6.0", @@ -57,7 +57,7 @@ { "friendlyName": "3.3", "displayName": "Version 3.3.0.989.2441725", - "isDefault": true, + "isDefault": "true", "componentVersions": { "HDP": "2.3", "Hadoop": "2.7.0", @@ -72,7 +72,7 @@ { "friendlyName": "3.2", "displayName": "Version 3.2.1000.0.8840373", - "isDefault": false, + "isDefault": "false", "componentVersions": { "HDP": "2.2", "Hadoop": "2.6.0", @@ -83,7 +83,7 @@ { "friendlyName": "3.3", "displayName": "Version 3.3.1000.0.9776961", - "isDefault": false, + "isDefault": "false", "componentVersions": { "HDP": "2.3", "Hadoop": "2.7.0", @@ -95,7 +95,7 @@ { "friendlyName": "3.4", "displayName": "Version 3.4.1000.0.9719475", - "isDefault": false, + "isDefault": "false", "componentVersions": { "HDP": "2.4", "Hadoop": "2.7.1", @@ -108,7 +108,7 @@ { "friendlyName": "3.5", "displayName": "Version 3.5.1000.0.9732704", - "isDefault": true, + "isDefault": "true", "componentVersions": { "HDP": "2.5", "Hadoop": "2.7.3", @@ -122,7 +122,7 @@ { "friendlyName": "3.6", "displayName": "Version 3.6.1000.0.9503998", - "isDefault": false, + "isDefault": "false", "componentVersions": { "HDP": "2.6", "Spark": "2.1.0" @@ -131,7 +131,7 @@ { "friendlyName": "99.152", "displayName": "Version 99.152.1000.0.6943836", - "isDefault": false + "isDefault": "false" } ] } @@ -184,7 +184,7 @@ ] } }, - "vmsizes": { + "vmSizes": { "paas": { "available": [ "A5", @@ -242,7 +242,7 @@ ] } }, - "vmsize_filters": [ + "vmSize_filters": [ { "FilterMode": "Exclude", "Regions": [ @@ -257,10 +257,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "A5" ] }, @@ -280,10 +277,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "A5" ] }, @@ -302,10 +296,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "A5" ] }, @@ -325,10 +316,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "A5" ] }, @@ -347,10 +335,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "A5" ] }, @@ -368,10 +353,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "A6" ] }, @@ -390,10 +372,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "A6" ] }, @@ -413,10 +392,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "A6" ] }, @@ -435,10 +411,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "A6" ] }, @@ -456,10 +429,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "A7" ] }, @@ -478,10 +448,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "A7" ] }, @@ -501,10 +468,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "A7" ] }, @@ -523,10 +487,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "A7" ] }, @@ -544,10 +505,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "EXTRALARGE" ] }, @@ -566,10 +524,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "EXTRALARGE" ] }, @@ -591,10 +546,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "EXTRALARGE" ] }, @@ -613,10 +565,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "EXTRALARGE" ] }, @@ -634,10 +583,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "LARGE" ] }, @@ -656,10 +602,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "LARGE" ] }, @@ -679,10 +622,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "LARGE" ] }, @@ -701,10 +641,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "LARGE" ] }, @@ -722,10 +659,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "MEDIUM" ] }, @@ -745,10 +679,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "MEDIUM" ] }, @@ -767,10 +698,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "MEDIUM" ] }, @@ -788,10 +716,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "SMALL" ] }, @@ -811,10 +736,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "SMALL" ] }, @@ -833,10 +755,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "SMALL" ] }, @@ -855,10 +774,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "SMALL" ] }, @@ -876,10 +792,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D1" ] }, @@ -899,10 +812,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D1" ] }, @@ -921,10 +831,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D1" ] }, @@ -942,10 +849,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D1" ] }, @@ -965,10 +869,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D1" ] }, @@ -987,10 +888,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D1" ] }, @@ -1008,10 +906,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D1_V2" ] }, @@ -1031,10 +926,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D1_V2" ] }, @@ -1053,10 +945,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D1_V2" ] }, @@ -1075,10 +964,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D1_V2" ] }, @@ -1098,10 +984,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D1_V2" ] }, @@ -1120,10 +1003,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D1_V2" ] }, @@ -1141,10 +1021,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D11" ] }, @@ -1164,10 +1041,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D11" ] }, @@ -1186,10 +1060,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D11" ] }, @@ -1207,10 +1078,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D11" ] }, @@ -1230,10 +1098,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D11" ] }, @@ -1252,10 +1117,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D11" ] }, @@ -1273,10 +1135,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D11_V2" ] }, @@ -1296,10 +1155,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D11_V2" ] }, @@ -1318,10 +1174,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D11_V2" ] }, @@ -1340,10 +1193,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D11_V2" ] }, @@ -1363,10 +1213,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D11_V2" ] }, @@ -1385,10 +1232,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D11_V2" ] }, @@ -1406,10 +1250,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D12" ] }, @@ -1428,10 +1269,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D12" ] }, @@ -1449,10 +1287,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D12" ] }, @@ -1472,10 +1307,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D12" ] }, @@ -1494,10 +1326,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D12" ] }, @@ -1515,10 +1344,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D12_V2" ] }, @@ -1537,10 +1363,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D12_V2" ] }, @@ -1559,10 +1382,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D12_V2" ] }, @@ -1582,10 +1402,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D12_V2" ] }, @@ -1604,10 +1421,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D12_V2" ] }, @@ -1625,10 +1439,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D13" ] }, @@ -1647,10 +1458,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D13" ] }, @@ -1668,10 +1476,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D13" ] }, @@ -1691,10 +1496,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D13" ] }, @@ -1713,10 +1515,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D13_V2" ] }, @@ -1735,10 +1534,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D13_V2" ] }, @@ -1758,10 +1554,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D13_V2" ] }, @@ -1779,10 +1572,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D14" ] }, @@ -1801,10 +1591,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D14" ] }, @@ -1822,10 +1609,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D14" ] }, @@ -1845,10 +1629,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D14" ] }, @@ -1866,10 +1647,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D14_V2" ] }, @@ -1888,10 +1666,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D14_V2" ] }, @@ -1910,10 +1685,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D14_V2" ] }, @@ -1933,10 +1705,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D14_V2" ] }, @@ -1954,10 +1723,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D2" ] }, @@ -1977,10 +1743,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D2" ] }, @@ -1999,10 +1762,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D2" ] }, @@ -2020,10 +1780,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D2" ] }, @@ -2043,10 +1800,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D2" ] }, @@ -2065,10 +1819,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D2" ] }, @@ -2086,10 +1837,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D2_V2" ] }, @@ -2109,10 +1857,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D2_V2" ] }, @@ -2131,10 +1876,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D2_V2" ] }, @@ -2153,10 +1895,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D2_V2" ] }, @@ -2176,10 +1915,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D2_V2" ] }, @@ -2198,10 +1934,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D2_V2" ] }, @@ -2219,10 +1952,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D3" ] }, @@ -2241,10 +1971,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D3" ] }, @@ -2262,10 +1989,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D3" ] }, @@ -2285,10 +2009,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D3" ] }, @@ -2307,10 +2028,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D3" ] }, @@ -2328,10 +2046,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D3_V2" ] }, @@ -2350,10 +2065,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D3_V2" ] }, @@ -2372,10 +2084,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D3_V2" ] }, @@ -2395,10 +2104,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D3_V2" ] }, @@ -2417,10 +2123,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D3_V2" ] }, @@ -2438,10 +2141,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D4" ] }, @@ -2460,10 +2160,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D4" ] }, @@ -2481,10 +2178,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D4" ] }, @@ -2504,10 +2198,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D4" ] }, @@ -2526,10 +2217,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D4" ] }, @@ -2547,10 +2235,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D4_V2" ] }, @@ -2569,10 +2254,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D4_V2" ] }, @@ -2591,10 +2273,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D4_V2" ] }, @@ -2614,10 +2293,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D4_V2" ] }, @@ -2636,10 +2312,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D4_V2" ] }, @@ -2657,10 +2330,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D5_V2" ] }, @@ -2679,10 +2349,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D5_V2" ] }, @@ -2701,10 +2368,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D5_V2" ] }, @@ -2724,10 +2388,7 @@ "2.1", "3.0" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D5_V2" ] }, @@ -2746,10 +2407,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D5_V2" ] }, @@ -2768,10 +2426,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D1_V2" ] }, @@ -2790,10 +2445,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D11_V2" ] }, @@ -2812,10 +2464,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D12_V2" ] }, @@ -2834,10 +2483,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D12_V2" ] }, @@ -2856,10 +2502,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D13_V2" ] }, @@ -2878,10 +2521,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D13_V2" ] }, @@ -2900,10 +2540,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D14_V2" ] }, @@ -2922,10 +2559,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D14_V2" ] }, @@ -2944,10 +2578,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D2_V2" ] }, @@ -2966,10 +2597,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D3_V2" ] }, @@ -2988,10 +2616,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D3_V2" ] }, @@ -3010,10 +2635,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D4_V2" ] }, @@ -3032,10 +2654,7 @@ "ClusterVersions": [ "*" ], - "OsType": [ - "*" - ], - "VMSizes": [ + "vmsizes": [ "STANDARD_D4_V2" ] } @@ -3124,8 +2743,8 @@ "VMSIZES_AUX" ], "quota": { - "cores_used": 72, - "max_cores_allowed": 1000, + "cores_used": 0, + "max_cores_allowed": 3000, "regionalQuotas": [ { "region_name": "Australia East", diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/GetHDInsightUsages.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/GetHDInsightUsages.json index f645c70420bd..b0f912900acb 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/GetHDInsightUsages.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/GetHDInsightUsages.json @@ -6,7 +6,7 @@ }, "responses": { "200": { - "Body": { + "body": { "value": [ { "unit": "Count", diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json index da62bfa19376..3d361ab8180c 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json @@ -15,6 +15,11 @@ "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult" } + }, + "200": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult" + } } } } diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/HDI_Locations_ListBillingSpecs.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/HDI_Locations_ListBillingSpecs.json new file mode 100644 index 000000000000..de9a1182d869 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/HDI_Locations_ListBillingSpecs.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "location": "East US 2", + "api-version": "2015-03-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "vmSizes": [ + "A5", + "A6", + "A7" + ], + "vmSizeFilters": [ + { + "filterMode": "Exclude", + "regions": null, + "clusterFlavors": null, + "nodeTypes": null, + "clusterVersions": null, + "osType": null, + "vmSizes": null + } + ], + "billingResources": [ + { + "region": "East US 2", + "billingMeters": [], + "diskBillingMeters": [] + }, + { + "region": "default", + "billingMeters": [ + { + "meterParameter": "default", + "meter": "11111111-1111-1111-1111-111111111111", + "unit": "CoreHours" + }, + { + "meterParameter": "Kafka", + "meter": "11111111-1111-1111-1111-111111111111", + "unit": "CoreHours" + } + ], + "diskBillingMeters": [ + { + "diskRpMeter": "11111111-1111-1111-1111-111111111111", + "sku": "All", + "tier": "Standard" + }, + { + "diskRpMeter": "11111111-1111-1111-1111-111111111111", + "sku": "All", + "tier": "Standard" + } + ] + } + ] + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/locations.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/locations.json index cb49fa0aedd1..9d22c56296e6 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/locations.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/locations.json @@ -111,6 +111,45 @@ } } } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/billingSpecs": { + "get": { + "tags": [ + "Regions" + ], + "operationId": "Locations_ListBillingSpecs", + "description": "Lists the billingSpecs for the specified subscription and location.", + "x-ms-examples": { + "Get the subscription billingSpecs for the specified location": { + "$ref": "./examples/HDI_Locations_ListBillingSpecs.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./operations.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/BillingResponseListResult" + } + } + } + } } }, "definitions": { @@ -136,7 +175,8 @@ "type": "string" } } - } + }, + "readOnly": true }, "VersionsCapability": { "description": "The version capability.", @@ -148,7 +188,8 @@ "$ref": "#/definitions/VersionSpec" } } - } + }, + "readOnly": true }, "RegionsCapability": { "description": "The regions capability.", @@ -160,7 +201,8 @@ "type": "string" } } - } + }, + "readOnly": true }, "VmSizesCapability": { "description": "The virtual machine sizes capability.", @@ -172,7 +214,8 @@ "type": "string" } } - } + }, + "readOnly": true }, "VmSizeCompatibilityFilter": { "description": "The virtual machine type compatibility filter.", @@ -216,7 +259,8 @@ "type": "string" } } - } + }, + "readOnly": true }, "RegionalQuotaCapability": { "description": "The regional quota capacity.", @@ -231,15 +275,26 @@ "format": "int64" }, "cores_available": { - "description": "The number of courses available in the region.", + "description": "The number of cores available in the region.", "type": "integer", "format": "int64" } - } + }, + "readOnly": true }, "QuotaCapability": { "description": "The regional quota capability.", "properties": { + "cores_used": { + "description": "The number of cores used in the subscription.", + "type": "integer", + "format": "int64" + }, + "max_cores_allowed": { + "description": "The number of cores that the subscription allowed.", + "type": "integer", + "format": "int64" + }, "regionalQuotas": { "description": "The list of region quota capabilities.", "type": "array", @@ -247,7 +302,8 @@ "$ref": "#/definitions/RegionalQuotaCapability" } } - } + }, + "readOnly": true }, "CapabilitiesResult": { "description": "The Get Capabilities operation response.", @@ -291,7 +347,8 @@ "description": "The quota capability.", "$ref": "#/definitions/QuotaCapability" } - } + }, + "readOnly": true }, "LocalizedName": { "description": "The details about the localizable name of a type of usage.", @@ -338,6 +395,169 @@ } } } + }, + "BillingResponseListResult": { + "type": "object", + "description": "The response for the operation to get regional billingSpecs for a subscription.", + "properties": { + "vmSizes": { + "description": "The virtual machine sizes to include or exclude.", + "type": "array", + "items": { + "type": "string" + } + }, + "vmSizeFilters": { + "description": "The virtual machine filtering mode. Effectively this can enabling or disabling the virtual machine sizes in a particular set.", + "type": "array", + "items": { + "$ref": "#/definitions/VmSizeCompatibilityFilterV2" + } + }, + "billingResources": { + "description": "The billing and managed disk billing resources for a region.", + "type": "array", + "items": { + "$ref": "#/definitions/BillingResources" + } + } + } + }, + "VmSizeCompatibilityFilterV2": { + "type": "object", + "description": "This class represent a single filter object that defines a multidimensional set. The dimensions of this set are Regions, ClusterFlavors, NodeTypes and ClusterVersions. The constraint should be defined based on the following: FilterMode (Exclude vs Include), VMSizes (the vm sizes in affect of exclusion/inclusion) and the ordering of the Filters. Later filters override previous settings if conflicted.", + "properties": { + "filterMode": { + "description": "The filtering mode. Effectively this can enabling or disabling the VM sizes in a particular set.", + "type": "string", + "enum": [ + "Exclude", + "Include" + ], + "x-ms-enum": { + "name": "FilterMode", + "modelAsString": true + } + }, + "regions": { + "description": "The list of regions under the effect of the filter.", + "type": "array", + "items": { + "type": "string" + } + }, + "clusterFlavors": { + "description": "The list of cluster flavors under the effect of the filter.", + "type": "array", + "items": { + "type": "string" + } + }, + "nodeTypes": { + "description": "The list of node types affected by the filter.", + "type": "array", + "items": { + "type": "string" + } + }, + "clusterVersions": { + "description": "The list of cluster versions affected in Major.Minor format.", + "type": "array", + "items": { + "type": "string" + } + }, + "osType": { + "description": "The OSType affected, Windows or Linux.", + "type": "array", + "items": { + "type": "string", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OSType", + "modelAsString": false + } + } + }, + "vmSizes": { + "description": "The list of virtual machine sizes to include or exclude.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "BillingResources": { + "type": "object", + "description": "The billing resources.", + "properties": { + "region": { + "description": "The region or location.", + "type": "string" + }, + "billingMeters": { + "description": "The billing meter information.", + "type": "array", + "items": { + "$ref": "#/definitions/BillingMeters" + } + }, + "diskBillingMeters": { + "description": "The managed disk billing information.", + "type": "array", + "items": { + "$ref": "#/definitions/DiskBillingMeters" + } + } + } + }, + "BillingMeters": { + "type": "object", + "description": "The billing meters.", + "properties": { + "meterParameter": { + "description": "The virtual machine sizes.", + "type": "string" + }, + "meter": { + "description": "The HDInsight meter guid.", + "type": "string" + }, + "unit": { + "description": "The unit of meter, VMHours or CoreHours.", + "type": "string" + } + } + }, + "DiskBillingMeters": { + "type": "object", + "description": "The disk billing meters.", + "properties": { + "diskRpMeter": { + "description": "The managed disk meter guid.", + "type": "string" + }, + "sku": { + "description": "The managed disk billing sku, P30 or S30.", + "type": "string" + }, + "tier": { + "description": "The managed disk billing tier, Standard or Premium.", + "type": "string", + "enum": [ + "Standard", + "Premium" + ], + "x-ms-enum": { + "name": "Tier", + "modelAsString": false + } + } + } } }, "parameters": { @@ -353,7 +573,7 @@ "in": "path", "required": true, "type": "string", - "description": "The location.", + "description": "The Azure location (region) for which to make the request.", "x-ms-parameter-location": "method" }, "ApiVersionParameter": { diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/applications.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/applications.json index c64ce0bb3291..979c1460aff0 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/applications.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/applications.json @@ -253,7 +253,7 @@ }, "subDomainSuffix": { "type": "string", - "description": "The subDomainSuffix of the application." + "description": "The subdomain suffix of the application." }, "disableGatewayAuth": { "type": "boolean", diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json index fc18241a07fa..c55dbec56870 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json @@ -56,6 +56,9 @@ }, "Create Hadoop cluster with Azure Data Lake Storage Gen 2": { "$ref": "./examples/CreateLinuxHadoopAdlsGen2.json" + }, + "Create HDInsight cluster with Autoscale configuration": { + "$ref": "./examples/CreateHDInsightClusterWithAutoscaleConfig.json" } }, "parameters": [ @@ -605,6 +608,98 @@ } } }, + "AutoscaleTimeAndCapacity": { + "properties": { + "time": { + "type": "string", + "description": "24-hour time in the form xx:xx" + }, + "minInstanceCount": { + "type": "integer", + "format": "int32", + "description": "The minimum instance count of the cluster" + }, + "maxInstanceCount": { + "type": "integer", + "format": "int32", + "description": "The maximum instance count of the cluster" + } + }, + "description": "Time and capacity request parameters" + }, + "AutoscaleSchedule": { + "properties": { + "days": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "x-ms-enum": { + "name": "DaysOfWeek", + "modelAsString": false + } + }, + "description": "Days of the week for a schedule-based autoscale rule" + }, + "timeAndCapacity": { + "$ref": "#/definitions/AutoscaleTimeAndCapacity", + "description": "Time and capacity for a schedule-based autoscale rule" + } + }, + "description": "Parameters for a schedule-based autoscale rule, consisting of an array of days + a time and capacity" + }, + "AutoscaleCapacity": { + "properties": { + "minInstanceCount": { + "type": "integer", + "format": "int32", + "description": "The minimum instance count of the cluster" + }, + "maxInstanceCount": { + "type": "integer", + "format": "int32", + "description": "The maximum instance count of the cluster" + } + }, + "description": "The load-based autoscale request parameters" + }, + "AutoscaleRecurrence": { + "properties": { + "timeZone": { + "type": "string", + "description": "The time zone for the autoscale schedule times" + }, + "schedule": { + "type": "array", + "items": { + "$ref": "#/definitions/AutoscaleSchedule" + }, + "description": "Array of schedule-based autoscale rules" + } + }, + "description": "Schedule-based autoscale request parameters" + }, + "Autoscale": { + "properties": { + "capacity": { + "$ref": "#/definitions/AutoscaleCapacity", + "description": "Parameters for load-based autoscale" + }, + "recurrence": { + "$ref": "#/definitions/AutoscaleRecurrence", + "description": "Parameters for schedule-based autoscale" + } + }, + "description": "The autoscale request parameters" + }, "HardwareProfile": { "properties": { "vmSize": { @@ -710,6 +805,11 @@ "format": "int32", "description": "The instance count of the cluster." }, + "autoscale": { + "$ref": "#/definitions/Autoscale", + "x-ms-client-name": "autoscaleConfiguration", + "description": "The autoscale configurations." + }, "hardwareProfile": { "$ref": "#/definitions/HardwareProfile", "description": "The hardware profile." diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json new file mode 100644 index 000000000000..dc7278ca8a9f --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "clusterName": "cluster1", + "resourceGroupName": "rg1", + "api-version": "2018-06-01-preview", + "subscriptionId": "subid", + "parameters": { + "properties": { + "clusterVersion": "3.6", + "osType": "Linux", + "tier": "Standard", + "clusterDefinition": { + "kind": "hadoop", + "componentVersion": { + "Hadoop": "2.7" + }, + "configurations": { + "gateway": { + "restAuthCredential.isEnabled": true, + "restAuthCredential.username": "admin", + "restAuthCredential.password": "**********" + } + } + }, + "storageProfile": { + "storageaccounts": [ + { + "name": "mystorage.blob.core.windows.net", + "isDefault": true, + "container": "hdinsight-autoscale-tes-2019-06-18t05-49-16-591z", + "key": "storagekey" + } + ] + }, + "computeProfile": { + "roles": [ + { + "autoscale": { + "capacity": null, + "recurrence": { + "timeZone": "China Standard Time", + "schedule": [ + { + "days": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "timeAndCapacity": { + "time": "09:00", + "minInstanceCount": 3, + "maxInstanceCount": 3 + } + }, + { + "days": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday" + ], + "timeAndCapacity": { + "time": "18:00", + "minInstanceCount": 6, + "maxInstanceCount": 6 + } + }, + { + "days": [ + "Saturday", + "Sunday" + ], + "timeAndCapacity": { + "time": "09:00", + "minInstanceCount": 2, + "maxInstanceCount": 2 + } + }, + { + "days": [ + "Saturday", + "Sunday" + ], + "timeAndCapacity": { + "time": "18:00", + "minInstanceCount": 4, + "maxInstanceCount": 4 + } + } + ] + } + }, + "name": "workernode", + "targetInstanceCount": 4, + "hardwareProfile": { + "vmSize": "Standard_D4_V2" + }, + "osProfile": { + "linuxOperatingSystemProfile": { + "username": "sshuser", + "password": "**********" + } + }, + "virtualNetworkProfile": null, + "scriptActions": [], + "dataDisksGroups": null + } + ] + } + } + } + }, + "responses": { + "200": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult" + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/GetHDInsightCapabilities.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/GetHDInsightCapabilities.json new file mode 100644 index 000000000000..7b8bf40f3197 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/GetHDInsightCapabilities.json @@ -0,0 +1,2859 @@ +{ + "parameters": { + "location": "West US", + "api-version": "2018-06-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "versions": { + "paas": { + "available": [ + { + "friendlyName": "1.6", + "displayName": "HdInsight version 1.6.1.0.335536", + "isDefault": "false" + }, + { + "friendlyName": "2.1", + "displayName": "Version 2.1.9.406.1221105", + "isDefault": "false", + "componentVersions": { + "HDP": "1.3", + "Hadoop": "1.2.0" + } + }, + { + "friendlyName": "3.0", + "displayName": "Version 3.0.6.989.2441725", + "isDefault": "false", + "componentVersions": { + "HDP": "2.0", + "Hadoop": "2.2.0" + } + }, + { + "friendlyName": "3.1", + "displayName": "Version 3.1.4.989.2441725", + "isDefault": "false", + "componentVersions": { + "HDP": "2.1.7", + "Hadoop": "2.4.0", + "HBase": "0.98" + } + }, + { + "friendlyName": "3.2", + "displayName": "Version 3.2.7.989.2441725", + "isDefault": "false", + "componentVersions": { + "HDP": "2.2", + "Hadoop": "2.6.0", + "HBase": "0.98.4", + "Storm": "0.9.3" + } + }, + { + "friendlyName": "3.3", + "displayName": "Version 3.3.0.989.2441725", + "isDefault": "true", + "componentVersions": { + "HDP": "2.3", + "Hadoop": "2.7.0", + "HBase": "1.1.2", + "Storm": "0.10.0" + } + } + ] + }, + "iaas": { + "available": [ + { + "friendlyName": "3.2", + "displayName": "Version 3.2.1000.0.8840373", + "isDefault": "false", + "componentVersions": { + "HDP": "2.2", + "Hadoop": "2.6.0", + "HBase": "0.98.4", + "Storm": "0.9.3" + } + }, + { + "friendlyName": "3.3", + "displayName": "Version 3.3.1000.0.9776961", + "isDefault": "false", + "componentVersions": { + "HDP": "2.3", + "Hadoop": "2.7.0", + "HBase": "1.1.2", + "Storm": "0.10.0", + "Spark": "1.5.2" + } + }, + { + "friendlyName": "3.4", + "displayName": "Version 3.4.1000.0.9719475", + "isDefault": "false", + "componentVersions": { + "HDP": "2.4", + "Hadoop": "2.7.1", + "HBase": "1.1.2", + "Storm": "0.10.0", + "Spark": "1.6.2", + "RServer": "8.0" + } + }, + { + "friendlyName": "3.5", + "displayName": "Version 3.5.1000.0.9732704", + "isDefault": "true", + "componentVersions": { + "HDP": "2.5", + "Hadoop": "2.7.3", + "InteractiveHive": "2.1.0", + "HBase": "1.1.2", + "Storm": "1.0.1", + "Spark": "1.6.3,2.0.2", + "RServer": "9.0" + } + }, + { + "friendlyName": "3.6", + "displayName": "Version 3.6.1000.0.9503998", + "isDefault": "false", + "componentVersions": { + "HDP": "2.6", + "Spark": "2.1.0" + } + }, + { + "friendlyName": "99.152", + "displayName": "Version 99.152.1000.0.6943836", + "isDefault": "false" + } + ] + } + }, + "regions": { + "paas": { + "available": [ + "AUSTRALIA EAST", + "AUSTRALIA SOUTHEAST", + "BRAZIL SOUTH", + "CENTRAL INDIA", + "CENTRAL US", + "EAST ASIA", + "EAST US", + "EAST US 2", + "JAPAN EAST", + "JAPAN WEST", + "NORTH CENTRAL US", + "NORTH EUROPE", + "SOUTH CENTRAL US", + "SOUTHEAST ASIA", + "WEST EUROPE", + "WEST US", + "WEST US 2" + ] + }, + "iaas": { + "available": [ + "AUSTRALIA EAST", + "AUSTRALIA SOUTHEAST", + "BRAZIL SOUTH", + "CANADA CENTRAL", + "CANADA EAST", + "CENTRAL INDIA", + "CENTRAL US", + "CENTRAL US EUAP", + "EAST ASIA", + "EAST US", + "EAST US 2", + "JAPAN EAST", + "JAPAN WEST", + "NORTH CENTRAL US", + "NORTH EUROPE", + "SOUTH CENTRAL US", + "SOUTHEAST ASIA", + "WEST CENTRAL US", + "WEST EUROPE", + "WEST US", + "WEST US 2" + ] + } + }, + "vmSizes": { + "paas": { + "available": [ + "A5", + "A6", + "A7", + "EXTRALARGE", + "LARGE", + "MEDIUM", + "SMALL", + "STANDARD_D1", + "STANDARD_D1_V2", + "STANDARD_D11", + "STANDARD_D11_V2", + "STANDARD_D12", + "STANDARD_D12_V2", + "STANDARD_D13", + "STANDARD_D13_V2", + "STANDARD_D14", + "STANDARD_D14_V2", + "STANDARD_D2", + "STANDARD_D2_V2", + "STANDARD_D3", + "STANDARD_D3_V2", + "STANDARD_D4", + "STANDARD_D4_V2", + "STANDARD_D5_V2" + ] + }, + "iaas": { + "available": [ + "A5", + "A6", + "A7", + "EXTRALARGE", + "LARGE", + "MEDIUM", + "SMALL", + "STANDARD_D1", + "STANDARD_D1_V2", + "STANDARD_D11", + "STANDARD_D11_V2", + "STANDARD_D12", + "STANDARD_D12_V2", + "STANDARD_D13", + "STANDARD_D13_V2", + "STANDARD_D14", + "STANDARD_D14_V2", + "STANDARD_D2", + "STANDARD_D2_V2", + "STANDARD_D3", + "STANDARD_D3_V2", + "STANDARD_D4", + "STANDARD_D4_V2", + "STANDARD_D5_V2" + ] + } + }, + "vmSize_filters": [ + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "A5" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole", + "EdgeNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "A5" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "A5" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "A5" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "A5" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "A6" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "A6" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "A6" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "A6" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "A7" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "A7" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "A7" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "A7" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "EXTRALARGE" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "EXTRALARGE" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "WorkerNodeRole", + "EdgeNodeRole", + "ZookeeperRole" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "EXTRALARGE" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "EXTRALARGE" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "LARGE" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "LARGE" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "LARGE" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "LARGE" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "MEDIUM" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole", + "EdgeNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "MEDIUM" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "MEDIUM" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "SMALL" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole", + "EdgeNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "SMALL" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "HBase", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "SMALL" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "SMALL" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D1" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole", + "EdgeNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D1" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D1" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D1" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D1" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D1" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D1_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole", + "EdgeNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D1_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D1_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Brazil South", + "Japan West" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D1_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D1_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D1_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D11" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole", + "EdgeNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D11" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D11" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D11" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D11" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D11" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D11_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole", + "EdgeNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D11_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D11_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Brazil South", + "Japan West" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D11_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D11_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D11_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D12" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D12" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D12" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D12" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D12" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D12_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D12_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Brazil South", + "Japan West" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D12_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D12_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D12_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D13" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D13" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D13" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D13" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D13_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Brazil South", + "Japan West" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D13_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D13_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D14" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D14" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D14" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D14" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D14_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D14_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Brazil South", + "Japan West" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D14_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D14_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole", + "EdgeNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D2_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole", + "EdgeNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D2_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D2_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Brazil South", + "Japan West" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D2_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D2_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D2_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D3" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D3" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D3" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D3" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D3" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D3_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D3_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Brazil South", + "Japan West" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D3_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D3_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D3_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D4" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D4" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D4" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D4" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D4" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D4_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D4_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Brazil South", + "Japan West" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D4_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D4_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D4_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Sandbox" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D5_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "Hadoop", + "Spark" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D5_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "Brazil South", + "Japan West" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D5_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "*" + ], + "ClusterVersions": [ + "1.6", + "2.1", + "3.0" + ], + "vmsizes": [ + "STANDARD_D5_V2" + ] + }, + { + "FilterMode": "Exclude", + "Regions": [ + "*" + ], + "ClusterFlavors": [ + "InteractiveHive" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D5_V2" + ] + }, + { + "FilterMode": "Include", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "HBase", + "Storm" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D1_V2" + ] + }, + { + "FilterMode": "Include", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "HBase", + "Storm" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D11_V2" + ] + }, + { + "FilterMode": "Include", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D12_V2" + ] + }, + { + "FilterMode": "Include", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "HBase", + "Storm" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D12_V2" + ] + }, + { + "FilterMode": "Include", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D13_V2" + ] + }, + { + "FilterMode": "Include", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "HBase", + "Storm" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D13_V2" + ] + }, + { + "FilterMode": "Include", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D14_V2" + ] + }, + { + "FilterMode": "Include", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "HBase", + "Storm" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D14_V2" + ] + }, + { + "FilterMode": "Include", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "HBase", + "Storm" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D2_V2" + ] + }, + { + "FilterMode": "Include", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D3_V2" + ] + }, + { + "FilterMode": "Include", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "HBase", + "Storm" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D3_V2" + ] + }, + { + "FilterMode": "Include", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "*" + ], + "NodeTypes": [ + "HeadNodeRole", + "WorkerNodeRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D4_V2" + ] + }, + { + "FilterMode": "Include", + "Regions": [ + "Central India" + ], + "ClusterFlavors": [ + "HBase", + "Storm" + ], + "NodeTypes": [ + "ZookeeperRole" + ], + "ClusterVersions": [ + "*" + ], + "vmsizes": [ + "STANDARD_D4_V2" + ] + } + ], + "features": [ + "ALLOW_GATEWAY_AUTH_BYPASS", + "AUX_IAAS_FUNCTIONALITIES", + "BLOCK_APPS_FOR_SECURE_CLUSTER", + "CLUSTER_RESIZE", + "CLUSTERS_CONTRACT_1", + "CLUSTERS_CONTRACT_1_SDK", + "CLUSTERS_CONTRACT_2_SDK", + "CLUSTERS_CONTRACT_VERSION_3_SDK", + "COLLECTANONYMIZEDLOGS", + "CONTAINER_LOG_COLLECTOR", + "CONTAINER_RESOURCE_V3", + "CUSTOM_ACTIONS_V2", + "DATALAKE", + "DATALAKE_3_2", + "DATALAKE_3_4", + "DATALAKE_3_5", + "DATALAKE_DEFAULTFS_3_5", + "DEFAULT_CONTAINER_IDENTIFIER_AND_STORAGEFQDN_ALREADY_USED", + "DOCUMENT_VALIDATION_IN_API", + "ENABLEDATALAKE", + "ENABLEGENEVAANALYTICS", + "HADOOP_VIRTUAL_NETWORK_ENABLED", + "HS2_ZK_ROUTER_INTERACTIVEHIVE", + "IAAS_ALLOW_CUSTOM_DNS", + "IAAS_AMBARI_APP_TIMELINE_SERVER_HA_SERVICE", + "IAAS_AMBARI_DEPENDENCY_BASED_DEPLOYMENT", + "IAAS_AMBARI_HA_SERVICES", + "IAAS_AMBARI_HISTORYSERVER_HA_SERVICE", + "IAAS_AMBARI_LOWER_LATENCY", + "IAAS_AMBARI_SKIP_COMPONENTS_INSTALL", + "IAAS_ARM_PROVISIONING", + "IAAS_CLOSE_HEAD_HTTPS_END_POINT_AFTER_CLUSTER_CREATE", + "IAAS_CLUSTER_APPLICATION_ALLOW_MULTIPLE_ROLE_INSTANCES", + "IAAS_CLUSTER_APPLICATION_REMOVE", + "IAAS_CLUSTER_CONTAINER_PREUPLOAD_SUBMIT_WAIT", + "IAAS_CLUSTER_RSERVER", + "IAAS_DB_CREATION_IN_PARALLEL_TO_VM", + "IAAS_DELETE_LEAKED_RESOURCES", + "IAAS_DEPLOYMENTS", + "IAAS_DO_NOT_CREATE_WASB_TABLES_IN_CUSTOMER_STORAGE", + "IAAS_ENABLE_CLUSTER_CONFIG_OVERRIDES", + "IAAS_ENABLE_OFFLINE_CLEANUP", + "IAAS_ENABLE_OFFLINE_CLEANUP_FOR_DELETING_VMS", + "IAAS_INCLUDE_STORAGE_IN_SUBSCRIPTION_SELECTION", + "IAAS_PARALLEL_DB_CREATE", + "IAAS_PREPROVISION_METASTORES_SCHEMAS", + "IAAS_SCRIPTACTIONS_DELETE_VMS_CRUD_FAILURES", + "IAAS_SCRIPTACTIONS_RUNNING", + "IAAS_SHORT_VM_NAME", + "IAAS_SUBMIT_AMBARI_REQUEST_ONCE_LINUX_VM_ARE_AVAILABLE", + "IAAS_TEZ_ATS_V15", + "IAAS_USE_UNATTENDED_UPGRADES_FOR_PATCHING", + "IAAS_VALIDATE_CUSTOM_VNET", + "IAAS_VALIDATE_NSG", + "IAAS_WAIT_FOR_CLOSING_HEAD_HTTPS_END_POINT_AFTER_CLUSTER_CREATE", + "IAAS_YARN_HDINSIGHT_SQL_TIMELINE_STORE", + "IAAS_YARN_HDINSIGHT_TIMELINE_STORE", + "INTERACTIVEHIVE", + "MDSCENTRALLOGGING", + "NODE_SETUP_POLLER_ENABLED", + "OVERPROVISION_HOSTGROUP_edgenode", + "OVERPROVISION_HOSTGROUP_Gateway", + "OVERPROVISION_HOSTGROUP_Workernode", + "OVERPROVISION_HOSTGROUP_zookeepernode", + "PERF_OPTIMIZED_RESOURCE_LOCATION_FETCH", + "PORTALAPPINSTALL", + "POWERSHELL_SCRIPT_ACTION", + "POWERSHELL_SCRIPT_ACTION_SDK", + "PREMIUM_TIER_PREVIEW", + "PROVISIONING_AGENT", + "RMHA", + "RSERVER_CLUSTERTYPE_3_5_ENABLED", + "RSERVER_CLUSTERTYPE_ENABLED", + "SHOW_HUMBOLDT_GA", + "SHOW_IBIZA_CREATE", + "SPARK_2_1", + "SPARK_EXPERIMENTAL", + "STORM_PREVIEW", + "UI_CREATE_WIZARD_V2", + "VIRTUAL_NETWORK_ENABLED", + "VMSIZES_AUX" + ], + "quota": { + "cores_used": 0, + "max_cores_allowed": 3000, + "regionalQuotas": [ + { + "region_name": "Australia East", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "Australia Southeast", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "Brazil South", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "Canada Central", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "Canada East", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "Central India", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "Central US", + "cores_used": 24, + "cores_available": 1000 + }, + { + "region_name": "Central US EUAP", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "East Asia", + "cores_used": 24, + "cores_available": 1000 + }, + { + "region_name": "East US", + "cores_used": 24, + "cores_available": 1000 + }, + { + "region_name": "East US 2", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "Japan East", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "Japan West", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "North Central US", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "North Europe", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "South Central US", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "Southeast Asia", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "West Central US", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "West Europe", + "cores_used": 0, + "cores_available": 1000 + }, + { + "region_name": "West US", + "cores_used": 132, + "cores_available": 1000 + }, + { + "region_name": "West US 2", + "cores_used": 0, + "cores_available": 1000 + } + ] + } + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/GetHDInsightUsages.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/GetHDInsightUsages.json index 50b293477e9b..d8dad62f927c 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/GetHDInsightUsages.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/GetHDInsightUsages.json @@ -6,7 +6,7 @@ }, "responses": { "200": { - "Body": { + "body": { "value": [ { "unit": "Count", diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json index 306db252822e..85ac80339028 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json @@ -15,6 +15,11 @@ "headers": { "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult" } + }, + "200": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult" + } } } } diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/HDI_Locations_ListBillingSpecs.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/HDI_Locations_ListBillingSpecs.json new file mode 100644 index 000000000000..2ff11cb94c13 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/HDI_Locations_ListBillingSpecs.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "location": "East US 2", + "api-version": "2018-06-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "vmSizes": [ + "A5", + "A6", + "A7" + ], + "vmSizeFilters": [ + { + "filterMode": "Exclude", + "regions": null, + "clusterFlavors": null, + "nodeTypes": null, + "clusterVersions": null, + "osType": null, + "vmSizes": null + } + ], + "billingResources": [ + { + "region": "East US 2", + "billingMeters": [], + "diskBillingMeters": [] + }, + { + "region": "default", + "billingMeters": [ + { + "meterParameter": "default", + "meter": "11111111-1111-1111-1111-111111111111", + "unit": "CoreHours" + }, + { + "meterParameter": "Kafka", + "meter": "11111111-1111-1111-1111-111111111111", + "unit": "CoreHours" + } + ], + "diskBillingMeters": [ + { + "diskRpMeter": "11111111-1111-1111-1111-111111111111", + "sku": "All", + "tier": "Standard" + }, + { + "diskRpMeter": "11111111-1111-1111-1111-111111111111", + "sku": "All", + "tier": "Standard" + } + ] + } + ] + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/locations.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/locations.json index efc0d5c7d043..7536a98e6e0b 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/locations.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/locations.json @@ -34,6 +34,45 @@ } }, "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/capabilities": { + "get": { + "tags": [ + "Regions" + ], + "operationId": "Locations_GetCapabilities", + "description": "Gets the capabilities for the specified location.", + "x-ms-examples": { + "Get the subscription capabilities for specific location": { + "$ref": "./examples/GetHDInsightCapabilities.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./operations.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/CapabilitiesResult" + } + } + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/usages": { "get": { "tags": [ @@ -72,9 +111,245 @@ } } } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/billingSpecs": { + "get": { + "tags": [ + "Regions" + ], + "operationId": "Locations_ListBillingSpecs", + "description": "Lists the billingSpecs for the specified subscription and location.", + "x-ms-examples": { + "Get the subscription billingSpecs for the specified location": { + "$ref": "./examples/HDI_Locations_ListBillingSpecs.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "./operations.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/BillingResponseListResult" + } + } + } + } } }, "definitions": { + "VersionSpec": { + "description": "The version properties.", + "properties": { + "friendlyName": { + "type": "string", + "description": "The friendly name" + }, + "displayName": { + "type": "string", + "description": "The display name" + }, + "isDefault": { + "type": "string", + "description": "Whether or not the version is the default version." + }, + "componentVersions": { + "type": "object", + "description": "The component version property.", + "additionalProperties": { + "type": "string" + } + } + }, + "readOnly": true + }, + "VersionsCapability": { + "description": "The version capability.", + "properties": { + "available": { + "description": "The list of version capabilities.", + "type": "array", + "items": { + "$ref": "#/definitions/VersionSpec" + } + } + }, + "readOnly": true + }, + "RegionsCapability": { + "description": "The regions capability.", + "properties": { + "available": { + "description": "The list of region capabilities.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "readOnly": true + }, + "VmSizesCapability": { + "description": "The virtual machine sizes capability.", + "properties": { + "available": { + "description": "The list of virtual machine size capabilities.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "readOnly": true + }, + "VmSizeCompatibilityFilter": { + "description": "The virtual machine type compatibility filter.", + "properties": { + "FilterMode": { + "description": "The mode for the filter.", + "type": "string" + }, + "Regions": { + "description": "The list of regions.", + "type": "array", + "items": { + "type": "string" + } + }, + "ClusterFlavors": { + "description": "The list of cluster types available.", + "type": "array", + "items": { + "type": "string" + } + }, + "NodeTypes": { + "description": "The list of node types.", + "type": "array", + "items": { + "type": "string" + } + }, + "ClusterVersions": { + "description": "The list of cluster versions.", + "type": "array", + "items": { + "type": "string" + } + }, + "vmsizes": { + "description": "The list of virtual machine sizes.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "readOnly": true + }, + "RegionalQuotaCapability": { + "description": "The regional quota capacity.", + "properties": { + "region_name": { + "description": "The region name.", + "type": "string" + }, + "cores_used": { + "description": "The number of cores used in the region.", + "type": "integer", + "format": "int64" + }, + "cores_available": { + "description": "The number of cores available in the region.", + "type": "integer", + "format": "int64" + } + }, + "readOnly": true + }, + "QuotaCapability": { + "description": "The regional quota capability.", + "properties": { + "cores_used": { + "description": "The number of cores used in the subscription.", + "type": "integer", + "format": "int64" + }, + "max_cores_allowed": { + "description": "The number of cores that the subscription allowed.", + "type": "integer", + "format": "int64" + }, + "regionalQuotas": { + "description": "The list of region quota capabilities.", + "type": "array", + "items": { + "$ref": "#/definitions/RegionalQuotaCapability" + } + } + }, + "readOnly": true + }, + "CapabilitiesResult": { + "description": "The Get Capabilities operation response.", + "properties": { + "versions": { + "description": "The version capability.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/VersionsCapability" + } + }, + "regions": { + "description": "The virtual machine size compatibility features.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/RegionsCapability" + } + }, + "vmSizes": { + "description": "The virtual machine sizes.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/VmSizesCapability" + } + }, + "vmSize_filters": { + "description": "The virtual machine size compatibility filters.", + "type": "array", + "items": { + "$ref": "#/definitions/VmSizeCompatibilityFilter" + } + }, + "features": { + "description": "The capability features.", + "type": "array", + "items": { + "type": "string" + } + }, + "quota": { + "description": "The quota capability.", + "$ref": "#/definitions/QuotaCapability" + } + }, + "readOnly": true + }, "LocalizedName": { "description": "The details about the localizable name of a type of usage.", "properties": { @@ -123,6 +398,169 @@ } }, "readOnly": true + }, + "BillingResponseListResult": { + "type": "object", + "description": "The response for the operation to get regional billingSpecs for a subscription.", + "properties": { + "vmSizes": { + "description": "The virtual machine sizes to include or exclude.", + "type": "array", + "items": { + "type": "string" + } + }, + "vmSizeFilters": { + "description": "The virtual machine filtering mode. Effectively this can enabling or disabling the virtual machine sizes in a particular set.", + "type": "array", + "items": { + "$ref": "#/definitions/VmSizeCompatibilityFilterV2" + } + }, + "billingResources": { + "description": "The billing and managed disk billing resources for a region.", + "type": "array", + "items": { + "$ref": "#/definitions/BillingResources" + } + } + } + }, + "VmSizeCompatibilityFilterV2": { + "type": "object", + "description": "This class represent a single filter object that defines a multidimensional set. The dimensions of this set are Regions, ClusterFlavors, NodeTypes and ClusterVersions. The constraint should be defined based on the following: FilterMode (Exclude vs Include), VMSizes (the vm sizes in affect of exclusion/inclusion) and the ordering of the Filters. Later filters override previous settings if conflicted.", + "properties": { + "filterMode": { + "description": "The filtering mode. Effectively this can enabling or disabling the VM sizes in a particular set.", + "type": "string", + "enum": [ + "Exclude", + "Include" + ], + "x-ms-enum": { + "name": "FilterMode", + "modelAsString": true + } + }, + "regions": { + "description": "The list of regions under the effect of the filter.", + "type": "array", + "items": { + "type": "string" + } + }, + "clusterFlavors": { + "description": "The list of cluster flavors under the effect of the filter.", + "type": "array", + "items": { + "type": "string" + } + }, + "nodeTypes": { + "description": "The list of node types affected by the filter.", + "type": "array", + "items": { + "type": "string" + } + }, + "clusterVersions": { + "description": "The list of cluster versions affected in Major.Minor format.", + "type": "array", + "items": { + "type": "string" + } + }, + "osType": { + "description": "The OSType affected, Windows or Linux.", + "type": "array", + "items": { + "type": "string", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OSType", + "modelAsString": false + } + } + }, + "vmSizes": { + "description": "The list of virtual machine sizes to include or exclude.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "BillingResources": { + "type": "object", + "description": "The billing resources.", + "properties": { + "region": { + "description": "The region or location.", + "type": "string" + }, + "billingMeters": { + "description": "The billing meter information.", + "type": "array", + "items": { + "$ref": "#/definitions/BillingMeters" + } + }, + "diskBillingMeters": { + "description": "The managed disk billing information.", + "type": "array", + "items": { + "$ref": "#/definitions/DiskBillingMeters" + } + } + } + }, + "BillingMeters": { + "type": "object", + "description": "The billing meters.", + "properties": { + "meterParameter": { + "description": "The virtual machine sizes.", + "type": "string" + }, + "meter": { + "description": "The HDInsight meter guid.", + "type": "string" + }, + "unit": { + "description": "The unit of meter, VMHours or CoreHours.", + "type": "string" + } + } + }, + "DiskBillingMeters": { + "type": "object", + "description": "The disk billing meters.", + "properties": { + "diskRpMeter": { + "description": "The managed disk meter guid.", + "type": "string" + }, + "sku": { + "description": "The managed disk billing sku, P30 or S30.", + "type": "string" + }, + "tier": { + "description": "The managed disk billing tier, Standard or Premium.", + "type": "string", + "enum": [ + "Standard", + "Premium" + ], + "x-ms-enum": { + "name": "Tier", + "modelAsString": false + } + } + } } }, "parameters": { @@ -138,7 +576,7 @@ "in": "path", "required": true, "type": "string", - "description": "The location to get capabilities for.", + "description": "The Azure location (region) for which to make the request.", "x-ms-parameter-location": "method" }, "ApiVersionParameter": { diff --git a/specification/hdinsight/resource-manager/readme.md b/specification/hdinsight/resource-manager/readme.md index ef09d8f73986..b87ad7bbd9d6 100644 --- a/specification/hdinsight/resource-manager/readme.md +++ b/specification/hdinsight/resource-manager/readme.md @@ -36,13 +36,34 @@ tag: package-2018-06-preview ``` yaml directive: - suppress: DefinitionsPropertiesNamesCamelCase - reason: This would require a breaking change, and the capabilities API was removed in version 2018-06-01-preview. - from: Microsoft.HDInsight/preview/2015-03-01-1/preview/locations.json + reason: This would require a breaking change, and need to be consistent with the response from RP side. + from: Microsoft.HDInsight/preview/2015-03-01-preview/locations.json where: - $.definitions.CapabilitiesResult.properties.vmSize_filters - $.definitions.RegionalQuotaCapability.properties.cores_available - $.definitions.RegionalQuotaCapability.properties.cores_used - $.definitions.RegionalQuotaCapability.properties.region_name + - $.definitions.QuotaCapability.properties.cores_used + - $.definitions.QuotaCapability.properties.max_cores_allowed + - $.definitions.VmSizeCompatibilityFilter.properties.ClusterVersions + - $.definitions.VmSizeCompatibilityFilter.properties.NodeTypes + - $.definitions.VmSizeCompatibilityFilter.properties.ClusterFlavors + - $.definitions.VmSizeCompatibilityFilter.properties.Regions + - $.definitions.VmSizeCompatibilityFilter.properties.FilterMode + ``` + + ``` yaml + directive: + - suppress: DefinitionsPropertiesNamesCamelCase + reason: This would require a breaking change, and need to be consistent with the response from RP side. + from: Microsoft.HDInsight/stable/2018-06-01-preview/locations.json + where: + - $.definitions.CapabilitiesResult.properties.vmSize_filters + - $.definitions.RegionalQuotaCapability.properties.cores_available + - $.definitions.RegionalQuotaCapability.properties.cores_used + - $.definitions.RegionalQuotaCapability.properties.region_name + - $.definitions.QuotaCapability.properties.cores_used + - $.definitions.QuotaCapability.properties.max_cores_allowed - $.definitions.VmSizeCompatibilityFilter.properties.ClusterVersions - $.definitions.VmSizeCompatibilityFilter.properties.NodeTypes - $.definitions.VmSizeCompatibilityFilter.properties.ClusterFlavors @@ -104,6 +125,7 @@ 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-java - repo: azure-sdk-for-python @@ -184,3 +206,41 @@ generate-interface: 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)/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json + - $(this-folder)/Microsoft.HDInsight/stable/2018-06-01-preview/applications.json + - $(this-folder)/Microsoft.HDInsight/stable/2018-06-01-preview/locations.json + - $(this-folder)/Microsoft.HDInsight/stable/2018-06-01-preview/configurations.json + - $(this-folder)/Microsoft.HDInsight/stable/2018-06-01-preview/extensions.json + - $(this-folder)/Microsoft.HDInsight/stable/2018-06-01-preview/scriptActions.json + - $(this-folder)/Microsoft.HDInsight/stable/2018-06-01-preview/operations.json + - $(this-folder)/Microsoft.HDInsight/preview/2015-03-01-preview/cluster.json + - $(this-folder)/Microsoft.HDInsight/preview/2015-03-01-preview/applications.json + - $(this-folder)/Microsoft.HDInsight/preview/2015-03-01-preview/locations.json + - $(this-folder)/Microsoft.HDInsight/preview/2015-03-01-preview/configurations.json + - $(this-folder)/Microsoft.HDInsight/preview/2015-03-01-preview/extensions.json + - $(this-folder)/Microsoft.HDInsight/preview/2015-03-01-preview/scriptActions.json + - $(this-folder)/Microsoft.HDInsight/preview/2015-03-01-preview/operations.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/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/MoveResourcesPost.json b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/MoveResourcesPost.json deleted file mode 100644 index c0b3fe732dee..000000000000 --- a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/MoveResourcesPost.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-20-preview", - "subscriptionId": "subid", - "resourceGroupName": "resourceGroup", - "moveResourcesInputs": { - "targetSubscriptionId": "newSubscriptionId", - "targetResourceGroupName": "newResourceGroup", - "resourceIdsToMove": [ - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HealthcareApis/services/service1" - ] - } - }, - "responses": { - "202": {} - } -} diff --git a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceCreate.json b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceCreate.json index f64fb2404040..525a5eacaff5 100644 --- a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceCreate.json +++ b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceCreate.json @@ -16,7 +16,33 @@ { "objectId": "5b307da8-43d4-492b-8b66-b0294ade872f" } - ] + ], + "cosmosDbConfiguration": { + "offerThroughput": 1000 + }, + "authenticationConfiguration": { + "authority": "https://login.microsoftonline.com/common", + "audience": "https://azurehealthcareapis.com", + "smartProxyEnabled": true + }, + "corsConfiguration": { + "origins": [ + "*" + ], + "headers": [ + "*" + ], + "methods": [ + "DELETE", + "GET", + "OPTIONS", + "PATCH", + "POST", + "PUT" + ], + "maxAge": 1440, + "allowCredentials": false + } } } }, @@ -42,6 +68,29 @@ ], "cosmosDbConfiguration": { "offerThroughput": 1000 + }, + "authenticationConfiguration": { + "authority": "https://login.microsoftonline.com/common", + "audience": "https://azurehealthcareapis.com", + "smartProxyEnabled": true + }, + "corsConfiguration": { + "origins": [ + "*" + ], + "headers": [ + "*" + ], + "methods": [ + "DELETE", + "GET", + "OPTIONS", + "PATCH", + "POST", + "PUT" + ], + "maxAge": 1440, + "allowCredentials": false } } } @@ -67,6 +116,29 @@ ], "cosmosDbConfiguration": { "offerThroughput": 1000 + }, + "authenticationConfiguration": { + "authority": "https://login.microsoftonline.com/common", + "audience": "https://azurehealthcareapis.com", + "smartProxyEnabled": true + }, + "corsConfiguration": { + "origins": [ + "*" + ], + "headers": [ + "*" + ], + "methods": [ + "DELETE", + "GET", + "OPTIONS", + "PATCH", + "POST", + "PUT" + ], + "maxAge": 1440, + "allowCredentials": false } } } diff --git a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceGet.json b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceGet.json index cd19a503e675..34a87cee468d 100644 --- a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceGet.json +++ b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceGet.json @@ -27,6 +27,29 @@ ], "cosmosDbConfiguration": { "offerThroughput": 1000 + }, + "authenticationConfiguration": { + "authority": "https://login.microsoftonline.com/common", + "audience": "https://azurehealthcareapis.com", + "smartProxyEnabled": true + }, + "corsConfiguration": { + "origins": [ + "*" + ], + "headers": [ + "*" + ], + "methods": [ + "DELETE", + "GET", + "OPTIONS", + "PATCH", + "POST", + "PUT" + ], + "maxAge": 1440, + "allowCredentials": false } } } diff --git a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceList.json b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceList.json index 1bb954eb9eaa..b489bcc1779d 100644 --- a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceList.json +++ b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceList.json @@ -27,6 +27,29 @@ ], "cosmosDbConfiguration": { "offerThroughput": 1000 + }, + "authenticationConfiguration": { + "authority": "https://login.microsoftonline.com/common", + "audience": "https://azurehealthcareapis.com", + "smartProxyEnabled": true + }, + "corsConfiguration": { + "origins": [ + "*" + ], + "headers": [ + "*" + ], + "methods": [ + "DELETE", + "GET", + "OPTIONS", + "PATCH", + "POST", + "PUT" + ], + "maxAge": 1440, + "allowCredentials": false } } } diff --git a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceListByResourceGroup.json b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceListByResourceGroup.json index d814b8550a41..06396f3dc97f 100644 --- a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceListByResourceGroup.json +++ b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServiceListByResourceGroup.json @@ -28,6 +28,29 @@ ], "cosmosDbConfiguration": { "offerThroughput": 1000 + }, + "authenticationConfiguration": { + "authority": "https://login.microsoftonline.com/common", + "audience": "https://azurehealthcareapis.com", + "smartProxyEnabled": true + }, + "corsConfiguration": { + "origins": [ + "*" + ], + "headers": [ + "*" + ], + "methods": [ + "DELETE", + "GET", + "OPTIONS", + "PATCH", + "POST", + "PUT" + ], + "maxAge": 1440, + "allowCredentials": false } } } diff --git a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServicePatch.json b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServicePatch.json index 4e358150decc..54c299513b12 100644 --- a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServicePatch.json +++ b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/examples/ServicePatch.json @@ -36,6 +36,29 @@ ], "cosmosDbConfiguration": { "offerThroughput": 1000 + }, + "authenticationConfiguration": { + "authority": "https://login.microsoftonline.com/common", + "audience": "https://azurehealthcareapis.com", + "smartProxyEnabled": true + }, + "corsConfiguration": { + "origins": [ + "*" + ], + "headers": [ + "*" + ], + "methods": [ + "DELETE", + "GET", + "OPTIONS", + "PATCH", + "POST", + "PUT" + ], + "maxAge": 1440, + "allowCredentials": false } } } 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 9512f0a86092..403e851ff328 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 @@ -2,8 +2,8 @@ "swagger": "2.0", "info": { "version": "2018-08-20-preview", - "title": "HealthcareClient", - "description": "Use this API to manage Microsoft Healthcare services in your Azure subscription." + "title": "HealthcareApisClient", + "description": "Use this API to manage Microsoft HealthcareApis services in your Azure subscription." }, "host": "management.azure.com", "schemes": [ @@ -392,52 +392,6 @@ "deprecated": false } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/moveResources": { - "post": { - "tags": [ - "Proxy" - ], - "description": "Moves resources to another subscription and/or resource group.", - "operationId": "Services_MoveResources", - "x-ms-examples": { - "ServiceList": { - "$ref": "./examples/MoveResourcesPost.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/api-version" - }, - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "name": "moveResourcesInputs", - "in": "body", - "description": "Set the move resource structure to the name of the service instance to check.", - "required": true, - "schema": { - "$ref": "#/definitions/MoveResourcesParameters" - } - } - ], - "responses": { - "202": { - "description": "Accepted - Move request accepted; the operation will complete asynchronously." - }, - "default": { - "description": "DefaultErrorResponse", - "schema": { - "$ref": "#/definitions/ErrorDetails" - } - } - }, - "deprecated": false - } - }, "/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/{locationName}/operationresults/{operationResultId}": { "get": { "tags": [ @@ -486,55 +440,6 @@ }, "deprecated": false } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/{locationName}/moveResourcesStatus/{operationResultId}": { - "get": { - "tags": [ - "Resource" - ], - "description": "Get the operation result for a long running move operation.", - "operationId": "MoveResourcesStatus_Get", - "x-ms-examples": { - "OperationResultsGet": { - "$ref": "./examples/OperationResultsGet.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/api-version" - }, - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/locationName" - }, - { - "$ref": "#/parameters/operationResultId" - } - ], - "responses": { - "200": { - "description": "The body contains all of the properties of the operation result.", - "schema": { - "$ref": "#/definitions/OperationResultsDescription" - } - }, - "404": { - "description": "No operation result was found matching operationResultId.", - "schema": { - "$ref": "#/definitions/ErrorDetails" - } - }, - "default": { - "description": "Default error response", - "schema": { - "$ref": "#/definitions/ErrorDetails" - } - } - }, - "deprecated": false - } } }, "definitions": { @@ -569,6 +474,14 @@ "cosmosDbConfiguration": { "$ref": "#/definitions/ServiceCosmosDbConfigurationInfo", "description": "The settings for the Cosmos DB database backing the service." + }, + "authenticationConfiguration": { + "$ref": "#/definitions/ServiceAuthenticationConfigurationInfo", + "description": "The authentication configuration for the service instance." + }, + "corsConfiguration": { + "$ref": "#/definitions/ServiceCorsConfigurationInfo", + "description": "The settings for the CORS configuration of the service instance." } }, "required": [ @@ -603,10 +516,88 @@ "offerThroughput": { "type": "integer", "description": "The provisioned throughput for the backing database.", + "readOnly": false, + "minimum": 400, + "maximum": 10000 + } + } + }, + "ServiceAuthenticationConfigurationInfo": { + "description": "Authentication configuration information", + "type": "object", + "properties": { + "authority": { + "type": "string", + "description": "The authority url for the service", + "readOnly": false + }, + "audience": { + "type": "string", + "description": "The audience url for the service", + "readOnly": false + }, + "smartProxyEnabled": { + "type": "boolean", + "description": "If the SMART on FHIR proxy is enabled", + "readOnly": false + } + } + }, + "ServiceCorsConfigurationInfo": { + "description": "The settings for the CORS configuration of the service instance.", + "type": "object", + "properties": { + "origins": { + "type": "array", + "description": "The origins to be allowed via CORS.", + "readOnly": false, + "items": { + "$ref": "#/definitions/ServiceCorsConfigurationOriginEntry" + } + }, + "headers": { + "type": "array", + "description": "The headers to be allowed via CORS.", + "readOnly": false, + "items": { + "$ref": "#/definitions/ServiceCorsConfigurationHeaderEntry" + } + }, + "methods": { + "type": "array", + "description": "The methods to be allowed via CORS.", + "readOnly": false, + "items": { + "$ref": "#/definitions/ServiceCorsConfigurationMethodEntry" + } + }, + "maxAge": { + "type": "integer", + "description": "The max age to be allowed via CORS.", + "readOnly": false, + "minimum": 0, + "maximum": 99999 + }, + "allowCredentials": { + "type": "boolean", + "description": "If credentials are allowed via CORS.", "readOnly": false } } }, + "ServiceCorsConfigurationOriginEntry": { + "description": "An origin for CORS.", + "type": "string", + "pattern": "^(?:(?:(?:[hH][tT][tT][pP](?:[sS]|))\\:\\/\\/(?:[a-zA-Z0-9-]+[.]?)+(?:\\:[0-9]{1,5})?|[*]))$" + }, + "ServiceCorsConfigurationHeaderEntry": { + "description": "A header for CORS.", + "type": "string" + }, + "ServiceCorsConfigurationMethodEntry": { + "description": "A method for CORS.", + "type": "string" + }, "ServicesDescription": { "description": "The description of the service.", "type": "object", @@ -658,9 +649,11 @@ "kind": { "readOnly": false, "type": "string", - "description": "The kind of the service. Valid values are: fhir.", + "description": "The kind of the service. Valid values are: fhir, fhir-Stu3 and fhir-R4.", "enum": [ - "fhir" + "fhir", + "fhir-Stu3", + "fhir-R4" ], "x-ms-enum": { "name": "kind", @@ -851,34 +844,6 @@ } } }, - "MoveResourcesParameters": { - "description": "Input values.", - "type": "object", - "properties": { - "targetSubscriptionId": { - "description": "The target subscription to move resources to.", - "type": "string" - }, - "targetResourceGroupName": { - "description": "The target resource group to move resources to.", - "type": "string" - }, - "resourceIdsToMove": { - "description": "The list of resources to move.", - "type": "array", - "minItems": 1, - "maxItems": 250, - "items": { - "type": "string" - } - } - }, - "required": [ - "targetSubscriptionId", - "targetResourceGroupName", - "resourceIdsToMove" - ] - }, "OperationResultsDescription": { "description": "The properties indicating the operation result of an operation on a service.", "type": "object", @@ -927,8 +892,7 @@ "in": "path", "description": "The subscription identifier.", "required": true, - "type": "string", - "format": "uuid" + "type": "string" }, "api-version": { "name": "api-version", diff --git a/specification/healthcareapis/resource-manager/readme.go.md b/specification/healthcareapis/resource-manager/readme.go.md index 9f499c737b1f..59f303cd7ff2 100644 --- a/specification/healthcareapis/resource-manager/readme.go.md +++ b/specification/healthcareapis/resource-manager/readme.go.md @@ -12,14 +12,14 @@ These settings apply only when `--go` is specified on the command line. ``` yaml $(go) && $(multiapi) batch: - - tag: package-2018-08 + - tag: package-2018-08-preview ``` -### Tag: package-2018-08 +### Tag: package-2018-08-preview -These settings apply only when `--tag=package-2018-08 --go` is specified on the command line. +These settings apply only when `--tag=package-2018-08-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(tag) == 'package-2018-08' && $(go) +``` yaml $(tag) == 'package-2018-08-preview' && $(go) output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-08-20-preview/$(namespace) ``` \ No newline at end of file diff --git a/specification/healthcareapis/resource-manager/readme.md b/specification/healthcareapis/resource-manager/readme.md index e94b13939883..a69b7422c4ab 100644 --- a/specification/healthcareapis/resource-manager/readme.md +++ b/specification/healthcareapis/resource-manager/readme.md @@ -22,22 +22,22 @@ To see additional help and options, run: ### Basic Information -These are the global settings for the HANA on Azure API. +These are the global settings for HealthcareApis service. ``` yaml title: HealthcareApisManagementClient description: Azure Healthcare APIs Client openapi-type: arm -tag: package-2018-08 +tag: package-2018-08-preview azure-arm: true ``` ### Tag: package-2018-08-preview -These settings apply only when `--tag=package-2018-08` is specified on the command line. +These settings apply only when `--tag=package-2018-08-preview` is specified on the command line. -``` yaml $(tag) == 'package-2018-08' +``` yaml $(tag) == 'package-2018-08-preview' input-file: - Microsoft.HealthcareApis/preview/2018-08-20-preview/healthcare-apis.json ``` @@ -52,39 +52,29 @@ 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 - repo: azure-sdk-for-js ``` +## C# -## 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. +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. -``` yaml $(python) -python-mode: create -python: +``` yaml $(csharp) +csharp: + # last generated with AutoRest.2.0.4144 azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: azure.mgmt.healthcareapis - package-name: azure-mgmt-healthcareapis + namespace: Microsoft.Azure.Management.HealthcareApis + output-folder: $(csharp-sdks-folder)/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated clear-output-folder: true - package-version: 0.1.0 -``` -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis -``` -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/azure-mgmt-healthcareapis ``` +## Python + +See configuration in [readme.python.md](./readme.python.md) ## Go @@ -108,15 +98,15 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-healthcareapis ``` yaml $(java) && $(multiapi) batch: - - tag: package-2018-08 + - tag: package-2018-08-preview ``` -### Tag: package-2018-08 and java +### Tag: package-2018-08-preview and java -These settings apply only when `--tag=package-2018-08 --java` is specified on the command line. +These settings apply only when `--tag=package-2018-08-preview --java` is specified on the command line. Please also specify `--azure-libraries-for-java=`. -``` yaml $(tag) == 'package-2018-08' && $(java) && $(multiapi) +``` yaml $(tag) == 'package-2018-08-preview' && $(java) && $(multiapi) java: namespace: com.microsoft.azure.management.healthcareapis.v2018_08_20_preview output-folder: $(azure-libraries-for-java-folder)/healthcareapis/resource-manager/v2018_08_20_preview @@ -125,3 +115,28 @@ generate-interface: 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)/Microsoft.HealthcareApis/preview/2018-08-20-preview/healthcare-apis.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/healthcareapis/resource-manager/readme.python.md b/specification/healthcareapis/resource-manager/readme.python.md new file mode 100644 index 000000000000..efe1e791be4e --- /dev/null +++ b/specification/healthcareapis/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.healthcareapis + package-name: azure-mgmt-healthcareapis + clear-output-folder: true + package-version: 0.1.0 +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/healthcareapis/azure-mgmt-healthcareapis +``` diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataManagers_Create-PUT-example-41.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataManagers_Create-PUT-example-41.json index 8dc05f4563c7..99534c8464d7 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataManagers_Create-PUT-example-41.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataManagers_Create-PUT-example-41.json @@ -27,9 +27,7 @@ } }, "responses": { - "202": { - "body": "" - }, + "202": {}, "200": { "body": { "etag": "W/\"datetime'2019-04-10T09%3A08%3A57.4101089Z'\"_W/\"datetime'2019-04-10T09%3A08%3A57.5552101Z'\"", diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataManagers_Delete-DELETE-example-41.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataManagers_Delete-DELETE-example-41.json index d22a70af04b5..e116f63a7d8a 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataManagers_Delete-DELETE-example-41.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataManagers_Delete-DELETE-example-41.json @@ -18,11 +18,7 @@ ] }, "responses": { - "202": { - "body": "" - }, - "204": { - "body": "" - } + "202": {}, + "204": {} } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataManagers_Update-PATCH-example-43.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataManagers_Update-PATCH-example-43.json index c6a9b095d51e..5141af234090 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataManagers_Update-PATCH-example-43.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataManagers_Update-PATCH-example-43.json @@ -30,9 +30,7 @@ } }, "responses": { - "202": { - "body": "" - }, + "202": {}, "200": { "body": { "etag": "W/\"datetime'2019-04-10T09%3A23%3A57.1833483Z'\"_W/\"datetime'2019-04-10T09%3A23%3A57.1993588Z'\"", diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataServices_ListByDataManager-GET-example-51.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataServices_ListByDataManager-GET-example-51.json index aa8402028e45..b6c815ce3716 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataServices_ListByDataManager-GET-example-51.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataServices_ListByDataManager-GET-example-51.json @@ -102,7 +102,7 @@ "type": "Microsoft.HybridData/dataManagers/dataServices" } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStoreTypes_ListByDataManager-GET-example-171.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStoreTypes_ListByDataManager-GET-example-171.json index 7be5d5715925..2fd02ede260c 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStoreTypes_ListByDataManager-GET-example-171.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStoreTypes_ListByDataManager-GET-example-171.json @@ -97,7 +97,7 @@ "type": "Microsoft.HybridData/dataManagers/dataStoreTypes" } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_CreateOrUpdate_DataSink-PUT-example-162.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_CreateOrUpdate_DataSink-PUT-example-162.json index 3129b2cde488..b6a1f4751a2e 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_CreateOrUpdate_DataSink-PUT-example-162.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_CreateOrUpdate_DataSink-PUT-example-162.json @@ -49,9 +49,7 @@ } }, "responses": { - "202": { - "body": "" - }, + "202": {}, "200": { "body": { "properties": { diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_CreateOrUpdate_DataSource-PUT-example-162.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_CreateOrUpdate_DataSource-PUT-example-162.json index 37b6b4603ddd..65f1a65f816e 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_CreateOrUpdate_DataSource-PUT-example-162.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_CreateOrUpdate_DataSource-PUT-example-162.json @@ -43,9 +43,7 @@ } }, "responses": { - "202": { - "body": "" - }, + "202": {}, "200": { "body": { "properties": { diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_Delete_DataSink-DELETE-example-161.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_Delete_DataSink-DELETE-example-161.json index 158bfb2d7ba3..8c0beb156596 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_Delete_DataSink-DELETE-example-161.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_Delete_DataSink-DELETE-example-161.json @@ -19,11 +19,7 @@ ] }, "responses": { - "202": { - "body": "" - }, - "204": { - "body": "" - } + "202": {}, + "204": {} } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_Delete_DataSource-DELETE-example-161.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_Delete_DataSource-DELETE-example-161.json index 38c61fe70aec..91705701c543 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_Delete_DataSource-DELETE-example-161.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_Delete_DataSource-DELETE-example-161.json @@ -19,11 +19,7 @@ ] }, "responses": { - "202": { - "body": "" - }, - "204": { - "body": "" - } + "202": {}, + "204": {} } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_ListByDataManager-GET-example-151.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_ListByDataManager-GET-example-151.json index bb5a0dee4d53..e41464ee6ea5 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_ListByDataManager-GET-example-151.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/DataStores_ListByDataManager-GET-example-151.json @@ -49,7 +49,7 @@ "type": "Microsoft.HybridData/dataManagers/dataStores" } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_CreateOrUpdate-PUT-example-83.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_CreateOrUpdate-PUT-example-83.json index 06c7a2ff2820..9eafce4dc31a 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_CreateOrUpdate-PUT-example-83.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_CreateOrUpdate-PUT-example-83.json @@ -49,9 +49,7 @@ } }, "responses": { - "202": { - "body": "" - }, + "202": {}, "200": { "body": { "properties": { diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_Delete-DELETE-example-81.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_Delete-DELETE-example-81.json index 43c643ba4d77..ee1c04c5b17e 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_Delete-DELETE-example-81.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_Delete-DELETE-example-81.json @@ -20,11 +20,7 @@ ] }, "responses": { - "202": { - "body": "" - }, - "204": { - "body": "" - } + "202": {}, + "204": {} } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_ListByDataManager-GET-example-191.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_ListByDataManager-GET-example-191.json index fcab9f535bcf..4382802a82fa 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_ListByDataManager-GET-example-191.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_ListByDataManager-GET-example-191.json @@ -50,7 +50,7 @@ "type": "Microsoft.HybridData/dataManagers/dataServices/jobDefinitions" } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_ListByDataService-GET-example-71.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_ListByDataService-GET-example-71.json index 83b201fbd5b4..1ac77da4ef8f 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_ListByDataService-GET-example-71.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_ListByDataService-GET-example-71.json @@ -51,7 +51,7 @@ "type": "Microsoft.HybridData/dataManagers/dataServices/jobDefinitions" } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_Run-POST-example-132.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_Run-POST-example-132.json index e68991154c56..77b9dad20d74 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_Run-POST-example-132.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/JobDefinitions_Run-POST-example-132.json @@ -44,11 +44,7 @@ } }, "responses": { - "202": { - "body": "" - }, - "204": { - "body": "" - } + "202": {}, + "204": {} } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_Cancel-POST-example-111.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_Cancel-POST-example-111.json index 2471607bb155..6053caabbec3 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_Cancel-POST-example-111.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_Cancel-POST-example-111.json @@ -21,11 +21,7 @@ ] }, "responses": { - "202": { - "body": "" - }, - "204": { - "body": "" - } + "202": {}, + "204": {} } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_ListByDataManager-GET-example-201.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_ListByDataManager-GET-example-201.json index c0721acb1faf..ebcf4ed71efe 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_ListByDataManager-GET-example-201.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_ListByDataManager-GET-example-201.json @@ -64,7 +64,7 @@ "type": "Microsoft.HybridData/dataManagers/jobs" } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_ListByDataService-GET-example-141.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_ListByDataService-GET-example-141.json index 7fc10af4a35c..2cb94885a13d 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_ListByDataService-GET-example-141.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_ListByDataService-GET-example-141.json @@ -65,7 +65,7 @@ "type": "Microsoft.HybridData/dataManagers/jobs" } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_ListByJobDefinition-GET-example-91.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_ListByJobDefinition-GET-example-91.json index da706483e2a2..4f0eecd66bf7 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_ListByJobDefinition-GET-example-91.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_ListByJobDefinition-GET-example-91.json @@ -66,7 +66,7 @@ "type": "Microsoft.HybridData/dataManagers/jobs" } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_Resume-POST-example-121.json b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_Resume-POST-example-121.json index ccc8532807da..605c47986318 100644 --- a/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_Resume-POST-example-121.json +++ b/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2016-06-01/examples/Jobs_Resume-POST-example-121.json @@ -21,11 +21,7 @@ ] }, "responses": { - "202": { - "body": "" - }, - "204": { - "body": "" - } + "202": {}, + "204": {} } } diff --git a/specification/hybriddatamanager/resource-manager/readme.md b/specification/hybriddatamanager/resource-manager/readme.md index 8bcac4d0c36a..ed026f8c21b5 100644 --- a/specification/hybriddatamanager/resource-manager/readme.md +++ b/specification/hybriddatamanager/resource-manager/readme.md @@ -54,6 +54,7 @@ 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-java - repo: azure-sdk-for-js @@ -129,3 +130,28 @@ python: basic-setup-py: true output-folder: $(python-sdks-folder)/azure-mgmt-hybriddatamanager ``` + +## 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.HybridData/stable/2016-06-01/hybriddata.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/imagebuilder/resource-manager/readme.md b/specification/imagebuilder/resource-manager/readme.md index 0b068613d406..f1245d08ca93 100644 --- a/specification/imagebuilder/resource-manager/readme.md +++ b/specification/imagebuilder/resource-manager/readme.md @@ -155,3 +155,30 @@ java: regenerate-manager: true generate-interface: 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)/Microsoft.VirtualMachineImages/preview/2019-05-01-preview/imagebuilder.json + - $(this-folder)/Microsoft.VirtualMachineImages/preview/2018-02-01-preview/imagebuilder.json + - $(this-folder)/Microsoft.VirtualMachineImages/preview/2019-02-01-preview/imagebuilder.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/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetAttestedData.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetAttestedData.json index 597d9e79b9d7..3b15168f97e4 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetAttestedData.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetAttestedData.json @@ -1,15 +1,15 @@ { - "parameters": { - "api-version": "2019-02-01", - "nonce": "abcde12345", - "Metadata": "true" - }, - "responses": { - "200": { - "body": { - "encoding": "pkcs7", - "signature": "MIID2gYJKoZIhvcNAQcCoIIDyzCCA8cCAQExDzANBgkqhkiG9w0BAQsFADCBggYJKoZIhvcNAQcBoHUEc3sibm9uY2UiOiIxMTExMTExMTExIiwicGxhbiI6eyJuYW1lIjoiIiwicHJvZHVjdCI6IiIsInB1Ymxpc2hlciI6IiJ9LCJ2bUlkIjoiMDJhYWI4YTQtNzRlZi00NzZlLTgxODItZjZkMmJhNDE2NmE2In2gggI/MIICOzCCAaSgAwIBAgIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQQFADArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbTAeFw0xODExMDgxODUzMDRaFw0xODEyMDgxODUzMDNaMCsxKTAnBgNVBAMTIHRlc3RzdWJkb21haW4ubWV0YWRhdGEuYXp1cmUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEi0FVslYnUX+MneC7ERMU4ZM88z4J80r7RPgvzxCPNhXUQlWm3cmVRZMD8kKMv7brkvEsATP7Ak60/I/XEtOga4LGCvMaQa8I/MW8IhSyp2Vj015glAiV8TeUI5DuOIOS96lQvM+G7bt23swkIwVjm1u1ViTZiKKytwpY/EGqzQIDAQABo2AwXjBcBgNVHQEEVTBTgBAt3MRgJmEoUMiPy7k06cLfoS0wKzEpMCcGA1UEAxMgdGVzdHN1YmRvbWFpbi5tZXRhZGF0YS5henVyZS5jb22CEEFrBY1zd+aASShVyN0KzN0wDQYJKoZIhvcNAQEEBQADgYEAd87qiZnRlGIFQ5IEcL/A7ru23WSQAOBsNPt70Fg1GtaEHcYshKUJFhGwXOgZ11cY5wRfrSvEKuzvhAeIZwkvzkBjC04g8sRrjN5leLY5CsKzQhjN52TUMsHhqTM58tfAnICeTddQwn6LOgfqtYH5WO+F/VbFCwPstYUqjmQEYAoxgegwgeUCAQEwPzArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbQIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQsFADANBgkqhkiG9w0BAQEFAASBgCbkRKmQ1MdWZPVOrX7ZBKHQUWPFrQQNdjk3KB67GkY0W0Taxut4K7D2PmiflVEwxB92pTbaZZr/dldu1k1ab1YamHcVYdgZgxIkoOWohGR0ym8oL9JHjFMEqHUbEPtDwE8X+djtDd8TVdb6LYe77IXmz/VaX4whuejlSvQXjaL" - } - } + "parameters": { + "api-version": "2019-02-01", + "nonce": "abcde12345", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "encoding": "pkcs7", + "signature": "MIID2gYJKoZIhvcNAQcCoIIDyzCCA8cCAQExDzANBgkqhkiG9w0BAQsFADCBggYJKoZIhvcNAQcBoHUEc3sibm9uY2UiOiIxMTExMTExMTExIiwicGxhbiI6eyJuYW1lIjoiIiwicHJvZHVjdCI6IiIsInB1Ymxpc2hlciI6IiJ9LCJ2bUlkIjoiMDJhYWI4YTQtNzRlZi00NzZlLTgxODItZjZkMmJhNDE2NmE2In2gggI/MIICOzCCAaSgAwIBAgIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQQFADArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbTAeFw0xODExMDgxODUzMDRaFw0xODEyMDgxODUzMDNaMCsxKTAnBgNVBAMTIHRlc3RzdWJkb21haW4ubWV0YWRhdGEuYXp1cmUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEi0FVslYnUX+MneC7ERMU4ZM88z4J80r7RPgvzxCPNhXUQlWm3cmVRZMD8kKMv7brkvEsATP7Ak60/I/XEtOga4LGCvMaQa8I/MW8IhSyp2Vj015glAiV8TeUI5DuOIOS96lQvM+G7bt23swkIwVjm1u1ViTZiKKytwpY/EGqzQIDAQABo2AwXjBcBgNVHQEEVTBTgBAt3MRgJmEoUMiPy7k06cLfoS0wKzEpMCcGA1UEAxMgdGVzdHN1YmRvbWFpbi5tZXRhZGF0YS5henVyZS5jb22CEEFrBY1zd+aASShVyN0KzN0wDQYJKoZIhvcNAQEEBQADgYEAd87qiZnRlGIFQ5IEcL/A7ru23WSQAOBsNPt70Fg1GtaEHcYshKUJFhGwXOgZ11cY5wRfrSvEKuzvhAeIZwkvzkBjC04g8sRrjN5leLY5CsKzQhjN52TUMsHhqTM58tfAnICeTddQwn6LOgfqtYH5WO+F/VbFCwPstYUqjmQEYAoxgegwgeUCAQEwPzArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbQIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQsFADANBgkqhkiG9w0BAQEFAASBgCbkRKmQ1MdWZPVOrX7ZBKHQUWPFrQQNdjk3KB67GkY0W0Taxut4K7D2PmiflVEwxB92pTbaZZr/dldu1k1ab1YamHcVYdgZgxIkoOWohGR0ym8oL9JHjFMEqHUbEPtDwE8X+djtDd8TVdb6LYe77IXmz/VaX4whuejlSvQXjaL" + } } + } } diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetIdentityInfo.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetIdentityInfo.json index 7fd6121556fb..7d0e667f65c1 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetIdentityInfo.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetIdentityInfo.json @@ -1,13 +1,13 @@ { - "parameters": { - "api-version": "2019-02-01", - "Metadata": "true" - }, - "responses": { - "200": { - "body": { - "tenantId": "abd8daee-d393-4239-9377-883adda3d40f" - } - } + "parameters": { + "api-version": "2019-02-01", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "tenantId": "abd8daee-d393-4239-9377-883adda3d40f" + } } + } } diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetIdentityToken.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetIdentityToken.json index a5cd62828a19..ce910c826abd 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetIdentityToken.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetIdentityToken.json @@ -1,20 +1,20 @@ { - "parameters": { - "api-version": "2019-02-01", - "Metadata": "true", - "resource": "https://vault.azure.net" - }, - "responses": { - "200": { - "body": { - "access_token": "dummytoken", - "client_id": "be5947ed-3560-4afe-9504-59967a63f810", - "expires_in": "3599", - "expires_on": "1541705014", - "ext_expires_in": "262800", - "not_before": "1508961830", - "resource": "https://va" - } - } + "parameters": { + "api-version": "2019-02-01", + "Metadata": "true", + "resource": "https://vault.azure.net" + }, + "responses": { + "200": { + "body": { + "access_token": "dummytoken", + "client_id": "be5947ed-3560-4afe-9504-59967a63f810", + "expires_in": "3599", + "expires_on": "1541705014", + "ext_expires_in": "262800", + "not_before": "1508961830", + "resource": "https://va" + } } + } } diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetInstanceMetadata.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetInstanceMetadata.json index 243881799100..a32b1daecdac 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetInstanceMetadata.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/examples/GetInstanceMetadata.json @@ -1,48 +1,48 @@ { - "parameters": { - "api-version": "2019-02-01", - "Metadata": "true" - }, - "responses": { - "200": { - "body": { - "compute": { - "azEnvironment": "AzurePublicCloud", - "customData": "TXkgY3VzdG9tIGRhdGEu", - "location": "westus", - "name": "examplevmname", - "offer": "Windows", - "osType": "linux", - "placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a", - "plan": { - "name": "planName", - "product": "planProduct", - "publisher": "planPublisher" - }, - "platformFaultDomain": "36", - "platformUpdateDomain": "42", - "publicKeys": [ - { - "keyData": "ssh-rsa 0", - "path": "/home/user/.ssh/authorized_keys0" - }, - { - "keyData": "ssh-rsa 1", - "path": "/home/user/.ssh/authorized_keys1" - } - ], - "publisher": "RDFE-Test-Microsoft-Windows-Server-Group", - "resourceGroupName": "macikgo-test-may-23", - "sku": "Windows-Server-2012-R2-Datacenter", - "subscriptionId": "8d10da13-8125-4ba9-a717-bf7490507b3d", - "tags": "baz:bash;foo:bar", - "version": "15.05.22", - "vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6", - "vmScaleSetName": "crpteste9vflji9", - "vmSize": "Standard_A3", - "zone": "" - } + "parameters": { + "api-version": "2019-02-01", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "compute": { + "azEnvironment": "AzurePublicCloud", + "customData": "TXkgY3VzdG9tIGRhdGEu", + "location": "westus", + "name": "examplevmname", + "offer": "Windows", + "osType": "linux", + "placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a", + "plan": { + "name": "planName", + "product": "planProduct", + "publisher": "planPublisher" + }, + "platformFaultDomain": "36", + "platformUpdateDomain": "42", + "publicKeys": [ + { + "keyData": "ssh-rsa 0", + "path": "/home/user/.ssh/authorized_keys0" + }, + { + "keyData": "ssh-rsa 1", + "path": "/home/user/.ssh/authorized_keys1" } + ], + "publisher": "RDFE-Test-Microsoft-Windows-Server-Group", + "resourceGroupName": "macikgo-test-may-23", + "sku": "Windows-Server-2012-R2-Datacenter", + "subscriptionId": "8d10da13-8125-4ba9-a717-bf7490507b3d", + "tags": "baz:bash;foo:bar", + "version": "15.05.22", + "vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6", + "vmScaleSetName": "crpteste9vflji9", + "vmSize": "Standard_A3", + "zone": "" } + } } + } } diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/imds.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/imds.json index 99d3fb3418e3..90dd72ef448d 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/imds.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-02-01/imds.json @@ -1,625 +1,625 @@ -{ - "swagger": "2.0", - "info": { - "title": "InstanceMetadataClient", - "description": "The Azure Instance Metadata Client", - "version": "2019-02-01" - }, - "host": "169.254.169.254", - "basePath": "/metadata", - "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" +{ + "swagger": "2.0", + "info": { + "title": "InstanceMetadataClient", + "description": "The Azure Instance Metadata Client", + "version": "2019-02-01" + }, + "host": "169.254.169.254", + "basePath": "/metadata", + "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": { + "/instance": { + "get": { + "operationId": "Instances_GetMetadata", + "description": "Get Instance Metadata for the Virtual Machine.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Instance" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Instance Metadata for the VM": { + "$ref": "./examples/GetInstanceMetadata.json" + } } + } }, - "paths": { - "/instance": { - "get": { - "operationId": "Instances_GetMetadata", - "description": "Get Instance Metadata for the Virtual Machine.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/MetadataParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Instance" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Instance Metadata for the VM": { - "$ref": "./examples/GetInstanceMetadata.json" - } - } + "/attested/document": { + "get": { + "operationId": "Attested_GetDocument", + "description": "Get Attested Data for the Virtual Machine.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "nonce", + "in": "query", + "required": false, + "type": "string", + "description": "This is a string of up to 32 random alphanumeric characters." + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AttestedData" } - }, - "/attested/document": { - "get": { - "operationId": "Attested_GetDocument", - "description": "Get Attested Data for the Virtual Machine.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "nonce", - "in": "query", - "required": false, - "type": "string", - "description": "This is a string of up to 32 random alphanumeric characters." - }, - { - "$ref": "#/parameters/MetadataParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AttestedData" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Attested Data for the VM": { - "$ref": "./examples/GetAttestedData.json" - } - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } }, - "/identity/oauth2/token": { - "get": { - "tags": [ - "Get token" - ], - "description": "Get a Token from Azure AD", - "operationId": "Identity_GetToken", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/MetadataParameter" - }, - { - "name": "resource", - "in": "query", - "type": "string", - "description": "This is the urlencoded identifier URI of the sink resource for the requested Azure AD token. The resulting token contains the corresponding aud for this resource.", - "required": true - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "client_id", - "in": "query", - "type": "string", - "description": "This identifies, by Azure AD client id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with object_id and msi_res_id.", - "required": false - }, - { - "name": "object_id", - "in": "query", - "type": "string", - "description": "This identifies, by Azure AD object id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and msi_res_id.", - "required": false - }, - { - "name": "msi_res_id", - "in": "query", - "type": "string", - "description": "This identifies, by urlencoded ARM resource id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and object_id.", - "required": false - }, - { - "name": "authority", - "in": "query", - "type": "string", - "description": "This indicates the authority to request AAD tokens from. Defaults to the known authority of the identity to be used.", - "required": false - }, - { - "name": "bypass_cache", - "in": "query", - "type": "string", - "enum": [ - "true" - ], - "description": "If provided, the value must be 'true'. This indicates to the server that the token must be retrieved from Azure AD and cannot be retrieved from an internal cache.", - "required": false, - "x-ms-enum": { - "name": "BypassCache", - "modelAsString": true - } - } - ], - "responses": { - "200": { - "description": "Successful operation", - "schema": { - "$ref": "#/definitions/IdentityTokenResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/IdentityErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Identity Token for the VM": { - "$ref": "./examples/GetIdentityToken.json" - } - } + "x-ms-examples": { + "Get Attested Data for the VM": { + "$ref": "./examples/GetAttestedData.json" + } + } + } + }, + "/identity/oauth2/token": { + "get": { + "tags": [ + "Get token" + ], + "description": "Get a Token from Azure AD", + "operationId": "Identity_GetToken", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "name": "resource", + "in": "query", + "type": "string", + "description": "This is the urlencoded identifier URI of the sink resource for the requested Azure AD token. The resulting token contains the corresponding aud for this resource.", + "required": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "client_id", + "in": "query", + "type": "string", + "description": "This identifies, by Azure AD client id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with object_id and msi_res_id.", + "required": false + }, + { + "name": "object_id", + "in": "query", + "type": "string", + "description": "This identifies, by Azure AD object id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and msi_res_id.", + "required": false + }, + { + "name": "msi_res_id", + "in": "query", + "type": "string", + "description": "This identifies, by urlencoded ARM resource id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and object_id.", + "required": false + }, + { + "name": "authority", + "in": "query", + "type": "string", + "description": "This indicates the authority to request AAD tokens from. Defaults to the known authority of the identity to be used.", + "required": false + }, + { + "name": "bypass_cache", + "in": "query", + "type": "string", + "enum": [ + "true" + ], + "description": "If provided, the value must be 'true'. This indicates to the server that the token must be retrieved from Azure AD and cannot be retrieved from an internal cache.", + "required": false, + "x-ms-enum": { + "name": "BypassCache", + "modelAsString": true } - }, - "/identity/info": { - "get": { - "tags": [ - "Get metadata information" - ], - "description": "Get information about AAD Metadata", - "operationId": "Identity_GetInfo", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/MetadataParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successful operation", - "schema": { - "$ref": "#/definitions/IdentityInfoResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/IdentityErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Identity Info for the VM": { - "$ref": "./examples/GetIdentityInfo.json" - } - } + } + ], + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/IdentityTokenResponse" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/IdentityErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Identity Token for the VM": { + "$ref": "./examples/GetIdentityToken.json" + } } + } }, - "definitions": { - "Compute": { - "type": "object", - "properties": { - "azEnvironment": { - "type": "string", - "description": "This is the name of the environment in which the VM is running." - }, - "customData": { - "type": "string", - "description": "This is the base64 encoded custom data for the running VM." - }, - "location": { - "type": "string", - "description": "This is the Azure Region in which the VM is running." - }, - "name": { - "type": "string", - "description": "This is the name of the VM." - }, - "offer": { - "type": "string", - "description": "This is the offer information for the VM image. This value is only present for images deployed from the Azure Image Gallery." - }, - "osType": { - "type": "string", - "description": "This value indicates the type of OS the VM is running, either Linux or Windows." - }, - "placementGroupId": { - "type": "string", - "description": "This is the placement group of your Virtual Machine Scale Set." - }, - "plan": { - "type": "object", - "description": "This contains the data about the plan.", - "$ref": "#/definitions/PlanProperties" - }, - "publicKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicKeysProperties" - }, - "description": "This is information about the SSH certificate" - }, - "platformFaultDomain": { - "type": "string", - "description": "This is the fault domain in which the VM." - }, - "platformUpdateDomain": { - "type": "string", - "description": "This is the update domain in which the VM." - }, - "provider": { - "type": "string", - "description": "This is the provider of the VM." - }, - "publisher": { - "type": "string", - "description": "This is the publisher of the VM image." - }, - "resourceGroupName": { - "type": "string", - "description": "This is the resource group for the VM." - }, - "sku": { - "type": "string", - "description": "This is the specific SKU for the VM image." - }, - "subscriptionId": { - "type": "string", - "description": "This is the Azure subscription for the VM." - }, - "tags": { - "type": "string", - "description": "This is the list of tags for your VM." - }, - "version": { - "type": "string", - "description": "This is the version of the VM image." - }, - "vmId": { - "type": "string", - "description": "This is the unique identifier for the VM." - }, - "vmScaleSetName": { - "type": "string", - "description": "This is the resource name of the VMSS." - }, - "vmSize": { - "type": "string", - "description": "This is the size of the VM." - }, - "zone": { - "type":"string", - "description":"This is the availability zone of the VM." - } - }, - "description": "Compute Metadata" - }, - "Network": { - "type": "object", - "properties": { - "interface": { - "type":"array", - "description": "This contains data about the network interface.", - "items": { - "type": "object", - "$ref": "#/definitions/NetworkInterface" - } - } - }, - "description": "Network Metadata" - }, - "NetworkInterface": { - "type": "object", - "description": "This contains data about the network interface.", - "properties": { - "ipv4": { - "type":"object", - "description": "This contains the IPv4 address.", - "properties": { - "ipAddress": { - "type":"array", - "description": "This is the IP address", - "items": { - "type": "object", - "description": "This contains the IPv4 properties.", - "$ref":"#/definitions/Ipv4Properties" - } - }, - "subnet": { - "type":"array", - "description": "This is the subnet", - "items": { - "type": "object", - "description": "This contains the subnet properties.", - "$ref": "#/definitions/SubnetProperties" - } - } - } - }, - "ipv6": { - "type":"object", - "description": "This contains the IPv6 address.", - "properties": { - "ipAddress": { - "type":"array", - "description": "This is the IP address", - "items": { - "type": "object", - "description": "This contains the IPv6 properties.", - "$ref":"#/definitions/Ipv6Properties" - } - } - } - }, - "macAddress": { - "type":"string", - "description":"This is the MAC address of the interface." - } + "/identity/info": { + "get": { + "tags": [ + "Get metadata information" + ], + "description": "Get information about AAD Metadata", + "operationId": "Identity_GetInfo", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/IdentityInfoResponse" } - }, - "PlanProperties": { - "type": "object", - "description": "This contains the data about the plan.", - "properties": { - "name": { - "type": "string", - "description": "This is the Plan ID." - }, - "publisher": { - "type": "string", - "description": "This is the publisher ID." - }, - "product": { - "type": "string", - "description": "This is the product of the image from the Marketplace." - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/IdentityErrorResponse" } + } }, - "PublicKeysProperties": { - "type": "object", - "description": "This contains the data about the public key.", - "properties": { - "path": { - "type": "string", - "description": "This specifies the full path on the VM where the SSH public key is stored." - }, - "keyData": { - "type": "string", - "description": "This is the SSH public key certificate used to authenticate with the VM." - } - } + "x-ms-examples": { + "Get Identity Info for the VM": { + "$ref": "./examples/GetIdentityInfo.json" + } + } + } + } + }, + "definitions": { + "Compute": { + "type": "object", + "properties": { + "azEnvironment": { + "type": "string", + "description": "This is the name of the environment in which the VM is running." }, - "Ipv4Properties": { - "type": "object", - "description": "This contains the IPv4 properties.", - "properties": { - "privateIpAddress": { - "type":"string", - "description":"This is the private IP address assigned to the interface." - }, - "publicIpAddress": { - "type":"string", - "description":"This is the public IP address assigned to the interface." - } - } + "customData": { + "type": "string", + "description": "This is the base64 encoded custom data for the running VM." }, - "Ipv6Properties": { - "type": "object", - "description": "This contains the IPv6 properties.", - "properties": { - "privateIpAddress": { - "type":"string", - "description":"This is the private IPv6 address assigned to the interface." - } - } + "location": { + "type": "string", + "description": "This is the Azure Region in which the VM is running." }, - "SubnetProperties": { - "type": "object", - "description": "This contains the properties of the subnet.", - "properties": { - "address": { - "type":"string", - "description":"This is the address range of the subnet." - }, - "prefix": { - "type":"string", - "description":"This is the prefix of the subnet." - } - } + "name": { + "type": "string", + "description": "This is the name of the VM." }, - "Instance": { - "type": "object", - "description": "This is the response from the Instance_GetMetadata operation.", - "properties": { - "compute": { - "$ref": "#/definitions/Compute", - "description": "Compute Metadata" - }, - "network": { - "$ref": "#/definitions/Network", - "description": "Network Metadata" - } - } + "offer": { + "type": "string", + "description": "This is the offer information for the VM image. This value is only present for images deployed from the Azure Image Gallery." }, - "AttestedData": { - "type": "object", - "description": "This is the response from the Attested_GetDocument operation.", - "properties": { - "signature": { - "type": "string", - "description": "This is the encoded string containing the VM ID, plan information, public key, timestamp, and nonce value." - }, - "encoding": { - "type": "string", - "description": "This is the encoding scheme of the signature." - } - } + "osType": { + "type": "string", + "description": "This value indicates the type of OS the VM is running, either Linux or Windows." }, - "ErrorResponse": { - "description": "This is the response from an operation in the case an error occurs.", - "type": "object", - "properties": { - "error": { - "description": "Error message indicating why the operation failed.", - "type": "string" - } - } + "placementGroupId": { + "type": "string", + "description": "This is the placement group of your Virtual Machine Scale Set." + }, + "plan": { + "type": "object", + "description": "This contains the data about the plan.", + "$ref": "#/definitions/PlanProperties" + }, + "publicKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicKeysProperties" + }, + "description": "This is information about the SSH certificate" + }, + "platformFaultDomain": { + "type": "string", + "description": "This is the fault domain in which the VM." + }, + "platformUpdateDomain": { + "type": "string", + "description": "This is the update domain in which the VM." + }, + "provider": { + "type": "string", + "description": "This is the provider of the VM." + }, + "publisher": { + "type": "string", + "description": "This is the publisher of the VM image." + }, + "resourceGroupName": { + "type": "string", + "description": "This is the resource group for the VM." + }, + "sku": { + "type": "string", + "description": "This is the specific SKU for the VM image." }, - "IdentityErrorResponse": { + "subscriptionId": { + "type": "string", + "description": "This is the Azure subscription for the VM." + }, + "tags": { + "type": "string", + "description": "This is the list of tags for your VM." + }, + "version": { + "type": "string", + "description": "This is the version of the VM image." + }, + "vmId": { + "type": "string", + "description": "This is the unique identifier for the VM." + }, + "vmScaleSetName": { + "type": "string", + "description": "This is the resource name of the VMSS." + }, + "vmSize": { + "type": "string", + "description": "This is the size of the VM." + }, + "zone": { + "type": "string", + "description": "This is the availability zone of the VM." + } + }, + "description": "Compute Metadata" + }, + "Network": { + "type": "object", + "properties": { + "interface": { + "type": "array", + "description": "This contains data about the network interface.", + "items": { "type": "object", - "description": "This is the response from an Identity operation in the case an error occurs.", - "properties": { - "error": { - "type": "string", - "description": "Error code", - "enum": [ - "invalid_request", - "unauthorized_client", - "access_denied", - "unsupported_response_type", - "invalid_scope", - "server_error", - "service_unavailable", - "bad_request", - "forbidden", - "not_found", - "method_not_allowed", - "too_many_requests" - ], - "x-ms-enum": { - "name": "Error", - "modelAsString": true - } - }, - "error_description": { - "type": "string", - "description": "Error message indicating why the operation failed." - } + "$ref": "#/definitions/NetworkInterface" + } + } + }, + "description": "Network Metadata" + }, + "NetworkInterface": { + "type": "object", + "description": "This contains data about the network interface.", + "properties": { + "ipv4": { + "type": "object", + "description": "This contains the IPv4 address.", + "properties": { + "ipAddress": { + "type": "array", + "description": "This is the IP address", + "items": { + "type": "object", + "description": "This contains the IPv4 properties.", + "$ref": "#/definitions/Ipv4Properties" + } + }, + "subnet": { + "type": "array", + "description": "This is the subnet", + "items": { + "type": "object", + "description": "This contains the subnet properties.", + "$ref": "#/definitions/SubnetProperties" + } } + } }, - "IdentityTokenResponse": { - "type": "object", - "description": "This is the response from the Identity_GetToken operation.", - "properties": { - "access_token": { - "type": "string", - "description": "This is the requested access token. The app can use this token to authenticate to the sink resource." - }, - "expires_in": { - "type": "string", - "description": "This is how long the access token is valid (in seconds)." - }, - "expires_on": { - "type": "string", - "description": "This is 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. This value is used to determine the lifetime of cached tokens." - }, - "ext_expires_in": { - "type": "string", - "description": "This indicates the extended lifetime of the token (in seconds)." - }, - "not_before": { - "type": "string", - "description": "This is the time when the access token becomes effective. The date is represented as the number of seconds from 1970-01-01T0:0:0Z UTC until the expiration time." - }, - "resource": { - "type": "string", - "description": "This is the app ID URI of the sink resource." - }, - "token_type": { - "type": "string", - "description": "This indicates the token type value." - }, - "client_id": { - "type": "string", - "description": "This is the client_id specified in the request, if any." - }, - "object_id": { - "type": "string", - "description": "This is the object_id specified in the request, if any." - }, - "msi_res_id": { - "type": "string", - "description": "This is the msi_res_id specified in the request, if any." - } + "ipv6": { + "type": "object", + "description": "This contains the IPv6 address.", + "properties": { + "ipAddress": { + "type": "array", + "description": "This is the IP address", + "items": { + "type": "object", + "description": "This contains the IPv6 properties.", + "$ref": "#/definitions/Ipv6Properties" + } } + } }, - "IdentityInfoResponse": { - "type": "object", - "description": "This is the response from the Identity_GetInfo operation.", - "properties": { - "tenantId": { - "type": "string", - "description": "This is the AAD tenantId of the identity of the caller." - } - } + "macAddress": { + "type": "string", + "description": "This is the MAC address of the interface." } + } }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "type": "string", - "enum": [ - "2018-10-01" - ], - "description": "This is the API version to use.", - "required": true, - "x-ms-enum": { - "name": "ApiVersion", - "modelAsString": true - } + "PlanProperties": { + "type": "object", + "description": "This contains the data about the plan.", + "properties": { + "name": { + "type": "string", + "description": "This is the Plan ID." }, - "MetadataParameter": { - "name": "Metadata", - "in": "header", - "type": "string", - "enum": [ - "true" - ], - "description": "This must be set to 'true'.", - "required": true, - "x-ms-parameter-location": "method" + "publisher": { + "type": "string", + "description": "This is the publisher ID." + }, + "product": { + "type": "string", + "description": "This is the product of the image from the Marketplace." + } + } + }, + "PublicKeysProperties": { + "type": "object", + "description": "This contains the data about the public key.", + "properties": { + "path": { + "type": "string", + "description": "This specifies the full path on the VM where the SSH public key is stored." + }, + "keyData": { + "type": "string", + "description": "This is the SSH public key certificate used to authenticate with the VM." + } + } + }, + "Ipv4Properties": { + "type": "object", + "description": "This contains the IPv4 properties.", + "properties": { + "privateIpAddress": { + "type": "string", + "description": "This is the private IP address assigned to the interface." + }, + "publicIpAddress": { + "type": "string", + "description": "This is the public IP address assigned to the interface." + } + } + }, + "Ipv6Properties": { + "type": "object", + "description": "This contains the IPv6 properties.", + "properties": { + "privateIpAddress": { + "type": "string", + "description": "This is the private IPv6 address assigned to the interface." + } + } + }, + "SubnetProperties": { + "type": "object", + "description": "This contains the properties of the subnet.", + "properties": { + "address": { + "type": "string", + "description": "This is the address range of the subnet." + }, + "prefix": { + "type": "string", + "description": "This is the prefix of the subnet." + } + } + }, + "Instance": { + "type": "object", + "description": "This is the response from the Instance_GetMetadata operation.", + "properties": { + "compute": { + "$ref": "#/definitions/Compute", + "description": "Compute Metadata" + }, + "network": { + "$ref": "#/definitions/Network", + "description": "Network Metadata" + } + } + }, + "AttestedData": { + "type": "object", + "description": "This is the response from the Attested_GetDocument operation.", + "properties": { + "signature": { + "type": "string", + "description": "This is the encoded string containing the VM ID, plan information, public key, timestamp, and nonce value." + }, + "encoding": { + "type": "string", + "description": "This is the encoding scheme of the signature." + } + } + }, + "ErrorResponse": { + "description": "This is the response from an operation in the case an error occurs.", + "type": "object", + "properties": { + "error": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + }, + "IdentityErrorResponse": { + "type": "object", + "description": "This is the response from an Identity operation in the case an error occurs.", + "properties": { + "error": { + "type": "string", + "description": "Error code", + "enum": [ + "invalid_request", + "unauthorized_client", + "access_denied", + "unsupported_response_type", + "invalid_scope", + "server_error", + "service_unavailable", + "bad_request", + "forbidden", + "not_found", + "method_not_allowed", + "too_many_requests" + ], + "x-ms-enum": { + "name": "Error", + "modelAsString": true + } + }, + "error_description": { + "type": "string", + "description": "Error message indicating why the operation failed." } + } + }, + "IdentityTokenResponse": { + "type": "object", + "description": "This is the response from the Identity_GetToken operation.", + "properties": { + "access_token": { + "type": "string", + "description": "This is the requested access token. The app can use this token to authenticate to the sink resource." + }, + "expires_in": { + "type": "string", + "description": "This is how long the access token is valid (in seconds)." + }, + "expires_on": { + "type": "string", + "description": "This is 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. This value is used to determine the lifetime of cached tokens." + }, + "ext_expires_in": { + "type": "string", + "description": "This indicates the extended lifetime of the token (in seconds)." + }, + "not_before": { + "type": "string", + "description": "This is the time when the access token becomes effective. The date is represented as the number of seconds from 1970-01-01T0:0:0Z UTC until the expiration time." + }, + "resource": { + "type": "string", + "description": "This is the app ID URI of the sink resource." + }, + "token_type": { + "type": "string", + "description": "This indicates the token type value." + }, + "client_id": { + "type": "string", + "description": "This is the client_id specified in the request, if any." + }, + "object_id": { + "type": "string", + "description": "This is the object_id specified in the request, if any." + }, + "msi_res_id": { + "type": "string", + "description": "This is the msi_res_id specified in the request, if any." + } + } + }, + "IdentityInfoResponse": { + "type": "object", + "description": "This is the response from the Identity_GetInfo operation.", + "properties": { + "tenantId": { + "type": "string", + "description": "This is the AAD tenantId of the identity of the caller." + } + } + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "type": "string", + "enum": [ + "2018-10-01" + ], + "description": "This is the API version to use.", + "required": true, + "x-ms-enum": { + "name": "ApiVersion", + "modelAsString": true + } + }, + "MetadataParameter": { + "name": "Metadata", + "in": "header", + "type": "string", + "enum": [ + "true" + ], + "description": "This must be set to 'true'.", + "required": true, + "x-ms-parameter-location": "method" } + } } diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetAttestedData.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetAttestedData.json index 2e082d30492b..36e3818f7480 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetAttestedData.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetAttestedData.json @@ -1,15 +1,15 @@ { - "parameters": { - "api-version": "2019-03-11", - "nonce": "abcde12345", - "Metadata": "true" - }, - "responses": { - "200": { - "body": { - "encoding": "pkcs7", - "signature": "MIID2gYJKoZIhvcNAQcCoIIDyzCCA8cCAQExDzANBgkqhkiG9w0BAQsFADCBggYJKoZIhvcNAQcBoHUEc3sibm9uY2UiOiIxMTExMTExMTExIiwicGxhbiI6eyJuYW1lIjoiIiwicHJvZHVjdCI6IiIsInB1Ymxpc2hlciI6IiJ9LCJ2bUlkIjoiMDJhYWI4YTQtNzRlZi00NzZlLTgxODItZjZkMmJhNDE2NmE2In2gggI/MIICOzCCAaSgAwIBAgIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQQFADArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbTAeFw0xODExMDgxODUzMDRaFw0xODEyMDgxODUzMDNaMCsxKTAnBgNVBAMTIHRlc3RzdWJkb21haW4ubWV0YWRhdGEuYXp1cmUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEi0FVslYnUX+MneC7ERMU4ZM88z4J80r7RPgvzxCPNhXUQlWm3cmVRZMD8kKMv7brkvEsATP7Ak60/I/XEtOga4LGCvMaQa8I/MW8IhSyp2Vj015glAiV8TeUI5DuOIOS96lQvM+G7bt23swkIwVjm1u1ViTZiKKytwpY/EGqzQIDAQABo2AwXjBcBgNVHQEEVTBTgBAt3MRgJmEoUMiPy7k06cLfoS0wKzEpMCcGA1UEAxMgdGVzdHN1YmRvbWFpbi5tZXRhZGF0YS5henVyZS5jb22CEEFrBY1zd+aASShVyN0KzN0wDQYJKoZIhvcNAQEEBQADgYEAd87qiZnRlGIFQ5IEcL/A7ru23WSQAOBsNPt70Fg1GtaEHcYshKUJFhGwXOgZ11cY5wRfrSvEKuzvhAeIZwkvzkBjC04g8sRrjN5leLY5CsKzQhjN52TUMsHhqTM58tfAnICeTddQwn6LOgfqtYH5WO+F/VbFCwPstYUqjmQEYAoxgegwgeUCAQEwPzArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbQIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQsFADANBgkqhkiG9w0BAQEFAASBgCbkRKmQ1MdWZPVOrX7ZBKHQUWPFrQQNdjk3KB67GkY0W0Taxut4K7D2PmiflVEwxB92pTbaZZr/dldu1k1ab1YamHcVYdgZgxIkoOWohGR0ym8oL9JHjFMEqHUbEPtDwE8X+djtDd8TVdb6LYe77IXmz/VaX4whuejlSvQXjaL" - } - } + "parameters": { + "api-version": "2019-03-11", + "nonce": "abcde12345", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "encoding": "pkcs7", + "signature": "MIID2gYJKoZIhvcNAQcCoIIDyzCCA8cCAQExDzANBgkqhkiG9w0BAQsFADCBggYJKoZIhvcNAQcBoHUEc3sibm9uY2UiOiIxMTExMTExMTExIiwicGxhbiI6eyJuYW1lIjoiIiwicHJvZHVjdCI6IiIsInB1Ymxpc2hlciI6IiJ9LCJ2bUlkIjoiMDJhYWI4YTQtNzRlZi00NzZlLTgxODItZjZkMmJhNDE2NmE2In2gggI/MIICOzCCAaSgAwIBAgIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQQFADArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbTAeFw0xODExMDgxODUzMDRaFw0xODEyMDgxODUzMDNaMCsxKTAnBgNVBAMTIHRlc3RzdWJkb21haW4ubWV0YWRhdGEuYXp1cmUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEi0FVslYnUX+MneC7ERMU4ZM88z4J80r7RPgvzxCPNhXUQlWm3cmVRZMD8kKMv7brkvEsATP7Ak60/I/XEtOga4LGCvMaQa8I/MW8IhSyp2Vj015glAiV8TeUI5DuOIOS96lQvM+G7bt23swkIwVjm1u1ViTZiKKytwpY/EGqzQIDAQABo2AwXjBcBgNVHQEEVTBTgBAt3MRgJmEoUMiPy7k06cLfoS0wKzEpMCcGA1UEAxMgdGVzdHN1YmRvbWFpbi5tZXRhZGF0YS5henVyZS5jb22CEEFrBY1zd+aASShVyN0KzN0wDQYJKoZIhvcNAQEEBQADgYEAd87qiZnRlGIFQ5IEcL/A7ru23WSQAOBsNPt70Fg1GtaEHcYshKUJFhGwXOgZ11cY5wRfrSvEKuzvhAeIZwkvzkBjC04g8sRrjN5leLY5CsKzQhjN52TUMsHhqTM58tfAnICeTddQwn6LOgfqtYH5WO+F/VbFCwPstYUqjmQEYAoxgegwgeUCAQEwPzArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbQIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQsFADANBgkqhkiG9w0BAQEFAASBgCbkRKmQ1MdWZPVOrX7ZBKHQUWPFrQQNdjk3KB67GkY0W0Taxut4K7D2PmiflVEwxB92pTbaZZr/dldu1k1ab1YamHcVYdgZgxIkoOWohGR0ym8oL9JHjFMEqHUbEPtDwE8X+djtDd8TVdb6LYe77IXmz/VaX4whuejlSvQXjaL" + } } -} \ No newline at end of file + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetIdentityInfo.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetIdentityInfo.json index b56684ee5d5a..048e49b1e32d 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetIdentityInfo.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetIdentityInfo.json @@ -1,13 +1,13 @@ { - "parameters": { - "api-version": "2019-03-11", - "Metadata": "true" - }, - "responses": { - "200": { - "body": { - "tenantId": "abd8daee-d393-4239-9377-883adda3d40f" - } - } + "parameters": { + "api-version": "2019-03-11", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "tenantId": "abd8daee-d393-4239-9377-883adda3d40f" + } } -} \ No newline at end of file + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetIdentityToken.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetIdentityToken.json index ec9675f9af06..dbf77249f7f7 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetIdentityToken.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetIdentityToken.json @@ -1,20 +1,20 @@ { - "parameters": { - "api-version": "2019-03-11", - "Metadata": "true", - "resource": "https://vault.azure.net" - }, - "responses": { - "200": { - "body": { - "access_token": "dummytoken", - "client_id": "be5947ed-3560-4afe-9504-59967a63f810", - "expires_in": "3599", - "expires_on": "1541705014", - "ext_expires_in": "262800", - "not_before": "1508961830", - "resource": "https://va" - } - } + "parameters": { + "api-version": "2019-03-11", + "Metadata": "true", + "resource": "https://vault.azure.net" + }, + "responses": { + "200": { + "body": { + "access_token": "dummytoken", + "client_id": "be5947ed-3560-4afe-9504-59967a63f810", + "expires_in": "3599", + "expires_on": "1541705014", + "ext_expires_in": "262800", + "not_before": "1508961830", + "resource": "https://va" + } } -} \ No newline at end of file + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetInstanceMetadata.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetInstanceMetadata.json index 0c71578aea36..38759b72e88f 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetInstanceMetadata.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/examples/GetInstanceMetadata.json @@ -1,49 +1,49 @@ { - "parameters": { - "api-version": "2019-03-11", - "Metadata": "true" - }, - "responses": { - "200": { - "body": { - "compute": { - "azEnvironment": "AzurePublicCloud", - "customData": "TXkgY3VzdG9tIGRhdGEu", - "location": "westus", - "name": "examplevmname", - "offer": "Windows", - "osType": "linux", - "placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a", - "plan": { - "name": "planName", - "product": "planProduct", - "publisher": "planPublisher" - }, - "platformFaultDomain": "36", - "platformUpdateDomain": "42", - "publicKeys": [ - { - "keyData": "ssh-rsa 0", - "path": "/home/user/.ssh/authorized_keys0" - }, - { - "keyData": "ssh-rsa 1", - "path": "/home/user/.ssh/authorized_keys1" - } - ], - "publisher": "RDFE-Test-Microsoft-Windows-Server-Group", - "resourceGroupName": "macikgo-test-may-23", - "resourceId": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname", - "sku": "Windows-Server-2012-R2-Datacenter", - "subscriptionId": "8d10da13-8125-4ba9-a717-bf7490507b3d", - "tags": "baz:bash;foo:bar", - "version": "15.05.22", - "vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6", - "vmScaleSetName": "crpteste9vflji9", - "vmSize": "Standard_A3", - "zone": "" - } + "parameters": { + "api-version": "2019-03-11", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "compute": { + "azEnvironment": "AzurePublicCloud", + "customData": "TXkgY3VzdG9tIGRhdGEu", + "location": "westus", + "name": "examplevmname", + "offer": "Windows", + "osType": "linux", + "placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a", + "plan": { + "name": "planName", + "product": "planProduct", + "publisher": "planPublisher" + }, + "platformFaultDomain": "36", + "platformUpdateDomain": "42", + "publicKeys": [ + { + "keyData": "ssh-rsa 0", + "path": "/home/user/.ssh/authorized_keys0" + }, + { + "keyData": "ssh-rsa 1", + "path": "/home/user/.ssh/authorized_keys1" } + ], + "publisher": "RDFE-Test-Microsoft-Windows-Server-Group", + "resourceGroupName": "macikgo-test-may-23", + "resourceId": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname", + "sku": "Windows-Server-2012-R2-Datacenter", + "subscriptionId": "8d10da13-8125-4ba9-a717-bf7490507b3d", + "tags": "baz:bash;foo:bar", + "version": "15.05.22", + "vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6", + "vmScaleSetName": "crpteste9vflji9", + "vmSize": "Standard_A3", + "zone": "" } + } } + } } diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/imds.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/imds.json index 5a3793bc1f8f..3373177fe43a 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/imds.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-03-11/imds.json @@ -1,629 +1,629 @@ -{ - "swagger": "2.0", - "info": { - "title": "InstanceMetadataClient", - "description": "The Azure Instance Metadata Client", - "version": "2019-03-11" - }, - "host": "169.254.169.254", - "basePath": "/metadata", - "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" +{ + "swagger": "2.0", + "info": { + "title": "InstanceMetadataClient", + "description": "The Azure Instance Metadata Client", + "version": "2019-03-11" + }, + "host": "169.254.169.254", + "basePath": "/metadata", + "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": { + "/instance": { + "get": { + "operationId": "Instances_GetMetadata", + "description": "Get Instance Metadata for the Virtual Machine.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Instance" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Instance Metadata for the VM": { + "$ref": "./examples/GetInstanceMetadata.json" + } } + } }, - "paths": { - "/instance": { - "get": { - "operationId": "Instances_GetMetadata", - "description": "Get Instance Metadata for the Virtual Machine.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/MetadataParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Instance" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Instance Metadata for the VM": { - "$ref": "./examples/GetInstanceMetadata.json" - } - } + "/attested/document": { + "get": { + "operationId": "Attested_GetDocument", + "description": "Get Attested Data for the Virtual Machine.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "nonce", + "in": "query", + "required": false, + "type": "string", + "description": "This is a string of up to 32 random alphanumeric characters." + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AttestedData" } - }, - "/attested/document": { - "get": { - "operationId": "Attested_GetDocument", - "description": "Get Attested Data for the Virtual Machine.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "nonce", - "in": "query", - "required": false, - "type": "string", - "description": "This is a string of up to 32 random alphanumeric characters." - }, - { - "$ref": "#/parameters/MetadataParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AttestedData" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Attested Data for the VM": { - "$ref": "./examples/GetAttestedData.json" - } - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } }, - "/identity/oauth2/token": { - "get": { - "tags": [ - "Get token" - ], - "description": "Get a Token from Azure AD", - "operationId": "Identity_GetToken", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/MetadataParameter" - }, - { - "name": "resource", - "in": "query", - "type": "string", - "description": "This is the urlencoded identifier URI of the sink resource for the requested Azure AD token. The resulting token contains the corresponding aud for this resource.", - "required": true - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "client_id", - "in": "query", - "type": "string", - "description": "This identifies, by Azure AD client id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with object_id and msi_res_id.", - "required": false - }, - { - "name": "object_id", - "in": "query", - "type": "string", - "description": "This identifies, by Azure AD object id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and msi_res_id.", - "required": false - }, - { - "name": "msi_res_id", - "in": "query", - "type": "string", - "description": "This identifies, by urlencoded ARM resource id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and object_id.", - "required": false - }, - { - "name": "authority", - "in": "query", - "type": "string", - "description": "This indicates the authority to request AAD tokens from. Defaults to the known authority of the identity to be used.", - "required": false - }, - { - "name": "bypass_cache", - "in": "query", - "type": "string", - "enum": [ - "true" - ], - "description": "If provided, the value must be 'true'. This indicates to the server that the token must be retrieved from Azure AD and cannot be retrieved from an internal cache.", - "required": false, - "x-ms-enum": { - "name": "BypassCache", - "modelAsString": true - } - } - ], - "responses": { - "200": { - "description": "Successful operation", - "schema": { - "$ref": "#/definitions/IdentityTokenResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/IdentityErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Identity Token for the VM": { - "$ref": "./examples/GetIdentityToken.json" - } - } + "x-ms-examples": { + "Get Attested Data for the VM": { + "$ref": "./examples/GetAttestedData.json" + } + } + } + }, + "/identity/oauth2/token": { + "get": { + "tags": [ + "Get token" + ], + "description": "Get a Token from Azure AD", + "operationId": "Identity_GetToken", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "name": "resource", + "in": "query", + "type": "string", + "description": "This is the urlencoded identifier URI of the sink resource for the requested Azure AD token. The resulting token contains the corresponding aud for this resource.", + "required": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "client_id", + "in": "query", + "type": "string", + "description": "This identifies, by Azure AD client id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with object_id and msi_res_id.", + "required": false + }, + { + "name": "object_id", + "in": "query", + "type": "string", + "description": "This identifies, by Azure AD object id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and msi_res_id.", + "required": false + }, + { + "name": "msi_res_id", + "in": "query", + "type": "string", + "description": "This identifies, by urlencoded ARM resource id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and object_id.", + "required": false + }, + { + "name": "authority", + "in": "query", + "type": "string", + "description": "This indicates the authority to request AAD tokens from. Defaults to the known authority of the identity to be used.", + "required": false + }, + { + "name": "bypass_cache", + "in": "query", + "type": "string", + "enum": [ + "true" + ], + "description": "If provided, the value must be 'true'. This indicates to the server that the token must be retrieved from Azure AD and cannot be retrieved from an internal cache.", + "required": false, + "x-ms-enum": { + "name": "BypassCache", + "modelAsString": true } - }, - "/identity/info": { - "get": { - "tags": [ - "Get metadata information" - ], - "description": "Get information about AAD Metadata", - "operationId": "Identity_GetInfo", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/MetadataParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successful operation", - "schema": { - "$ref": "#/definitions/IdentityInfoResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/IdentityErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Identity Info for the VM": { - "$ref": "./examples/GetIdentityInfo.json" - } - } + } + ], + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/IdentityTokenResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/IdentityErrorResponse" } + } + }, + "x-ms-examples": { + "Get Identity Token for the VM": { + "$ref": "./examples/GetIdentityToken.json" + } } + } }, - "definitions": { - "Compute": { - "type": "object", - "properties": { - "azEnvironment": { - "type": "string", - "description": "This is the name of the environment in which the VM is running." - }, - "customData": { - "type": "string", - "description": "This is the base64 encoded custom data for the running VM." - }, - "location": { - "type": "string", - "description": "This is the Azure Region in which the VM is running." - }, - "name": { - "type": "string", - "description": "This is the name of the VM." - }, - "offer": { - "type": "string", - "description": "This is the offer information for the VM image. This value is only present for images deployed from the Azure Image Gallery." - }, - "osType": { - "type": "string", - "description": "This value indicates the type of OS the VM is running, either Linux or Windows." - }, - "placementGroupId": { - "type": "string", - "description": "This is the placement group of your Virtual Machine Scale Set." - }, - "plan": { - "type": "object", - "description": "This contains the data about the plan.", - "$ref": "#/definitions/PlanProperties" - }, - "publicKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicKeysProperties" - }, - "description": "This is information about the SSH certificate" - }, - "platformFaultDomain": { - "type": "string", - "description": "This is the fault domain in which the VM." - }, - "platformUpdateDomain": { - "type": "string", - "description": "This is the update domain in which the VM." - }, - "provider": { - "type": "string", - "description": "This is the provider of the VM." - }, - "publisher": { - "type": "string", - "description": "This is the publisher of the VM image." - }, - "resourceGroupName": { - "type": "string", - "description": "This is the resource group for the VM." - }, - "resourceId": { - "type": "string", - "description": "This is the fully qualified ID for the VM." - }, - "sku": { - "type": "string", - "description": "This is the specific SKU for the VM image." - }, - "subscriptionId": { - "type": "string", - "description": "This is the Azure subscription for the VM." - }, - "tags": { - "type": "string", - "description": "This is the list of tags for your VM." - }, - "version": { - "type": "string", - "description": "This is the version of the VM image." - }, - "vmId": { - "type": "string", - "description": "This is the unique identifier for the VM." - }, - "vmScaleSetName": { - "type": "string", - "description": "This is the resource name of the VMSS." - }, - "vmSize": { - "type": "string", - "description": "This is the size of the VM." - }, - "zone": { - "type":"string", - "description":"This is the availability zone of the VM." - } - }, - "description": "Compute Metadata" - }, - "Network": { - "type": "object", - "properties": { - "interface": { - "type":"array", - "description": "This contains data about the network interface.", - "items": { - "type": "object", - "$ref": "#/definitions/NetworkInterface" - } - } - }, - "description": "Network Metadata" - }, - "NetworkInterface": { - "type": "object", - "description": "This contains data about the network interface.", - "properties": { - "ipv4": { - "type":"object", - "description": "This contains the IPv4 address.", - "properties": { - "ipAddress": { - "type":"array", - "description": "This is the IP address", - "items": { - "type": "object", - "description": "This contains the IPv4 properties.", - "$ref":"#/definitions/Ipv4Properties" - } - }, - "subnet": { - "type":"array", - "description": "This is the subnet", - "items": { - "type": "object", - "description": "This contains the subnet properties.", - "$ref": "#/definitions/SubnetProperties" - } - } - } - }, - "ipv6": { - "type":"object", - "description": "This contains the IPv6 address.", - "properties": { - "ipAddress": { - "type":"array", - "description": "This is the IP address", - "items": { - "type": "object", - "description": "This contains the IPv6 properties.", - "$ref":"#/definitions/Ipv6Properties" - } - } - } - }, - "macAddress": { - "type":"string", - "description":"This is the MAC address of the interface." - } + "/identity/info": { + "get": { + "tags": [ + "Get metadata information" + ], + "description": "Get information about AAD Metadata", + "operationId": "Identity_GetInfo", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/IdentityInfoResponse" } - }, - "PlanProperties": { - "type": "object", - "description": "This contains the data about the plan.", - "properties": { - "name": { - "type": "string", - "description": "This is the Plan ID." - }, - "publisher": { - "type": "string", - "description": "This is the publisher ID." - }, - "product": { - "type": "string", - "description": "This is the product of the image from the Marketplace." - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/IdentityErrorResponse" } + } }, - "PublicKeysProperties": { - "type": "object", - "description": "This contains the data about the public key.", - "properties": { - "path": { - "type": "string", - "description": "This specifies the full path on the VM where the SSH public key is stored." - }, - "keyData": { - "type": "string", - "description": "This is the SSH public key certificate used to authenticate with the VM." - } - } + "x-ms-examples": { + "Get Identity Info for the VM": { + "$ref": "./examples/GetIdentityInfo.json" + } + } + } + } + }, + "definitions": { + "Compute": { + "type": "object", + "properties": { + "azEnvironment": { + "type": "string", + "description": "This is the name of the environment in which the VM is running." }, - "Ipv4Properties": { - "type": "object", - "description": "This contains the IPv4 properties.", - "properties": { - "privateIpAddress": { - "type":"string", - "description":"This is the private IP address assigned to the interface." - }, - "publicIpAddress": { - "type":"string", - "description":"This is the public IP address assigned to the interface." - } - } + "customData": { + "type": "string", + "description": "This is the base64 encoded custom data for the running VM." }, - "Ipv6Properties": { - "type": "object", - "description": "This contains the IPv6 properties.", - "properties": { - "privateIpAddress": { - "type":"string", - "description":"This is the private IPv6 address assigned to the interface." - } - } + "location": { + "type": "string", + "description": "This is the Azure Region in which the VM is running." }, - "SubnetProperties": { - "type": "object", - "description": "This contains the properties of the subnet.", - "properties": { - "address": { - "type":"string", - "description":"This is the address range of the subnet." - }, - "prefix": { - "type":"string", - "description":"This is the prefix of the subnet." - } - } + "name": { + "type": "string", + "description": "This is the name of the VM." }, - "Instance": { - "type": "object", - "description": "This is the response from the Instance_GetMetadata operation.", - "properties": { - "compute": { - "$ref": "#/definitions/Compute", - "description": "Compute Metadata" - }, - "network": { - "$ref": "#/definitions/Network", - "description": "Network Metadata" - } - } + "offer": { + "type": "string", + "description": "This is the offer information for the VM image. This value is only present for images deployed from the Azure Image Gallery." }, - "AttestedData": { - "type": "object", - "description": "This is the response from the Attested_GetDocument operation.", - "properties": { - "signature": { - "type": "string", - "description": "This is the encoded string containing the VM ID, plan information, public key, timestamp, and nonce value." - }, - "encoding": { - "type": "string", - "description": "This is the encoding scheme of the signature." - } - } + "osType": { + "type": "string", + "description": "This value indicates the type of OS the VM is running, either Linux or Windows." }, - "ErrorResponse": { - "description": "This is the response from an operation in the case an error occurs.", - "type": "object", - "properties": { - "error": { - "description": "Error message indicating why the operation failed.", - "type": "string" - } - } + "placementGroupId": { + "type": "string", + "description": "This is the placement group of your Virtual Machine Scale Set." + }, + "plan": { + "type": "object", + "description": "This contains the data about the plan.", + "$ref": "#/definitions/PlanProperties" + }, + "publicKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicKeysProperties" + }, + "description": "This is information about the SSH certificate" + }, + "platformFaultDomain": { + "type": "string", + "description": "This is the fault domain in which the VM." + }, + "platformUpdateDomain": { + "type": "string", + "description": "This is the update domain in which the VM." + }, + "provider": { + "type": "string", + "description": "This is the provider of the VM." + }, + "publisher": { + "type": "string", + "description": "This is the publisher of the VM image." + }, + "resourceGroupName": { + "type": "string", + "description": "This is the resource group for the VM." + }, + "resourceId": { + "type": "string", + "description": "This is the fully qualified ID for the VM." + }, + "sku": { + "type": "string", + "description": "This is the specific SKU for the VM image." }, - "IdentityErrorResponse": { + "subscriptionId": { + "type": "string", + "description": "This is the Azure subscription for the VM." + }, + "tags": { + "type": "string", + "description": "This is the list of tags for your VM." + }, + "version": { + "type": "string", + "description": "This is the version of the VM image." + }, + "vmId": { + "type": "string", + "description": "This is the unique identifier for the VM." + }, + "vmScaleSetName": { + "type": "string", + "description": "This is the resource name of the VMSS." + }, + "vmSize": { + "type": "string", + "description": "This is the size of the VM." + }, + "zone": { + "type": "string", + "description": "This is the availability zone of the VM." + } + }, + "description": "Compute Metadata" + }, + "Network": { + "type": "object", + "properties": { + "interface": { + "type": "array", + "description": "This contains data about the network interface.", + "items": { "type": "object", - "description": "This is the response from an Identity operation in the case an error occurs.", - "properties": { - "error": { - "type": "string", - "description": "Error code", - "enum": [ - "invalid_request", - "unauthorized_client", - "access_denied", - "unsupported_response_type", - "invalid_scope", - "server_error", - "service_unavailable", - "bad_request", - "forbidden", - "not_found", - "method_not_allowed", - "too_many_requests" - ], - "x-ms-enum": { - "name": "Error", - "modelAsString": true - } - }, - "error_description": { - "type": "string", - "description": "Error message indicating why the operation failed." - } + "$ref": "#/definitions/NetworkInterface" + } + } + }, + "description": "Network Metadata" + }, + "NetworkInterface": { + "type": "object", + "description": "This contains data about the network interface.", + "properties": { + "ipv4": { + "type": "object", + "description": "This contains the IPv4 address.", + "properties": { + "ipAddress": { + "type": "array", + "description": "This is the IP address", + "items": { + "type": "object", + "description": "This contains the IPv4 properties.", + "$ref": "#/definitions/Ipv4Properties" + } + }, + "subnet": { + "type": "array", + "description": "This is the subnet", + "items": { + "type": "object", + "description": "This contains the subnet properties.", + "$ref": "#/definitions/SubnetProperties" + } } + } }, - "IdentityTokenResponse": { - "type": "object", - "description": "This is the response from the Identity_GetToken operation.", - "properties": { - "access_token": { - "type": "string", - "description": "This is the requested access token. The app can use this token to authenticate to the sink resource." - }, - "expires_in": { - "type": "string", - "description": "This is how long the access token is valid (in seconds)." - }, - "expires_on": { - "type": "string", - "description": "This is 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. This value is used to determine the lifetime of cached tokens." - }, - "ext_expires_in": { - "type": "string", - "description": "This indicates the extended lifetime of the token (in seconds)." - }, - "not_before": { - "type": "string", - "description": "This is the time when the access token becomes effective. The date is represented as the number of seconds from 1970-01-01T0:0:0Z UTC until the expiration time." - }, - "resource": { - "type": "string", - "description": "This is the app ID URI of the sink resource." - }, - "token_type": { - "type": "string", - "description": "This indicates the token type value." - }, - "client_id": { - "type": "string", - "description": "This is the client_id specified in the request, if any." - }, - "object_id": { - "type": "string", - "description": "This is the object_id specified in the request, if any." - }, - "msi_res_id": { - "type": "string", - "description": "This is the msi_res_id specified in the request, if any." - } + "ipv6": { + "type": "object", + "description": "This contains the IPv6 address.", + "properties": { + "ipAddress": { + "type": "array", + "description": "This is the IP address", + "items": { + "type": "object", + "description": "This contains the IPv6 properties.", + "$ref": "#/definitions/Ipv6Properties" + } } + } }, - "IdentityInfoResponse": { - "type": "object", - "description": "This is the response from the Identity_GetInfo operation.", - "properties": { - "tenantId": { - "type": "string", - "description": "This is the AAD tenantId of the identity of the caller." - } - } + "macAddress": { + "type": "string", + "description": "This is the MAC address of the interface." } + } }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "type": "string", - "enum": [ - "2018-10-01" - ], - "description": "This is the API version to use.", - "required": true, - "x-ms-enum": { - "name": "ApiVersion", - "modelAsString": true - } + "PlanProperties": { + "type": "object", + "description": "This contains the data about the plan.", + "properties": { + "name": { + "type": "string", + "description": "This is the Plan ID." }, - "MetadataParameter": { - "name": "Metadata", - "in": "header", - "type": "string", - "enum": [ - "true" - ], - "description": "This must be set to 'true'.", - "required": true, - "x-ms-parameter-location": "method" + "publisher": { + "type": "string", + "description": "This is the publisher ID." + }, + "product": { + "type": "string", + "description": "This is the product of the image from the Marketplace." + } + } + }, + "PublicKeysProperties": { + "type": "object", + "description": "This contains the data about the public key.", + "properties": { + "path": { + "type": "string", + "description": "This specifies the full path on the VM where the SSH public key is stored." + }, + "keyData": { + "type": "string", + "description": "This is the SSH public key certificate used to authenticate with the VM." + } + } + }, + "Ipv4Properties": { + "type": "object", + "description": "This contains the IPv4 properties.", + "properties": { + "privateIpAddress": { + "type": "string", + "description": "This is the private IP address assigned to the interface." + }, + "publicIpAddress": { + "type": "string", + "description": "This is the public IP address assigned to the interface." + } + } + }, + "Ipv6Properties": { + "type": "object", + "description": "This contains the IPv6 properties.", + "properties": { + "privateIpAddress": { + "type": "string", + "description": "This is the private IPv6 address assigned to the interface." + } + } + }, + "SubnetProperties": { + "type": "object", + "description": "This contains the properties of the subnet.", + "properties": { + "address": { + "type": "string", + "description": "This is the address range of the subnet." + }, + "prefix": { + "type": "string", + "description": "This is the prefix of the subnet." + } + } + }, + "Instance": { + "type": "object", + "description": "This is the response from the Instance_GetMetadata operation.", + "properties": { + "compute": { + "$ref": "#/definitions/Compute", + "description": "Compute Metadata" + }, + "network": { + "$ref": "#/definitions/Network", + "description": "Network Metadata" + } + } + }, + "AttestedData": { + "type": "object", + "description": "This is the response from the Attested_GetDocument operation.", + "properties": { + "signature": { + "type": "string", + "description": "This is the encoded string containing the VM ID, plan information, public key, timestamp, and nonce value." + }, + "encoding": { + "type": "string", + "description": "This is the encoding scheme of the signature." + } + } + }, + "ErrorResponse": { + "description": "This is the response from an operation in the case an error occurs.", + "type": "object", + "properties": { + "error": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + }, + "IdentityErrorResponse": { + "type": "object", + "description": "This is the response from an Identity operation in the case an error occurs.", + "properties": { + "error": { + "type": "string", + "description": "Error code", + "enum": [ + "invalid_request", + "unauthorized_client", + "access_denied", + "unsupported_response_type", + "invalid_scope", + "server_error", + "service_unavailable", + "bad_request", + "forbidden", + "not_found", + "method_not_allowed", + "too_many_requests" + ], + "x-ms-enum": { + "name": "Error", + "modelAsString": true + } + }, + "error_description": { + "type": "string", + "description": "Error message indicating why the operation failed." } + } + }, + "IdentityTokenResponse": { + "type": "object", + "description": "This is the response from the Identity_GetToken operation.", + "properties": { + "access_token": { + "type": "string", + "description": "This is the requested access token. The app can use this token to authenticate to the sink resource." + }, + "expires_in": { + "type": "string", + "description": "This is how long the access token is valid (in seconds)." + }, + "expires_on": { + "type": "string", + "description": "This is 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. This value is used to determine the lifetime of cached tokens." + }, + "ext_expires_in": { + "type": "string", + "description": "This indicates the extended lifetime of the token (in seconds)." + }, + "not_before": { + "type": "string", + "description": "This is the time when the access token becomes effective. The date is represented as the number of seconds from 1970-01-01T0:0:0Z UTC until the expiration time." + }, + "resource": { + "type": "string", + "description": "This is the app ID URI of the sink resource." + }, + "token_type": { + "type": "string", + "description": "This indicates the token type value." + }, + "client_id": { + "type": "string", + "description": "This is the client_id specified in the request, if any." + }, + "object_id": { + "type": "string", + "description": "This is the object_id specified in the request, if any." + }, + "msi_res_id": { + "type": "string", + "description": "This is the msi_res_id specified in the request, if any." + } + } + }, + "IdentityInfoResponse": { + "type": "object", + "description": "This is the response from the Identity_GetInfo operation.", + "properties": { + "tenantId": { + "type": "string", + "description": "This is the AAD tenantId of the identity of the caller." + } + } + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "type": "string", + "enum": [ + "2018-10-01" + ], + "description": "This is the API version to use.", + "required": true, + "x-ms-enum": { + "name": "ApiVersion", + "modelAsString": true + } + }, + "MetadataParameter": { + "name": "Metadata", + "in": "header", + "type": "string", + "enum": [ + "true" + ], + "description": "This must be set to 'true'.", + "required": true, + "x-ms-parameter-location": "method" } + } } diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/examples/GetAttestedData.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/examples/GetAttestedData.json new file mode 100644 index 000000000000..c1848fafe1d7 --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/examples/GetAttestedData.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2019-04-30", + "nonce": "abcde12345", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "encoding": "pkcs7", + "signature": "MIID2gYJKoZIhvcNAQcCoIIDyzCCA8cCAQExDzANBgkqhkiG9w0BAQsFADCBggYJKoZIhvcNAQcBoHUEc3sibm9uY2UiOiIxMTExMTExMTExIiwicGxhbiI6eyJuYW1lIjoiIiwicHJvZHVjdCI6IiIsInB1Ymxpc2hlciI6IiJ9LCJ2bUlkIjoiMDJhYWI4YTQtNzRlZi00NzZlLTgxODItZjZkMmJhNDE2NmE2In2gggI/MIICOzCCAaSgAwIBAgIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQQFADArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbTAeFw0xODExMDgxODUzMDRaFw0xODEyMDgxODUzMDNaMCsxKTAnBgNVBAMTIHRlc3RzdWJkb21haW4ubWV0YWRhdGEuYXp1cmUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEi0FVslYnUX+MneC7ERMU4ZM88z4J80r7RPgvzxCPNhXUQlWm3cmVRZMD8kKMv7brkvEsATP7Ak60/I/XEtOga4LGCvMaQa8I/MW8IhSyp2Vj015glAiV8TeUI5DuOIOS96lQvM+G7bt23swkIwVjm1u1ViTZiKKytwpY/EGqzQIDAQABo2AwXjBcBgNVHQEEVTBTgBAt3MRgJmEoUMiPy7k06cLfoS0wKzEpMCcGA1UEAxMgdGVzdHN1YmRvbWFpbi5tZXRhZGF0YS5henVyZS5jb22CEEFrBY1zd+aASShVyN0KzN0wDQYJKoZIhvcNAQEEBQADgYEAd87qiZnRlGIFQ5IEcL/A7ru23WSQAOBsNPt70Fg1GtaEHcYshKUJFhGwXOgZ11cY5wRfrSvEKuzvhAeIZwkvzkBjC04g8sRrjN5leLY5CsKzQhjN52TUMsHhqTM58tfAnICeTddQwn6LOgfqtYH5WO+F/VbFCwPstYUqjmQEYAoxgegwgeUCAQEwPzArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbQIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQsFADANBgkqhkiG9w0BAQEFAASBgCbkRKmQ1MdWZPVOrX7ZBKHQUWPFrQQNdjk3KB67GkY0W0Taxut4K7D2PmiflVEwxB92pTbaZZr/dldu1k1ab1YamHcVYdgZgxIkoOWohGR0ym8oL9JHjFMEqHUbEPtDwE8X+djtDd8TVdb6LYe77IXmz/VaX4whuejlSvQXjaL" + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/examples/GetIdentityInfo.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/examples/GetIdentityInfo.json new file mode 100644 index 000000000000..c86922232d4d --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/examples/GetIdentityInfo.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-04-30", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "tenantId": "abd8daee-d393-4239-9377-883adda3d40f" + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/examples/GetIdentityToken.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/examples/GetIdentityToken.json new file mode 100644 index 000000000000..cf9b130b3e0d --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/examples/GetIdentityToken.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-04-30", + "Metadata": "true", + "resource": "https://vault.azure.net" + }, + "responses": { + "200": { + "body": { + "access_token": "dummytoken", + "client_id": "be5947ed-3560-4afe-9504-59967a63f810", + "expires_in": "3599", + "expires_on": "1541705014", + "ext_expires_in": "262800", + "not_before": "1508961830", + "resource": "https://va" + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/examples/GetInstanceMetadata.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/examples/GetInstanceMetadata.json new file mode 100644 index 000000000000..df4eecc8f5b9 --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/examples/GetInstanceMetadata.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2019-04-30", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "compute": { + "azEnvironment": "AzurePublicCloud", + "customData": "TXkgY3VzdG9tIGRhdGEu", + "location": "westus", + "name": "examplevmname", + "offer": "Windows", + "osType": "linux", + "placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a", + "plan": { + "name": "planName", + "product": "planProduct", + "publisher": "planPublisher" + }, + "platformFaultDomain": "36", + "platformUpdateDomain": "42", + "provider": "Microsoft.Compute", + "publicKeys": [ + { + "keyData": "ssh-rsa 0", + "path": "/home/user/.ssh/authorized_keys0" + }, + { + "keyData": "ssh-rsa 1", + "path": "/home/user/.ssh/authorized_keys1" + } + ], + "publisher": "RDFE-Test-Microsoft-Windows-Server-Group", + "resourceGroupName": "macikgo-test-may-23", + "resourceId": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname", + "sku": "Windows-Server-2012-R2-Datacenter", + "subscriptionId": "8d10da13-8125-4ba9-a717-bf7490507b3d", + "tags": "baz:bash;foo:bar", + "version": "15.05.22", + "vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6", + "vmScaleSetName": "crpteste9vflji9", + "vmSize": "Standard_A3", + "zone": "" + } + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/imds.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/imds.json new file mode 100644 index 000000000000..fd2cab686a20 --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-04-30/imds.json @@ -0,0 +1,629 @@ +{ + "swagger": "2.0", + "info": { + "title": "InstanceMetadataClient", + "description": "The Azure Instance Metadata Client", + "version": "2019-04-30" + }, + "host": "169.254.169.254", + "basePath": "/metadata", + "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": { + "/instance": { + "get": { + "operationId": "Instances_GetMetadata", + "description": "Get Instance Metadata for the Virtual Machine.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Instance" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Instance Metadata for the VM": { + "$ref": "./examples/GetInstanceMetadata.json" + } + } + } + }, + "/attested/document": { + "get": { + "operationId": "Attested_GetDocument", + "description": "Get Attested Data for the Virtual Machine.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "nonce", + "in": "query", + "required": false, + "type": "string", + "description": "This is a string of up to 32 random alphanumeric characters." + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AttestedData" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Attested Data for the VM": { + "$ref": "./examples/GetAttestedData.json" + } + } + } + }, + "/identity/oauth2/token": { + "get": { + "tags": [ + "Get token" + ], + "description": "Get a Token from Azure AD", + "operationId": "Identity_GetToken", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "name": "resource", + "in": "query", + "type": "string", + "description": "This is the urlencoded identifier URI of the sink resource for the requested Azure AD token. The resulting token contains the corresponding aud for this resource.", + "required": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "client_id", + "in": "query", + "type": "string", + "description": "This identifies, by Azure AD client id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with object_id and msi_res_id.", + "required": false + }, + { + "name": "object_id", + "in": "query", + "type": "string", + "description": "This identifies, by Azure AD object id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and msi_res_id.", + "required": false + }, + { + "name": "msi_res_id", + "in": "query", + "type": "string", + "description": "This identifies, by urlencoded ARM resource id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and object_id.", + "required": false + }, + { + "name": "authority", + "in": "query", + "type": "string", + "description": "This indicates the authority to request AAD tokens from. Defaults to the known authority of the identity to be used.", + "required": false + }, + { + "name": "bypass_cache", + "in": "query", + "type": "string", + "enum": [ + "true" + ], + "description": "If provided, the value must be 'true'. This indicates to the server that the token must be retrieved from Azure AD and cannot be retrieved from an internal cache.", + "required": false, + "x-ms-enum": { + "name": "BypassCache", + "modelAsString": true + } + } + ], + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/IdentityTokenResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/IdentityErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Identity Token for the VM": { + "$ref": "./examples/GetIdentityToken.json" + } + } + } + }, + "/identity/info": { + "get": { + "tags": [ + "Get metadata information" + ], + "description": "Get information about AAD Metadata", + "operationId": "Identity_GetInfo", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/IdentityInfoResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/IdentityErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Identity Info for the VM": { + "$ref": "./examples/GetIdentityInfo.json" + } + } + } + } + }, + "definitions": { + "Compute": { + "type": "object", + "properties": { + "azEnvironment": { + "type": "string", + "description": "This is the name of the environment in which the VM is running." + }, + "customData": { + "type": "string", + "description": "This is the base64 encoded custom data for the running VM." + }, + "location": { + "type": "string", + "description": "This is the Azure Region in which the VM is running." + }, + "name": { + "type": "string", + "description": "This is the name of the VM." + }, + "offer": { + "type": "string", + "description": "This is the offer information for the VM image. This value is only present for images deployed from the Azure Image Gallery." + }, + "osType": { + "type": "string", + "description": "This value indicates the type of OS the VM is running, either Linux or Windows." + }, + "placementGroupId": { + "type": "string", + "description": "This is the placement group of your Virtual Machine Scale Set." + }, + "plan": { + "type": "object", + "description": "This contains the data about the plan.", + "$ref": "#/definitions/PlanProperties" + }, + "publicKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicKeysProperties" + }, + "description": "This is information about the SSH certificate" + }, + "platformFaultDomain": { + "type": "string", + "description": "This is the fault domain in which the VM." + }, + "platformUpdateDomain": { + "type": "string", + "description": "This is the update domain in which the VM." + }, + "provider": { + "type": "string", + "description": "This is the provider of the VM." + }, + "publisher": { + "type": "string", + "description": "This is the publisher of the VM image." + }, + "resourceGroupName": { + "type": "string", + "description": "This is the resource group for the VM." + }, + "resourceId": { + "type": "string", + "description": "This is the fully qualified ID for the VM." + }, + "sku": { + "type": "string", + "description": "This is the specific SKU for the VM image." + }, + "subscriptionId": { + "type": "string", + "description": "This is the Azure subscription for the VM." + }, + "tags": { + "type": "string", + "description": "This is the list of tags for your VM." + }, + "version": { + "type": "string", + "description": "This is the version of the VM image." + }, + "vmId": { + "type": "string", + "description": "This is the unique identifier for the VM." + }, + "vmScaleSetName": { + "type": "string", + "description": "This is the resource name of the VMSS." + }, + "vmSize": { + "type": "string", + "description": "This is the size of the VM." + }, + "zone": { + "type": "string", + "description": "This is the availability zone of the VM." + } + }, + "description": "Compute Metadata" + }, + "Network": { + "type": "object", + "properties": { + "interface": { + "type": "array", + "description": "This contains data about the network interface.", + "items": { + "type": "object", + "$ref": "#/definitions/NetworkInterface" + } + } + }, + "description": "Network Metadata" + }, + "NetworkInterface": { + "type": "object", + "description": "This contains data about the network interface.", + "properties": { + "ipv4": { + "type": "object", + "description": "This contains the IPv4 address.", + "properties": { + "ipAddress": { + "type": "array", + "description": "This is the IP address", + "items": { + "type": "object", + "description": "This contains the IPv4 properties.", + "$ref": "#/definitions/Ipv4Properties" + } + }, + "subnet": { + "type": "array", + "description": "This is the subnet", + "items": { + "type": "object", + "description": "This contains the subnet properties.", + "$ref": "#/definitions/SubnetProperties" + } + } + } + }, + "ipv6": { + "type": "object", + "description": "This contains the IPv6 address.", + "properties": { + "ipAddress": { + "type": "array", + "description": "This is the IP address", + "items": { + "type": "object", + "description": "This contains the IPv6 properties.", + "$ref": "#/definitions/Ipv6Properties" + } + } + } + }, + "macAddress": { + "type": "string", + "description": "This is the MAC address of the interface." + } + } + }, + "PlanProperties": { + "type": "object", + "description": "This contains the data about the plan.", + "properties": { + "name": { + "type": "string", + "description": "This is the Plan ID." + }, + "publisher": { + "type": "string", + "description": "This is the publisher ID." + }, + "product": { + "type": "string", + "description": "This is the product of the image from the Marketplace." + } + } + }, + "PublicKeysProperties": { + "type": "object", + "description": "This contains the data about the public key.", + "properties": { + "path": { + "type": "string", + "description": "This specifies the full path on the VM where the SSH public key is stored." + }, + "keyData": { + "type": "string", + "description": "This is the SSH public key certificate used to authenticate with the VM." + } + } + }, + "Ipv4Properties": { + "type": "object", + "description": "This contains the IPv4 properties.", + "properties": { + "privateIpAddress": { + "type": "string", + "description": "This is the private IP address assigned to the interface." + }, + "publicIpAddress": { + "type": "string", + "description": "This is the public IP address assigned to the interface." + } + } + }, + "Ipv6Properties": { + "type": "object", + "description": "This contains the IPv6 properties.", + "properties": { + "privateIpAddress": { + "type": "string", + "description": "This is the private IPv6 address assigned to the interface." + } + } + }, + "SubnetProperties": { + "type": "object", + "description": "This contains the properties of the subnet.", + "properties": { + "address": { + "type": "string", + "description": "This is the address range of the subnet." + }, + "prefix": { + "type": "string", + "description": "This is the prefix of the subnet." + } + } + }, + "Instance": { + "type": "object", + "description": "This is the response from the Instance_GetMetadata operation.", + "properties": { + "compute": { + "$ref": "#/definitions/Compute", + "description": "Compute Metadata" + }, + "network": { + "$ref": "#/definitions/Network", + "description": "Network Metadata" + } + } + }, + "AttestedData": { + "type": "object", + "description": "This is the response from the Attested_GetDocument operation.", + "properties": { + "signature": { + "type": "string", + "description": "This is the encoded string containing the VM ID, plan information, public key, timestamp, and nonce value." + }, + "encoding": { + "type": "string", + "description": "This is the encoding scheme of the signature." + } + } + }, + "ErrorResponse": { + "description": "This is the response from an operation in the case an error occurs.", + "type": "object", + "properties": { + "error": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + }, + "IdentityErrorResponse": { + "type": "object", + "description": "This is the response from an Identity operation in the case an error occurs.", + "properties": { + "error": { + "type": "string", + "description": "Error code", + "enum": [ + "invalid_request", + "unauthorized_client", + "access_denied", + "unsupported_response_type", + "invalid_scope", + "server_error", + "service_unavailable", + "bad_request", + "forbidden", + "not_found", + "method_not_allowed", + "too_many_requests" + ], + "x-ms-enum": { + "name": "Error", + "modelAsString": true + } + }, + "error_description": { + "type": "string", + "description": "Error message indicating why the operation failed." + } + } + }, + "IdentityTokenResponse": { + "type": "object", + "description": "This is the response from the Identity_GetToken operation.", + "properties": { + "access_token": { + "type": "string", + "description": "This is the requested access token. The app can use this token to authenticate to the sink resource." + }, + "expires_in": { + "type": "string", + "description": "This is how long the access token is valid (in seconds)." + }, + "expires_on": { + "type": "string", + "description": "This is 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. This value is used to determine the lifetime of cached tokens." + }, + "ext_expires_in": { + "type": "string", + "description": "This indicates the extended lifetime of the token (in seconds)." + }, + "not_before": { + "type": "string", + "description": "This is the time when the access token becomes effective. The date is represented as the number of seconds from 1970-01-01T0:0:0Z UTC until the expiration time." + }, + "resource": { + "type": "string", + "description": "This is the app ID URI of the sink resource." + }, + "token_type": { + "type": "string", + "description": "This indicates the token type value." + }, + "client_id": { + "type": "string", + "description": "This is the client_id specified in the request, if any." + }, + "object_id": { + "type": "string", + "description": "This is the object_id specified in the request, if any." + }, + "msi_res_id": { + "type": "string", + "description": "This is the msi_res_id specified in the request, if any." + } + } + }, + "IdentityInfoResponse": { + "type": "object", + "description": "This is the response from the Identity_GetInfo operation.", + "properties": { + "tenantId": { + "type": "string", + "description": "This is the AAD tenantId of the identity of the caller." + } + } + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "type": "string", + "enum": [ + "2018-10-01" + ], + "description": "This is the API version to use.", + "required": true, + "x-ms-enum": { + "name": "ApiVersion", + "modelAsString": true + } + }, + "MetadataParameter": { + "name": "Metadata", + "in": "header", + "type": "string", + "enum": [ + "true" + ], + "description": "This must be set to 'true'.", + "required": true, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetAttestedData.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetAttestedData.json index a9f823b2ea49..7d05c49f745b 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetAttestedData.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetAttestedData.json @@ -1,15 +1,15 @@ { - "parameters": { - "api-version": "2019-06-01", - "nonce": "abcde12345", - "Metadata": "true" - }, - "responses": { - "200": { - "body": { - "encoding": "pkcs7", - "signature": "MIID2gYJKoZIhvcNAQcCoIIDyzCCA8cCAQExDzANBgkqhkiG9w0BAQsFADCBggYJKoZIhvcNAQcBoHUEc3sibm9uY2UiOiIxMTExMTExMTExIiwicGxhbiI6eyJuYW1lIjoiIiwicHJvZHVjdCI6IiIsInB1Ymxpc2hlciI6IiJ9LCJ2bUlkIjoiMDJhYWI4YTQtNzRlZi00NzZlLTgxODItZjZkMmJhNDE2NmE2In2gggI/MIICOzCCAaSgAwIBAgIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQQFADArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbTAeFw0xODExMDgxODUzMDRaFw0xODEyMDgxODUzMDNaMCsxKTAnBgNVBAMTIHRlc3RzdWJkb21haW4ubWV0YWRhdGEuYXp1cmUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEi0FVslYnUX+MneC7ERMU4ZM88z4J80r7RPgvzxCPNhXUQlWm3cmVRZMD8kKMv7brkvEsATP7Ak60/I/XEtOga4LGCvMaQa8I/MW8IhSyp2Vj015glAiV8TeUI5DuOIOS96lQvM+G7bt23swkIwVjm1u1ViTZiKKytwpY/EGqzQIDAQABo2AwXjBcBgNVHQEEVTBTgBAt3MRgJmEoUMiPy7k06cLfoS0wKzEpMCcGA1UEAxMgdGVzdHN1YmRvbWFpbi5tZXRhZGF0YS5henVyZS5jb22CEEFrBY1zd+aASShVyN0KzN0wDQYJKoZIhvcNAQEEBQADgYEAd87qiZnRlGIFQ5IEcL/A7ru23WSQAOBsNPt70Fg1GtaEHcYshKUJFhGwXOgZ11cY5wRfrSvEKuzvhAeIZwkvzkBjC04g8sRrjN5leLY5CsKzQhjN52TUMsHhqTM58tfAnICeTddQwn6LOgfqtYH5WO+F/VbFCwPstYUqjmQEYAoxgegwgeUCAQEwPzArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbQIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQsFADANBgkqhkiG9w0BAQEFAASBgCbkRKmQ1MdWZPVOrX7ZBKHQUWPFrQQNdjk3KB67GkY0W0Taxut4K7D2PmiflVEwxB92pTbaZZr/dldu1k1ab1YamHcVYdgZgxIkoOWohGR0ym8oL9JHjFMEqHUbEPtDwE8X+djtDd8TVdb6LYe77IXmz/VaX4whuejlSvQXjaL" - } - } + "parameters": { + "api-version": "2019-06-01", + "nonce": "abcde12345", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "encoding": "pkcs7", + "signature": "MIID2gYJKoZIhvcNAQcCoIIDyzCCA8cCAQExDzANBgkqhkiG9w0BAQsFADCBggYJKoZIhvcNAQcBoHUEc3sibm9uY2UiOiIxMTExMTExMTExIiwicGxhbiI6eyJuYW1lIjoiIiwicHJvZHVjdCI6IiIsInB1Ymxpc2hlciI6IiJ9LCJ2bUlkIjoiMDJhYWI4YTQtNzRlZi00NzZlLTgxODItZjZkMmJhNDE2NmE2In2gggI/MIICOzCCAaSgAwIBAgIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQQFADArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbTAeFw0xODExMDgxODUzMDRaFw0xODEyMDgxODUzMDNaMCsxKTAnBgNVBAMTIHRlc3RzdWJkb21haW4ubWV0YWRhdGEuYXp1cmUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEi0FVslYnUX+MneC7ERMU4ZM88z4J80r7RPgvzxCPNhXUQlWm3cmVRZMD8kKMv7brkvEsATP7Ak60/I/XEtOga4LGCvMaQa8I/MW8IhSyp2Vj015glAiV8TeUI5DuOIOS96lQvM+G7bt23swkIwVjm1u1ViTZiKKytwpY/EGqzQIDAQABo2AwXjBcBgNVHQEEVTBTgBAt3MRgJmEoUMiPy7k06cLfoS0wKzEpMCcGA1UEAxMgdGVzdHN1YmRvbWFpbi5tZXRhZGF0YS5henVyZS5jb22CEEFrBY1zd+aASShVyN0KzN0wDQYJKoZIhvcNAQEEBQADgYEAd87qiZnRlGIFQ5IEcL/A7ru23WSQAOBsNPt70Fg1GtaEHcYshKUJFhGwXOgZ11cY5wRfrSvEKuzvhAeIZwkvzkBjC04g8sRrjN5leLY5CsKzQhjN52TUMsHhqTM58tfAnICeTddQwn6LOgfqtYH5WO+F/VbFCwPstYUqjmQEYAoxgegwgeUCAQEwPzArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbQIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQsFADANBgkqhkiG9w0BAQEFAASBgCbkRKmQ1MdWZPVOrX7ZBKHQUWPFrQQNdjk3KB67GkY0W0Taxut4K7D2PmiflVEwxB92pTbaZZr/dldu1k1ab1YamHcVYdgZgxIkoOWohGR0ym8oL9JHjFMEqHUbEPtDwE8X+djtDd8TVdb6LYe77IXmz/VaX4whuejlSvQXjaL" + } } -} \ No newline at end of file + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetGalleryApplication.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetGalleryApplication.json index 7b1df3bd36b2..c024f176b44a 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetGalleryApplication.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetGalleryApplication.json @@ -5,8 +5,8 @@ "incarnationId": "b845c18d-b249-4c7a-a4c3-ffdd51757ccd" }, "responses": { - "200": { - "body": "{application binary package}" - } + "200": { + "body": "{application binary package}" } + } } diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetIdentityInfo.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetIdentityInfo.json index 8d537551fdb4..cac60ad51eb9 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetIdentityInfo.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetIdentityInfo.json @@ -1,13 +1,13 @@ { - "parameters": { - "api-version": "2019-06-01", - "Metadata": "true" - }, - "responses": { - "200": { - "body": { - "tenantId": "abd8daee-d393-4239-9377-883adda3d40f" - } - } + "parameters": { + "api-version": "2019-06-01", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "tenantId": "abd8daee-d393-4239-9377-883adda3d40f" + } } -} \ No newline at end of file + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetIdentityToken.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetIdentityToken.json index ef14f423756f..da14b3f93c6c 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetIdentityToken.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetIdentityToken.json @@ -1,20 +1,20 @@ { - "parameters": { - "api-version": "2019-06-01", - "Metadata": "true", - "resource": "https://vault.azure.net" - }, - "responses": { - "200": { - "body": { - "access_token": "dummytoken", - "client_id": "be5947ed-3560-4afe-9504-59967a63f810", - "expires_in": "3599", - "expires_on": "1541705014", - "ext_expires_in": "262800", - "not_before": "1508961830", - "resource": "https://va" - } - } + "parameters": { + "api-version": "2019-06-01", + "Metadata": "true", + "resource": "https://vault.azure.net" + }, + "responses": { + "200": { + "body": { + "access_token": "dummytoken", + "client_id": "be5947ed-3560-4afe-9504-59967a63f810", + "expires_in": "3599", + "expires_on": "1541705014", + "ext_expires_in": "262800", + "not_before": "1508961830", + "resource": "https://va" + } } -} \ No newline at end of file + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetInstanceMetadata.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetInstanceMetadata.json index 5ae40dcfe56b..ff0e2b31a7f7 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetInstanceMetadata.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/GetInstanceMetadata.json @@ -1,98 +1,98 @@ { - "parameters": { - "api-version": "2019-06-01", - "Metadata": "true" - }, - "responses": { - "200": { - "body": { - "compute": { - "azEnvironment": "AZUREPUBLICCLOUD", - "location": "westus", - "name": "examplevmname", - "offer": "Windows", - "osType": "linux", - "placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a", - "plan": { - "name": "planName", - "product": "planProduct", - "publisher": "planPublisher" - }, - "platformFaultDomain": "36", - "platformUpdateDomain": "42", - "publicKeys": [ - { - "keyData": "ssh-rsa 0", - "path": "/home/user/.ssh/authorized_keys0" - }, - { - "keyData": "ssh-rsa 1", - "path": "/home/user/.ssh/authorized_keys1" - } - ], - "publisher": "RDFE-Test-Microsoft-Windows-Server-Group", - "resourceGroupName": "macikgo-test-may-23", - "resourceId": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname", - "sku": "Windows-Server-2012-R2-Datacenter", - "storageProfile": { - "dataDisks": [ - { - "caching": "None", - "createOption": "Empty", - "diskSizeGB": "1024", - "image": { - "uri": "" - }, - "lun": "0", - "managedDisk": { - "id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampledatadiskname", - "storageAccountType": "Standard_LRS" - }, - "name": "exampledatadiskname", - "vhd": { - "uri": "" - }, - "writeAcceleratorEnabled": "false" - } - ], - "imageReference": { - "id": "", - "offer": "UbuntuServer", - "publisher": "Canonical", - "sku": "16.04.0-LTS", - "version": "latest" - }, - "osDisk": { - "caching": "ReadWrite", - "createOption": "FromImage", - "diskSizeGB": "30", - "encryptionSettings": { - "enabled": "false" - }, - "image": { - "uri": "" - }, - "managedDisk": { - "id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampleosdiskname", - "storageAccountType": "Standard_LRS" - }, - "name": "exampleosdiskname", - "osType": "Linux", - "vhd": { - "uri": "" - }, - "writeAcceleratorEnabled": "false" - } - }, - "subscriptionId": "8d10da13-8125-4ba9-a717-bf7490507b3d", - "tags": "baz:bash;foo:bar", - "version": "15.05.22", - "vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6", - "vmScaleSetName": "crpteste9vflji9", - "vmSize": "Standard_A3", - "zone": "" - } + "parameters": { + "api-version": "2019-06-01", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "compute": { + "azEnvironment": "AZUREPUBLICCLOUD", + "location": "westus", + "name": "examplevmname", + "offer": "Windows", + "osType": "linux", + "placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a", + "plan": { + "name": "planName", + "product": "planProduct", + "publisher": "planPublisher" + }, + "platformFaultDomain": "36", + "platformUpdateDomain": "42", + "publicKeys": [ + { + "keyData": "ssh-rsa 0", + "path": "/home/user/.ssh/authorized_keys0" + }, + { + "keyData": "ssh-rsa 1", + "path": "/home/user/.ssh/authorized_keys1" } + ], + "publisher": "RDFE-Test-Microsoft-Windows-Server-Group", + "resourceGroupName": "macikgo-test-may-23", + "resourceId": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname", + "sku": "Windows-Server-2012-R2-Datacenter", + "storageProfile": { + "dataDisks": [ + { + "caching": "None", + "createOption": "Empty", + "diskSizeGB": "1024", + "image": { + "uri": "" + }, + "lun": "0", + "managedDisk": { + "id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampledatadiskname", + "storageAccountType": "Standard_LRS" + }, + "name": "exampledatadiskname", + "vhd": { + "uri": "" + }, + "writeAcceleratorEnabled": "false" + } + ], + "imageReference": { + "id": "", + "offer": "UbuntuServer", + "publisher": "Canonical", + "sku": "16.04.0-LTS", + "version": "latest" + }, + "osDisk": { + "caching": "ReadWrite", + "createOption": "FromImage", + "diskSizeGB": "30", + "encryptionSettings": { + "enabled": "false" + }, + "image": { + "uri": "" + }, + "managedDisk": { + "id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampleosdiskname", + "storageAccountType": "Standard_LRS" + }, + "name": "exampleosdiskname", + "osType": "Linux", + "vhd": { + "uri": "" + }, + "writeAcceleratorEnabled": "false" + } + }, + "subscriptionId": "8d10da13-8125-4ba9-a717-bf7490507b3d", + "tags": "baz:bash;foo:bar", + "version": "15.05.22", + "vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6", + "vmScaleSetName": "crpteste9vflji9", + "vmSize": "Standard_A3", + "zone": "" } + } } -} \ No newline at end of file + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/ListGalleryApplications.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/ListGalleryApplications.json index 07f249760571..ba6b9ddc0240 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/ListGalleryApplications.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/examples/ListGalleryApplications.json @@ -6,7 +6,8 @@ "responses": { "200": { "body": { - "applications": [{ + "applications": [ + { "tags": "0", "enableHealthCheck": true, "packageFile": { diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/imds.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/imds.json index 8c8f8d8ea130..e92d7dc35f7a 100644 --- a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/imds.json +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-06-01/imds.json @@ -1,952 +1,952 @@ -{ - "swagger": "2.0", - "info": { - "title": "InstanceMetadataClient", - "description": "The Azure Instance Metadata Client", - "version": "2019-06-01" - }, - "host": "169.254.169.254", - "basePath": "/metadata", - "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" +{ + "swagger": "2.0", + "info": { + "title": "InstanceMetadataClient", + "description": "The Azure Instance Metadata Client", + "version": "2019-06-01" + }, + "host": "169.254.169.254", + "basePath": "/metadata", + "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": { + "/applications": { + "get": { + "operationId": "GalleryApplications_List", + "description": "Get list of the gallery applications.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplications" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + }, + "x-ms-examples": { + "Get list of the gallery applications": { + "$ref": "./examples/ListGalleryApplications.json" + } } + } }, - "paths": { - "/applications": { - "get": { - "operationId": "GalleryApplications_List", - "description": "Get list of the gallery applications.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/MetadataParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/GalleryApplications" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get list of the gallery applications": { - "$ref": "./examples/ListGalleryApplications.json" - } - } + "/applications/app": { + "get": { + "operationId": "GalleryApplication_Get", + "description": "Get application package.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "name": "incarnationId", + "in": "query", + "required": true, + "type": "string", + "description": "Incarnation Id of the gallery application" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ApplicationResponse" } - }, - "/applications/app": { - "get": { - "operationId": "GalleryApplication_Get", - "description": "Get application package.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/MetadataParameter" - }, - { - "name": "incarnationId", - "in": "query", - "required": true, - "type": "string", - "description": "Incarnation Id of the gallery application" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ApplicationResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get gallery application package": { - "$ref": "./examples/GetGalleryApplication.json" - } - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } }, - "/instance": { - "get": { - "operationId": "Instances_GetMetadata", - "description": "Get Instance Metadata for the Virtual Machine.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/MetadataParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Instance" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Instance Metadata for the VM": { - "$ref": "./examples/GetInstanceMetadata.json" - } - } + "x-ms-examples": { + "Get gallery application package": { + "$ref": "./examples/GetGalleryApplication.json" + } + } + } + }, + "/instance": { + "get": { + "operationId": "Instances_GetMetadata", + "description": "Get Instance Metadata for the Virtual Machine.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Instance" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } }, - "/attested/document": { - "get": { - "operationId": "Attested_GetDocument", - "description": "Get Attested Data for the Virtual Machine.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "nonce", - "in": "query", - "required": false, - "type": "string", - "description": "This is a string of up to 32 random alphanumeric characters." - }, - { - "$ref": "#/parameters/MetadataParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AttestedData" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Attested Data for the VM": { - "$ref": "./examples/GetAttestedData.json" - } - } + "x-ms-examples": { + "Get Instance Metadata for the VM": { + "$ref": "./examples/GetInstanceMetadata.json" + } + } + } + }, + "/attested/document": { + "get": { + "operationId": "Attested_GetDocument", + "description": "Get Attested Data for the Virtual Machine.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "nonce", + "in": "query", + "required": false, + "type": "string", + "description": "This is a string of up to 32 random alphanumeric characters." + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AttestedData" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } }, - "/identity/oauth2/token": { - "get": { - "tags": [ - "Get token" - ], - "description": "Get a Token from Azure AD", - "operationId": "Identity_GetToken", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/MetadataParameter" - }, - { - "name": "resource", - "in": "query", - "type": "string", - "description": "This is the urlencoded identifier URI of the sink resource for the requested Azure AD token. The resulting token contains the corresponding aud for this resource.", - "required": true - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "client_id", - "in": "query", - "type": "string", - "description": "This identifies, by Azure AD client id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with object_id and msi_res_id.", - "required": false - }, - { - "name": "object_id", - "in": "query", - "type": "string", - "description": "This identifies, by Azure AD object id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and msi_res_id.", - "required": false - }, - { - "name": "msi_res_id", - "in": "query", - "type": "string", - "description": "This identifies, by urlencoded ARM resource id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and object_id.", - "required": false - }, - { - "name": "authority", - "in": "query", - "type": "string", - "description": "This indicates the authority to request AAD tokens from. Defaults to the known authority of the identity to be used.", - "required": false - }, - { - "name": "bypass_cache", - "in": "query", - "type": "string", - "enum": [ - "true" - ], - "description": "If provided, the value must be 'true'. This indicates to the server that the token must be retrieved from Azure AD and cannot be retrieved from an internal cache.", - "required": false, - "x-ms-enum": { - "name": "BypassCache", - "modelAsString": true - } - } - ], - "responses": { - "200": { - "description": "Successful operation", - "schema": { - "$ref": "#/definitions/IdentityTokenResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/IdentityErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Identity Token for the VM": { - "$ref": "./examples/GetIdentityToken.json" - } - } + "x-ms-examples": { + "Get Attested Data for the VM": { + "$ref": "./examples/GetAttestedData.json" + } + } + } + }, + "/identity/oauth2/token": { + "get": { + "tags": [ + "Get token" + ], + "description": "Get a Token from Azure AD", + "operationId": "Identity_GetToken", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "name": "resource", + "in": "query", + "type": "string", + "description": "This is the urlencoded identifier URI of the sink resource for the requested Azure AD token. The resulting token contains the corresponding aud for this resource.", + "required": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "client_id", + "in": "query", + "type": "string", + "description": "This identifies, by Azure AD client id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with object_id and msi_res_id.", + "required": false + }, + { + "name": "object_id", + "in": "query", + "type": "string", + "description": "This identifies, by Azure AD object id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and msi_res_id.", + "required": false + }, + { + "name": "msi_res_id", + "in": "query", + "type": "string", + "description": "This identifies, by urlencoded ARM resource id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and object_id.", + "required": false + }, + { + "name": "authority", + "in": "query", + "type": "string", + "description": "This indicates the authority to request AAD tokens from. Defaults to the known authority of the identity to be used.", + "required": false + }, + { + "name": "bypass_cache", + "in": "query", + "type": "string", + "enum": [ + "true" + ], + "description": "If provided, the value must be 'true'. This indicates to the server that the token must be retrieved from Azure AD and cannot be retrieved from an internal cache.", + "required": false, + "x-ms-enum": { + "name": "BypassCache", + "modelAsString": true + } + } + ], + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/IdentityTokenResponse" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/IdentityErrorResponse" + } + } }, - "/identity/info": { - "get": { - "tags": [ - "Get metadata information" - ], - "description": "Get information about AAD Metadata", - "operationId": "Identity_GetInfo", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/MetadataParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successful operation", - "schema": { - "$ref": "#/definitions/IdentityInfoResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/IdentityErrorResponse" - } - } - }, - "x-ms-examples": { - "Get Identity Info for the VM": { - "$ref": "./examples/GetIdentityInfo.json" - } - } + "x-ms-examples": { + "Get Identity Token for the VM": { + "$ref": "./examples/GetIdentityToken.json" + } + } + } + }, + "/identity/info": { + "get": { + "tags": [ + "Get metadata information" + ], + "description": "Get information about AAD Metadata", + "operationId": "Identity_GetInfo", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/IdentityInfoResponse" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/IdentityErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Identity Info for the VM": { + "$ref": "./examples/GetIdentityInfo.json" + } + } + } + } + }, + "definitions": { + "Compute": { + "type": "object", + "properties": { + "azEnvironment": { + "type": "string", + "description": "This is the name of the environment in which the VM is running." + }, + "location": { + "type": "string", + "description": "This is the Azure Region in which the VM is running." + }, + "name": { + "type": "string", + "description": "This is the name of the VM." + }, + "offer": { + "type": "string", + "description": "This is the offer information for the VM image. This value is only present for images deployed from the Azure Image Gallery." + }, + "osType": { + "type": "string", + "description": "This value indicates the type of OS the VM is running, either Linux or Windows." + }, + "placementGroupId": { + "type": "string", + "description": "This is the placement group of your Virtual Machine Scale Set." + }, + "plan": { + "type": "object", + "description": "This contains the data about the plan.", + "$ref": "#/definitions/PlanProperties" + }, + "publicKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicKeysProperties" + }, + "description": "This is information about the SSH certificate" + }, + "platformFaultDomain": { + "type": "string", + "description": "This is the fault domain in which the VM." + }, + "platformUpdateDomain": { + "type": "string", + "description": "This is the update domain in which the VM." + }, + "provider": { + "type": "string", + "description": "This is the provider of the VM." + }, + "publisher": { + "type": "string", + "description": "This is the publisher of the VM image." + }, + "resourceGroupName": { + "type": "string", + "description": "This is the resource group for the VM." + }, + "resourceId": { + "type": "string", + "description": "This is the fully qualified ID for the VM." + }, + "sku": { + "type": "string", + "description": "This is the specific SKU for the VM image." + }, + "storageProfile": { + "type": "object", + "description": "This contains the data about the storage disks associated with the VM.", + "$ref": "#/definitions/StorageProfile" + }, + "subscriptionId": { + "type": "string", + "description": "This is the Azure subscription for the VM." + }, + "tags": { + "type": "string", + "description": "This is the list of tags for your VM." + }, + "version": { + "type": "string", + "description": "This is the version of the VM image." + }, + "vmId": { + "type": "string", + "description": "This is the unique identifier for the VM." + }, + "vmScaleSetName": { + "type": "string", + "description": "This is the resource name of the VMSS." + }, + "vmSize": { + "type": "string", + "description": "This is the size of the VM." + }, + "zone": { + "type": "string", + "description": "This is the availability zone of the VM." } + }, + "description": "Compute Metadata" }, - "definitions": { - "Compute": { - "type": "object", - "properties": { - "azEnvironment": { - "type": "string", - "description": "This is the name of the environment in which the VM is running." - }, - "location": { - "type": "string", - "description": "This is the Azure Region in which the VM is running." - }, - "name": { - "type": "string", - "description": "This is the name of the VM." - }, - "offer": { - "type": "string", - "description": "This is the offer information for the VM image. This value is only present for images deployed from the Azure Image Gallery." - }, - "osType": { - "type": "string", - "description": "This value indicates the type of OS the VM is running, either Linux or Windows." - }, - "placementGroupId": { - "type": "string", - "description": "This is the placement group of your Virtual Machine Scale Set." - }, - "plan": { - "type": "object", - "description": "This contains the data about the plan.", - "$ref": "#/definitions/PlanProperties" - }, - "publicKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicKeysProperties" - }, - "description": "This is information about the SSH certificate" - }, - "platformFaultDomain": { - "type": "string", - "description": "This is the fault domain in which the VM." - }, - "platformUpdateDomain": { - "type": "string", - "description": "This is the update domain in which the VM." - }, - "provider": { - "type": "string", - "description": "This is the provider of the VM." - }, - "publisher": { - "type": "string", - "description": "This is the publisher of the VM image." - }, - "resourceGroupName": { - "type": "string", - "description": "This is the resource group for the VM." - }, - "resourceId": { - "type": "string", - "description": "This is the fully qualified ID for the VM." - }, - "sku": { - "type": "string", - "description": "This is the specific SKU for the VM image." - }, - "storageProfile": { - "type": "object", - "description": "This contains the data about the storage disks associated with the VM.", - "$ref": "#/definitions/StorageProfile" - }, - "subscriptionId": { - "type": "string", - "description": "This is the Azure subscription for the VM." - }, - "tags": { - "type": "string", - "description": "This is the list of tags for your VM." - }, - "version": { - "type": "string", - "description": "This is the version of the VM image." - }, - "vmId": { - "type": "string", - "description": "This is the unique identifier for the VM." - }, - "vmScaleSetName": { - "type": "string", - "description": "This is the resource name of the VMSS." - }, - "vmSize": { - "type": "string", - "description": "This is the size of the VM." - }, - "zone": { - "type":"string", - "description":"This is the availability zone of the VM." - } - }, - "description": "Compute Metadata" - }, - "Network": { + "Network": { + "type": "object", + "properties": { + "interface": { + "type": "array", + "description": "This contains data about the network interface.", + "items": { "type": "object", - "properties": { - "interface": { - "type":"array", - "description": "This contains data about the network interface.", - "items": { - "type": "object", - "$ref": "#/definitions/NetworkInterface" - } - } + "$ref": "#/definitions/NetworkInterface" + } + } + }, + "description": "Network Metadata" + }, + "NetworkInterface": { + "type": "object", + "description": "This contains data about the network interface.", + "properties": { + "ipv4": { + "type": "object", + "description": "This contains the IPv4 address.", + "properties": { + "ipAddress": { + "type": "array", + "description": "This is the IP address", + "items": { + "type": "object", + "description": "This contains the IPv4 properties.", + "$ref": "#/definitions/Ipv4Properties" + } }, - "description": "Network Metadata" - }, - "NetworkInterface": { - "type": "object", - "description": "This contains data about the network interface.", - "properties": { - "ipv4": { - "type":"object", - "description": "This contains the IPv4 address.", - "properties": { - "ipAddress": { - "type":"array", - "description": "This is the IP address", - "items": { - "type": "object", - "description": "This contains the IPv4 properties.", - "$ref":"#/definitions/Ipv4Properties" - } - }, - "subnet": { - "type":"array", - "description": "This is the subnet", - "items": { - "type": "object", - "description": "This contains the subnet properties.", - "$ref": "#/definitions/SubnetProperties" - } - } - } - }, - "ipv6": { - "type":"object", - "description": "This contains the IPv6 address.", - "properties": { - "ipAddress": { - "type":"array", - "description": "This is the IP address", - "items": { - "type": "object", - "description": "This contains the IPv6 properties.", - "$ref":"#/definitions/Ipv6Properties" - } - } - } - }, - "macAddress": { - "type":"string", - "description":"This is the MAC address of the interface." - } + "subnet": { + "type": "array", + "description": "This is the subnet", + "items": { + "type": "object", + "description": "This contains the subnet properties.", + "$ref": "#/definitions/SubnetProperties" + } } + } }, - "PlanProperties": { - "type": "object", - "description": "This contains the data about the plan.", - "properties": { - "name": { - "type": "string", - "description": "This is the Plan ID." - }, - "publisher": { - "type": "string", - "description": "This is the publisher ID." - }, - "product": { - "type": "string", - "description": "This is the product of the image from the Marketplace." - } + "ipv6": { + "type": "object", + "description": "This contains the IPv6 address.", + "properties": { + "ipAddress": { + "type": "array", + "description": "This is the IP address", + "items": { + "type": "object", + "description": "This contains the IPv6 properties.", + "$ref": "#/definitions/Ipv6Properties" + } } + } }, - "PublicKeysProperties": { - "type": "object", - "description": "This contains the data about the public key.", - "properties": { - "path": { - "type": "string", - "description": "This specifies the full path on the VM where the SSH public key is stored." - }, - "keyData": { - "type": "string", - "description": "This is the SSH public key certificate used to authenticate with the VM." - } - } + "macAddress": { + "type": "string", + "description": "This is the MAC address of the interface." + } + } + }, + "PlanProperties": { + "type": "object", + "description": "This contains the data about the plan.", + "properties": { + "name": { + "type": "string", + "description": "This is the Plan ID." }, - "Ipv4Properties": { - "type": "object", - "description": "This contains the IPv4 properties.", - "properties": { - "privateIpAddress": { - "type":"string", - "description":"This is the private IP address assigned to the interface." - }, - "publicIpAddress": { - "type":"string", - "description":"This is the public IP address assigned to the interface." - } - } + "publisher": { + "type": "string", + "description": "This is the publisher ID." }, - "Ipv6Properties": { - "type": "object", - "description": "This contains the IPv6 properties.", - "properties": { - "privateIpAddress": { - "type":"string", - "description":"This is the private IPv6 address assigned to the interface." - } - } + "product": { + "type": "string", + "description": "This is the product of the image from the Marketplace." + } + } + }, + "PublicKeysProperties": { + "type": "object", + "description": "This contains the data about the public key.", + "properties": { + "path": { + "type": "string", + "description": "This specifies the full path on the VM where the SSH public key is stored." }, - "SubnetProperties": { - "type": "object", - "description": "This contains the properties of the subnet.", - "properties": { - "address": { - "type":"string", - "description":"This is the address range of the subnet." - }, - "prefix": { - "type":"string", - "description":"This is the prefix of the subnet." - } - } + "keyData": { + "type": "string", + "description": "This is the SSH public key certificate used to authenticate with the VM." + } + } + }, + "Ipv4Properties": { + "type": "object", + "description": "This contains the IPv4 properties.", + "properties": { + "privateIpAddress": { + "type": "string", + "description": "This is the private IP address assigned to the interface." }, - "StorageProfile": { - "type": "object", - "description": "This contains the data about the storage disks associated with the VM.", - "properties": { - "imageReference": { - "type": "object", - "$ref": "#/definitions/ImageReference", - "description": "Image information" - }, - "osDisk": { - "type": "object", - "$ref": "#/definitions/OsDisk", - "description": "OS disk information" - }, - "dataDisks": { - "type":"array", - "description": "Data disk information", - "items": { - "type": "object", - "description": "This contains information about the data disk.", - "$ref": "#/definitions/DataDisk" - } - } - } + "publicIpAddress": { + "type": "string", + "description": "This is the public IP address assigned to the interface." + } + } + }, + "Ipv6Properties": { + "type": "object", + "description": "This contains the IPv6 properties.", + "properties": { + "privateIpAddress": { + "type": "string", + "description": "This is the private IPv6 address assigned to the interface." + } + } + }, + "SubnetProperties": { + "type": "object", + "description": "This contains the properties of the subnet.", + "properties": { + "address": { + "type": "string", + "description": "This is the address range of the subnet." }, - "ImageReference": { - "type": "object", - "description": "This contains information about the OS image.", - "properties": { - "id": { - "type": "string", - "description": "This is the resource ID." - }, - "offer": { - "type": "string", - "description": "This is the offer of the platform or marketplace image." - }, - "publisher": { - "type": "string", - "description": "This is the image publisher." - }, - "sku": { - "type": "string", - "description": "This is the image SKU." - }, - "version": { - "type": "string", - "description": "This is the version of the platform or marketplace image." - } - } + "prefix": { + "type": "string", + "description": "This is the prefix of the subnet." + } + } + }, + "StorageProfile": { + "type": "object", + "description": "This contains the data about the storage disks associated with the VM.", + "properties": { + "imageReference": { + "type": "object", + "$ref": "#/definitions/ImageReference", + "description": "Image information" }, - "OsDisk": { - "type": "object", - "description": "This contains information about the OS disk used by the VM.", - "properties": { - "caching": { - "type": "string", - "description": "This is the the caching requirements." - }, - "createOption": { - "type": "string", - "description": "This is information about how the VM was created." - }, - "diskSizeGB": { - "type": "string", - "description": "This is the size of the disk in GB." - }, - "encryptionSettings": { - "type": "object", - "description": "This is the encryption settings for the disk.", - "$ref": "#/definitions/EncryptionSettings" - }, - "image": { - "type": "object", - "description": "This is the source user image virtual hard disk.", - "$ref": "#/definitions/DiskImage" - }, - "managedDisk": { - "type": "object", - "description": "This is managed disk parameters.", - "$ref": "#/definitions/ManagedDisk" - }, - "name": { - "type": "string", - "description": "This is the disk name." - }, - "osType": { - "type": "string", - "description": "This is the type of OS included in the disk." - }, - "vhd": { - "type": "object", - "description": "This is the virtual hard disk.", - "$ref": "#/definitions/VirtualHardDisk" - }, - "writeAcceleratorEnabled": { - "type": "string", - "description": "This specifies whether or not writeAccelerator is enabled on the disk." - } - } + "osDisk": { + "type": "object", + "$ref": "#/definitions/OsDisk", + "description": "OS disk information" }, - "DataDisk": { + "dataDisks": { + "type": "array", + "description": "Data disk information", + "items": { "type": "object", "description": "This contains information about the data disk.", - "properties": { - "caching": { - "type": "string", - "description": "This is the the caching requirements." - }, - "createOption": { - "type": "string", - "description": "This is information about how the VM was created." - }, - "diskSizeGB": { - "type": "string", - "description": "This is the size of the disk in GB." - }, - "image": { - "type": "object", - "description": "This is the source user image virtual hard disk.", - "$ref": "#/definitions/DiskImage" - }, - "lun": { - "type": "string", - "description": "This is the logical unit number of the disk." - }, - "managedDisk": { - "type": "object", - "description": "This is managed disk parameters.", - "$ref": "#/definitions/ManagedDisk" - }, - "name": { - "type": "string", - "description": "This is the disk name." - }, - "vhd": { - "type": "object", - "description": "This is the virtual hard disk.", - "$ref": "#/definitions/VirtualHardDisk" - }, - "writeAcceleratorEnabled": { - "type": "string", - "description": "This specifies whether or not writeAccelerator is enabled on the disk." - } - } + "$ref": "#/definitions/DataDisk" + } + } + } + }, + "ImageReference": { + "type": "object", + "description": "This contains information about the OS image.", + "properties": { + "id": { + "type": "string", + "description": "This is the resource ID." }, - "EncryptionSettings": { - "type": "object", - "description": "This is the encryption settings for the disk.", - "properties": { - "enabled": { - "type": "string", - "description": "This specifies whether or not disk encryption is enabled on the VM." - } - } + "offer": { + "type": "string", + "description": "This is the offer of the platform or marketplace image." }, - "DiskImage": { - "type": "object", - "description": "This is the source user image virtual hard disk.", - "properties": { - "uri": { - "type": "string", - "description": "This is the uri of the virtual hard disk." - } - } + "publisher": { + "type": "string", + "description": "This is the image publisher." }, - "ManagedDisk": { - "type": "object", - "description": "This is managed disk parameters.", - "properties": { - "id": { - "type": "string", - "description": "This is the resource ID." - }, - "storageAccountType": { - "type": "string", - "description": "This is the storage account type for the managed disk." - } - } + "sku": { + "type": "string", + "description": "This is the image SKU." }, - "VirtualHardDisk": { - "type": "object", - "description": "This is the virtual hard disk.", - "properties": { - "uri": { - "type": "string", - "description": "This is the uri of the virtual hard disk." - } - } + "version": { + "type": "string", + "description": "This is the version of the platform or marketplace image." + } + } + }, + "OsDisk": { + "type": "object", + "description": "This contains information about the OS disk used by the VM.", + "properties": { + "caching": { + "type": "string", + "description": "This is the caching requirements." }, - "ApplicationResponse": { - "type": "string", - "description": "This is a binary string containing the application." + "createOption": { + "type": "string", + "description": "This is information about how the VM was created." }, - "GalleryApplications": { - "type": "object", - "description": "This is the response from the GalleryApplications_List operation.", - "properties": { - "applications": { - "type":"array", - "description": "List of gallery applications", - "items": { - "type": "object", - "description": "This contains information about the gallery application.", - "$ref": "#/definitions/GalleryApplication" - } - } - } + "diskSizeGB": { + "type": "string", + "description": "This is the size of the disk in GB." + }, + "encryptionSettings": { + "type": "object", + "description": "This is the encryption settings for the disk.", + "$ref": "#/definitions/EncryptionSettings" + }, + "image": { + "type": "object", + "description": "This is the source user image virtual hard disk.", + "$ref": "#/definitions/DiskImage" + }, + "managedDisk": { + "type": "object", + "description": "This is managed disk parameters.", + "$ref": "#/definitions/ManagedDisk" + }, + "name": { + "type": "string", + "description": "This is the disk name." + }, + "osType": { + "type": "string", + "description": "This is the type of OS included in the disk." + }, + "vhd": { + "type": "object", + "description": "This is the virtual hard disk.", + "$ref": "#/definitions/VirtualHardDisk" + }, + "writeAcceleratorEnabled": { + "type": "string", + "description": "This specifies whether or not writeAccelerator is enabled on the disk." + } + } + }, + "DataDisk": { + "type": "object", + "description": "This contains information about the data disk.", + "properties": { + "caching": { + "type": "string", + "description": "This is the caching requirements." + }, + "createOption": { + "type": "string", + "description": "This is information about how the VM was created." + }, + "diskSizeGB": { + "type": "string", + "description": "This is the size of the disk in GB." + }, + "image": { + "type": "object", + "description": "This is the source user image virtual hard disk.", + "$ref": "#/definitions/DiskImage" + }, + "lun": { + "type": "string", + "description": "This is the logical unit number of the disk." + }, + "managedDisk": { + "type": "object", + "description": "This is managed disk parameters.", + "$ref": "#/definitions/ManagedDisk" + }, + "name": { + "type": "string", + "description": "This is the disk name." + }, + "vhd": { + "type": "object", + "description": "This is the virtual hard disk.", + "$ref": "#/definitions/VirtualHardDisk" + }, + "writeAcceleratorEnabled": { + "type": "string", + "description": "This specifies whether or not writeAccelerator is enabled on the disk." + } + } + }, + "EncryptionSettings": { + "type": "object", + "description": "This is the encryption settings for the disk.", + "properties": { + "enabled": { + "type": "string", + "description": "This specifies whether or not disk encryption is enabled on the VM." + } + } + }, + "DiskImage": { + "type": "object", + "description": "This is the source user image virtual hard disk.", + "properties": { + "uri": { + "type": "string", + "description": "This is the uri of the virtual hard disk." + } + } + }, + "ManagedDisk": { + "type": "object", + "description": "This is managed disk parameters.", + "properties": { + "id": { + "type": "string", + "description": "This is the resource ID." }, - "GalleryApplication": { + "storageAccountType": { + "type": "string", + "description": "This is the storage account type for the managed disk." + } + } + }, + "VirtualHardDisk": { + "type": "object", + "description": "This is the virtual hard disk.", + "properties": { + "uri": { + "type": "string", + "description": "This is the uri of the virtual hard disk." + } + } + }, + "ApplicationResponse": { + "type": "string", + "description": "This is a binary string containing the application." + }, + "GalleryApplications": { + "type": "object", + "description": "This is the response from the GalleryApplications_List operation.", + "properties": { + "applications": { + "type": "array", + "description": "List of gallery applications", + "items": { "type": "object", "description": "This contains information about the gallery application.", - "properties": { - "tags": { - "type": "string", - "description": "Optional attribute to passthrough value for more generic context" - }, - "enableHealthCheck": { - "type": "boolean", - "description": "It indicates if this application reports health status" - }, - "packageFile": { - "$ref": "#/definitions/PackageFile", - "description": "Package properties of the gallery application" - } - } + "$ref": "#/definitions/GalleryApplication" + } + } + } + }, + "GalleryApplication": { + "type": "object", + "description": "This contains information about the gallery application.", + "properties": { + "tags": { + "type": "string", + "description": "Optional attribute to passthrough value for more generic context" }, - "PackageFile": { - "type": "object", - "description": "Package properties of the gallery application.", - "properties": { - "id": { - "type": "string", - "description": "Resource id of the gallery application" - }, - "incarnationId": { - "type": "string", - "description": "Unique identifier for this particular application instance" - }, - "fileName": { - "type": "string", - "description": "Application package file name" - }, - "contentType": { - "type": "string", - "description": "Application package type" - } - } + "enableHealthCheck": { + "type": "boolean", + "description": "It indicates if this application reports health status" }, - "Instance": { - "type": "object", - "description": "This is the response from the Instance_GetMetadata operation.", - "properties": { - "compute": { - "$ref": "#/definitions/Compute", - "description": "Compute Metadata" - }, - "network": { - "$ref": "#/definitions/Network", - "description": "Network Metadata" - } - } + "packageFile": { + "$ref": "#/definitions/PackageFile", + "description": "Package properties of the gallery application" + } + } + }, + "PackageFile": { + "type": "object", + "description": "Package properties of the gallery application.", + "properties": { + "id": { + "type": "string", + "description": "Resource id of the gallery application" }, - "AttestedData": { - "type": "object", - "description": "This is the response from the Attested_GetDocument operation.", - "properties": { - "signature": { - "type": "string", - "description": "This is the encoded string containing the VM ID, plan information, public key, timestamp, and nonce value." - }, - "encoding": { - "type": "string", - "description": "This is the encoding scheme of the signature." - } - } + "incarnationId": { + "type": "string", + "description": "Unique identifier for this particular application instance" }, - "ErrorResponse": { - "description": "This is the response from an operation in the case an error occurs.", - "type": "object", - "properties": { - "error": { - "description": "Error message indicating why the operation failed.", - "type": "string" - } - } + "fileName": { + "type": "string", + "description": "Application package file name" }, - "IdentityErrorResponse": { - "type": "object", - "description": "This is the response from an Identity operation in the case an error occurs.", - "properties": { - "error": { - "type": "string", - "description": "Error code", - "enum": [ - "invalid_request", - "unauthorized_client", - "access_denied", - "unsupported_response_type", - "invalid_scope", - "server_error", - "service_unavailable", - "bad_request", - "forbidden", - "not_found", - "method_not_allowed", - "too_many_requests" - ], - "x-ms-enum": { - "name": "Error", - "modelAsString": true - } - }, - "error_description": { - "type": "string", - "description": "Error message indicating why the operation failed." - } - } + "contentType": { + "type": "string", + "description": "Application package type" + } + } + }, + "Instance": { + "type": "object", + "description": "This is the response from the Instance_GetMetadata operation.", + "properties": { + "compute": { + "$ref": "#/definitions/Compute", + "description": "Compute Metadata" }, - "IdentityTokenResponse": { - "type": "object", - "description": "This is the response from the Identity_GetToken operation.", - "properties": { - "access_token": { - "type": "string", - "description": "This is the requested access token. The app can use this token to authenticate to the sink resource." - }, - "expires_in": { - "type": "string", - "description": "This is how long the access token is valid (in seconds)." - }, - "expires_on": { - "type": "string", - "description": "This is 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. This value is used to determine the lifetime of cached tokens." - }, - "ext_expires_in": { - "type": "string", - "description": "This indicates the extended lifetime of the token (in seconds)." - }, - "not_before": { - "type": "string", - "description": "This is the time when the access token becomes effective. The date is represented as the number of seconds from 1970-01-01T0:0:0Z UTC until the expiration time." - }, - "resource": { - "type": "string", - "description": "This is the app ID URI of the sink resource." - }, - "token_type": { - "type": "string", - "description": "This indicates the token type value." - }, - "client_id": { - "type": "string", - "description": "This is the client_id specified in the request, if any." - }, - "object_id": { - "type": "string", - "description": "This is the object_id specified in the request, if any." - }, - "msi_res_id": { - "type": "string", - "description": "This is the msi_res_id specified in the request, if any." - } - } + "network": { + "$ref": "#/definitions/Network", + "description": "Network Metadata" + } + } + }, + "AttestedData": { + "type": "object", + "description": "This is the response from the Attested_GetDocument operation.", + "properties": { + "signature": { + "type": "string", + "description": "This is the encoded string containing the VM ID, plan information, public key, timestamp, and nonce value." }, - "IdentityInfoResponse": { - "type": "object", - "description": "This is the response from the Identity_GetInfo operation.", - "properties": { - "tenantId": { - "type": "string", - "description": "This is the AAD tenantId of the identity of the caller." - } - } + "encoding": { + "type": "string", + "description": "This is the encoding scheme of the signature." } + } }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "type": "string", - "enum": [ - "2018-10-01" - ], - "description": "This is the API version to use.", - "required": true, - "x-ms-enum": { - "name": "ApiVersion", - "modelAsString": true - } + "ErrorResponse": { + "description": "This is the response from an operation in the case an error occurs.", + "type": "object", + "properties": { + "error": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + }, + "IdentityErrorResponse": { + "type": "object", + "description": "This is the response from an Identity operation in the case an error occurs.", + "properties": { + "error": { + "type": "string", + "description": "Error code", + "enum": [ + "invalid_request", + "unauthorized_client", + "access_denied", + "unsupported_response_type", + "invalid_scope", + "server_error", + "service_unavailable", + "bad_request", + "forbidden", + "not_found", + "method_not_allowed", + "too_many_requests" + ], + "x-ms-enum": { + "name": "Error", + "modelAsString": true + } }, - "MetadataParameter": { - "name": "Metadata", - "in": "header", - "type": "string", - "enum": [ - "true" - ], - "description": "This must be set to 'true'.", - "required": true, - "x-ms-parameter-location": "method" + "error_description": { + "type": "string", + "description": "Error message indicating why the operation failed." } + } + }, + "IdentityTokenResponse": { + "type": "object", + "description": "This is the response from the Identity_GetToken operation.", + "properties": { + "access_token": { + "type": "string", + "description": "This is the requested access token. The app can use this token to authenticate to the sink resource." + }, + "expires_in": { + "type": "string", + "description": "This is how long the access token is valid (in seconds)." + }, + "expires_on": { + "type": "string", + "description": "This is 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. This value is used to determine the lifetime of cached tokens." + }, + "ext_expires_in": { + "type": "string", + "description": "This indicates the extended lifetime of the token (in seconds)." + }, + "not_before": { + "type": "string", + "description": "This is the time when the access token becomes effective. The date is represented as the number of seconds from 1970-01-01T0:0:0Z UTC until the expiration time." + }, + "resource": { + "type": "string", + "description": "This is the app ID URI of the sink resource." + }, + "token_type": { + "type": "string", + "description": "This indicates the token type value." + }, + "client_id": { + "type": "string", + "description": "This is the client_id specified in the request, if any." + }, + "object_id": { + "type": "string", + "description": "This is the object_id specified in the request, if any." + }, + "msi_res_id": { + "type": "string", + "description": "This is the msi_res_id specified in the request, if any." + } + } + }, + "IdentityInfoResponse": { + "type": "object", + "description": "This is the response from the Identity_GetInfo operation.", + "properties": { + "tenantId": { + "type": "string", + "description": "This is the AAD tenantId of the identity of the caller." + } + } + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "type": "string", + "enum": [ + "2018-10-01" + ], + "description": "This is the API version to use.", + "required": true, + "x-ms-enum": { + "name": "ApiVersion", + "modelAsString": true + } + }, + "MetadataParameter": { + "name": "Metadata", + "in": "header", + "type": "string", + "enum": [ + "true" + ], + "description": "This must be set to 'true'.", + "required": true, + "x-ms-parameter-location": "method" } -} \ No newline at end of file + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetAttestedData.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetAttestedData.json new file mode 100644 index 000000000000..24b5ca629bca --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetAttestedData.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "nonce": "abcde12345", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "encoding": "pkcs7", + "signature": "MIID2gYJKoZIhvcNAQcCoIIDyzCCA8cCAQExDzANBgkqhkiG9w0BAQsFADCBggYJKoZIhvcNAQcBoHUEc3sibm9uY2UiOiIxMTExMTExMTExIiwicGxhbiI6eyJuYW1lIjoiIiwicHJvZHVjdCI6IiIsInB1Ymxpc2hlciI6IiJ9LCJ2bUlkIjoiMDJhYWI4YTQtNzRlZi00NzZlLTgxODItZjZkMmJhNDE2NmE2In2gggI/MIICOzCCAaSgAwIBAgIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQQFADArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbTAeFw0xODExMDgxODUzMDRaFw0xODEyMDgxODUzMDNaMCsxKTAnBgNVBAMTIHRlc3RzdWJkb21haW4ubWV0YWRhdGEuYXp1cmUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEi0FVslYnUX+MneC7ERMU4ZM88z4J80r7RPgvzxCPNhXUQlWm3cmVRZMD8kKMv7brkvEsATP7Ak60/I/XEtOga4LGCvMaQa8I/MW8IhSyp2Vj015glAiV8TeUI5DuOIOS96lQvM+G7bt23swkIwVjm1u1ViTZiKKytwpY/EGqzQIDAQABo2AwXjBcBgNVHQEEVTBTgBAt3MRgJmEoUMiPy7k06cLfoS0wKzEpMCcGA1UEAxMgdGVzdHN1YmRvbWFpbi5tZXRhZGF0YS5henVyZS5jb22CEEFrBY1zd+aASShVyN0KzN0wDQYJKoZIhvcNAQEEBQADgYEAd87qiZnRlGIFQ5IEcL/A7ru23WSQAOBsNPt70Fg1GtaEHcYshKUJFhGwXOgZ11cY5wRfrSvEKuzvhAeIZwkvzkBjC04g8sRrjN5leLY5CsKzQhjN52TUMsHhqTM58tfAnICeTddQwn6LOgfqtYH5WO+F/VbFCwPstYUqjmQEYAoxgegwgeUCAQEwPzArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbQIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQsFADANBgkqhkiG9w0BAQEFAASBgCbkRKmQ1MdWZPVOrX7ZBKHQUWPFrQQNdjk3KB67GkY0W0Taxut4K7D2PmiflVEwxB92pTbaZZr/dldu1k1ab1YamHcVYdgZgxIkoOWohGR0ym8oL9JHjFMEqHUbEPtDwE8X+djtDd8TVdb6LYe77IXmz/VaX4whuejlSvQXjaL" + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetGalleryApplication.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetGalleryApplication.json new file mode 100644 index 000000000000..a998ac8becce --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetGalleryApplication.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "Metadata": "true", + "incarnationId": "b845c18d-b249-4c7a-a4c3-ffdd51757ccd" + }, + "responses": { + "200": { + "body": "{application binary package}" + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetIdentityInfo.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetIdentityInfo.json new file mode 100644 index 000000000000..ab702f77c2e2 --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetIdentityInfo.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "tenantId": "abd8daee-d393-4239-9377-883adda3d40f" + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetIdentityToken.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetIdentityToken.json new file mode 100644 index 000000000000..3c6f4846d006 --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetIdentityToken.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "Metadata": "true", + "resource": "https://vault.azure.net" + }, + "responses": { + "200": { + "body": { + "access_token": "dummytoken", + "client_id": "be5947ed-3560-4afe-9504-59967a63f810", + "expires_in": "3599", + "expires_on": "1541705014", + "ext_expires_in": "262800", + "not_before": "1508961830", + "resource": "https://va" + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetInstanceMetadata.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetInstanceMetadata.json new file mode 100644 index 000000000000..f28eb0df5cb4 --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/GetInstanceMetadata.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "compute": { + "azEnvironment": "AZUREPUBLICCLOUD", + "location": "westus", + "name": "examplevmname", + "offer": "Windows", + "osType": "linux", + "placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a", + "plan": { + "name": "planName", + "product": "planProduct", + "publisher": "planPublisher" + }, + "platformFaultDomain": "36", + "platformUpdateDomain": "42", + "publicKeys": [ + { + "keyData": "ssh-rsa 0", + "path": "/home/user/.ssh/authorized_keys0" + }, + { + "keyData": "ssh-rsa 1", + "path": "/home/user/.ssh/authorized_keys1" + } + ], + "publisher": "RDFE-Test-Microsoft-Windows-Server-Group", + "resourceGroupName": "macikgo-test-may-23", + "resourceId": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname", + "sku": "Windows-Server-2012-R2-Datacenter", + "storageProfile": { + "dataDisks": [ + { + "caching": "None", + "createOption": "Empty", + "diskSizeGB": "1024", + "image": { + "uri": "" + }, + "lun": "0", + "managedDisk": { + "id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampledatadiskname", + "storageAccountType": "Standard_LRS" + }, + "name": "exampledatadiskname", + "vhd": { + "uri": "" + }, + "writeAcceleratorEnabled": "false" + } + ], + "imageReference": { + "id": "", + "offer": "UbuntuServer", + "publisher": "Canonical", + "sku": "16.04.0-LTS", + "version": "latest" + }, + "osDisk": { + "caching": "ReadWrite", + "createOption": "FromImage", + "diskSizeGB": "30", + "diffDiskSettings": { + "option": "Local" + }, + "encryptionSettings": { + "enabled": "false" + }, + "image": { + "uri": "" + }, + "managedDisk": { + "id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampleosdiskname", + "storageAccountType": "Standard_LRS" + }, + "name": "exampleosdiskname", + "osType": "Linux", + "vhd": { + "uri": "" + }, + "writeAcceleratorEnabled": "false" + } + }, + "subscriptionId": "8d10da13-8125-4ba9-a717-bf7490507b3d", + "tags": "baz:bash;foo:bar", + "version": "15.05.22", + "vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6", + "vmScaleSetName": "crpteste9vflji9", + "vmSize": "Standard_A3", + "zone": "" + } + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/ListGalleryApplications.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/ListGalleryApplications.json new file mode 100644 index 000000000000..f288b6c1e3a8 --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/examples/ListGalleryApplications.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "applications": [ + { + "tags": "0", + "enableHealthCheck": true, + "packageFile": { + "contentType": "zip", + "fileName": "myapp.zip", + "id": "/subscriptions/12345678-65F4-4A5A-839F-E7CFB49F1541/resourceGroups/rgName/providers/Microsoft.Compute/galleries/msit-certified/applications/application/versions/1.0", + "incarnationId": "b845c18d-b249-4c7a-a4c3-ffdd51757ccd" + } + } + ] + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/imds.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/imds.json new file mode 100644 index 000000000000..38725e99bda6 --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-01/imds.json @@ -0,0 +1,950 @@ +{ + "swagger": "2.0", + "info": { + "title": "InstanceMetadataClient", + "description": "The Azure Instance Metadata Client", + "version": "2019-08-01" + }, + "host": "169.254.169.254", + "basePath": "/metadata", + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/applications": { + "get": { + "operationId": "GalleryApplications_List", + "description": "Get list of the gallery applications.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplications" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get list of the gallery applications": { + "$ref": "./examples/ListGalleryApplications.json" + } + } + } + }, + "/applications/app": { + "get": { + "operationId": "GalleryApplication_Get", + "description": "Get application package.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "name": "incarnationId", + "in": "query", + "required": true, + "type": "string", + "description": "Incarnation Id of the gallery application" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ApplicationResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get gallery application package": { + "$ref": "./examples/GetGalleryApplication.json" + } + } + } + }, + "/instance": { + "get": { + "operationId": "Instances_GetMetadata", + "description": "Get Instance Metadata for the Virtual Machine.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Instance" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Instance Metadata for the VM": { + "$ref": "./examples/GetInstanceMetadata.json" + } + } + } + }, + "/attested/document": { + "get": { + "operationId": "Attested_GetDocument", + "description": "Get Attested Data for the Virtual Machine.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "nonce", + "in": "query", + "required": false, + "type": "string", + "description": "This is a string of up to 32 random alphanumeric characters." + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AttestedData" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Attested Data for the VM": { + "$ref": "./examples/GetAttestedData.json" + } + } + } + }, + "/identity/oauth2/token": { + "get": { + "tags": [ + "Get token" + ], + "description": "Get a Token from Azure AD", + "operationId": "Identity_GetToken", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "name": "resource", + "in": "query", + "type": "string", + "description": "This is the urlencoded identifier URI of the sink resource for the requested Azure AD token. The resulting token contains the corresponding aud for this resource.", + "required": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "client_id", + "in": "query", + "type": "string", + "description": "This identifies, by Azure AD client id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with object_id and msi_res_id.", + "required": false + }, + { + "name": "object_id", + "in": "query", + "type": "string", + "description": "This identifies, by Azure AD object id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and msi_res_id.", + "required": false + }, + { + "name": "msi_res_id", + "in": "query", + "type": "string", + "description": "This identifies, by urlencoded ARM resource id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and object_id.", + "required": false + }, + { + "name": "authority", + "in": "query", + "type": "string", + "description": "This indicates the authority to request AAD tokens from. Defaults to the known authority of the identity to be used.", + "required": false + }, + { + "name": "bypass_cache", + "in": "query", + "type": "string", + "enum": [ + "true" + ], + "description": "If provided, the value must be 'true'. This indicates to the server that the token must be retrieved from Azure AD and cannot be retrieved from an internal cache.", + "required": false, + "x-ms-enum": { + "name": "BypassCache", + "modelAsString": true + } + } + ], + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/IdentityTokenResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/IdentityErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Identity Token for the VM": { + "$ref": "./examples/GetIdentityToken.json" + } + } + } + }, + "/identity/info": { + "get": { + "tags": [ + "Get metadata information" + ], + "description": "Get information about AAD Metadata", + "operationId": "Identity_GetInfo", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/IdentityInfoResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/IdentityErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Identity Info for the VM": { + "$ref": "./examples/GetIdentityInfo.json" + } + } + } + } + }, + "definitions": { + "Compute": { + "type": "object", + "properties": { + "azEnvironment": { + "type": "string", + "description": "This is the name of the environment in which the VM is running." + }, + "location": { + "type": "string", + "description": "This is the Azure Region in which the VM is running." + }, + "name": { + "type": "string", + "description": "This is the name of the VM." + }, + "offer": { + "type": "string", + "description": "This is the offer information for the VM image. This value is only present for images deployed from the Azure Image Gallery." + }, + "osType": { + "type": "string", + "description": "This value indicates the type of OS the VM is running, either Linux or Windows." + }, + "placementGroupId": { + "type": "string", + "description": "This is the placement group of your Virtual Machine Scale Set." + }, + "plan": { + "type": "object", + "description": "This contains the data about the plan.", + "$ref": "#/definitions/PlanProperties" + }, + "publicKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicKeysProperties" + }, + "description": "This is information about the SSH certificate" + }, + "platformFaultDomain": { + "type": "string", + "description": "This is the fault domain in which the VM." + }, + "platformUpdateDomain": { + "type": "string", + "description": "This is the update domain in which the VM." + }, + "provider": { + "type": "string", + "description": "This is the provider of the VM." + }, + "publisher": { + "type": "string", + "description": "This is the publisher of the VM image." + }, + "resourceGroupName": { + "type": "string", + "description": "This is the resource group for the VM." + }, + "resourceId": { + "type": "string", + "description": "This is the fully qualified ID for the VM." + }, + "sku": { + "type": "string", + "description": "This is the specific SKU for the VM image." + }, + "storageProfile": { + "type": "object", + "description": "This contains the data about the storage disks associated with the VM.", + "$ref": "#/definitions/StorageProfile" + }, + "subscriptionId": { + "type": "string", + "description": "This is the Azure subscription for the VM." + }, + "tags": { + "type": "string", + "description": "This is the list of tags for your VM." + }, + "version": { + "type": "string", + "description": "This is the version of the VM image." + }, + "vmId": { + "type": "string", + "description": "This is the unique identifier for the VM." + }, + "vmScaleSetName": { + "type": "string", + "description": "This is the resource name of the VMSS." + }, + "vmSize": { + "type": "string", + "description": "This is the size of the VM." + }, + "zone": { + "type": "string", + "description": "This is the availability zone of the VM." + } + }, + "description": "Compute Metadata" + }, + "Network": { + "type": "object", + "properties": { + "interface": { + "type": "array", + "description": "This contains data about the network interface.", + "items": { + "type": "object", + "$ref": "#/definitions/NetworkInterface" + } + } + }, + "description": "Network Metadata" + }, + "NetworkInterface": { + "type": "object", + "description": "This contains data about the network interface.", + "properties": { + "ipv4": { + "type": "object", + "description": "This contains the IPv4 address.", + "properties": { + "ipAddress": { + "type": "array", + "description": "This is the IP address", + "items": { + "type": "object", + "description": "This contains the IPv4 properties.", + "$ref": "#/definitions/Ipv4Properties" + } + }, + "subnet": { + "type": "array", + "description": "This is the subnet", + "items": { + "type": "object", + "description": "This contains the subnet properties.", + "$ref": "#/definitions/SubnetProperties" + } + } + } + }, + "ipv6": { + "type": "object", + "description": "This contains the IPv6 address.", + "properties": { + "ipAddress": { + "type": "array", + "description": "This is the IP address", + "items": { + "type": "object", + "description": "This contains the IPv6 properties.", + "$ref": "#/definitions/Ipv6Properties" + } + } + } + }, + "macAddress": { + "type": "string", + "description": "This is the MAC address of the interface." + } + } + }, + "PlanProperties": { + "type": "object", + "description": "This contains the data about the plan.", + "properties": { + "name": { + "type": "string", + "description": "This is the Plan ID." + }, + "publisher": { + "type": "string", + "description": "This is the publisher ID." + }, + "product": { + "type": "string", + "description": "This is the product of the image from the Marketplace." + } + } + }, + "PublicKeysProperties": { + "type": "object", + "description": "This contains the data about the public key.", + "properties": { + "path": { + "type": "string", + "description": "This specifies the full path on the VM where the SSH public key is stored." + }, + "keyData": { + "type": "string", + "description": "This is the SSH public key certificate used to authenticate with the VM." + } + } + }, + "Ipv4Properties": { + "type": "object", + "description": "This contains the IPv4 properties.", + "properties": { + "privateIpAddress": { + "type": "string", + "description": "This is the private IP address assigned to the interface." + }, + "publicIpAddress": { + "type": "string", + "description": "This is the public IP address assigned to the interface." + } + } + }, + "Ipv6Properties": { + "type": "object", + "description": "This contains the IPv6 properties.", + "properties": { + "privateIpAddress": { + "type": "string", + "description": "This is the private IPv6 address assigned to the interface." + } + } + }, + "SubnetProperties": { + "type": "object", + "description": "This contains the properties of the subnet.", + "properties": { + "address": { + "type": "string", + "description": "This is the address range of the subnet." + }, + "prefix": { + "type": "string", + "description": "This is the prefix of the subnet." + } + } + }, + "StorageProfile": { + "type": "object", + "description": "This contains the data about the storage disks associated with the VM.", + "properties": { + "imageReference": { + "type": "object", + "$ref": "#/definitions/ImageReference", + "description": "Image information" + }, + "osDisk": { + "type": "object", + "$ref": "#/definitions/OsDisk", + "description": "OS disk information" + }, + "dataDisks": { + "type": "array", + "description": "Data disk information", + "items": { + "type": "object", + "description": "This contains information about the data disk.", + "$ref": "#/definitions/DataDisk" + } + } + } + }, + "ImageReference": { + "type": "object", + "description": "This contains information about the OS image.", + "properties": { + "id": { + "type": "string", + "description": "This is the resource ID." + }, + "offer": { + "type": "string", + "description": "This is the offer of the platform or marketplace image." + }, + "publisher": { + "type": "string", + "description": "This is the image publisher." + }, + "sku": { + "type": "string", + "description": "This is the image SKU." + }, + "version": { + "type": "string", + "description": "This is the version of the platform or marketplace image." + } + } + }, + "OsDisk": { + "type": "object", + "description": "This contains information about the OS disk used by the VM.", + "properties": { + "caching": { + "type": "string", + "description": "This is the the caching requirements." + }, + "createOption": { + "type": "string", + "description": "This is information about how the VM was created." + }, + "diffDiskSettings": { + "type": "object", + "description": "This is the ephemeral disk settings.", + "$ref": "#/definitions/DiffDiskSettings" + }, + "diskSizeGB": { + "type": "string", + "description": "This is the size of the disk in GB." + }, + "encryptionSettings": { + "type": "object", + "description": "This is the encryption settings for the disk.", + "$ref": "#/definitions/EncryptionSettings" + }, + "image": { + "type": "object", + "description": "This is the source user image virtual hard disk.", + "$ref": "#/definitions/DiskImage" + }, + "managedDisk": { + "type": "object", + "description": "This is managed disk parameters.", + "$ref": "#/definitions/ManagedDisk" + }, + "name": { + "type": "string", + "description": "This is the disk name." + }, + "osType": { + "type": "string", + "description": "This is the type of OS included in the disk." + }, + "vhd": { + "type": "object", + "description": "This is the virtual hard disk.", + "$ref": "#/definitions/VirtualHardDisk" + }, + "writeAcceleratorEnabled": { + "type": "string", + "description": "This specifies whether or not writeAccelerator is enabled on the disk." + } + } + }, + "DataDisk": { + "type": "object", + "description": "This contains information about the data disk.", + "properties": { + "caching": { + "type": "string", + "description": "This is the the caching requirements." + }, + "createOption": { + "type": "string", + "description": "This is information about how the VM was created." + }, + "diskSizeGB": { + "type": "string", + "description": "This is the size of the disk in GB." + }, + "image": { + "type": "object", + "description": "This is the source user image virtual hard disk.", + "$ref": "#/definitions/DiskImage" + }, + "lun": { + "type": "string", + "description": "This is the logical unit number of the disk." + }, + "managedDisk": { + "type": "object", + "description": "This is managed disk parameters.", + "$ref": "#/definitions/ManagedDisk" + }, + "name": { + "type": "string", + "description": "This is the disk name." + }, + "vhd": { + "type": "object", + "description": "This is the virtual hard disk.", + "$ref": "#/definitions/VirtualHardDisk" + }, + "writeAcceleratorEnabled": { + "type": "string", + "description": "This specifies whether or not writeAccelerator is enabled on the disk." + } + } + }, + "EncryptionSettings": { + "type": "object", + "description": "This is the encryption settings for the disk.", + "properties": { + "enabled": { + "type": "string", + "description": "This specifies whether or not disk encryption is enabled on the VM." + } + } + }, + "DiffDiskSettings": { + "type": "object", + "description": "This is the ephemeral disk settings.", + "properties": { + "option": { + "type": "string", + "description": "This specifies the ephemeral disk settings." + } + } + }, + "DiskImage": { + "type": "object", + "description": "This is the source user image virtual hard disk.", + "properties": { + "uri": { + "type": "string", + "description": "This is the uri of the virtual hard disk." + } + } + }, + "ManagedDisk": { + "type": "object", + "description": "This is managed disk parameters.", + "properties": { + "id": { + "type": "string", + "description": "This is the resource ID." + }, + "storageAccountType": { + "type": "string", + "description": "This is the storage account type for the managed disk." + } + } + }, + "VirtualHardDisk": { + "type": "object", + "description": "This is the virtual hard disk.", + "properties": { + "uri": { + "type": "string", + "description": "This is the uri of the virtual hard disk." + } + } + }, + "ApplicationResponse": { + "type": "string", + "description": "This is a binary string containing the application." + }, + "GalleryApplications": { + "type": "object", + "description": "This is the response from the GalleryApplications_List operation.", + "properties": { + "applications": { + "type": "array", + "description": "List of gallery applications", + "items": { + "type": "object", + "description": "This contains information about the gallery application.", + "$ref": "#/definitions/GalleryApplication" + } + } + } + }, + "GalleryApplication": { + "type": "object", + "description": "This contains information about the gallery application.", + "properties": { + "tags": { + "type": "string", + "description": "Optional attribute to passthrough value for more generic context" + }, + "enableHealthCheck": { + "type": "boolean", + "description": "It indicates if this application reports health status" + }, + "packageFile": { + "$ref": "#/definitions/PackageFile", + "description": "Package properties of the gallery application" + } + } + }, + "PackageFile": { + "type": "object", + "description": "Package properties of the gallery application.", + "properties": { + "id": { + "type": "string", + "description": "Resource id of the gallery application" + }, + "incarnationId": { + "type": "string", + "description": "Unique identifier for this particular application instance" + }, + "fileName": { + "type": "string", + "description": "Application package file name" + }, + "contentType": { + "type": "string", + "description": "Application package type" + } + } + }, + "Instance": { + "type": "object", + "description": "This is the response from the Instance_GetMetadata operation.", + "properties": { + "compute": { + "$ref": "#/definitions/Compute", + "description": "Compute Metadata" + }, + "network": { + "$ref": "#/definitions/Network", + "description": "Network Metadata" + } + } + }, + "AttestedData": { + "type": "object", + "description": "This is the response from the Attested_GetDocument operation.", + "properties": { + "signature": { + "type": "string", + "description": "This is the encoded string containing the VM ID, plan information, public key, timestamp, and nonce value." + }, + "encoding": { + "type": "string", + "description": "This is the encoding scheme of the signature." + } + } + }, + "ErrorResponse": { + "description": "This is the response from an operation in the case an error occurs.", + "type": "object", + "properties": { + "error": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + }, + "IdentityErrorResponse": { + "type": "object", + "description": "This is the response from an Identity operation in the case an error occurs.", + "properties": { + "error": { + "type": "string", + "description": "Error code", + "enum": [ + "invalid_request", + "unauthorized_client", + "access_denied", + "unsupported_response_type", + "invalid_scope", + "server_error", + "service_unavailable", + "bad_request", + "forbidden", + "not_found", + "method_not_allowed", + "too_many_requests" + ], + "x-ms-enum": { + "name": "Error", + "modelAsString": true + } + }, + "error_description": { + "type": "string", + "description": "Error message indicating why the operation failed." + } + } + }, + "IdentityTokenResponse": { + "type": "object", + "description": "This is the response from the Identity_GetToken operation.", + "properties": { + "access_token": { + "type": "string", + "description": "This is the requested access token. The app can use this token to authenticate to the sink resource." + }, + "expires_in": { + "type": "string", + "description": "This is how long the access token is valid (in seconds)." + }, + "expires_on": { + "type": "string", + "description": "This is 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. This value is used to determine the lifetime of cached tokens." + }, + "ext_expires_in": { + "type": "string", + "description": "This indicates the extended lifetime of the token (in seconds)." + }, + "not_before": { + "type": "string", + "description": "This is the time when the access token becomes effective. The date is represented as the number of seconds from 1970-01-01T0:0:0Z UTC until the expiration time." + }, + "resource": { + "type": "string", + "description": "This is the app ID URI of the sink resource." + }, + "token_type": { + "type": "string", + "description": "This indicates the token type value." + }, + "client_id": { + "type": "string", + "description": "This is the client_id specified in the request, if any." + }, + "object_id": { + "type": "string", + "description": "This is the object_id specified in the request, if any." + }, + "msi_res_id": { + "type": "string", + "description": "This is the msi_res_id specified in the request, if any." + } + } + }, + "IdentityInfoResponse": { + "type": "object", + "description": "This is the response from the Identity_GetInfo operation.", + "properties": { + "tenantId": { + "type": "string", + "description": "This is the AAD tenantId of the identity of the caller." + } + } + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "type": "string", + "enum": [ + "2018-10-01" + ], + "description": "This is the API version to use.", + "required": true, + "x-ms-enum": { + "name": "ApiVersion", + "modelAsString": true + } + }, + "MetadataParameter": { + "name": "Metadata", + "in": "header", + "type": "string", + "enum": [ + "true" + ], + "description": "This must be set to 'true'.", + "required": true, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetAttestedData.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetAttestedData.json new file mode 100644 index 000000000000..3fc9a53805eb --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetAttestedData.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2019-08-15", + "nonce": "abcde12345", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "encoding": "pkcs7", + "signature": "MIID2gYJKoZIhvcNAQcCoIIDyzCCA8cCAQExDzANBgkqhkiG9w0BAQsFADCBggYJKoZIhvcNAQcBoHUEc3sibm9uY2UiOiIxMTExMTExMTExIiwicGxhbiI6eyJuYW1lIjoiIiwicHJvZHVjdCI6IiIsInB1Ymxpc2hlciI6IiJ9LCJ2bUlkIjoiMDJhYWI4YTQtNzRlZi00NzZlLTgxODItZjZkMmJhNDE2NmE2In2gggI/MIICOzCCAaSgAwIBAgIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQQFADArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbTAeFw0xODExMDgxODUzMDRaFw0xODEyMDgxODUzMDNaMCsxKTAnBgNVBAMTIHRlc3RzdWJkb21haW4ubWV0YWRhdGEuYXp1cmUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEi0FVslYnUX+MneC7ERMU4ZM88z4J80r7RPgvzxCPNhXUQlWm3cmVRZMD8kKMv7brkvEsATP7Ak60/I/XEtOga4LGCvMaQa8I/MW8IhSyp2Vj015glAiV8TeUI5DuOIOS96lQvM+G7bt23swkIwVjm1u1ViTZiKKytwpY/EGqzQIDAQABo2AwXjBcBgNVHQEEVTBTgBAt3MRgJmEoUMiPy7k06cLfoS0wKzEpMCcGA1UEAxMgdGVzdHN1YmRvbWFpbi5tZXRhZGF0YS5henVyZS5jb22CEEFrBY1zd+aASShVyN0KzN0wDQYJKoZIhvcNAQEEBQADgYEAd87qiZnRlGIFQ5IEcL/A7ru23WSQAOBsNPt70Fg1GtaEHcYshKUJFhGwXOgZ11cY5wRfrSvEKuzvhAeIZwkvzkBjC04g8sRrjN5leLY5CsKzQhjN52TUMsHhqTM58tfAnICeTddQwn6LOgfqtYH5WO+F/VbFCwPstYUqjmQEYAoxgegwgeUCAQEwPzArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbQIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQsFADANBgkqhkiG9w0BAQEFAASBgCbkRKmQ1MdWZPVOrX7ZBKHQUWPFrQQNdjk3KB67GkY0W0Taxut4K7D2PmiflVEwxB92pTbaZZr/dldu1k1ab1YamHcVYdgZgxIkoOWohGR0ym8oL9JHjFMEqHUbEPtDwE8X+djtDd8TVdb6LYe77IXmz/VaX4whuejlSvQXjaL" + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetGalleryApplication.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetGalleryApplication.json new file mode 100644 index 000000000000..59bd92b36f0f --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetGalleryApplication.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2019-08-15", + "Metadata": "true", + "incarnationId": "b845c18d-b249-4c7a-a4c3-ffdd51757ccd" + }, + "responses": { + "200": { + "body": "{application binary package}" + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetIdentityInfo.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetIdentityInfo.json new file mode 100644 index 000000000000..75e62200dae0 --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetIdentityInfo.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-08-15", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "tenantId": "abd8daee-d393-4239-9377-883adda3d40f" + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetIdentityToken.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetIdentityToken.json new file mode 100644 index 000000000000..cc654126c6a6 --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetIdentityToken.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-08-15", + "Metadata": "true", + "resource": "https://vault.azure.net" + }, + "responses": { + "200": { + "body": { + "access_token": "dummytoken", + "client_id": "be5947ed-3560-4afe-9504-59967a63f810", + "expires_in": "3599", + "expires_on": "1541705014", + "ext_expires_in": "262800", + "not_before": "1508961830", + "resource": "https://va" + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetInstanceMetadata.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetInstanceMetadata.json new file mode 100644 index 000000000000..57c4cd273f4f --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/GetInstanceMetadata.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "api-version": "2019-08-15", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "compute": { + "azEnvironment": "AZUREPUBLICCLOUD", + "location": "westus", + "name": "examplevmname", + "offer": "Windows", + "osType": "linux", + "placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a", + "plan": { + "name": "planName", + "product": "planProduct", + "publisher": "planPublisher" + }, + "platformFaultDomain": "36", + "platformUpdateDomain": "42", + "publicKeys": [ + { + "keyData": "ssh-rsa 0", + "path": "/home/user/.ssh/authorized_keys0" + }, + { + "keyData": "ssh-rsa 1", + "path": "/home/user/.ssh/authorized_keys1" + } + ], + "publisher": "RDFE-Test-Microsoft-Windows-Server-Group", + "resourceGroupName": "macikgo-test-may-23", + "resourceId": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname", + "sku": "Windows-Server-2012-R2-Datacenter", + "storageProfile": { + "dataDisks": [ + { + "caching": "None", + "createOption": "Empty", + "diskSizeGB": "1024", + "image": { + "uri": "" + }, + "lun": "0", + "managedDisk": { + "id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampledatadiskname", + "storageAccountType": "Standard_LRS" + }, + "name": "exampledatadiskname", + "vhd": { + "uri": "" + }, + "writeAcceleratorEnabled": "false" + } + ], + "imageReference": { + "id": "", + "offer": "UbuntuServer", + "publisher": "Canonical", + "sku": "16.04.0-LTS", + "version": "latest" + }, + "osDisk": { + "caching": "ReadWrite", + "createOption": "FromImage", + "diskSizeGB": "30", + "diffDiskSettings": { + "option": "Local" + }, + "encryptionSettings": { + "enabled": "false" + }, + "image": { + "uri": "" + }, + "managedDisk": { + "id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampleosdiskname", + "storageAccountType": "Standard_LRS" + }, + "name": "exampleosdiskname", + "osType": "Linux", + "vhd": { + "uri": "" + }, + "writeAcceleratorEnabled": "false" + } + }, + "subscriptionId": "8d10da13-8125-4ba9-a717-bf7490507b3d", + "tags": "baz:bash;foo:bar", + "version": "15.05.22", + "vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6", + "vmScaleSetName": "crpteste9vflji9", + "vmSize": "Standard_A3", + "zone": "" + } + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/ListGalleryApplications.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/ListGalleryApplications.json new file mode 100644 index 000000000000..7b12a01de0e1 --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/examples/ListGalleryApplications.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-08-15", + "Metadata": "true" + }, + "responses": { + "200": { + "body": { + "applications": [ + { + "tags": "0", + "enableHealthCheck": true, + "packageFile": { + "contentType": "zip", + "fileName": "myapp.zip", + "id": "/subscriptions/12345678-65F4-4A5A-839F-E7CFB49F1541/resourceGroups/rgName/providers/Microsoft.Compute/galleries/msit-certified/applications/application/versions/1.0", + "incarnationId": "b845c18d-b249-4c7a-a4c3-ffdd51757ccd" + } + } + ] + } + } + } +} diff --git a/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/imds.json b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/imds.json new file mode 100644 index 000000000000..8df8b193f85d --- /dev/null +++ b/specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2019-08-15/imds.json @@ -0,0 +1,968 @@ +{ + "swagger": "2.0", + "info": { + "title": "InstanceMetadataClient", + "description": "The Azure Instance Metadata Client", + "version": "2019-08-15" + }, + "host": "169.254.169.254", + "basePath": "/metadata", + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "basic_auth": { + "type": "basic", + "description": "A Basic authentication flow" + } + }, + "paths": { + "/applications": { + "get": { + "operationId": "GalleryApplications_List", + "description": "Get list of the gallery applications.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplications" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get list of the gallery applications": { + "$ref": "./examples/ListGalleryApplications.json" + } + } + } + }, + "/applications/app": { + "get": { + "operationId": "GalleryApplication_Get", + "description": "Get application package.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "name": "incarnationId", + "in": "query", + "required": true, + "type": "string", + "description": "Incarnation Id of the gallery application" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ApplicationResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get gallery application package": { + "$ref": "./examples/GetGalleryApplication.json" + } + } + } + }, + "/instance": { + "get": { + "operationId": "Instances_GetMetadata", + "description": "Get Instance Metadata for the Virtual Machine.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Instance" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Instance Metadata for the VM": { + "$ref": "./examples/GetInstanceMetadata.json" + } + } + } + }, + "/attested/document": { + "get": { + "operationId": "Attested_GetDocument", + "description": "Get Attested Data for the Virtual Machine.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "nonce", + "in": "query", + "required": false, + "type": "string", + "description": "This is a string of up to 32 random alphanumeric characters." + }, + { + "$ref": "#/parameters/MetadataParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AttestedData" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Attested Data for the VM": { + "$ref": "./examples/GetAttestedData.json" + } + } + } + }, + "/identity/oauth2/token": { + "get": { + "tags": [ + "Get token" + ], + "description": "Get a Token from Azure AD", + "operationId": "Identity_GetToken", + "produces": [ + "application/json" + ], + "security": [ + {}, + { + "basic_auth": [] + } + ], + "parameters": [ + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "name": "resource", + "in": "query", + "type": "string", + "description": "This is the urlencoded identifier URI of the sink resource for the requested Azure AD token. The resulting token contains the corresponding aud for this resource.", + "required": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "client_id", + "in": "query", + "type": "string", + "description": "This identifies, by Azure AD client id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with object_id and msi_res_id.", + "required": false + }, + { + "name": "object_id", + "in": "query", + "type": "string", + "description": "This identifies, by Azure AD object id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and msi_res_id.", + "required": false + }, + { + "name": "msi_res_id", + "in": "query", + "type": "string", + "description": "This identifies, by urlencoded ARM resource id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and object_id.", + "required": false + }, + { + "name": "authority", + "in": "query", + "type": "string", + "description": "This indicates the authority to request AAD tokens from. Defaults to the known authority of the identity to be used.", + "required": false + }, + { + "name": "bypass_cache", + "in": "query", + "type": "string", + "enum": [ + "true" + ], + "description": "If provided, the value must be 'true'. This indicates to the server that the token must be retrieved from Azure AD and cannot be retrieved from an internal cache.", + "required": false, + "x-ms-enum": { + "name": "BypassCache", + "modelAsString": true + } + } + ], + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/IdentityTokenResponse" + } + }, + "default": { + "headers": { + "Www-Authenticate": { + "type": "string", + "description": "This is the response header containing a challenge for the Basic scheme with a realm value" + } + }, + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/IdentityErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Identity Token for the VM": { + "$ref": "./examples/GetIdentityToken.json" + } + } + } + }, + "/identity/info": { + "get": { + "tags": [ + "Get metadata information" + ], + "description": "Get information about AAD Metadata", + "operationId": "Identity_GetInfo", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/MetadataParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successful operation", + "schema": { + "$ref": "#/definitions/IdentityInfoResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/IdentityErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Identity Info for the VM": { + "$ref": "./examples/GetIdentityInfo.json" + } + } + } + } + }, + "definitions": { + "Compute": { + "type": "object", + "properties": { + "azEnvironment": { + "type": "string", + "description": "This is the name of the environment in which the VM is running." + }, + "location": { + "type": "string", + "description": "This is the Azure Region in which the VM is running." + }, + "name": { + "type": "string", + "description": "This is the name of the VM." + }, + "offer": { + "type": "string", + "description": "This is the offer information for the VM image. This value is only present for images deployed from the Azure Image Gallery." + }, + "osType": { + "type": "string", + "description": "This value indicates the type of OS the VM is running, either Linux or Windows." + }, + "placementGroupId": { + "type": "string", + "description": "This is the placement group of your Virtual Machine Scale Set." + }, + "plan": { + "type": "object", + "description": "This contains the data about the plan.", + "$ref": "#/definitions/PlanProperties" + }, + "publicKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicKeysProperties" + }, + "description": "This is information about the SSH certificate" + }, + "platformFaultDomain": { + "type": "string", + "description": "This is the fault domain in which the VM." + }, + "platformUpdateDomain": { + "type": "string", + "description": "This is the update domain in which the VM." + }, + "provider": { + "type": "string", + "description": "This is the provider of the VM." + }, + "publisher": { + "type": "string", + "description": "This is the publisher of the VM image." + }, + "resourceGroupName": { + "type": "string", + "description": "This is the resource group for the VM." + }, + "resourceId": { + "type": "string", + "description": "This is the fully qualified ID for the VM." + }, + "sku": { + "type": "string", + "description": "This is the specific SKU for the VM image." + }, + "storageProfile": { + "type": "object", + "description": "This contains the data about the storage disks associated with the VM.", + "$ref": "#/definitions/StorageProfile" + }, + "subscriptionId": { + "type": "string", + "description": "This is the Azure subscription for the VM." + }, + "tags": { + "type": "string", + "description": "This is the list of tags for your VM." + }, + "version": { + "type": "string", + "description": "This is the version of the VM image." + }, + "vmId": { + "type": "string", + "description": "This is the unique identifier for the VM." + }, + "vmScaleSetName": { + "type": "string", + "description": "This is the resource name of the VMSS." + }, + "vmSize": { + "type": "string", + "description": "This is the size of the VM." + }, + "zone": { + "type": "string", + "description": "This is the availability zone of the VM." + } + }, + "description": "Compute Metadata" + }, + "Network": { + "type": "object", + "properties": { + "interface": { + "type": "array", + "description": "This contains data about the network interface.", + "items": { + "type": "object", + "$ref": "#/definitions/NetworkInterface" + } + } + }, + "description": "Network Metadata" + }, + "NetworkInterface": { + "type": "object", + "description": "This contains data about the network interface.", + "properties": { + "ipv4": { + "type": "object", + "description": "This contains the IPv4 address.", + "properties": { + "ipAddress": { + "type": "array", + "description": "This is the IP address", + "items": { + "type": "object", + "description": "This contains the IPv4 properties.", + "$ref": "#/definitions/Ipv4Properties" + } + }, + "subnet": { + "type": "array", + "description": "This is the subnet", + "items": { + "type": "object", + "description": "This contains the subnet properties.", + "$ref": "#/definitions/SubnetProperties" + } + } + } + }, + "ipv6": { + "type": "object", + "description": "This contains the IPv6 address.", + "properties": { + "ipAddress": { + "type": "array", + "description": "This is the IP address", + "items": { + "type": "object", + "description": "This contains the IPv6 properties.", + "$ref": "#/definitions/Ipv6Properties" + } + } + } + }, + "macAddress": { + "type": "string", + "description": "This is the MAC address of the interface." + } + } + }, + "PlanProperties": { + "type": "object", + "description": "This contains the data about the plan.", + "properties": { + "name": { + "type": "string", + "description": "This is the Plan ID." + }, + "publisher": { + "type": "string", + "description": "This is the publisher ID." + }, + "product": { + "type": "string", + "description": "This is the product of the image from the Marketplace." + } + } + }, + "PublicKeysProperties": { + "type": "object", + "description": "This contains the data about the public key.", + "properties": { + "path": { + "type": "string", + "description": "This specifies the full path on the VM where the SSH public key is stored." + }, + "keyData": { + "type": "string", + "description": "This is the SSH public key certificate used to authenticate with the VM." + } + } + }, + "Ipv4Properties": { + "type": "object", + "description": "This contains the IPv4 properties.", + "properties": { + "privateIpAddress": { + "type": "string", + "description": "This is the private IP address assigned to the interface." + }, + "publicIpAddress": { + "type": "string", + "description": "This is the public IP address assigned to the interface." + } + } + }, + "Ipv6Properties": { + "type": "object", + "description": "This contains the IPv6 properties.", + "properties": { + "privateIpAddress": { + "type": "string", + "description": "This is the private IPv6 address assigned to the interface." + } + } + }, + "SubnetProperties": { + "type": "object", + "description": "This contains the properties of the subnet.", + "properties": { + "address": { + "type": "string", + "description": "This is the address range of the subnet." + }, + "prefix": { + "type": "string", + "description": "This is the prefix of the subnet." + } + } + }, + "StorageProfile": { + "type": "object", + "description": "This contains the data about the storage disks associated with the VM.", + "properties": { + "imageReference": { + "type": "object", + "$ref": "#/definitions/ImageReference", + "description": "Image information" + }, + "osDisk": { + "type": "object", + "$ref": "#/definitions/OsDisk", + "description": "OS disk information" + }, + "dataDisks": { + "type": "array", + "description": "Data disk information", + "items": { + "type": "object", + "description": "This contains information about the data disk.", + "$ref": "#/definitions/DataDisk" + } + } + } + }, + "ImageReference": { + "type": "object", + "description": "This contains information about the OS image.", + "properties": { + "id": { + "type": "string", + "description": "This is the resource ID." + }, + "offer": { + "type": "string", + "description": "This is the offer of the platform or marketplace image." + }, + "publisher": { + "type": "string", + "description": "This is the image publisher." + }, + "sku": { + "type": "string", + "description": "This is the image SKU." + }, + "version": { + "type": "string", + "description": "This is the version of the platform or marketplace image." + } + } + }, + "OsDisk": { + "type": "object", + "description": "This contains information about the OS disk used by the VM.", + "properties": { + "caching": { + "type": "string", + "description": "This is the caching requirements." + }, + "createOption": { + "type": "string", + "description": "This is information about how the VM was created." + }, + "diffDiskSettings": { + "type": "object", + "description": "This is the ephemeral disk settings.", + "$ref": "#/definitions/DiffDiskSettings" + }, + "diskSizeGB": { + "type": "string", + "description": "This is the size of the disk in GB." + }, + "encryptionSettings": { + "type": "object", + "description": "This is the encryption settings for the disk.", + "$ref": "#/definitions/EncryptionSettings" + }, + "image": { + "type": "object", + "description": "This is the source user image virtual hard disk.", + "$ref": "#/definitions/DiskImage" + }, + "managedDisk": { + "type": "object", + "description": "This is managed disk parameters.", + "$ref": "#/definitions/ManagedDisk" + }, + "name": { + "type": "string", + "description": "This is the disk name." + }, + "osType": { + "type": "string", + "description": "This is the type of OS included in the disk." + }, + "vhd": { + "type": "object", + "description": "This is the virtual hard disk.", + "$ref": "#/definitions/VirtualHardDisk" + }, + "writeAcceleratorEnabled": { + "type": "string", + "description": "This specifies whether or not writeAccelerator is enabled on the disk." + } + } + }, + "DataDisk": { + "type": "object", + "description": "This contains information about the data disk.", + "properties": { + "caching": { + "type": "string", + "description": "This is the caching requirements." + }, + "createOption": { + "type": "string", + "description": "This is information about how the VM was created." + }, + "diskSizeGB": { + "type": "string", + "description": "This is the size of the disk in GB." + }, + "image": { + "type": "object", + "description": "This is the source user image virtual hard disk.", + "$ref": "#/definitions/DiskImage" + }, + "lun": { + "type": "string", + "description": "This is the logical unit number of the disk." + }, + "managedDisk": { + "type": "object", + "description": "This is managed disk parameters.", + "$ref": "#/definitions/ManagedDisk" + }, + "name": { + "type": "string", + "description": "This is the disk name." + }, + "vhd": { + "type": "object", + "description": "This is the virtual hard disk.", + "$ref": "#/definitions/VirtualHardDisk" + }, + "writeAcceleratorEnabled": { + "type": "string", + "description": "This specifies whether or not writeAccelerator is enabled on the disk." + } + } + }, + "EncryptionSettings": { + "type": "object", + "description": "This is the encryption settings for the disk.", + "properties": { + "enabled": { + "type": "string", + "description": "This specifies whether or not disk encryption is enabled on the VM." + } + } + }, + "DiffDiskSettings": { + "type": "object", + "description": "This is the ephemeral disk settings.", + "properties": { + "option": { + "type": "string", + "description": "This specifies the ephemeral disk settings." + } + } + }, + "DiskImage": { + "type": "object", + "description": "This is the source user image virtual hard disk.", + "properties": { + "uri": { + "type": "string", + "description": "This is the uri of the virtual hard disk." + } + } + }, + "ManagedDisk": { + "type": "object", + "description": "This is managed disk parameters.", + "properties": { + "id": { + "type": "string", + "description": "This is the resource ID." + }, + "storageAccountType": { + "type": "string", + "description": "This is the storage account type for the managed disk." + } + } + }, + "VirtualHardDisk": { + "type": "object", + "description": "This is the virtual hard disk.", + "properties": { + "uri": { + "type": "string", + "description": "This is the uri of the virtual hard disk." + } + } + }, + "ApplicationResponse": { + "type": "string", + "description": "This is a binary string containing the application." + }, + "GalleryApplications": { + "type": "object", + "description": "This is the response from the GalleryApplications_List operation.", + "properties": { + "applications": { + "type": "array", + "description": "List of gallery applications", + "items": { + "type": "object", + "description": "This contains information about the gallery application.", + "$ref": "#/definitions/GalleryApplication" + } + } + } + }, + "GalleryApplication": { + "type": "object", + "description": "This contains information about the gallery application.", + "properties": { + "tags": { + "type": "string", + "description": "Optional attribute to passthrough value for more generic context" + }, + "enableHealthCheck": { + "type": "boolean", + "description": "It indicates if this application reports health status" + }, + "packageFile": { + "$ref": "#/definitions/PackageFile", + "description": "Package properties of the gallery application" + } + } + }, + "PackageFile": { + "type": "object", + "description": "Package properties of the gallery application.", + "properties": { + "id": { + "type": "string", + "description": "Resource id of the gallery application" + }, + "incarnationId": { + "type": "string", + "description": "Unique identifier for this particular application instance" + }, + "fileName": { + "type": "string", + "description": "Application package file name" + }, + "contentType": { + "type": "string", + "description": "Application package type" + } + } + }, + "Instance": { + "type": "object", + "description": "This is the response from the Instance_GetMetadata operation.", + "properties": { + "compute": { + "$ref": "#/definitions/Compute", + "description": "Compute Metadata" + }, + "network": { + "$ref": "#/definitions/Network", + "description": "Network Metadata" + } + } + }, + "AttestedData": { + "type": "object", + "description": "This is the response from the Attested_GetDocument operation.", + "properties": { + "signature": { + "type": "string", + "description": "This is the encoded string containing the VM ID, plan information, public key, timestamp, and nonce value." + }, + "encoding": { + "type": "string", + "description": "This is the encoding scheme of the signature." + } + } + }, + "ErrorResponse": { + "description": "This is the response from an operation in the case an error occurs.", + "type": "object", + "properties": { + "error": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + }, + "IdentityErrorResponse": { + "type": "object", + "description": "This is the response from an Identity operation in the case an error occurs.", + "properties": { + "error": { + "type": "string", + "description": "Error code", + "enum": [ + "invalid_request", + "unauthorized_client", + "access_denied", + "unsupported_response_type", + "invalid_scope", + "server_error", + "service_unavailable", + "bad_request", + "forbidden", + "not_found", + "method_not_allowed", + "too_many_requests" + ], + "x-ms-enum": { + "name": "Error", + "modelAsString": true + } + }, + "error_description": { + "type": "string", + "description": "Error message indicating why the operation failed." + } + } + }, + "IdentityTokenResponse": { + "type": "object", + "description": "This is the response from the Identity_GetToken operation.", + "properties": { + "access_token": { + "type": "string", + "description": "This is the requested access token. The app can use this token to authenticate to the sink resource." + }, + "expires_in": { + "type": "string", + "description": "This is how long the access token is valid (in seconds)." + }, + "expires_on": { + "type": "string", + "description": "This is 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. This value is used to determine the lifetime of cached tokens." + }, + "ext_expires_in": { + "type": "string", + "description": "This indicates the extended lifetime of the token (in seconds)." + }, + "not_before": { + "type": "string", + "description": "This is the time when the access token becomes effective. The date is represented as the number of seconds from 1970-01-01T0:0:0Z UTC until the expiration time." + }, + "resource": { + "type": "string", + "description": "This is the app ID URI of the sink resource." + }, + "token_type": { + "type": "string", + "description": "This indicates the token type value." + }, + "client_id": { + "type": "string", + "description": "This is the client_id specified in the request, if any." + }, + "object_id": { + "type": "string", + "description": "This is the object_id specified in the request, if any." + }, + "msi_res_id": { + "type": "string", + "description": "This is the msi_res_id specified in the request, if any." + } + } + }, + "IdentityInfoResponse": { + "type": "object", + "description": "This is the response from the Identity_GetInfo operation.", + "properties": { + "tenantId": { + "type": "string", + "description": "This is the AAD tenantId of the identity of the system assigned managed identity." + } + } + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "type": "string", + "enum": [ + "2018-10-01" + ], + "description": "This is the API version to use.", + "required": true, + "x-ms-enum": { + "name": "ApiVersion", + "modelAsString": true + } + }, + "MetadataParameter": { + "name": "Metadata", + "in": "header", + "type": "string", + "enum": [ + "true" + ], + "description": "This must be set to 'true'.", + "required": true, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/imds/data-plane/readme.go.md b/specification/imds/data-plane/readme.go.md index a805b79cf2ba..db87db66586d 100644 --- a/specification/imds/data-plane/readme.go.md +++ b/specification/imds/data-plane/readme.go.md @@ -5,6 +5,22 @@ These settings apply only when `--go` is specified on the command line. ``` yaml $(go) go: license-header: MICROSOFT_APACHE_NO_VERSION - namespace: storage + namespace: imds clear-output-folder: true ``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2019-02-01 +``` + +### Tag: package-2019-02-01 and go + +These settings apply only when `--tag=package-2019-02-01 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +```yaml $(tag) == 'package-2019-02-01' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/2019-02-01/$(namespace) +``` diff --git a/specification/imds/data-plane/readme.md b/specification/imds/data-plane/readme.md index a16713027481..47787236f557 100644 --- a/specification/imds/data-plane/readme.md +++ b/specification/imds/data-plane/readme.md @@ -53,6 +53,15 @@ input-file: - Microsoft.InstanceMetadataService/stable/2019-03-11/imds.json ``` +### Tag: package-2019-04-30 + +These settings apply only when `--tag=package-2019-04-30` is specified on the command line. + +```yaml $(tag) == 'package-2019-04-30' +input-file: +- Microsoft.InstanceMetadataService/stable/2019-04-30/imds.json +``` + ### Tag: package-2019-06-01 These settings apply only when `--tag=package-2019-06-01` is specified on the command line. @@ -62,7 +71,26 @@ input-file: - Microsoft.InstanceMetadataService/stable/2019-06-01/imds.json ``` +### Tag: package-2019-08-01 + +These settings apply only when `--tag=package-2019-08-01` is specified on the command line. + +```yaml $(tag) == 'package-2019-08-01' +input-file: +- Microsoft.InstanceMetadataService/stable/2019-08-01/imds.json +``` + +### Tag: package-2019-08-15 + +These settings apply only when `--tag=package-2019-08-15` is specified on the command line. + +```yaml $(tag) == 'package-2019-08-15' +input-file: +- Microsoft.InstanceMetadataService/stable/2019-08-15/imds.json +``` + ## Suppression + ``` yaml directive: - suppress: DefinitionsPropertiesNamesCamelCase @@ -113,6 +141,22 @@ input-file: - $.definitions.IdentityTokenResponse.properties.msi_res_id - $.definitions.IdentityErrorResponse.properties.error_description + - suppress: DefinitionsPropertiesNamesCamelCase + reason: The following properties follow the Oath2 spec, which does not use camelCase. + from: Microsoft.InstanceMetadataService/stable/2019-04-30/imds.json + where: + - $.definitions.IdentityTokenResponse.properties.access_token + - $.definitions.IdentityTokenResponse.properties.expires_in + - $.definitions.IdentityTokenResponse.properties.expires_on + - $.definitions.IdentityTokenResponse.properties.ext_expires_in + - $.definitions.IdentityTokenResponse.properties.not_before + - $.definitions.IdentityTokenResponse.properties.resource + - $.definitions.IdentityTokenResponse.properties.token_type + - $.definitions.IdentityTokenResponse.properties.client_id + - $.definitions.IdentityTokenResponse.properties.object_id + - $.definitions.IdentityTokenResponse.properties.msi_res_id + - $.definitions.IdentityErrorResponse.properties.error_description + - suppress: DefinitionsPropertiesNamesCamelCase reason: The following properties follow the Oath2 spec, which does not use camelCase. from: Microsoft.InstanceMetadataService/stable/2019-06-01/imds.json @@ -127,7 +171,33 @@ input-file: - $.definitions.IdentityTokenResponse.properties.client_id - $.definitions.IdentityTokenResponse.properties.object_id - $.definitions.IdentityTokenResponse.properties.msi_res_id - - $.definitions.IdentityErrorResponse.properties.error_description + - $.definitions.IdentityErrorResponse.properties.error_description + + - suppress: DefinitionsPropertiesNamesCamelCase + reason: The following properties follow the Oath2 spec, which does not use camelCase. + from: Microsoft.InstanceMetadataService/stable/2019-08-01/imds.json + + - suppress: HttpsSupportedScheme + reason: IMDS does not require HTTPS to query it + + - suppress: SecurityDefinitionsStructure + reason: IMDS does not support any authentication + + - suppress: DefinitionsPropertiesNamesCamelCase + reason: The following properties follow the Oath2 spec, which does not use camelCase. + from: Microsoft.InstanceMetadataService/stable/2019-08-15/imds.json + where: + - $.definitions.IdentityTokenResponse.properties.access_token + - $.definitions.IdentityTokenResponse.properties.expires_in + - $.definitions.IdentityTokenResponse.properties.expires_on + - $.definitions.IdentityTokenResponse.properties.ext_expires_in + - $.definitions.IdentityTokenResponse.properties.not_before + - $.definitions.IdentityTokenResponse.properties.resource + - $.definitions.IdentityTokenResponse.properties.token_type + - $.definitions.IdentityTokenResponse.properties.client_id + - $.definitions.IdentityTokenResponse.properties.object_id + - $.definitions.IdentityTokenResponse.properties.msi_res_id + - $.definitions.IdentityErrorResponse.properties.error_description ``` --- @@ -153,3 +223,34 @@ This is not used by Autorest itself. swagger-to-sdk: - repo: azure-sdk-for-python ``` + +## 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.InstanceMetadataService/stable/2018-10-01/imds.json + - $(this-folder)/Microsoft.InstanceMetadataService/stable/2019-02-01/imds.json + - $(this-folder)/Microsoft.InstanceMetadataService/stable/2019-03-11/imds.json + - $(this-folder)/Microsoft.InstanceMetadataService/stable/2019-04-30/imds.json + - $(this-folder)/Microsoft.InstanceMetadataService/stable/2019-06-01/imds.json + - $(this-folder)/Microsoft.InstanceMetadataService/stable/2019-08-01/imds.json + - $(this-folder)/Microsoft.InstanceMetadataService/stable/2019-08-15/imds.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/intune/resource-manager/readme.md b/specification/intune/resource-manager/readme.md index 3d972ff77a83..c15b27b1cb39 100644 --- a/specification/intune/resource-manager/readme.md +++ b/specification/intune/resource-manager/readme.md @@ -61,7 +61,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.Intune - output-folder: $(csharp-sdks-folder)/Intune/Intune/Generated + output-folder: $(csharp-sdks-folder)/intune/Microsoft.Azure.Management.Intune/src/Generated clear-output-folder: true ``` @@ -78,3 +78,29 @@ license-header: MICROSOFT_MIT_NO_CODEGEN payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-intune ``` + +## 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.Intune/preview/2015-01-14-preview/intune.json + - $(this-folder)/Microsoft.Intune/preview/2015-01-14-privatepreview/intune.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/iotcentral/resource-manager/readme.md b/specification/iotcentral/resource-manager/readme.md index 925c4f3cf1f7..90b5740df650 100644 --- a/specification/iotcentral/resource-manager/readme.md +++ b/specification/iotcentral/resource-manager/readme.md @@ -53,6 +53,7 @@ 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 @@ -158,3 +159,29 @@ python: basic-setup-py: true output-folder: $(python-sdks-folder)/iotcentral/azure-mgmt-iotcentral ``` + +## 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.IoTCentral/stable/2018-09-01/iotcentral.json + - $(this-folder)/Microsoft.IoTCentral/preview/2017-07-01-privatepreview/iotcentral.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/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_createOrUpdate.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_createOrUpdate.json index 8e6e36ef3200..0b7ce5e15432 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_createOrUpdate.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_createOrUpdate.json @@ -5,26 +5,15 @@ "api-version": "2019-03-22-preview", "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", "iotHubDescription": { - "name": "iot-dps-cit-hub-1", - "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/" + "partitionCount": 2 } }, "routing": { @@ -74,7 +63,6 @@ }, "sku": { "name": "S1", - "tier": "Standard", "capacity": 1 } } diff --git a/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_get.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_get.json index 8e6dd33b5cbe..06ca87816cb8 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_get.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_get.json @@ -78,7 +78,17 @@ "streamingEndpoints": [ "https://streams.azure-devices-int.net:9443" ] - } + }, + "locations": [ + { + "location": "West US", + "role": "primary" + }, + { + "location": "East US", + "role": "secondary" + } + ] }, "sku": { "name": "S1", diff --git a/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/iothub.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/iothub.json index 22364230d82d..121d86871358 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/iothub.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/iothub.json @@ -2045,6 +2045,14 @@ "name": "Capabilities", "modelAsString": true } + }, + "locations": { + "description": "Primary and secondary location for iot hub", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/IotHubLocationDescription" + } } } }, @@ -3453,6 +3461,28 @@ "required": [ "failoverRegion" ] + }, + "IotHubLocationDescription": { + "description": "Public representation of one of the locations where a resource is provisioned.", + "type": "object", + "properties": { + "location": { + "description": "Azure Geo Regions", + "type": "string" + }, + "role": { + "description": "Specific Role assigned to this location", + "enum": [ + "primary", + "secondary" + ], + "type": "string", + "x-ms-enum": { + "name": "IotHubReplicaRoleType", + "modelAsString": true + } + } + } } }, "parameters": { diff --git a/specification/iothub/resource-manager/readme.java.md b/specification/iothub/resource-manager/readme.java.md new file mode 100644 index 000000000000..3b3ca91ecd2f --- /dev/null +++ b/specification/iothub/resource-manager/readme.java.md @@ -0,0 +1,61 @@ +## 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.iothub +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-iothub +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-preview-2019-03 + - tag: package-2018-12-preview + - tag: package-2018-04 +``` + +### Tag: package-preview-2019-03 + +These settings apply only when `--tag=package-preview-2019-03 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-preview-2019-03' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.iothub.v2019_03_22_preview + output-folder: $(azure-libraries-for-java-folder)/iothub/resource-manager/v2019_03_22_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-12-preview and java + +These settings apply only when `--tag=package-2018-12-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2018-12-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.iothub.v2018_12_01_preview + output-folder: $(azure-libraries-for-java-folder)/iothub/resource-manager/v2018_12_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-04 and java + +These settings apply only when `--tag=package-2018-04 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2018-04' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.iothub.v2018_04_01 + output-folder: $(azure-libraries-for-java-folder)/iothub/resource-manager/v2018_04_01 +regenerate-manager: true +generate-interface: true +``` \ No newline at end of file diff --git a/specification/iothub/resource-manager/readme.md b/specification/iothub/resource-manager/readme.md index c77400fb8613..b15fc166cff9 100644 --- a/specification/iothub/resource-manager/readme.md +++ b/specification/iothub/resource-manager/readme.md @@ -103,6 +103,7 @@ 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 @@ -133,48 +134,35 @@ 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=`. +See configuration in [readme.java.md](./readme.go.md) -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.iothub -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-iothub -``` +## Multi-API/Profile support for AutoRest v3 generators -### Java multi-api +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2018-12-preview - - tag: package-2018-04 -``` +This block is updated by an automatic script. Edits may be lost! -### Tag: package-2018-12-preview and java +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -These settings apply only when `--tag=package-2018-12-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.Devices/preview/2019-03-22-preview/iothub.json + - $(this-folder)/Microsoft.Devices/preview/2018-12-01-preview/iothub.json + - $(this-folder)/Microsoft.Devices/stable/2018-04-01/iothub.json + - $(this-folder)/Microsoft.Devices/stable/2018-01-22/iothub.json + - $(this-folder)/Microsoft.Devices/stable/2017-07-01/iothub.json + - $(this-folder)/Microsoft.Devices/stable/2017-01-19/iothub.json + - $(this-folder)/Microsoft.Devices/stable/2016-02-03/iothub.json -``` yaml $(tag) == 'package-2018-12-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.iothub.v2018_12_01_preview - output-folder: $(azure-libraries-for-java-folder)/iothub/resource-manager/v2018_12_01_preview -regenerate-manager: true -generate-interface: true ``` -### Tag: package-2018-04 and java +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. -These settings apply only when `--tag=package-2018-04 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2018-04' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.iothub.v2018_04_01 - output-folder: $(azure-libraries-for-java-folder)/iothub/resource-manager/v2018_04_01 -regenerate-manager: true -generate-interface: true +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json ``` + diff --git a/specification/iotspaces/resource-manager/readme.md b/specification/iotspaces/resource-manager/readme.md index bbb54cb3b16a..434da206def2 100644 --- a/specification/iotspaces/resource-manager/readme.md +++ b/specification/iotspaces/resource-manager/readme.md @@ -69,6 +69,7 @@ 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-js - repo: azure-sdk-for-node @@ -85,10 +86,35 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.IoTSpaces payload-flattening-threshold: 1 - output-folder: $(csharp-sdks-folder)/IoTSpaces/Management.IoTSpaces/Generated + output-folder: $(csharp-sdks-folder)/iotspaces/Microsoft.Azure.Management.IoTSpaces/src/Generated clear-output-folder: true ``` ## Go -See configuration in [readme.go.md](./readme.go.md) \ No newline at end of file +See configuration in [readme.go.md](./readme.go.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.IoTSpaces/preview/2017-10-01-preview/iotspaces.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/keyvault/data-plane/readme.md b/specification/keyvault/data-plane/readme.md index 3a4fd12f0600..7b4fbd27732a 100644 --- a/specification/keyvault/data-plane/readme.md +++ b/specification/keyvault/data-plane/readme.md @@ -108,4 +108,30 @@ java: payload-flattening-threshold: 0 output-folder: $(azure-libraries-for-java-folder)/azure-keyvault override-client-name: KeyVaultClientBase -``` \ No newline at end of file +``` +## 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.KeyVault/stable/7.0/keyvault.json + - $(this-folder)/Microsoft.KeyVault/stable/2016-10-01/keyvault.json + - $(this-folder)/Microsoft.KeyVault/stable/2015-06-01/keyvault.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/keyvault/resource-manager/readme.csharp.md b/specification/keyvault/resource-manager/readme.csharp.md index f39bdb2b9c46..2936d8d96bf4 100644 --- a/specification/keyvault/resource-manager/readme.csharp.md +++ b/specification/keyvault/resource-manager/readme.csharp.md @@ -14,7 +14,7 @@ csharp: ``` yaml $(csharp) && !$(multiapi) && !$(csharp-profile) namespace: Microsoft.Azure.Management.KeyVault -output-folder: $(csharp-sdks-folder)/KeyVault/Management/Management.KeyVault/Generated +output-folder: $(csharp-sdks-folder)/keyvault/Microsoft.Azure.Management.KeyVault/src/Generated ``` ## Batch settings diff --git a/specification/keyvault/resource-manager/readme.java.md b/specification/keyvault/resource-manager/readme.java.md new file mode 100644 index 000000000000..e79af082ec30 --- /dev/null +++ b/specification/keyvault/resource-manager/readme.java.md @@ -0,0 +1,97 @@ +## 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 +namespace: com.microsoft.azure.management.keyvault +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-keyvault +``` + +### Java multi-api + +```yaml $(java) && $(multiapi) +batch: + - tag: package-2018-02-14-preview + - tag: package-2016-10 + - tag: package-2015-06 +``` + +### Tag: package-2018-02-14-preview and java + +These settings apply only when `--tag=package-2018-02-14-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2018-02-14-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.keyvault.v2018_02_14_preview + output-folder: $(azure-libraries-for-java-folder)/keyvault/resource-manager/v2018_02_14_preview +regenerate-manager: true +generate-interface: true +directive: + from: keyvault.json + where: $.paths["/subscriptions/{subscriptionId}/resources"].get + transform: $['operationId'] = 'Vaults_ListResource' +``` + +### Tag: package-2016-10 and java + +These settings apply only when `--tag=package-2016-10 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2016-10' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.keyvault.v2016_10_01 + output-folder: $(azure-libraries-for-java-folder)/keyvault/resource-manager/v2016_10_01 +regenerate-manager: true +generate-interface: true +directive: + from: keyvault.json + where: $.paths["/subscriptions/{subscriptionId}/resources"].get + transform: $['operationId'] = 'Vaults_ListResource' +``` + +### Tag: package-2016-10 and java + +These settings apply only when `--tag=package-2016-10 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2016-10' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.keyvault.v2016_10_01 + output-folder: $(azure-libraries-for-java-folder)/keyvault/resource-manager/v2016_10_01 +regenerate-manager: true +generate-interface: true +directive: + from: keyvault.json + where: $.paths["/subscriptions/{subscriptionId}/resources"].get + transform: $['operationId'] = 'Vaults_ListResource' +``` + +### Tag: package-2015-06 and java + +These settings apply only when `--tag=package-2015-06 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2015-06' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.keyvault.v2015_06_01 + output-folder: $(azure-libraries-for-java-folder)/keyvault/resource-manager/v2015_06_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: profile-hybrid-2019-03-01 + +These settings apply only when `--tag=profile-hybrid-2019-03-01` is specified on the command line. +Creating this tag to pick proper resources from the hybrid profile. + +``` yaml $(tag) == 'profile-hybrid-2019-03-01' +input-file: +- Microsoft.KeyVault/stable/2016-10-01/providers.json +- Microsoft.KeyVault/stable/2016-10-01/keyvault.json +- Microsoft.KeyVault/stable/2016-10-01/secrets.json +``` diff --git a/specification/keyvault/resource-manager/readme.md b/specification/keyvault/resource-manager/readme.md index 77c0d24ebcb0..973de064798b 100644 --- a/specification/keyvault/resource-manager/readme.md +++ b/specification/keyvault/resource-manager/readme.md @@ -30,6 +30,18 @@ tag: package-2018-02 ``` +### Tag: package-2018-02-14-preview + +These settings apply only when `--tag=package-2018-02-14-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2018-02-14-preview' +input-file: +- Microsoft.KeyVault/preview/2018-02-14-preview/keyvault.json +- Microsoft.KeyVault/preview/2018-02-14-preview/providers.json +- Microsoft.KeyVault/preview/2018-02-14-preview/secrets.json +``` + + ### Tag: package-2018-02 These settings apply only when `--tag=package-2018-02` is specified on the command line. @@ -74,6 +86,7 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: + - repo: azure-sdk-for-net - repo: azure-sdk-for-python after_scripts: - python ./scripts/multiapi_init_gen.py azure-mgmt-keyvault @@ -92,63 +105,36 @@ 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) -azure-arm: true -namespace: com.microsoft.azure.management.keyvault -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-keyvault -``` +See configuration in [readme.java.md](./readme.java.md) -### Java multi-api +## Multi-API/Profile support for AutoRest v3 generators -```yaml $(java) && $(multiapi) -batch: - - tag: package-2016-10 - - tag: package-2015-06 -``` +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -### Tag: package-2016-10 and java - -These settings apply only when `--tag=package-2016-10 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2016-10' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.keyvault.v2016_10_01 - output-folder: $(azure-libraries-for-java-folder)/keyvault/resource-manager/v2016_10_01 -regenerate-manager: true -generate-interface: true -directive: - from: keyvault.json - where: $.paths["/subscriptions/{subscriptionId}/resources"].get - transform: $['operationId'] = 'Vaults_ListResource' -``` +This block is updated by an automatic script. Edits may be lost! -### Tag: package-2015-06 and java +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -These settings apply only when `--tag=package-2015-06 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.KeyVault/preview/2018-02-14-preview/keyvault.json + - $(this-folder)/Microsoft.KeyVault/preview/2018-02-14-preview/providers.json + - $(this-folder)/Microsoft.KeyVault/preview/2018-02-14-preview/secrets.json + - $(this-folder)/Microsoft.KeyVault/stable/2018-02-14/keyvault.json + - $(this-folder)/Microsoft.KeyVault/stable/2018-02-14/providers.json + - $(this-folder)/Microsoft.KeyVault/stable/2016-10-01/keyvault.json + - $(this-folder)/Microsoft.KeyVault/stable/2016-10-01/providers.json + - $(this-folder)/Microsoft.KeyVault/stable/2015-06-01/keyvault.json -``` yaml $(tag) == 'package-2015-06' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.keyvault.v2015_06_01 - output-folder: $(azure-libraries-for-java-folder)/keyvault/resource-manager/v2015_06_01 -regenerate-manager: true -generate-interface: true ``` -### Tag: profile-hybrid-2019-03-01 - -These settings apply only when `--tag=profile-hybrid-2019-03-01` is specified on the command line. -Creating this tag to pick proper resources from the hybrid profile. +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) == 'profile-hybrid-2019-03-01' -input-file: -- Microsoft.KeyVault/stable/2016-10-01/providers.json -- Microsoft.KeyVault/stable/2016-10-01/keyvault.json -- Microsoft.KeyVault/stable/2016-10-01/secrets.json +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json ``` + diff --git a/specification/labservices/resource-manager/readme.md b/specification/labservices/resource-manager/readme.md index a388ea6faa79..50b1ddd60e2f 100644 --- a/specification/labservices/resource-manager/readme.md +++ b/specification/labservices/resource-manager/readme.md @@ -50,6 +50,7 @@ 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 @@ -142,3 +143,28 @@ generate-interface: 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)/Microsoft.LabServices/stable/2018-10-15/ML.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/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Operations_List.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Operations_List.json index 6c24d2e9b220..ac8f55c061fd 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Operations_List.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Operations_List.json @@ -4,1348 +4,1265 @@ }, "responses": { "200": { - "value": [ - { - "name": "Microsoft.Logic/operations/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Operation", - "operation": "Get Operation", - "description": "Gets the operation." - } - }, - { - "name": "Microsoft.Logic/register/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Resource Provider", - "operation": "Register Resource Provider", - "description": "Registers the Microsoft.Logic resource provider for a given subscription." - } - }, - { - "name": "Microsoft.Logic/locations/workflows/validate/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Validate Workflow", - "description": "Validates the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Get Workflow", - "description": "Reads the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Set Workflow", - "description": "Creates or updates the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Delete Workflow", - "description": "Deletes the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/run/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Run Workflow", - "description": "Starts a run of the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/disable/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Disable Workflow", - "description": "Disables the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/enable/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Enable Workflow", - "description": "Enables the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/suspend/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Suspend Workflow", - "description": "Suspends the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/validate/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Validate Workflow", - "description": "Validates the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/move/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Move Workflow", - "description": "Moves Workflow from its existing subscription id, resource group, and/or name to a different subscription id, resource group, and/or name." - } - }, - { - "name": "Microsoft.Logic/workflows/listSwagger/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Get workflow swagger", - "description": "Gets the workflow swagger definitions." - } - }, - { - "name": "Microsoft.Logic/workflows/versions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Version", - "operation": "Get Workflow Version", - "description": "Reads the workflow version." - } - }, - { - "name": "Microsoft.Logic/workflows/versions/triggers/listCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger", - "operation": "List Trigger Callback URL", - "description": "Gets the callback URL for trigger." - } - }, - { - "name": "Microsoft.Logic/workflows/accessKeys/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Access Key", - "operation": "Get Access Key", - "description": "Reads the access key." - } - }, - { - "name": "Microsoft.Logic/workflows/accessKeys/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Access Key", - "operation": "Set Access Key", - "description": "Creates or updates the access key." - } - }, - { - "name": "Microsoft.Logic/workflows/accessKeys/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Access Key", - "operation": "Delete Access Key", - "description": "Deletes the access key." - } - }, - { - "name": "Microsoft.Logic/workflows/accessKeys/list/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Access Key", - "operation": "List Access Key", - "description": "Lists the access key secrets." - } - }, - { - "name": "Microsoft.Logic/workflows/accessKeys/regenerate/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Access Key", - "operation": "Regenerate Access Key", - "description": "Regenerates the access key secrets." - } - }, - { - "name": "Microsoft.Logic/workflows/regenerateAccessKey/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Access Key", - "operation": "Regenerate Access Key", - "description": "Regenerates the access key secrets." - } - }, - { - "name": "Microsoft.Logic/workflows/listCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "List workflow callback URL", - "description": "Gets the callback URL for workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger", - "operation": "Get Trigger", - "description": "Reads the trigger." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/run/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger", - "operation": "Trigger Run", - "description": "Executes the trigger." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/reset/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger", - "operation": "Trigger Reset", - "description": "Resets the trigger." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/setState/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger", - "operation": "Set Trigger State", - "description": "Sets the trigger state." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/histories/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger Histories", - "operation": "Get Trigger Histories", - "description": "Reads the trigger histories." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/histories/resubmit/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger Histories", - "operation": "Resubmit trigger", - "description": "Resubmits the workflow trigger." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/listCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger", - "operation": "List Trigger Callback URL", - "description": "Gets the callback URL for trigger." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run", - "operation": "Get Workflow Run", - "description": "Reads the workflow run." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/cancel/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run", - "operation": "Cancel Workflow Run", - "description": "Cancels the run of a workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/operations/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run Operation", - "operation": "Get Workflow Run Operation Status", - "description": "Reads the workflow run operation status." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run Action", - "operation": "Get Workflow Run Action", - "description": "Reads the workflow run action." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/repetitions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run Action Repetition", - "operation": "Get Workflow Run Action Repetition", - "description": "Reads the workflow run action repetition." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/scoperepetitions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run Action Scope Repetition", - "operation": "Get Workflow Run Action Scope Repetition", - "description": "Reads the workflow run action scope repetition." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/requestHistories/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow run action request history", - "operation": "Gets the workflow run action request history", - "description": "Reads the workflow run action request history." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/repetitions/requestHistories/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow run repetition action request history", - "operation": "Gets the workflow run repetition action request history", - "description": "Reads the workflow run repetition action request history." - } - }, - { - "origin": "System", - "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Diagnostic Setting", - "operation": "Get Workflow Diagnostic Setting", - "description": "Reads the workflow diagnostic settings." - } - }, - { - "origin": "System", - "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Diagnostic Setting", - "operation": "Set Workflow Diagnostic Setting", - "description": "Creates or updates the workflow diagnostic setting." - } - }, - { - "origin": "System", - "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Metric Definition", - "operation": "Get Workflow Metric Definition", - "description": "Reads the workflow metric definitions." - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "RunsStarted", - "displayName": "Runs Started", - "displayDescription": "Number of workflow runs started.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "RunsCompleted", - "displayName": "Runs Completed", - "displayDescription": "Number of workflow runs completed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "RunsSucceeded", - "displayName": "Runs Succeeded", - "displayDescription": "Number of workflow runs succeeded.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "RunsFailed", - "displayName": "Runs Failed", - "displayDescription": "Number of workflow runs failed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "RunsCancelled", - "displayName": "Runs Cancelled", - "displayDescription": "Number of workflow runs cancelled.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "RunLatency", - "displayName": "Run Latency", - "displayDescription": "Latency of completed workflow runs.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "RunSuccessLatency", - "displayName": "Run Success Latency", - "displayDescription": "Latency of succeeded workflow runs.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "RunThrottledEvents", - "displayName": "Run Throttled Events", - "displayDescription": "Number of workflow action or trigger throttled events.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "RunFailurePercentage", - "displayName": "Run Failure Percentage", - "displayDescription": "Percentage of workflow runs failed.", - "unit": "Percent", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "ActionsStarted", - "displayName": "Actions Started ", - "displayDescription": "Number of workflow actions started.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "ActionsCompleted", - "displayName": "Actions Completed ", - "displayDescription": "Number of workflow actions completed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "ActionsSucceeded", - "displayName": "Actions Succeeded ", - "displayDescription": "Number of workflow actions succeeded.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "ActionsFailed", - "displayName": "Actions Failed ", - "displayDescription": "Number of workflow actions failed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "ActionsSkipped", - "displayName": "Actions Skipped ", - "displayDescription": "Number of workflow actions skipped.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "ActionLatency", - "displayName": "Action Latency ", - "displayDescription": "Latency of completed workflow actions.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "ActionSuccessLatency", - "displayName": "Action Success Latency ", - "displayDescription": "Latency of succeeded workflow actions.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "ActionThrottledEvents", - "displayName": "Action Throttled Events", - "displayDescription": "Number of workflow action throttled events..", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggersStarted", - "displayName": "Triggers Started ", - "displayDescription": "Number of workflow triggers started.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggersCompleted", - "displayName": "Triggers Completed ", - "displayDescription": "Number of workflow triggers completed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggersSucceeded", - "displayName": "Triggers Succeeded ", - "displayDescription": "Number of workflow triggers succeeded.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggersFailed", - "displayName": "Triggers Failed ", - "displayDescription": "Number of workflow triggers failed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggersSkipped", - "displayName": "Triggers Skipped", - "displayDescription": "Number of workflow triggers skipped.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggersFired", - "displayName": "Triggers Fired ", - "displayDescription": "Number of workflow triggers fired.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggerLatency", - "displayName": "Trigger Latency ", - "displayDescription": "Latency of completed workflow triggers.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "TriggerFireLatency", - "displayName": "Trigger Fire Latency ", - "displayDescription": "Latency of fired workflow triggers.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "TriggerSuccessLatency", - "displayName": "Trigger Success Latency ", - "displayDescription": "Latency of succeeded workflow triggers.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "TriggerThrottledEvents", - "displayName": "Trigger Throttled Events", - "displayDescription": "Number of workflow trigger throttled events.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "BillableActionExecutions", - "displayName": "Billable Action Executions", - "displayDescription": "Number of workflow action executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "BillableTriggerExecutions", - "displayName": "Billable Trigger Executions", - "displayDescription": "Number of workflow trigger executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TotalBillableExecutions", - "displayName": "Total Billable Executions", - "displayDescription": "Number of workflow executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "BillableNativeActionExecutions", - "displayName": "Billable Native Action Executions", - "displayDescription": "Number of native workflow action executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "BillableNativeTriggerExecutions", - "displayName": "Billable Native Trigger Executions", - "displayDescription": "Number of native workflow trigger executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TotalBillableNativeExecutions", - "displayName": "Total Native Billable Executions", - "displayDescription": "Number of native workflow executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "BillableStandardActionExecutions", - "displayName": "Billable Standard Action Executions", - "displayDescription": "Number of standard workflow action executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "BillableStandardTriggerExecutions", - "displayName": "Billable Standard Trigger Executions", - "displayDescription": "Number of standard workflow trigger executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TotalBillableStandardExecutions", - "displayName": "Total Standard Billable Executions", - "displayDescription": "Number of standard workflow executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - } - ] + "body": { + "value": [ + { + "name": "Microsoft.Logic/operations/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Operation", + "operation": "Get Operation" } - } - }, - { - "origin": "System", - "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Log Definition", - "operation": "Get Workflow Log Definition", - "description": "Reads the workflow log definitions." - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "WorkflowRuntime", - "displayName": "Workflow runtime diagnostic events", - "description": "Diagnostic events related to workflow runtime executions.", - "blobDuration": "PT1H" - } - ] + }, + { + "name": "Microsoft.Logic/register/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Resource Provider", + "operation": "Register Resource Provider" } - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/listExpressionTraces/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run Action", - "operation": "List Workflow Run Action Expression Traces", - "description": "Gets the workflow run action expression traces." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/repetitions/listExpressionTraces/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run Action Repetition", - "operation": "List Workflow Run Action Repetition Expression Traces", - "description": "Gets the workflow run action repetition expression traces." - } - }, - { - "origin": "System", - "name": "Microsoft.Logic/integrationAccounts/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Log Definition", - "operation": "Get Integration Account Log Definition", - "description": "Reads the Integration Account log definitions." - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "IntegrationAccountTrackingEvents", - "displayName": "Integration Account track events", - "description": "Track events related to Integration Account.", - "blobDuration": "PT1H" - } - ] + }, + { + "name": "Microsoft.Logic/locations/workflows/validate/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Validate Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Get Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Set Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Delete Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/run/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Run Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/disable/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Disable Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/enable/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Enable Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/suspend/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Suspend Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/validate/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Validate Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/move/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Move Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/listSwagger/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Get workflow swagger" + } + }, + { + "name": "Microsoft.Logic/workflows/versions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Version", + "operation": "Get Workflow Version" + } + }, + { + "name": "Microsoft.Logic/workflows/versions/triggers/listCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger", + "operation": "List Trigger Callback URL" + } + }, + { + "name": "Microsoft.Logic/workflows/accessKeys/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Access Key", + "operation": "Get Access Key" + } + }, + { + "name": "Microsoft.Logic/workflows/accessKeys/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Access Key", + "operation": "Set Access Key" + } + }, + { + "name": "Microsoft.Logic/workflows/accessKeys/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Access Key", + "operation": "Delete Access Key" + } + }, + { + "name": "Microsoft.Logic/workflows/accessKeys/list/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Access Key", + "operation": "List Access Key" + } + }, + { + "name": "Microsoft.Logic/workflows/accessKeys/regenerate/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Access Key", + "operation": "Regenerate Access Key" + } + }, + { + "name": "Microsoft.Logic/workflows/regenerateAccessKey/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Access Key", + "operation": "Regenerate Access Key" + } + }, + { + "name": "Microsoft.Logic/workflows/listCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "List workflow callback URL" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger", + "operation": "Get Trigger" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/run/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger", + "operation": "Trigger Run" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/reset/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger", + "operation": "Trigger Reset" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/setState/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger", + "operation": "Set Trigger State" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/histories/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger Histories", + "operation": "Get Trigger Histories" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/histories/resubmit/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger Histories", + "operation": "Resubmit trigger" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/listCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger", + "operation": "List Trigger Callback URL" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run", + "operation": "Get Workflow Run" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/cancel/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run", + "operation": "Cancel Workflow Run" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/operations/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run Operation", + "operation": "Get Workflow Run Operation Status" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run Action", + "operation": "Get Workflow Run Action" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/repetitions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run Action Repetition", + "operation": "Get Workflow Run Action Repetition" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/scoperepetitions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run Action Scope Repetition", + "operation": "Get Workflow Run Action Scope Repetition" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/requestHistories/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow run action request history", + "operation": "Gets the workflow run action request history" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/repetitions/requestHistories/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow run repetition action request history", + "operation": "Gets the workflow run repetition action request history" + } + }, + { + "origin": "System", + "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Diagnostic Setting", + "operation": "Get Workflow Diagnostic Setting" + } + }, + { + "origin": "System", + "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Diagnostic Setting", + "operation": "Set Workflow Diagnostic Setting" + } + }, + { + "origin": "System", + "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Metric Definition", + "operation": "Get Workflow Metric Definition" + }, + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "RunsStarted", + "displayName": "Runs Started", + "displayDescription": "Number of workflow runs started.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "RunsCompleted", + "displayName": "Runs Completed", + "displayDescription": "Number of workflow runs completed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "RunsSucceeded", + "displayName": "Runs Succeeded", + "displayDescription": "Number of workflow runs succeeded.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "RunsFailed", + "displayName": "Runs Failed", + "displayDescription": "Number of workflow runs failed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "RunsCancelled", + "displayName": "Runs Cancelled", + "displayDescription": "Number of workflow runs cancelled.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "RunLatency", + "displayName": "Run Latency", + "displayDescription": "Latency of completed workflow runs.", + "unit": "Seconds", + "aggregationType": "Average", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": false + }, + { + "name": "RunSuccessLatency", + "displayName": "Run Success Latency", + "displayDescription": "Latency of succeeded workflow runs.", + "unit": "Seconds", + "aggregationType": "Average", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": false + }, + { + "name": "RunThrottledEvents", + "displayName": "Run Throttled Events", + "displayDescription": "Number of workflow action or trigger throttled events.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "RunFailurePercentage", + "displayName": "Run Failure Percentage", + "displayDescription": "Percentage of workflow runs failed.", + "unit": "Percent", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "ActionsStarted", + "displayName": "Actions Started ", + "displayDescription": "Number of workflow actions started.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "ActionsCompleted", + "displayName": "Actions Completed ", + "displayDescription": "Number of workflow actions completed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "ActionsSucceeded", + "displayName": "Actions Succeeded ", + "displayDescription": "Number of workflow actions succeeded.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "ActionsFailed", + "displayName": "Actions Failed ", + "displayDescription": "Number of workflow actions failed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "ActionsSkipped", + "displayName": "Actions Skipped ", + "displayDescription": "Number of workflow actions skipped.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "ActionLatency", + "displayName": "Action Latency ", + "displayDescription": "Latency of completed workflow actions.", + "unit": "Seconds", + "aggregationType": "Average", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": false + }, + { + "name": "ActionSuccessLatency", + "displayName": "Action Success Latency ", + "displayDescription": "Latency of succeeded workflow actions.", + "unit": "Seconds", + "aggregationType": "Average", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": false + }, + { + "name": "ActionThrottledEvents", + "displayName": "Action Throttled Events", + "displayDescription": "Number of workflow action throttled events..", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "TriggersStarted", + "displayName": "Triggers Started ", + "displayDescription": "Number of workflow triggers started.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "TriggersCompleted", + "displayName": "Triggers Completed ", + "displayDescription": "Number of workflow triggers completed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "TriggersSucceeded", + "displayName": "Triggers Succeeded ", + "displayDescription": "Number of workflow triggers succeeded.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "TriggersFailed", + "displayName": "Triggers Failed ", + "displayDescription": "Number of workflow triggers failed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "TriggersSkipped", + "displayName": "Triggers Skipped", + "displayDescription": "Number of workflow triggers skipped.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "TriggersFired", + "displayName": "Triggers Fired ", + "displayDescription": "Number of workflow triggers fired.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "TriggerLatency", + "displayName": "Trigger Latency ", + "displayDescription": "Latency of completed workflow triggers.", + "unit": "Seconds", + "aggregationType": "Average", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": false + }, + { + "name": "TriggerFireLatency", + "displayName": "Trigger Fire Latency ", + "displayDescription": "Latency of fired workflow triggers.", + "unit": "Seconds", + "aggregationType": "Average", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": false + }, + { + "name": "TriggerSuccessLatency", + "displayName": "Trigger Success Latency ", + "displayDescription": "Latency of succeeded workflow triggers.", + "unit": "Seconds", + "aggregationType": "Average", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": false + }, + { + "name": "TriggerThrottledEvents", + "displayName": "Trigger Throttled Events", + "displayDescription": "Number of workflow trigger throttled events.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "BillableActionExecutions", + "displayName": "Billable Action Executions", + "displayDescription": "Number of workflow action executions getting billed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "BillableTriggerExecutions", + "displayName": "Billable Trigger Executions", + "displayDescription": "Number of workflow trigger executions getting billed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "TotalBillableExecutions", + "displayName": "Total Billable Executions", + "displayDescription": "Number of workflow executions getting billed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "BillableNativeActionExecutions", + "displayName": "Billable Native Action Executions", + "displayDescription": "Number of native workflow action executions getting billed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "BillableNativeTriggerExecutions", + "displayName": "Billable Native Trigger Executions", + "displayDescription": "Number of native workflow trigger executions getting billed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "TotalBillableNativeExecutions", + "displayName": "Total Native Billable Executions", + "displayDescription": "Number of native workflow executions getting billed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "BillableStandardActionExecutions", + "displayName": "Billable Standard Action Executions", + "displayDescription": "Number of standard workflow action executions getting billed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "BillableStandardTriggerExecutions", + "displayName": "Billable Standard Trigger Executions", + "displayDescription": "Number of standard workflow trigger executions getting billed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + }, + { + "name": "TotalBillableStandardExecutions", + "displayName": "Total Standard Billable Executions", + "displayDescription": "Number of standard workflow executions getting billed.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [], + "availabilities": [ + { + "timeGrain": "PT1M", + "blobDuration": "PT1H" + } + ], + "fillGapWithZero": true + } + ] + } + } + }, + { + "origin": "System", + "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/logDefinitions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Log Definition", + "operation": "Get Workflow Log Definition" + }, + "properties": { + "serviceSpecification": { + "logSpecifications": [ + { + "name": "WorkflowRuntime", + "displayName": "Workflow runtime diagnostic events", + "description": "Diagnostic events related to workflow runtime executions.", + "blobDuration": "PT1H" + } + ] + } + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/listExpressionTraces/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run Action", + "operation": "List Workflow Run Action Expression Traces" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/repetitions/listExpressionTraces/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run Action Repetition", + "operation": "List Workflow Run Action Repetition Expression Traces" + } + }, + { + "origin": "System", + "name": "Microsoft.Logic/integrationAccounts/providers/Microsoft.Insights/logDefinitions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Log Definition", + "operation": "Get Integration Account Log Definition" + }, + "properties": { + "serviceSpecification": { + "logSpecifications": [ + { + "name": "IntegrationAccountTrackingEvents", + "displayName": "Integration Account track events", + "description": "Track events related to Integration Account.", + "blobDuration": "PT1H" + } + ] + } + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "Get Integration Account" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "Set Integration Account" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "Delete Integration Account" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/regenerateAccessKey/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "Regenerate Access Key" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/listCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "List Integration Account Callback URL" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/listKeyVaultKeys/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "List Key Vault Keys" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/logTrackingEvents/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "Log Integration Account Tracking Events" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/join/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "Join Integration Account" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/partners/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Partner", + "operation": "Get Integration Account Partner" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/partners/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Partner", + "operation": "Set Integration Account Partner" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/partners/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Partner", + "operation": "Delete Integration Account Partner" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/partners/listContentCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Partner", + "operation": "List Integration Account Partner Content Callback URL" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/agreements/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Agreement", + "operation": "Get Integration Account Agreement" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/agreements/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Agreement", + "operation": "Set Integration Account Agreement" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/agreements/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Agreement", + "operation": "Delete Integration Account Agreement" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/agreements/listContentCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Agreement", + "operation": "List Integration Account Agreement Content Callback URL" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/certificates/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Certificate", + "operation": "Get Integration Account Certificate" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/certificates/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Certificate", + "operation": "Set Integration Account Certificate" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/certificates/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Certificate", + "operation": "Delete Integration Account Certificate" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/schemas/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Schema", + "operation": "Get Integration Account Schema" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/schemas/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Schema", + "operation": "Set Integration Account Schema" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/schemas/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Schema", + "operation": "Delete Integration Account Schema" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/schemas/listContentCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Schema", + "operation": "List Integration Account Schema Content Callback URL" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/maps/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Map", + "operation": "Get Integration Account Map" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/maps/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Map", + "operation": "Set Integration Account Map" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/maps/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Map", + "operation": "Delete Integration Account Map" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/maps/listContentCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Map", + "operation": "List Integration Account Map Content Callback URL" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/assemblies/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Assembly", + "operation": "Get Integration Account Assembly" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/assemblies/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Assembly", + "operation": "Set Integration Account Assembly" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/assemblies/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Assembly", + "operation": "Delete Integration Account Assembly" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/assemblies/listContentCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Assembly", + "operation": "List Integration Account Assembly Content Callback URL" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/batchConfigurations/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Batch Configuration", + "operation": "Get Integration Account Batch Configuration" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/batchConfigurations/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Batch Configuration", + "operation": "Set Integration Account Batch Configuration" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/batchConfigurations/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Batch Configuration", + "operation": "Delete Integration Account Batch Configuration" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/sessions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Session", + "operation": "Get Integration Account Session" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/sessions/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Session", + "operation": "Set Integration Account Session" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/sessions/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Session", + "operation": "Delete Integration Account Session" + } + }, + { + "name": "Microsoft.Logic/integrationServiceEnvironments/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Service Environment", + "operation": "Get Integration Service Environment" + } + }, + { + "name": "Microsoft.Logic/integrationServiceEnvironments/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Service Environment", + "operation": "Set Integration Service Environment" + } + }, + { + "name": "Microsoft.Logic/integrationServiceEnvironments/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Service Environment", + "operation": "Delete Integration Service Environment" + } + }, + { + "name": "Microsoft.Logic/integrationServiceEnvironments/join/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Service Environment", + "operation": "Join Integration Service Environment" } } - }, - { - "name": "Microsoft.Logic/integrationAccounts/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "Get Integration Account", - "description": "Reads the integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "Set Integration Account", - "description": "Creates or updates the integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "Delete Integration Account", - "description": "Deletes the integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/regenerateAccessKey/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "Regenerate Access Key", - "description": "Regenerates the access key secrets." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/listCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "List Integration Account Callback URL", - "description": "Gets the callback URL for integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/listKeyVaultKeys/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "List Key Vault Keys", - "description": "Gets the keys in the key vault." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/logTrackingEvents/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "Log Integration Account Tracking Events", - "description": "Logs the tracking events in the integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/join/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "Join Integration Account", - "description": "Joins the Integration Account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/partners/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Partner", - "operation": "Get Integration Account Partner", - "description": "Reads the parter in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/partners/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Partner", - "operation": "Set Integration Account Partner", - "description": "Creates or updates the partner in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/partners/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Partner", - "operation": "Delete Integration Account Partner", - "description": "Deletes the partner in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/partners/listContentCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Partner", - "operation": "List Integration Account Partner Content Callback URL", - "description": "Gets the callback URL for partner content in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/agreements/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Agreement", - "operation": "Get Integration Account Agreement", - "description": "Reads the agreement in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/agreements/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Agreement", - "operation": "Set Integration Account Agreement", - "description": "Creates or updates the agreement in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/agreements/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Agreement", - "operation": "Delete Integration Account Agreement", - "description": "Deletes the agreement in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/agreements/listContentCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Agreement", - "operation": "List Integration Account Agreement Content Callback URL", - "description": "Gets the callback URL for agreement content in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/certificates/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Certificate", - "operation": "Get Integration Account Certificate", - "description": "Reads the certificate in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/certificates/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Certificate", - "operation": "Set Integration Account Certificate", - "description": "Creates or updates the certificate in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/certificates/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Certificate", - "operation": "Delete Integration Account Certificate", - "description": "Deletes the certificate in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/schemas/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Schema", - "operation": "Get Integration Account Schema", - "description": "Reads the schema in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/schemas/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Schema", - "operation": "Set Integration Account Schema", - "description": "Creates or updates the schema in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/schemas/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Schema", - "operation": "Delete Integration Account Schema", - "description": "Deletes the schema in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/schemas/listContentCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Schema", - "operation": "List Integration Account Schema Content Callback URL", - "description": "Gets the callback URL for schema content in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/maps/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Map", - "operation": "Get Integration Account Map", - "description": "Reads the map in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/maps/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Map", - "operation": "Set Integration Account Map", - "description": "Creates or updates the map in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/maps/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Map", - "operation": "Delete Integration Account Map", - "description": "Deletes the map in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/maps/listContentCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Map", - "operation": "List Integration Account Map Content Callback URL", - "description": "Gets the callback URL for map content in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/assemblies/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Assembly", - "operation": "Get Integration Account Assembly", - "description": "Reads the assembly in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/assemblies/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Assembly", - "operation": "Set Integration Account Assembly", - "description": "Creates or updates the assembly in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/assemblies/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Assembly", - "operation": "Delete Integration Account Assembly", - "description": "Deletes the assembly in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/assemblies/listContentCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Assembly", - "operation": "List Integration Account Assembly Content Callback URL", - "description": "Gets the callback URL for assembly content in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/batchConfigurations/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Batch Configuration", - "operation": "Get Integration Account Batch Configuration", - "description": "Reads the batch configuration in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/batchConfigurations/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Batch Configuration", - "operation": "Set Integration Account Batch Configuration", - "description": "Creates or updates the batch configuration in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/batchConfigurations/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Batch Configuration", - "operation": "Delete Integration Account Batch Configuration", - "description": "Deletes the batch configuration in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/sessions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Session", - "operation": "Get Integration Account Session", - "description": "Reads the batch configuration in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/sessions/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Session", - "operation": "Set Integration Account Session", - "description": "Creates or updates the session in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/sessions/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Session", - "operation": "Delete Integration Account Session", - "description": "Deletes the session in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationServiceEnvironments/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Service Environment", - "operation": "Get Integration Service Environment", - "description": "Reads the integration service environment." - } - }, - { - "name": "Microsoft.Logic/integrationServiceEnvironments/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Service Environment", - "operation": "Set Integration Service Environment", - "description": "Creates or updates the integration service environment." - } - }, - { - "name": "Microsoft.Logic/integrationServiceEnvironments/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Service Environment", - "operation": "Delete Integration Service Environment", - "description": "Deletes the integration service environment." - } - }, - { - "name": "Microsoft.Logic/integrationServiceEnvironments/join/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Service Environment", - "operation": "Join Integration Service Environment", - "description": "Joins the Integration Service Environment." - } - } - ] + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRunActions_Get.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRunActions_Get.json index 97580408f4fe..079336083d3f 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRunActions_Get.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRunActions_Get.json @@ -9,37 +9,39 @@ }, "responses": { "200": { - "properties": { - "inputsLink": { - "uri": "https://tempuri.org", - "contentVersion": "5XUACojv0aBfuP56os3CWw==", - "contentSize": 46, - "contentHash": { - "algorithm": "md5", - "value": "XXUACojv0aBfuP56os3CWw==" - } + "body": { + "properties": { + "inputsLink": { + "uri": "https://tempuri.org", + "contentVersion": "5XUACojv0aBfuP56os3CWw==", + "contentSize": 46, + "contentHash": { + "algorithm": "md5", + "value": "XXUACojv0aBfuP56os3CWw==" + } + }, + "outputsLink": { + "uri": "https://tempuri.org", + "contentVersion": "6X6KRrevI6AAxEvo9FeBYQ==", + "contentSize": 11873, + "contentHash": { + "algorithm": "md5", + "value": "XX6KRrevI6AAxEvo9FeBYQ==" + } + }, + "startTime": "2018-08-10T20:16:32.305236Z", + "endTime": "2018-08-10T20:16:32.5450625Z", + "correlation": { + "actionTrackingId": "56063357-45dd-4278-9be5-8220ce0cc9ca", + "clientTrackingId": "08586676746934337772206998657CU22" + }, + "status": "Succeeded", + "code": "OK" }, - "outputsLink": { - "uri": "https://tempuri.org", - "contentVersion": "6X6KRrevI6AAxEvo9FeBYQ==", - "contentSize": 11873, - "contentHash": { - "algorithm": "md5", - "value": "XX6KRrevI6AAxEvo9FeBYQ==" - } - }, - "startTime": "2018-08-10T20:16:32.305236Z", - "endTime": "2018-08-10T20:16:32.5450625Z", - "correlation": { - "actionTrackingId": "56063357-45dd-4278-9be5-8220ce0cc9ca", - "clientTrackingId": "08586676746934337772206998657CU22" - }, - "status": "Succeeded", - "code": "OK" - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions/HTTP", - "name": "HTTP", - "type": "Microsoft.Logic/workflows/runs/actions" + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions/HTTP", + "name": "HTTP", + "type": "Microsoft.Logic/workflows/runs/actions" + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRunActions_List.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRunActions_List.json index 2fded69b8506..5241c792bd5c 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRunActions_List.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRunActions_List.json @@ -8,41 +8,43 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "inputsLink": { - "uri": "https://tempuri.org", - "contentVersion": "5XUACojv0aBfuP56os3CWw==", - "contentSize": 46, - "contentHash": { - "algorithm": "md5", - "value": "XXUACojv0aBfuP56os3CWw==" - } + "body": { + "value": [ + { + "properties": { + "inputsLink": { + "uri": "https://tempuri.org", + "contentVersion": "5XUACojv0aBfuP56os3CWw==", + "contentSize": 46, + "contentHash": { + "algorithm": "md5", + "value": "XXUACojv0aBfuP56os3CWw==" + } + }, + "outputsLink": { + "uri": "https://tempuri.org", + "contentVersion": "6X6KRrevI6AAxEvo9FeBYQ==", + "contentSize": 11873, + "contentHash": { + "algorithm": "md5", + "value": "XX6KRrevI6AAxEvo9FeBYQ==" + } + }, + "startTime": "2018-08-10T20:16:32.305236Z", + "endTime": "2018-08-10T20:16:32.5450625Z", + "correlation": { + "actionTrackingId": "56063357-45dd-4278-9be5-8220ce0cc9ca", + "clientTrackingId": "08586676746934337772206998657CU22" + }, + "status": "Succeeded", + "code": "OK" }, - "outputsLink": { - "uri": "https://tempuri.org", - "contentVersion": "6X6KRrevI6AAxEvo9FeBYQ==", - "contentSize": 11873, - "contentHash": { - "algorithm": "md5", - "value": "XX6KRrevI6AAxEvo9FeBYQ==" - } - }, - "startTime": "2018-08-10T20:16:32.305236Z", - "endTime": "2018-08-10T20:16:32.5450625Z", - "correlation": { - "actionTrackingId": "56063357-45dd-4278-9be5-8220ce0cc9ca", - "clientTrackingId": "08586676746934337772206998657CU22" - }, - "status": "Succeeded", - "code": "OK" - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions/HTTP", - "name": "HTTP", - "type": "Microsoft.Logic/workflows/runs/actions" - } - ] + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions/HTTP", + "name": "HTTP", + "type": "Microsoft.Logic/workflows/runs/actions" + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRuns_Get.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRuns_Get.json index 3321ed1e8ce5..4fd4fa55471b 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRuns_Get.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRuns_Get.json @@ -8,35 +8,37 @@ }, "responses": { "200": { - "properties": { - "waitEndTime": "2018-08-10T20:16:32.044238Z", - "startTime": "2018-08-10T20:16:32.044238Z", - "endTime": "2018-08-10T20:16:32.5779999Z", - "status": "Succeeded", - "correlation": { - "clientTrackingId": "08586676746934337772206998657CU22" - }, - "workflow": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676754160363885", - "name": "08586676754160363885", - "type": "Microsoft.Logic/workflows/versions" - }, - "trigger": { - "name": "Recurrence", - "startTime": "2018-08-10T20:16:32.0387927Z", - "endTime": "2018-08-10T20:16:32.0387927Z", - "scheduledTime": "2018-08-10T20:16:31.6344174Z", + "body": { + "properties": { + "waitEndTime": "2018-08-10T20:16:32.044238Z", + "startTime": "2018-08-10T20:16:32.044238Z", + "endTime": "2018-08-10T20:16:32.5779999Z", + "status": "Succeeded", "correlation": { "clientTrackingId": "08586676746934337772206998657CU22" }, - "code": "OK", - "status": "Succeeded" + "workflow": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676754160363885", + "name": "08586676754160363885", + "type": "Microsoft.Logic/workflows/versions" + }, + "trigger": { + "name": "Recurrence", + "startTime": "2018-08-10T20:16:32.0387927Z", + "endTime": "2018-08-10T20:16:32.0387927Z", + "scheduledTime": "2018-08-10T20:16:31.6344174Z", + "correlation": { + "clientTrackingId": "08586676746934337772206998657CU22" + }, + "code": "OK", + "status": "Succeeded" + }, + "outputs": {} }, - "outputs": {} - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22", - "name": "08586676746934337772206998657CU22", - "type": "Microsoft.Logic/workflows/runs" + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22", + "name": "08586676746934337772206998657CU22", + "type": "Microsoft.Logic/workflows/runs" + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRuns_List.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRuns_List.json index 983bb890cca0..5ebd64ba273a 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRuns_List.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowRuns_List.json @@ -7,39 +7,41 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "waitEndTime": "2018-08-10T20:16:32.044238Z", - "startTime": "2018-08-10T20:16:32.044238Z", - "endTime": "2018-08-10T20:16:32.5779999Z", - "status": "Succeeded", - "correlation": { - "clientTrackingId": "08586676746934337772206998657CU22" - }, - "workflow": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676754160363885", - "name": "08586676754160363885", - "type": "Microsoft.Logic/workflows/versions" - }, - "trigger": { - "name": "Recurrence", - "startTime": "2018-08-10T20:16:32.0387927Z", - "endTime": "2018-08-10T20:16:32.0387927Z", - "scheduledTime": "2018-08-10T20:16:31.6344174Z", + "body": { + "value": [ + { + "properties": { + "waitEndTime": "2018-08-10T20:16:32.044238Z", + "startTime": "2018-08-10T20:16:32.044238Z", + "endTime": "2018-08-10T20:16:32.5779999Z", + "status": "Succeeded", "correlation": { "clientTrackingId": "08586676746934337772206998657CU22" }, - "code": "OK", - "status": "Succeeded" + "workflow": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676754160363885", + "name": "08586676754160363885", + "type": "Microsoft.Logic/workflows/versions" + }, + "trigger": { + "name": "Recurrence", + "startTime": "2018-08-10T20:16:32.0387927Z", + "endTime": "2018-08-10T20:16:32.0387927Z", + "scheduledTime": "2018-08-10T20:16:31.6344174Z", + "correlation": { + "clientTrackingId": "08586676746934337772206998657CU22" + }, + "code": "OK", + "status": "Succeeded" + }, + "outputs": {} }, - "outputs": {} - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22", - "name": "08586676746934337772206998657CU22", - "type": "Microsoft.Logic/workflows/runs" - } - ] + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22", + "name": "08586676746934337772206998657CU22", + "type": "Microsoft.Logic/workflows/runs" + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggerHistories_Get.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggerHistories_Get.json index 11daf6435e39..d272b7932e1b 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggerHistories_Get.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggerHistories_Get.json @@ -9,7 +9,7 @@ }, "responses": { "200": { - "value": { + "body": { "properties": { "startTime": "2018-08-10T20:16:32.0387927Z", "endTime": "2018-08-10T20:16:32.2987996Z", diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggerHistories_List.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggerHistories_List.json index 7d7d56ce1518..c90e2b68410f 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggerHistories_List.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggerHistories_List.json @@ -8,29 +8,31 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "startTime": "2018-08-10T20:16:32.0387927Z", - "endTime": "2018-08-10T20:16:32.2987996Z", - "scheduledTime": "2018-08-10T20:16:31.6344174Z", - "status": "Succeeded", - "code": "OK", - "correlation": { - "clientTrackingId": "08586676746934337772206998657CU22" + "body": { + "value": [ + { + "properties": { + "startTime": "2018-08-10T20:16:32.0387927Z", + "endTime": "2018-08-10T20:16:32.2987996Z", + "scheduledTime": "2018-08-10T20:16:31.6344174Z", + "status": "Succeeded", + "code": "OK", + "correlation": { + "clientTrackingId": "08586676746934337772206998657CU22" + }, + "fired": true, + "run": { + "name": "08586676746934337772206998657CU22", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/workflows/testWorkflowName/runs/08586676746934337772206998657CU22", + "type": "Microsoft.Logic/workflows/runs" + } }, - "fired": true, - "run": { - "name": "08586676746934337772206998657CU22", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/workflows/testWorkflowName/runs/08586676746934337772206998657CU22", - "type": "Microsoft.Logic/workflows/runs" - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/workflows/testWorkflowName/triggers/testTriggerName/histories/08586676746934337772206998657CU22", - "name": "08586676746934337772206998657CU22", - "type": "Microsoft.Logic/workflows/triggers/histories" - } - ] + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/workflows/testWorkflowName/triggers/testTriggerName/histories/08586676746934337772206998657CU22", + "name": "08586676746934337772206998657CU22", + "type": "Microsoft.Logic/workflows/triggers/histories" + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggers_Get.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggers_Get.json index e5ce86368b32..45b7784fdad3 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggers_Get.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggers_Get.json @@ -8,20 +8,22 @@ }, "responses": { "200": { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-08-10T17:32:30.2496336Z", - "changedTime": "2018-08-10T18:47:49.5288666Z", - "state": "Enabled", - "workflow": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676800160476478", - "name": "08586676800160476478", - "type": "Microsoft.Logic/workflows/versions" - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/triggers/manual", - "name": "manual", - "type": "Microsoft.Logic/workflows/triggers" + "body": { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-08-10T17:32:30.2496336Z", + "changedTime": "2018-08-10T18:47:49.5288666Z", + "state": "Enabled", + "workflow": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676800160476478", + "name": "08586676800160476478", + "type": "Microsoft.Logic/workflows/versions" + } + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/triggers/manual", + "name": "manual", + "type": "Microsoft.Logic/workflows/triggers" + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggers_List.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggers_List.json index bdfb38ce41ed..f1386bd1f126 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggers_List.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowTriggers_List.json @@ -7,24 +7,26 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-08-10T17:32:30.2496336Z", - "changedTime": "2018-08-10T18:47:49.5288666Z", - "state": "Enabled", - "workflow": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676800160476478", - "name": "08586676800160476478", - "type": "Microsoft.Logic/workflows/versions" - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/triggers/manual", - "name": "manual", - "type": "Microsoft.Logic/workflows/triggers" - } - ] + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-08-10T17:32:30.2496336Z", + "changedTime": "2018-08-10T18:47:49.5288666Z", + "state": "Enabled", + "workflow": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676800160476478", + "name": "08586676800160476478", + "type": "Microsoft.Logic/workflows/versions" + } + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/triggers/manual", + "name": "manual", + "type": "Microsoft.Logic/workflows/triggers" + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowVersions_Get.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowVersions_Get.json index 8582e730d11a..d1f5224a9cb4 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowVersions_Get.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowVersions_Get.json @@ -8,67 +8,69 @@ }, "responses": { "200": { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-04-25T01:39:21.4365247Z", + "changedTime": "2018-08-09T22:54:54.3533634Z", + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {}, + "accessControl": {}, + "endpointsConfiguration": { + "workflow": { + "outgoingIpAddresses": [ + { + "address": "13.84.159.168" + }, + { + "address": "13.65.86.56" + }, + { + "address": "13.65.82.190" + } + ], + "accessEndpointIpAddresses": [ + { + "address": "104.210.153.89" + }, + { + "address": "13.85.79.155" + }, + { + "address": "13.65.39.247" + } + ] + }, + "connector": { + "outgoingIpAddresses": [ + { + "address": "40.84.145.61" + } + ] + } } - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", - "name": "test-workflow", - "type": "Microsoft.Logic/workflows", - "location": "brazilsouth", - "tags": {} + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", + "name": "test-workflow", + "type": "Microsoft.Logic/workflows", + "location": "brazilsouth", + "tags": {} + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowVersions_List.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowVersions_List.json index db0ac1e2a457..7380b3d2eb9a 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowVersions_List.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/WorkflowVersions_List.json @@ -7,71 +7,73 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-04-25T01:39:21.4365247Z", + "changedTime": "2018-08-09T22:54:54.3533634Z", + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {}, + "accessControl": {}, + "endpointsConfiguration": { + "workflow": { + "outgoingIpAddresses": [ + { + "address": "13.84.159.168" + }, + { + "address": "13.65.86.56" + }, + { + "address": "13.65.82.190" + } + ], + "accessEndpointIpAddresses": [ + { + "address": "104.210.153.89" + }, + { + "address": "13.85.79.155" + }, + { + "address": "13.65.39.247" + } + ] + }, + "connector": { + "outgoingIpAddresses": [ + { + "address": "40.84.145.61" + } + ] + } } - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", - "name": "test-workflow", - "type": "Microsoft.Logic/workflows", - "location": "brazilsouth", - "tags": {} - } - ] + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", + "name": "test-workflow", + "type": "Microsoft.Logic/workflows", + "location": "brazilsouth", + "tags": {} + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_CreateOrUpdate.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_CreateOrUpdate.json index aab93945cbb5..6dc3a633b528 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_CreateOrUpdate.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_CreateOrUpdate.json @@ -64,59 +64,61 @@ }, "responses": { "200": { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-04-25T01:39:21.4365247Z", + "changedTime": "2018-08-09T22:54:54.3533634Z", + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {}, + "accessControl": {}, + "endpointsConfiguration": { + "workflow": { + "outgoingIpAddresses": [ + { + "address": "13.84.159.168" + }, + { + "address": "13.65.86.56" + }, + { + "address": "13.65.82.190" + } + ], + "accessEndpointIpAddresses": [ + { + "address": "104.210.153.89" + }, + { + "address": "13.85.79.155" + }, + { + "address": "13.65.39.247" + } + ] + }, + "connector": { + "outgoingIpAddresses": [ + { + "address": "40.84.145.61" + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_GenerateUpgradedDefinition.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_GenerateUpgradedDefinition.json index c2c6b1b45499..04da4cc3e337 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_GenerateUpgradedDefinition.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_GenerateUpgradedDefinition.json @@ -10,17 +10,19 @@ }, "responses": { "200": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "$connections": { - "defaultValue": {}, - "type": "Object" - } - }, - "triggers": {}, - "actions": {}, - "outputs": {} + "body": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "$connections": { + "defaultValue": {}, + "type": "Object" + } + }, + "triggers": {}, + "actions": {}, + "outputs": {} + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_Get.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_Get.json index ab6341d47595..8b12b9cc7763 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_Get.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_Get.json @@ -7,67 +7,69 @@ }, "responses": { "200": { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2018-07-01-preview/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-04-25T01:39:21.4365247Z", + "changedTime": "2018-08-09T22:54:54.3533634Z", + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2018-07-01-preview/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {}, + "accessControl": {}, + "endpointsConfiguration": { + "workflow": { + "outgoingIpAddresses": [ + { + "address": "13.84.159.168" + }, + { + "address": "13.65.86.56" + }, + { + "address": "13.65.82.190" + } + ], + "accessEndpointIpAddresses": [ + { + "address": "104.210.153.89" + }, + { + "address": "13.85.79.155" + }, + { + "address": "13.65.39.247" + } + ] + }, + "connector": { + "outgoingIpAddresses": [ + { + "address": "40.84.145.61" + } + ] + } } - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", - "name": "test-workflow", - "type": "Microsoft.Logic/workflows", - "location": "brazilsouth", - "tags": {} + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", + "name": "test-workflow", + "type": "Microsoft.Logic/workflows", + "location": "brazilsouth", + "tags": {} + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_ListByResourceGroup.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_ListByResourceGroup.json index bbe4fe2d03de..2e1d7a83eeb8 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_ListByResourceGroup.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_ListByResourceGroup.json @@ -6,71 +6,73 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-04-25T01:39:21.4365247Z", + "changedTime": "2018-08-09T22:54:54.3533634Z", + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {}, + "accessControl": {}, + "endpointsConfiguration": { + "workflow": { + "outgoingIpAddresses": [ + { + "address": "13.84.159.168" + }, + { + "address": "13.65.86.56" + }, + { + "address": "13.65.82.190" + } + ], + "accessEndpointIpAddresses": [ + { + "address": "104.210.153.89" + }, + { + "address": "13.85.79.155" + }, + { + "address": "13.65.39.247" + } + ] + }, + "connector": { + "outgoingIpAddresses": [ + { + "address": "40.84.145.61" + } + ] + } } - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", - "name": "test-workflow", - "type": "Microsoft.Logic/workflows", - "location": "brazilsouth", - "tags": {} - } - ] + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", + "name": "test-workflow", + "type": "Microsoft.Logic/workflows", + "location": "brazilsouth", + "tags": {} + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_ListBySubscription.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_ListBySubscription.json index 5d18a2201856..1d13883c1213 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_ListBySubscription.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_ListBySubscription.json @@ -5,71 +5,73 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-04-25T01:39:21.4365247Z", + "changedTime": "2018-08-09T22:54:54.3533634Z", + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {}, + "accessControl": {}, + "endpointsConfiguration": { + "workflow": { + "outgoingIpAddresses": [ + { + "address": "13.84.159.168" + }, + { + "address": "13.65.86.56" + }, + { + "address": "13.65.82.190" + } + ], + "accessEndpointIpAddresses": [ + { + "address": "104.210.153.89" + }, + { + "address": "13.85.79.155" + }, + { + "address": "13.65.39.247" + } + ] + }, + "connector": { + "outgoingIpAddresses": [ + { + "address": "40.84.145.61" + } + ] + } } - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", - "name": "test-workflow", - "type": "Microsoft.Logic/workflows", - "location": "brazilsouth", - "tags": {} - } - ] + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", + "name": "test-workflow", + "type": "Microsoft.Logic/workflows", + "location": "brazilsouth", + "tags": {} + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_Update.json b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_Update.json index aab93945cbb5..6dc3a633b528 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_Update.json +++ b/specification/logic/resource-manager/Microsoft.Logic/preview/2018-07-01-preview/examples/Workflows_Update.json @@ -64,59 +64,61 @@ }, "responses": { "200": { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-04-25T01:39:21.4365247Z", + "changedTime": "2018-08-09T22:54:54.3533634Z", + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {}, + "accessControl": {}, + "endpointsConfiguration": { + "workflow": { + "outgoingIpAddresses": [ + { + "address": "13.84.159.168" + }, + { + "address": "13.65.86.56" + }, + { + "address": "13.65.82.190" + } + ], + "accessEndpointIpAddresses": [ + { + "address": "104.210.153.89" + }, + { + "address": "13.85.79.155" + }, + { + "address": "13.65.39.247" + } + ] + }, + "connector": { + "outgoingIpAddresses": [ + { + "address": "40.84.145.61" + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/IntegrationAccountBatchConfigurationsCreateOrUpdate.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/IntegrationAccountBatchConfigurationsCreateOrUpdate.json index 4edb3b10ab55..ceac00bace19 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/IntegrationAccountBatchConfigurationsCreateOrUpdate.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/IntegrationAccountBatchConfigurationsCreateOrUpdate.json @@ -7,18 +7,16 @@ "batchConfigurationName": "testBatchConfiguration", "batchConfiguration": { "properties": { - "properties": { - "batchGroupName": "DEFAULT", - "releaseCriteria": { - "recurrence": { - "frequency": "Minute", - "interval": 1, - "startTime": "2017-03-24T11:43:00", - "timeZone": "India Standard Time" - }, - "messageCount": 10, - "batchSize": 234567 - } + "batchGroupName": "DEFAULT", + "releaseCriteria": { + "recurrence": { + "frequency": "Minute", + "interval": 1, + "startTime": "2017-03-24T11:43:00", + "timeZone": "India Standard Time" + }, + "messageCount": 10, + "batchSize": 234567 } }, "location": "westus" diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/IntegrationAccountsListKeyVaultKeys.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/IntegrationAccountsListKeyVaultKeys.json index 7350ef83e347..dfbe4d860bbf 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/IntegrationAccountsListKeyVaultKeys.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/IntegrationAccountsListKeyVaultKeys.json @@ -5,10 +5,8 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "integrationAccountName": "testIntegrationAccount", "listKeyVaultKeys": { - "keyVault": { - "id": "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault" - }, - "skipToken": "testSkipToken" + "skipToken": "testSkipToken", + "keyVault": {} } }, "responses": { diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/IntegrationAccountsLogTrackingEvent.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/IntegrationAccountsLogTrackingEvent.json index 86ec41230460..66db66a71087 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/IntegrationAccountsLogTrackingEvent.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/IntegrationAccountsLogTrackingEvent.json @@ -6,45 +6,11 @@ "integrationAccountName": "testIntegrationAccount", "logTrackingEvents": { "sourceType": "Microsoft.Logic/workflows", - "source": { - "workflow": { - "systemId": "/locations/westus/scaleunits/test-01/workflows/bf501b3fceaa4a858a166aa64768ced5" - }, - "runInstance": { - "runId": "08586772141809790618914792486CU03" - }, - "operation": { - "operationName": "httpgetaction" - } - }, "events": [ { "eventLevel": "Informational", "eventTime": "2016-08-05T01:54:49.505567Z", "recordType": "AS2Message", - "record": { - "agreementProperties": { - "senderPartnerName": "testPartner1", - "receiverPartnerName": "testPartner2", - "as2To": "testas2to", - "as2From": "testas2from", - "agreementName": "testAgreement" - }, - "messageProperties": { - "direction": "Receive", - "messageId": "12345", - "dispositionType": "received-success", - "fileName": "test", - "isMessageFailed": false, - "IsMessageEncrypted": false, - "IsMessageSigned": false, - "correlationMessageId": "Unique message identifier", - "isMessageCompressed": false, - "isNrrEnabled": true, - "isMdnExpected": true, - "mdnType": "Async" - } - }, "error": { "message": "Some error occurred", "code": "NotFound" diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/OperationsList.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/OperationsList.json index 21f8bc57f4c6..3570e17afb96 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/OperationsList.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/OperationsList.json @@ -4,1348 +4,690 @@ }, "responses": { "200": { - "value": [ - { - "name": "Microsoft.Logic/operations/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Operation", - "operation": "Get Operation", - "description": "Gets the operation." - } - }, - { - "name": "Microsoft.Logic/register/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Resource Provider", - "operation": "Register Resource Provider", - "description": "Registers the Microsoft.Logic resource provider for a given subscription." - } - }, - { - "name": "Microsoft.Logic/locations/workflows/validate/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Validate Workflow", - "description": "Validates the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Get Workflow", - "description": "Reads the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Set Workflow", - "description": "Creates or updates the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Delete Workflow", - "description": "Deletes the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/run/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Run Workflow", - "description": "Starts a run of the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/disable/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Disable Workflow", - "description": "Disables the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/enable/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Enable Workflow", - "description": "Enables the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/suspend/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Suspend Workflow", - "description": "Suspends the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/validate/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Validate Workflow", - "description": "Validates the workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/move/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Move Workflow", - "description": "Moves Workflow from its existing subscription id, resource group, and/or name to a different subscription id, resource group, and/or name." - } - }, - { - "name": "Microsoft.Logic/workflows/listSwagger/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "Get workflow swagger", - "description": "Gets the workflow swagger definitions." - } - }, - { - "name": "Microsoft.Logic/workflows/versions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Version", - "operation": "Get Workflow Version", - "description": "Reads the workflow version." - } - }, - { - "name": "Microsoft.Logic/workflows/versions/triggers/listCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger", - "operation": "List Trigger Callback URL", - "description": "Gets the callback URL for trigger." - } - }, - { - "name": "Microsoft.Logic/workflows/accessKeys/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Access Key", - "operation": "Get Access Key", - "description": "Reads the access key." - } - }, - { - "name": "Microsoft.Logic/workflows/accessKeys/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Access Key", - "operation": "Set Access Key", - "description": "Creates or updates the access key." - } - }, - { - "name": "Microsoft.Logic/workflows/accessKeys/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Access Key", - "operation": "Delete Access Key", - "description": "Deletes the access key." - } - }, - { - "name": "Microsoft.Logic/workflows/accessKeys/list/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Access Key", - "operation": "List Access Key", - "description": "Lists the access key secrets." - } - }, - { - "name": "Microsoft.Logic/workflows/accessKeys/regenerate/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Access Key", - "operation": "Regenerate Access Key", - "description": "Regenerates the access key secrets." - } - }, - { - "name": "Microsoft.Logic/workflows/regenerateAccessKey/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Access Key", - "operation": "Regenerate Access Key", - "description": "Regenerates the access key secrets." - } - }, - { - "name": "Microsoft.Logic/workflows/listCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow", - "operation": "List workflow callback URL", - "description": "Gets the callback URL for workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger", - "operation": "Get Trigger", - "description": "Reads the trigger." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/run/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger", - "operation": "Trigger Run", - "description": "Executes the trigger." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/reset/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger", - "operation": "Trigger Reset", - "description": "Resets the trigger." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/setState/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger", - "operation": "Set Trigger State", - "description": "Sets the trigger state." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/histories/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger Histories", - "operation": "Get Trigger Histories", - "description": "Reads the trigger histories." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/histories/resubmit/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger Histories", - "operation": "Resubmit trigger", - "description": "Resubmits the workflow trigger." - } - }, - { - "name": "Microsoft.Logic/workflows/triggers/listCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Trigger", - "operation": "List Trigger Callback URL", - "description": "Gets the callback URL for trigger." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run", - "operation": "Get Workflow Run", - "description": "Reads the workflow run." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/cancel/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run", - "operation": "Cancel Workflow Run", - "description": "Cancels the run of a workflow." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/operations/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run Operation", - "operation": "Get Workflow Run Operation Status", - "description": "Reads the workflow run operation status." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run Action", - "operation": "Get Workflow Run Action", - "description": "Reads the workflow run action." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/repetitions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run Action Repetition", - "operation": "Get Workflow Run Action Repetition", - "description": "Reads the workflow run action repetition." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/scoperepetitions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run Action Scope Repetition", - "operation": "Get Workflow Run Action Scope Repetition", - "description": "Reads the workflow run action scope repetition." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/requestHistories/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow run action request history", - "operation": "Gets the workflow run action request history", - "description": "Reads the workflow run action request history." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/repetitions/requestHistories/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow run repetition action request history", - "operation": "Gets the workflow run repetition action request history", - "description": "Reads the workflow run repetition action request history." - } - }, - { - "origin": "System", - "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Diagnostic Setting", - "operation": "Get Workflow Diagnostic Setting", - "description": "Reads the workflow diagnostic settings." - } - }, - { - "origin": "System", - "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Diagnostic Setting", - "operation": "Set Workflow Diagnostic Setting", - "description": "Creates or updates the workflow diagnostic setting." - } - }, - { - "origin": "System", - "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Metric Definition", - "operation": "Get Workflow Metric Definition", - "description": "Reads the workflow metric definitions." - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "RunsStarted", - "displayName": "Runs Started", - "displayDescription": "Number of workflow runs started.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "RunsCompleted", - "displayName": "Runs Completed", - "displayDescription": "Number of workflow runs completed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "RunsSucceeded", - "displayName": "Runs Succeeded", - "displayDescription": "Number of workflow runs succeeded.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "RunsFailed", - "displayName": "Runs Failed", - "displayDescription": "Number of workflow runs failed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "RunsCancelled", - "displayName": "Runs Cancelled", - "displayDescription": "Number of workflow runs cancelled.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "RunLatency", - "displayName": "Run Latency", - "displayDescription": "Latency of completed workflow runs.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "RunSuccessLatency", - "displayName": "Run Success Latency", - "displayDescription": "Latency of succeeded workflow runs.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "RunThrottledEvents", - "displayName": "Run Throttled Events", - "displayDescription": "Number of workflow action or trigger throttled events.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "RunFailurePercentage", - "displayName": "Run Failure Percentage", - "displayDescription": "Percentage of workflow runs failed.", - "unit": "Percent", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "ActionsStarted", - "displayName": "Actions Started ", - "displayDescription": "Number of workflow actions started.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "ActionsCompleted", - "displayName": "Actions Completed ", - "displayDescription": "Number of workflow actions completed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "ActionsSucceeded", - "displayName": "Actions Succeeded ", - "displayDescription": "Number of workflow actions succeeded.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "ActionsFailed", - "displayName": "Actions Failed ", - "displayDescription": "Number of workflow actions failed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "ActionsSkipped", - "displayName": "Actions Skipped ", - "displayDescription": "Number of workflow actions skipped.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "ActionLatency", - "displayName": "Action Latency ", - "displayDescription": "Latency of completed workflow actions.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "ActionSuccessLatency", - "displayName": "Action Success Latency ", - "displayDescription": "Latency of succeeded workflow actions.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "ActionThrottledEvents", - "displayName": "Action Throttled Events", - "displayDescription": "Number of workflow action throttled events..", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggersStarted", - "displayName": "Triggers Started ", - "displayDescription": "Number of workflow triggers started.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggersCompleted", - "displayName": "Triggers Completed ", - "displayDescription": "Number of workflow triggers completed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggersSucceeded", - "displayName": "Triggers Succeeded ", - "displayDescription": "Number of workflow triggers succeeded.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggersFailed", - "displayName": "Triggers Failed ", - "displayDescription": "Number of workflow triggers failed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggersSkipped", - "displayName": "Triggers Skipped", - "displayDescription": "Number of workflow triggers skipped.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggersFired", - "displayName": "Triggers Fired ", - "displayDescription": "Number of workflow triggers fired.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TriggerLatency", - "displayName": "Trigger Latency ", - "displayDescription": "Latency of completed workflow triggers.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "TriggerFireLatency", - "displayName": "Trigger Fire Latency ", - "displayDescription": "Latency of fired workflow triggers.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "TriggerSuccessLatency", - "displayName": "Trigger Success Latency ", - "displayDescription": "Latency of succeeded workflow triggers.", - "unit": "Seconds", - "aggregationType": "Average", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": false - }, - { - "name": "TriggerThrottledEvents", - "displayName": "Trigger Throttled Events", - "displayDescription": "Number of workflow trigger throttled events.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "BillableActionExecutions", - "displayName": "Billable Action Executions", - "displayDescription": "Number of workflow action executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "BillableTriggerExecutions", - "displayName": "Billable Trigger Executions", - "displayDescription": "Number of workflow trigger executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TotalBillableExecutions", - "displayName": "Total Billable Executions", - "displayDescription": "Number of workflow executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "BillableNativeActionExecutions", - "displayName": "Billable Native Action Executions", - "displayDescription": "Number of native workflow action executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "BillableNativeTriggerExecutions", - "displayName": "Billable Native Trigger Executions", - "displayDescription": "Number of native workflow trigger executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TotalBillableNativeExecutions", - "displayName": "Total Native Billable Executions", - "displayDescription": "Number of native workflow executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "BillableStandardActionExecutions", - "displayName": "Billable Standard Action Executions", - "displayDescription": "Number of standard workflow action executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "BillableStandardTriggerExecutions", - "displayName": "Billable Standard Trigger Executions", - "displayDescription": "Number of standard workflow trigger executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - }, - { - "name": "TotalBillableStandardExecutions", - "displayName": "Total Standard Billable Executions", - "displayDescription": "Number of standard workflow executions getting billed.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [], - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1H" - } - ], - "fillGapWithZero": true - } - ] + "body": { + "value": [ + { + "name": "Microsoft.Logic/operations/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Operation", + "operation": "Get Operation" } - } - }, - { - "origin": "System", - "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Log Definition", - "operation": "Get Workflow Log Definition", - "description": "Reads the workflow log definitions." - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "WorkflowRuntime", - "displayName": "Workflow runtime diagnostic events", - "description": "Diagnostic events related to workflow runtime executions.", - "blobDuration": "PT1H" - } - ] + }, + { + "name": "Microsoft.Logic/register/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Resource Provider", + "operation": "Register Resource Provider" } - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/listExpressionTraces/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run Action", - "operation": "List Workflow Run Action Expression Traces", - "description": "Gets the workflow run action expression traces." - } - }, - { - "name": "Microsoft.Logic/workflows/runs/actions/repetitions/listExpressionTraces/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Workflow Run Action Repetition", - "operation": "List Workflow Run Action Repetition Expression Traces", - "description": "Gets the workflow run action repetition expression traces." - } - }, - { - "origin": "System", - "name": "Microsoft.Logic/integrationAccounts/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Log Definition", - "operation": "Get Integration Account Log Definition", - "description": "Reads the Integration Account log definitions." - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "IntegrationAccountTrackingEvents", - "displayName": "Integration Account track events", - "description": "Track events related to Integration Account.", - "blobDuration": "PT1H" - } - ] + }, + { + "name": "Microsoft.Logic/locations/workflows/validate/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Validate Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Get Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Set Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Delete Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/run/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Run Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/disable/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Disable Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/enable/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Enable Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/suspend/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Suspend Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/validate/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Validate Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/move/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Move Workflow" + } + }, + { + "name": "Microsoft.Logic/workflows/listSwagger/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "Get workflow swagger" + } + }, + { + "name": "Microsoft.Logic/workflows/versions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Version", + "operation": "Get Workflow Version" + } + }, + { + "name": "Microsoft.Logic/workflows/versions/triggers/listCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger", + "operation": "List Trigger Callback URL" + } + }, + { + "name": "Microsoft.Logic/workflows/accessKeys/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Access Key", + "operation": "Get Access Key" + } + }, + { + "name": "Microsoft.Logic/workflows/accessKeys/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Access Key", + "operation": "Set Access Key" + } + }, + { + "name": "Microsoft.Logic/workflows/accessKeys/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Access Key", + "operation": "Delete Access Key" + } + }, + { + "name": "Microsoft.Logic/workflows/accessKeys/list/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Access Key", + "operation": "List Access Key" + } + }, + { + "name": "Microsoft.Logic/workflows/accessKeys/regenerate/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Access Key", + "operation": "Regenerate Access Key" + } + }, + { + "name": "Microsoft.Logic/workflows/regenerateAccessKey/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Access Key", + "operation": "Regenerate Access Key" + } + }, + { + "name": "Microsoft.Logic/workflows/listCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow", + "operation": "List workflow callback URL" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger", + "operation": "Get Trigger" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/run/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger", + "operation": "Trigger Run" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/reset/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger", + "operation": "Trigger Reset" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/setState/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger", + "operation": "Set Trigger State" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/histories/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger Histories", + "operation": "Get Trigger Histories" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/histories/resubmit/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger Histories", + "operation": "Resubmit trigger" + } + }, + { + "name": "Microsoft.Logic/workflows/triggers/listCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Trigger", + "operation": "List Trigger Callback URL" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run", + "operation": "Get Workflow Run" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/cancel/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run", + "operation": "Cancel Workflow Run" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/operations/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run Operation", + "operation": "Get Workflow Run Operation Status" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run Action", + "operation": "Get Workflow Run Action" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/repetitions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run Action Repetition", + "operation": "Get Workflow Run Action Repetition" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/scoperepetitions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run Action Scope Repetition", + "operation": "Get Workflow Run Action Scope Repetition" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/requestHistories/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow run action request history", + "operation": "Gets the workflow run action request history" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/repetitions/requestHistories/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow run repetition action request history", + "operation": "Gets the workflow run repetition action request history" + } + }, + { + "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Diagnostic Setting", + "operation": "Get Workflow Diagnostic Setting" + } + }, + { + "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Diagnostic Setting", + "operation": "Set Workflow Diagnostic Setting" + } + }, + { + "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Metric Definition", + "operation": "Get Workflow Metric Definition" + } + }, + { + "name": "Microsoft.Logic/workflows/providers/Microsoft.Insights/logDefinitions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Log Definition", + "operation": "Get Workflow Log Definition" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/listExpressionTraces/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run Action", + "operation": "List Workflow Run Action Expression Traces" + } + }, + { + "name": "Microsoft.Logic/workflows/runs/actions/repetitions/listExpressionTraces/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Workflow Run Action Repetition", + "operation": "List Workflow Run Action Repetition Expression Traces" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/providers/Microsoft.Insights/logDefinitions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Log Definition", + "operation": "Get Integration Account Log Definition" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "Get Integration Account" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "Set Integration Account" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "Delete Integration Account" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/regenerateAccessKey/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "Regenerate Access Key" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/listCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "List Integration Account Callback URL" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/listKeyVaultKeys/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "List Key Vault Keys" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/logTrackingEvents/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "Log Integration Account Tracking Events" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/join/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account", + "operation": "Join Integration Account" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/partners/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Partner", + "operation": "Get Integration Account Partner" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/partners/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Partner", + "operation": "Set Integration Account Partner" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/partners/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Partner", + "operation": "Delete Integration Account Partner" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/partners/listContentCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Partner", + "operation": "List Integration Account Partner Content Callback URL" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/agreements/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Agreement", + "operation": "Get Integration Account Agreement" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/agreements/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Agreement", + "operation": "Set Integration Account Agreement" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/agreements/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Agreement", + "operation": "Delete Integration Account Agreement" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/agreements/listContentCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Agreement", + "operation": "List Integration Account Agreement Content Callback URL" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/certificates/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Certificate", + "operation": "Get Integration Account Certificate" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/certificates/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Certificate", + "operation": "Set Integration Account Certificate" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/certificates/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Certificate", + "operation": "Delete Integration Account Certificate" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/schemas/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Schema", + "operation": "Get Integration Account Schema" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/schemas/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Schema", + "operation": "Set Integration Account Schema" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/schemas/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Schema", + "operation": "Delete Integration Account Schema" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/schemas/listContentCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Schema", + "operation": "List Integration Account Schema Content Callback URL" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/maps/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Map", + "operation": "Get Integration Account Map" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/maps/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Map", + "operation": "Set Integration Account Map" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/maps/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Map", + "operation": "Delete Integration Account Map" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/maps/listContentCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Map", + "operation": "List Integration Account Map Content Callback URL" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/assemblies/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Assembly", + "operation": "Get Integration Account Assembly" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/assemblies/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Assembly", + "operation": "Set Integration Account Assembly" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/assemblies/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Assembly", + "operation": "Delete Integration Account Assembly" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/assemblies/listContentCallbackUrl/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Assembly", + "operation": "List Integration Account Assembly Content Callback URL" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/batchConfigurations/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Batch Configuration", + "operation": "Get Integration Account Batch Configuration" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/batchConfigurations/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Batch Configuration", + "operation": "Set Integration Account Batch Configuration" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/batchConfigurations/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Batch Configuration", + "operation": "Delete Integration Account Batch Configuration" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/sessions/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Session", + "operation": "Get Integration Account Session" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/sessions/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Session", + "operation": "Set Integration Account Session" + } + }, + { + "name": "Microsoft.Logic/integrationAccounts/sessions/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Account Session", + "operation": "Delete Integration Account Session" + } + }, + { + "name": "Microsoft.Logic/integrationServiceEnvironments/read", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Service Environment", + "operation": "Get Integration Service Environment" + } + }, + { + "name": "Microsoft.Logic/integrationServiceEnvironments/write", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Service Environment", + "operation": "Set Integration Service Environment" + } + }, + { + "name": "Microsoft.Logic/integrationServiceEnvironments/delete", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Service Environment", + "operation": "Delete Integration Service Environment" + } + }, + { + "name": "Microsoft.Logic/integrationServiceEnvironments/join/action", + "display": { + "provider": "Microsoft Logic", + "resource": "Integration Service Environment", + "operation": "Join Integration Service Environment" } } - }, - { - "name": "Microsoft.Logic/integrationAccounts/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "Get Integration Account", - "description": "Reads the integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "Set Integration Account", - "description": "Creates or updates the integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "Delete Integration Account", - "description": "Deletes the integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/regenerateAccessKey/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "Regenerate Access Key", - "description": "Regenerates the access key secrets." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/listCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "List Integration Account Callback URL", - "description": "Gets the callback URL for integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/listKeyVaultKeys/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "List Key Vault Keys", - "description": "Gets the keys in the key vault." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/logTrackingEvents/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "Log Integration Account Tracking Events", - "description": "Logs the tracking events in the integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/join/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account", - "operation": "Join Integration Account", - "description": "Joins the Integration Account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/partners/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Partner", - "operation": "Get Integration Account Partner", - "description": "Reads the parter in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/partners/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Partner", - "operation": "Set Integration Account Partner", - "description": "Creates or updates the partner in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/partners/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Partner", - "operation": "Delete Integration Account Partner", - "description": "Deletes the partner in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/partners/listContentCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Partner", - "operation": "List Integration Account Partner Content Callback URL", - "description": "Gets the callback URL for partner content in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/agreements/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Agreement", - "operation": "Get Integration Account Agreement", - "description": "Reads the agreement in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/agreements/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Agreement", - "operation": "Set Integration Account Agreement", - "description": "Creates or updates the agreement in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/agreements/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Agreement", - "operation": "Delete Integration Account Agreement", - "description": "Deletes the agreement in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/agreements/listContentCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Agreement", - "operation": "List Integration Account Agreement Content Callback URL", - "description": "Gets the callback URL for agreement content in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/certificates/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Certificate", - "operation": "Get Integration Account Certificate", - "description": "Reads the certificate in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/certificates/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Certificate", - "operation": "Set Integration Account Certificate", - "description": "Creates or updates the certificate in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/certificates/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Certificate", - "operation": "Delete Integration Account Certificate", - "description": "Deletes the certificate in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/schemas/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Schema", - "operation": "Get Integration Account Schema", - "description": "Reads the schema in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/schemas/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Schema", - "operation": "Set Integration Account Schema", - "description": "Creates or updates the schema in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/schemas/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Schema", - "operation": "Delete Integration Account Schema", - "description": "Deletes the schema in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/schemas/listContentCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Schema", - "operation": "List Integration Account Schema Content Callback URL", - "description": "Gets the callback URL for schema content in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/maps/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Map", - "operation": "Get Integration Account Map", - "description": "Reads the map in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/maps/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Map", - "operation": "Set Integration Account Map", - "description": "Creates or updates the map in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/maps/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Map", - "operation": "Delete Integration Account Map", - "description": "Deletes the map in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/maps/listContentCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Map", - "operation": "List Integration Account Map Content Callback URL", - "description": "Gets the callback URL for map content in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/assemblies/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Assembly", - "operation": "Get Integration Account Assembly", - "description": "Reads the assembly in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/assemblies/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Assembly", - "operation": "Set Integration Account Assembly", - "description": "Creates or updates the assembly in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/assemblies/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Assembly", - "operation": "Delete Integration Account Assembly", - "description": "Deletes the assembly in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/assemblies/listContentCallbackUrl/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Assembly", - "operation": "List Integration Account Assembly Content Callback URL", - "description": "Gets the callback URL for assembly content in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/batchConfigurations/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Batch Configuration", - "operation": "Get Integration Account Batch Configuration", - "description": "Reads the batch configuration in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/batchConfigurations/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Batch Configuration", - "operation": "Set Integration Account Batch Configuration", - "description": "Creates or updates the batch configuration in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/batchConfigurations/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Batch Configuration", - "operation": "Delete Integration Account Batch Configuration", - "description": "Deletes the batch configuration in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/sessions/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Session", - "operation": "Get Integration Account Session", - "description": "Reads the batch configuration in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/sessions/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Session", - "operation": "Set Integration Account Session", - "description": "Creates or updates the session in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationAccounts/sessions/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Account Session", - "operation": "Delete Integration Account Session", - "description": "Deletes the session in integration account." - } - }, - { - "name": "Microsoft.Logic/integrationServiceEnvironments/read", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Service Environment", - "operation": "Get Integration Service Environment", - "description": "Reads the integration service environment." - } - }, - { - "name": "Microsoft.Logic/integrationServiceEnvironments/write", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Service Environment", - "operation": "Set Integration Service Environment", - "description": "Creates or updates the integration service environment." - } - }, - { - "name": "Microsoft.Logic/integrationServiceEnvironments/delete", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Service Environment", - "operation": "Delete Integration Service Environment", - "description": "Deletes the integration service environment." - } - }, - { - "name": "Microsoft.Logic/integrationServiceEnvironments/join/action", - "display": { - "provider": "Microsoft Logic", - "resource": "Integration Service Environment", - "operation": "Join Integration Service Environment", - "description": "Joins the Integration Service Environment." - } - } - ] + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/RosettaNetProcessConfigurationsCreateOrUpdate.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/RosettaNetProcessConfigurationsCreateOrUpdate.json new file mode 100644 index 000000000000..8576c68e7cfe --- /dev/null +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/RosettaNetProcessConfigurationsCreateOrUpdate.json @@ -0,0 +1,194 @@ +{ + "title": "Create or update integration account rosettanet process configuration example", + "parameters": { + "api-version": "2016-06-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "integrationAccountName": "testia123", + "rosettaNetProcessConfigurationName": "3A4", + "rosettaNetProcessConfiguration": { + "properties": { + "processCode": "3A4", + "processVersion": "V02.02.00", + "processName": "Request Purchase Order", + "description": "Test description", + "activitySettings": { + "activityType": "RequestResponse", + "activityBehavior": { + "isAuthorizationRequired": false, + "persistentConfidentialityScope": "None", + "isSecuredTransportRequired": false, + "actionType": "DoubleAction", + "responseType": "Async", + "nonRepudiationOfOriginAndContent": false, + "retryCount": 2, + "timeToPerformInSeconds": 7200 + }, + "acknowledgmentOfReceiptSettings": { + "isNonRepudiationRequired": false, + "timeToAcknowledgeInSeconds": 600 + } + }, + "initiatorRoleSettings": { + "action": "Purchase Order Request", + "role": "Buyer", + "description": "This partner role creates a demand for a product or service.", + "roleType": "Functional", + "service": "Buyer Service", + "serviceClassification": "Business Service", + "businessDocument": { + "name": "Purchase Order Request", + "description": "A request to accept a purchase order for fulfillment..", + "version": "V02.02.00" + } + }, + "responderRoleSettings": { + "action": "Purchase Order Confirmation Action", + "role": "Seller", + "description": "An organization that sells products to partners in the supply chain.", + "roleType": "Organizational", + "service": "Seller Service", + "serviceClassification": "Business Service", + "businessDocument": { + "name": "Purchase Order Confirmation", + "description": "Formally confirms the status of line item(s) in a Purchase Order. A Purchase Order line item may have one of the following states: accepted, rejected, or pending.", + "version": "V02.02.00" + } + } + } + } + }, + "responses": { + "200": { + "headers": { + "Cache-Control": "no-cache", + "Pragma": "no-cache", + "Content-Type": "application/json; charset=utf-8", + "Expires": -1, + "Vary": "Accept-Encoding", + "Date": "Tue, 21 Feb 2019 20:43:03 GMT" + }, + "body": { + "properties": { + "processCode": "3A4", + "processVersion": "V02.02.00", + "processName": "Request Purchase Order", + "description": "Test description", + "activitySettings": { + "activityType": "RequestResponse", + "activityBehavior": { + "isAuthorizationRequired": false, + "persistentConfidentialityScope": "None", + "isSecuredTransportRequired": false, + "actionType": "DoubleAction", + "responseType": "Async", + "nonRepudiationOfOriginAndContent": false, + "retryCount": 2, + "timeToPerformInSeconds": 7200 + }, + "acknowledgmentOfReceiptSettings": { + "isNonRepudiationRequired": false, + "timeToAcknowledgeInSeconds": 600 + } + }, + "initiatorRoleSettings": { + "action": "Purchase Order Request", + "role": "Buyer", + "description": "This partner role creates a demand for a product or service.", + "roleType": "Functional", + "service": "Buyer Service", + "serviceClassification": "Business Service", + "businessDocument": { + "name": "Purchase Order Request", + "description": "A request to accept a purchase order for fulfillment..", + "version": "V02.02.00" + } + }, + "responderRoleSettings": { + "action": "Purchase Order Confirmation Action", + "role": "Seller", + "description": "An organization that sells products to partners in the supply chain.", + "roleType": "Organizational", + "service": "Seller Service", + "serviceClassification": "Business Service", + "businessDocument": { + "name": "Purchase Order Confirmation", + "description": "Formally confirms the status of line item(s) in a Purchase Order. A Purchase Order line item may have one of the following states: accepted, rejected, or pending.", + "version": "V02.02.00" + } + }, + "createdTime": "2018-10-22T19:33:12.3769017Z", + "changedTime": "2019-02-21T20:41:35.9796534Z" + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Logic/integrationAccounts/testia123/rosettaNetProcessConfigurations/3A4", + "name": "3A4", + "type": "Microsoft.Logic/integrationAccounts/rosettaNetProcessConfigurations" + } + }, + "201": { + "headers": { + "Cache-Control": "no-cache", + "Pragma": "no-cache", + "Content-Type": "application/json; charset=utf-8", + "Expires": -1, + "Date": "Tue, 21 Feb 2019 20:43:03 GMT" + }, + "body": { + "properties": { + "createdTime": "2019-02-21T20:41:35.9789189Z", + "changedTime": "2019-02-21T20:41:35.9796534Z", + "processCode": "3A4", + "processVersion": "V02.02.00", + "processName": "Request Purchase Order", + "description": "Test description", + "activitySettings": { + "activityType": "RequestResponse", + "activityBehavior": { + "isAuthorizationRequired": false, + "persistentConfidentialityScope": "None", + "isSecuredTransportRequired": false, + "actionType": "DoubleAction", + "responseType": "Async", + "nonRepudiationOfOriginAndContent": false, + "retryCount": 2, + "timeToPerformInSeconds": 7200 + }, + "acknowledgmentOfReceiptSettings": { + "isNonRepudiationRequired": false, + "timeToAcknowledgeInSeconds": 600 + } + }, + "initiatorRoleSettings": { + "action": "Purchase Order Request", + "role": "Buyer", + "description": "This partner role creates a demand for a product or service.", + "roleType": "Functional", + "service": "Buyer Service", + "serviceClassification": "Business Service", + "businessDocument": { + "name": "Purchase Order Request", + "description": "A request to accept a purchase order for fulfillment..", + "version": "V02.02.00" + } + }, + "responderRoleSettings": { + "action": "Purchase Order Confirmation Action", + "role": "Seller", + "description": "An organization that sells products to partners in the supply chain.", + "roleType": "Organizational", + "service": "Seller Service", + "serviceClassification": "Business Service", + "businessDocument": { + "name": "Purchase Order Confirmation", + "description": "Formally confirms the status of line item(s) in a Purchase Order. A Purchase Order line item may have one of the following states: accepted, rejected, or pending.", + "version": "V02.02.00" + } + } + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Logic/integrationAccounts/testia123/rosettaNetProcessConfigurations/3A4", + "name": "3A4", + "type": "Microsoft.Logic/integrationAccounts/rosettaNetProcessConfigurations" + } + } + } +} diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/RosettaNetProcessConfigurationsDelete.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/RosettaNetProcessConfigurationsDelete.json new file mode 100644 index 000000000000..64ef9a187eee --- /dev/null +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/RosettaNetProcessConfigurationsDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2016-06-01", + "resourceGroupName": "testResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "integrationAccountName": "testIntegrationAccount", + "rosettaNetProcessConfigurationName": "3A4" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/RosettaNetProcessConfigurationsGet.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/RosettaNetProcessConfigurationsGet.json new file mode 100644 index 000000000000..7166e46950c4 --- /dev/null +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/RosettaNetProcessConfigurationsGet.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2016-06-01", + "resourceGroupName": "testResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "integrationAccountName": "testIntegrationAccount", + "rosettaNetProcessConfigurationName": "3A4" + }, + "responses": { + "200": { + "body": { + "properties": { + "processCode": "3A4", + "processVersion": "V02.02.00", + "processName": "3A4", + "activitySettings": { + "activityType": "RequestResponse", + "activityBehavior": { + "isAuthorizationRequired": true, + "persistentConfidentialityScope": "Payload", + "isSecuredTransportRequired": true, + "actionType": "DoubleAction", + "responseType": "Async", + "nonRepudiationOfOriginAndContent": false, + "retryCount": 4, + "timeToPerformInSeconds": 600 + }, + "acknowledgmentOfReceiptSettings": { + "isNonRepudiationRequired": false, + "timeToAcknowledgeInSeconds": 60 + } + }, + "initiatorRoleSettings": { + "action": "Purchase Order Request Action", + "role": "Buyer", + "description": "An employee or organization that buys products for a partner type in the supply chain.", + "roleType": "Functional", + "service": "Buyer Service", + "serviceClassification": "Business Service", + "businessDocument": { + "name": "Purchase Order Request", + "description": "A request to accept a purchase order for fulfillment.", + "version": "V02.02.00" + } + }, + "responderRoleSettings": { + "action": "Purchase Order Confirmation Action", + "role": "Seller", + "description": "An organization that sells products to partners in the supply chain.", + "roleType": "Organizational", + "service": "Seller Service", + "serviceClassification": "Business Service", + "businessDocument": { + "name": "Purchase Order Confirmation", + "description": "Formally confirms the status of line item(s) in a Purchase Order. A Purchase Order line item may have one of the following states: accepted, rejected, or pending.", + "version": "V02.02.00" + } + }, + "createdTime": "2019-05-22T13:46:54.6312192Z", + "changedTime": "2019-05-29T20:09:48.5167814Z" + }, + "id": "/integrationAccounts/testIntegrationAccount/rosettaNetProcessConfigurations/3A4", + "name": "3A4", + "type": "Microsoft.Logic/integrationAccounts/rosettaNetProcessConfigurations" + } + } + } +} diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/RosettaNetProcessConfigurationsListByIntegrationAccounts.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/RosettaNetProcessConfigurationsListByIntegrationAccounts.json new file mode 100644 index 000000000000..199ee16443af --- /dev/null +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/RosettaNetProcessConfigurationsListByIntegrationAccounts.json @@ -0,0 +1,135 @@ +{ + "title": "List by integration account rosettanet process configuration examples", + "parameters": { + "api-version": "2016-06-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "integrationAccountName": "testia123" + }, + "responses": { + "200": { + "headers": { + "Cache-Control": "no-cache", + "Pragma": "no-cache", + "Content-Type": "application/json; charset=utf-8", + "Expires": -1, + "Vary": "Accept-Encoding", + "Date": "Tue, 28 May 2019 20:43:03 GMT" + }, + "body": { + "value": [ + { + "properties": { + "processCode": "0A1", + "processVersion": "V02.00.00", + "processName": "0A1", + "activitySettings": { + "activityType": "InformationDistribution", + "activityBehavior": { + "isAuthorizationRequired": false, + "persistentConfidentialityScope": "None", + "isSecuredTransportRequired": false, + "actionType": "SingleAction", + "responseType": "Async", + "nonRepudiationOfOriginAndContent": false, + "retryCount": 4, + "timeToPerformInSeconds": 86400 + }, + "acknowledgmentOfReceiptSettings": { + "isNonRepudiationRequired": false, + "timeToAcknowledgeInSeconds": 36400 + } + }, + "initiatorRoleSettings": { + "action": "Failure Notification Action", + "role": "PIP Failure Notifier", + "description": "An organizational process that automatically notifies the appropriate Failure Report Administrator of a PIP process failure.", + "roleType": "Functional", + "service": "PIP Failure Notifier Service", + "serviceClassification": "Business Service", + "businessDocument": { + "name": "Failure Notification", + "description": "An unsolicited formal notification of the failure to perform a business activity.", + "version": "V02.00.00" + } + }, + "responderRoleSettings": { + "action": "Failure Notification Action", + "role": "Failure Report Administrator", + "description": "An employee or organizational entity that receives and processes PIP Failure Notifications.", + "roleType": "Organizational", + "service": "Failure Report Administrator Service", + "serviceClassification": "Business Service", + "businessDocument": { + "name": "Failure Notification", + "description": "An unsolicited formal notification of the failure to perform a business activity.", + "version": "V02.00.00" + } + }, + "createdTime": "2019-05-22T13:47:26.330972Z", + "changedTime": "2019-05-22T13:47:26.3328234Z" + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Logic/integrationAccounts/testia123//rosettaNetProcessConfigurations/0A1", + "name": "IntegrationAccountSession1662", + "type": "Microsoft.Logic/integrationAccounts/sessions" + }, + { + "properties": { + "processCode": "3A3", + "processVersion": "R02.00.00", + "processName": "3A3", + "activitySettings": { + "activityType": "RequestResponse", + "activityBehavior": { + "isAuthorizationRequired": false, + "persistentConfidentialityScope": "None", + "isSecuredTransportRequired": false, + "actionType": "DoubleAction", + "responseType": "Async", + "nonRepudiationOfOriginAndContent": false, + "retryCount": 4, + "timeToPerformInSeconds": 86400 + }, + "acknowledgmentOfReceiptSettings": { + "isNonRepudiationRequired": false, + "timeToAcknowledgeInSeconds": 36400 + } + }, + "initiatorRoleSettings": { + "action": "Shopping Cart Transfer Request Action", + "role": "Sales Facilitator", + "description": "This partner role facilitates the sale of product between partners in the supply chain.", + "roleType": "Functional", + "service": "Sales Facilitator Service", + "serviceClassification": "Business Service", + "businessDocument": { + "name": "Shopping Cart Transfer Request", + "description": "Requests a Supplier to confirm the transfer of a shopping cart.", + "version": "R02.00.00" + } + }, + "responderRoleSettings": { + "action": "Shopping Cart Transfer Confirmation Action", + "role": "Supplier", + "description": "This partner role supplies product to customers in the supply chain.", + "roleType": "Organizational", + "service": "Supplier Service", + "serviceClassification": "Business Service", + "businessDocument": { + "name": "Shopping Cart Transfer Confirmation", + "description": "Confirms the transfer of a shopping cart from a Sales Facilitator to a Supplier.", + "version": "R02.00.00" + } + }, + "createdTime": "2019-05-31T06:46:08.1261454Z", + "changedTime": "2019-05-31T06:46:08.129905Z" + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Logic/integrationAccounts/testia123/rosettaNetProcessConfigurations/3A3", + "name": "3A3", + "type": "Microsoft.Logic/integrationAccounts/rosettaNetProcessConfigurations" + } + ] + } + } + } +} diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunActionsGet.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunActionsGet.json index 79c49a98d260..485d4d3c6187 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunActionsGet.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunActionsGet.json @@ -9,37 +9,38 @@ }, "responses": { "200": { - "properties": { - "inputsLink": { - "uri": "https://tempuri.org", - "contentVersion": "5XUACojv0aBfuP56os3CWw==", - "contentSize": 46, - "contentHash": { - "algorithm": "md5", - "value": "XXUACojv0aBfuP56os3CWw==" - } + "body": { + "properties": { + "inputsLink": { + "uri": "https://tempuri.org", + "contentVersion": "5XUACojv0aBfuP56os3CWw==", + "contentSize": 46, + "contentHash": { + "algorithm": "md5", + "value": "XXUACojv0aBfuP56os3CWw==" + } + }, + "outputsLink": { + "uri": "https://tempuri.org", + "contentVersion": "6X6KRrevI6AAxEvo9FeBYQ==", + "contentSize": 11873, + "contentHash": { + "algorithm": "md5", + "value": "XX6KRrevI6AAxEvo9FeBYQ==" + } + }, + "startTime": "2018-08-10T20:16:32.305236Z", + "endTime": "2018-08-10T20:16:32.5450625Z", + "correlation": { + "clientTrackingId": "08586676746934337772206998657CU22" + }, + "status": "Succeeded", + "code": "OK" }, - "outputsLink": { - "uri": "https://tempuri.org", - "contentVersion": "6X6KRrevI6AAxEvo9FeBYQ==", - "contentSize": 11873, - "contentHash": { - "algorithm": "md5", - "value": "XX6KRrevI6AAxEvo9FeBYQ==" - } - }, - "startTime": "2018-08-10T20:16:32.305236Z", - "endTime": "2018-08-10T20:16:32.5450625Z", - "correlation": { - "actionTrackingId": "56063357-45dd-4278-9be5-8220ce0cc9ca", - "clientTrackingId": "08586676746934337772206998657CU22" - }, - "status": "Succeeded", - "code": "OK" - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions/HTTP", - "name": "HTTP", - "type": "Microsoft.Logic/workflows/runs/actions" + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions/HTTP", + "name": "HTTP", + "type": "Microsoft.Logic/workflows/runs/actions" + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunActionsList.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunActionsList.json index 65e48ec70a79..d66df6776a95 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunActionsList.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunActionsList.json @@ -8,41 +8,42 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "inputsLink": { - "uri": "https://tempuri.org", - "contentVersion": "5XUACojv0aBfuP56os3CWw==", - "contentSize": 46, - "contentHash": { - "algorithm": "md5", - "value": "XXUACojv0aBfuP56os3CWw==" - } + "body": { + "value": [ + { + "properties": { + "inputsLink": { + "uri": "https://tempuri.org", + "contentVersion": "5XUACojv0aBfuP56os3CWw==", + "contentSize": 46, + "contentHash": { + "algorithm": "md5", + "value": "XXUACojv0aBfuP56os3CWw==" + } + }, + "outputsLink": { + "uri": "https://tempuri.org", + "contentVersion": "6X6KRrevI6AAxEvo9FeBYQ==", + "contentSize": 11873, + "contentHash": { + "algorithm": "md5", + "value": "XX6KRrevI6AAxEvo9FeBYQ==" + } + }, + "startTime": "2018-08-10T20:16:32.305236Z", + "endTime": "2018-08-10T20:16:32.5450625Z", + "correlation": { + "clientTrackingId": "08586676746934337772206998657CU22" + }, + "status": "Succeeded", + "code": "OK" }, - "outputsLink": { - "uri": "https://tempuri.org", - "contentVersion": "6X6KRrevI6AAxEvo9FeBYQ==", - "contentSize": 11873, - "contentHash": { - "algorithm": "md5", - "value": "XX6KRrevI6AAxEvo9FeBYQ==" - } - }, - "startTime": "2018-08-10T20:16:32.305236Z", - "endTime": "2018-08-10T20:16:32.5450625Z", - "correlation": { - "actionTrackingId": "56063357-45dd-4278-9be5-8220ce0cc9ca", - "clientTrackingId": "08586676746934337772206998657CU22" - }, - "status": "Succeeded", - "code": "OK" - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions/HTTP", - "name": "HTTP", - "type": "Microsoft.Logic/workflows/runs/actions" - } - ] + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions/HTTP", + "name": "HTTP", + "type": "Microsoft.Logic/workflows/runs/actions" + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunsGet.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunsGet.json index e2aac39d7dee..e9ff1586ffe9 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunsGet.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunsGet.json @@ -8,35 +8,37 @@ }, "responses": { "200": { - "properties": { - "waitEndTime": "2018-08-10T20:16:32.044238Z", - "startTime": "2018-08-10T20:16:32.044238Z", - "endTime": "2018-08-10T20:16:32.5779999Z", - "status": "Succeeded", - "correlation": { - "clientTrackingId": "08586676746934337772206998657CU22" - }, - "workflow": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676754160363885", - "name": "08586676754160363885", - "type": "Microsoft.Logic/workflows/versions" - }, - "trigger": { - "name": "Recurrence", - "startTime": "2018-08-10T20:16:32.0387927Z", - "endTime": "2018-08-10T20:16:32.0387927Z", - "scheduledTime": "2018-08-10T20:16:31.6344174Z", + "body": { + "properties": { + "waitEndTime": "2018-08-10T20:16:32.044238Z", + "startTime": "2018-08-10T20:16:32.044238Z", + "endTime": "2018-08-10T20:16:32.5779999Z", + "status": "Succeeded", "correlation": { "clientTrackingId": "08586676746934337772206998657CU22" }, - "code": "OK", - "status": "Succeeded" + "workflow": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676754160363885", + "name": "08586676754160363885", + "type": "Microsoft.Logic/workflows/versions" + }, + "trigger": { + "name": "Recurrence", + "startTime": "2018-08-10T20:16:32.0387927Z", + "endTime": "2018-08-10T20:16:32.0387927Z", + "scheduledTime": "2018-08-10T20:16:31.6344174Z", + "correlation": { + "clientTrackingId": "08586676746934337772206998657CU22" + }, + "code": "OK", + "status": "Succeeded" + }, + "outputs": {} }, - "outputs": {} - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22", - "name": "08586676746934337772206998657CU22", - "type": "Microsoft.Logic/workflows/runs" + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22", + "name": "08586676746934337772206998657CU22", + "type": "Microsoft.Logic/workflows/runs" + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunsList.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunsList.json index a0051eb43519..4bf84603c963 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunsList.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowRunsList.json @@ -7,39 +7,41 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "waitEndTime": "2018-08-10T20:16:32.044238Z", - "startTime": "2018-08-10T20:16:32.044238Z", - "endTime": "2018-08-10T20:16:32.5779999Z", - "status": "Succeeded", - "correlation": { - "clientTrackingId": "08586676746934337772206998657CU22" - }, - "workflow": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676754160363885", - "name": "08586676754160363885", - "type": "Microsoft.Logic/workflows/versions" - }, - "trigger": { - "name": "Recurrence", - "startTime": "2018-08-10T20:16:32.0387927Z", - "endTime": "2018-08-10T20:16:32.0387927Z", - "scheduledTime": "2018-08-10T20:16:31.6344174Z", + "body": { + "value": [ + { + "properties": { + "waitEndTime": "2018-08-10T20:16:32.044238Z", + "startTime": "2018-08-10T20:16:32.044238Z", + "endTime": "2018-08-10T20:16:32.5779999Z", + "status": "Succeeded", "correlation": { "clientTrackingId": "08586676746934337772206998657CU22" }, - "code": "OK", - "status": "Succeeded" + "workflow": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676754160363885", + "name": "08586676754160363885", + "type": "Microsoft.Logic/workflows/versions" + }, + "trigger": { + "name": "Recurrence", + "startTime": "2018-08-10T20:16:32.0387927Z", + "endTime": "2018-08-10T20:16:32.0387927Z", + "scheduledTime": "2018-08-10T20:16:31.6344174Z", + "correlation": { + "clientTrackingId": "08586676746934337772206998657CU22" + }, + "code": "OK", + "status": "Succeeded" + }, + "outputs": {} }, - "outputs": {} - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22", - "name": "08586676746934337772206998657CU22", - "type": "Microsoft.Logic/workflows/runs" - } - ] + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22", + "name": "08586676746934337772206998657CU22", + "type": "Microsoft.Logic/workflows/runs" + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggerHistoriesGet.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggerHistoriesGet.json index 62075f31e66f..4dc85ea24f6b 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggerHistoriesGet.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggerHistoriesGet.json @@ -9,11 +9,10 @@ }, "responses": { "200": { - "value": { + "body": { "properties": { "startTime": "2018-08-10T20:16:32.0387927Z", "endTime": "2018-08-10T20:16:32.2987996Z", - "scheduledTime": "2018-08-10T20:16:31.6344174Z", "status": "Succeeded", "code": "OK", "correlation": { diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggerHistoriesList.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggerHistoriesList.json index 0a5a49364185..3d66e13bc6f8 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggerHistoriesList.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggerHistoriesList.json @@ -8,29 +8,30 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "startTime": "2018-08-10T20:16:32.0387927Z", - "endTime": "2018-08-10T20:16:32.2987996Z", - "scheduledTime": "2018-08-10T20:16:31.6344174Z", - "status": "Succeeded", - "code": "OK", - "correlation": { - "clientTrackingId": "08586676746934337772206998657CU22" + "body": { + "value": [ + { + "properties": { + "startTime": "2018-08-10T20:16:32.0387927Z", + "endTime": "2018-08-10T20:16:32.2987996Z", + "status": "Succeeded", + "code": "OK", + "correlation": { + "clientTrackingId": "08586676746934337772206998657CU22" + }, + "fired": true, + "run": { + "name": "08586676746934337772206998657CU22", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/workflows/testWorkflowName/runs/08586676746934337772206998657CU22", + "type": "Microsoft.Logic/workflows/runs" + } }, - "fired": true, - "run": { - "name": "08586676746934337772206998657CU22", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/workflows/testWorkflowName/runs/08586676746934337772206998657CU22", - "type": "Microsoft.Logic/workflows/runs" - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/workflows/testWorkflowName/triggers/testTriggerName/histories/08586676746934337772206998657CU22", - "name": "08586676746934337772206998657CU22", - "type": "Microsoft.Logic/workflows/triggers/histories" - } - ] + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/workflows/testWorkflowName/triggers/testTriggerName/histories/08586676746934337772206998657CU22", + "name": "08586676746934337772206998657CU22", + "type": "Microsoft.Logic/workflows/triggers/histories" + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersGet.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersGet.json index cad2208e14f5..e6003828a922 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersGet.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersGet.json @@ -8,20 +8,22 @@ }, "responses": { "200": { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-08-10T17:32:30.2496336Z", - "changedTime": "2018-08-10T18:47:49.5288666Z", - "state": "Enabled", - "workflow": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676800160476478", - "name": "08586676800160476478", - "type": "Microsoft.Logic/workflows/versions" - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/triggers/manual", - "name": "manual", - "type": "Microsoft.Logic/workflows/triggers" + "body": { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-08-10T17:32:30.2496336Z", + "changedTime": "2018-08-10T18:47:49.5288666Z", + "state": "Enabled", + "workflow": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676800160476478", + "name": "08586676800160476478", + "type": "Microsoft.Logic/workflows/versions" + } + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/triggers/manual", + "name": "manual", + "type": "Microsoft.Logic/workflows/triggers" + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersGetSchemaJson.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersGetSchemaJson.json index cad2208e14f5..94b13c0ac57e 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersGetSchemaJson.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersGetSchemaJson.json @@ -8,20 +8,10 @@ }, "responses": { "200": { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-08-10T17:32:30.2496336Z", - "changedTime": "2018-08-10T18:47:49.5288666Z", - "state": "Enabled", - "workflow": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676800160476478", - "name": "08586676800160476478", - "type": "Microsoft.Logic/workflows/versions" - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/triggers/manual", - "name": "manual", - "type": "Microsoft.Logic/workflows/triggers" + "body": { + "title": "testworkflow", + "content": "{}" + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersList.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersList.json index b7b460a1337c..439c43b23b89 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersList.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersList.json @@ -7,24 +7,26 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-08-10T17:32:30.2496336Z", - "changedTime": "2018-08-10T18:47:49.5288666Z", - "state": "Enabled", - "workflow": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676800160476478", - "name": "08586676800160476478", - "type": "Microsoft.Logic/workflows/versions" - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/triggers/manual", - "name": "manual", - "type": "Microsoft.Logic/workflows/triggers" - } - ] + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-08-10T17:32:30.2496336Z", + "changedTime": "2018-08-10T18:47:49.5288666Z", + "state": "Enabled", + "workflow": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/versions/08586676800160476478", + "name": "08586676800160476478", + "type": "Microsoft.Logic/workflows/versions" + } + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/triggers/manual", + "name": "manual", + "type": "Microsoft.Logic/workflows/triggers" + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersRun.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersRun.json index cccbaa5b4b43..d5ef6341bd95 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersRun.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersRun.json @@ -7,6 +7,8 @@ "triggerName": "manual" }, "responses": { - "default": {} + "default": { + "body": {} + } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersSetState.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersSetState.json index 5403d91ae704..3887816c0f0c 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersSetState.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowTriggersSetState.json @@ -6,9 +6,7 @@ "workflowName": "testWorkflow", "triggerName": "testTrigger", "setState": { - "source": { - "id": "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sourceResGroup/providers/Microsoft.Logic/workflows/sourceWorkflow/triggers/sourceTrigger" - } + "source": {} } }, "responses": { diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowVersionsGet.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowVersionsGet.json index f4e3b1edf5a1..68bf77a17872 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowVersionsGet.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowVersionsGet.json @@ -8,67 +8,32 @@ }, "responses": { "200": { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "properties": { + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] - } - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", - "name": "test-workflow", - "type": "Microsoft.Logic/workflows", - "location": "brazilsouth", - "tags": {} + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {} + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", + "name": "test-workflow", + "type": "Microsoft.Logic/workflows", + "location": "brazilsouth", + "tags": {} + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowVersionsList.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowVersionsList.json index a44b38d1e452..0812c0df6ad0 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowVersionsList.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowVersionsList.json @@ -7,71 +7,36 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "value": [ + { + "properties": { + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] - } - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", - "name": "test-workflow", - "type": "Microsoft.Logic/workflows", - "location": "brazilsouth", - "tags": {} - } - ] + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {} + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", + "name": "test-workflow", + "type": "Microsoft.Logic/workflows", + "location": "brazilsouth", + "tags": {} + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsCreateOrUpdate.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsCreateOrUpdate.json index 776e94be8767..90c83fc78aa3 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsCreateOrUpdate.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsCreateOrUpdate.json @@ -6,11 +6,6 @@ "workflowName": "test-workflow", "workflow": { "properties": { - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, "definition": { "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", "contentVersion": "1.0.0.0", @@ -64,118 +59,54 @@ }, "responses": { "200": { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-04-25T01:39:21.4365247Z", + "changedTime": "2018-08-09T22:54:54.3533634Z", + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] - } + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {} } } }, "201": { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-04-25T01:39:21.4365247Z", + "changedTime": "2018-08-09T22:54:54.3533634Z", + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] - } + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {} } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsGenerateUpgradedDefinition.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsGenerateUpgradedDefinition.json index 0e1dbdff506c..0dbda974d468 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsGenerateUpgradedDefinition.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsGenerateUpgradedDefinition.json @@ -10,17 +10,19 @@ }, "responses": { "200": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "$connections": { - "defaultValue": {}, - "type": "Object" - } - }, - "triggers": {}, - "actions": {}, - "outputs": {} + "body": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "$connections": { + "defaultValue": {}, + "type": "Object" + } + }, + "triggers": {}, + "actions": {}, + "outputs": {} + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsGet.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsGet.json index 8ec69b492675..e9a8d30c027a 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsGet.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsGet.json @@ -7,67 +7,35 @@ }, "responses": { "200": { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-04-25T01:39:21.4365247Z", + "changedTime": "2018-08-09T22:54:54.3533634Z", + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] - } - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", - "name": "test-workflow", - "type": "Microsoft.Logic/workflows", - "location": "brazilsouth", - "tags": {} + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {} + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", + "name": "test-workflow", + "type": "Microsoft.Logic/workflows", + "location": "brazilsouth", + "tags": {} + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsListByResourceGroup.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsListByResourceGroup.json index f45331bbcadb..bee0ba58a582 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsListByResourceGroup.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsListByResourceGroup.json @@ -6,71 +6,39 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-04-25T01:39:21.4365247Z", + "changedTime": "2018-08-09T22:54:54.3533634Z", + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] - } - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", - "name": "test-workflow", - "type": "Microsoft.Logic/workflows", - "location": "brazilsouth", - "tags": {} - } - ] + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {} + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", + "name": "test-workflow", + "type": "Microsoft.Logic/workflows", + "location": "brazilsouth", + "tags": {} + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsListBySubscription.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsListBySubscription.json index 911ddf497f30..9aee6ae8b6e1 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsListBySubscription.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsListBySubscription.json @@ -5,71 +5,39 @@ }, "responses": { "200": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-04-25T01:39:21.4365247Z", + "changedTime": "2018-08-09T22:54:54.3533634Z", + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] - } - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", - "name": "test-workflow", - "type": "Microsoft.Logic/workflows", - "location": "brazilsouth", - "tags": {} - } - ] + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {} + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", + "name": "test-workflow", + "type": "Microsoft.Logic/workflows", + "location": "brazilsouth", + "tags": {} + } + ] + } } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsMove.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsMove.json index d0ddd1d86533..22a0534d49f4 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsMove.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsMove.json @@ -5,7 +5,18 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "workflowName": "testWorkflow", "move": { - "id": "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/newResourceGroup/providers/Microsoft.Logic/workflows/newWorkflowName" + "properties": { + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + } + }, + "location": "brazilsouth", + "tags": {} } }, "responses": { diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsUpdate.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsUpdate.json index e41aec2e6d3e..68cbe17e3b4f 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsUpdate.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsUpdate.json @@ -6,11 +6,6 @@ "workflowName": "test-workflow", "workflow": { "properties": { - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, "definition": { "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", "contentVersion": "1.0.0.0", @@ -64,60 +59,28 @@ }, "responses": { "200": { - "properties": { - "provisioningState": "Succeeded", - "createdTime": "2018-04-25T01:39:21.4365247Z", - "changedTime": "2018-08-09T22:54:54.3533634Z", - "state": "Enabled", - "version": "08586677515911718341", - "accessEndpoint": "http://tempuri.org", - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - }, - "parameters": {}, - "accessControl": {}, - "endpointsConfiguration": { - "workflow": { - "outgoingIpAddresses": [ - { - "address": "13.84.159.168" - }, - { - "address": "13.65.86.56" - }, - { - "address": "13.65.82.190" - } - ], - "accessEndpointIpAddresses": [ - { - "address": "104.210.153.89" - }, - { - "address": "13.85.79.155" - }, - { - "address": "13.65.39.247" - } - ] + "body": { + "properties": { + "provisioningState": "Succeeded", + "createdTime": "2018-04-25T01:39:21.4365247Z", + "changedTime": "2018-08-09T22:54:54.3533634Z", + "state": "Enabled", + "version": "08586677515911718341", + "accessEndpoint": "http://tempuri.org", + "integrationAccount": { + "name": "test-integration-account", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", + "type": "Microsoft.Logic/integrationAccounts" }, - "connector": { - "outgoingIpAddresses": [ - { - "address": "40.84.145.61" - } - ] - } + "definition": { + "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": {}, + "triggers": {}, + "actions": {}, + "outputs": {} + }, + "parameters": {} } } } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsValidateByLocation.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsValidateByLocation.json index a1ad978dc8c7..407bb45c8b9d 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsValidateByLocation.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsValidateByLocation.json @@ -2,29 +2,11 @@ "parameters": { "api-version": "2016-06-01", "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "test-resource-group", "location": "brazilsouth", "workflowName": "test-workflow", - "validate": { - "properties": { - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, - "definition": { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - } - }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", - "name": "test-workflow", - "type": "Microsoft.Logic/workflows", - "location": "brazilsouth", - "tags": {} + "workflow": { + "properties": {} } }, "responses": { diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsValidateByResourceGroup.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsValidateByResourceGroup.json index de320d2784ec..3450d80c569f 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsValidateByResourceGroup.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/examples/WorkflowsValidateByResourceGroup.json @@ -6,11 +6,6 @@ "workflowName": "test-workflow", "validate": { "properties": { - "integrationAccount": { - "name": "test-integration-account", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account", - "type": "Microsoft.Logic/integrationAccounts" - }, "definition": { "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", "contentVersion": "1.0.0.0", @@ -20,9 +15,6 @@ "outputs": {} } }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow", - "name": "test-workflow", - "type": "Microsoft.Logic/workflows", "location": "brazilsouth", "tags": {} } diff --git a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/logic.json b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/logic.json index 5f0b844762c9..77d4055b2c5e 100644 --- a/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/logic.json +++ b/specification/logic/resource-manager/Microsoft.Logic/stable/2016-06-01/logic.json @@ -4921,6 +4921,232 @@ "x-ms-odata": "#/definitions/IntegrationAccountSessionFilter" } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/rosettanetprocessconfigurations": { + "get": { + "tags": [ + "IntegrationAccountRosettaNetProcessConfigurations" + ], + "operationId": "RosettaNetProcessConfigurations_ListByIntegrationAccounts", + "description": "Gets a list of integration account RosettaNet process configurations.", + "x-ms-examples": { + "Get RosettaNetProcessConfigurations by integrationaccount name": { + "$ref": "./examples/RosettaNetProcessConfigurationsListByIntegrationAccounts.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "name": "resourceGroupName", + "description": "The resource group name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "integrationAccountName", + "description": "The integration account name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "$top", + "description": "The number of items to be included in the result.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$filter", + "description": "The filter to apply on the operation.", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IntegrationAccountRosettaNetProcessConfigurationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/rosettanetprocessconfigurations/{rosettaNetProcessConfigurationName}": { + "get": { + "tags": [ + "IntegrationAccountRosettaNetProcessConfigurations" + ], + "operationId": "RosettaNetProcessConfigurations_Get", + "description": "Gets an integration account RosettaNetProcessConfiguration.", + "x-ms-examples": { + "Get RosettaNetProcessConfiguration by name": { + "$ref": "./examples/RosettaNetProcessConfigurationsGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "name": "resourceGroupName", + "description": "The resource group name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "integrationAccountName", + "description": "The integration account name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "rosettaNetProcessConfigurationName", + "description": "The integration account RosettaNetProcessConfiguration name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IntegrationAccountRosettaNetProcessConfiguration" + } + } + } + }, + "put": { + "tags": [ + "IntegrationAccountRosettaNetProcessConfigurations" + ], + "operationId": "RosettaNetProcessConfigurations_CreateOrUpdate", + "description": "Creates or updates an integration account RosettaNetProcessConfiguration.", + "x-ms-examples": { + "Create or update an RosettaNetProcessConfiguration": { + "$ref": "./examples/RosettaNetProcessConfigurationsCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "name": "resourceGroupName", + "description": "The resource group name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "integrationAccountName", + "description": "The integration account name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "rosettaNetProcessConfigurationName", + "description": "The integration account RosettaNet ProcessConfiguration name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "rosettaNetProcessConfiguration", + "description": "The integration account RosettaNet ProcessConfiguration.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/IntegrationAccountRosettaNetProcessConfiguration" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IntegrationAccountRosettaNetProcessConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/IntegrationAccountRosettaNetProcessConfiguration" + } + } + } + }, + "delete": { + "tags": [ + "IntegrationAccountRosettaNetProcessConfigurations" + ], + "operationId": "RosettaNetProcessConfigurations_Delete", + "description": "Deletes an integration account RosettaNet ProcessConfiguration.", + "x-ms-examples": { + "Delete an RosettaNetProcessConfiguration": { + "$ref": "./examples/RosettaNetProcessConfigurationsDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "name": "resourceGroupName", + "description": "The resource group name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "integrationAccountName", + "description": "The integration account name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "rosettaNetProcessConfigurationName", + "description": "The integration account RosettaNetProcessConfiguration name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/sessions/{sessionName}": { "get": { "tags": [ @@ -8209,6 +8435,19 @@ "modelAsString": true } }, + "MessageEncoding": { + "type": "string", + "enum": [ + "NotSpecified", + "Base64", + "EightBit", + "QuotedPrintable" + ], + "x-ms-enum": { + "name": "MessageEncoding", + "modelAsString": false + } + }, "TrailingSeparatorPolicy": { "type": "string", "enum": [ @@ -9030,6 +9269,323 @@ "modelAsString": false } }, + "IntegrationAccountRosettaNetProcessConfigurationListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/IntegrationAccountRosettaNetProcessConfiguration" + }, + "description": "The list of integration account RosettaNet PIP configuration." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "The list of integration account RosettaNet process configuration." + }, + "IntegrationAccountRosettaNetProcessConfiguration": { + "type": "object", + "required": [ + "properties" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/IntegrationAccountRosettaNetProcessConfigurationProperties", + "description": "The integration account RosettaNet process configuration properties." + } + }, + "description": "The integration account RosettaNet process configuration.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "IntegrationAccountRosettaNetProcessConfigurationProperties": { + "type": "object", + "required": [ + "processCode", + "processVersion", + "processName", + "activitySettings", + "initiatorRoleSettings", + "responderRoleSettings" + ], + "properties": { + "createdTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The created time." + }, + "changedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The changed time." + }, + "metadata": { + "type": "object", + "description": "The metadata.", + "properties": {}, + "additionalProperties": { + "type": "string" + } + }, + "activitySettings": { + "$ref": "#/definitions/RosettaNetPipActivitySettings", + "description": "The RosettaNet process configuration activity settings." + }, + "processCode": { + "type": "string", + "description": "The integration account RosettaNet process code." + }, + "processVersion": { + "type": "string", + "description": "The integration account RosettaNet process version." + }, + "processName": { + "type": "string", + "description": "The integration account RosettaNet process name." + }, + "initiatorRoleSettings": { + "$ref": "#/definitions/RosettaNetPipRoleSettings", + "description": "The RosettaNet initiator role settings." + }, + "responderRoleSettings": { + "$ref": "#/definitions/RosettaNetPipRoleSettings", + "description": "The RosettaNet responder role settings." + }, + "description": { + "type": "string", + "description": "The integration account RosettaNet ProcessConfiguration properties." + } + }, + "description": "The integration account RosettaNet process configuration properties." + }, + "RosettaNetPipActivitySettings": { + "type": "object", + "required": [ + "activityType", + "activityBehavior", + "acknowledgmentOfReceiptSettings" + ], + "properties": { + "activityType": { + "$ref": "#/definitions/RosettaNetPipActivityType", + "description": "The RosettaNet ProcessConfiguration activity type." + }, + "activityBehavior": { + "$ref": "#/definitions/RosettaNetPipActivityBehavior", + "description": "The RosettaNet ProcessConfiguration activity behavior." + }, + "acknowledgmentOfReceiptSettings": { + "$ref": "#/definitions/RosettaNetPipAcknowledgmentOfReceiptSettings", + "description": "The RosettaNet ProcessConfiguration acknowledgement settings." + } + }, + "description": "The integration account RosettaNet ProcessConfiguration activity settings." + }, + "RosettaNetPipActivityType": { + "type": "string", + "enum": [ + "NotSpecified", + "InformationDistribution", + "BusinessTransaction", + "Notification", + "QueryResponse", + "RequestConfirm", + "RequestResponse" + ], + "x-ms-enum": { + "name": "RosettaNetPipActivityType", + "modelAsString": false + } + }, + "RosettaNetPipActivityBehavior": { + "type": "object", + "required": [ + "isAuthorizationRequired", + "persistentConfidentialityScope", + "isSecuredTransportRequired", + "actionType", + "responseType", + "nonRepudiationOfOriginAndContent", + "retryCount", + "timeToPerformInSeconds" + ], + "properties": { + "isAuthorizationRequired": { + "type": "boolean", + "description": "The value indicating whether authorization is required." + }, + "persistentConfidentialityScope": { + "$ref": "#/definitions/RosettaNetPipConfidentialityScope", + "description": "The persistent confidentiality encryption scope." + }, + "isSecuredTransportRequired": { + "type": "boolean", + "description": "The value indicating whether secured transport is required." + }, + "actionType": { + "$ref": "#/definitions/RosettaNetActionType", + "description": "The value indicating whether the RosettaNet PIP is used for a single action." + }, + "responseType": { + "$ref": "#/definitions/RosettaNetResponseType", + "description": "The value indicating whether the RosettaNet PIP communication is synchronous." + }, + "nonRepudiationOfOriginAndContent": { + "type": "boolean", + "description": "The value indicating whether non-repudiation is for origin and content." + }, + "retryCount": { + "type": "integer", + "description": "The value indicating retry count." + }, + "timeToPerformInSeconds": { + "type": "integer", + "description": "The time to perform in seconds." + } + }, + "description": "The integration account RosettaNet ProcessConfiguration activity behavior." + }, + "RosettaNetPipConfidentialityScope": { + "type": "string", + "enum": [ + "NotSpecified", + "None", + "Payload", + "PayloadContainer" + ], + "x-ms-enum": { + "name": "RosettaNetPipConfidentialityScope", + "modelAsString": false + } + }, + "RosettaNetActionType": { + "type": "string", + "enum": [ + "NotSpecified", + "SingleAction", + "DoubleAction" + ], + "x-ms-enum": { + "name": "RosettaNetActionType", + "modelAsString": false + } + }, + "RosettaNetResponseType": { + "type": "string", + "enum": [ + "NotSpecified", + "Sync", + "Async" + ], + "x-ms-enum": { + "name": "RosettaNetResponseType", + "modelAsString": false + } + }, + "RosettaNetPipAcknowledgmentOfReceiptSettings": { + "type": "object", + "required": [ + "isNonRepudiationRequired", + "timeToAcknowledgeInSeconds" + ], + "properties": { + "isNonRepudiationRequired": { + "type": "boolean", + "description": "The non-repudiation is required or not." + }, + "timeToAcknowledgeInSeconds": { + "type": "integer", + "description": "The time to acknowledge in seconds." + } + }, + "description": "The integration account RosettaNet ProcessConfiguration Acknowledgement settings." + }, + "RosettaNetPipRoleSettings": { + "type": "object", + "required": [ + "action", + "role", + "roleType", + "service", + "serviceClassification", + "businessDocument" + ], + "properties": { + "action": { + "type": "string", + "description": "The action name." + }, + "role": { + "type": "string", + "description": "The role name." + }, + "roleType": { + "$ref": "#/definitions/RosettaNetPipRoleType", + "description": "The RosettaNet ProcessConfiguration role type." + }, + "service": { + "type": "string", + "description": "The service name." + }, + "serviceClassification": { + "type": "string", + "description": "The service classification name." + }, + "businessDocument": { + "$ref": "#/definitions/RosettaNetPipBusinessDocument", + "description": "The RosettaNet ProcessConfiguration business document." + }, + "description": { + "type": "string", + "description": "The description." + } + }, + "description": "The integration account RosettaNet ProcessConfiguration role settings." + }, + "RosettaNetPipRoleType": { + "type": "string", + "enum": [ + "NotSpecified", + "Functional", + "Organizational", + "Employee" + ], + "x-ms-enum": { + "name": "RosettaNetPipRoleType", + "modelAsString": false + } + }, + "RosettaNetPipBusinessDocument": { + "type": "object", + "required": [ + "name", + "version" + ], + "properties": { + "name": { + "type": "string", + "description": "The business document name." + }, + "version": { + "type": "string", + "description": "The business document version." + }, + "description": { + "type": "string", + "description": "The business document description." + } + }, + "description": "The RosettaNet ProcessConfiguration business document settings." + }, "IntegrationAccountCertificateListResult": { "type": "object", "properties": { diff --git a/specification/logic/resource-manager/readme.md b/specification/logic/resource-manager/readme.md index 397c481de2f0..0e6fe5735d03 100644 --- a/specification/logic/resource-manager/readme.md +++ b/specification/logic/resource-manager/readme.md @@ -116,6 +116,7 @@ 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 @@ -220,3 +221,31 @@ java: regenerate-manager: true generate-interface: 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)/Microsoft.Logic/preview/2018-07-01-preview/logic.json + - $(this-folder)/Microsoft.Logic/stable/2016-06-01/logic.json + - $(this-folder)/Microsoft.Logic/preview/2015-08-01-preview/logic.json + - $(this-folder)/Microsoft.Logic/preview/2015-02-01-preview/logic.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/machinelearning/resource-manager/Microsoft.MachineLearning/stable/2016-04-01/examples/CreateWorkspace.json b/specification/machinelearning/resource-manager/Microsoft.MachineLearning/stable/2016-04-01/examples/CreateWorkspace.json index 75b4eb2b34f4..e6db7d0843c4 100644 --- a/specification/machinelearning/resource-manager/Microsoft.MachineLearning/stable/2016-04-01/examples/CreateWorkspace.json +++ b/specification/machinelearning/resource-manager/Microsoft.MachineLearning/stable/2016-04-01/examples/CreateWorkspace.json @@ -10,7 +10,8 @@ }, "location": "West Europe", "properties": { - "userStorageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/teststorage" + "userStorageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/teststorage", + "ownerEmail": "abc@microsoft.com" } } }, diff --git a/specification/machinelearning/resource-manager/Microsoft.MachineLearning/stable/2016-04-01/workspaces.json b/specification/machinelearning/resource-manager/Microsoft.MachineLearning/stable/2016-04-01/workspaces.json index d6b488c17ac1..e629175a459d 100644 --- a/specification/machinelearning/resource-manager/Microsoft.MachineLearning/stable/2016-04-01/workspaces.json +++ b/specification/machinelearning/resource-manager/Microsoft.MachineLearning/stable/2016-04-01/workspaces.json @@ -446,7 +446,8 @@ "type": "object", "description": "The properties of a machine learning workspace.", "required": [ - "userStorageAccountId" + "userStorageAccountId", + "ownerEmail" ], "properties": { "userStorageAccountId": { diff --git a/specification/machinelearning/resource-manager/readme.md b/specification/machinelearning/resource-manager/readme.md index 1efefd526941..b2c0f8db07c7 100644 --- a/specification/machinelearning/resource-manager/readme.md +++ b/specification/machinelearning/resource-manager/readme.md @@ -98,6 +98,7 @@ 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-js - repo: azure-sdk-for-node @@ -222,3 +223,31 @@ generate-interface: 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)/Microsoft.MachineLearning/stable/2017-01-01/webservices.json + - $(this-folder)/Microsoft.MachineLearning/preview/2016-05-01-preview/commitmentPlans.json + - $(this-folder)/Microsoft.MachineLearning/stable/2016-04-01/workspaces.json + - $(this-folder)/Microsoft.MachineLearning/preview/2016-05-01-preview/webservices.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/machinelearningcompute/resource-manager/readme.md b/specification/machinelearningcompute/resource-manager/readme.md index 156ff915d237..6b6f9a3b9ed5 100644 --- a/specification/machinelearningcompute/resource-manager/readme.md +++ b/specification/machinelearningcompute/resource-manager/readme.md @@ -61,6 +61,7 @@ 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 @@ -122,3 +123,29 @@ generate-interface: 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)/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/machineLearningCompute.json + - $(this-folder)/Microsoft.MachineLearningCompute/preview/2017-06-01-preview/machineLearningCompute.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/machinelearningexperimentation/resource-manager/readme.md b/specification/machinelearningexperimentation/resource-manager/readme.md index f3c9d80b3aef..4f57336f0a9c 100644 --- a/specification/machinelearningexperimentation/resource-manager/readme.md +++ b/specification/machinelearningexperimentation/resource-manager/readme.md @@ -50,6 +50,7 @@ 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-js - repo: azure-sdk-for-node @@ -66,7 +67,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.MachineLearningExperimentation - output-folder: $(csharp-sdks-folder)/MachineLearningExperimentation/Management.MachineLearningExperimentation/Generated + output-folder: $(csharp-sdks-folder)/machinelearningexperimentation/Microsoft.Azure.Management.MachineLearningExperimentation/src/Generated clear-output-folder: true ``` @@ -109,3 +110,28 @@ generate-interface: 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)/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/machineLearningExperimentation.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/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/artifact.json b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/artifact.json new file mode 100644 index 000000000000..8b52e3788ee0 --- /dev/null +++ b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/artifact.json @@ -0,0 +1,1546 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-08-01", + "title": "Artifact API" + }, + "schemes": [ + "https" + ], + "paths": { + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/metadata": { + "post": { + "tags": [ + "Artifact" + ], + "summary": "Create Artifact.", + "description": "Create an Artifact.", + "operationId": "Artifacts_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "artifact", + "in": "body", + "description": "The Artifact details.", + "required": true, + "schema": { + "$ref": "#/definitions/Artifact" + } + } + ], + "responses": { + "200": { + "description": "The Artifact is created successfully.", + "schema": { + "$ref": "#/definitions/Artifact" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/register": { + "post": { + "tags": [ + "Artifact" + ], + "summary": "Create an Artifact for an existing data location.", + "description": "Create an Artifact for an existing dataPath.", + "operationId": "Artifacts_Register", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "artifact", + "in": "body", + "description": "The Artifact creation details.", + "required": true, + "schema": { + "$ref": "#/definitions/Artifact" + } + } + ], + "responses": { + "200": { + "description": "The Artifact is created successfully.", + "schema": { + "$ref": "#/definitions/Artifact" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/{origin}/{container}/metadata": { + "get": { + "tags": [ + "Artifact" + ], + "summary": "Get Artifact metadata by Id.", + "description": "Get Artifact metadata for a specific Id.", + "operationId": "Artifacts_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The details of the Artifact are returned successfully.", + "schema": { + "$ref": "#/definitions/Artifact" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Artifact" + ], + "summary": "Delete Artifact Metadata.", + "description": "Delete an Artifact Metadata.", + "operationId": "Artifacts_DeleteMetaData", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + }, + { + "name": "hardDelete", + "in": "query", + "description": "If set to true. The delete cannot be revert at later time.", + "required": false, + "type": "boolean", + "default": false + } + ], + "responses": { + "200": { + "description": "The Artifact metadata deleted successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/{origin}/{container}": { + "get": { + "tags": [ + "Artifact" + ], + "summary": "Get Artifacts metadata in a container or path.", + "description": "Get Artifacts metadata in a specific container or path.", + "operationId": "Artifacts_ListInContainer", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + }, + { + "name": "continuationToken", + "in": "query", + "description": "The continuation token.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The details of the Artifacts are returned successfully.", + "schema": { + "$ref": "#/definitions/PaginatedArtifactList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/{origin}/{container}/content": { + "get": { + "tags": [ + "Artifact" + ], + "summary": "Get Artifact content by Id.", + "description": "Get Artifact content of a specific Id.", + "operationId": "Artifacts_Download", + "consumes": [], + "produces": [ + "application/json", + "application/octet-stream" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "File Response", + "schema": { + "format": "byte", + "type": "file" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "post": { + "tags": [ + "Artifact" + ], + "summary": "Upload Artifact content.", + "description": "Upload content to an Artifact.", + "operationId": "Artifacts_Upload", + "consumes": [ + "application/octet-stream" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + }, + { + "name": "index", + "in": "query", + "description": "The index.", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "append", + "in": "query", + "description": "Whether or not to append the content or replace it.", + "required": false, + "type": "boolean", + "default": false + }, + { + "name": "allowOverwrite", + "in": "query", + "description": "whether to allow overwrite if Artifact Content exist already. when set to true, Overwrite happens if Artifact Content already exists", + "required": false, + "type": "boolean", + "default": false + }, + { + "name": "content", + "in": "body", + "description": "The file upload.", + "required": true, + "schema": { + "format": "binary", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "The Artifact content is uploaded successfully.", + "schema": { + "$ref": "#/definitions/Artifact" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/{origin}/{container}/contentinfo": { + "get": { + "tags": [ + "Artifact" + ], + "summary": "Get Artifact content information.", + "description": "Get content information of an Artifact.", + "operationId": "Artifacts_GetContentInformation", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The Artifact content information is returned successfully.", + "schema": { + "$ref": "#/definitions/ArtifactContentInformation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/{origin}/{container}/contentinfo/storageuri": { + "get": { + "tags": [ + "Artifact" + ], + "summary": "Get Artifact storage content information.", + "description": "Get storage content information of an Artifact.", + "operationId": "Artifacts_GetStorageContentInformation", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The Artifact storage content information is returned successfully.", + "schema": { + "$ref": "#/definitions/ArtifactContentInformation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/{origin}/{container}/write": { + "get": { + "tags": [ + "Artifact" + ], + "summary": "Get writable shared access signature for Artifact.", + "description": "Get writable shared access signature for a specific Artifact.", + "operationId": "Artifacts_GetSas", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The Artifact writable shared access signature is returned successfully.", + "schema": { + "$ref": "#/definitions/ArtifactContentInformation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/{origin}/{container}/prefix/contentinfo": { + "get": { + "tags": [ + "Artifact" + ], + "summary": "Get shared access signature for an Artifact", + "description": "Get shared access signature for an Artifact in specific path.", + "operationId": "Artifacts_ListSasByPrefix", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + }, + { + "name": "continuationToken", + "in": "query", + "description": "The continuation token.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The Artifact writable shared access signature is returned successfully.", + "schema": { + "$ref": "#/definitions/PaginatedArtifactContentInformationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/{origin}/{container}/prefix/contentinfo/storageuri": { + "get": { + "tags": [ + "Artifact" + ], + "summary": "Get storage Uri for Artifacts in a path.", + "description": "Get storage Uri for Artifacts in a specific path.", + "operationId": "Artifacts_ListStorageUriByPrefix", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + }, + { + "name": "continuationToken", + "in": "query", + "description": "The continuation token.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The Artifact storage uri is returned successfully.", + "schema": { + "$ref": "#/definitions/PaginatedArtifactContentInformationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/batch/metadata": { + "post": { + "tags": [ + "Artifact" + ], + "summary": "Get Batch Artifacts by Ids.", + "description": "Get Batch Artifacts by the specific Ids.", + "operationId": "Artifacts_BatchGetById", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "artifactIds", + "in": "body", + "description": "The command for Batch Artifact get request.", + "required": true, + "schema": { + "$ref": "#/definitions/ArtifactIdList" + } + } + ], + "responses": { + "200": { + "description": "The requested Batch Artifacts are returned successfully.", + "schema": { + "$ref": "#/definitions/BatchArtifactContentInformationResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/storageuri/batch/metadata": { + "post": { + "tags": [ + "Artifact" + ], + "summary": "Get Batch Artifacts storage by Ids.", + "description": "Get Batch Artifacts storage by specific Ids.", + "operationId": "Artifacts_BatchGetStorageById", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "artifactIds", + "in": "body", + "description": "The list of artifactIds to get.", + "required": true, + "schema": { + "$ref": "#/definitions/ArtifactIdList" + } + } + ], + "responses": { + "200": { + "description": "The Batch Artifact's storage are returned successfully.", + "schema": { + "$ref": "#/definitions/BatchArtifactContentInformationResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/{origin}/{container}/batch/ingest/containersas": { + "post": { + "tags": [ + "Artifact" + ], + "summary": "Batch ingest using shared access signature.", + "description": "Ingest Batch Artifacts using shared access signature.", + "operationId": "Artifacts_BatchIngestFromSas", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "artifactContainerSas", + "in": "body", + "description": "The artifact container shared access signature to use for batch ingest.", + "required": true, + "schema": { + "$ref": "#/definitions/ArtifactContainerSas" + } + } + ], + "responses": { + "200": { + "description": "The Batch is ingested using shared access signature successfully.", + "schema": { + "$ref": "#/definitions/PaginatedArtifactList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/{origin}/{container}/batch/metadata": { + "post": { + "tags": [ + "Artifact" + ], + "summary": "Create a batch of empty Artifacts.", + "description": "Create a Batch of empty Artifacts from the supplied paths.", + "operationId": "Artifacts_BatchCreateEmptyArtifacts", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "artifactPaths", + "in": "body", + "description": "The list of Artifact paths to create.", + "required": true, + "schema": { + "$ref": "#/definitions/ArtifactPathList" + } + } + ], + "responses": { + "200": { + "description": "The Batch of empty Artifacts created successfully.", + "schema": { + "$ref": "#/definitions/BatchArtifactContentInformationResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/{origin}/{container}/batch/metadata:delete": { + "post": { + "tags": [ + "Artifact" + ], + "summary": "Delete Batch of Artifact Metadata.", + "description": "Delete a Batch of Artifact Metadata.", + "operationId": "Artifacts_DeleteBatchMetaData", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "artifactPaths", + "in": "body", + "description": "The list of Artifact paths to delete.", + "required": true, + "schema": { + "$ref": "#/definitions/ArtifactPathList" + } + }, + { + "name": "hardDelete", + "in": "query", + "description": "If set to true, the delete cannot be reverted at a later time.", + "required": false, + "type": "boolean", + "default": false + } + ], + "responses": { + "200": { + "description": "The batch delete of Artifact metadata completed successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/artifact/v2.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/artifacts/{origin}/{container}/batch": { + "delete": { + "tags": [ + "Artifact" + ], + "summary": "Delete Artifact Metadata.", + "description": "Delete Artifact Metadata in a specific container.", + "operationId": "Artifacts_DeleteMetaDataInContainer", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "origin", + "in": "path", + "description": "The origin of the Artifact.", + "required": true, + "type": "string" + }, + { + "name": "container", + "in": "path", + "description": "The container name.", + "required": true, + "type": "string" + }, + { + "name": "hardDelete", + "in": "query", + "description": "If set to true. The delete cannot be revert at later time.", + "required": false, + "type": "boolean", + "default": false + } + ], + "responses": { + "200": { + "description": "The Artifact metadata deleted successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Artifact": { + "description": "Details of an Artifact.", + "required": [ + "origin", + "container", + "path" + ], + "type": "object", + "properties": { + "artifactId": { + "description": "The identifier of an Artifact. Format of ArtifactId - {Origin}/{Container}/{Path}.", + "type": "string" + }, + "origin": { + "description": "The origin of the Artifact creation request. Available origins are 'ExperimentRun', 'LocalUpload', 'WebUpload', 'Dataset' and 'Unknown'.", + "type": "string" + }, + "container": { + "description": "The name of container. Artifacts can be grouped by container.", + "type": "string" + }, + "path": { + "description": "The path to the Artifact in a container.", + "type": "string" + }, + "etag": { + "description": "The Etag of the Artifact.", + "type": "string", + "readOnly": true + }, + "createdTime": { + "format": "date-time", + "description": "The Date and Time at which the Artifact is created. The DateTime is in UTC.", + "type": "string", + "readOnly": true + }, + "dataPath": { + "$ref": "#/definitions/DataPath" + } + } + }, + "DataPath": { + "type": "object", + "properties": { + "dataStoreName": { + "type": "string" + }, + "relativePath": { + "type": "string" + }, + "sqlDataPath": { + "$ref": "#/definitions/SqlDataPath" + } + } + }, + "SqlDataPath": { + "type": "object", + "properties": { + "sqlTableName": { + "type": "string" + }, + "sqlQuery": { + "type": "string" + }, + "sqlStoredProcedureName": { + "type": "string" + }, + "sqlStoredProcedureParams": { + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/StoredProcedureParameter" + } + } + } + }, + "StoredProcedureParameter": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "type": { + "enum": [ + "String", + "Int", + "Decimal", + "Guid", + "Boolean", + "Date" + ], + "type": "string", + "x-ms-enum": { + "name": "StoredProcedureParameterType", + "modelAsString": false + } + } + } + }, + "PaginatedArtifactList": { + "description": "A paginated list of Artifacts.", + "type": "object", + "properties": { + "value": { + "description": "An array of objects of type Artifact.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Artifact" + } + }, + "continuationToken": { + "description": "The token used in retrieving the next page. If null, there are no additional pages.", + "type": "string" + }, + "nextLink": { + "description": "The link to the next page constructed using the continuationToken. If null, there are no additional pages.", + "type": "string" + } + } + }, + "ArtifactContentInformation": { + "description": "Details of an Artifact Content Information.", + "type": "object", + "properties": { + "contentUri": { + "description": "The URI of the content.", + "type": "string" + }, + "origin": { + "description": "The origin of the Artifact creation request. Available origins are 'ExperimentRun', 'LocalUpload', 'WebUpload', 'Dataset', 'ComputeRecord', 'Metric', and 'Unknown'.", + "type": "string" + }, + "container": { + "description": "The name of container. Artifacts can be grouped by container.", + "type": "string" + }, + "path": { + "description": "The path to the Artifact in a container.", + "type": "string" + } + } + }, + "PaginatedArtifactContentInformationList": { + "description": "A paginated list of ArtifactContentInformations.", + "type": "object", + "properties": { + "value": { + "description": "An array of objects of type ArtifactContentInformation.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/ArtifactContentInformation" + } + }, + "continuationToken": { + "description": "The token used in retrieving the next page. If null, there are no additional pages.", + "type": "string" + }, + "nextLink": { + "description": "The link to the next page constructed using the continuationToken. If null, there are no additional pages.", + "type": "string" + } + } + }, + "ArtifactIdList": { + "description": "Contains list of Artifact Ids.", + "required": [ + "artifactIds" + ], + "type": "object", + "properties": { + "artifactIds": { + "description": "List of Artifacts Ids.", + "uniqueItems": false, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "BatchArtifactContentInformationResult": { + "description": "Results of the Batch Artifact Content Information request.", + "type": "object", + "properties": { + "artifacts": { + "description": "Artifact details of the Artifact Ids requested.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Artifact" + } + }, + "artifactContentInformation": { + "description": "Artifact Content Information details of the Artifact Ids requested.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ArtifactContentInformation" + } + }, + "errors": { + "description": "Errors occurred while fetching the requested Artifact Ids.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "ErrorResponse": { + "description": "The error response.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/RootError", + "description": "The top level error that occurred." + }, + "correlation": { + "description": "Dictionary containing correlation details for the error.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "environment": { + "description": "The hosting environment.", + "type": "string" + }, + "location": { + "description": "The Azure region.", + "type": "string" + }, + "time": { + "format": "date-time", + "description": "The time in UTC.", + "type": "string" + } + } + }, + "RootError": { + "description": "The root error.", + "type": "object", + "properties": { + "code": { + "description": "The service-defined error code. Supported error codes: ServiceError, UserError, ValidationError, AzureStorageError, TransientError, RequestThrottled.", + "type": "string" + }, + "message": { + "description": "A human-readable representation of the error.", + "type": "string" + }, + "target": { + "description": "The target of the error (e.g., the name of the property in error).", + "type": "string" + }, + "details": { + "description": "The related errors that occurred during the request.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetails" + } + }, + "innerError": { + "$ref": "#/definitions/InnerErrorResponse", + "description": "A nested list of inner errors. When evaluating errors, clients MUST traverse through all of the nested “innerErrors” and choose the deepest one that they understand." + } + } + }, + "ErrorDetails": { + "description": "The error details.", + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string" + }, + "message": { + "description": "The error message.", + "type": "string" + }, + "target": { + "description": "The target of the error (e.g., the name of the property in error).", + "type": "string" + } + } + }, + "InnerErrorResponse": { + "description": "A nested structure of errors.", + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string" + }, + "innerError": { + "$ref": "#/definitions/InnerErrorResponse", + "description": "A nested list of inner errors. When evaluating errors, clients MUST traverse through all of the nested “innerErrors” and choose the deepest one that they understand." + } + } + }, + "ArtifactContainerSas": { + "description": "Details of the Artifact Container's shared access signature.", + "required": [ + "containerSas", + "containerUri" + ], + "type": "object", + "properties": { + "containerSas": { + "description": "The shared access signature of the Container.", + "type": "string" + }, + "containerUri": { + "description": "The URI of the Container.", + "type": "string" + }, + "prefix": { + "description": "The Prefix to the Blobs in the Container.", + "type": "string" + }, + "artifactPrefix": { + "description": "The Prefix to the Artifact in the Blob.", + "type": "string" + } + } + }, + "ArtifactPathList": { + "description": "Contains list of Artifact Paths.", + "required": [ + "paths" + ], + "type": "object", + "properties": { + "paths": { + "description": "List of Artifact Paths.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/ArtifactPath" + } + } + } + }, + "ArtifactPath": { + "description": "Details of an Artifact Path.", + "required": [ + "path" + ], + "type": "object", + "properties": { + "path": { + "description": "The path to the Artifact in a container.", + "type": "string" + } + } + } + }, + "parameters": { + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "The Azure Subscription ID.", + "required": true, + "type": "string", + "format": "uuid", + "x-ms-parameter-location": "method" + }, + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The Name of the resource group in which the workspace is located.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "workspaceNameParameter": { + "name": "workspaceName", + "in": "path", + "description": "The name of the workspace.", + "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" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "tags": [] +} diff --git a/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/datastore.json b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/datastore.json new file mode 100644 index 000000000000..74f681ba9d14 --- /dev/null +++ b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/datastore.json @@ -0,0 +1,925 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-08-01", + "title": "Azure Machine Learning Datastore Management Client" + }, + "schemes": [ + "https" + ], + "paths": { + "/datastore/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores": { + "get": { + "tags": [ + "DataStore" + ], + "summary": "Get Datastores list.", + "description": "Get the list of Datastores attached to the workspace.", + "operationId": "List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "dataStoreNames", + "in": "query", + "description": "List of Datastore names.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi", + "uniqueItems": false + }, + { + "name": "continuationToken", + "in": "query", + "description": "The Continuation Token.", + "required": false, + "type": "string" + }, + { + "name": "count", + "in": "query", + "description": "Count of Datastores to be returned.", + "required": false, + "type": "integer", + "format": "int32", + "default": 30 + }, + { + "name": "includeSecret", + "in": "query", + "description": "Whether to include the datastore secret in the response.", + "required": false, + "type": "boolean", + "default": true + } + ], + "responses": { + "200": { + "description": "The list of Datastores are returned successfully.", + "schema": { + "$ref": "#/definitions/PaginatedDataStoreList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + }, + "post": { + "tags": [ + "DataStore" + ], + "summary": "Create or update a Datastore.", + "description": "Create or update a Datastore in the given workspace.", + "operationId": "Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "dto", + "in": "body", + "description": "The Datastore details.", + "required": false, + "schema": { + "$ref": "#/definitions/DataStore" + } + }, + { + "name": "createIfNotExists", + "in": "query", + "description": "If set to true, the call will create an Datastore if it doesn't exist.", + "required": false, + "type": "boolean", + "default": false + }, + { + "name": "skipValidation", + "in": "query", + "description": "If set to true, the call will skip Datastore validation.", + "required": false, + "type": "boolean", + "default": false + } + ], + "responses": { + "200": { + "description": "The Datastore is created/updated successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "DataStore" + ], + "summary": "Delete all Datastores.", + "description": "Delete all Datastores in the workspace.", + "operationId": "DeleteAll", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + } + ], + "responses": { + "200": { + "description": "All the Datastores in the workspace are deleted successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/datastore/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}": { + "get": { + "tags": [ + "DataStore" + ], + "summary": "Get Datastore details.", + "description": "Get details of a Datastore with a specific name.", + "operationId": "Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "The Datastore name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The Datastore details are returned successfully.", + "schema": { + "$ref": "#/definitions/DataStore" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "DataStore" + ], + "summary": "Update or create a Datastore.", + "description": "Update or create a Datastore in the given workspace.", + "operationId": "Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "The Datastore name.", + "required": true, + "type": "string" + }, + { + "name": "dto", + "in": "body", + "description": "The Datastore details.", + "required": false, + "schema": { + "$ref": "#/definitions/DataStore" + } + }, + { + "name": "createIfNotExists", + "in": "query", + "description": "If set to true, the call will create an Datastore if it doesn't exist.", + "required": false, + "type": "boolean", + "default": false + }, + { + "name": "skipValidation", + "in": "query", + "description": "If set to true, the call will skip Datastore validation.", + "required": false, + "type": "boolean", + "default": false + } + ], + "responses": { + "200": { + "description": "The Datastore is created/updated successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "DataStore" + ], + "summary": "Delete a Datastore.", + "description": "Delete a Datastore with a specific name.", + "operationId": "Delete", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "The Datastore name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The Datastore is deleted successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/datastore/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/default/{name}": { + "put": { + "tags": [ + "DataStoreDefault" + ], + "summary": "Set a default Datastore.", + "description": "Set a default Datastore in the workspace.", + "operationId": "SetDefault", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "The Datastore name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The default Datastore is set successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/datastore/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/default": { + "get": { + "tags": [ + "DataStoreDefault" + ], + "summary": "Get the default Datastore.", + "description": "Get the default Datastore in the workspace.", + "operationId": "GetDefault", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + } + ], + "responses": { + "200": { + "description": "The default Datastore is returned successfully.", + "schema": { + "$ref": "#/definitions/DataStore" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "PaginatedDataStoreList": { + "description": "A paginated list of DataStores.", + "type": "object", + "properties": { + "value": { + "description": "An array of objects of type DataStore.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/DataStore" + } + }, + "continuationToken": { + "description": "The token used in retrieving the next page. If null, there are no additional pages.", + "type": "string" + }, + "nextLink": { + "description": "The link to the next page constructed using the continuationToken. If null, there are no additional pages.", + "type": "string" + } + } + }, + "DataStore": { + "type": "object", + "properties": { + "name": { + "description": "Name of the datastore", + "type": "string" + }, + "dataStoreType": { + "description": "The Azure storage service this datastore points to.", + "enum": [ + "AzureBlob", + "AzureFile", + "AzureDataLake", + "AzureSqlDatabase", + "AzurePostgreSql", + "DBFS", + "AzureDataLakeGen2", + "GlusterFs" + ], + "type": "string", + "x-ms-enum": { + "name": "DataStoreType", + "modelAsString": false + } + }, + "hasBeenValidated": { + "description": "A read only property that denotes whether the service datastore has been validated with credentials.", + "type": "boolean" + }, + "tags": { + "description": "Tags to datastore", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "azureStorageSection": { + "$ref": "#/definitions/AzureStorage", + "description": "Data specific to azure storage" + }, + "azureDataLakeSection": { + "$ref": "#/definitions/AzureDataLake", + "description": "Data Specific to azure data lake" + }, + "azureSqlDatabaseSection": { + "$ref": "#/definitions/AzureSqlDatabase", + "description": "Data specific to azure SQL database" + }, + "azurePostgreSqlSection": { + "$ref": "#/definitions/AzurePostgreSql", + "description": "Data specific to azure PostgreSQL" + }, + "glusterFsSection": { + "$ref": "#/definitions/GlusterFs", + "description": "Data specific to GlusterFS" + } + } + }, + "AzureStorage": { + "type": "object", + "properties": { + "accountName": { + "description": "Storage Account Name", + "type": "string" + }, + "containerName": { + "description": "The storage container name", + "type": "string" + }, + "endpoint": { + "description": "The host of the container", + "type": "string" + }, + "protocol": { + "description": "The protocol to use. Defaults to https", + "type": "string" + }, + "credentialType": { + "description": "The credential type", + "enum": [ + "None", + "Sas", + "AccountKey", + "ClientCredentials" + ], + "type": "string", + "x-ms-enum": { + "name": "AzureStorageCredentialTypes", + "modelAsString": false + } + }, + "credential": { + "description": "The credential", + "type": "string" + }, + "clientCredentials": { + "$ref": "#/definitions/ClientCredentials", + "description": "Service principal credential when credential type is Microsoft.MachineLearning.DataStore.Contracts.AzureStorageCredentialTypes.ClientCredentials" + }, + "blobCacheTimeout": { + "format": "int32", + "description": "If this is an Microsoft.MachineLearning.DataStore.Contracts.DataStoreType.AzureBlob, the length of time (in seconds) to cache files locally after they are accessed (downloaded).", + "type": "integer" + }, + "isSas": { + "description": "Indicate if we are using SAS token or Account Key (Deprecated)", + "type": "boolean" + }, + "accountKey": { + "description": "Storage Account Key (Deprecated)", + "type": "string" + }, + "sasToken": { + "description": "SAS Token for the container (Deprecated)", + "type": "string" + }, + "areWorkspaceManagedIdentitiesAllowed": { + "description": "Indicate if we are using Workspace ManagedIdentities/MSI token", + "type": "boolean" + }, + "subscriptionId": { + "format": "uuid", + "description": "Subscription Id", + "type": "string" + }, + "resourceGroup": { + "description": "Resource Group Name", + "type": "string" + } + } + }, + "AzureDataLake": { + "type": "object", + "properties": { + "storeName": { + "description": "The Azure Data Lake store name", + "type": "string" + }, + "clientId": { + "format": "uuid", + "description": "The Client ID/Application ID", + "type": "string" + }, + "tenantId": { + "format": "uuid", + "description": "The ID of the tenant the service principal/app belongs to", + "type": "string" + }, + "isCertAuth": { + "description": "Is it using certificate to authenticate. If false then use client secret", + "type": "boolean" + }, + "certificate": { + "description": "The content of the certificate used for authentication", + "type": "string" + }, + "thumbprint": { + "description": "The thumbprint of the certificate above", + "type": "string" + }, + "clientSecret": { + "description": "The client secret", + "type": "string" + }, + "authorityUrl": { + "description": "The authority URL used for authentication", + "type": "string" + }, + "resourceUri": { + "description": "The resource the service principal/app has access to", + "type": "string" + }, + "subscriptionId": { + "format": "uuid", + "description": "Subscription Id", + "type": "string" + }, + "resourceGroup": { + "description": "Resource Group Name", + "type": "string" + } + } + }, + "AzureSqlDatabase": { + "type": "object", + "properties": { + "serverName": { + "description": "The Azure SQL server name", + "type": "string" + }, + "databaseName": { + "description": "The Azure SQL database name", + "type": "string" + }, + "endpoint": { + "description": "The server host endpoint", + "type": "string" + }, + "clientId": { + "format": "uuid", + "description": "The Client ID/Application ID", + "type": "string" + }, + "tenantId": { + "format": "uuid", + "description": "The ID of the tenant the service principal/app belongs to", + "type": "string" + }, + "isCertAuth": { + "description": "Is it using certificate to authenticate. If false then use client secret", + "type": "boolean" + }, + "certificate": { + "description": "The content of the certificate used for authentication", + "type": "string" + }, + "thumbprint": { + "description": "The thumbprint of the certificate above", + "type": "string" + }, + "clientSecret": { + "description": "The client secret", + "type": "string" + }, + "authorityUrl": { + "description": "The authority URL used for authentication", + "type": "string" + }, + "resourceUri": { + "description": "The resource the service principal/app has access to", + "type": "string" + }, + "subscriptionId": { + "format": "uuid", + "description": "Subscription Id", + "type": "string" + }, + "resourceGroup": { + "description": "Resource Group Name", + "type": "string" + } + } + }, + "AzurePostgreSql": { + "type": "object", + "properties": { + "serverName": { + "description": "The Azure PostgreSQL server name", + "type": "string" + }, + "databaseName": { + "description": "The Azure PostgreSQL database name", + "type": "string" + }, + "userId": { + "description": "The Azure PostgreSQL user id", + "type": "string" + }, + "userPassword": { + "description": "The Azure PostgreSQL user password", + "type": "string" + }, + "portNumber": { + "description": "The Azure PostgreSQL port number", + "type": "string" + }, + "endpoint": { + "description": "The Azure PostgreSQL server host endpoint", + "type": "string" + }, + "subscriptionId": { + "format": "uuid", + "description": "Subscription Id", + "type": "string" + }, + "resourceGroup": { + "description": "Resource Group Name", + "type": "string" + } + } + }, + "GlusterFs": { + "type": "object", + "properties": { + "serverAddress": { + "description": "The server address of one of the servers that hosts the GlusterFS. Can be either the IP address\r\nor server name.", + "type": "string" + }, + "volumeName": { + "description": "The name of the created GlusterFS volume.", + "type": "string" + } + } + }, + "ClientCredentials": { + "type": "object", + "properties": { + "clientId": { + "format": "uuid", + "description": "The Client ID/Application ID", + "type": "string" + }, + "tenantId": { + "format": "uuid", + "description": "The ID of the tenant the service principal/app belongs to", + "type": "string" + }, + "isCertAuth": { + "description": "Is it using certificate to authenticate. If false then use client secret", + "type": "boolean" + }, + "certificate": { + "description": "The content of the certificate used for authentication", + "type": "string" + }, + "thumbprint": { + "description": "The thumbprint of the certificate above", + "type": "string" + }, + "clientSecret": { + "description": "The client secret", + "type": "string" + }, + "authorityUrl": { + "description": "The authority URL used for authentication", + "type": "string" + }, + "resourceUri": { + "description": "The resource the service principal/app has access to", + "type": "string" + }, + "subscriptionId": { + "format": "uuid", + "description": "Subscription Id", + "type": "string" + }, + "resourceGroup": { + "description": "Resource Group Name", + "type": "string" + } + } + }, + "ErrorResponse": { + "description": "The error response.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/RootError", + "description": "The top level error that occurred." + }, + "correlation": { + "description": "Dictionary containing correlation details for the error.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "environment": { + "description": "The hosting environment.", + "type": "string" + }, + "location": { + "description": "The Azure region.", + "type": "string" + }, + "time": { + "format": "date-time", + "description": "The time in UTC.", + "type": "string" + } + } + }, + "RootError": { + "description": "The root error.", + "type": "object", + "properties": { + "code": { + "description": "The service-defined error code. Supported error codes: ServiceError, UserError, ValidationError, AzureStorageError, TransientError, RequestThrottled.", + "type": "string" + }, + "message": { + "description": "A human-readable representation of the error.", + "type": "string" + }, + "target": { + "description": "The target of the error (e.g., the name of the property in error).", + "type": "string" + }, + "details": { + "description": "The related errors that occurred during the request.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetails" + } + }, + "innerError": { + "$ref": "#/definitions/InnerErrorResponse", + "description": "A nested list of inner errors. When evaluating errors, clients MUST traverse through all of the nested “innerErrors” and choose the deepest one that they understand." + } + } + }, + "ErrorDetails": { + "description": "The error details.", + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string" + }, + "message": { + "description": "The error message.", + "type": "string" + }, + "target": { + "description": "The target of the error (e.g., the name of the property in error).", + "type": "string" + } + } + }, + "InnerErrorResponse": { + "description": "A nested structure of errors.", + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string" + }, + "innerError": { + "$ref": "#/definitions/InnerErrorResponse", + "description": "A nested list of inner errors. When evaluating errors, clients MUST traverse through all of the nested “innerErrors” and choose the deepest one that they understand." + } + } + } + }, + "parameters": { + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "The Azure Subscription ID.", + "required": true, + "type": "string", + "format": "uuid", + "x-ms-parameter-location": "method" + }, + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The Name of the resource group in which the workspace is located.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "workspaceNameParameter": { + "name": "workspaceName", + "in": "path", + "description": "The name of the workspace.", + "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" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "tags": [] +} diff --git a/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/cancelHyperDriveExperiment.json b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/cancelHyperDriveExperiment.json new file mode 100644 index 000000000000..ba759fa0ea93 --- /dev/null +++ b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/cancelHyperDriveExperiment.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "region": "eastus", + "dnsSuffix": "api.azureml.ms", + "armScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace/experiments/demo_experiment", + "runId": "demorun_1558388311" + }, + "responses": { + "200": { + "body": { + "code": 200, + "result": "Cancellation requested for demorun_1558388311" + } + } + } +} diff --git a/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/cancelRunWithUri.json b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/cancelRunWithUri.json new file mode 100644 index 000000000000..119a85b57fd1 --- /dev/null +++ b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/cancelRunWithUri.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "region": "eastus", + "dnsSuffix": "api.azureml.ms", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "demo_resource_group", + "workspaceName": "demo_workspace", + "experimentName": "demo_experiment", + "runId": "demorun_15501234342_0" + }, + "responses": { + "200": { + "body": { + "runId": "demorun_15501234342_0" + } + } + } +} diff --git a/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/createHyperDriveExperiment.json b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/createHyperDriveExperiment.json new file mode 100644 index 000000000000..4874d2a84fce --- /dev/null +++ b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/createHyperDriveExperiment.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "region": "eastus", + "dnsSuffix": "api.azureml.ms", + "armScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/demo_resource_group/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace/experiments/demo_experiment", + "config": "multipart-form-data" + }, + "responses": { + "201": { + "body": { + "code": 201, + "result": { + "all_jobs_generated": false, + "cancellation_requested": false, + "created": "2019-05-23T20:00:00.0Z", + "created_by_user_id": 0, + "description": null, + "experiment_id": "demo_experiment_1", + "experiment_uri": null, + "generator_config": { + "name": "BAYESIANOPTIMIZATION", + "parameter_space": { + "--param1": [ + "uniform", + [ + 0, + 1 + ] + ] + } + }, + "max_concurrent_jobs": 1, + "max_duration_minutes": 10080, + "max_total_jobs": 4, + "modified": "2019-05-23T20:00:00.0Z", + "name": "demo_experiment", + "platform": "AML", + "platform_config": {}, + "policy_config": { + "name": "DEFAULT" + }, + "primary_metric_config": { + "name": "accuracy", + "goal": "MAXIMIZE" + }, + "status": "Running", + "study_id": 0, + "study_uri": null, + "hyperdrive_run_id": "" + } + } + } + } +} diff --git a/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/startLocalRun.json b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/startLocalRun.json new file mode 100644 index 000000000000..21d70904a3e8 --- /dev/null +++ b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/startLocalRun.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "region": "eastus", + "dnsSuffix": "api.azureml.ms", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "demo_resource_group", + "workspaceName": "demo_workspace", + "experimentName": "demo_experiment", + "definition": { + "snapshotId": "00000000-0000-0000-0000-000000000000", + "configuration": { + "script": "findsquare.py", + "arguments": [ + "234" + ], + "framework": "Python", + "communicator": "None", + "target": "batchai", + "maxRunDurationSeconds": 1200, + "nodeCount": 1, + "environment": { + "python": { + "interpreterPath": "python", + "userManagedDependencies": false, + "condaDependencies": { + "name": "project_environment", + "dependencies": [ + "python=3.6.2", + { + "pip": [ + "azureml-defaults" + ] + } + ] + } + }, + "docker": { + "baseImage": "mcr.microsoft.com/azureml/base:0.2.2" + } + }, + "history": {} + } + } + }, + "responses": { + "200": { + "schema": { + "format": "byte", + "type": "file" + } + } + } +} diff --git a/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/startRun.json b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/startRun.json new file mode 100644 index 000000000000..00e885a53c72 --- /dev/null +++ b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/startRun.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "region": "eastus", + "dnsSuffix": "api.azureml.ms", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "demo_resource_group", + "workspaceName": "demo_workspace", + "experimentName": "demo_experiment", + "runDefinitionFile": "multipart-form-data", + "projectZipFile": "multipart-form-data" + }, + "responses": { + "200": { + "body": { + "runId": "demorun_15501234342_0" + } + } + } +} diff --git a/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/startSnapshotRun.json b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/startSnapshotRun.json new file mode 100644 index 000000000000..9c494e4dba90 --- /dev/null +++ b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/examples/startSnapshotRun.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "region": "eastus", + "dnsSuffix": "api.azureml.ms", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "demo_resource_group", + "workspaceName": "demo_workspace", + "experimentName": "demo_experiment", + "definition": { + "snapshotId": "00000000-0000-0000-0000-000000000000", + "configuration": { + "script": "findsquare.py", + "arguments": [ + "234" + ], + "framework": "Python", + "communicator": "None", + "target": "batchai", + "maxRunDurationSeconds": 1200, + "nodeCount": 1, + "environment": { + "python": { + "interpreterPath": "python", + "userManagedDependencies": false, + "condaDependencies": { + "name": "project_environment", + "dependencies": [ + "python=3.6.2", + { + "pip": [ + "azureml-defaults" + ] + } + ] + } + }, + "docker": { + "baseImage": "mcr.microsoft.com/azureml/base:0.2.2" + } + }, + "history": {} + } + } + }, + "responses": { + "200": { + "body": { + "runId": "demorun_15501234342_0" + } + } + } +} diff --git a/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/execution.json b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/execution.json new file mode 100644 index 000000000000..ca260daefa7b --- /dev/null +++ b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/execution.json @@ -0,0 +1,827 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-08-01", + "title": "Execution Service API" + }, + "schemes": [ + "https" + ], + "paths": { + "/execution/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/startlocalrun": { + "post": { + "tags": [ + "Execution" + ], + "summary": "Start a run on a local machine.", + "description": "Starts an experiment run using the provided definition.json file to define the run.\r\n The source code and configuration is defined in a zip archive in project.zip.", + "operationId": "Execution_StartLocalRun", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json", + "application/octet-stream" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "definition", + "in": "body", + "description": "A JSON run definition structure.", + "required": true, + "schema": { + "$ref": "#/definitions/RunDefinition" + } + }, + { + "name": "runId", + "in": "query", + "description": "A run id. If not supplied a run id will be created automatically.", + "required": false, + "type": "string", + "pattern": "^[a-zA-Z0-9][\\w-]{0,255}$" + } + ], + "responses": { + "200": { + "description": "File Response", + "schema": { + "format": "byte", + "type": "file" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Start a local run": { + "$ref": "./examples/startLocalRun.json" + } + } + } + }, + "/execution/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/startrun": { + "post": { + "tags": [ + "Execution" + ], + "summary": "Start a run on a remote compute target.", + "description": "Starts an experiment run using the provided definition.json file to define the run.\r\n The source code and configuration is defined in a zip archive in project.zip.", + "operationId": "Execution_StartRun", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runDefinitionFile", + "in": "formData", + "description": "The JSON file containing the RunDefinition", + "required": true, + "type": "file" + }, + { + "name": "projectZipFile", + "in": "formData", + "description": "The zip archive of the project folder containing the source code to use for the run.", + "required": true, + "type": "file" + }, + { + "name": "runId", + "in": "query", + "description": "A run id. If not supplied a run id will be created automatically.", + "required": false, + "type": "string", + "pattern": "^[a-zA-Z0-9][\\w-]{0,255}$" + } + ], + "responses": { + "200": { + "description": "A run was successfully started.", + "schema": { + "$ref": "#/definitions/StartRunResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Start a run": { + "$ref": "./examples/startRun.json" + } + } + } + }, + "/execution/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/snapshotrun": { + "post": { + "tags": [ + "Execution" + ], + "summary": "Start a run from a snapshot on a remote compute target.", + "description": "Starts an experiment run on the remote compute target using the provided definition.json file to define the run.\r\n The code for the run is retrieved using the snapshotId in definition.json.", + "operationId": "Execution_StartSnapshotRun", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "definition", + "in": "body", + "description": "A JSON run definition structure.", + "required": true, + "schema": { + "$ref": "#/definitions/RunDefinition" + } + }, + { + "name": "runId", + "in": "query", + "description": "A run id. If not supplied a run id will be created automatically.", + "required": false, + "type": "string", + "pattern": "^[a-zA-Z0-9][\\w-]{0,255}$" + } + ], + "responses": { + "200": { + "description": "A snapshot run was successfully started.", + "schema": { + "$ref": "#/definitions/StartRunResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Start a snapshot run": { + "$ref": "./examples/startSnapshotRun.json" + } + } + } + }, + "/execution/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runId/{runId}/cancel": { + "post": { + "tags": [ + "Execution" + ], + "summary": "Cancel a run.", + "description": "Cancels a run within an experiment.", + "operationId": "Execution_CancelRunWithUri", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The id of the run to cancel.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9][\\w-]{0,255}$" + } + ], + "responses": { + "200": { + "description": "The run was successfully cancelled.", + "schema": { + "$ref": "#/definitions/StartRunResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Cancel a run with URI": { + "$ref": "./examples/cancelRunWithUri.json" + } + } + } + } + }, + "definitions": { + "RunDefinition": { + "type": "object", + "properties": { + "configuration": { + "$ref": "#/definitions/RunConfiguration", + "description": "Fully specified configuration information for the run. Even when that information\r\nis contained in configuration files within the project folder, the client collapses\r\nit all and inlines it into the run definition when submitting a run." + }, + "snapshotId": { + "format": "uuid", + "description": "Snapshots are user project folders that have been uploaded to the cloud for subsequent\r\nexecution. This field is required when executing against cloud-based compute targets\r\nunless the run submission was against the API endpoint that takes a zipped project folder\r\ninline with the request.", + "type": "string" + }, + "parentRunId": { + "description": "Specifies that the run history entry for this execution should be scoped within\r\nan existing run as a child. Defaults to null, meaning the run has no parent.\r\nThis is intended for first-party service integration, not third-party API users.", + "type": "string", + "example": "myexperiment_155000000001_0" + }, + "runType": { + "description": "Specifies the runsource property for this run. The default value is \"experiment\" if not specified.", + "type": "string", + "example": "experiment" + } + } + }, + "RunConfiguration": { + "type": "object", + "properties": { + "script": { + "description": "The relative path to the python script file. The file path is relative to the source_directory passed to submit run.", + "type": "string", + "example": "findsquare.py" + }, + "arguments": { + "description": "Command line arguments for the python script file.", + "uniqueItems": false, + "type": "array", + "items": { + "type": "string" + }, + "example": "[\"234\"]" + }, + "framework": { + "description": "The supported frameworks are Python, PySpark, CNTK, TensorFlow, and PyTorch. Use Tensorflow for AmlCompute clusters, and Python for distributed training jobs.", + "enum": [ + "Python", + "PySpark", + "Cntk", + "TensorFlow", + "PyTorch" + ], + "type": "string", + "example": "Python", + "x-ms-enum": { + "name": "Framework", + "modelAsString": false + } + }, + "communicator": { + "description": "The supported communicators are None, ParameterServer, OpenMpi, and IntelMpi Keep in mind that OpenMpi requires a custom image with OpenMpi installed.\r\nUse ParameterServer or OpenMpi for AmlCompute clusters. Use IntelMpi for distributed training jobs.", + "enum": [ + "None", + "ParameterServer", + "Gloo", + "Mpi", + "Nccl" + ], + "type": "string", + "example": "None", + "x-ms-enum": { + "name": "Communicator", + "modelAsString": false + } + }, + "target": { + "description": "Target refers to compute where the job is scheduled for execution. The default target is \"local\" referring to the local machine.", + "type": "string", + "example": "amlcompute" + }, + "dataReferences": { + "description": "All the data sources are made available to the run during execution based on each configuration.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/DataReferenceConfiguration" + } + }, + "jobName": { + "description": "This is primarily intended for notebooks to override the default job name.\r\nDefaults to ArgumentVector[0] if not specified.", + "type": "string", + "example": "FindSquaresJob" + }, + "maxRunDurationSeconds": { + "format": "int64", + "description": "Maximum allowed time for the run. The system will attempt to automatically cancel the run if it took longer than this value.\r\nMaxRunDurationSeconds=null means infinite duration.", + "type": "integer", + "example": "84000" + }, + "nodeCount": { + "format": "int32", + "description": "Number of compute nodes to run the job on. Only applies to AMLCompute.", + "type": "integer", + "example": "1" + }, + "environment": { + "$ref": "#/definitions/EnvironmentDefinition", + "description": "The environment definition, This field configures the python environment.\r\nIt can be configured to use an existing Python environment or configured to setup a temp environment for the experiment.\r\nThe definition is also responsible for setting the required application dependencies." + }, + "history": { + "$ref": "#/definitions/HistoryConfiguration", + "description": "This section is used to disable and enable experiment history logging features." + }, + "spark": { + "$ref": "#/definitions/SparkConfiguration", + "description": "When the platform is set to Pyspark, The spark configuration is used to set the default sparkconf for the submitted job." + }, + "tensorflow": { + "$ref": "#/definitions/TensorflowConfiguration", + "description": "The attribute is used to configure the distributed tensorflow parameters.\r\nThis attribute takes effect only when the framework is set to TensorFlow, and the communicator to ParameterServer.\r\nAmlCompute is the only supported compute for this configuration." + }, + "mpi": { + "$ref": "#/definitions/MpiConfiguration", + "description": "The attribute is used to configure the distributed MPI job parameters.\r\nThis attribute takes effect only when the framework is set to Python, and the communicator to OpenMpi or IntelMpi.\r\nAmlCompute is the only supported compute type for this configuration." + }, + "hdi": { + "$ref": "#/definitions/HdiConfiguration", + "description": "This attribute takes effect only when the target is set to an Azure HDI compute.\r\nThe HDI Configuration is used to set the YARN deployment mode. It is defaulted to cluster mode." + } + } + }, + "DataReferenceConfiguration": { + "description": "A class for managing DataReferenceConfiguration.", + "type": "object", + "properties": { + "dataStoreName": { + "description": "The name of the data store.", + "type": "string", + "example": "myblobstore" + }, + "mode": { + "description": "Operation on the datastore, mount, download, upload.", + "enum": [ + "Mount", + "Download", + "Upload" + ], + "type": "string", + "example": "Mount", + "x-ms-enum": { + "name": "DataStoreMode", + "modelAsString": false + } + }, + "pathOnDataStore": { + "description": "Relative path on the datastore.", + "type": "string", + "example": "/images/validation" + }, + "pathOnCompute": { + "description": "The path on the compute target.", + "type": "string" + }, + "overwrite": { + "description": "Whether to overwrite the data if existing.", + "type": "boolean" + } + } + }, + "EnvironmentDefinition": { + "type": "object", + "properties": { + "name": { + "description": "The name of the environment.", + "type": "string", + "example": "mydevenvironment" + }, + "version": { + "description": "The environment version.", + "type": "string", + "example": "1" + }, + "python": { + "$ref": "#/definitions/PythonSection", + "description": "Settings for a Python environment." + }, + "environmentVariables": { + "description": "Definition of environment variables to be defined in the environment.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "docker": { + "$ref": "#/definitions/DockerSection", + "description": "The definition of a Docker container." + }, + "spark": { + "$ref": "#/definitions/SparkSection", + "description": "The configuration for a Spark environment." + }, + "inferencingStackVersion": { + "description": "The inferencing stack version added to the image. To avoid adding an inferencing stack, do not set this value. Valid values: \"latest\".", + "type": "string", + "example": "latest" + } + } + }, + "HistoryConfiguration": { + "type": "object", + "properties": { + "outputCollection": { + "description": "Set to true to collect outputs and store in run history.", + "type": "boolean" + }, + "directoriesToWatch": { + "description": "The list of directories to monitor and upload files from.", + "uniqueItems": false, + "type": "array", + "items": { + "type": "string" + }, + "example": "[\"logs\", \"outputs\"]" + } + } + }, + "SparkConfiguration": { + "type": "object", + "properties": { + "configuration": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "TensorflowConfiguration": { + "type": "object", + "properties": { + "workerCount": { + "format": "int32", + "description": "The number of workers.", + "type": "integer", + "example": "2" + }, + "parameterServerCount": { + "format": "int32", + "description": "Number of parameter servers.", + "type": "integer", + "example": "1" + } + } + }, + "MpiConfiguration": { + "type": "object", + "properties": { + "processCountPerNode": { + "format": "int32", + "description": "Number of processes per node.", + "type": "integer", + "example": "2" + } + } + }, + "HdiConfiguration": { + "type": "object", + "properties": { + "yarnDeployMode": { + "enum": [ + "None", + "Client", + "Cluster" + ], + "type": "string", + "x-ms-enum": { + "name": "YarnDeployMode", + "modelAsString": false + } + } + } + }, + "PythonSection": { + "type": "object", + "properties": { + "interpreterPath": { + "description": "The python interpreter path. This is only used when user_managed_dependencies=True.", + "type": "string" + }, + "userManagedDependencies": { + "description": "True means that AzureML reuses an existing python environment; False means that AzureML will create a python environment based on the Conda dependencies specification.", + "type": "boolean" + }, + "condaDependencies": { + "type": "object" + }, + "baseCondaEnvironment": { + "type": "string" + } + } + }, + "DockerSection": { + "type": "object", + "properties": { + "baseImage": { + "description": "Base image used for Docker-based runs. Mutually exclusive with BaseDockerfile.", + "type": "string", + "example": "ubuntu:latest" + }, + "baseDockerfile": { + "description": "Base Dockerfile used for Docker-based runs. Mutually exclusive with BaseImage.", + "type": "string", + "example": "FROM ubuntu:latest\r\nRUN echo \"Hello world!\"" + }, + "enabled": { + "description": "Set true to perform this run inside a Docker container.", + "type": "boolean" + }, + "sharedVolumes": { + "description": "Set false to disable AzureML's usage of the Docker shared volumes feature to work around bugs in certain versions of Docker for Windows.", + "type": "boolean" + }, + "arguments": { + "description": "Extra arguments to the Docker run command.", + "uniqueItems": false, + "type": "array", + "items": { + "type": "string" + } + }, + "baseImageRegistry": { + "$ref": "#/definitions/ContainerRegistry", + "description": "Image registry that contains the base image." + } + } + }, + "SparkSection": { + "type": "object", + "properties": { + "repositories": { + "description": "The list of spark repositories.", + "uniqueItems": false, + "type": "array", + "items": { + "type": "string" + } + }, + "packages": { + "description": "The Spark packages to use.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/SparkMavenPackage" + } + }, + "precachePackages": { + "description": "Whether to precache the packages.", + "type": "boolean" + } + } + }, + "ContainerRegistry": { + "type": "object", + "properties": { + "address": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "SparkMavenPackage": { + "type": "object", + "properties": { + "group": { + "type": "string" + }, + "artifact": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "StartRunResult": { + "description": "Contains the details of a run.", + "required": [ + "runId" + ], + "type": "object", + "properties": { + "runId": { + "description": "The identifier for a run.", + "type": "string", + "example": "myexperiment_155000000001_0" + } + } + }, + "ErrorResponse": { + "description": "The error response.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/RootError", + "description": "The top level error that occurred." + }, + "correlation": { + "description": "Dictionary containing correlation details for the error.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "environment": { + "description": "The hosting environment.", + "type": "string" + }, + "location": { + "description": "The Azure region.", + "type": "string" + }, + "time": { + "format": "date-time", + "description": "The time in UTC.", + "type": "string" + } + } + }, + "RootError": { + "description": "The root error.", + "type": "object", + "properties": { + "code": { + "description": "The service-defined error code. Supported error codes: ServiceError, UserError, ValidationError, AzureStorageError, TransientError, RequestThrottled.", + "type": "string" + }, + "message": { + "description": "A human-readable representation of the error.", + "type": "string" + }, + "target": { + "description": "The target of the error (e.g., the name of the property in error).", + "type": "string" + }, + "details": { + "description": "The related errors that occurred during the request.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetails" + } + }, + "innerError": { + "$ref": "#/definitions/InnerErrorResponse", + "description": "A nested list of inner errors. When evaluating errors, clients MUST traverse through all of the nested “innerErrors” and choose the deepest one that they understand." + } + } + }, + "ErrorDetails": { + "description": "The error details.", + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string" + }, + "message": { + "description": "The error message.", + "type": "string" + }, + "target": { + "description": "The target of the error (e.g., the name of the property in error).", + "type": "string" + } + } + }, + "InnerErrorResponse": { + "description": "A nested structure of errors.", + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string" + }, + "innerError": { + "$ref": "#/definitions/InnerErrorResponse", + "description": "A nested list of inner errors. When evaluating errors, clients MUST traverse through all of the nested “innerErrors” and choose the deepest one that they understand." + } + } + } + }, + "parameters": { + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "The Azure Subscription ID.", + "required": true, + "type": "string", + "format": "uuid", + "x-ms-parameter-location": "method" + }, + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The Name of the resource group in which the workspace is located.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "workspaceNameParameter": { + "name": "workspaceName", + "in": "path", + "description": "The name of the workspace.", + "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" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "tags": [] +} diff --git a/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/hyperdrive.json b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/hyperdrive.json new file mode 100644 index 000000000000..ca5399f51681 --- /dev/null +++ b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/hyperdrive.json @@ -0,0 +1,585 @@ +{ + "swagger": "2.0", + "info": { + "description": "HyperDrive REST API", + "version": "2019-08-01", + "title": "HyperDrive" + }, + "tags": [], + "schemes": [ + "https" + ], + "paths": { + "/hyperdrive/v1.0/{armScope}/runs": { + "post": { + "tags": [ + "HyperDriveExperiment" + ], + "summary": "Create an Experiment.", + "description": "Create a HyperDrive Experiment.", + "operationId": "HyperDrive_CreateExperiment", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ArmScopeParameter" + }, + { + "in": "formData", + "name": "config", + "description": "The configuration file with experiment JSON content. A text file that is a JSON-serialized '#/definitions/HyperDriveCreateExperiment' object.", + "type": "file", + "required": true + } + ], + "responses": { + "201": { + "description": "OK", + "schema": { + "$ref": "#/definitions/HyperDriveExperimentResponse" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/HyperDriveErrorResponse" + } + } + }, + "x-ms-examples": { + "Create a HyperDrive experiment": { + "$ref": "./examples/createHyperDriveExperiment.json" + } + } + } + }, + "/hyperdrive/v1.0/{armScope}/runs/{runId}/cancel": { + "post": { + "tags": [ + "HyperDriveExperiment" + ], + "summary": "Cancel an Experiment.", + "description": "Cancel a HyperDrive Experiment.", + "operationId": "HyperDrive_CancelExperiment", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ArmScopeParameter" + }, + { + "name": "runId", + "in": "path", + "description": "Hyperdrive run id to cancel.", + "required": true, + "type": "string" + }, + { + "in": "header", + "name": "RunHistoryHost", + "description": "The host for run location.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/HyperDriveCancelExperimentResponse" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/HyperDriveErrorResponse" + } + } + }, + "x-ms-examples": { + "Cancel a HyperDrive experiment": { + "$ref": "./examples/cancelHyperDriveExperiment.json" + } + } + } + } + }, + "definitions": { + "HyperDriveErrorResponse": { + "properties": { + "code": { + "format": "int32", + "type": "integer", + "description": "Error response code." + }, + "message": { + "type": "string", + "description": "Error message." + } + }, + "required": [ + "code", + "message" + ], + "type": "object", + "description": "Response in case of an error." + }, + "HyperDriveCancelExperimentResponse": { + "properties": { + "code": { + "format": "int32", + "type": "integer", + "description": "Response code." + }, + "result": { + "type": "string", + "description": "Message indicating operation success." + } + }, + "required": [ + "code", + "result" + ], + "type": "object", + "description": "Response for HyperDrive_CancelExperiment in case of success." + }, + "HyperDriveExperimentBase": { + "description": "Base object for both request and response of HyperDrive_CreateExperiment api.", + "properties": { + "description": { + "maxLength": 511, + "type": "string", + "x-nullable": true, + "description": "The description for Hyperdrive run." + }, + "generator_config": { + "description": "Hyperparameter space and the sampling method configuration.", + "properties": { + "name": { + "type": "string", + "enum": [ + "RANDOM", + "GRID", + "BAYESIANOPTIMIZATION" + ], + "description": "Hyperparameter sampling method.", + "x-ms-enum": { + "name": "Name", + "modelAsString": true + } + }, + "parameter_space": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": {}, + "minItems": 2, + "maxItems": 2, + "description": "The first element in the array is a string identifying the parameter expression type like choice, uniform etc. The second element is a parameter expressions corresponding to the type.\r\n Please refer to https://docs.microsoft.com/en-us/python/api/azureml-train-core/azureml.train.hyperdrive.parameter_expressions?view=azure-ml-py for a list of supported types and options for each type.\r\n choice parameters are specified as ['choice', [[1, 2, 3, 4]]]. randint is in format ['randint', [1]].\r\n uniform, loguniform, normal, lognormal are in format [expression type, [0.01, 0.05]].\r\n quniform, qloguniform, qnormal, qlognormal are in format [expression type, [0.01, 0.05, 3]].\r\n", + "example": [ + "choice", + [ + [ + 1, + 2, + 3, + 4 + ] + ] + ] + }, + "description": "Dictionary specifying hyperparameter space." + } + }, + "required": [ + "name", + "parameter_space" + ], + "type": "object" + }, + "max_concurrent_jobs": { + "format": "int32", + "maximum": 100, + "minimum": 1, + "type": "integer", + "description": "Maximum number of runs to run concurrently." + }, + "max_duration_minutes": { + "format": "int32", + "maximum": 43200, + "minimum": 1, + "type": "integer", + "description": "Maximum duration of the Hyperdrive run." + }, + "max_total_jobs": { + "format": "int32", + "maximum": 1000, + "minimum": 1, + "type": "integer", + "description": "Maximum number of runs." + }, + "name": { + "maxLength": 255, + "type": "string", + "description": "Name of the Hyperdrive run." + }, + "platform": { + "type": "string", + "enum": [ + "AML" + ], + "description": "Platform of the Hyperdrive run.", + "x-ms-enum": { + "name": "Platform", + "modelAsString": true + } + }, + "platform_config": { + "type": "object", + "description": "Platform config object specifying the run definition structure." + }, + "policy_config": { + "description": "Early termination policy configuration.", + "$ref": "#/definitions/HyperDrivePolicyConfigBase" + }, + "primary_metric_config": { + "description": "Name of the primary metric and goal of optimizing.", + "properties": { + "goal": { + "type": "string", + "enum": [ + "MAXIMIZE", + "MINIMIZE" + ], + "description": "Determines if the primary metric has to be minimized/maximized.", + "x-ms-enum": { + "name": "Goal", + "modelAsString": true + } + }, + "name": { + "type": "string", + "description": "Name of the primary metric reported by runs." + } + }, + "required": [ + "goal", + "name" + ], + "type": "object" + }, + "study_id": { + "format": "int32", + "minimum": 0, + "type": "integer", + "x-nullable": true, + "description": "Study Id of the Hyperdrive run." + } + }, + "required": [ + "generator_config", + "name", + "platform", + "platform_config", + "policy_config", + "primary_metric_config" + ], + "type": "object" + }, + "HyperDriveExperiment": { + "type": "object", + "description": "Part of response for HyperDrive_CreateExperiment in case of success. Contains details about the created hyperdrive run.", + "allOf": [ + { + "$ref": "#/definitions/HyperDriveExperimentBase" + }, + { + "type": "object", + "properties": { + "all_jobs_generated": { + "type": "boolean", + "description": "Indicates if all runs have been generated." + }, + "cancellation_requested": { + "type": "boolean", + "description": "Indicates if cancellation has been requested for this Hyperdrive run." + }, + "created": { + "format": "date-time", + "type": "string", + "description": "Hyperdrive run creation time." + }, + "created_by_user_id": { + "format": "int32", + "type": "integer", + "description": "Id of the user who created the Hyperdrive run." + }, + "experiment_id": { + "type": "string", + "description": "Hyperdrive run id." + }, + "experiment_uri": { + "type": "string", + "description": "Hyperdrive run Uri." + }, + "modified": { + "format": "date-time", + "type": "string", + "description": "Hyperdrive run modification time." + }, + "status": { + "type": "string", + "description": "Hyperdrive run status." + }, + "study_uri": { + "type": "string", + "description": "Study Uri of the Hyperdrive run." + }, + "hyperdrive_run_id": { + "type": "string", + "description": "Hyperdrive run id." + } + }, + "required": [ + "all_jobs_generated", + "cancellation_requested", + "created", + "created_by_user_id", + "experiment_id", + "modified", + "status", + "hyperdrive_run_id" + ] + } + ], + "properties": {} + }, + "HyperDriveCreateExperiment": { + "type": "object", + "description": "Part of request for HyperDrive_CreateExperiment. Contains configuration details required to create hyperdrive run.", + "allOf": [ + { + "$ref": "#/definitions/HyperDriveExperimentBase" + }, + { + "type": "object", + "properties": { + "user": { + "maxLength": 255, + "type": "string", + "description": "User who is creating the Hyperdrive run." + } + }, + "required": [ + "user" + ] + } + ], + "properties": {} + }, + "HyperDrivePolicyConfigBase": { + "description": "Early termination policy configuration.", + "properties": { + "name": { + "type": "string", + "enum": [ + "Default", + "Bandit", + "MedianStopping", + "TruncationSelection" + ], + "description": "Type of early termination policy.", + "x-ms-enum": { + "name": "Name", + "modelAsString": true + } + } + }, + "required": [ + "name" + ], + "type": "object", + "discriminator": "name" + }, + "HyperDriveDefaultPolicy": { + "type": "object", + "description": "No early termination is applied in the case of DefaultPolicy", + "allOf": [ + { + "$ref": "#/definitions/HyperDrivePolicyConfigBase" + } + ], + "properties": {}, + "x-ms-discriminator-value": "Default" + }, + "HyperDriveBanditPolicy": { + "type": "object", + "description": "Bandit Policy configuration. Please refer https://docs.microsoft.com/en-us/python/api/azureml-train-core/azureml.train.hyperdrive.banditpolicy?view=azure-ml-py for more information.", + "allOf": [ + { + "$ref": "#/definitions/HyperDrivePolicyConfigBase" + }, + { + "type": "object", + "properties": { + "properties": { + "type": "object", + "description": "Policy configuration properties.", + "properties": { + "evaluation_interval": { + "format": "int32", + "type": "integer", + "description": "Evaluation interval of the policy." + }, + "delay_evaluation": { + "format": "int32", + "type": "integer", + "description": "Value indicating the number of sequences for which the first evaluation is delayed." + }, + "slack_factor": { + "format": "float", + "type": "number", + "description": "Slack factor." + }, + "slack_amount": { + "format": "float", + "type": "number", + "description": "Slack amount." + } + } + } + } + } + ], + "properties": {}, + "x-ms-discriminator-value": "Bandit" + }, + "HyperDriveMedianStoppingPolicy": { + "type": "object", + "description": "Median stopping policy configuration. Please refer https://docs.microsoft.com/en-us/python/api/azureml-train-core/azureml.train.hyperdrive.medianstoppingpolicy?view=azure-ml-py for more information.", + "allOf": [ + { + "$ref": "#/definitions/HyperDrivePolicyConfigBase" + }, + { + "type": "object", + "properties": { + "properties": { + "type": "object", + "description": "Policy configuration properties.", + "properties": { + "evaluation_interval": { + "format": "int32", + "type": "integer", + "description": "Evaluation interval of the policy." + }, + "delay_evaluation": { + "format": "int32", + "type": "integer", + "description": "Value indicating the number of sequences for which the first evaluation is delayed." + } + } + } + } + } + ], + "properties": {}, + "x-ms-discriminator-value": "MedianStopping" + }, + "HyperDriveTruncationSelectionPolicy": { + "type": "object", + "description": "Truncation selection policy configuration. Please refer https://docs.microsoft.com/en-us/python/api/azureml-train-core/azureml.train.hyperdrive.truncationselectionpolicy?view=azure-ml-py for more information.", + "allOf": [ + { + "$ref": "#/definitions/HyperDrivePolicyConfigBase" + }, + { + "type": "object", + "properties": { + "properties": { + "type": "object", + "description": "Policy configuration properties.", + "properties": { + "evaluation_interval": { + "format": "int32", + "type": "integer", + "description": "Evaluation interval of the policy." + }, + "delay_evaluation": { + "format": "int32", + "type": "integer", + "description": "Value indicating the number of sequences for which the first evaluation is delayed." + }, + "truncation_percentage": { + "format": "int32", + "type": "integer", + "description": "Truncation percentage value." + }, + "exclude_finished_jobs": { + "type": "boolean", + "description": "Boolean indicating if metrics from finished jobs should be excluded in the policy decision process." + } + } + } + } + } + ], + "properties": {}, + "x-ms-discriminator-value": "TruncationSelection" + }, + "HyperDriveExperimentResponse": { + "description": "Response for HyperDrive_CreateExperiment in case of success.", + "properties": { + "code": { + "format": "int32", + "type": "integer", + "description": "Response code." + }, + "result": { + "description": "Details about created Hyperdrive run.", + "$ref": "#/definitions/HyperDriveExperiment" + } + }, + "required": [ + "code", + "result" + ], + "type": "object" + } + }, + "parameters": { + "ArmScopeParameter": { + "name": "armScope", + "in": "path", + "description": "The ARM scope passed in through URL with format:\r\n subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}.\r\n", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true, + "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" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/modelManagement.json b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/modelManagement.json new file mode 100644 index 000000000000..ff6ed3317c07 --- /dev/null +++ b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/modelManagement.json @@ -0,0 +1,3603 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-08-01", + "title": "Azure Machine Learning Model Management Service", + "description": "These APIs allow end users to manage Azure Machine Learning Models, Images, Profiles, and Services." + }, + "paths": { + "/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/assets": { + "get": { + "tags": [ + "Asset" + ], + "summary": "Query the list of Assets in a workspace.", + "description": "If no filter is passed, the query lists all the Assets in the given workspace. The returned list is paginated and the count of items in each page is an optional parameter.", + "operationId": "Assets_ListQuery", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "runId", + "in": "query", + "description": "The run Id associated with the Assets.", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "The object name.", + "required": false, + "type": "string" + }, + { + "name": "count", + "in": "query", + "description": "The number of items to retrieve in a page.", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$skipToken", + "in": "query", + "description": "The continuation token to retrieve the next page.", + "required": false, + "type": "string" + }, + { + "name": "tags", + "in": "query", + "description": "A set of tags with which to filter the returned models.\r\n It is a comma separated string of tags key or tags key=value\r\n Example: tagKey1,tagKey2,tagKey3=value3", + "required": false, + "type": "string" + }, + { + "name": "properties", + "in": "query", + "description": "A set of properties with which to filter the returned models.\r\n It is a comma separated string of properties key and/or properties key=value\r\n Example: propKey1,propKey2,propKey3=value3", + "required": false, + "type": "string" + }, + { + "name": "orderby", + "in": "query", + "description": "An option for specifying how to order the list.", + "required": false, + "type": "string", + "default": "CreatedAtDesc", + "enum": [ + "CreatedAtDesc", + "CreatedAtAsc", + "UpdatedAtDesc", + "UpdatedAtAsc" + ] + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PaginatedAssetList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + }, + "post": { + "tags": [ + "Asset" + ], + "summary": "Create an Asset.", + "description": "Create an Asset from the provided payload.", + "operationId": "Assets_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "asset", + "in": "body", + "description": "The Asset to be created.", + "required": false, + "schema": { + "$ref": "#/definitions/Asset" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Asset" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + } + }, + "/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/assets/{id}": { + "get": { + "tags": [ + "Asset" + ], + "summary": "Get an Asset.", + "description": "Get an Asset by Id.", + "operationId": "Assets_QueryById", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The Asset Id.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Asset" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Asset" + ], + "summary": "Delete an Asset.", + "description": "Delete the specified Asset.", + "operationId": "Assets_Delete", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The Id of the Asset to delete.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The resource exists and was deleted successfully." + }, + "204": { + "description": "The resource does not exist and the request was well formed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Asset" + ], + "summary": "Update an Asset.", + "description": "Patch a specific Asset.", + "operationId": "Assets_Patch", + "consumes": [ + "application/json-patch+json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The Id of the Asset to patch.", + "required": true, + "type": "string" + }, + { + "name": "patch", + "in": "body", + "description": "The payload that is used to patch an Asset.", + "required": true, + "schema": { + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/JsonPatchOperation" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Asset" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + } + }, + "/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/models/{id}": { + "get": { + "tags": [ + "Model" + ], + "summary": "Gets a model.", + "description": "Gets a model by model id.", + "operationId": "MLModels_QueryById", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The model id.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Model" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Model" + ], + "summary": "Delete the specified Model.", + "description": "Deletes a model if it exists.", + "operationId": "MLModels_Delete", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The model id.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The resource exists and was deleted successfully." + }, + "204": { + "description": "The resource does not exist and the request was well formed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Model" + ], + "summary": "Patch a specific model.", + "description": "Updates an existing model with the specified patch.", + "operationId": "MLModels_Patch", + "consumes": [ + "application/json-patch+json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The model id.", + "required": true, + "type": "string" + }, + { + "name": "patch", + "in": "body", + "description": "The payload that is used to patch the model.", + "required": true, + "schema": { + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/JsonPatchOperation" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Model" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + } + }, + "/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/models": { + "get": { + "tags": [ + "Model" + ], + "summary": "Query the list of Models in a workspace.", + "description": "The result list can be filtered using tag and name. If no filter is passed, the query lists all the Models in the given workspace. The returned list is paginated and the count of items in each page is an optional parameter.", + "operationId": "MLModels_ListQuery", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "name", + "in": "query", + "description": "The object name.", + "required": false, + "type": "string" + }, + { + "name": "framework", + "in": "query", + "description": "The framework.", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "The object description.", + "required": false, + "type": "string" + }, + { + "name": "count", + "in": "query", + "description": "The number of items to retrieve in a page.", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$skipToken", + "in": "query", + "description": "The continuation token to retrieve the next page.", + "required": false, + "type": "string" + }, + { + "name": "tags", + "in": "query", + "description": "A set of tags with which to filter the returned models.\r\n It is a comma separated string of tags key or tags key=value\r\n Example: tagKey1,tagKey2,tagKey3=value3", + "required": false, + "type": "string" + }, + { + "name": "properties", + "in": "query", + "description": "A set of properties with which to filter the returned models.\r\n It is a comma separated string of properties key and/or properties key=value\r\n Example: propKey1,propKey2,propKey3=value3", + "required": false, + "type": "string" + }, + { + "name": "runId", + "in": "query", + "description": "The runId which created the model.", + "required": false, + "type": "string" + }, + { + "name": "orderBy", + "in": "query", + "description": "An option to specify how the models are ordered in the response.", + "required": false, + "type": "string", + "default": "CreatedAtDesc", + "enum": [ + "CreatedAtDesc", + "CreatedAtAsc", + "UpdatedAtDesc", + "UpdatedAtAsc" + ] + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PaginatedModelList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + }, + "post": { + "tags": [ + "Model" + ], + "summary": "Register a model.", + "description": "Register the model provided.", + "operationId": "MLModels_Register", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "model", + "in": "body", + "description": "The payload that is used to register the model.", + "required": true, + "schema": { + "$ref": "#/definitions/Model" + } + } + ], + "responses": { + "200": { + "description": "The model registration was successful.", + "schema": { + "$ref": "#/definitions/Model" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + } + }, + "/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/models/{id}/metrics": { + "get": { + "tags": [ + "Model" + ], + "summary": "Retrieve the metrics for a Model.", + "description": "The operational events collected for the Model are returned.", + "operationId": "MLModels_GetMetrics", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The Model Id.", + "required": true, + "type": "string" + }, + { + "name": "startDate", + "in": "query", + "description": "The start date from which to retrieve metrics, ISO 8601 literal format.", + "required": false, + "type": "string" + }, + { + "name": "endDate", + "in": "query", + "description": "The end date from which to retrieve metrics, ISO 8601 literal format.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ModelOperationalState" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + } + }, + "/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/operations/{id}": { + "get": { + "tags": [ + "Operations" + ], + "summary": "Get the status of an async operation.", + "description": "Get the status of an async operation by operation id.", + "operationId": "Operations_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The operation id.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AsyncOperationStatus" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + } + }, + "/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/images/{imageId}/profiles/{id}": { + "get": { + "tags": [ + "Profile" + ], + "summary": "Get a Profile.", + "description": "Get the Profile for an Image.", + "operationId": "Profiles_QueryById", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "imageId", + "in": "path", + "description": "The Image Id.", + "required": true, + "type": "string" + }, + { + "name": "id", + "in": "path", + "description": "The Profile Id.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ProfileResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + } + }, + "/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/images/{imageId}/profiles": { + "get": { + "tags": [ + "Profile" + ], + "summary": "Get a list of Image Profiles.", + "description": "If no filter is passed, the query lists all Profiles for the Image. The returned list is paginated and the count of items in each page is an optional parameter.", + "operationId": "Profiles_ListQuery", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "imageId", + "in": "path", + "description": "The Image Id.", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "The Profile name.", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "The Profile description.", + "required": false, + "type": "string" + }, + { + "name": "tags", + "in": "query", + "description": "A set of tags with which to filter the returned models.\r\n It is a comma separated string of tags key or tags key=value\r\n Example: tagKey1,tagKey2,tagKey3=value3", + "required": false, + "type": "string" + }, + { + "name": "properties", + "in": "query", + "description": "A set of properties with which to filter the returned models.\r\n It is a comma separated string of properties key and/or properties key=value\r\n Example: propKey1,propKey2,propKey3=value3", + "required": false, + "type": "string" + }, + { + "name": "count", + "in": "query", + "description": "The number of items to retrieve in a page.", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$skipToken", + "in": "query", + "description": "The continuation token to retrieve the next page.", + "required": false, + "type": "string" + }, + { + "name": "orderBy", + "in": "query", + "description": "The option to order the response.", + "required": false, + "type": "string", + "default": "CreatedAtDesc", + "enum": [ + "CreatedAtDesc", + "CreatedAtAsc", + "UpdatedAtDesc", + "UpdatedAtAsc" + ] + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PaginatedProfileResponseList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + }, + "post": { + "tags": [ + "Profile" + ], + "summary": "Create a Profile.", + "description": "Create a Profile for an Image.", + "operationId": "Profiles_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "imageId", + "in": "path", + "description": "The Image Id.", + "required": true, + "type": "string" + }, + { + "name": "inputRequest", + "in": "body", + "description": "The payload that is used to create the Profile.", + "required": true, + "schema": { + "$ref": "#/definitions/ProfileRequestBase" + } + } + ], + "responses": { + "202": { + "description": "The request was accepted. The header 'Operation-Location' contains the async operation location URL. Accessing this URL with a GET call will return the status of the background task." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + } + }, + "/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/services/{id}": { + "get": { + "tags": [ + "Service" + ], + "summary": "Get a Service.", + "description": "Get a Service by Id.", + "operationId": "Services_QueryById", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The Service Id.", + "required": true, + "type": "string" + }, + { + "name": "expand", + "in": "query", + "description": "Set to True to include Model details.", + "required": false, + "type": "boolean", + "default": false + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ServiceResponseBase" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Service" + ], + "summary": "Delete a Service.", + "description": "Delete a specific Service.", + "operationId": "Services_Delete", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The Service Id.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The resource exists and was deleted successfully." + }, + "202": { + "description": "Success" + }, + "204": { + "description": "The resource does not exist and the request was well formed." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Service" + ], + "summary": "Patch a Service.", + "description": "Patch a specific Service.", + "operationId": "Services_Patch", + "consumes": [ + "application/json-patch+json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The Service Id.", + "required": true, + "type": "string" + }, + { + "name": "patch", + "in": "body", + "description": "The payload that is used to patch the Service.", + "required": true, + "schema": { + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/JsonPatchOperation" + } + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "The request was accepted. The header 'Operation-Location' contains the async operation location URL. Accessing this URL with a GET call will return the status of the background task." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + } + }, + "/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/services": { + "get": { + "tags": [ + "Service" + ], + "summary": "Query the list of Services in a Workspace.", + "description": "If no filter is passed, the query lists all Services in the Workspace. The returned list is paginated and the count of item in each page is an optional parameter.", + "operationId": "Services_ListQuery", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "imageId", + "in": "query", + "description": "The Image Id.", + "required": false, + "type": "string" + }, + { + "name": "imageName", + "in": "query", + "description": "The Image name.", + "required": false, + "type": "string" + }, + { + "name": "modelId", + "in": "query", + "description": "The Model Id.", + "required": false, + "type": "string" + }, + { + "name": "modelName", + "in": "query", + "description": "The Model name.", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "The object name.", + "required": false, + "type": "string" + }, + { + "name": "count", + "in": "query", + "description": "The number of items to retrieve in a page.", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "computeType", + "in": "query", + "description": "The compute environment type.", + "required": false, + "type": "string" + }, + { + "name": "$skipToken", + "in": "query", + "description": "The continuation token to retrieve the next page.", + "required": false, + "type": "string" + }, + { + "name": "tags", + "in": "query", + "description": "A set of tags with which to filter the returned models.\r\n It is a comma separated string of tags key or tags key=value\r\n Example: tagKey1,tagKey2,tagKey3=value3", + "required": false, + "type": "string" + }, + { + "name": "properties", + "in": "query", + "description": "A set of properties with which to filter the returned models.\r\n It is a comma separated string of properties key and/or properties key=value\r\n Example: propKey1,propKey2,propKey3=value3", + "required": false, + "type": "string" + }, + { + "name": "expand", + "in": "query", + "description": "Set to True to include Model details.", + "required": false, + "type": "boolean", + "default": false + }, + { + "name": "orderby", + "in": "query", + "description": "The option to order the response.", + "required": false, + "type": "string", + "default": "UpdatedAtDesc", + "enum": [ + "CreatedAtDesc", + "CreatedAtAsc", + "UpdatedAtDesc", + "UpdatedAtAsc" + ] + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PaginatedServiceList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + }, + "post": { + "tags": [ + "Service" + ], + "summary": "Create a Service.", + "description": "Create a Service with the specified payload.", + "operationId": "Services_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "request", + "in": "body", + "description": "The payload that is used to create the Service.", + "required": true, + "schema": { + "$ref": "#/definitions/CreateServiceRequest" + } + } + ], + "responses": { + "202": { + "description": "The request was accepted. The header 'Operation-Location' contains the async operation location URL. Accessing this URL with a GET call will return the status of the background task." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + } + }, + "/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/services/{id}/listkeys": { + "post": { + "tags": [ + "Service", + "Keys" + ], + "summary": "Lists Service keys.", + "description": "Gets a list of Service keys.", + "operationId": "Services_ListServiceKeys", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The Service Id.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AuthKeys" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + } + }, + "/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/services/{id}/regenerateKeys": { + "post": { + "tags": [ + "Service", + "Keys" + ], + "summary": "Regenerate Service Keys.", + "description": "Regenerate and return the Service keys.", + "operationId": "Services_RegenerateServiceKeys", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The Service Id.", + "required": true, + "type": "string" + }, + { + "name": "request", + "in": "body", + "description": "The payload that is used to regenerate keys.", + "required": true, + "schema": { + "$ref": "#/definitions/RegenerateServiceKeysRequest" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AuthKeys" + } + }, + "202": { + "description": "The request was accepted. The header 'Operation-Location' contains the async operation location URL. Accessing this URL with a GET call will return the status of the background task." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + } + }, + "/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/services/{id}/token": { + "post": { + "tags": [ + "Service", + "Token" + ], + "summary": "Generate Service Access Token.", + "description": "Gets access token that can be used for calling service.", + "operationId": "Services_GetServiceToken", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupParameter" + }, + { + "$ref": "#/parameters/workspaceParameter" + }, + { + "name": "id", + "in": "path", + "description": "The Service Id.", + "required": true, + "type": "string" + } + ], + "responses": { + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AuthToken" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ModelErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Asset": { + "description": "The Asset definition.", + "required": [ + "name" + ], + "type": "object", + "properties": { + "id": { + "description": "The Asset Id.", + "type": "string" + }, + "name": { + "description": "The name of the Asset.", + "type": "string" + }, + "description": { + "description": "The Asset description.", + "type": "string" + }, + "artifacts": { + "description": "A list of child artifacts.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/ArtifactDetails" + } + }, + "kvTags": { + "description": "The Asset tag dictionary. Tags are mutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "description": "The Asset property dictionary. Properties are immutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "runid": { + "description": "The RunId associated with this Asset.", + "type": "string" + }, + "meta": { + "description": "A dictionary containing metadata about the Asset.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "createdTime": { + "format": "date-time", + "description": "The time the Asset was created in UTC.", + "type": "string", + "readOnly": true + } + } + }, + "ArtifactDetails": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "prefix": { + "type": "string" + } + } + }, + "PaginatedAssetList": { + "description": "A paginated list of Assets.", + "type": "object", + "properties": { + "value": { + "description": "An array of objects of type Asset.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Asset" + } + }, + "nextLink": { + "description": "A continuation link (absolute URI) to the next page of results in the list.", + "type": "string" + } + } + }, + "JsonPatchOperation": { + "description": "The Json Patch definition.", + "type": "object", + "properties": { + "value": { + "description": "The value.", + "type": "object" + }, + "path": { + "description": "The target location.", + "type": "string" + }, + "op": { + "description": "The operation.", + "type": "string" + }, + "from": { + "description": "The source location.", + "type": "string" + } + } + }, + "Model": { + "description": "An Azure Machine Learning Model.", + "required": [ + "name", + "url", + "mimeType" + ], + "type": "object", + "properties": { + "id": { + "description": "The Model Id.", + "type": "string", + "example": "sklearn_mnist:1" + }, + "name": { + "description": "The Model name.", + "type": "string", + "example": "sklearn_mnist" + }, + "framework": { + "description": "The Model framework.", + "type": "string" + }, + "frameworkVersion": { + "description": "The Model framework version.", + "type": "string" + }, + "version": { + "format": "int64", + "description": "The Model version assigned by Model Management Service.", + "type": "integer", + "example": "1" + }, + "datasets": { + "description": "The list of datasets associated with the model.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/DatasetReference" + } + }, + "url": { + "description": "The URL of the Model. Usually a SAS URL.", + "type": "string" + }, + "mimeType": { + "description": "The MIME type of Model content. For more details about MIME type, please open https://www.iana.org/assignments/media-types/media-types.xhtml", + "type": "string" + }, + "description": { + "description": "The Model description text.", + "type": "string", + "example": "A mnist model, first version." + }, + "createdTime": { + "format": "date-time", + "description": "The Model creation time (UTC).", + "type": "string", + "readOnly": true + }, + "modifiedTime": { + "format": "date-time", + "description": "The Model last modified time (UTC).", + "type": "string", + "readOnly": true + }, + "unpack": { + "description": "Indicates whether we need to unpack the Model during docker Image creation.", + "type": "boolean" + }, + "parentModelId": { + "description": "The Parent Model Id.", + "type": "string", + "example": "sklearn_mnist_root:1" + }, + "runId": { + "description": "The RunId that created this model.", + "type": "string" + }, + "experimentName": { + "description": "The name of the experiment where this model was created.", + "type": "string" + }, + "kvTags": { + "description": "The Model tag dictionary. Items are mutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "description": "The Model property dictionary. Properties are immutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "DatasetReference": { + "description": "The dataset reference object.", + "type": "object", + "properties": { + "name": { + "description": "The name of the dataset reference.", + "type": "string" + }, + "id": { + "description": "The id of the dataset reference.", + "type": "string" + } + } + }, + "PaginatedModelList": { + "description": "A paginated list of Models.", + "type": "object", + "properties": { + "value": { + "description": "An array of objects of type Model.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Model" + } + }, + "nextLink": { + "description": "A continuation link (absolute URI) to the next page of results in the list.", + "type": "string" + } + } + }, + "ModelOperationalState": { + "description": "The operational state of the Model.", + "type": "object", + "properties": { + "deploymentSummary": { + "$ref": "#/definitions/DeploymentSummary", + "description": "The summary of the deployment." + }, + "endTime": { + "description": "The deployment end time.", + "type": "string" + }, + "startTime": { + "description": "The deployment start time.", + "type": "string" + } + } + }, + "DeploymentSummary": { + "description": "The deployment summary.", + "type": "object", + "properties": { + "successfulDeployments": { + "format": "int32", + "description": "The number of successful deployments.", + "type": "integer" + }, + "unsuccessfulDeployments": { + "format": "int32", + "description": "The number of unsuccessful deployments.", + "type": "integer" + } + } + }, + "AsyncOperationStatus": { + "description": "The async operation status.", + "type": "object", + "properties": { + "id": { + "description": "The async operation id.", + "type": "string" + }, + "operationType": { + "description": "The async operation type.", + "type": "string" + }, + "state": { + "description": "The async operation state.", + "enum": [ + "NotStarted", + "Running", + "Cancelled", + "Succeeded", + "Failed", + "TimedOut" + ], + "type": "string", + "x-ms-enum": { + "name": "AsyncOperationState", + "modelAsString": false + } + }, + "createdTime": { + "format": "date-time", + "description": "The async operation creation time (UTC).", + "type": "string" + }, + "endTime": { + "format": "date-time", + "description": "The async operation end time (UTC)l", + "type": "string" + }, + "error": { + "$ref": "#/definitions/ModelErrorResponse", + "description": "The error details." + }, + "resourceLocation": { + "description": "The resource created/updated by the async operation.", + "type": "string" + }, + "operationLog": { + "description": "The async operation log.", + "type": "string" + }, + "operationDetails": { + "$ref": "#/definitions/AsyncOperationDetails", + "description": "The async operation details." + }, + "parentRequestId": { + "description": "The request id that created this operation", + "type": "string" + } + } + }, + "ModelErrorResponse": { + "description": "The Model Management Service Error object.", + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string" + }, + "statusCode": { + "format": "int32", + "description": "The HTTP status code.", + "type": "integer" + }, + "message": { + "description": "The error message.", + "type": "string" + }, + "details": { + "description": "An array of error detail objects.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetails" + } + } + } + }, + "AsyncOperationDetails": { + "description": "The async operation details.", + "type": "object", + "properties": { + "subOperationType": { + "description": "The suboperation type.", + "type": "string" + }, + "subOperationState": { + "description": "The suboperation state.", + "type": "string" + } + } + }, + "ErrorDetails": { + "description": "The error details.", + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string" + }, + "message": { + "description": "The error message.", + "type": "string" + }, + "target": { + "description": "The target of the error (e.g., the name of the property in error).", + "type": "string" + } + } + }, + "ProfileResponse": { + "description": "The profile response.", + "type": "object", + "properties": { + "name": { + "description": "The profile name.", + "type": "string" + }, + "description": { + "description": "The profile description.", + "type": "string" + }, + "imageId": { + "description": "The Image Id.", + "type": "string" + }, + "inputData": { + "description": "The input data.", + "type": "string" + }, + "state": { + "description": "The state of the profile.", + "type": "string" + }, + "createdTime": { + "format": "date-time", + "description": "The profile creation time (UTC).", + "type": "string" + }, + "kvTags": { + "description": "The profile tags dictionary. Tags are mutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "description": "The profile properties dictionary. Properties are immutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "recommendedMemoryInGB": { + "format": "double", + "description": "The recommended amount of memory to allocate in GB.", + "type": "number" + }, + "recommendedCpu": { + "format": "double", + "description": "The recommended CPU allocation.", + "type": "number" + }, + "recommendationLatencyInMs": { + "format": "double", + "description": "Latency associated with the recommended memory/cpu config", + "type": "number" + }, + "profileRunResult": { + "description": "The profile run result.", + "type": "string" + }, + "error": { + "$ref": "#/definitions/ModelErrorResponse", + "description": "The error details." + }, + "profilingErrorLogs": { + "description": "The profiling error logs.", + "type": "string" + } + } + }, + "PaginatedProfileResponseList": { + "description": "A paginated list of ProfileResponses.", + "type": "object", + "properties": { + "value": { + "description": "An array of objects of type ProfileResponse.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/ProfileResponse" + } + }, + "nextLink": { + "description": "A continuation link (absolute URI) to the next page of results in the list.", + "type": "string" + } + } + }, + "ProfileRequestBase": { + "description": "The request for creating a profile.", + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "description": "The profile name.", + "type": "string" + }, + "description": { + "description": "The profile description.", + "type": "string" + }, + "inputData": { + "description": "The profile input data.", + "type": "string" + }, + "kvTags": { + "description": "The tags dictionary.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "description": "The properties dictionary.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "ServiceResponseBase": { + "description": "The base service response. The correct inherited response based on computeType will be returned (ex. ACIServiceResponse)", + "required": [ + "computeType" + ], + "type": "object", + "properties": { + "id": { + "description": "The service Id.", + "type": "string" + }, + "name": { + "description": "The service name.", + "type": "string" + }, + "description": { + "description": "The service description.", + "type": "string" + }, + "kvTags": { + "description": "The service tag dictionary. Tags are mutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "description": "The service property dictionary. Properties are immutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "operationId": { + "description": "The ID of the latest asynchronous operation for this service.", + "type": "string" + }, + "state": { + "description": "The current state of the service.", + "enum": [ + "Transitioning", + "Healthy", + "Unhealthy", + "Failed" + ], + "type": "string", + "example": "Healthy", + "x-ms-enum": { + "name": "WebServiceState", + "modelAsString": false + } + }, + "createdTime": { + "format": "date-time", + "description": "The time the service was created.", + "type": "string" + }, + "updatedTime": { + "format": "date-time", + "description": "The time the service was updated.", + "type": "string" + }, + "error": { + "$ref": "#/definitions/ModelErrorResponse", + "description": "The error details." + }, + "computeType": { + "description": "The compute environment type for the service.", + "enum": [ + "ACI", + "AKS", + "AMLCOMPUTE", + "IOT", + "AKSENDPOINT", + "UNKNOWN" + ], + "type": "string", + "example": "AKS", + "x-ms-enum": { + "name": "ComputeEnvironmentType", + "modelAsString": false + } + }, + "deploymentType": { + "description": "The deployment type for the service.", + "enum": [ + "GRPCRealtimeEndpoint", + "HttpRealtimeEndpoint", + "Batch" + ], + "type": "string", + "example": "HttpRealtimeEndpoint", + "x-ms-enum": { + "name": "DeploymentType", + "modelAsString": false + } + } + }, + "discriminator": "computeType" + }, + "PaginatedServiceList": { + "description": "A paginated list of Services.", + "type": "object", + "properties": { + "value": { + "description": "An array of objects of type Service.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/ServiceResponseBase" + } + }, + "nextLink": { + "description": "A continuation link (absolute URI) to the next page of results in the list.", + "type": "string" + } + } + }, + "CreateServiceRequest": { + "description": "The base class for creating a service.", + "required": [ + "name", + "computeType" + ], + "type": "object", + "properties": { + "name": { + "description": "The service name.", + "type": "string" + }, + "description": { + "description": "The description of the service.", + "type": "string" + }, + "kvTags": { + "description": "The service tag dictionary. Tags are mutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "description": "The service properties dictionary. Properties are immutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "keys": { + "$ref": "#/definitions/AuthKeys", + "description": "The authentication keys." + }, + "computeType": { + "description": "The compute environment type for the service.", + "enum": [ + "ACI", + "AKS", + "AMLCOMPUTE", + "IOT", + "AKSENDPOINT", + "UNKNOWN" + ], + "type": "string", + "example": "AKS", + "x-ms-enum": { + "name": "ComputeEnvironmentType", + "modelAsString": false + } + }, + "deploymentType": { + "description": "The deployment type for the service.", + "enum": [ + "GRPCRealtimeEndpoint", + "HttpRealtimeEndpoint", + "Batch" + ], + "type": "string", + "example": "HttpRealtimeEndpoint", + "x-ms-enum": { + "name": "DeploymentType", + "modelAsString": false + } + }, + "imageId": { + "description": "The Image Id.", + "type": "string" + }, + "environmentImageRequest": { + "$ref": "#/definitions/EnvironmentImageRequest", + "description": "The Environment, models and assets needed for inferencing." + }, + "location": { + "description": "The location of the service.", + "type": "string" + } + }, + "discriminator": "computeType" + }, + "AuthKeys": { + "type": "object", + "properties": { + "primaryKey": { + "description": "The primary key.", + "type": "string" + }, + "secondaryKey": { + "description": "The secondary key.", + "type": "string" + } + } + }, + "ACIServiceResponse": { + "description": "The response for an ACI service.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ServiceResponseBase" + }, + { + "type": "object", + "properties": { + "containerResourceRequirements": { + "$ref": "#/definitions/ContainerResourceRequirements", + "description": "The container resource requirements." + }, + "imageId": { + "description": "The Id of the Image.", + "type": "string" + }, + "imageDetails": { + "$ref": "#/definitions/DockerImageResponse", + "description": "The Image details." + }, + "scoringUri": { + "description": "The Uri for sending scoring requests.", + "type": "string" + }, + "location": { + "description": "The location of the service.", + "type": "string" + }, + "authEnabled": { + "description": "Whether or not authentication is enabled on the service.", + "type": "boolean" + }, + "sslEnabled": { + "description": "Whether or not SSL is enabled.", + "type": "boolean" + }, + "appInsightsEnabled": { + "description": "Whether or not Application Insights is enabled.", + "type": "boolean" + }, + "dataCollection": { + "$ref": "#/definitions/ModelDataCollection", + "description": "Details of the data collection options specified." + }, + "sslCertificate": { + "description": "The SSL certificate to use if SSL is enabled.", + "type": "string" + }, + "sslKey": { + "description": "The SSL key for the certificate.", + "type": "string" + }, + "cname": { + "description": "The CName for the service.", + "type": "string" + }, + "publicIp": { + "description": "The public IP address for the service.", + "type": "string" + }, + "publicFqdn": { + "description": "The public Fqdn for the service.", + "type": "string" + }, + "swaggerUri": { + "description": "The Uri for sending swagger requests.", + "type": "string" + }, + "modelConfigMap": { + "description": "Details on the models and configurations.", + "type": "object", + "additionalProperties": { + "type": "object" + } + }, + "environment": { + "$ref": "#/definitions/ModelEnvironmentDefinition", + "description": "Details on the Environment." + }, + "models": { + "description": "The list of models.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Model" + } + } + } + } + ], + "properties": {}, + "x-ms-discriminator-value": "ACI" + }, + "EnvironmentImageRequest": { + "description": "Request to create a Docker image based on Environment.", + "type": "object", + "properties": { + "driverProgram": { + "description": "The name of the driver file.", + "type": "string" + }, + "assets": { + "description": "The list of assets.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentImageAsset" + } + }, + "modelIds": { + "description": "The list of model Ids.", + "uniqueItems": false, + "type": "array", + "items": { + "type": "string" + }, + "example": "[mymodel:1, mymodel:2]" + }, + "environment": { + "$ref": "#/definitions/ModelEnvironmentDefinition", + "description": "The details of the AZURE ML environment." + } + } + }, + "EnvironmentImageAsset": { + "description": "An Image asset.", + "type": "object", + "properties": { + "id": { + "description": "The Asset Id.", + "type": "string" + }, + "mimeType": { + "description": "The mime type.", + "type": "string" + }, + "url": { + "description": "The Url of the Asset.", + "type": "string" + }, + "unpack": { + "description": "Whether the Asset is unpacked.", + "type": "boolean" + } + } + }, + "ModelEnvironmentDefinition": { + "type": "object", + "properties": { + "name": { + "description": "The name of the environment.", + "type": "string", + "example": "mydevenvironment" + }, + "version": { + "description": "The environment version.", + "type": "string", + "example": "1" + }, + "python": { + "$ref": "#/definitions/ModelPythonSection", + "description": "Settings for a Python environment." + }, + "environmentVariables": { + "description": "Definition of environment variables to be defined in the environment.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "docker": { + "$ref": "#/definitions/ModelDockerSection", + "description": "The definition of a Docker container." + }, + "spark": { + "$ref": "#/definitions/ModelSparkSection", + "description": "The configuration for a Spark environment." + }, + "inferencingStackVersion": { + "description": "The Inferencing stack version.", + "type": "string", + "example": "latest" + } + } + }, + "ModelPythonSection": { + "type": "object", + "properties": { + "interpreterPath": { + "description": "The python interpreter path. This is only used when user_managed_dependencies=True.", + "type": "string" + }, + "userManagedDependencies": { + "description": "True means that AzureML reuses an existing python environment; False means that AzureML will create a python environment based on the Conda dependencies specification.", + "type": "boolean" + }, + "condaDependencies": { + "type": "object" + }, + "baseCondaEnvironment": { + "type": "string" + } + } + }, + "ModelDockerSection": { + "type": "object", + "properties": { + "baseImage": { + "description": "Base image used for Docker-based runs. Mutually exclusive with BaseDockerfile.", + "type": "string", + "example": "ubuntu:latest" + }, + "baseDockerfile": { + "description": "Base Dockerfile used for Docker-based runs. Mutually exclusive with BaseImage.", + "type": "string", + "example": "FROM ubuntu:latest\r\nRUN echo \"Hello world!\"" + }, + "enabled": { + "description": "Set True to perform this run inside a Docker container.", + "type": "boolean", + "example": "True" + }, + "sharedVolumes": { + "description": "Set False if necessary to work around shared volume bugs on Windows.", + "type": "boolean", + "example": "True" + }, + "gpuSupport": { + "description": "Run with NVidia Docker extension to support GPUs.", + "type": "boolean", + "example": "False" + }, + "shmSize": { + "description": "The shared memory size setting for NVidia GPUs.", + "type": "string", + "example": "1g" + }, + "arguments": { + "description": "Extra arguments to the Docker run command.", + "uniqueItems": false, + "type": "array", + "items": { + "type": "string" + } + }, + "baseImageRegistry": { + "$ref": "#/definitions/ContainerRegistry", + "description": "Image registry that contains the base image." + } + } + }, + "ModelSparkSection": { + "type": "object", + "properties": { + "repositories": { + "description": "The list of spark repositories.", + "uniqueItems": false, + "type": "array", + "items": { + "type": "string" + } + }, + "packages": { + "description": "The Spark packages to use.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/SparkMavenPackage" + } + }, + "precachePackages": { + "description": "Whether to precache the packages.", + "type": "boolean", + "example": "True" + } + } + }, + "ContainerRegistry": { + "type": "object", + "properties": { + "address": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "SparkMavenPackage": { + "type": "object", + "properties": { + "group": { + "type": "string" + }, + "artifact": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "RegenerateServiceKeysRequest": { + "type": "object", + "properties": { + "keyType": { + "format": "int32", + "description": "Specification for which type of key to generate.", + "enum": [ + "Primary", + "Secondary" + ], + "type": "integer", + "example": "Primary", + "x-ms-enum": { + "name": "KeyType", + "modelAsString": false + } + }, + "keyValue": { + "description": "The value the key is set to.", + "type": "string" + } + } + }, + "AuthToken": { + "description": "Service Token", + "type": "object", + "properties": { + "accessToken": { + "description": "Access token.", + "type": "string" + }, + "tokenType": { + "description": "Access token type.", + "type": "string" + }, + "expiryOn": { + "format": "int64", + "description": "Access token expiry time (UTC).", + "type": "integer" + }, + "refreshAfter": { + "format": "int64", + "description": "Refresh access token after time (UTC).", + "type": "integer" + } + } + }, + "ContainerResourceRequirements": { + "description": "The resource requirements for the container (cpu and memory).", + "type": "object", + "properties": { + "cpu": { + "format": "double", + "description": "The number of CPU cores on the container.", + "type": "number", + "example": "4" + }, + "memoryInGB": { + "format": "double", + "description": "The amount of memory on the container in GB.", + "type": "number", + "example": "64" + }, + "gpu": { + "format": "int32", + "description": "The number of GPU cores in the container.", + "type": "integer" + }, + "fpga": { + "format": "int32", + "description": "The number of FPGA PCIE devices exposed to the container. Must be multiple of 2.", + "type": "integer" + } + } + }, + "DockerImageResponse": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ImageResponseBase" + }, + { + "type": "object", + "properties": { + "driverProgram": { + "description": "The name of the driver file.", + "type": "string" + }, + "assets": { + "description": "The list of assets.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentImageAsset" + } + }, + "targetRuntime": { + "$ref": "#/definitions/TargetRuntime", + "description": "The target runtime." + }, + "dockerFileUri": { + "description": "The Uri to the docker file.", + "type": "string" + }, + "generatedDockerFileUri": { + "description": "The Uri to the generated docker file.", + "type": "string" + } + } + } + ], + "properties": {}, + "x-ms-discriminator-value": "WEBAPICONTAINER" + }, + "ModelDataCollection": { + "description": "The Model data collection properties.", + "type": "object", + "properties": { + "eventHubEnabled": { + "description": "Option for enabling/disabling Event Hub.", + "type": "boolean" + }, + "storageEnabled": { + "description": "Option for enabling/disabling storage.", + "type": "boolean" + } + } + }, + "RegistryInfo": { + "description": "Contains registry information.", + "required": [ + "user", + "location", + "password" + ], + "type": "object", + "properties": { + "user": { + "description": "The user.", + "type": "string" + }, + "location": { + "description": "The location.", + "type": "string" + }, + "password": { + "description": "The password.", + "type": "string" + } + } + }, + "TargetRuntime": { + "description": "The target runtime.", + "type": "object", + "properties": { + "targetArchitecture": { + "description": "The target architecture.", + "enum": [ + "Amd64", + "Arm32v7" + ], + "type": "string", + "example": "Amd64", + "x-ms-enum": { + "name": "ArchitectureType", + "modelAsString": false + } + }, + "osType": { + "description": "The target operating system.", + "enum": [ + "Linux", + "Windows" + ], + "type": "string", + "example": "linux", + "x-ms-enum": { + "name": "OSType", + "modelAsString": false + } + }, + "runtimeType": { + "description": "The target runtime type.", + "enum": [ + "SparkPython", + "Tlc37", + "Tlc38", + "Tlc310", + "Python", + "PythonSlim", + "PythonCustom" + ], + "type": "string", + "example": "Python", + "x-ms-enum": { + "name": "RuntimeType", + "modelAsString": false + } + }, + "properties": { + "description": "The properties dictionary.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "readOnly": true + } + } + }, + "AKSEndpointResponse": { + "description": "The response for an AKS Endpoint.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ServiceResponseBase" + }, + { + "type": "object", + "properties": { + "computeName": { + "description": "The name of the compute resource.", + "type": "string" + }, + "namespace": { + "description": "The Kubernetes namespace of the deployment.", + "type": "string" + }, + "appInsightsEnabled": { + "description": "Whether or not Application Insights is enabled.", + "type": "boolean" + }, + "authEnabled": { + "description": "Whether or not authentication is enabled.", + "type": "boolean" + }, + "aadAuthEnabled": { + "description": "Whether or not AAD authentication is enabled.", + "type": "boolean" + }, + "swaggerUri": { + "description": "The Uri for sending swagger requests.", + "type": "string" + }, + "scoringUri": { + "description": "The Uri for sending scoring requests.", + "type": "string" + }, + "variants": { + "description": "All the variants that belongs to this endpoint.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/AKSServiceResponse" + } + } + } + } + ], + "properties": {}, + "x-ms-discriminator-value": "AKSENDPOINT" + }, + "AKSServiceResponse": { + "description": "The response for an AKS service.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AKSVariantResponse" + }, + { + "type": "object", + "properties": { + "imageDetails": { + "$ref": "#/definitions/ImageResponseBase", + "description": "The Docker Image details." + }, + "imageId": { + "description": "The Id of the Image.", + "type": "string" + }, + "models": { + "description": "The list of models.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Model" + } + }, + "containerResourceRequirements": { + "$ref": "#/definitions/ContainerResourceRequirements", + "description": "The container resource requirements." + }, + "maxConcurrentRequestsPerContainer": { + "format": "int32", + "description": "The maximum number of concurrent requests per container.", + "type": "integer" + }, + "maxQueueWaitMs": { + "format": "int32", + "description": "Maximum time a request will wait in the queue (in milliseconds). After this time, the service will return 503 (Service Unavailable)", + "type": "integer" + }, + "computeName": { + "description": "The name of the compute resource.", + "type": "string" + }, + "namespace": { + "description": "The Kubernetes namespace of the deployment.", + "type": "string" + }, + "numReplicas": { + "format": "int32", + "description": "The number of replicas on the cluster.", + "type": "integer" + }, + "dataCollection": { + "$ref": "#/definitions/ModelDataCollection", + "description": "Details of the data collection options specified." + }, + "appInsightsEnabled": { + "description": "Whether or not Application Insights is enabled.", + "type": "boolean" + }, + "autoScaler": { + "$ref": "#/definitions/AutoScaler", + "description": "The auto scaler properties." + }, + "scoringUri": { + "description": "The Uri for sending scoring requests.", + "type": "string" + }, + "deploymentStatus": { + "$ref": "#/definitions/AKSReplicaStatus", + "description": "The deployment status." + }, + "scoringTimeoutMs": { + "format": "int32", + "description": "The scoring timeout in milliseconds.", + "type": "integer" + }, + "livenessProbeRequirements": { + "$ref": "#/definitions/LivenessProbeRequirements", + "description": "The liveness probe requirements." + }, + "authEnabled": { + "description": "Whether or not authentication is enabled.", + "type": "boolean" + }, + "aadAuthEnabled": { + "description": "Whether or not AAD authentication is enabled.", + "type": "boolean" + }, + "swaggerUri": { + "description": "The Uri for sending swagger requests.", + "type": "string" + }, + "modelConfigMap": { + "description": "Details on the models and configurations.", + "type": "object", + "additionalProperties": { + "type": "object" + } + }, + "environment": { + "$ref": "#/definitions/ModelEnvironmentDefinition", + "description": "Details on the Environment." + } + } + } + ], + "properties": {}, + "x-ms-discriminator-value": "AKS" + }, + "ImageResponseBase": { + "required": [ + "imageFlavor" + ], + "type": "object", + "properties": { + "id": { + "description": "The image Id.", + "type": "string", + "example": "myimage:3" + }, + "name": { + "description": "The image name.", + "type": "string", + "example": "myimage:3" + }, + "version": { + "format": "int64", + "description": "The image version.", + "type": "integer", + "example": "3" + }, + "description": { + "description": "The image description.", + "type": "string", + "example": "My docker image." + }, + "kvTags": { + "description": "The image tag dictionary. Tags are mutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "description": "The image properties dictionary. Properties are immutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "createdTime": { + "format": "date-time", + "description": "The time the image was created.", + "type": "string" + }, + "modifiedTime": { + "format": "date-time", + "description": "The time the image was last modified.", + "type": "string" + }, + "autoDelete": { + "description": "Whether the image will be automatically deleted with the last service using it.", + "type": "boolean" + }, + "imageType": { + "description": "The type of the image.", + "enum": [ + "Docker" + ], + "type": "string", + "example": "Docker", + "x-ms-enum": { + "name": "ImageType", + "modelAsString": false + } + }, + "imageFlavor": { + "description": "The flavor of the image.", + "enum": [ + "WebApiContainer", + "BatchContainer", + "IoTContainer", + "AccelContainer", + "UserProvidedContainer" + ], + "type": "string", + "example": "WebApiContainer", + "x-ms-enum": { + "name": "ImageFlavor", + "modelAsString": false + } + }, + "creationState": { + "description": "The state of the operation.", + "enum": [ + "NotStarted", + "Running", + "Cancelled", + "Succeeded", + "Failed", + "TimedOut" + ], + "type": "string", + "example": "Running", + "x-ms-enum": { + "name": "AsyncOperationState", + "modelAsString": false + } + }, + "error": { + "$ref": "#/definitions/ModelErrorResponse", + "description": "The error response." + }, + "modelIds": { + "description": "The list of model Ids.", + "uniqueItems": false, + "type": "array", + "items": { + "type": "string" + } + }, + "modelDetails": { + "description": "The list of models.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Model" + } + }, + "imageLocation": { + "description": "The Image location string.", + "type": "string" + }, + "imageBuildLogUri": { + "description": "The Uri to the image build logs.", + "type": "string" + }, + "operationId": { + "description": "The ID of the asynchronous operation for this image.", + "type": "string" + } + }, + "discriminator": "imageFlavor" + }, + "AutoScaler": { + "description": "The Auto Scaler properties.", + "type": "object", + "properties": { + "autoscaleEnabled": { + "description": "Option to enable/disable auto scaling.", + "type": "boolean" + }, + "minReplicas": { + "format": "int32", + "description": "The minimum number of replicas to scale down to.", + "type": "integer", + "example": "1" + }, + "maxReplicas": { + "format": "int32", + "description": "The maximum number of replicas in the cluster.", + "type": "integer", + "example": "3" + }, + "targetUtilization": { + "format": "int32", + "description": "The target utilization percentage to use for determining whether to scale the cluster.", + "type": "integer", + "example": "70" + }, + "refreshPeriodInSeconds": { + "format": "int32", + "description": "The amount of seconds to wait between auto scale updates.", + "type": "integer", + "example": "120" + } + } + }, + "AKSReplicaStatus": { + "type": "object", + "properties": { + "desiredReplicas": { + "format": "int32", + "description": "The desired number of replicas.", + "type": "integer", + "example": "2" + }, + "updatedReplicas": { + "format": "int32", + "description": "The number of updated replicas.", + "type": "integer", + "example": "1" + }, + "availableReplicas": { + "format": "int32", + "description": "The number of available replicas.", + "type": "integer", + "example": "1" + }, + "error": { + "$ref": "#/definitions/ModelErrorResponse", + "description": "The error details." + } + } + }, + "LivenessProbeRequirements": { + "description": "The liveness probe requirements.", + "type": "object", + "properties": { + "failureThreshold": { + "format": "int32", + "description": "The number of failures to allow before returning an unhealthy status.", + "type": "integer" + }, + "successThreshold": { + "format": "int32", + "description": "The number of successful probes before returning a healthy status.", + "type": "integer" + }, + "timeoutSeconds": { + "format": "int32", + "description": "The probe timeout in seconds.", + "type": "integer" + }, + "periodSeconds": { + "format": "int32", + "description": "The length of time between probes in seconds.", + "type": "integer" + }, + "initialDelaySeconds": { + "format": "int32", + "description": "The delay before the first probe in seconds.", + "type": "integer" + } + } + }, + "AKSVariantResponse": { + "description": "The response for an AKS variant.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ServiceResponseBase" + }, + { + "type": "object", + "properties": { + "isDefault": { + "description": "Is this the default variant.", + "type": "boolean" + }, + "trafficPercentile": { + "format": "float", + "description": "The amount of traffic variant receives.", + "type": "number" + }, + "type": { + "description": "The type of the variant.", + "enum": [ + "Control", + "Treatment" + ], + "type": "string", + "x-ms-enum": { + "name": "VariantType", + "modelAsString": false + } + } + } + } + ], + "properties": {} + }, + "BatchServiceResponse": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ServiceResponseBase" + }, + { + "type": "object", + "properties": { + "modelIds": { + "uniqueItems": false, + "type": "array", + "items": { + "type": "string" + } + }, + "computeName": { + "type": "string" + }, + "environmentName": { + "type": "string" + }, + "environmentVersion": { + "type": "string" + }, + "scoringUri": { + "type": "string" + }, + "appInsightsEnabled": { + "type": "boolean" + }, + "modelDataCollection": { + "$ref": "#/definitions/ModelDataCollection" + }, + "entryScript": { + "type": "string" + }, + "inputFormat": { + "type": "string" + }, + "outputAction": { + "type": "string" + }, + "miniBatchSize": { + "format": "int32", + "type": "integer" + }, + "errorThreshold": { + "format": "double", + "type": "number" + }, + "nodeCount": { + "format": "int32", + "type": "integer" + }, + "processCountPerNode": { + "format": "int32", + "type": "integer" + } + } + } + ], + "properties": {}, + "x-ms-discriminator-value": "AMLCOMPUTE" + }, + "IotServiceResponse": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ServiceResponseBase" + }, + { + "type": "object", + "properties": { + "iotDeviceId": { + "type": "string" + }, + "routes": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "computeName": { + "type": "string" + }, + "iotEdgeModules": { + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/IotModuleSettings" + } + }, + "authEnabled": { + "type": "boolean" + }, + "imageDetails": { + "$ref": "#/definitions/ImageResponseBase" + }, + "imageId": { + "type": "string" + } + } + } + ], + "properties": {}, + "x-ms-discriminator-value": "IOT" + }, + "IotModuleSettings": { + "type": "object", + "properties": { + "imageLocation": { + "type": "string" + }, + "moduleName": { + "type": "string" + }, + "propertiesDesired": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "createOptions": { + "type": "string" + }, + "environmentVariables": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "UnknownServiceResponse": { + "description": "The response for an unsupported Service\r\nDefines the basic service properties", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ServiceResponseBase" + }, + { + "type": "object", + "properties": {} + } + ], + "properties": {}, + "x-ms-discriminator-value": "UNKNOWON" + }, + "ACIServiceCreateRequest": { + "required": [ + "name" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CreateServiceRequest" + }, + { + "type": "object", + "properties": { + "containerResourceRequirements": { + "$ref": "#/definitions/ContainerResourceRequirements", + "description": "The container resource requirements." + }, + "authEnabled": { + "description": "Whether or not authentication is enabled on the service.", + "default": false, + "type": "boolean" + }, + "sslEnabled": { + "description": "Whether or not SSL is enabled.", + "default": false, + "type": "boolean" + }, + "appInsightsEnabled": { + "description": "Whether or not Application Insights is enabled.", + "default": false, + "type": "boolean" + }, + "dataCollection": { + "$ref": "#/definitions/ModelDataCollection", + "description": "Details of the data collection options specified." + }, + "sslCertificate": { + "description": "The SSL certificate to use if SSL is enabled.", + "type": "string" + }, + "sslKey": { + "description": "The SSL key for the certificate.", + "type": "string" + }, + "cname": { + "description": "The CName for the service.", + "type": "string" + }, + "dnsNameLabel": { + "description": "The Dns label for the service.", + "type": "string" + } + } + } + ], + "properties": {}, + "x-ms-discriminator-value": "ACI" + }, + "AKSServiceCreateRequest": { + "description": "The request to create an AKS service.", + "required": [ + "name" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CreateEndpointVariantRequest" + }, + { + "type": "object", + "properties": { + "numReplicas": { + "format": "int32", + "description": "The number of replicas on the cluster.", + "type": "integer" + }, + "dataCollection": { + "$ref": "#/definitions/ModelDataCollection", + "description": "Details of the data collection options specified." + }, + "computeName": { + "description": "The name of the compute resource.", + "type": "string" + }, + "appInsightsEnabled": { + "description": "Whether or not Application Insights is enabled.", + "type": "boolean" + }, + "autoScaler": { + "$ref": "#/definitions/AutoScaler", + "description": "The auto scaler properties." + }, + "containerResourceRequirements": { + "$ref": "#/definitions/ContainerResourceRequirements", + "description": "The container resource requirements." + }, + "maxConcurrentRequestsPerContainer": { + "format": "int32", + "description": "The maximum number of concurrent requests per container.", + "type": "integer" + }, + "maxQueueWaitMs": { + "format": "int32", + "description": "Maximum time a request will wait in the queue (in milliseconds). After this time, the service will return 503 (Service Unavailable)", + "type": "integer" + }, + "namespace": { + "description": "Kubernetes namespace for the service.", + "type": "string" + }, + "scoringTimeoutMs": { + "format": "int32", + "description": "The scoring timeout in milliseconds.", + "type": "integer" + }, + "authEnabled": { + "description": "Whether or not authentication is enabled.", + "type": "boolean" + }, + "livenessProbeRequirements": { + "$ref": "#/definitions/LivenessProbeRequirements", + "description": "The liveness probe requirements." + }, + "aadAuthEnabled": { + "description": "Whether or not AAD authentication is enabled.", + "type": "boolean" + } + } + } + ], + "properties": {}, + "x-ms-discriminator-value": "AKS" + }, + "CreateEndpointRequest": { + "description": "The request to create an Endpoint in the AKS.", + "required": [ + "name" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CreateServiceRequest" + }, + { + "type": "object", + "properties": { + "computeName": { + "description": "The name of the compute resource.", + "type": "string" + }, + "appInsightsEnabled": { + "description": "Whether or not Application Insights is enabled.", + "type": "boolean" + }, + "authEnabled": { + "description": "Whether or not authentication is enabled.", + "type": "boolean" + }, + "aadAuthEnabled": { + "description": "Whether or not AAD authentication is enabled.", + "type": "boolean" + }, + "namespace": { + "description": "Kubernetes namespace for the service.", + "type": "string" + }, + "variants": { + "description": "The service tag list.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/AKSServiceCreateRequest" + } + } + } + } + ], + "properties": {}, + "x-ms-discriminator-value": "AKSENDPOINT" + }, + "CreateEndpointVariantRequest": { + "description": "The Variant properties.", + "required": [ + "name" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CreateServiceRequest" + }, + { + "type": "object", + "properties": { + "isDefault": { + "description": "Is this the default variant.", + "type": "boolean" + }, + "trafficPercentile": { + "format": "float", + "description": "The amount of traffic variant receives.", + "type": "number" + }, + "type": { + "description": "The type of the variant.", + "enum": [ + "Control", + "Treatment" + ], + "type": "string", + "x-ms-enum": { + "name": "VariantType", + "modelAsString": false + } + } + } + } + ], + "properties": {} + }, + "CreateIotServiceRequest": { + "required": [ + "name" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CreateServiceRequest" + }, + { + "type": "object", + "properties": { + "iotDeviceId": { + "type": "string" + }, + "routes": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "iotEdgeUserModule": { + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/IotModuleSettings" + } + }, + "iotEdgeModule": { + "$ref": "#/definitions/IotBaseModuleSettings" + }, + "computeName": { + "type": "string" + }, + "acrCredentials": { + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/RegistryInfo" + } + }, + "authEnabled": { + "type": "boolean" + } + } + } + ], + "properties": {}, + "x-ms-discriminator-value": "IOT" + }, + "IotBaseModuleSettings": { + "type": "object", + "properties": { + "moduleName": { + "type": "string" + }, + "propertiesDesired": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "createOptions": { + "type": "string" + }, + "environmentVariables": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "FPGADockerImageResponse": { + "description": "The FPGA Docker Image response.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ImageResponseBase" + }, + { + "type": "object", + "properties": {} + } + ], + "properties": {}, + "x-ms-discriminator-value": "ACCELCONTAINER" + } + }, + "parameters": { + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "The Azure Subscription ID.", + "required": true, + "type": "string", + "format": "uuid", + "x-ms-parameter-location": "method" + }, + "resourceGroupParameter": { + "name": "resourceGroup", + "in": "path", + "description": "The Name of the resource group in which the workspace is located.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "workspaceParameter": { + "name": "workspace", + "in": "path", + "description": "The name of the workspace.", + "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" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "tags": [] +} diff --git a/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/runHistory.json b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/runHistory.json new file mode 100644 index 000000000000..2ffbaecc600a --- /dev/null +++ b/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/runHistory.json @@ -0,0 +1,2701 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-08-01", + "title": "Run History APIs" + }, + "schemes": [ + "https" + ], + "paths": { + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/batch/events": { + "post": { + "tags": [ + "Events" + ], + "summary": "Batch post event data.", + "description": "Post event data to a specific Run Id.", + "operationId": "Events_BatchPost", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "batchEventCommand", + "in": "body", + "description": "The batch of Event details.", + "required": false, + "schema": { + "$ref": "#/definitions/BatchEventCommand" + } + } + ], + "responses": { + "200": { + "description": "The batch of Events is posted successfully.", + "schema": { + "$ref": "#/definitions/BatchEventCommandResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/events": { + "post": { + "tags": [ + "Events" + ], + "summary": "Post event data.", + "description": "Post event data to a specific Run Id.", + "operationId": "Events_Post", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier of the Run.", + "required": true, + "type": "string" + }, + { + "name": "eventMessage", + "in": "body", + "description": "The Event details.", + "required": false, + "schema": { + "$ref": "#/definitions/BaseEvent" + } + } + ], + "responses": { + "200": { + "description": "The Event is posted successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}": { + "get": { + "tags": [ + "Experiments" + ], + "summary": "Get details of an Experiment.", + "description": "Get details of an Experiment with specific Experiment name.", + "operationId": "Experiments_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The details of the Experiment are returned successfully.", + "schema": { + "$ref": "#/definitions/Experiment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "post": { + "tags": [ + "Experiments" + ], + "summary": "Create an Experiment.", + "description": "Create a new Experiment.", + "operationId": "Experiments_Create", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The Experiment is created successfully.", + "schema": { + "$ref": "#/definitions/Experiment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experimentids/{experimentId}": { + "get": { + "tags": [ + "Experiments" + ], + "summary": "Get details of an Experiment.", + "description": "Get details of an Experiment with specific Experiment Id.", + "operationId": "Experiments_GetById", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentId", + "in": "path", + "description": "The identifier of the experiment.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Experiment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Experiments" + ], + "summary": "Update details of an Experiment.", + "description": "Update details of an Experiment with specific Experiment Id.", + "operationId": "Experiments_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentId", + "in": "path", + "description": "The identifier of the experiment.", + "required": true, + "type": "string" + }, + { + "name": "modifyExperimentDto", + "in": "body", + "description": "Experiment details which needs to be updated.", + "required": false, + "schema": { + "$ref": "#/definitions/ModifyExperiment" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Experiment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments:query": { + "post": { + "tags": [ + "Experiments" + ], + "summary": "Get all Experiments in a specific workspace.", + "description": "Get all experiments in a specific workspace with the specified query filters.", + "operationId": "Experiments_GetByQuery", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "queryParams", + "in": "body", + "description": "Query parameters for data sorting and filtering.", + "required": false, + "schema": { + "$ref": "#/definitions/QueryParams" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PaginatedExperimentList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experimentids/{experimentId}/tags": { + "delete": { + "tags": [ + "Experiments" + ], + "summary": "Delete list of Tags in an Experiment.", + "description": "Delete list of Tags from a specific Experiment Id.", + "operationId": "Experiments_DeleteTags", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentId", + "in": "path", + "description": "The identifier of the experiment.", + "required": true, + "type": "string" + }, + { + "name": "tags", + "in": "body", + "description": "The requested tags list to be deleted.", + "required": false, + "schema": { + "$ref": "#/definitions/DeleteTagsCommand" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Experiment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/children": { + "get": { + "tags": [ + "Run" + ], + "summary": "Get details of all child runs.", + "description": "Get details of all child runs for the specified Run Id with the specified filters.", + "operationId": "Runs_GetChild", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier of the Run.", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "Allows for filtering the collection of resources.\r\nThe expression specified is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response.", + "required": false, + "type": "string" + }, + { + "name": "$continuationtoken", + "in": "query", + "description": "The continuation token to use for getting the next set of resources.", + "required": false, + "type": "string" + }, + { + "name": "$orderby", + "in": "query", + "description": "The list of resource properties to use for sorting the requested resources.", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi", + "uniqueItems": false + }, + { + "name": "$sortorder", + "in": "query", + "description": "The sort order of the returned resources. Not used, specify asc or desc after each property name in the OrderBy parameter.", + "required": false, + "type": "string", + "enum": [ + "Asc", + "Desc" + ] + }, + { + "name": "$top", + "in": "query", + "description": "The maximum number of items in the resource collection to be included in the result.\r\nIf not specified, all items are returned.", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$count", + "in": "query", + "description": "Whether to include a count of the matching resources along with the resources returned in the response.", + "required": false, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "The details of the child Runs are returned successfully.", + "schema": { + "$ref": "#/definitions/PaginatedRunList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/details": { + "get": { + "tags": [ + "Run" + ], + "summary": "Get Run Details.", + "description": "Get Run Details for a specific Run Id.", + "operationId": "Runs_GetDetails", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier of the Run.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The details of the Run are returned successfully.", + "schema": { + "$ref": "#/definitions/RunDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/batch/runs": { + "patch": { + "tags": [ + "Run" + ], + "summary": "Add or Modify a batch of Runs.", + "description": "Add or Modify a batch of Runs for a given experiment.", + "operationId": "Runs_BatchAddOrModify", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "requestDto", + "in": "body", + "description": "The list of requested Run Additions/modifications in an Experiment.", + "required": false, + "schema": { + "$ref": "#/definitions/BatchAddOrModifyRunRequest" + } + } + ], + "responses": { + "200": { + "description": "The Batch Runs are added/modified successfully.", + "schema": { + "$ref": "#/definitions/BatchAddOrModifyRunResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}": { + "get": { + "tags": [ + "Run" + ], + "summary": "Get Run details.", + "description": "Get Run details of a specific Run Id.", + "operationId": "Runs_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier of the Run.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The details of the Run are returned successfully.", + "schema": { + "$ref": "#/definitions/Run" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Run" + ], + "summary": "Add or Modify a Run.", + "description": "Add a new Run or Modify an existing Run.", + "operationId": "Runs_Patch", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier of the Run.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9][\\w-]{0,255}$" + }, + { + "name": "createRunDto", + "in": "body", + "description": "The requested Run parameter Additions/modifications.", + "required": false, + "schema": { + "$ref": "#/definitions/CreateRun" + } + } + ], + "responses": { + "200": { + "description": "The Run is added/modified successfully.", + "schema": { + "$ref": "#/definitions/Run" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/tags": { + "delete": { + "tags": [ + "Run" + ], + "summary": "Delete list of Tags in a Run.", + "description": "Delete list of Tags from a specific Run Id.", + "operationId": "Runs_DeleteTags", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier of the Run.", + "required": true, + "type": "string" + }, + { + "name": "tags", + "in": "body", + "description": "The requested tags list to be deleted.", + "required": false, + "schema": { + "uniqueItems": false, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Run" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs:query": { + "post": { + "tags": [ + "Run" + ], + "summary": "Get all Runs for a specific Experiment.", + "description": "Get all Runs for a specific Experiment with the specified query filters.", + "operationId": "Runs_GetByQuery", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "queryParams", + "in": "body", + "description": "Query parameters for data sorting and filtering.", + "required": false, + "schema": { + "$ref": "#/definitions/QueryParams" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PaginatedRunList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/artifacts": { + "get": { + "tags": [ + "RunArtifacts" + ], + "summary": "Get Artifacts in a container.", + "description": "Get Artifacts in container for a specific Run Id.", + "operationId": "RunArtifacts_ListInContainer", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier of the Run.", + "required": true, + "type": "string" + }, + { + "name": "continuationToken", + "in": "query", + "description": "The Continuation Token.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The Artifacts in Container are returned successfully.", + "schema": { + "$ref": "#/definitions/PaginatedArtifactList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/artifacts/path": { + "get": { + "tags": [ + "RunArtifacts" + ], + "summary": "Get Artifacts in the provided path.", + "description": "Get Artifacts in the provided path for a specific Run Id.", + "operationId": "RunArtifacts_ListInPath", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier of the Run.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + }, + { + "name": "continuationToken", + "in": "query", + "description": "The Continuation Token.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PaginatedArtifactList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/artifacts/metadata": { + "get": { + "tags": [ + "RunArtifacts" + ], + "summary": "Get Artifact by Id.", + "description": "Get Artifact for a specific Id.", + "operationId": "RunArtifacts_GetById", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier of the Run.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Artifact" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/artifacts/contentinfo": { + "get": { + "tags": [ + "RunArtifacts" + ], + "summary": "Get Artifact content information.", + "description": "Get Artifact content information for give Run Id.", + "operationId": "RunArtifacts_GetContentInformation", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier of the Run.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The Artifact content information is returned successfully.", + "schema": { + "$ref": "#/definitions/ArtifactContentInformation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/artifacts/artifacturi": { + "get": { + "tags": [ + "RunArtifacts" + ], + "summary": "Get URI of an Artifact.", + "description": "Get URI of an Artifact for a specific Run Id.", + "operationId": "RunArtifacts_GetSasUri", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier of the Run.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "type": "string" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/artifacts/prefix/contentinfo": { + "get": { + "tags": [ + "RunArtifacts" + ], + "summary": "Get SAS of an Artifact.", + "description": "Get SAS of an Artifact in the specified path.", + "operationId": "RunArtifacts_ListSasByPrefix", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier of the Run.", + "required": true, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "The Artifact Path.", + "required": false, + "type": "string" + }, + { + "name": "continuationToken", + "in": "query", + "description": "The Continuation Token.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PaginatedArtifactContentInformationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/artifacts/batch/metadata": { + "post": { + "tags": [ + "RunArtifacts" + ], + "summary": "Create a batch of empty Artifacts.", + "description": "Create a batch of empty Artifacts in a specific Run.", + "operationId": "RunArtifacts_BatchCreateEmptyArtifacts", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier of the Run.", + "required": true, + "type": "string" + }, + { + "name": "artifactPaths", + "in": "body", + "description": "The list of artifact paths.", + "required": false, + "schema": { + "$ref": "#/definitions/ArtifactPathList" + } + } + ], + "responses": { + "200": { + "description": "The Batch Artifacts are created successfully.", + "schema": { + "$ref": "#/definitions/BatchArtifactContentInformationResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/metrics": { + "post": { + "tags": [ + "RunMetrics" + ], + "summary": "Post Metric to a Run.", + "description": "Post a Metric to a specific Run Id.", + "operationId": "RunMetrics_Post", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier for a run.", + "required": true, + "type": "string" + }, + { + "name": "metricDto", + "in": "body", + "description": "Details of the metric which will be added to the Run Id.", + "required": false, + "schema": { + "$ref": "#/definitions/Metric" + } + } + ], + "responses": { + "200": { + "description": "The Run Metric is posted successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/batch/metrics": { + "post": { + "tags": [ + "RunMetrics" + ], + "summary": "Post Metrics to a Run.", + "description": "Post Metrics to a specific Run Id.", + "operationId": "RunMetrics_BatchPost", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "runId", + "in": "path", + "description": "The identifier for a run.", + "required": true, + "type": "string" + }, + { + "name": "batchMetricDto", + "in": "body", + "description": "Details of the Metrics which will be added to the Run Id.", + "required": false, + "schema": { + "$ref": "#/definitions/BatchMetric" + } + } + ], + "responses": { + "200": { + "description": "The Run Metrics are posted successfully." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/metrics/{metricId}": { + "get": { + "tags": [ + "RunMetrics" + ], + "summary": "Get Metric details.", + "description": "Get Metric details for a specific Metric Id.", + "operationId": "RunMetrics_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "metricId", + "in": "path", + "description": "The identifier for a Metric.", + "required": true, + "type": "string", + "format": "uuid" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/RunMetric" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/metrics:query": { + "post": { + "tags": [ + "RunMetrics" + ], + "summary": "Get all Run Metrics for the specific Experiment.", + "description": "Get all Run Metrics for the specific Experiment with the specified query filters.", + "operationId": "RunMetrics_GetByQuery", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/workspaceNameParameter" + }, + { + "name": "experimentName", + "in": "path", + "description": "The experiment name.", + "required": true, + "type": "string" + }, + { + "name": "queryParams", + "in": "body", + "description": "Query Parameters for data sorting and filtering.", + "required": false, + "schema": { + "$ref": "#/definitions/QueryParams" + } + }, + { + "name": "MergeStrategyType", + "in": "query", + "description": "The type of merge strategy. Currently supported strategies are:\r\nNone - all logged values are returned as individual metrics.\r\nMergeToVector - merges multiple values into a vector of values.\r\nDefault - the system determines the behavior.", + "required": false, + "type": "string", + "enum": [ + "Default", + "None", + "MergeToVector" + ] + }, + { + "name": "MergeStrategyOptions", + "in": "query", + "description": "Controls behavior of the merge strategy in certain cases; e.g. when a metric is not merged.", + "required": false, + "type": "string", + "enum": [ + "None", + "ReportUnmergedMetricsValues" + ] + }, + { + "name": "MergeStrategySettings.Version", + "in": "query", + "description": "The strategy settings version.", + "required": false, + "type": "string" + }, + { + "name": "MergeStrategySettings.SelectMetrics", + "in": "query", + "description": "Defines how to select metrics when merging them together.", + "required": false, + "type": "string", + "enum": [ + "SelectAll", + "SelectByFirstValueSchema", + "SelectByFirstValueSchemaMergeNumericValues" + ] + } + ], + "responses": { + "200": { + "description": "The Run Metrics are returned successfully.", + "schema": { + "$ref": "#/definitions/PaginatedRunMetricList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "BatchEventCommand": { + "type": "object", + "properties": { + "events": { + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/BaseEvent" + } + } + } + }, + "BaseEvent": { + "description": "Base event is the envelope used to post event data to the Event controller", + "type": "object", + "properties": { + "timestamp": { + "format": "date-time", + "type": "string" + }, + "name": { + "type": "string" + }, + "data": { + "type": "object" + } + } + }, + "BatchEventCommandResult": { + "type": "object", + "properties": { + "errors": { + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/KeyValuePairBaseEventErrorResponse" + } + } + } + }, + "KeyValuePairBaseEventErrorResponse": { + "type": "object", + "properties": { + "key": { + "$ref": "#/definitions/BaseEvent", + "readOnly": true + }, + "value": { + "$ref": "#/definitions/ErrorResponse", + "readOnly": true + } + } + }, + "ErrorResponse": { + "description": "The error response.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/RootError", + "description": "The top level error that occurred." + }, + "correlation": { + "description": "Dictionary containing correlation details for the error.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "environment": { + "description": "The hosting environment.", + "type": "string" + }, + "location": { + "description": "The Azure region.", + "type": "string" + }, + "time": { + "format": "date-time", + "description": "The time in UTC.", + "type": "string" + } + } + }, + "RootError": { + "description": "The root error.", + "type": "object", + "properties": { + "code": { + "description": "The service-defined error code. Supported error codes: ServiceError, UserError, ValidationError, AzureStorageError, TransientError, RequestThrottled.", + "type": "string" + }, + "message": { + "description": "A human-readable representation of the error.", + "type": "string" + }, + "target": { + "description": "The target of the error (e.g., the name of the property in error).", + "type": "string" + }, + "details": { + "description": "The related errors that occurred during the request.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetails" + } + }, + "innerError": { + "$ref": "#/definitions/InnerErrorResponse", + "description": "A nested list of inner errors. When evaluating errors, clients MUST traverse through all of the nested “innerErrors” and choose the deepest one that they understand." + } + } + }, + "ErrorDetails": { + "description": "The error details.", + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string" + }, + "message": { + "description": "The error message.", + "type": "string" + }, + "target": { + "description": "The target of the error (e.g., the name of the property in error).", + "type": "string" + } + } + }, + "InnerErrorResponse": { + "description": "A nested structure of errors.", + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string" + }, + "innerError": { + "$ref": "#/definitions/InnerErrorResponse", + "description": "A nested list of inner errors. When evaluating errors, clients MUST traverse through all of the nested “innerErrors” and choose the deepest one that they understand." + } + } + }, + "Experiment": { + "type": "object", + "properties": { + "experimentId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "createdUtc": { + "format": "date-time", + "type": "string" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "archivedTime": { + "format": "date-time", + "type": "string" + }, + "latestCreatedRunCreatedUtc": { + "format": "date-time", + "type": "string" + }, + "latestCreatedRunId": { + "type": "string" + } + } + }, + "ModifyExperiment": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "archive": { + "type": "boolean" + } + } + }, + "QueryParams": { + "description": "The set of supported filters.", + "type": "object", + "properties": { + "filter": { + "description": "Allows for filtering the collection of resources.\r\nThe expression specified is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response.\r\nSee https://docs.microsoft.com/en-us/azure/search/query-odata-filter-orderby-syntax for details on the expression syntax.", + "type": "string" + }, + "continuationToken": { + "description": "The continuation token to use for getting the next set of resources.", + "type": "string" + }, + "orderBy": { + "description": "The comma separated list of resource properties to use for sorting the requested resources.\r\nOptionally, can be followed by either 'asc' or 'desc'", + "type": "string", + "example": "Color, Size desc" + }, + "top": { + "format": "int32", + "description": "The maximum number of items in the resource collection to be included in the result.\r\nIf not specified, all items are returned.", + "type": "integer" + } + } + }, + "PaginatedExperimentList": { + "description": "A paginated list of Experiments.", + "type": "object", + "properties": { + "value": { + "description": "An array of objects of type Experiment.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Experiment" + } + }, + "continuationToken": { + "description": "The token used in retrieving the next page. If null, there are no additional pages.", + "type": "string" + }, + "nextLink": { + "description": "The link to the next page constructed using the continuationToken. If null, there are no additional pages.", + "type": "string" + } + } + }, + "DeleteTagsCommand": { + "type": "object", + "properties": { + "tags": { + "uniqueItems": false, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "PaginatedRunList": { + "description": "A paginated list of Runs.", + "type": "object", + "properties": { + "value": { + "description": "An array of objects of type Run.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Run" + } + }, + "continuationToken": { + "description": "The token used in retrieving the next page. If null, there are no additional pages.", + "type": "string" + }, + "nextLink": { + "description": "The link to the next page constructed using the continuationToken. If null, there are no additional pages.", + "type": "string" + } + } + }, + "Run": { + "description": "The definition of a Run.", + "type": "object", + "properties": { + "runNumber": { + "format": "int32", + "type": "integer" + }, + "rootRunId": { + "type": "string" + }, + "experimentId": { + "description": "The Id of the experiment that created this run.", + "type": "string" + }, + "createdUtc": { + "format": "date-time", + "description": "The time the run was created in UTC.", + "type": "string" + }, + "createdBy": { + "$ref": "#/definitions/CreatedBy", + "description": "The details of the user who created the run." + }, + "userId": { + "description": "The Id of the user that created the run.", + "type": "string" + }, + "token": { + "description": "A token used for authenticating a run.", + "type": "string" + }, + "tokenExpiryTimeUtc": { + "format": "date-time", + "description": "The Token expiration time in UTC.", + "type": "string" + }, + "error": { + "$ref": "#/definitions/ErrorResponse", + "description": "If an error occurred during the run, this will be populated." + }, + "warnings": { + "description": "A list of warnings that occurred during the run.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/RunDetailsWarning" + } + }, + "revision": { + "format": "int32", + "type": "integer" + }, + "runId": { + "description": "The identifier for the run. Run IDs must be less than 256 characters and contain only alphanumeric characters with dashes and underscores.", + "type": "string" + }, + "parentRunId": { + "description": "The parent of the run if the run is hierarchical; otherwise, Null.", + "type": "string" + }, + "status": { + "description": "The status of the run. The Status string value maps to the RunStatus Enum.", + "type": "string" + }, + "startTimeUtc": { + "format": "date-time", + "description": "The start time of the run in UTC.", + "type": "string" + }, + "endTimeUtc": { + "format": "date-time", + "description": "The end time of the run in UTC.", + "type": "string" + }, + "heartbeatEnabled": { + "type": "boolean" + }, + "options": { + "$ref": "#/definitions/RunOptions" + }, + "name": { + "type": "string" + }, + "dataContainerId": { + "type": "string" + }, + "description": { + "type": "string" + }, + "hidden": { + "type": "boolean" + }, + "runType": { + "type": "string" + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "scriptName": { + "type": "string" + }, + "target": { + "type": "string" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "runDefinition": { + "type": "object" + }, + "createdFrom": { + "$ref": "#/definitions/CreatedFrom" + }, + "cancelUri": { + "type": "string" + }, + "diagnosticsUri": { + "type": "string" + } + } + }, + "CreatedBy": { + "type": "object", + "properties": { + "userObjectId": { + "description": "A user or service principal's object ID.\r\nThis is PII and should never be logged.", + "type": "string" + }, + "userTenantId": { + "description": "A user or service principal's tenant ID.", + "type": "string" + }, + "userName": { + "description": "A user's full name or a service principal's app ID.\r\nThis is PII and should never be logged.", + "type": "string" + } + } + }, + "RunDetailsWarning": { + "type": "object", + "properties": { + "source": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "RunOptions": { + "type": "object", + "properties": { + "generateDataContainerIdIfNotSpecified": { + "type": "boolean" + } + } + }, + "CreatedFrom": { + "type": "object", + "properties": { + "type": { + "enum": [ + "Notebook" + ], + "type": "string", + "x-ms-enum": { + "name": "CreatedFromType", + "modelAsString": false + } + }, + "locationType": { + "enum": [ + "ArtifactId" + ], + "type": "string", + "x-ms-enum": { + "name": "CreatedFromLocationType", + "modelAsString": false + } + }, + "location": { + "type": "string" + } + } + }, + "RunDetails": { + "description": "The details of the run.", + "type": "object", + "properties": { + "runId": { + "description": "The identifier for the run.", + "type": "string" + }, + "target": { + "description": "The name of the compute target where the run is executed.", + "type": "string" + }, + "status": { + "description": "The status of the run. The Status string value maps to the RunStatus Enum.", + "type": "string" + }, + "parentRunId": { + "description": "The parent of the run if the run is hierarchical.", + "type": "string" + }, + "startTimeUtc": { + "format": "date-time", + "description": "The start time of the run in UTC.", + "type": "string" + }, + "endTimeUtc": { + "format": "date-time", + "description": "The end time of the run in UTC.", + "type": "string" + }, + "error": { + "$ref": "#/definitions/ErrorResponse", + "description": "If an error occurred during the run, this will be populated." + }, + "warnings": { + "description": "A list of warnings that occurred during the run.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/RunDetailsWarning" + } + }, + "tags": { + "description": "The tag dictionary for the run. Tags are mutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "description": "The properties dictionary for the run. Properties are immutable.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "runDefinition": { + "description": "The run definition specification.", + "type": "object" + }, + "logFiles": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "revision": { + "format": "int32", + "type": "integer" + } + } + }, + "BatchAddOrModifyRunRequest": { + "type": "object", + "properties": { + "runs": { + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/CreateRun" + } + } + } + }, + "CreateRun": { + "type": "object", + "properties": { + "runId": { + "description": "The identifier for the run. Run IDs must be less than 256 characters and contain only alphanumeric characters with dashes and underscores.", + "type": "string" + }, + "parentRunId": { + "description": "The parent of the run if the run is hierarchical; otherwise, Null.", + "type": "string" + }, + "status": { + "description": "The status of the run. The Status string value maps to the RunStatus Enum.", + "type": "string" + }, + "startTimeUtc": { + "format": "date-time", + "description": "The start time of the run in UTC.", + "type": "string" + }, + "endTimeUtc": { + "format": "date-time", + "description": "The end time of the run in UTC.", + "type": "string" + }, + "heartbeatEnabled": { + "type": "boolean" + }, + "options": { + "$ref": "#/definitions/RunOptions" + }, + "name": { + "type": "string" + }, + "dataContainerId": { + "type": "string" + }, + "description": { + "type": "string" + }, + "hidden": { + "type": "boolean" + }, + "runType": { + "type": "string" + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "scriptName": { + "type": "string" + }, + "target": { + "type": "string" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "runDefinition": { + "type": "object" + }, + "createdFrom": { + "$ref": "#/definitions/CreatedFrom" + }, + "cancelUri": { + "type": "string" + }, + "diagnosticsUri": { + "type": "string" + } + } + }, + "BatchAddOrModifyRunResult": { + "type": "object", + "properties": { + "runs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Run" + } + }, + "errors": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "PaginatedArtifactList": { + "description": "A paginated list of Artifacts.", + "type": "object", + "properties": { + "value": { + "description": "An array of objects of type Artifact.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Artifact" + } + }, + "continuationToken": { + "description": "The token used in retrieving the next page. If null, there are no additional pages.", + "type": "string" + }, + "nextLink": { + "description": "The link to the next page constructed using the continuationToken. If null, there are no additional pages.", + "type": "string" + } + } + }, + "Artifact": { + "description": "Details of an Artifact.", + "required": [ + "origin", + "container", + "path" + ], + "type": "object", + "properties": { + "artifactId": { + "description": "The identifier of an Artifact. Format of ArtifactId - {Origin}/{Container}/{Path}.", + "type": "string" + }, + "origin": { + "description": "The origin of the Artifact creation request. Available origins are 'ExperimentRun', 'LocalUpload', 'WebUpload', 'Dataset' and 'Unknown'.", + "type": "string" + }, + "container": { + "description": "The name of container. Artifacts can be grouped by container.", + "type": "string" + }, + "path": { + "description": "The path to the Artifact in a container.", + "type": "string" + }, + "etag": { + "description": "The Etag of the Artifact.", + "type": "string", + "readOnly": true + }, + "createdTime": { + "format": "date-time", + "description": "The Date and Time at which the Artifact is created. The DateTime is in UTC.", + "type": "string", + "readOnly": true + }, + "dataPath": { + "$ref": "#/definitions/DataPath" + } + } + }, + "DataPath": { + "type": "object", + "properties": { + "dataStoreName": { + "type": "string" + }, + "relativePath": { + "type": "string" + }, + "sqlDataPath": { + "$ref": "#/definitions/SqlDataPath" + } + } + }, + "SqlDataPath": { + "type": "object", + "properties": { + "sqlTableName": { + "type": "string" + }, + "sqlQuery": { + "type": "string" + }, + "sqlStoredProcedureName": { + "type": "string" + }, + "sqlStoredProcedureParams": { + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/StoredProcedureParameter" + } + } + } + }, + "StoredProcedureParameter": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "type": { + "enum": [ + "String", + "Int", + "Decimal", + "Guid", + "Boolean", + "Date" + ], + "type": "string", + "x-ms-enum": { + "name": "StoredProcedureParameterType", + "modelAsString": false + } + } + } + }, + "ArtifactContentInformation": { + "description": "Details of an Artifact Content Information.", + "type": "object", + "properties": { + "contentUri": { + "description": "The URI of the content.", + "type": "string" + }, + "origin": { + "description": "The origin of the Artifact creation request. Available origins are 'ExperimentRun', 'LocalUpload', 'WebUpload', 'Dataset', 'ComputeRecord', 'Metric', and 'Unknown'.", + "type": "string" + }, + "container": { + "description": "The name of container. Artifacts can be grouped by container.", + "type": "string" + }, + "path": { + "description": "The path to the Artifact in a container.", + "type": "string" + } + } + }, + "PaginatedArtifactContentInformationList": { + "description": "A paginated list of ArtifactContentInformations.", + "type": "object", + "properties": { + "value": { + "description": "An array of objects of type ArtifactContentInformation.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/ArtifactContentInformation" + } + }, + "continuationToken": { + "description": "The token used in retrieving the next page. If null, there are no additional pages.", + "type": "string" + }, + "nextLink": { + "description": "The link to the next page constructed using the continuationToken. If null, there are no additional pages.", + "type": "string" + } + } + }, + "ArtifactPathList": { + "description": "Contains list of Artifact Paths.", + "required": [ + "paths" + ], + "type": "object", + "properties": { + "paths": { + "description": "List of Artifact Paths.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/ArtifactPath" + } + } + } + }, + "ArtifactPath": { + "description": "Details of an Artifact Path.", + "required": [ + "path" + ], + "type": "object", + "properties": { + "path": { + "description": "The path to the Artifact in a container.", + "type": "string" + } + } + }, + "BatchArtifactContentInformationResult": { + "description": "Results of the Batch Artifact Content Information request.", + "type": "object", + "properties": { + "artifacts": { + "description": "Artifact details of the Artifact Ids requested.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Artifact" + } + }, + "artifactContentInformation": { + "description": "Artifact Content Information details of the Artifact Ids requested.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ArtifactContentInformation" + } + }, + "errors": { + "description": "Errors occurred while fetching the requested Artifact Ids.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "Metric": { + "type": "object", + "properties": { + "metricId": { + "format": "uuid", + "type": "string" + }, + "dataContainerId": { + "type": "string" + }, + "metricType": { + "type": "string" + }, + "createdUtc": { + "format": "date-time", + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "numCells": { + "format": "int32", + "type": "integer" + }, + "dataLocation": { + "type": "string" + }, + "cells": { + "uniqueItems": false, + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + }, + "schema": { + "$ref": "#/definitions/MetricSchema" + } + } + }, + "MetricSchema": { + "type": "object", + "properties": { + "numProperties": { + "format": "int32", + "type": "integer" + }, + "properties": { + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/MetricSchemaProperty" + } + } + } + }, + "MetricSchemaProperty": { + "type": "object", + "properties": { + "propertyId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "BatchMetric": { + "type": "object", + "properties": { + "values": { + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/Metric" + } + } + } + }, + "RunMetric": { + "type": "object", + "properties": { + "runId": { + "type": "string" + }, + "metricId": { + "format": "uuid", + "type": "string" + }, + "dataContainerId": { + "type": "string" + }, + "metricType": { + "type": "string" + }, + "createdUtc": { + "format": "date-time", + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "numCells": { + "format": "int32", + "type": "integer" + }, + "dataLocation": { + "type": "string" + }, + "cells": { + "uniqueItems": false, + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + }, + "schema": { + "$ref": "#/definitions/MetricSchema" + } + } + }, + "PaginatedRunMetricList": { + "description": "A paginated list of RunMetrics.", + "type": "object", + "properties": { + "value": { + "description": "An array of objects of type RunMetric.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/RunMetric" + } + }, + "continuationToken": { + "description": "The token used in retrieving the next page. If null, there are no additional pages.", + "type": "string" + }, + "nextLink": { + "description": "The link to the next page constructed using the continuationToken. If null, there are no additional pages.", + "type": "string" + } + } + } + }, + "parameters": { + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "The Azure Subscription ID.", + "required": true, + "type": "string", + "format": "uuid", + "x-ms-parameter-location": "method" + }, + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The Name of the resource group in which the workspace is located.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "workspaceNameParameter": { + "name": "workspaceName", + "in": "path", + "description": "The name of the workspace.", + "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" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "tags": [] +} diff --git a/specification/machinelearningservices/data-plane/readme.md b/specification/machinelearningservices/data-plane/readme.md new file mode 100644 index 000000000000..3da680e4ba65 --- /dev/null +++ b/specification/machinelearningservices/data-plane/readme.md @@ -0,0 +1,135 @@ +# AzureMachineLearning + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for AzureMachineLearning. + +--- +## Getting Started +To build the SDK for AzureMachineLearning, 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 AzureMachineLearning API. + +``` yaml +title: Azure Machine Learning Service +description: These APIs allow end users to manage Azure Machine Learning Services. +openapi-type: data-plane +tag: package-2019-08-preview +use-internal-constructors: true +add-credentials: true +``` + +## Suppression + +``` yaml +directive: + - suppress: AvoidNestedProperties + reason: Client defined properties dictionaries should not be flattened. + - suppress: GuidUsage + reason: Existing properties; cannot change without breaking API + - suppress: DeleteMustNotHaveRequestBody + reason: Existing API for batch deletion + - suppress: LROStatusCodesReturnTypeSchema + reason: Not a Long Running Operation + - from: hyperdrive.json + suppress: DefinitionsPropertiesNamesCamelCase + reason: Existing service; would be a breaking change +``` + +### Tag: package-2019-08-preview + +These settings apply only when `--tag=package-2019-08-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2019-08-preview' +input-file: + - Microsoft.MachineLearningServices/preview/2019-08-01/execution.json + - Microsoft.MachineLearningServices/preview/2019-08-01/modelManagement.json + - Microsoft.MachineLearningServices/preview/2019-08-01/runHistory.json + - Microsoft.MachineLearningServices/preview/2019-08-01/datastore.json + - Microsoft.MachineLearningServices/preview/2019-08-01/artifact.json + - Microsoft.MachineLearningServices/preview/2019-08-01/hyperdrive.json +``` + + +--- +# 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.MachineLearning.Services + output-folder: $(csharp-sdks-folder)/MachineLearning/Services/Generated + clear-output-folder: true +``` + + +## Python + +Python generation is intentionally disabled. Please use the published Python package for Azure Machine Learning on PyPi. + + +## 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.machinelearning.services + license-header: MICROSOFT_MIT_NO_CODEGEN + output-folder: $(azure-libraries-for-java-folder)/azure-machinelearning-services +``` + +## 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.MachineLearningServices/preview/2019-08-01/execution.json + - $(this-folder)/Microsoft.MachineLearningServices/preview/2019-08-01/modelManagement.json + - $(this-folder)/Microsoft.MachineLearningServices/preview/2019-08-01/runHistory.json + - $(this-folder)/Microsoft.MachineLearningServices/preview/2019-08-01/datastore.json + - $(this-folder)/Microsoft.MachineLearningServices/preview/2019-08-01/artifact.json + - $(this-folder)/Microsoft.MachineLearningServices/preview/2019-08-01/hyperdrive.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/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2018-11-19/examples/ListVMSizesResult.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2018-11-19/examples/ListVMSizesResult.json index a5220ca132a4..cedabe460a02 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2018-11-19/examples/ListVMSizesResult.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2018-11-19/examples/ListVMSizesResult.json @@ -452,4 +452,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2018-11-19/examples/patchAmlCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2018-11-19/examples/patchAmlCompute.json index 0c03d1d86d02..082d445ec9f9 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2018-11-19/examples/patchAmlCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2018-11-19/examples/patchAmlCompute.json @@ -1,36 +1,36 @@ { + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "computeName": "compute123", + "api-version": "2018-11-19", "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "computeName": "compute123", - "api-version": "2018-11-19", - "parameters": { - "properties": { - "scaleSettings": { - "maxNodeCount": 4, - "minNodeCount": 4, - "nodeIdleTimeBeforeScaleDown": "PT5M" - } - } + "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..." - } + } + } + }, + "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/stable/2018-11-19/machineLearningServices.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json index 844d8039e251..d7f0af3f304d 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json @@ -819,6 +819,7 @@ } }, "x-ms-pageable": { + "itemName": "nodes", "nextLinkName": "nextLink" }, "x-ms-examples": { @@ -1142,7 +1143,7 @@ "description": "The Usage Names." }, "Usage": { - "type":"object", + "type": "object", "properties": { "unit": { "readOnly": true, diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/ListVMSizesResult.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/ListVMSizesResult.json index a5220ca132a4..cedabe460a02 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/ListVMSizesResult.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/ListVMSizesResult.json @@ -452,4 +452,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createBasicAKSCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createBasicAKSCompute.json index 152922e0b3ce..ee48dd333d17 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createBasicAKSCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createBasicAKSCompute.json @@ -1,44 +1,44 @@ { + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "computeName": "compute123", + "api-version": "2019-05-01", "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "computeName": "compute123", - "api-version": "2019-05-01", - "parameters": { - "location": "eastus", - "properties": { - "computeType": "AKS" - } + "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" } + } }, - "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..." - } + "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..." + } } -} \ No newline at end of file + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createBasicAmlCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createBasicAmlCompute.json index f5d3e81e7272..d6ba80c357d8 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createBasicAmlCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createBasicAmlCompute.json @@ -1,53 +1,53 @@ { + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "computeName": "compute123", + "api-version": "2019-05-01", "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "computeName": "compute123", - "api-version": "2019-05-01", - "parameters": { - "location": "eastus", - "properties": { - "computeType": "AmlCompute", - "properties": { - "vmSize": "STANDARD_NC6", - "vmPriority": "Dedicated", - "scaleSettings": { - "maxNodeCount": 1, - "minNodeCount": 0, - "nodeIdleTimeBeforeScaleDown": "PT5M" - } - } - } + "location": "eastus", + "properties": { + "computeType": "AmlCompute", + "properties": { + "vmSize": "STANDARD_NC6", + "vmPriority": "Dedicated", + "scaleSettings": { + "maxNodeCount": 1, + "minNodeCount": 0, + "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": "eastus", + "properties": { + "computeType": "AmlCompute", + "provisioningState": "Creating" + } + } }, - "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..." - } + "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..." + } } -} \ No newline at end of file + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createBasicDataFactoryCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createBasicDataFactoryCompute.json index fce2f7e27857..b201da715bed 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createBasicDataFactoryCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createBasicDataFactoryCompute.json @@ -1,44 +1,44 @@ { + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "computeName": "compute123", + "api-version": "2019-05-01", "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "computeName": "compute123", - "api-version": "2019-05-01", - "parameters": { - "location": "eastus", - "properties": { - "computeType": "DataFactory" - } + "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" } + } }, - "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..." - } + "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..." + } } -} \ No newline at end of file + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createWorkspace.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createWorkspace.json index 850b79a91c09..1aab6c1ec2fb 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createWorkspace.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/createWorkspace.json @@ -1,57 +1,57 @@ { + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "workspace-1234", + "workspaceName": "testworkspace", + "api-version": "2019-05-01", "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "workspace-1234", - "workspaceName": "testworkspace", - "api-version": "2019-05-01", - "parameters": { - "location": "eastus2euap", - "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" - } + "location": "eastus2euap", + "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" + } + } + }, + "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", + "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" } + } }, - "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", - "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" - } - } - }, - "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", - "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" - } - } + "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", + "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" } } -} \ No newline at end of file + } + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/deleteCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/deleteCompute.json index dddf6bb5a28f..54f2556dd473 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/deleteCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/deleteCompute.json @@ -1,19 +1,19 @@ { - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "computeName": "compute123", - "api-version": "2019-05-01", - "underlyingResourceAction": "Delete" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus...", - "Location": "https://management.azure.com/subscriptions/...pathToOperationResult..." - } - } + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "computeName": "compute123", + "api-version": "2019-05-01", + "underlyingResourceAction": "Delete" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus...", + "Location": "https://management.azure.com/subscriptions/...pathToOperationResult..." + } } -} \ No newline at end of file + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/deleteWorkspace.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/deleteWorkspace.json index d80ac27c824d..690c28f0d699 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/deleteWorkspace.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/deleteWorkspace.json @@ -1,12 +1,12 @@ { - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "workspace-1234", - "workspaceName": "testworkspace", - "api-version": "2019-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "workspace-1234", + "workspaceName": "testworkspace", + "api-version": "2019-05-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getAKSCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getAKSCompute.json index 85fc45b5a2fa..f934ecce5a6d 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getAKSCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getAKSCompute.json @@ -1,25 +1,25 @@ { - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "computeName": "compute123", - "api-version": "2019-05-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" - } - } + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "computeName": "compute123", + "api-version": "2019-05-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" } + } } -} \ No newline at end of file + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getAmlCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getAmlCompute.json index 17af049850b9..b90f0bc77352 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getAmlCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getAmlCompute.json @@ -1,48 +1,48 @@ { - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "computeName": "compute123", - "api-version": "2019-05-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" - }, - "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 - } - } - } + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "computeName": "compute123", + "api-version": "2019-05-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" + }, + "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 } + } } + } } -} \ No newline at end of file + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getComputes.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getComputes.json index cefbea43cf28..d81e461cbd99 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getComputes.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getComputes.json @@ -1,41 +1,41 @@ { - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "api-version": "2019-05-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" + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "api-version": "2019-05-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" + } } -} \ No newline at end of file + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getWorkspace.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getWorkspace.json index 975aaf2127d9..1f337f997011 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getWorkspace.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getWorkspace.json @@ -1,28 +1,28 @@ { - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "workspace-1234", - "workspaceName": "testworkspace", - "api-version": "2019-05-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", - "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" - } - } + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "workspace-1234", + "workspaceName": "testworkspace", + "api-version": "2019-05-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", + "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" } } -} \ No newline at end of file + } + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getWorkspacesByResourceGroup.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getWorkspacesByResourceGroup.json index f7795d415bb3..2372abce3514 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getWorkspacesByResourceGroup.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getWorkspacesByResourceGroup.json @@ -1,48 +1,48 @@ { - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "workspace-1234", - "api-version": "2019-05-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", - "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", - "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" + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "workspace-1234", + "api-version": "2019-05-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", + "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", + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getWorkspacesBySubscription.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getWorkspacesBySubscription.json index 19b842664298..f5773ab7679b 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getWorkspacesBySubscription.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/getWorkspacesBySubscription.json @@ -1,47 +1,47 @@ { - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "api-version": "2019-05-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", - "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", - "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" + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "api-version": "2019-05-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", + "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", + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/listKeysAKSCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/listKeysAKSCompute.json index f8ea09f00174..96829acd2c49 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/listKeysAKSCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/listKeysAKSCompute.json @@ -1,19 +1,19 @@ { - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "computeName": "compute123", - "api-version": "2019-05-01" - }, - "responses": { - "200": { - "body": { - "computeType": "AKS", - "userKubeConfig": "user kube config...", - "adminKubeConfig": "admin kube config...", - "imagePullSecretName": "the image pull secret name" - } - } + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "computeName": "compute123", + "api-version": "2019-05-01" + }, + "responses": { + "200": { + "body": { + "computeType": "AKS", + "userKubeConfig": "user kube config...", + "adminKubeConfig": "admin kube config...", + "imagePullSecretName": "the image pull secret name" + } } -} \ No newline at end of file + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/listWorkspaceKeys.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/listWorkspaceKeys.json index 4605c2b7285e..94825e385523 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/listWorkspaceKeys.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/listWorkspaceKeys.json @@ -1,32 +1,31 @@ { - "parameters": { - "subscriptionId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "api-version": "2019-05-01" - }, - "responses": { - "200": { - "body": + "parameters": { + "subscriptionId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "api-version": "2019-05-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": [ { - "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" - } - ] - } + "name": "password", + "value": "vBvVhYgAGtUSewVCUv3w95p4/q5Yrsnw" + }, + { + "name": "password2", + "value": "0KARRQoQHSUq1yViPWg7YFernOS=Ic/t" } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/patchAmlCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/patchAmlCompute.json index a94b47b24dd1..b6a9b2c410bc 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/patchAmlCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/patchAmlCompute.json @@ -1,36 +1,36 @@ { "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "computeName": "compute123", - "api-version": "2019-05-01", - "parameters": { - "properties": { - "scaleSettings": { - "maxNodeCount": 4, - "minNodeCount": 4, - "nodeIdleTimeBeforeScaleDown": "PT5M" - } - } + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "computeName": "compute123", + "api-version": "2019-05-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..." - } + "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..." } + } } -} \ No newline at end of file +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/resyncWorkspaceKeys.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/resyncWorkspaceKeys.json index 1435064d9874..67bcfb233275 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/resyncWorkspaceKeys.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/resyncWorkspaceKeys.json @@ -1,13 +1,11 @@ { - "parameters": { - "subscriptionId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "api-version": "2019-05-01" - }, - "responses": { - "200": { - - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "api-version": "2019-05-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/updateAKSCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/updateAKSCompute.json index 581bd410245d..01f0f9684575 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/updateAKSCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/updateAKSCompute.json @@ -1,54 +1,54 @@ { + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "computeName": "compute123", + "api-version": "2019-05-01", "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "computeName": "compute123", - "api-version": "2019-05-01", - "parameters": { - "id": "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", - "properties": { - "agentCount": 4 - } - } + "id": "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", + "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" + } + } }, - "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..." - } + "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..." + } } -} \ No newline at end of file + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/updateAmlCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/updateAmlCompute.json index 6f014c0e5c6e..bcb7cf3c8c31 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/updateAmlCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/updateAmlCompute.json @@ -1,57 +1,57 @@ { + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "computeName": "compute123", + "api-version": "2019-05-01", "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "testrg123", - "workspaceName": "workspaces123", - "computeName": "compute123", - "api-version": "2019-05-01", - "parameters": { - "location": "eastus", - "properties": { - "computeType": "AmlCompute", - "properties": { - "description": "some compute", - "computeType": "AmlCompute", - "properties": { - "scaleSettings": { - "maxNodeCount": 4, - "minNodeCount": 4, - "nodeIdleTimeBeforeScaleDown": "PT5M" - } - } - } + "location": "eastus", + "properties": { + "computeType": "AmlCompute", + "properties": { + "description": "some compute", + "computeType": "AmlCompute", + "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" + } + } }, - "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..." - } + "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..." + } } -} \ No newline at end of file + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/updateWorkspace.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/updateWorkspace.json index b3c61f6b0910..ed1f3b938cef 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/updateWorkspace.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/examples/updateWorkspace.json @@ -1,34 +1,34 @@ { + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "workspace-1234", + "workspaceName": "testworkspace", + "api-version": "2019-05-01", "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "workspace-1234", - "workspaceName": "testworkspace", - "api-version": "2019-05-01", - "parameters": { - "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", - "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" - } - } + "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", + "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" } } -} \ No newline at end of file + } + } +} diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/machineLearningServices.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/machineLearningServices.json index 21694eeadb20..750aeedeb7b6 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/machineLearningServices.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2019-05-01/machineLearningServices.json @@ -73,7 +73,9 @@ "description": "Gets the properties of the specified machine learning workspace.", "operationId": "Workspaces_Get", "x-ms-examples": { - "Get Workspace": { "$ref": "./examples/getWorkspace.json" } + "Get Workspace": { + "$ref": "./examples/getWorkspace.json" + } }, "parameters": [ { @@ -111,7 +113,9 @@ "description": "Creates or updates a workspace with the specified parameters.", "operationId": "Workspaces_CreateOrUpdate", "x-ms-examples": { - "Create Workspace": { "$ref": "./examples/createWorkspace.json" } + "Create Workspace": { + "$ref": "./examples/createWorkspace.json" + } }, "parameters": [ { @@ -164,7 +168,9 @@ "description": "Deletes a machine learning workspace.", "operationId": "Workspaces_Delete", "x-ms-examples": { - "Delete Workspace": { "$ref": "./examples/deleteWorkspace.json" } + "Delete Workspace": { + "$ref": "./examples/deleteWorkspace.json" + } }, "parameters": [ { @@ -202,7 +208,9 @@ "description": "Updates a machine learning workspace with the specified parameters.", "operationId": "Workspaces_Update", "x-ms-examples": { - "Update Workspace": { "$ref": "./examples/updateWorkspace.json" } + "Update Workspace": { + "$ref": "./examples/updateWorkspace.json" + } }, "parameters": [ { @@ -251,7 +259,9 @@ "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" } + "Get Workspaces by Resource Group": { + "$ref": "./examples/getWorkspacesByResourceGroup.json" + } }, "parameters": [ { @@ -294,7 +304,9 @@ "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" } + "List Workspace Keys": { + "$ref": "./examples/listWorkspaceKeys.json" + } }, "parameters": [ { @@ -334,7 +346,9 @@ "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" } + "Resync Workspace Keys": { + "$ref": "./examples/resyncWorkspaceKeys.json" + } }, "parameters": [ { @@ -374,6 +388,9 @@ { "$ref": "#/parameters/APIVersionParameter" }, + { + "$ref": "#/parameters/ExpandChildrenParameter" + }, { "$ref": "#/parameters/SubscriptionIdParameter" }, @@ -450,7 +467,9 @@ "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" } + "Get Workspaces by subscription": { + "$ref": "./examples/getWorkspacesBySubscription.json" + } }, "parameters": [ { @@ -494,7 +513,9 @@ "operationId": "MachineLearningCompute_ListByWorkspace", "description": "Gets computes in specified workspace.", "x-ms-examples": { - "Get Computes": { "$ref": "./examples/getComputes.json" } + "Get Computes": { + "$ref": "./examples/getComputes.json" + } }, "parameters": [ { @@ -538,8 +559,12 @@ "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" } + "Get a AKS Compute": { + "$ref": "./examples/getAKSCompute.json" + }, + "Get a AML Compute": { + "$ref": "./examples/getAmlCompute.json" + } }, "parameters": [ { @@ -582,11 +607,21 @@ "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" } + "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": [ { @@ -644,7 +679,9 @@ "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" } + "Update a AmlCompute Compute": { + "$ref": "./examples/patchAmlCompute.json" + } }, "parameters": [ { @@ -696,7 +733,9 @@ "description": "Deletes specified Machine Learning compute.", "x-ms-long-running-operation": true, "x-ms-examples": { - "Delete Compute": { "$ref": "./examples/deleteCompute.json" } + "Delete Compute": { + "$ref": "./examples/deleteCompute.json" + } }, "parameters": [ { @@ -798,7 +837,9 @@ "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" } + "List AKS Compute Keys": { + "$ref": "./examples/listKeysAKSCompute.json" + } }, "parameters": [ { @@ -889,6 +930,14 @@ "description": "Version of Azure Machine Learning resource provider API.", "required": true }, + "ExpandChildrenParameter": { + "in": "query", + "name": "expandChildren", + "type": "string", + "description": "Specifies if detailed usages of child resources are required.", + "required": false, + "x-ms-parameter-location": "method" + }, "PaginationParameter": { "in": "query", "name": "$skiptoken", @@ -930,7 +979,7 @@ "modelAsString": true }, "x-ms-parameter-location": "method" -} + } }, "definitions": { "Operation": { @@ -1101,7 +1150,7 @@ "description": "The Usage Names." }, "Usage": { - "type":"object", + "type": "object", "properties": { "id": { "readOnly": true, @@ -1403,7 +1452,7 @@ }, { "type": "object", - "properties":{ + "properties": { "properties": { "description": "Compute properties", "$ref": "#/definitions/Compute" @@ -1569,9 +1618,9 @@ "$ref": "#/definitions/UserAccountCredentials" }, "subnet": { - "title": "Subnet.", - "description": "Virtual network subnet resource ID the compute nodes belong to.", - "$ref": "#/definitions/ResourceId" + "title": "Subnet.", + "description": "Virtual network subnet resource ID the compute nodes belong to.", + "$ref": "#/definitions/ResourceId" }, "allocationState": { "type": "string", @@ -1600,7 +1649,7 @@ "description": "Collection of errors encountered by various compute nodes during node setup.", "type": "array", "items": { - "$ref": "#/definitions/MachineLearningServiceError" + "$ref": "#/definitions/MachineLearningServiceError" } }, "currentNodeCount": { @@ -2189,4 +2238,4 @@ ] } } -} \ No newline at end of file +} diff --git a/specification/machinelearningservices/resource-manager/readme.md b/specification/machinelearningservices/resource-manager/readme.md index 9206e90cea44..2b0d4d220ae7 100644 --- a/specification/machinelearningservices/resource-manager/readme.md +++ b/specification/machinelearningservices/resource-manager/readme.md @@ -65,6 +65,7 @@ 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 @@ -82,37 +83,10 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.MachineLearningServices - output-folder: $(csharp-sdks-folder)/MachineLearningServices/Management.MachineLearningServices/Generated + output-folder: $(csharp-sdks-folder)/machinelearningservices/Microsoft.Azure.Management.MachineLearningServices/src/Generated 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.machinelearningservices - package-name: azure-mgmt-machinelearningservices - package-version: 0.1.0 - clear-output-folder: true -``` -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices -``` -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/azure-mgmt-machinelearningservices -``` ## Go @@ -179,3 +153,30 @@ java: regenerate-manager: true generate-interface: 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)/Microsoft.MachineLearningServices/stable/2019-05-01/machineLearningServices.json + - $(this-folder)/Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json + - $(this-folder)/Microsoft.MachineLearningServices/preview/2018-03-01-preview/machineLearningServices.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/machinelearningservices/resource-manager/readme.python.md b/specification/machinelearningservices/resource-manager/readme.python.md new file mode 100644 index 000000000000..1adbed6eb50e --- /dev/null +++ b/specification/machinelearningservices/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.machinelearningservices + package-name: azure-mgmt-machinelearningservices + 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-machinelearningservices/azure/mgmt/machinelearningservices +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/machinelearning/azure-mgmt-machinelearningservices +``` diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksDelete.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksDelete.json new file mode 100644 index 000000000000..11b5b3e89563 --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksDelete.json @@ -0,0 +1,14 @@ +{ + "title": "Delete Managed Network", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "managedNetworkName": "myManagedNetwork" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksGet.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksGet.json new file mode 100644 index 000000000000..46f750fc191d --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksGet.json @@ -0,0 +1,62 @@ +{ + "title": "Get Managed Network", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "managedNetworkName": "myManagedNetwork" + }, + "responses": { + "200": { + "body": { + "name": "myManagedNetwork", + "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork", + "type": "Microsoft.ManagedNetwork/managedNetworks", + "tags": {}, + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "etag": "sadf-asdf-asdf-asdf", + "scope": { + "managementGroups": [ + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000" + }, + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0002-0000-0000-000000000000" + } + ], + "subscriptions": [ + { + "id": "subscriptionA" + }, + { + "id": "subscriptionB" + } + ], + "virtualNetworks": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB" + } + ], + "subnets": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetB" + } + ] + }, + "connectivity": { + "groups": [], + "peerings": [] + } + } + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksListByResourceGroup.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksListByResourceGroup.json new file mode 100644 index 000000000000..eac86d4ff8bb --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksListByResourceGroup.json @@ -0,0 +1,66 @@ +{ + "title": "Get Managed Network", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myManagedNetwork", + "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork", + "type": "Microsoft.ManagedNetwork/managedNetworks", + "tags": {}, + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "etag": "sadf-asdf-asdf-asdf", + "scope": { + "managementGroups": [ + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000" + }, + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0002-0000-0000-000000000000" + } + ], + "subscriptions": [ + { + "id": "subscriptionA" + }, + { + "id": "subscriptionB" + } + ], + "virtualNetworks": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB" + } + ], + "subnets": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetB" + } + ] + }, + "connectivity": { + "groups": [], + "peerings": [] + } + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks?api-version=2019-06-01$skipToken=10" + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksListBySubscription.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksListBySubscription.json new file mode 100644 index 000000000000..be6cdeb0bad1 --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksListBySubscription.json @@ -0,0 +1,65 @@ +{ + "title": "Get Managed Network", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myManagedNetwork", + "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork", + "type": "Microsoft.ManagedNetwork/managedNetworks", + "tags": {}, + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "etag": "sadf-asdf-asdf-asdf", + "scope": { + "managementGroups": [ + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000" + }, + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0002-0000-0000-000000000000" + } + ], + "subscriptions": [ + { + "id": "subscriptionA" + }, + { + "id": "subscriptionB" + } + ], + "virtualNetworks": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB" + } + ], + "subnets": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetB" + } + ] + }, + "connectivity": { + "groups": [], + "peerings": [] + } + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks?api-version=2019-06-01$skipToken=10" + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksPatch.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksPatch.json new file mode 100644 index 000000000000..e1c562701091 --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksPatch.json @@ -0,0 +1,116 @@ +{ + "title": "Create/Update Managed Network", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "managedNetworkName": "myManagedNetwork", + "parameters": { + "tags": {} + } + }, + "responses": { + "200": { + "body": { + "name": "myManagedNetwork", + "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork", + "type": "Microsoft.ManagedNetwork/managedNetworks", + "tags": {}, + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "etag": "sadf-asdf-asdf-asdf", + "scope": { + "managementGroups": [ + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000" + }, + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0002-0000-0000-000000000000" + } + ], + "subscriptions": [ + { + "id": "subscriptionA" + }, + { + "id": "subscriptionB" + } + ], + "virtualNetworks": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB" + } + ], + "subnets": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetB" + } + ] + }, + "connectivity": { + "groups": [], + "peerings": [] + } + } + } + }, + "201": { + "body": { + "name": "myManagedNetwork", + "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork", + "type": "Microsoft.ManagedNetwork/managedNetworks", + "tags": {}, + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "etag": "sadf-asdf-asdf-asdf", + "scope": { + "managementGroups": [ + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000" + }, + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0002-0000-0000-000000000000" + } + ], + "subscriptions": [ + { + "id": "subscriptionA" + }, + { + "id": "subscriptionB" + } + ], + "virtualNetworks": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB" + } + ], + "subnets": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetB" + } + ] + }, + "connectivity": { + "groups": [], + "peerings": [] + } + } + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksPut.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksPut.json new file mode 100644 index 000000000000..084e5ebb2405 --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetwork/ManagedNetworksPut.json @@ -0,0 +1,153 @@ +{ + "title": "Create/Update Managed Network", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "managedNetworkName": "myManagedNetwork", + "managedNetwork": { + "tags": {}, + "location": "eastus", + "properties": { + "scope": { + "managementGroups": [ + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000" + }, + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0002-0000-0000-000000000000" + } + ], + "subscriptions": [ + { + "id": "subscriptionA" + }, + { + "id": "subscriptionB" + } + ], + "virtualNetworks": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB" + } + ], + "subnets": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetB" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "myManagedNetwork", + "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork", + "type": "Microsoft.ManagedNetwork/managedNetworks", + "tags": {}, + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "etag": "sadf-asdf-asdf-asdf", + "scope": { + "managementGroups": [ + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000" + }, + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0002-0000-0000-000000000000" + } + ], + "subscriptions": [ + { + "id": "subscriptionA" + }, + { + "id": "subscriptionB" + } + ], + "virtualNetworks": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB" + } + ], + "subnets": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetB" + } + ] + }, + "connectivity": { + "groups": [], + "peerings": [] + } + } + } + }, + "201": { + "body": { + "name": "myManagedNetwork", + "id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork", + "type": "Microsoft.ManagedNetwork/managedNetworks", + "tags": {}, + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "etag": "sadf-asdf-asdf-asdf", + "scope": { + "managementGroups": [ + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000" + }, + { + "id": "providers/Microsoft.Management/managementGroups/20000000-0002-0000-0000-000000000000" + } + ], + "subscriptions": [ + { + "id": "subscriptionA" + }, + { + "id": "subscriptionB" + } + ], + "virtualNetworks": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB" + } + ], + "subnets": [ + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetA" + }, + { + "id": "subscriptions/subscriptionC/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetC/subnets/subnetB" + } + ] + }, + "connectivity": { + "groups": [], + "peerings": [] + } + } + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkGroup/ManagedNetworkGroupsDelete.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkGroup/ManagedNetworkGroupsDelete.json new file mode 100644 index 000000000000..bc71484ad16c --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkGroup/ManagedNetworkGroupsDelete.json @@ -0,0 +1,15 @@ +{ + "title": "Delete Managed Network Group", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "managedNetworkName": "myManagedNetwork", + "managedNetworkGroupName": "myManagedNetworkGroup1" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkGroup/ManagedNetworkGroupsGet.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkGroup/ManagedNetworkGroupsGet.json new file mode 100644 index 000000000000..a145cdb74f37 --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkGroup/ManagedNetworkGroupsGet.json @@ -0,0 +1,38 @@ +{ + "title": "Get Managed Network Group", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "managedNetworkName": "myManagedNetwork", + "managedNetworkGroupName": "myManagedNetworkGroup1" + }, + "responses": { + "200": { + "body": { + "name": "myManagedNetworkGroup1", + "id": "/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkGroups/myManagedNetworkGroup1", + "type": "Microsoft.ManagedNetwork/managedNetworkGroups", + "properties": { + "provisioningState": "Succeeded", + "etag": "asdf-asdf-asdf1", + "managementGroups": [], + "subscriptions": [], + "virtualNetworks": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA" + }, + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB" + } + ], + "subnets": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA/subnets/subnetA" + } + ] + } + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkGroup/ManagedNetworkGroupsListByManagedNetwork.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkGroup/ManagedNetworkGroupsListByManagedNetwork.json new file mode 100644 index 000000000000..dbbaf7ad1739 --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkGroup/ManagedNetworkGroupsListByManagedNetwork.json @@ -0,0 +1,42 @@ +{ + "title": "Get Managed Network Group", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "managedNetworkName": "myManagedNetwork" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myManagedNetworkGroup1", + "id": "/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkGroups/myManagedNetworkGroup1", + "type": "Microsoft.ManagedNetwork/managedNetworkGroups", + "properties": { + "provisioningState": "Succeeded", + "etag": "asdf-asdf-asdf1", + "managementGroups": [], + "subscriptions": [], + "virtualNetworks": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA" + }, + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB" + } + ], + "subnets": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA/subnets/subnetA" + } + ] + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkGroups?api-version=2019-06-01&$skipToken=10" + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkGroup/ManagedNetworkGroupsPut.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkGroup/ManagedNetworkGroupsPut.json new file mode 100644 index 000000000000..7c927ac6945f --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkGroup/ManagedNetworkGroupsPut.json @@ -0,0 +1,83 @@ +{ + "title": "Create/Update Managed Network Group", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "managedNetworkName": "myManagedNetwork", + "managedNetworkGroupName": "myManagedNetworkGroup1", + "managedNetworkGroup": { + "properties": { + "managementGroups": [], + "subscriptions": [], + "virtualNetworks": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA" + }, + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB" + } + ], + "subnets": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA/subnets/subnetA" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "myManagedNetworkGroup1", + "id": "/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkGroups/myManagedNetworkGroup1", + "type": "Microsoft.ManagedNetwork/managedNetworkGroups", + "properties": { + "provisioningState": "Succeeded", + "etag": "asdf-asdf-asdf1", + "managementGroups": [], + "subscriptions": [], + "virtualNetworks": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA" + }, + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB" + } + ], + "subnets": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA/subnets/subnetA" + } + ] + } + } + }, + "201": { + "body": { + "name": "myManagedNetworkGroup1", + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkGroups/myManagedNetworkGroup1", + "type": "Microsoft.ManagedNetwork/managedNetworkGroups", + "properties": { + "provisioningState": "Succeeded", + "etag": "asdf-asdf-asdf1", + "managementGroups": [], + "subscriptions": [], + "virtualNetworks": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA" + }, + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB" + } + ], + "subnets": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA/subnets/subnetA" + } + ] + } + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesDelete.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesDelete.json new file mode 100644 index 000000000000..fc081eb2399c --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesDelete.json @@ -0,0 +1,15 @@ +{ + "title": "Get Managed Network Peering Policy", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "managedNetworkName": "myManagedNetwork", + "managedNetworkPeeringPolicyName": "myHubAndSpoke" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesGet.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesGet.json new file mode 100644 index 000000000000..f7dabe223031 --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesGet.json @@ -0,0 +1,32 @@ +{ + "title": "Get Managed Network Peering Policy", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "managedNetworkName": "myManagedNetwork", + "managedNetworkPeeringPolicyName": "myHubAndSpoke" + }, + "responses": { + "200": { + "body": { + "name": "myHubAndSpoke", + "id": "/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkPeeringPolicies/myHubAndSpoke", + "type": "Microsoft.ManagedNetwork/peeringPolicies", + "properties": { + "provisioningState": "Succeeded", + "etag": "asdf-asdf-asdf2", + "peeringPolicyType": "HubAndSpokeTopology", + "hub": { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet" + }, + "spokes": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkGroups/myManagedNetworkGroup1" + } + ] + } + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesListByManagedNetwork.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesListByManagedNetwork.json new file mode 100644 index 000000000000..6934ff5c83e6 --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesListByManagedNetwork.json @@ -0,0 +1,36 @@ +{ + "title": "Get Managed Network Group", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "managedNetworkName": "myManagedNetwork" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myHubAndSpoke", + "id": "/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkPeeringPolicies/myHubAndSpoke", + "type": "Microsoft.ManagedNetwork/peeringPolicies", + "properties": { + "provisioningState": "Succeeded", + "etag": "asdf-asdf-asdf2", + "peeringPolicyType": "HubAndSpokeTopology", + "hub": { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet" + }, + "spokes": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkGroups/myManagedNetworkGroup1" + } + ] + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkPeeringPolicies?api-version=2019-06-01&$skipToken=10" + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesPut.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesPut.json new file mode 100644 index 000000000000..a09f56bd3de4 --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesPut.json @@ -0,0 +1,65 @@ +{ + "title": "Create/Update Managed Network Peering Policy", + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subscriptionA", + "resourceGroupName": "myResourceGroup", + "managedNetworkName": "myManagedNetwork", + "managedNetworkPeeringPolicyName": "myHubAndSpoke", + "managedNetworkPolicy": { + "properties": { + "peeringPolicyType": "HubAndSpokeTopology", + "hub": { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet" + }, + "spokes": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkGroups/myManagedNetworkGroup1" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "myHubAndSpoke", + "id": "/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkPeeringPolicies/myHubAndSpoke", + "type": "Microsoft.ManagedNetwork/peeringPolicies", + "properties": { + "provisioningState": "Succeeded", + "etag": "asdf-asdf-asdf2", + "peeringPolicyType": "HubAndSpokeTopology", + "hub": { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet" + }, + "spokes": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkGroups/myManagedNetworkGroup1" + } + ] + } + } + }, + "201": { + "body": { + "name": "myHubAndSpoke", + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkPeeringPolicies/myHubAndSpoke", + "type": "Microsoft.ManagedNetwork/peeringPolicies", + "properties": { + "provisioningState": "Succeeded", + "etag": "asdf-asdf-asdf2", + "peeringPolicyType": "HubAndSpokeTopology", + "hub": { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet" + }, + "spokes": [ + { + "id": "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkGroups/myManagedNetworkGroup1" + } + ] + } + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ScopeAssignment/ScopeAssignmentsDelete.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ScopeAssignment/ScopeAssignmentsDelete.json new file mode 100644 index 000000000000..f9c417947452 --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ScopeAssignment/ScopeAssignmentsDelete.json @@ -0,0 +1,11 @@ +{ + "title": "Create/Update Managed Network", + "parameters": { + "api-version": "2019-06-01", + "scope": "subscriptions/subscriptionC", + "scopeAssignmentName": "subscriptionCAssignment" + }, + "responses": { + "200": {} + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ScopeAssignment/ScopeAssignmentsGet.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ScopeAssignment/ScopeAssignmentsGet.json new file mode 100644 index 000000000000..0a80f8a74d2c --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ScopeAssignment/ScopeAssignmentsGet.json @@ -0,0 +1,20 @@ +{ + "title": "Create/Update Managed Network", + "parameters": { + "api-version": "2019-06-01", + "scope": "subscriptions/subscriptionC", + "scopeAssignmentName": "subscriptionCAssignment" + }, + "responses": { + "200": { + "body": { + "name": "subscriptionCAssignment", + "id": "subscriptions/subscriptionC/providers/Microsoft.ManagedNetwork/scopeAssignments/subscriptionCAssignment", + "type": "Microsoft.ManagedNetwork/scopeAssignment", + "properties": { + "assignedManagedNetwork": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork" + } + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ScopeAssignment/ScopeAssignmentsList.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ScopeAssignment/ScopeAssignmentsList.json new file mode 100644 index 000000000000..47daf72edb4c --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ScopeAssignment/ScopeAssignmentsList.json @@ -0,0 +1,26 @@ +{ + "title": "Create/Update Managed Network", + "parameters": { + "api-version": "2019-06-01", + "scope": "subscriptions/subscriptionC" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "subscriptionCAssignemnt", + "id": "subscriptions/subscriptionC/providers/Microsoft.ManagedNetwork/scopeAssignments/subscriptionCAssignment", + "type": "Microsoft.ManagedNetwork/scopeAssignment", + "properties": { + "provisioningState": "Succeeded", + "etag": "sadf-asdf-asdf-asdf", + "assignedManagedNetwork": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork" + } + } + ], + "nextLink": "{baseurl}/subscriptions/subscriptionC/providers/Microsoft.ManagedNetwork/scopeAssignments?api-version=2019-06-01&$skipToken=10" + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ScopeAssignment/ScopeAssignmentsPut.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ScopeAssignment/ScopeAssignmentsPut.json new file mode 100644 index 000000000000..9e346c1e37fa --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/examples/ScopeAssignment/ScopeAssignmentsPut.json @@ -0,0 +1,39 @@ +{ + "title": "Create/Update Managed Network", + "parameters": { + "api-version": "2019-06-01", + "scope": "subscriptions/subscriptionC", + "scopeAssignmentName": "subscriptionCAssignment", + "parameters": { + "properties": { + "assignedManagedNetwork": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork" + } + } + }, + "responses": { + "200": { + "body": { + "name": "subscriptionCAssignment", + "id": "subscriptions/subscriptionC/providers/Microsoft.ManagedNetwork/scopeAssignments/subscriptionCAssignment", + "type": "Microsoft.ManagedNetwork/scopeAssignment", + "properties": { + "provisioningState": "Succeeded", + "etag": "sadf-asdf-asdf-asdf", + "assignedManagedNetwork": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork" + } + } + }, + "201": { + "body": { + "name": "subscriptionCAssignment", + "id": "subscriptions/subscriptionC/providers/Microsoft.ManagedNetwork/scopeAssignments/subscriptionCAssignment", + "type": "Microsoft.ManagedNetwork/scopeAssignment", + "properties": { + "provisioningState": "Succeeded", + "etag": "sadf-asdf-asdf-asdf", + "assignedManagedNetwork": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork" + } + } + } + } +} diff --git a/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/managedNetwork.json b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/managedNetwork.json new file mode 100644 index 000000000000..661b8e6bddcb --- /dev/null +++ b/specification/managednetwork/resource-manager/Microsoft.ManagedNetwork/preview/2019-06-01-preview/managedNetwork.json @@ -0,0 +1,1561 @@ +{ + "swagger": "2.0", + "info": { + "title": "ManagedNetworkManagementClient", + "description": "The Microsoft Azure Managed Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to programmatically view, control, change, and monitor your entire Azure network centrally and with ease.", + "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.ManagedNetwork/managedNetworks/{managedNetworkName}": { + "get": { + "tags": [ + "ManagedNetworks" + ], + "operationId": "ManagedNetworks_Get", + "description": "The Get ManagedNetworks operation gets a Managed Network Resource, specified by the resource group and Managed Network name", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkNameParameter" + } + ], + "responses": { + "200": { + "description": "Get successful. The operation returns the specified Managed Network resource.", + "schema": { + "$ref": "#/definitions/ManagedNetwork" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ManagedNetworksGet": { + "$ref": "./examples/ManagedNetwork/ManagedNetworksGet.json" + } + } + }, + "put": { + "tags": [ + "ManagedNetworks" + ], + "operationId": "ManagedNetworks_CreateOrUpdate", + "description": "The Put ManagedNetworks operation creates/updates a Managed Network Resource, specified by resource group and Managed Network name", + "parameters": [ + { + "name": "managedNetwork", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedNetwork" + }, + "description": "Parameters supplied to the create/update a Managed Network Resource" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkNameParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Managed Network resource.", + "schema": { + "$ref": "#/definitions/ManagedNetwork" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Managed Network resource.", + "schema": { + "$ref": "#/definitions/ManagedNetwork" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ManagedNetworksPut": { + "$ref": "./examples/ManagedNetwork/ManagedNetworksPut.json" + } + } + }, + "delete": { + "tags": [ + "ManagedNetworks" + ], + "operationId": "ManagedNetworks_Delete", + "description": "The Delete ManagedNetworks operation deletes a Managed Network Resource, specified by the resource group and Managed Network name", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkNameParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ManagedNetworksDelete": { + "$ref": "./examples/ManagedNetwork/ManagedNetworksDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "ManagedNetworks" + ], + "operationId": "ManagedNetworks_Update", + "description": "Updates the specified Managed Network resource tags.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedNetworkUpdate" + }, + "description": "Parameters supplied to update application gateway tags and/or scope." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkNameParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the updated Managed Network resource.", + "schema": { + "$ref": "#/definitions/ManagedNetwork" + } + }, + "201": { + "description": "Update successful. The operation returns the updated Managed Network resource.", + "schema": { + "$ref": "#/definitions/ManagedNetwork" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ManagedNetworksPatch": { + "$ref": "./examples/ManagedNetwork/ManagedNetworksPatch.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.ManagedNetwork/managedNetworks": { + "get": { + "tags": [ + "ManagedNetworks" + ], + "operationId": "ManagedNetworks_ListByResourceGroup", + "description": "The ListByResourceGroup ManagedNetwork operation retrieves all the Managed Network resources in a resource group in a paginated format.", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ListPageSizeParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "Get successful. The operation returns all Managed Network resources under the specified resource group in a paginated format", + "schema": { + "$ref": "#/definitions/ManagedNetworkListResult" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ManagedNetworksListByResourceGroup": { + "$ref": "./examples/ManagedNetwork/ManagedNetworksListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetwork/managedNetworks": { + "get": { + "tags": [ + "ManagedNetworks" + ], + "operationId": "ManagedNetworks_ListBySubscription", + "description": "The ListBySubscription ManagedNetwork operation retrieves all the Managed Network Resources in the current subscription in a paginated format.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ListPageSizeParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "Get successful. The operation returns all Managed Network resources under the current subscription in a paginated format.", + "schema": { + "$ref": "#/definitions/ManagedNetworkListResult" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ManagedNetworksListBySubscription": { + "$ref": "./examples/ManagedNetwork/ManagedNetworksListBySubscription.json" + } + } + } + }, + "/{scope}/providers/Microsoft.ManagedNetwork/scopeAssignments/{scopeAssignmentName}": { + "get": { + "tags": [ + "ScopeAssignments" + ], + "operationId": "ScopeAssignments_Get", + "description": "Get the specified scope assignment.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The base resource of the scope assignment.", + "x-ms-skip-url-encoding": true + }, + { + "name": "scopeAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the scope assignment to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the scope assignment.", + "schema": { + "$ref": "#/definitions/ScopeAssignment" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ScopeAssignmentsGet": { + "$ref": "./examples/ScopeAssignment/ScopeAssignmentsGet.json" + } + } + }, + "put": { + "tags": [ + "ScopeAssignments" + ], + "operationId": "ScopeAssignments_CreateOrUpdate", + "description": "Creates a scope assignment.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ScopeAssignment" + }, + "description": "Parameters supplied to the specify which Managed Network this scope is being assigned" + }, + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The base resource of the scope assignment to create. The scope can be any REST resource instance. For example, use '/subscriptions/{subscription-id}/' for a subscription, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.", + "x-ms-skip-url-encoding": true + }, + { + "name": "scopeAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the scope assignment to create." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Updated - Returns information about the scope assignment.", + "schema": { + "$ref": "#/definitions/ScopeAssignment" + } + }, + "201": { + "description": "Created - Returns information about the scope assignment.", + "schema": { + "$ref": "#/definitions/ScopeAssignment" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ScopeAssignmentsPut": { + "$ref": "./examples/ScopeAssignment/ScopeAssignmentsPut.json" + } + } + }, + "delete": { + "tags": [ + "ScopeAssignments" + ], + "operationId": "ScopeAssignments_Delete", + "description": "Deletes a scope assignment.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the scope assignment to delete.", + "x-ms-skip-url-encoding": true + }, + { + "name": "scopeAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the scope assignment to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Delete Succeed." + }, + "default": { + "description": "Resource Provider error response describing why the operation failed." + } + }, + "x-ms-examples": { + "ScopeAssignmentsDelete": { + "$ref": "./examples/ScopeAssignment/ScopeAssignmentsDelete.json" + } + } + } + }, + "/{scope}/providers/Microsoft.ManagedNetwork/scopeAssignments": { + "get": { + "tags": [ + "ScopeAssignments" + ], + "operationId": "ScopeAssignments_List", + "description": "Get the specified scope assignment.", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The base resource of the scope assignment.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the scope assignment.", + "schema": { + "$ref": "#/definitions/ScopeAssignmentListResult" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ScopeAssignmentsList": { + "$ref": "./examples/ScopeAssignment/ScopeAssignmentsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkGroups/{managedNetworkGroupName}": { + "get": { + "tags": [ + "ManagedNetworkGroups" + ], + "operationId": "ManagedNetworkGroups_Get", + "description": "The Get ManagedNetworkGroups operation gets a Managed Network Group specified by the resource group, Managed Network name, and group name", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Get successful. The operation returns the specified Managed Network Group resource.", + "schema": { + "$ref": "#/definitions/ManagedNetworkGroup" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ManagementNetworkGroupsGet": { + "$ref": "./examples/ManagedNetworkGroup/ManagedNetworkGroupsGet.json" + } + } + }, + "put": { + "tags": [ + "ManagedNetworkGroups" + ], + "operationId": "ManagedNetworkGroups_CreateOrUpdate", + "description": "The Put ManagedNetworkGroups operation creates or updates a Managed Network Group resource", + "parameters": [ + { + "name": "managedNetworkGroup", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedNetworkGroup" + }, + "description": "Parameters supplied to the create/update a Managed Network Group resource" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Managed Network Group resource.", + "schema": { + "$ref": "#/definitions/ManagedNetworkGroup" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Managed Network Group resource.", + "schema": { + "$ref": "#/definitions/ManagedNetworkGroup" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ManagementNetworkGroupsPut": { + "$ref": "./examples/ManagedNetworkGroup/ManagedNetworkGroupsPut.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "ManagedNetworkGroups" + ], + "operationId": "ManagedNetworkGroups_Delete", + "description": "The Delete ManagedNetworkGroups operation deletes a Managed Network Group specified by the resource group, Managed Network name, and group name", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ManagementNetworkGroupsDelete": { + "$ref": "./examples/ManagedNetworkGroup/ManagedNetworkGroupsDelete.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.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkGroups": { + "get": { + "tags": [ + "ManagedNetworkGroups" + ], + "operationId": "ManagedNetworkGroups_ListByManagedNetwork", + "description": "The ListByManagedNetwork ManagedNetworkGroup operation retrieves all the Managed Network Groups in a specified Managed Networks in a paginated format.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkNameParameter" + }, + { + "$ref": "#/parameters/ListPageSizeParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "Get successful. The operation returns all Managed Network Group resources under the specified Managed Network in a paginated format.", + "schema": { + "$ref": "#/definitions/ManagedNetworkGroupListResult" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ManagedNetworksGroupsListByManagedNetwork": { + "$ref": "./examples/ManagedNetworkGroup/ManagedNetworkGroupsListByManagedNetwork.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkPeeringPolicies/{managedNetworkPeeringPolicyName}": { + "get": { + "tags": [ + "ManagedNetworkPeeringPolicies" + ], + "operationId": "ManagedNetworkPeeringPolicies_Get", + "description": "The Get ManagedNetworkPeeringPolicies operation gets a Managed Network Peering Policy resource, specified by the resource group, Managed Network name, and peering policy name", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkPeeringPolicyNameParameter" + } + ], + "responses": { + "200": { + "description": "Get successful. The operation returns the specified Managed Network Peering Policy resource.", + "schema": { + "$ref": "#/definitions/ManagedNetworkPeeringPolicy" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ManagedNetworkPeeringPoliciesGet": { + "$ref": "./examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesGet.json" + } + } + }, + "put": { + "tags": [ + "ManagedNetworkPeeringPolicies" + ], + "operationId": "ManagedNetworkPeeringPolicies_CreateOrUpdate", + "description": "The Put ManagedNetworkPeeringPolicies operation creates/updates a new Managed Network Peering Policy", + "parameters": [ + { + "name": "managedNetworkPolicy", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedNetworkPeeringPolicy" + }, + "description": "Parameters supplied to create/update a Managed Network Peering Policy" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkPeeringPolicyNameParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Managed Network Peering Policy resource.", + "schema": { + "$ref": "#/definitions/ManagedNetworkPeeringPolicy" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Managed Network Peering Policy resource.", + "schema": { + "$ref": "#/definitions/ManagedNetworkPeeringPolicy" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ManagedNetworkPeeringPoliciesPut": { + "$ref": "./examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesPut.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "ManagedNetworkPeeringPolicies" + ], + "operationId": "ManagedNetworkPeeringPolicies_Delete", + "description": "The Delete ManagedNetworkPeeringPolicies operation deletes a Managed Network Peering Policy, specified by the resource group, Managed Network name, and peering policy name", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkPeeringPolicyNameParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ManagedNetworkPeeringPoliciesDelete": { + "$ref": "./examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesDelete.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.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkPeeringPolicies": { + "get": { + "tags": [ + "ManagedNetworkPeeringPolicies" + ], + "operationId": "ManagedNetworkPeeringPolicies_ListByManagedNetwork", + "description": "The ListByManagedNetwork PeeringPolicies operation retrieves all the Managed Network Peering Policies in a specified Managed Network, in a paginated format.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ManagedNetworkNameParameter" + }, + { + "$ref": "#/parameters/ListPageSizeParameter" + }, + { + "$ref": "#/parameters/ListSkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "Get successful. The operation returns all Managed Network Peering Policy resources in the specified Managed Network, in a paginated format", + "schema": { + "$ref": "#/definitions/ManagedNetworkPeeringPolicyListResult" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ManagedNetworkPeeringPoliciesListByManagedNetwork": { + "$ref": "./examples/ManagedNetworkPeeringPolicy/ManagedNetworkPeeringPoliciesListByManagedNetwork.json" + } + } + } + }, + "/providers/Microsoft.ManagedNetwork/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available MNC operations.", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Resource Provider error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ManagedNetwork": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagedNetworkProperties", + "description": "The MNC properties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "description": "The Managed Network resource" + }, + "ManagedNetworkProperties": { + "type": "object", + "properties": { + "scope": { + "readOnly": true, + "$ref": "#/definitions/Scope", + "description": "The collection of management groups, subscriptions, virtual networks, and subnets by the Managed Network. This is a read-only property that is reflective of all ScopeAssignments for this Managed Network" + }, + "connectivity": { + "$ref": "#/definitions/ConnectivityCollection", + "readOnly": true, + "description": "The collection of groups and policies concerned with connectivity" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ResourceProperties" + } + ], + "description": "Properties of Managed Network" + }, + "ManagedNetworkUpdate": { + "type": "object", + "properties": { + "tags": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TagsObject", + "description": "Updates the tags property of the Managed Network" + } + }, + "description": "Update Tags of Managed Network" + }, + "ManagedNetworkListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagedNetwork" + }, + "description": "Gets a page of ManagedNetworks" + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next page of results." + } + }, + "description": "Result of the request to list Managed Network. It contains a list of Managed Networks and a URL link to get the next set of results." + }, + "Scope": { + "properties": { + "managementGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceId" + }, + "description": "The collection of management groups covered by the Managed Network" + }, + "subscriptions": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceId" + }, + "description": "The collection of subscriptions covered by the Managed Network" + }, + "virtualNetworks": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceId" + }, + "description": "The collection of virtual nets covered by the Managed Network" + }, + "subnets": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceId" + }, + "description": "The collection of subnets covered by the Managed Network" + } + }, + "description": "Scope of a Managed Network" + }, + "ScopeAssignment": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ScopeAssignmentProperties", + "description": "The Scope Assignment properties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "The Managed Network resource" + }, + "ScopeAssignmentListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ScopeAssignment" + }, + "description": "Gets a page of ScopeAssignment" + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next set of results." + } + }, + "description": "Result of the request to list ScopeAssignment. It contains a list of groups and a URL link to get the next set of results." + }, + "ScopeAssignmentProperties": { + "type": "object", + "properties": { + "assignedManagedNetwork": { + "type": "string", + "description": "The managed network ID with scope will be assigned to." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ResourceProperties" + } + ], + "description": "Properties of Managed Network" + }, + "ConnectivityCollection": { + "properties": { + "groups": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ManagedNetworkGroup" + }, + "description": "The collection of connectivity related Managed Network Groups within the Managed Network" + }, + "peerings": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ManagedNetworkPeeringPolicy" + }, + "description": "The collection of Managed Network Peering Policies within the Managed Network" + } + }, + "description": "The collection of Connectivity related groups and policies within the Managed Network" + }, + "ManagedNetworkGroup": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagedNetworkGroupProperties", + "description": "Gets or sets the properties of a network group" + }, + "kind": { + "description": "Responsibility role under which this Managed Network Group will be created", + "enum": [ + "Connectivity" + ], + "type": "string", + "x-ms-enum": { + "name": "Kind", + "modelAsString": true + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "The Managed Network Group resource" + }, + "ManagedNetworkGroupProperties": { + "properties": { + "managementGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceId" + }, + "description": "The collection of management groups covered by the Managed Network" + }, + "subscriptions": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceId" + }, + "description": "The collection of subscriptions covered by the Managed Network" + }, + "virtualNetworks": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceId" + }, + "description": "The collection of virtual nets covered by the Managed Network" + }, + "subnets": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceId" + }, + "description": "The collection of subnets covered by the Managed Network" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ResourceProperties" + } + ], + "description": "Properties of a Managed Network Group" + }, + "ManagedNetworkGroupListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagedNetworkGroup" + }, + "description": "Gets a page of ManagedNetworkGroup" + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next set of results." + } + }, + "description": "Result of the request to list Managed Network Groups. It contains a list of groups and a URL link to get the next set of results." + }, + "ManagedNetworkPeeringPolicy": { + "properties": { + "properties": { + "$ref": "#/definitions/ManagedNetworkPeeringPolicyProperties", + "description": "Gets or sets the properties of a Managed Network Policy" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "The Managed Network Peering Policy resource" + }, + "ManagedNetworkPeeringPolicyProperties": { + "discriminator": "peeringPolicyType", + "properties": { + "peeringPolicyType": { + "type": "string", + "enum": [ + "HubAndSpokeTopology", + "MeshTopology" + ], + "x-ms-enum": { + "name": "type", + "modelAsString": true + }, + "description": "Gets or sets the connectivity type of a network structure policy" + }, + "hub": { + "$ref": "#/definitions/ResourceId", + "description": "Gets or sets the hub virtual network ID" + }, + "spokes": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceId" + }, + "description": "Gets or sets the spokes group IDs" + }, + "mesh": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceId" + }, + "description": "Gets or sets the mesh group IDs" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ResourceProperties" + } + ], + "required": [ + "peeringPolicyType" + ], + "description": "Properties of a Managed Network Peering Policy" + }, + "HubAndSpokePeeringPolicyProperties": { + "x-ms-discriminator-value": "HubAndSpokeTopology", + "properties": { + "hub": { + "$ref": "#/definitions/ResourceId", + "description": "Gets or sets the hub virtual network ID" + }, + "spokes": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceId" + }, + "description": "Gets or sets the spokes group IDs" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ManagedNetworkPeeringPolicyProperties" + } + ], + "description": "Properties of a Hub and Spoke Peering Policy" + }, + "MeshPeeringPolicyProperties": { + "x-ms-discriminator-value": "MeshTopology", + "properties": { + "mesh": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceId" + }, + "description": "Gets or sets the mesh group IDs" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ManagedNetworkPeeringPolicyProperties" + } + ], + "description": "Properties of a Mesh Peering Policy" + }, + "ManagedNetworkPeeringPolicyListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagedNetworkPeeringPolicy" + }, + "description": "Gets a page of Peering Policies" + }, + "nextLink": { + "type": "string", + "description": "Gets the URL to get the next page of results." + } + }, + "description": "Result of the request to list Managed Network Peering Policies. It contains a list of policies and a URL link to get the next set of results." + }, + "ErrorResponse": { + "description": "The error response that indicates 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 + } + } + }, + "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.ManagedNetwork", + "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" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Managed Network 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 Provider operations supported by the Managed Network resource provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "Resource": { + "description": "The general resource model definition", + "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." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "The resource model definition for a 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": "The geo-location where the resource lives" + } + }, + "required": [ + "location" + ], + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "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" + } + ] + }, + "ResourceId": { + "properties": { + "id": { + "type": "string", + "description": "Resource Id" + } + }, + "description": "Generic pointer to a resource" + }, + "TagsObject": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + }, + "ResourceProperties": { + "properties": { + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Provisioning state of the ManagedNetwork resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.", + "enum": [ + "Updating", + "Deleting", + "Failed", + "Succeeded" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "description": "Base for resource properties." + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID 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.", + "x-ms-parameter-location": "method" + }, + "ManagedNetworkNameParameter": { + "name": "managedNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Managed Network.", + "x-ms-parameter-location": "method" + }, + "ManagedNetworkGroupNameParameter": { + "name": "managedNetworkGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Managed Network Group.", + "x-ms-parameter-location": "method" + }, + "ManagedNetworkPeeringPolicyNameParameter": { + "name": "managedNetworkPeeringPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Managed Network Peering Policy.", + "x-ms-parameter-location": "method" + }, + "ListPageSizeParameter": { + "name": "$top", + "description": "May be used to limit the number of results in a page for list queries.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 20, + "x-ms-parameter-location": "method" + }, + "ListSkipTokenParameter": { + "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", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/managednetwork/resource-manager/readme.go.md b/specification/managednetwork/resource-manager/readme.go.md new file mode 100644 index 000000000000..f1cd2be36ad8 --- /dev/null +++ b/specification/managednetwork/resource-manager/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: managednetwork + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2019-06-01-preview +``` + +### Tag: package-2019-06-01-preview and go + +These settings apply only when `--tag=package-2019-06-01-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2019-06-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-06-01-preview/$(namespace) +``` diff --git a/specification/managednetwork/resource-manager/readme.md b/specification/managednetwork/resource-manager/readme.md new file mode 100644 index 000000000000..37cf92ae60cc --- /dev/null +++ b/specification/managednetwork/resource-manager/readme.md @@ -0,0 +1,85 @@ +# Managed Network + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Managed Network. + + + +--- +## Getting Started +To build the SDK for Managed Network, 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 Managed Network API. + +``` yaml +openapi-type: arm +tag: package-2019-06-01-preview +``` + +### Tag: package-2019-03-01-preview + +These settings apply only when `--tag=package-2019-06-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2019-06-01-preview' +input-file: +- Microsoft.ManagedNetwork/preview/2019-06-01-preview/managedNetwork.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-net + - repo: azure-sdk-for-js + - repo: azure-sdk-for-node + - repo: azure-sdk-for-ruby + after_scripts: + - bundle install && rake arm:regen_all_profiles['azure_mgmt_managed_network'] +``` + + +## 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.ManagedNetwork/preview/2019-06-01-preview/managedNetwork.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/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/DeleteRegistrationAssignment.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/DeleteRegistrationAssignment.json new file mode 100644 index 000000000000..bf296dd20764 --- /dev/null +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/DeleteRegistrationAssignment.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea", + "registrationAssignmentId": "26c128c2-fefa-4340-9bb1-6e081c90ada2", + "api-version": "2019-06-01" + }, + "responses": { + "200": {}, + "204": {}, + "202": {} + } +} diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/DeleteRegistrationDefinition.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/DeleteRegistrationDefinition.json new file mode 100644 index 000000000000..e49cd019a9f7 --- /dev/null +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/DeleteRegistrationDefinition.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea", + "registrationDefinitionId": "26c128c2-fefa-4340-9bb1-6e081c90ada2", + "api-version": "2019-06-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/GetOperations.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/GetOperations.json new file mode 100644 index 000000000000..56d89bd46400 --- /dev/null +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/GetOperations.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-06-01" + }, + "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/stable/2019-06-01/examples/GetRegistrationAssignment.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/GetRegistrationAssignment.json new file mode 100644 index 000000000000..37b79850b164 --- /dev/null +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/GetRegistrationAssignment.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea", + "registrationAssignmentId": "26c128c2-fefa-4340-9bb1-6e081c90ada2", + "api-version": "2019-06-01" + }, + "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" + } + ], + "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/stable/2019-06-01/examples/GetRegistrationAssignments.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/GetRegistrationAssignments.json new file mode 100644 index 000000000000..f3355d221f1f --- /dev/null +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/GetRegistrationAssignments.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea", + "api-version": "2019-06-01" + }, + "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" + } + ], + "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/stable/2019-06-01/examples/GetRegistrationDefinition.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/GetRegistrationDefinition.json new file mode 100644 index 000000000000..a772ff5161d3 --- /dev/null +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/GetRegistrationDefinition.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea", + "registrationDefinitionId": "26c128c2-fefa-4340-9bb1-6e081c90ada2", + "api-version": "2019-06-01" + }, + "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" + } + ], + "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/stable/2019-06-01/examples/GetRegistrationDefinitions.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/GetRegistrationDefinitions.json new file mode 100644 index 000000000000..dbf8cc57fb18 --- /dev/null +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/GetRegistrationDefinitions.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea", + "api-version": "2019-06-01" + }, + "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/stable/2019-06-01/examples/PutRegistrationAssignment.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/PutRegistrationAssignment.json new file mode 100644 index 000000000000..db26691b85b0 --- /dev/null +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/PutRegistrationAssignment.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea", + "registrationAssignmentId": "26c128c2-fefa-4340-9bb1-6e081c90ada2", + "api-version": "2019-06-01", + "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/stable/2019-06-01/examples/PutRegistrationDefinition.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/PutRegistrationDefinition.json new file mode 100644 index 000000000000..5c5fde7daceb --- /dev/null +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/examples/PutRegistrationDefinition.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea", + "registrationDefinitionId": "26c128c2-fefa-4340-9bb1-6e081c90ada2", + "api-version": "2019-06-01", + "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" + } + ] + }, + "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" + } + ], + "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" + } + ], + "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/stable/2019-06-01/managedservices.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/managedservices.json new file mode 100644 index 000000000000..6f4a6b03172c --- /dev/null +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2019-06-01/managedservices.json @@ -0,0 +1,846 @@ +{ + "swagger": "2.0", + "info": { + "title": "ManagedServicesClient", + "version": "2019-06-01", + "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" + } + } + } + }, + "/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." + }, + "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." + }, + "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." + }, + "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" + }, + "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." + } + }, + "required": [ + "principalId", + "roleDefinitionId" + ], + "type": "object", + "description": "Authorization tuple containing principal Id (of user/service principal/security group) and role definition id." + }, + "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." + }, + "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." + } + } +} diff --git a/specification/managedservices/resource-manager/readme.go.md b/specification/managedservices/resource-manager/readme.go.md index 528ab78e06f5..ccecacca42db 100644 --- a/specification/managedservices/resource-manager/readme.go.md +++ b/specification/managedservices/resource-manager/readme.go.md @@ -9,6 +9,24 @@ go: clear-output-folder: true ``` +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2019-06 + - tag: package-2019-04-preview + - tag: package-2018-06-preview +``` + +### Tag: package-2019-06 and go + +These settings apply only when `--tag=package-2019-06 --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/$(namespace)/mgmt/2019-06-01/$(namespace) +``` + ### Tag: package-2019-04-preview and go These settings apply only when `--tag=package-2019-04-preview --go` is specified on the command line. diff --git a/specification/managedservices/resource-manager/readme.md b/specification/managedservices/resource-manager/readme.md index 88855e90cd10..16673ff45462 100644 --- a/specification/managedservices/resource-manager/readme.md +++ b/specification/managedservices/resource-manager/readme.md @@ -4,10 +4,10 @@ This is the AutoRest configuration file for Managed Services. - - --- + ## Getting Started + To build the SDK for ManagedServices, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -15,20 +15,29 @@ To build the SDK for ManagedServices, simply [Install AutoRest](https://aka.ms/a To see additional help and options, run: > `autorest --help` + --- ## Configuration - - ### Basic Information + These are the global settings for the ManagedServices API. ``` yaml openapi-type: arm -tag: package-2019-04-preview +tag: package-2019-06 ``` + +### Tag: package-2019-06 + +These settings apply only when `--tag=package-2019-06` is specified on the command line. + +```yaml $(tag) == 'package-2019-06' +input-file: + - Microsoft.ManagedServices/stable/2019-06-01/managedservices.json +``` ### Tag: package-2019-04-preview These settings apply only when `--tag=package-2019-04-preview` is specified on the command line. @@ -48,8 +57,8 @@ input-file: ``` --- -# Code Generation +# Code Generation ## Swagger to SDK @@ -58,6 +67,7 @@ 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 @@ -68,7 +78,6 @@ swagger-to-sdk: - bundle install && rake arm:regen_all_profiles['azure_mgmt_billing'] ``` - ## C# These settings apply only when `--csharp` is specified on the command line. @@ -85,4 +94,31 @@ csharp: ## Go -See configuration in [readme.go.md](./readme.go.md) \ No newline at end of file +See configuration in [readme.go.md](./readme.go.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.ManagedServices/stable/2019-06-01/managedservices.json + - $(this-folder)/Microsoft.ManagedServices/preview/2019-04-01-preview/managedservices.json + - $(this-folder)/Microsoft.ManagedServices/preview/2018-06-01-preview/managedservices.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/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/CheckManagementGroupNameAvailability.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/CheckManagementGroupNameAvailability.json index 410980412b47..491ff4540b01 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/CheckManagementGroupNameAvailability.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/CheckManagementGroupNameAvailability.json @@ -9,9 +9,11 @@ }, "responses": { "200": { - "nameAvailable": "true|false", - "reason": "Invalid|AlreadyExists", - "message": "" + "body": { + "nameAvailable": false, + "reason": "AlreadyExists", + "message": "" + } } } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/PutManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/PutManagementGroup.json index 13156d60aa8c..17c4a41cab8e 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/PutManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/PutManagementGroup.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2018-01-01-preview", "groupId": "ChildGroup", - "createGroupRequest": { + "createManagementGroupRequest": { "properties": { "displayName": "ChildGroup", "parent": { diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/CheckManagementGroupNameAvailability.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/CheckManagementGroupNameAvailability.json index 069f200486bc..b4029257d647 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/CheckManagementGroupNameAvailability.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/CheckManagementGroupNameAvailability.json @@ -9,9 +9,11 @@ }, "responses": { "200": { - "nameAvailable": "true|false", - "reason": "Invalid|AlreadyExists", - "message": "" + "body": { + "nameAvailable": false, + "reason": "AlreadyExists", + "message": "" + } } } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/StartTenantBackfillRequest.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/StartTenantBackfillRequest.json index ebf478b568ca..606eb7ca1963 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/StartTenantBackfillRequest.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/StartTenantBackfillRequest.json @@ -5,8 +5,10 @@ }, "responses": { "200": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "status": "Started" + "body": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "status": "Started" + } } } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/TenantBackfillStatusRequest.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/TenantBackfillStatusRequest.json index e80a4a561964..1e95785a5fcc 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/TenantBackfillStatusRequest.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/TenantBackfillStatusRequest.json @@ -5,8 +5,10 @@ }, "responses": { "200": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "status": "Started" + "body": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "status": "Started" + } } } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/management.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/management.json index 24eb42691d01..dce21369519b 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/management.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/management.json @@ -272,9 +272,11 @@ "x-ms-long-running-operation": true } }, - "/providers/Microsoft.Management/managementGroups/{groupId}/descendants" : { + "/providers/Microsoft.Management/managementGroups/{groupId}/descendants": { "post": { - "tags": [ "ManagementGroups_Descendants" ], + "tags": [ + "ManagementGroups_Descendants" + ], "operationId": "ManagementGroups_GetDescendants", "description": "List all entities that descend from a management group.\n", "parameters": [ @@ -988,73 +990,73 @@ } } }, - "DescendantListResult" : { - "description" : "Describes the result of the request to view descendants.", - "properties" : { - "value" : { - "description" : "The list of descendants.", - "type" : "array", - "items" : { - "$ref" : "#/definitions/DescendantInfo" + "DescendantListResult": { + "description": "Describes the result of the request to view descendants.", + "properties": { + "value": { + "description": "The list of descendants.", + "type": "array", + "items": { + "$ref": "#/definitions/DescendantInfo" } }, - "nextLink" : { - "description" : "The URL to use for getting the next set of results.", - "type" : "string", - "readOnly" : true + "nextLink": { + "description": "The URL to use for getting the next set of results.", + "type": "string", + "readOnly": true } } }, - "DescendantInfo" : { - "description" : "The descendant.", - "properties" : { - "id" : { - "type" : "string", - "description" : "The fully qualified ID for the descendant. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 or /subscriptions/0000000-0000-0000-0000-000000000000", - "readOnly" : true, - "x-nullable" : true - }, - "type" : { - "type" : "string", - "description" : "The type of the resource. For example, /providers/Microsoft.Management/managementGroups or /subscriptions", - "readOnly" : true, - "x-nullable" : true - }, - "name" : { - "type" : "string", - "description" : "The name of the descendant. For example, 00000000-0000-0000-0000-000000000000", - "readOnly" : true - }, - "properties" : { - "title" : "Properties", - "x-ms-client-flatten" : true, - "x-nullable" : true, - "$ref" : "#/definitions/DescendantInfoProperties" + "DescendantInfo": { + "description": "The descendant.", + "properties": { + "id": { + "type": "string", + "description": "The fully qualified ID for the descendant. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 or /subscriptions/0000000-0000-0000-0000-000000000000", + "readOnly": true, + "x-nullable": true + }, + "type": { + "type": "string", + "description": "The type of the resource. For example, /providers/Microsoft.Management/managementGroups or /subscriptions", + "readOnly": true, + "x-nullable": true + }, + "name": { + "type": "string", + "description": "The name of the descendant. For example, 00000000-0000-0000-0000-000000000000", + "readOnly": true + }, + "properties": { + "title": "Properties", + "x-ms-client-flatten": true, + "x-nullable": true, + "$ref": "#/definitions/DescendantInfoProperties" } } }, - "DescendantInfoProperties" : { - "description" : "The generic properties of an descendant.", - "type" : "object", - "properties" : { - "displayName" : { - "type" : "string", - "description" : "The friendly name of the management group.", - "x-nullable" : true - }, - "parent" : { - "title" : "Parent", - "$ref" : "#/definitions/DescendantParentGroupInfo", - "x-nullable" : true + "DescendantInfoProperties": { + "description": "The generic properties of an descendant.", + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "The friendly name of the management group.", + "x-nullable": true + }, + "parent": { + "title": "Parent", + "$ref": "#/definitions/DescendantParentGroupInfo", + "x-nullable": true } } }, - "DescendantParentGroupInfo" : { - "description" : "The ID of the parent management group.", - "properties" : { - "id" : { - "type" : "string", - "description" : "The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000" + "DescendantParentGroupInfo": { + "description": "The ID of the parent management group.", + "properties": { + "id": { + "type": "string", + "description": "The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000" } } }, diff --git a/specification/managementgroups/resource-manager/readme.md b/specification/managementgroups/resource-manager/readme.md index 122d1afcb49a..c8b28e279208 100644 --- a/specification/managementgroups/resource-manager/readme.md +++ b/specification/managementgroups/resource-manager/readme.md @@ -69,6 +69,7 @@ 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 @@ -198,3 +199,31 @@ generate-interface: 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)/Microsoft.Management/preview/2018-03-01-preview/management.json + - $(this-folder)/Microsoft.Management/preview/2018-01-01-preview/management.json + - $(this-folder)/Microsoft.Management/preview/2017-11-01-preview/management.json + - $(this-folder)/Microsoft.Management/preview/2017-08-31-preview/management.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/managementpartner/resource-manager/readme.md b/specification/managementpartner/resource-manager/readme.md index 7b3a27a73bc0..0b22fe3e05ea 100644 --- a/specification/managementpartner/resource-manager/readme.md +++ b/specification/managementpartner/resource-manager/readme.md @@ -71,6 +71,7 @@ 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-go - repo: azure-sdk-for-js @@ -93,4 +94,29 @@ csharp: ## Go -See configuration in [readme.go.md](./readme.go.md) \ No newline at end of file +See configuration in [readme.go.md](./readme.go.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.ManagementPartner/preview/2018-02-01/ManagementPartner.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/maps/resource-manager/readme.md b/specification/maps/resource-manager/readme.md index 07a15d4cb993..9e1c939c5790 100644 --- a/specification/maps/resource-manager/readme.md +++ b/specification/maps/resource-manager/readme.md @@ -57,6 +57,7 @@ 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-go - repo: azure-sdk-for-js @@ -135,3 +136,29 @@ generate-interface: 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)/Microsoft.Maps/stable/2017-01-01-preview/maps-management.json + - $(this-folder)/Microsoft.Maps/stable/2018-05-01/maps-management.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/mariadb/resource-manager/Microsoft.DBforMariaDB/preview/2018-06-01-preview/examples/VirtualNetworkRulesDelete.json b/specification/mariadb/resource-manager/Microsoft.DBforMariaDB/preview/2018-06-01-preview/examples/VirtualNetworkRulesDelete.json index c5ea31cb57b0..84aa1b303a02 100644 --- a/specification/mariadb/resource-manager/Microsoft.DBforMariaDB/preview/2018-06-01-preview/examples/VirtualNetworkRulesDelete.json +++ b/specification/mariadb/resource-manager/Microsoft.DBforMariaDB/preview/2018-06-01-preview/examples/VirtualNetworkRulesDelete.json @@ -7,14 +7,8 @@ "api-version": "2018-06-01-preview" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/mariadb/resource-manager/Microsoft.DBforMariaDB/preview/2018-06-01-privatepreview/examples/VirtualNetworkRulesDelete.json b/specification/mariadb/resource-manager/Microsoft.DBforMariaDB/preview/2018-06-01-privatepreview/examples/VirtualNetworkRulesDelete.json index cfb5339892be..27b0a8024fa7 100644 --- a/specification/mariadb/resource-manager/Microsoft.DBforMariaDB/preview/2018-06-01-privatepreview/examples/VirtualNetworkRulesDelete.json +++ b/specification/mariadb/resource-manager/Microsoft.DBforMariaDB/preview/2018-06-01-privatepreview/examples/VirtualNetworkRulesDelete.json @@ -7,14 +7,8 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/VirtualNetworkRulesDelete.json b/specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/VirtualNetworkRulesDelete.json index cfb5339892be..27b0a8024fa7 100644 --- a/specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/VirtualNetworkRulesDelete.json +++ b/specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/VirtualNetworkRulesDelete.json @@ -7,14 +7,8 @@ "api-version": "2018-06-01" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/mariadb/resource-manager/readme.md b/specification/mariadb/resource-manager/readme.md index 3590e156b45d..f5b892640fe2 100644 --- a/specification/mariadb/resource-manager/readme.md +++ b/specification/mariadb/resource-manager/readme.md @@ -72,6 +72,7 @@ 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 @@ -90,7 +91,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.MariaDB - output-folder: $(csharp-sdks-folder)/MariaDB/Management.MariaDB/Generated + output-folder: $(csharp-sdks-folder)/mariadb/Microsoft.Azure.Management.MariaDB/src/Generated clear-output-folder: true ``` @@ -129,3 +130,30 @@ 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. + +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.DBforMariaDB/preview/2018-06-01-preview/mariadb.json + - $(this-folder)/Microsoft.DBforMariaDB/stable/2018-06-01/mariadb.json + - $(this-folder)/Microsoft.DBforMariaDB/preview/2018-06-01-privatepreview/mariadb.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/marketplaceordering/resource-manager/readme.md b/specification/marketplaceordering/resource-manager/readme.md index 5be496a81d44..bd6daac596b3 100644 --- a/specification/marketplaceordering/resource-manager/readme.md +++ b/specification/marketplaceordering/resource-manager/readme.md @@ -4,7 +4,7 @@ The underlying APIs are available to users who would like to write their own REST calls. These APIs would allow the user to accept the terms at a subscription, offer and SKU level. These apis are invoked in the context of azure subscription. ----- +--- ***GetAzureRmMarketplaceTerms*** **Request** @@ -73,6 +73,7 @@ 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-go - repo: azure-sdk-for-js @@ -192,3 +193,28 @@ generate-interface: 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)/Microsoft.MarketplaceOrdering/stable/2015-06-01/Agreements.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/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Accounts.json index 3a1564f14a8d..d2a1187fcf79 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Accounts.json @@ -741,4 +741,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Assets.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Assets.json index 9ff8172d6c01..6e955254ba49 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Assets.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Assets.json @@ -605,4 +605,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Common.json index 32f0e829b2f9..3140d12d8964 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Common.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Common.json @@ -77,4 +77,4 @@ ] } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/ContentKeyPolicies.json index 9b3c1a298ade..7f59d29e3915 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/ContentKeyPolicies.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/ContentKeyPolicies.json @@ -1129,4 +1129,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Encoding.json index 76c810446bcd..24c3bf6273bd 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Encoding.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/Encoding.json @@ -2180,4 +2180,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/StreamingPoliciesAndStreamingLocators.json index 29e20f920731..55caec9a3de5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/StreamingPoliciesAndStreamingLocators.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/StreamingPoliciesAndStreamingLocators.json @@ -1258,4 +1258,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-check-name-availability.json index 9aad81eaa24d..b7b88c5076da 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-check-name-availability.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-check-name-availability.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-create.json index e45eecd0de39..91ad5f029386 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-create.json @@ -62,6 +62,6 @@ ] } } - } + } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-delete.json index a593d19bc763..65a89864b63f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-delete.json @@ -8,4 +8,4 @@ "responses": { "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-get-by-name.json index 0f3507993b5a..eb25d616000a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-get-by-name.json @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-list-all-accounts.json index a2b39638396a..4206c3bc5bcd 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-list-all-accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-list-all-accounts.json @@ -50,4 +50,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-subscription-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-subscription-get-by-name.json index 294acb38dda4..037780538a17 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-subscription-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-subscription-get-by-name.json @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-subscription-list-all-accounts.json index 4e934468d15f..1aaaf1fb839f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-subscription-list-all-accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-subscription-list-all-accounts.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-sync-storage-keys.json index 5cc591cd0c8e..fe0db4ce798d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-sync-storage-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-sync-storage-keys.json @@ -11,4 +11,4 @@ "responses": { "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-update.json index 311521534af8..f92e6114dd39 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/accounts-update.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-create.json index 6030d2cfaf61..cfdbf7c19b37 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-create.json @@ -48,4 +48,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-delete.json index f421538b2777..6f4be3e65868 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-get-by-name.json index 559f24ed6e8d..23a4660c94c3 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-get-by-name.json @@ -26,4 +26,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-get-encryption-keys.json index a37c1a437f7c..ef85de92474c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-get-encryption-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-get-encryption-keys.json @@ -13,4 +13,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-all.json index 02277422b47c..51c49a391036 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-all.json @@ -73,4 +73,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-by-date.json index 5e2e5e25d6dc..a6d14025ce32 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-by-date.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-by-date.json @@ -74,4 +74,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-in-date-range.json index 41346fb9dfec..1e5206367b70 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-in-date-range.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-in-date-range.json @@ -45,4 +45,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-sas-urls.json index c76387b456da..c7fafa21dbb4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-sas-urls.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-list-sas-urls.json @@ -20,4 +20,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-update.json index f364c58cad97..b3546014b743 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/assets-update.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-multiple-options.json index d28b0de1b976..be4d3ada5988 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-multiple-options.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-multiple-options.json @@ -133,4 +133,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-nodrm-token.json index 0e549a219813..4b5aba3f9ac6 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-nodrm-token.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-nodrm-token.json @@ -101,4 +101,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-playready-open.json index 7ff95f2e2cc3..f7bc21f95e9b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-playready-open.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-playready-open.json @@ -154,4 +154,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-widevine-token.json index 040b101db20a..e0afa11884b0 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-widevine-token.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-create-widevine-token.json @@ -123,4 +123,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-delete.json index 3a62484b13ce..5cd1a9391337 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-get-by-name.json index 37ecf53dd233..d22bcc073e01 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-get-by-name.json @@ -64,4 +64,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-get-with-secrets.json index 72108574dc0a..52d8768ccbc9 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-get-with-secrets.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-get-with-secrets.json @@ -59,4 +59,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-list-all.json index 376d4d470ebe..0a7167f59ed5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-list-all.json @@ -162,4 +162,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-list-by-lastModified.json index 1664dc22f8d8..5977b31209da 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-list-by-lastModified.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-list-by-lastModified.json @@ -163,4 +163,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-list-in-date-range.json index ed8ce398dad1..7ada7b7f9945 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-list-in-date-range.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-list-in-date-range.json @@ -13,4 +13,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-update.json index b948d59eaac4..e0e1d710967b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/content-key-policies-update.json @@ -49,4 +49,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-cancel.json index 6c4837424e0e..d18100de323e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-cancel.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-cancel.json @@ -10,4 +10,4 @@ "responses": { "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-create.json index 74d038f1e020..0c45eb221624 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-create.json @@ -58,4 +58,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-delete.json index a8953bb8464e..ef8e5b5d0d29 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-delete.json @@ -11,4 +11,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-get-by-name.json index fb2d9650f6dd..a564286d6b03 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-get-by-name.json @@ -45,4 +45,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-list-all.json index 737ff0387a52..94b761c4bc83 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/jobs-list-all.json @@ -113,4 +113,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-create.json index 07d8578572d6..a771cb52b163 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-create.json @@ -139,4 +139,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-delete.json index ccc70906235e..6d8e5103b47e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-delete.json @@ -6,7 +6,7 @@ "liveEventName": "myLiveEvent1", "api-version": "2018-03-30-preview", "parameters": { - "Id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", "Name": "myLiveEvent1", "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", "Location": "West US", @@ -16,7 +16,7 @@ "tag2": "value2" } }, - "Properties": { + "properties": { "Description": "test event updated", "Input": { "StreamingProtocol": "FragmentedMP4", @@ -38,7 +38,7 @@ } }, "PreviewLocator": null, - "StreamingPolicyName": null + "streamingPolicyName": null }, "Encoding": { "EncodingType": "None", @@ -59,4 +59,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-list-all.json index 12a9f113030c..7dc4a3134198 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-list-all.json @@ -72,4 +72,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-list-by-name.json index b17b37239b60..c7d09630c08f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-list-by-name.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-reset.json index f6bdc3bb200c..9a30f0878c16 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-reset.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-reset.json @@ -10,4 +10,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-start.json index f6bdc3bb200c..9a30f0878c16 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-start.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-start.json @@ -10,4 +10,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-stop.json index 6f8396ac56d7..1465d38e4368 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-stop.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-stop.json @@ -13,4 +13,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-update.json index b88fe16c6755..114aecce95bd 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveevent-update.json @@ -134,4 +134,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-create.json index cc03b1310c27..6e57bce7b94b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-create.json @@ -62,4 +62,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-delete.json index 5de0349ad5d5..f475dbae1b86 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-delete.json @@ -12,4 +12,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-list-all.json index 3545c1448292..90f002383c0e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-list-all.json @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-list-by-name.json index 16a359f44592..8ccde48efc47 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/liveoutput-list-by-name.json @@ -31,4 +31,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/operations-list-all.json index 3a7ff0ba371a..cd98a866b0ef 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/operations-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/operations-list-all.json @@ -282,4 +282,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-create-clear.json index 103434801d22..e8a2a73441cd 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-create-clear.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-create-clear.json @@ -7,8 +7,8 @@ "api-version": "2018-03-30-preview", "parameters": { "properties": { - "StreamingPolicyName": "clearStreamingPolicy", - "AssetName": "ClimbingMountRainier" + "streamingPolicyName": "clearStreamingPolicy", + "assetName": "ClimbingMountRainier" } } }, @@ -31,4 +31,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json index 9de3dfdafc7c..66bd0a17fc62 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json @@ -9,22 +9,22 @@ "properties": { "assetName": "ClimbingMountRainier", "streamingPolicyName": "secureStreamingPolicy", - "StreamingLocatorId": "90000000-0000-0000-0000-00000000000A", - "ContentKeys": [ + "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", + "contentKeys": [ { - "Label": "aesDefaultKey", - "Id": "60000000-0000-0000-0000-000000000001", - "Value": "1UqLohAfWsEGkULYxHjYZg==" + "label": "aesDefaultKey", + "id": "60000000-0000-0000-0000-000000000001", + "value": "1UqLohAfWsEGkULYxHjYZg==" }, { - "Label": "cencDefaultKey", - "Id": "60000000-0000-0000-0000-000000000004", - "Value": "4UqLohAfWsEGkULYxHjYZg==" + "label": "cencDefaultKey", + "id": "60000000-0000-0000-0000-000000000004", + "value": "4UqLohAfWsEGkULYxHjYZg==" }, { - "Label": "cbcsDefaultKey", - "Id": "60000000-0000-0000-0000-000000000007", - "Value": "7UqLohAfWsEGkULYxHjYZg==" + "label": "cbcsDefaultKey", + "id": "60000000-0000-0000-0000-000000000007", + "value": "7UqLohAfWsEGkULYxHjYZg==" } ] } @@ -49,4 +49,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-create-secure.json index 9138dce3a7a6..1b8880b44c0a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-create-secure.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-create-secure.json @@ -7,10 +7,10 @@ "api-version": "2018-03-30-preview", "parameters": { "properties": { - "StreamingPolicyName": "secureStreamingPolicy", - "AssetName": "ClimbingMountRainier", - "StartTime": "2018-03-01T00:00:00Z", - "EndTime": "2028-12-31T23:59:59.9999999Z" + "streamingPolicyName": "secureStreamingPolicy", + "assetName": "ClimbingMountRainier", + "startTime": "2018-03-01T00:00:00Z", + "endTime": "2028-12-31T23:59:59.9999999Z" } } }, @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-delete.json index 712cafeac16c..9ef01ec206d4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-get-by-name.json index f2c0f95e24d6..e276c06f488a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-get-by-name.json @@ -26,4 +26,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list-content-keys.json index dc3b9c0cc892..ae5038f19142 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list-content-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list-content-keys.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-and-download.json index 968c00a670ae..afddf2b64604 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-and-download.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-and-download.json @@ -47,4 +47,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-only.json index 6f6ec79a6910..9ff02d37fb91 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-only.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list.json index 4a5d0b17ca6b..d2d88fd3a56e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-locators-list.json @@ -43,4 +43,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-clear.json index 4623cd02a1ec..00d0aaa62e7f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-clear.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-clear.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json index 479bebc0c6b8..ca94fbcc66bd 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json @@ -70,4 +70,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json index a95e8ca8ecd7..37b9da320afc 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json @@ -95,4 +95,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-envelopeEncryption-only.json index ecacf2b9ad98..3f34dfb69945 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-envelopeEncryption-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-envelopeEncryption-only.json @@ -57,4 +57,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-secure-streaming.json index e4fd7183e756..d38f5725f9e5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-secure-streaming.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-create-secure-streaming.json @@ -167,4 +167,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-delete.json index c5ea443b34b1..9082340db923 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-list.json index ecc90cd1fb0c..5b29cbb299a5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policies-list.json @@ -231,4 +231,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policy-get-by-name.json index 66380bf55ac3..da8e0b6575f1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policy-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streaming-policy-get-by-name.json @@ -31,4 +31,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-create.json index 93a632a26c56..94bdc07e92a6 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-create.json @@ -154,4 +154,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-delete.json index e532a6ae1216..7e3a8499226a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-delete.json @@ -6,7 +6,7 @@ "streamingEndpointName": "myStreamingEndpoint1", "api-version": "2018-03-30-preview", "parameters": { - "Id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", "Name": "myStreamingEndpoint1", "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", "Location": "West US", @@ -16,7 +16,7 @@ "tag2": "value2" } }, - "Properties": { + "properties": { "Description": "test event 1", "ScaleUnits": 1, "AccessControl": null, @@ -41,4 +41,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-list-all.json index f60c33a79cde..1c1bfcdbf416 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-list-all.json @@ -62,4 +62,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-list-by-name.json index a802c913a87f..f91aadf6a9d1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-list-by-name.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-scale.json index e273ce6e4363..b41181b3e87c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-scale.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-scale.json @@ -13,4 +13,4 @@ "200": {}, "202": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-start.json index 962923ef6cee..6bbdf333e387 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-start.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-start.json @@ -10,4 +10,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-stop.json index 962923ef6cee..6bbdf333e387 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-stop.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-stop.json @@ -10,4 +10,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-update.json index c0e8fd319d63..b31956ab3f91 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/streamingendpoint-update.json @@ -79,4 +79,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-create.json index 43271891927c..6cf758172436 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-create.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-delete.json index 35c7f090b821..61d0634926bc 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-get-by-name.json index 348878740740..43cb10cae8a2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-get-by-name.json @@ -31,4 +31,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-list-all.json index 5dea1ab618ac..38c68e78c16e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-list-all.json @@ -62,4 +62,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-update.json index 109314fe7765..21038d3bb833 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/examples/transforms-update.json @@ -47,4 +47,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/streamingservice.json index 7b8f3c334c1c..30b837f363eb 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/streamingservice.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-03-30-preview/streamingservice.json @@ -700,7 +700,7 @@ "List all StreamingEndpoints": { "$ref": "examples/streamingendpoint-list-all.json" } - } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { @@ -812,7 +812,7 @@ "Create a StreamingEndpoint": { "$ref": "examples/streamingendpoint-create.json" } - } + } }, "patch": { "tags": [ @@ -1046,7 +1046,7 @@ "description": "StreamingEndpoint scale parameters", "in": "body", "required": true, - "schema": { + "schema": { "$ref": "#/definitions/StreamingEntityScaleUnit" } } @@ -1054,7 +1054,7 @@ "responses": { "200": { "description": "OK. The request has succeeded." - }, + }, "202": { "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." }, @@ -1086,7 +1086,10 @@ "description": "The HLS configuration." }, "LiveOutputProperties": { - "required": ["assetName","archiveWindowLength"], + "required": [ + "assetName", + "archiveWindowLength" + ], "properties": { "description": { "type": "string", @@ -1200,7 +1203,9 @@ "description": "The Live Event endpoint." }, "LiveEventInput": { - "required": ["streamingProtocol"], + "required": [ + "streamingProtocol" + ], "properties": { "streamingProtocol": { "type": "string", @@ -1341,7 +1346,9 @@ "description": "The LiveEvent action input parameter definition." }, "LiveEventProperties": { - "required": ["input"], + "required": [ + "input" + ], "properties": { "description": { "type": "string", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Accounts.json index 0571041d0296..a0504dd205c2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Accounts.json @@ -777,4 +777,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Assets.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Assets.json index 9026f24d46ad..9b121cbfffe2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Assets.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Assets.json @@ -641,4 +641,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Common.json index b5f79e9a09f1..8163d87ee174 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Common.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Common.json @@ -77,4 +77,4 @@ ] } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/ContentKeyPolicies.json index fbd29107a954..bd5e75a8489e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/ContentKeyPolicies.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/ContentKeyPolicies.json @@ -1165,4 +1165,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Encoding.json index 9b89b0e92ca5..9da7a568fcf5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Encoding.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/Encoding.json @@ -2188,4 +2188,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/StreamingPoliciesAndStreamingLocators.json index 1732f0fa3e65..8f12d0b43965 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/StreamingPoliciesAndStreamingLocators.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/StreamingPoliciesAndStreamingLocators.json @@ -1278,4 +1278,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-check-name-availability.json index c4d155d2e2d0..4854b4fa231c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-check-name-availability.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-check-name-availability.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-create.json index a07945d423e8..fab4f55bf8a7 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-create.json @@ -62,6 +62,6 @@ ] } } - } + } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-delete.json index 013be2cb9959..b30b0511bb70 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-delete.json @@ -8,4 +8,4 @@ "responses": { "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-get-by-name.json index e095ffaaeb46..237fd02f35dc 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-get-by-name.json @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-list-all-accounts.json index 1f3402d2111c..fa0263497644 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-list-all-accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-list-all-accounts.json @@ -50,4 +50,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-subscription-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-subscription-get-by-name.json index dcdb73b08a18..ac3469354d4a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-subscription-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-subscription-get-by-name.json @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-subscription-list-all-accounts.json index 1589d46d80f1..01de2d995eb2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-subscription-list-all-accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-subscription-list-all-accounts.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-sync-storage-keys.json index b7a116ae3766..6b0ca53a8b8f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-sync-storage-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-sync-storage-keys.json @@ -11,4 +11,4 @@ "responses": { "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-update.json index 0beb3a4f9ad0..eb87fb24aea6 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/accounts-update.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-create.json index a61e1e8aac85..1ac2bb045cd9 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-create.json @@ -48,4 +48,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-delete.json index 9911dace2279..cf58e37bd9cc 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-get-by-name.json index f1d65ce5bfe6..1e951cad5ef9 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-get-by-name.json @@ -26,4 +26,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-get-encryption-keys.json index 636528ef24de..3f9457b8de36 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-get-encryption-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-get-encryption-keys.json @@ -13,4 +13,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-all.json index 79e3aa6a38ec..992f1cf1c222 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-all.json @@ -73,4 +73,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-by-date.json index 5e7189e5e1aa..c92a141c786d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-by-date.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-by-date.json @@ -74,4 +74,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-in-date-range.json index 80afef55c969..5eda82aec2b3 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-in-date-range.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-in-date-range.json @@ -45,4 +45,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-sas-urls.json index fbf0ccb18508..f8b262a1c7bc 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-sas-urls.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-list-sas-urls.json @@ -20,4 +20,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-update.json index d86cf01440d8..43204ab84872 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/assets-update.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-multiple-options.json index db98a8275870..529fe3b583fe 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-multiple-options.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-multiple-options.json @@ -133,4 +133,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-nodrm-token.json index c4d93e6c4857..82c9ea28c525 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-nodrm-token.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-nodrm-token.json @@ -101,4 +101,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-playready-open.json index 4a5c5ecc3e84..244ebd5a0718 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-playready-open.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-playready-open.json @@ -154,4 +154,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-widevine-token.json index a749d7e2a053..f27d4a2e2c2b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-widevine-token.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-create-widevine-token.json @@ -123,4 +123,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-delete.json index 7a56da4ed983..25ee061d3780 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-get-by-name.json index 006e7ff3d0a5..265a07bdb845 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-get-by-name.json @@ -64,4 +64,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-get-with-secrets.json index 3f71f2d56986..9c60480b911d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-get-with-secrets.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-get-with-secrets.json @@ -59,4 +59,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-list-all.json index 3a77fb2f317e..6368211a5bbf 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-list-all.json @@ -162,4 +162,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-list-by-lastModified.json index d5f52a4a9601..fc542affee4d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-list-by-lastModified.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-list-by-lastModified.json @@ -163,4 +163,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-list-in-date-range.json index a06a45cfa1f3..17bcbe59aca4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-list-in-date-range.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-list-in-date-range.json @@ -13,4 +13,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-update.json index 4c46b1735b58..fa114e545910 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/content-key-policies-update.json @@ -49,4 +49,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-cancel.json index 7a80feb79c4b..9ce3cd1e845b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-cancel.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-cancel.json @@ -10,4 +10,4 @@ "responses": { "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-create.json index 43b43b964fb1..2bb32ed6bd2c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-create.json @@ -53,4 +53,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-delete.json index 3abfca49aa8e..1f60565c8c24 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-delete.json @@ -11,4 +11,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-get-by-name.json index c9685745227e..b916dc8b42f5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-get-by-name.json @@ -46,4 +46,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-list-all.json index 62c223520a2c..891fd89ec930 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/jobs-list-all.json @@ -116,4 +116,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-create.json index 2ecef28601e3..41e6b6c5cac9 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-create.json @@ -139,4 +139,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-delete.json index 4fa2565c2920..628fb07fe2f8 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-delete.json @@ -6,7 +6,7 @@ "liveEventName": "myLiveEvent1", "api-version": "2018-06-01-preview", "parameters": { - "Id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", "Name": "myLiveEvent1", "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", "Location": "West US", @@ -16,7 +16,7 @@ "tag2": "value2" } }, - "Properties": { + "properties": { "Description": "test event updated", "Input": { "StreamingProtocol": "FragmentedMP4", @@ -38,7 +38,7 @@ } }, "PreviewLocator": null, - "StreamingPolicyName": null + "streamingPolicyName": null }, "Encoding": { "EncodingType": "None", @@ -59,4 +59,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-list-all.json index 54d4d9242136..e79e94944d26 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-list-all.json @@ -72,4 +72,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-list-by-name.json index 52d683ac3c20..d6adcd0782dd 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-list-by-name.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-reset.json index 03df7fcc6963..2dda81cb0189 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-reset.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-reset.json @@ -10,4 +10,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-start.json index 03df7fcc6963..2dda81cb0189 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-start.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-start.json @@ -10,4 +10,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-stop.json index 7d4f7edbb688..4a44932b9ece 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-stop.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-stop.json @@ -13,4 +13,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-update.json index 516aa9233361..9bface3db543 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveevent-update.json @@ -134,4 +134,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-create.json index b9ddd9ceec43..17a7865f1317 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-create.json @@ -62,4 +62,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-delete.json index d95aec17f1b5..748f3ea3f5db 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-delete.json @@ -12,4 +12,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-list-all.json index 36db1ae31638..812a52c1f1e9 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-list-all.json @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-list-by-name.json index 0f2f40e1f579..d50b7c253bc1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/liveoutput-list-by-name.json @@ -31,4 +31,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/operations-list-all.json index 26e68293f502..2ac2230b88f8 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/operations-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/operations-list-all.json @@ -498,4 +498,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-create-clear.json index 0e11d877520b..1b30017fdb61 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-create-clear.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-create-clear.json @@ -7,8 +7,8 @@ "api-version": "2018-06-01-preview", "parameters": { "properties": { - "StreamingPolicyName": "clearStreamingPolicy", - "AssetName": "ClimbingMountRainier" + "streamingPolicyName": "clearStreamingPolicy", + "assetName": "ClimbingMountRainier" } } }, @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json index 3cbab7cf9583..7a698a948e2f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json @@ -9,22 +9,22 @@ "properties": { "assetName": "ClimbingMountRainier", "streamingPolicyName": "secureStreamingPolicy", - "StreamingLocatorId": "90000000-0000-0000-0000-00000000000A", - "ContentKeys": [ + "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", + "contentKeys": [ { - "Label": "aesDefaultKey", - "Id": "60000000-0000-0000-0000-000000000001", - "Value": "1UqLohAfWsEGkULYxHjYZg==" + "label": "aesDefaultKey", + "id": "60000000-0000-0000-0000-000000000001", + "value": "1UqLohAfWsEGkULYxHjYZg==" }, { - "Label": "cencDefaultKey", - "Id": "60000000-0000-0000-0000-000000000004", - "Value": "4UqLohAfWsEGkULYxHjYZg==" + "label": "cencDefaultKey", + "id": "60000000-0000-0000-0000-000000000004", + "value": "4UqLohAfWsEGkULYxHjYZg==" }, { - "Label": "cbcsDefaultKey", - "Id": "60000000-0000-0000-0000-000000000007", - "Value": "7UqLohAfWsEGkULYxHjYZg==" + "label": "cbcsDefaultKey", + "id": "60000000-0000-0000-0000-000000000007", + "value": "7UqLohAfWsEGkULYxHjYZg==" } ] } @@ -75,4 +75,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-create-secure.json index c98cae2f9386..07a624a1a49d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-create-secure.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-create-secure.json @@ -7,10 +7,10 @@ "api-version": "2018-06-01-preview", "parameters": { "properties": { - "StreamingPolicyName": "secureStreamingPolicy", - "AssetName": "ClimbingMountRainier", - "StartTime": "2018-03-01T00:00:00Z", - "EndTime": "2028-12-31T23:59:59.9999999Z" + "streamingPolicyName": "secureStreamingPolicy", + "assetName": "ClimbingMountRainier", + "startTime": "2018-03-01T00:00:00Z", + "endTime": "2028-12-31T23:59:59.9999999Z" } } }, @@ -59,4 +59,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-delete.json index 103ee8162976..0b0b93feb238 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-get-by-name.json index 7cf317734fa0..297a80f7ba82 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-get-by-name.json @@ -27,4 +27,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list-content-keys.json index 3cea4f5a0e46..f9fa9e32c525 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list-content-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list-content-keys.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-and-download.json index e3ce4ad16047..180a24a42e6f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-and-download.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-and-download.json @@ -47,4 +47,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-only.json index e598f984f93d..4001cdfc59a8 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-only.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list.json index 3fe5359b9a4d..818a66cca260 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-locators-list.json @@ -45,4 +45,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-clear.json index 3abecb479631..6023a1a392bd 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-clear.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-clear.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json index d15e58b288eb..07c96dca1068 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json @@ -70,4 +70,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json index f874620125b1..faa38a52d4e0 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json @@ -95,4 +95,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-envelopeEncryption-only.json index b300ca3fe7a6..0bcf3b1898a8 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-envelopeEncryption-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-envelopeEncryption-only.json @@ -57,4 +57,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-secure-streaming.json index adab37a61e20..15bd4f179724 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-secure-streaming.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-create-secure-streaming.json @@ -167,4 +167,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-delete.json index 8fc0c1a0349a..7208ad95601d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-list.json index 64d265289d93..53b9a43c944c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policies-list.json @@ -232,4 +232,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policy-get-by-name.json index b90bdad10ff2..497091d9dc6b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policy-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streaming-policy-get-by-name.json @@ -31,4 +31,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-create.json index d336524c9417..0dcd0fdadb19 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-create.json @@ -154,4 +154,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-delete.json index fc2f1ee3d946..7148c5546afe 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-delete.json @@ -6,7 +6,7 @@ "streamingEndpointName": "myStreamingEndpoint1", "api-version": "2018-06-01-preview", "parameters": { - "Id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", "Name": "myStreamingEndpoint1", "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", "Location": "West US", @@ -16,7 +16,7 @@ "tag2": "value2" } }, - "Properties": { + "properties": { "Description": "test event 1", "ScaleUnits": 1, "AccessControl": null, @@ -41,4 +41,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-list-all.json index 85a9badc34a7..6133ddb6391f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-list-all.json @@ -62,4 +62,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-list-by-name.json index 1f9dbdce3552..c53f4fc3bbe4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-list-by-name.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-scale.json index bb3194bc81a8..a175800afb0b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-scale.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-scale.json @@ -13,4 +13,4 @@ "200": {}, "202": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-start.json index b960e18206f5..4bdabc55baa2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-start.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-start.json @@ -10,4 +10,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-stop.json index b960e18206f5..4bdabc55baa2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-stop.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-stop.json @@ -10,4 +10,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-update.json index a22f51b3657b..7359529c5d4c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/streamingendpoint-update.json @@ -79,4 +79,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-create.json index cfb560f28e43..2a70fe190934 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-create.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-delete.json index 407300c86a51..51179fa69b98 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-get-by-name.json index 1191595b52bb..e55f2a349995 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-get-by-name.json @@ -31,4 +31,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-list-all.json index 87167e023f06..a13c5e01f038 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-list-all.json @@ -62,4 +62,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-update.json index 0e244b8bf60c..2e6d19f48549 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/examples/transforms-update.json @@ -47,4 +47,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/streamingservice.json index 8de9f4a1b6bc..258578eb9c4e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/streamingservice.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2018-06-01-preview/streamingservice.json @@ -700,7 +700,7 @@ "List all StreamingEndpoints": { "$ref": "examples/streamingendpoint-list-all.json" } - } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { @@ -812,7 +812,7 @@ "Create a StreamingEndpoint": { "$ref": "examples/streamingendpoint-create.json" } - } + } }, "patch": { "tags": [ @@ -1046,7 +1046,7 @@ "description": "StreamingEndpoint scale parameters", "in": "body", "required": true, - "schema": { + "schema": { "$ref": "#/definitions/StreamingEntityScaleUnit" } } @@ -1054,7 +1054,7 @@ "responses": { "200": { "description": "OK. The request has succeeded." - }, + }, "202": { "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." }, @@ -1086,7 +1086,10 @@ "description": "The HLS configuration." }, "LiveOutputProperties": { - "required": ["assetName","archiveWindowLength"], + "required": [ + "assetName", + "archiveWindowLength" + ], "properties": { "description": { "type": "string", @@ -1200,7 +1203,9 @@ "description": "The Live Event endpoint." }, "LiveEventInput": { - "required": ["streamingProtocol"], + "required": [ + "streamingProtocol" + ], "properties": { "streamingProtocol": { "type": "string", @@ -1345,7 +1350,9 @@ "description": "The LiveEvent action input parameter definition." }, "LiveEventProperties": { - "required": ["input"], + "required": [ + "input" + ], "properties": { "description": { "type": "string", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/AccountFilters.json index 47d6c3492b06..8c9aa5b7f511 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/AccountFilters.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/AccountFilters.json @@ -546,4 +546,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/Accounts.json index ed122a0cce52..6400418515d4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/Accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/Accounts.json @@ -920,4 +920,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/AssetsAndAssetFilters.json index d59d4c3a1951..eb9403081237 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/AssetsAndAssetFilters.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/AssetsAndAssetFilters.json @@ -1270,4 +1270,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/ContentKeyPolicies.json index ad4c13194592..2df77971fd91 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/ContentKeyPolicies.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/ContentKeyPolicies.json @@ -8,7 +8,7 @@ "description": "This Swagger was generated by the API Framework.", "version": "2018-07-01" }, - "host": "management.azure.com", + "host": "management.azure.com", "consumes": [ "application/json" ], @@ -1165,4 +1165,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/Encoding.json index a28c0a8abdb8..2e56502e0079 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/Encoding.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/Encoding.json @@ -2398,4 +2398,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/StreamingPoliciesAndStreamingLocators.json index a2dafe7e44d4..a08ee4ec0a75 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/StreamingPoliciesAndStreamingLocators.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/StreamingPoliciesAndStreamingLocators.json @@ -1286,4 +1286,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/content-key-policies-create-multiple-options.json index 6c16d2e0f75a..1106df0390d4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/content-key-policies-create-multiple-options.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/content-key-policies-create-multiple-options.json @@ -128,7 +128,7 @@ } ] } - } + } } } } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/content-key-policies-create-playready-open.json index d2177b3b804a..f3a08ef8e1b0 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/content-key-policies-create-playready-open.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/content-key-policies-create-playready-open.json @@ -129,4 +129,3 @@ } } } - diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/liveevent-delete.json index 76f800375bfa..fde89a247eab 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/liveevent-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/liveevent-delete.json @@ -6,7 +6,7 @@ "liveEventName": "myLiveEvent1", "api-version": "2018-07-01", "parameters": { - "Id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", "Name": "myLiveEvent1", "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", "Location": "West US", @@ -16,7 +16,7 @@ "tag2": "value2" } }, - "Properties": { + "properties": { "Description": "test event updated", "Input": { "StreamingProtocol": "FragmentedMP4", @@ -38,7 +38,7 @@ } }, "PreviewLocator": null, - "StreamingPolicyName": null + "streamingPolicyName": null }, "Encoding": { "EncodingType": "None", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json index ead22b5064a0..d8740a7b20e7 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json @@ -67,4 +67,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/streaming-locators-create-secure.json index a3d8d8279ccf..3d973264ab34 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/streaming-locators-create-secure.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/streaming-locators-create-secure.json @@ -53,4 +53,3 @@ } } } - diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/streamingendpoint-delete.json index b78b3322644f..40c287acc475 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/streamingendpoint-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/streamingendpoint-delete.json @@ -6,7 +6,7 @@ "streamingEndpointName": "myStreamingEndpoint1", "api-version": "2018-07-01", "parameters": { - "Id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", "Name": "myStreamingEndpoint1", "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", "Location": "West US", @@ -16,7 +16,7 @@ "tag2": "value2" } }, - "Properties": { + "properties": { "Description": "test event 1", "ScaleUnits": 1, "AccessControl": null, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/transforms-create.json index ef297c226a2e..5ea5b1612e7f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/transforms-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/transforms-create.json @@ -65,4 +65,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/transforms-update.json index c816fe71ced2..8fd9e83f3250 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/transforms-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/examples/transforms-update.json @@ -44,4 +44,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/streamingservice.json index ac213c96b864..26c4772ce123 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/streamingservice.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/streamingservice.json @@ -700,7 +700,7 @@ "List all StreamingEndpoints": { "$ref": "examples/streamingendpoint-list-all.json" } - } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { @@ -812,7 +812,7 @@ "Create a StreamingEndpoint": { "$ref": "examples/streamingendpoint-create.json" } - } + } }, "patch": { "tags": [ @@ -1046,7 +1046,7 @@ "description": "StreamingEndpoint scale parameters", "in": "body", "required": true, - "schema": { + "schema": { "$ref": "#/definitions/StreamingEntityScaleUnit" } } @@ -1054,7 +1054,7 @@ "responses": { "200": { "description": "OK. The request has succeeded." - }, + }, "202": { "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." }, @@ -1086,7 +1086,10 @@ "description": "The HLS configuration." }, "LiveOutputProperties": { - "required": [ "assetName", "archiveWindowLength" ], + "required": [ + "assetName", + "archiveWindowLength" + ], "properties": { "description": { "type": "string", @@ -1210,7 +1213,9 @@ "description": "The IP access control for Live Event Input." }, "LiveEventInput": { - "required": [ "streamingProtocol" ], + "required": [ + "streamingProtocol" + ], "properties": { "streamingProtocol": { "type": "string", @@ -1357,7 +1362,9 @@ "description": "A track selection condition." }, "LiveEventOutputTranscriptionTrack": { - "required": [ "trackName" ], + "required": [ + "trackName" + ], "properties": { "trackName": { "type": "string", @@ -1410,7 +1417,9 @@ "description": "The LiveEvent action input parameter definition." }, "LiveEventProperties": { - "required": [ "input" ], + "required": [ + "input" + ], "properties": { "description": { "type": "string", @@ -1591,7 +1600,9 @@ "description": "scale units definition" }, "StreamingEndpointProperties": { - "required": [ "scaleUnits" ], + "required": [ + "scaleUnits" + ], "properties": { "description": { "type": "string", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceCheckNameAvailability.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceCheckNameAvailability.json index fd1064c21bc5..08dbdd4508df 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceCheckNameAvailability.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceCheckNameAvailability.json @@ -16,4 +16,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceCreate.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceCreate.json index b859bba032f3..0831e46e7254 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceCreate.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceCreate.json @@ -7,7 +7,7 @@ "parameters": { "location": "West US", "properties": { - "storageAccounts": [ + "storageAccounts": [ { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore", "isPrimary": true @@ -15,13 +15,13 @@ ] } } - }, + }, "responses": { "201": { "body": { "location": "West US", "properties": { - "storageAccounts": [ + "storageAccounts": [ { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore", "isPrimary": true @@ -32,4 +32,3 @@ } } } - diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceDelete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceDelete.json index 29e5ea14f3d3..696949aa4ed5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceDelete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceDelete.json @@ -6,12 +6,7 @@ "api-version": "2015-10-01" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } - diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceGet.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceGet.json index 589d3618bc9f..e20b0079f804 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceGet.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceGet.json @@ -11,7 +11,7 @@ "name": "contosmedia", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosoresources/providers/Microsoft.Media/mediaservices/contosmedia", "type": "Microsoft.Media/mediaservices", - "tags": [], + "tags": {}, "location": "East US", "properties": { "apiEndpoints": [ @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceListByResourceGroup.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceListByResourceGroup.json index 5f1f3b9a468e..e63b42baf399 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceListByResourceGroup.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceListByResourceGroup.json @@ -12,7 +12,7 @@ "name": "contosmedia", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosoresources/providers/Microsoft.Media/mediaservices/contosmedia", "type": "Microsoft.Media/mediaservices", - "tags": [], + "tags": {}, "location": "East US", "properties": { "apiEndpoints": [ @@ -33,7 +33,7 @@ "name": "contosmedia2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosoresources/providers/Microsoft.Media/mediaservices/contosmedia2", "type": "Microsoft.Media/mediaservices", - "tags": [], + "tags": {}, "location": "West US", "properties": { "apiEndpoints": [ @@ -54,4 +54,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceListKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceListKeys.json index 111b60e1d127..9952ebf32be2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceListKeys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceListKeys.json @@ -16,4 +16,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceRegenerateKey.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceRegenerateKey.json index 65e2f4ef9fe5..2101656df90b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceRegenerateKey.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceRegenerateKey.json @@ -7,13 +7,12 @@ "parameters": { "keyType": "Primary" } - }, + }, "responses": { "200": { "body": { - "key":"" + "key": "" } } } } - diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceSyncStorageKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceSyncStorageKeys.json index 1e8d17789fc8..7888f9c85b92 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceSyncStorageKeys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceSyncStorageKeys.json @@ -7,11 +7,8 @@ "parameters": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore" } - }, + }, "responses": { - "200": { - "body": "" - } + "200": {} } } - diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceUpdate.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceUpdate.json index 225fc4e84743..e09a1ff1182d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceUpdate.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/MediaServiceUpdate.json @@ -7,7 +7,7 @@ "parameters": { "location": "West US", "properties": { - "storageAccounts": [ + "storageAccounts": [ { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore", "isPrimary": true @@ -15,13 +15,13 @@ ] } } - }, + }, "responses": { "200": { "body": { "location": "West US", "properties": { - "storageAccounts": [ + "storageAccounts": [ { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore", "isPrimary": true @@ -32,4 +32,3 @@ } } } - diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/OperationsList.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/OperationsList.json index 275347bc21bc..37c0d04d1ba1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/OperationsList.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/examples/OperationsList.json @@ -58,4 +58,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/media.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/media.json index 0dd24421734d..c067803e10d5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/media.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2015-10-01/media.json @@ -42,7 +42,9 @@ "url": "https://aka.ms/media-manage" }, "x-ms-examples": { - "OperationsList": { "$ref": "./examples/OperationsList.json" } + "OperationsList": { + "$ref": "./examples/OperationsList.json" + } }, "parameters": [ { @@ -67,7 +69,9 @@ "url": "https://aka.ms/media-manage" }, "x-ms-examples": { - "MediaServiceCheckNameAvailability": { "$ref": "./examples/MediaServiceCheckNameAvailability.json" } + "MediaServiceCheckNameAvailability": { + "$ref": "./examples/MediaServiceCheckNameAvailability.json" + } }, "parameters": [ { @@ -92,12 +96,12 @@ "schema": { "$ref": "#/definitions/CheckNameAvailabilityOutput" }, - "examples": { + "examples": { "application/json": { "nameAvailable": false, "reason": "AlreadyExists", "message": "Already in use by another Media Service instance. Please try again with a name that is not likely to be in use." - } + } } }, "default": { @@ -117,7 +121,9 @@ "url": "https://aka.ms/media-manage" }, "x-ms-examples": { - "MediaServiceListByResourceGroup": { "$ref": "./examples/MediaServiceListByResourceGroup.json" } + "MediaServiceListByResourceGroup": { + "$ref": "./examples/MediaServiceListByResourceGroup.json" + } }, "parameters": [ { @@ -129,7 +135,7 @@ { "$ref": "#/parameters/resourceGroupNameParameter" } - ], + ], "responses": { "200": { "description": "Success. Returns a list of all of the Media Services accounts in a resource group.", @@ -144,15 +150,15 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia", "type": "Microsoft.Media/mediaservices", "location": "West US", - "properties":{ - "apiEndpoints":[ - { + "properties": { + "apiEndpoints": [ + { "endpoint": "https://wamsbayclus001rest-hs.cloudapp.net/api/", "majorVersion": "2" } ], - "storageAccounts":[ - { + "storageAccounts": [ + { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosomedia", "isPrimary": true } @@ -171,7 +177,7 @@ } }, "x-ms-pageable": { - "nextLinkName": null + "nextLinkName": null } } }, @@ -183,7 +189,9 @@ "url": "https://aka.ms/media-manage" }, "x-ms-examples": { - "MediaServiceGet": { "$ref": "./examples/MediaServiceGet.json" } + "MediaServiceGet": { + "$ref": "./examples/MediaServiceGet.json" + } }, "parameters": [ { @@ -205,27 +213,27 @@ "schema": { "$ref": "#/definitions/MediaService" }, - "examples" : { + "examples": { "application/json": { "name": "contosomedia", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia", "type": "Microsoft.Media/mediaservices", "location": "West US", - "properties":{ - "apiEndpoints":[ - { + "properties": { + "apiEndpoints": [ + { "endpoint": "https://wamsbayclus001rest-hs.cloudapp.net/api/", "majorVersion": "2" } ], - "storageAccounts":[ - { + "storageAccounts": [ + { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosomedia", "isPrimary": true } ] } - } + } } }, "default": { @@ -243,7 +251,9 @@ "url": "https://aka.ms/media-manage" }, "x-ms-examples": { - "MediaServiceCreate": { "$ref": "./examples/MediaServiceCreate.json" } + "MediaServiceCreate": { + "$ref": "./examples/MediaServiceCreate.json" + } }, "parameters": [ { @@ -274,27 +284,27 @@ "schema": { "$ref": "#/definitions/MediaService" }, - "examples" : { + "examples": { "application/json": { "name": "contosomedia", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia", "type": "Microsoft.Media/mediaservices", "location": "West US", - "properties":{ - "apiEndpoints":[ - { + "properties": { + "apiEndpoints": [ + { "endpoint": "https://wamsbayclus001rest-hs.cloudapp.net/api/", "majorVersion": "2" } ], - "storageAccounts":[ - { + "storageAccounts": [ + { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosomedia", "isPrimary": true } ] } - } + } } }, "default": { @@ -312,7 +322,9 @@ "url": "https://aka.ms/media-manage" }, "x-ms-examples": { - "MediaServiceDelete": { "$ref": "./examples/MediaServiceDelete.json" } + "MediaServiceDelete": { + "$ref": "./examples/MediaServiceDelete.json" + } }, "parameters": [ { @@ -350,7 +362,9 @@ "url": "https://aka.ms/media-manage" }, "x-ms-examples": { - "MediaServiceUpdate": { "$ref": "./examples/MediaServiceUpdate.json" } + "MediaServiceUpdate": { + "$ref": "./examples/MediaServiceUpdate.json" + } }, "parameters": [ { @@ -381,26 +395,26 @@ "schema": { "$ref": "#/definitions/MediaService" }, - "examples" : { + "examples": { "application/json": { "name": "contosomedia", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia", "type": "Microsoft.Media/mediaservices", "location": "West US", - "properties":{ - "apiEndpoints":[ - { + "properties": { + "apiEndpoints": [ + { "endpoint": "https://wamsbayclus001rest-hs.cloudapp.net/api/", "majorVersion": "2" } ], - "storageAccounts":[ - { + "storageAccounts": [ + { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosomedia", "isPrimary": true } ] - } + } } } }, @@ -421,7 +435,9 @@ "url": "https://aka.ms/media-manage" }, "x-ms-examples": { - "MediaServiceRegenerateKey": { "$ref": "./examples/MediaServiceRegenerateKey.json" } + "MediaServiceRegenerateKey": { + "$ref": "./examples/MediaServiceRegenerateKey.json" + } }, "parameters": [ { @@ -455,7 +471,7 @@ "examples": { "application/json": { "key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=" - } + } } }, "default": { @@ -475,7 +491,9 @@ "url": "https://aka.ms/media-manage" }, "x-ms-examples": { - "MediaServiceListKeys": { "$ref": "./examples/MediaServiceListKeys.json" } + "MediaServiceListKeys": { + "$ref": "./examples/MediaServiceListKeys.json" + } }, "parameters": [ { @@ -497,14 +515,14 @@ "schema": { "$ref": "#/definitions/ServiceKeys" }, - "examples":{ + "examples": { "application/json": { "primaryAuthEndpoint": "https://wamsprodglobal001acs.accesscontrol.windows.net/", "secondaryAuthEndpoint": "https://wamsprodglobal002acs.accesscontrol.windows.net/", "primaryKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=", "secondaryKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=", "scope": "urn:windowsazuremediaservices" - } + } } }, "default": { @@ -524,7 +542,9 @@ "url": "https://aka.ms/media-manage" }, "x-ms-examples": { - "MediaServiceSyncStorageKeys": { "$ref": "./examples/MediaServiceSyncStorageKeys.json" } + "MediaServiceSyncStorageKeys": { + "$ref": "./examples/MediaServiceSyncStorageKeys.json" + } }, "parameters": [ { @@ -566,9 +586,9 @@ "definitions": { "ApiEndpoint": { "description": "The properties for a Media Services REST API endpoint.", - "example": { - "endpoint":"https://wamsbayclus001rest-hs.cloudapp.net/api/", - "majorVersion":"2" + "example": { + "endpoint": "https://wamsbayclus001rest-hs.cloudapp.net/api/", + "majorVersion": "2" }, "properties": { "endpoint": { @@ -603,8 +623,8 @@ "CheckNameAvailabilityInput": { "description": "The request body for CheckNameAvailability API.", "example": { - "name":"contosomedia", - "type":"mediaservices" + "name": "contosomedia", + "type": "mediaservices" }, "required": [ "name", @@ -634,7 +654,7 @@ "name": "ResourceType", "modelAsString": false } - }, + }, "CheckNameAvailabilityOutput": { "description": "The response body for CheckNameAvailability API.", "properties": { @@ -653,7 +673,7 @@ "x-ms-enum": { "name": "EntityNameUnavailabilityReason", "modelAsString": false - } + } }, "message": { "description": "Specifies the detailed reason if the name is not available.", @@ -730,21 +750,21 @@ "type": "string", "enum": [ "Primary", - "Secondary" + "Secondary" ], "x-ms-enum": { "name": "KeyType", "modelAsString": false - } + } } }, "required": [ - "keyType" + "keyType" ] }, "RegenerateKeyOutput": { "description": "The response body for a RegenerateKey API.", - "example": { + "example": { "key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=" }, "properties": { @@ -820,7 +840,7 @@ }, "StorageAccount": { "description": "The properties of a storage account associated with this resource.", - "example": { + "example": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosomedia", "isPrimary": true }, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/AccountFilters.json index 47d6c3492b06..8c9aa5b7f511 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/AccountFilters.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/AccountFilters.json @@ -546,4 +546,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} 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 ed122a0cce52..6400418515d4 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 @@ -920,4 +920,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/AssetsAndAssetFilters.json index d59d4c3a1951..eb9403081237 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/AssetsAndAssetFilters.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/AssetsAndAssetFilters.json @@ -1270,4 +1270,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/Common.json index bea6dd7c7650..8ffd3bd1f71a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/Common.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/Common.json @@ -77,4 +77,4 @@ ] } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/ContentKeyPolicies.json index 07fd4ab4bdb3..2df77971fd91 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/ContentKeyPolicies.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/ContentKeyPolicies.json @@ -1165,4 +1165,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/Encoding.json index e2ec28beee5d..963de86b4961 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/Encoding.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/Encoding.json @@ -2398,4 +2398,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json index a2dafe7e44d4..a08ee4ec0a75 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json @@ -1286,4 +1286,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-create.json index a89bb51d57ef..198bf61098d8 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-create.json @@ -168,4 +168,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-delete.json index 793540fdf8ba..ad07ff6d257e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-get-by-name.json index 3930e4f6ce69..693f7cbc5eea 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-get-by-name.json @@ -53,4 +53,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-list-all.json index edd40e995724..eacdfbbec53a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-list-all.json @@ -108,4 +108,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-update.json index ff59b2d69427..d91cf8217184 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accountFilters-update.json @@ -78,4 +78,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-check-name-availability.json index 8ac886e3a539..4ef7fa721199 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-check-name-availability.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-check-name-availability.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-create.json index f15582ffd7a2..3451dc6b0572 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-create.json @@ -64,4 +64,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-delete.json index a20c9a79c353..c881a84854c0 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-delete.json @@ -8,4 +8,4 @@ "responses": { "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-get-by-name.json index b8ebb47bccd7..4ae9745f6b2a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-get-by-name.json @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-list-all-accounts.json index bc61d392b902..2f59e9cae5ef 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-list-all-accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-list-all-accounts.json @@ -50,4 +50,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-subscription-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-subscription-get-by-name.json index d4a79fb8bd03..665c0edcd6bc 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-subscription-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-subscription-get-by-name.json @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-subscription-list-all-accounts.json index 633ec2d3a5e2..07e64ecaadba 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-subscription-list-all-accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-subscription-list-all-accounts.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-sync-storage-keys.json index 14c63c725d94..ea9b54b7ffd8 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-sync-storage-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-sync-storage-keys.json @@ -11,4 +11,4 @@ "responses": { "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-update.json index 0d5093206a74..0d4396b72abe 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-update.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-create.json index 84dea565f6ba..9784120409d5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-create.json @@ -169,4 +169,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-delete.json index e36fd253a836..3b890a6f7ccc 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-delete.json @@ -11,4 +11,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-get-by-name.json index 6e6d6696391e..8eaed610e85d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-get-by-name.json @@ -65,4 +65,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-list-all.json index 8c2cd9a680c2..aa9981050b68 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-list-all.json @@ -128,4 +128,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-update.json index 224f2cf3183a..42832ec0e80d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assetFilters-update.json @@ -79,4 +79,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-create.json index 7e9b78dea5b6..431c93bdb73e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-create.json @@ -46,4 +46,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-delete.json index 7988e4a683c1..3661cae3e441 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-get-by-name.json index da24748b30f5..cc427282d0fa 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-get-by-name.json @@ -25,4 +25,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-get-encryption-keys.json index c4a5e5a54004..c7c3f3fa0606 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-get-encryption-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-get-encryption-keys.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-all.json index ebb39fb6dfe1..714dd42b6137 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-all.json @@ -98,4 +98,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-by-date.json index efb131fe71fb..a2a1cba3d82f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-by-date.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-by-date.json @@ -99,4 +99,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-in-date-range.json index 2363fe29859c..9cc1ef62ea2a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-in-date-range.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-in-date-range.json @@ -57,4 +57,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-sas-urls.json index 07f2117528d4..f861fd39b54b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-sas-urls.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-sas-urls.json @@ -20,4 +20,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-streaming-locators.json index 242504bc435c..3646044598cc 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-streaming-locators.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-list-streaming-locators.json @@ -30,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-update.json index e55650b58f63..aa8743214b59 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/assets-update.json @@ -29,4 +29,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-multiple-options.json index 94709fc604f6..1106df0390d4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-multiple-options.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-multiple-options.json @@ -128,7 +128,7 @@ } ] } - } + } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-nodrm-token.json index 2aeafe202a08..7395f4a1b42e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-nodrm-token.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-nodrm-token.json @@ -99,4 +99,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-playready-open.json index 93dad936400f..da7e946e3279 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-playready-open.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-playready-open.json @@ -128,4 +128,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-widevine-token.json index b8d4a2930768..1df5682c7cef 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-widevine-token.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-create-widevine-token.json @@ -121,4 +121,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-delete.json index c77275731aa7..7447440dc857 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-get-by-name.json index ddd9eb76e54a..250a24b9d44e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-get-by-name.json @@ -60,4 +60,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-get-with-secrets.json index f11e2b4b8b9a..9143019cbbd5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-get-with-secrets.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-get-with-secrets.json @@ -55,4 +55,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-list-all.json index 3652532bf048..750d942f695b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-list-all.json @@ -162,4 +162,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-list-by-lastModified.json index 7348534d2def..3964906825e4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-list-by-lastModified.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-list-by-lastModified.json @@ -141,4 +141,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-list-in-date-range.json index 0339c941acca..00509549496e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-list-in-date-range.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-list-in-date-range.json @@ -13,4 +13,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-update.json index 03266d7a7ba6..6ad18004d6f4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/content-key-policies-update.json @@ -49,4 +49,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-cancel.json index 9c132f7e0806..0ac966b8b75b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-cancel.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-cancel.json @@ -10,4 +10,4 @@ "responses": { "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-create.json index b525731f8d4d..5d89c32c60fa 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-create.json @@ -58,4 +58,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-delete.json index 3ddeb219ab86..6294423759db 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-delete.json @@ -11,4 +11,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-get-by-name.json index bfbee0d5ce1c..377c1d76d265 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-get-by-name.json @@ -43,4 +43,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-created.json index 395cecb25446..5edc04a19e36 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-created.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-created.json @@ -78,4 +78,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-lastmodified.json index f62722d0e0be..0e9639af32a7 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-lastmodified.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-lastmodified.json @@ -78,4 +78,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-name-and-state.json index 95975da8908e..0c04098bed7c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-name-and-state.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-name-and-state.json @@ -46,4 +46,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-name.json index 6b082f7e48d2..a1dce95541ee 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-name.json @@ -78,4 +78,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-state-eq.json index f089816e8da7..72eabbf3f41b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-state-eq.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-state-eq.json @@ -77,4 +77,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-state-ne.json index 2fef3a6c39dd..fbcaef2d9ce2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-state-ne.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all-filter-by-state-ne.json @@ -77,4 +77,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all.json index 41acda6e73f8..a389ddb0ee9c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-list-all.json @@ -107,4 +107,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-update.json index 36135ba39660..037037159cb4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/jobs-update.json @@ -49,4 +49,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-create.json index c820ed037742..b3939b4c8121 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-create.json @@ -18,7 +18,7 @@ "description": "test event 1", "input": { "streamingProtocol": "RTMP", - "keyFrameIntervalDuration": "PT2S" + "keyFrameIntervalDuration": "PT6S" }, "preview": { "accessControl": { @@ -26,7 +26,8 @@ "allow": [ { "name": "AllowAll", - "address": "0.0.0.0" + "address": "0.0.0.0", + "subnetPrefixLength": 0 } ] } @@ -69,7 +70,7 @@ { "name": "AllowAll", "address": "0.0.0.0", - "subnetPrefixLength": null + "subnetPrefixLength": 0 } ] } @@ -120,7 +121,7 @@ { "name": "AllowAll", "address": "0.0.0.0", - "subnetPrefixLength": null + "subnetPrefixLength": 0 } ] } @@ -139,4 +140,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-delete.json index a17f0b85b17a..fde89a247eab 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-delete.json @@ -6,7 +6,7 @@ "liveEventName": "myLiveEvent1", "api-version": "2018-07-01", "parameters": { - "Id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", "Name": "myLiveEvent1", "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", "Location": "West US", @@ -16,7 +16,7 @@ "tag2": "value2" } }, - "Properties": { + "properties": { "Description": "test event updated", "Input": { "StreamingProtocol": "FragmentedMP4", @@ -38,7 +38,7 @@ } }, "PreviewLocator": null, - "StreamingPolicyName": null + "streamingPolicyName": null }, "Encoding": { "EncodingType": "None", @@ -59,4 +59,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-list-all.json index 3b3e8efed9de..d37e2b9ecef1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-list-all.json @@ -46,7 +46,7 @@ { "name": "AllowAll", "address": "0.0.0.0", - "subnetPrefixLength": null + "subnetPrefixLength": 0 } ] } @@ -72,4 +72,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-list-by-name.json index 5dd282da51d8..da80ef5d0805 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-list-by-name.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-reset.json index c31b9e1a601f..d5443a60b311 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-reset.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-reset.json @@ -10,4 +10,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-start.json index c31b9e1a601f..d5443a60b311 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-start.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-start.json @@ -10,4 +10,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-stop.json index 97057f6a74ae..cdf6c800889b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-stop.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-stop.json @@ -13,4 +13,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-update.json index 39b447203ee7..29eecd3adf47 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveevent-update.json @@ -134,4 +134,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-create.json index b2a5dc1bbe42..473fa7d65cd1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-create.json @@ -62,4 +62,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-delete.json index 855a0df3eff0..7ff08e04d878 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-delete.json @@ -12,4 +12,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-list-all.json index dbfa020e3ce3..879d657299fe 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-list-all.json @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-list-by-name.json index c8db5d2b2f20..46d56644799c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/liveoutput-list-by-name.json @@ -31,4 +31,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/operations-list-all.json index 7efcb833aba6..7426d00e6230 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/operations-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/operations-list-all.json @@ -586,4 +586,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-create-clear.json index 381dffc87ad3..a5c959b6a235 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-create-clear.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-create-clear.json @@ -7,8 +7,8 @@ "api-version": "2018-07-01", "parameters": { "properties": { - "StreamingPolicyName": "clearStreamingPolicy", - "AssetName": "ClimbingMountRainier" + "streamingPolicyName": "clearStreamingPolicy", + "assetName": "ClimbingMountRainier" } } }, @@ -29,4 +29,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json index 505cd08bc772..e669d0843373 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json @@ -9,22 +9,22 @@ "properties": { "assetName": "ClimbingMountRainier", "streamingPolicyName": "secureStreamingPolicy", - "StreamingLocatorId": "90000000-0000-0000-0000-00000000000A", - "ContentKeys": [ + "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", + "contentKeys": [ { - "LabelReferenceInStreamingPolicy": "aesDefaultKey", - "Id": "60000000-0000-0000-0000-000000000001", - "Value": "1UqLohAfWsEGkULYxHjYZg==" + "labelReferenceInStreamingPolicy": "aesDefaultKey", + "id": "60000000-0000-0000-0000-000000000001", + "value": "1UqLohAfWsEGkULYxHjYZg==" }, { - "LabelReferenceInStreamingPolicy": "cencDefaultKey", - "Id": "60000000-0000-0000-0000-000000000004", - "Value": "4UqLohAfWsEGkULYxHjYZg==" + "labelReferenceInStreamingPolicy": "cencDefaultKey", + "id": "60000000-0000-0000-0000-000000000004", + "value": "4UqLohAfWsEGkULYxHjYZg==" }, { - "LabelReferenceInStreamingPolicy": "cbcsDefaultKey", - "Id": "60000000-0000-0000-0000-000000000007", - "Value": "7UqLohAfWsEGkULYxHjYZg==" + "labelReferenceInStreamingPolicy": "cbcsDefaultKey", + "id": "60000000-0000-0000-0000-000000000007", + "value": "7UqLohAfWsEGkULYxHjYZg==" } ] } @@ -66,4 +66,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-create-secure.json index 351164c1b69a..d5fdd6b06779 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-create-secure.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-create-secure.json @@ -7,10 +7,10 @@ "api-version": "2018-07-01", "parameters": { "properties": { - "StreamingPolicyName": "secureStreamingPolicy", - "AssetName": "ClimbingMountRainier", - "StartTime": "2018-03-01T00:00:00Z", - "EndTime": "2028-12-31T23:59:59.9999999Z" + "streamingPolicyName": "secureStreamingPolicy", + "assetName": "ClimbingMountRainier", + "startTime": "2018-03-01T00:00:00Z", + "endTime": "2028-12-31T23:59:59.9999999Z" } } }, @@ -51,4 +51,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-delete.json index e0ae87e60243..140630d47647 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-get-by-name.json index 2d488f5e2d62..e66ccef9dc6a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-get-by-name.json @@ -24,4 +24,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list-content-keys.json index 4306466b4ced..7ef154ff54fd 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list-content-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list-content-keys.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-and-download.json index feeb42a437c1..811f52ff50a7 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-and-download.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-and-download.json @@ -47,4 +47,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-only.json index 8dc70f7d3823..6dea46e058bd 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-only.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list.json index 6f91901c68c6..98c6f76ef174 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-locators-list.json @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-clear.json index 5532720ca129..cb5f6ccb065c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-clear.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-clear.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json index 2e4ed2ced08d..52fc0ae3126e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json @@ -64,4 +64,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCenc-only.json index 5a391d0dda07..f4b39637fd31 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCenc-only.json @@ -91,4 +91,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-envelopeEncryption-only.json index 6215adf0f6e3..dae05f33ecc1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-envelopeEncryption-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-envelopeEncryption-only.json @@ -53,4 +53,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-secure-streaming.json index c82e0156301a..ba379b251a62 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-secure-streaming.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-create-secure-streaming.json @@ -161,4 +161,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-delete.json index 402f133656ea..f7c557b72159 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-list.json index a80e669c9990..a9107e1e2bbd 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policies-list.json @@ -208,4 +208,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policy-get-by-name.json index 525db8cc0c92..e1f4eb5d3fbb 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policy-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streaming-policy-get-by-name.json @@ -27,4 +27,4 @@ }, "404": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-create.json index 7988dffd74b1..d2aa1a2e4295 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-create.json @@ -154,4 +154,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-delete.json index 632ca025edfd..40c287acc475 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-delete.json @@ -6,7 +6,7 @@ "streamingEndpointName": "myStreamingEndpoint1", "api-version": "2018-07-01", "parameters": { - "Id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", "Name": "myStreamingEndpoint1", "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", "Location": "West US", @@ -16,7 +16,7 @@ "tag2": "value2" } }, - "Properties": { + "properties": { "Description": "test event 1", "ScaleUnits": 1, "AccessControl": null, @@ -41,4 +41,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-list-all.json index db370e9e4a10..bcbc02e5185a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-list-all.json @@ -62,4 +62,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-list-by-name.json index f44064bf9904..d3194bf8ceca 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-list-by-name.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-scale.json index 6d8205f8145a..6a324b3b86b5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-scale.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-scale.json @@ -13,4 +13,4 @@ "200": {}, "202": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-start.json index cee5764636e4..0ace89511dc6 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-start.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-start.json @@ -10,4 +10,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-stop.json index cee5764636e4..0ace89511dc6 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-stop.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-stop.json @@ -10,4 +10,4 @@ "202": {}, "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-update.json index f83258256808..99d1524ebd94 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/streamingendpoint-update.json @@ -79,4 +79,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-create.json index 8c492eae7dd7..b8efcf50fa76 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-create.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-delete.json index 75397d696f65..f7377895cc28 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-delete.json @@ -10,4 +10,4 @@ "200": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-get-by-name.json index 849d964221c6..aaa70d241f27 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-get-by-name.json @@ -31,4 +31,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all-filter-by-created.json index cf729aa5a250..6e9fff4bb24f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all-filter-by-created.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all-filter-by-created.json @@ -35,4 +35,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all-filter-by-lastmodified.json index 28153774e318..7a7c451a796b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all-filter-by-lastmodified.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all-filter-by-lastmodified.json @@ -35,4 +35,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all-filter-by-name.json index 84a76f252fb5..73abc35d3eff 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all-filter-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all-filter-by-name.json @@ -63,4 +63,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all.json index 0b53d7c2160e..577b65d56e1d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-list-all.json @@ -61,4 +61,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-update.json index f299ef02994f..8676dc1745b7 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/transforms-update.json @@ -44,4 +44,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/streamingservice.json index b30ff201a412..f48e5640a176 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/streamingservice.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/streamingservice.json @@ -700,7 +700,7 @@ "List all StreamingEndpoints": { "$ref": "examples/streamingendpoint-list-all.json" } - } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { @@ -812,7 +812,7 @@ "Create a StreamingEndpoint": { "$ref": "examples/streamingendpoint-create.json" } - } + } }, "patch": { "tags": [ @@ -1046,7 +1046,7 @@ "description": "StreamingEndpoint scale parameters", "in": "body", "required": true, - "schema": { + "schema": { "$ref": "#/definitions/StreamingEntityScaleUnit" } } @@ -1054,7 +1054,7 @@ "responses": { "200": { "description": "OK. The request has succeeded." - }, + }, "202": { "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." }, @@ -1086,7 +1086,10 @@ "description": "The HLS configuration." }, "LiveOutputProperties": { - "required": ["assetName","archiveWindowLength"], + "required": [ + "assetName", + "archiveWindowLength" + ], "properties": { "description": { "type": "string", @@ -1210,7 +1213,9 @@ "description": "The IP access control for Live Event Input." }, "LiveEventInput": { - "required": ["streamingProtocol"], + "required": [ + "streamingProtocol" + ], "properties": { "streamingProtocol": { "type": "string", @@ -1362,7 +1367,9 @@ "description": "The LiveEvent action input parameter definition." }, "LiveEventProperties": { - "required": ["input"], + "required": [ + "input" + ], "properties": { "description": { "type": "string", @@ -1536,7 +1543,9 @@ "description": "scale units definition" }, "StreamingEndpointProperties": { - "required": ["scaleUnits"], + "required": [ + "scaleUnits" + ], "properties": { "description": { "type": "string", diff --git a/specification/mediaservices/resource-manager/readme.md b/specification/mediaservices/resource-manager/readme.md index 43247c9aaaaa..cacd66745375 100644 --- a/specification/mediaservices/resource-manager/readme.md +++ b/specification/mediaservices/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the MediaServices API. ``` yaml openapi-type: arm -tag: package-2019-05-preview +tag: package-2018-07 opt-in-extensible-enums: true ``` @@ -110,6 +110,7 @@ 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 @@ -191,6 +192,7 @@ batch: - tag: package-2018-03-preview - tag: package-2018-06-preview - tag: package-2018-07 + - tag: package-2019-05-preview ``` ### Tag: package-2015-10 and java @@ -245,6 +247,19 @@ regenerate-manager: true generate-interface: true ``` +### Tag: package-2019-05-preview and java + +These settings apply only when `--tag=package-2019-05-preview --java` is specified on the command line. +Please also specify the `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2019-05-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.mediaservices.v2019_05_01_preview + output-folder: $(azure-libraries-for-java-folder)/mediaservices/resource-manager/v2019_05_01_preview +regenerate-manager: true +generate-interface: true +``` + ## Suppression ``` yaml @@ -258,3 +273,56 @@ directive: where: $.definitions.JobProperties reason: Output not required for job update ``` + +## 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.Media/preview/2019-05-01-preview/AccountFilters.json + - $(this-folder)/Microsoft.Media/preview/2019-05-01-preview/Accounts.json + - $(this-folder)/Microsoft.Media/preview/2019-05-01-preview/AssetsAndAssetFilters.json + - $(this-folder)/Microsoft.Media/preview/2019-05-01-preview/Common.json + - $(this-folder)/Microsoft.Media/preview/2019-05-01-preview/ContentKeyPolicies.json + - $(this-folder)/Microsoft.Media/preview/2019-05-01-preview/Encoding.json + - $(this-folder)/Microsoft.Media/preview/2019-05-01-preview/StreamingPoliciesAndStreamingLocators.json + - $(this-folder)/Microsoft.Media/preview/2019-05-01-preview/streamingservice.json + - $(this-folder)/Microsoft.Media/stable/2018-07-01/AccountFilters.json + - $(this-folder)/Microsoft.Media/stable/2018-07-01/Accounts.json + - $(this-folder)/Microsoft.Media/stable/2018-07-01/AssetsAndAssetFilters.json + - $(this-folder)/Microsoft.Media/stable/2018-07-01/Common.json + - $(this-folder)/Microsoft.Media/stable/2018-07-01/ContentKeyPolicies.json + - $(this-folder)/Microsoft.Media/stable/2018-07-01/Encoding.json + - $(this-folder)/Microsoft.Media/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json + - $(this-folder)/Microsoft.Media/stable/2018-07-01/streamingservice.json + - $(this-folder)/Microsoft.Media/stable/2015-10-01/media.json + - $(this-folder)/Microsoft.Media/preview/2018-03-30-preview/Accounts.json + - $(this-folder)/Microsoft.Media/preview/2018-03-30-preview/Assets.json + - $(this-folder)/Microsoft.Media/preview/2018-03-30-preview/ContentKeyPolicies.json + - $(this-folder)/Microsoft.Media/preview/2018-03-30-preview/Encoding.json + - $(this-folder)/Microsoft.Media/preview/2018-03-30-preview/StreamingPoliciesAndStreamingLocators.json + - $(this-folder)/Microsoft.Media/preview/2018-03-30-preview/streamingservice.json + - $(this-folder)/Microsoft.Media/preview/2018-06-01-preview/Accounts.json + - $(this-folder)/Microsoft.Media/preview/2018-06-01-preview/Assets.json + - $(this-folder)/Microsoft.Media/preview/2018-06-01-preview/ContentKeyPolicies.json + - $(this-folder)/Microsoft.Media/preview/2018-06-01-preview/Encoding.json + - $(this-folder)/Microsoft.Media/preview/2018-06-01-preview/StreamingPoliciesAndStreamingLocators.json + - $(this-folder)/Microsoft.Media/preview/2018-06-01-preview/streamingservice.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/migrate/resource-manager/readme.md b/specification/migrate/resource-manager/readme.md index eccc29721b72..494f1b81e3cd 100644 --- a/specification/migrate/resource-manager/readme.md +++ b/specification/migrate/resource-manager/readme.md @@ -75,4 +75,28 @@ swagger-to-sdk: ## Go -See configuration in [readme.go.md](./readme.go.md) \ No newline at end of file +See configuration in [readme.go.md](./readme.go.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.Migrate/stable/2018-02-02/migrate.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/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_Get.json new file mode 100644 index 000000000000..0441039039a6 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_Get.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "databaseInstanceName": "myinstance" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/DatabaseInstances/myinstance", + "name": "myinstance", + "type": "Microsoft.Migrate/MigrateProjects/DatabaseInstances", + "properties": { + "discoveryData": [ + { + "lastUpdatedTime": null, + "instanceId": "abc", + "enqueueTime": "5/4/2019 6:45:51 AM", + "solutionName": "serversolution", + "instanceName": "sql2002", + "instanceVersion": "2.0.0.0", + "instanceType": "SQL", + "hostName": null, + "ipAddress": null, + "portNumber": 0, + "extendedInfo": null + } + ], + "summary": { + "dbsolution": { + "databasesAssessedCount": 0, + "migrationReadyCount": 0 + } + }, + "lastUpdatedTime": "2019-05-04T06:45:53.2530098Z" + } + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_List.json new file mode 100644 index 000000000000..1de23e30db01 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/DatabaseInstances_List.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/DatabaseInstances/71710b61-8637-4beb-9ede-4449296eb80b", + "name": "71710b61-8637-4beb-9ede-4449296eb80b", + "type": "Microsoft.Migrate/MigrateProjects/DatabaseInstances", + "properties": { + "discoveryData": [ + { + "lastUpdatedTime": null, + "instanceId": "abc", + "enqueueTime": "5/4/2019 6:45:51 AM", + "solutionName": "serversolution", + "instanceName": "sql2002", + "instanceVersion": "2.0.0.0", + "instanceType": "SQL", + "hostName": null, + "ipAddress": null, + "portNumber": 0, + "extendedInfo": null + } + ], + "summary": { + "dbsolution": { + "databasesAssessedCount": 0, + "migrationReadyCount": 0 + } + }, + "lastUpdatedTime": "2019-05-04T06:45:53.2530098Z" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_Get.json new file mode 100644 index 000000000000..1ef3d3b89688 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_Get.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "databaseName": "mydb" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Databases/mydb", + "name": "mydb", + "type": "Microsoft.Migrate/MigrateProjects/Databases", + "properties": { + "assessmentData": [ + { + "assessmentId": "myassessment", + "migrationBlockersCount": 0, + "breakingChangesCount": 0, + "isReadyForMigration": true, + "assessmentTargetType": "SQL", + "lastAssessedTime": "2019-05-04T06:46:40.4340421Z", + "compatibilityLevel": null, + "databaseSizeInMB": null, + "lastUpdatedTime": null, + "enqueueTime": "5/4/2019 6:46:37 AM", + "solutionName": "serversolution", + "instanceId": "abc", + "databaseName": "mydb", + "extendedInfo": null + } + ], + "lastUpdatedTime": "2019-05-04T06:46:40.4340421Z" + } + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_List.json new file mode 100644 index 000000000000..73e08fd6ad95 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Databases_List.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Databases/8e7aae48-f7cf-4f7b-942f-243921aa20e2", + "name": "8e7aae48-f7cf-4f7b-942f-243921aa20e2", + "type": "Microsoft.Migrate/MigrateProjects/Databases", + "properties": { + "assessmentData": [ + { + "assessmentId": "myassessment", + "migrationBlockersCount": 0, + "breakingChangesCount": 0, + "isReadyForMigration": true, + "assessmentTargetType": "SQL", + "lastAssessedTime": "2019-05-04T06:46:40.4340421Z", + "compatibilityLevel": null, + "databaseSizeInMB": null, + "lastUpdatedTime": null, + "enqueueTime": "5/4/2019 6:46:37 AM", + "solutionName": "serversolution", + "instanceId": "abc", + "databaseName": "mydb", + "extendedInfo": null + } + ], + "lastUpdatedTime": "2019-05-04T06:46:40.4340421Z" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json new file mode 100644 index 000000000000..79f56a47fd08 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_Get.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "machineName": "vm1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/machines/vm1", + "name": "vm1", + "type": "Microsoft.Migrate/MigrateProjects/machines", + "properties": { + "discoveryData": [ + { + "osType": "windows", + "osName": "windows server 2012 R2", + "osVersion": "10.0.01", + "enqueueTime": "2017-09-12T13:11:10.8808917Z", + "solutionName": "mysolution", + "machineId": "abcd", + "machineManagerId": "efgh", + "machineName": "vm1", + "ipAddresses": null, + "fqdn": null, + "biosId": null, + "macAddresses": null, + "extendedInfo": { + "custom1": "mycustomvalue" + } + } + ], + "assessmentData": [ + { + "assessmentId": "myid1", + "targetVMSize": "Standard_D4_v2", + "targetVMLocation": "eastus", + "targetStorageType": { + "disk1": "Standard" + }, + "enqueueTime": "2017-09-12T13:11:20.8808917Z", + "solutionName": "mysolution", + "machineId": "abcd", + "machineManagerId": "efgh", + "machineName": "vm1", + "ipAddresses": null, + "fqdn": null, + "biosId": null, + "macAddresses": null, + "extendedInfo": { + "custom2": "mycustomvalue" + } + } + ], + "migrationData": [ + { + "migrationPhase": "Migrated", + "migrationTested": true, + "replicationProgressPercentage": 100, + "targetVMArmId": "/subscriptions/abc/resourcegroups/rg/providers/microsoft.compute/virtualmachines/vm1", + "enqueueTime": "2017-09-12T13:11:30.8808917Z", + "solutionName": "mysolution", + "machineId": "abcd", + "machineManagerId": "efgh", + "machineName": "vm1", + "ipAddresses": null, + "fqdn": null, + "biosId": null, + "macAddresses": null, + "extendedInfo": { + "custom3": "mycustomvalue" + } + } + ] + } + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json new file mode 100644 index 000000000000..87bc87b193a3 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Machines_List.json @@ -0,0 +1,152 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/machines/vm1", + "name": "vm1", + "type": "Microsoft.Migrate/MigrateProjects/machines", + "properties": { + "discoveryData": [ + { + "osType": "windows", + "osName": "windows server 2012 R2", + "osVersion": "10.0.01", + "enqueueTime": "2017-09-12T13:11:10.8808917Z", + "solutionName": "mysolution", + "machineId": "abcd", + "machineManagerId": "efgh", + "machineName": "vm1", + "ipAddresses": null, + "fqdn": null, + "biosId": null, + "macAddresses": null, + "extendedInfo": { + "custom1": "mycustomvalue" + } + } + ], + "assessmentData": [ + { + "assessmentId": "myid1", + "targetVMSize": "Standard_D4_v2", + "targetVMLocation": "eastus", + "targetStorageType": { + "disk1": "Standard" + }, + "enqueueTime": "2017-09-12T13:11:20.8808917Z", + "solutionName": "mysolution", + "machineId": "abcd", + "machineManagerId": "efgh", + "machineName": "vm1", + "ipAddresses": null, + "fqdn": null, + "biosId": null, + "macAddresses": null, + "extendedInfo": { + "custom2": "mycustomvalue" + } + } + ], + "migrationData": [ + { + "migrationPhase": "Migrated", + "migrationTested": true, + "replicationProgressPercentage": 100, + "targetVMArmId": "/subscriptions/abc/resourcegroups/rg/providers/microsoft.compute/virtualmachines/vm1", + "enqueueTime": "2017-09-12T13:11:30.8808917Z", + "solutionName": "mysolution", + "machineId": "abcd", + "machineManagerId": "efgh", + "machineName": "vm1", + "ipAddresses": null, + "fqdn": null, + "biosId": null, + "macAddresses": null, + "extendedInfo": { + "custom3": "mycustomvalue" + } + } + ] + } + }, + { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/machines/vm2", + "name": "vm2", + "type": "Microsoft.Migrate/MigrateProjects/machines", + "properties": { + "discoveryData": [ + { + "osType": "windows", + "osName": "windows server 2012 R2", + "osVersion": "10.0.01", + "enqueueTime": "2017-09-12T13:11:10.8808917Z", + "solutionName": "mysolution", + "machineId": "xyz", + "machineManagerId": "efgh", + "machineName": "vm2", + "ipAddresses": null, + "fqdn": null, + "biosId": null, + "macAddresses": null, + "extendedInfo": { + "custom1": "mycustomvalue" + } + } + ], + "assessmentData": [ + { + "assessmentId": "myid1", + "targetVMSize": "Standard_D4_v2", + "targetVMLocation": "eastus", + "targetStorageType": { + "disk1": "Standard" + }, + "enqueueTime": "2017-09-12T13:11:20.8808917Z", + "solutionName": "mysolution", + "machineId": "xyz", + "machineManagerId": "efgh", + "machineName": "vm2", + "ipAddresses": null, + "fqdn": null, + "biosId": null, + "macAddresses": null, + "extendedInfo": { + "custom2": "mycustomvalue" + } + } + ], + "migrationData": [ + { + "migrationPhase": "Migrated", + "migrationTested": true, + "replicationProgressPercentage": 100, + "targetVMArmId": "/subscriptions/abc/resourcegroups/rg/providers/microsoft.compute/virtualmachines/vm2", + "enqueueTime": "2017-09-12T13:11:30.8808917Z", + "solutionName": "mysolution", + "machineId": "xyz", + "machineManagerId": "efgh", + "machineName": "vm2", + "ipAddresses": null, + "fqdn": null, + "biosId": null, + "macAddresses": null, + "extendedInfo": { + "custom3": "mycustomvalue" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Delete.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Delete.json new file mode 100644 index 000000000000..bd1f79bb1f04 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "eventName": "MigrateEvent01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json new file mode 100644 index 000000000000..487c50212ca9 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "eventName": "MigrateEvent01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvents/MigrateEvent01", + "name": "MigrateEvent01", + "type": "Microsoft.Migrate/MigrateProjects/MigrateEvents", + "properties": { + "instanceType": "Servers", + "machine": "myvm", + "errorCode": "600", + "errorMessage": "The message does not contain the required parameters to identify the machine.", + "recommendation": "Resolve the error and try again.", + "possibleCauses": "The mandatory fields are not provided.", + "solution": "serversolution", + "clientRequestId": "a5dd7e42-4fd1-4512-af04-83ad9864335c" + } + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json new file mode 100644 index 000000000000..508fb0fb6258 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateEvents_List.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvents/b80e3c0f-70c0-4057-81e7-14cfa9ebb205", + "name": "b80e3c0f-70c0-4057-81e7-14cfa9ebb205", + "type": "Microsoft.Migrate/MigrateProjects/MigrateEvents", + "properties": { + "instanceType": "Servers", + "machine": "server1", + "errorCode": "600", + "errorMessage": "The message does not contain the required parameters to identify the machine.", + "recommendation": "Resolve the error and try again.", + "possibleCauses": "The mandatory fields are not provided.", + "solution": "serversolution", + "clientRequestId": "a5dd7e42-4fd1-4512-af04-83ad9864335c" + } + }, + { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvents/041dc61e-8568-40f7-b9b3-c66233ace714", + "name": "041dc61e-8568-40f7-b9b3-c66233ace714", + "type": "Microsoft.Migrate/MigrateProjects/MigrateEvents", + "properties": { + "instanceType": "Databases", + "database": "db1", + "databaseInstanceId": "cD", + "errorCode": "608", + "errorMessage": "The message does not contain the required parameters to identify the database.", + "recommendation": "Resolve the error and try again.", + "possibleCauses": "The mandatory fields are not provided.", + "solution": "dbsolution", + "clientRequestId": "cf861fa5-9a2e-4a9f-b51c-8054efa8e75f" + } + } + ] + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Delete.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Delete.json new file mode 100644 index 000000000000..ac53f8519247 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Delete.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json new file mode 100644 index 000000000000..9ff41fb0a372 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Get.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01" + }, + "responses": { + "200": { + "body": { + "eTag": "\"1c0018c7-0000-0000-0000-5c936e530000\"", + "location": "", + "properties": { + "registeredTools": [ + "ServerMigration" + ], + "summary": { + "servers": { + "instanceType": "Servers", + "discoveredCount": 0, + "assessedCount": 0, + "replicatingCount": 0, + "testMigratedCount": 0, + "migratedCount": 0, + "refreshSummaryState": "Completed", + "lastSummaryRefreshedTime": "2019-05-27T12:01:18.6070869Z", + "extendedSummary": { + "microsoftDiscoveredCount": "0" + } + }, + "databases": { + "instanceType": "Databases", + "refreshSummaryState": "Completed", + "lastSummaryRefreshedTime": "2019-05-27T12:01:18.6070869Z", + "extendedSummary": {} + } + }, + "lastSummaryRefreshedTime": "2019-05-27T12:01:18.6070869Z", + "refreshSummaryState": "Completed" + }, + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", + "name": "project01", + "type": "Microsoft.Migrate/MigrateProjects" + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json new file mode 100644 index 000000000000..80a530cd87a5 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Patch.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "body": { + "properties": { + "registeredTools": [ + "ServerMigration" + ] + }, + "eTag": "\"b701c73a-0000-0000-0000-59c12ff00000\"", + "location": "Southeast Asia", + "tags": {} + } + }, + "responses": { + "200": { + "body": { + "properties": { + "registeredTools": [ + "ServerMigration" + ], + "summary": {}, + "lastSummaryRefreshedTime": "2018-11-12T13:11:10.8808917Z" + }, + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", + "name": "project01", + "type": "Microsoft.Migrate/MigrateProjects", + "eTag": "\"b701c73a-0000-0000-0000-59c12ff00000\"", + "location": "Southeast Asia", + "tags": {} + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json new file mode 100644 index 000000000000..4894bda15c6c --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_Put.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "body": { + "properties": {}, + "eTag": "\"b701c73a-0000-0000-0000-59c12ff00000\"", + "location": "Southeast Asia", + "tags": {} + } + }, + "responses": { + "201": { + "body": { + "properties": { + "registeredTools": [], + "summary": {}, + "lastSummaryRefreshedTime": "2018-11-12T13:11:10.8808917Z" + }, + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", + "name": "project01", + "type": "Microsoft.Migrate/MigrateProjects", + "eTag": "\"b701c73a-0000-0000-0000-59c12ff00000\"", + "location": "Southeast Asia", + "tags": {} + } + }, + "200": { + "body": { + "properties": { + "registeredTools": [], + "summary": {}, + "lastSummaryRefreshedTime": "2018-11-12T13:11:10.8808917Z" + }, + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01", + "name": "project01", + "type": "Microsoft.Migrate/MigrateProjects", + "eTag": "\"b701c73a-0000-0000-0000-59c12ff00000\"", + "location": "Southeast Asia", + "tags": {} + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RefreshSummary.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RefreshSummary.json new file mode 100644 index 000000000000..a0131c4c4f54 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RefreshSummary.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "input": { + "goal": "Servers" + } + }, + "responses": { + "200": { + "body": { + "isRefreshed": true + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RegisterTool.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RegisterTool.json new file mode 100644 index 000000000000..773f696b2ecb --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/MigrateProjects_RegisterTool.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "input": { + "tool": "ServerMigration" + } + }, + "responses": { + "200": { + "body": { + "isRegistered": true + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..42a9dad28981 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Operations_List.json @@ -0,0 +1,155 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Migrate/MigrateProjects/read", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects", + "operation": "Read", + "description": "Reads a migrate project" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Write", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects", + "operation": "Write", + "description": "Creates or updates a migrate project" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Delete", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects", + "operation": "Delete", + "description": "Deletes a migrate project" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/registerTool/action", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects", + "operation": "Register tool with migrate project", + "description": "Registers a tool with the migrate project" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Solutions/read", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/Solutions", + "operation": "Read", + "description": "Reads a solution" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Solutions/write", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/Solutions", + "operation": "Write", + "description": "Creates or updates a solution" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Solutions/delete", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/Solutions", + "operation": "Delete", + "description": "Deletes a solution" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Solutions/cleanupData/action", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/Solutions", + "operation": "Cleans up solution data", + "description": "Cleans up data for a solution" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Solutions/getConfig/action", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/Solutions", + "operation": "Gets solution config", + "description": "Gets configuration of a solution" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Machines/read", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/Machines", + "operation": "Read", + "description": "Reads a machine" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/MigrateEvents/read", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/MigrateEvents", + "operation": "Read", + "description": "Reads a migrate event" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/MigrateEvents/delete", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/MigrateEvents", + "operation": "Delete", + "description": "Deletes a migrate event" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/Databases/read", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/Databases", + "operation": "Read", + "description": "Reads a database" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.Migrate/MigrateProjects/DatabaseInstances/read", + "display": { + "provider": "Microsoft.Migrate", + "resource": "Microsoft.Migrate/MigrateProjects/DatabaseInstances", + "operation": "Read", + "description": "Reads a database instance" + }, + "origin": "user,system" + } + ] + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_CleanupData.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_CleanupData.json new file mode 100644 index 000000000000..1347c1c3fa83 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_CleanupData.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "solutionName": "smssolution" + }, + "responses": { + "200": {} + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Delete.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Delete.json new file mode 100644 index 000000000000..1347c1c3fa83 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "solutionName": "smssolution" + }, + "responses": { + "200": {} + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json new file mode 100644 index 000000000000..9e9df510134c --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Get.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "solutionName": "dbsolution" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/dbsolution", + "name": "dbsolution", + "type": "Microsoft.Migrate/MigrateProjects/Solutions", + "etag": "\"1c0018c7-0000-0000-0000-5c936e530000\"", + "properties": { + "tool": "DataMigrationAssistant", + "purpose": "Assessment", + "goal": "Databases", + "status": "Active", + "cleanupState": "None", + "summary": { + "instanceType": "Databases", + "databasesAssessedCount": 0, + "databaseInstancesAssessedCount": 0, + "migrationReadyCount": 0 + }, + "details": { + "groupCount": 0, + "assessmentCount": 0, + "extendedDetails": { + "mykey": "myvalue" + } + } + } + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_GetConfig.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_GetConfig.json new file mode 100644 index 000000000000..e32a1e1c29c9 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_GetConfig.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "solutionName": "smssolution" + }, + "responses": { + "200": { + "body": { + "publisherSasUri": "Endpoint=sb://xxx.servicebus.windows.net/;SharedAccessSignature=SharedAccessSignature sr=sb%3a%2f%2fxxx.servicebus.windows.net%2fIsvMigrationPayloadEventHub%2fPublishers%2ffad35230-08cd-4d96-bb75-6e41508adb3b-pub-smssolution&sig=Wpf0ORIJI9AFESLDLlJH1ejrUj2W7hy%2fMac%2f7ewZ6j8%3d&se=1541501430&skn=SendPolicy;EntityPath=xyz;Publisher=fad35230-08cd-4d96-bb75-6e41508adb3b-pub-smssolution" + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json new file mode 100644 index 000000000000..124ec7d1a421 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_List.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/dbsolution", + "name": "dbsolution", + "type": "Microsoft.Migrate/MigrateProjects/Solutions", + "etag": "\"1c0018c7-0000-0000-0000-5c936e530000\"", + "properties": { + "tool": "DataMigrationAssistant", + "purpose": "Assessment", + "goal": "Databases", + "status": "Inactive", + "cleanupState": "None", + "summary": { + "instanceType": "Databases", + "databasesAssessedCount": 0, + "databaseInstancesAssessedCount": 0, + "migrationReadyCount": 0 + }, + "details": { + "groupCount": 0, + "assessmentCount": 0, + "extendedDetails": { + "mykey": "myvalue" + } + } + } + }, + { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/serversolution", + "name": "serversolution", + "type": "Microsoft.Migrate/MigrateProjects/Solutions", + "etag": "\"1c001dc7-0000-0000-0000-5c936e6f0000\"", + "properties": { + "tool": "ServerDiscovery", + "purpose": "Discovery", + "goal": "Servers", + "status": "Inactive", + "cleanupState": "None", + "summary": { + "instanceType": "Servers", + "discoveredCount": 0, + "assessedCount": 0, + "replicatingCount": 0, + "testMigratedCount": 0, + "migratedCount": 0 + }, + "details": { + "groupCount": 0, + "assessmentCount": 0, + "extendedDetails": { + "mykey": "myvalue" + } + } + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json new file mode 100644 index 000000000000..d73eb410db7f --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Patch.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "solutionName": "dbsolution", + "solutionInput": { + "properties": { + "status": "Active" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/dbsolution", + "name": "dbsolution", + "type": "Microsoft.Migrate/MigrateProjects/Solutions", + "etag": "\"1c0018c7-0000-0000-0000-5c936e530000\"", + "properties": { + "tool": "DataMigrationAssistant", + "purpose": "Assessment", + "goal": "Databases", + "status": "Active", + "cleanupState": "None", + "summary": { + "instanceType": "Databases", + "databasesAssessedCount": 0, + "databaseInstancesAssessedCount": 0, + "migrationReadyCount": 0 + }, + "details": { + "groupCount": 0, + "assessmentCount": 0, + "extendedDetails": { + "mykey": "myvalue" + } + } + } + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json new file mode 100644 index 000000000000..57de852abd7f --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/examples/Solutions_Put.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "resourceGroupName": "myResourceGroup", + "api-version": "2018-09-01-preview", + "subscriptionId": "75dd7e42-4fd1-4512-af04-83ad9864335b", + "migrateProjectName": "project01", + "solutionName": "dbsolution", + "solutionInput": { + "properties": { + "tool": "DataMigrationAssistant", + "purpose": "Assessment", + "goal": "Databases" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/dbsolution", + "name": "dbsolution", + "type": "Microsoft.Migrate/MigrateProjects/Solutions", + "etag": "\"1c0018c7-0000-0000-0000-5c936e530000\"", + "properties": { + "tool": "DataMigrationAssistant", + "purpose": "Assessment", + "goal": "Databases", + "status": "Active", + "cleanupState": "None", + "summary": { + "instanceType": "Databases", + "databasesAssessedCount": 0, + "databaseInstancesAssessedCount": 0, + "migrationReadyCount": 0 + }, + "details": { + "groupCount": 0, + "assessmentCount": 0, + "extendedDetails": { + "mykey": "myvalue" + } + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/Solutions/dbsolution", + "name": "dbsolution", + "type": "Microsoft.Migrate/MigrateProjects/Solutions", + "etag": "\"1c0018c7-0000-0000-0000-5c936e530000\"", + "properties": { + "tool": "DataMigrationAssistant", + "purpose": "Assessment", + "goal": "Databases", + "status": "Active", + "cleanupState": "None", + "summary": { + "instanceType": "Databases", + "databasesAssessedCount": 0, + "databaseInstancesAssessedCount": 0, + "migrationReadyCount": 0 + }, + "details": { + "groupCount": 0, + "assessmentCount": 0, + "extendedDetails": { + "mykey": "myvalue" + } + } + } + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json new file mode 100644 index 000000000000..52c856e35be6 --- /dev/null +++ b/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json @@ -0,0 +1,3137 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-09-01-preview", + "title": "Azure Migrate Hub", + "description": "Migrate your workloads to Azure.", + "contact": { + "name": "Microsoft", + "email": "azuremigratehub@microsoft.com" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "parameters": { + "subscriptionId": { + "name": "subscriptionId", + "description": "Azure Subscription Id in which migrate project was created.", + "type": "string", + "in": "path", + "required": true + }, + "resourceGroupName": { + "name": "resourceGroupName", + "description": "Name of the Azure Resource Group that migrate project is part of.", + "type": "string", + "in": "path", + "x-ms-parameter-location": "method", + "required": true + }, + "migrateProjectName": { + "name": "migrateProjectName", + "description": "Name of the Azure Migrate project.", + "type": "string", + "in": "path", + "x-ms-parameter-location": "method", + "required": true + }, + "machineName": { + "name": "machineName", + "description": "Unique name of a machine in Azure migration hub.", + "type": "string", + "in": "path", + "x-ms-parameter-location": "method", + "required": true + }, + "databaseName": { + "name": "databaseName", + "description": "Unique name of a database in Azure migration hub.", + "type": "string", + "in": "path", + "x-ms-parameter-location": "method", + "required": true + }, + "databaseInstanceName": { + "name": "databaseInstanceName", + "description": "Unique name of a database instance in Azure migration hub.", + "type": "string", + "in": "path", + "x-ms-parameter-location": "method", + "required": true + }, + "solutionName": { + "name": "solutionName", + "description": "Unique name of a migration solution within a migrate project.", + "type": "string", + "in": "path", + "x-ms-parameter-location": "method", + "required": true + }, + "eventName": { + "name": "eventName", + "description": "Unique name of an event within a migrate project.", + "type": "string", + "in": "path", + "x-ms-parameter-location": "method", + "required": true + }, + "continuationToken": { + "name": "continuationToken", + "description": "The continuation token.", + "type": "string", + "in": "query", + "required": false, + "x-ms-parameter-location": "method" + }, + "pageSize": { + "name": "pageSize", + "description": "The number of items to be returned in a single page. This value is honored only if it is less than the 100.", + "type": "integer", + "in": "query", + "required": false, + "x-ms-parameter-location": "method" + }, + "api-version": { + "name": "api-version", + "description": "Standard request header. Used by service to identify API version used by client.", + "type": "string", + "in": "query", + "required": true, + "enum": [ + "2018-09-01-preview" + ] + }, + "acceptLanguage": { + "description": "Standard request header. Used by service to respond to client in appropriate language.", + "name": "Accept-Language", + "type": "string", + "in": "header", + "x-ms-parameter-location": "client" + } + }, + "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" + ] + } + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/databaseInstances": { + "get": { + "tags": [ + "DatabaseInstances" + ], + "summary": "Gets a list of database instances in the migrate project.", + "operationId": "DatabaseInstances_EnumerateDatabaseInstances", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/continuationToken" + }, + { + "$ref": "#/parameters/pageSize" + }, + { + "$ref": "#/parameters/acceptLanguage" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DatabaseInstanceCollection" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "DatabaseInstances_List": { + "$ref": "./examples/DatabaseInstances_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/databaseInstances/{databaseInstanceName}": { + "get": { + "tags": [ + "DatabaseInstances" + ], + "summary": "Gets a database instance in the migrate project.", + "operationId": "DatabaseInstances_GetDatabaseInstance", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/databaseInstanceName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/acceptLanguage" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DatabaseInstance" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "DatabaseInstances_Get": { + "$ref": "./examples/DatabaseInstances_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/databases": { + "get": { + "tags": [ + "Databases" + ], + "summary": "Gets a list of databases in the migrate project.", + "operationId": "Databases_EnumerateDatabases", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/continuationToken" + }, + { + "$ref": "#/parameters/pageSize" + }, + { + "$ref": "#/parameters/acceptLanguage" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DatabaseCollection" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Databases_List": { + "$ref": "./examples/Databases_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/databases/{databaseName}": { + "get": { + "tags": [ + "Databases" + ], + "summary": "Gets a database in the migrate project.", + "operationId": "Databases_GetDatabase", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/databaseName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/acceptLanguage" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Databases_Get": { + "$ref": "./examples/Databases_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/migrateEvents": { + "get": { + "tags": [ + "Events" + ], + "summary": "Gets a list of events in the migrate project.", + "operationId": "Events_EnumerateEvents", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/continuationToken" + }, + { + "$ref": "#/parameters/pageSize" + }, + { + "$ref": "#/parameters/acceptLanguage" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EventCollection" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "MigrateEvents_List": { + "$ref": "./examples/MigrateEvents_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/migrateEvents/{eventName}": { + "get": { + "tags": [ + "Events" + ], + "summary": "Gets an event in the migrate project.", + "operationId": "Events_GetEvent", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/eventName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MigrateEvent" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "MigrateEvents_Get": { + "$ref": "./examples/MigrateEvents_Get.json" + } + } + }, + "delete": { + "tags": [ + "Events" + ], + "summary": "Delete the migrate event", + "description": "Delete the migrate event. Deleting non-existent migrate event is a no-operation.", + "operationId": "Events_DeleteEvent", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/eventName" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "deprecated": false, + "x-ms-examples": { + "MigrateEvents_Delete": { + "$ref": "./examples/MigrateEvents_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/machines": { + "get": { + "tags": [ + "Machines" + ], + "summary": "Gets a list of machines in the migrate project.", + "operationId": "Machines_EnumerateMachines", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/continuationToken" + }, + { + "$ref": "#/parameters/pageSize" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineCollection" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Machines_List": { + "$ref": "./examples/Machines_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/machines/{machineName}": { + "get": { + "tags": [ + "Machines" + ], + "summary": "Gets a machine in the migrate project.", + "operationId": "Machines_GetMachine", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/machineName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Machine" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Machines_Get": { + "$ref": "./examples/Machines_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}": { + "get": { + "tags": [ + "MigrateProjects" + ], + "summary": "Method to get a migrate project.", + "operationId": "MigrateProjects_GetMigrateProject", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MigrateProject" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "MigrateProjects_Get": { + "$ref": "./examples/MigrateProjects_Get.json" + } + } + }, + "put": { + "tags": [ + "MigrateProjects" + ], + "summary": "Method to create or update a migrate project.", + "operationId": "MigrateProjects_PutMigrateProject", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "body", + "in": "body", + "description": "Body with migrate project details.", + "required": true, + "schema": { + "$ref": "#/definitions/MigrateProject" + } + }, + { + "$ref": "#/parameters/acceptLanguage" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MigrateProject" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/MigrateProject" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "MigrateProjects_Put": { + "$ref": "./examples/MigrateProjects_Put.json" + } + } + }, + "patch": { + "tags": [ + "MigrateProjects" + ], + "summary": "Update migrate project.", + "description": "Update a migrate project with specified name. Supports partial updates, for example only tags can be provided.", + "operationId": "MigrateProjects_PatchMigrateProject", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "body", + "in": "body", + "description": "Body with migrate project details.", + "required": true, + "schema": { + "$ref": "#/definitions/MigrateProject" + } + }, + { + "$ref": "#/parameters/acceptLanguage" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MigrateProject" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "MigrateProjects_Patch": { + "$ref": "./examples/MigrateProjects_Patch.json" + } + } + }, + "delete": { + "tags": [ + "MigrateProjects" + ], + "summary": "Delete the migrate project", + "description": "Delete the migrate project. Deleting non-existent project is a no-operation.", + "operationId": "MigrateProjects_DeleteMigrateProject", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/acceptLanguage" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "deprecated": false, + "x-ms-examples": { + "MigrateProjects_Delete": { + "$ref": "./examples/MigrateProjects_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/registerTool": { + "post": { + "tags": [ + "MigrateProjects" + ], + "summary": "Registers a tool with the migrate project.", + "operationId": "MigrateProjects_RegisterTool", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "input", + "in": "body", + "description": "Input containing the name of the tool to be registered.", + "required": true, + "schema": { + "$ref": "#/definitions/RegisterToolInput" + } + }, + { + "$ref": "#/parameters/acceptLanguage" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RegistrationResult" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "MigrateProjects_RegisterTool": { + "$ref": "./examples/MigrateProjects_RegisterTool.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/refreshSummary": { + "post": { + "tags": [ + "MigrateProjects" + ], + "summary": "Refresh the summary of the migrate project.", + "operationId": "MigrateProjects_RefreshMigrateProjectSummary", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "input", + "in": "body", + "description": "The goal input which needs to be refreshed.", + "required": true, + "schema": { + "$ref": "#/definitions/RefreshSummaryInput" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RefreshSummaryResult" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "MigrateProjects_RefreshSummary": { + "$ref": "./examples/MigrateProjects_RefreshSummary.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/solutions/{solutionName}": { + "get": { + "tags": [ + "Solutions" + ], + "summary": "Gets a solution in the migrate project.", + "operationId": "Solutions_GetSolution", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/solutionName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Solution" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Solutions_Get": { + "$ref": "./examples/Solutions_Get.json" + } + } + }, + "put": { + "tags": [ + "Solutions" + ], + "summary": "Creates a solution in the migrate project.", + "operationId": "Solutions_PutSolution", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/solutionName" + }, + { + "name": "solutionInput", + "in": "body", + "description": "The input for the solution.", + "required": true, + "schema": { + "$ref": "#/definitions/Solution" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Solution" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Solution" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Solutions_Put": { + "$ref": "./examples/Solutions_Put.json" + } + } + }, + "patch": { + "tags": [ + "Solutions" + ], + "summary": "Update solution.", + "description": "Update a solution with specified name. Supports partial updates, for example only tags can be provided.", + "operationId": "Solutions_PatchSolution", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/solutionName" + }, + { + "name": "solutionInput", + "in": "body", + "description": "The input for the solution.", + "required": true, + "schema": { + "$ref": "#/definitions/Solution" + } + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Solution" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Solutions_Patch": { + "$ref": "./examples/Solutions_Patch.json" + } + } + }, + "delete": { + "tags": [ + "Solutions" + ], + "summary": "Delete the solution", + "description": "Delete the solution. Deleting non-existent project is a no-operation.", + "operationId": "Solutions_DeleteSolution", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/solutionName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/acceptLanguage" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "deprecated": false, + "x-ms-examples": { + "Solutions_Delete": { + "$ref": "./examples/Solutions_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/solutions": { + "get": { + "tags": [ + "Solutions" + ], + "summary": "Gets the list of solutions in the migrate project.", + "operationId": "Solutions_EnumerateSolutions", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SolutionsCollection" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Solutions_List": { + "$ref": "./examples/Solutions_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/solutions/{solutionName}/getConfig": { + "post": { + "tags": [ + "Solutions" + ], + "summary": "Gets the config for the solution in the migrate project.", + "operationId": "Solutions_GetConfig", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/solutionName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SolutionConfig" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Solutions_GetConfig": { + "$ref": "./examples/Solutions_GetConfig.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/solutions/{solutionName}/cleanupData": { + "post": { + "tags": [ + "Solutions" + ], + "summary": "Cleanup the solution data in the migrate project.", + "operationId": "Solutions_CleanupSolutionData", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/migrateProjectName" + }, + { + "$ref": "#/parameters/solutionName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "deprecated": false, + "x-ms-examples": { + "Solutions_CleanupData": { + "$ref": "./examples/Solutions_CleanupData.json" + } + } + } + }, + "/providers/Microsoft.Migrate/operations": { + "get": { + "summary": "Get list of operations supported in the API.", + "description": "Get a list of REST API supported by Microsoft.Migrate provider.", + "operationId": "Operations_List", + "responses": { + "200": { + "description": "OK. Returns list of operations.", + "schema": { + "$ref": "#/definitions/OperationResultList" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + } + }, + "definitions": { + "Object": { + "type": "object", + "properties": {} + }, + "DatabaseInstanceCollection": { + "description": "Collection of database instances.", + "type": "object", + "properties": { + "value": { + "description": "Gets or sets the database instances.", + "type": "array", + "items": { + "$ref": "#/definitions/DatabaseInstance" + } + }, + "nextLink": { + "description": "Gets or sets the value of nextLink.", + "type": "string" + } + } + }, + "DatabaseInstance": { + "description": "DatabaseInstance REST resource.", + "type": "object", + "properties": { + "id": { + "description": "Gets or sets the relative URL to get to this REST resource.", + "type": "string" + }, + "name": { + "description": "Gets or sets the name of this REST resource.", + "type": "string" + }, + "type": { + "description": "Gets the type of this REST resource.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/DatabaseInstanceProperties", + "description": "Gets or sets the properties of the machine." + } + } + }, + "DatabaseInstanceProperties": { + "description": "Properties of the database instance resource.", + "type": "object", + "properties": { + "discoveryData": { + "description": "Gets or sets the assessment details of the database instance published by various sources.", + "type": "array", + "items": { + "$ref": "#/definitions/DatabaseInstanceDiscoveryDetails" + } + }, + "summary": { + "description": "Gets or sets the database instances summary per solution. The key of dictionary is the solution name and value is the corresponding database instance summary object.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/DatabaseInstanceSummary" + } + }, + "lastUpdatedTime": { + "format": "date-time", + "description": "Gets or sets the time of the last modification of the database.", + "type": "string" + } + } + }, + "DatabaseInstanceDiscoveryDetails": { + "description": "Discovery properties that can be shared by various publishers.", + "type": "object", + "properties": { + "lastUpdatedTime": { + "format": "date-time", + "description": "Gets or sets the time of the last modification of the database instance details.", + "type": "string" + }, + "instanceId": { + "description": "Gets or sets the database instance Id.", + "type": "string" + }, + "enqueueTime": { + "description": "Gets or sets the time the message was enqueued.", + "type": "string" + }, + "solutionName": { + "description": "Gets or sets the name of the solution that sent the data.", + "type": "string" + }, + "instanceName": { + "description": "Gets or sets the database instance name.", + "type": "string" + }, + "instanceVersion": { + "description": "Gets or sets the database instance version.", + "type": "string" + }, + "instanceType": { + "description": "Gets or sets the database instance type.", + "type": "string" + }, + "hostName": { + "description": "Gets or sets the host name of the database server.", + "type": "string" + }, + "ipAddress": { + "description": "Gets or sets the IP addresses of the database server. IP addresses could be IP V4 or IP V6.", + "type": "string" + }, + "portNumber": { + "format": "int32", + "description": "Gets or sets the port number of the database server.", + "type": "integer" + }, + "extendedInfo": { + "description": "Gets or sets the extended properties of the database server.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "DatabaseInstanceSummary": { + "description": "Class representing the database instance summary object.", + "type": "object", + "properties": { + "databasesAssessedCount": { + "format": "int32", + "description": "Gets or sets the count of databases assessed.", + "type": "integer" + }, + "migrationReadyCount": { + "format": "int32", + "description": "Gets or sets the count of databases ready for migration.", + "type": "integer" + } + } + }, + "DatabaseCollection": { + "description": "Collection of databases.", + "type": "object", + "properties": { + "value": { + "description": "Gets or sets the databases.", + "type": "array", + "items": { + "$ref": "#/definitions/Database" + } + }, + "nextLink": { + "description": "Gets or sets the value of nextLink.", + "type": "string" + } + } + }, + "Database": { + "description": "Database REST resource.", + "type": "object", + "properties": { + "id": { + "description": "Gets or sets the relative URL to get to this REST resource.", + "type": "string" + }, + "name": { + "description": "Gets or sets the name of this REST resource.", + "type": "string" + }, + "type": { + "description": "Gets the type of this REST resource.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/DatabaseProperties", + "description": "Gets or sets the properties of the database." + } + } + }, + "DatabaseProperties": { + "description": "Properties of the database resource.", + "type": "object", + "properties": { + "assessmentData": { + "description": "Gets or sets the assessment details of the database published by various sources.", + "type": "array", + "items": { + "$ref": "#/definitions/DatabaseAssessmentDetails" + } + }, + "lastUpdatedTime": { + "format": "date-time", + "description": "Gets or sets the time of the last modification of the database.", + "type": "string" + } + } + }, + "DatabaseAssessmentDetails": { + "description": "Assessment properties that can be shared by various publishers.", + "type": "object", + "properties": { + "assessmentId": { + "description": "Gets or sets the database assessment scope/Id.", + "type": "string" + }, + "migrationBlockersCount": { + "format": "int32", + "description": "Gets or sets the number of blocking changes found.", + "type": "integer" + }, + "breakingChangesCount": { + "format": "int32", + "description": "Gets or sets the number of breaking changes found.", + "type": "integer" + }, + "isReadyForMigration": { + "description": "Gets or sets a value indicating whether the database is ready for migration.", + "type": "boolean" + }, + "assessmentTargetType": { + "description": "Gets or sets the assessed target database type.", + "type": "string" + }, + "lastAssessedTime": { + "format": "date-time", + "description": "Gets or sets the time when the database was last assessed.", + "type": "string" + }, + "compatibilityLevel": { + "description": "Gets or sets the compatibility level of the database.", + "type": "string" + }, + "databaseSizeInMB": { + "description": "Gets or sets the database size.", + "type": "string" + }, + "lastUpdatedTime": { + "format": "date-time", + "description": "Gets or sets the time of the last modification of the database details.", + "type": "string" + }, + "enqueueTime": { + "description": "Gets or sets the time the message was enqueued.", + "type": "string" + }, + "solutionName": { + "description": "Gets or sets the name of the solution that sent the data.", + "type": "string" + }, + "instanceId": { + "description": "Gets or sets the database server instance Id.", + "type": "string" + }, + "databaseName": { + "description": "Gets or sets the database name.", + "type": "string" + }, + "extendedInfo": { + "description": "Gets or sets the extended properties of the database.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "EventCollection": { + "description": "Collection of events.", + "type": "object", + "properties": { + "value": { + "description": "Gets or sets the machines.", + "type": "array", + "items": { + "$ref": "#/definitions/MigrateEvent" + } + }, + "nextLink": { + "description": "Gets or sets the value of nextLink.", + "type": "string" + } + } + }, + "MigrateEvent": { + "description": "MigrateEvent REST resource.", + "type": "object", + "properties": { + "id": { + "description": "Gets or sets the relative URL to get to this REST resource.", + "type": "string" + }, + "name": { + "description": "Gets or sets the name of this REST resource.", + "type": "string" + }, + "type": { + "description": "Gets the type of this REST resource.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/MigrateEventProperties", + "description": "Gets or sets the properties of the event." + } + } + }, + "MigrateEventProperties": { + "description": "Properties of the error resource.", + "type": "object", + "properties": { + "instanceType": { + "description": "Gets the Instance type.", + "type": "string", + "readOnly": true + }, + "errorCode": { + "description": "Gets or sets the error code.", + "type": "string" + }, + "errorMessage": { + "description": "Gets or sets the error message.", + "type": "string" + }, + "recommendation": { + "description": "Gets or sets the recommendation for the error.", + "type": "string" + }, + "possibleCauses": { + "description": "Gets or sets the possible causes for the error.", + "type": "string" + }, + "solution": { + "description": "Gets or sets the solution for which the error is being reported.", + "type": "string" + }, + "clientRequestId": { + "description": "Gets or sets the client request Id of the payload for which the event is being reported.", + "type": "string" + } + }, + "discriminator": "instanceType" + }, + "ODataQueryOptions`1": { + "type": "object", + "properties": { + "filter": { + "$ref": "#/definitions/FilterQueryOption", + "readOnly": true + } + } + }, + "ODataQueryContext": { + "type": "object", + "properties": { + "defaultQuerySettings": { + "$ref": "#/definitions/DefaultQuerySettings", + "readOnly": true + }, + "model": { + "$ref": "#/definitions/IEdmModel", + "readOnly": true + }, + "elementType": { + "$ref": "#/definitions/IEdmType", + "readOnly": true + }, + "navigationSource": { + "$ref": "#/definitions/IEdmNavigationSource", + "readOnly": true + }, + "elementClrType": { + "type": "string", + "readOnly": true + }, + "path": { + "$ref": "#/definitions/ODataPath", + "readOnly": true + }, + "requestContainer": { + "$ref": "#/definitions/IServiceProvider", + "readOnly": true + } + } + }, + "ODataRawQueryOptions": { + "type": "object", + "properties": { + "filter": { + "type": "string", + "readOnly": true + } + } + }, + "FilterQueryOption": { + "type": "object", + "properties": { + "context": { + "$ref": "#/definitions/ODataQueryContext", + "readOnly": true + }, + "validator": { + "$ref": "#/definitions/FilterQueryValidator" + }, + "filterClause": { + "$ref": "#/definitions/FilterClause", + "readOnly": true + }, + "rawValue": { + "type": "string", + "readOnly": true + } + } + }, + "ODataQueryValidator": { + "type": "object", + "properties": {} + }, + "DefaultQuerySettings": { + "type": "object", + "properties": { + "enableExpand": { + "type": "boolean" + }, + "enableSelect": { + "type": "boolean" + }, + "enableCount": { + "type": "boolean" + }, + "enableOrderBy": { + "type": "boolean" + }, + "enableFilter": { + "type": "boolean" + }, + "maxTop": { + "format": "int32", + "type": "integer" + } + } + }, + "IEdmModel": { + "type": "object", + "properties": { + "schemaElements": { + "type": "array", + "items": { + "$ref": "#/definitions/IEdmSchemaElement" + }, + "readOnly": true + }, + "vocabularyAnnotations": { + "type": "array", + "items": { + "$ref": "#/definitions/IEdmVocabularyAnnotation" + }, + "readOnly": true + }, + "referencedModels": { + "type": "array", + "items": { + "$ref": "#/definitions/IEdmModel" + }, + "readOnly": true + }, + "declaredNamespaces": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "directValueAnnotationsManager": { + "$ref": "#/definitions/IEdmDirectValueAnnotationsManager", + "readOnly": true + }, + "entityContainer": { + "$ref": "#/definitions/IEdmEntityContainer", + "readOnly": true + } + } + }, + "IEdmType": { + "type": "object", + "properties": { + "typeKind": { + "enum": [ + "None", + "Primitive", + "Entity", + "Complex", + "Collection", + "EntityReference", + "Enum", + "TypeDefinition", + "Untyped", + "Path" + ], + "type": "string", + "readOnly": true + } + } + }, + "IEdmNavigationSource": { + "type": "object", + "properties": { + "navigationPropertyBindings": { + "type": "array", + "items": { + "$ref": "#/definitions/IEdmNavigationPropertyBinding" + }, + "readOnly": true + }, + "path": { + "$ref": "#/definitions/IEdmPathExpression", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/IEdmType", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true + } + } + }, + "ODataPath": { + "type": "object", + "properties": { + "edmType": { + "$ref": "#/definitions/IEdmType", + "readOnly": true + }, + "navigationSource": { + "$ref": "#/definitions/IEdmNavigationSource", + "readOnly": true + }, + "segments": { + "type": "array", + "items": { + "$ref": "#/definitions/ODataPathSegment" + }, + "readOnly": true + }, + "pathTemplate": { + "type": "string", + "readOnly": true + }, + "path": { + "type": "array", + "items": { + "$ref": "#/definitions/ODataPathSegment" + }, + "readOnly": true + } + } + }, + "IServiceProvider": { + "type": "object", + "properties": {} + }, + "SelectExpandQueryValidator": { + "type": "object", + "properties": {} + }, + "SelectExpandClause": { + "type": "object", + "properties": { + "selectedItems": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectItem" + }, + "readOnly": true + }, + "allSelected": { + "type": "boolean", + "readOnly": true + } + } + }, + "ApplyClause": { + "type": "object", + "properties": { + "transformations": { + "type": "array", + "items": { + "$ref": "#/definitions/TransformationNode" + }, + "readOnly": true + } + } + }, + "FilterQueryValidator": { + "type": "object", + "properties": {} + }, + "FilterClause": { + "type": "object", + "properties": { + "expression": { + "$ref": "#/definitions/SingleValueNode", + "readOnly": true + }, + "rangeVariable": { + "$ref": "#/definitions/RangeVariable", + "readOnly": true + }, + "itemType": { + "$ref": "#/definitions/IEdmTypeReference", + "readOnly": true + } + } + }, + "IEdmSchemaElement": { + "type": "object", + "properties": { + "schemaElementKind": { + "enum": [ + "None", + "TypeDefinition", + "Term", + "Action", + "EntityContainer", + "Function" + ], + "type": "string", + "readOnly": true + }, + "namespace": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true + } + } + }, + "IEdmVocabularyAnnotation": { + "type": "object", + "properties": { + "qualifier": { + "type": "string", + "readOnly": true + }, + "term": { + "$ref": "#/definitions/IEdmTerm", + "readOnly": true + }, + "target": { + "$ref": "#/definitions/IEdmVocabularyAnnotatable", + "readOnly": true + }, + "value": { + "$ref": "#/definitions/IEdmExpression", + "readOnly": true + } + } + }, + "IEdmDirectValueAnnotationsManager": { + "type": "object", + "properties": {} + }, + "IEdmEntityContainer": { + "type": "object", + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/definitions/IEdmEntityContainerElement" + }, + "readOnly": true + }, + "schemaElementKind": { + "enum": [ + "None", + "TypeDefinition", + "Term", + "Action", + "EntityContainer", + "Function" + ], + "type": "string", + "readOnly": true + }, + "namespace": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true + } + } + }, + "IEdmNavigationPropertyBinding": { + "type": "object", + "properties": { + "navigationProperty": { + "$ref": "#/definitions/IEdmNavigationProperty", + "readOnly": true + }, + "target": { + "$ref": "#/definitions/IEdmNavigationSource", + "readOnly": true + }, + "path": { + "$ref": "#/definitions/IEdmPathExpression", + "readOnly": true + } + } + }, + "IEdmPathExpression": { + "type": "object", + "properties": { + "pathSegments": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "path": { + "type": "string", + "readOnly": true + }, + "expressionKind": { + "enum": [ + "None", + "BinaryConstant", + "BooleanConstant", + "DateTimeOffsetConstant", + "DecimalConstant", + "FloatingConstant", + "GuidConstant", + "IntegerConstant", + "StringConstant", + "DurationConstant", + "Null", + "Record", + "Collection", + "Path", + "If", + "Cast", + "IsType", + "FunctionApplication", + "LabeledExpressionReference", + "Labeled", + "PropertyPath", + "NavigationPropertyPath", + "DateConstant", + "TimeOfDayConstant", + "EnumMember", + "AnnotationPath" + ], + "type": "string", + "readOnly": true + } + } + }, + "ODataPathSegment": { + "type": "object", + "properties": { + "edmType": { + "$ref": "#/definitions/IEdmType", + "readOnly": true + }, + "identifier": { + "type": "string" + } + } + }, + "SelectItem": { + "type": "object", + "properties": {} + }, + "TransformationNode": { + "type": "object", + "properties": { + "kind": { + "enum": [ + "Aggregate", + "GroupBy", + "Filter", + "Compute" + ], + "type": "string", + "readOnly": true + } + } + }, + "SingleValueNode": { + "type": "object", + "properties": { + "typeReference": { + "$ref": "#/definitions/IEdmTypeReference", + "readOnly": true + }, + "kind": { + "enum": [ + "None", + "Constant", + "Convert", + "NonResourceRangeVariableReference", + "BinaryOperator", + "UnaryOperator", + "SingleValuePropertyAccess", + "CollectionPropertyAccess", + "SingleValueFunctionCall", + "Any", + "CollectionNavigationNode", + "SingleNavigationNode", + "SingleValueOpenPropertyAccess", + "SingleResourceCast", + "All", + "CollectionResourceCast", + "ResourceRangeVariableReference", + "SingleResourceFunctionCall", + "CollectionFunctionCall", + "CollectionResourceFunctionCall", + "NamedFunctionParameter", + "ParameterAlias", + "EntitySet", + "KeyLookup", + "SearchTerm", + "CollectionOpenPropertyAccess", + "CollectionComplexNode", + "SingleComplexNode", + "Count", + "SingleValueCast", + "CollectionPropertyNode", + "AggregatedCollectionPropertyNode", + "In", + "CollectionConstant" + ], + "type": "string", + "readOnly": true + } + } + }, + "RangeVariable": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true + }, + "typeReference": { + "$ref": "#/definitions/IEdmTypeReference", + "readOnly": true + }, + "kind": { + "format": "int32", + "type": "integer", + "readOnly": true + } + } + }, + "IEdmTypeReference": { + "type": "object", + "properties": { + "isNullable": { + "type": "boolean", + "readOnly": true + }, + "definition": { + "$ref": "#/definitions/IEdmType", + "readOnly": true + } + } + }, + "IEdmTerm": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/IEdmTypeReference", + "readOnly": true + }, + "appliesTo": { + "type": "string", + "readOnly": true + }, + "defaultValue": { + "type": "string", + "readOnly": true + }, + "schemaElementKind": { + "enum": [ + "None", + "TypeDefinition", + "Term", + "Action", + "EntityContainer", + "Function" + ], + "type": "string", + "readOnly": true + }, + "namespace": { + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true + } + } + }, + "IEdmVocabularyAnnotatable": { + "type": "object", + "properties": {} + }, + "IEdmExpression": { + "type": "object", + "properties": { + "expressionKind": { + "enum": [ + "None", + "BinaryConstant", + "BooleanConstant", + "DateTimeOffsetConstant", + "DecimalConstant", + "FloatingConstant", + "GuidConstant", + "IntegerConstant", + "StringConstant", + "DurationConstant", + "Null", + "Record", + "Collection", + "Path", + "If", + "Cast", + "IsType", + "FunctionApplication", + "LabeledExpressionReference", + "Labeled", + "PropertyPath", + "NavigationPropertyPath", + "DateConstant", + "TimeOfDayConstant", + "EnumMember", + "AnnotationPath" + ], + "type": "string", + "readOnly": true + } + } + }, + "IEdmEntityContainerElement": { + "type": "object", + "properties": { + "containerElementKind": { + "enum": [ + "None", + "EntitySet", + "ActionImport", + "FunctionImport", + "Singleton" + ], + "type": "string", + "readOnly": true + }, + "container": { + "$ref": "#/definitions/IEdmEntityContainer", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true + } + } + }, + "IEdmNavigationProperty": { + "type": "object", + "properties": { + "partner": { + "$ref": "#/definitions/IEdmNavigationProperty", + "readOnly": true + }, + "onDelete": { + "enum": [ + "None", + "Cascade" + ], + "type": "string", + "readOnly": true + }, + "containsTarget": { + "type": "boolean", + "readOnly": true + }, + "referentialConstraint": { + "$ref": "#/definitions/IEdmReferentialConstraint", + "readOnly": true + }, + "propertyKind": { + "enum": [ + "None", + "Structural", + "Navigation" + ], + "type": "string", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/IEdmTypeReference", + "readOnly": true + }, + "declaringType": { + "$ref": "#/definitions/IEdmStructuredType", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true + } + } + }, + "IEdmReferentialConstraint": { + "type": "object", + "properties": { + "propertyPairs": { + "type": "array", + "items": { + "$ref": "#/definitions/EdmReferentialConstraintPropertyPair" + }, + "readOnly": true + } + } + }, + "IEdmStructuredType": { + "type": "object", + "properties": { + "isAbstract": { + "type": "boolean", + "readOnly": true + }, + "isOpen": { + "type": "boolean", + "readOnly": true + }, + "baseType": { + "$ref": "#/definitions/IEdmStructuredType", + "readOnly": true + }, + "declaredProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/IEdmProperty" + }, + "readOnly": true + }, + "typeKind": { + "enum": [ + "None", + "Primitive", + "Entity", + "Complex", + "Collection", + "EntityReference", + "Enum", + "TypeDefinition", + "Untyped", + "Path" + ], + "type": "string", + "readOnly": true + } + } + }, + "EdmReferentialConstraintPropertyPair": { + "type": "object", + "properties": { + "dependentProperty": { + "$ref": "#/definitions/IEdmStructuralProperty", + "readOnly": true + }, + "principalProperty": { + "$ref": "#/definitions/IEdmStructuralProperty", + "readOnly": true + } + } + }, + "IEdmProperty": { + "type": "object", + "properties": { + "propertyKind": { + "enum": [ + "None", + "Structural", + "Navigation" + ], + "type": "string", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/IEdmTypeReference", + "readOnly": true + }, + "declaringType": { + "$ref": "#/definitions/IEdmStructuredType", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true + } + } + }, + "IEdmStructuralProperty": { + "type": "object", + "properties": { + "defaultValueString": { + "type": "string", + "readOnly": true + }, + "propertyKind": { + "enum": [ + "None", + "Structural", + "Navigation" + ], + "type": "string", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/IEdmTypeReference", + "readOnly": true + }, + "declaringType": { + "$ref": "#/definitions/IEdmStructuredType", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true + } + } + }, + "MachineCollection": { + "description": "Collection of machines.", + "type": "object", + "properties": { + "value": { + "description": "Gets or sets the machines.", + "type": "array", + "items": { + "$ref": "#/definitions/Machine" + } + }, + "nextLink": { + "description": "Gets or sets the value of nextLink.", + "type": "string" + } + } + }, + "Machine": { + "description": "Machine REST resource.", + "type": "object", + "properties": { + "id": { + "description": "Gets or sets the relative URL to get to this REST resource.", + "type": "string" + }, + "name": { + "description": "Gets or sets the name of this REST resource.", + "type": "string" + }, + "type": { + "description": "Gets the type of this REST resource.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/MachineProperties", + "description": "Gets or sets the properties of the machine." + } + } + }, + "MachineProperties": { + "description": "Properties of the machine resource.", + "type": "object", + "properties": { + "discoveryData": { + "description": "Gets or sets the discovery details of the machine published by various sources.", + "type": "array", + "items": { + "$ref": "#/definitions/DiscoveryDetails" + } + }, + "assessmentData": { + "description": "Gets or sets the assessment details of the machine published by various sources.", + "type": "array", + "items": { + "$ref": "#/definitions/AssessmentDetails" + } + }, + "migrationData": { + "description": "Gets or sets the migration details of the machine published by various sources.", + "type": "array", + "items": { + "$ref": "#/definitions/MigrationDetails" + } + }, + "lastUpdatedTime": { + "format": "date-time", + "description": "Gets or sets the time of the last modification of the machine.", + "type": "string" + } + } + }, + "DiscoveryDetails": { + "description": "Discovery properties that can be published by various ISVs.", + "type": "object", + "properties": { + "osType": { + "description": "Gets or sets the OS type.", + "type": "string" + }, + "osName": { + "description": "Gets or sets the OS name.", + "type": "string" + }, + "osVersion": { + "description": "Gets or sets the OS version.", + "type": "string" + }, + "enqueueTime": { + "description": "Gets or sets the time the message was enqueued.", + "type": "string" + }, + "solutionName": { + "description": "Gets or sets the name of the solution that sent the data.", + "type": "string" + }, + "machineId": { + "description": "Gets or sets the unique identifier of the machine.", + "type": "string" + }, + "machineManagerId": { + "description": "Gets or sets the unique identifier of the virtual machine manager(vCenter/VMM).", + "type": "string" + }, + "fabricType": { + "description": "Gets or sets the fabric type.", + "type": "string" + }, + "lastUpdatedTime": { + "format": "date-time", + "description": "Gets or sets the time of the last modification of the machine details.", + "type": "string" + }, + "machineName": { + "description": "Gets or sets the name of the machine.", + "type": "string" + }, + "ipAddresses": { + "description": "Gets or sets the list of IP addresses of the machine. IP addresses could be IP V4 or IP V6.", + "type": "array", + "items": { + "type": "string" + } + }, + "fqdn": { + "description": "Gets or sets the FQDN of the machine.", + "type": "string" + }, + "biosId": { + "description": "Gets or sets the BIOS ID of the machine.", + "type": "string" + }, + "macAddresses": { + "description": "Gets or sets the list of MAC addresses of the machine.", + "type": "array", + "items": { + "type": "string" + } + }, + "extendedInfo": { + "description": "Gets or sets the ISV specific extended information.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "AssessmentDetails": { + "description": "Assessment properties that can be shared by various publishers.", + "type": "object", + "properties": { + "assessmentId": { + "description": "Gets or sets the id of the assessment done on the machine.", + "type": "string" + }, + "targetVMSize": { + "description": "Gets or sets the target VM size.", + "type": "string" + }, + "targetVMLocation": { + "description": "Gets or sets the target VM location.", + "type": "string" + }, + "targetStorageType": { + "description": "Gets or sets the target storage type.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "enqueueTime": { + "description": "Gets or sets the time the message was enqueued.", + "type": "string" + }, + "solutionName": { + "description": "Gets or sets the name of the solution that sent the data.", + "type": "string" + }, + "machineId": { + "description": "Gets or sets the unique identifier of the machine.", + "type": "string" + }, + "machineManagerId": { + "description": "Gets or sets the unique identifier of the virtual machine manager(vCenter/VMM).", + "type": "string" + }, + "fabricType": { + "description": "Gets or sets the fabric type.", + "type": "string" + }, + "lastUpdatedTime": { + "format": "date-time", + "description": "Gets or sets the time of the last modification of the machine details.", + "type": "string" + }, + "machineName": { + "description": "Gets or sets the name of the machine.", + "type": "string" + }, + "ipAddresses": { + "description": "Gets or sets the list of IP addresses of the machine. IP addresses could be IP V4 or IP V6.", + "type": "array", + "items": { + "type": "string" + } + }, + "fqdn": { + "description": "Gets or sets the FQDN of the machine.", + "type": "string" + }, + "biosId": { + "description": "Gets or sets the BIOS ID of the machine.", + "type": "string" + }, + "macAddresses": { + "description": "Gets or sets the list of MAC addresses of the machine.", + "type": "array", + "items": { + "type": "string" + } + }, + "extendedInfo": { + "description": "Gets or sets the ISV specific extended information.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "MigrationDetails": { + "description": "Migration properties that can be shared by various publishers.", + "type": "object", + "properties": { + "migrationPhase": { + "description": "Gets or sets the phase of migration of the machine.", + "type": "string" + }, + "migrationTested": { + "description": "Gets or sets a value indicating whether migration was tested on the machine.", + "type": "boolean" + }, + "replicationProgressPercentage": { + "format": "int32", + "description": "Gets or sets the progress percentage of migration on the machine.", + "type": "integer" + }, + "targetVMArmId": { + "description": "Gets or sets the ARM id the migrated VM.", + "type": "string" + }, + "enqueueTime": { + "description": "Gets or sets the time the message was enqueued.", + "type": "string" + }, + "solutionName": { + "description": "Gets or sets the name of the solution that sent the data.", + "type": "string" + }, + "machineId": { + "description": "Gets or sets the unique identifier of the machine.", + "type": "string" + }, + "machineManagerId": { + "description": "Gets or sets the unique identifier of the virtual machine manager(vCenter/VMM).", + "type": "string" + }, + "fabricType": { + "description": "Gets or sets the fabric type.", + "type": "string" + }, + "lastUpdatedTime": { + "format": "date-time", + "description": "Gets or sets the time of the last modification of the machine details.", + "type": "string" + }, + "machineName": { + "description": "Gets or sets the name of the machine.", + "type": "string" + }, + "ipAddresses": { + "description": "Gets or sets the list of IP addresses of the machine. IP addresses could be IP V4 or IP V6.", + "type": "array", + "items": { + "type": "string" + } + }, + "fqdn": { + "description": "Gets or sets the FQDN of the machine.", + "type": "string" + }, + "biosId": { + "description": "Gets or sets the BIOS ID of the machine.", + "type": "string" + }, + "macAddresses": { + "description": "Gets or sets the list of MAC addresses of the machine.", + "type": "array", + "items": { + "type": "string" + } + }, + "extendedInfo": { + "description": "Gets or sets the ISV specific extended information.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "MigrateProject": { + "description": "Migrate Project REST Resource.", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "eTag": { + "description": "Gets or sets the eTag for concurrency control.", + "type": "string" + }, + "location": { + "description": "Gets or sets the Azure location in which migrate project is created.", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/MigrateProjectProperties", + "description": "Gets or sets the nested properties." + }, + "id": { + "description": "Gets the relative URL to get this migrate project.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Gets the name of the migrate project.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Handled by resource provider. Type = Microsoft.Migrate/MigrateProject.", + "type": "string", + "readOnly": true + }, + "tags": { + "description": "Gets or sets the tags.", + "type": "object", + "properties": { + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "MigrateProjectProperties": { + "description": "Class for migrate project properties.", + "type": "object", + "properties": { + "registeredTools": { + "description": "Gets or sets the list of tools registered with the migrate project.", + "type": "array", + "items": { + "enum": [ + "ServerDiscovery", + "ServerAssessment", + "ServerMigration", + "Cloudamize", + "Turbonomic", + "Zerto", + "CorentTech", + "ServerAssessmentV1", + "ServerMigration_Replication", + "Carbonite", + "DataMigrationAssistant", + "DatabaseMigrationService" + ], + "type": "string" + } + }, + "summary": { + "description": "Gets the summary of the migrate project.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ProjectSummary" + }, + "readOnly": true + }, + "lastSummaryRefreshedTime": { + "format": "date-time", + "description": "Gets the last time the project summary was refreshed.", + "type": "string", + "readOnly": true + }, + "refreshSummaryState": { + "description": "Gets the refresh summary state.", + "enum": [ + "Started", + "InProgress", + "Completed", + "Failed" + ], + "type": "string", + "readOnly": true + }, + "provisioningState": { + "type": "string", + "enum": [ + "Accepted", + "Creating", + "Deleting", + "Failed", + "Moving", + "Succeeded" + ], + "description": "Provisioning state of the migrate project.", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + } + } + }, + "ProjectSummary": { + "description": "The project summary class.", + "type": "object", + "properties": { + "instanceType": { + "description": "Gets the Instance type.", + "type": "string", + "readOnly": true + }, + "refreshSummaryState": { + "description": "Gets or sets the state of refresh summary.", + "enum": [ + "Started", + "InProgress", + "Completed", + "Failed" + ], + "type": "string" + }, + "lastSummaryRefreshedTime": { + "format": "date-time", + "description": "Gets or sets the time when summary was last refreshed.", + "type": "string" + }, + "extendedSummary": { + "description": "Gets or sets the extended summary.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "discriminator": "instanceType" + }, + "RegisterToolInput": { + "description": "Class representing the register tool input.", + "type": "object", + "properties": { + "tool": { + "description": "Gets or sets the tool to be registered.", + "enum": [ + "ServerDiscovery", + "ServerAssessment", + "ServerMigration", + "Cloudamize", + "Turbonomic", + "Zerto", + "CorentTech", + "ServerAssessmentV1", + "ServerMigration_Replication", + "Carbonite", + "DataMigrationAssistant", + "DatabaseMigrationService" + ], + "type": "string" + } + } + }, + "RegistrationResult": { + "description": "Class representing the registration status of a tool with the migrate project.", + "type": "object", + "properties": { + "isRegistered": { + "description": "Gets or sets a value indicating whether the tool is registered or not.", + "type": "boolean" + } + } + }, + "RefreshSummaryResult": { + "description": "Class representing the refresh summary status of the migrate project.", + "type": "object", + "properties": { + "isRefreshed": { + "description": "Gets or sets a value indicating whether the migrate project summary is refreshed.", + "type": "boolean" + } + } + }, + "RefreshSummaryInput": { + "description": "Class representing the refresh summary input.", + "type": "object", + "properties": { + "goal": { + "description": "Gets or sets the goal for which summary needs to be refreshed.", + "enum": [ + "Servers", + "Databases" + ], + "type": "string" + } + } + }, + "Solution": { + "description": "Solution REST Resource.", + "x-ms-azure-resource": true, + "type": "object", + "properties": { + "id": { + "description": "Gets the relative URL to get to this REST resource.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Gets the name of this REST resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Gets the type of this REST resource.", + "type": "string", + "readOnly": true + }, + "etag": { + "description": "Gets or sets the ETAG for optimistic concurrency control.", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/SolutionProperties", + "description": "Gets or sets the properties of the solution." + } + } + }, + "SolutionProperties": { + "description": "Class for solution properties.", + "type": "object", + "properties": { + "tool": { + "description": "Gets or sets the tool being used in the solution.", + "enum": [ + "ServerDiscovery", + "ServerAssessment", + "ServerMigration", + "Cloudamize", + "Turbonomic", + "Zerto", + "CorentTech", + "ServerAssessmentV1", + "ServerMigration_Replication", + "Carbonite", + "DataMigrationAssistant", + "DatabaseMigrationService" + ], + "type": "string" + }, + "purpose": { + "description": "Gets or sets the purpose of the solution.", + "enum": [ + "Discovery", + "Assessment", + "Migration" + ], + "type": "string" + }, + "goal": { + "description": "Gets or sets the goal of the solution.", + "enum": [ + "Servers", + "Databases" + ], + "type": "string" + }, + "status": { + "description": "Gets or sets the current status of the solution.", + "enum": [ + "Inactive", + "Active" + ], + "type": "string" + }, + "cleanupState": { + "description": "Gets or sets the cleanup state of the solution.", + "enum": [ + "None", + "Started", + "InProgress", + "Completed", + "Failed" + ], + "type": "string" + }, + "summary": { + "$ref": "#/definitions/SolutionSummary", + "description": "Gets or sets the summary of the solution." + }, + "details": { + "$ref": "#/definitions/SolutionDetails", + "description": "Gets or sets the details of the solution." + } + } + }, + "SolutionSummary": { + "description": "The solution summary class.", + "type": "object", + "properties": { + "instanceType": { + "description": "Gets the Instance type.", + "type": "string", + "readOnly": true + } + }, + "discriminator": "instanceType" + }, + "SolutionDetails": { + "description": "Class representing the details of the solution.", + "type": "object", + "properties": { + "groupCount": { + "format": "int32", + "description": "Gets or sets the count of groups reported by the solution.", + "type": "integer" + }, + "assessmentCount": { + "format": "int32", + "description": "Gets or sets the count of assessments reported by the solution.", + "type": "integer" + }, + "extendedDetails": { + "description": "Gets or sets the extended details reported by the solution.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "SolutionsCollection": { + "description": "Collection of solutions.", + "type": "object", + "properties": { + "value": { + "description": "Gets or sets the list of solutions.", + "type": "array", + "items": { + "$ref": "#/definitions/Solution" + } + }, + "nextLink": { + "description": "Gets or sets the value of next link.", + "type": "string" + } + } + }, + "SolutionConfig": { + "description": "Class representing the config for the solution in the migrate project.", + "type": "object", + "properties": { + "publisherSasUri": { + "description": "Gets or sets the publisher sas uri for the solution.", + "type": "string" + } + } + }, + "ServersProjectSummary": { + "description": "Class representing the servers project summary.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProjectSummary" + } + ], + "properties": { + "discoveredCount": { + "format": "int32", + "description": "Gets or sets the count of entities discovered.", + "type": "integer" + }, + "assessedCount": { + "format": "int32", + "description": "Gets or sets the count of entities assessed.", + "type": "integer" + }, + "replicatingCount": { + "format": "int32", + "description": "Gets or sets the count of entities being replicated.", + "type": "integer" + }, + "testMigratedCount": { + "format": "int32", + "description": "Gets or sets the count of entities test migrated.", + "type": "integer" + }, + "migratedCount": { + "format": "int32", + "description": "Gets or sets the count of entities migrated.", + "type": "integer" + } + }, + "x-ms-discriminator-value": "Servers" + }, + "DatabaseProjectSummary": { + "description": "The database project summary class.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProjectSummary" + } + ], + "properties": {}, + "x-ms-discriminator-value": "Databases" + }, + "ServersSolutionSummary": { + "description": "Class representing the servers solution summary.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/SolutionSummary" + } + ], + "properties": { + "discoveredCount": { + "format": "int32", + "description": "Gets or sets the count of servers discovered.", + "type": "integer" + }, + "assessedCount": { + "format": "int32", + "description": "Gets or sets the count of servers assessed.", + "type": "integer" + }, + "replicatingCount": { + "format": "int32", + "description": "Gets or sets the count of servers being replicated.", + "type": "integer" + }, + "testMigratedCount": { + "format": "int32", + "description": "Gets or sets the count of servers test migrated.", + "type": "integer" + }, + "migratedCount": { + "format": "int32", + "description": "Gets or sets the count of servers migrated.", + "type": "integer" + } + }, + "x-ms-discriminator-value": "Servers" + }, + "DatabasesSolutionSummary": { + "description": "Class representing the databases solution summary.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/SolutionSummary" + } + ], + "properties": { + "databasesAssessedCount": { + "format": "int32", + "description": "Gets or sets the count of databases assessed.", + "type": "integer" + }, + "databaseInstancesAssessedCount": { + "format": "int32", + "description": "Gets or sets the count of database instances assessed.", + "type": "integer" + }, + "migrationReadyCount": { + "format": "int32", + "description": "Gets or sets the count of databases ready for migration.", + "type": "integer" + } + }, + "x-ms-discriminator-value": "Databases" + }, + "MachineMigrateEventProperties": { + "description": "Properties of the machine error resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/MigrateEventProperties" + } + ], + "properties": { + "machine": { + "description": "Gets or sets the machine for which the error is being reported.", + "type": "string" + } + }, + "x-ms-discriminator-value": "Servers" + }, + "DatabaseMigrateEventProperties": { + "description": "Properties of the database error resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/MigrateEventProperties" + } + ], + "properties": { + "database": { + "description": "Gets or sets the database for which the error is being reported.", + "type": "string" + }, + "databaseInstanceId": { + "description": "Gets or sets the database instance for which the error is being reported.", + "type": "string" + } + }, + "x-ms-discriminator-value": "Databases" + }, + "OperationResultList": { + "type": "object", + "description": "List of API operations.", + "properties": { + "value": { + "type": "array", + "description": "List of operations.", + "items": { + "$ref": "#/definitions/Operation" + } + } + } + }, + "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 + } + } + }, + "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 + } + } + } + } +} diff --git a/specification/migrateprojects/resource-manager/readme.md b/specification/migrateprojects/resource-manager/readme.md new file mode 100644 index 000000000000..d36aa7de58ea --- /dev/null +++ b/specification/migrateprojects/resource-manager/readme.md @@ -0,0 +1,124 @@ +# Azure Migrate + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Azure Migrate. + +--- + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-09 +``` + +### Tag: package-2018-09 and java + +These settings apply only when `--tag=package-2018-09 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-09' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.azuremigrate.v2018_09_01 + output-folder: $(azure-libraries-for-java-folder)/azuremigrate/resource-manager/v2018_09_01 +regenerate-manager: true +generate-interface: true +``` + + +## Getting Started +To build the SDK for Migrate, 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 API. + +``` yaml +openapi-type: arm +tag: package-2018-09 +``` + + +### Tag: package-2018-09 + +These settings apply only when `--tag=package-2018-09` is specified on the command line. + +``` yaml $(tag) == 'package-2018-09' +input-file: +- Microsoft.Migrate/preview/2018-09-01-preview/migrate.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-go +``` + +## 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 + namespace: migrate +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2018-09 +``` + +### Tag: package-2018-09 and go + +These settings apply only when `--tag=package-2018-09 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag)=='package-2018-09' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-09-01-preview/$(namespace) +``` + +## 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.Migrate/preview/2018-09-01-preview/migrate.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/migrateprojects/resource-manager/readme.nodejs.md b/specification/migrateprojects/resource-manager/readme.nodejs.md new file mode 100644 index 000000000000..659dab26dfe8 --- /dev/null +++ b/specification/migrateprojects/resource-manager/readme.nodejs.md @@ -0,0 +1,15 @@ +## 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-arm-migrateprojects + package-version: 1.0.0-preview + output-folder: $(node-sdks-folder)/lib/services/migrateprojectsManagement + generate-license-txt: true + generate-package-json: true + generate-readme-md: true +``` diff --git a/specification/mixedreality/resource-manager/readme.md b/specification/mixedreality/resource-manager/readme.md index a49f2e708dd3..069de3bd35ca 100644 --- a/specification/mixedreality/resource-manager/readme.md +++ b/specification/mixedreality/resource-manager/readme.md @@ -58,6 +58,7 @@ 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-js - repo: azure-sdk-for-go @@ -109,3 +110,31 @@ python: ## Go See configuration in [readme.go.md](./readme.go.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.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 + - $(this-folder)/Microsoft.MixedReality/preview/2019-02-28-preview/mixedreality.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/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json b/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json index 4c8dadb212e1..0f4ffddf4c84 100644 --- a/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json +++ b/specification/monitor/data-plane/preview/2018-09-01-preview/examples/AzureMetrics_IngestMetrics.json @@ -1,47 +1,47 @@ { - "parameters": { - "api-version": "2018-09-01-preview", - "Content-Type": "application/json", - "Content-Length": 783, - "Authorization": "Bearer {AAD JWT token issued for \"https:\\\\monitoring.azure.com\\}\"", - "subscriptionId": "b7ac8a0c-fbae-4e29-a0f7-09999b8857a1", - "resourceGroupName": "CowsSeller", - "resourceProvider": "Microsoft.Storage", - "resourceTypeName": "storageAccounts", - "resourceName": "cowssellerstore", - "body": { - "time": "2018-08-24T 11:02:00-7:00", - "data": { - "baseData": { - "metric": "CowsSold", - "namespace": "Cows", - "dimNames": [ - "Breed", - "Color", - "Age" - ], - "series": [ - { - "dimValues": [ - "Angus", - "Blue", - "5" - ], - "min": 5, - "max": 20, - "sum": 30, - "count": 3 - } - ] - } - } - } - }, - "responses": { - "200": { - "body": { - "statusCode": 200 + "parameters": { + "api-version": "2018-09-01-preview", + "Content-Type": "application/json", + "Content-Length": 783, + "Authorization": "Bearer {AAD JWT token issued for \"https:\\\\monitoring.azure.com\\}\"", + "subscriptionId": "b7ac8a0c-fbae-4e29-a0f7-09999b8857a1", + "resourceGroupName": "CowsSeller", + "resourceProvider": "Microsoft.Storage", + "resourceTypeName": "storageAccounts", + "resourceName": "cowssellerstore", + "body": { + "time": "2018-08-24T 11:02:00-7:00", + "data": { + "baseData": { + "metric": "CowsSold", + "namespace": "Cows", + "dimNames": [ + "Breed", + "Color", + "Age" + ], + "series": [ + { + "dimValues": [ + "Angus", + "Blue", + "5" + ], + "min": 5, + "max": 20, + "sum": 30, + "count": 3 } + ] } + } + } + }, + "responses": { + "200": { + "body": { + "statusCode": 200 + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/data-plane/preview/2018-09-01-preview/metricsCreate_API.json b/specification/monitor/data-plane/preview/2018-09-01-preview/metricsCreate_API.json index 344ed08b867a..499c2dcdbfb5 100644 --- a/specification/monitor/data-plane/preview/2018-09-01-preview/metricsCreate_API.json +++ b/specification/monitor/data-plane/preview/2018-09-01-preview/metricsCreate_API.json @@ -176,7 +176,7 @@ } } }, - "required":[ + "required": [ "metric", "namespace", "series" @@ -213,7 +213,7 @@ "type": "integer" } }, - "required" : [ + "required": [ "min", "max", "sum", @@ -255,4 +255,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/data-plane/readme.md b/specification/monitor/data-plane/readme.md index f7a529ace666..f3150c707a4e 100644 --- a/specification/monitor/data-plane/readme.md +++ b/specification/monitor/data-plane/readme.md @@ -145,4 +145,28 @@ namespace: com.microsoft.azure.monitor license-header: MICROSOFT_MIT_NO_CODEGEN payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/monitor/data-plane -``` \ No newline at end of file +``` +## 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/2018-09-01-preview/metricsCreate_API.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/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/activityLogAlerts_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/activityLogAlerts_API.json index 8dbc8df139dd..5ff0bea9c06e 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/activityLogAlerts_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/activityLogAlerts_API.json @@ -1,527 +1,527 @@ { - "swagger": "2.0", - "info": { - "title": "Azure Activity Log Alerts API", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2017-03-01-preview" + "swagger": "2.0", + "info": { + "title": "Azure Activity Log Alerts API", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] + "version": "2017-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.insights/activityLogAlerts/{activityLogAlertName}": { + "put": { + "deprecated": true, + "description": "Create a new activity log alert or update an existing one.", + "operationId": "ActivityLogAlerts_CreateOrUpdate", + "x-ms-examples": { + "Create or update an activity log alert": { + "$ref": "./examples/createOrUpdateActivityLogAlert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActivityLogAlertNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "activityLogAlert", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActivityLogAlertResource" + }, + "description": "The activity log alert to create or use for the update." + } + ], + "responses": { + "200": { + "description": "An existing activity log alert was successfully updated.", + "schema": { + "$ref": "#/definitions/ActivityLogAlertResource" + } + }, + "201": { + "description": "A new activity log alert was successfully created.", + "schema": { + "$ref": "#/definitions/ActivityLogAlertResource" + } + }, + "default": { + "description": "An error occurred and the activity log alert could not be created or updated.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } - ], - "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" + }, + "get": { + "deprecated": true, + "description": "Get an activity log alert.", + "operationId": "ActivityLogAlerts_Get", + "x-ms-examples": { + "Get an activity log alert": { + "$ref": "./examples/getActivityLogAlert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActivityLogAlertNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActivityLogAlertResource" } + }, + "default": { + "description": "An error occurred and the activity log alert could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}": { - "put": { - "deprecated": true, - "description": "Create a new activity log alert or update an existing one.", - "operationId": "ActivityLogAlerts_CreateOrUpdate", - "x-ms-examples": { - "Create or update an activity log alert": { - "$ref": "./examples/createOrUpdateActivityLogAlert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActivityLogAlertNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "activityLogAlert", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActivityLogAlertResource" - }, - "description": "The activity log alert to create or use for the update." - } - ], - "responses": { - "200": { - "description": "An existing activity log alert was successfully updated.", - "schema": { - "$ref": "#/definitions/ActivityLogAlertResource" - } - }, - "201": { - "description": "A new activity log alert was successfully created.", - "schema": { - "$ref": "#/definitions/ActivityLogAlertResource" - } - }, - "default": { - "description": "An error occurred and the activity log alert could not be created or updated.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "get": { - "deprecated": true, - "description": "Get an activity log alert.", - "operationId": "ActivityLogAlerts_Get", - "x-ms-examples": { - "Get an activity log alert": { - "$ref": "./examples/getActivityLogAlert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActivityLogAlertNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActivityLogAlertResource" - } - }, - "default": { - "description": "An error occurred and the activity log alert could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "deprecated": true, - "description": "Delete an activity log alert.", - "operationId": "ActivityLogAlerts_Delete", - "x-ms-examples": { - "Delete an activity log alert": { - "$ref": "./examples/deleteActivityLogAlert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActivityLogAlertNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The activity log alert was successfully deleted." - }, - "204": { - "description": "The activity log alert does not exist. It may have already been deleted." - }, - "default": { - "description": "An error occurred and the activity log alert could not be deleted.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "delete": { + "deprecated": true, + "description": "Delete an activity log alert.", + "operationId": "ActivityLogAlerts_Delete", + "x-ms-examples": { + "Delete an activity log alert": { + "$ref": "./examples/deleteActivityLogAlert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActivityLogAlertNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The activity log alert was successfully deleted." + }, + "204": { + "description": "The activity log alert does not exist. It may have already been deleted." + }, + "default": { + "description": "An error occurred and the activity log alert could not be deleted.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "deprecated": true, + "description": "Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.", + "operationId": "ActivityLogAlerts_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActivityLogAlertNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "activityLogAlertPatch", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActivityLogAlertResourcePatch" }, - "patch": { - "deprecated": true, - "description": "Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.", - "operationId": "ActivityLogAlerts_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActivityLogAlertNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "activityLogAlertPatch", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActivityLogAlertResourcePatch" - }, - "description": "Parameters supplied to the operation." - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "An existing activity log alert was successfully updated.", - "schema": { - "$ref": "#/definitions/ActivityLogAlertResource" - } - } - }, - "x-ms-examples": { - "Path an activity log alert": { - "$ref": "./examples/patchActivityLogAlert.json" - } - } + "description": "Parameters supplied to the operation." + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } - }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/activityLogAlerts": { - "get": { - "deprecated": true, - "description": "Get a list of all activity log alerts in a subscription.", - "operationId": "ActivityLogAlerts_ListBySubscriptionId", - "x-ms-examples": { - "List activity log alerts": { - "$ref": "./examples/listActivityLogAlerts.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActivityLogAlertList" - } - }, - "default": { - "description": "An error occurred and the list of activity log alerts could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "200": { + "description": "An existing activity log alert was successfully updated.", + "schema": { + "$ref": "#/definitions/ActivityLogAlertResource" } + } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts": { - "get": { - "deprecated": true, - "description": "Get a list of all activity log alerts in a resource group.", - "operationId": "ActivityLogAlerts_ListByResourceGroup", - "x-ms-examples": { - "List activity log alerts": { - "$ref": "./examples/listActivityLogAlerts.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActivityLogAlertList" - } - }, - "default": { - "description": "An error occurred and the list of activity log alerts could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } + "x-ms-examples": { + "Path an activity log alert": { + "$ref": "./examples/patchActivityLogAlert.json" + } } + } }, - "definitions": { - "Resource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Azure resource name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" + "/subscriptions/{subscriptionId}/providers/microsoft.insights/activityLogAlerts": { + "get": { + "deprecated": true, + "description": "Get a list of all activity log alerts in a subscription.", + "operationId": "ActivityLogAlerts_ListBySubscriptionId", + "x-ms-examples": { + "List activity log alerts": { + "$ref": "./examples/listActivityLogAlerts.json" + } }, - "ActivityLogAlertResource": { - "description": "An activity log alert resource.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActivityLogAlert" - } + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActivityLogAlertList" + } + }, + "default": { + "description": "An error occurred and the list of activity log alerts could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts": { + "get": { + "deprecated": true, + "description": "Get a list of all activity log alerts in a resource group.", + "operationId": "ActivityLogAlerts_ListByResourceGroup", + "x-ms-examples": { + "List activity log alerts": { + "$ref": "./examples/listActivityLogAlerts.json" + } }, - "ActivityLogAlertList": { - "description": "A list of activity log alerts.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ActivityLogAlertResource" - }, - "description": "The list of activity log alerts." - } + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActivityLogAlertList" + } + }, + "default": { + "description": "An error occurred and the list of activity log alerts could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" }, - "ActivityLogAlert": { - "description": "An Azure activity log alert.", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item." - }, - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated." - }, - "condition": { - "$ref": "#/definitions/ActivityLogAlertAllOfCondition", - "description": "The condition that will cause this alert to activate." - }, - "actions": { - "$ref": "#/definitions/ActivityLogAlertActionList", - "description": "The actions that will activate when the condition is met." - }, - "description": { - "type": "string", - "description": "A description of this activity log alert." - } - }, - "required": [ - "scopes", - "condition", - "actions" - ] + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" }, - "ActivityLogAlertAllOfCondition": { - "properties": { - "allOf": { - "type": "array", - "items": { - "$ref": "#/definitions/ActivityLogAlertLeafCondition" - }, - "description": "The list of activity log alert conditions." - } - }, - "description": "An Activity Log alert condition that is met when all its member conditions are met.", - "required": [ - "allOf" - ] + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" }, - "ActivityLogAlertLeafCondition": { - "properties": { - "field": { - "type": "string", - "description": "The name of the field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties.'." - }, - "equals": { - "type": "string", - "description": "The field value will be compared to this value (case-insensitive) to determine if the condition is met." - } - }, - "description": "An Activity Log alert condition that is met by comparing an activity log field and value.", - "required": [ - "field", - "equals" - ] + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] }, - "ActivityLogAlertActionList": { - "description": "A list of activity log alert actions.", - "properties": { - "actionGroups": { - "type": "array", - "items": { - "$ref": "#/definitions/ActivityLogAlertActionGroup" - }, - "description": "The list of activity log alerts." - } - } + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "ActivityLogAlertResource": { + "description": "An activity log alert resource.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActivityLogAlert" + } + } + }, + "ActivityLogAlertList": { + "description": "A list of activity log alerts.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityLogAlertResource" + }, + "description": "The list of activity log alerts." + } + } + }, + "ActivityLogAlert": { + "description": "An Azure activity log alert.", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item." }, - "ActivityLogAlertActionGroup": { - "description": "A pointer to an Azure Action Group.", - "properties": { - "actionGroupId": { - "type": "string", - "description": "The resourceId of the action group. This cannot be null or empty." - }, - "webhookProperties": { - "additionalProperties": { - "type": "string" - }, - "description": "The dictionary of custom properties to include with the post operation. These data are appended to the webhook payload." - } - }, - "required": [ - "actionGroupId" - ] + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated." }, - "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" - } - } + "condition": { + "$ref": "#/definitions/ActivityLogAlertAllOfCondition", + "description": "The condition that will cause this alert to activate." }, - "ActivityLogAlertResourcePatch": { - "description": "An activity log alert resource for patch operations.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActivityLogAlertPatch" - } - } + "actions": { + "$ref": "#/definitions/ActivityLogAlertActionList", + "description": "The actions that will activate when the condition is met." }, - "ActivityLogAlertPatch": { - "description": "An Azure activity log alert for patch operations.", - "properties": { - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated." - } - } + "description": { + "type": "string", + "description": "A description of this activity log alert." } + }, + "required": [ + "scopes", + "condition", + "actions" + ] }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription Id." + "ActivityLogAlertAllOfCondition": { + "properties": { + "allOf": { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityLogAlertLeafCondition" + }, + "description": "The list of activity log alert conditions." + } + }, + "description": "An Activity Log alert condition that is met when all its member conditions are met.", + "required": [ + "allOf" + ] + }, + "ActivityLogAlertLeafCondition": { + "properties": { + "field": { + "type": "string", + "description": "The name of the field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties.'." }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" + "equals": { + "type": "string", + "description": "The field value will be compared to this value (case-insensitive) to determine if the condition is met." + } + }, + "description": "An Activity Log alert condition that is met by comparing an activity log field and value.", + "required": [ + "field", + "equals" + ] + }, + "ActivityLogAlertActionList": { + "description": "A list of activity log alert actions.", + "properties": { + "actionGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityLogAlertActionGroup" + }, + "description": "The list of activity log alerts." + } + } + }, + "ActivityLogAlertActionGroup": { + "description": "A pointer to an Azure Action Group.", + "properties": { + "actionGroupId": { + "type": "string", + "description": "The resourceId of the action group. This cannot be null or empty." }, - "ActivityLogAlertNameParameter": { - "name": "activityLogAlertName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the activity log alert.", - "x-ms-parameter-location": "method" + "webhookProperties": { + "additionalProperties": { + "type": "string" + }, + "description": "The dictionary of custom properties to include with the post operation. These data are appended to the webhook payload." + } + }, + "required": [ + "actionGroupId" + ] + }, + "ErrorResponse": { + "description": "Describes the format of Error response.", + "type": "object", + "properties": { + "code": { + "description": "Error code", + "type": "string" }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string" } + } + }, + "ActivityLogAlertResourcePatch": { + "description": "An activity log alert resource for patch operations.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActivityLogAlertPatch" + } + } + }, + "ActivityLogAlertPatch": { + "description": "An Azure activity log alert for patch operations.", + "properties": { + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription Id." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ActivityLogAlertNameParameter": { + "name": "activityLogAlertName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the activity log alert.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." } + } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/createOrUpdateActivityLogAlert.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/createOrUpdateActivityLogAlert.json index 16d14631da06..713c7ca84d46 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/createOrUpdateActivityLogAlert.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/createOrUpdateActivityLogAlert.json @@ -1,121 +1,121 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-ActivityLogAlerts", - "activityLogAlertName": "SampleActivityLogAlert", - "api-version": "2017-03-01-preview", - "activityLogAlert": { - "location": "Global", - "tags": { }, - "properties": { - "scopes": [ - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d" - ], - "enabled": true, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - }, - { - "field": "Level", - "equals": "Error" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { - "sampleWebhookProperty": "samplePropertyValue" - } - } - ] - }, - "description": "Sample activity log alert description" + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-ActivityLogAlerts", + "activityLogAlertName": "SampleActivityLogAlert", + "api-version": "2017-03-01-preview", + "activityLogAlert": { + "location": "Global", + "tags": {}, + "properties": { + "scopes": [ + "/subscriptions/187f412d-1758-44d9-b052-169e2564721d" + ], + "enabled": true, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + }, + { + "field": "Level", + "equals": "Error" } - } - }, - "responses": { - "200": { - "headers": { }, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", - "type": "Microsoft.Insights/ActivityLogAlerts", - "name": "SampleActivityLogAlert", - "location": "Global", - "tags": { }, - "properties": { - "scopes": [ - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d" - ], - "enabled": true, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - }, - { - "field": "Level", - "equals": "Error" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { - "sampleWebhookProperty": "samplePropertyValue" - } - } - ] - }, - "description": "Sample activity log alert description" - } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": { + "sampleWebhookProperty": "samplePropertyValue" + } } + ] }, - "201": { - "headers": { }, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", - "type": "Microsoft.Insights/ActivityLogAlerts", - "name": "SampleActivityLogAlert", - "location": "Global", - "tags": { }, - "properties": { - "scopes": [ - "subscriptions/187f412d-1758-44d9-b052-169e2564721d" - ], - "enabled": true, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - }, - { - "field": "Level", - "equals": "Error" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { - "sampleWebhookProperty": "samplePropertyValue" - } - } - ] - }, - "description": "Sample activity log alert description" + "description": "Sample activity log alert description" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", + "type": "Microsoft.Insights/ActivityLogAlerts", + "name": "SampleActivityLogAlert", + "location": "Global", + "tags": {}, + "properties": { + "scopes": [ + "/subscriptions/187f412d-1758-44d9-b052-169e2564721d" + ], + "enabled": true, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + }, + { + "field": "Level", + "equals": "Error" + } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": { + "sampleWebhookProperty": "samplePropertyValue" } - } + } + ] + }, + "description": "Sample activity log alert description" + } + } + }, + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", + "type": "Microsoft.Insights/ActivityLogAlerts", + "name": "SampleActivityLogAlert", + "location": "Global", + "tags": {}, + "properties": { + "scopes": [ + "subscriptions/187f412d-1758-44d9-b052-169e2564721d" + ], + "enabled": true, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + }, + { + "field": "Level", + "equals": "Error" + } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": { + "sampleWebhookProperty": "samplePropertyValue" + } + } + ] + }, + "description": "Sample activity log alert description" } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/deleteActivityLogAlert.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/deleteActivityLogAlert.json index 05fab8bcc4cd..30c6a9568483 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/deleteActivityLogAlert.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/deleteActivityLogAlert.json @@ -1,18 +1,12 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-ActivityLogAlerts", - "activityLogAlertName": "SampleActivityLogAlert", - "api-version": "2017-03-01-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-ActivityLogAlerts", + "activityLogAlertName": "SampleActivityLogAlert", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/getActivityLogAlert.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/getActivityLogAlert.json index 8af0493dc28c..85bd49638845 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/getActivityLogAlert.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/getActivityLogAlert.json @@ -1,49 +1,49 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-ActivityLogAlerts", - "activityLogAlertName": "SampleActivityLogAlert", - "api-version": "2017-03-01-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", - "type": "Microsoft.Insights/ActivityLogAlerts", - "name": "SampleActivityLogAlert", - "location": "Global", - "tags": {}, - "properties": { - "scopes": [ - "subscriptions/187f412d-1758-44d9-b052-169e2564721d" - ], - "enabled": true, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - }, - { - "field": "Level", - "equals": "Error" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { - "sampleWebhookProperty": "samplePropertyValue" - } - } - ] - }, - "description": "Sample activity log alert description" + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-ActivityLogAlerts", + "activityLogAlertName": "SampleActivityLogAlert", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", + "type": "Microsoft.Insights/ActivityLogAlerts", + "name": "SampleActivityLogAlert", + "location": "Global", + "tags": {}, + "properties": { + "scopes": [ + "subscriptions/187f412d-1758-44d9-b052-169e2564721d" + ], + "enabled": true, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + }, + { + "field": "Level", + "equals": "Error" + } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": { + "sampleWebhookProperty": "samplePropertyValue" } - } + } + ] + }, + "description": "Sample activity log alert description" } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/listActivityLogAlerts.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/listActivityLogAlerts.json index 04507656ca2a..ad8d840dc9ad 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/listActivityLogAlerts.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/listActivityLogAlerts.json @@ -1,81 +1,81 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-ActivityLogAlerts", - "api-version": "2017-03-01-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", - "type": "Microsoft.Insights/ActivityLogAlerts", - "name": "SampleActivityLogAlert", - "location": "Global", - "tags": {}, - "properties": { - "scopes": [ - "subscriptions/187f412d-1758-44d9-b052-169e2564721d" - ], - "enabled": true, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - }, - { - "field": "Level", - "equals": "Error" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { - "sampleWebhookProperty": "samplePropertyValue" - } - } - ] - }, - "description": "Sample activity log alert description" - } - }, - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert2", - "type": "Microsoft.Insights/ActivityLogAlerts", - "name": "SampleActivityLogAlert2", - "location": "Global", - "tags": {}, - "properties": { - "scopes": [ - "subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts" - ], - "enabled": true, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { } - } - ] - } - } + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-ActivityLogAlerts", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", + "type": "Microsoft.Insights/ActivityLogAlerts", + "name": "SampleActivityLogAlert", + "location": "Global", + "tags": {}, + "properties": { + "scopes": [ + "subscriptions/187f412d-1758-44d9-b052-169e2564721d" + ], + "enabled": true, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + }, + { + "field": "Level", + "equals": "Error" + } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": { + "sampleWebhookProperty": "samplePropertyValue" } + } + ] + }, + "description": "Sample activity log alert description" + } + }, + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert2", + "type": "Microsoft.Insights/ActivityLogAlerts", + "name": "SampleActivityLogAlert2", + "location": "Global", + "tags": {}, + "properties": { + "scopes": [ + "subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts" + ], + "enabled": true, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": {} + } ] + } } - } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/patchActivityLogAlert.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/patchActivityLogAlert.json index 4c592bc5a958..0ac423a4ad74 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/patchActivityLogAlert.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-03-01-preview/examples/patchActivityLogAlert.json @@ -1,56 +1,62 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-ActivityLogAlerts", - "activityLogAlertName": "SampleActivityLogAlert", - "api-version": "2017-03-01-preview", - "activityLogAlertPatch": { - "location": "Global", - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "enabled": false - } - } - }, - "responses": { - "200": { - "headers": { }, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", - "type": "Microsoft.Insights/ActivityLogAlerts", - "name": "SampleActivityLogAlert", - "location": "Global", - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "scopes": [ - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d" - ], - "enabled": false, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - }, - { - "field": "Level", - "equals": "Error" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { - "sampleWebhookProperty": "samplePropertyValue" - } - } - ] - }, - "description": "Sample activity log alert description" + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-ActivityLogAlerts", + "activityLogAlertName": "SampleActivityLogAlert", + "api-version": "2017-03-01-preview", + "activityLogAlertPatch": { + "location": "Global", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "enabled": false + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", + "type": "Microsoft.Insights/ActivityLogAlerts", + "name": "SampleActivityLogAlert", + "location": "Global", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "scopes": [ + "/subscriptions/187f412d-1758-44d9-b052-169e2564721d" + ], + "enabled": false, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + }, + { + "field": "Level", + "equals": "Error" + } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": { + "sampleWebhookProperty": "samplePropertyValue" } - } + } + ] + }, + "description": "Sample activity log alert description" } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettingsCategories_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettingsCategories_API.json index 84ce43832f26..7b5e3e1334a2 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettingsCategories_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettingsCategories_API.json @@ -72,7 +72,7 @@ "Gets the diagnostic setting": { "$ref": "./examples/getDiagnosticSettingsCategory.json" } - } + } } }, "/{resourceUri}/providers/microsoft.insights/diagnosticSettingsCategories": { @@ -108,7 +108,7 @@ "Gets the diagnostic setting": { "$ref": "./examples/listDiagnosticSettingsCategories.json" } - } + } } } }, @@ -137,10 +137,13 @@ "DiagnosticSettingsCategory": { "properties": { "categoryType": { - "enum": ["Metrics", "Logs"], + "enum": [ + "Metrics", + "Logs" + ], "type": "string", "x-ms-enum": { - "name": "categoryType" + "name": "categoryType" }, "x-nullable": false, "description": "The type of the diagnostic settings category." @@ -217,4 +220,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettings_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettings_API.json index 2febaa3b9017..b96db55196ca 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettings_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettings_API.json @@ -72,7 +72,7 @@ "Gets the diagnostic setting": { "$ref": "./examples/getDiagnosticSetting.json" } - } + } }, "put": { "tags": [ @@ -118,7 +118,7 @@ "Creates or Updates the diagnostic setting": { "$ref": "./examples/createOrUpdateDiagnosticSetting.json" } - } + } }, "delete": { "tags": [ @@ -155,7 +155,7 @@ "Deletes the diagnostic setting": { "$ref": "./examples/deleteDiagnosticSetting.json" } - } + } } }, "/{resourceUri}/providers/microsoft.insights/diagnosticSettings": { @@ -191,7 +191,7 @@ "Gets the diagnostic setting": { "$ref": "./examples/listDiagnosticSettings.json" } - } + } } } }, @@ -230,7 +230,10 @@ "description": "the number of days for the retention in days. A value of 0 will retain the events indefinitely." } }, - "required": [ "enabled", "days" ], + "required": [ + "enabled", + "days" + ], "description": "Specifies the retention policy for the log." }, "MetricSettings": { @@ -253,7 +256,9 @@ "description": "the retention policy for this category." } }, - "required": [ "enabled" ], + "required": [ + "enabled" + ], "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric." }, "LogSettings": { @@ -271,7 +276,9 @@ "description": "the retention policy for this log." } }, - "required": [ "enabled" ], + "required": [ + "enabled" + ], "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log." }, "DiagnosticSettings": { @@ -297,18 +304,22 @@ "items": { "$ref": "#/definitions/MetricSettings" }, - "description": "the list of metric settings." + "description": "The list of metric settings." }, "logs": { "type": "array", "items": { "$ref": "#/definitions/LogSettings" }, - "description": "the list of logs settings." + "description": "The list of logs settings." }, "workspaceId": { "type": "string", - "description": "The workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2" + "description": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2" + }, + "logAnalyticsDestinationType": { + "type": "string", + "description": "A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: _. Possible values are: Dedicated and null (null is default.)" } }, "description": "The diagnostic settings." @@ -382,4 +393,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetric.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetric.json index 14a12faa011b..07251092bf57 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetric.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetric.json @@ -1,95 +1,95 @@ { - "parameters": { - "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", + "parameters": { + "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", + "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "metric": "BlobCapacity", + "$filter": "BlobType eq '*'", + "top": "3", + "orderby": "Average asc", + "aggregation": "Average,count", + "interval": "PT1M", + "api-version": "2017-05-01-preview" + }, + "responses": { + "200": { + "body": { + "cost": 0, "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "metric": "BlobCapacity", - "$filter": "BlobType eq '*'", - "top": "3", - "orderby": "Average asc", - "aggregation": "Average,count", "interval": "PT1M", - "api-version": "2017-05-01-preview" - }, - "responses": { - "200": { - "body": { - "cost": 0, - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "interval": "PT1M", - "value": [ - { - "id": "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity", - "type": "Microsoft.Insights/metrics", - "name": { - "value": "BlobCapacity", - "localizedValue": "Blob Capacity" + "value": [ + { + "id": "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity", + "type": "Microsoft.Insights/metrics", + "name": { + "value": "BlobCapacity", + "localizedValue": "Blob Capacity" + }, + "unit": "Bytes", + "timeseries": [ + { + "metadatavalues": [ + { + "name": { + "value": "blobtype", + "localizedValue": "blobtype" + }, + "value": "PageBlob" + } + ], + "data": [ + { + "timeStamp": "2017-04-14T02:20:00Z", + "count": 0.0 + }, + { + "timeStamp": "2017-04-14T02:21:00Z", + "count": 0.0 + }, + { + "timeStamp": "2017-04-14T02:22:00Z", + "count": 0.0 }, - "unit": "Bytes", - "timeseries": [ - { - "metadatavalues": [ - { - "name": { - "value": "blobtype", - "localizedValue": "blobtype" - }, - "value": "PageBlob" - } - ], - "data": [ - { - "timeStamp": "2017-04-14T02:20:00Z", - "count": 0.0 - }, - { - "timeStamp": "2017-04-14T02:21:00Z", - "count": 0.0 - }, - { - "timeStamp": "2017-04-14T02:22:00Z", - "count": 0.0 - }, - { - "timeStamp": "2017-04-14T02:23:00Z", - "count": 1.0, - "average": 0.0 - } - ] + { + "timeStamp": "2017-04-14T02:23:00Z", + "count": 1.0, + "average": 0.0 + } + ] + }, + { + "metadatavalues": [ + { + "name": { + "value": "blobtype", + "localizedValue": "blobtype" }, - { - "metadatavalues": [ - { - "name": { - "value": "blobtype", - "localizedValue": "blobtype" - }, - "value": "BlockBlob" - } - ], - "data": [ - { - "timeStamp": "2017-04-14T02:20:00Z", - "count": 0.0 - }, - { - "timeStamp": "2017-04-14T02:21:00Z", - "count": 0.0 - }, - { - "timeStamp": "2017-04-14T02:22:00Z", - "count": 0.0 - }, - { - "timeStamp": "2017-04-14T02:23:00Z", - "count": 1.0, - "average": 245.0 - } - ] - } - ] - } - ] - } - } + "value": "BlockBlob" + } + ], + "data": [ + { + "timeStamp": "2017-04-14T02:20:00Z", + "count": 0.0 + }, + { + "timeStamp": "2017-04-14T02:21:00Z", + "count": 0.0 + }, + { + "timeStamp": "2017-04-14T02:22:00Z", + "count": 0.0 + }, + { + "timeStamp": "2017-04-14T02:23:00Z", + "count": 1.0, + "average": 245.0 + } + ] + } + ] + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricDefinitions.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricDefinitions.json index cf6d98975ea7..c92baff7bd0d 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricDefinitions.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricDefinitions.json @@ -1,383 +1,446 @@ { - "parameters": { - "resourceUri": "subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions", - "api-version": "2017-05-01-preview" - }, - "responses": { - "200": { - "body": - { - "value": [{ - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/CpuTime", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "CpuTime", - "localizedValue": "CPU Time" - }, - "isDimensionRequired": false, - "unit": "Seconds", - "primaryAggregationType": "Total", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Requests", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "Requests", - "localizedValue": "Requests" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesReceived", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "BytesReceived", - "localizedValue": "Data In" - }, - "isDimensionRequired": false, - "unit": "Bytes", - "primaryAggregationType": "Total", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesSent", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "BytesSent", - "localizedValue": "Data Out" - }, - "isDimensionRequired": false, - "unit": "Bytes", - "primaryAggregationType": "Total", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http101", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "Http101", - "localizedValue": "Http 101" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http2xx", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "Http2xx", - "localizedValue": "Http 2xx" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http3xx", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "Http3xx", - "localizedValue": "Http 3xx" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http401", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "Http401", - "localizedValue": "Http 401" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http403", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "Http403", - "localizedValue": "Http 403" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http404", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "Http404", - "localizedValue": "Http 404" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http406", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "Http406", - "localizedValue": "Http 406" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http4xx", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "Http4xx", - "localizedValue": "Http 4xx" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http5xx", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "Http5xx", - "localizedValue": "Http Server Errors" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/MemoryWorkingSet", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "MemoryWorkingSet", - "localizedValue": "Memory working set" - }, - "isDimensionRequired": false, - "unit": "Bytes", - "primaryAggregationType": "Average", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageMemoryWorkingSet", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "AverageMemoryWorkingSet", - "localizedValue": "Average memory working set" - }, - "isDimensionRequired": false, - "unit": "Bytes", - "primaryAggregationType": "Average", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageResponseTime", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "name": { - "value": "AverageResponseTime", - "localizedValue": "Average Response Time" - }, - "isDimensionRequired": false, - "unit": "Seconds", - "primaryAggregationType": "Average", - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P30D" - }, { - "timeGrain": "PT1H", - "retention": "P30D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - } - ] - } - } + "parameters": { + "resourceUri": "subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions", + "api-version": "2017-05-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/CpuTime", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "CpuTime", + "localizedValue": "CPU Time" + }, + "isDimensionRequired": false, + "unit": "Seconds", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Requests", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "Requests", + "localizedValue": "Requests" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesReceived", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "BytesReceived", + "localizedValue": "Data In" + }, + "isDimensionRequired": false, + "unit": "Bytes", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesSent", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "BytesSent", + "localizedValue": "Data Out" + }, + "isDimensionRequired": false, + "unit": "Bytes", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http101", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "Http101", + "localizedValue": "Http 101" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http2xx", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "Http2xx", + "localizedValue": "Http 2xx" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http3xx", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "Http3xx", + "localizedValue": "Http 3xx" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http401", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "Http401", + "localizedValue": "Http 401" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http403", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "Http403", + "localizedValue": "Http 403" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http404", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "Http404", + "localizedValue": "Http 404" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http406", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "Http406", + "localizedValue": "Http 406" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http4xx", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "Http4xx", + "localizedValue": "Http 4xx" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http5xx", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "Http5xx", + "localizedValue": "Http Server Errors" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/MemoryWorkingSet", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "MemoryWorkingSet", + "localizedValue": "Memory working set" + }, + "isDimensionRequired": false, + "unit": "Bytes", + "primaryAggregationType": "Average", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageMemoryWorkingSet", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "AverageMemoryWorkingSet", + "localizedValue": "Average memory working set" + }, + "isDimensionRequired": false, + "unit": "Bytes", + "primaryAggregationType": "Average", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageResponseTime", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "name": { + "value": "AverageResponseTime", + "localizedValue": "Average Response Time" + }, + "isDimensionRequired": false, + "unit": "Seconds", + "primaryAggregationType": "Average", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricMetadata.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricMetadata.json index 105be64cb52c..23a9ca8877b0 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricMetadata.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricMetadata.json @@ -1,56 +1,56 @@ { - "parameters": { + "parameters": { + "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "metric": "BlobCapacity", + "$filter": "BlobType eq '*'", + "top": "3", + "orderby": "Average asc", + "aggregation": "Average,count", + "interval": "PT1M", + "resulttype": "metadata", + "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", + "api-version": "2017-05-01-preview" + }, + "responses": { + "200": { + "body": { "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "metric": "BlobCapacity", - "$filter": "BlobType eq '*'", - "top": "3", - "orderby": "Average asc", - "aggregation": "Average,count", - "interval": "PT1M", - "resulttype": "metadata", - "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", - "api-version": "2017-05-01-preview" - }, - "responses": { - "200": { - "body": { - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "value": [ - { - "id": "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity", - "type": "Microsoft.Insights/metrics", - "name": { - "value": "BlobCapacity", - "localizedValue": "Blob Capacity" - }, - "unit": "Bytes", - "timeseries": [ - { - "metadatavalues": [ - { - "name": { - "value": "blobtype", - "localizedValue": "blobtype" - }, - "value": "BlockBlob" - } - ] - }, - { - "metadatavalues": [ - { - "name": { - "value": "blobtype", - "localizedValue": "blobtype" - }, - "value": "PageBlob" - } - ] - } - ] - } - ] - } - } + "value": [ + { + "id": "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity", + "type": "Microsoft.Insights/metrics", + "name": { + "value": "BlobCapacity", + "localizedValue": "Blob Capacity" + }, + "unit": "Bytes", + "timeseries": [ + { + "metadatavalues": [ + { + "name": { + "value": "blobtype", + "localizedValue": "blobtype" + }, + "value": "BlockBlob" + } + ] + }, + { + "metadatavalues": [ + { + "name": { + "value": "blobtype", + "localizedValue": "blobtype" + }, + "value": "PageBlob" + } + ] + } + ] + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/createOrUpdateDiagnosticSetting.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/createOrUpdateDiagnosticSetting.json index 8335a4ec33e1..602799e199b4 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/createOrUpdateDiagnosticSetting.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/createOrUpdateDiagnosticSetting.json @@ -5,67 +5,69 @@ "api-version": "2017-05-01-preview", "parameters": { "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - "workspaceId":"", - "eventHubAuthorizationRuleId":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", + "workspaceId": "", + "eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", "eventHubName": "myeventhub", "metrics": [ { - "category":"WorkflowMetrics", - "enabled":true, + "category": "WorkflowMetrics", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } ], "logs": [ { - "category":"WorkflowRuntime", - "enabled":true, + "category": "WorkflowRuntime", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } - ] + ], + "logAnalyticsDestinationType": "Dedicated" } } }, "responses": { "200": { - "headers": { }, + "headers": {}, "body": { - "id":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/mysetting", - "type":"", - "name":"mysetting", + "id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/mysetting", + "type": "", + "name": "mysetting", "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - "workspaceId":"", - "eventHubAuthorizationRuleId":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", + "workspaceId": "", + "eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", "eventHubName": "myeventhub", "metrics": [ { - "category":"WorkflowMetrics", - "enabled":true, + "category": "WorkflowMetrics", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } ], "logs": [ { - "category":"WorkflowRuntime", - "enabled":true, + "category": "WorkflowRuntime", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } - ] + ], + "logAnalyticsDestinationType": "Dedicated" } } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/deleteDiagnosticSetting.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/deleteDiagnosticSetting.json index c7468e7ff795..ab80a3c2f4ae 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/deleteDiagnosticSetting.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/deleteDiagnosticSetting.json @@ -1,17 +1,11 @@ { - "parameters" : { - "resourceUri" : "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", + "parameters": { + "resourceUri": "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", "name": "mysetting", - "api-version" : "2017-05-01-preview" + "api-version": "2017-05-01-preview" }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } - } -} \ No newline at end of file + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/getDiagnosticSetting.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/getDiagnosticSetting.json index 03603e23f20d..50cf4c636646 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/getDiagnosticSetting.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/getDiagnosticSetting.json @@ -1,35 +1,37 @@ { - "parameters" : { - "resourceUri" : "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", + "parameters": { + "resourceUri": "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", "name": "mysetting", - "api-version" : "2017-05-01-preview" + "api-version": "2017-05-01-preview" }, - "responses" : { - "200" : { - "headers" : {}, - "body" : { - "id" : "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", - "type" : "", - "name" : "mysetting", - "properties" : { - "storageAccountId" : "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - "workspaceId" : "", - "eventHubAuthorizationRuleId" : "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", - "metrics" : [{ - "category" : "WorkflowMetrics", - "enabled" : true, - "retentionPolicy" : { - "enabled" : false, - "days" : 0 + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", + "type": "", + "name": "mysetting", + "properties": { + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", + "workspaceId": "", + "eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", + "metrics": [ + { + "category": "WorkflowMetrics", + "enabled": true, + "retentionPolicy": { + "enabled": false, + "days": 0 } } ], - "logs" : [{ - "category" : "WorkflowRuntime", - "enabled" : true, - "retentionPolicy" : { - "enabled" : false, - "days" : 0 + "logs": [ + { + "category": "WorkflowRuntime", + "enabled": true, + "retentionPolicy": { + "enabled": false, + "days": 0 } } ] @@ -37,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/getDiagnosticSettingsCategory.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/getDiagnosticSettingsCategory.json index c8d94c67c36f..ae766e558bdc 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/getDiagnosticSettingsCategory.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/getDiagnosticSettingsCategory.json @@ -1,20 +1,20 @@ { - "parameters" : { - "resourceUri" : "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", + "parameters": { + "resourceUri": "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", "name": "WorkflowRuntime", - "api-version" : "2017-05-01-preview" + "api-version": "2017-05-01-preview" }, - "responses" : { - "200" : { - "headers" : {}, - "body" : { - "id":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/providers/microsoft.insights/diagnosticSettingsCategories/WorkflowRuntime", - "type":"microsoft.insights/diagnosticSettingsCategories", - "name":"WorkflowRuntime", + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/providers/microsoft.insights/diagnosticSettingsCategories/WorkflowRuntime", + "type": "microsoft.insights/diagnosticSettingsCategories", + "name": "WorkflowRuntime", "properties": { - "categoryType":"Logs" + "categoryType": "Logs" } } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/listDiagnosticSettings.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/listDiagnosticSettings.json index 3a54aca66177..50220bc82498 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/listDiagnosticSettings.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/listDiagnosticSettings.json @@ -1,38 +1,38 @@ { - "parameters" : { - "resourceUri" : "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", - "api-version" : "2017-05-01-preview" + "parameters": { + "resourceUri": "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", + "api-version": "2017-05-01-preview" }, - "responses" : { - "200" : { - "headers" : {}, - "body" : { - "value": [ + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ { - "id":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/mysetting", - "type":"microsoft.logic/workflows", - "name":"mysetting", + "id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/mysetting", + "type": "microsoft.logic/workflows", + "name": "mysetting", "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - "eventHubAuthorizationRuleId":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", - "workspaceId":"", + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", + "eventHubAuthorizationRuleId": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", + "workspaceId": "", "metrics": [ { - "category":"WorkflowMetrics", - "enabled":true, + "category": "WorkflowMetrics", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } ], "logs": [ { - "category":"WorkflowRuntime", - "enabled":true, + "category": "WorkflowRuntime", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } ] @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/listDiagnosticSettingsCategories.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/listDiagnosticSettingsCategories.json index 2b915de05f31..d7ea73b6638b 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/listDiagnosticSettingsCategories.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/listDiagnosticSettingsCategories.json @@ -1,31 +1,31 @@ { - "parameters" : { - "resourceUri" : "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", - "api-version" : "2017-05-01-preview" + "parameters": { + "resourceUri": "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", + "api-version": "2017-05-01-preview" }, - "responses" : { - "200" : { - "headers" : {}, - "body" : { + "responses": { + "200": { + "headers": {}, + "body": { "value": [ { - "id":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/providers/microsoft.insights/diagnosticSettingsCategories/WorkflowRuntime", - "type":"microsoft.insights/diagnosticSettingsCategories", - "name":"WorkflowRuntime", + "id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/providers/microsoft.insights/diagnosticSettingsCategories/WorkflowRuntime", + "type": "microsoft.insights/diagnosticSettingsCategories", + "name": "WorkflowRuntime", "properties": { - "categoryType":"Logs" + "categoryType": "Logs" } }, { - "id":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/providers/microsoft.insights/diagnosticSettingsCategories/WorkflowMetric", - "type":"microsoft.insights/diagnosticSettingsCategories", - "name":"WorkflowMetric", + "id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/providers/microsoft.insights/diagnosticSettingsCategories/WorkflowMetric", + "type": "microsoft.insights/diagnosticSettingsCategories", + "name": "WorkflowMetric", "properties": { - "categoryType":"Metrics" + "categoryType": "Metrics" } } ] } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metricDefinitions_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metricDefinitions_API.json index 6c4ab30c16cb..bf16c9cdee59 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metricDefinitions_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metricDefinitions_API.json @@ -65,7 +65,8 @@ }, "examples": { "application/json": { - "value": [{ + "value": [ + { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/CpuTime", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "name": { @@ -75,20 +76,24 @@ "isDimensionRequired": false, "unit": "Seconds", "primaryAggregationType": "Total", - "metricAvailabilities": [{ + "metricAvailabilities": [ + { "timeGrain": "PT1M", "retention": "P30D" - }, { + }, + { "timeGrain": "PT1H", "retention": "P30D" } ], - "dimensions": [{ + "dimensions": [ + { "value": "Instance", "localizedValue": "Instance" } ] - }, { + }, + { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/MemoryWorkingSet", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "name": { @@ -98,20 +103,24 @@ "isDimensionRequired": false, "unit": "Bytes", "primaryAggregationType": "Average", - "metricAvailabilities": [{ + "metricAvailabilities": [ + { "timeGrain": "PT1M", "retention": "P30D" - }, { + }, + { "timeGrain": "PT1H", "retention": "P30D" } ], - "dimensions": [{ + "dimensions": [ + { "value": "Instance", "localizedValue": "Instance" } ] - }, { + }, + { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageMemoryWorkingSet", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "name": { @@ -121,22 +130,25 @@ "isDimensionRequired": false, "unit": "Bytes", "primaryAggregationType": "Average", - "metricAvailabilities": [{ + "metricAvailabilities": [ + { "timeGrain": "PT1M", "retention": "P30D" - }, { + }, + { "timeGrain": "PT1H", "retention": "P30D" } ], - "dimensions": [{ + "dimensions": [ + { "value": "Instance", "localizedValue": "Instance" } ] } ] - } + } } } }, @@ -144,14 +156,18 @@ "nextLinkName": null }, "x-ms-examples": { - "Get Metric Definitions without filter": { "$ref": "./examples/GetMetricDefinitions.json" } + "Get Metric Definitions without filter": { + "$ref": "./examples/GetMetricDefinitions.json" + } } } } }, "definitions": { "LocalizableString": { - "required": [ "value" ], + "required": [ + "value" + ], "properties": { "value": { "type": "string", @@ -263,7 +279,9 @@ "description": "the values for the metric definitions." } }, - "required": ["value"], + "required": [ + "value" + ], "description": "Represents collection of metric definitions." }, "ErrorResponse": { @@ -299,4 +317,4 @@ "x-ms-skip-url-encoding": true } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json index c02c2f86f83f..fbcde3c0e5ca 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json @@ -96,7 +96,8 @@ "cost": 0, "timespan": "2017-08-10T21:44:34Z/2017-08-10T22:44:34Z", "interval": "PT1M", - "value": [{ + "value": [ + { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/Microsoft.Insights/metrics/CpuTime", "type": "Microsoft.Insights/metrics", "name": { @@ -104,27 +105,35 @@ "localizedValue": "CPU Time" }, "unit": "Seconds", - "timeseries": [{ + "timeseries": [ + { "metadatavalues": [], - "data": [{ + "data": [ + { "timeStamp": "2017-08-10T21:44:00Z", "total": 0.0 - }, { + }, + { "timeStamp": "2017-08-10T21:45:00Z", "total": 0.0 - }, { + }, + { "timeStamp": "2017-08-10T21:46:00Z", "total": 0.0 - }, { + }, + { "timeStamp": "2017-08-10T21:47:00Z", "total": 0.0 - }, { + }, + { "timeStamp": "2017-08-10T21:48:00Z", "total": 0.0 - }, { + }, + { "timeStamp": "2017-08-10T21:49:00Z", "total": 0.0 - }, { + }, + { "timeStamp": "2017-08-10T21:50:00Z", "total": 0.0 } @@ -139,15 +148,21 @@ }, "x-ms-odata": "#/definitions/MetadataValue", "x-ms-examples": { - "Get Metric for data": { "$ref": "./examples/GetMetric.json" }, - "Get Metric for metadata": { "$ref": "./examples/GetMetricMetadata.json" } + "Get Metric for data": { + "$ref": "./examples/GetMetric.json" + }, + "Get Metric for metadata": { + "$ref": "./examples/GetMetricMetadata.json" + } } } } }, "definitions": { "LocalizableString": { - "required": [ "value" ], + "required": [ + "value" + ], "properties": { "value": { "type": "string", @@ -180,7 +195,9 @@ } }, "MetricValue": { - "required": [ "timeStamp" ], + "required": [ + "timeStamp" + ], "properties": { "timeStamp": { "type": "string", @@ -268,7 +285,10 @@ "description": "the value of the collection." } }, - "required": [ "timespan", "value" ], + "required": [ + "timespan", + "value" + ], "description": "The response to a metrics query." }, "Metric": { @@ -298,7 +318,13 @@ "description": "the time series returned when a data query is performed." } }, - "required": [ "id", "type", "name", "unit", "timeseries" ], + "required": [ + "id", + "type", + "name", + "unit", + "timeseries" + ], "description": "The result data of a query." }, "TimeSeriesElement": { @@ -406,4 +432,4 @@ "description": "Client Api Version." } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json index caba765e16e5..4ba3123874d4 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json @@ -1,316 +1,326 @@ { - "swagger": "2.0", - "info": { - "title": "MonitorManagementClient", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2017-11-01-preview" + "swagger": "2.0", + "info": { + "title": "MonitorManagementClient", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "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" - } + "version": "2017-11-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": { - "/{resourceUri}/providers/microsoft.insights/baseline/{metricName}": { - "get": { - "tags": [ - "Baseline" - ], - "operationId": "MetricBaseline_Get", - "description": "**Gets the baseline values for a specific metric**.", - "parameters": [ - { - "$ref": "#/parameters/ExtendedResourceUriParameter" - }, - { - "$ref": "#/parameters/MetricNameParameter" - }, - { - "$ref": "#/parameters/TimespanParameter" - }, - { - "$ref": "#/parameters/IntervalParameter" - }, - { - "$ref": "#/parameters/AggregationParameter" - }, - { - "$ref": "#/parameters/SensitivitiesParameter" - }, - { - "$ref": "#/parameters/BaselineResultTypeParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" + } + }, + "paths": { + "/{resourceUri}/providers/microsoft.insights/baseline/{metricName}": { + "get": { + "tags": [ + "Baseline" + ], + "operationId": "MetricBaseline_Get", + "description": "**Gets the baseline values for a specific metric**.", + "parameters": [ + { + "$ref": "#/parameters/ExtendedResourceUriParameter" + }, + { + "$ref": "#/parameters/MetricNameParameter" + }, + { + "$ref": "#/parameters/TimespanParameter" + }, + { + "$ref": "#/parameters/IntervalParameter" + }, + { + "$ref": "#/parameters/AggregationParameter" + }, + { + "$ref": "#/parameters/SensitivitiesParameter" + }, + { + "$ref": "#/parameters/BaselineResultTypeParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Successful request to get the list of metric values.", - "schema": { - "$ref": "#/definitions/BaselineResponse" - } + }, + "200": { + "description": "Successful request to get the list of metric values.", + "schema": { + "$ref": "#/definitions/BaselineResponse" } + } + }, + "x-ms-examples": { + "Get Metric for data": { + "$ref": "./examples/GetBaseline.json" }, - "x-ms-examples": { - "Get Metric for data": { "$ref": "./examples/GetBaseline.json" }, - "Get Metric for metadata": { "$ref": "./examples/GetBaselineMetadata.json" } + "Get Metric for metadata": { + "$ref": "./examples/GetBaselineMetadata.json" } } } - }, - "definitions": { - "LocalizableString": { - "required": [ "value" ], - "properties": { - "value": { - "type": "string", - "description": "the invariant value." - }, - "localizedValue": { - "type": "string", - "description": "the locale specific value." - } + } + }, + "definitions": { + "LocalizableString": { + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string", + "description": "the invariant value." }, - "description": "The localizable string class." + "localizedValue": { + "type": "string", + "description": "the locale specific value." + } }, - "BaselineMetadataValue": { - "properties": { - "name": { - "$ref": "#/definitions/LocalizableString", - "description": "the name of the metadata." - }, - "value": { - "type": "string", - "description": "the value of the metadata." - } + "description": "The localizable string class." + }, + "BaselineMetadataValue": { + "properties": { + "name": { + "$ref": "#/definitions/LocalizableString", + "description": "the name of the metadata." }, - "description": "Represents a baseline metadata value." + "value": { + "type": "string", + "description": "the value of the metadata." + } }, - "ErrorResponse": { - "description": "Describes the format of Error response.", - "type": "object", + "description": "Represents a baseline metadata value." + }, + "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" + } + } + }, + "BaselineResponse": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "the metric baseline Id." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "the resource type of the baseline resource." + }, + "name": { + "$ref": "#/definitions/LocalizableString", + "readOnly": true, + "description": "the name and the display name of the metric, i.e. it is localizable string." + }, "properties": { - "code": { - "description": "Error code", - "type": "string" - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string" - } + "x-ms-client-flatten": true, + "$ref": "#/definitions/BaselineProperties", + "description": "the properties of the baseline." } }, - "BaselineResponse": { - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "the metric baseline Id." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "the resource type of the baseline resource." - }, - "name": { - "$ref": "#/definitions/LocalizableString", - "readOnly": true, - "description": "the name and the display name of the metric, i.e. it is localizable string." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/BaselineProperties", - "description": "the properties of the baseline." - } + "description": "The response to a baseline query." + }, + "BaselineProperties": { + "properties": { + "timespan": { + "type": "string", + "description": "The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested." }, - "description": "The response to a baseline query." - }, - "BaselineProperties": { - "properties": { - "timespan": { - "type": "string", - "description": "The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested." - }, - "interval": { - "type": "string", - "format": "duration", - "description": "The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made." - }, - "aggregation": { + "interval": { + "type": "string", + "format": "duration", + "description": "The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made." + }, + "aggregation": { + "type": "string", + "description": "The aggregation type of the metric." + }, + "timestamps": { + "type": "array", + "items": { "type": "string", - "description": "The aggregation type of the metric." + "format": "date-time", + "description": "the timestamp for the baseline value in ISO 8601 format." }, - "timestamps": { - "type": "array", - "items": { - "type": "string", - "format": "date-time", - "description": "the timestamp for the baseline value in ISO 8601 format." - }, - "description": "the array of timestamps of the baselines." - }, - "baseline": { - "type": "array", - "items": { - "$ref": "#/definitions/Baseline" - }, - "description": "the baseline values for each sensitivity." + "description": "the array of timestamps of the baselines." + }, + "baseline": { + "type": "array", + "items": { + "$ref": "#/definitions/Baseline" }, - "metadata": { - "type": "array", - "items": { - "$ref": "#/definitions/BaselineMetadataValue" - }, - "description": "the baseline metadata values." - } + "description": "the baseline values for each sensitivity." }, - "description": "The baseline properties class." + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/BaselineMetadataValue" + }, + "description": "the baseline metadata values." + } }, - "Baseline": { - "type": "object", - "properties": { - "sensitivity": { - "type": "string", - "enum": [ - "Low", - "Medium", - "High" - ], - "x-ms-enum": { - "name": "Sensitivity", - "modelAsString": false - }, - "description": "the sensitivity of the baseline." + "description": "The baseline properties class." + }, + "Baseline": { + "type": "object", + "properties": { + "sensitivity": { + "type": "string", + "enum": [ + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "Sensitivity", + "modelAsString": false }, - "lowThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single low threshold value." - }, - "description": "The low thresholds of the baseline." + "description": "the sensitivity of the baseline." + }, + "lowThresholds": { + "type": "array", + "items": { + "type": "number", + "format": "double", + "description": "A single low threshold value." }, - "highThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single high threshold value." - }, - "description": "The high thresholds of the baseline." - } + "description": "The low thresholds of the baseline." }, - "required": [ "sensitivity", "lowThresholds", "highThresholds" ], - "description": "The baseline values for a single sensitivity value." - } - }, - "parameters": { - "ExtendedResourceUriParameter": { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "MetricNameParameter": { - "name": "metricName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the metric to retrieve the baseline for.", - "x-ms-parameter-location": "method" - }, - "TimespanParameter": { - "name": "timespan", - "in": "query", - "required": false, - "type": "string", - "description": "The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.", - "x-ms-parameter-location": "method" - }, - "IntervalParameter": { - "name": "interval", - "in": "query", - "required": false, - "type": "string", - "format": "duration", - "description": "The interval (i.e. timegrain) of the query.", - "x-ms-parameter-location": "method" - }, - "AggregationParameter": { - "name": "aggregation", - "in": "query", - "required": false, - "type": "string", - "description": "The aggregation type of the metric to retrieve the baseline for.", - "x-ms-parameter-location": "method" - }, - "SensitivitiesParameter": { - "name": "sensitivities", - "in": "query", - "required": false, - "type": "string", - "description": "The list of sensitivities (comma separated) to retrieve.", - "x-ms-parameter-location": "method" + "highThresholds": { + "type": "array", + "items": { + "type": "number", + "format": "double", + "description": "A single high threshold value." + }, + "description": "The high thresholds of the baseline." + } }, - "BaselineResultTypeParameter": { - "name": "resultType", - "in": "query", - "type": "string", - "enum": [ - "Data", - "Metadata" - ], - "x-ms-enum": { - "name": "ResultType", - "modelAsString": false - }, - "description": "Allows retrieving only metadata of the baseline. On data request all information is retrieved.", - "x-ms-parameter-location": "method", - "required": false + "required": [ + "sensitivity", + "lowThresholds", + "highThresholds" + ], + "description": "The baseline values for a single sensitivity value." + } + }, + "parameters": { + "ExtendedResourceUriParameter": { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "MetricNameParameter": { + "name": "metricName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the metric to retrieve the baseline for.", + "x-ms-parameter-location": "method" + }, + "TimespanParameter": { + "name": "timespan", + "in": "query", + "required": false, + "type": "string", + "description": "The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.", + "x-ms-parameter-location": "method" + }, + "IntervalParameter": { + "name": "interval", + "in": "query", + "required": false, + "type": "string", + "format": "duration", + "description": "The interval (i.e. timegrain) of the query.", + "x-ms-parameter-location": "method" + }, + "AggregationParameter": { + "name": "aggregation", + "in": "query", + "required": false, + "type": "string", + "description": "The aggregation type of the metric to retrieve the baseline for.", + "x-ms-parameter-location": "method" + }, + "SensitivitiesParameter": { + "name": "sensitivities", + "in": "query", + "required": false, + "type": "string", + "description": "The list of sensitivities (comma separated) to retrieve.", + "x-ms-parameter-location": "method" + }, + "BaselineResultTypeParameter": { + "name": "resultType", + "in": "query", + "type": "string", + "enum": [ + "Data", + "Metadata" + ], + "x-ms-enum": { + "name": "ResultType", + "modelAsString": false }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - } + "description": "Allows retrieving only metadata of the baseline. On data request all information is retrieved.", + "x-ms-parameter-location": "method", + "required": false + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." } - } \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json index c2e9065d56f5..e1ce81ced40d 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json @@ -1,214 +1,226 @@ { - "swagger": "2.0", - "info": { - "title": "MonitorManagementClient", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2017-11-01-preview" + "swagger": "2.0", + "info": { + "title": "MonitorManagementClient", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "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" - } + "version": "2017-11-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": { - "/{resourceUri}/providers/microsoft.insights/calculatebaseline": { - "post": { - "tags": [ - "Baseline" - ], - "operationId": "MetricBaseline_CalculateBaseline", - "description": "**Lists the baseline values for a resource**.", - "parameters": [ - { - "$ref": "#/parameters/ExtendedResourceUriParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "TimeSeriesInformation", - "description": "Information that need to be specified to calculate a baseline on a time series.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/TimeSeriesInformation" - } + } + }, + "paths": { + "/{resourceUri}/providers/microsoft.insights/calculatebaseline": { + "post": { + "tags": [ + "Baseline" + ], + "operationId": "MetricBaseline_CalculateBaseline", + "description": "**Lists the baseline values for a resource**.", + "parameters": [ + { + "$ref": "#/parameters/ExtendedResourceUriParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "TimeSeriesInformation", + "description": "Information that need to be specified to calculate a baseline on a time series.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TimeSeriesInformation" } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Successful request to get the list of metric values.", - "schema": { - "$ref": "#/definitions/CalculateBaselineResponse" - } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } }, - "x-ms-examples": { - "Calculate baseline": { "$ref": "./examples/CalculateBaseline.json" } + "200": { + "description": "Successful request to get the list of metric values.", + "schema": { + "$ref": "#/definitions/CalculateBaselineResponse" + } + } + }, + "x-ms-examples": { + "Calculate baseline": { + "$ref": "./examples/CalculateBaseline.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" - } + } + }, + "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" } - }, - "TimeSeriesInformation": { - "properties": { - "sensitivities": { - "type": "array", - "items": { - "type": "string", - "description": "the requested sensitivity for calculating the baseline." - }, - "description": "the list of sensitivities for calculating the baseline." + } + }, + "TimeSeriesInformation": { + "properties": { + "sensitivities": { + "type": "array", + "items": { + "type": "string", + "description": "the requested sensitivity for calculating the baseline." }, - "values": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single metric value." - }, - "description": "The metric values to calculate the baseline." + "description": "the list of sensitivities for calculating the baseline." + }, + "values": { + "type": "array", + "items": { + "type": "number", + "format": "double", + "description": "A single metric value." }, - "timestamps": { - "type": "array", - "items": { - "type": "string", - "format": "date-time", - "description": "the timestamp for the baseline value in ISO 8601 format." - }, - "description": "the array of timestamps of the baselines." - } + "description": "The metric values to calculate the baseline." }, - "required": [ "sensitivities", "values" ], - "description": "The time series info needed for calculating the baseline." - }, - "CalculateBaselineResponse": { - "type": "object", - "properties": { - "type": { + "timestamps": { + "type": "array", + "items": { "type": "string", - "description": "the resource type of the baseline resource." + "format": "date-time", + "description": "the timestamp for the baseline value in ISO 8601 format." }, - "timestamps": { - "type": "array", - "items": { - "type": "string", - "format": "date-time", - "description": "the timestamp for the baseline value in ISO 8601 format." - }, - "description": "the array of timestamps of the baselines." + "description": "the array of timestamps of the baselines." + } + }, + "required": [ + "sensitivities", + "values" + ], + "description": "The time series info needed for calculating the baseline." + }, + "CalculateBaselineResponse": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "the resource type of the baseline resource." + }, + "timestamps": { + "type": "array", + "items": { + "type": "string", + "format": "date-time", + "description": "the timestamp for the baseline value in ISO 8601 format." }, - "baseline": { - "type": "array", - "items": { - "$ref": "#/definitions/Baseline" - }, - "description": "the baseline values for each sensitivity." - } + "description": "the array of timestamps of the baselines." }, - "required": [ "type", "baseline" ], - "description": "The response to a calculate baseline call." + "baseline": { + "type": "array", + "items": { + "$ref": "#/definitions/Baseline" + }, + "description": "the baseline values for each sensitivity." + } }, - "Baseline": { - "type": "object", - "properties": { - "sensitivity": { - "type": "string", - "enum": [ - "Low", - "Medium", - "High" - ], - "x-ms-enum": { - "name": "Sensitivity", - "modelAsString": false - }, - "description": "the sensitivity of the baseline." + "required": [ + "type", + "baseline" + ], + "description": "The response to a calculate baseline call." + }, + "Baseline": { + "type": "object", + "properties": { + "sensitivity": { + "type": "string", + "enum": [ + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "Sensitivity", + "modelAsString": false }, - "lowThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single low threshold value." - }, - "description": "The low thresholds of the baseline." + "description": "the sensitivity of the baseline." + }, + "lowThresholds": { + "type": "array", + "items": { + "type": "number", + "format": "double", + "description": "A single low threshold value." }, - "highThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single high threshold value." - }, - "description": "The high thresholds of the baseline." - } + "description": "The low thresholds of the baseline." }, - "required": [ "sensitivity", "lowThresholds", "highThresholds" ], - "description": "The baseline values for a single sensitivity value." - } - }, - "parameters": { - "ExtendedResourceUriParameter": { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true + "highThresholds": { + "type": "array", + "items": { + "type": "number", + "format": "double", + "description": "A single high threshold value." + }, + "description": "The high thresholds of the baseline." + } }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - } + "required": [ + "sensitivity", + "lowThresholds", + "highThresholds" + ], + "description": "The baseline values for a single sensitivity value." + } + }, + "parameters": { + "ExtendedResourceUriParameter": { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", + "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." } - } \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/CalculateBaseline.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/CalculateBaseline.json index 3b1a708a6c91..706ed919758c 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/CalculateBaseline.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/CalculateBaseline.json @@ -1,41 +1,47 @@ { - "parameters": { - "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", - "api-version": "2017-11-01-preview", - "TimeSeriesInformation": { - "sensitivities": ["Low", "Medium"], - "values": [61.0, 62.0] - } - }, - "responses": { - "200": { - "body": { - "type": "Microsoft.Insights/calculatebaseline", - "baseline": [ - { - "sensitivity": "Low", - "lowThresholds": [ - 30.0, - 31.1 - ], - "highThresholds": [ - 90.3453, - 91.3453 - ] - }, - { - "sensitivity": "Medium", - "lowThresholds": [ - 50.0, - 51.1 - ], - "highThresholds": [ - 70.3453, - 71.3453 - ] - } - ] - } - } + "parameters": { + "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", + "api-version": "2017-11-01-preview", + "TimeSeriesInformation": { + "sensitivities": [ + "Low", + "Medium" + ], + "values": [ + 61.0, + 62.0 + ] } -} \ No newline at end of file + }, + "responses": { + "200": { + "body": { + "type": "Microsoft.Insights/calculatebaseline", + "baseline": [ + { + "sensitivity": "Low", + "lowThresholds": [ + 30.0, + 31.1 + ], + "highThresholds": [ + 90.3453, + 91.3453 + ] + }, + { + "sensitivity": "Medium", + "lowThresholds": [ + 50.0, + 51.1 + ], + "highThresholds": [ + 70.3453, + 71.3453 + ] + } + ] + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaseline.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaseline.json index e7b39ef4b363..2c84cad30ea4 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaseline.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaseline.json @@ -1,55 +1,55 @@ { - "parameters": { - "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "metricName": "PercentageCpu", - "aggregation": "Average", - "interval": "PT1H", - "sensitivities": "Low,Medium", - "api-version": "2017-11-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/baseline/PercentageCpu", - "type": "Microsoft.Insights/baseline", - "name": { - "value": "PercentageCpu" - }, - "properties": { - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "aggregation": "Average", - "interval": "PT1H", - "timestamps": [ - "2017-04-14T02:20:00Z", - "2017-04-14T03:20:00Z" - ], - "baseline": [ - { - "sensitivity": "Low", - "lowThresholds": [ - 30.0, - 31.1 - ], - "highThresholds": [ - 90.3453, - 91.3453 - ] - }, - { - "sensitivity": "Medium", - "lowThresholds": [ - 50.0, - 51.1 - ], - "highThresholds": [ - 70.3453, - 71.3453 - ] - } - ] - } - } + "parameters": { + "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", + "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "metricName": "PercentageCpu", + "aggregation": "Average", + "interval": "PT1H", + "sensitivities": "Low,Medium", + "api-version": "2017-11-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/baseline/PercentageCpu", + "type": "Microsoft.Insights/baseline", + "name": { + "value": "PercentageCpu" + }, + "properties": { + "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "aggregation": "Average", + "interval": "PT1H", + "timestamps": [ + "2017-04-14T02:20:00Z", + "2017-04-14T03:20:00Z" + ], + "baseline": [ + { + "sensitivity": "Low", + "lowThresholds": [ + 30.0, + 31.1 + ], + "highThresholds": [ + 90.3453, + 91.3453 + ] + }, + { + "sensitivity": "Medium", + "lowThresholds": [ + 50.0, + 51.1 + ], + "highThresholds": [ + 70.3453, + 71.3453 + ] + } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaselineMetadata.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaselineMetadata.json index e3384a56ce4a..0f6ea5ff333d 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaselineMetadata.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-11-01-preview/examples/GetBaselineMetadata.json @@ -1,37 +1,37 @@ { - "parameters": { - "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "metricName": "PercentageCpu", - "aggregation": "Average", - "interval": "PT1H", - "resulttype": "metadata", - "api-version": "2017-11-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/baseline/PercentageCpu", - "type": "Microsoft.Insights/baseline", - "name": { - "value": "PercentageCpu" - }, - "properties": { - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "aggregation": "Average", - "interval": "PT1H", - "metadata": [ - { - "name": "CurrentTrainingState", - "value": "Trained" - }, - { - "name": "SelectedModel", - "value": "AdjustedBoxplot" - } - ] - } - } + "parameters": { + "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", + "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "metricName": "PercentageCpu", + "aggregation": "Average", + "interval": "PT1H", + "resulttype": "metadata", + "api-version": "2017-11-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/baseline/PercentageCpu", + "type": "Microsoft.Insights/baseline", + "name": { + "value": "PercentageCpu" + }, + "properties": { + "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "aggregation": "Average", + "interval": "PT1H", + "metadata": [ + { + "name": "CurrentTrainingState", + "value": "Trained" + }, + { + "name": "SelectedModel", + "value": "AdjustedBoxplot" + } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/examples/GetMetricNamespaces.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/examples/GetMetricNamespaces.json index 46a037b1705e..1eff5dfacb69 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/examples/GetMetricNamespaces.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/examples/GetMetricNamespaces.json @@ -1,23 +1,23 @@ { - "parameters": { - "resourceUri": "subscriptions/a252e87d-ec06-45b1-8901-57e613be91b0/resourceGroups/larrytest/providers/Microsoft.DocumentDB/databaseAccounts/larrytestdocdb", - "startTime": "2018-08-31T15:53:00Z", - "api-version": "2017-12-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/a252e87d-ec06-45b1-8901-57e613be91b0/resourceGroups/larrytest/providers/Microsoft.DocumentDB/databaseAccounts/larrytestdocdb/providers/microsoft.insights/metricNamespaces/Microsoft.DocumentDB-databaseAccounts", - "name": "Microsoft.DocumentDB-databaseAccounts", - "type": "Microsoft.Insights/metricNamespaces", - "properties": { - "metricNamespaceName": "Microsoft.DocumentDB/databaseAccounts" - } - } - ] - } - } + "parameters": { + "resourceUri": "subscriptions/a252e87d-ec06-45b1-8901-57e613be91b0/resourceGroups/larrytest/providers/Microsoft.DocumentDB/databaseAccounts/larrytestdocdb", + "startTime": "2018-08-31T15:53:00Z", + "api-version": "2017-12-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a252e87d-ec06-45b1-8901-57e613be91b0/resourceGroups/larrytest/providers/Microsoft.DocumentDB/databaseAccounts/larrytestdocdb/providers/microsoft.insights/metricNamespaces/Microsoft.DocumentDB-databaseAccounts", + "name": "Microsoft.DocumentDB-databaseAccounts", + "type": "Microsoft.Insights/metricNamespaces", + "properties": { + "metricNamespaceName": "Microsoft.DocumentDB/databaseAccounts" + } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json index ba9d6a3e6c2c..85e1e0f5a63f 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json @@ -72,7 +72,9 @@ "nextLinkName": null }, "x-ms-examples": { - "Get Metric Namespaces without filter": { "$ref": "./examples/GetMetricNamespaces.json" } + "Get Metric Namespaces without filter": { + "$ref": "./examples/GetMetricNamespaces.json" + } } } } @@ -102,7 +104,7 @@ "type": "string", "description": "The name of the namespace." }, - "properties": { + "properties": { "$ref": "#/definitions/MetricNamespaceName", "description": "Properties which include the fully qualified namespace name." } @@ -119,7 +121,9 @@ "description": "The values for the metric namespaces." } }, - "required": ["value"], + "required": [ + "value" + ], "description": "Represents collection of metric namespaces." }, "ErrorResponse": { @@ -154,7 +158,7 @@ "x-ms-parameter-location": "method", "x-ms-skip-url-encoding": true }, - "StartTimeParameter": { + "StartTimeParameter": { "name": "startTime", "in": "query", "required": false, @@ -163,4 +167,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/createOrUpdateGuestDiagnosticSettings.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/createOrUpdateGuestDiagnosticSettings.json index e57cc6ec6235..19e93cdd1e9d 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/createOrUpdateGuestDiagnosticSettings.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/createOrUpdateGuestDiagnosticSettings.json @@ -1,153 +1,150 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-ResourceGroup", - "diagnosticSettingsName": "SampleDiagSetting", - "api-version": "2018-06-01-preview", - "diagnosticSettings": { - "location": "Global", - "tags": {}, - "properties": { - "osType": "Windows", - "dataSources": [ - { - "kind": "PerformanceCounter", - "configuration": { - "perfCounters": [ - { - "name": "\\Process(_Total)\\%Processor Time", - "samplingPeriod": "PT1M" - }, - { - "name": "\\Process(_Total)\\Working Set", - "samplingPeriod": "PT1M" - } - ] - }, - "sinks": [ - { - "kind": "LogAnalytics" - } - ] - }, - { - "kind": "ETWProviders", - "configuration": { - "providers": [ - { - "name": "AuditLog", - "id": 1, - "filter": "filter exp" - }, - { - "name": "TraceLog", - "id": 2 - } - ] - }, - "sinks": [ - { - "kind": "LogAnalytics" - } - ] - }, - { - "kind": "WindowsEventLogs", - "configuration": { - "eventLogs": [ - { - "logName": "Application", - "filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"CatWoman\"" - - }, - { - "logName": "Application", - "filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"BatMan\"" - } - - ] - }, - "sinks": [ - { - "kind": "LogAnalytics" - } - ] - } - + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-ResourceGroup", + "diagnosticSettingsName": "SampleDiagSetting", + "api-version": "2018-06-01-preview", + "diagnosticSettings": { + "location": "Global", + "tags": {}, + "properties": { + "osType": "Windows", + "dataSources": [ + { + "kind": "PerformanceCounter", + "configuration": { + "perfCounters": [ + { + "name": "\\Process(_Total)\\%Processor Time", + "samplingPeriod": "PT1M" + }, + { + "name": "\\Process(_Total)\\Working Set", + "samplingPeriod": "PT1M" + } + ] + }, + "sinks": [ + { + "kind": "LogAnalytics" + } + ] + }, + { + "kind": "ETWProviders", + "configuration": { + "providers": [ + { + "name": "AuditLog", + "id": 1, + "filter": "filter exp" + }, + { + "name": "TraceLog", + "id": 2 + } + ] + }, + "sinks": [ + { + "kind": "LogAnalytics" + } + ] + }, + { + "kind": "WindowsEventLogs", + "configuration": { + "eventLogs": [ + { + "logName": "Application", + "filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"CatWoman\"" + }, + { + "logName": "Application", + "filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"BatMan\"" + } + ] + }, + "sinks": [ + { + "kind": "LogAnalytics" + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ResourceGroup/providers/microsoft.insights/guestDiagnosticSettings/SampleDiagSetting", + "name": "productionMachineSetting", + "type": "Microsoft.Insights/guestDiagnosticSettings", + "location": "West US", + "tags": {}, + "properties": { + "osType": "Windows", + "dataSources": [ + { + "kind": "PerformanceCounter", + "configuration": { + "perfCounters": [ + { + "name": "\\Process(_Total)\\%Processor Time", + "samplingPeriod": "PT1M" + }, + { + "name": "\\Process(_Total)\\Working Set", + "samplingPeriod": "PT1M" + } ] + }, + "sinks": [ + { + "kind": "LogAnalytics" + } + ] } + ] } + } }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ResourceGroup/providers/microsoft.insights/guestDiagnosticSettings/SampleDiagSetting", - "name": "productionMachineSetting", - "type": "Microsoft.Insights/guestDiagnosticSettings", - "location": "West US", - "tags": {}, - "properties": { - "osType": "Windows", - "dataSources": [ - { - "kind": "PerformanceCounter", - "configuration": { - "perfCounters": [ - { - "name": "\\Process(_Total)\\%Processor Time", - "samplingPeriod": "PT1M" - }, - { - "name": "\\Process(_Total)\\Working Set", - "samplingPeriod": "PT1M" - } - ] - }, - "sinks": [ - { - "kind": "LogAnalytics" - } - ] - } - ] - } - } - }, - "201": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ResourceGroup/providers/microsoft.insights/guestDiagnosticSettings/SampleDiagSetting", - "name": "SampleDiagSetting", - "type": "Microsoft.Insights/guestDiagnosticSettings", - "location": "West US", - "tags": {}, - "properties": { - "osType": "Windows", - "dataSources": [ - { - "kind": "PerformanceCounter", - "configuration": { - "perfCounters": [ - { - "name": "\\Process(_Total)\\%Processor Time", - "samplingPeriod": "PT1M" - }, - { - "name": "\\Process(_Total)\\Working Set", - "samplingPeriod": "PT1M" - } - ] - }, - "sinks": [ - { - "kind": "LogAnalytics" - } - ] - } - ] + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ResourceGroup/providers/microsoft.insights/guestDiagnosticSettings/SampleDiagSetting", + "name": "SampleDiagSetting", + "type": "Microsoft.Insights/guestDiagnosticSettings", + "location": "West US", + "tags": {}, + "properties": { + "osType": "Windows", + "dataSources": [ + { + "kind": "PerformanceCounter", + "configuration": { + "perfCounters": [ + { + "name": "\\Process(_Total)\\%Processor Time", + "samplingPeriod": "PT1M" + }, + { + "name": "\\Process(_Total)\\Working Set", + "samplingPeriod": "PT1M" + } + ] + }, + "sinks": [ + { + "kind": "LogAnalytics" } + ] } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/createOrUpdateGuestDiagnosticSettingsAssociation.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/createOrUpdateGuestDiagnosticSettingsAssociation.json index c35cff6c5de2..633e67f69828 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/createOrUpdateGuestDiagnosticSettingsAssociation.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/createOrUpdateGuestDiagnosticSettingsAssociation.json @@ -1,42 +1,42 @@ { - "parameters": { - "resourceUri":"subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai", - "associationName": "healthSystemMachineConfigAssociation", - "api-version": "2018-06-01-preview", - "diagnosticSettingsAssociation": { - "location": "Global", - "tags": {}, - "properties": { - "guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity" - } + "parameters": { + "resourceUri": "subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai", + "associationName": "healthSystemMachineConfigAssociation", + "api-version": "2018-06-01-preview", + "diagnosticSettingsAssociation": { + "location": "Global", + "tags": {}, + "properties": { + "guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai/providers/microsoft.insights/guestDiagnosticSettingsAssociation/healthSystemMachineConfigAssociation", + "type": "Microsoft.Insights/GuestDiagnosticSettingsAssociation", + "name": "healthSystemMachineConfigAssociation", + "location": "Global", + "tags": {}, + "properties": { + "guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity" } + } }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai/providers/microsoft.insights/guestDiagnosticSettingsAssociation/healthSystemMachineConfigAssociation", - "type": "Microsoft.Insights/GuestDiagnosticSettingsAssociation", - "name": "healthSystemMachineConfigAssociation", - "location": "Global", - "tags": {}, - "properties": { - "guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity" - } - } - }, - "201": { - "headers": {}, - "body": { - "id": "/subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai/providers/microsoft.insights/guestDiagnosticSettingsAssociation/healthSystemMachineConfigAssociation", - "type": "Microsoft.Insights/GuestDiagnosticSettingsAssociation", - "name": "healthSystemMachineConfigAssociation", - "location": "Global", - "tags": {}, - "properties": { - "guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity" - } - } + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai/providers/microsoft.insights/guestDiagnosticSettingsAssociation/healthSystemMachineConfigAssociation", + "type": "Microsoft.Insights/GuestDiagnosticSettingsAssociation", + "name": "healthSystemMachineConfigAssociation", + "location": "Global", + "tags": {}, + "properties": { + "guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity" } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/deleteGuestDiagnosticSettingsAssociation.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/deleteGuestDiagnosticSettingsAssociation.json index 2de5c4bb50ef..8070981646fc 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/deleteGuestDiagnosticSettingsAssociation.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/deleteGuestDiagnosticSettingsAssociation.json @@ -1,17 +1,11 @@ { - "parameters": { - "resourceUri":"subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai", - "associationName": "healthSystemMachineConfigAssociation", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } - } -} \ No newline at end of file + "parameters": { + "resourceUri": "subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai", + "associationName": "healthSystemMachineConfigAssociation", + "api-version": "2018-06-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/getGuestDiagnosticSettings.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/getGuestDiagnosticSettings.json index 09a003c11131..b9a8f6faa1dd 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/getGuestDiagnosticSettings.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/getGuestDiagnosticSettings.json @@ -1,168 +1,162 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-ResourceGroup", - "diagnosticSettingsName": "productionMachineSetting", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ResourceGroup/providers/microsoft.insights/guestDiagnosticSettings/productionMachineSetting", - "name": "productionMachineSetting", - "type": "Microsoft.Insights/guestDiagnosticSettings", - "location": "West US", - "tags": {}, - "properties": { - "osType": "windows", - "dataSources": [ - { - "kind": "PerformanceCounter", - "configuration": { - "perfCounters": [ - { - "name": "\\Process(_Total)\\%Processor Time", - "samplingPeriod": "PT1M" - }, - { - "name": "\\Process(_Total)\\Working Set", - "samplingPeriod": "PT1M" - } - ] - }, - "sinks": [ - { - "kind": "LogAnalytics" - } - ] - }, - { - "kind": "ETWProviders", - "configuration": { - "providers": [ - { - "name": "AuditLog", - "id": 1, - "filter": "filter exp" - }, - { - "name": "TraceLog", - "id": 2 - } - ] - }, - "sinks": [ - { - "kind": "LogAnalytics" - } - ] - }, - { - "kind": "WindowsEventLogs", - "configuration": { - "eventLogs": [ - { - "logName": "Application", - "filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"CatWoman\"" - - }, - { - "logName": "Application", - "filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"BatMan\"" - } - - ] - }, - "sinks": [ - { - "kind": "LogAnalytics" - } - ] - } - - ] + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-ResourceGroup", + "diagnosticSettingsName": "productionMachineSetting", + "api-version": "2018-06-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ResourceGroup/providers/microsoft.insights/guestDiagnosticSettings/productionMachineSetting", + "name": "productionMachineSetting", + "type": "Microsoft.Insights/guestDiagnosticSettings", + "location": "West US", + "tags": {}, + "properties": { + "osType": "windows", + "dataSources": [ + { + "kind": "PerformanceCounter", + "configuration": { + "perfCounters": [ + { + "name": "\\Process(_Total)\\%Processor Time", + "samplingPeriod": "PT1M" + }, + { + "name": "\\Process(_Total)\\Working Set", + "samplingPeriod": "PT1M" + } + ] + }, + "sinks": [ + { + "kind": "LogAnalytics" + } + ] + }, + { + "kind": "ETWProviders", + "configuration": { + "providers": [ + { + "name": "AuditLog", + "id": 1, + "filter": "filter exp" + }, + { + "name": "TraceLog", + "id": 2 + } + ] + }, + "sinks": [ + { + "kind": "LogAnalytics" } + ] + }, + { + "kind": "WindowsEventLogs", + "configuration": { + "eventLogs": [ + { + "logName": "Application", + "filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"CatWoman\"" + }, + { + "logName": "Application", + "filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"BatMan\"" + } + ] + }, + "sinks": [ + { + "kind": "LogAnalytics" + } + ] } - }, - "202": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ResourceGroup/providers/microsoft.insights/guestDiagnosticSettings/productionMachineSetting", - "name": "productionMachineSetting", - "type": "Microsoft.Insights/guestDiagnosticSettings", - "location": "West US", - "tags": {}, - "properties": { - "osType": "windows", - "dataSources": [ - { - "kind": "PerformanceCounter", - "configuration": { - "perfCounters": [ - { - "name": "\\Process(_Total)\\%Processor Time", - "samplingPeriod": "PT1M" - }, - { - "name": "\\Process(_Total)\\Working Set", - "samplingPeriod": "PT1M" - } - ] - }, - "sinks": [ - { - "kind": "LogAnalytics" - } - ] - }, - { - "kind": "ETWProviders", - "configuration": { - "providers": [ - { - "name": "AuditLog", - "id": 1, - "filter": "filter exp" - }, - { - "name": "TraceLog", - "id": 2 - } - ] - }, - "sinks": [ - { - "kind": "LogAnalytics" - } - ] - }, - { - "kind": "WindowsEventLogs", - "configuration": { - "eventLogs": [ - { - "logName": "Application", - "filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"CatWoman\"" - - }, - { - "logName": "Application", - "filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"BatMan\"" - } - - ] - }, - "sinks": [ - { - "kind": "LogAnalytics" - } - ] - } - - ] + ] + } + } + }, + "202": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ResourceGroup/providers/microsoft.insights/guestDiagnosticSettings/productionMachineSetting", + "name": "productionMachineSetting", + "type": "Microsoft.Insights/guestDiagnosticSettings", + "location": "West US", + "tags": {}, + "properties": { + "osType": "windows", + "dataSources": [ + { + "kind": "PerformanceCounter", + "configuration": { + "perfCounters": [ + { + "name": "\\Process(_Total)\\%Processor Time", + "samplingPeriod": "PT1M" + }, + { + "name": "\\Process(_Total)\\Working Set", + "samplingPeriod": "PT1M" + } + ] + }, + "sinks": [ + { + "kind": "LogAnalytics" + } + ] + }, + { + "kind": "ETWProviders", + "configuration": { + "providers": [ + { + "name": "AuditLog", + "id": 1, + "filter": "filter exp" + }, + { + "name": "TraceLog", + "id": 2 + } + ] + }, + "sinks": [ + { + "kind": "LogAnalytics" + } + ] + }, + { + "kind": "WindowsEventLogs", + "configuration": { + "eventLogs": [ + { + "logName": "Application", + "filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"CatWoman\"" + }, + { + "logName": "Application", + "filter": "SourceName == Xyz AND EventId = \"100\" AND $Xpath/Column=\"DCName\" = \"BatMan\"" + } + ] + }, + "sinks": [ + { + "kind": "LogAnalytics" } + ] } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/getGuestDiagnosticSettingsAssociation.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/getGuestDiagnosticSettingsAssociation.json index 5ee3afd4ef02..5cd3f4ba672c 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/getGuestDiagnosticSettingsAssociation.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/getGuestDiagnosticSettingsAssociation.json @@ -1,22 +1,22 @@ { - "parameters": { - "resourceUri":"subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai", - "associationName": "healthSystemMachineConfigAssociation", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai/providers/microsoft.insights/guestDiagnosticSettingsAssociation/healthSystemMachineConfigAssociation", - "type": "Microsoft.Insights/GuestDiagnosticSettingsAssociation", - "name": "healthSystemMachineConfigAssociation", - "location": "Global", - "tags": {}, - "properties": { - "guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/SampleDiagnosticSettingsName" - } - } + "parameters": { + "resourceUri": "subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai", + "associationName": "healthSystemMachineConfigAssociation", + "api-version": "2018-06-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai/providers/microsoft.insights/guestDiagnosticSettingsAssociation/healthSystemMachineConfigAssociation", + "type": "Microsoft.Insights/GuestDiagnosticSettingsAssociation", + "name": "healthSystemMachineConfigAssociation", + "location": "Global", + "tags": {}, + "properties": { + "guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/SampleDiagnosticSettingsName" } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/updateGuestDiagnosticSettingsAssociation.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/updateGuestDiagnosticSettingsAssociation.json index e33341549273..2cfc3cf55463 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/updateGuestDiagnosticSettingsAssociation.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/examples/updateGuestDiagnosticSettingsAssociation.json @@ -1,28 +1,28 @@ { + "parameters": { + "resourceUri": "subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai", + "associationName": "healthSystemMachineConfigAssociation", + "api-version": "2018-06-01-preview", "parameters": { - "resourceUri":"subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai", - "associationName": "healthSystemMachineConfigAssociation", - "api-version": "2018-06-01-preview", - "parameters": { - "tags": null, - "properties": { - "guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity" - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai/providers/microsoft.insights/guestDiagnosticSettingsAssociation/healthSystemMachineConfigAssociation", - "type": "Microsoft.Insights/GuestDiagnosticSettingsAssociation", - "name": "healthSystemMachineConfigAssociation", - "location": "Global", - "tags": null, - "properties": { - "guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity" - } - } + "tags": null, + "properties": { + "guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai/providers/microsoft.insights/guestDiagnosticSettingsAssociation/healthSystemMachineConfigAssociation", + "type": "Microsoft.Insights/GuestDiagnosticSettingsAssociation", + "name": "healthSystemMachineConfigAssociation", + "location": "Global", + "tags": null, + "properties": { + "guestDiagnosticSettingsName": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity" } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettingsAssociation_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettingsAssociation_API.json index 80487b3dc64d..ddcba6617e2d 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettingsAssociation_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettingsAssociation_API.json @@ -1,444 +1,446 @@ { - "swagger": "2.0", - "info": { - "title": "Guest Diagnostic Settings Association API", - "description": "API to Add/Remove/List Guest Diagnostics Settings Association for Azure Resources", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2018-06-01-preview" + "swagger": "2.0", + "info": { + "title": "Guest Diagnostic Settings Association API", + "description": "API to Add/Remove/List Guest Diagnostics Settings Association for Azure Resources", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "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" - } + "version": "2018-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": { - "/{resourceUri}/providers/microsoft.insights/guestDiagnosticSettingsAssociation/{associationName}": { - "put": { - "description": "Creates or updates guest diagnostics settings association.", - "tags": [ - "GuestDiagnosticsSettingsAssociation" - ], - "operationId": "guestDiagnosticsSettingsAssociation_CreateOrUpdate", - "x-ms-examples": { - "Create or update an guest diagnostic settings association": { - "$ref": "./examples/createOrUpdateGuestDiagnosticSettingsAssociation.json" - } - }, - "parameters": [ - { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified ID of the resource, including the resource name and resource type.", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "#/parameters/DiagnosticSettingsAssociationNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "diagnosticSettingsAssociation", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResource" - }, - "description": "The diagnostic settings association to create or update." - } - ], - "responses": { - "200": { - "description": "An existing guest diagnostic settings association was successfully updated.", - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResource" - } - }, - "201": { - "description": "A new guest diagnostic settings association was successfully created.", - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResource" - } - }, - "default": { - "description": "An error occurred and the guest diagnostic settings association could not be created or updated.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "get": { - "description": "Gets guest diagnostics association settings.", - "tags": [ - "GuestDiagnosticsSettingsAssociation" - ], - "operationId": "guestDiagnosticsSettingsAssociation_Get", - "x-ms-examples": { - "Create or update an guest diagnostic settings association": { - "$ref": "./examples/getGuestDiagnosticSettingsAssociation.json" - } - }, - "parameters": [ - { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified ID of the resource, including the resource name and resource type.", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "#/parameters/DiagnosticSettingsAssociationNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResource" - } - }, - "default": { - "description": "An error occurred and the diagnostic settings association could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "description": "Delete guest diagnostics association settings.", - "tags": [ - "GuestDiagnosticsSettingsAssociation" - ], - "x-ms-examples": { - "Create or update an guest diagnostic settings association": { - "$ref": "./examples/deleteGuestDiagnosticSettingsAssociation.json" - } - }, - "operationId": "GuestDiagnosticsSettingsAssociation_Delete", - "parameters": [ - { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified ID of the resource, including the resource name and resource type.", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "#/parameters/DiagnosticSettingsAssociationNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The diagnostic settings association was successfully deleted." - }, - "204": { - "description": "The diagnostic settings association does not exist. It may have already been deleted." - }, - "default": { - "description": "An error occurred and the diagnostic settings association could not be deleted.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + } + }, + "paths": { + "/{resourceUri}/providers/microsoft.insights/guestDiagnosticSettingsAssociation/{associationName}": { + "put": { + "description": "Creates or updates guest diagnostics settings association.", + "tags": [ + "GuestDiagnosticsSettingsAssociation" + ], + "operationId": "GuestDiagnosticsSettingsAssociation_CreateOrUpdate", + "x-ms-examples": { + "Create or update an guest diagnostic settings association": { + "$ref": "./examples/createOrUpdateGuestDiagnosticSettingsAssociation.json" + } + }, + "parameters": [ + { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/DiagnosticSettingsAssociationNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "diagnosticSettingsAssociation", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResource" }, - "patch": { - "description": "Updates an existing guestDiagnosticsSettingsAssociation Resource. To update other fields use the CreateOrUpdate method", - "operationId": "guestDiagnosticsSettingsAssociation_Update", - "parameters": [ - { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified ID of the resource, including the resource name and resource type.", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/DiagnosticSettingsAssociationNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResourcePatch" - }, - "description": "Parameters supplied to the operation." - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "An existing guest diagnostics setting resource was successfully updated.", - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResource" - } - } - }, - "x-ms-examples": { - "Update a service diagnostic setting": { "$ref": "./examples/updateGuestDiagnosticSettingsAssociation.json" } - } - } + "description": "The diagnostic settings association to create or update." + } + ], + "responses": { + "200": { + "description": "An existing guest diagnostic settings association was successfully updated.", + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResource" + } + }, + "201": { + "description": "A new guest diagnostic settings association was successfully created.", + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResource" + } + }, + "default": { + "description": "An error occurred and the guest diagnostic settings association could not be created or updated.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "description": "Gets guest diagnostics association settings.", + "tags": [ + "GuestDiagnosticsSettingsAssociation" + ], + "operationId": "GuestDiagnosticsSettingsAssociation_Get", + "x-ms-examples": { + "Create or update an guest diagnostic settings association": { + "$ref": "./examples/getGuestDiagnosticSettingsAssociation.json" + } }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/guestDiagnosticSettingsAssociations": { - "get": { - "description": "Get a list of all guest diagnostic settings association in a subscription.", - "operationId": "guestDiagnosticsSettingsAssociation_List", - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsAssociationList" - } - }, - "default": { - "description": "An error occurred and the list of guest diagnostic settings association could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + "parameters": [ + { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/DiagnosticSettingsAssociationNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResource" } + }, + "default": { + "description": "An error occurred and the diagnostic settings association could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "description": "Delete guest diagnostics association settings.", + "tags": [ + "GuestDiagnosticsSettingsAssociation" + ], + "x-ms-examples": { + "Create or update an guest diagnostic settings association": { + "$ref": "./examples/deleteGuestDiagnosticSettingsAssociation.json" + } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettingsAssociations": { - "get": { - "description": "Get a list of all guest diagnostic settings association in a resource group.", - "operationId": "guestDiagnosticsSettingsAssociation_ListByResourceGroup", - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsAssociationList" - } - }, - "default": { - "description": "An error occurred and the list of guest diagnostic settings association could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + "operationId": "GuestDiagnosticsSettingsAssociation_Delete", + "parameters": [ + { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/DiagnosticSettingsAssociationNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The diagnostic settings association was successfully deleted." + }, + "204": { + "description": "The diagnostic settings association does not exist. It may have already been deleted." + }, + "default": { + "description": "An error occurred and the diagnostic settings association could not be deleted.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } } - }, - "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" - } + }, + "patch": { + "description": "Updates an existing guestDiagnosticsSettingsAssociation Resource. To update other fields use the CreateOrUpdate method", + "operationId": "GuestDiagnosticsSettingsAssociation_Update", + "parameters": [ + { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/DiagnosticSettingsAssociationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResourcePatch" + }, + "description": "Parameters supplied to the operation." + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "200": { + "description": "An existing guest diagnostics setting resource was successfully updated.", + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResource" } + } + }, + "x-ms-examples": { + "Update a service diagnostic setting": { + "$ref": "./examples/updateGuestDiagnosticSettingsAssociation.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/microsoft.insights/guestDiagnosticSettingsAssociations": { + "get": { + "description": "Get a list of all guest diagnostic settings association in a subscription.", + "operationId": "GuestDiagnosticsSettingsAssociation_List", + "x-ms-pageable": { + "nextLinkName": null }, - "GuestDiagnosticSettingsAssociationList": { - "description": "A list of guest diagnostic settings association.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResource" - }, - "description": "The list of guest diagnostic settings association." - }, - "nextLink": { - "type": "string", - "description": "Provides the link to retrieve the next set of elements." - } + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsAssociationList" + } + }, + "default": { + "description": "An error occurred and the list of guest diagnostic settings association could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettingsAssociations": { + "get": { + "description": "Get a list of all guest diagnostic settings association in a resource group.", + "operationId": "GuestDiagnosticsSettingsAssociation_ListByResourceGroup", + "x-ms-pageable": { + "nextLinkName": null }, - "GuestDiagnosticSettingsAssociationResourcePatch": { - "description": "Guest diagnostic setting resource for patch operations", - "properties": { - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/GuestDiagnosticSettingsAssociation", - "description": "The service diagnostics settings for an update operation." - } + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsAssociationList" + } + }, + "default": { + "description": "An error occurred and the list of guest diagnostic settings association could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + } + }, + "definitions": { + "ErrorResponse": { + "description": "Describes the format of Error response.", + "type": "object", + "properties": { + "code": { + "description": "Error code", + "type": "string" }, - "GuestDiagnosticSettingsAssociation": { - "description": "A guest diagnostic settings association.", - "properties": { - "guestDiagnosticSettingsName": { - "type": "string", - "description": "The guest diagnostic settings name." - } - }, - "required": [ - "guestDiagnosticSettingsName" - ] + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + }, + "GuestDiagnosticSettingsAssociationList": { + "description": "A list of guest diagnostic settings association.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GuestDiagnosticSettingsAssociationResource" + }, + "description": "The list of guest diagnostic settings association." }, - "GuestDiagnosticSettingsAssociationResource": { - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "required": [ - "properties" - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/GuestDiagnosticSettingsAssociation", - "description": "The diagnostics settings associations of the resource." - } - }, - "description": "Virtual machine guest diagnostic settings resource." + "nextLink": { + "type": "string", + "description": "Provides the link to retrieve the next set of elements." + } + } + }, + "GuestDiagnosticSettingsAssociationResourcePatch": { + "description": "Guest diagnostic setting resource for patch operations", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" }, - "Resource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Azure resource name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" - } + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GuestDiagnosticSettingsAssociation", + "description": "The service diagnostics settings for an update operation." + } + } }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription Id." + "GuestDiagnosticSettingsAssociation": { + "description": "A guest diagnostic settings association.", + "properties": { + "guestDiagnosticSettingsName": { + "type": "string", + "description": "The guest diagnostic settings name." + } + }, + "required": [ + "guestDiagnosticSettingsName" + ] + }, + "GuestDiagnosticSettingsAssociationResource": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "required": [ + "properties" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GuestDiagnosticSettingsAssociation", + "description": "The diagnostics settings associations of the resource." + } + }, + "description": "Virtual machine guest diagnostic settings resource." + }, + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" }, - "DiagnosticSettingsAssociationNameParameter": { - "name": "associationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the diagnostic settings association.", - "x-ms-parameter-location": "method" + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - } + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription Id." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "DiagnosticSettingsAssociationNameParameter": { + "name": "associationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the diagnostic settings association.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." } - } \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettings_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettings_API.json index 092ba0613f6f..c82bcd2e139e 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettings_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettings_API.json @@ -1,580 +1,580 @@ { - "swagger": "2.0", - "info": { - "title": "Guest Diagnostic Settings API", - "description": "API to Add/Remove/List Guest Diagnostics Configuration to Azure Resources", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2018-06-01-preview" + "swagger": "2.0", + "info": { + "title": "Guest Diagnostic Settings API", + "description": "API to Add/Remove/List Guest Diagnostics Configuration to Azure Resources", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "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" - } + "version": "2018-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.insights/guestDiagnosticSettings/{diagnosticSettingsName}": { - "put": { - "description": "Creates or updates guest diagnostics settings.", - "tags": [ - "GuestDiagnosticsSettings" - ], - "operationId": "guestDiagnosticsSettings_CreateOrUpdate", - "x-ms-examples": { - "Create or update a guest diagnostic settings": { - "$ref": "./examples/createOrUpdateGuestDiagnosticSettings.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DiagnosticSettingNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "diagnosticSettings", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsResource" - }, - "description": "The configuration to create or update." - } - ], - "responses": { - "200": { - "description": "An existing guest diagnostic settings was successfully updated.", - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsResource" - } - }, - "201": { - "description": "A new guest diagnostic settings was successfully created.", - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsResource" - } - }, - "default": { - "description": "An error occurred and the guest diagnostic settings could not be created or updated.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "get": { - "description": "Gets guest diagnostics settings.", - "tags": [ - "GuestDiagnosticsSettings" - ], - "operationId": "guestDiagnosticsSettings_Get", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DiagnosticSettingNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsResource" - } - }, - "default": { - "description": "An error occurred and the diagnostic settings could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettings/{diagnosticSettingsName}": { + "put": { + "description": "Creates or updates guest diagnostics settings.", + "tags": [ + "GuestDiagnosticsSettings" + ], + "operationId": "guestDiagnosticsSettings_CreateOrUpdate", + "x-ms-examples": { + "Create or update a guest diagnostic settings": { + "$ref": "./examples/createOrUpdateGuestDiagnosticSettings.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiagnosticSettingNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "diagnosticSettings", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsResource" }, - "patch": { - "description": "Updates guest diagnostics settings.", - "operationId": "guestDiagnosticsSettings_Update", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DiagnosticSettingNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsPatchResource" - }, - "description": "The configuration to patch." - } - ], - "responses": { - "200": { - "description": "An existing guest diagnostic settings was successfully updated.", - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsResource" - } - }, - "201": { - "description": "A new guest diagnostic settings was successfully created.", - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsResource" - } - }, - "default": { - "description": "An error occurred and the guest diagnostic settings could not be created or updated.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "description": "Delete guest diagnostics settings.", - "tags": [ - "GuestDiagnosticsSettings" - ], - "operationId": "guestDiagnosticsSettings_Delete", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/DiagnosticSettingNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The diagnostic settings was successfully deleted." - }, - "204": { - "description": "The diagnostic settings does not exist. It may have already been deleted." - }, - "default": { - "description": "An error occurred and the diagnostic settings could not be deleted.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + "description": "The configuration to create or update." + } + ], + "responses": { + "200": { + "description": "An existing guest diagnostic settings was successfully updated.", + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsResource" } - }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/guestDiagnosticSettings": { - "get": { - "description": "Get a list of all guest diagnostic settings in a subscription.", - "operationId": "guestDiagnosticsSettings_List", - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsList" - } - }, - "default": { - "description": "An error occurred and the list of guest diagnostic settings could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "201": { + "description": "A new guest diagnostic settings was successfully created.", + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsResource" } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettings": { - "get": { - "description": "Get a list of all guest diagnostic settings in a resource group.", - "operationId": "guestDiagnosticsSettings_ListByResourceGroup", - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/GuestDiagnosticSettingsList" - } - }, - "default": { - "description": "An error occurred and the list of guest diagnostic settings could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "default": { + "description": "An error occurred and the guest diagnostic settings could not be created or updated.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } } - }, - "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" - } + }, + "get": { + "description": "Gets guest diagnostics settings.", + "tags": [ + "GuestDiagnosticsSettings" + ], + "operationId": "guestDiagnosticsSettings_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiagnosticSettingNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsResource" } - }, - "GuestDiagnosticSettingsList": { - "description": "A list of guest diagnostic settings.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/GuestDiagnosticSettingsResource" - }, - "description": "The list of guest diagnostic settings." - }, - "nextLink": { - "type": "string", - "description": "Provides the link to retrieve the next set of elements." - } + }, + "default": { + "description": "An error occurred and the diagnostic settings could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } - }, - "GuestDiagnosticSettingsResource": { - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "required": [ - "properties" - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/GuestDiagnosticSettings", - "description": "The diagnostic settings to be applied to azure resources." - } + } + } + }, + "patch": { + "description": "Updates guest diagnostics settings.", + "operationId": "guestDiagnosticsSettings_Update", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiagnosticSettingNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsPatchResource" }, - "description": "Virtual machine guest diagnostics settings resource." - }, - "GuestDiagnosticSettings": { - "description": "Virtual machine diagnostic settings", - "properties": { - "osType": { - "type": "string", - "enum": [ - "Windows", - "Linux" - ], - "description" : "Operating system type for the configuration" - }, - "dataSources": { - "type": "array", - "items": { - "$ref": "#/definitions/DataSource" - }, - "description": "the array of data source object which are configured to collect and send data" - }, - "proxySetting": { - "type": "string" - } + "description": "The configuration to patch." + } + ], + "responses": { + "200": { + "description": "An existing guest diagnostic settings was successfully updated.", + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsResource" } - }, - "GuestDiagnosticSettingsPatchResource": { - "description": "An diagnostic settings object for the body of patch operations.", - "properties": { - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/GuestDiagnosticSettings", - "description": "The diagnostic settings for an update operation." - } + }, + "201": { + "description": "A new guest diagnostic settings was successfully created.", + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsResource" } - }, - "DataSource": { - "type": "object", - "required": [ - "kind", - "configuration", - "sinks" - ], - "properties": { - "kind": { - "type": "string", - "enum": [ - "PerformanceCounter", - "ETWProviders", - "WindowsEventLogs" - ], - "description": "Datasource kind" - }, - "configuration": { - "type": "object", - "$ref": "#/definitions/DataSourceConfiguration" - }, - "sinks": { - "type": "array", - "items": { - "$ref": "#/definitions/SinkConfiguration" - } - } - }, - "description": "Data source object contains configuration to collect telemetry and one or more sinks to send that telemetry data to" - }, - "SinkConfiguration": { - "type": "object", - "required": [ - "kind" - ], - "properties": { - "kind": { - "type": "string", - "enum": [ - "EventHub", - "ApplicationInsights", - "LogAnalytics" - ] - } + }, + "default": { + "description": "An error occurred and the guest diagnostic settings could not be created or updated.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } - }, - "DataSourceConfiguration": { - "type": "object", - "properties": { - "providers": { - "type": "array", - "items": { - "$ref": "#/definitions/EtwProviderConfiguration" - }, - "description": "ETW providers configuration" - }, - "perfCounters": { - "type": "array", - "items": { - "$ref": "#/definitions/PerformanceCounterConfiguration" - }, - "description": "Performance counter configuration" - }, - "eventLogs": { - "type": "array", - "items": { - "$ref": "#/definitions/EventLogConfiguration" - }, - "description": "Windows event logs configuration." - } + } + } + }, + "delete": { + "description": "Delete guest diagnostics settings.", + "tags": [ + "GuestDiagnosticsSettings" + ], + "operationId": "guestDiagnosticsSettings_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiagnosticSettingNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The diagnostic settings was successfully deleted." + }, + "204": { + "description": "The diagnostic settings does not exist. It may have already been deleted." + }, + "default": { + "description": "An error occurred and the diagnostic settings could not be deleted.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/microsoft.insights/guestDiagnosticSettings": { + "get": { + "description": "Get a list of all guest diagnostic settings in a subscription.", + "operationId": "guestDiagnosticsSettings_List", + "x-ms-pageable": { + "nextLinkName": null }, - "EtwEventConfiguration": { - "type": "object", - "required": [ - "name", - "id" - ], - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "filter": { - "type": "string" - } + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsList" } - }, - "EtwProviderConfiguration": { - "type": "object", - "required": [ - "id", - "events" - ], - "properties": { - "id": { - "type": "string" - }, - "events": { - "type": "array", - "items": { - "$ref": "#/definitions/EtwEventConfiguration" - } - } + }, + "default": { + "description": "An error occurred and the list of guest diagnostic settings could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettings": { + "get": { + "description": "Get a list of all guest diagnostic settings in a resource group.", + "operationId": "guestDiagnosticsSettings_ListByResourceGroup", + "x-ms-pageable": { + "nextLinkName": null }, - "PerformanceCounterConfiguration": { - "type": "object", - "required": [ - "name", - "samplingPeriod" - ], - "properties": { - "name": { - "type": "string" - }, - "samplingPeriod": { - "type": "string" - }, - "instance": { - "type": "string" - } + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/GuestDiagnosticSettingsList" } - }, - "EventLogConfiguration": { - "type": "object", - "required": [ - "logName" - ], - "properties": { - "logName": { - "type": "string" - }, - "filter": { - "type": "string" - } + }, + "default": { + "description": "An error occurred and the list of guest diagnostic settings could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + } + }, + "definitions": { + "ErrorResponse": { + "description": "Describes the format of Error response.", + "type": "object", + "properties": { + "code": { + "description": "Error code", + "type": "string" }, - "Resource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Azure resource name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" - } + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription Id." + "GuestDiagnosticSettingsList": { + "description": "A list of guest diagnostic settings.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GuestDiagnosticSettingsResource" + }, + "description": "The list of guest diagnostic settings." }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" + "nextLink": { + "type": "string", + "description": "Provides the link to retrieve the next set of elements." + } + } + }, + "GuestDiagnosticSettingsResource": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "required": [ + "properties" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GuestDiagnosticSettings", + "description": "The diagnostic settings to be applied to azure resources." + } + }, + "description": "Virtual machine guest diagnostics settings resource." + }, + "GuestDiagnosticSettings": { + "description": "Virtual machine diagnostic settings", + "properties": { + "osType": { + "type": "string", + "enum": [ + "Windows", + "Linux" + ], + "description": "Operating system type for the configuration" }, - "DiagnosticSettingNameParameter": { - "name": "diagnosticSettingsName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the diagnostic setting.", - "x-ms-parameter-location": "method" + "dataSources": { + "type": "array", + "items": { + "$ref": "#/definitions/DataSource" + }, + "description": "the array of data source object which are configured to collect and send data" }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - } + "proxySetting": { + "type": "string" + } + } + }, + "GuestDiagnosticSettingsPatchResource": { + "description": "An diagnostic settings object for the body of patch operations.", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GuestDiagnosticSettings", + "description": "The diagnostic settings for an update operation." + } + } + }, + "DataSource": { + "type": "object", + "required": [ + "kind", + "configuration", + "sinks" + ], + "properties": { + "kind": { + "type": "string", + "enum": [ + "PerformanceCounter", + "ETWProviders", + "WindowsEventLogs" + ], + "description": "Datasource kind" + }, + "configuration": { + "type": "object", + "$ref": "#/definitions/DataSourceConfiguration" + }, + "sinks": { + "type": "array", + "items": { + "$ref": "#/definitions/SinkConfiguration" + } + } + }, + "description": "Data source object contains configuration to collect telemetry and one or more sinks to send that telemetry data to" + }, + "SinkConfiguration": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "kind": { + "type": "string", + "enum": [ + "EventHub", + "ApplicationInsights", + "LogAnalytics" + ] + } + } + }, + "DataSourceConfiguration": { + "type": "object", + "properties": { + "providers": { + "type": "array", + "items": { + "$ref": "#/definitions/EtwProviderConfiguration" + }, + "description": "ETW providers configuration" + }, + "perfCounters": { + "type": "array", + "items": { + "$ref": "#/definitions/PerformanceCounterConfiguration" + }, + "description": "Performance counter configuration" + }, + "eventLogs": { + "type": "array", + "items": { + "$ref": "#/definitions/EventLogConfiguration" + }, + "description": "Windows event logs configuration." + } + } + }, + "EtwEventConfiguration": { + "type": "object", + "required": [ + "name", + "id" + ], + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "filter": { + "type": "string" + } + } + }, + "EtwProviderConfiguration": { + "type": "object", + "required": [ + "id", + "events" + ], + "properties": { + "id": { + "type": "string" + }, + "events": { + "type": "array", + "items": { + "$ref": "#/definitions/EtwEventConfiguration" + } + } + } + }, + "PerformanceCounterConfiguration": { + "type": "object", + "required": [ + "name", + "samplingPeriod" + ], + "properties": { + "name": { + "type": "string" + }, + "samplingPeriod": { + "type": "string" + }, + "instance": { + "type": "string" + } + } + }, + "EventLogConfiguration": { + "type": "object", + "required": [ + "logName" + ], + "properties": { + "logName": { + "type": "string" + }, + "filter": { + "type": "string" + } + } + }, + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription Id." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "DiagnosticSettingNameParameter": { + "name": "diagnosticSettingsName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the diagnostic setting.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." } - } \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusResourceGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusResourceGroup.json index 3500766bd62a..2e60687e3054 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusResourceGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusResourceGroup.json @@ -1,32 +1,32 @@ { - "parameters": { - "resourceUri": "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/resource-group-with-vms", - "api-version": "2018-11-27-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": { + "parameters": { + "resourceUri": "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/resource-group-with-vms", + "api-version": "2018-11-27-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "resourceId": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/resource-group-with-vms", + "onboardingStatus": "onboarded", + "dataStatus": "present", + "data": [ + { + "workspace": { + "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourcegroups/monitoring/providers/microsoft.operationalinsights/workspaces/vm-monitoring", + "location": "eastus", "properties": { - "resourceId": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/resource-group-with-vms", - "onboardingStatus": "onboarded", - "dataStatus": "present", - "data": [ - { - "workspace": { - "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourcegroups/monitoring/providers/microsoft.operationalinsights/workspaces/vm-monitoring", - "location": "eastus", - "properties": { - "customerId": "c7f8f44d-d8ee-4b79-9d9a-4d8a1f2a112a" - } - } - } - ] - }, - "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/resource-group-with-vms/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default", - "type": "Microsoft.Insights/vmInsightsOnboardingStatuses", - "name": "default" + "customerId": "c7f8f44d-d8ee-4b79-9d9a-4d8a1f2a112a" + } + } } - } + ] + }, + "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/resource-group-with-vms/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default", + "type": "Microsoft.Insights/vmInsightsOnboardingStatuses", + "name": "default" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVM.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVM.json index 8fb2b0190191..59476d080e17 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVM.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVM.json @@ -1,32 +1,32 @@ { - "parameters": { - "resourceUri": "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm", - "api-version": "2018-11-27-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": { + "parameters": { + "resourceUri": "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm", + "api-version": "2018-11-27-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "resourceId": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm", + "onboardingStatus": "onboarded", + "dataStatus": "present", + "data": [ + { + "workspace": { + "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourcegroups/monitoring/providers/microsoft.operationalinsights/workspaces/vm-monitoring", + "location": "eastus", "properties": { - "resourceId": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm", - "onboardingStatus": "onboarded", - "dataStatus": "present", - "data": [ - { - "workspace": { - "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourcegroups/monitoring/providers/microsoft.operationalinsights/workspaces/vm-monitoring", - "location": "eastus", - "properties": { - "customerId": "c7f8f44d-d8ee-4b79-9d9a-4d8a1f2a112a" - } - } - } - ] - }, - "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default", - "type": "Microsoft.Insights/vmInsightsOnboardingStatuses", - "name": "default" + "customerId": "c7f8f44d-d8ee-4b79-9d9a-4d8a1f2a112a" + } + } } - } + ] + }, + "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default", + "type": "Microsoft.Insights/vmInsightsOnboardingStatuses", + "name": "default" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVMUnknown.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVMUnknown.json index 41d1f25fdf8d..203db7a7a12f 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVMUnknown.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVMUnknown.json @@ -1,22 +1,22 @@ { - "parameters": { - "resourceUri": "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm", - "api-version": "2018-11-27-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "properties": { - "resourceId": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm", - "onboardingStatus": "unknown", - "dataStatus": "notPresent", - "data": [] - }, - "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default", - "type": "Microsoft.Insights/vmInsightsOnboardingStatuses", - "name": "default" - } - } + "parameters": { + "resourceUri": "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm", + "api-version": "2018-11-27-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "resourceId": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm", + "onboardingStatus": "unknown", + "dataStatus": "notPresent", + "data": [] + }, + "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default", + "type": "Microsoft.Insights/vmInsightsOnboardingStatuses", + "name": "default" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSubscription.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSubscription.json index 57eb902d9b23..d32291ef862d 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSubscription.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSubscription.json @@ -1,38 +1,40 @@ { - "parameters": { - "resourceUri": "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87", - "api-version": "2018-11-27-preview" - }, - "responses": { - "200": { - "properties": { - "resourceId": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87", - "onboardingStatus": "onboarded", - "dataStatus": "present", - "data": [ - { - "workspace": { - "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourcegroups/monitoring/providers/microsoft.operationalinsights/workspaces/vm-monitoring-secondary", - "location": "eastus", - "properties": { - "customerId": "f096d163-206e-4abf-9db3-2c62af003d68" - } - } - }, - { - "workspace": { - "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourcegroups/monitoring/providers/microsoft.operationalinsights/workspaces/vm-monitoring", - "location": "eastus", - "properties": { - "customerId": "c7f8f44d-d8ee-4b79-9d9a-4d8a1f2a112a" - } - } - } - ] + "parameters": { + "resourceUri": "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87", + "api-version": "2018-11-27-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "resourceId": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87", + "onboardingStatus": "onboarded", + "dataStatus": "present", + "data": [ + { + "workspace": { + "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourcegroups/monitoring/providers/microsoft.operationalinsights/workspaces/vm-monitoring-secondary", + "location": "eastus", + "properties": { + "customerId": "f096d163-206e-4abf-9db3-2c62af003d68" + } + } }, - "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default", - "type": "Microsoft.Insights/vmInsightsOnboardingStatuses", - "name": "default" - } + { + "workspace": { + "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourcegroups/monitoring/providers/microsoft.operationalinsights/workspaces/vm-monitoring", + "location": "eastus", + "properties": { + "customerId": "c7f8f44d-d8ee-4b79-9d9a-4d8a1f2a112a" + } + } + } + ] + }, + "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default", + "type": "Microsoft.Insights/vmInsightsOnboardingStatuses", + "name": "default" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusVMScaleSet.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusVMScaleSet.json index be3a9a8d3a61..1b0a85ec5ad2 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusVMScaleSet.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusVMScaleSet.json @@ -1,32 +1,32 @@ { - "parameters": { - "resourceUri": "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/my-service-cluster/providers/Microsoft.Compute/virtualMachineScaleSets/scale-set-01", - "api-version": "2018-11-27-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": { + "parameters": { + "resourceUri": "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/my-service-cluster/providers/Microsoft.Compute/virtualMachineScaleSets/scale-set-01", + "api-version": "2018-11-27-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "resourceId": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/my-service-cluster/providers/Microsoft.Compute/virtualMachineScaleSets/scale-set-01", + "onboardingStatus": "onboarded", + "dataStatus": "present", + "data": [ + { + "workspace": { + "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourcegroups/monitoring/providers/microsoft.operationalinsights/workspaces/vm-monitoring", + "location": "eastus", "properties": { - "resourceId": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/my-service-cluster/providers/Microsoft.Compute/virtualMachineScaleSets/scale-set-01", - "onboardingStatus": "onboarded", - "dataStatus": "present", - "data": [ - { - "workspace": { - "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourcegroups/monitoring/providers/microsoft.operationalinsights/workspaces/vm-monitoring", - "location": "eastus", - "properties": { - "customerId": "c7f8f44d-d8ee-4b79-9d9a-4d8a1f2a112a" - } - } - } - ] - }, - "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/my-service-cluster/providers/Microsoft.Compute/virtualMachineScaleSets/scale-set-01/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default", - "type": "Microsoft.Insights/vmInsightsOnboardingStatuses", - "name": "default" + "customerId": "c7f8f44d-d8ee-4b79-9d9a-4d8a1f2a112a" + } + } } - } + ] + }, + "id": "/subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/my-service-cluster/providers/Microsoft.Compute/virtualMachineScaleSets/scale-set-01/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default", + "type": "Microsoft.Insights/vmInsightsOnboardingStatuses", + "name": "default" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/vmInsightsOnboarding_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/vmInsightsOnboarding_API.json index b6385a6437bd..a955bfa3fbdd 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/vmInsightsOnboarding_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/vmInsightsOnboarding_API.json @@ -1,260 +1,260 @@ { - "swagger": "2.0", - "info": { - "title": "VM Insights Onboarding API", - "description": "API to manage VM Insights Onboarding", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2018-11-27-preview" + "swagger": "2.0", + "info": { + "title": "VM Insights Onboarding API", + "description": "API to manage VM Insights Onboarding", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "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" - } + "version": "2018-11-27-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": { - "/{resourceUri}/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default": { - "get": { - "tags": [ - "VM Insights Onboarding" - ], - "operationId": "VMInsights_GetOnboardingStatus", - "description": "Retrieves the VM Insights onboarding status for the specified resource or resource scope.", - "x-ms-examples": { - "Get status for a VM that has not yet reported data": { - "$ref": "./examples/getOnboardingStatusSingleVMUnknown.json" - }, - "Get status for a VM that is actively reporting data": { - "$ref": "./examples/getOnboardingStatusSingleVM.json" - }, - "Get status for a VM scale set that is actively reporting data": { - "$ref": "./examples/getOnboardingStatusVMScaleSet.json" - }, - "Get status for a resource group that has at least one VM that is actively reporting data": { - "$ref": "./examples/getOnboardingStatusResourceGroup.json" - }, - "Get status for a subscription that has at least one VM that is actively reporting data": { - "$ref": "./examples/getOnboardingStatusSubscription.json" - } + } + }, + "paths": { + "/{resourceUri}/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default": { + "get": { + "tags": [ + "VM Insights Onboarding" + ], + "operationId": "VMInsights_GetOnboardingStatus", + "description": "Retrieves the VM Insights onboarding status for the specified resource or resource scope.", + "x-ms-examples": { + "Get status for a VM that has not yet reported data": { + "$ref": "./examples/getOnboardingStatusSingleVMUnknown.json" }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified Azure Resource manager identifier of the resource, or scope, whose status to retrieve.", - "x-ms-skip-url-encoding": true - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/VMInsightsOnboardingStatus" - } - }, - "default": { - "description": "An error occurred while processing the request. See the error.code parameter to identify the specific error.", - "schema": { - "$ref": "#/definitions/ResponseWithError" - } - } + "Get status for a VM that is actively reporting data": { + "$ref": "./examples/getOnboardingStatusSingleVM.json" + }, + "Get status for a VM scale set that is actively reporting data": { + "$ref": "./examples/getOnboardingStatusVMScaleSet.json" + }, + "Get status for a resource group that has at least one VM that is actively reporting data": { + "$ref": "./examples/getOnboardingStatusResourceGroup.json" + }, + "Get status for a subscription that has at least one VM that is actively reporting data": { + "$ref": "./examples/getOnboardingStatusSubscription.json" } - } - } - }, - "definitions": { - "ProxyResource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" }, - "name": { + { + "name": "resourceUri", + "in": "path", + "required": true, "type": "string", - "readOnly": true, - "description": "Azure resource name" + "description": "The fully qualified Azure Resource manager identifier of the resource, or scope, whose status to retrieve.", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/VMInsightsOnboardingStatus" + } }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" + "default": { + "description": "An error occurred while processing the request. See the error.code parameter to identify the specific error.", + "schema": { + "$ref": "#/definitions/ResponseWithError" + } } + } + } + } + }, + "definitions": { + "ProxyResource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" }, - "x-ms-azure-resource": true, - "description": "An azure resource object" - }, - "ResponseWithError": { - "type": "object", - "description": "An error response from the API.", - "properties": { - "error": { - "$ref": "#/definitions/Error", - "description": "Error information." - } + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" }, - "required": [ - "error" - ] + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + } }, - "Error": { - "type": "object", - "description": "Error details.", - "properties": { - "code": { - "type": "string", - "description": "Error code identifying the specific error." - }, - "message": { - "type": "string", - "description": "Error message in the caller's locale." - } + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "ResponseWithError": { + "type": "object", + "description": "An error response from the API.", + "properties": { + "error": { + "$ref": "#/definitions/Error", + "description": "Error information." + } + }, + "required": [ + "error" + ] + }, + "Error": { + "type": "object", + "description": "Error details.", + "properties": { + "code": { + "type": "string", + "description": "Error code identifying the specific error." }, - "required": [ - "code" - ] + "message": { + "type": "string", + "description": "Error message in the caller's locale." + } }, - "WorkspaceInfo": { - "type": "object", - "description": "Information about a Log Analytics Workspace.", + "required": [ + "code" + ] + }, + "WorkspaceInfo": { + "type": "object", + "description": "Information about a Log Analytics Workspace.", + "properties": { + "id": { + "type": "string", + "description": "Azure Resource Manager identifier of the Log Analytics Workspace." + }, + "location": { + "type": "string", + "description": "Location of the Log Analytics workspace." + }, "properties": { - "id": { - "type": "string", - "description": "Azure Resource Manager identifier of the Log Analytics Workspace." - }, - "location": { - "type": "string", - "description": "Location of the Log Analytics workspace." - }, + "x-ms-client-flatten": true, + "type": "object", + "description": "Resource properties.", "properties": { - "x-ms-client-flatten": true, - "type": "object", - "description": "Resource properties.", - "properties": { - "customerId": { - "type": "string", - "description": "Log Analytics workspace identifier." - } - }, - "required": [ - "customerId" - ] - } - }, - "required": [ - "id", - "location", - "properties" - ] + "customerId": { + "type": "string", + "description": "Log Analytics workspace identifier." + } + }, + "required": [ + "customerId" + ] + } }, - "DataContainer": { - "type": "object", - "description": "Information about a container with data for a given resource.", - "properties": { - "workspace": { - "$ref": "#/definitions/WorkspaceInfo", - "description": "Log Analytics workspace information." - } - }, - "required": [ - "workspace" - ] + "required": [ + "id", + "location", + "properties" + ] + }, + "DataContainer": { + "type": "object", + "description": "Information about a container with data for a given resource.", + "properties": { + "workspace": { + "$ref": "#/definitions/WorkspaceInfo", + "description": "Log Analytics workspace information." + } }, - "VMInsightsOnboardingStatus": { - "description": "VM Insights onboarding status for a resource.", - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], + "required": [ + "workspace" + ] + }, + "VMInsightsOnboardingStatus": { + "description": "VM Insights onboarding status for a resource.", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { "properties": { + "x-ms-client-flatten": true, + "type": "object", + "description": "Resource properties.", "properties": { - "x-ms-client-flatten": true, - "type": "object", - "description": "Resource properties.", - "properties": { - "resourceId": { - "type": "string", - "description": "Azure Resource Manager identifier of the resource whose onboarding status is being represented." - }, - "onboardingStatus": { - "type": "string", - "enum": [ - "onboarded", - "notOnboarded", - "unknown" - ], - "x-ms-enum": { - "name": "OnboardingStatus", - "modelAsString": true - }, - "description": "The onboarding status for the resource. Note that, a higher level scope, e.g., resource group or subscription, is considered onboarded if at least one resource under it is onboarded." + "resourceId": { + "type": "string", + "description": "Azure Resource Manager identifier of the resource whose onboarding status is being represented." + }, + "onboardingStatus": { + "type": "string", + "enum": [ + "onboarded", + "notOnboarded", + "unknown" + ], + "x-ms-enum": { + "name": "OnboardingStatus", + "modelAsString": true }, - "dataStatus": { - "type": "string", - "enum": [ - "present", - "notPresent" - ], - "x-ms-enum": { - "name": "DataStatus", - "modelAsString": true - }, - "description": "The status of VM Insights data from the resource. When reported as `present` the data array will contain information about the data containers to which data for the specified resource is being routed." + "description": "The onboarding status for the resource. Note that, a higher level scope, e.g., resource group or subscription, is considered onboarded if at least one resource under it is onboarded." + }, + "dataStatus": { + "type": "string", + "enum": [ + "present", + "notPresent" + ], + "x-ms-enum": { + "name": "DataStatus", + "modelAsString": true }, - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/DataContainer" - }, - "description": "Containers that currently store VM Insights data for the specified resource." - } + "description": "The status of VM Insights data from the resource. When reported as `present` the data array will contain information about the data containers to which data for the specified resource is being routed." }, - "required": [ - "resourceId", - "onboardingStatus", - "dataStatus" - ] - } + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/DataContainer" + }, + "description": "Containers that currently store VM Insights data for the specified resource." + } + }, + "required": [ + "resourceId", + "onboardingStatus", + "dataStatus" + ] } } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "API version." - } } - } \ No newline at end of file + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "API version." + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/activityLogs_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/activityLogs_API.json index cccfc164c41b..5bd6f75967a9 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/activityLogs_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/activityLogs_API.json @@ -51,8 +51,8 @@ "name": "$filter", "in": "query", "type": "string", - "required": false, - "description": "Reduces the set of data collected.
The **$filter** argument is very restricted and allows only the following patterns.
- *List events for a resource group*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceGroupName eq 'resourceGroupName'.
- *List events for resource*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceUri eq 'resourceURI'.
- *List events for a subscription in a time range*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z'.
- *List events for a resource provider*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceProvider eq 'resourceProviderName'.
- *List events for a correlation Id*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and correlationId eq 'correlationID'.

**NOTE**: No other syntax is allowed." + "required": true, + "description": "Reduces the set of data collected.
This argument is required and it also requires at least the start date/time.
The **$filter** argument is very restricted and allows only the following patterns.
- *List events for a resource group*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceGroupName eq 'resourceGroupName'.
- *List events for resource*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceUri eq 'resourceURI'.
- *List events for a subscription in a time range*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z'.
- *List events for a resource provider*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceProvider eq 'resourceProviderName'.
- *List events for a correlation Id*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and correlationId eq 'correlationID'.

**NOTE**: No other syntax is allowed." }, { "$ref": "#/parameters/SelectParameter" @@ -80,17 +80,21 @@ }, "x-ms-odata": "#/definitions/EventData", "x-ms-examples": { - "Get Activity Logs without filter or select": { "$ref": "./examples/GetActivityLogsNoParams.json" }, - "Get Activity Logs with filter": { "$ref": "./examples/GetActivityLogsFiltered.json" }, - "Get Activity Logs with select": { "$ref": "./examples/GetActivityLogsSelected.json" }, - "Get Activity Logs with filter and select": { "$ref": "./examples/GetActivityLogsFilteredAndSelected.json" } + "Get Activity Logs with filter": { + "$ref": "./examples/GetActivityLogsFiltered.json" + }, + "Get Activity Logs with filter and select": { + "$ref": "./examples/GetActivityLogsFilteredAndSelected.json" + } } } } }, "definitions": { "LocalizableString": { - "required": [ "value" ], + "required": [ + "value" + ], "properties": { "value": { "type": "string", @@ -311,7 +315,9 @@ "description": "Provides the link to retrieve the next set of events." } }, - "required": [ "value" ], + "required": [ + "value" + ], "description": "Represents collection of events." }, "ErrorResponse": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/autoscale_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/autoscale_API.json index bfc43dd3c7f4..857de7aa263c 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/autoscale_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/autoscale_API.json @@ -72,7 +72,9 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "List autoscale settings": { "$ref": "./examples/listAutoscaleSetting.json" } + "List autoscale settings": { + "$ref": "./examples/listAutoscaleSetting.json" + } } } }, @@ -127,7 +129,9 @@ } }, "x-ms-examples": { - "Create or update an autoscale setting": { "$ref": "./examples/createOrUpdateAutoscaleSetting.json" } + "Create or update an autoscale setting": { + "$ref": "./examples/createOrUpdateAutoscaleSetting.json" + } } }, "delete": { @@ -165,7 +169,9 @@ } }, "x-ms-examples": { - "Delete an autoscale setting": { "$ref": "./examples/deleteAutoscaleSetting.json" } + "Delete an autoscale setting": { + "$ref": "./examples/deleteAutoscaleSetting.json" + } } }, "get": { @@ -203,52 +209,56 @@ } }, "x-ms-examples": { - "Get an autoscale setting": { "$ref": "./examples/getAutoscaleSetting.json" } + "Get an autoscale setting": { + "$ref": "./examples/getAutoscaleSetting.json" + } } }, "patch": { - "description": "Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.", - "operationId": "AutoscaleSettings_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/AutoscaleSettingNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "autoscaleSettingResource", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AutoscaleSettingResourcePatch" - }, - "description": "Parameters supplied to the operation." - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "An existing autoscale setting resource was successfully updated.", - "schema": { - "$ref": "#/definitions/AutoscaleSettingResource" - } - } - }, - "x-ms-examples": { - "Patch an autoscale setting": { "$ref": "./examples/patchAutoscaleSetting.json" } + "description": "Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.", + "operationId": "AutoscaleSettings_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AutoscaleSettingNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "autoscaleSettingResource", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AutoscaleSettingResourcePatch" + }, + "description": "Parameters supplied to the operation." } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "200": { + "description": "An existing autoscale setting resource was successfully updated.", + "schema": { + "$ref": "#/definitions/AutoscaleSettingResource" + } + } + }, + "x-ms-examples": { + "Patch an autoscale setting": { + "$ref": "./examples/patchAutoscaleSetting.json" + } + } } }, "/subscriptions/{subscriptionId}/providers/microsoft.insights/autoscalesettings": { @@ -284,7 +294,9 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "List autoscale settings": { "$ref": "./examples/listAutoscaleSettingBySubscription.json" } + "List autoscale settings": { + "$ref": "./examples/listAutoscaleSettingBySubscription.json" + } } } } @@ -311,8 +323,8 @@ "type": "string", "description": "Resource location", "x-ms-mutability": [ - "create", - "read" + "create", + "read" ] }, "tags": { @@ -351,7 +363,16 @@ "description": "The number of instances that can be used during this profile." }, "MetricTrigger": { - "required": ["metricName", "metricResourceUri", "timeGrain", "statistic", "timeWindow", "timeAggregation", "operator", "threshold"], + "required": [ + "metricName", + "metricResourceUri", + "timeGrain", + "statistic", + "timeWindow", + "timeAggregation", + "operator", + "threshold" + ], "properties": { "metricName": { "type": "string", @@ -473,7 +494,8 @@ }, "ScaleRule": { "required": [ - "scaleAction", "metricTrigger" + "scaleAction", + "metricTrigger" ], "properties": { "metricTrigger": { @@ -504,11 +526,19 @@ "description": "the end time for the profile in ISO 8601 format." } }, - "required": [ "start", "end" ], + "required": [ + "start", + "end" + ], "description": "A specific date-time for the profile." }, "RecurrentSchedule": { - "required": ["timeZone", "days", "hours", "minutes"], + "required": [ + "timeZone", + "days", + "hours", + "minutes" + ], "properties": { "timeZone": { "type": "string", @@ -541,7 +571,10 @@ "description": "The scheduling constraints for when the profile begins." }, "Recurrence": { - "required": ["frequency", "schedule"], + "required": [ + "frequency", + "schedule" + ], "properties": { "frequency": { "type": "string", @@ -569,7 +602,7 @@ "description": "The repeating times at which this profile begins. This element is not used if the FixedDate element is used." }, "AutoscaleProfile": { - "required":[ + "required": [ "rules", "name", "capacity" @@ -645,7 +678,9 @@ "operation": { "type": "string", "description": "the operation associated with the notification and its value must be \"scale\"", - "enum": ["Scale"], + "enum": [ + "Scale" + ], "x-ms-enum": { "name": "OperationType", "modelAsString": false @@ -666,7 +701,7 @@ "description": "Autoscale notification." }, "AutoscaleSetting": { - "required":[ + "required": [ "profiles" ], "properties": { @@ -705,7 +740,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/Resource" } ], "required": [ @@ -724,10 +759,10 @@ "description": "The autoscale setting object for patch operations.", "properties": { "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" }, "properties": { "x-ms-client-flatten": true, @@ -750,7 +785,9 @@ "description": "URL to get the next set of results." } }, - "required": ["value"], + "required": [ + "value" + ], "description": "Represents a collection of autoscale setting resources." }, "ErrorResponse": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/eventCategories_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/eventCategories_API.json index 558f853ada92..7a3187374bb6 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/eventCategories_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/eventCategories_API.json @@ -66,14 +66,18 @@ "nextLinkName": null }, "x-ms-examples": { - "Get event categories": { "$ref": "./examples/GetEventCategories.json" } + "Get event categories": { + "$ref": "./examples/GetEventCategories.json" + } } } } }, "definitions": { "LocalizableString": { - "required": [ "value" ], + "required": [ + "value" + ], "properties": { "value": { "type": "string", @@ -96,7 +100,9 @@ "description": "the list that includes the Azure event categories." } }, - "required": [ "value" ], + "required": [ + "value" + ], "description": "A collection of event categories. Currently possible values are: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy." }, "ErrorResponse": { @@ -123,4 +129,4 @@ "description": "Client Api Version." } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFiltered.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFiltered.json index d1240f00184b..a2a688f11a51 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFiltered.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFiltered.json @@ -1,83 +1,85 @@ { - "parameters": { - "$filter": "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'", - "api-version": "2015-04-01", - "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" - }, - "responses": { - "200": { - "body": { - "value": [ { - "authorization": { - "action": "microsoft.support/supporttickets/write", - "role": "Subscription Admin", - "scope": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841" - }, - "caller": "admin@contoso.com", - "claims": { - "aud": "https://management.core.windows.net/", - "iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/", - "iat": "1421876371", - "nbf": "1421876371", - "exp": "1421880271", - "ver": "1.0", - "http://schemas.microsoft.com/identity/claims/tenantid": "1e8d8218-c5e7-4578-9acc-9abbd5d23315 ", - "http://schemas.microsoft.com/claims/authnmethodsreferences": "pwd", - "http://schemas.microsoft.com/identity/claims/objectidentifier": "2468adf0-8211-44e3-95xq-85137af64708", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "admin@contoso.com", - "puid": "20030000801A118C", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "9vckmEGF7zDKk1YzIY8k0t1_EAPaXoeHyPRn6f413zM", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname": "John", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname": "Smith", - "name": "John Smith", - "groups": "cacfe77c-e058-4712-83qw-f9b08849fd60,7f71d11d-4c41-4b23-99d2-d32ce7aa621c,31522864-0578-4ea0-9gdc-e66cc564d18c", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": " admin@contoso.com", - "appid": "c44b4083-3bq0-49c1-b47d-974e53cbdf3c", - "appidacr": "2", - "http://schemas.microsoft.com/identity/claims/scope": "user_impersonation", - "http://schemas.microsoft.com/claims/authnclassreference": "1" - }, - "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", - "description": "", - "eventDataId": "44ade6b4-3813-45e6-ae27-7420a95fa2f8", - "eventName": { - "value": "EndRequest", - "localizedValue": "End request" - }, - "httpRequest": { - "clientRequestId": "27003b25-91d3-418f-8eb1-29e537dcb249", - "clientIpAddress": "192.168.35.115", - "method": "PUT" - }, - "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", - "level": "Informational", - "resourceGroupName": "MSSupportGroup", - "resourceProviderName": { - "value": "microsoft.support", - "localizedValue": "microsoft.support" - }, - "operationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", - "operationName": { - "value": "microsoft.support/supporttickets/write", - "localizedValue": "microsoft.support/supporttickets/write" - }, - "properties": { - "statusCode": "Created" - }, - "status": { - "value": "Succeeded", - "localizedValue": "Succeeded" - }, - "subStatus": { - "value": "Created", - "localizedValue": "Created (HTTP Status Code: 201)" - }, - "eventTimestamp": "2015-01-21T22:14:26.9792776Z", - "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", - "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" - } ], - "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" - } - } + "parameters": { + "$filter": "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'", + "api-version": "2015-04-01", + "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "authorization": { + "action": "microsoft.support/supporttickets/write", + "role": "Subscription Admin", + "scope": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841" + }, + "caller": "admin@contoso.com", + "claims": { + "aud": "https://management.core.windows.net/", + "iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/", + "iat": "1421876371", + "nbf": "1421876371", + "exp": "1421880271", + "ver": "1.0", + "http://schemas.microsoft.com/identity/claims/tenantid": "1e8d8218-c5e7-4578-9acc-9abbd5d23315", + "http://schemas.microsoft.com/claims/authnmethodsreferences": "pwd", + "http://schemas.microsoft.com/identity/claims/objectidentifier": "2468adf0-8211-44e3-95xq-85137af64708", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "admin@contoso.com", + "puid": "20030000801A118C", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "9vckmEGF7zDKk1YzIY8k0t1_EAPaXoeHyPRn6f413zM", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname": "John", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname": "Smith", + "name": "John Smith", + "groups": "cacfe77c-e058-4712-83qw-f9b08849fd60,7f71d11d-4c41-4b23-99d2-d32ce7aa621c,31522864-0578-4ea0-9gdc-e66cc564d18c", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": "admin@contoso.com", + "appid": "c44b4083-3bq0-49c1-b47d-974e53cbdf3c", + "appidacr": "2", + "http://schemas.microsoft.com/identity/claims/scope": "user_impersonation", + "http://schemas.microsoft.com/claims/authnclassreference": "1" + }, + "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", + "description": "", + "eventDataId": "44ade6b4-3813-45e6-ae27-7420a95fa2f8", + "eventName": { + "value": "EndRequest", + "localizedValue": "End request" + }, + "httpRequest": { + "clientRequestId": "27003b25-91d3-418f-8eb1-29e537dcb249", + "clientIpAddress": "192.168.35.115", + "method": "PUT" + }, + "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", + "level": "Informational", + "resourceGroupName": "MSSupportGroup", + "resourceProviderName": { + "value": "microsoft.support", + "localizedValue": "microsoft.support" + }, + "operationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", + "operationName": { + "value": "microsoft.support/supporttickets/write", + "localizedValue": "microsoft.support/supporttickets/write" + }, + "properties": { + "statusCode": "Created" + }, + "status": { + "value": "Succeeded", + "localizedValue": "Succeeded" + }, + "subStatus": { + "value": "Created", + "localizedValue": "Created (HTTP Status Code: 201)" + }, + "eventTimestamp": "2015-01-21T22:14:26.9792776Z", + "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", + "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" + } + ], + "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFilteredAndSelected.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFilteredAndSelected.json index 3c521070179c..7c8fcf697066 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFilteredAndSelected.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFilteredAndSelected.json @@ -1,39 +1,41 @@ { - "parameters": { - "$filter": "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'", - "$select": "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level", - "api-version": "2015-04-01", - "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" - }, - "responses": { - "200": { - "body": { - "value": [ { - "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", - "eventName": { - "value": "EndRequest", - "localizedValue": "End request" - }, - "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", - "resourceGroupName": "MSSupportGroup", - "resourceProviderName": { - "value": "microsoft.support", - "localizedValue": "microsoft.support" - }, - "operationName": { - "value": "microsoft.support/supporttickets/write", - "localizedValue": "microsoft.support/supporttickets/write" - }, - "status": { - "value": "Succeeded", - "localizedValue": "Succeeded" - }, - "eventTimestamp": "2015-01-21T22:14:26.9792776Z", - "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", - "level": "Informational" - } ], - "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" - } - } + "parameters": { + "$filter": "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'", + "$select": "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level", + "api-version": "2015-04-01", + "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", + "eventName": { + "value": "EndRequest", + "localizedValue": "End request" + }, + "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", + "resourceGroupName": "MSSupportGroup", + "resourceProviderName": { + "value": "microsoft.support", + "localizedValue": "microsoft.support" + }, + "operationName": { + "value": "microsoft.support/supporttickets/write", + "localizedValue": "microsoft.support/supporttickets/write" + }, + "status": { + "value": "Succeeded", + "localizedValue": "Succeeded" + }, + "eventTimestamp": "2015-01-21T22:14:26.9792776Z", + "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", + "level": "Informational" + } + ], + "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsNoParams.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsNoParams.json deleted file mode 100644 index 9b7b95534d62..000000000000 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsNoParams.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "api-version": "2015-04-01", - "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" - }, - "responses": { - "200": { - "body": { - "value": [ { - "authorization": { - "action": "microsoft.support/supporttickets/write", - "role": "Subscription Admin", - "scope": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841" - }, - "caller": "admin@contoso.com", - "claims": { - "aud": "https://management.core.windows.net/", - "iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/", - "iat": "1421876371", - "nbf": "1421876371", - "exp": "1421880271", - "ver": "1.0", - "http://schemas.microsoft.com/identity/claims/tenantid": "1e8d8218-c5e7-4578-9acc-9abbd5d23315 ", - "http://schemas.microsoft.com/claims/authnmethodsreferences": "pwd", - "http://schemas.microsoft.com/identity/claims/objectidentifier": "2468adf0-8211-44e3-95xq-85137af64708", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "admin@contoso.com", - "puid": "20030000801A118C", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "9vckmEGF7zDKk1YzIY8k0t1_EAPaXoeHyPRn6f413zM", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname": "John", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname": "Smith", - "name": "John Smith", - "groups": "cacfe77c-e058-4712-83qw-f9b08849fd60,7f71d11d-4c41-4b23-99d2-d32ce7aa621c,31522864-0578-4ea0-9gdc-e66cc564d18c", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": " admin@contoso.com", - "appid": "c44b4083-3bq0-49c1-b47d-974e53cbdf3c", - "appidacr": "2", - "http://schemas.microsoft.com/identity/claims/scope": "user_impersonation", - "http://schemas.microsoft.com/claims/authnclassreference": "1" - }, - "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", - "description": "", - "eventDataId": "44ade6b4-3813-45e6-ae27-7420a95fa2f8", - "eventName": { - "value": "EndRequest", - "localizedValue": "End request" - }, - "httpRequest": { - "clientRequestId": "27003b25-91d3-418f-8eb1-29e537dcb249", - "clientIpAddress": "192.168.35.115", - "method": "PUT" - }, - "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", - "level": "Informational", - "resourceGroupName": "MSSupportGroup", - "resourceProviderName": { - "value": "microsoft.support", - "localizedValue": "microsoft.support" - }, - "operationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", - "operationName": { - "value": "microsoft.support/supporttickets/write", - "localizedValue": "microsoft.support/supporttickets/write" - }, - "properties": { - "statusCode": "Created" - }, - "status": { - "value": "Succeeded", - "localizedValue": "Succeeded" - }, - "subStatus": { - "value": "Created", - "localizedValue": "Created (HTTP Status Code: 201)" - }, - "eventTimestamp": "2015-01-21T22:14:26.9792776Z", - "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", - "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" - } ], - "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" - } - } - } -} \ No newline at end of file diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsSelected.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsSelected.json deleted file mode 100644 index 3ebe725ae844..000000000000 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsSelected.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "$select": "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level", - "api-version": "2015-04-01", - "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" - }, - "responses": { - "200": { - "body": { - "value": [ { - "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", - "eventName": { - "value": "EndRequest", - "localizedValue": "End request" - }, - "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", - "resourceGroupName": "MSSupportGroup", - "resourceProviderName": { - "value": "microsoft.support", - "localizedValue": "microsoft.support" - }, - "operationName": { - "value": "microsoft.support/supporttickets/write", - "localizedValue": "microsoft.support/supporttickets/write" - }, - "status": { - "value": "Succeeded", - "localizedValue": "Succeeded" - }, - "eventTimestamp": "2015-01-21T22:14:26.9792776Z", - "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", - "level": "Informational" - } ], - "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" - } - } - } -} \ No newline at end of file diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetEventCategories.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetEventCategories.json index e90ca45e3f83..38dca0f27034 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetEventCategories.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetEventCategories.json @@ -1,21 +1,21 @@ { - "parameters": { - "api-version": "2015-04-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "value": "category1", - "localizedValue": "category1" - }, - { - "value": "category2", - "localizedValue": "category2" - } - ] - } - } + "parameters": { + "api-version": "2015-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "value": "category1", + "localizedValue": "category1" + }, + { + "value": "category2", + "localizedValue": "category2" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFiltered.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFiltered.json index d1240f00184b..a2a688f11a51 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFiltered.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFiltered.json @@ -1,83 +1,85 @@ { - "parameters": { - "$filter": "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'", - "api-version": "2015-04-01", - "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" - }, - "responses": { - "200": { - "body": { - "value": [ { - "authorization": { - "action": "microsoft.support/supporttickets/write", - "role": "Subscription Admin", - "scope": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841" - }, - "caller": "admin@contoso.com", - "claims": { - "aud": "https://management.core.windows.net/", - "iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/", - "iat": "1421876371", - "nbf": "1421876371", - "exp": "1421880271", - "ver": "1.0", - "http://schemas.microsoft.com/identity/claims/tenantid": "1e8d8218-c5e7-4578-9acc-9abbd5d23315 ", - "http://schemas.microsoft.com/claims/authnmethodsreferences": "pwd", - "http://schemas.microsoft.com/identity/claims/objectidentifier": "2468adf0-8211-44e3-95xq-85137af64708", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "admin@contoso.com", - "puid": "20030000801A118C", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "9vckmEGF7zDKk1YzIY8k0t1_EAPaXoeHyPRn6f413zM", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname": "John", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname": "Smith", - "name": "John Smith", - "groups": "cacfe77c-e058-4712-83qw-f9b08849fd60,7f71d11d-4c41-4b23-99d2-d32ce7aa621c,31522864-0578-4ea0-9gdc-e66cc564d18c", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": " admin@contoso.com", - "appid": "c44b4083-3bq0-49c1-b47d-974e53cbdf3c", - "appidacr": "2", - "http://schemas.microsoft.com/identity/claims/scope": "user_impersonation", - "http://schemas.microsoft.com/claims/authnclassreference": "1" - }, - "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", - "description": "", - "eventDataId": "44ade6b4-3813-45e6-ae27-7420a95fa2f8", - "eventName": { - "value": "EndRequest", - "localizedValue": "End request" - }, - "httpRequest": { - "clientRequestId": "27003b25-91d3-418f-8eb1-29e537dcb249", - "clientIpAddress": "192.168.35.115", - "method": "PUT" - }, - "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", - "level": "Informational", - "resourceGroupName": "MSSupportGroup", - "resourceProviderName": { - "value": "microsoft.support", - "localizedValue": "microsoft.support" - }, - "operationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", - "operationName": { - "value": "microsoft.support/supporttickets/write", - "localizedValue": "microsoft.support/supporttickets/write" - }, - "properties": { - "statusCode": "Created" - }, - "status": { - "value": "Succeeded", - "localizedValue": "Succeeded" - }, - "subStatus": { - "value": "Created", - "localizedValue": "Created (HTTP Status Code: 201)" - }, - "eventTimestamp": "2015-01-21T22:14:26.9792776Z", - "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", - "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" - } ], - "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" - } - } + "parameters": { + "$filter": "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'", + "api-version": "2015-04-01", + "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "authorization": { + "action": "microsoft.support/supporttickets/write", + "role": "Subscription Admin", + "scope": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841" + }, + "caller": "admin@contoso.com", + "claims": { + "aud": "https://management.core.windows.net/", + "iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/", + "iat": "1421876371", + "nbf": "1421876371", + "exp": "1421880271", + "ver": "1.0", + "http://schemas.microsoft.com/identity/claims/tenantid": "1e8d8218-c5e7-4578-9acc-9abbd5d23315", + "http://schemas.microsoft.com/claims/authnmethodsreferences": "pwd", + "http://schemas.microsoft.com/identity/claims/objectidentifier": "2468adf0-8211-44e3-95xq-85137af64708", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "admin@contoso.com", + "puid": "20030000801A118C", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "9vckmEGF7zDKk1YzIY8k0t1_EAPaXoeHyPRn6f413zM", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname": "John", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname": "Smith", + "name": "John Smith", + "groups": "cacfe77c-e058-4712-83qw-f9b08849fd60,7f71d11d-4c41-4b23-99d2-d32ce7aa621c,31522864-0578-4ea0-9gdc-e66cc564d18c", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": "admin@contoso.com", + "appid": "c44b4083-3bq0-49c1-b47d-974e53cbdf3c", + "appidacr": "2", + "http://schemas.microsoft.com/identity/claims/scope": "user_impersonation", + "http://schemas.microsoft.com/claims/authnclassreference": "1" + }, + "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", + "description": "", + "eventDataId": "44ade6b4-3813-45e6-ae27-7420a95fa2f8", + "eventName": { + "value": "EndRequest", + "localizedValue": "End request" + }, + "httpRequest": { + "clientRequestId": "27003b25-91d3-418f-8eb1-29e537dcb249", + "clientIpAddress": "192.168.35.115", + "method": "PUT" + }, + "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", + "level": "Informational", + "resourceGroupName": "MSSupportGroup", + "resourceProviderName": { + "value": "microsoft.support", + "localizedValue": "microsoft.support" + }, + "operationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", + "operationName": { + "value": "microsoft.support/supporttickets/write", + "localizedValue": "microsoft.support/supporttickets/write" + }, + "properties": { + "statusCode": "Created" + }, + "status": { + "value": "Succeeded", + "localizedValue": "Succeeded" + }, + "subStatus": { + "value": "Created", + "localizedValue": "Created (HTTP Status Code: 201)" + }, + "eventTimestamp": "2015-01-21T22:14:26.9792776Z", + "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", + "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" + } + ], + "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFilteredAndSelected.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFilteredAndSelected.json index 3c521070179c..7c8fcf697066 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFilteredAndSelected.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFilteredAndSelected.json @@ -1,39 +1,41 @@ { - "parameters": { - "$filter": "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'", - "$select": "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level", - "api-version": "2015-04-01", - "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" - }, - "responses": { - "200": { - "body": { - "value": [ { - "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", - "eventName": { - "value": "EndRequest", - "localizedValue": "End request" - }, - "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", - "resourceGroupName": "MSSupportGroup", - "resourceProviderName": { - "value": "microsoft.support", - "localizedValue": "microsoft.support" - }, - "operationName": { - "value": "microsoft.support/supporttickets/write", - "localizedValue": "microsoft.support/supporttickets/write" - }, - "status": { - "value": "Succeeded", - "localizedValue": "Succeeded" - }, - "eventTimestamp": "2015-01-21T22:14:26.9792776Z", - "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", - "level": "Informational" - } ], - "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" - } - } + "parameters": { + "$filter": "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'", + "$select": "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level", + "api-version": "2015-04-01", + "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", + "eventName": { + "value": "EndRequest", + "localizedValue": "End request" + }, + "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", + "resourceGroupName": "MSSupportGroup", + "resourceProviderName": { + "value": "microsoft.support", + "localizedValue": "microsoft.support" + }, + "operationName": { + "value": "microsoft.support/supporttickets/write", + "localizedValue": "microsoft.support/supporttickets/write" + }, + "status": { + "value": "Succeeded", + "localizedValue": "Succeeded" + }, + "eventTimestamp": "2015-01-21T22:14:26.9792776Z", + "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", + "level": "Informational" + } + ], + "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsNoParams.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsNoParams.json index 9b7b95534d62..d9e4f31f4a37 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsNoParams.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsNoParams.json @@ -1,82 +1,84 @@ { - "parameters": { - "api-version": "2015-04-01", - "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" - }, - "responses": { - "200": { - "body": { - "value": [ { - "authorization": { - "action": "microsoft.support/supporttickets/write", - "role": "Subscription Admin", - "scope": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841" - }, - "caller": "admin@contoso.com", - "claims": { - "aud": "https://management.core.windows.net/", - "iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/", - "iat": "1421876371", - "nbf": "1421876371", - "exp": "1421880271", - "ver": "1.0", - "http://schemas.microsoft.com/identity/claims/tenantid": "1e8d8218-c5e7-4578-9acc-9abbd5d23315 ", - "http://schemas.microsoft.com/claims/authnmethodsreferences": "pwd", - "http://schemas.microsoft.com/identity/claims/objectidentifier": "2468adf0-8211-44e3-95xq-85137af64708", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "admin@contoso.com", - "puid": "20030000801A118C", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "9vckmEGF7zDKk1YzIY8k0t1_EAPaXoeHyPRn6f413zM", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname": "John", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname": "Smith", - "name": "John Smith", - "groups": "cacfe77c-e058-4712-83qw-f9b08849fd60,7f71d11d-4c41-4b23-99d2-d32ce7aa621c,31522864-0578-4ea0-9gdc-e66cc564d18c", - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": " admin@contoso.com", - "appid": "c44b4083-3bq0-49c1-b47d-974e53cbdf3c", - "appidacr": "2", - "http://schemas.microsoft.com/identity/claims/scope": "user_impersonation", - "http://schemas.microsoft.com/claims/authnclassreference": "1" - }, - "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", - "description": "", - "eventDataId": "44ade6b4-3813-45e6-ae27-7420a95fa2f8", - "eventName": { - "value": "EndRequest", - "localizedValue": "End request" - }, - "httpRequest": { - "clientRequestId": "27003b25-91d3-418f-8eb1-29e537dcb249", - "clientIpAddress": "192.168.35.115", - "method": "PUT" - }, - "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", - "level": "Informational", - "resourceGroupName": "MSSupportGroup", - "resourceProviderName": { - "value": "microsoft.support", - "localizedValue": "microsoft.support" - }, - "operationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", - "operationName": { - "value": "microsoft.support/supporttickets/write", - "localizedValue": "microsoft.support/supporttickets/write" - }, - "properties": { - "statusCode": "Created" - }, - "status": { - "value": "Succeeded", - "localizedValue": "Succeeded" - }, - "subStatus": { - "value": "Created", - "localizedValue": "Created (HTTP Status Code: 201)" - }, - "eventTimestamp": "2015-01-21T22:14:26.9792776Z", - "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", - "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" - } ], - "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" - } - } + "parameters": { + "api-version": "2015-04-01", + "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "authorization": { + "action": "microsoft.support/supporttickets/write", + "role": "Subscription Admin", + "scope": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841" + }, + "caller": "admin@contoso.com", + "claims": { + "aud": "https://management.core.windows.net/", + "iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/", + "iat": "1421876371", + "nbf": "1421876371", + "exp": "1421880271", + "ver": "1.0", + "http://schemas.microsoft.com/identity/claims/tenantid": "1e8d8218-c5e7-4578-9acc-9abbd5d23315", + "http://schemas.microsoft.com/claims/authnmethodsreferences": "pwd", + "http://schemas.microsoft.com/identity/claims/objectidentifier": "2468adf0-8211-44e3-95xq-85137af64708", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "admin@contoso.com", + "puid": "20030000801A118C", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "9vckmEGF7zDKk1YzIY8k0t1_EAPaXoeHyPRn6f413zM", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname": "John", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname": "Smith", + "name": "John Smith", + "groups": "cacfe77c-e058-4712-83qw-f9b08849fd60,7f71d11d-4c41-4b23-99d2-d32ce7aa621c,31522864-0578-4ea0-9gdc-e66cc564d18c", + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": "admin@contoso.com", + "appid": "c44b4083-3bq0-49c1-b47d-974e53cbdf3c", + "appidacr": "2", + "http://schemas.microsoft.com/identity/claims/scope": "user_impersonation", + "http://schemas.microsoft.com/claims/authnclassreference": "1" + }, + "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", + "description": "", + "eventDataId": "44ade6b4-3813-45e6-ae27-7420a95fa2f8", + "eventName": { + "value": "EndRequest", + "localizedValue": "End request" + }, + "httpRequest": { + "clientRequestId": "27003b25-91d3-418f-8eb1-29e537dcb249", + "clientIpAddress": "192.168.35.115", + "method": "PUT" + }, + "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", + "level": "Informational", + "resourceGroupName": "MSSupportGroup", + "resourceProviderName": { + "value": "microsoft.support", + "localizedValue": "microsoft.support" + }, + "operationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", + "operationName": { + "value": "microsoft.support/supporttickets/write", + "localizedValue": "microsoft.support/supporttickets/write" + }, + "properties": { + "statusCode": "Created" + }, + "status": { + "value": "Succeeded", + "localizedValue": "Succeeded" + }, + "subStatus": { + "value": "Created", + "localizedValue": "Created (HTTP Status Code: 201)" + }, + "eventTimestamp": "2015-01-21T22:14:26.9792776Z", + "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", + "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" + } + ], + "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsSelected.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsSelected.json index 3ebe725ae844..020bb6e7f15e 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsSelected.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsSelected.json @@ -1,38 +1,40 @@ { - "parameters": { - "$select": "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level", - "api-version": "2015-04-01", - "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" - }, - "responses": { - "200": { - "body": { - "value": [ { - "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", - "eventName": { - "value": "EndRequest", - "localizedValue": "End request" - }, - "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", - "resourceGroupName": "MSSupportGroup", - "resourceProviderName": { - "value": "microsoft.support", - "localizedValue": "microsoft.support" - }, - "operationName": { - "value": "microsoft.support/supporttickets/write", - "localizedValue": "microsoft.support/supporttickets/write" - }, - "status": { - "value": "Succeeded", - "localizedValue": "Succeeded" - }, - "eventTimestamp": "2015-01-21T22:14:26.9792776Z", - "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", - "level": "Informational" - } ], - "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" - } - } + "parameters": { + "$select": "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level", + "api-version": "2015-04-01", + "subscriptionId": "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "correlationId": "1e121103-0ba6-4300-ac9d-952bb5d0c80f", + "eventName": { + "value": "EndRequest", + "localizedValue": "End request" + }, + "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841/events/44ade6b4-3813-45e6-ae27-7420a95fa2f8/ticks/635574752669792776", + "resourceGroupName": "MSSupportGroup", + "resourceProviderName": { + "value": "microsoft.support", + "localizedValue": "microsoft.support" + }, + "operationName": { + "value": "microsoft.support/supporttickets/write", + "localizedValue": "microsoft.support/supporttickets/write" + }, + "status": { + "value": "Succeeded", + "localizedValue": "Succeeded" + }, + "eventTimestamp": "2015-01-21T22:14:26.9792776Z", + "submissionTimestamp": "2015-01-21T22:14:39.9936304Z", + "level": "Informational" + } + ], + "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/OperationList.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/OperationList.json index a9b7694da946..2d082e76b07c 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/OperationList.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/OperationList.json @@ -1,717 +1,405 @@ { - "parameters":{ - "api-version":"2015-04-01" + "parameters": { + "api-version": "2015-04-01" }, - "responses":{ - "200":{ - "body":{ - "value":[ - { - "name":"Microsoft.Insights/Operations/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Operations", - "operation":"Operations read", - "description":"Reading operations" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/MetricDefinitions/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Metric Definitions", - "operation":"Metric definitions read", - "description":"Read metric definitions" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/Metrics/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Metrics", - "operation":"Metrics read", - "description":"Read metrics" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/AlertRules/Write", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Alert Rules", - "operation":"Alert Rule write", - "description":"Writing to an alert rule configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/AlertRules/Delete", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Alert Rules", - "operation":"Alert Rule delete", - "description":"Deleting an alert rule configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/AlertRules/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Alert Rules", - "operation":"Alert Rule read", - "description":"Reading an alert rule configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/MetricAlerts/Write", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Metric alerts", - "operation":"Metric alert write", - "description":"Writing a metric alert" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/MetricAlerts/Delete", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Metric alerts", - "operation":"Metric alert delete", - "description":"Deleting a metric alert" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/MetricAlerts/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Metric alerts", - "operation":"Metric alert read", - "description":"Reading a metric alert" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/AutoscaleSettings/Write", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Autoscale", - "operation":"Autoscale Setting write", - "description":"Writing to an autoscale setting configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/AutoscaleSettings/Delete", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Autoscale", - "operation":"Autoscale Setting delete", - "description":"Deleting an autoscale setting configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/AutoscaleSettings/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Autoscale", - "operation":"Autoscale Setting read", - "description":"Reading an autoscale setting configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/AlertRules/Incidents/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Alert Rule Incident resource", - "operation":"Alert Rule Incidents read", - "description":"Reading an alert rule incident configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/AutoscaleSettings/providers/Microsoft.Insights/MetricDefinitions/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Metric Definitions", - "operation":"Metric definitions read", - "description":"Read metric definitions" - }, - "properties":{ - "serviceSpecification":{ - "metricSpecifications":[ - { - "name":"ObservedMetricValue", - "displayName":"Observed Metric Value", - "displayDescription":"The value computed by autoscale when executed", - "unit":"Count", - "aggregationType":"Average", - "availabilities":null, - "fillGapWithZero":false, - "category":"Metric", - "dimensions":[ - { - "name":"MetricTriggerSource", - "displayName":"Metric Trigger Source", - "toBeExportedForShoebox":true - } - ] - }, - { - "name":"MetricThreshold", - "displayName":"Metric Threshold", - "displayDescription":"The configured autoscale threshold when autoscale ran.", - "unit":"Count", - "aggregationType":"Average", - "availabilities":null, - "fillGapWithZero":false, - "category":"Metric", - "dimensions":[ - { - "name":"MetricTriggerRule", - "displayName":"Metric Trigger Rule", - "toBeExportedForShoebox":true - } - ] - }, - { - "name":"ObservedCapacity", - "displayName":"Observed Capacity", - "displayDescription":"The capacity reported to autoscale when it executed.", - "unit":"Count", - "aggregationType":"Average", - "availabilities":null, - "fillGapWithZero":false, - "category":"ScaleAction", - "dimensions":null - }, - { - "name":"ScaleActionsInitiated", - "displayName":"Scale Actions Initiated", - "displayDescription":"The direction of the scale operation.", - "unit":"Count", - "aggregationType":"Total", - "availabilities":null, - "fillGapWithZero":true, - "category":"ScaleAction", - "dimensions":[ - { - "name":"ScaleDirection", - "displayName":"Scale Direction", - "toBeExportedForShoebox":true - } - ] - } - ], - "logSpecifications":null, - "legacyMetricSpecifications":null - } - } - }, - { - "name":"Microsoft.Insights/ActionGroups/Write", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Action groups", - "operation":"Action group write", - "description":"Writing an action group" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/ActionGroups/Delete", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Action groups", - "operation":"Action group delete", - "description":"Deleting an action group" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/ActionGroups/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Action groups", - "operation":"Action group read", - "description":"Reading an action group" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/ActivityLogAlerts/Write", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Activity log alert", - "operation":"Activity log alert read", - "description":"Reading an activity log alert" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/ActivityLogAlerts/Delete", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Activity log alert", - "operation":"Activity log alert delete", - "description":"Deleting an activity log alert" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/ActivityLogAlerts/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Activity log alert", - "operation":"Activity log alert read", - "description":"Reading an activity log alert" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/ActivityLogAlerts/Activated/Action", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Activity Log Alert", - "operation":"Activity Log Alert Activated", - "description":"Triggered the Activity Log Alert" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/EventCategories/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Event category", - "operation":"Event category read", - "description":"Reading an event category" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/eventtypes/values/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Events", - "operation":"Event types management values read", - "description":"Read management event type values" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/eventtypes/digestevents/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Digest events", - "operation":"Event types management digest read", - "description":"Read management event type digest" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/DiagnosticSettings/Write", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Diagnostic settings", - "operation":"Diagnostic settings write", - "description":"Writing to diagnostic settings configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/DiagnosticSettings/Delete", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Diagnostic settings", - "operation":"Diagnostic settings delete", - "description":"Deleting diagnostic settings configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/DiagnosticSettings/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Diagnostic settings", - "operation":"Diagnostic settings read", - "description":"Reading a diagnostic settings configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/ExtendedDiagnosticSettings/Write", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Extended Diagnostic settings", - "operation":"Extended Diagnostic settings write", - "description":"Writing to extended diagnostic settings configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/ExtendedDiagnosticSettings/Delete", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Extended Diagnostic settings", - "operation":"Extended Diagnostic settings delete", - "description":"Deleting extended diagnostic settings configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/ExtendedDiagnosticSettings/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Extended Diagnostic settings", - "operation":"Extended Diagnostic settings read", - "description":"Reading a extended diagnostic settings configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/LogProfiles/Write", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Log Profiles", - "operation":"Log profile write", - "description":"Writing to a log profile configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/LogProfiles/Delete", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Log Profiles", - "operation":"Log profile delete", - "description":"Delete log profiles configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/LogProfiles/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Log Profiles", - "operation":"Log profile read", - "description":"Read log profiles" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/LogDefinitions/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Log Definitions", - "operation":"Log Definitions read", - "description":"Read log definitions" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/AutoscaleSettings/Scaleup/Action", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Autoscale", - "operation":"Autoscale scale up operation", - "description":"Autoscale scale up operation" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/AutoscaleSettings/Scaledown/Action", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Autoscale", - "operation":"Autoscale scale down operation", - "description":"Autoscale scale down operation" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/AlertRules/Activated/Action", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Alert Rules", - "operation":"Alert Rule activated", - "description":"Alert Rule activated" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/AlertRules/Resolved/Action", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Alert Rules", - "operation":"Alert Rule resolved", - "description":"Alert Rule resolved" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/AlertRules/Throttled/Action", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Alert Rules", - "operation":"Alert Rule throttled", - "description":"Alert rule is throttled" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/Register/Action", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Microsoft.Insights", - "operation":"Register Microsoft.Insights", - "description":"Register the microsoft insights provider" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/Components/Write", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Application insights components", - "operation":"Application insights component write", - "description":"Writing to an application insights component configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/Components/Delete", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Application insights components", - "operation":"Application insights component delete", - "description":"Deleting an application insights component configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/Components/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Application insights components", - "operation":"Application insights component read", - "description":"Reading an application insights component configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/Webtests/Write", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Web tests", - "operation":"Webtest write", - "description":"Writing to a webtest configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/Webtests/Delete", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Web tests", - "operation":"Webtest delete", - "description":"Deleting a webtest configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/Workbooks/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Application Insights", - "resource":"Workbooks", - "operation":"Workbooks read", - "description":"Reading a Workbooks configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/Workbooks/Write", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Application Insights", - "resource":"Workbooks", - "operation":"Workbooks write", - "description":"Writing to a Workbooks configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/Workbooks/Delete", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Application Insights", - "resource":"Workbooks", - "operation":"Workbooks delete", - "description":"Deleting a Workbooks configuration" - }, - "properties":{ - - } - }, - { - "name":"Microsoft.Insights/Workbooks/Read", - "display":{ - "publisher":"Microsoft", - "provider":"Microsoft Application Insights", - "resource":"Workbooks", - "operation":"Workbooks read", - "description":"Reading a Workbooks configuration" - }, - "properties":{ - + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Insights/Operations/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Operations", + "operation": "Operations read" + } + }, + { + "name": "Microsoft.Insights/MetricDefinitions/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Metric Definitions", + "operation": "Metric definitions read" + } + }, + { + "name": "Microsoft.Insights/Metrics/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Metrics", + "operation": "Metrics read" + } + }, + { + "name": "Microsoft.Insights/AlertRules/Write", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Alert Rules", + "operation": "Alert Rule write" + } + }, + { + "name": "Microsoft.Insights/AlertRules/Delete", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Alert Rules", + "operation": "Alert Rule delete" + } + }, + { + "name": "Microsoft.Insights/AlertRules/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Alert Rules", + "operation": "Alert Rule read" + } + }, + { + "name": "Microsoft.Insights/MetricAlerts/Write", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Metric alerts", + "operation": "Metric alert write" + } + }, + { + "name": "Microsoft.Insights/MetricAlerts/Delete", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Metric alerts", + "operation": "Metric alert delete" + } + }, + { + "name": "Microsoft.Insights/MetricAlerts/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Metric alerts", + "operation": "Metric alert read" + } + }, + { + "name": "Microsoft.Insights/AutoscaleSettings/Write", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Autoscale", + "operation": "Autoscale Setting write" + } + }, + { + "name": "Microsoft.Insights/AutoscaleSettings/Delete", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Autoscale", + "operation": "Autoscale Setting delete" + } + }, + { + "name": "Microsoft.Insights/AutoscaleSettings/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Autoscale", + "operation": "Autoscale Setting read" + } + }, + { + "name": "Microsoft.Insights/AlertRules/Incidents/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Alert Rule Incident resource", + "operation": "Alert Rule Incidents read" + } + }, + { + "name": "Microsoft.Insights/AutoscaleSettings/providers/Microsoft.Insights/MetricDefinitions/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Metric Definitions", + "operation": "Metric definitions read" + } + }, + { + "name": "Microsoft.Insights/ActionGroups/Write", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Action groups", + "operation": "Action group write" + } + }, + { + "name": "Microsoft.Insights/ActionGroups/Delete", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Action groups", + "operation": "Action group delete" + } + }, + { + "name": "Microsoft.Insights/ActionGroups/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Action groups", + "operation": "Action group read" + } + }, + { + "name": "Microsoft.Insights/ActivityLogAlerts/Write", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Activity log alert", + "operation": "Activity log alert read" + } + }, + { + "name": "Microsoft.Insights/ActivityLogAlerts/Delete", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Activity log alert", + "operation": "Activity log alert delete" + } + }, + { + "name": "Microsoft.Insights/ActivityLogAlerts/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Activity log alert", + "operation": "Activity log alert read" + } + }, + { + "name": "Microsoft.Insights/ActivityLogAlerts/Activated/Action", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Activity Log Alert", + "operation": "Activity Log Alert Activated" + } + }, + { + "name": "Microsoft.Insights/EventCategories/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Event category", + "operation": "Event category read" + } + }, + { + "name": "Microsoft.Insights/eventtypes/values/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Events", + "operation": "Event types management values read" + } + }, + { + "name": "Microsoft.Insights/eventtypes/digestevents/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Digest events", + "operation": "Event types management digest read" + } + }, + { + "name": "Microsoft.Insights/DiagnosticSettings/Write", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Diagnostic settings", + "operation": "Diagnostic settings write" + } + }, + { + "name": "Microsoft.Insights/DiagnosticSettings/Delete", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Diagnostic settings", + "operation": "Diagnostic settings delete" + } + }, + { + "name": "Microsoft.Insights/DiagnosticSettings/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Diagnostic settings", + "operation": "Diagnostic settings read" + } + }, + { + "name": "Microsoft.Insights/ExtendedDiagnosticSettings/Write", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Extended Diagnostic settings", + "operation": "Extended Diagnostic settings write" + } + }, + { + "name": "Microsoft.Insights/ExtendedDiagnosticSettings/Delete", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Extended Diagnostic settings", + "operation": "Extended Diagnostic settings delete" + } + }, + { + "name": "Microsoft.Insights/ExtendedDiagnosticSettings/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Extended Diagnostic settings", + "operation": "Extended Diagnostic settings read" + } + }, + { + "name": "Microsoft.Insights/LogProfiles/Write", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Log Profiles", + "operation": "Log profile write" + } + }, + { + "name": "Microsoft.Insights/LogProfiles/Delete", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Log Profiles", + "operation": "Log profile delete" + } + }, + { + "name": "Microsoft.Insights/LogProfiles/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Log Profiles", + "operation": "Log profile read" + } + }, + { + "name": "Microsoft.Insights/LogDefinitions/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Log Definitions", + "operation": "Log Definitions read" + } + }, + { + "name": "Microsoft.Insights/AutoscaleSettings/Scaleup/Action", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Autoscale", + "operation": "Autoscale scale up operation" + } + }, + { + "name": "Microsoft.Insights/AutoscaleSettings/Scaledown/Action", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Autoscale", + "operation": "Autoscale scale down operation" + } + }, + { + "name": "Microsoft.Insights/AlertRules/Activated/Action", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Alert Rules", + "operation": "Alert Rule activated" + } + }, + { + "name": "Microsoft.Insights/AlertRules/Resolved/Action", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Alert Rules", + "operation": "Alert Rule resolved" + } + }, + { + "name": "Microsoft.Insights/AlertRules/Throttled/Action", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Alert Rules", + "operation": "Alert Rule throttled" + } + }, + { + "name": "Microsoft.Insights/Register/Action", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Microsoft.Insights", + "operation": "Register Microsoft.Insights" + } + }, + { + "name": "Microsoft.Insights/Components/Write", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Application insights components", + "operation": "Application insights component write" + } + }, + { + "name": "Microsoft.Insights/Components/Delete", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Application insights components", + "operation": "Application insights component delete" + } + }, + { + "name": "Microsoft.Insights/Components/Read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Application insights components", + "operation": "Application insights component read" + } + }, + { + "name": "Microsoft.Insights/Webtests/Write", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Web tests", + "operation": "Webtest write" + } + }, + { + "name": "Microsoft.Insights/Webtests/Delete", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Web tests", + "operation": "Webtest delete" + } + }, + { + "name": "Microsoft.Insights/Workbooks/Read", + "display": { + "provider": "Microsoft Application Insights", + "resource": "Workbooks", + "operation": "Workbooks read" + } + }, + { + "name": "Microsoft.Insights/Workbooks/Write", + "display": { + "provider": "Microsoft Application Insights", + "resource": "Workbooks", + "operation": "Workbooks write" + } + }, + { + "name": "Microsoft.Insights/Workbooks/Delete", + "display": { + "provider": "Microsoft Application Insights", + "resource": "Workbooks", + "operation": "Workbooks delete" + } + }, + { + "name": "Microsoft.Insights/Workbooks/Read", + "display": { + "provider": "Microsoft Application Insights", + "resource": "Workbooks", + "operation": "Workbooks read" } } ] } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/createOrUpdateAutoscaleSetting.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/createOrUpdateAutoscaleSetting.json index 819bc4f6885d..4a429d060c9f 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/createOrUpdateAutoscaleSetting.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/createOrUpdateAutoscaleSetting.json @@ -1,136 +1,144 @@ { - "parameters" : { - "subscriptionId" : "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "resourceGroupName" : "TestingMetricsScaleSet", - "autoscaleSettingName" : "MySetting", - "api-version" : "2015-04-01", - "parameters" : { - "location" : "West US", - "tags" : {}, - "properties" : { - "profiles" : [{ - "name" : "adios", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "resourceGroupName": "TestingMetricsScaleSet", + "autoscaleSettingName": "MySetting", + "api-version": "2015-04-01", + "parameters": { + "location": "West US", + "tags": {}, + "properties": { + "profiles": [ + { + "name": "adios", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 + }, + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" } } ], - "fixedDate" : { - "timeZone" : "UTC", - "start" : "2015-03-05T14:00:00Z", - "end" : "2015-03-05T14:30:00Z" + "fixedDate": { + "timeZone": "UTC", + "start": "2015-03-05T14:00:00Z", + "end": "2015-03-05T14:30:00Z" } - }, { - "name" : "saludos", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" + }, + { + "name": "saludos", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 + }, + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" } } ], - "recurrence" : { - "frequency" : "Week", - "schedule" : { - "timeZone" : "UTC", - "days" : [ + "recurrence": { + "frequency": "Week", + "schedule": { + "timeZone": "UTC", + "days": [ "1" ], - "hours" : [ + "hours": [ 5 ], - "minutes" : [ + "minutes": [ 15 ] } } } ], - "enabled" : true, - "targetResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "notifications" : [{ - "operation" : "Scale", - "email" : { - "sendToSubscriptionAdministrator" : true, - "sendToSubscriptionCoAdministrators" : true, - "customEmails" : [ + "enabled": true, + "targetResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "notifications": [ + { + "operation": "Scale", + "email": { + "sendToSubscriptionAdministrator": true, + "sendToSubscriptionCoAdministrators": true, + "customEmails": [ "gu@ms.com", "ge@ns.net" ] }, - "webhooks" : [{ - "serviceUri" : "http://myservice.com", - "properties" : {} + "webhooks": [ + { + "serviceUri": "http://myservice.com", + "properties": {} } ] } @@ -138,142 +146,150 @@ } } }, - "responses" : { - "200" : { - "headers" : {}, - "body" : { - "id" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting", - "name" : "MySetting", - "type" : "Microsoft.Insights/autoscaleSettings", - "location" : "West US", - "tags" : { - "$type" : "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage" + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting", + "name": "MySetting", + "type": "Microsoft.Insights/autoscaleSettings", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage" }, - "properties" : { - "profiles" : [{ - "name" : "adios", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" + "properties": { + "profiles": [ + { + "name": "adios", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 + }, + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" } } ], - "fixedDate" : { - "timeZone" : "UTC", - "start" : "2015-03-05T14:00:00Z", - "end" : "2015-03-05T14:30:00Z" + "fixedDate": { + "timeZone": "UTC", + "start": "2015-03-05T14:00:00Z", + "end": "2015-03-05T14:30:00Z" } - }, { - "name" : "saludos", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" + }, + { + "name": "saludos", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 + }, + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" } } ], - "recurrence" : { - "frequency" : "Week", - "schedule" : { - "timeZone" : "UTC", - "days" : [ + "recurrence": { + "frequency": "Week", + "schedule": { + "timeZone": "UTC", + "days": [ "1" ], - "hours" : [ + "hours": [ 5 ], - "minutes" : [ + "minutes": [ 15 ] } } } ], - "enabled" : true, - "name" : "MySetting", - "targetResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "notifications" : [{ - "operation" : "Scale", - "email" : { - "sendToSubscriptionAdministrator" : true, - "sendToSubscriptionCoAdministrators" : true, - "customEmails" : [ + "enabled": true, + "name": "MySetting", + "targetResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "notifications": [ + { + "operation": "Scale", + "email": { + "sendToSubscriptionAdministrator": true, + "sendToSubscriptionCoAdministrators": true, + "customEmails": [ "gu@ms.com", "ge@ns.net" ] }, - "webhooks" : [{ - "serviceUri" : "http://myservice.com", - "properties" : {} + "webhooks": [ + { + "serviceUri": "http://myservice.com", + "properties": {} } ] } @@ -281,141 +297,149 @@ } } }, - "201" : { - "headers" : {}, - "body" : { - "id" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting", - "name" : "MySetting", - "type" : "Microsoft.Insights/autoscaleSettings", - "location" : "West US", - "tags" : { - "$type" : "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage" + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting", + "name": "MySetting", + "type": "Microsoft.Insights/autoscaleSettings", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage" }, - "properties" : { - "profiles" : [{ - "name" : "adios", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" + "properties": { + "profiles": [ + { + "name": "adios", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 + }, + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" } } ], - "fixedDate" : { - "timeZone" : "UTC", - "start" : "2015-03-05T14:00:00Z", - "end" : "2015-03-05T14:30:00Z" + "fixedDate": { + "timeZone": "UTC", + "start": "2015-03-05T14:00:00Z", + "end": "2015-03-05T14:30:00Z" } - }, { - "name" : "saludos", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" + }, + { + "name": "saludos", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 + }, + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" } } ], - "recurrence" : { - "frequency" : "Week", - "schedule" : { - "timeZone" : "UTC", - "days" : [ + "recurrence": { + "frequency": "Week", + "schedule": { + "timeZone": "UTC", + "days": [ "1" ], - "hours" : [ + "hours": [ 5 ], - "minutes" : [ + "minutes": [ 15 ] } } } ], - "enabled" : true, - "name" : "MySetting", - "targetResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "notifications" : [{ - "operation" : "Scale", - "email" : { - "sendToSubscriptionAdministrator" : true, - "sendToSubscriptionCoAdministrators" : true, - "customEmails" : [ + "enabled": true, + "name": "MySetting", + "targetResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "notifications": [ + { + "operation": "Scale", + "email": { + "sendToSubscriptionAdministrator": true, + "sendToSubscriptionCoAdministrators": true, + "customEmails": [ "gu@ms.com", "ge@ns.net" ] }, - "webhooks" : [{ - "serviceUri" : "http://myservice.com", - "properties" : {} + "webhooks": [ + { + "serviceUri": "http://myservice.com", + "properties": {} } ] } @@ -424,4 +448,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/deleteAutoscaleSetting.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/deleteAutoscaleSetting.json index 45e684316de4..56678c1a327b 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/deleteAutoscaleSetting.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/deleteAutoscaleSetting.json @@ -1,18 +1,12 @@ { - "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "resourceGroupName": "TestingMetricsScaleSet", - "autoscaleSettingName": "MySetting", - "api-version": "2015-04-01" - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "resourceGroupName": "TestingMetricsScaleSet", + "autoscaleSettingName": "MySetting", + "api-version": "2015-04-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/getAutoscaleSetting.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/getAutoscaleSetting.json index 7e359dd858c2..940fb7184382 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/getAutoscaleSetting.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/getAutoscaleSetting.json @@ -1,160 +1,160 @@ { - "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "resourceGroupName": "TestingMetricsScaleSet", - "autoscaleSettingName": "MySetting", - "api-version": "2015-04-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting", - "name":"MySetting", - "type":"Microsoft.Insights/autoscaleSettings", - "location":"West US", - "tags": { - "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage" + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "resourceGroupName": "TestingMetricsScaleSet", + "autoscaleSettingName": "MySetting", + "api-version": "2015-04-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting", + "name": "MySetting", + "type": "Microsoft.Insights/autoscaleSettings", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage" + }, + "properties": { + "profiles": [ + { + "name": "adios", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" + }, + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 + }, + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" + } }, - "properties": { - "profiles": [ - { - "name":"adios", - "capacity": { - "minimum":"1", - "maximum":"10", - "default":"1" - }, - "rules": [ - { - "metricTrigger": { - "metricName":"Percentage CPU", - "metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain":"PT1M", - "statistic":"Average", - "timeWindow":"PT5M", - "timeAggregation":"Average", - "operator":"GreaterThan", - "threshold":10.0 - }, - "scaleAction": { - "direction":"Increase", - "type":"ChangeCount", - "value":"1", - "cooldown":"PT5M" - } - }, - { - "metricTrigger": { - "metricName":"Percentage CPU", - "metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain":"PT2M", - "statistic":"Average", - "timeWindow":"PT5M", - "timeAggregation":"Average", - "operator":"GreaterThan", - "threshold":15.0 - }, - "scaleAction": { - "direction":"Decrease", - "type":"ChangeCount", - "value":"2", - "cooldown":"PT6M" - } - } - ], - "fixedDate": { - "timeZone":"UTC", - "start":"2015-03-05T14:00:00Z", - "end":"2015-03-05T14:30:00Z" - } - }, - { - "name":"saludos", - "capacity": { - "minimum":"1", - "maximum":"10", - "default":"1" - }, - "rules": [ - { - "metricTrigger": { - "metricName":"Percentage CPU", - "metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain":"PT1M", - "statistic":"Average", - "timeWindow":"PT5M", - "timeAggregation":"Average", - "operator":"GreaterThan", - "threshold":10.0 - }, - "scaleAction": { - "direction":"Increase", - "type":"ChangeCount", - "value":"1", - "cooldown":"PT5M" - } - }, - { - "metricTrigger": { - "metricName":"Percentage CPU", - "metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain":"PT2M", - "statistic":"Average", - "timeWindow":"PT5M", - "timeAggregation":"Average", - "operator":"GreaterThan", - "threshold":15.0 - }, - "scaleAction": { - "direction":"Decrease", - "type":"ChangeCount", - "value":"2", - "cooldown":"PT6M" - } - } - ], - "recurrence": { - "frequency":"Week", - "schedule": { - "timeZone":"UTC", - "days": [ - "1" - ], - "hours": [ - 5 - ], - "minutes": [ - 15 - ] - } - } - } + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 + }, + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" + } + } + ], + "fixedDate": { + "timeZone": "UTC", + "start": "2015-03-05T14:00:00Z", + "end": "2015-03-05T14:30:00Z" + } + }, + { + "name": "saludos", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" + }, + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 + }, + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" + } + }, + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 + }, + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" + } + } + ], + "recurrence": { + "frequency": "Week", + "schedule": { + "timeZone": "UTC", + "days": [ + "1" ], - "enabled":true, - "name":"MySetting", - "targetResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "notifications": [ - { - "operation":"Scale", - "email": { - "sendToSubscriptionAdministrator":true, - "sendToSubscriptionCoAdministrators":true, - "customEmails": [ - "gu@ms.com", - "ge@ns.net" - ] - }, - "webhooks": [ - { - "serviceUri":"http://myservice.com", - "properties":{} - } - ] - } + "hours": [ + 5 + ], + "minutes": [ + 15 ] } + } + } + ], + "enabled": true, + "name": "MySetting", + "targetResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "notifications": [ + { + "operation": "Scale", + "email": { + "sendToSubscriptionAdministrator": true, + "sendToSubscriptionCoAdministrators": true, + "customEmails": [ + "gu@ms.com", + "ge@ns.net" + ] + }, + "webhooks": [ + { + "serviceUri": "http://myservice.com", + "properties": {} + } + ] } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/listAutoscaleSetting.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/listAutoscaleSetting.json index 909da7a9fb73..70ba238c9364 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/listAutoscaleSetting.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/listAutoscaleSetting.json @@ -1,147 +1,164 @@ { - "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "resourceGroupName": "TestingMetricsScaleSet", - "api-version": "2015-04-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value" : [ - { - "id" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting", - "name" : "MySetting", - "type" : "Microsoft.Insights/autoscaleSettings", - "location" : "West US", - "tags" : { - "$type" : "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage" + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "resourceGroupName": "TestingMetricsScaleSet", + "api-version": "2015-04-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting", + "name": "MySetting", + "type": "Microsoft.Insights/autoscaleSettings", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage" + }, + "properties": { + "profiles": [ + { + "name": "adios", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" + }, + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 + }, + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" + } }, - "properties" : { - "profiles" : [{ - "name" : "adios", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" - }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 - }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" - } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 - }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" - } - } - ], - "fixedDate" : { - "timeZone" : "UTC", - "start" : "2015-03-05T14:00:00Z", - "end" : "2015-03-05T14:30:00Z" - } - }, { - "name" : "saludos", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" - }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 - }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" - } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 - }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" - } - } - ], - "recurrence" : { - "frequency" : "Week", - "schedule" : { - "timeZone" : "UTC", - "days" : ["1"], - "hours" : [5], - "minutes" : [15] - } - } - } + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 + }, + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" + } + } + ], + "fixedDate": { + "timeZone": "UTC", + "start": "2015-03-05T14:00:00Z", + "end": "2015-03-05T14:30:00Z" + } + }, + { + "name": "saludos", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" + }, + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 + }, + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" + } + }, + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 + }, + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" + } + } + ], + "recurrence": { + "frequency": "Week", + "schedule": { + "timeZone": "UTC", + "days": [ + "1" + ], + "hours": [ + 5 ], - "enabled" : true, - "name" : "MySetting", - "targetResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "notifications" : [{ - "operation" : "Scale", - "email" : { - "sendToSubscriptionAdministrator" : true, - "sendToSubscriptionCoAdministrators" : true, - "customEmails" : ["gu@ms.com", "ge@ns.net"] - }, - "webhooks" : [{ - "serviceUri" : "http://myservice.com", - "properties" : {} - } - ] - } + "minutes": [ + 15 ] } } - ], - "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" + } + ], + "enabled": true, + "name": "MySetting", + "targetResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "notifications": [ + { + "operation": "Scale", + "email": { + "sendToSubscriptionAdministrator": true, + "sendToSubscriptionCoAdministrators": true, + "customEmails": [ + "gu@ms.com", + "ge@ns.net" + ] + }, + "webhooks": [ + { + "serviceUri": "http://myservice.com", + "properties": {} + } + ] + } + ] } - } + } + ], + "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/listAutoscaleSettingBySubscription.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/listAutoscaleSettingBySubscription.json index 134f3ed6bb91..dddfc3df50e1 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/listAutoscaleSettingBySubscription.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/listAutoscaleSettingBySubscription.json @@ -1,146 +1,163 @@ { - "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "api-version": "2015-04-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value" : [ - { - "id" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting", - "name" : "MySetting", - "type" : "Microsoft.Insights/autoscaleSettings", - "location" : "West US", - "tags" : { - "$type" : "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage" + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "api-version": "2015-04-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting", + "name": "MySetting", + "type": "Microsoft.Insights/autoscaleSettings", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage" + }, + "properties": { + "profiles": [ + { + "name": "adios", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" + }, + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 + }, + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" + } }, - "properties" : { - "profiles" : [{ - "name" : "adios", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" - }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 - }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" - } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 - }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" - } - } - ], - "fixedDate" : { - "timeZone" : "UTC", - "start" : "2015-03-05T14:00:00Z", - "end" : "2015-03-05T14:30:00Z" - } - }, { - "name" : "saludos", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" - }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 - }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" - } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 - }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" - } - } - ], - "recurrence" : { - "frequency" : "Week", - "schedule" : { - "timeZone" : "UTC", - "days" : ["1"], - "hours" : [5], - "minutes" : [15] - } - } - } + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 + }, + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" + } + } + ], + "fixedDate": { + "timeZone": "UTC", + "start": "2015-03-05T14:00:00Z", + "end": "2015-03-05T14:30:00Z" + } + }, + { + "name": "saludos", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" + }, + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 + }, + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" + } + }, + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 + }, + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" + } + } + ], + "recurrence": { + "frequency": "Week", + "schedule": { + "timeZone": "UTC", + "days": [ + "1" + ], + "hours": [ + 5 ], - "enabled" : true, - "name" : "MySetting", - "targetResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "notifications" : [{ - "operation" : "Scale", - "email" : { - "sendToSubscriptionAdministrator" : true, - "sendToSubscriptionCoAdministrators" : true, - "customEmails" : ["gu@ms.com", "ge@ns.net"] - }, - "webhooks" : [{ - "serviceUri" : "http://myservice.com", - "properties" : {} - } - ] - } + "minutes": [ + 15 ] } } - ], - "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" + } + ], + "enabled": true, + "name": "MySetting", + "targetResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "notifications": [ + { + "operation": "Scale", + "email": { + "sendToSubscriptionAdministrator": true, + "sendToSubscriptionCoAdministrators": true, + "customEmails": [ + "gu@ms.com", + "ge@ns.net" + ] + }, + "webhooks": [ + { + "serviceUri": "http://myservice.com", + "properties": {} + } + ] + } + ] } - } + } + ], + "nextLink": "https://management.azure.com/########-####-####-####-############$skiptoken=######" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/patchAutoscaleSetting.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/patchAutoscaleSetting.json index ef609f5e2646..3c80bd7a509f 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/patchAutoscaleSetting.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/patchAutoscaleSetting.json @@ -1,137 +1,145 @@ { - "parameters" : { - "subscriptionId" : "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "resourceGroupName" : "TestingMetricsScaleSet", - "autoscaleSettingName" : "MySetting", - "api-version" : "2015-04-01", - "autoscaleSettingResource" : { - "tags" : { - "$type" : "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary" + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "resourceGroupName": "TestingMetricsScaleSet", + "autoscaleSettingName": "MySetting", + "api-version": "2015-04-01", + "autoscaleSettingResource": { + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary" }, - "properties" : { - "profiles" : [{ - "name" : "adios", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" + "properties": { + "profiles": [ + { + "name": "adios", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 + }, + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" } } ], - "fixedDate" : { - "timeZone" : "UTC", - "start" : "2015-03-05T14:00:00Z", - "end" : "2015-03-05T14:30:00Z" + "fixedDate": { + "timeZone": "UTC", + "start": "2015-03-05T14:00:00Z", + "end": "2015-03-05T14:30:00Z" } - }, { - "name" : "saludos", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" + }, + { + "name": "saludos", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 + }, + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" } } ], - "recurrence" : { - "frequency" : "Week", - "schedule" : { - "timeZone" : "UTC", - "days" : [ + "recurrence": { + "frequency": "Week", + "schedule": { + "timeZone": "UTC", + "days": [ "1" ], - "hours" : [ + "hours": [ 5 ], - "minutes" : [ + "minutes": [ 15 ] } } } ], - "enabled" : true, - "targetResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "notifications" : [{ - "operation" : "Scale", - "email" : { - "sendToSubscriptionAdministrator" : true, - "sendToSubscriptionCoAdministrators" : true, - "customEmails" : [ + "enabled": true, + "targetResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "notifications": [ + { + "operation": "Scale", + "email": { + "sendToSubscriptionAdministrator": true, + "sendToSubscriptionCoAdministrators": true, + "customEmails": [ "gu@ms.com", "ge@ns.net" ] }, - "webhooks" : [{ - "serviceUri" : "http://myservice.com", - "properties" : {} + "webhooks": [ + { + "serviceUri": "http://myservice.com", + "properties": {} } ] } @@ -139,142 +147,150 @@ } } }, - "responses" : { - "200" : { - "headers" : {}, - "body" : { - "id" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting", - "name" : "MySetting", - "type" : "Microsoft.Insights/autoscaleSettings", - "location" : "West US", - "tags" : { - "$type" : "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary" + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting", + "name": "MySetting", + "type": "Microsoft.Insights/autoscaleSettings", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary" }, - "properties" : { - "profiles" : [{ - "name" : "adios", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" + "properties": { + "profiles": [ + { + "name": "adios", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 + }, + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" } } ], - "fixedDate" : { - "timeZone" : "UTC", - "start" : "2015-03-05T14:00:00Z", - "end" : "2015-03-05T14:30:00Z" + "fixedDate": { + "timeZone": "UTC", + "start": "2015-03-05T14:00:00Z", + "end": "2015-03-05T14:30:00Z" } - }, { - "name" : "saludos", - "capacity" : { - "minimum" : "1", - "maximum" : "10", - "default" : "1" + }, + { + "name": "saludos", + "capacity": { + "minimum": "1", + "maximum": "10", + "default": "1" }, - "rules" : [{ - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT1M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 10.0 + "rules": [ + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT1M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 10.0 }, - "scaleAction" : { - "direction" : "Increase", - "type" : "ChangeCount", - "value" : "1", - "cooldown" : "PT5M" + "scaleAction": { + "direction": "Increase", + "type": "ChangeCount", + "value": "1", + "cooldown": "PT5M" } - }, { - "metricTrigger" : { - "metricName" : "Percentage CPU", - "metricResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "timeGrain" : "PT2M", - "statistic" : "Average", - "timeWindow" : "PT5M", - "timeAggregation" : "Average", - "operator" : "GreaterThan", - "threshold" : 15.0 + }, + { + "metricTrigger": { + "metricName": "Percentage CPU", + "metricResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "timeGrain": "PT2M", + "statistic": "Average", + "timeWindow": "PT5M", + "timeAggregation": "Average", + "operator": "GreaterThan", + "threshold": 15.0 }, - "scaleAction" : { - "direction" : "Decrease", - "type" : "ChangeCount", - "value" : "2", - "cooldown" : "PT6M" + "scaleAction": { + "direction": "Decrease", + "type": "ChangeCount", + "value": "2", + "cooldown": "PT6M" } } ], - "recurrence" : { - "frequency" : "Week", - "schedule" : { - "timeZone" : "UTC", - "days" : [ + "recurrence": { + "frequency": "Week", + "schedule": { + "timeZone": "UTC", + "days": [ "1" ], - "hours" : [ + "hours": [ 5 ], - "minutes" : [ + "minutes": [ 15 ] } } } ], - "enabled" : true, - "name" : "MySetting", - "targetResourceUri" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - "notifications" : [{ - "operation" : "Scale", - "email" : { - "sendToSubscriptionAdministrator" : true, - "sendToSubscriptionCoAdministrators" : true, - "customEmails" : [ + "enabled": true, + "name": "MySetting", + "targetResourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", + "notifications": [ + { + "operation": "Scale", + "email": { + "sendToSubscriptionAdministrator": true, + "sendToSubscriptionCoAdministrators": true, + "customEmails": [ "gu@ms.com", "ge@ns.net" ] }, - "webhooks" : [{ - "serviceUri" : "http://myservice.com", - "properties" : {} + "webhooks": [ + { + "serviceUri": "http://myservice.com", + "properties": {} } ] } @@ -283,4 +299,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/operations_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/operations_API.json index b45598268c67..9b684a8b01b1 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/operations_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/operations_API.json @@ -36,35 +36,37 @@ } }, "paths": { - "/providers/microsoft.insights/operations": { - "get": { - "tags": [ - "Operations" - ], - "description": "Lists all of the available operations from Microsoft.Insights provider.", - "operationId": "Operations_List", - "x-ms-examples": { - "Get a list of operations for a resource provider": { - "$ref": "./examples/OperationList.json" - } - }, - "parameters": [{ + "/providers/microsoft.insights/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available operations from Microsoft.Insights provider.", + "operationId": "Operations_List", + "x-ms-examples": { + "Get a list of operations for a resource provider": { + "$ref": "./examples/OperationList.json" + } + }, + "parameters": [ + { "$ref": "#/parameters/ApiVersionParameter" - }], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationListResult" - } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" } } } } + } }, "definitions": { "OperationListResult": { - "description": "Result of the request to list Microsoft.Insights operations. It contains a list of operations and a URL link to get the next set of results.", + "description": "Result of the request to list Microsoft.Insights operations. It contains a list of operations and a URL link to get the next set of results.", "properties": { "value": { "type": "array", diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json index 3a4bbdb55dc4..bfc830e14ef3 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json @@ -77,17 +77,27 @@ }, "x-ms-odata": "#/definitions/EventData", "x-ms-examples": { - "Get Tenant Activity Logs without filter or select": { "$ref": "./examples/GetTenantActivityLogsNoParams.json" }, - "Get Tenant Activity Logs with filter": { "$ref": "./examples/GetTenantActivityLogsFiltered.json" }, - "Get Tenant Activity Logs with select": { "$ref": "./examples/GetTenantActivityLogsSelected.json" }, - "Get Tenant Activity Logs with filter and select": { "$ref": "./examples/GetTenantActivityLogsFilteredAndSelected.json" } + "Get Tenant Activity Logs without filter or select": { + "$ref": "./examples/GetTenantActivityLogsNoParams.json" + }, + "Get Tenant Activity Logs with filter": { + "$ref": "./examples/GetTenantActivityLogsFiltered.json" + }, + "Get Tenant Activity Logs with select": { + "$ref": "./examples/GetTenantActivityLogsSelected.json" + }, + "Get Tenant Activity Logs with filter and select": { + "$ref": "./examples/GetTenantActivityLogsFilteredAndSelected.json" + } } } } }, "definitions": { "LocalizableString": { - "required": [ "value" ], + "required": [ + "value" + ], "properties": { "value": { "type": "string", @@ -308,7 +318,9 @@ "description": "Provides the link to retrieve the next set of events." } }, - "required": [ "value" ], + "required": [ + "value" + ], "description": "Represents collection of events." }, "ErrorResponse": { @@ -343,4 +355,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-07-01/serviceDiagnosticsSettings_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-07-01/serviceDiagnosticsSettings_API.json index 28d3af6e0462..47d2cfd11f23 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-07-01/serviceDiagnosticsSettings_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-07-01/serviceDiagnosticsSettings_API.json @@ -63,31 +63,32 @@ }, "examples": { "application/json": { - "id":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", - "type":"", - "name":"service", - "location":"", - "tags":null, + "id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", + "type": "", + "name": "service", + "location": "", + "tags": null, "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1","serviceBusRuleId":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", - "workspaceId":"", + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", + "serviceBusRuleId": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", + "workspaceId": "", "metrics": [ { - "timeGrain":"PT1M", - "enabled":true, + "timeGrain": "PT1M", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } ], "logs": [ { - "category":"WorkflowRuntime", - "enabled":true, + "category": "WorkflowRuntime", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } ] @@ -129,31 +130,32 @@ }, "examples": { "application/json": { - "id":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", - "type":"", - "name":"service", - "location":"", - "tags":null, + "id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", + "type": "", + "name": "service", + "location": "", + "tags": null, "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1","serviceBusRuleId":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", - "workspaceId":"", + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", + "serviceBusRuleId": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", + "workspaceId": "", "metrics": [ { - "timeGrain":"PT1M", - "enabled":true, + "timeGrain": "PT1M", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } ], "logs": [ { - "category":"WorkflowRuntime", - "enabled":true, + "category": "WorkflowRuntime", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } ] @@ -187,8 +189,8 @@ "type": "string", "description": "Resource location", "x-ms-mutability": [ - "create", - "read" + "create", + "read" ] }, "tags": { @@ -216,7 +218,10 @@ "description": "the number of days for the retention in days. A value of 0 will retain the events indefinitely." } }, - "required": [ "enabled", "days" ], + "required": [ + "enabled", + "days" + ], "description": "Specifies the retention policy for the log." }, "MetricSettings": { @@ -235,7 +240,10 @@ "description": "the retention policy for this timegrain." } }, - "required": [ "enabled", "timeGrain" ], + "required": [ + "enabled", + "timeGrain" + ], "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric." }, "LogSettings": { @@ -253,7 +261,9 @@ "description": "the retention policy for this log." } }, - "required": [ "enabled" ], + "required": [ + "enabled" + ], "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log." }, "ServiceDiagnosticSettings": { @@ -334,4 +344,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/alertRulesIncidents_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/alertRulesIncidents_API.json index 6ef19b51b0a8..732e28a28d68 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/alertRulesIncidents_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/alertRulesIncidents_API.json @@ -79,7 +79,9 @@ } }, "x-ms-examples": { - "Get a single alert rule incident": { "$ref": "./examples/getAlertRuleIncident.json" } + "Get a single alert rule incident": { + "$ref": "./examples/getAlertRuleIncident.json" + } } } }, @@ -113,7 +115,9 @@ } }, "x-ms-examples": { - "List alert rule incidents": { "$ref": "./examples/listAlertRuleIncidents.json" } + "List alert rule incidents": { + "$ref": "./examples/listAlertRuleIncidents.json" + } }, "x-ms-pageable": { "nextLinkName": null @@ -213,4 +217,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/alertRules_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/alertRules_API.json index c7d1732feece..f9d1e42c1f5e 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/alertRules_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/alertRules_API.json @@ -87,7 +87,9 @@ } }, "x-ms-examples": { - "Create or update an alert rule": { "$ref": "./examples/createOrUpdateAlertRule.json" } + "Create or update an alert rule": { + "$ref": "./examples/createOrUpdateAlertRule.json" + } } }, "delete": { @@ -119,7 +121,9 @@ } }, "x-ms-examples": { - "Delete an alert rule": { "$ref": "./examples/deleteAlertRule.json" } + "Delete an alert rule": { + "$ref": "./examples/deleteAlertRule.json" + } } }, "get": { @@ -151,58 +155,62 @@ } }, "x-ms-examples": { - "Get an alert rule": { "$ref": "./examples/getAlertRule.json" } + "Get an alert rule": { + "$ref": "./examples/getAlertRule.json" + } } }, "patch": { - "description": "Updates an existing AlertRuleResource. To update other fields use the CreateOrUpdate method.", - "operationId": "AlertRules_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/RuleNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "alertRulesResource", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AlertRuleResourcePatch" - }, - "description": "Parameters supplied to the operation." - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Successful request to update an alert rule", - "schema": { - "$ref": "#/definitions/AlertRuleResource" - } - }, - "201": { - "description": "Successful request to update an alert rule that resulted in a creation of the alert rule", - "schema": { - "$ref": "#/definitions/AlertRuleResource" - } - } + "description": "Updates an existing AlertRuleResource. To update other fields use the CreateOrUpdate method.", + "operationId": "AlertRules_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "alertRulesResource", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AlertRuleResourcePatch" + }, + "description": "Parameters supplied to the operation." + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } }, - "x-ms-examples": { - "Patch an alert rule": { "$ref": "./examples/patchAlertRule.json" } + "200": { + "description": "Successful request to update an alert rule", + "schema": { + "$ref": "#/definitions/AlertRuleResource" + } + }, + "201": { + "description": "Successful request to update an alert rule that resulted in a creation of the alert rule", + "schema": { + "$ref": "#/definitions/AlertRuleResource" + } + } + }, + "x-ms-examples": { + "Patch an alert rule": { + "$ref": "./examples/patchAlertRule.json" } + } } }, "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules": { @@ -235,7 +243,9 @@ "nextLinkName": null }, "x-ms-examples": { - "List alert rules": { "$ref": "./examples/listAlertRule.json" } + "List alert rules": { + "$ref": "./examples/listAlertRule.json" + } } } }, @@ -266,7 +276,9 @@ "nextLinkName": null }, "x-ms-examples": { - "List alert rules": { "$ref": "./examples/listAlertRuleBySubscription.json" } + "List alert rules": { + "$ref": "./examples/listAlertRuleBySubscription.json" + } } } } @@ -285,7 +297,9 @@ "description": "the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource." } }, - "required": [ "odata.type" ], + "required": [ + "odata.type" + ], "description": "The condition that results in the alert rule being activated." }, "RuleDataSource": { @@ -301,7 +315,9 @@ "description": "the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule." } }, - "required": [ "odata.type" ], + "required": [ + "odata.type" + ], "description": "The resource from which the rule collects its data." }, "RuleMetricDataSource": { @@ -334,7 +350,7 @@ "type": "object", "allOf": [ { - "$ref" : "#/definitions/RuleDataSource" + "$ref": "#/definitions/RuleDataSource" } ], "properties": { @@ -392,14 +408,14 @@ "description": "Operators allowed in the rule condition." }, "TimeAggregationOperator": { - "type": "string", - "enum": [ - "Average", - "Minimum", - "Maximum", - "Total", - "Last" - ], + "type": "string", + "enum": [ + "Average", + "Minimum", + "Maximum", + "Total", + "Last" + ], "x-ms-enum": { "name": "TimeAggregationOperator", "modelAsString": false @@ -411,10 +427,13 @@ "type": "object", "allOf": [ { - "$ref" : "#/definitions/RuleCondition" + "$ref": "#/definitions/RuleCondition" } ], - "required": [ "threshold", "operator" ], + "required": [ + "threshold", + "operator" + ], "properties": { "operator": { "$ref": "#/definitions/ConditionOperator", @@ -443,7 +462,7 @@ "type": "object", "allOf": [ { - "$ref" : "#/definitions/RuleCondition" + "$ref": "#/definitions/RuleCondition" } ], "properties": { @@ -459,20 +478,22 @@ "description": "the number of locations that must fail to activate the alert." } }, - "required": [ "failedLocationCount" ], + "required": [ + "failedLocationCount" + ], "description": "A rule condition based on a certain number of locations failing.", "example": "{\r\n\t\"odata.type\": \"Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition\",\r\n\t\"dataSource\": {\r\n\t\t\"odata.type\": \"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource\",\r\n\t\t\"resourceUri\": \"/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourcegroups/Default-Web-CentralUS/providers/microsoft.insights/webtests/homepagetest-newrelapp2\",r\n\t\t\"metricName\": \"GSMT_AvRaW\"\r\n\t},\r\n\t\"windowSize\": \"PT5M\",\r\n\t\"failedLocationCount\": 1\r\n}" }, "ManagementEventAggregationCondition": { "properties": { "operator": { - "$ref": "#/definitions/ConditionOperator", - "description": "the condition operator." + "$ref": "#/definitions/ConditionOperator", + "description": "the condition operator." }, "threshold": { - "type": "number", - "format": "double", - "description": "The threshold value that activates the alert." + "type": "number", + "format": "double", + "description": "The threshold value that activates the alert." }, "windowSize": { "type": "string", @@ -487,7 +508,7 @@ "type": "object", "allOf": [ { - "$ref" : "#/definitions/RuleCondition" + "$ref": "#/definitions/RuleCondition" } ], "properties": { @@ -508,7 +529,9 @@ "description": "specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction." } }, - "required": [ "odata.type" ], + "required": [ + "odata.type" + ], "description": "The action that is performed when the alert rule becomes active, and when an alert condition is resolved." }, "RuleEmailAction": { @@ -521,15 +544,15 @@ ], "properties": { "sendToServiceOwners": { - "type": "boolean", - "description": "Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated." + "type": "boolean", + "description": "Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated." }, "customEmails": { - "type": "array", - "items": { - "type" : "string" - }, - "description": "the list of administrator's custom email addresses to notify of the activation of the alert." + "type": "array", + "items": { + "type": "string" + }, + "description": "the list of administrator's custom email addresses to notify of the activation of the alert." } }, "description": "Specifies the action to send email when the rule condition is evaluated. The discriminator is always RuleEmailAction in this case.", @@ -544,17 +567,17 @@ } ], "properties": { - "serviceUri": { - "type": "string", - "description": "the service uri to Post the notification when the alert activates or resolves." - }, - "properties": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload." - } + "serviceUri": { + "type": "string", + "description": "the service uri to Post the notification when the alert activates or resolves." + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload." + } }, "description": "Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case.", "example": "{\r\n\t\"odata.type\": \"Microsoft.Azure.Management.Insights.Models.RuleWebhookAction\",\r\n\t\"serviceUri\": \"http://contoso.com/\",\r\n\t\"properties\": { }\r\n}" @@ -619,8 +642,8 @@ "type": "string", "description": "Resource location", "x-ms-mutability": [ - "create", - "read" + "create", + "read" ] }, "tags": { @@ -639,9 +662,9 @@ "AlertRuleResource": { "type": "object", "allOf": [ - { - "$ref": "#/definitions/Resource" - } + { + "$ref": "#/definitions/Resource" + } ], "required": [ "properties" @@ -659,10 +682,10 @@ "description": "The alert rule object for patch operations.", "properties": { "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" }, "properties": { "x-ms-client-flatten": true, diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitions.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitions.json index fda5f7bc6329..68fd82a7aa48 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitions.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitions.json @@ -1,76 +1,75 @@ { - "parameters": { - "resourceUri": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", - "api-version": "2016-03-01", - "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192" - }, - "responses": { - "200": { - "body": { - "value": - [ - { - "resourceId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", - "name": { - "value":"RunsStarted", - "localizedValue":"Runs Started" - }, - "unit":"Count", - "primaryAggregationType":"Total", - "metricAvailabilities":[ - { - "timeGrain":"PT1M", - "retention":"P30D" - }, - { - "timeGrain":"PT1H", - "retention":"P30D" - } - ], - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsStarted" - }, - { - "resourceId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", - "name": { - "value":"RunsCompleted", - "localizedValue":"Runs Completed" - }, - "unit":"Count", - "primaryAggregationType":"Total", - "metricAvailabilities": [ - { - "timeGrain":"PT1M", - "retention":"P30D" - }, - { - "timeGrain":"PT1H", - "retention":"P30D" - } - ], - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsCompleted" - }, - { - "resourceId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", - "name": { - "value":"RunsSucceeded", - "localizedValue":"Runs Succeeded" - }, - "unit":"Count", - "primaryAggregationType":"Total", - "metricAvailabilities": [ - { - "timeGrain":"PT1M", - "retention":"P30D" - }, - { - "timeGrain":"PT1H", - "retention":"P30D" - } - ], - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsSucceeded" - } - ] - } - } + "parameters": { + "resourceUri": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "api-version": "2016-03-01", + "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "name": { + "value": "RunsStarted", + "localizedValue": "Runs Started" + }, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsStarted" + }, + { + "resourceId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "name": { + "value": "RunsCompleted", + "localizedValue": "Runs Completed" + }, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsCompleted" + }, + { + "resourceId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "name": { + "value": "RunsSucceeded", + "localizedValue": "Runs Succeeded" + }, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsSucceeded" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitionsFiltered.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitionsFiltered.json index ccbe7670ed6f..3362cc71a05a 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitionsFiltered.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitionsFiltered.json @@ -1,57 +1,56 @@ { - "parameters": { - "resourceUri": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", - "api-version": "2016-03-01", - "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192", - "$filter": "name.value eq 'RunsStarted' or name.value eq 'RunsSucceeded'" - }, - "responses": { - "200": { - "body": { - "value": - [ - { - "resourceId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", - "name": { - "value":"RunsStarted", - "localizedValue":"Runs Started" - }, - "unit":"Count", - "primaryAggregationType":"Total", - "metricAvailabilities":[ - { - "timeGrain":"PT1M", - "retention":"P30D" - }, - { - "timeGrain":"PT1H", - "retention":"P30D" - } - ], - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsStarted" - }, - { - "resourceId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", - "name": { - "value":"RunsSucceeded", - "localizedValue":"Runs Succeeded" - }, - "unit":"Count", - "primaryAggregationType":"Total", - "metricAvailabilities": [ - { - "timeGrain":"PT1M", - "retention":"P30D" - }, - { - "timeGrain":"PT1H", - "retention":"P30D" - } - ], - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsSucceeded" - } - ] - } - } + "parameters": { + "resourceUri": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "api-version": "2016-03-01", + "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192", + "$filter": "name.value eq 'RunsStarted' or name.value eq 'RunsSucceeded'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "name": { + "value": "RunsStarted", + "localizedValue": "Runs Started" + }, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsStarted" + }, + { + "resourceId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "name": { + "value": "RunsSucceeded", + "localizedValue": "Runs Succeeded" + }, + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P30D" + }, + { + "timeGrain": "PT1H", + "retention": "P30D" + } + ], + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsSucceeded" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateAlertRule.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateAlertRule.json index 7c6eec0e5d36..50712ab18981 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateAlertRule.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateAlertRule.json @@ -1,95 +1,97 @@ { + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "resourceGroupName": "Rac46PostSwapRG", + "ruleName": "chiricutin", + "api-version": "2016-03-01", "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "resourceGroupName": "Rac46PostSwapRG", - "ruleName": "chiricutin", - "api-version": "2016-03-01", - "parameters": { - "location": "West US", - "tags": { }, - "properties": { - "name":"chiricutin", - "description":"Pura Vida", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":3.0, - "windowSize":"PT5M", - "timeAggregation":"Total" - }, - "lastUpdatedTime":"2016-11-23T21:23:52.0221265Z", - "actions":[] - } + "location": "West US", + "tags": {}, + "properties": { + "name": "chiricutin", + "description": "Pura Vida", + "isEnabled": true, + "condition": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + "dataSource": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", + "metricName": "Requests" + }, + "operator": "GreaterThan", + "threshold": 3.0, + "windowSize": "PT5M", + "timeAggregation": "Total" + }, + "lastUpdatedTime": "2016-11-23T21:23:52.0221265Z", + "actions": [] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", + "name": "chiricutin", + "type": "Microsoft.Insights/alertRules", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, + "properties": { + "name": "chiricutin", + "description": "Pura Vida", + "isEnabled": true, + "condition": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + "dataSource": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", + "metricName": "Requests" + }, + "operator": "GreaterThan", + "threshold": 3.0, + "windowSize": "PT5M", + "timeAggregation": "Total" + }, + "lastUpdatedTime": "2016-11-23T21:23:52.0221265Z", + "actions": [] } + } }, - "responses": { - "200": { - "headers": { }, - "body": { - "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", - "name":"chiricutin", - "type":"Microsoft.Insights/alertRules", - "location":"West US", - "tags": { - "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage","hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource" - }, - "properties": { - "name":"chiricutin", - "description":"Pura Vida", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":3.0, - "windowSize":"PT5M", - "timeAggregation":"Total" - }, - "lastUpdatedTime":"2016-11-23T21:23:52.0221265Z", - "actions":[] - } - } + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", + "name": "chiricutin", + "type": "Microsoft.Insights/alertRules", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" }, - "201": { - "headers": { }, - "body": { - "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", - "name":"chiricutin", - "type":"Microsoft.Insights/alertRules", - "location":"West US", - "tags": { - "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage","hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource" - }, - "properties": { - "name":"chiricutin", - "description":"Pura Vida", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":3.0, - "windowSize":"PT5M", - "timeAggregation":"Total" - }, - "lastUpdatedTime":"2016-11-23T21:23:52.0221265Z", - "actions":[] - } - } + "properties": { + "name": "chiricutin", + "description": "Pura Vida", + "isEnabled": true, + "condition": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + "dataSource": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", + "metricName": "Requests" + }, + "operator": "GreaterThan", + "threshold": 3.0, + "windowSize": "PT5M", + "timeAggregation": "Total" + }, + "lastUpdatedTime": "2016-11-23T21:23:52.0221265Z", + "actions": [] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateLogProfile.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateLogProfile.json index 437c9a43999e..a10cf81d6573 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateLogProfile.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateLogProfile.json @@ -1,49 +1,55 @@ { + "parameters": { + "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192", + "logProfileName": "Rac46PostSwapRG", + "api-version": "2016-03-01", "parameters": { - "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192", - "logProfileName": "Rac46PostSwapRG", - "api-version": "2016-03-01", - "parameters": { - "location": "", - "tags": { }, - "properties": { - "locations": [ "global" ], - "categories": [ "Write", "Delete", "Action" ], - "retentionPolicy": { - "enabled": true, - "days": 3 - }, - "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", - "serviceBusRuleId": "" - } - } - }, - "responses": { - "200": { - "headers": { }, - "body": { - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/providers/microsoft.insights/logprofiles/default", - "type":"", - "name":"default", - "location":"", - "tags":null, - "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", - "serviceBusRuleId":"", - "locations":[ - "global" - ], - "categories": [ - "Delete", - "Write", - "Action" - ], - "retentionPolicy": { - "enabled":true, - "days":3 - } - } - } + "location": "", + "tags": {}, + "properties": { + "locations": [ + "global" + ], + "categories": [ + "Write", + "Delete", + "Action" + ], + "retentionPolicy": { + "enabled": true, + "days": 3 + }, + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", + "serviceBusRuleId": "" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/providers/microsoft.insights/logprofiles/default", + "type": "", + "name": "default", + "location": "", + "tags": null, + "properties": { + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", + "serviceBusRuleId": "", + "locations": [ + "global" + ], + "categories": [ + "Delete", + "Write", + "Action" + ], + "retentionPolicy": { + "enabled": true, + "days": 3 + } } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteAlertRule.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteAlertRule.json index 959c9be02353..c1c0d6856f54 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteAlertRule.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteAlertRule.json @@ -1,18 +1,12 @@ { - "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "resourceGroupName": "Rac46PostSwapRG", - "ruleName": "chiricutin", - "api-version": "2016-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "resourceGroupName": "Rac46PostSwapRG", + "ruleName": "chiricutin", + "api-version": "2016-03-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteLogProfile.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteLogProfile.json index 1d8b3c9c57c4..6990a0e1e11a 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteLogProfile.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteLogProfile.json @@ -1,13 +1,10 @@ { - "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "logProfileName": "Rac46PostSwapRG", - "api-version": "2016-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": null - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "logProfileName": "Rac46PostSwapRG", + "api-version": "2016-03-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRule.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRule.json index 16f5a1e5e0c8..f8b0c0165a9d 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRule.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRule.json @@ -1,41 +1,42 @@ { - "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "resourceGroupName": "Rac46PostSwapRG", - "ruleName": "chiricutin", - "api-version": "2016-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", - "name":"chiricutin", - "type":"Microsoft.Insights/alertRules", - "location":"West US", - "tags": { - "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage","hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource" - }, - "properties": { - "name":"chiricutin", - "description":"Pura Vida", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":3.0, - "windowSize":"PT5M", - "timeAggregation":"Total" - }, - "lastUpdatedTime":"2016-11-23T21:23:52.0221265Z", - "actions":[] - } - } + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "resourceGroupName": "Rac46PostSwapRG", + "ruleName": "chiricutin", + "api-version": "2016-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", + "name": "chiricutin", + "type": "Microsoft.Insights/alertRules", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, + "properties": { + "name": "chiricutin", + "description": "Pura Vida", + "isEnabled": true, + "condition": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + "dataSource": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", + "metricName": "Requests" + }, + "operator": "GreaterThan", + "threshold": 3.0, + "windowSize": "PT5M", + "timeAggregation": "Total" + }, + "lastUpdatedTime": "2016-11-23T21:23:52.0221265Z", + "actions": [] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRuleIncident.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRuleIncident.json index 5893da737f48..c09724c5d089 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRuleIncident.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRuleIncident.json @@ -1,21 +1,21 @@ { - "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "resourceGroupName": "Rac46PostSwapRG", + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "resourceGroupName": "Rac46PostSwapRG", + "ruleName": "myRuleName", + "incidentName": "Website_started", + "api-version": "2016-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "Website_started", "ruleName": "myRuleName", - "incidentName": "Website_started", - "api-version": "2016-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "name": "Website_started", - "ruleName": "myRuleName", - "isActive": true, - "activatedTime": "2017-09-13T15:45:26.9792776Z", - "resolvedTime": "2017-09-13T22:14:28.9792776Z" - } - } + "isActive": true, + "activatedTime": "2017-09-13T15:45:26.9792776Z", + "resolvedTime": "2017-09-13T22:14:28.9792776Z" + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getLogProfile.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getLogProfile.json index 8449a7b74678..739e5dea636f 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getLogProfile.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getLogProfile.json @@ -1,35 +1,35 @@ { - "parameters": { - "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192", - "logProfileName": "default", - "api-version": "2016-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/providers/microsoft.insights/logprofiles/default", - "type":"", - "name":"default", - "location":"", - "tags":null, - "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", - "serviceBusRuleId":"", - "locations": [ - "global" - ], - "categories": [ - "Delete", - "Write", - "Action" - ], - "retentionPolicy": { - "enabled":true, - "days":3 - } - } - } + "parameters": { + "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192", + "logProfileName": "default", + "api-version": "2016-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/providers/microsoft.insights/logprofiles/default", + "type": "", + "name": "default", + "location": "", + "tags": null, + "properties": { + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", + "serviceBusRuleId": "", + "locations": [ + "global" + ], + "categories": [ + "Delete", + "Write", + "Action" + ], + "retentionPolicy": { + "enabled": true, + "days": 3 + } } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRule.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRule.json index fd6521f57989..fb531977b2a5 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRule.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRule.json @@ -1,81 +1,83 @@ { - "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "resourceGroupName": "Rac46PostSwapRG", - "api-version": "2016-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/myRuleName", - "name":"myRuleName", - "type":"Microsoft.Insights/alertRules", - "location":"West US", - "tags": { - "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage","hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource" - }, - "properties": { - "name":"myRuleName", - "description":"Pura Vida", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":2.0, - "windowSize":"PT5M", - "timeAggregation":"Total" - }, - "lastUpdatedTime":"2016-11-10T21:04:39.0005255Z", - "actions": [ - { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners":true, - "customEmails": [ - "gu@ms.com", - "su@ms.net" - ] - } - ] - } - }, - { - "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin0", - "name":"chiricutin0", - "type":"Microsoft.Insights/alertRules", - "location":"West US", - "tags": { - "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage","hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource" - }, - "properties": { - "name":"chiricutin0", - "description":"Pura Vida 0", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":2.0, - "windowSize":"PT5M", - "timeAggregation":"Total" - }, - "lastUpdatedTime":"2016-11-10T21:04:39.1082596Z", - "actions":[] - } - } - ] + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "resourceGroupName": "Rac46PostSwapRG", + "api-version": "2016-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/myRuleName", + "name": "myRuleName", + "type": "Microsoft.Insights/alertRules", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, + "properties": { + "name": "myRuleName", + "description": "Pura Vida", + "isEnabled": true, + "condition": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + "dataSource": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", + "metricName": "Requests" + }, + "operator": "GreaterThan", + "threshold": 2.0, + "windowSize": "PT5M", + "timeAggregation": "Total" + }, + "lastUpdatedTime": "2016-11-10T21:04:39.0005255Z", + "actions": [ + { + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": true, + "customEmails": [ + "gu@ms.com", + "su@ms.net" + ] + } + ] } - } + }, + { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin0", + "name": "chiricutin0", + "type": "Microsoft.Insights/alertRules", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, + "properties": { + "name": "chiricutin0", + "description": "Pura Vida 0", + "isEnabled": true, + "condition": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + "dataSource": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", + "metricName": "Requests" + }, + "operator": "GreaterThan", + "threshold": 2.0, + "windowSize": "PT5M", + "timeAggregation": "Total" + }, + "lastUpdatedTime": "2016-11-10T21:04:39.1082596Z", + "actions": [] + } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleBySubscription.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleBySubscription.json index bd048421d8cc..78b6e018656a 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleBySubscription.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleBySubscription.json @@ -1,80 +1,82 @@ { - "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "api-version": "2016-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/myRuleName", - "name":"myRuleName", - "type":"Microsoft.Insights/alertRules", - "location":"West US", - "tags": { - "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage","hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource" - }, - "properties": { - "name":"myRuleName", - "description":"Pura Vida", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":2.0, - "windowSize":"PT5M", - "timeAggregation":"Total" - }, - "lastUpdatedTime":"2016-11-10T21:04:39.0005255Z", - "actions": [ - { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners":true, - "customEmails": [ - "gu@ms.com", - "su@ms.net" - ] - } - ] - } - }, - { - "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin0", - "name":"chiricutin0", - "type":"Microsoft.Insights/alertRules", - "location":"West US", - "tags": { - "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage","hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource" - }, - "properties": { - "name":"chiricutin0", - "description":"Pura Vida 0", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":2.0, - "windowSize":"PT5M", - "timeAggregation":"Total" - }, - "lastUpdatedTime":"2016-11-10T21:04:39.1082596Z", - "actions":[] - } - } - ] + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "api-version": "2016-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/myRuleName", + "name": "myRuleName", + "type": "Microsoft.Insights/alertRules", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, + "properties": { + "name": "myRuleName", + "description": "Pura Vida", + "isEnabled": true, + "condition": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + "dataSource": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", + "metricName": "Requests" + }, + "operator": "GreaterThan", + "threshold": 2.0, + "windowSize": "PT5M", + "timeAggregation": "Total" + }, + "lastUpdatedTime": "2016-11-10T21:04:39.0005255Z", + "actions": [ + { + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": true, + "customEmails": [ + "gu@ms.com", + "su@ms.net" + ] + } + ] } - } + }, + { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin0", + "name": "chiricutin0", + "type": "Microsoft.Insights/alertRules", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, + "properties": { + "name": "chiricutin0", + "description": "Pura Vida 0", + "isEnabled": true, + "condition": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + "dataSource": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", + "metricName": "Requests" + }, + "operator": "GreaterThan", + "threshold": 2.0, + "windowSize": "PT5M", + "timeAggregation": "Total" + }, + "lastUpdatedTime": "2016-11-10T21:04:39.1082596Z", + "actions": [] + } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleIncidents.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleIncidents.json index ccd54a57d356..bdf0f5aaee03 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleIncidents.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleIncidents.json @@ -1,24 +1,24 @@ { - "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "resourceGroupName": "Rac46PostSwapRG", - "ruleName": "myRuleName", - "api-version": "2016-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "name": "Website_started", - "ruleName": "myRuleName", - "isActive": true, - "activatedTime": "2017-09-13T15:45:26.9792776Z", - "resolvedTime": "2017-09-13T22:14:28.9792776Z" - } - ] - } - } + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "resourceGroupName": "Rac46PostSwapRG", + "ruleName": "myRuleName", + "api-version": "2016-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "Website_started", + "ruleName": "myRuleName", + "isActive": true, + "activatedTime": "2017-09-13T15:45:26.9792776Z", + "resolvedTime": "2017-09-13T22:14:28.9792776Z" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listLogProfile.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listLogProfile.json index e4c59ca65269..3b6886398973 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listLogProfile.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listLogProfile.json @@ -1,61 +1,61 @@ { - "parameters": { - "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192", - "api-version": "2016-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/providers/microsoft.insights/logprofiles/default", - "type":"", - "name":"default", - "location":"", - "tags":null, - "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", - "serviceBusRuleId":"", - "locations": [ - "global" - ], - "categories": [ - "Delete", - "Write", - "Action" - ], - "retentionPolicy": { - "enabled":true, - "days":3 - } - } - }, - { - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/providers/microsoft.insights/logprofiles/default2", - "type":"", - "name":"default2", - "location":"", - "tags":null, - "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8165", - "serviceBusRuleId":"", - "locations": [ - "global" - ], - "categories": [ - "Delete", - "Write", - "Action" - ], - "retentionPolicy": { - "enabled":true, - "days":15 - } - } - } - ] + "parameters": { + "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192", + "api-version": "2016-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/providers/microsoft.insights/logprofiles/default", + "type": "", + "name": "default", + "location": "", + "tags": null, + "properties": { + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", + "serviceBusRuleId": "", + "locations": [ + "global" + ], + "categories": [ + "Delete", + "Write", + "Action" + ], + "retentionPolicy": { + "enabled": true, + "days": 3 + } } - } + }, + { + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/providers/microsoft.insights/logprofiles/default2", + "type": "", + "name": "default2", + "location": "", + "tags": null, + "properties": { + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8165", + "serviceBusRuleId": "", + "locations": [ + "global" + ], + "categories": [ + "Delete", + "Write", + "Action" + ], + "retentionPolicy": { + "enabled": true, + "days": 15 + } + } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchAlertRule.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchAlertRule.json index 91122db11b8f..df5d714900ba 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchAlertRule.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchAlertRule.json @@ -1,96 +1,96 @@ { - "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", - "resourceGroupName": "Rac46PostSwapRG", - "ruleName": "chiricutin", - "api-version": "2016-03-01", - "alertRulesResource": { - "tags": { - "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary" - }, - "properties": { - "name":"chiricutin", - "description":"Pura Vida", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":3.0, - "windowSize":"PT5M", - "timeAggregation":"Total" - }, - "lastUpdatedTime":"2016-11-23T21:23:52.0221265Z", - "actions":[] - } + "parameters": { + "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "resourceGroupName": "Rac46PostSwapRG", + "ruleName": "chiricutin", + "api-version": "2016-03-01", + "alertRulesResource": { + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary" + }, + "properties": { + "name": "chiricutin", + "description": "Pura Vida", + "isEnabled": true, + "condition": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + "dataSource": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", + "metricName": "Requests" + }, + "operator": "GreaterThan", + "threshold": 3.0, + "windowSize": "PT5M", + "timeAggregation": "Total" + }, + "lastUpdatedTime": "2016-11-23T21:23:52.0221265Z", + "actions": [] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", + "name": "chiricutin", + "type": "Microsoft.Insights/alertRules", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary" + }, + "properties": { + "name": "chiricutin", + "description": "Pura Vida", + "isEnabled": true, + "condition": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + "dataSource": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", + "metricName": "Requests" + }, + "operator": "GreaterThan", + "threshold": 3.0, + "windowSize": "PT5M", + "timeAggregation": "Total" + }, + "lastUpdatedTime": "2016-11-23T21:23:52.0221265Z", + "actions": [] } + } }, - "responses": { - "200": { - "headers": { }, - "body": { - "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", - "name":"chiricutin", - "type":"Microsoft.Insights/alertRules", - "location":"West US", - "tags": { - "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary" - }, - "properties": { - "name":"chiricutin", - "description":"Pura Vida", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":3.0, - "windowSize":"PT5M", - "timeAggregation":"Total" - }, - "lastUpdatedTime":"2016-11-23T21:23:52.0221265Z", - "actions":[] - } - } + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", + "name": "chiricutin", + "type": "Microsoft.Insights/alertRules", + "location": "West US", + "tags": { + "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary" }, - "201": { - "headers": { }, - "body": { - "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", - "name":"chiricutin", - "type":"Microsoft.Insights/alertRules", - "location":"West US", - "tags": { - "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary" - }, - "properties": { - "name":"chiricutin", - "description":"Pura Vida", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":3.0, - "windowSize":"PT5M", - "timeAggregation":"Total" - }, - "lastUpdatedTime":"2016-11-23T21:23:52.0221265Z", - "actions":[] - } - } + "properties": { + "name": "chiricutin", + "description": "Pura Vida", + "isEnabled": true, + "condition": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + "dataSource": { + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", + "metricName": "Requests" + }, + "operator": "GreaterThan", + "threshold": 3.0, + "windowSize": "PT5M", + "timeAggregation": "Total" + }, + "lastUpdatedTime": "2016-11-23T21:23:52.0221265Z", + "actions": [] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchLogProfile.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchLogProfile.json index 4e4a0a199d8c..6fc9bbb17e11 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchLogProfile.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchLogProfile.json @@ -1,52 +1,58 @@ { - "parameters": { - "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192", - "logProfileName": "Rac46PostSwapRG", - "api-version": "2016-03-01", - "logProfilesResource": { - "tags": { - "key1": "value1" - }, - "properties": { - "locations": [ "global" ], - "categories": [ "Write", "Delete", "Action" ], - "retentionPolicy": { - "enabled": true, - "days": 3 - }, - "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", - "serviceBusRuleId": "" - } - } - }, - "responses": { - "200": { - "headers": { }, - "body": { - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/providers/microsoft.insights/logprofiles/default", - "type":"", - "name":"default", - "location":"", - "tags": { - "key1": "value1" - }, - "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", - "serviceBusRuleId":"", - "locations":[ - "global" - ], - "categories": [ - "Delete", - "Write", - "Action" - ], - "retentionPolicy": { - "enabled":true, - "days":3 - } - } - } + "parameters": { + "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192", + "logProfileName": "Rac46PostSwapRG", + "api-version": "2016-03-01", + "logProfilesResource": { + "tags": { + "key1": "value1" + }, + "properties": { + "locations": [ + "global" + ], + "categories": [ + "Write", + "Delete", + "Action" + ], + "retentionPolicy": { + "enabled": true, + "days": 3 + }, + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", + "serviceBusRuleId": "" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/providers/microsoft.insights/logprofiles/default", + "type": "", + "name": "default", + "location": "", + "tags": { + "key1": "value1" + }, + "properties": { + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", + "serviceBusRuleId": "", + "locations": [ + "global" + ], + "categories": [ + "Delete", + "Write", + "Action" + ], + "retentionPolicy": { + "enabled": true, + "days": 3 + } } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/logProfiles_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/logProfiles_API.json index b7a79b53ef2c..73c5d169e3d8 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/logProfiles_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/logProfiles_API.json @@ -60,7 +60,9 @@ } }, "x-ms-examples": { - "Delete log profile": { "$ref": "./examples/deleteLogProfile.json" } + "Delete log profile": { + "$ref": "./examples/deleteLogProfile.json" + } } }, "get": { @@ -95,7 +97,9 @@ } }, "x-ms-examples": { - "Get log profile": { "$ref": "./examples/getLogProfile.json" } + "Get log profile": { + "$ref": "./examples/getLogProfile.json" + } } }, "put": { @@ -133,49 +137,53 @@ } }, "x-ms-examples": { - "Create or update a log profile": { "$ref": "./examples/createOrUpdateLogProfile.json" } + "Create or update a log profile": { + "$ref": "./examples/createOrUpdateLogProfile.json" + } } }, "patch": { - "description": "Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.", - "operationId": "LogProfiles_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/LogProfileNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "logProfilesResource", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LogProfileResourcePatch" - }, - "description": "Parameters supplied to the operation." - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "An existing log profile was successfully updated.", - "schema": { - "$ref": "#/definitions/LogProfileResource" - } - } + "description": "Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.", + "operationId": "LogProfiles_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LogProfileNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "logProfilesResource", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LogProfileResourcePatch" + }, + "description": "Parameters supplied to the operation." + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } }, - "x-ms-examples": { - "Patch a log profile": { "$ref": "./examples/patchLogProfile.json" } + "200": { + "description": "An existing log profile was successfully updated.", + "schema": { + "$ref": "#/definitions/LogProfileResource" + } } + }, + "x-ms-examples": { + "Patch a log profile": { + "$ref": "./examples/patchLogProfile.json" + } + } } }, "/subscriptions/{subscriptionId}/providers/microsoft.insights/logprofiles": { @@ -205,7 +213,9 @@ "nextLinkName": null }, "x-ms-examples": { - "List log profiles": { "$ref": "./examples/listLogProfile.json" } + "List log profiles": { + "$ref": "./examples/listLogProfile.json" + } } } } @@ -232,8 +242,8 @@ "type": "string", "description": "Resource location", "x-ms-mutability": [ - "create", - "read" + "create", + "read" ] }, "tags": { @@ -262,11 +272,18 @@ "description": "the number of days for the retention in days. A value of 0 will retain the events indefinitely." } }, - "required": [ "enabled", "days" ], + "required": [ + "enabled", + "days" + ], "description": "Specifies the retention policy for the log." }, "LogProfileProperties": { - "required": [ "locations", "categories", "retentionPolicy" ], + "required": [ + "locations", + "categories", + "retentionPolicy" + ], "properties": { "storageAccountId": { "type": "string", @@ -305,23 +322,25 @@ } ], "properties": { - "properties": { + "properties": { "x-ms-client-flatten": true, "$ref": "#/definitions/LogProfileProperties", "description": "The log profile properties of the resource." } }, - "required": ["properties"], + "required": [ + "properties" + ], "description": "The log profile resource." }, "LogProfileResourcePatch": { "description": "The log profile resource for patch operations.", "properties": { "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" }, "properties": { "x-ms-client-flatten": true, @@ -340,7 +359,9 @@ "description": "the values of the log profiles." } }, - "required": ["value"], + "required": [ + "value" + ], "description": "Represents a collection of log profiles." }, "ErrorResponse": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/metricDefinitions_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/metricDefinitions_API.json index 035cc95f53e4..fcfaf112add0 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/metricDefinitions_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/metricDefinitions_API.json @@ -69,66 +69,66 @@ }, "examples": { "application/json": { - "value":[ + "value": [ { - "resourceId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "resourceId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", "name": { - "value":"RunsStarted", - "localizedValue":"Runs Started" + "value": "RunsStarted", + "localizedValue": "Runs Started" }, - "unit":"Count", - "primaryAggregationType":"Total", - "metricAvailabilities":[ + "unit": "Count", + "primaryAggregationType": "Total", + "metricAvailabilities": [ { - "timeGrain":"PT1M", - "retention":"P30D" + "timeGrain": "PT1M", + "retention": "P30D" }, { - "timeGrain":"PT1H", - "retention":"P30D" + "timeGrain": "PT1H", + "retention": "P30D" } ], - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsStarted" + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsStarted" }, { - "resourceId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "resourceId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", "name": { - "value":"RunsCompleted", - "localizedValue":"Runs Completed" + "value": "RunsCompleted", + "localizedValue": "Runs Completed" }, - "unit":"Count", - "primaryAggregationType":"Total", + "unit": "Count", + "primaryAggregationType": "Total", "metricAvailabilities": [ { - "timeGrain":"PT1M", - "retention":"P30D" + "timeGrain": "PT1M", + "retention": "P30D" }, { - "timeGrain":"PT1H", - "retention":"P30D" + "timeGrain": "PT1H", + "retention": "P30D" } ], - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsCompleted" + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsCompleted" }, { - "resourceId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "resourceId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", "name": { - "value":"RunsSucceeded", - "localizedValue":"Runs Succeeded" + "value": "RunsSucceeded", + "localizedValue": "Runs Succeeded" }, - "unit":"Count", - "primaryAggregationType":"Total", + "unit": "Count", + "primaryAggregationType": "Total", "metricAvailabilities": [ { - "timeGrain":"PT1M", - "retention":"P30D" + "timeGrain": "PT1M", + "retention": "P30D" }, { - "timeGrain":"PT1H", - "retention":"P30D" + "timeGrain": "PT1H", + "retention": "P30D" } ], - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsSucceeded" + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metricdefinitions/RunsSucceeded" } ] } @@ -140,15 +140,21 @@ }, "x-ms-odata": "#/definitions/MetricDefinition", "x-ms-examples": { - "Get Metric Definitions without filter": { "$ref": "./examples/GetMetricDefinitions.json" }, - "Get Metric Definitions with filter": { "$ref": "./examples/GetMetricDefinitionsFiltered.json" } + "Get Metric Definitions without filter": { + "$ref": "./examples/GetMetricDefinitions.json" + }, + "Get Metric Definitions with filter": { + "$ref": "./examples/GetMetricDefinitionsFiltered.json" + } } } } }, "definitions": { "LocalizableString": { - "required": [ "value" ], + "required": [ + "value" + ], "properties": { "value": { "type": "string", @@ -247,7 +253,9 @@ "description": "the values for the metric definitions." } }, - "required": ["value"], + "required": [ + "value" + ], "description": "Represents collection of metric definitions." }, "ErrorResponse": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetric.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetric.json index a1377c14f37b..fdc5de9cf6d7 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetric.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetric.json @@ -1,62 +1,62 @@ { - "parameters": { - "resourceUri": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", - "api-version": "2016-09-01", - "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "data": [ - { - "timeStamp":"2016-11-23T19:14:00Z", - "total":1.0 - }, - { - "timeStamp":"2016-11-23T19:15:00Z" - }, - { - "timeStamp":"2016-11-23T19:16:00Z" - }, - { - "timeStamp":"2016-11-23T19:17:00Z" - }, - { - "timeStamp":"2016-11-23T19:18:00Z" - }, - { - "timeStamp":"2016-11-23T19:19:00Z", - "total":1.0 - }, - { - "timeStamp":"2016-11-23T19:20:00Z" - }, - { - "timeStamp":"2016-11-23T19:21:00Z" - }, - { - "timeStamp":"2016-11-23T19:22:00Z" - }, - { - "timeStamp":"2016-11-23T19:23:00Z" - }, - { - "timeStamp":"2016-11-23T19:24:00Z", - "total":1.0 - } - ], - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metrics/RunsStarted", - "name": { - "value":"RunsStarted", - "localizedValue":"Runs Started" - }, - "type":"Microsoft.Insights/metrics", - "unit":"Count" - } - ] - } - } + "parameters": { + "resourceUri": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "api-version": "2016-09-01", + "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "data": [ + { + "timeStamp": "2016-11-23T19:14:00Z", + "total": 1.0 + }, + { + "timeStamp": "2016-11-23T19:15:00Z" + }, + { + "timeStamp": "2016-11-23T19:16:00Z" + }, + { + "timeStamp": "2016-11-23T19:17:00Z" + }, + { + "timeStamp": "2016-11-23T19:18:00Z" + }, + { + "timeStamp": "2016-11-23T19:19:00Z", + "total": 1.0 + }, + { + "timeStamp": "2016-11-23T19:20:00Z" + }, + { + "timeStamp": "2016-11-23T19:21:00Z" + }, + { + "timeStamp": "2016-11-23T19:22:00Z" + }, + { + "timeStamp": "2016-11-23T19:23:00Z" + }, + { + "timeStamp": "2016-11-23T19:24:00Z", + "total": 1.0 + } + ], + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metrics/RunsStarted", + "name": { + "value": "RunsStarted", + "localizedValue": "Runs Started" + }, + "type": "Microsoft.Insights/metrics", + "unit": "Count" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetricFiltered.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetricFiltered.json index bece918b2b16..df50abd401b4 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetricFiltered.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetricFiltered.json @@ -1,63 +1,63 @@ { - "parameters": { - "$filter": "(name.value eq 'RunsStarted') and aggregationType eq 'Total' and startTime eq 2016-11-23 and endTime eq 2016-11-24 and timeGrain eq duration'PT1M'", - "resourceUri": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", - "api-version": "2016-09-01", - "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "data": [ - { - "timeStamp":"2016-11-23T19:14:00Z", - "total":1.0 - }, - { - "timeStamp":"2016-11-23T19:15:00Z" - }, - { - "timeStamp":"2016-11-23T19:16:00Z" - }, - { - "timeStamp":"2016-11-23T19:17:00Z" - }, - { - "timeStamp":"2016-11-23T19:18:00Z" - }, - { - "timeStamp":"2016-11-23T19:19:00Z", - "total":1.0 - }, - { - "timeStamp":"2016-11-23T19:20:00Z" - }, - { - "timeStamp":"2016-11-23T19:21:00Z" - }, - { - "timeStamp":"2016-11-23T19:22:00Z" - }, - { - "timeStamp":"2016-11-23T19:23:00Z" - }, - { - "timeStamp":"2016-11-23T19:24:00Z", - "total":1.0 - } - ], - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metrics/RunsStarted", - "name": { - "value":"RunsStarted", - "localizedValue":"Runs Started" - }, - "type":"Microsoft.Insights/metrics", - "unit":"Count" - } - ] - } - } + "parameters": { + "$filter": "(name.value eq 'RunsStarted') and aggregationType eq 'Total' and startTime eq 2016-11-23 and endTime eq 2016-11-24 and timeGrain eq duration'PT1M'", + "resourceUri": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "api-version": "2016-09-01", + "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "data": [ + { + "timeStamp": "2016-11-23T19:14:00Z", + "total": 1.0 + }, + { + "timeStamp": "2016-11-23T19:15:00Z" + }, + { + "timeStamp": "2016-11-23T19:16:00Z" + }, + { + "timeStamp": "2016-11-23T19:17:00Z" + }, + { + "timeStamp": "2016-11-23T19:18:00Z" + }, + { + "timeStamp": "2016-11-23T19:19:00Z", + "total": 1.0 + }, + { + "timeStamp": "2016-11-23T19:20:00Z" + }, + { + "timeStamp": "2016-11-23T19:21:00Z" + }, + { + "timeStamp": "2016-11-23T19:22:00Z" + }, + { + "timeStamp": "2016-11-23T19:23:00Z" + }, + { + "timeStamp": "2016-11-23T19:24:00Z", + "total": 1.0 + } + ], + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metrics/RunsStarted", + "name": { + "value": "RunsStarted", + "localizedValue": "Runs Started" + }, + "type": "Microsoft.Insights/metrics", + "unit": "Count" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/createOrUpdateServiceDiagnosticSetting.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/createOrUpdateServiceDiagnosticSetting.json index 2257369319d9..b384e6adb9de 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/createOrUpdateServiceDiagnosticSetting.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/createOrUpdateServiceDiagnosticSetting.json @@ -1,73 +1,73 @@ { + "parameters": { + "resourceUri": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", + "api-version": "2016-09-01", "parameters": { - "resourceUri": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", - "api-version": "2016-09-01", - "parameters": { - "location": "", - "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - "serviceBusRuleId":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", - "workspaceId":"", - "eventHubAuthorizationRuleId":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", - "metrics": [ - { - "timeGrain":"PT1M", - "enabled":true, - "retentionPolicy": { - "enabled":false, - "days":0 - } - } - ], - "logs": [ - { - "category":"WorkflowRuntime", - "enabled":true, - "retentionPolicy": { - "enabled":false, - "days":0 - } - } - ] + "location": "", + "properties": { + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", + "serviceBusRuleId": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", + "workspaceId": "", + "eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", + "metrics": [ + { + "timeGrain": "PT1M", + "enabled": true, + "retentionPolicy": { + "enabled": false, + "days": 0 } - } - }, - "responses": { - "200": { - "headers": { }, - "body": { - "id":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", - "type":"", - "name":"service", - "location":"", - "tags":null, - "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - "serviceBusRuleId":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", - "workspaceId":"", - "eventHubAuthorizationRuleId":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", - "metrics": [ - { - "timeGrain":"PT1M", - "enabled":true, - "retentionPolicy": { - "enabled":false, - "days":0 - } - } - ], - "logs": [ - { - "category":"WorkflowRuntime", - "enabled":true, - "retentionPolicy": { - "enabled":false, - "days":0 - } - } - ] - } + } + ], + "logs": [ + { + "category": "WorkflowRuntime", + "enabled": true, + "retentionPolicy": { + "enabled": false, + "days": 0 + } + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", + "type": "", + "name": "service", + "location": "", + "tags": null, + "properties": { + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", + "serviceBusRuleId": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", + "workspaceId": "", + "eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", + "metrics": [ + { + "timeGrain": "PT1M", + "enabled": true, + "retentionPolicy": { + "enabled": false, + "days": 0 } + } + ], + "logs": [ + { + "category": "WorkflowRuntime", + "enabled": true, + "retentionPolicy": { + "enabled": false, + "days": 0 + } + } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/getServiceDiagnosticSetting.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/getServiceDiagnosticSetting.json index 323f6938d9bd..a05370758b19 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/getServiceDiagnosticSetting.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/getServiceDiagnosticSetting.json @@ -1,37 +1,39 @@ { - "parameters" : { - "resourceUri" : "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", - "api-version" : "2016-09-01" + "parameters": { + "resourceUri": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", + "api-version": "2016-09-01" }, - "responses" : { - "200" : { - "headers" : {}, - "body" : { - "id" : "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", - "type" : "", - "name" : "service", - "location" : "", - "tags" : null, - "properties" : { - "storageAccountId" : "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - "serviceBusRuleId" : "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", - "workspaceId" : "", - "eventHubAuthorizationRuleId" : "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", - "metrics" : [{ - "timeGrain" : "PT1M", - "enabled" : true, - "retentionPolicy" : { - "enabled" : false, - "days" : 0 + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", + "type": "", + "name": "service", + "location": "", + "tags": null, + "properties": { + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", + "serviceBusRuleId": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", + "workspaceId": "", + "eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", + "metrics": [ + { + "timeGrain": "PT1M", + "enabled": true, + "retentionPolicy": { + "enabled": false, + "days": 0 } } ], - "logs" : [{ - "category" : "WorkflowRuntime", - "enabled" : true, - "retentionPolicy" : { - "enabled" : false, - "days" : 0 + "logs": [ + { + "category": "WorkflowRuntime", + "enabled": true, + "retentionPolicy": { + "enabled": false, + "days": 0 } } ] @@ -39,4 +41,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/updateServiceDiagnosticSetting.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/updateServiceDiagnosticSetting.json index da047720e4ff..7d0bb0639f60 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/updateServiceDiagnosticSetting.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/updateServiceDiagnosticSetting.json @@ -1,73 +1,73 @@ { + "parameters": { + "resourceUri": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", + "api-version": "2016-09-01", "parameters": { - "resourceUri": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", - "api-version": "2016-09-01", - "parameters": { - "tags": null, - "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - "serviceBusRuleId":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", - "workspaceId":"", - "eventHubAuthorizationRuleId":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", - "metrics": [ - { - "timeGrain":"PT1M", - "enabled":true, - "retentionPolicy": { - "enabled":false, - "days":3 - } - } - ], - "logs": [ - { - "category":"WorkflowRuntime", - "enabled":true, - "retentionPolicy": { - "enabled":false, - "days":5 - } - } - ] + "tags": null, + "properties": { + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", + "serviceBusRuleId": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", + "workspaceId": "", + "eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", + "metrics": [ + { + "timeGrain": "PT1M", + "enabled": true, + "retentionPolicy": { + "enabled": false, + "days": 3 } - } - }, - "responses": { - "200": { - "headers": { }, - "body": { - "id":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", - "type":"", - "name":"service", - "location":"", - "tags":null, - "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - "serviceBusRuleId":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", - "workspaceId":"", - "eventHubAuthorizationRuleId":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", - "metrics": [ - { - "timeGrain":"PT1M", - "enabled":true, - "retentionPolicy": { - "enabled":false, - "days":3 - } - } - ], - "logs": [ - { - "category":"WorkflowRuntime", - "enabled":true, - "retentionPolicy": { - "enabled":false, - "days":5 - } - } - ] - } + } + ], + "logs": [ + { + "category": "WorkflowRuntime", + "enabled": true, + "retentionPolicy": { + "enabled": false, + "days": 5 + } + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", + "type": "", + "name": "service", + "location": "", + "tags": null, + "properties": { + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", + "serviceBusRuleId": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", + "workspaceId": "", + "eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", + "metrics": [ + { + "timeGrain": "PT1M", + "enabled": true, + "retentionPolicy": { + "enabled": false, + "days": 3 } + } + ], + "logs": [ + { + "category": "WorkflowRuntime", + "enabled": true, + "retentionPolicy": { + "enabled": false, + "days": 5 + } + } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/metrics_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/metrics_API.json index 061139f29e94..4191c1dd8b46 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/metrics_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/metrics_API.json @@ -73,49 +73,49 @@ { "data": [ { - "timeStamp":"2016-11-23T19:14:00Z", - "total":1.0 + "timeStamp": "2016-11-23T19:14:00Z", + "total": 1.0 }, { - "timeStamp":"2016-11-23T19:15:00Z" + "timeStamp": "2016-11-23T19:15:00Z" }, { - "timeStamp":"2016-11-23T19:16:00Z" + "timeStamp": "2016-11-23T19:16:00Z" }, { - "timeStamp":"2016-11-23T19:17:00Z" + "timeStamp": "2016-11-23T19:17:00Z" }, { - "timeStamp":"2016-11-23T19:18:00Z" + "timeStamp": "2016-11-23T19:18:00Z" }, { - "timeStamp":"2016-11-23T19:19:00Z", - "total":1.0 + "timeStamp": "2016-11-23T19:19:00Z", + "total": 1.0 }, { - "timeStamp":"2016-11-23T19:20:00Z" + "timeStamp": "2016-11-23T19:20:00Z" }, { - "timeStamp":"2016-11-23T19:21:00Z" + "timeStamp": "2016-11-23T19:21:00Z" }, { - "timeStamp":"2016-11-23T19:22:00Z" + "timeStamp": "2016-11-23T19:22:00Z" }, { - "timeStamp":"2016-11-23T19:23:00Z" + "timeStamp": "2016-11-23T19:23:00Z" }, { - "timeStamp":"2016-11-23T19:24:00Z", - "total":1.0 + "timeStamp": "2016-11-23T19:24:00Z", + "total": 1.0 } ], - "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metrics/RunsStarted", + "id": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia/providers/microsoft.insights/metrics/RunsStarted", "name": { - "value":"RunsStarted", - "localizedValue":"Runs Started" + "value": "RunsStarted", + "localizedValue": "Runs Started" }, - "type":"Microsoft.Insights/metrics", - "unit":"Count" + "type": "Microsoft.Insights/metrics", + "unit": "Count" } ] } @@ -127,15 +127,21 @@ }, "x-ms-odata": "#/definitions/Metric", "x-ms-examples": { - "Get Metric without filter": { "$ref": "./examples/GetMetric.json" }, - "Get Metric with filter": { "$ref": "./examples/GetMetricFiltered.json" } + "Get Metric without filter": { + "$ref": "./examples/GetMetric.json" + }, + "Get Metric with filter": { + "$ref": "./examples/GetMetricFiltered.json" + } } } } }, "definitions": { "LocalizableString": { - "required": [ "value" ], + "required": [ + "value" + ], "properties": { "value": { "type": "string", @@ -166,7 +172,9 @@ } }, "MetricValue": { - "required": [ "timeStamp" ], + "required": [ + "timeStamp" + ], "properties": { "timeStamp": { "type": "string", @@ -202,7 +210,11 @@ "description": "Represents a metric value." }, "Metric": { - "required": [ "name", "unit", "data" ], + "required": [ + "name", + "unit", + "data" + ], "properties": { "id": { "type": "string", @@ -240,7 +252,9 @@ "description": "the value of the collection." } }, - "required": ["value"], + "required": [ + "value" + ], "description": "The collection of metric value sets." }, "ErrorResponse": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/serviceDiagnosticsSettings_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/serviceDiagnosticsSettings_API.json index 4918d221fd0f..bc1396b369c2 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/serviceDiagnosticsSettings_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/serviceDiagnosticsSettings_API.json @@ -62,32 +62,32 @@ }, "examples": { "application/json": { - "id":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", - "type":"", - "name":"service", - "location":"", - "tags":null, + "id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", + "type": "", + "name": "service", + "location": "", + "tags": null, "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - "serviceBusRuleId":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", - "workspaceId":"", + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", + "serviceBusRuleId": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", + "workspaceId": "", "metrics": [ { - "timeGrain":"PT1M", - "enabled":true, + "timeGrain": "PT1M", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } ], "logs": [ { - "category":"WorkflowRuntime", - "enabled":true, + "category": "WorkflowRuntime", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } ] @@ -97,7 +97,9 @@ } }, "x-ms-examples": { - "Get service diagnostic setting": { "$ref": "./examples/getServiceDiagnosticSetting.json" } + "Get service diagnostic setting": { + "$ref": "./examples/getServiceDiagnosticSetting.json" + } } }, "put": { @@ -131,33 +133,33 @@ }, "examples": { "application/json": { - "id":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", - "type":"", - "name":"service", - "location":"", - "tags":null, + "id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", + "type": "", + "name": "service", + "location": "", + "tags": null, "properties": { - "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - "serviceBusRuleId":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", - "workspaceId":"", - "eventHubAuthorizationRuleId":"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule", + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", + "serviceBusRuleId": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", + "workspaceId": "", + "eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule", "metrics": [ { - "timeGrain":"PT1M", - "enabled":true, + "timeGrain": "PT1M", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } ], "logs": [ { - "category":"WorkflowRuntime", - "enabled":true, + "category": "WorkflowRuntime", + "enabled": true, "retentionPolicy": { - "enabled":false, - "days":0 + "enabled": false, + "days": 0 } } ] @@ -167,45 +169,49 @@ } }, "x-ms-examples": { - "Create or update a service diagnostic setting": { "$ref": "./examples/createOrUpdateServiceDiagnosticSetting.json" } + "Create or update a service diagnostic setting": { + "$ref": "./examples/createOrUpdateServiceDiagnosticSetting.json" + } } }, "patch": { "description": "Updates an existing ServiceDiagnosticSettingsResource. To update other fields use the CreateOrUpdate method. **WARNING**: This method will be deprecated in future releases.", "operationId": "ServiceDiagnosticSettings_Update", "parameters": [ - { - "$ref": "#/parameters/ResourceUriParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" + { + "$ref": "#/parameters/ResourceUriParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "serviceDiagnosticSettingsResource", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceDiagnosticSettingsResourcePatch" }, - { - "name": "serviceDiagnosticSettingsResource", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ServiceDiagnosticSettingsResourcePatch" - }, - "description": "Parameters supplied to the operation." - } + "description": "Parameters supplied to the operation." + } ], "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "An existing service diagnostics setting resource was successfully updated.", - "schema": { - "$ref": "#/definitions/ServiceDiagnosticSettingsResource" - } + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "200": { + "description": "An existing service diagnostics setting resource was successfully updated.", + "schema": { + "$ref": "#/definitions/ServiceDiagnosticSettingsResource" } + } }, "x-ms-examples": { - "Update a service diagnostic setting": { "$ref": "./examples/updateServiceDiagnosticSetting.json" } + "Update a service diagnostic setting": { + "$ref": "./examples/updateServiceDiagnosticSetting.json" + } } } } @@ -232,8 +238,8 @@ "type": "string", "description": "Resource location", "x-ms-mutability": [ - "create", - "read" + "create", + "read" ] }, "tags": { @@ -262,7 +268,10 @@ "description": "the number of days for the retention in days. A value of 0 will retain the events indefinitely." } }, - "required": [ "enabled", "days" ], + "required": [ + "enabled", + "days" + ], "description": "Specifies the retention policy for the log." }, "MetricSettings": { @@ -281,7 +290,10 @@ "description": "the retention policy for this timegrain." } }, - "required": [ "enabled", "timeGrain" ], + "required": [ + "enabled", + "timeGrain" + ], "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric." }, "LogSettings": { @@ -299,7 +311,9 @@ "description": "the retention policy for this log." } }, - "required": [ "enabled" ], + "required": [ + "enabled" + ], "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log." }, "ServiceDiagnosticSettings": { @@ -357,10 +371,10 @@ "description": "Service diagnostic setting resource for patch operations", "properties": { "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" }, "properties": { "x-ms-client-flatten": true, diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/actionGroups_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/actionGroups_API.json index b3d90206d892..c2f3163a2c36 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/actionGroups_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/actionGroups_API.json @@ -1,716 +1,716 @@ { - "swagger": "2.0", - "info": { - "title": "Azure Action Groups API", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2017-04-01" + "swagger": "2.0", + "info": { + "title": "Azure Action Groups API", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] + "version": "2017-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.insights/actionGroups/{actionGroupName}": { + "put": { + "description": "Create a new action group or update an existing one.", + "operationId": "ActionGroups_CreateOrUpdate", + "x-ms-examples": { + "Create or update an action group": { + "$ref": "./examples/createOrUpdateActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "name": "actionGroup", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActionGroupResource" + }, + "description": "The action group to create or use for the update." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "An existing action group was successfully updated.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "201": { + "description": "A new action group was successfully created.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "default": { + "description": "An error occurred and the action group could not be created or updated.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } - ], - "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" + }, + "get": { + "description": "Get an action group.", + "operationId": "ActionGroups_Get", + "x-ms-examples": { + "Get an action group": { + "$ref": "./examples/getActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "default": { + "description": "An error occurred and the action group could not be retrieved. 404: The action group does not exist.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}": { - "put": { - "description": "Create a new action group or update an existing one.", - "operationId": "ActionGroups_CreateOrUpdate", - "x-ms-examples": { - "Create or update an action group": { - "$ref": "./examples/createOrUpdateActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "name": "actionGroup", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActionGroupResource" - }, - "description": "The action group to create or use for the update." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "An existing action group was successfully updated.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "201": { - "description": "A new action group was successfully created.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "default": { - "description": "An error occurred and the action group could not be created or updated.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "get": { - "description": "Get an action group.", - "operationId": "ActionGroups_Get", - "x-ms-examples": { - "Get an action group": { - "$ref": "./examples/getActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "default": { - "description": "An error occurred and the action group could not be retrieved. 404: The action group does not exist.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "description": "Delete an action group.", - "operationId": "ActionGroups_Delete", - "x-ms-examples": { - "Delete an action group": { - "$ref": "./examples/deleteActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The action group was successfully deleted." - }, - "204": { - "description": "The action group does not exist. It may have already been deleted." - }, - "default": { - "description": "An error occurred and the action group could not be deleted.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "delete": { + "description": "Delete an action group.", + "operationId": "ActionGroups_Delete", + "x-ms-examples": { + "Delete an action group": { + "$ref": "./examples/deleteActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The action group was successfully deleted." + }, + "204": { + "description": "The action group does not exist. It may have already been deleted." + }, + "default": { + "description": "An error occurred and the action group could not be deleted.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "description": "Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.", + "operationId": "ActionGroups_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "actionGroupPatch", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActionGroupPatchBody" }, - "patch": { - "description": "Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.", - "operationId": "ActionGroups_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "actionGroupPatch", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActionGroupPatchBody" - }, - "description": "Parameters supplied to the operation." - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "An existing action group was successfully updated.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - } - }, - "x-ms-examples": { - "Patch an action group": { - "$ref": "./examples/patchActionGroup.json" - } - } + "description": "Parameters supplied to the operation." + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } - }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/actionGroups": { - "get": { - "description": "Get a list of all action groups in a subscription.", - "operationId": "ActionGroups_ListBySubscriptionId", - "x-ms-examples": { - "List action groups": { - "$ref": "./examples/listActionGroups.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupList" - } - }, - "default": { - "description": "An error occurred and the list of action groups could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "200": { + "description": "An existing action group was successfully updated.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" } + } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups": { - "get": { - "description": "Get a list of all action groups in a resource group.", - "operationId": "ActionGroups_ListByResourceGroup", - "x-ms-examples": { - "List action groups": { - "$ref": "./examples/listActionGroups.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupList" - } - }, - "default": { - "description": "An error occurred and the list of action groups could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } + "x-ms-examples": { + "Patch an action group": { + "$ref": "./examples/patchActionGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/microsoft.insights/actionGroups": { + "get": { + "description": "Get a list of all action groups in a subscription.", + "operationId": "ActionGroups_ListBySubscriptionId", + "x-ms-examples": { + "List action groups": { + "$ref": "./examples/listActionGroups.json" + } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}/subscribe": { - "post": { - "description": "Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled.", - "operationId": "ActionGroups_EnableReceiver", - "x-ms-examples": { - "Enable the receiver": { - "$ref": "./examples/enableReceiver.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "name": "enableRequest", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/EnableRequest" - }, - "description": "The receiver to re-enable." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The receiver was successfully enabled." - }, - "409": { - "description": "The receiver is already enabled in the action group." - }, - "default": { - "description": "An error occurred and the receiver could not be enabled, e.g.: 404: The action group was not found or no matching receiver was found in the action group.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupList" + } + }, + "default": { + "description": "An error occurred and the list of action groups could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } } + } }, - "definitions": { - "Resource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Azure resource name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" - }, - "ActionGroupResource": { - "description": "An action group resource.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActionGroup", - "description": "The action groups properties of the resource." - } - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups": { + "get": { + "description": "Get a list of all action groups in a resource group.", + "operationId": "ActionGroups_ListByResourceGroup", + "x-ms-examples": { + "List action groups": { + "$ref": "./examples/listActionGroups.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null }, - "ActionGroupList": { - "description": "A list of action groups.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionGroupResource" - }, - "description": "The list of action groups." - }, - "nextLink": { - "type": "string", - "description": "Provides the link to retrieve the next set of elements." - } + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupList" } + }, + "default": { + "description": "An error occurred and the list of action groups could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}/subscribe": { + "post": { + "description": "Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled.", + "operationId": "ActionGroups_EnableReceiver", + "x-ms-examples": { + "Enable the receiver": { + "$ref": "./examples/enableReceiver.json" + } }, - "ActionGroup": { - "description": "An Azure action group.", - "properties": { - "groupShortName": { - "type": "string", - "maxLength": 12, - "description": "The short name of the action group. This will be used in SMS messages." - }, - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." - }, - "emailReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/EmailReceiver" - }, - "description": "The list of email receivers that are part of this action group." - }, - "smsReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/SmsReceiver" - }, - "description": "The list of SMS receivers that are part of this action group." - }, - "webhookReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/WebhookReceiver" - }, - "description": "The list of webhook receivers that are part of this action group." - }, - "itsmReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/ItsmReceiver" - }, - "description": "The list of ITSM receivers that are part of this action group." - }, - "azureAppPushReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureAppPushReceiver" - }, - "description": "The list of AzureAppPush receivers that are part of this action group." - }, - "automationRunbookReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AutomationRunbookReceiver" - }, - "description": "The list of AutomationRunbook receivers that are part of this action group." - } - }, - "required": [ - "groupShortName", - "enabled" - ] - }, - "EmailReceiver": { - "description": "An email receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the email receiver. Names must be unique across all receivers within an action group." - }, - "emailAddress": { - "type": "string", - "description": "The email address of this receiver." - }, - "status": { - "readOnly": true, - "$ref": "#/definitions/ReceiverStatus", - "description": "The receiver status of the e-mail." - } - }, - "required": [ - "name", - "emailAddress" - ] - }, - "SmsReceiver": { - "description": "An SMS receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." - }, - "countryCode": { - "type": "string", - "description": "The country code of the SMS receiver." - }, - "phoneNumber": { - "type": "string", - "description": "The phone number of the SMS receiver." - }, - "status": { - "readOnly": true, - "$ref": "#/definitions/ReceiverStatus", - "description": "The status of the receiver." - } - }, - "required": [ - "name", - "countryCode", - "phoneNumber" - ] - }, - "WebhookReceiver": { - "description": "A webhook receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." - }, - "serviceUri": { - "type": "string", - "description": "The URI where webhooks should be sent." - } - }, - "required": [ - "name", - "serviceUri" - ] - }, - "ItsmReceiver": { - "description": "An Itsm receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." - }, - "workspaceId": { - "type": "string", - "description": "OMS LA instance identifier." - }, - "connectionId": { - "type": "string", - "description": "Unique identification of ITSM connection among multiple defined in above workspace." - }, - "ticketConfiguration": { - "type": "string", - "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." - }, - "region": { - "type": "string", - "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" - } - }, - "required": [ - "name", - "workspaceId", - "connectionId", - "ticketConfiguration", - "region" - ] - }, - "AzureAppPushReceiver": { - "description": "The Azure mobile App push notification receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." - }, - "emailAddress": { - "type": "string", - "description": "The email address registered for the Azure mobile app." - } - }, - "required": [ - "name", - "emailAddress" - ] - }, - "AutomationRunbookReceiver": { - "description": "The Azure Automation Runbook notification receiver.", - "properties": { - "automationAccountId": { - "type": "string", - "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." - }, - "runbookName": { - "type": "string", - "description": "The name for this runbook." - }, - "webhookResourceId": { - "type": "string", - "description": "The resource id for webhook linked to this runbook." - }, - "isGlobalRunbook": { - "type": "boolean", - "description": "Indicates whether this instance is global runbook." - }, - "name": { - "type": "string", - "description": "Indicates name of the webhook." - }, - "serviceUri": { - "type": "string", - "description": "The URI where webhooks should be sent." - } - }, - "required": [ - "automationAccountId", - "runbookName", - "webhookResourceId", - "isGlobalRunbook" - ] - }, - "ReceiverStatus": { - "type": "string", - "enum": [ - "NotSpecified", - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "ReceiverStatus", - "modelAsString": false - }, - "description": "Indicates the status of the receiver. Receivers that are not Enabled will not receive any communications." - }, - "EnableRequest": { - "description": "Describes a receiver that should be resubscribed.", - "properties": { - "receiverName": { - "type": "string", - "description": "The name of the receiver to resubscribe." - } + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "name": "enableRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EnableRequest" }, - "required": [ - "receiverName" - ] - }, - "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" - } + "description": "The receiver to re-enable." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The receiver was successfully enabled." + }, + "409": { + "description": "The receiver is already enabled in the action group." + }, + "default": { + "description": "An error occurred and the receiver could not be enabled, e.g.: 404: The action group was not found or no matching receiver was found in the action group.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" }, - "ActionGroupPatchBody": { - "description": "An action group object for the body of patch operations.", - "properties": { - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActionGroupPatch", - "description": "The action group settings for an update operation." - } - } + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" }, - "ActionGroupPatch": { - "description": "An Azure action group for patch operations.", - "properties": { - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated." - } - } + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription Id." + "ActionGroupResource": { + "description": "An action group resource.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActionGroup", + "description": "The action groups properties of the resource." + } + } + }, + "ActionGroupList": { + "description": "A list of action groups.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ActionGroupResource" + }, + "description": "The list of action groups." }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" + "nextLink": { + "type": "string", + "description": "Provides the link to retrieve the next set of elements." + } + } + }, + "ActionGroup": { + "description": "An Azure action group.", + "properties": { + "groupShortName": { + "type": "string", + "maxLength": 12, + "description": "The short name of the action group. This will be used in SMS messages." }, - "ActionGroupNameParameter": { - "name": "actionGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the action group.", - "x-ms-parameter-location": "method" + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." + "emailReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/EmailReceiver" + }, + "description": "The list of email receivers that are part of this action group." + }, + "smsReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/SmsReceiver" + }, + "description": "The list of SMS receivers that are part of this action group." + }, + "webhookReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/WebhookReceiver" + }, + "description": "The list of webhook receivers that are part of this action group." + }, + "itsmReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/ItsmReceiver" + }, + "description": "The list of ITSM receivers that are part of this action group." + }, + "azureAppPushReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureAppPushReceiver" + }, + "description": "The list of AzureAppPush receivers that are part of this action group." + }, + "automationRunbookReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AutomationRunbookReceiver" + }, + "description": "The list of AutomationRunbook receivers that are part of this action group." + } + }, + "required": [ + "groupShortName", + "enabled" + ] + }, + "EmailReceiver": { + "description": "An email receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the email receiver. Names must be unique across all receivers within an action group." + }, + "emailAddress": { + "type": "string", + "description": "The email address of this receiver." + }, + "status": { + "readOnly": true, + "$ref": "#/definitions/ReceiverStatus", + "description": "The receiver status of the e-mail." + } + }, + "required": [ + "name", + "emailAddress" + ] + }, + "SmsReceiver": { + "description": "An SMS receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." + }, + "countryCode": { + "type": "string", + "description": "The country code of the SMS receiver." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the SMS receiver." + }, + "status": { + "readOnly": true, + "$ref": "#/definitions/ReceiverStatus", + "description": "The status of the receiver." + } + }, + "required": [ + "name", + "countryCode", + "phoneNumber" + ] + }, + "WebhookReceiver": { + "description": "A webhook receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + } + }, + "required": [ + "name", + "serviceUri" + ] + }, + "ItsmReceiver": { + "description": "An Itsm receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." + }, + "workspaceId": { + "type": "string", + "description": "OMS LA instance identifier." + }, + "connectionId": { + "type": "string", + "description": "Unique identification of ITSM connection among multiple defined in above workspace." + }, + "ticketConfiguration": { + "type": "string", + "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." + }, + "region": { + "type": "string", + "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" } + }, + "required": [ + "name", + "workspaceId", + "connectionId", + "ticketConfiguration", + "region" + ] + }, + "AzureAppPushReceiver": { + "description": "The Azure mobile App push notification receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." + }, + "emailAddress": { + "type": "string", + "description": "The email address registered for the Azure mobile app." + } + }, + "required": [ + "name", + "emailAddress" + ] + }, + "AutomationRunbookReceiver": { + "description": "The Azure Automation Runbook notification receiver.", + "properties": { + "automationAccountId": { + "type": "string", + "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." + }, + "runbookName": { + "type": "string", + "description": "The name for this runbook." + }, + "webhookResourceId": { + "type": "string", + "description": "The resource id for webhook linked to this runbook." + }, + "isGlobalRunbook": { + "type": "boolean", + "description": "Indicates whether this instance is global runbook." + }, + "name": { + "type": "string", + "description": "Indicates name of the webhook." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + } + }, + "required": [ + "automationAccountId", + "runbookName", + "webhookResourceId", + "isGlobalRunbook" + ] + }, + "ReceiverStatus": { + "type": "string", + "enum": [ + "NotSpecified", + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "ReceiverStatus", + "modelAsString": false + }, + "description": "Indicates the status of the receiver. Receivers that are not Enabled will not receive any communications." + }, + "EnableRequest": { + "description": "Describes a receiver that should be resubscribed.", + "properties": { + "receiverName": { + "type": "string", + "description": "The name of the receiver to resubscribe." + } + }, + "required": [ + "receiverName" + ] + }, + "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" + } + } + }, + "ActionGroupPatchBody": { + "description": "An action group object for the body of patch operations.", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActionGroupPatch", + "description": "The action group settings for an update operation." + } + } + }, + "ActionGroupPatch": { + "description": "An Azure action group for patch operations.", + "properties": { + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription Id." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ActionGroupNameParameter": { + "name": "actionGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the action group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." } + } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/activityLogAlerts_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/activityLogAlerts_API.json index 332e93e78a8c..1c8c0a5d5ae8 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/activityLogAlerts_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/activityLogAlerts_API.json @@ -1,528 +1,528 @@ { - "swagger": "2.0", - "info": { - "title": "Azure Activity Log Alerts API", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2017-04-01" + "swagger": "2.0", + "info": { + "title": "Azure Activity Log Alerts API", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] + "version": "2017-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.insights/activityLogAlerts/{activityLogAlertName}": { + "put": { + "description": "Create a new activity log alert or update an existing one.", + "operationId": "ActivityLogAlerts_CreateOrUpdate", + "x-ms-examples": { + "Create or update an activity log alert": { + "$ref": "./examples/createOrUpdateActivityLogAlert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActivityLogAlertNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "activityLogAlert", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActivityLogAlertResource" + }, + "description": "The activity log alert to create or use for the update." + } + ], + "responses": { + "200": { + "description": "An existing activity log alert was successfully updated.", + "schema": { + "$ref": "#/definitions/ActivityLogAlertResource" + } + }, + "201": { + "description": "A new activity log alert was successfully created.", + "schema": { + "$ref": "#/definitions/ActivityLogAlertResource" + } + }, + "default": { + "description": "An error occurred and the activity log alert could not be created or updated.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } - ], - "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" + }, + "get": { + "description": "Get an activity log alert.", + "operationId": "ActivityLogAlerts_Get", + "x-ms-examples": { + "Get an activity log alert": { + "$ref": "./examples/getActivityLogAlert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActivityLogAlertNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActivityLogAlertResource" } + }, + "default": { + "description": "An error occurred and the activity log alert could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}": { - "put": { - "description": "Create a new activity log alert or update an existing one.", - "operationId": "ActivityLogAlerts_CreateOrUpdate", - "x-ms-examples": { - "Create or update an activity log alert": { - "$ref": "./examples/createOrUpdateActivityLogAlert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActivityLogAlertNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "activityLogAlert", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActivityLogAlertResource" - }, - "description": "The activity log alert to create or use for the update." - } - ], - "responses": { - "200": { - "description": "An existing activity log alert was successfully updated.", - "schema": { - "$ref": "#/definitions/ActivityLogAlertResource" - } - }, - "201": { - "description": "A new activity log alert was successfully created.", - "schema": { - "$ref": "#/definitions/ActivityLogAlertResource" - } - }, - "default": { - "description": "An error occurred and the activity log alert could not be created or updated.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "get": { - "description": "Get an activity log alert.", - "operationId": "ActivityLogAlerts_Get", - "x-ms-examples": { - "Get an activity log alert": { - "$ref": "./examples/getActivityLogAlert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActivityLogAlertNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActivityLogAlertResource" - } - }, - "default": { - "description": "An error occurred and the activity log alert could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "description": "Delete an activity log alert.", - "operationId": "ActivityLogAlerts_Delete", - "x-ms-examples": { - "Delete an activity log alert": { - "$ref": "./examples/deleteActivityLogAlert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActivityLogAlertNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The activity log alert was successfully deleted." - }, - "204": { - "description": "The activity log alert does not exist. It may have already been deleted." - }, - "default": { - "description": "An error occurred and the activity log alert could not be deleted.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "delete": { + "description": "Delete an activity log alert.", + "operationId": "ActivityLogAlerts_Delete", + "x-ms-examples": { + "Delete an activity log alert": { + "$ref": "./examples/deleteActivityLogAlert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActivityLogAlertNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The activity log alert was successfully deleted." + }, + "204": { + "description": "The activity log alert does not exist. It may have already been deleted." + }, + "default": { + "description": "An error occurred and the activity log alert could not be deleted.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "description": "Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.", + "operationId": "ActivityLogAlerts_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActivityLogAlertNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "activityLogAlertPatch", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActivityLogAlertPatchBody" }, - "patch": { - "description": "Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.", - "operationId": "ActivityLogAlerts_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActivityLogAlertNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "activityLogAlertPatch", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActivityLogAlertPatchBody" - }, - "description": "Parameters supplied to the operation." - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "An existing activity log alert was successfully updated.", - "schema": { - "$ref": "#/definitions/ActivityLogAlertResource" - } - } - }, - "x-ms-examples": { - "Patch an activity log alert": { - "$ref": "./examples/patchActivityLogAlert.json" - } - } + "description": "Parameters supplied to the operation." + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } - }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/activityLogAlerts": { - "get": { - "description": "Get a list of all activity log alerts in a subscription.", - "operationId": "ActivityLogAlerts_ListBySubscriptionId", - "x-ms-examples": { - "List activity log alerts": { - "$ref": "./examples/listActivityLogAlerts.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActivityLogAlertList" - } - }, - "default": { - "description": "An error occurred and the list of activity log alerts could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "200": { + "description": "An existing activity log alert was successfully updated.", + "schema": { + "$ref": "#/definitions/ActivityLogAlertResource" } + } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts": { - "get": { - "description": "Get a list of all activity log alerts in a resource group.", - "operationId": "ActivityLogAlerts_ListByResourceGroup", - "x-ms-examples": { - "List activity log alerts": { - "$ref": "./examples/listActivityLogAlerts.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActivityLogAlertList" - } - }, - "default": { - "description": "An error occurred and the list of activity log alerts could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } + "x-ms-examples": { + "Patch an activity log alert": { + "$ref": "./examples/patchActivityLogAlert.json" + } } + } }, - "definitions": { - "Resource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Azure resource name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" + "/subscriptions/{subscriptionId}/providers/microsoft.insights/activityLogAlerts": { + "get": { + "description": "Get a list of all activity log alerts in a subscription.", + "operationId": "ActivityLogAlerts_ListBySubscriptionId", + "x-ms-examples": { + "List activity log alerts": { + "$ref": "./examples/listActivityLogAlerts.json" + } }, - "ActivityLogAlertResource": { - "description": "An activity log alert resource.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActivityLogAlert", - "description": "The activity log alert properties of the resource." - } + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActivityLogAlertList" + } + }, + "default": { + "description": "An error occurred and the list of activity log alerts could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts": { + "get": { + "description": "Get a list of all activity log alerts in a resource group.", + "operationId": "ActivityLogAlerts_ListByResourceGroup", + "x-ms-examples": { + "List activity log alerts": { + "$ref": "./examples/listActivityLogAlerts.json" + } }, - "ActivityLogAlertList": { - "description": "A list of activity log alerts.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ActivityLogAlertResource" - }, - "description": "The list of activity log alerts." - }, - "nextLink": { - "type": "string", - "description": "Provides the link to retrieve the next set of elements." - } + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActivityLogAlertList" + } + }, + "default": { + "description": "An error occurred and the list of activity log alerts could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" }, - "ActivityLogAlert": { - "description": "An Azure activity log alert.", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item." - }, - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated." - }, - "condition": { - "$ref": "#/definitions/ActivityLogAlertAllOfCondition", - "description": "The condition that will cause this alert to activate." - }, - "actions": { - "$ref": "#/definitions/ActivityLogAlertActionList", - "description": "The actions that will activate when the condition is met." - }, - "description": { - "type": "string", - "description": "A description of this activity log alert." - } - }, - "required": [ - "scopes", - "condition", - "actions" - ] + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" }, - "ActivityLogAlertAllOfCondition": { - "properties": { - "allOf": { - "type": "array", - "items": { - "$ref": "#/definitions/ActivityLogAlertLeafCondition" - }, - "description": "The list of activity log alert conditions." - } - }, - "description": "An Activity Log alert condition that is met when all its member conditions are met.", - "required": [ - "allOf" - ] + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" }, - "ActivityLogAlertLeafCondition": { - "properties": { - "field": { - "type": "string", - "description": "The name of the field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties.'." - }, - "equals": { - "type": "string", - "description": "The field value will be compared to this value (case-insensitive) to determine if the condition is met." - } - }, - "description": "An Activity Log alert condition that is met by comparing an activity log field and value.", - "required": [ - "field", - "equals" - ] + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] }, - "ActivityLogAlertActionList": { - "description": "A list of activity log alert actions.", - "properties": { - "actionGroups": { - "type": "array", - "items": { - "$ref": "#/definitions/ActivityLogAlertActionGroup" - }, - "description": "The list of activity log alerts." - } - } + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "ActivityLogAlertResource": { + "description": "An activity log alert resource.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActivityLogAlert", + "description": "The activity log alert properties of the resource." + } + } + }, + "ActivityLogAlertList": { + "description": "A list of activity log alerts.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityLogAlertResource" + }, + "description": "The list of activity log alerts." }, - "ActivityLogAlertActionGroup": { - "description": "A pointer to an Azure Action Group.", - "properties": { - "actionGroupId": { - "type": "string", - "description": "The resourceId of the action group. This cannot be null or empty." - }, - "webhookProperties": { - "additionalProperties": { - "type": "string" - }, - "description": "the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload." - } - }, - "required": [ - "actionGroupId" - ] + "nextLink": { + "type": "string", + "description": "Provides the link to retrieve the next set of elements." + } + } + }, + "ActivityLogAlert": { + "description": "An Azure activity log alert.", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item." }, - "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" - } - } + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated." }, - "ActivityLogAlertPatchBody": { - "description": "An activity log alert object for the body of patch operations.", - "properties": { - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActivityLogAlertPatch", - "description": "The activity log alert settings for an update operation." - } - } + "condition": { + "$ref": "#/definitions/ActivityLogAlertAllOfCondition", + "description": "The condition that will cause this alert to activate." }, - "ActivityLogAlertPatch": { - "description": "An Azure activity log alert for patch operations.", - "properties": { - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated." - } - } + "actions": { + "$ref": "#/definitions/ActivityLogAlertActionList", + "description": "The actions that will activate when the condition is met." + }, + "description": { + "type": "string", + "description": "A description of this activity log alert." } + }, + "required": [ + "scopes", + "condition", + "actions" + ] }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription Id." + "ActivityLogAlertAllOfCondition": { + "properties": { + "allOf": { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityLogAlertLeafCondition" + }, + "description": "The list of activity log alert conditions." + } + }, + "description": "An Activity Log alert condition that is met when all its member conditions are met.", + "required": [ + "allOf" + ] + }, + "ActivityLogAlertLeafCondition": { + "properties": { + "field": { + "type": "string", + "description": "The name of the field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties.'." }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" + "equals": { + "type": "string", + "description": "The field value will be compared to this value (case-insensitive) to determine if the condition is met." + } + }, + "description": "An Activity Log alert condition that is met by comparing an activity log field and value.", + "required": [ + "field", + "equals" + ] + }, + "ActivityLogAlertActionList": { + "description": "A list of activity log alert actions.", + "properties": { + "actionGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityLogAlertActionGroup" + }, + "description": "The list of activity log alerts." + } + } + }, + "ActivityLogAlertActionGroup": { + "description": "A pointer to an Azure Action Group.", + "properties": { + "actionGroupId": { + "type": "string", + "description": "The resourceId of the action group. This cannot be null or empty." }, - "ActivityLogAlertNameParameter": { - "name": "activityLogAlertName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the activity log alert.", - "x-ms-parameter-location": "method" + "webhookProperties": { + "additionalProperties": { + "type": "string" + }, + "description": "the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload." + } + }, + "required": [ + "actionGroupId" + ] + }, + "ErrorResponse": { + "description": "Describes the format of Error response.", + "type": "object", + "properties": { + "code": { + "description": "Error code", + "type": "string" }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string" } + } + }, + "ActivityLogAlertPatchBody": { + "description": "An activity log alert object for the body of patch operations.", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActivityLogAlertPatch", + "description": "The activity log alert settings for an update operation." + } + } + }, + "ActivityLogAlertPatch": { + "description": "An Azure activity log alert for patch operations.", + "properties": { + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription Id." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ActivityLogAlertNameParameter": { + "name": "activityLogAlertName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the activity log alert.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." } + } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/createOrUpdateActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/createOrUpdateActionGroup.json index c061cee773df..a8de7b6b5531 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/createOrUpdateActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/createOrUpdateActionGroup.json @@ -1,213 +1,213 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2017-04-01", - "actionGroup": { - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com" - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" - } - ] + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2017-04-01", + "actionGroup": { + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com" + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" + } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled" + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" + } + ] } + } }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled" - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" - } - ] - } + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled" + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" } - }, - "201": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled" - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" - } - ] - } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/createOrUpdateActivityLogAlert.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/createOrUpdateActivityLogAlert.json index da116b2822ab..24993d51dde8 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/createOrUpdateActivityLogAlert.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/createOrUpdateActivityLogAlert.json @@ -1,121 +1,121 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-ActivityLogAlerts", - "activityLogAlertName": "SampleActivityLogAlert", - "api-version": "2017-04-01", - "activityLogAlert": { - "location": "Global", - "tags": { }, - "properties": { - "scopes": [ - "subscriptions/187f412d-1758-44d9-b052-169e2564721d" - ], - "enabled": true, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - }, - { - "field": "Level", - "equals": "Error" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { - "sampleWebhookProperty": "samplePropertyValue" - } - } - ] - }, - "description": "Sample activity log alert description" + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-ActivityLogAlerts", + "activityLogAlertName": "SampleActivityLogAlert", + "api-version": "2017-04-01", + "activityLogAlert": { + "location": "Global", + "tags": {}, + "properties": { + "scopes": [ + "subscriptions/187f412d-1758-44d9-b052-169e2564721d" + ], + "enabled": true, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + }, + { + "field": "Level", + "equals": "Error" } - } - }, - "responses": { - "200": { - "headers": { }, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", - "type": "Microsoft.Insights/ActivityLogAlerts", - "name": "SampleActivityLogAlert", - "location": "Global", - "tags": { }, - "properties": { - "scopes": [ - "subscriptions/187f412d-1758-44d9-b052-169e2564721d" - ], - "enabled": true, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - }, - { - "field": "Level", - "equals": "Error" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { - "sampleWebhookProperty": "samplePropertyValue" - } - } - ] - }, - "description": "Sample activity log alert description" - } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": { + "sampleWebhookProperty": "samplePropertyValue" + } } + ] }, - "201": { - "headers": { }, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", - "type": "Microsoft.Insights/ActivityLogAlerts", - "name": "SampleActivityLogAlert", - "location": "Global", - "tags": { }, - "properties": { - "scopes": [ - "subscriptions/187f412d-1758-44d9-b052-169e2564721d" - ], - "enabled": true, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - }, - { - "field": "Level", - "equals": "Error" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { - "sampleWebhookProperty": "samplePropertyValue" - } - } - ] - }, - "description": "Sample activity log alert description" + "description": "Sample activity log alert description" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", + "type": "Microsoft.Insights/ActivityLogAlerts", + "name": "SampleActivityLogAlert", + "location": "Global", + "tags": {}, + "properties": { + "scopes": [ + "subscriptions/187f412d-1758-44d9-b052-169e2564721d" + ], + "enabled": true, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + }, + { + "field": "Level", + "equals": "Error" + } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": { + "sampleWebhookProperty": "samplePropertyValue" } - } + } + ] + }, + "description": "Sample activity log alert description" + } + } + }, + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", + "type": "Microsoft.Insights/ActivityLogAlerts", + "name": "SampleActivityLogAlert", + "location": "Global", + "tags": {}, + "properties": { + "scopes": [ + "subscriptions/187f412d-1758-44d9-b052-169e2564721d" + ], + "enabled": true, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + }, + { + "field": "Level", + "equals": "Error" + } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": { + "sampleWebhookProperty": "samplePropertyValue" + } + } + ] + }, + "description": "Sample activity log alert description" } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/deleteActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/deleteActionGroup.json index c6e835cb2895..1bb82b3bccf3 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/deleteActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/deleteActionGroup.json @@ -1,18 +1,12 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2017-04-01" - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2017-04-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/deleteActivityLogAlert.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/deleteActivityLogAlert.json index 7a3fbf91c0c6..556d4b5b0247 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/deleteActivityLogAlert.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/deleteActivityLogAlert.json @@ -1,18 +1,12 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-ActivityLogAlerts", - "activityLogAlertName": "SampleActivityLogAlert", - "api-version": "2017-04-01" - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-ActivityLogAlerts", + "activityLogAlertName": "SampleActivityLogAlert", + "api-version": "2017-04-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/enableReceiver.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/enableReceiver.json index 65bd11c1c1fb..eb3878bf5c69 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/enableReceiver.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/enableReceiver.json @@ -1,21 +1,15 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2017-04-01", - "enableRequest": { - "receiverName": "John Doe's mobile" - } - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "409": { - "headers": {}, - "body": null - } + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2017-04-01", + "enableRequest": { + "receiverName": "John Doe's mobile" } -} \ No newline at end of file + }, + "responses": { + "200": {}, + "409": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/getActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/getActionGroup.json index 1066a62661e5..cc56b291979e 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/getActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/getActionGroup.json @@ -1,56 +1,56 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2017-04-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Disabled" - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Disabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ] - } + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Disabled" } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Disabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/getActivityLogAlert.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/getActivityLogAlert.json index 7172f109e8fe..e468e240dbf4 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/getActivityLogAlert.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/getActivityLogAlert.json @@ -1,49 +1,49 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-ActivityLogAlerts", - "activityLogAlertName": "SampleActivityLogAlert", - "api-version": "2017-04-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", - "type": "Microsoft.Insights/ActivityLogAlerts", - "name": "SampleActivityLogAlert", - "location": "Global", - "tags": {}, - "properties": { - "scopes": [ - "subscriptions/187f412d-1758-44d9-b052-169e2564721d" - ], - "enabled": true, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - }, - { - "field": "Level", - "equals": "Error" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { - "sampleWebhookProperty": "samplePropertyValue" - } - } - ] - }, - "description": "Sample activity log alert description" + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-ActivityLogAlerts", + "activityLogAlertName": "SampleActivityLogAlert", + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", + "type": "Microsoft.Insights/ActivityLogAlerts", + "name": "SampleActivityLogAlert", + "location": "Global", + "tags": {}, + "properties": { + "scopes": [ + "subscriptions/187f412d-1758-44d9-b052-169e2564721d" + ], + "enabled": true, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + }, + { + "field": "Level", + "equals": "Error" + } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": { + "sampleWebhookProperty": "samplePropertyValue" } - } + } + ] + }, + "description": "Sample activity log alert description" } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/listActionGroups.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/listActionGroups.json index c8e9e4901dd5..89044838c7fb 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/listActionGroups.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/listActionGroups.json @@ -1,86 +1,86 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "api-version": "2017-04-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Disabled" - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Disabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ] - } - }, - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup2", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup2", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample2", - "enabled": false, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - } - ], - "smsReceivers": [ - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [] - } - } - ] + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Disabled" + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Disabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ] } - } + }, + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup2", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup2", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample2", + "enabled": false, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + } + ], + "smsReceivers": [ + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [] + } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/listActivityLogAlerts.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/listActivityLogAlerts.json index ae53a7ca9351..3d92803d2bf4 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/listActivityLogAlerts.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/listActivityLogAlerts.json @@ -1,81 +1,81 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-ActivityLogAlerts", - "api-version": "2017-04-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", - "type": "Microsoft.Insights/ActivityLogAlerts", - "name": "SampleActivityLogAlert", - "location": "Global", - "tags": {}, - "properties": { - "scopes": [ - "subscriptions/187f412d-1758-44d9-b052-169e2564721d" - ], - "enabled": true, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - }, - { - "field": "Level", - "equals": "Error" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { - "sampleWebhookProperty": "samplePropertyValue" - } - } - ] - }, - "description": "Sample activity log alert description" - } - }, - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert2", - "type": "Microsoft.Insights/ActivityLogAlerts", - "name": "SampleActivityLogAlert2", - "location": "Global", - "tags": {}, - "properties": { - "scopes": [ - "subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts" - ], - "enabled": true, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { } - } - ] - } - } + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-ActivityLogAlerts", + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", + "type": "Microsoft.Insights/ActivityLogAlerts", + "name": "SampleActivityLogAlert", + "location": "Global", + "tags": {}, + "properties": { + "scopes": [ + "subscriptions/187f412d-1758-44d9-b052-169e2564721d" + ], + "enabled": true, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + }, + { + "field": "Level", + "equals": "Error" + } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": { + "sampleWebhookProperty": "samplePropertyValue" } + } + ] + }, + "description": "Sample activity log alert description" + } + }, + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert2", + "type": "Microsoft.Insights/ActivityLogAlerts", + "name": "SampleActivityLogAlert2", + "location": "Global", + "tags": {}, + "properties": { + "scopes": [ + "subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts" + ], + "enabled": true, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": {} + } ] + } } - } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/patchActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/patchActionGroup.json index 1175ff17126e..855c3ef1cb5f 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/patchActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/patchActionGroup.json @@ -1,62 +1,68 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2017-04-01", - "actionGroupPatch": { - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "enabled": false + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2017-04-01", + "actionGroupPatch": { + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "enabled": false + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled" } - } - }, - "responses": { - "200": { - "headers": { }, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled" - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ] - } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/patchActivityLogAlert.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/patchActivityLogAlert.json index 96fada36985a..0b207b8ff409 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/patchActivityLogAlert.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/patchActivityLogAlert.json @@ -1,55 +1,61 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-ActivityLogAlerts", - "activityLogAlertName": "SampleActivityLogAlert", - "api-version": "2017-03-01-preview", - "activityLogAlertPatch": { - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "enabled": false - } - } - }, - "responses": { - "200": { - "headers": { }, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", - "type": "Microsoft.Insights/ActivityLogAlerts", - "name": "SampleActivityLogAlert", - "location": "Global", - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "scopes": [ - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d" - ], - "enabled": false, - "condition": { - "allOf": [ - { - "field": "Category", - "equals": "Administrative" - }, - { - "field": "Level", - "equals": "Error" - } - ] - }, - "actions": { - "actionGroups": [ - { - "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", - "webhookProperties": { - "sampleWebhookProperty": "samplePropertyValue" - } - } - ] - }, - "description": "Sample activity log alert description" + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-ActivityLogAlerts", + "activityLogAlertName": "SampleActivityLogAlert", + "api-version": "2017-03-01-preview", + "activityLogAlertPatch": { + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "enabled": false + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActivityLogAlerts/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlert", + "type": "Microsoft.Insights/ActivityLogAlerts", + "name": "SampleActivityLogAlert", + "location": "Global", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "scopes": [ + "/subscriptions/187f412d-1758-44d9-b052-169e2564721d" + ], + "enabled": false, + "condition": { + "allOf": [ + { + "field": "Category", + "equals": "Administrative" + }, + { + "field": "Level", + "equals": "Error" + } + ] + }, + "actions": { + "actionGroups": [ + { + "actionGroupId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup", + "webhookProperties": { + "sampleWebhookProperty": "samplePropertyValue" } - } + } + ] + }, + "description": "Sample activity log alert description" } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetric.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetric.json index e4577210e0fa..4f9b0f06a527 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetric.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetric.json @@ -1,98 +1,98 @@ { - "parameters": { - "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", + "parameters": { + "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", + "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "metric": "BlobCapacity", + "metricnamespace": "Microsoft.Storage/storageAccounts/blobServices", + "$filter": "BlobType eq '*'", + "top": 3, + "orderby": "Average asc", + "aggregation": "Average,count", + "interval": "PT1M", + "api-version": "2018-01-01" + }, + "responses": { + "200": { + "body": { + "cost": 0, "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "metric": "BlobCapacity", - "metricnamespace": "Microsoft.Storage/storageAccounts/blobServices", - "$filter": "BlobType eq '*'", - "top": 3, - "orderby": "Average asc", - "aggregation": "Average,count", "interval": "PT1M", - "api-version": "2018-01-01" - }, - "responses": { - "200": { - "body": { - "cost": 0, - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "interval": "PT1M", - "namespace": "Microsoft.Storage/storageAccounts/blobServices", - "resourceregion": "eastus2", - "value": [ - { - "id": "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity", - "type": "Microsoft.Insights/metrics", - "name": { - "value": "BlobCapacity", - "localizedValue": "Blob Capacity" + "namespace": "Microsoft.Storage/storageAccounts/blobServices", + "resourceregion": "eastus2", + "value": [ + { + "id": "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity", + "type": "Microsoft.Insights/metrics", + "name": { + "value": "BlobCapacity", + "localizedValue": "Blob Capacity" + }, + "unit": "Bytes", + "timeseries": [ + { + "metadatavalues": [ + { + "name": { + "value": "blobtype", + "localizedValue": "blobtype" + }, + "value": "PageBlob" + } + ], + "data": [ + { + "timeStamp": "2017-04-14T02:20:00Z", + "count": 0.0 + }, + { + "timeStamp": "2017-04-14T02:21:00Z", + "count": 0.0 + }, + { + "timeStamp": "2017-04-14T02:22:00Z", + "count": 0.0 }, - "unit": "Bytes", - "timeseries": [ - { - "metadatavalues": [ - { - "name": { - "value": "blobtype", - "localizedValue": "blobtype" - }, - "value": "PageBlob" - } - ], - "data": [ - { - "timeStamp": "2017-04-14T02:20:00Z", - "count": 0.0 - }, - { - "timeStamp": "2017-04-14T02:21:00Z", - "count": 0.0 - }, - { - "timeStamp": "2017-04-14T02:22:00Z", - "count": 0.0 - }, - { - "timeStamp": "2017-04-14T02:23:00Z", - "count": 1.0, - "average": 0.0 - } - ] + { + "timeStamp": "2017-04-14T02:23:00Z", + "count": 1.0, + "average": 0.0 + } + ] + }, + { + "metadatavalues": [ + { + "name": { + "value": "blobtype", + "localizedValue": "blobtype" }, - { - "metadatavalues": [ - { - "name": { - "value": "blobtype", - "localizedValue": "blobtype" - }, - "value": "BlockBlob" - } - ], - "data": [ - { - "timeStamp": "2017-04-14T02:20:00Z", - "count": 0.0 - }, - { - "timeStamp": "2017-04-14T02:21:00Z", - "count": 0.0 - }, - { - "timeStamp": "2017-04-14T02:22:00Z", - "count": 0.0 - }, - { - "timeStamp": "2017-04-14T02:23:00Z", - "count": 1.0, - "average": 245.0 - } - ] - } - ] - } - ] - } - } + "value": "BlockBlob" + } + ], + "data": [ + { + "timeStamp": "2017-04-14T02:20:00Z", + "count": 0.0 + }, + { + "timeStamp": "2017-04-14T02:21:00Z", + "count": 0.0 + }, + { + "timeStamp": "2017-04-14T02:22:00Z", + "count": 0.0 + }, + { + "timeStamp": "2017-04-14T02:23:00Z", + "count": 1.0, + "average": 245.0 + } + ] + } + ] + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitions.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitions.json index 5f49d369c758..6b07e32cb0c9 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitions.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitions.json @@ -1,928 +1,975 @@ { - "parameters": { - "resourceUri": "subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions", - "api-version": "2018-01-01", - "metricnamespace": "Microsoft.Web/sites" - }, - "responses": { - "200": { - "body": - { - "value": [{ - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/CpuTime", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "CpuTime", - "localizedValue": "CPU Time" - }, - "isDimensionRequired": false, - "unit": "Seconds", - "primaryAggregationType": "Total", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Requests", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "Requests", - "localizedValue": "Requests" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesReceived", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "BytesReceived", - "localizedValue": "Data In" - }, - "isDimensionRequired": false, - "unit": "Bytes", - "primaryAggregationType": "Total", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesSent", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "BytesSent", - "localizedValue": "Data Out" - }, - "isDimensionRequired": false, - "unit": "Bytes", - "primaryAggregationType": "Total", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http101", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "Http101", - "localizedValue": "Http 101" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http2xx", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "Http2xx", - "localizedValue": "Http 2xx" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http3xx", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "Http3xx", - "localizedValue": "Http 3xx" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http401", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "Http401", - "localizedValue": "Http 401" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http403", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "Http403", - "localizedValue": "Http 403" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http404", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "Http404", - "localizedValue": "Http 404" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http406", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "Http406", - "localizedValue": "Http 406" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http4xx", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "Http4xx", - "localizedValue": "Http 4xx" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http5xx", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "Http5xx", - "localizedValue": "Http Server Errors" - }, - "isDimensionRequired": false, - "unit": "Count", - "primaryAggregationType": "Total", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/MemoryWorkingSet", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "MemoryWorkingSet", - "localizedValue": "Memory working set" - }, - "isDimensionRequired": false, - "unit": "Bytes", - "primaryAggregationType": "Average", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageMemoryWorkingSet", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "AverageMemoryWorkingSet", - "localizedValue": "Average memory working set" - }, - "isDimensionRequired": false, - "unit": "Bytes", - "primaryAggregationType": "Average", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - }, { - "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageResponseTime", - "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", - "namespace": "Microsoft.Web/sites", - "name": { - "value": "AverageResponseTime", - "localizedValue": "Average Response Time" - }, - "isDimensionRequired": false, - "unit": "Seconds", - "primaryAggregationType": "Average", - "supportedAggregationTypes": [ - "None", - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metricAvailabilities": [{ - "timeGrain": "PT1M", - "retention": "P93D" - }, - { - "timeGrain": "PT5M", - "retention": "P93D" - }, - { - "timeGrain": "PT15M", - "retention": "P93D" - }, - { - "timeGrain": "PT30M", - "retention": "P93D" - }, - { - "timeGrain": "PT1H", - "retention": "P93D" - }, - { - "timeGrain": "PT6H", - "retention": "P93D" - }, - { - "timeGrain": "PT12H", - "retention": "P93D" - }, - { - "timeGrain": "P1D", - "retention": "P93D" - } - ], - "dimensions": [{ - "value": "Instance", - "localizedValue": "Instance" - } - ] - } - ] - } - } + "parameters": { + "resourceUri": "subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions", + "api-version": "2018-01-01", + "metricnamespace": "Microsoft.Web/sites" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/CpuTime", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "CpuTime", + "localizedValue": "CPU Time" + }, + "isDimensionRequired": false, + "unit": "Seconds", + "primaryAggregationType": "Total", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Requests", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "Requests", + "localizedValue": "Requests" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesReceived", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "BytesReceived", + "localizedValue": "Data In" + }, + "isDimensionRequired": false, + "unit": "Bytes", + "primaryAggregationType": "Total", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesSent", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "BytesSent", + "localizedValue": "Data Out" + }, + "isDimensionRequired": false, + "unit": "Bytes", + "primaryAggregationType": "Total", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http101", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "Http101", + "localizedValue": "Http 101" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http2xx", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "Http2xx", + "localizedValue": "Http 2xx" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http3xx", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "Http3xx", + "localizedValue": "Http 3xx" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http401", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "Http401", + "localizedValue": "Http 401" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http403", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "Http403", + "localizedValue": "Http 403" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http404", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "Http404", + "localizedValue": "Http 404" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http406", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "Http406", + "localizedValue": "Http 406" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http4xx", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "Http4xx", + "localizedValue": "Http 4xx" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http5xx", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "Http5xx", + "localizedValue": "Http Server Errors" + }, + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Total", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/MemoryWorkingSet", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "MemoryWorkingSet", + "localizedValue": "Memory working set" + }, + "isDimensionRequired": false, + "unit": "Bytes", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageMemoryWorkingSet", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "AverageMemoryWorkingSet", + "localizedValue": "Average memory working set" + }, + "isDimensionRequired": false, + "unit": "Bytes", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + }, + { + "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageResponseTime", + "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", + "namespace": "Microsoft.Web/sites", + "name": { + "value": "AverageResponseTime", + "localizedValue": "Average Response Time" + }, + "isDimensionRequired": false, + "unit": "Seconds", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "None", + "Average", + "Minimum", + "Maximum", + "Total", + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "Instance", + "localizedValue": "Instance" + } + ] + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricMetadata.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricMetadata.json index eb929a0ee350..2d8a21817013 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricMetadata.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricMetadata.json @@ -1,59 +1,59 @@ { - "parameters": { + "parameters": { + "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "metric": "BlobCapacity", + "metricnamespace": "Microsoft.Storage/storageAccounts/blobServices", + "$filter": "BlobType eq '*'", + "top": 3, + "orderby": "Average asc", + "aggregation": "Average,count", + "interval": "PT1M", + "resulttype": "metadata", + "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", + "api-version": "2018-01-01" + }, + "responses": { + "200": { + "body": { "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "metric": "BlobCapacity", - "metricnamespace": "Microsoft.Storage/storageAccounts/blobServices", - "$filter": "BlobType eq '*'", - "top": 3, - "orderby": "Average asc", - "aggregation": "Average,count", - "interval": "PT1M", - "resulttype": "metadata", - "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", - "api-version": "2018-01-01" - }, - "responses": { - "200": { - "body": { - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "namespace": "Microsoft.Storage/storageAccounts/blobServices", - "resourceregion": "eastus2", - "value": [ - { - "id": "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity", - "type": "Microsoft.Insights/metrics", - "name": { - "value": "BlobCapacity", - "localizedValue": "Blob Capacity" - }, - "unit": "Bytes", - "timeseries": [ - { - "metadatavalues": [ - { - "name": { - "value": "blobtype", - "localizedValue": "blobtype" - }, - "value": "BlockBlob" - } - ] - }, - { - "metadatavalues": [ - { - "name": { - "value": "blobtype", - "localizedValue": "blobtype" - }, - "value": "PageBlob" - } - ] - } - ] - } - ] - } - } + "namespace": "Microsoft.Storage/storageAccounts/blobServices", + "resourceregion": "eastus2", + "value": [ + { + "id": "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity", + "type": "Microsoft.Insights/metrics", + "name": { + "value": "BlobCapacity", + "localizedValue": "Blob Capacity" + }, + "unit": "Bytes", + "timeseries": [ + { + "metadatavalues": [ + { + "name": { + "value": "blobtype", + "localizedValue": "blobtype" + }, + "value": "BlockBlob" + } + ] + }, + { + "metadatavalues": [ + { + "name": { + "value": "blobtype", + "localizedValue": "blobtype" + }, + "value": "PageBlob" + } + ] + } + ] + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json index 8a13c0cb6a7f..853fae62c587 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json @@ -72,14 +72,18 @@ "nextLinkName": null }, "x-ms-examples": { - "Get Metric Definitions without filter": { "$ref": "./examples/GetMetricDefinitions.json" } + "Get Metric Definitions without filter": { + "$ref": "./examples/GetMetricDefinitions.json" + } } } } }, "definitions": { "LocalizableString": { - "required": [ "value" ], + "required": [ + "value" + ], "properties": { "value": { "type": "string", @@ -119,30 +123,33 @@ "Percent", "MilliSeconds", "ByteSeconds", - "Unspecified" + "Unspecified", + "Cores", + "MilliCores", + "NanoCores", + "BitsPerSecond" ], "x-ms-enum": { "name": "Unit", "modelAsString": false } }, - "AggregationType": - { + "AggregationType": { "type": "string", "description": "the aggregation type of the metric.", "enum": [ - "None", - "Average", - "Count", - "Minimum", - "Maximum", - "Total" + "None", + "Average", + "Count", + "Minimum", + "Maximum", + "Total" ], "x-ms-enum": { - "name": "AggregationType", - "modelAsString": false + "name": "AggregationType", + "modelAsString": false } - }, + }, "MetricDefinition": { "properties": { "isDimensionRequired": { @@ -169,7 +176,7 @@ "$ref": "#/definitions/AggregationType", "description": "the primary aggregation type value defining how to use the values for display." }, - "supportedAggregationTypes": { + "supportedAggregationTypes": { "type": "array", "items": { "$ref": "#/definitions/AggregationType" @@ -207,7 +214,9 @@ "description": "the values for the metric definitions." } }, - "required": ["value"], + "required": [ + "value" + ], "description": "Represents collection of metric definitions." }, "ErrorResponse": { @@ -251,4 +260,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json index 2aba4142c955..791acec68765 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json @@ -98,15 +98,21 @@ }, "x-ms-odata": "#/definitions/MetadataValue", "x-ms-examples": { - "Get Metric for data": { "$ref": "./examples/GetMetric.json" }, - "Get Metric for metadata": { "$ref": "./examples/GetMetricMetadata.json" } + "Get Metric for data": { + "$ref": "./examples/GetMetric.json" + }, + "Get Metric for metadata": { + "$ref": "./examples/GetMetricMetadata.json" + } } } } }, "definitions": { "LocalizableString": { - "required": [ "value" ], + "required": [ + "value" + ], "properties": { "value": { "type": "string", @@ -131,7 +137,11 @@ "Percent", "MilliSeconds", "ByteSeconds", - "Unspecified" + "Unspecified", + "Cores", + "MilliCores", + "NanoCores", + "BitsPerSecond" ], "x-ms-enum": { "name": "Unit", @@ -139,7 +149,9 @@ } }, "MetricValue": { - "required": [ "timeStamp" ], + "required": [ + "timeStamp" + ], "properties": { "timeStamp": { "type": "string", @@ -167,8 +179,8 @@ "description": "the sum of all of the values in the time range." }, "count": { - "type": "integer", - "format": "int64", + "type": "number", + "format": "double", "description": "the number of samples in the time range. Can be used to determine the number of values that contributed to the average value." } }, @@ -235,7 +247,10 @@ "description": "the value of the collection." } }, - "required": [ "timespan", "value" ], + "required": [ + "timespan", + "value" + ], "description": "The response to a metrics query." }, "Metric": { @@ -265,7 +280,13 @@ "description": "the time series returned when a data query is performed." } }, - "required": [ "id", "type", "name", "unit", "timeseries" ], + "required": [ + "id", + "type", + "name", + "unit", + "timeseries" + ], "description": "The result data of a query." }, "TimeSeriesElement": { @@ -381,4 +402,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/actionGroups_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/actionGroups_API.json index 78580130da79..d1966662068f 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/actionGroups_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/actionGroups_API.json @@ -1,808 +1,808 @@ { - "swagger": "2.0", - "info": { - "title": "Azure Action Groups API", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2018-03-01" + "swagger": "2.0", + "info": { + "title": "Azure Action Groups API", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] + "version": "2018-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.insights/actionGroups/{actionGroupName}": { + "put": { + "description": "Create a new action group or update an existing one.", + "operationId": "ActionGroups_CreateOrUpdate", + "x-ms-examples": { + "Create or update an action group": { + "$ref": "./examples/createOrUpdateActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "name": "actionGroup", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActionGroupResource" + }, + "description": "The action group to create or use for the update." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "An existing action group was successfully updated.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "201": { + "description": "A new action group was successfully created.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "default": { + "description": "An error occurred and the action group could not be created or updated.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } - ], - "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" + }, + "get": { + "description": "Get an action group.", + "operationId": "ActionGroups_Get", + "x-ms-examples": { + "Get an action group": { + "$ref": "./examples/getActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "default": { + "description": "An error occurred and the action group could not be retrieved. 404: The action group does not exist.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}": { - "put": { - "description": "Create a new action group or update an existing one.", - "operationId": "ActionGroups_CreateOrUpdate", - "x-ms-examples": { - "Create or update an action group": { - "$ref": "./examples/createOrUpdateActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "name": "actionGroup", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActionGroupResource" - }, - "description": "The action group to create or use for the update." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "An existing action group was successfully updated.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "201": { - "description": "A new action group was successfully created.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "default": { - "description": "An error occurred and the action group could not be created or updated.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "get": { - "description": "Get an action group.", - "operationId": "ActionGroups_Get", - "x-ms-examples": { - "Get an action group": { - "$ref": "./examples/getActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "default": { - "description": "An error occurred and the action group could not be retrieved. 404: The action group does not exist.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "description": "Delete an action group.", - "operationId": "ActionGroups_Delete", - "x-ms-examples": { - "Delete an action group": { - "$ref": "./examples/deleteActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The action group was successfully deleted." - }, - "204": { - "description": "The action group does not exist. It may have already been deleted." - }, - "default": { - "description": "An error occurred and the action group could not be deleted.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "delete": { + "description": "Delete an action group.", + "operationId": "ActionGroups_Delete", + "x-ms-examples": { + "Delete an action group": { + "$ref": "./examples/deleteActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The action group was successfully deleted." + }, + "204": { + "description": "The action group does not exist. It may have already been deleted." + }, + "default": { + "description": "An error occurred and the action group could not be deleted.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "description": "Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.", + "operationId": "ActionGroups_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "actionGroupPatch", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActionGroupPatchBody" }, - "patch": { - "description": "Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.", - "operationId": "ActionGroups_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "actionGroupPatch", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActionGroupPatchBody" - }, - "description": "Parameters supplied to the operation." - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "An existing action group was successfully updated.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - } - }, - "x-ms-examples": { - "Patch an action group": { - "$ref": "./examples/patchActionGroup.json" - } - } + "description": "Parameters supplied to the operation." + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } - }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/actionGroups": { - "get": { - "description": "Get a list of all action groups in a subscription.", - "operationId": "ActionGroups_ListBySubscriptionId", - "x-ms-examples": { - "List action groups": { - "$ref": "./examples/listActionGroups.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupList" - } - }, - "default": { - "description": "An error occurred and the list of action groups could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "200": { + "description": "An existing action group was successfully updated.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" } + } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups": { - "get": { - "description": "Get a list of all action groups in a resource group.", - "operationId": "ActionGroups_ListByResourceGroup", - "x-ms-examples": { - "List action groups": { - "$ref": "./examples/listActionGroups.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupList" - } - }, - "default": { - "description": "An error occurred and the list of action groups could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } + "x-ms-examples": { + "Patch an action group": { + "$ref": "./examples/patchActionGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/microsoft.insights/actionGroups": { + "get": { + "description": "Get a list of all action groups in a subscription.", + "operationId": "ActionGroups_ListBySubscriptionId", + "x-ms-examples": { + "List action groups": { + "$ref": "./examples/listActionGroups.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}/subscribe": { - "post": { - "description": "Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.", - "operationId": "ActionGroups_EnableReceiver", - "x-ms-examples": { - "Enable the receiver": { - "$ref": "./examples/enableReceiver.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "name": "enableRequest", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/EnableRequest" - }, - "description": "The receiver to re-enable." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The receiver was successfully enabled." - }, - "409": { - "description": "The receiver is already enabled in the action group." - }, - "default": { - "description": "An error occurred and the receiver could not be enabled, e.g.: 404: The action group was not found or no matching receiver was found in the action group.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupList" } + }, + "default": { + "description": "An error occurred and the list of action groups could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } + } }, - "definitions": { - "Resource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Azure resource name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" - }, - "ActionGroupResource": { - "description": "An action group resource.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActionGroup", - "description": "The action groups properties of the resource." - } - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups": { + "get": { + "description": "Get a list of all action groups in a resource group.", + "operationId": "ActionGroups_ListByResourceGroup", + "x-ms-examples": { + "List action groups": { + "$ref": "./examples/listActionGroups.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null }, - "ActionGroupList": { - "description": "A list of action groups.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionGroupResource" - }, - "description": "The list of action groups." - }, - "nextLink": { - "type": "string", - "description": "Provides the link to retrieve the next set of elements." - } + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupList" } + }, + "default": { + "description": "An error occurred and the list of action groups could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}/subscribe": { + "post": { + "description": "Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.", + "operationId": "ActionGroups_EnableReceiver", + "x-ms-examples": { + "Enable the receiver": { + "$ref": "./examples/enableReceiver.json" + } }, - "ActionGroup": { - "description": "An Azure action group.", - "properties": { - "groupShortName": { - "type": "string", - "maxLength": 12, - "description": "The short name of the action group. This will be used in SMS messages." - }, - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." - }, - "emailReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/EmailReceiver" - }, - "description": "The list of email receivers that are part of this action group." - }, - "smsReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/SmsReceiver" - }, - "description": "The list of SMS receivers that are part of this action group." - }, - "webhookReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/WebhookReceiver" - }, - "description": "The list of webhook receivers that are part of this action group." - }, - "itsmReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/ItsmReceiver" - }, - "description": "The list of ITSM receivers that are part of this action group." - }, - "azureAppPushReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureAppPushReceiver" - }, - "description": "The list of AzureAppPush receivers that are part of this action group." - }, - "automationRunbookReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AutomationRunbookReceiver" - }, - "description": "The list of AutomationRunbook receivers that are part of this action group." - }, - "voiceReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceReceiver" - }, - "description": "The list of voice receivers that are part of this action group." - }, - "logicAppReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/LogicAppReceiver" - }, - "description": "The list of logic app receivers that are part of this action group." - }, - "azureFunctionReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureFunctionReceiver" - }, - "description": "The list of azure function receivers that are part of this action group." - } - }, - "required": [ - "groupShortName", - "enabled" - ] - }, - "EmailReceiver": { - "description": "An email receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the email receiver. Names must be unique across all receivers within an action group." - }, - "emailAddress": { - "type": "string", - "description": "The email address of this receiver." - }, - "status": { - "readOnly": true, - "$ref": "#/definitions/ReceiverStatus", - "description": "The receiver status of the e-mail." - } - }, - "required": [ - "name", - "emailAddress" - ] - }, - "SmsReceiver": { - "description": "An SMS receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." - }, - "countryCode": { - "type": "string", - "description": "The country code of the SMS receiver." - }, - "phoneNumber": { - "type": "string", - "description": "The phone number of the SMS receiver." - }, - "status": { - "readOnly": true, - "$ref": "#/definitions/ReceiverStatus", - "description": "The status of the receiver." - } - }, - "required": [ - "name", - "countryCode", - "phoneNumber" - ] - }, - "WebhookReceiver": { - "description": "A webhook receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." - }, - "serviceUri": { - "type": "string", - "description": "The URI where webhooks should be sent." - } - }, - "required": [ - "name", - "serviceUri" - ] - }, - "ItsmReceiver": { - "description": "An Itsm receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." - }, - "workspaceId": { - "type": "string", - "description": "OMS LA instance identifier." - }, - "connectionId": { - "type": "string", - "description": "Unique identification of ITSM connection among multiple defined in above workspace." - }, - "ticketConfiguration": { - "type": "string", - "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." - }, - "region": { - "type": "string", - "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" - } - }, - "required": [ - "name", - "workspaceId", - "connectionId", - "ticketConfiguration", - "region" - ] - }, - "AzureAppPushReceiver": { - "description": "The Azure mobile App push notification receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." - }, - "emailAddress": { - "type": "string", - "description": "The email address registered for the Azure mobile app." - } - }, - "required": [ - "name", - "emailAddress" - ] - }, - "AutomationRunbookReceiver": { - "description": "The Azure Automation Runbook notification receiver.", - "properties": { - "automationAccountId": { - "type": "string", - "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." - }, - "runbookName": { - "type": "string", - "description": "The name for this runbook." - }, - "webhookResourceId": { - "type": "string", - "description": "The resource id for webhook linked to this runbook." - }, - "isGlobalRunbook": { - "type": "boolean", - "description": "Indicates whether this instance is global runbook." - }, - "name": { - "type": "string", - "description": "Indicates name of the webhook." - }, - "serviceUri": { - "type": "string", - "description": "The URI where webhooks should be sent." - } - }, - "required": [ - "automationAccountId", - "runbookName", - "webhookResourceId", - "isGlobalRunbook" - ] - }, - "VoiceReceiver": { - "description": "A voice receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the voice receiver. Names must be unique across all receivers within an action group." - }, - "countryCode": { - "type": "string", - "description": "The country code of the voice receiver." - }, - "phoneNumber": { - "type": "string", - "description": "The phone number of the voice receiver." - } - }, - "required": [ - "name", - "countryCode", - "phoneNumber" - ] - }, - "LogicAppReceiver": { - "description": "A logic app receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the logic app receiver. Names must be unique across all receivers within an action group." - }, - "resourceId": { - "type": "string", - "description": "The azure resource id of the logic app receiver." - }, - "callbackUrl": { - "type": "string", - "description": "The callback url where http request sent to." - } - }, - "required": [ - "name", - "resourceId", - "callbackUrl" - ] - }, - "AzureFunctionReceiver": { - "description": "An azure function receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the azure function receiver. Names must be unique across all receivers within an action group." - }, - "functionAppResourceId": { - "type": "string", - "description": "The azure resource id of the function app." - }, - "functionName": { - "type": "string", - "description": "The function name in the function app." - }, - "httpTriggerUrl": { - "type": "string", - "description": "The http trigger url where http request sent to." - } - }, - "required": [ - "name", - "functionAppResourceId", - "functionName", - "httpTriggerUrl" - ] - }, - "ReceiverStatus": { - "type": "string", - "enum": [ - "NotSpecified", - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "ReceiverStatus", - "modelAsString": false - }, - "description": "Indicates the status of the receiver. Receivers that are not Enabled will not receive any communications." - }, - "EnableRequest": { - "description": "Describes a receiver that should be resubscribed.", - "properties": { - "receiverName": { - "type": "string", - "description": "The name of the receiver to resubscribe." - } + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "name": "enableRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EnableRequest" }, - "required": [ - "receiverName" - ] - }, - "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" - } + "description": "The receiver to re-enable." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The receiver was successfully enabled." + }, + "409": { + "description": "The receiver is already enabled in the action group." + }, + "default": { + "description": "An error occurred and the receiver could not be enabled, e.g.: 404: The action group was not found or no matching receiver was found in the action group.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" }, - "ActionGroupPatchBody": { - "description": "An action group object for the body of patch operations.", - "properties": { - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActionGroupPatch", - "description": "The action group settings for an update operation." - } - } + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" }, - "ActionGroupPatch": { - "description": "An Azure action group for patch operations.", - "properties": { - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated." - } - } + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription Id." + "ActionGroupResource": { + "description": "An action group resource.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActionGroup", + "description": "The action groups properties of the resource." + } + } + }, + "ActionGroupList": { + "description": "A list of action groups.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ActionGroupResource" + }, + "description": "The list of action groups." }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" + "nextLink": { + "type": "string", + "description": "Provides the link to retrieve the next set of elements." + } + } + }, + "ActionGroup": { + "description": "An Azure action group.", + "properties": { + "groupShortName": { + "type": "string", + "maxLength": 12, + "description": "The short name of the action group. This will be used in SMS messages." }, - "ActionGroupNameParameter": { - "name": "actionGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the action group.", - "x-ms-parameter-location": "method" + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." + "emailReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/EmailReceiver" + }, + "description": "The list of email receivers that are part of this action group." + }, + "smsReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/SmsReceiver" + }, + "description": "The list of SMS receivers that are part of this action group." + }, + "webhookReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/WebhookReceiver" + }, + "description": "The list of webhook receivers that are part of this action group." + }, + "itsmReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/ItsmReceiver" + }, + "description": "The list of ITSM receivers that are part of this action group." + }, + "azureAppPushReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureAppPushReceiver" + }, + "description": "The list of AzureAppPush receivers that are part of this action group." + }, + "automationRunbookReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AutomationRunbookReceiver" + }, + "description": "The list of AutomationRunbook receivers that are part of this action group." + }, + "voiceReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceReceiver" + }, + "description": "The list of voice receivers that are part of this action group." + }, + "logicAppReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/LogicAppReceiver" + }, + "description": "The list of logic app receivers that are part of this action group." + }, + "azureFunctionReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFunctionReceiver" + }, + "description": "The list of azure function receivers that are part of this action group." + } + }, + "required": [ + "groupShortName", + "enabled" + ] + }, + "EmailReceiver": { + "description": "An email receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the email receiver. Names must be unique across all receivers within an action group." + }, + "emailAddress": { + "type": "string", + "description": "The email address of this receiver." + }, + "status": { + "readOnly": true, + "$ref": "#/definitions/ReceiverStatus", + "description": "The receiver status of the e-mail." + } + }, + "required": [ + "name", + "emailAddress" + ] + }, + "SmsReceiver": { + "description": "An SMS receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." + }, + "countryCode": { + "type": "string", + "description": "The country code of the SMS receiver." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the SMS receiver." + }, + "status": { + "readOnly": true, + "$ref": "#/definitions/ReceiverStatus", + "description": "The status of the receiver." } + }, + "required": [ + "name", + "countryCode", + "phoneNumber" + ] + }, + "WebhookReceiver": { + "description": "A webhook receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + } + }, + "required": [ + "name", + "serviceUri" + ] + }, + "ItsmReceiver": { + "description": "An Itsm receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." + }, + "workspaceId": { + "type": "string", + "description": "OMS LA instance identifier." + }, + "connectionId": { + "type": "string", + "description": "Unique identification of ITSM connection among multiple defined in above workspace." + }, + "ticketConfiguration": { + "type": "string", + "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." + }, + "region": { + "type": "string", + "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" + } + }, + "required": [ + "name", + "workspaceId", + "connectionId", + "ticketConfiguration", + "region" + ] + }, + "AzureAppPushReceiver": { + "description": "The Azure mobile App push notification receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." + }, + "emailAddress": { + "type": "string", + "description": "The email address registered for the Azure mobile app." + } + }, + "required": [ + "name", + "emailAddress" + ] + }, + "AutomationRunbookReceiver": { + "description": "The Azure Automation Runbook notification receiver.", + "properties": { + "automationAccountId": { + "type": "string", + "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." + }, + "runbookName": { + "type": "string", + "description": "The name for this runbook." + }, + "webhookResourceId": { + "type": "string", + "description": "The resource id for webhook linked to this runbook." + }, + "isGlobalRunbook": { + "type": "boolean", + "description": "Indicates whether this instance is global runbook." + }, + "name": { + "type": "string", + "description": "Indicates name of the webhook." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + } + }, + "required": [ + "automationAccountId", + "runbookName", + "webhookResourceId", + "isGlobalRunbook" + ] + }, + "VoiceReceiver": { + "description": "A voice receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the voice receiver. Names must be unique across all receivers within an action group." + }, + "countryCode": { + "type": "string", + "description": "The country code of the voice receiver." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the voice receiver." + } + }, + "required": [ + "name", + "countryCode", + "phoneNumber" + ] + }, + "LogicAppReceiver": { + "description": "A logic app receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the logic app receiver. Names must be unique across all receivers within an action group." + }, + "resourceId": { + "type": "string", + "description": "The azure resource id of the logic app receiver." + }, + "callbackUrl": { + "type": "string", + "description": "The callback url where http request sent to." + } + }, + "required": [ + "name", + "resourceId", + "callbackUrl" + ] + }, + "AzureFunctionReceiver": { + "description": "An azure function receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the azure function receiver. Names must be unique across all receivers within an action group." + }, + "functionAppResourceId": { + "type": "string", + "description": "The azure resource id of the function app." + }, + "functionName": { + "type": "string", + "description": "The function name in the function app." + }, + "httpTriggerUrl": { + "type": "string", + "description": "The http trigger url where http request sent to." + } + }, + "required": [ + "name", + "functionAppResourceId", + "functionName", + "httpTriggerUrl" + ] + }, + "ReceiverStatus": { + "type": "string", + "enum": [ + "NotSpecified", + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "ReceiverStatus", + "modelAsString": false + }, + "description": "Indicates the status of the receiver. Receivers that are not Enabled will not receive any communications." + }, + "EnableRequest": { + "description": "Describes a receiver that should be resubscribed.", + "properties": { + "receiverName": { + "type": "string", + "description": "The name of the receiver to resubscribe." + } + }, + "required": [ + "receiverName" + ] + }, + "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" + } + } + }, + "ActionGroupPatchBody": { + "description": "An action group object for the body of patch operations.", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActionGroupPatch", + "description": "The action group settings for an update operation." + } + } + }, + "ActionGroupPatch": { + "description": "An Azure action group for patch operations.", + "properties": { + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription Id." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ActionGroupNameParameter": { + "name": "actionGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the action group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." } + } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json index 627786075af7..1688705d89ce 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json @@ -19,11 +19,10 @@ "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "allOf": [ { - "criterionType":"StaticThresholdCriterion", + "criterionType": "StaticThresholdCriterion", "name": "High_CPU_80", "metricName": "\\Processor(_Total)\\% Processor Time", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" @@ -66,18 +65,17 @@ "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "allOf": [ { - "criterionType":"StaticThresholdCriterion", + "criterionType": "StaticThresholdCriterion", "name": "High_CPU_80", "metricName": "\\Processor(_Total)\\% Processor Time", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" } ] }, - "autoMitigate":false, + "autoMitigate": false, "actions": [ { "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", @@ -91,4 +89,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateActionGroup.json index 5fcb558496b9..da0f49efd6ab 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateActionGroup.json @@ -1,279 +1,279 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2018-03-01", - "actionGroup": { - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com" - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" - } - ], - "voiceReceivers": [ - { - "name": "Sample voice", - "countryCode": "1", - "phoneNumber": "1234567890" - } - ], - "logicAppReceivers": [ - { - "name": "Sample logicApp", - "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w" - } - ], - "azureFunctionReceivers": [ - { - "name": "Sample azureFunction", - "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - "functionName": "HttpTriggerCSharp1", - "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==" - } - ] + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2018-03-01", + "actionGroup": { + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com" + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" + } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" + } + ], + "voiceReceivers": [ + { + "name": "Sample voice", + "countryCode": "1", + "phoneNumber": "1234567890" + } + ], + "logicAppReceivers": [ + { + "name": "Sample logicApp", + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w" + } + ], + "azureFunctionReceivers": [ + { + "name": "Sample azureFunction", + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", + "functionName": "HttpTriggerCSharp1", + "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled" + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" + } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" + } + ], + "voiceReceivers": [ + { + "name": "Sample voice", + "countryCode": "1", + "phoneNumber": "1234567890" + } + ], + "logicAppReceivers": [ + { + "name": "Sample logicApp", + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w" } + ], + "azureFunctionReceivers": [ + { + "name": "Sample azureFunction", + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", + "functionName": "HttpTriggerCSharp1", + "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==" + } + ] } + } }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled" - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" - } - ], - "voiceReceivers": [ - { - "name": "Sample voice", - "countryCode": "1", - "phoneNumber": "1234567890" - } - ], - "logicAppReceivers": [ - { - "name": "Sample logicApp", - "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w" - } - ], - "azureFunctionReceivers": [ - { - "name": "Sample azureFunction", - "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - "functionName": "HttpTriggerCSharp1", - "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==" - } - ] - } + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled" + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" + } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" + } + ], + "voiceReceivers": [ + { + "name": "Sample voice", + "countryCode": "1", + "phoneNumber": "1234567890" + } + ], + "logicAppReceivers": [ + { + "name": "Sample logicApp", + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w" } - }, - "201": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled" - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" - } - ], - "voiceReceivers": [ - { - "name": "Sample voice", - "countryCode": "1", - "phoneNumber": "1234567890" - } - ], - "logicAppReceivers": [ - { - "name": "Sample logicApp", - "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w" - } - ], - "azureFunctionReceivers": [ - { - "name": "Sample azureFunction", - "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - "functionName": "HttpTriggerCSharp1", - "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==" - } - ] - } + ], + "azureFunctionReceivers": [ + { + "name": "Sample azureFunction", + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", + "functionName": "HttpTriggerCSharp1", + "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==" } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json index 35e8264e7de9..ee68510b86c7 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json @@ -1,12 +1,66 @@ { + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "gigtest", + "ruleName": "MetricAlertOnMultipleResources", + "api-version": "2018-03-01", "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "gigtest", - "ruleName": "MetricAlertOnMultipleResources", - "api-version": "2018-03-01", - "parameters": { + "location": "global", + "tags": {}, + "properties": { + "description": "This is the description of the rule1", + "severity": 3, + "enabled": true, + "scopes": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT15M", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", + "allOf": [ + { + "criterionType": "DynamicThresholdCriterion", + "name": "High_CPU_80", + "metricName": "Percentage CPU", + "metricNamespace": "microsoft.compute/virtualmachines", + "operator": "GreaterOrLessThan", + "timeAggregation": "Average", + "dimensions": [], + "alertSensitivity": "Medium", + "failingPeriods": { + "numberOfEvaluationPeriods": 4, + "minFailingPeriodsToAlert": 4 + } + } + ] + }, + "autoMitigate": false, + "actions": [ + { + "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", + "webhookProperties": { + "key11": "value11", + "key12": "value12" + } + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertOnMultipleResources", + "type": "Microsoft.Insights/metricAlerts", "location": "global", - "tags": {}, + "tags": { + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, "properties": { "description": "This is the description of the rule1", "severity": 3, @@ -17,8 +71,8 @@ ], "evaluationFrequency": "PT1M", "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", "criteria": { "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "allOf": [ @@ -32,8 +86,8 @@ "dimensions": [], "alertSensitivity": "Medium", "failingPeriods": { - "numberOfEvaluationPeriods": 4, - "minFailingPeriodsToAlert": 4 + "numberOfEvaluationPeriods": 4, + "minFailingPeriodsToAlert": 4 } } ] @@ -50,60 +104,6 @@ ] } } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertOnMultipleResources", - "type": "Microsoft.Insights/metricAlerts", - "location": "global", - "tags": { - "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" - }, - "properties": { - "description": "This is the description of the rule1", - "severity": 3, - "enabled": true, - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2" - ], - "evaluationFrequency": "PT1M", - "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", - "criteria": { - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - "allOf": [ - { - "criterionType": "DynamicThresholdCriterion", - "name": "High_CPU_80", - "metricName": "Percentage CPU", - "metricNamespace": "microsoft.compute/virtualmachines", - "operator": "GreaterOrLessThan", - "timeAggregation": "Average", - "dimensions": [], - "alertSensitivity": "Medium", - "failingPeriods": { - "numberOfEvaluationPeriods": 4, - "minFailingPeriodsToAlert": 4 - } - } - ] - }, - "autoMitigate":false, - "actions": [ - { - "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", - "webhookProperties": { - "key11": "value11", - "key12": "value12" - } - } - ] - } - } - } } } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertSingleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertSingleResource.json index 59765d180233..3fdd3df3ad4e 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertSingleResource.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertSingleResource.json @@ -1,12 +1,66 @@ { + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "gigtest", + "ruleName": "chiricutin", + "api-version": "2018-03-01", "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "gigtest", - "ruleName": "chiricutin", - "api-version": "2018-03-01", - "parameters": { + "location": "global", + "tags": {}, + "properties": { + "description": "This is the description of the rule1", + "severity": 3, + "enabled": true, + "scopes": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT15M", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", + "allOf": [ + { + "criterionType": "DynamicThresholdCriterion", + "name": "High_CPU_80", + "metricName": "Percentage CPU", + "metricNamespace": "microsoft.compute/virtualmachines", + "operator": "GreaterOrLessThan", + "timeAggregation": "Average", + "dimensions": [], + "alertSensitivity": "Medium", + "failingPeriods": { + "numberOfEvaluationPeriods": 4, + "minFailingPeriodsToAlert": 4 + }, + "ignoreDataBefore": "2019-04-04T21:00:00.000Z" + } + ] + }, + "autoMitigate": false, + "actions": [ + { + "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", + "webhookProperties": { + "key11": "value11", + "key12": "value12" + } + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/chiricutin", + "type": "Microsoft.Insights/metricAlerts", "location": "global", - "tags": {}, + "tags": { + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, "properties": { "description": "This is the description of the rule1", "severity": 3, @@ -16,8 +70,8 @@ ], "evaluationFrequency": "PT1M", "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", "criteria": { "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "allOf": [ @@ -31,8 +85,8 @@ "dimensions": [], "alertSensitivity": "Medium", "failingPeriods": { - "numberOfEvaluationPeriods": 4, - "minFailingPeriodsToAlert": 4 + "numberOfEvaluationPeriods": 4, + "minFailingPeriodsToAlert": 4 }, "ignoreDataBefore": "2019-04-04T21:00:00.000Z" } @@ -50,60 +104,6 @@ ] } } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/chiricutin", - "type": "Microsoft.Insights/metricAlerts", - "location": "global", - "tags": { - "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" - }, - "properties": { - "description": "This is the description of the rule1", - "severity": 3, - "enabled": true, - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme" - ], - "evaluationFrequency": "PT1M", - "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", - "criteria": { - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - "allOf": [ - { - "criterionType": "DynamicThresholdCriterion", - "name": "High_CPU_80", - "metricName": "Percentage CPU", - "metricNamespace": "microsoft.compute/virtualmachines", - "operator": "GreaterOrLessThan", - "timeAggregation": "Average", - "dimensions": [], - "alertSensitivity": "Medium", - "failingPeriods": { - "numberOfEvaluationPeriods": 4, - "minFailingPeriodsToAlert": 4 - }, - "ignoreDataBefore": "2019-04-04T21:00:00.000Z" - } - ] - }, - "autoMitigate":false, - "actions": [ - { - "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", - "webhookProperties": { - "key11": "value11", - "key12": "value12" - } - } - ] - } - } - } } - } \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertMultipleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertMultipleResource.json index fba5379d0fb2..50e3275420f9 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertMultipleResource.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertMultipleResource.json @@ -17,8 +17,8 @@ ], "evaluationFrequency": "PT1M", "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", "criteria": { "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "allOf": [ @@ -27,8 +27,7 @@ "name": "High_CPU_80", "metricName": "Percentage CPU", "metricNamespace": "microsoft.compute/virtualmachines", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" @@ -68,8 +67,8 @@ ], "evaluationFrequency": "PT1M", "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", "criteria": { "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "allOf": [ @@ -78,15 +77,14 @@ "name": "High_CPU_80", "metricName": "Percentage CPU", "metricNamespace": "microsoft.compute/virtualmachines", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" } ] }, - "autoMitigate":false, + "autoMitigate": false, "actions": [ { "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", @@ -100,4 +98,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertResourceGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertResourceGroup.json index 907f73e9c2f8..7b2bb11cd113 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertResourceGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertResourceGroup.json @@ -17,8 +17,8 @@ ], "evaluationFrequency": "PT1M", "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", "criteria": { "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "allOf": [ @@ -27,8 +27,7 @@ "name": "High_CPU_80", "metricName": "Percentage CPU", "metricNamespace": "microsoft.compute/virtualmachines", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" @@ -68,8 +67,8 @@ ], "evaluationFrequency": "PT1M", "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", "criteria": { "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "allOf": [ @@ -78,15 +77,14 @@ "name": "High_CPU_80", "metricName": "Percentage CPU", "metricNamespace": "microsoft.compute/virtualmachines", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" } ] }, - "autoMitigate":false, + "autoMitigate": false, "actions": [ { "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", @@ -100,4 +98,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSingleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSingleResource.json index c7aa4f165acf..4065627efa3f 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSingleResource.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSingleResource.json @@ -23,8 +23,7 @@ "criterionType": "StaticThresholdCriterion", "name": "High_CPU_80", "metricName": "\\Processor(_Total)\\% Processor Time", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" @@ -70,15 +69,14 @@ "criterionType": "StaticThresholdCriterion", "name": "High_CPU_80", "metricName": "\\Processor(_Total)\\% Processor Time", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" } ] }, - "autoMitigate":false, + "autoMitigate": false, "actions": [ { "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", @@ -92,4 +90,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSubscription.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSubscription.json index 09c9cf710d19..918d07dd4620 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSubscription.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSubscription.json @@ -16,8 +16,8 @@ ], "evaluationFrequency": "PT1M", "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", "criteria": { "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "allOf": [ @@ -26,8 +26,7 @@ "name": "High_CPU_80", "metricName": "Percentage CPU", "metricNamespace": "microsoft.compute/virtualmachines", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" @@ -66,8 +65,8 @@ ], "evaluationFrequency": "PT1M", "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", "criteria": { "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "allOf": [ @@ -76,15 +75,14 @@ "name": "High_CPU_80", "metricName": "Percentage CPU", "metricNamespace": "microsoft.compute/virtualmachines", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" } ] }, - "autoMitigate":false, + "autoMitigate": false, "actions": [ { "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", @@ -98,4 +96,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteActionGroup.json index ff8db9749d27..640ca0461fb3 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteActionGroup.json @@ -1,18 +1,12 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2018-03-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteMetricAlert.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteMetricAlert.json index 79076b517119..eb37fa3ff55f 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteMetricAlert.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteMetricAlert.json @@ -6,13 +6,7 @@ "api-version": "2018-03-01" }, "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/enableReceiver.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/enableReceiver.json index cb085170b440..c6357884cf12 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/enableReceiver.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/enableReceiver.json @@ -1,21 +1,15 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2018-03-01", - "enableRequest": { - "receiverName": "John Doe's mobile" - } - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "409": { - "headers": {}, - "body": null - } + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2018-03-01", + "enableRequest": { + "receiverName": "John Doe's mobile" } -} \ No newline at end of file + }, + "responses": { + "200": {}, + "409": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getActionGroup.json index a7573f481272..ccdf6dfa0e57 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getActionGroup.json @@ -1,56 +1,56 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Disabled" - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Disabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ] - } + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Disabled" } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Disabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json index 5ac5532e4c23..8869f07a8571 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json @@ -1,63 +1,63 @@ { - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "gigtest", - "ruleName": "MetricAlertOnMultipleResources", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertOnMultipleResources", - "type": "Microsoft.Insights/metricAlerts", - "location": "global", - "tags": { - "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" - }, - "properties": { - "description": "This is the description of the rule1", - "severity": 3, - "enabled": true, - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2" - ], - "evaluationFrequency": "PT1M", - "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", - "criteria": { - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - "allOf": [ - { - "criterionType": "DynamicThresholdCriterion", - "name": "High_CPU_80", - "metricName": "Percentage CPU", - "metricNamespace": "microsoft.compute/virtualmachines", - "operator": "GreaterOrLessThan", - "timeAggregation": "Average", - "dimensions": [], - "alertSensitivity": "Medium", - "failingPeriods": { - "numberOfEvaluationPeriods": 4, - "minFailingPeriodsToAlert": 4 - } - } - ] - }, - "autoMitigate": false, - "actions": [ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "gigtest", + "ruleName": "MetricAlertOnMultipleResources", + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertOnMultipleResources", + "type": "Microsoft.Insights/metricAlerts", + "location": "global", + "tags": { + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, + "properties": { + "description": "This is the description of the rule1", + "severity": 3, + "enabled": true, + "scopes": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT15M", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", + "allOf": [ { - "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", - "webhookProperties": { - "key11": "value11", - "key12": "value12" + "criterionType": "DynamicThresholdCriterion", + "name": "High_CPU_80", + "metricName": "Percentage CPU", + "metricNamespace": "microsoft.compute/virtualmachines", + "operator": "GreaterOrLessThan", + "timeAggregation": "Average", + "dimensions": [], + "alertSensitivity": "Medium", + "failingPeriods": { + "numberOfEvaluationPeriods": 4, + "minFailingPeriodsToAlert": 4 } } ] - } + }, + "autoMitigate": false, + "actions": [ + { + "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", + "webhookProperties": { + "key11": "value11", + "key12": "value12" + } + } + ] } } } - } \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertSingleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertSingleResource.json index 3434c835ef0e..54d46d2c1ac8 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertSingleResource.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertSingleResource.json @@ -1,61 +1,61 @@ { - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "gigtest", - "ruleName": "chiricutin", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/chiricutin", - "type": "Microsoft.Insights/metricAlerts", - "location": "global", - "tags": { - "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" - }, - "properties": { - "description": "This is the description of the rule1", - "severity": 3, - "enabled": true, - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme" - ], - "evaluationFrequency": "Pt1m", - "windowSize": "Pt15m", - "criteria": { - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - "allOf": [ - { - "criterionType": "DynamicThresholdCriterion", - "name": "High_CPU_80", - "metricName": "Percentage CPU", - "metricNamespace": "microsoft.compute/virtualmachines", - "operator": "GreaterOrLessThan", - "timeAggregation": "Average", - "dimensions": [], - "alertSensitivity": "Medium", - "failingPeriods": { - "numberOfEvaluationPeriods": 4, - "minFailingPeriodsToAlert": 4 - }, - "ignoreDataBefore": null - } - ] - }, - "autoMitigate": false, - "actions": [ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "gigtest", + "ruleName": "chiricutin", + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/chiricutin", + "type": "Microsoft.Insights/metricAlerts", + "location": "global", + "tags": { + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, + "properties": { + "description": "This is the description of the rule1", + "severity": 3, + "enabled": true, + "scopes": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme" + ], + "evaluationFrequency": "Pt1m", + "windowSize": "Pt15m", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", + "allOf": [ { - "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", - "webhookProperties": { - "key11": "value11", - "key12": "value12" - } + "criterionType": "DynamicThresholdCriterion", + "name": "High_CPU_80", + "metricName": "Percentage CPU", + "metricNamespace": "microsoft.compute/virtualmachines", + "operator": "GreaterOrLessThan", + "timeAggregation": "Average", + "dimensions": [], + "alertSensitivity": "Medium", + "failingPeriods": { + "numberOfEvaluationPeriods": 4, + "minFailingPeriodsToAlert": 4 + }, + "ignoreDataBefore": null } ] - } + }, + "autoMitigate": false, + "actions": [ + { + "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", + "webhookProperties": { + "key11": "value11", + "key12": "value12" + } + } + ] } } } - } \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertMultipleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertMultipleResource.json index 789b5b34b10e..853015d49de3 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertMultipleResource.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertMultipleResource.json @@ -25,8 +25,8 @@ ], "evaluationFrequency": "PT1M", "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", "criteria": { "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "allOf": [ @@ -35,8 +35,7 @@ "name": "High_CPU_80", "metricName": "Percentage CPU", "metricNamespace": "microsoft.compute/virtualmachines", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" @@ -57,4 +56,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertResourceGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertResourceGroup.json index 9ab3285b8179..00e5d33bd202 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertResourceGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertResourceGroup.json @@ -25,8 +25,8 @@ ], "evaluationFrequency": "PT1M", "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", "criteria": { "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "allOf": [ @@ -35,8 +35,7 @@ "name": "High_CPU_80", "metricName": "Percentage CPU", "metricNamespace": "microsoft.compute/virtualmachines", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" @@ -57,4 +56,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSingleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSingleResource.json index 510dd835dfb5..c6ab3a033c42 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSingleResource.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSingleResource.json @@ -28,11 +28,10 @@ "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "allOf": [ { - "criterionType":"StaticThresholdCriterion", + "criterionType": "StaticThresholdCriterion", "name": "High_CPU_80", "metricName": "\\Processor(_Total)\\% Processor Time", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" @@ -53,4 +52,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatus.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatus.json index a3d593e53669..cf2123868ab7 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatus.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatus.json @@ -26,4 +26,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatusByName.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatusByName.json index 7bd82721d5f6..92742ea3d426 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatusByName.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatusByName.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSubscription.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSubscription.json index 1fb0e39afe36..9c323b96999c 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSubscription.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSubscription.json @@ -24,8 +24,8 @@ ], "evaluationFrequency": "PT1M", "windowSize": "PT15M", - "targetResourceType":"Microsoft.Compute/virtualMachines", - "targetResourceRegion":"southcentralus", + "targetResourceType": "Microsoft.Compute/virtualMachines", + "targetResourceRegion": "southcentralus", "criteria": { "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "allOf": [ @@ -34,8 +34,7 @@ "name": "High_CPU_80", "metricName": "Percentage CPU", "metricNamespace": "microsoft.compute/virtualmachines", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" @@ -56,4 +55,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listActionGroups.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listActionGroups.json index ebc446f2bac6..5206b3234761 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listActionGroups.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listActionGroups.json @@ -1,86 +1,86 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "api-version": "2018-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Disabled" - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Disabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ] - } - }, - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup2", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup2", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample2", - "enabled": false, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - } - ], - "smsReceivers": [ - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [] - } - } - ] + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Disabled" + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Disabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ] } - } + }, + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup2", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup2", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample2", + "enabled": false, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + } + ], + "smsReceivers": [ + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [] + } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json index b8e115bae254..b2feab27f209 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json @@ -29,11 +29,10 @@ "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "allOf": [ { - "criterionType":"StaticThresholdCriterion", + "criterionType": "StaticThresholdCriterion", "name": "High_CPU_80", "metricName": "CustomMetric_\\Processor(_Total)\\% Processor Time", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 80.50, "timeAggregation": "Average" @@ -71,11 +70,10 @@ "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "allOf": [ { - "criterionType":"StaticThresholdCriterion", + "criterionType": "StaticThresholdCriterion", "name": "Medium_CPU_50", "metricName": "CustomMetric_\\Processor(_Total)\\% Processor Time", - "dimensions": [ - ], + "dimensions": [], "operator": "GreaterThan", "threshold": 50.50, "timeAggregation": "Average" @@ -97,4 +95,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/patchActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/patchActionGroup.json index df0b9b2b99bb..3004ae6f5a38 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/patchActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/patchActionGroup.json @@ -1,62 +1,68 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2018-03-01", - "actionGroupPatch": { - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "enabled": false + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2018-03-01", + "actionGroupPatch": { + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "enabled": false + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled" } - } - }, - "responses": { - "200": { - "headers": { }, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled" - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ] - } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json index 7c7c65bd8648..ca7fdba8a5a2 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json @@ -9,9 +9,15 @@ "description": "Azure Monitor client to create/update/delete metric based alerts." }, "host": "management.azure.com", - "schemes": [ "https" ], - "consumes": [ "application/json" ], - "produces": [ "application/json" ], + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "security": [ { "azure_auth": [ @@ -33,12 +39,18 @@ "paths": { "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricAlerts": { "get": { - "tags": [ "MetricAlerts" ], + "tags": [ + "MetricAlerts" + ], "description": "Retrieve alert rule definitions in a subscription.", "operationId": "MetricAlerts_ListBySubscription", "parameters": [ - { "$ref": "#/parameters/SubscriptionIdParameter" }, - { "$ref": "#/parameters/ApiVersionParameter" } + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } ], "responses": { "200": { @@ -49,26 +61,38 @@ }, "default": { "description": "BadRequest", - "schema": { "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" } + "schema": { + "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { "nextLinkName": null }, "x-ms-examples": { - "List metric alert rules": { "$ref": "./examples/listMetricAlert.json" } + "List metric alert rules": { + "$ref": "./examples/listMetricAlert.json" + } } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts": { "get": { - "tags": [ "MetricAlerts" ], + "tags": [ + "MetricAlerts" + ], "description": "Retrieve alert rule definitions in a resource group.", "operationId": "MetricAlerts_ListByResourceGroup", "parameters": [ - { "$ref": "#/parameters/SubscriptionIdParameter" }, - { "$ref": "#/parameters/ResourceGroupNameParameter" }, - { "$ref": "#/parameters/ApiVersionParameter" } + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } ], "responses": { "200": { @@ -79,27 +103,41 @@ }, "default": { "description": "BadRequest", - "schema": { "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" } + "schema": { + "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { "nextLinkName": null }, "x-ms-examples": { - "List metric alert rules": { "$ref": "./examples/listMetricAlert.json" } + "List metric alert rules": { + "$ref": "./examples/listMetricAlert.json" + } } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}": { "get": { - "tags": [ "MetricAlerts" ], + "tags": [ + "MetricAlerts" + ], "description": "Retrieve an alert rule definition.", "operationId": "MetricAlerts_Get", "parameters": [ - { "$ref": "#/parameters/SubscriptionIdParameter" }, - { "$ref": "#/parameters/ResourceGroupNameParameter" }, - { "$ref": "#/parameters/RuleNameParameter" }, - { "$ref": "#/parameters/ApiVersionParameter" } + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } ], "responses": { "200": { @@ -110,27 +148,51 @@ }, "default": { "description": "BadRequest", - "schema": { "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" } + "schema": { + "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { - "Get an alert rule for single resource": { "$ref": "./examples/getMetricAlertSingleResource.json" }, - "Get an alert rule for multiple resources": { "$ref": "./examples/getMetricAlertMultipleResource.json" }, - "Get an alert rule on resource group(s)": { "$ref": "./examples/getMetricAlertResourceGroup.json" }, - "Get an alert rule on subscription": { "$ref": "./examples/getMetricAlertSubscription.json" }, - "Get a dynamic alert rule for single resource": { "$ref": "./examples/getDynamicMetricAlertSingleResource.json" }, - "Get a dynamic alert rule for multiple resources": { "$ref": "./examples/getDynamicMetricAlertMultipleResource.json" } + "Get an alert rule for single resource": { + "$ref": "./examples/getMetricAlertSingleResource.json" + }, + "Get an alert rule for multiple resources": { + "$ref": "./examples/getMetricAlertMultipleResource.json" + }, + "Get an alert rule on resource group(s)": { + "$ref": "./examples/getMetricAlertResourceGroup.json" + }, + "Get an alert rule on subscription": { + "$ref": "./examples/getMetricAlertSubscription.json" + }, + "Get a dynamic alert rule for single resource": { + "$ref": "./examples/getDynamicMetricAlertSingleResource.json" + }, + "Get a dynamic alert rule for multiple resources": { + "$ref": "./examples/getDynamicMetricAlertMultipleResource.json" + } } }, "put": { - "tags": [ "MetricAlerts" ], + "tags": [ + "MetricAlerts" + ], "description": "Create or update an metric alert definition.", "operationId": "MetricAlerts_CreateOrUpdate", "parameters": [ - { "$ref": "#/parameters/SubscriptionIdParameter" }, - { "$ref": "#/parameters/ResourceGroupNameParameter" }, - { "$ref": "#/parameters/RuleNameParameter" }, - { "$ref": "#/parameters/ApiVersionParameter" }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, { "name": "parameters", "in": "body", @@ -150,27 +212,51 @@ }, "default": { "description": "BadRequest", - "schema": { "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" } + "schema": { + "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { - "Create or update an alert rule for Single Resource": { "$ref": "./examples/createOrUpdateMetricAlertSingleResource.json" }, - "Create or update an alert rule for Multiple Resource": { "$ref": "./examples/createOrUpdateMetricAlertMultipleResource.json" }, - "Create or update an alert rule on Resource group(s)": { "$ref": "./examples/createOrUpdateMetricAlertResourceGroup.json" }, - "Create or update an alert rule on Subscription ": { "$ref": "./examples/createOrUpdateMetricAlertSubscription.json" }, - "Create or update a dynamic alert rule for Single Resource": { "$ref": "./examples/createOrUpdateDynamicMetricAlertSingleResource.json" }, - "Create or update a dynamic alert rule for Multiple Resources": { "$ref": "./examples/createOrUpdateDynamicMetricAlertMultipleResource.json" } + "Create or update an alert rule for Single Resource": { + "$ref": "./examples/createOrUpdateMetricAlertSingleResource.json" + }, + "Create or update an alert rule for Multiple Resource": { + "$ref": "./examples/createOrUpdateMetricAlertMultipleResource.json" + }, + "Create or update an alert rule on Resource group(s)": { + "$ref": "./examples/createOrUpdateMetricAlertResourceGroup.json" + }, + "Create or update an alert rule on Subscription ": { + "$ref": "./examples/createOrUpdateMetricAlertSubscription.json" + }, + "Create or update a dynamic alert rule for Single Resource": { + "$ref": "./examples/createOrUpdateDynamicMetricAlertSingleResource.json" + }, + "Create or update a dynamic alert rule for Multiple Resources": { + "$ref": "./examples/createOrUpdateDynamicMetricAlertMultipleResource.json" + } } }, "patch": { - "tags": [ "MetricAlerts" ], + "tags": [ + "MetricAlerts" + ], "description": "Update an metric alert definition.", "operationId": "MetricAlerts_Update", "parameters": [ - { "$ref": "#/parameters/SubscriptionIdParameter" }, - { "$ref": "#/parameters/ResourceGroupNameParameter" }, - { "$ref": "#/parameters/RuleNameParameter" }, - { "$ref": "#/parameters/ApiVersionParameter" }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, { "name": "parameters", "in": "body", @@ -190,22 +276,36 @@ }, "default": { "description": "BadRequest", - "schema": { "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" } + "schema": { + "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { - "Create or update an alert rule": { "$ref": "./examples/UpdateMetricAlert.json" } + "Create or update an alert rule": { + "$ref": "./examples/UpdateMetricAlert.json" + } } }, "delete": { - "tags": [ "MetricAlerts" ], + "tags": [ + "MetricAlerts" + ], "description": "Delete an alert rule definition.", "operationId": "MetricAlerts_Delete", "parameters": [ - { "$ref": "#/parameters/SubscriptionIdParameter" }, - { "$ref": "#/parameters/ResourceGroupNameParameter" }, - { "$ref": "#/parameters/RuleNameParameter" }, - { "$ref": "#/parameters/ApiVersionParameter" } + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } ], "responses": { "204": { @@ -216,20 +316,32 @@ } }, "x-ms-examples": { - "Delete an alert rule": { "$ref": "./examples/deleteMetricAlert.json" } + "Delete an alert rule": { + "$ref": "./examples/deleteMetricAlert.json" + } } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status": { "get": { - "tags": [ "MetricAlertsStatus" ], + "tags": [ + "MetricAlertsStatus" + ], "description": "Retrieve an alert rule status.", "operationId": "MetricAlertsStatus_List", "parameters": [ - { "$ref": "#/parameters/SubscriptionIdParameter" }, - { "$ref": "#/parameters/ResourceGroupNameParameter" }, - { "$ref": "#/parameters/RuleNameParameter" }, - { "$ref": "#/parameters/ApiVersionParameter" } + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } ], "responses": { "200": { @@ -240,25 +352,41 @@ }, "default": { "description": "BadRequest", - "schema": { "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" } + "schema": { + "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { - "Get an alert rule status": { "$ref": "./examples/getMetricAlertStatus.json" } + "Get an alert rule status": { + "$ref": "./examples/getMetricAlertStatus.json" + } } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status/{statusName}": { "get": { - "tags": [ "MetricAlertsStatus" ], + "tags": [ + "MetricAlertsStatus" + ], "description": "Retrieve an alert rule status.", "operationId": "MetricAlertsStatus_ListByName", "parameters": [ - { "$ref": "#/parameters/SubscriptionIdParameter" }, - { "$ref": "#/parameters/ResourceGroupNameParameter" }, - { "$ref": "#/parameters/RuleNameParameter" }, - { "$ref": "#/parameters/StatusNameParameter" }, - { "$ref": "#/parameters/ApiVersionParameter" } + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RuleNameParameter" + }, + { + "$ref": "#/parameters/StatusNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } ], "responses": { "200": { @@ -269,11 +397,15 @@ }, "default": { "description": "BadRequest", - "schema": { "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" } + "schema": { + "$ref": "../../stable/2016-03-01/alertRules_API.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { - "Get an alert rule status": { "$ref": "./examples/getMetricAlertStatusByName.json" } + "Get an alert rule status": { + "$ref": "./examples/getMetricAlertStatusByName.json" + } } } } @@ -373,13 +505,13 @@ "format": "duration", "description": "the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold." }, - "targetResourceType" :{ - "type" : "string", - "description" : "the resource type of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria." + "targetResourceType": { + "type": "string", + "description": "the resource type of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria." }, - "targetResourceRegion" : { - "type" : "string", - "description" : "the region of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria." + "targetResourceRegion": { + "type": "string", + "description": "the region of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria." }, "criteria": { "$ref": "#/definitions/MetricAlertCriteria", @@ -387,7 +519,7 @@ }, "autoMitigate": { "type": "boolean", - "description":"the flag that indicates whether the alert should be auto resolved or not." + "description": "the flag that indicates whether the alert should be auto resolved or not." }, "actions": { "type": "array", @@ -510,7 +642,7 @@ "MetricAlertCriteria": { "type": "object", "additionalProperties": { - "type": "object" + "type": "object" }, "discriminator": "odata.type", "properties": { @@ -526,7 +658,9 @@ "description": "specifies the type of the alert criteria." } }, - "required": [ "odata.type" ], + "required": [ + "odata.type" + ], "description": "The rule criteria that defines the conditions of the alert rule." }, "MetricAlertSingleResourceMultipleMetricCriteria": { @@ -556,7 +690,7 @@ "$ref": "#/definitions/MultiMetricCriteria" } ], - "required": [ + "required": [ "operator", "threshold" ], @@ -578,7 +712,7 @@ }, "threshold": { "type": "number", - "format": "double", + "format": "double", "description": "the criteria threshold value that activates the alert." } }, @@ -609,19 +743,19 @@ }, "description": "Specifies a metric dimension." }, - "MetricAlertMultipleResourceMultipleMetricCriteria":{ + "MetricAlertMultipleResourceMultipleMetricCriteria": { "x-ms-discriminator-value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "type": "object", - "allOf":[ + "allOf": [ { - "$ref":"#/definitions/MetricAlertCriteria" + "$ref": "#/definitions/MetricAlertCriteria" } ], - "properties":{ - "allOf":{ + "properties": { + "allOf": { "type": "array", - "items":{ - "$ref":"#/definitions/MultiMetricCriteria" + "items": { + "$ref": "#/definitions/MultiMetricCriteria" }, "description": "the list of multiple metric criteria for this 'all of' operation. " } @@ -633,18 +767,18 @@ "additionalProperties": { "type": "object" }, - "discriminator":"criterionType", - "properties":{ - "criterionType" : { - "enum":[ - "StaticThresholdCriterion", - "DynamicThresholdCriterion" + "discriminator": "criterionType", + "properties": { + "criterionType": { + "enum": [ + "StaticThresholdCriterion", + "DynamicThresholdCriterion" ], - "x-ms-enum" : { - "name" : "criterionType", + "x-ms-enum": { + "name": "criterionType", "modelAsString": true }, - "description":" Specifies the type of threshold criteria" + "description": "Specifies the type of threshold criteria" }, "name": { "type": "string", @@ -679,10 +813,15 @@ "description": "List of dimension conditions." } }, - "required": [ "criterionType", "name", "metricName", "timeAggregation" ], + "required": [ + "criterionType", + "name", + "metricName", + "timeAggregation" + ], "description": "The types of conditions for a multi resource alert." }, - "DynamicMetricCriteria" : { + "DynamicMetricCriteria": { "x-ms-discriminator-value": "DynamicThresholdCriterion", "type": "object", "allOf": [ @@ -690,7 +829,7 @@ "$ref": "#/definitions/MultiMetricCriteria" } ], - "required": [ + "required": [ "operator", "alertSensitivity", "failingPeriods" @@ -709,31 +848,31 @@ "description": "The operator used to compare the metric value against the threshold." }, "alertSensitivity": { - "enum" : [ + "enum": [ "Low", "Medium", "High" ], - "x-ms-enum" : { - "name" : "DynamicThresholdSensitivity", + "x-ms-enum": { + "name": "DynamicThresholdSensitivity", "modelAsString": true }, "description": "The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern." }, - "failingPeriods" : { - "type" : "object", - "$ref" : "#/definitions/DynamicThresholdFailingPeriods", - "description" : "The minimum number of violations required within the selected lookback time window required to raise an alert." + "failingPeriods": { + "type": "object", + "$ref": "#/definitions/DynamicThresholdFailingPeriods", + "description": "The minimum number of violations required within the selected lookback time window required to raise an alert." }, - "ignoreDataBefore" : { - "type" : "string", + "ignoreDataBefore": { + "type": "string", "format": "date-time", - "description" :"Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)" + "description": "Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)" } }, "description": "Criterion for dynamic threshold." }, - "DynamicThresholdFailingPeriods" : { + "DynamicThresholdFailingPeriods": { "required": [ "numberOfEvaluationPeriods", "minFailingPeriodsToAlert" diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRule-LogToMetricAction.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRule-LogToMetricAction.json index 3c75479ee262..7d133e6c23b8 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRule-LogToMetricAction.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRule-LogToMetricAction.json @@ -6,7 +6,7 @@ "api-version": "2018-04-16", "parameters": { "location": "West Europe", - "tags": { }, + "tags": {}, "properties": { "description": "log to metric description", "enabled": "true", @@ -33,7 +33,7 @@ "name": "logtometricfoo", "type": "microsoft.insights/scheduledqueryrules", "location": "westeurope", - "tags": { }, + "tags": {}, "properties": { "description": "log to metric description", "displayName": "logtometricfoo", @@ -64,7 +64,7 @@ "name": "logtometricfoo", "type": "microsoft.insights/scheduledqueryrules", "location": "westeurope", - "tags": { }, + "tags": {}, "properties": { "description": "log to metric description", "enabled": "true", @@ -88,4 +88,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRules.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRules.json index bd449c2b5479..da4ba2df9eb5 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRules.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRules.json @@ -6,7 +6,7 @@ "api-version": "2018-04-16", "parameters": { "location": "eastus", - "tags": { }, + "tags": {}, "properties": { "description": "log alert description", "enabled": "true", @@ -51,7 +51,7 @@ "name": "logalertfoo", "type": "Microsoft.Insights/scheduledQueryRules", "location": "eastus", - "tags": { }, + "tags": {}, "properties": { "description": "log alert description", "enabled": "true", @@ -95,7 +95,7 @@ "name": "logalertfoo", "type": "Microsoft.Insights/scheduledQueryRules", "location": "eastus", - "tags": { }, + "tags": {}, "properties": { "description": "log alert description", "enabled": "true", @@ -127,4 +127,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRuleswithCrossResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRuleswithCrossResource.json index 464d745e7c53..4f39938e4eec 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRuleswithCrossResource.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRuleswithCrossResource.json @@ -6,7 +6,7 @@ "api-version": "2018-04-16", "parameters": { "location": "eastus", - "tags": { }, + "tags": {}, "properties": { "description": "Sample Cross Resource alert", "enabled": "true", @@ -26,7 +26,9 @@ "action": { "severity": "3", "aznsAction": { - "actionGroup": [ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/actiongroups/test-ag" ], + "actionGroup": [ + "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/actiongroups/test-ag" + ], "emailSubject": "Cross Resource Mail!!" }, "trigger": { @@ -46,7 +48,7 @@ "name": "SampleCrossResourceAlert", "type": "Microsoft.Insights/scheduledQueryRules", "location": "eastus", - "tags": { }, + "tags": {}, "properties": { "description": "Sample Cross Resource alert", "enabled": "true", @@ -68,7 +70,9 @@ "action": { "severity": "3", "aznsAction": { - "actionGroup": [ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/actiongroups/test-ag" ], + "actionGroup": [ + "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/actiongroups/test-ag" + ], "emailSubject": "Cross Resource Mail!!" }, "trigger": { @@ -87,7 +91,7 @@ "name": "SampleCrossResourceAlert", "type": "Microsoft.Insights/scheduledQueryRules", "location": "eastus", - "tags": { }, + "tags": {}, "properties": { "description": "Sample Cross Resource alert", "enabled": "true", @@ -109,7 +113,9 @@ "action": { "severity": "3", "aznsAction": { - "actionGroup": [ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/actiongroups/test-ag" ], + "actionGroup": [ + "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/actiongroups/test-ag" + ], "emailSubject": "Cross Resource Mail!!" }, "trigger": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/deleteScheduledQueryRules.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/deleteScheduledQueryRules.json index f9fba36800dd..34aa93620d52 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/deleteScheduledQueryRules.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/deleteScheduledQueryRules.json @@ -6,13 +6,7 @@ "api-version": "2018-04-16" }, "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/getScheduledQueryRules.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/getScheduledQueryRules.json index 6209f950f657..ae3256f4e092 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/getScheduledQueryRules.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/getScheduledQueryRules.json @@ -13,7 +13,7 @@ "name": "logalertfoo", "type": "Microsoft.Insights/scheduledQueryRules", "location": "West US", - "tags": { }, + "tags": {}, "properties": { "description": "log alert description", "enabled": "true", diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/listScheduledQueryRules.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/listScheduledQueryRules.json index d07a6c2a311a..28e33b126d63 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/listScheduledQueryRules.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/listScheduledQueryRules.json @@ -14,7 +14,7 @@ "name": "logalertfoo", "type": "Microsoft.Insights/scheduledQueryRules", "location": "West US", - "tags": { }, + "tags": {}, "properties": { "description": "log alert description", "enabled": "false", @@ -55,7 +55,7 @@ "name": "logalertfoo", "type": "Microsoft.Insights/scheduledQueryRules", "location": "West US", - "tags": { }, + "tags": {}, "properties": { "description": "log alert description", "enabled": "true", diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json index 57dad457a726..e39dca56bcb6 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json @@ -85,9 +85,15 @@ } }, "x-ms-examples": { - "Create or Update rule - AlertingAction": { "$ref": "./examples/createOrUpdateScheduledQueryRules.json" }, - "Create or Update rule - AlertingAction with Cross-Resource": { "$ref": "./examples/createOrUpdateScheduledQueryRuleswithCrossResource.json" }, - "Create or Update rule - LogToMetricAction": { "$ref": "./examples/createOrUpdateScheduledQueryRule-LogToMetricAction.json" } + "Create or Update rule - AlertingAction": { + "$ref": "./examples/createOrUpdateScheduledQueryRules.json" + }, + "Create or Update rule - AlertingAction with Cross-Resource": { + "$ref": "./examples/createOrUpdateScheduledQueryRuleswithCrossResource.json" + }, + "Create or Update rule - LogToMetricAction": { + "$ref": "./examples/createOrUpdateScheduledQueryRule-LogToMetricAction.json" + } } }, "get": { @@ -125,18 +131,30 @@ } }, "x-ms-examples": { - "Get rule": { "$ref": "./examples/getScheduledQueryRules.json" } + "Get rule": { + "$ref": "./examples/getScheduledQueryRules.json" + } } }, "patch": { - "tags": [ "scheduledQueryRules" ], + "tags": [ + "scheduledQueryRules" + ], "description": "Update log search Rule.", "operationId": "ScheduledQueryRules_Update", "parameters": [ - { "$ref": "#/parameters/SubscriptionIdParameter" }, - { "$ref": "#/parameters/ResourceGroupNameParameter" }, - { "$ref": "#/parameters/RuleNameParameter" }, - { "$ref": "#/parameters/ApiVersionParameter" }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/RuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, { "name": "parameters", "in": "body", @@ -162,7 +180,9 @@ } }, "x-ms-examples": { - "Patch Log Search Rule": { "$ref": "./examples/patchScheduledQueryRules.json" } + "Patch Log Search Rule": { + "$ref": "./examples/patchScheduledQueryRules.json" + } } }, "delete": { @@ -200,7 +220,9 @@ } }, "x-ms-examples": { - "Delete rule": { "$ref": "./examples/deleteScheduledQueryRules.json" } + "Delete rule": { + "$ref": "./examples/deleteScheduledQueryRules.json" + } } } }, @@ -240,7 +262,9 @@ "nextLinkName": null }, "x-ms-examples": { - "List rules": { "$ref": "./examples/listScheduledQueryRules.json" } + "List rules": { + "$ref": "./examples/listScheduledQueryRules.json" + } }, "x-ms-odata": "#/definitions/LogSearchRuleResource" } @@ -284,14 +308,16 @@ "nextLinkName": null }, "x-ms-examples": { - "List rules": { "$ref": "./examples/listScheduledQueryRules.json" } + "List rules": { + "$ref": "./examples/listScheduledQueryRules.json" + } }, "x-ms-odata": "#/definitions/LogSearchRuleResource" } } }, "definitions": { - "Resource": { + "Resource": { "properties": { "id": { "type": "string", diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/actionGroups_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/actionGroups_API.json index 586975d5f55c..d997d59945fb 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/actionGroups_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/actionGroups_API.json @@ -1,832 +1,832 @@ { - "swagger": "2.0", - "info": { - "title": "Azure Action Groups API", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2018-09-01" + "swagger": "2.0", + "info": { + "title": "Azure Action Groups API", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] + "version": "2018-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.insights/actionGroups/{actionGroupName}": { + "put": { + "description": "Create a new action group or update an existing one.", + "operationId": "ActionGroups_CreateOrUpdate", + "x-ms-examples": { + "Create or update an action group": { + "$ref": "./examples/createOrUpdateActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "name": "actionGroup", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActionGroupResource" + }, + "description": "The action group to create or use for the update." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "An existing action group was successfully updated.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "201": { + "description": "A new action group was successfully created.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "default": { + "description": "An error occurred and the action group could not be created or updated.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } - ], - "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" + }, + "get": { + "description": "Get an action group.", + "operationId": "ActionGroups_Get", + "x-ms-examples": { + "Get an action group": { + "$ref": "./examples/getActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "default": { + "description": "An error occurred and the action group could not be retrieved. 404: The action group does not exist.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}": { - "put": { - "description": "Create a new action group or update an existing one.", - "operationId": "ActionGroups_CreateOrUpdate", - "x-ms-examples": { - "Create or update an action group": { - "$ref": "./examples/createOrUpdateActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "name": "actionGroup", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActionGroupResource" - }, - "description": "The action group to create or use for the update." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "An existing action group was successfully updated.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "201": { - "description": "A new action group was successfully created.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "default": { - "description": "An error occurred and the action group could not be created or updated.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "get": { - "description": "Get an action group.", - "operationId": "ActionGroups_Get", - "x-ms-examples": { - "Get an action group": { - "$ref": "./examples/getActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "default": { - "description": "An error occurred and the action group could not be retrieved. 404: The action group does not exist.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "description": "Delete an action group.", - "operationId": "ActionGroups_Delete", - "x-ms-examples": { - "Delete an action group": { - "$ref": "./examples/deleteActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The action group was successfully deleted." - }, - "204": { - "description": "The action group does not exist. It may have already been deleted." - }, - "default": { - "description": "An error occurred and the action group could not be deleted.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "delete": { + "description": "Delete an action group.", + "operationId": "ActionGroups_Delete", + "x-ms-examples": { + "Delete an action group": { + "$ref": "./examples/deleteActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The action group was successfully deleted." + }, + "204": { + "description": "The action group does not exist. It may have already been deleted." + }, + "default": { + "description": "An error occurred and the action group could not be deleted.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "description": "Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.", + "operationId": "ActionGroups_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "actionGroupPatch", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActionGroupPatchBody" }, - "patch": { - "description": "Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.", - "operationId": "ActionGroups_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "actionGroupPatch", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActionGroupPatchBody" - }, - "description": "Parameters supplied to the operation." - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "An existing action group was successfully updated.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - } - }, - "x-ms-examples": { - "Patch an action group": { - "$ref": "./examples/patchActionGroup.json" - } - } + "description": "Parameters supplied to the operation." + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } - }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/actionGroups": { - "get": { - "description": "Get a list of all action groups in a subscription.", - "operationId": "ActionGroups_ListBySubscriptionId", - "x-ms-examples": { - "List action groups": { - "$ref": "./examples/listActionGroups.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupList" - } - }, - "default": { - "description": "An error occurred and the list of action groups could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "200": { + "description": "An existing action group was successfully updated.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" } + } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups": { - "get": { - "description": "Get a list of all action groups in a resource group.", - "operationId": "ActionGroups_ListByResourceGroup", - "x-ms-examples": { - "List action groups": { - "$ref": "./examples/listActionGroups.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupList" - } - }, - "default": { - "description": "An error occurred and the list of action groups could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } + "x-ms-examples": { + "Patch an action group": { + "$ref": "./examples/patchActionGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/microsoft.insights/actionGroups": { + "get": { + "description": "Get a list of all action groups in a subscription.", + "operationId": "ActionGroups_ListBySubscriptionId", + "x-ms-examples": { + "List action groups": { + "$ref": "./examples/listActionGroups.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}/subscribe": { - "post": { - "description": "Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.", - "operationId": "ActionGroups_EnableReceiver", - "x-ms-examples": { - "Enable the receiver": { - "$ref": "./examples/enableReceiver.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "name": "enableRequest", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/EnableRequest" - }, - "description": "The receiver to re-enable." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The receiver was successfully enabled." - }, - "409": { - "description": "The receiver is already enabled in the action group." - }, - "default": { - "description": "An error occurred and the receiver could not be enabled, e.g.: 404: The action group was not found or no matching receiver was found in the action group.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupList" } + }, + "default": { + "description": "An error occurred and the list of action groups could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } + } }, - "definitions": { - "Resource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Azure resource name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" - }, - "ActionGroupResource": { - "description": "An action group resource.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActionGroup", - "description": "The action groups properties of the resource." - } - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups": { + "get": { + "description": "Get a list of all action groups in a resource group.", + "operationId": "ActionGroups_ListByResourceGroup", + "x-ms-examples": { + "List action groups": { + "$ref": "./examples/listActionGroups.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null }, - "ActionGroupList": { - "description": "A list of action groups.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionGroupResource" - }, - "description": "The list of action groups." - }, - "nextLink": { - "type": "string", - "description": "Provides the link to retrieve the next set of elements." - } + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupList" } + }, + "default": { + "description": "An error occurred and the list of action groups could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}/subscribe": { + "post": { + "description": "Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.", + "operationId": "ActionGroups_EnableReceiver", + "x-ms-examples": { + "Enable the receiver": { + "$ref": "./examples/enableReceiver.json" + } }, - "ActionGroup": { - "description": "An Azure action group.", - "properties": { - "groupShortName": { - "type": "string", - "maxLength": 12, - "description": "The short name of the action group. This will be used in SMS messages." - }, - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." - }, - "emailReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/EmailReceiver" - }, - "description": "The list of email receivers that are part of this action group." - }, - "smsReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/SmsReceiver" - }, - "description": "The list of SMS receivers that are part of this action group." - }, - "webhookReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/WebhookReceiver" - }, - "description": "The list of webhook receivers that are part of this action group." - }, - "itsmReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/ItsmReceiver" - }, - "description": "The list of ITSM receivers that are part of this action group." - }, - "azureAppPushReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureAppPushReceiver" - }, - "description": "The list of AzureAppPush receivers that are part of this action group." - }, - "automationRunbookReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AutomationRunbookReceiver" - }, - "description": "The list of AutomationRunbook receivers that are part of this action group." - }, - "voiceReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceReceiver" - }, - "description": "The list of voice receivers that are part of this action group." - }, - "logicAppReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/LogicAppReceiver" - }, - "description": "The list of logic app receivers that are part of this action group." - }, - "azureFunctionReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureFunctionReceiver" - }, - "description": "The list of azure function receivers that are part of this action group." - }, - "armRoleReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/ArmRoleReceiver" - }, - "description": "The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported." - } - }, - "required": [ - "groupShortName", - "enabled" - ] - }, - "EmailReceiver": { - "description": "An email receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the email receiver. Names must be unique across all receivers within an action group." - }, - "emailAddress": { - "type": "string", - "description": "The email address of this receiver." - }, - "status": { - "readOnly": true, - "$ref": "#/definitions/ReceiverStatus", - "description": "The receiver status of the e-mail." - } - }, - "required": [ - "name", - "emailAddress" - ] - }, - "SmsReceiver": { - "description": "An SMS receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." - }, - "countryCode": { - "type": "string", - "description": "The country code of the SMS receiver." - }, - "phoneNumber": { - "type": "string", - "description": "The phone number of the SMS receiver." - }, - "status": { - "readOnly": true, - "$ref": "#/definitions/ReceiverStatus", - "description": "The status of the receiver." - } - }, - "required": [ - "name", - "countryCode", - "phoneNumber" - ] - }, - "WebhookReceiver": { - "description": "A webhook receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." - }, - "serviceUri": { - "type": "string", - "description": "The URI where webhooks should be sent." - } - }, - "required": [ - "name", - "serviceUri" - ] - }, - "ItsmReceiver": { - "description": "An Itsm receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." - }, - "workspaceId": { - "type": "string", - "description": "OMS LA instance identifier." - }, - "connectionId": { - "type": "string", - "description": "Unique identification of ITSM connection among multiple defined in above workspace." - }, - "ticketConfiguration": { - "type": "string", - "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." - }, - "region": { - "type": "string", - "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" - } - }, - "required": [ - "name", - "workspaceId", - "connectionId", - "ticketConfiguration", - "region" - ] - }, - "AzureAppPushReceiver": { - "description": "The Azure mobile App push notification receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." - }, - "emailAddress": { - "type": "string", - "description": "The email address registered for the Azure mobile app." - } - }, - "required": [ - "name", - "emailAddress" - ] - }, - "AutomationRunbookReceiver": { - "description": "The Azure Automation Runbook notification receiver.", - "properties": { - "automationAccountId": { - "type": "string", - "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." - }, - "runbookName": { - "type": "string", - "description": "The name for this runbook." - }, - "webhookResourceId": { - "type": "string", - "description": "The resource id for webhook linked to this runbook." - }, - "isGlobalRunbook": { - "type": "boolean", - "description": "Indicates whether this instance is global runbook." - }, - "name": { - "type": "string", - "description": "Indicates name of the webhook." - }, - "serviceUri": { - "type": "string", - "description": "The URI where webhooks should be sent." - } - }, - "required": [ - "automationAccountId", - "runbookName", - "webhookResourceId", - "isGlobalRunbook" - ] - }, - "VoiceReceiver": { - "description": "A voice receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the voice receiver. Names must be unique across all receivers within an action group." - }, - "countryCode": { - "type": "string", - "description": "The country code of the voice receiver." - }, - "phoneNumber": { - "type": "string", - "description": "The phone number of the voice receiver." - } - }, - "required": [ - "name", - "countryCode", - "phoneNumber" - ] - }, - "LogicAppReceiver": { - "description": "A logic app receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the logic app receiver. Names must be unique across all receivers within an action group." - }, - "resourceId": { - "type": "string", - "description": "The azure resource id of the logic app receiver." - }, - "callbackUrl": { - "type": "string", - "description": "The callback url where http request sent to." - } - }, - "required": [ - "name", - "resourceId", - "callbackUrl" - ] - }, - "AzureFunctionReceiver": { - "description": "An azure function receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the azure function receiver. Names must be unique across all receivers within an action group." - }, - "functionAppResourceId": { - "type": "string", - "description": "The azure resource id of the function app." - }, - "functionName": { - "type": "string", - "description": "The function name in the function app." - }, - "httpTriggerUrl": { - "type": "string", - "description": "The http trigger url where http request sent to." - } - }, - "required": [ - "name", - "functionAppResourceId", - "functionName", - "httpTriggerUrl" - ] - }, - "ArmRoleReceiver": { - "description": "An arm role receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the arm role receiver. Names must be unique across all receivers within an action group." - }, - "roleId": { - "type": "string", - "description": "The arm role id." - } - }, - "required": [ - "name", - "roleId" - ] - }, - "ReceiverStatus": { - "type": "string", - "enum": [ - "NotSpecified", - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "ReceiverStatus", - "modelAsString": false - }, - "description": "Indicates the status of the receiver. Receivers that are not Enabled will not receive any communications." - }, - "EnableRequest": { - "description": "Describes a receiver that should be resubscribed.", - "properties": { - "receiverName": { - "type": "string", - "description": "The name of the receiver to resubscribe." - } + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "name": "enableRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EnableRequest" }, - "required": [ - "receiverName" - ] - }, - "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" - } + "description": "The receiver to re-enable." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The receiver was successfully enabled." + }, + "409": { + "description": "The receiver is already enabled in the action group." + }, + "default": { + "description": "An error occurred and the receiver could not be enabled, e.g.: 404: The action group was not found or no matching receiver was found in the action group.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" }, - "ActionGroupPatchBody": { - "description": "An action group object for the body of patch operations.", - "properties": { - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActionGroupPatch", - "description": "The action group settings for an update operation." - } - } + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" }, - "ActionGroupPatch": { - "description": "An Azure action group for patch operations.", - "properties": { - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated." - } - } + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription Id." + "ActionGroupResource": { + "description": "An action group resource.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActionGroup", + "description": "The action groups properties of the resource." + } + } + }, + "ActionGroupList": { + "description": "A list of action groups.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ActionGroupResource" + }, + "description": "The list of action groups." }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" + "nextLink": { + "type": "string", + "description": "Provides the link to retrieve the next set of elements." + } + } + }, + "ActionGroup": { + "description": "An Azure action group.", + "properties": { + "groupShortName": { + "type": "string", + "maxLength": 12, + "description": "The short name of the action group. This will be used in SMS messages." }, - "ActionGroupNameParameter": { - "name": "actionGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the action group.", - "x-ms-parameter-location": "method" + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." + "emailReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/EmailReceiver" + }, + "description": "The list of email receivers that are part of this action group." + }, + "smsReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/SmsReceiver" + }, + "description": "The list of SMS receivers that are part of this action group." + }, + "webhookReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/WebhookReceiver" + }, + "description": "The list of webhook receivers that are part of this action group." + }, + "itsmReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/ItsmReceiver" + }, + "description": "The list of ITSM receivers that are part of this action group." + }, + "azureAppPushReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureAppPushReceiver" + }, + "description": "The list of AzureAppPush receivers that are part of this action group." + }, + "automationRunbookReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AutomationRunbookReceiver" + }, + "description": "The list of AutomationRunbook receivers that are part of this action group." + }, + "voiceReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceReceiver" + }, + "description": "The list of voice receivers that are part of this action group." + }, + "logicAppReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/LogicAppReceiver" + }, + "description": "The list of logic app receivers that are part of this action group." + }, + "azureFunctionReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFunctionReceiver" + }, + "description": "The list of azure function receivers that are part of this action group." + }, + "armRoleReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/ArmRoleReceiver" + }, + "description": "The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported." + } + }, + "required": [ + "groupShortName", + "enabled" + ] + }, + "EmailReceiver": { + "description": "An email receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the email receiver. Names must be unique across all receivers within an action group." + }, + "emailAddress": { + "type": "string", + "description": "The email address of this receiver." + }, + "status": { + "readOnly": true, + "$ref": "#/definitions/ReceiverStatus", + "description": "The receiver status of the e-mail." + } + }, + "required": [ + "name", + "emailAddress" + ] + }, + "SmsReceiver": { + "description": "An SMS receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." + }, + "countryCode": { + "type": "string", + "description": "The country code of the SMS receiver." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the SMS receiver." + }, + "status": { + "readOnly": true, + "$ref": "#/definitions/ReceiverStatus", + "description": "The status of the receiver." + } + }, + "required": [ + "name", + "countryCode", + "phoneNumber" + ] + }, + "WebhookReceiver": { + "description": "A webhook receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + } + }, + "required": [ + "name", + "serviceUri" + ] + }, + "ItsmReceiver": { + "description": "An Itsm receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." + }, + "workspaceId": { + "type": "string", + "description": "OMS LA instance identifier." + }, + "connectionId": { + "type": "string", + "description": "Unique identification of ITSM connection among multiple defined in above workspace." + }, + "ticketConfiguration": { + "type": "string", + "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." + }, + "region": { + "type": "string", + "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" + } + }, + "required": [ + "name", + "workspaceId", + "connectionId", + "ticketConfiguration", + "region" + ] + }, + "AzureAppPushReceiver": { + "description": "The Azure mobile App push notification receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." + }, + "emailAddress": { + "type": "string", + "description": "The email address registered for the Azure mobile app." + } + }, + "required": [ + "name", + "emailAddress" + ] + }, + "AutomationRunbookReceiver": { + "description": "The Azure Automation Runbook notification receiver.", + "properties": { + "automationAccountId": { + "type": "string", + "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." + }, + "runbookName": { + "type": "string", + "description": "The name for this runbook." + }, + "webhookResourceId": { + "type": "string", + "description": "The resource id for webhook linked to this runbook." + }, + "isGlobalRunbook": { + "type": "boolean", + "description": "Indicates whether this instance is global runbook." + }, + "name": { + "type": "string", + "description": "Indicates name of the webhook." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." } + }, + "required": [ + "automationAccountId", + "runbookName", + "webhookResourceId", + "isGlobalRunbook" + ] + }, + "VoiceReceiver": { + "description": "A voice receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the voice receiver. Names must be unique across all receivers within an action group." + }, + "countryCode": { + "type": "string", + "description": "The country code of the voice receiver." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the voice receiver." + } + }, + "required": [ + "name", + "countryCode", + "phoneNumber" + ] + }, + "LogicAppReceiver": { + "description": "A logic app receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the logic app receiver. Names must be unique across all receivers within an action group." + }, + "resourceId": { + "type": "string", + "description": "The azure resource id of the logic app receiver." + }, + "callbackUrl": { + "type": "string", + "description": "The callback url where http request sent to." + } + }, + "required": [ + "name", + "resourceId", + "callbackUrl" + ] + }, + "AzureFunctionReceiver": { + "description": "An azure function receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the azure function receiver. Names must be unique across all receivers within an action group." + }, + "functionAppResourceId": { + "type": "string", + "description": "The azure resource id of the function app." + }, + "functionName": { + "type": "string", + "description": "The function name in the function app." + }, + "httpTriggerUrl": { + "type": "string", + "description": "The http trigger url where http request sent to." + } + }, + "required": [ + "name", + "functionAppResourceId", + "functionName", + "httpTriggerUrl" + ] + }, + "ArmRoleReceiver": { + "description": "An arm role receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the arm role receiver. Names must be unique across all receivers within an action group." + }, + "roleId": { + "type": "string", + "description": "The arm role id." + } + }, + "required": [ + "name", + "roleId" + ] + }, + "ReceiverStatus": { + "type": "string", + "enum": [ + "NotSpecified", + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "ReceiverStatus", + "modelAsString": false + }, + "description": "Indicates the status of the receiver. Receivers that are not Enabled will not receive any communications." + }, + "EnableRequest": { + "description": "Describes a receiver that should be resubscribed.", + "properties": { + "receiverName": { + "type": "string", + "description": "The name of the receiver to resubscribe." + } + }, + "required": [ + "receiverName" + ] + }, + "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" + } + } + }, + "ActionGroupPatchBody": { + "description": "An action group object for the body of patch operations.", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActionGroupPatch", + "description": "The action group settings for an update operation." + } + } + }, + "ActionGroupPatch": { + "description": "An Azure action group for patch operations.", + "properties": { + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription Id." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ActionGroupNameParameter": { + "name": "actionGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the action group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/baseline_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/baseline_API.json index fa616c4edb22..fbf213aaa465 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/baseline_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/baseline_API.json @@ -1,404 +1,416 @@ { - "swagger": "2.0", - "info": { - "title": "MonitorManagementClient", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2018-09-01" + "swagger": "2.0", + "info": { + "title": "MonitorManagementClient", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "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" - } + "version": "2018-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": { - "/{resourceUri}/providers/microsoft.insights/baseline/{metricName}": { - "get": { - "tags": [ - "Baseline" - ], - "operationId": "MetricBaseline_Get", - "description": "**Gets the baseline values for a specific metric**.", - "parameters": [ - { - "$ref": "#/parameters/ExtendedResourceUriParameter" - }, - { - "$ref": "#/parameters/MetricNameParameter" - }, - { - "$ref": "#/parameters/TimespanParameter" - }, - { - "$ref": "#/parameters/IntervalParameter" - }, - { - "$ref": "#/parameters/AggregationParameter" - }, - { - "$ref": "#/parameters/SensitivitiesParameter" - }, - { - "$ref": "#/parameters/BaselineResultTypeParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/MetricNamespaceParameter" - }, - { - "name": "$filter", - "in": "query", - "type": "string", - "description": "The **$filter** is used to describe a set of dimensions with their concrete values which produce a specific metric's time series, in which a baseline is requested for.", - "required": false - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Successful request to get the list of metric values.", - "schema": { - "$ref": "#/definitions/BaselineResponse" - } - } + } + }, + "paths": { + "/{resourceUri}/providers/microsoft.insights/baseline/{metricName}": { + "get": { + "tags": [ + "Baseline" + ], + "operationId": "MetricBaseline_Get", + "description": "**Gets the baseline values for a specific metric**.", + "parameters": [ + { + "$ref": "#/parameters/ExtendedResourceUriParameter" }, - "x-ms-examples": { - "Get Metric for data": { "$ref": "./examples/GetBaseline.json" }, - "Get Metric for metadata": { "$ref": "./examples/GetBaselineMetadata.json" } - } - } - }, - "/{resourceUri}/providers/microsoft.insights/baseline": { - "get": { - "tags": [ - "Baseline" - ], - "operationId": "Baseline_Get", - "description": "**Gets the baseline values for a resource**.", - "parameters": [ - { - "$ref": "#/parameters/ExtendedResourceUriParameter" - }, - { - "$ref": "#/parameters/MetricNamesParameter" - }, - { - "$ref": "#/parameters/TimespanParameter" - }, - { - "$ref": "#/parameters/IntervalParameter" - }, - { - "$ref": "#/parameters/AggregationParameter" - }, - { - "$ref": "#/parameters/SensitivitiesParameter" - }, - { - "$ref": "#/parameters/BaselineResultTypeParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/MetricNamespaceParameter" - }, - { - "name": "$filter", - "in": "query", - "type": "string", - "description": "The **$filter** is used to describe a set of dimensions with their concrete values which produce a specific metric's time series, in which a baseline is requested for.", - "required": false - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Successful request to get the list of metric values.", - "schema": { - "$ref": "#/definitions/BaselineResponse" - } - } + { + "$ref": "#/parameters/MetricNameParameter" }, - "x-ms-examples": { - "Get Metric for data": { "$ref": "./examples/GetBaseline.json" } - } - } - } - }, - "definitions": { - "LocalizableString": { - "required": [ "value" ], - "properties": { - "value": { - "type": "string", - "description": "The invariant value." + { + "$ref": "#/parameters/TimespanParameter" + }, + { + "$ref": "#/parameters/IntervalParameter" + }, + { + "$ref": "#/parameters/AggregationParameter" + }, + { + "$ref": "#/parameters/SensitivitiesParameter" + }, + { + "$ref": "#/parameters/BaselineResultTypeParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, - "localizedValue": { + { + "$ref": "#/parameters/MetricNamespaceParameter" + }, + { + "name": "$filter", + "in": "query", "type": "string", - "description": "The locale specific value." + "description": "The **$filter** is used to describe a set of dimensions with their concrete values which produce a specific metric's time series, in which a baseline is requested for.", + "required": false } - }, - "description": "The localizable string class." - }, - "BaselineMetadataValue": { - "properties": { - "name": { - "$ref": "#/definitions/LocalizableString", - "description": "The name of the metadata." + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } }, - "value": { - "type": "string", - "description": "The value of the metadata." + "200": { + "description": "Successful request to get the list of metric values.", + "schema": { + "$ref": "#/definitions/BaselineResponse" + } } }, - "description": "Represents a baseline metadata value." - }, - "ErrorResponse": { - "description": "Describes the format of Error response.", - "type": "object", - "properties": { - "code": { - "description": "Error code", - "type": "string" + "x-ms-examples": { + "Get Metric for data": { + "$ref": "./examples/GetBaseline.json" }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string" + "Get Metric for metadata": { + "$ref": "./examples/GetBaselineMetadata.json" } } - }, - "BaselineResponse": { - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "The metric baseline ID." + } + }, + "/{resourceUri}/providers/microsoft.insights/baseline": { + "get": { + "tags": [ + "Baseline" + ], + "operationId": "Baseline_Get", + "description": "**Gets the baseline values for a resource**.", + "parameters": [ + { + "$ref": "#/parameters/ExtendedResourceUriParameter" }, - "type": { - "type": "string", - "readOnly": true, - "description": "The resource type of the baseline resource." + { + "$ref": "#/parameters/MetricNamesParameter" }, - "name": { - "$ref": "#/definitions/LocalizableString", - "readOnly": true, - "description": "The name and the display name of the metric, i.e. it is localizable string." + { + "$ref": "#/parameters/TimespanParameter" }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/BaselineProperties", - "description": "The properties of the baseline." - } - }, - "description": "The response to a baseline query." - }, - "BaselineProperties": { - "properties": { - "timespan": { - "type": "string", - "description": "The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested." + { + "$ref": "#/parameters/IntervalParameter" }, - "interval": { - "type": "string", - "format": "duration", - "description": "The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made." + { + "$ref": "#/parameters/AggregationParameter" }, - "aggregation": { - "type": "string", - "description": "The aggregation type of the metric." + { + "$ref": "#/parameters/SensitivitiesParameter" }, - "timestamps": { - "type": "array", - "items": { - "type": "string", - "format": "date-time", - "description": "The timestamp for the baseline value in ISO 8601 format." - }, - "description": "The array of timestamps of the baselines." + { + "$ref": "#/parameters/BaselineResultTypeParameter" }, - "baseline": { - "type": "array", - "items": { - "$ref": "#/definitions/Baseline" - }, - "description": "The baseline values for each sensitivity." + { + "$ref": "#/parameters/ApiVersionParameter" }, - "metadata": { - "type": "array", - "items": { - "$ref": "#/definitions/BaselineMetadataValue" - }, - "description": "The baseline metadata values." - } - }, - "description": "The baseline properties class." - }, - "Baseline": { - "type": "object", - "properties": { - "sensitivity": { - "type": "string", - "enum": [ - "Low", - "Medium", - "High" - ], - "x-ms-enum": { - "name": "Sensitivity", - "modelAsString": false - }, - "description": "The sensitivity of the baseline." + { + "$ref": "#/parameters/MetricNamespaceParameter" }, - "lowThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single low threshold value." - }, - "description": "The low thresholds of the baseline." + { + "name": "$filter", + "in": "query", + "type": "string", + "description": "The **$filter** is used to describe a set of dimensions with their concrete values which produce a specific metric's time series, in which a baseline is requested for.", + "required": false + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } }, - "highThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single high threshold value." - }, - "description": "The high thresholds of the baseline." + "200": { + "description": "Successful request to get the list of metric values.", + "schema": { + "$ref": "#/definitions/BaselineResponse" + } } }, - "required": [ "sensitivity", "lowThresholds", "highThresholds" ], - "description": "The baseline values for a single sensitivity value." + "x-ms-examples": { + "Get Metric for data": { + "$ref": "./examples/GetBaseline.json" + } + } } - }, - "parameters": { - "ExtendedResourceUriParameter": { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "MetricNameParameter": { - "name": "metricName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the metric to retrieve the baseline for.", - "x-ms-parameter-location": "method" - }, - "TimespanParameter": { - "name": "timespan", - "in": "query", - "required": false, - "type": "string", - "description": "The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.", - "x-ms-parameter-location": "method" - }, - "IntervalParameter": { - "name": "interval", - "in": "query", - "required": false, - "type": "string", - "format": "duration", - "description": "The interval (i.e. timegrain) of the query.", - "x-ms-parameter-location": "method" + } + }, + "definitions": { + "LocalizableString": { + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string", + "description": "The invariant value." + }, + "localizedValue": { + "type": "string", + "description": "The locale specific value." + } }, - "MetricNamesParameter": { - "name": "metricnames", - "in": "query", - "required": false, - "type": "string", - "description": "The names of the metrics (comma separated) to retrieve.", - "x-ms-parameter-location": "method" + "description": "The localizable string class." + }, + "BaselineMetadataValue": { + "properties": { + "name": { + "$ref": "#/definitions/LocalizableString", + "description": "The name of the metadata." + }, + "value": { + "type": "string", + "description": "The value of the metadata." + } }, - "AggregationParameter": { - "name": "aggregation", - "in": "query", - "required": false, - "type": "string", - "description": "The aggregation type of the metric to retrieve the baseline for.", - "x-ms-parameter-location": "method" + "description": "Represents a baseline metadata value." + }, + "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" + } + } + }, + "BaselineResponse": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The metric baseline ID." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The resource type of the baseline resource." + }, + "name": { + "$ref": "#/definitions/LocalizableString", + "readOnly": true, + "description": "The name and the display name of the metric, i.e. it is localizable string." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BaselineProperties", + "description": "The properties of the baseline." + } }, - "SensitivitiesParameter": { - "name": "sensitivities", - "in": "query", - "required": false, - "type": "string", - "description": "The list of sensitivities (comma separated) to retrieve.", - "x-ms-parameter-location": "method" + "description": "The response to a baseline query." + }, + "BaselineProperties": { + "properties": { + "timespan": { + "type": "string", + "description": "The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested." + }, + "interval": { + "type": "string", + "format": "duration", + "description": "The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made." + }, + "aggregation": { + "type": "string", + "description": "The aggregation type of the metric." + }, + "timestamps": { + "type": "array", + "items": { + "type": "string", + "format": "date-time", + "description": "The timestamp for the baseline value in ISO 8601 format." + }, + "description": "The array of timestamps of the baselines." + }, + "baseline": { + "type": "array", + "items": { + "$ref": "#/definitions/Baseline" + }, + "description": "The baseline values for each sensitivity." + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/BaselineMetadataValue" + }, + "description": "The baseline metadata values." + } }, - "BaselineResultTypeParameter": { - "name": "resultType", - "in": "query", - "type": "string", - "enum": [ - "Data", - "Metadata" - ], - "x-ms-enum": { - "name": "ResultType", - "modelAsString": false + "description": "The baseline properties class." + }, + "Baseline": { + "type": "object", + "properties": { + "sensitivity": { + "type": "string", + "enum": [ + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "Sensitivity", + "modelAsString": false + }, + "description": "The sensitivity of the baseline." + }, + "lowThresholds": { + "type": "array", + "items": { + "type": "number", + "format": "double", + "description": "A single low threshold value." + }, + "description": "The low thresholds of the baseline." }, - "description": "Allows retrieving only metadata of the baseline. On data request all information is retrieved.", - "x-ms-parameter-location": "method", - "required": false + "highThresholds": { + "type": "array", + "items": { + "type": "number", + "format": "double", + "description": "A single high threshold value." + }, + "description": "The high thresholds of the baseline." + } }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." + "required": [ + "sensitivity", + "lowThresholds", + "highThresholds" + ], + "description": "The baseline values for a single sensitivity value." + } + }, + "parameters": { + "ExtendedResourceUriParameter": { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "MetricNameParameter": { + "name": "metricName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the metric to retrieve the baseline for.", + "x-ms-parameter-location": "method" + }, + "TimespanParameter": { + "name": "timespan", + "in": "query", + "required": false, + "type": "string", + "description": "The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.", + "x-ms-parameter-location": "method" + }, + "IntervalParameter": { + "name": "interval", + "in": "query", + "required": false, + "type": "string", + "format": "duration", + "description": "The interval (i.e. timegrain) of the query.", + "x-ms-parameter-location": "method" + }, + "MetricNamesParameter": { + "name": "metricnames", + "in": "query", + "required": false, + "type": "string", + "description": "The names of the metrics (comma separated) to retrieve.", + "x-ms-parameter-location": "method" + }, + "AggregationParameter": { + "name": "aggregation", + "in": "query", + "required": false, + "type": "string", + "description": "The aggregation type of the metric to retrieve the baseline for.", + "x-ms-parameter-location": "method" + }, + "SensitivitiesParameter": { + "name": "sensitivities", + "in": "query", + "required": false, + "type": "string", + "description": "The list of sensitivities (comma separated) to retrieve.", + "x-ms-parameter-location": "method" + }, + "BaselineResultTypeParameter": { + "name": "resultType", + "in": "query", + "type": "string", + "enum": [ + "Data", + "Metadata" + ], + "x-ms-enum": { + "name": "ResultType", + "modelAsString": false }, - "MetricNamespaceParameter": { - "name": "metricnamespace", - "in": "query", - "required": false, - "type": "string", - "description": "Metric namespace to query metric definitions for.", - "x-ms-parameter-location": "method" - } + "description": "Allows retrieving only metadata of the baseline. On data request all information is retrieved.", + "x-ms-parameter-location": "method", + "required": false + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "MetricNamespaceParameter": { + "name": "metricnamespace", + "in": "query", + "required": false, + "type": "string", + "description": "Metric namespace to query metric definitions for.", + "x-ms-parameter-location": "method" } - } \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/calculateBaseline_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/calculateBaseline_API.json index c6e0e614c5e5..39ba5120dd9e 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/calculateBaseline_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/calculateBaseline_API.json @@ -1,214 +1,226 @@ { - "swagger": "2.0", - "info": { - "title": "MonitorManagementClient", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2018-09-01" + "swagger": "2.0", + "info": { + "title": "MonitorManagementClient", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "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" - } + "version": "2018-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": { - "/{resourceUri}/providers/microsoft.insights/calculatebaseline": { - "post": { - "tags": [ - "Baseline" - ], - "operationId": "MetricBaseline_CalculateBaseline", - "description": "**Lists the baseline values for a resource**.", - "parameters": [ - { - "$ref": "#/parameters/ExtendedResourceUriParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "TimeSeriesInformation", - "description": "Information that need to be specified to calculate a baseline on a time series.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/TimeSeriesInformation" - } + } + }, + "paths": { + "/{resourceUri}/providers/microsoft.insights/calculatebaseline": { + "post": { + "tags": [ + "Baseline" + ], + "operationId": "MetricBaseline_CalculateBaseline", + "description": "**Lists the baseline values for a resource**.", + "parameters": [ + { + "$ref": "#/parameters/ExtendedResourceUriParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "TimeSeriesInformation", + "description": "Information that need to be specified to calculate a baseline on a time series.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TimeSeriesInformation" } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Successful request to get the list of metric values.", - "schema": { - "$ref": "#/definitions/CalculateBaselineResponse" - } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } }, - "x-ms-examples": { - "Calculate baseline": { "$ref": "./examples/CalculateBaseline.json" } + "200": { + "description": "Successful request to get the list of metric values.", + "schema": { + "$ref": "#/definitions/CalculateBaselineResponse" + } + } + }, + "x-ms-examples": { + "Calculate baseline": { + "$ref": "./examples/CalculateBaseline.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" - } + } + }, + "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" } - }, - "TimeSeriesInformation": { - "properties": { - "sensitivities": { - "type": "array", - "items": { - "type": "string", - "description": "The requested sensitivity for calculating the baseline." - }, - "description": "The list of sensitivities for calculating the baseline." + } + }, + "TimeSeriesInformation": { + "properties": { + "sensitivities": { + "type": "array", + "items": { + "type": "string", + "description": "The requested sensitivity for calculating the baseline." }, - "values": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single metric value." - }, - "description": "The metric values to calculate the baseline." + "description": "The list of sensitivities for calculating the baseline." + }, + "values": { + "type": "array", + "items": { + "type": "number", + "format": "double", + "description": "A single metric value." }, - "timestamps": { - "type": "array", - "items": { - "type": "string", - "format": "date-time", - "description": "The timestamp for the baseline value in ISO 8601 format." - }, - "description": "The array of timestamps of the baselines." - } + "description": "The metric values to calculate the baseline." }, - "required": [ "sensitivities", "values" ], - "description": "The time series info needed for calculating the baseline." - }, - "CalculateBaselineResponse": { - "type": "object", - "properties": { - "type": { + "timestamps": { + "type": "array", + "items": { "type": "string", - "description": "The resource type of the baseline resource." + "format": "date-time", + "description": "The timestamp for the baseline value in ISO 8601 format." }, - "timestamps": { - "type": "array", - "items": { - "type": "string", - "format": "date-time", - "description": "The timestamp for the baseline value in ISO 8601 format." - }, - "description": "The array of timestamps of the baselines." + "description": "The array of timestamps of the baselines." + } + }, + "required": [ + "sensitivities", + "values" + ], + "description": "The time series info needed for calculating the baseline." + }, + "CalculateBaselineResponse": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The resource type of the baseline resource." + }, + "timestamps": { + "type": "array", + "items": { + "type": "string", + "format": "date-time", + "description": "The timestamp for the baseline value in ISO 8601 format." }, - "baseline": { - "type": "array", - "items": { - "$ref": "#/definitions/Baseline" - }, - "description": "The baseline values for each sensitivity." - } + "description": "The array of timestamps of the baselines." }, - "required": [ "type", "baseline" ], - "description": "The response to a calculate baseline call." + "baseline": { + "type": "array", + "items": { + "$ref": "#/definitions/Baseline" + }, + "description": "The baseline values for each sensitivity." + } }, - "Baseline": { - "type": "object", - "properties": { - "sensitivity": { - "type": "string", - "enum": [ - "Low", - "Medium", - "High" - ], - "x-ms-enum": { - "name": "Sensitivity", - "modelAsString": false - }, - "description": "The sensitivity of the baseline." + "required": [ + "type", + "baseline" + ], + "description": "The response to a calculate baseline call." + }, + "Baseline": { + "type": "object", + "properties": { + "sensitivity": { + "type": "string", + "enum": [ + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "Sensitivity", + "modelAsString": false }, - "lowThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single low threshold value." - }, - "description": "The low thresholds of the baseline." + "description": "The sensitivity of the baseline." + }, + "lowThresholds": { + "type": "array", + "items": { + "type": "number", + "format": "double", + "description": "A single low threshold value." }, - "highThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single high threshold value." - }, - "description": "The high thresholds of the baseline." - } + "description": "The low thresholds of the baseline." }, - "required": [ "sensitivity", "lowThresholds", "highThresholds" ], - "description": "The baseline values for a single sensitivity value." - } - }, - "parameters": { - "ExtendedResourceUriParameter": { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true + "highThresholds": { + "type": "array", + "items": { + "type": "number", + "format": "double", + "description": "A single high threshold value." + }, + "description": "The high thresholds of the baseline." + } }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - } + "required": [ + "sensitivity", + "lowThresholds", + "highThresholds" + ], + "description": "The baseline values for a single sensitivity value." + } + }, + "parameters": { + "ExtendedResourceUriParameter": { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", + "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." } - } \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/CalculateBaseline.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/CalculateBaseline.json index f2e6c8a3a683..904f1d3a3ef7 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/CalculateBaseline.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/CalculateBaseline.json @@ -1,41 +1,47 @@ { - "parameters": { - "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", - "api-version": "2018-09-01", - "TimeSeriesInformation": { - "sensitivities": ["Low", "Medium"], - "values": [61.0, 62.0] - } - }, - "responses": { - "200": { - "body": { - "type": "Microsoft.Insights/calculatebaseline", - "baseline": [ - { - "sensitivity": "Low", - "lowThresholds": [ - 30.0, - 31.1 - ], - "highThresholds": [ - 90.3453, - 91.3453 - ] - }, - { - "sensitivity": "Medium", - "lowThresholds": [ - 50.0, - 51.1 - ], - "highThresholds": [ - 70.3453, - 71.3453 - ] - } - ] - } - } + "parameters": { + "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", + "api-version": "2018-09-01", + "TimeSeriesInformation": { + "sensitivities": [ + "Low", + "Medium" + ], + "values": [ + 61.0, + 62.0 + ] } -} \ No newline at end of file + }, + "responses": { + "200": { + "body": { + "type": "Microsoft.Insights/calculatebaseline", + "baseline": [ + { + "sensitivity": "Low", + "lowThresholds": [ + 30.0, + 31.1 + ], + "highThresholds": [ + 90.3453, + 91.3453 + ] + }, + { + "sensitivity": "Medium", + "lowThresholds": [ + 50.0, + 51.1 + ], + "highThresholds": [ + 70.3453, + 71.3453 + ] + } + ] + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaseline.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaseline.json index 05f072f096e4..326d00ba4e6b 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaseline.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaseline.json @@ -1,55 +1,55 @@ { - "parameters": { - "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "metricName": "PercentageCpu", - "aggregation": "Average", - "interval": "PT1H", - "sensitivities": "Low,Medium", - "api-version": "2018-09-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/baseline/PercentageCpu", - "type": "Microsoft.Insights/baseline", - "name": { - "value": "PercentageCpu" - }, - "properties": { - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "aggregation": "Average", - "interval": "PT1H", - "timestamps": [ - "2017-04-14T02:20:00Z", - "2017-04-14T03:20:00Z" - ], - "baseline": [ - { - "sensitivity": "Low", - "lowThresholds": [ - 30.0, - 31.1 - ], - "highThresholds": [ - 90.3453, - 91.3453 - ] - }, - { - "sensitivity": "Medium", - "lowThresholds": [ - 50.0, - 51.1 - ], - "highThresholds": [ - 70.3453, - 71.3453 - ] - } - ] - } - } + "parameters": { + "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", + "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "metricName": "PercentageCpu", + "aggregation": "Average", + "interval": "PT1H", + "sensitivities": "Low,Medium", + "api-version": "2018-09-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/baseline/PercentageCpu", + "type": "Microsoft.Insights/baseline", + "name": { + "value": "PercentageCpu" + }, + "properties": { + "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "aggregation": "Average", + "interval": "PT1H", + "timestamps": [ + "2017-04-14T02:20:00Z", + "2017-04-14T03:20:00Z" + ], + "baseline": [ + { + "sensitivity": "Low", + "lowThresholds": [ + 30.0, + 31.1 + ], + "highThresholds": [ + 90.3453, + 91.3453 + ] + }, + { + "sensitivity": "Medium", + "lowThresholds": [ + 50.0, + 51.1 + ], + "highThresholds": [ + 70.3453, + 71.3453 + ] + } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaselineMetadata.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaselineMetadata.json index 25bdf1d01df2..1af52e4488a8 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaselineMetadata.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/GetBaselineMetadata.json @@ -1,37 +1,37 @@ { - "parameters": { - "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "metricName": "PercentageCpu", - "aggregation": "Average", - "interval": "PT1H", - "resulttype": "metadata", - "api-version": "2018-09-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/baseline/PercentageCpu", - "type": "Microsoft.Insights/baseline", - "name": { - "value": "PercentageCpu" - }, - "properties": { - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "aggregation": "Average", - "interval": "PT1H", - "metadata": [ - { - "name": "CurrentTrainingState", - "value": "Trained" - }, - { - "name": "SelectedModel", - "value": "AdjustedBoxplot" - } - ] - } - } + "parameters": { + "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", + "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "metricName": "PercentageCpu", + "aggregation": "Average", + "interval": "PT1H", + "resulttype": "metadata", + "api-version": "2018-09-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/baseline/PercentageCpu", + "type": "Microsoft.Insights/baseline", + "name": { + "value": "PercentageCpu" + }, + "properties": { + "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "aggregation": "Average", + "interval": "PT1H", + "metadata": [ + { + "name": "CurrentTrainingState", + "value": "Trained" + }, + { + "name": "SelectedModel", + "value": "AdjustedBoxplot" + } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/createOrUpdateActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/createOrUpdateActionGroup.json index 5d79f314d84b..741971c63b8c 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/createOrUpdateActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/createOrUpdateActionGroup.json @@ -1,297 +1,297 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2018-09-01", - "actionGroup": { - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com" - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" - } - ], - "voiceReceivers": [ - { - "name": "Sample voice", - "countryCode": "1", - "phoneNumber": "1234567890" - } - ], - "logicAppReceivers": [ - { - "name": "Sample logicApp", - "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w" - } - ], - "azureFunctionReceivers": [ - { - "name": "Sample azureFunction", - "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - "functionName": "HttpTriggerCSharp1", - "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==" - } - ], - "armRoleReceivers": [ - { - "name": "Sample armRole", - "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635" - } - ] + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2018-09-01", + "actionGroup": { + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com" + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" + } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" + } + ], + "voiceReceivers": [ + { + "name": "Sample voice", + "countryCode": "1", + "phoneNumber": "1234567890" + } + ], + "logicAppReceivers": [ + { + "name": "Sample logicApp", + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w" + } + ], + "azureFunctionReceivers": [ + { + "name": "Sample azureFunction", + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", + "functionName": "HttpTriggerCSharp1", + "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==" + } + ], + "armRoleReceivers": [ + { + "name": "Sample armRole", + "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled" + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" + } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" + } + ], + "voiceReceivers": [ + { + "name": "Sample voice", + "countryCode": "1", + "phoneNumber": "1234567890" + } + ], + "logicAppReceivers": [ + { + "name": "Sample logicApp", + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w" + } + ], + "azureFunctionReceivers": [ + { + "name": "Sample azureFunction", + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", + "functionName": "HttpTriggerCSharp1", + "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==" } + ], + "armRoleReceivers": [ + { + "name": "Sample armRole", + "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635" + } + ] } + } }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled" - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" - } - ], - "voiceReceivers": [ - { - "name": "Sample voice", - "countryCode": "1", - "phoneNumber": "1234567890" - } - ], - "logicAppReceivers": [ - { - "name": "Sample logicApp", - "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w" - } - ], - "azureFunctionReceivers": [ - { - "name": "Sample azureFunction", - "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - "functionName": "HttpTriggerCSharp1", - "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==" - } - ], - "armRoleReceivers": [ - { - "name": "Sample armRole", - "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635" - } - ] - } + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled" + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" + } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" + } + ], + "voiceReceivers": [ + { + "name": "Sample voice", + "countryCode": "1", + "phoneNumber": "1234567890" + } + ], + "logicAppReceivers": [ + { + "name": "Sample logicApp", + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w" + } + ], + "azureFunctionReceivers": [ + { + "name": "Sample azureFunction", + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", + "functionName": "HttpTriggerCSharp1", + "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==" } - }, - "201": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled" - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d" - } - ], - "voiceReceivers": [ - { - "name": "Sample voice", - "countryCode": "1", - "phoneNumber": "1234567890" - } - ], - "logicAppReceivers": [ - { - "name": "Sample logicApp", - "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w" - } - ], - "azureFunctionReceivers": [ - { - "name": "Sample azureFunction", - "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - "functionName": "HttpTriggerCSharp1", - "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==" - } - ], - "armRoleReceivers": [ - { - "name": "Sample armRole", - "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635" - } - ] - } + ], + "armRoleReceivers": [ + { + "name": "Sample armRole", + "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635" } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/deleteActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/deleteActionGroup.json index 3d7edcf8ebb6..7bf317b1cd01 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/deleteActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/deleteActionGroup.json @@ -1,18 +1,12 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2018-08-01" - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2018-08-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/enableReceiver.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/enableReceiver.json index c57300b58fe7..46c33a09e190 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/enableReceiver.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/enableReceiver.json @@ -1,21 +1,15 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2018-08-01", - "enableRequest": { - "receiverName": "John Doe's mobile" - } - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "409": { - "headers": {}, - "body": null - } + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2018-08-01", + "enableRequest": { + "receiverName": "John Doe's mobile" } -} \ No newline at end of file + }, + "responses": { + "200": {}, + "409": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/getActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/getActionGroup.json index 6aa11ec2bdfc..d0b3e8101891 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/getActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/getActionGroup.json @@ -1,56 +1,56 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2018-08-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Disabled" - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Disabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ] - } + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2018-08-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Disabled" } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Disabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/listActionGroups.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/listActionGroups.json index cbce7c57b919..11fcec5d6097 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/listActionGroups.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/listActionGroups.json @@ -1,86 +1,86 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "api-version": "2018-03801" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Disabled" - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Disabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ] - } - }, - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup2", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup2", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample2", - "enabled": false, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - } - ], - "smsReceivers": [ - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [] - } - } - ] + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "api-version": "2018-03801" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Disabled" + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Disabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" + } + ] } - } + }, + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup2", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup2", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample2", + "enabled": false, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + } + ], + "smsReceivers": [ + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [] + } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/patchActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/patchActionGroup.json index fe9df4fec5f0..4f0cdf66c70e 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/patchActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-09-01/examples/patchActionGroup.json @@ -1,62 +1,68 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2018-08-01", - "actionGroupPatch": { - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "enabled": false + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2018-08-01", + "actionGroupPatch": { + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "enabled": false + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled" + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled" } - } - }, - "responses": { - "200": { - "headers": { }, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled" - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled" - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook" - } - ] - } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook" } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/actionGroups_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/actionGroups_API.json index ff39155ebae6..0f37312be577 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/actionGroups_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/actionGroups_API.json @@ -1,862 +1,862 @@ { - "swagger": "2.0", - "info": { - "title": "Azure Action Groups API", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2019-03-01" + "swagger": "2.0", + "info": { + "title": "Azure Action Groups API", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] + "version": "2019-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.insights/actionGroups/{actionGroupName}": { + "put": { + "description": "Create a new action group or update an existing one.", + "operationId": "ActionGroups_CreateOrUpdate", + "x-ms-examples": { + "Create or update an action group": { + "$ref": "./examples/createOrUpdateActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "name": "actionGroup", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActionGroupResource" + }, + "description": "The action group to create or use for the update." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "An existing action group was successfully updated.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "201": { + "description": "A new action group was successfully created.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "default": { + "description": "An error occurred and the action group could not be created or updated.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } - ], - "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" + }, + "get": { + "description": "Get an action group.", + "operationId": "ActionGroups_Get", + "x-ms-examples": { + "Get an action group": { + "$ref": "./examples/getActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" } + }, + "default": { + "description": "An error occurred and the action group could not be retrieved. 404: The action group does not exist.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}": { - "put": { - "description": "Create a new action group or update an existing one.", - "operationId": "ActionGroups_CreateOrUpdate", - "x-ms-examples": { - "Create or update an action group": { - "$ref": "./examples/createOrUpdateActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "name": "actionGroup", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActionGroupResource" - }, - "description": "The action group to create or use for the update." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "An existing action group was successfully updated.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "201": { - "description": "A new action group was successfully created.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "default": { - "description": "An error occurred and the action group could not be created or updated.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "get": { - "description": "Get an action group.", - "operationId": "ActionGroups_Get", - "x-ms-examples": { - "Get an action group": { - "$ref": "./examples/getActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "default": { - "description": "An error occurred and the action group could not be retrieved. 404: The action group does not exist.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "description": "Delete an action group.", - "operationId": "ActionGroups_Delete", - "x-ms-examples": { - "Delete an action group": { - "$ref": "./examples/deleteActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The action group was successfully deleted." - }, - "204": { - "description": "The action group does not exist. It may have already been deleted." - }, - "default": { - "description": "An error occurred and the action group could not be deleted.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "delete": { + "description": "Delete an action group.", + "operationId": "ActionGroups_Delete", + "x-ms-examples": { + "Delete an action group": { + "$ref": "./examples/deleteActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The action group was successfully deleted." + }, + "204": { + "description": "The action group does not exist. It may have already been deleted." + }, + "default": { + "description": "An error occurred and the action group could not be deleted.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "description": "Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.", + "operationId": "ActionGroups_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "actionGroupPatch", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActionGroupPatchBody" }, - "patch": { - "description": "Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.", - "operationId": "ActionGroups_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "actionGroupPatch", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActionGroupPatchBody" - }, - "description": "Parameters supplied to the operation." - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "An existing action group was successfully updated.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - } - }, - "x-ms-examples": { - "Patch an action group": { - "$ref": "./examples/patchActionGroup.json" - } - } + "description": "Parameters supplied to the operation." + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } - }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/actionGroups": { - "get": { - "description": "Get a list of all action groups in a subscription.", - "operationId": "ActionGroups_ListBySubscriptionId", - "x-ms-examples": { - "List action groups": { - "$ref": "./examples/listActionGroups.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupList" - } - }, - "default": { - "description": "An error occurred and the list of action groups could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "200": { + "description": "An existing action group was successfully updated.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" } + } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups": { - "get": { - "description": "Get a list of all action groups in a resource group.", - "operationId": "ActionGroups_ListByResourceGroup", - "x-ms-examples": { - "List action groups": { - "$ref": "./examples/listActionGroups.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupList" - } - }, - "default": { - "description": "An error occurred and the list of action groups could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } + "x-ms-examples": { + "Patch an action group": { + "$ref": "./examples/patchActionGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/microsoft.insights/actionGroups": { + "get": { + "description": "Get a list of all action groups in a subscription.", + "operationId": "ActionGroups_ListBySubscriptionId", + "x-ms-examples": { + "List action groups": { + "$ref": "./examples/listActionGroups.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}/subscribe": { - "post": { - "description": "Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.", - "operationId": "ActionGroups_EnableReceiver", - "x-ms-examples": { - "Enable the receiver": { - "$ref": "./examples/enableReceiver.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "name": "enableRequest", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/EnableRequest" - }, - "description": "The receiver to re-enable." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The receiver was successfully enabled." - }, - "409": { - "description": "The receiver is already enabled in the action group." - }, - "default": { - "description": "An error occurred and the receiver could not be enabled, e.g.: 404: The action group was not found or no matching receiver was found in the action group.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupList" } + }, + "default": { + "description": "An error occurred and the list of action groups could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } + } }, - "definitions": { - "Resource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Azure resource name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" - }, - "ActionGroupResource": { - "description": "An action group resource.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActionGroup", - "description": "The action groups properties of the resource." - } - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups": { + "get": { + "description": "Get a list of all action groups in a resource group.", + "operationId": "ActionGroups_ListByResourceGroup", + "x-ms-examples": { + "List action groups": { + "$ref": "./examples/listActionGroups.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null }, - "ActionGroupList": { - "description": "A list of action groups.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionGroupResource" - }, - "description": "The list of action groups." - }, - "nextLink": { - "type": "string", - "description": "Provides the link to retrieve the next set of elements." - } + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupList" } + }, + "default": { + "description": "An error occurred and the list of action groups could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}/subscribe": { + "post": { + "description": "Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.", + "operationId": "ActionGroups_EnableReceiver", + "x-ms-examples": { + "Enable the receiver": { + "$ref": "./examples/enableReceiver.json" + } }, - "ActionGroup": { - "description": "An Azure action group.", - "properties": { - "groupShortName": { - "type": "string", - "maxLength": 12, - "description": "The short name of the action group. This will be used in SMS messages." - }, - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." - }, - "emailReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/EmailReceiver" - }, - "description": "The list of email receivers that are part of this action group." - }, - "smsReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/SmsReceiver" - }, - "description": "The list of SMS receivers that are part of this action group." - }, - "webhookReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/WebhookReceiver" - }, - "description": "The list of webhook receivers that are part of this action group." - }, - "itsmReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/ItsmReceiver" - }, - "description": "The list of ITSM receivers that are part of this action group." - }, - "azureAppPushReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureAppPushReceiver" - }, - "description": "The list of AzureAppPush receivers that are part of this action group." - }, - "automationRunbookReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AutomationRunbookReceiver" - }, - "description": "The list of AutomationRunbook receivers that are part of this action group." - }, - "voiceReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceReceiver" - }, - "description": "The list of voice receivers that are part of this action group." - }, - "logicAppReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/LogicAppReceiver" - }, - "description": "The list of logic app receivers that are part of this action group." - }, - "azureFunctionReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureFunctionReceiver" - }, - "description": "The list of azure function receivers that are part of this action group." - }, - "armRoleReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/ArmRoleReceiver" - }, - "description": "The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported." - } - }, - "required": [ - "groupShortName", - "enabled" - ] - }, - "EmailReceiver": { - "description": "An email receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the email receiver. Names must be unique across all receivers within an action group." - }, - "emailAddress": { - "type": "string", - "description": "The email address of this receiver." - }, - "useCommonAlertSchema": { - "type": "boolean", - "description": "Indicates whether to use common alert schema." - }, - "status": { - "readOnly": true, - "$ref": "#/definitions/ReceiverStatus", - "description": "The receiver status of the e-mail." - } - }, - "required": [ - "name", - "emailAddress", - "useCommonAlertSchema" - ] - }, - "SmsReceiver": { - "description": "An SMS receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." - }, - "countryCode": { - "type": "string", - "description": "The country code of the SMS receiver." - }, - "phoneNumber": { - "type": "string", - "description": "The phone number of the SMS receiver." - }, - "status": { - "readOnly": true, - "$ref": "#/definitions/ReceiverStatus", - "description": "The status of the receiver." - } - }, - "required": [ - "name", - "countryCode", - "phoneNumber" - ] - }, - "WebhookReceiver": { - "description": "A webhook receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." - }, - "serviceUri": { - "type": "string", - "description": "The URI where webhooks should be sent." - }, - "useCommonAlertSchema": { - "type": "boolean", - "description": "Indicates whether to use common alert schema." - } - }, - "required": [ - "name", - "serviceUri", - "useCommonAlertSchema" - ] - }, - "ItsmReceiver": { - "description": "An Itsm receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." - }, - "workspaceId": { - "type": "string", - "description": "OMS LA instance identifier." - }, - "connectionId": { - "type": "string", - "description": "Unique identification of ITSM connection among multiple defined in above workspace." - }, - "ticketConfiguration": { - "type": "string", - "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." - }, - "region": { - "type": "string", - "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" - } - }, - "required": [ - "name", - "workspaceId", - "connectionId", - "ticketConfiguration", - "region" - ] - }, - "AzureAppPushReceiver": { - "description": "The Azure mobile App push notification receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." - }, - "emailAddress": { - "type": "string", - "description": "The email address registered for the Azure mobile app." - } - }, - "required": [ - "name", - "emailAddress" - ] - }, - "AutomationRunbookReceiver": { - "description": "The Azure Automation Runbook notification receiver.", - "properties": { - "automationAccountId": { - "type": "string", - "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." - }, - "runbookName": { - "type": "string", - "description": "The name for this runbook." - }, - "webhookResourceId": { - "type": "string", - "description": "The resource id for webhook linked to this runbook." - }, - "isGlobalRunbook": { - "type": "boolean", - "description": "Indicates whether this instance is global runbook." - }, - "name": { - "type": "string", - "description": "Indicates name of the webhook." - }, - "serviceUri": { - "type": "string", - "description": "The URI where webhooks should be sent." - }, - "useCommonAlertSchema": { - "type": "boolean", - "description": "Indicates whether to use common alert schema." - } - }, - "required": [ - "automationAccountId", - "runbookName", - "webhookResourceId", - "isGlobalRunbook", - "useCommonAlertSchema" - ] - }, - "VoiceReceiver": { - "description": "A voice receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the voice receiver. Names must be unique across all receivers within an action group." - }, - "countryCode": { - "type": "string", - "description": "The country code of the voice receiver." - }, - "phoneNumber": { - "type": "string", - "description": "The phone number of the voice receiver." - } - }, - "required": [ - "name", - "countryCode", - "phoneNumber" - ] - }, - "LogicAppReceiver": { - "description": "A logic app receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the logic app receiver. Names must be unique across all receivers within an action group." - }, - "resourceId": { - "type": "string", - "description": "The azure resource id of the logic app receiver." - }, - "callbackUrl": { - "type": "string", - "description": "The callback url where http request sent to." - }, - "useCommonAlertSchema": { - "type": "boolean", - "description": "Indicates whether to use common alert schema." - } - }, - "required": [ - "name", - "resourceId", - "callbackUrl", - "useCommonAlertSchema" - ] - }, - "AzureFunctionReceiver": { - "description": "An azure function receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the azure function receiver. Names must be unique across all receivers within an action group." - }, - "functionAppResourceId": { - "type": "string", - "description": "The azure resource id of the function app." - }, - "functionName": { - "type": "string", - "description": "The function name in the function app." - }, - "httpTriggerUrl": { - "type": "string", - "description": "The http trigger url where http request sent to." - }, - "useCommonAlertSchema": { - "type": "boolean", - "description": "Indicates whether to use common alert schema." - } - }, - "required": [ - "name", - "functionAppResourceId", - "functionName", - "httpTriggerUrl", - "useCommonAlertSchema" - ] - }, - "ArmRoleReceiver": { - "description": "An arm role receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the arm role receiver. Names must be unique across all receivers within an action group." - }, - "roleId": { - "type": "string", - "description": "The arm role id." - }, - "useCommonAlertSchema": { - "type": "boolean", - "description": "Indicates whether to use common alert schema." - } - }, - "required": [ - "name", - "roleId", - "useCommonAlertSchema" - ] - }, - "ReceiverStatus": { - "type": "string", - "enum": [ - "NotSpecified", - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "ReceiverStatus", - "modelAsString": false - }, - "description": "Indicates the status of the receiver. Receivers that are not Enabled will not receive any communications." - }, - "EnableRequest": { - "description": "Describes a receiver that should be resubscribed.", - "properties": { - "receiverName": { - "type": "string", - "description": "The name of the receiver to resubscribe." - } + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "name": "enableRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EnableRequest" }, - "required": [ - "receiverName" - ] - }, - "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" - } + "description": "The receiver to re-enable." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The receiver was successfully enabled." + }, + "409": { + "description": "The receiver is already enabled in the action group." + }, + "default": { + "description": "An error occurred and the receiver could not be enabled, e.g.: 404: The action group was not found or no matching receiver was found in the action group.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" }, - "ActionGroupPatchBody": { - "description": "An action group object for the body of patch operations.", - "properties": { - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActionGroupPatch", - "description": "The action group settings for an update operation." - } - } + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" }, - "ActionGroupPatch": { - "description": "An Azure action group for patch operations.", - "properties": { - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated." - } - } + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription Id." + "ActionGroupResource": { + "description": "An action group resource.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActionGroup", + "description": "The action groups properties of the resource." + } + } + }, + "ActionGroupList": { + "description": "A list of action groups.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ActionGroupResource" + }, + "description": "The list of action groups." }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" + "nextLink": { + "type": "string", + "description": "Provides the link to retrieve the next set of elements." + } + } + }, + "ActionGroup": { + "description": "An Azure action group.", + "properties": { + "groupShortName": { + "type": "string", + "maxLength": 12, + "description": "The short name of the action group. This will be used in SMS messages." }, - "ActionGroupNameParameter": { - "name": "actionGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the action group.", - "x-ms-parameter-location": "method" + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." + "emailReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/EmailReceiver" + }, + "description": "The list of email receivers that are part of this action group." + }, + "smsReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/SmsReceiver" + }, + "description": "The list of SMS receivers that are part of this action group." + }, + "webhookReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/WebhookReceiver" + }, + "description": "The list of webhook receivers that are part of this action group." + }, + "itsmReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/ItsmReceiver" + }, + "description": "The list of ITSM receivers that are part of this action group." + }, + "azureAppPushReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureAppPushReceiver" + }, + "description": "The list of AzureAppPush receivers that are part of this action group." + }, + "automationRunbookReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AutomationRunbookReceiver" + }, + "description": "The list of AutomationRunbook receivers that are part of this action group." + }, + "voiceReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceReceiver" + }, + "description": "The list of voice receivers that are part of this action group." + }, + "logicAppReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/LogicAppReceiver" + }, + "description": "The list of logic app receivers that are part of this action group." + }, + "azureFunctionReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFunctionReceiver" + }, + "description": "The list of azure function receivers that are part of this action group." + }, + "armRoleReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/ArmRoleReceiver" + }, + "description": "The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported." + } + }, + "required": [ + "groupShortName", + "enabled" + ] + }, + "EmailReceiver": { + "description": "An email receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the email receiver. Names must be unique across all receivers within an action group." + }, + "emailAddress": { + "type": "string", + "description": "The email address of this receiver." + }, + "useCommonAlertSchema": { + "type": "boolean", + "description": "Indicates whether to use common alert schema." + }, + "status": { + "readOnly": true, + "$ref": "#/definitions/ReceiverStatus", + "description": "The receiver status of the e-mail." + } + }, + "required": [ + "name", + "emailAddress", + "useCommonAlertSchema" + ] + }, + "SmsReceiver": { + "description": "An SMS receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." + }, + "countryCode": { + "type": "string", + "description": "The country code of the SMS receiver." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the SMS receiver." + }, + "status": { + "readOnly": true, + "$ref": "#/definitions/ReceiverStatus", + "description": "The status of the receiver." + } + }, + "required": [ + "name", + "countryCode", + "phoneNumber" + ] + }, + "WebhookReceiver": { + "description": "A webhook receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + }, + "useCommonAlertSchema": { + "type": "boolean", + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "name", + "serviceUri", + "useCommonAlertSchema" + ] + }, + "ItsmReceiver": { + "description": "An Itsm receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." + }, + "workspaceId": { + "type": "string", + "description": "OMS LA instance identifier." + }, + "connectionId": { + "type": "string", + "description": "Unique identification of ITSM connection among multiple defined in above workspace." + }, + "ticketConfiguration": { + "type": "string", + "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." + }, + "region": { + "type": "string", + "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" + } + }, + "required": [ + "name", + "workspaceId", + "connectionId", + "ticketConfiguration", + "region" + ] + }, + "AzureAppPushReceiver": { + "description": "The Azure mobile App push notification receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." + }, + "emailAddress": { + "type": "string", + "description": "The email address registered for the Azure mobile app." + } + }, + "required": [ + "name", + "emailAddress" + ] + }, + "AutomationRunbookReceiver": { + "description": "The Azure Automation Runbook notification receiver.", + "properties": { + "automationAccountId": { + "type": "string", + "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." + }, + "runbookName": { + "type": "string", + "description": "The name for this runbook." + }, + "webhookResourceId": { + "type": "string", + "description": "The resource id for webhook linked to this runbook." + }, + "isGlobalRunbook": { + "type": "boolean", + "description": "Indicates whether this instance is global runbook." + }, + "name": { + "type": "string", + "description": "Indicates name of the webhook." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + }, + "useCommonAlertSchema": { + "type": "boolean", + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "automationAccountId", + "runbookName", + "webhookResourceId", + "isGlobalRunbook", + "useCommonAlertSchema" + ] + }, + "VoiceReceiver": { + "description": "A voice receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the voice receiver. Names must be unique across all receivers within an action group." + }, + "countryCode": { + "type": "string", + "description": "The country code of the voice receiver." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the voice receiver." } + }, + "required": [ + "name", + "countryCode", + "phoneNumber" + ] + }, + "LogicAppReceiver": { + "description": "A logic app receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the logic app receiver. Names must be unique across all receivers within an action group." + }, + "resourceId": { + "type": "string", + "description": "The azure resource id of the logic app receiver." + }, + "callbackUrl": { + "type": "string", + "description": "The callback url where http request sent to." + }, + "useCommonAlertSchema": { + "type": "boolean", + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "name", + "resourceId", + "callbackUrl", + "useCommonAlertSchema" + ] + }, + "AzureFunctionReceiver": { + "description": "An azure function receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the azure function receiver. Names must be unique across all receivers within an action group." + }, + "functionAppResourceId": { + "type": "string", + "description": "The azure resource id of the function app." + }, + "functionName": { + "type": "string", + "description": "The function name in the function app." + }, + "httpTriggerUrl": { + "type": "string", + "description": "The http trigger url where http request sent to." + }, + "useCommonAlertSchema": { + "type": "boolean", + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "name", + "functionAppResourceId", + "functionName", + "httpTriggerUrl", + "useCommonAlertSchema" + ] + }, + "ArmRoleReceiver": { + "description": "An arm role receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the arm role receiver. Names must be unique across all receivers within an action group." + }, + "roleId": { + "type": "string", + "description": "The arm role id." + }, + "useCommonAlertSchema": { + "type": "boolean", + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "name", + "roleId", + "useCommonAlertSchema" + ] + }, + "ReceiverStatus": { + "type": "string", + "enum": [ + "NotSpecified", + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "ReceiverStatus", + "modelAsString": false + }, + "description": "Indicates the status of the receiver. Receivers that are not Enabled will not receive any communications." + }, + "EnableRequest": { + "description": "Describes a receiver that should be resubscribed.", + "properties": { + "receiverName": { + "type": "string", + "description": "The name of the receiver to resubscribe." + } + }, + "required": [ + "receiverName" + ] + }, + "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" + } + } + }, + "ActionGroupPatchBody": { + "description": "An action group object for the body of patch operations.", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActionGroupPatch", + "description": "The action group settings for an update operation." + } + } + }, + "ActionGroupPatch": { + "description": "An Azure action group for patch operations.", + "properties": { + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription Id." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ActionGroupNameParameter": { + "name": "actionGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the action group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/createOrUpdateActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/createOrUpdateActionGroup.json index 775a40ca8790..f6204525c10f 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/createOrUpdateActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/createOrUpdateActionGroup.json @@ -1,318 +1,318 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2019-03-01", - "actionGroup": { - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "useCommonAlertSchema": false - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "useCommonAlertSchema": true - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook", - "useCommonAlertSchema": true - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d", - "useCommonAlertSchema": true - } - ], - "voiceReceivers": [ - { - "name": "Sample voice", - "countryCode": "1", - "phoneNumber": "1234567890" - } - ], - "logicAppReceivers": [ - { - "name": "Sample logicApp", - "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", - "useCommonAlertSchema": false - } - ], - "azureFunctionReceivers": [ - { - "name": "Sample azureFunction", - "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - "functionName": "HttpTriggerCSharp1", - "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==", - "useCommonAlertSchema": true - } - ], - "armRoleReceivers": [ - { - "name": "Sample armRole", - "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", - "useCommonAlertSchema": true - } - ] + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2019-03-01", + "actionGroup": { + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "useCommonAlertSchema": false + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "useCommonAlertSchema": true + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook", + "useCommonAlertSchema": true + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" + } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d", + "useCommonAlertSchema": true + } + ], + "voiceReceivers": [ + { + "name": "Sample voice", + "countryCode": "1", + "phoneNumber": "1234567890" + } + ], + "logicAppReceivers": [ + { + "name": "Sample logicApp", + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", + "useCommonAlertSchema": false + } + ], + "azureFunctionReceivers": [ + { + "name": "Sample azureFunction", + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", + "functionName": "HttpTriggerCSharp1", + "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==", + "useCommonAlertSchema": true + } + ], + "armRoleReceivers": [ + { + "name": "Sample armRole", + "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", + "useCommonAlertSchema": true + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled", + "useCommonAlertSchema": false + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled", + "useCommonAlertSchema": true + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook", + "useCommonAlertSchema": true + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" + } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d", + "useCommonAlertSchema": true + } + ], + "voiceReceivers": [ + { + "name": "Sample voice", + "countryCode": "1", + "phoneNumber": "1234567890" + } + ], + "logicAppReceivers": [ + { + "name": "Sample logicApp", + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", + "useCommonAlertSchema": false + } + ], + "azureFunctionReceivers": [ + { + "name": "Sample azureFunction", + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", + "functionName": "HttpTriggerCSharp1", + "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==", + "useCommonAlertSchema": true } + ], + "armRoleReceivers": [ + { + "name": "Sample armRole", + "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", + "useCommonAlertSchema": true + } + ] } + } }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled", - "useCommonAlertSchema": false - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook", - "useCommonAlertSchema": true - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d", - "useCommonAlertSchema": true - } - ], - "voiceReceivers": [ - { - "name": "Sample voice", - "countryCode": "1", - "phoneNumber": "1234567890" - } - ], - "logicAppReceivers": [ - { - "name": "Sample logicApp", - "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", - "useCommonAlertSchema": false - } - ], - "azureFunctionReceivers": [ - { - "name": "Sample azureFunction", - "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - "functionName": "HttpTriggerCSharp1", - "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==", - "useCommonAlertSchema": true - } - ], - "armRoleReceivers": [ - { - "name": "Sample armRole", - "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", - "useCommonAlertSchema": true - } - ] - } + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled", + "useCommonAlertSchema": false + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled", + "useCommonAlertSchema": true + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook", + "useCommonAlertSchema": true + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" + } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d", + "useCommonAlertSchema": true + } + ], + "voiceReceivers": [ + { + "name": "Sample voice", + "countryCode": "1", + "phoneNumber": "1234567890" + } + ], + "logicAppReceivers": [ + { + "name": "Sample logicApp", + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", + "useCommonAlertSchema": false + } + ], + "azureFunctionReceivers": [ + { + "name": "Sample azureFunction", + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", + "functionName": "HttpTriggerCSharp1", + "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==", + "useCommonAlertSchema": true } - }, - "201": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled", - "useCommonAlertSchema": false - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook", - "useCommonAlertSchema": true - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d", - "useCommonAlertSchema": true - } - ], - "voiceReceivers": [ - { - "name": "Sample voice", - "countryCode": "1", - "phoneNumber": "1234567890" - } - ], - "logicAppReceivers": [ - { - "name": "Sample logicApp", - "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", - "useCommonAlertSchema": false - } - ], - "azureFunctionReceivers": [ - { - "name": "Sample azureFunction", - "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - "functionName": "HttpTriggerCSharp1", - "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==", - "useCommonAlertSchema": true - } - ], - "armRoleReceivers": [ - { - "name": "Sample armRole", - "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", - "useCommonAlertSchema": true - } - ] - } + ], + "armRoleReceivers": [ + { + "name": "Sample armRole", + "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", + "useCommonAlertSchema": true } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/deleteActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/deleteActionGroup.json index 3f5e257870b3..c60d533502f7 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/deleteActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/deleteActionGroup.json @@ -1,18 +1,12 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2019-03-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/enableReceiver.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/enableReceiver.json index 460f6864c0eb..ac399141a199 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/enableReceiver.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/enableReceiver.json @@ -1,21 +1,15 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2019-03-01", - "enableRequest": { - "receiverName": "John Doe's mobile" - } - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "409": { - "headers": {}, - "body": null - } + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2019-03-01", + "enableRequest": { + "receiverName": "John Doe's mobile" } -} \ No newline at end of file + }, + "responses": { + "200": {}, + "409": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/getActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/getActionGroup.json index 2896dd13117d..538e192f52bf 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/getActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/getActionGroup.json @@ -1,59 +1,59 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Disabled", - "useCommonAlertSchema": true - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Disabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook", - "useCommonAlertSchema": false - } - ] - } + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled", + "useCommonAlertSchema": true + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Disabled", + "useCommonAlertSchema": true } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Disabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook", + "useCommonAlertSchema": false + } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/listActionGroups.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/listActionGroups.json index 30bec9bfa7ea..9058cf7afdf3 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/listActionGroups.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/listActionGroups.json @@ -1,90 +1,90 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Disabled", - "useCommonAlertSchema": true - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Disabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook", - "useCommonAlertSchema": false - } - ] - } - }, - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup2", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup2", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample2", - "enabled": false, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - } - ], - "smsReceivers": [ - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [] - } - } - ] + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled", + "useCommonAlertSchema": true + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Disabled", + "useCommonAlertSchema": true + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Disabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook", + "useCommonAlertSchema": false + } + ] } - } + }, + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup2", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup2", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample2", + "enabled": false, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled", + "useCommonAlertSchema": true + } + ], + "smsReceivers": [ + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [] + } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/metricBaselines.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/metricBaselines.json index 788b72e76039..b44b5b9bffbf 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/metricBaselines.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/metricBaselines.json @@ -1,55 +1,73 @@ { - "parameters": { - "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", - "timespan": "2019-03-12T11:00:00.000Z/2019-03-12T12:00:00.000Z", - "metricName": "Percentage Cpu", - "aggregation": "average", - "interval": "PT1H", - "sensitivities": "Low,Medium", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "body": { - "value": [{ - "id": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/SmartAnalytics-DEV-VM/providers/Microsoft.Compute/virtualMachines/DemoVM1/providers/microsoft.insights/metricBaselines/Percentage CPU", - "type": "microsoft.insights/metricBaselines", - "name": "Percentage CPU", - "properties": { - "interval": "PT1H", - "timespan": "2019-03-12T11:00:00.000Z/2019-03-12T12:00:00.000Z", - "namespace": "microsoft.compute/virtualmachines", - "baselines": [{ - "aggregation": "average", - "dimensions": [], - "metadata": [{ - "name": "ErrorType", - "value": "TooManyAnomalies" - }, - { - "name": "SeasonalityFrequency", - "value": "288" - }], - "timestamps": ["2019-03-12T11:00:00.000Z", - "2019-03-12T12:00:00.000Z"], - "data": [{ - "sensitivity": "Low", - "lowThresholds": [30.0, - 31.1], - "highThresholds": [90.3453, - 91.3453] - }, - { - "sensitivity": "Medium", - "lowThresholds": [50.0, - 51.1], - "highThresholds": [70.3453, - 71.3453] - }] - }] - } - }] - } - } + "parameters": { + "resourceUri": "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1", + "timespan": "2019-03-12T11:00:00.000Z/2019-03-12T12:00:00.000Z", + "metricName": "Percentage Cpu", + "aggregation": "average", + "interval": "PT1H", + "sensitivities": "Low,Medium", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/SmartAnalytics-DEV-VM/providers/Microsoft.Compute/virtualMachines/DemoVM1/providers/microsoft.insights/metricBaselines/Percentage CPU", + "type": "microsoft.insights/metricBaselines", + "name": "Percentage CPU", + "properties": { + "interval": "PT1H", + "timespan": "2019-03-12T11:00:00.000Z/2019-03-12T12:00:00.000Z", + "namespace": "microsoft.compute/virtualmachines", + "baselines": [ + { + "aggregation": "average", + "dimensions": [], + "metadata": [ + { + "name": "ErrorType", + "value": "TooManyAnomalies" + }, + { + "name": "SeasonalityFrequency", + "value": "288" + } + ], + "timestamps": [ + "2019-03-12T11:00:00.000Z", + "2019-03-12T12:00:00.000Z" + ], + "data": [ + { + "sensitivity": "Low", + "lowThresholds": [ + 30.0, + 31.1 + ], + "highThresholds": [ + 90.3453, + 91.3453 + ] + }, + { + "sensitivity": "Medium", + "lowThresholds": [ + 50.0, + 51.1 + ], + "highThresholds": [ + 70.3453, + 71.3453 + ] + } + ] + } + ] + } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/patchActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/patchActionGroup.json index cea90dcf4195..ecfa69379297 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/patchActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/patchActionGroup.json @@ -1,65 +1,71 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2019-03-01", - "actionGroupPatch": { - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "enabled": false + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2019-03-01", + "actionGroupPatch": { + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "enabled": false + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled", + "useCommonAlertSchema": true + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled", + "useCommonAlertSchema": true } - } - }, - "responses": { - "200": { - "headers": { }, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook", - "useCommonAlertSchema": false - } - ] - } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook", + "useCommonAlertSchema": false } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/metricBaselines_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/metricBaselines_API.json index 5f107a50da50..6d7f50245e2c 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/metricBaselines_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/metricBaselines_API.json @@ -1,376 +1,399 @@ { - "swagger": "2.0", - "info": { - "title": "MonitorManagementClient", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2019-03-01" + "swagger": "2.0", + "info": { + "title": "MonitorManagementClient", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "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" - } + "version": "2019-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": { - "/{resourceUri}/providers/microsoft.insights/metricBaselines": { - "get": { - "tags": [ - "Baseline", - "Metric" - ], - "operationId": "Baselines_List", - "description": "**Lists the metric baseline values for a resource**.", - "x-ms-examples": { - "Get metric baselines": { - "$ref": "./examples/metricBaselines.json" - } + } + }, + "paths": { + "/{resourceUri}/providers/microsoft.insights/metricBaselines": { + "get": { + "tags": [ + "Baseline", + "Metric" + ], + "operationId": "Baselines_List", + "description": "**Lists the metric baseline values for a resource**.", + "x-ms-examples": { + "Get metric baselines": { + "$ref": "./examples/metricBaselines.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceUriParameter" + }, + { + "$ref": "#/parameters/MetricNamesParameter" + }, + { + "$ref": "#/parameters/MetricNamespaceParameter" }, - "x-ms-pageable": { - "nextLinkName": null + { + "$ref": "#/parameters/TimespanParameter" }, - "parameters": [ - { - "$ref": "#/parameters/ResourceUriParameter" - }, - { - "$ref": "#/parameters/MetricNamesParameter" - }, - { - "$ref": "#/parameters/MetricNamespaceParameter" - }, - { - "$ref": "#/parameters/TimespanParameter" - }, - { - "$ref": "#/parameters/IntervalParameter" - }, - { - "$ref": "#/parameters/AggregationsParameter" - }, - { - "$ref": "#/parameters/SensitivitiesParameter" - }, - { - "name": "$filter", - "in": "query", - "type": "string", - "description": "The **$filter** is used to reduce the set of metric data returned.
Example:
Metric contains metadata A, B and C.
- Return all time series of C where A = a1 and B = b1 or b2
**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**
- Invalid variant:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**
This is invalid because the logical or operator cannot separate two different metadata names.
- Return all time series where A = a1, B = b1 and C = c1:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**
- Return all time series where A = a1
**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**.", - "required": false - }, - { - "$ref": "#/parameters/BaselineResultTypeParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" + { + "$ref": "#/parameters/IntervalParameter" + }, + { + "$ref": "#/parameters/AggregationsParameter" + }, + { + "$ref": "#/parameters/SensitivitiesParameter" + }, + { + "name": "$filter", + "in": "query", + "type": "string", + "description": "The **$filter** is used to reduce the set of metric data returned.
Example:
Metric contains metadata A, B and C.
- Return all time series of C where A = a1 and B = b1 or b2
**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**
- Invalid variant:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**
This is invalid because the logical or operator cannot separate two different metadata names.
- Return all time series where A = a1, B = b1 and C = c1:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**
- Return all time series where A = a1
**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**.", + "required": false + }, + { + "$ref": "#/parameters/BaselineResultTypeParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "Successful request to get the list of metric baseline values.", - "schema": { - "$ref": "#/definitions/MetricBaselinesResponse" - } + }, + "200": { + "description": "Successful request to get the list of metric baseline values.", + "schema": { + "$ref": "#/definitions/MetricBaselinesResponse" } } } } + } + }, + "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" + } + } }, - "definitions": { - "ErrorResponse": { - "description": "Describes the format of Error response.", - "type": "object", - "properties": { - "code": { - "description": "Error code", - "type": "string" + "MetricBaselinesResponse": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SingleMetricBaseline" }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string" - } + "description": "The list of metric baselines." } }, - "MetricBaselinesResponse": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SingleMetricBaseline" - }, - "description": "The list of metric baselines." - } - }, - "description": "A list of metric baselines." - }, - "SingleMetricBaseline": { - "properties": { - "id": { - "type": "string", - "description": "The metric baseline Id." - }, - "type": { - "type": "string", - "description": "The resource type of the metric baseline resource." - }, - "name": { - "type": "string", - "description": "The name of the metric for which the baselines were retrieved." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/MetricBaselinesProperties", - "description": "The metric baseline properties of the metric." - } + "description": "A list of metric baselines." + }, + "SingleMetricBaseline": { + "properties": { + "id": { + "type": "string", + "description": "The metric baseline Id." + }, + "type": { + "type": "string", + "description": "The resource type of the metric baseline resource." + }, + "name": { + "type": "string", + "description": "The name of the metric for which the baselines were retrieved." }, - "required": [ "id", "type", "name", "properties" ], - "description": "The baseline results of a single metric." - }, - "MetricBaselinesProperties": { - "type": "object", "properties": { - "timespan": { - "type": "string", - "description": "The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested." - }, - "interval": { - "type": "string", - "format": "duration", - "description": "The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made." + "x-ms-client-flatten": true, + "$ref": "#/definitions/MetricBaselinesProperties", + "description": "The metric baseline properties of the metric." + } + }, + "required": [ + "id", + "type", + "name", + "properties" + ], + "description": "The baseline results of a single metric." + }, + "MetricBaselinesProperties": { + "type": "object", + "properties": { + "timespan": { + "type": "string", + "description": "The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested." + }, + "interval": { + "type": "string", + "format": "duration", + "description": "The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made." + }, + "namespace": { + "type": "string", + "description": "The namespace of the metrics been queried." + }, + "baselines": { + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesBaseline" }, - "namespace": { - "type": "string", - "description": "The namespace of the metrics been queried." + "description": "The baseline for each time series that was queried." + } + }, + "required": [ + "timespan", + "interval", + "baselines" + ], + "description": "The response to a metric baselines query." + }, + "TimeSeriesBaseline": { + "properties": { + "aggregation": { + "type": "string", + "description": "The aggregation type of the metric." + }, + "dimensions": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricSingleDimension" }, - "baselines": { - "type": "array", - "items": { - "$ref": "#/definitions/TimeSeriesBaseline" - }, - "description": "The baseline for each time series that was queried." - } + "description": "The dimensions of this time series." }, - "required": [ "timespan", "interval", "baselines" ], - "description": "The response to a metric baselines query." - }, - "TimeSeriesBaseline": { - "properties": { - "aggregation": { + "timestamps": { + "type": "array", + "items": { "type": "string", - "description": "The aggregation type of the metric." - }, - "dimensions": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricSingleDimension" - }, - "description": "The dimensions of this time series." - }, - "timestamps": { - "type": "array", - "items": { - "type": "string", - "format": "date-time", - "description": "The timestamp for the baseline value in ISO 8601 format." - }, - "description": "The list of timestamps of the baselines." + "format": "date-time", + "description": "The timestamp for the baseline value in ISO 8601 format." }, - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/SingleBaseline" - }, - "description": "The baseline values for each sensitivity." + "description": "The list of timestamps of the baselines." + }, + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/SingleBaseline" }, - "metadata": { - "type": "array", - "items": { - "$ref": "#/definitions/BaselineMetadata" - }, - "description": "The baseline metadata values." - } + "description": "The baseline values for each sensitivity." }, - "required": [ "aggregation", "timestamps", "data" ], - "description": "The baseline values for a single time series." - }, - "MetricSingleDimension": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Name of the dimension." + "metadata": { + "type": "array", + "items": { + "$ref": "#/definitions/BaselineMetadata" }, - "value": { - "type": "string", - "description": "Value of the dimension." - } + "description": "The baseline metadata values." + } + }, + "required": [ + "aggregation", + "timestamps", + "data" + ], + "description": "The baseline values for a single time series." + }, + "MetricSingleDimension": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the dimension." }, - "required": [ "name", "value" ], - "description": "The metric dimension name and value." + "value": { + "type": "string", + "description": "Value of the dimension." + } }, - "SingleBaseline": { - "type": "object", - "properties": { - "sensitivity": { - "type": "string", - "enum": [ - "Low", - "Medium", - "High" - ], - "x-ms-enum": { - "name": "BaselineSensitivity", - "modelAsString": true - }, - "description": "the sensitivity of the baseline." - }, - "lowThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single low threshold value." - }, - "description": "The low thresholds of the baseline." + "required": [ + "name", + "value" + ], + "description": "The metric dimension name and value." + }, + "SingleBaseline": { + "type": "object", + "properties": { + "sensitivity": { + "type": "string", + "enum": [ + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "BaselineSensitivity", + "modelAsString": true }, - "highThresholds": { - "type": "array", - "items": { - "type": "number", - "format": "double", - "description": "A single high threshold value." - }, - "description": "The high thresholds of the baseline." - } + "description": "the sensitivity of the baseline." }, - "required": [ "sensitivity", "lowThresholds", "highThresholds" ], - "description": "The baseline values for a single sensitivity value." - }, - "BaselineMetadata": { - "properties": { - "name": { - "type": "string", - "description": "Name of the baseline metadata." + "lowThresholds": { + "type": "array", + "items": { + "type": "number", + "format": "double", + "description": "A single low threshold value." }, - "value": { - "type": "string", - "description": "Value of the baseline metadata." - } + "description": "The low thresholds of the baseline." }, - "required": [ "name", "value" ], - "description": "Represents a baseline metadata value." - } - }, - "parameters": { - "ResourceUriParameter": { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The identifier of the resource.", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "TimespanParameter": { - "name": "timespan", - "in": "query", - "required": false, - "type": "string", - "description": "The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.", - "x-ms-parameter-location": "method" - }, - "IntervalParameter": { - "name": "interval", - "in": "query", - "required": false, - "type": "string", - "format": "duration", - "description": "The interval (i.e. timegrain) of the query.", - "x-ms-parameter-location": "method" - }, - "MetricNamesParameter": { - "name": "metricnames", - "in": "query", - "required": false, - "type": "string", - "description": "The names of the metrics (comma separated) to retrieve.", - "x-ms-parameter-location": "method" - }, - "MetricNamespaceParameter": { - "name": "metricnamespace", - "in": "query", - "required": false, - "type": "string", - "description": "Metric namespace to query metric definitions for.", - "x-ms-parameter-location": "method" - }, - "AggregationsParameter": { - "name": "aggregation", - "in": "query", - "required": false, - "type": "string", - "description": "The list of aggregation types (comma separated) to retrieve.", - "x-ms-parameter-location": "method" - }, - "SensitivitiesParameter": { - "name": "sensitivities", - "in": "query", - "required": false, - "type": "string", - "description": "The list of sensitivities (comma separated) to retrieve.", - "x-ms-parameter-location": "method" + "highThresholds": { + "type": "array", + "items": { + "type": "number", + "format": "double", + "description": "A single high threshold value." + }, + "description": "The high thresholds of the baseline." + } }, - "BaselineResultTypeParameter": { - "name": "resultType", - "in": "query", - "type": "string", - "enum": [ - "Data", - "Metadata" - ], - "x-ms-enum": { - "name": "ResultType", - "modelAsString": false + "required": [ + "sensitivity", + "lowThresholds", + "highThresholds" + ], + "description": "The baseline values for a single sensitivity value." + }, + "BaselineMetadata": { + "properties": { + "name": { + "type": "string", + "description": "Name of the baseline metadata." }, - "description": "Allows retrieving only metadata of the baseline. On data request all information is retrieved.", - "x-ms-parameter-location": "method", - "required": false + "value": { + "type": "string", + "description": "Value of the baseline metadata." + } }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - } + "required": [ + "name", + "value" + ], + "description": "Represents a baseline metadata value." + } + }, + "parameters": { + "ResourceUriParameter": { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The identifier of the resource.", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "TimespanParameter": { + "name": "timespan", + "in": "query", + "required": false, + "type": "string", + "description": "The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.", + "x-ms-parameter-location": "method" + }, + "IntervalParameter": { + "name": "interval", + "in": "query", + "required": false, + "type": "string", + "format": "duration", + "description": "The interval (i.e. timegrain) of the query.", + "x-ms-parameter-location": "method" + }, + "MetricNamesParameter": { + "name": "metricnames", + "in": "query", + "required": false, + "type": "string", + "description": "The names of the metrics (comma separated) to retrieve.", + "x-ms-parameter-location": "method" + }, + "MetricNamespaceParameter": { + "name": "metricnamespace", + "in": "query", + "required": false, + "type": "string", + "description": "Metric namespace to query metric definitions for.", + "x-ms-parameter-location": "method" + }, + "AggregationsParameter": { + "name": "aggregation", + "in": "query", + "required": false, + "type": "string", + "description": "The list of aggregation types (comma separated) to retrieve.", + "x-ms-parameter-location": "method" + }, + "SensitivitiesParameter": { + "name": "sensitivities", + "in": "query", + "required": false, + "type": "string", + "description": "The list of sensitivities (comma separated) to retrieve.", + "x-ms-parameter-location": "method" + }, + "BaselineResultTypeParameter": { + "name": "resultType", + "in": "query", + "type": "string", + "enum": [ + "Data", + "Metadata" + ], + "x-ms-enum": { + "name": "ResultType", + "modelAsString": false + }, + "description": "Allows retrieving only metadata of the baseline. On data request all information is retrieved.", + "x-ms-parameter-location": "method", + "required": false + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." } -} \ No newline at end of file + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/actionGroups_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/actionGroups_API.json index 02911328fec6..fd6200e7e7d8 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/actionGroups_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/actionGroups_API.json @@ -1,879 +1,879 @@ { - "swagger": "2.0", - "info": { - "title": "Azure Action Groups API", - "x-ms-code-generation-settings": { - "name": "MonitorManagementClient" - }, - "version": "2019-06-01" + "swagger": "2.0", + "info": { + "title": "Azure Action Groups API", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] + "version": "2019-06-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.insights/actionGroups/{actionGroupName}": { + "put": { + "description": "Create a new action group or update an existing one.", + "operationId": "ActionGroups_CreateOrUpdate", + "x-ms-examples": { + "Create or update an action group": { + "$ref": "./examples/createOrUpdateActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "name": "actionGroup", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActionGroupResource" + }, + "description": "The action group to create or use for the update." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "An existing action group was successfully updated.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "201": { + "description": "A new action group was successfully created.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "default": { + "description": "An error occurred and the action group could not be created or updated.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } } - ], - "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" + }, + "get": { + "description": "Get an action group.", + "operationId": "ActionGroups_Get", + "x-ms-examples": { + "Get an action group": { + "$ref": "./examples/getActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" + } + }, + "default": { + "description": "An error occurred and the action group could not be retrieved. 404: The action group does not exist.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}": { - "put": { - "description": "Create a new action group or update an existing one.", - "operationId": "ActionGroups_CreateOrUpdate", - "x-ms-examples": { - "Create or update an action group": { - "$ref": "./examples/createOrUpdateActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "name": "actionGroup", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActionGroupResource" - }, - "description": "The action group to create or use for the update." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "An existing action group was successfully updated.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "201": { - "description": "A new action group was successfully created.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "default": { - "description": "An error occurred and the action group could not be created or updated.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "get": { - "description": "Get an action group.", - "operationId": "ActionGroups_Get", - "x-ms-examples": { - "Get an action group": { - "$ref": "./examples/getActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - }, - "default": { - "description": "An error occurred and the action group could not be retrieved. 404: The action group does not exist.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "description": "Delete an action group.", - "operationId": "ActionGroups_Delete", - "x-ms-examples": { - "Delete an action group": { - "$ref": "./examples/deleteActionGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The action group was successfully deleted." - }, - "204": { - "description": "The action group does not exist. It may have already been deleted." - }, - "default": { - "description": "An error occurred and the action group could not be deleted.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "delete": { + "description": "Delete an action group.", + "operationId": "ActionGroups_Delete", + "x-ms-examples": { + "Delete an action group": { + "$ref": "./examples/deleteActionGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The action group was successfully deleted." + }, + "204": { + "description": "The action group does not exist. It may have already been deleted." + }, + "default": { + "description": "An error occurred and the action group could not be deleted.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "description": "Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.", + "operationId": "ActionGroups_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "actionGroupPatch", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActionGroupPatchBody" }, - "patch": { - "description": "Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.", - "operationId": "ActionGroups_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "actionGroupPatch", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActionGroupPatchBody" - }, - "description": "Parameters supplied to the operation." - } - ], - "responses": { - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "200": { - "description": "An existing action group was successfully updated.", - "schema": { - "$ref": "#/definitions/ActionGroupResource" - } - } - }, - "x-ms-examples": { - "Patch an action group": { - "$ref": "./examples/patchActionGroup.json" - } - } + "description": "Parameters supplied to the operation." + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } - }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/actionGroups": { - "get": { - "description": "Get a list of all action groups in a subscription.", - "operationId": "ActionGroups_ListBySubscriptionId", - "x-ms-examples": { - "List action groups": { - "$ref": "./examples/listActionGroups.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupList" - } - }, - "default": { - "description": "An error occurred and the list of action groups could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + }, + "200": { + "description": "An existing action group was successfully updated.", + "schema": { + "$ref": "#/definitions/ActionGroupResource" } + } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups": { - "get": { - "description": "Get a list of all action groups in a resource group.", - "operationId": "ActionGroups_ListByResourceGroup", - "x-ms-examples": { - "List action groups": { - "$ref": "./examples/listActionGroups.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request succeeded.", - "schema": { - "$ref": "#/definitions/ActionGroupList" - } - }, - "default": { - "description": "An error occurred and the list of action groups could not be retrieved.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } + "x-ms-examples": { + "Patch an action group": { + "$ref": "./examples/patchActionGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/microsoft.insights/actionGroups": { + "get": { + "description": "Get a list of all action groups in a subscription.", + "operationId": "ActionGroups_ListBySubscriptionId", + "x-ms-examples": { + "List action groups": { + "$ref": "./examples/listActionGroups.json" + } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}/subscribe": { - "post": { - "description": "Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.", - "operationId": "ActionGroups_EnableReceiver", - "x-ms-examples": { - "Enable the receiver": { - "$ref": "./examples/enableReceiver.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ActionGroupNameParameter" - }, - { - "name": "enableRequest", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/EnableRequest" - }, - "description": "The receiver to re-enable." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The receiver was successfully enabled." - }, - "409": { - "description": "The receiver is already enabled in the action group." - }, - "default": { - "description": "An error occurred and the receiver could not be enabled, e.g.: 404: The action group was not found or no matching receiver was found in the action group.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupList" + } + }, + "default": { + "description": "An error occurred and the list of action groups could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } } + } }, - "definitions": { - "Resource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Azure resource name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" - }, - "ActionGroupResource": { - "description": "An action group resource.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActionGroup", - "description": "The action groups properties of the resource." - } - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups": { + "get": { + "description": "Get a list of all action groups in a resource group.", + "operationId": "ActionGroups_ListByResourceGroup", + "x-ms-examples": { + "List action groups": { + "$ref": "./examples/listActionGroups.json" + } }, - "ActionGroupList": { - "description": "A list of action groups.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionGroupResource" - }, - "description": "The list of action groups." - }, - "nextLink": { - "type": "string", - "description": "Provides the link to retrieve the next set of elements." - } + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request succeeded.", + "schema": { + "$ref": "#/definitions/ActionGroupList" + } + }, + "default": { + "description": "An error occurred and the list of action groups could not be retrieved.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}/subscribe": { + "post": { + "description": "Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.", + "operationId": "ActionGroups_EnableReceiver", + "x-ms-examples": { + "Enable the receiver": { + "$ref": "./examples/enableReceiver.json" + } }, - "ActionGroup": { - "description": "An Azure action group.", - "properties": { - "groupShortName": { - "type": "string", - "maxLength": 12, - "description": "The short name of the action group. This will be used in SMS messages." - }, - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." - }, - "emailReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/EmailReceiver" - }, - "description": "The list of email receivers that are part of this action group." - }, - "smsReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/SmsReceiver" - }, - "description": "The list of SMS receivers that are part of this action group." - }, - "webhookReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/WebhookReceiver" - }, - "description": "The list of webhook receivers that are part of this action group." - }, - "itsmReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/ItsmReceiver" - }, - "description": "The list of ITSM receivers that are part of this action group." - }, - "azureAppPushReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureAppPushReceiver" - }, - "description": "The list of AzureAppPush receivers that are part of this action group." - }, - "automationRunbookReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AutomationRunbookReceiver" - }, - "description": "The list of AutomationRunbook receivers that are part of this action group." - }, - "voiceReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceReceiver" - }, - "description": "The list of voice receivers that are part of this action group." - }, - "logicAppReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/LogicAppReceiver" - }, - "description": "The list of logic app receivers that are part of this action group." - }, - "azureFunctionReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureFunctionReceiver" - }, - "description": "The list of azure function receivers that are part of this action group." - }, - "armRoleReceivers": { - "type": "array", - "items": { - "$ref": "#/definitions/ArmRoleReceiver" - }, - "description": "The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported." - } - }, - "required": [ - "groupShortName", - "enabled" - ] - }, - "EmailReceiver": { - "description": "An email receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the email receiver. Names must be unique across all receivers within an action group." - }, - "emailAddress": { - "type": "string", - "description": "The email address of this receiver." - }, - "useCommonAlertSchema": { - "type": "boolean", - "description": "Indicates whether to use common alert schema." - }, - "status": { - "readOnly": true, - "$ref": "#/definitions/ReceiverStatus", - "description": "The receiver status of the e-mail." - } - }, - "required": [ - "name", - "emailAddress", - "useCommonAlertSchema" - ] - }, - "SmsReceiver": { - "description": "An SMS receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." - }, - "countryCode": { - "type": "string", - "description": "The country code of the SMS receiver." - }, - "phoneNumber": { - "type": "string", - "description": "The phone number of the SMS receiver." - }, - "status": { - "readOnly": true, - "$ref": "#/definitions/ReceiverStatus", - "description": "The status of the receiver." - } - }, - "required": [ - "name", - "countryCode", - "phoneNumber" - ] - }, - "WebhookReceiver": { - "description": "A webhook receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." - }, - "serviceUri": { - "type": "string", - "description": "The URI where webhooks should be sent." - }, - "useCommonAlertSchema": { - "type": "boolean", - "description": "Indicates whether to use common alert schema." - }, - "useAadAuth": { - "type": "boolean", - "default": false, - "description": "Indicates whether or not use AAD authentication." - }, - "objectId": { - "type": "string", - "description": "Indicates the webhook app object Id for aad auth." - }, - "identifierUri": { - "type": "string", - "description": "Indicates the identifier uri for aad auth." - }, - "tenantId": { - "type": "string", - "description": "Indicates the tenant id for aad auth." - } - }, - "required": [ - "name", - "serviceUri", - "useCommonAlertSchema" - ] - }, - "ItsmReceiver": { - "description": "An Itsm receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." - }, - "workspaceId": { - "type": "string", - "description": "OMS LA instance identifier." - }, - "connectionId": { - "type": "string", - "description": "Unique identification of ITSM connection among multiple defined in above workspace." - }, - "ticketConfiguration": { - "type": "string", - "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." - }, - "region": { - "type": "string", - "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" - } - }, - "required": [ - "name", - "workspaceId", - "connectionId", - "ticketConfiguration", - "region" - ] - }, - "AzureAppPushReceiver": { - "description": "The Azure mobile App push notification receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." - }, - "emailAddress": { - "type": "string", - "description": "The email address registered for the Azure mobile app." - } - }, - "required": [ - "name", - "emailAddress" - ] - }, - "AutomationRunbookReceiver": { - "description": "The Azure Automation Runbook notification receiver.", - "properties": { - "automationAccountId": { - "type": "string", - "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." - }, - "runbookName": { - "type": "string", - "description": "The name for this runbook." - }, - "webhookResourceId": { - "type": "string", - "description": "The resource id for webhook linked to this runbook." - }, - "isGlobalRunbook": { - "type": "boolean", - "description": "Indicates whether this instance is global runbook." - }, - "name": { - "type": "string", - "description": "Indicates name of the webhook." - }, - "serviceUri": { - "type": "string", - "description": "The URI where webhooks should be sent." - }, - "useCommonAlertSchema": { - "type": "boolean", - "description": "Indicates whether to use common alert schema." - } - }, - "required": [ - "automationAccountId", - "runbookName", - "webhookResourceId", - "isGlobalRunbook", - "useCommonAlertSchema" - ] - }, - "VoiceReceiver": { - "description": "A voice receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the voice receiver. Names must be unique across all receivers within an action group." - }, - "countryCode": { - "type": "string", - "description": "The country code of the voice receiver." - }, - "phoneNumber": { - "type": "string", - "description": "The phone number of the voice receiver." - } - }, - "required": [ - "name", - "countryCode", - "phoneNumber" - ] - }, - "LogicAppReceiver": { - "description": "A logic app receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the logic app receiver. Names must be unique across all receivers within an action group." - }, - "resourceId": { - "type": "string", - "description": "The azure resource id of the logic app receiver." - }, - "callbackUrl": { - "type": "string", - "description": "The callback url where http request sent to." - }, - "useCommonAlertSchema": { - "type": "boolean", - "description": "Indicates whether to use common alert schema." - } - }, - "required": [ - "name", - "resourceId", - "callbackUrl", - "useCommonAlertSchema" - ] - }, - "AzureFunctionReceiver": { - "description": "An azure function receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the azure function receiver. Names must be unique across all receivers within an action group." - }, - "functionAppResourceId": { - "type": "string", - "description": "The azure resource id of the function app." - }, - "functionName": { - "type": "string", - "description": "The function name in the function app." - }, - "httpTriggerUrl": { - "type": "string", - "description": "The http trigger url where http request sent to." - }, - "useCommonAlertSchema": { - "type": "boolean", - "description": "Indicates whether to use common alert schema." - } - }, - "required": [ - "name", - "functionAppResourceId", - "functionName", - "httpTriggerUrl", - "useCommonAlertSchema" - ] - }, - "ArmRoleReceiver": { - "description": "An arm role receiver.", - "properties": { - "name": { - "type": "string", - "description": "The name of the arm role receiver. Names must be unique across all receivers within an action group." - }, - "roleId": { - "type": "string", - "description": "The arm role id." - }, - "useCommonAlertSchema": { - "type": "boolean", - "description": "Indicates whether to use common alert schema." - } - }, - "required": [ - "name", - "roleId", - "useCommonAlertSchema" - ] - }, - "ReceiverStatus": { - "type": "string", - "enum": [ - "NotSpecified", - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "ReceiverStatus", - "modelAsString": false - }, - "description": "Indicates the status of the receiver. Receivers that are not Enabled will not receive any communications." - }, - "EnableRequest": { - "description": "Describes a receiver that should be resubscribed.", - "properties": { - "receiverName": { - "type": "string", - "description": "The name of the receiver to resubscribe." - } + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ActionGroupNameParameter" + }, + { + "name": "enableRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EnableRequest" }, - "required": [ - "receiverName" - ] - }, - "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" - } + "description": "The receiver to re-enable." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The receiver was successfully enabled." + }, + "409": { + "description": "The receiver is already enabled in the action group." + }, + "default": { + "description": "An error occurred and the receiver could not be enabled, e.g.: 404: The action group was not found or no matching receiver was found in the action group.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" }, - "ActionGroupPatchBody": { - "description": "An action group object for the body of patch operations.", - "properties": { - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ActionGroupPatch", - "description": "The action group settings for an update operation." - } - } + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" }, - "ActionGroupPatch": { - "description": "An Azure action group for patch operations.", - "properties": { - "enabled": { - "type": "boolean", - "default": true, - "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated." - } - } + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription Id." + "ActionGroupResource": { + "description": "An action group resource.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActionGroup", + "description": "The action groups properties of the resource." + } + } + }, + "ActionGroupList": { + "description": "A list of action groups.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ActionGroupResource" + }, + "description": "The list of action groups." }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" + "nextLink": { + "type": "string", + "description": "Provides the link to retrieve the next set of elements." + } + } + }, + "ActionGroup": { + "description": "An Azure action group.", + "properties": { + "groupShortName": { + "type": "string", + "maxLength": 12, + "description": "The short name of the action group. This will be used in SMS messages." }, - "ActionGroupNameParameter": { - "name": "actionGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the action group.", - "x-ms-parameter-location": "method" + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." + "emailReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/EmailReceiver" + }, + "description": "The list of email receivers that are part of this action group." + }, + "smsReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/SmsReceiver" + }, + "description": "The list of SMS receivers that are part of this action group." + }, + "webhookReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/WebhookReceiver" + }, + "description": "The list of webhook receivers that are part of this action group." + }, + "itsmReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/ItsmReceiver" + }, + "description": "The list of ITSM receivers that are part of this action group." + }, + "azureAppPushReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureAppPushReceiver" + }, + "description": "The list of AzureAppPush receivers that are part of this action group." + }, + "automationRunbookReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AutomationRunbookReceiver" + }, + "description": "The list of AutomationRunbook receivers that are part of this action group." + }, + "voiceReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceReceiver" + }, + "description": "The list of voice receivers that are part of this action group." + }, + "logicAppReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/LogicAppReceiver" + }, + "description": "The list of logic app receivers that are part of this action group." + }, + "azureFunctionReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFunctionReceiver" + }, + "description": "The list of azure function receivers that are part of this action group." + }, + "armRoleReceivers": { + "type": "array", + "items": { + "$ref": "#/definitions/ArmRoleReceiver" + }, + "description": "The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported." } + }, + "required": [ + "groupShortName", + "enabled" + ] + }, + "EmailReceiver": { + "description": "An email receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the email receiver. Names must be unique across all receivers within an action group." + }, + "emailAddress": { + "type": "string", + "description": "The email address of this receiver." + }, + "useCommonAlertSchema": { + "type": "boolean", + "description": "Indicates whether to use common alert schema." + }, + "status": { + "readOnly": true, + "$ref": "#/definitions/ReceiverStatus", + "description": "The receiver status of the e-mail." + } + }, + "required": [ + "name", + "emailAddress", + "useCommonAlertSchema" + ] + }, + "SmsReceiver": { + "description": "An SMS receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." + }, + "countryCode": { + "type": "string", + "description": "The country code of the SMS receiver." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the SMS receiver." + }, + "status": { + "readOnly": true, + "$ref": "#/definitions/ReceiverStatus", + "description": "The status of the receiver." + } + }, + "required": [ + "name", + "countryCode", + "phoneNumber" + ] + }, + "WebhookReceiver": { + "description": "A webhook receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + }, + "useCommonAlertSchema": { + "type": "boolean", + "description": "Indicates whether to use common alert schema." + }, + "useAadAuth": { + "type": "boolean", + "default": false, + "description": "Indicates whether or not use AAD authentication." + }, + "objectId": { + "type": "string", + "description": "Indicates the webhook app object Id for aad auth." + }, + "identifierUri": { + "type": "string", + "description": "Indicates the identifier uri for aad auth." + }, + "tenantId": { + "type": "string", + "description": "Indicates the tenant id for aad auth." + } + }, + "required": [ + "name", + "serviceUri", + "useCommonAlertSchema" + ] + }, + "ItsmReceiver": { + "description": "An Itsm receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." + }, + "workspaceId": { + "type": "string", + "description": "OMS LA instance identifier." + }, + "connectionId": { + "type": "string", + "description": "Unique identification of ITSM connection among multiple defined in above workspace." + }, + "ticketConfiguration": { + "type": "string", + "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." + }, + "region": { + "type": "string", + "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" + } + }, + "required": [ + "name", + "workspaceId", + "connectionId", + "ticketConfiguration", + "region" + ] + }, + "AzureAppPushReceiver": { + "description": "The Azure mobile App push notification receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." + }, + "emailAddress": { + "type": "string", + "description": "The email address registered for the Azure mobile app." + } + }, + "required": [ + "name", + "emailAddress" + ] + }, + "AutomationRunbookReceiver": { + "description": "The Azure Automation Runbook notification receiver.", + "properties": { + "automationAccountId": { + "type": "string", + "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." + }, + "runbookName": { + "type": "string", + "description": "The name for this runbook." + }, + "webhookResourceId": { + "type": "string", + "description": "The resource id for webhook linked to this runbook." + }, + "isGlobalRunbook": { + "type": "boolean", + "description": "Indicates whether this instance is global runbook." + }, + "name": { + "type": "string", + "description": "Indicates name of the webhook." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + }, + "useCommonAlertSchema": { + "type": "boolean", + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "automationAccountId", + "runbookName", + "webhookResourceId", + "isGlobalRunbook", + "useCommonAlertSchema" + ] + }, + "VoiceReceiver": { + "description": "A voice receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the voice receiver. Names must be unique across all receivers within an action group." + }, + "countryCode": { + "type": "string", + "description": "The country code of the voice receiver." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the voice receiver." + } + }, + "required": [ + "name", + "countryCode", + "phoneNumber" + ] + }, + "LogicAppReceiver": { + "description": "A logic app receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the logic app receiver. Names must be unique across all receivers within an action group." + }, + "resourceId": { + "type": "string", + "description": "The azure resource id of the logic app receiver." + }, + "callbackUrl": { + "type": "string", + "description": "The callback url where http request sent to." + }, + "useCommonAlertSchema": { + "type": "boolean", + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "name", + "resourceId", + "callbackUrl", + "useCommonAlertSchema" + ] + }, + "AzureFunctionReceiver": { + "description": "An azure function receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the azure function receiver. Names must be unique across all receivers within an action group." + }, + "functionAppResourceId": { + "type": "string", + "description": "The azure resource id of the function app." + }, + "functionName": { + "type": "string", + "description": "The function name in the function app." + }, + "httpTriggerUrl": { + "type": "string", + "description": "The http trigger url where http request sent to." + }, + "useCommonAlertSchema": { + "type": "boolean", + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "name", + "functionAppResourceId", + "functionName", + "httpTriggerUrl", + "useCommonAlertSchema" + ] + }, + "ArmRoleReceiver": { + "description": "An arm role receiver.", + "properties": { + "name": { + "type": "string", + "description": "The name of the arm role receiver. Names must be unique across all receivers within an action group." + }, + "roleId": { + "type": "string", + "description": "The arm role id." + }, + "useCommonAlertSchema": { + "type": "boolean", + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "name", + "roleId", + "useCommonAlertSchema" + ] + }, + "ReceiverStatus": { + "type": "string", + "enum": [ + "NotSpecified", + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "ReceiverStatus", + "modelAsString": false + }, + "description": "Indicates the status of the receiver. Receivers that are not Enabled will not receive any communications." + }, + "EnableRequest": { + "description": "Describes a receiver that should be resubscribed.", + "properties": { + "receiverName": { + "type": "string", + "description": "The name of the receiver to resubscribe." + } + }, + "required": [ + "receiverName" + ] + }, + "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" + } + } + }, + "ActionGroupPatchBody": { + "description": "An action group object for the body of patch operations.", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ActionGroupPatch", + "description": "The action group settings for an update operation." + } + } + }, + "ActionGroupPatch": { + "description": "An Azure action group for patch operations.", + "properties": { + "enabled": { + "type": "boolean", + "default": true, + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription Id." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ActionGroupNameParameter": { + "name": "actionGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the action group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." } + } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/createOrUpdateActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/createOrUpdateActionGroup.json index 09c03d9fbefe..88867a138a2d 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/createOrUpdateActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/createOrUpdateActionGroup.json @@ -1,345 +1,345 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2019-06-01", - "actionGroup": { - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "useCommonAlertSchema": false - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "useCommonAlertSchema": true - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook 1", - "serviceUri": "http://www.example.com/webhook1", - "useCommonAlertSchema": true - }, - { - "name": "Sample webhook 2", - "serviceUri": "http://www.example.com/webhook2", - "useCommonAlertSchema": true, - "useAadAuth": true, - "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", - "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d", - "useCommonAlertSchema": true - } - ], - "voiceReceivers": [ - { - "name": "Sample voice", - "countryCode": "1", - "phoneNumber": "1234567890" - } - ], - "logicAppReceivers": [ - { - "name": "Sample logicApp", - "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", - "useCommonAlertSchema": false - } - ], - "azureFunctionReceivers": [ - { - "name": "Sample azureFunction", - "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - "functionName": "HttpTriggerCSharp1", - "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==", - "useCommonAlertSchema": true - } - ], - "armRoleReceivers": [ - { - "name": "Sample armRole", - "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", - "useCommonAlertSchema": true - } - ] + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2019-06-01", + "actionGroup": { + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "useCommonAlertSchema": false + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "useCommonAlertSchema": true + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook 1", + "serviceUri": "http://www.example.com/webhook1", + "useCommonAlertSchema": true + }, + { + "name": "Sample webhook 2", + "serviceUri": "http://www.example.com/webhook2", + "useCommonAlertSchema": true, + "useAadAuth": true, + "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", + "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", + "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" + } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d", + "useCommonAlertSchema": true + } + ], + "voiceReceivers": [ + { + "name": "Sample voice", + "countryCode": "1", + "phoneNumber": "1234567890" + } + ], + "logicAppReceivers": [ + { + "name": "Sample logicApp", + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", + "useCommonAlertSchema": false + } + ], + "azureFunctionReceivers": [ + { + "name": "Sample azureFunction", + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", + "functionName": "HttpTriggerCSharp1", + "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==", + "useCommonAlertSchema": true + } + ], + "armRoleReceivers": [ + { + "name": "Sample armRole", + "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", + "useCommonAlertSchema": true + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled", + "useCommonAlertSchema": false + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled", + "useCommonAlertSchema": true + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook 1", + "serviceUri": "http://www.example.com/webhook1", + "useCommonAlertSchema": true + }, + { + "name": "Sample webhook 2", + "serviceUri": "http://www.example.com/webhook2", + "useCommonAlertSchema": true, + "useAadAuth": true, + "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", + "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", + "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" + } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d", + "useCommonAlertSchema": true + } + ], + "voiceReceivers": [ + { + "name": "Sample voice", + "countryCode": "1", + "phoneNumber": "1234567890" + } + ], + "logicAppReceivers": [ + { + "name": "Sample logicApp", + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", + "useCommonAlertSchema": false + } + ], + "azureFunctionReceivers": [ + { + "name": "Sample azureFunction", + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", + "functionName": "HttpTriggerCSharp1", + "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==", + "useCommonAlertSchema": true } + ], + "armRoleReceivers": [ + { + "name": "Sample armRole", + "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", + "useCommonAlertSchema": true + } + ] } + } }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled", - "useCommonAlertSchema": false - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook 1", - "serviceUri": "http://www.example.com/webhook1", - "useCommonAlertSchema": true - }, - { - "name": "Sample webhook 2", - "serviceUri": "http://www.example.com/webhook2", - "useCommonAlertSchema": true, - "useAadAuth": true, - "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", - "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d", - "useCommonAlertSchema": true - } - ], - "voiceReceivers": [ - { - "name": "Sample voice", - "countryCode": "1", - "phoneNumber": "1234567890" - } - ], - "logicAppReceivers": [ - { - "name": "Sample logicApp", - "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", - "useCommonAlertSchema": false - } - ], - "azureFunctionReceivers": [ - { - "name": "Sample azureFunction", - "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - "functionName": "HttpTriggerCSharp1", - "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==", - "useCommonAlertSchema": true - } - ], - "armRoleReceivers": [ - { - "name": "Sample armRole", - "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", - "useCommonAlertSchema": true - } - ] - } + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled", + "useCommonAlertSchema": false + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled", + "useCommonAlertSchema": true + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook 1", + "serviceUri": "http://www.example.com/webhook1", + "useCommonAlertSchema": true + }, + { + "name": "Sample webhook 2", + "serviceUri": "http://www.example.com/webhook2", + "useCommonAlertSchema": true, + "useAadAuth": true, + "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", + "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", + "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" + } + ], + "itsmReceivers": [ + { + "name": "Sample itsm", + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", + "region": "westcentralus" + } + ], + "azureAppPushReceivers": [ + { + "name": "Sample azureAppPush", + "emailAddress": "johndoe@email.com" + } + ], + "automationRunbookReceivers": [ + { + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", + "runbookName": "Sample runbook", + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", + "isGlobalRunbook": false, + "name": "testRunbook", + "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d", + "useCommonAlertSchema": true + } + ], + "voiceReceivers": [ + { + "name": "Sample voice", + "countryCode": "1", + "phoneNumber": "1234567890" + } + ], + "logicAppReceivers": [ + { + "name": "Sample logicApp", + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", + "useCommonAlertSchema": false + } + ], + "azureFunctionReceivers": [ + { + "name": "Sample azureFunction", + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", + "functionName": "HttpTriggerCSharp1", + "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==", + "useCommonAlertSchema": true } - }, - "201": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled", - "useCommonAlertSchema": false - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook 1", - "serviceUri": "http://www.example.com/webhook1", - "useCommonAlertSchema": true - }, - { - "name": "Sample webhook 2", - "serviceUri": "http://www.example.com/webhook2", - "useCommonAlertSchema": true, - "useAadAuth": true, - "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", - "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" - } - ], - "itsmReceivers": [ - { - "name": "Sample itsm", - "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", - "region": "westcentralus" - } - ], - "azureAppPushReceivers": [ - { - "name": "Sample azureAppPush", - "emailAddress": "johndoe@email.com" - } - ], - "automationRunbookReceivers": [ - { - "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - "runbookName": "Sample runbook", - "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - "isGlobalRunbook": false, - "name": "testRunbook", - "serviceUri": "https://s13events.azure-automation.net/webhooks?token=iimE%2fD19Eg%2bvDy22yUMecIZY6Uiz%2bHfuQ67r8r1wY%2fI%3d", - "useCommonAlertSchema": true - } - ], - "voiceReceivers": [ - { - "name": "Sample voice", - "countryCode": "1", - "phoneNumber": "1234567890" - } - ], - "logicAppReceivers": [ - { - "name": "Sample logicApp", - "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", - "useCommonAlertSchema": false - } - ], - "azureFunctionReceivers": [ - { - "name": "Sample azureFunction", - "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - "functionName": "HttpTriggerCSharp1", - "httpTriggerUrl": "https://testfunctionapp.azurewebsites.net/api/HttpTriggerCSharp1?code=4CopFfiXqUQC8dvIM7F53J7tIU3Gy9QQIG/vKAXMe2avhHqK3/jVYw==", - "useCommonAlertSchema": true - } - ], - "armRoleReceivers": [ - { - "name": "Sample armRole", - "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", - "useCommonAlertSchema": true - } - ] - } + ], + "armRoleReceivers": [ + { + "name": "Sample armRole", + "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", + "useCommonAlertSchema": true } + ] } + } } + } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/deleteActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/deleteActionGroup.json index cf6a41e900f8..83acd8c1e57b 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/deleteActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/deleteActionGroup.json @@ -1,18 +1,12 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "204": { - "headers": {}, - "body": null - } - } + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2019-06-01" + }, + "responses": { + "200": {}, + "204": {} + } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/enableReceiver.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/enableReceiver.json index 6a0c9b03eb07..49802b7cec1e 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/enableReceiver.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/enableReceiver.json @@ -1,21 +1,15 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2019-06-01", - "enableRequest": { - "receiverName": "John Doe's mobile" - } - }, - "responses": { - "200": { - "headers": {}, - "body": null - }, - "409": { - "headers": {}, - "body": null - } + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2019-06-01", + "enableRequest": { + "receiverName": "John Doe's mobile" } + }, + "responses": { + "200": {}, + "409": {} + } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/getActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/getActionGroup.json index 63ab4b532e2a..3403250360cb 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/getActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/getActionGroup.json @@ -1,75 +1,75 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Disabled", - "useCommonAlertSchema": true - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Disabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook", - "useCommonAlertSchema": false - }, - { - "name": "Sample webhook 2", - "serviceUri": "http://www.example.com/webhook2", - "useCommonAlertSchema": true, - "useAadAuth": true, - "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", - "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" - } - ], - "itsmReceivers":[], - "azureAppPushReceivers":[], - "automationRunbookReceivers":[], - "voiceReceivers":[], - "logicAppReceivers":[], - "azureFunctionReceivers":[], - "armRoleReceivers":[] - } + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled", + "useCommonAlertSchema": true + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Disabled", + "useCommonAlertSchema": true } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Disabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook", + "useCommonAlertSchema": false + }, + { + "name": "Sample webhook 2", + "serviceUri": "http://www.example.com/webhook2", + "useCommonAlertSchema": true, + "useAadAuth": true, + "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", + "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", + "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" + } + ], + "itsmReceivers": [], + "azureAppPushReceivers": [], + "automationRunbookReceivers": [], + "voiceReceivers": [], + "logicAppReceivers": [], + "azureFunctionReceivers": [], + "armRoleReceivers": [] } + } } + } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/listActionGroups.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/listActionGroups.json index 07be8f8e68bf..6e5bc16598f4 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/listActionGroups.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/listActionGroups.json @@ -1,113 +1,113 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "api-version": "2019-06-01" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Disabled", - "useCommonAlertSchema": true - } - ], - "smsReceivers": [ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Disabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook", - "useCommonAlertSchema": false - }, - { - "name": "Sample webhook 2", - "serviceUri": "http://www.example.com/webhook2", - "useCommonAlertSchema": true, - "useAadAuth": true, - "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", - "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" - } - ], - "itsmReceivers":[], - "azureAppPushReceivers":[], - "automationRunbookReceivers":[], - "voiceReceivers":[], - "logicAppReceivers":[], - "azureFunctionReceivers":[], - "armRoleReceivers":[] - } - }, - { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup2", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup2", - "location": "Global", - "tags": {}, - "properties": { - "groupShortName": "sample2", - "enabled": false, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - } - ], - "smsReceivers": [ - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers": [], - "itsmReceivers":[], - "azureAppPushReceivers":[], - "automationRunbookReceivers":[], - "voiceReceivers":[], - "logicAppReceivers":[], - "azureFunctionReceivers":[], - "armRoleReceivers":[] - } - } - ] + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled", + "useCommonAlertSchema": true + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Disabled", + "useCommonAlertSchema": true + } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Disabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook", + "useCommonAlertSchema": false + }, + { + "name": "Sample webhook 2", + "serviceUri": "http://www.example.com/webhook2", + "useCommonAlertSchema": true, + "useAadAuth": true, + "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", + "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", + "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" + } + ], + "itsmReceivers": [], + "azureAppPushReceivers": [], + "automationRunbookReceivers": [], + "voiceReceivers": [], + "logicAppReceivers": [], + "azureFunctionReceivers": [], + "armRoleReceivers": [] } - } + }, + { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup2", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup2", + "location": "Global", + "tags": {}, + "properties": { + "groupShortName": "sample2", + "enabled": false, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled", + "useCommonAlertSchema": true + } + ], + "smsReceivers": [ + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [], + "itsmReceivers": [], + "azureAppPushReceivers": [], + "automationRunbookReceivers": [], + "voiceReceivers": [], + "logicAppReceivers": [], + "azureFunctionReceivers": [], + "armRoleReceivers": [] + } + } + ] + } } + } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/patchActionGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/patchActionGroup.json index 2becbca561eb..aa9a7207ceb9 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/patchActionGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/patchActionGroup.json @@ -1,81 +1,87 @@ { - "parameters": { - "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", - "resourceGroupName": "Default-NotificationRules", - "actionGroupName": "SampleActionGroup", - "api-version": "2019-06-01", - "actionGroupPatch": { - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "enabled": false + "parameters": { + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", + "resourceGroupName": "Default-NotificationRules", + "actionGroupName": "SampleActionGroup", + "api-version": "2019-06-01", + "actionGroupPatch": { + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "enabled": false + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", + "type": "Microsoft.Insights/ActionGroups", + "name": "SampleActionGroup", + "location": "Global", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "groupShortName": "sample", + "enabled": true, + "emailReceivers": [ + { + "name": "John Doe's email", + "emailAddress": "johndoe@email.com", + "status": "Enabled", + "useCommonAlertSchema": true + }, + { + "name": "Jane Smith's email", + "emailAddress": "janesmith@email.com", + "status": "Enabled", + "useCommonAlertSchema": true } - } - }, - "responses": { - "200": { - "headers": { }, - "body": { - "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", - "type": "Microsoft.Insights/ActionGroups", - "name": "SampleActionGroup", - "location": "Global", - "tags": { "key1": "value1", "key2": "value2" }, - "properties": { - "groupShortName": "sample", - "enabled": true, - "emailReceivers": [ - { - "name": "John Doe's email", - "emailAddress": "johndoe@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - }, - { - "name": "Jane Smith's email", - "emailAddress": "janesmith@email.com", - "status": "Enabled", - "useCommonAlertSchema": true - } - ], - "smsReceivers":[ - { - "name": "John Doe's mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - }, - { - "name": "Jane Smith's mobile", - "countryCode": "1", - "phoneNumber": "0987654321", - "status": "Enabled" - } - ], - "webhookReceivers":[ - { - "name": "Sample webhook", - "serviceUri": "http://www.example.com/webhook", - "useCommonAlertSchema": false - }, - { - "name": "Sample webhook 2", - "serviceUri": "http://www.example.com/webhook2", - "useCommonAlertSchema": true, - "useAadAuth": true, - "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", - "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" - } - ], - "itsmReceivers":[], - "azureAppPushReceivers":[], - "automationRunbookReceivers":[], - "voiceReceivers":[], - "logicAppReceivers":[], - "azureFunctionReceivers":[], - "armRoleReceivers":[] - } + ], + "smsReceivers": [ + { + "name": "John Doe's mobile", + "countryCode": "1", + "phoneNumber": "1234567890", + "status": "Enabled" + }, + { + "name": "Jane Smith's mobile", + "countryCode": "1", + "phoneNumber": "0987654321", + "status": "Enabled" + } + ], + "webhookReceivers": [ + { + "name": "Sample webhook", + "serviceUri": "http://www.example.com/webhook", + "useCommonAlertSchema": false + }, + { + "name": "Sample webhook 2", + "serviceUri": "http://www.example.com/webhook2", + "useCommonAlertSchema": true, + "useAadAuth": true, + "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", + "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", + "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" } + ], + "itsmReceivers": [], + "azureAppPushReceivers": [], + "automationRunbookReceivers": [], + "voiceReceivers": [], + "logicAppReceivers": [], + "azureFunctionReceivers": [], + "armRoleReceivers": [] } + } } + } } diff --git a/specification/monitor/resource-manager/readme.csharp.md b/specification/monitor/resource-manager/readme.csharp.md index 7a721415e69f..946deb424832 100644 --- a/specification/monitor/resource-manager/readme.csharp.md +++ b/specification/monitor/resource-manager/readme.csharp.md @@ -18,7 +18,7 @@ csharp: payload-flattening-threshold: 1 license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.Monitor - output-folder: $(csharp-sdks-folder)/Monitor/Management.Monitor/Generated + output-folder: $(csharp-sdks-folder)/monitor/Microsoft.Azure.Management.Monitor/src/Generated clear-output-folder: true ``` diff --git a/specification/monitor/resource-manager/readme.md b/specification/monitor/resource-manager/readme.md index 855d4c4e0ec3..8d842a8df7c6 100644 --- a/specification/monitor/resource-manager/readme.md +++ b/specification/monitor/resource-manager/readme.md @@ -261,100 +261,192 @@ input-file: - Microsoft.Insights/stable/2017-04-01/activityLogAlerts_API.json ``` -### Tag: package-2018-01-01-only +### Tag: package-2019-06-01-only -These settings apply only when `--tag=package-2018-01-01-only` is specified on the command line. +These settings apply only when `--tag=package-2019-06-01-only` is specified on the command line. -``` yaml $(tag) == 'package-2018-01-01-only' +```yaml $(tag) == 'package-2019-06-01-only' input-file: -- Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json -- Microsoft.Insights/stable/2018-01-01/metrics_API.json +- Microsoft.Insights/stable/2019-06-01/actionGroups_API.json ``` -### Tag: package-2018-03-01-only -These settings apply only when `--tag=package-2018-03-01-only` is specified on the command line. +### Tag: package-2019-03-01-only -``` yaml $(tag) == 'package-2018-03-01-only' +These settings apply only when `--tag=package-2019-03-01-only` is specified on the command line. + +```yaml $(tag) == 'package-2019-03-01-only' input-file: -- Microsoft.Insights/stable/2018-03-01/metricAlert_API.json -- Microsoft.Insights/stable/2018-03-01/actionGroups_API.json +- Microsoft.Insights/stable/2019-03-01/actionGroups_API.json +- Microsoft.Insights/stable/2019-03-01/metricBaselines_API.json +``` + + +### Tag: package-2018-11-27-preview-only + +These settings apply only when `--tag=package-2018-11-27-preview-only` is specified on the command line. + +```yaml $(tag) == 'package-2018-11-27-preview-only' +input-file: +- Microsoft.Insights/preview/2018-11-27-preview/vmInsightsOnboarding_API.json +``` + + +### Tag: package-2018-09-01-only + +These settings apply only when `--tag=package-2018-09-01-only` is specified on the command line. + +```yaml $(tag) == 'package-2018-09-01-only' +input-file: +- Microsoft.Insights/stable/2018-09-01/actionGroups_API.json +- Microsoft.Insights/stable/2018-09-01/baseline_API.json +- Microsoft.Insights/stable/2018-09-01/calculateBaseline_API.json +``` + + +### Tag: package-2018-06-01-preview-only + +These settings apply only when `--tag=package-2018-06-01-preview-only` is specified on the command line. + +```yaml $(tag) == 'package-2018-06-01-preview-only' +input-file: +- Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettingsAssociation_API.json +- Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettings_API.json ``` + ### Tag: package-2018-04-16-only These settings apply only when `--tag=package-2018-04-16-only` is specified on the command line. -``` yaml $(tag) == 'package-2018-04-16-only' +```yaml $(tag) == 'package-2018-04-16-only' input-file: - Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json ``` -### Tag: package-2015-04-01-only -These settings apply only when `--tag=package-2015-04-01-only` is specified on the command line. +### Tag: package-2018-03-01-only -``` yaml $(tag) == 'package-2015-04-01-only' +These settings apply only when `--tag=package-2018-03-01-only` is specified on the command line. + +```yaml $(tag) == 'package-2018-03-01-only' input-file: -- Microsoft.Insights/stable/2015-04-01/activityLogs_API.json -- Microsoft.Insights/stable/2015-04-01/autoscale_API.json -- Microsoft.Insights/stable/2015-04-01/eventCategories_API.json -- Microsoft.Insights/stable/2015-04-01/operations_API.json -- Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json +- Microsoft.Insights/stable/2018-03-01/actionGroups_API.json +- Microsoft.Insights/stable/2018-03-01/metricAlert_API.json ``` -### Tag: package-2016-03-01-only -These settings apply only when `--tag=package-2016-03-01-only` is specified on the command line. +### Tag: package-2018-01-01-only + +These settings apply only when `--tag=package-2018-01-01-only` is specified on the command line. -``` yaml $(tag) == 'package-2016-03-01-only' +```yaml $(tag) == 'package-2018-01-01-only' input-file: -- Microsoft.Insights/stable/2016-03-01/alertRules_API.json -- Microsoft.Insights/stable/2016-03-01/alertRulesIncidents_API.json -- Microsoft.Insights/stable/2016-03-01/logProfiles_API.json -- Microsoft.Insights/stable/2016-03-01/metricDefinitions_API.json +- Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json +- Microsoft.Insights/stable/2018-01-01/metrics_API.json ``` -### Tag: package-2016-09-01-only -These settings apply only when `--tag=package-2016-09-01-only` is specified on the command line. +### Tag: package-2017-12-01-preview-only + +These settings apply only when `--tag=package-2017-12-01-preview-only` is specified on the command line. -``` yaml $(tag) == 'package-2016-09-01-only' +```yaml $(tag) == 'package-2017-12-01-preview-only' input-file: -- Microsoft.Insights/stable/2016-09-01/metrics_API.json -- Microsoft.Insights/stable/2016-09-01/serviceDiagnosticsSettings_API.json +- Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json ``` -### Tag: package-2017-04-01-only -These settings apply only when `--tag=package-2017-04-01-only` is specified on the command line. +### Tag: package-2017-11-01-preview-only -``` yaml $(tag) == 'package-2017-04-01-only' +These settings apply only when `--tag=package-2017-11-01-preview-only` is specified on the command line. + +```yaml $(tag) == 'package-2017-11-01-preview-only' input-file: -- Microsoft.Insights/stable/2017-04-01/actionGroups_API.json -- Microsoft.Insights/stable/2017-04-01/activityLogAlerts_API.json +- Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json +- Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json ``` + ### Tag: package-2017-05-01-preview-only These settings apply only when `--tag=package-2017-05-01-preview-only` is specified on the command line. -``` yaml $(tag) == 'package-2017-05-01-preview-only' +```yaml $(tag) == 'package-2017-05-01-preview-only' input-file: -- Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettings_API.json - Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettingsCategories_API.json +- 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 ``` -### Tag: package-2017-11-01-preview-only -These settings apply only when `--tag=package-2017-11-01-preview-only` is specified on the command line. +### Tag: package-2017-04-01-only -``` yaml $(tag) == 'package-2017-11-01-preview-only' +These settings apply only when `--tag=package-2017-04-01-only` is specified on the command line. + +```yaml $(tag) == 'package-2017-04-01-only' input-file: -- Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json -- Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json +- Microsoft.Insights/stable/2017-04-01/actionGroups_API.json +- Microsoft.Insights/stable/2017-04-01/activityLogAlerts_API.json +``` + + +### Tag: package-2017-03-01-preview-only + +These settings apply only when `--tag=package-2017-03-01-preview-only` is specified on the command line. + +```yaml $(tag) == 'package-2017-03-01-preview-only' +input-file: +- Microsoft.Insights/preview/2017-03-01-preview/activityLogAlerts_API.json +``` + + +### Tag: package-2016-09-01-only + +These settings apply only when `--tag=package-2016-09-01-only` is specified on the command line. + +```yaml $(tag) == 'package-2016-09-01-only' +input-file: +- Microsoft.Insights/stable/2016-09-01/metrics_API.json +- Microsoft.Insights/stable/2016-09-01/serviceDiagnosticsSettings_API.json +``` + + +### Tag: package-2016-03-01-only + +These settings apply only when `--tag=package-2016-03-01-only` is specified on the command line. + +```yaml $(tag) == 'package-2016-03-01-only' +input-file: +- Microsoft.Insights/stable/2016-03-01/alertRulesIncidents_API.json +- Microsoft.Insights/stable/2016-03-01/alertRules_API.json +- Microsoft.Insights/stable/2016-03-01/logProfiles_API.json +- Microsoft.Insights/stable/2016-03-01/metricDefinitions_API.json +``` + + +### Tag: package-2015-07-01-only + +These settings apply only when `--tag=package-2015-07-01-only` is specified on the command line. + +```yaml $(tag) == 'package-2015-07-01-only' +input-file: +- Microsoft.Insights/stable/2015-07-01/serviceDiagnosticsSettings_API.json +``` + + +### Tag: package-2015-04-01-only + +These settings apply only when `--tag=package-2015-04-01-only` is specified on the command line. + +```yaml $(tag) == 'package-2015-04-01-only' +input-file: +- Microsoft.Insights/stable/2015-04-01/activityLogs_API.json +- Microsoft.Insights/stable/2015-04-01/autoscale_API.json +- Microsoft.Insights/stable/2015-04-01/eventCategories_API.json +- Microsoft.Insights/stable/2015-04-01/operations_API.json +- Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json ``` --- @@ -368,7 +460,10 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: + - repo: azure-sdk-for-net - repo: azure-sdk-for-python + after_scripts: + - python ./scripts/multiapi_init_gen.py azure-mgmt-monitor - repo: azure-sdk-for-java - repo: azure-sdk-for-go - repo: azure-sdk-for-js @@ -424,3 +519,63 @@ input-file: - Microsoft.Insights/stable/2015-04-01/eventCategories_API.json - Microsoft.Insights/stable/2015-04-01/operations_API.json ``` + +## 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.Insights/stable/2015-04-01/autoscale_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-04-01/operations_API.json + - $(this-folder)/Microsoft.Insights/stable/2016-03-01/alertRulesIncidents_API.json + - $(this-folder)/Microsoft.Insights/stable/2016-03-01/alertRules_API.json + - $(this-folder)/Microsoft.Insights/stable/2016-03-01/logProfiles_API.json + - $(this-folder)/Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettings_API.json + - $(this-folder)/Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettingsCategories_API.json + - $(this-folder)/Microsoft.Insights/stable/2019-06-01/actionGroups_API.json + - $(this-folder)/Microsoft.Insights/stable/2017-04-01/activityLogAlerts_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-04-01/activityLogs_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-04-01/eventCategories_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json + - $(this-folder)/Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json + - $(this-folder)/Microsoft.Insights/stable/2018-01-01/metrics_API.json + - $(this-folder)/Microsoft.Insights/preview/2017-11-01-preview/baseline_API.json + - $(this-folder)/Microsoft.Insights/preview/2017-11-01-preview/calculateBaseline_API.json + - $(this-folder)/Microsoft.Insights/stable/2019-03-01/metricBaselines_API.json + - $(this-folder)/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json + - $(this-folder)/Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json + - $(this-folder)/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json + - $(this-folder)/Microsoft.Insights/preview/2018-11-27-preview/vmInsightsOnboarding_API.json + - $(this-folder)/Microsoft.Insights/stable/2019-03-01/actionGroups_API.json + - $(this-folder)/Microsoft.Insights/stable/2018-09-01/actionGroups_API.json + - $(this-folder)/Microsoft.Insights/stable/2018-03-01/actionGroups_API.json + - $(this-folder)/Microsoft.Insights/stable/2017-04-01/actionGroups_API.json + - $(this-folder)/Microsoft.Insights/preview/2017-05-01-preview/metricDefinitions_API.json + - $(this-folder)/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json + - $(this-folder)/Microsoft.Insights/stable/2018-09-01/baseline_API.json + - $(this-folder)/Microsoft.Insights/stable/2018-09-01/calculateBaseline_API.json + - $(this-folder)/Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettingsAssociation_API.json + - $(this-folder)/Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettings_API.json + - $(this-folder)/Microsoft.Insights/preview/2017-03-01-preview/activityLogAlerts_API.json + - $(this-folder)/Microsoft.Insights/stable/2016-09-01/metrics_API.json + - $(this-folder)/Microsoft.Insights/stable/2016-09-01/serviceDiagnosticsSettings_API.json + - $(this-folder)/Microsoft.Insights/stable/2016-03-01/metricDefinitions_API.json + - $(this-folder)/Microsoft.Insights/stable/2015-07-01/serviceDiagnosticsSettings_API.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/monitor/resource-manager/readme.python.md b/specification/monitor/resource-manager/readme.python.md index 3958eb44b2d3..753cfc0a5965 100644 --- a/specification/monitor/resource-manager/readme.python.md +++ b/specification/monitor/resource-manager/readme.python.md @@ -1,27 +1,228 @@ ## 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.monitor package-name: azure-mgmt-monitor - package-version: 0.6.0 clear-output-folder: true + no-namespace-folders: true + python-base-folder: monitor/azure-mgmt-monitor/azure/mgmt/monitor + python-base-namespace: azure.mgmt.monitor ``` -``` yaml $(python) && $(python-mode) == 'update' + +### Python multi-api + +Generate all API versions currently shipped for this package + +```yaml $(python) && $(multiapi) +batch: + - tag: package-2019-06-01-only + - tag: package-2019-03-01-only + - tag: package-2018-11-27-preview-only + - tag: package-2018-09-01-only + - tag: package-2018-06-01-preview-only + - tag: package-2018-04-16-only + - tag: package-2018-03-01-only + - tag: package-2018-01-01-only + - tag: package-2017-12-01-preview-only + - tag: package-2017-11-01-preview-only + - tag: package-2017-05-01-preview-only + - tag: package-2017-04-01-only + - tag: package-2017-03-01-preview-only + - tag: package-2016-09-01-only + - tag: package-2016-03-01-only + - tag: package-2015-07-01-only + - tag: package-2015-04-01-only +``` + + +### Tag: package-2019-06-01-only and python + +These settings apply only when `--tag=package-2019-06-01-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2019-06-01-only' && $(python) python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/monitor/azure-mgmt-monitor/azure/mgmt/monitor + namespace: $(python-base-namespace).v2019_06_01 + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2019_06_01 ``` -``` yaml $(python) && $(python-mode) == 'create' + +### Tag: package-2019-03-01-only and python + +These settings apply only when `--tag=package-2019-03-01-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2019-03-01-only' && $(python) python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/monitor/azure-mgmt-monitor + namespace: $(python-base-namespace).v2019_03_01 + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2019_03_01 ``` + +### Tag: package-2018-11-27-preview-only and python + +These settings apply only when `--tag=package-2018-11-27-preview-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-11-27-preview-only' && $(python) +python: + namespace: $(python-base-namespace).v2018_11_27_preview + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2018_11_27_preview +``` + +### Tag: package-2018-09-01-only and python + +These settings apply only when `--tag=package-2018-09-01-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-09-01-only' && $(python) +python: + namespace: $(python-base-namespace).v2018_09_01 + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2018_09_01 +``` + +### Tag: package-2018-06-01-preview-only and python + +These settings apply only when `--tag=package-2018-06-01-preview-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-06-01-preview-only' && $(python) +python: + namespace: $(python-base-namespace).v2018_06_01_preview + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2018_06_01_preview +``` + +### Tag: package-2018-04-16-only and python + +These settings apply only when `--tag=package-2018-04-16-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-04-16-only' && $(python) +python: + namespace: $(python-base-namespace).v2018_04_16 + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2018_04_16 +``` + +### Tag: package-2018-03-01-only and python + +These settings apply only when `--tag=package-2018-03-01-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-03-01-only' && $(python) +python: + namespace: $(python-base-namespace).v2018_03_01 + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2018_03_01 +``` + +### Tag: package-2018-01-01-only and python + +These settings apply only when `--tag=package-2018-01-01-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-01-01-only' && $(python) +python: + namespace: $(python-base-namespace).v2018_01_01 + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2018_01_01 +``` + +### Tag: package-2017-12-01-preview-only and python + +These settings apply only when `--tag=package-2017-12-01-preview-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2017-12-01-preview-only' && $(python) +python: + namespace: $(python-base-namespace).v2017_12_01_preview + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2017_12_01_preview +``` + +### Tag: package-2017-11-01-preview-only and python + +These settings apply only when `--tag=package-2017-11-01-preview-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2017-11-01-preview-only' && $(python) +python: + namespace: $(python-base-namespace).v2017_11_01_preview + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2017_11_01_preview +``` + +### Tag: package-2017-05-01-preview-only and python + +These settings apply only when `--tag=package-2017-05-01-preview-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2017-05-01-preview-only' && $(python) +python: + namespace: $(python-base-namespace).v2017_05_01_preview + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2017_05_01_preview +``` + +### Tag: package-2017-04-01-only and python + +These settings apply only when `--tag=package-2017-04-01-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2017-04-01-only' && $(python) +python: + namespace: $(python-base-namespace).v2017_04_01 + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2017_04_01 +``` + +### Tag: package-2017-03-01-preview-only and python + +These settings apply only when `--tag=package-2017-03-01-preview-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2017-03-01-preview-only' && $(python) +python: + namespace: $(python-base-namespace).v2017_03_01_preview + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2017_03_01_preview +``` + +### Tag: package-2016-09-01-only and python + +These settings apply only when `--tag=package-2016-09-01-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2016-09-01-only' && $(python) +python: + namespace: $(python-base-namespace).v2016_09_01 + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2016_09_01 +``` + +### Tag: package-2016-03-01-only and python + +These settings apply only when `--tag=package-2016-03-01-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2016-03-01-only' && $(python) +python: + namespace: $(python-base-namespace).v2016_03_01 + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2016_03_01 +``` + +### Tag: package-2015-07-01-only and python + +These settings apply only when `--tag=package-2015-07-01-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2015-07-01-only' && $(python) +python: + namespace: $(python-base-namespace).v2015_07_01 + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2015_07_01 +``` + +### Tag: package-2015-04-01-only and python + +These settings apply only when `--tag=package-2015-04-01-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2015-04-01-only' && $(python) +python: + namespace: $(python-base-namespace).v2015_04_01 + output-folder: $(python-sdks-folder)/$(python-base-folder)/v2015_04_01 +``` \ No newline at end of file diff --git a/specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2015-08-31-preview/examples/IdentityDelete.json b/specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2015-08-31-preview/examples/IdentityDelete.json index b2adb366a46c..0c25e33f3257 100644 --- a/specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2015-08-31-preview/examples/IdentityDelete.json +++ b/specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2015-08-31-preview/examples/IdentityDelete.json @@ -6,11 +6,7 @@ "resourceName": "resourceName" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityDelete.json b/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityDelete.json index 58b4248e2a64..0a9700aa8938 100644 --- a/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityDelete.json +++ b/specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2018-11-30/examples/IdentityDelete.json @@ -6,11 +6,7 @@ "resourceName": "resourceName" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/msi/resource-manager/readme.md b/specification/msi/resource-manager/readme.md index 6322b69cf81c..5e1ef6db437e 100644 --- a/specification/msi/resource-manager/readme.md +++ b/specification/msi/resource-manager/readme.md @@ -54,6 +54,7 @@ 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 @@ -75,7 +76,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.ManagedServiceIdentity - output-folder: $(csharp-sdks-folder)/ManagedServiceIdentity/Management.ManagedServiceIdentity/Generated + output-folder: $(csharp-sdks-folder)/managedserviceidentity/Microsoft.Azure.Management.ManagedServiceIdentity/src/Generated clear-output-folder: true ``` @@ -132,3 +133,29 @@ generate-interface: 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)/Microsoft.ManagedIdentity/stable/2018-11-30/ManagedIdentity.json + - $(this-folder)/Microsoft.ManagedIdentity/preview/2015-08-31-preview/ManagedIdentity.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/mysql/resource-manager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/VirtualNetworkRulesDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/VirtualNetworkRulesDelete.json index 8d51878323cd..2a5d616e1221 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/VirtualNetworkRulesDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/VirtualNetworkRulesDelete.json @@ -7,14 +7,8 @@ "api-version": "2017-12-01-preview" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2018-06-01-privatepreview/examples/VirtualNetworkRulesDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2018-06-01-privatepreview/examples/VirtualNetworkRulesDelete.json index 0fa496b85696..eba76be987c7 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2018-06-01-privatepreview/examples/VirtualNetworkRulesDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2018-06-01-privatepreview/examples/VirtualNetworkRulesDelete.json @@ -7,14 +7,8 @@ "api-version": "2017-12-01" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2017-12-01/examples/VirtualNetworkRulesDelete.json index 0fa496b85696..eba76be987c7 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2017-12-01/examples/VirtualNetworkRulesDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2017-12-01/examples/VirtualNetworkRulesDelete.json @@ -7,14 +7,8 @@ "api-version": "2017-12-01" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/mysql/resource-manager/readme.go.md b/specification/mysql/resource-manager/readme.go.md index 6cddaf2787ac..62df079caf6b 100644 --- a/specification/mysql/resource-manager/readme.go.md +++ b/specification/mysql/resource-manager/readme.go.md @@ -13,6 +13,7 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-2017-12-01-preview - tag: package-2017-12-01 ``` diff --git a/specification/mysql/resource-manager/readme.java.md b/specification/mysql/resource-manager/readme.java.md new file mode 100644 index 000000000000..d4a9a8036efe --- /dev/null +++ b/specification/mysql/resource-manager/readme.java.md @@ -0,0 +1,47 @@ +## 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.mysql +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-mysql +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2017-12-01-preview + - tag: package-2017-12-01 +``` + +### Tag: package-2017-12-01-preview and java + +These settings apply only when `--tag=package-2017-12-01-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2017-12-01-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.mysql.v2017_12_01_preview + output-folder: $(azure-libraries-for-java-folder)/mysql/resource-manager/v2017_12_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-12-01 and java + +These settings apply only when `--tag=package-2017-12-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2017-12-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.mysql.v2017_12_01 + output-folder: $(azure-libraries-for-java-folder)/mysql/resource-manager/v2017_12_01 +regenerate-manager: true +generate-interface: true +``` \ No newline at end of file diff --git a/specification/mysql/resource-manager/readme.md b/specification/mysql/resource-manager/readme.md index 8c9dcf968491..d5a3434d6ab5 100644 --- a/specification/mysql/resource-manager/readme.md +++ b/specification/mysql/resource-manager/readme.md @@ -71,6 +71,7 @@ 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 @@ -89,7 +90,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.MySQL - output-folder: $(csharp-sdks-folder)/MySQL/Management.MySQL/Generated + output-folder: $(csharp-sdks-folder)/mysql/Microsoft.Azure.Management.MySQL/src/Generated clear-output-folder: true ``` @@ -127,34 +128,31 @@ 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=`. +See configuration in [readme.java.md](./readme.java.md) -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.mysql -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-mysql -``` +## Multi-API/Profile support for AutoRest v3 generators -### Java multi-api +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2017-12-01 -``` +This block is updated by an automatic script. Edits may be lost! -### Tag: package-2017-12-01 and java +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -These settings apply only when `--tag=package-2017-12-01 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.DBforMySQL/preview/2017-12-01-preview/mysql.json + - $(this-folder)/Microsoft.DBforMySQL/stable/2017-12-01/mysql.json + - $(this-folder)/Microsoft.DBforMySQL/preview/2018-06-01-privatepreview/mysql.json -``` yaml $(tag) == 'package-2017-12-01' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.mysql.v2017_12_01 - output-folder: $(azure-libraries-for-java-folder)/mysql/resource-manager/v2017_12_01 -regenerate-manager: true -generate-interface: true ``` + +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/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_CreateOrUpdate.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_CreateOrUpdate.json new file mode 100644 index 000000000000..f7e8185facac --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_CreateOrUpdate.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "api-version": "2019-05-01", + "body": { + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + "202": {} + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_Delete.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_Delete.json new file mode 100644 index 000000000000..8968a51a5a99 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "api-version": "2019-05-01" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_Get.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_Get.json new file mode 100644 index 000000000000..8d66e1d9a64b --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_Get.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "api-version": "2019-05-01" + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_List.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_List.json new file mode 100644 index 000000000000..4c8836049b95 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_List.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "api-version": "2019-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "eastus", + "properties": { + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_Update.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_Update.json new file mode 100644 index 000000000000..f4d5bf8d5031 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Accounts_Update.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "api-version": "2019-05-01", + "body": {} + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + "202": {} + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/CheckFilePathAvailability.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/CheckFilePathAvailability.json new file mode 100644 index 000000000000..cf432f1c14d7 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/CheckFilePathAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "location": "eastus", + "api-version": "2019-05-01", + "body": { + "name": "my-exact-filepth", + "type": "netAppAccount/capacityPools/volume", + "resourceGroup": "myrg" + } + }, + "responses": { + "200": { + "body": { + "isAvailable": true + } + } + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/CheckNameAvailability.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/CheckNameAvailability.json new file mode 100644 index 000000000000..05afbf0db5d4 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/CheckNameAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "location": "eastus", + "api-version": "2019-05-01", + "body": { + "name": "accName", + "type": "netAppAccount", + "resourceGroup": "myrg" + } + }, + "responses": { + "200": { + "body": { + "isAvailable": true + } + } + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/MountTargets_List.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/MountTargets_List.json new file mode 100644 index 000000000000..f3ee2188744e --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/MountTargets_List.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "volumeName": "volumeName", + "api-version": "2019-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "eastus", + "properties": { + "endIp": "1.2.3.4", + "mountTargetId": "9760acf5-4638-11e7-9bdb-020073ca3333", + "startIp": "1.2.3.4", + "fileSystemId": "9760acf5-4638-11e7-9bdb-020073ca3333", + "subnet": "1.2.3.4", + "netmask": "255.255.255.0", + "ipAddress": "1.2.3.4", + "gateway": "1.2.3.4", + "smbServerFqdn": "fullyqualified.domainname.com", + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_CreateOrUpdate.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_CreateOrUpdate.json new file mode 100644 index 000000000000..9b7c0eac8a3d --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_CreateOrUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "api-version": "2019-05-01", + "body": { + "location": "eastus", + "properties": { + "size": 4398046511104, + "serviceLevel": "Premium" + } + } + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "provisioningState": "Created", + "poolId": "9760acf5-4638-11e7-9bdb-020073ca7778", + "serviceLevel": "Premium", + "size": 4398046511104 + } + } + }, + "201": { + "body": { + "location": "eastus", + "properties": { + "provisioningState": "Created", + "poolId": "9760acf5-4638-11e7-9bdb-020073ca7778", + "serviceLevel": "Premium", + "size": 4398046511104 + } + } + }, + "202": {} + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_Delete.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_Delete.json new file mode 100644 index 000000000000..949559f94709 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "api-version": "2019-05-01" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_Get.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_Get.json new file mode 100644 index 000000000000..a0994c4c9805 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "api-version": "2019-05-01" + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "provisioningState": "Created", + "poolId": "9760acf5-4638-11e7-9bdb-020073ca7778", + "serviceLevel": "Premium", + "size": 4398046511104 + } + } + } + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_List.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_List.json new file mode 100644 index 000000000000..101578bc6c93 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "api-version": "2019-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "eastus", + "properties": { + "provisioningState": "Created", + "poolId": "9760acf5-4638-11e7-9bdb-020073ca7778", + "serviceLevel": "Premium", + "size": 4398046511104 + } + } + ] + } + } + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_Update.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_Update.json new file mode 100644 index 000000000000..352fb9f2bff3 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Pools_Update.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "api-version": "2019-05-01", + "body": {} + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "provisioningState": "Created", + "poolId": "9760acf5-4638-11e7-9bdb-020073ca7778", + "serviceLevel": "Premium", + "size": 4398046511104 + } + } + }, + "202": {} + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_Create.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_Create.json new file mode 100644 index 000000000000..19a57beace0a --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_Create.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "volumeName": "volumeName", + "snapshotName": "snapshotName", + "api-version": "2019-05-01", + "body": { + "location": "eastus" + } + }, + "responses": { + "201": { + "body": { + "location": "eastus", + "properties": { + "snapshotId": "9760acf5-4638-11e7-9bdb-020073ca3333", + "fileSystemId": "9760acf5-4638-11e7-9bdb-020073ca3333", + "creationDate": "2017-08-15T13:23:33Z", + "provisioningState": "Created" + } + } + }, + "202": {} + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_Delete.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_Delete.json new file mode 100644 index 000000000000..b6f87582dda5 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_Delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "volumeName": "volumeName", + "snapshotName": "snapshotName", + "api-version": "2019-05-01" + }, + "responses": { + "204": {}, + "202": {}, + "200": {} + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_Get.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_Get.json new file mode 100644 index 000000000000..762f230637d1 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "volumeName": "volumeName", + "snapshotName": "snapshotName", + "api-version": "2019-05-01" + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "snapshotId": "9760acf5-4638-11e7-9bdb-020073ca3333", + "fileSystemId": "9760acf5-4638-11e7-9bdb-020073ca3333", + "creationDate": "2017-08-15T13:23:33Z", + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_List.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_List.json new file mode 100644 index 000000000000..5bf9ef6dbc3e --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_List.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "volumeName": "volumeName", + "api-version": "2019-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "eastus", + "properties": { + "snapshotId": "9760acf5-4638-11e7-9bdb-020073ca3333", + "fileSystemId": "9760acf5-4638-11e7-9bdb-020073ca3333", + "creationDate": "2017-08-15T13:23:33Z", + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_Update.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_Update.json new file mode 100644 index 000000000000..626d011ca2ef --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Snapshots_Update.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "volumeName": "volumeName", + "snapshotName": "snapshotName", + "api-version": "2019-05-01", + "body": {} + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "snapshotId": "9760acf5-4638-11e7-9bdb-020073ca3333", + "fileSystemId": "9760acf5-4638-11e7-9bdb-020073ca3333", + "creationDate": "2017-08-15T13:23:33Z", + "provisioningState": "Created" + } + } + }, + "202": {} + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_CreateOrUpdate.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_CreateOrUpdate.json new file mode 100644 index 000000000000..5d5d05bac956 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_CreateOrUpdate.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "volumeName": "volumeName", + "api-version": "2019-05-01", + "body": { + "location": "eastus", + "properties": { + "serviceLevel": "Premium", + "creationToken": "my-unique-file-path", + "usageThreshold": 107374182400, + "subnetId": "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3" + } + } + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "fileSystemId": "9760acf5-4638-11e7-9bdb-020073ca7778", + "creationToken": "some-amazing-filepath", + "usageThreshold": 107374182400, + "serviceLevel": "Premium", + "provisioningState": "Created", + "subnetId": "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3" + } + } + }, + "201": { + "body": { + "location": "eastus", + "properties": { + "fileSystemId": "9760acf5-4638-11e7-9bdb-020073ca7778", + "creationToken": "some-amazing-filepath", + "usageThreshold": 107374182400, + "serviceLevel": "Premium", + "provisioningState": "Created", + "subnetId": "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3" + } + } + }, + "202": {} + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_Delete.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_Delete.json new file mode 100644 index 000000000000..c497f27bf6e8 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "volumeName": "volumeName", + "api-version": "2019-05-01" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_Get.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_Get.json new file mode 100644 index 000000000000..fb6864c7e431 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_Get.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "volumeName": "volumeName", + "api-version": "2019-05-01" + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "fileSystemId": "9760acf5-4638-11e7-9bdb-020073ca7778", + "creationToken": "some-amazing-filepath", + "usageThreshold": 107374182400, + "serviceLevel": "Premium", + "provisioningState": "Created", + "subnetId": "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3" + } + } + } + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_List.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_List.json new file mode 100644 index 000000000000..e707fe00a83d --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_List.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "api-version": "2019-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "eastus", + "properties": { + "fileSystemId": "9760acf5-4638-11e7-9bdb-020073ca7778", + "creationToken": "some-amazing-filepath", + "usageThreshold": 107374182400, + "serviceLevel": "Premium", + "provisioningState": "Created", + "subnetId": "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3" + } + } + ] + } + } + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_Update.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_Update.json new file mode 100644 index 000000000000..dd2c40ea4091 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/examples/Volumes_Update.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroup", + "accountName": "accountName", + "poolName": "poolName", + "volumeName": "volumeName", + "api-version": "2019-05-01", + "body": {} + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "fileSystemId": "9760acf5-4638-11e7-9bdb-020073ca7778", + "creationToken": "some-amazing-filepath", + "usageThreshold": 107374182400, + "serviceLevel": "Premium", + "provisioningState": "Created", + "subnetId": "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3" + } + } + }, + "202": {} + } +} diff --git a/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/netapp.json b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/netapp.json new file mode 100644 index 000000000000..185bff3eace0 --- /dev/null +++ b/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-06-01/netapp.json @@ -0,0 +1,2358 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft NetApp", + "description": "Microsoft NetApp Azure Resource Provider specification", + "version": "2019-06-01", + "x-ms-code-generation-settings": { + "name": "AzureNetAppFilesManagementClient" + } + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "host": "management.azure.com", + "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.NetApp/operations": { + "get": { + "tags": [ + "Operations" + ], + "summary": "Describes the Resource Provider", + "description": "Lists all of the available Microsoft.NetApp Rest API operations", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "x-ms-pageable": { + "nextLinkName": null + }, + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability": { + "post": { + "summary": "Check resource name availability", + "description": "Check if a resource name is available.", + "operationId": "CheckNameAvailability", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Name availability request.", + "required": true, + "schema": { + "$ref": "#/definitions/ResourceNameAvailabilityRequest" + }, + "x-ms-client-flatten": true + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/location" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ResourceNameAvailability" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "CheckNameAvailability": { + "$ref": "examples/CheckNameAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability": { + "post": { + "summary": "Check file path availability", + "description": "Check if a file path is available.", + "operationId": "CheckFilePathAvailability", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "File path availability request.", + "required": true, + "schema": { + "$ref": "#/definitions/ResourceNameAvailabilityRequest" + }, + "x-ms-client-flatten": true + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/location" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ResourceNameAvailability" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "CheckFilePathAvailability": { + "$ref": "examples/CheckFilePathAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts": { + "get": { + "summary": "Describe all NetApp Accounts in a resource group", + "description": "List and describe all NetApp accounts in the resource group", + "tags": [ + "NetApp Accounts" + ], + "operationId": "Accounts_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "x-ms-pageable": { + "nextLinkName": null + }, + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/netAppAccountList" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "Accounts_List": { + "$ref": "examples/Accounts_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}": { + "get": { + "summary": "Describe a NetApp Account", + "description": "Get the NetApp account", + "tags": [ + "NetApp Accounts" + ], + "operationId": "Accounts_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/netAppAccount" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "Accounts_Get": { + "$ref": "examples/Accounts_Get.json" + } + } + }, + "put": { + "tags": [ + "NetApp Accounts" + ], + "operationId": "Accounts_CreateOrUpdate", + "summary": "Create or update a NetApp account", + "description": "Create or update the specified NetApp account within the resource group", + "parameters": [ + { + "name": "body", + "description": "NetApp Account object supplied in the body of the operation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/netAppAccount" + } + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - account updated", + "schema": { + "$ref": "#/definitions/netAppAccount" + } + }, + "201": { + "description": "Account created", + "schema": { + "$ref": "#/definitions/netAppAccount" + } + }, + "202": { + "description": "Accepted -- Create, update or delete request accepted; operation will complete asynchronously" + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Accounts_CreateOrUpdate": { + "$ref": "examples/Accounts_CreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "NetApp Accounts" + ], + "operationId": "Accounts_Delete", + "summary": "Delete a NetApp account", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "description": "Delete the specified NetApp account", + "responses": { + "202": { + "description": "Accepted -- Create, update or delete request accepted; operation will complete asynchronously" + }, + "204": { + "description": "NoContent -- Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Accounts_Delete": { + "$ref": "examples/Accounts_Delete.json" + } + } + }, + "patch": { + "tags": [ + "NetApp Accounts" + ], + "operationId": "Accounts_Update", + "summary": "Update a NetApp account", + "description": "Patch the specified NetApp account", + "parameters": [ + { + "name": "body", + "description": "NetApp Account object supplied in the body of the operation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/netAppAccountPatch" + } + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - account updated", + "schema": { + "$ref": "#/definitions/netAppAccount" + } + }, + "202": { + "description": "Accepted -- Create, update or delete request accepted; operation will complete asynchronously" + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "Accounts_Update": { + "$ref": "examples/Accounts_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools": { + "get": { + "summary": "Describe all Capacity Pools", + "description": "List all capacity pools in the NetApp Account", + "tags": [ + "Capacity Pools" + ], + "operationId": "Pools_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "x-ms-pageable": { + "nextLinkName": null + }, + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/capacityPoolList" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "Pools_List": { + "$ref": "examples/Pools_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}": { + "get": { + "summary": "Describe a Capacity Pool", + "description": "Get details of the specified capacity pool", + "tags": [ + "Capacity Pools" + ], + "operationId": "Pools_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/capacityPool" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "Pools_Get": { + "$ref": "examples/Pools_Get.json" + } + } + }, + "put": { + "tags": [ + "Capacity Pools" + ], + "operationId": "Pools_CreateOrUpdate", + "summary": "Create or Update the specified capacity pool within the resource group", + "description": "Create or Update a capacity pool", + "parameters": [ + { + "name": "body", + "description": "Capacity pool object supplied in the body of the operation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/capacityPool" + } + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - pool updated", + "schema": { + "$ref": "#/definitions/capacityPool" + } + }, + "201": { + "description": "Pool created", + "schema": { + "$ref": "#/definitions/capacityPool" + } + }, + "202": { + "description": "Accepted -- Create, update or delete request accepted; operation will complete asynchronously" + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Pools_CreateOrUpdate": { + "$ref": "examples/Pools_CreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "Capacity Pools" + ], + "operationId": "Pools_Update", + "summary": "Update a capacity pool", + "description": "Patch the specified capacity pool", + "parameters": [ + { + "name": "body", + "description": "Capacity pool object supplied in the body of the operation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/capacityPoolPatch" + } + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/capacityPool" + } + }, + "202": { + "description": "Accepted -- Create, update or delete request accepted; operation will complete asynchronously" + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "Pools_Update": { + "$ref": "examples/Pools_Update.json" + } + } + }, + "delete": { + "tags": [ + "Capacity Pools" + ], + "operationId": "Pools_Delete", + "summary": "Delete a capacity pool", + "description": "Delete the specified capacity pool", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted -- Create, update or delete request accepted; operation will complete asynchronously" + }, + "204": { + "description": "NoContent -- Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Pools_Delete": { + "$ref": "examples/Pools_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes": { + "get": { + "summary": "Describe all volumes", + "description": "List all volumes within the capacity pool", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Volumes" + ], + "operationId": "Volumes_List", + "x-ms-pageable": { + "nextLinkName": null + }, + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/volumeList" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "Volumes_List": { + "$ref": "examples/Volumes_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}": { + "get": { + "tags": [ + "Volumes" + ], + "operationId": "Volumes_Get", + "summary": "Describe a volume", + "description": "Get the details of the specified volume", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/VolumeName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/volume" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "Volumes_Get": { + "$ref": "examples/Volumes_Get.json" + } + } + }, + "put": { + "tags": [ + "Volumes" + ], + "operationId": "Volumes_CreateOrUpdate", + "summary": "Create or Update a volume", + "description": "Create or update the specified volume within the capacity pool", + "parameters": [ + { + "name": "body", + "description": "Volume object supplied in the body of the operation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/volume" + } + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/VolumeName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Ok - volume updated", + "schema": { + "$ref": "#/definitions/volume" + } + }, + "201": { + "description": "Volume created", + "schema": { + "$ref": "#/definitions/volume" + } + }, + "202": { + "description": "Accepted -- Create request accepted; operation will complete asynchronously" + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Volumes_CreateOrUpdate": { + "$ref": "examples/Volumes_CreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "Volumes" + ], + "operationId": "Volumes_Update", + "summary": "Update a volume", + "description": "Patch the specified volume", + "parameters": [ + { + "name": "body", + "description": "Volume object supplied in the body of the operation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/volumePatch" + } + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/VolumeName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/volume" + } + }, + "202": { + "description": "Accepted -- Create, update or delete request accepted; operation will complete asynchronously" + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "Volumes_Update": { + "$ref": "examples/Volumes_Update.json" + } + } + }, + "delete": { + "tags": [ + "Volumes" + ], + "operationId": "Volumes_Delete", + "summary": "Delete a volume", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/VolumeName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "description": "Delete the specified volume", + "responses": { + "202": { + "description": "Accepted -- Create, update or delete request accepted; operation will complete asynchronously" + }, + "204": { + "description": "NoContent -- Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Volumes_Delete": { + "$ref": "examples/Volumes_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/mountTargets": { + "get": { + "tags": [ + "MountTargets" + ], + "operationId": "MountTargets_List", + "summary": "Describe all mount targets", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/VolumeName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "description": "List all mount targets associated with the volume", + "x-ms-pageable": { + "nextLinkName": null + }, + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/mountTargetList" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "MountTargets_List": { + "$ref": "examples/MountTargets_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots": { + "get": { + "tags": [ + "Snapshots" + ], + "operationId": "Snapshots_List", + "summary": "Describe all snapshots", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/VolumeName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "description": "List all snapshots associated with the volume", + "x-ms-pageable": { + "nextLinkName": null + }, + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/snapshotsList" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "Snapshots_List": { + "$ref": "examples/Snapshots_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}": { + "get": { + "tags": [ + "Snapshots" + ], + "operationId": "Snapshots_Get", + "summary": "Describe a snapshot", + "description": "Get details of the specified snapshot", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/VolumeName" + }, + { + "$ref": "#/parameters/SnapshotName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/snapshot" + } + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "Snapshots_Get": { + "$ref": "examples/Snapshots_Get.json" + } + } + }, + "put": { + "tags": [ + "Snapshots" + ], + "operationId": "Snapshots_Create", + "summary": "Create a snapshot", + "description": "Create the specified snapshot within the given volume", + "parameters": [ + { + "name": "body", + "description": "Snapshot object supplied in the body of the operation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/snapshot" + } + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/VolumeName" + }, + { + "$ref": "#/parameters/SnapshotName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Snapshot created", + "schema": { + "$ref": "#/definitions/snapshot" + } + }, + "202": { + "description": "Accepted -- Create request accepted; operation will complete asynchronously" + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Snapshots_Create": { + "$ref": "examples/Snapshots_Create.json" + } + } + }, + "patch": { + "tags": [ + "Snapshots" + ], + "operationId": "Snapshots_Update", + "summary": "Update a snapshot", + "description": "Patch a snapshot", + "parameters": [ + { + "name": "body", + "description": "Snapshot object supplied in the body of the operation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/snapshotPatch" + } + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/VolumeName" + }, + { + "$ref": "#/parameters/SnapshotName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/snapshot" + } + }, + "202": { + "description": "Accepted -- Update request accepted; operation will complete asynchronously" + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-examples": { + "Snapshots_Update": { + "$ref": "examples/Snapshots_Update.json" + } + } + }, + "delete": { + "tags": [ + "Snapshots" + ], + "operationId": "Snapshots_Delete", + "summary": "Delete a snapshot", + "description": "Delete snapshot", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroup" + }, + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/PoolName" + }, + { + "$ref": "#/parameters/VolumeName" + }, + { + "$ref": "#/parameters/SnapshotName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted -- Create, update or delete request accepted; operation will complete asynchronously" + }, + "204": { + "description": "NoContent -- Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Snapshots_Delete": { + "$ref": "examples/Snapshots_Delete.json" + } + } + } + } + }, + "definitions": { + "OperationListResult": { + "description": "Result of the request to list Cloud Volume 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 Storage operations supported by the Storage resource provider." + } + } + }, + "Operation": { + "description": "Microsoft.NetApp REST API operation definition.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "Display metadata associated with the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft NetApp.", + "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": "Operation description.", + "type": "string" + } + } + }, + "origin": { + "type": "string", + "description": "The origin of operations." + }, + "properties": { + "$ref": "#/definitions/OperationProperties", + "description": "Properties of operation, include metric specifications.", + "x-ms-client-flatten": true + } + } + }, + "OperationProperties": { + "description": "Properties of operation, include metric specifications.", + "properties": { + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecification", + "description": "One property of operation, include metric specifications." + } + } + }, + "ServiceSpecification": { + "description": "One property of operation, include metric specifications.", + "properties": { + "metricSpecifications": { + "description": "Metric specifications of operation.", + "type": "array", + "items": { + "$ref": "#/definitions/MetricSpecification" + } + } + } + }, + "MetricSpecification": { + "description": "Metric specification of operation.", + "properties": { + "name": { + "type": "string", + "description": "Name of metric specification." + }, + "displayName": { + "type": "string", + "description": "Display name of metric specification." + }, + "displayDescription": { + "type": "string", + "description": "Display description of metric specification." + }, + "unit": { + "type": "string", + "description": "Unit could be Bytes or Count." + }, + "dimensions": { + "description": "Dimensions of blobs, including blob type and access tier.", + "type": "array", + "items": { + "$ref": "#/definitions/Dimension" + } + }, + "aggregationType": { + "type": "string", + "description": "Aggregation type could be Average." + }, + "fillGapWithZero": { + "type": "boolean", + "description": "The property to decide fill gap with zero or not." + }, + "category": { + "type": "string", + "description": "The category this metric specification belong to, could be Capacity." + }, + "resourceIdDimensionNameOverride": { + "type": "string", + "description": "Account Resource Id." + } + } + }, + "Dimension": { + "description": "Dimension of blobs, possibly be blob type or access tier.", + "properties": { + "name": { + "type": "string", + "description": "Display name of dimension." + }, + "displayName": { + "type": "string", + "description": "Display name of dimension." + } + } + }, + "ResourceNameAvailability": { + "description": "Information regarding availability of a resource name.", + "type": "object", + "properties": { + "isAvailable": { + "description": "true indicates name is valid and available. false indicates the name is invalid, unavailable, or both.", + "type": "boolean" + }, + "reason": { + "description": "Invalid indicates the name provided does not match Azure App Service naming requirements. AlreadyExists indicates that the name is already in use and is therefore unavailable.", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "type": "string", + "x-ms-enum": { + "name": "InAvailabilityReasonType", + "modelAsString": true + } + }, + "message": { + "description": "If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name.", + "type": "string" + } + } + }, + "ResourceNameAvailabilityRequest": { + "description": "Resource name availability request content.", + "required": [ + "name", + "type", + "resourceGroup" + ], + "type": "object", + "properties": { + "name": { + "description": "Resource name to verify.", + "type": "string" + }, + "type": { + "description": "Resource type used for verification.", + "enum": [ + "Microsoft.NetApp/netAppAccounts", + "Microsoft.NetApp/netAppAccounts/capacityPools", + "Microsoft.NetApp/netAppAccounts/capacityPools/volumes", + "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots" + ], + "type": "string", + "x-ms-enum": { + "name": "CheckNameResourceTypes", + "modelAsString": true + } + }, + "resourceGroup": { + "description": "Resource group name.", + "type": "string" + } + } + }, + "netAppAccountList": { + "description": "List of NetApp account resources", + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Multiple NetApp accounts", + "items": { + "$ref": "#/definitions/netAppAccount" + } + } + } + }, + "netAppAccount": { + "description": "NetApp account resource", + "type": "object", + "x-ms-azure-resource": true, + "required": [ + "location" + ], + "properties": { + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type" + }, + "tags": { + "description": "Resource tags", + "$ref": "#/definitions/resourceTags" + }, + "properties": { + "description": "NetApp Account properties", + "$ref": "#/definitions/accountProperties", + "x-ms-client-flatten": true + } + } + }, + "netAppAccountPatch": { + "description": "NetApp account patch resource", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "location": { + "type": "string", + "description": "Resource location" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type" + }, + "tags": { + "description": "Resource tags", + "$ref": "#/definitions/resourceTags" + }, + "properties": { + "description": "NetApp Account properties", + "$ref": "#/definitions/accountProperties", + "x-ms-client-flatten": true + } + } + }, + "accountProperties": { + "description": "NetApp account properties", + "type": "object", + "properties": { + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Azure lifecycle management" + }, + "activeDirectories": { + "description": "Active Directories", + "type": "array", + "items": { + "$ref": "#/definitions/activeDirectory" + } + } + } + }, + "activeDirectory": { + "description": "Active Directory", + "type": "object", + "properties": { + "activeDirectoryId": { + "type": "string", + "description": "Id of the Active Directory" + }, + "username": { + "type": "string", + "description": "Username of Active Directory domain administrator" + }, + "password": { + "type": "string", + "description": "Plain text password of Active Directory domain administrator" + }, + "domain": { + "type": "string", + "description": "Name of the Active Directory domain" + }, + "dns": { + "type": "string", + "description": "Comma separated list of DNS server IP addresses for the Active Directory domain" + }, + "status": { + "type": "string", + "description": "Status of the Active Directory" + }, + "smbServerName": { + "type": "string", + "description": "NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount volumes" + }, + "organizationalUnit": { + "type": "string", + "description": "The Organizational Unit (OU) within the Windows Active Directory" + } + } + }, + "capacityPoolList": { + "description": "List of capacity pool resources", + "type": "object", + "properties": { + "value": { + "description": "List of Capacity pools", + "type": "array", + "items": { + "$ref": "#/definitions/capacityPool" + } + } + } + }, + "capacityPool": { + "description": "Capacity pool resource", + "type": "object", + "x-ms-azure-resource": true, + "required": [ + "location", + "properties" + ], + "properties": { + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type" + }, + "tags": { + "description": "Resource tags", + "$ref": "#/definitions/resourceTags" + }, + "properties": { + "description": "Capacity pool properties", + "$ref": "#/definitions/poolProperties", + "x-ms-client-flatten": true + } + } + }, + "poolProperties": { + "description": "Pool properties", + "type": "object", + "required": [ + "size", + "serviceLevel" + ], + "properties": { + "poolId": { + "title": "poolId", + "type": "string", + "readOnly": true, + "description": "UUID v4 used to identify the Pool", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "maxLength": 36, + "minLength": 36, + "example": "9760acf5-4638-11e7-9bdb-020073ca7778" + }, + "size": { + "title": "size", + "type": "integer", + "format": "int64", + "description": "Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be multiply of 4398046511104).", + "minimum": 4398046511104, + "maximum": 549755813888000 + }, + "serviceLevel": { + "title": "serviceLevel", + "type": "string", + "description": "The service level of the file system", + "enum": [ + "Standard", + "Premium", + "Ultra" + ], + "x-ms-enum": { + "name": "ServiceLevel", + "modelAsString": true, + "values": [ + { + "value": "Standard", + "description": "Standard service level" + }, + { + "value": "Premium", + "description": "Premium service level" + }, + { + "value": "Ultra", + "description": "Ultra service level" + } + ] + }, + "example": "Ultra", + "default": "Premium" + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Azure lifecycle management" + } + } + }, + "capacityPoolPatch": { + "description": "Capacity pool patch resource", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "location": { + "type": "string", + "description": "Resource location" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type" + }, + "tags": { + "description": "Resource tags", + "$ref": "#/definitions/resourceTags" + }, + "properties": { + "description": "Capacity pool properties", + "$ref": "#/definitions/poolPatchProperties", + "x-ms-client-flatten": true + } + } + }, + "poolPatchProperties": { + "description": "Patchable pool properties", + "type": "object", + "properties": { + "size": { + "title": "size", + "type": "integer", + "format": "int64", + "description": "Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be multiply of 4398046511104).", + "minimum": 4398046511104, + "maximum": 549755813888000, + "default": 4398046511104 + }, + "serviceLevel": { + "title": "serviceLevel", + "type": "string", + "description": "The service level of the file system", + "enum": [ + "Standard", + "Premium", + "Ultra" + ], + "x-ms-enum": { + "name": "ServiceLevel", + "modelAsString": true, + "values": [ + { + "value": "Standard", + "description": "Standard service level" + }, + { + "value": "Premium", + "description": "Premium service level" + }, + { + "value": "Ultra", + "description": "Ultra service level" + } + ] + }, + "example": "Ultra", + "default": "Premium" + } + } + }, + "volumeList": { + "description": "List of volume resources", + "type": "object", + "properties": { + "value": { + "description": "List of volumes", + "type": "array", + "items": { + "$ref": "#/definitions/volume" + } + } + } + }, + "volume": { + "description": "Volume resource", + "type": "object", + "x-ms-azure-resource": true, + "required": [ + "location", + "properties" + ], + "properties": { + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type" + }, + "tags": { + "description": "Resource tags", + "$ref": "#/definitions/resourceTags" + }, + "properties": { + "description": "Volume properties", + "$ref": "#/definitions/volumeProperties", + "x-ms-client-flatten": true + } + } + }, + "resourceTags": { + "description": "Resource tags", + "type": "object" + }, + "volumeProperties": { + "description": "Volume properties", + "type": "object", + "required": [ + "creationToken", + "usageThreshold", + "subnetId" + ], + "properties": { + "fileSystemId": { + "title": "FileSystem ID", + "type": "string", + "readOnly": true, + "description": "Unique FileSystem Identifier.", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "maxLength": 36, + "minLength": 36, + "example": "9760acf5-4638-11e7-9bdb-020073ca7778" + }, + "creationToken": { + "title": "Creation Token or File Path", + "type": "string", + "description": "A unique file path for the volume. Used when creating mount targets", + "minimum": 16, + "maximum": 40, + "example": "some-amazing-filepath" + }, + "serviceLevel": { + "title": "serviceLevel", + "type": "string", + "description": "The service level of the file system", + "enum": [ + "Standard", + "Premium", + "Ultra" + ], + "x-ms-enum": { + "name": "ServiceLevel", + "modelAsString": true, + "values": [ + { + "value": "Standard", + "description": "Standard service level" + }, + { + "value": "Premium", + "description": "Premium service level" + }, + { + "value": "Ultra", + "description": "Ultra service level" + } + ] + }, + "example": "Ultra", + "default": "Premium" + }, + "usageThreshold": { + "title": "usageThreshold", + "type": "integer", + "format": "int64", + "description": "Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes.", + "minimum": 107374182400, + "maximum": 109951162777600, + "default": 107374182400, + "example": 107374182400 + }, + "exportPolicy": { + "title": "exportPolicy", + "description": "Set of export policy rules", + "properties": { + "rules": { + "title": "Export policy rule", + "description": "Export policy rule", + "type": "array", + "items": { + "$ref": "#/definitions/exportPolicyRule" + } + } + } + }, + "protocolTypes": { + "title": "protocolTypes", + "description": "Set of protocol types", + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "NFSv3", + "NFSv4" + ] + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Azure lifecycle management" + }, + "snapshotId": { + "title": "Snapshot ID", + "type": "string", + "description": "UUID v4 or resource identifier used to identify the Snapshot.", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}|(\\\\?([^\\/]*[\\/])*)([^\\/]+)$", + "maxLength": 36, + "minLength": 36, + "example": "9760acf5-4638-11e7-9bdb-020073ca3333" + }, + "baremetalTenantId": { + "title": "Baremetal Tenant ID", + "type": "string", + "readOnly": true, + "description": "Unique Baremetal Tenant Identifier.", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "maxLength": 36, + "minLength": 36, + "example": "9560acf5-4e3a-12e7-9bdb-02007cca7779" + }, + "subnetId": { + "type": "string", + "description": "The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes" + }, + "mountTargets": { + "title": "mountTargets", + "description": "List of mount targets", + "items": { + "$ref": "#/definitions/mountTargetList" + } + } + } + }, + "exportPolicyRule": { + "description": "Volume Export Policy Rule", + "type": "object", + "properties": { + "ruleIndex": { + "type": "integer", + "description": "Order index" + }, + "unixReadOnly": { + "type": "boolean", + "description": "Read only access" + }, + "unixReadWrite": { + "type": "boolean", + "description": "Read and write access" + }, + "cifs": { + "type": "boolean", + "description": "Allows CIFS protocol" + }, + "nfsv3": { + "type": "boolean", + "description": "Allows NFSv3 protocol" + }, + "nfsv4": { + "type": "boolean", + "description": "Allows NFSv4 protocol" + }, + "allowedClients": { + "type": "string", + "description": "Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names" + } + } + }, + "volumePatch": { + "description": "Volume patch resource", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "location": { + "type": "string", + "description": "Resource location" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type" + }, + "tags": { + "description": "Resource tags", + "$ref": "#/definitions/resourceTags" + }, + "properties": { + "description": "Patchable volume properties", + "$ref": "#/definitions/volumePatchProperties", + "x-ms-client-flatten": true + } + } + }, + "volumePatchProperties": { + "description": "Patchable volume properties", + "type": "object", + "properties": { + "serviceLevel": { + "title": "serviceLevel", + "type": "string", + "description": "The service level of the file system", + "enum": [ + "Standard", + "Premium", + "Ultra" + ], + "x-ms-enum": { + "name": "ServiceLevel", + "modelAsString": true, + "values": [ + { + "value": "Standard", + "description": "Standard service level" + }, + { + "value": "Premium", + "description": "Premium service level" + }, + { + "value": "Ultra", + "description": "Ultra service level" + } + ] + }, + "example": "Ultra", + "default": "Premium" + }, + "usageThreshold": { + "title": "usageThreshold", + "type": "integer", + "format": "int64", + "description": "Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes.", + "minimum": 107374182400, + "maximum": 109951162777600, + "default": 107374182400, + "example": 107374182400 + }, + "exportPolicy": { + "title": "exportPolicy", + "description": "Set of export policy rules", + "properties": { + "rules": { + "title": "Export policy rule", + "description": "Export policy rule", + "type": "array", + "items": { + "$ref": "#/definitions/exportPolicyRule" + } + } + } + } + } + }, + "mountTargetList": { + "description": "List of Mount Targets", + "type": "object", + "properties": { + "value": { + "description": "A list of Mount targets", + "type": "array", + "items": { + "$ref": "#/definitions/mountTarget" + } + } + } + }, + "mountTarget": { + "description": "Mount Target", + "type": "object", + "required": [ + "location", + "properties" + ], + "properties": { + "location": { + "type": "string", + "description": "Resource location" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource name" + }, + "tags": { + "description": "Resource tags", + "$ref": "#/definitions/resourceTags", + "x-ms-client-flatten": true + }, + "properties": { + "description": "Mount Target Properties", + "$ref": "#/definitions/mountTargetProperties", + "x-ms-client-flatten": true + } + } + }, + "mountTargetProperties": { + "description": "Mount target properties", + "type": "object", + "required": [ + "fileSystemId" + ], + "properties": { + "mountTargetId": { + "title": "mountTargetId", + "type": "string", + "readOnly": true, + "description": "UUID v4 used to identify the MountTarget", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "maxLength": 36, + "minLength": 36, + "example": "9760acf5-4638-11e7-9bdb-020073ca3333" + }, + "fileSystemId": { + "title": "fileSystemId", + "type": "string", + "description": "UUID v4 used to identify the MountTarget", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "maxLength": 36, + "minLength": 36, + "example": "9760acf5-4638-11e7-9bdb-020073ca3333" + }, + "ipAddress": { + "title": "ipAddress", + "description": "The mount target's IPv4 address", + "type": "string", + "readOnly": true, + "example": "1.2.3.4" + }, + "subnet": { + "title": "subnet", + "type": "string", + "description": "The subnet", + "example": "1.2.3.4" + }, + "startIp": { + "title": "startIp", + "description": "The start of IPv4 address range to use when creating a new mount target", + "type": "string", + "example": "1.2.3.4" + }, + "endIp": { + "title": "endIp", + "description": "The end of IPv4 address range to use when creating a new mount target", + "type": "string", + "example": "1.2.3.4" + }, + "gateway": { + "title": "gateway", + "description": "The gateway of the IPv4 address range to use when creating a new mount target", + "type": "string", + "example": "1.2.3.4" + }, + "netmask": { + "title": "netmask", + "description": "The netmask of the IPv4 address range to use when creating a new mount target", + "type": "string", + "example": "255.255.255.0" + }, + "smbServerFqdn": { + "title": "smbServerFQDN", + "description": "The SMB server's Fully Qualified Domain Name, FQDN", + "type": "string", + "example": "fullyqualified.domainname.com" + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Azure lifecycle management" + } + } + }, + "snapshotsList": { + "description": "List of Snapshots", + "type": "object", + "properties": { + "value": { + "description": "A list of Snapshots", + "type": "array", + "items": { + "$ref": "#/definitions/snapshot" + } + } + } + }, + "snapshot": { + "description": "Snapshot of a Volume", + "type": "object", + "x-ms-azure-resource": true, + "required": [ + "location" + ], + "properties": { + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Resource name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type" + }, + "tags": { + "description": "Resource tags", + "$ref": "#/definitions/resourceTags", + "x-ms-client-flatten": true + }, + "properties": { + "description": "Snapshot Properties", + "$ref": "#/definitions/snapshotProperties", + "x-ms-client-flatten": true + } + } + }, + "snapshotPatch": { + "description": "Snapshot patch", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "tags": { + "description": "Resource tags", + "$ref": "#/definitions/resourceTags", + "x-ms-client-flatten": true + } + } + }, + "snapshotProperties": { + "description": "Snapshot properties", + "type": "object", + "properties": { + "snapshotId": { + "title": "snapshotId", + "type": "string", + "readOnly": true, + "description": "UUID v4 used to identify the Snapshot", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "maxLength": 36, + "minLength": 36, + "example": "9760acf5-4638-11e7-9bdb-020073ca3333" + }, + "fileSystemId": { + "title": "fileSystemId", + "type": "string", + "description": "UUID v4 used to identify the FileSystem", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "maxLength": 36, + "minLength": 36, + "example": "9760acf5-4638-11e7-9bdb-020073ca3333" + }, + "creationDate": { + "title": "name", + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The creation date of the snapshot", + "example": "2017-08-15 13:23:33" + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Azure lifecycle management" + } + } + } + }, + "parameters": { + "SubscriptionId": { + "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." + }, + "location": { + "name": "location", + "description": "The location", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ResourceGroup": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "AccountName": { + "name": "accountName", + "type": "string", + "in": "path", + "required": true, + "description": "The name of the NetApp account", + "x-ms-parameter-location": "method" + }, + "PoolName": { + "name": "poolName", + "type": "string", + "in": "path", + "required": true, + "description": "The name of the capacity pool", + "x-ms-parameter-location": "method" + }, + "VolumeName": { + "name": "volumeName", + "type": "string", + "in": "path", + "required": true, + "description": "The name of the volume", + "x-ms-parameter-location": "method" + }, + "MountTargetName": { + "name": "mountTargetName", + "type": "string", + "in": "path", + "required": true, + "description": "The name of the mount target", + "x-ms-parameter-location": "method" + }, + "SnapshotName": { + "name": "snapshotName", + "type": "string", + "in": "path", + "required": true, + "description": "The name of the mount target", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "description": "Version of the API to be used with the client request.", + "in": "query", + "type": "string", + "required": true, + "default": "2019-06-01" + } + } +} diff --git a/specification/netapp/resource-manager/readme.csharp.md b/specification/netapp/resource-manager/readme.csharp.md index 50a0e20bf93a..ab4a6b6ee13a 100644 --- a/specification/netapp/resource-manager/readme.csharp.md +++ b/specification/netapp/resource-manager/readme.csharp.md @@ -9,6 +9,6 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.NetApp - output-folder: $(csharp-sdks-folder)/NetApp/Management.NetApp/Generated + output-folder: $(csharp-sdks-folder)/netapp/Microsoft.Azure.Management.NetApp/src/Generated clear-output-folder: true ``` diff --git a/specification/netapp/resource-manager/readme.go.md b/specification/netapp/resource-manager/readme.go.md index 6d3fca2efc9f..63aad6e6522c 100644 --- a/specification/netapp/resource-manager/readme.go.md +++ b/specification/netapp/resource-manager/readme.go.md @@ -13,10 +13,20 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-netapp-2019-06-01 - tag: package-netapp-2019-05-01 - tag: package-2017-08-15 ``` +### Tag: package-netapp-2019-06-01 and go + +These settings apply only when `--tag=package-netapp-2019-06-01 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-netapp-2019-06-01' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2019-06-01/$(namespace) +``` + ### Tag: package-netapp-2019-05-01 and go These settings apply only when `--tag=package-netapp-2019-05-01 --go` is specified on the command line. diff --git a/specification/netapp/resource-manager/readme.java.md b/specification/netapp/resource-manager/readme.java.md index ea44e73c4957..0828cd306fe1 100644 --- a/specification/netapp/resource-manager/readme.java.md +++ b/specification/netapp/resource-manager/readme.java.md @@ -16,8 +16,20 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-netapp ``` yaml $(java) && $(multiapi) batch: - - tag: package-netapp-2019-05-01 - - tag: package-2017-08-15 + - tag: package-netapp-2019-06-01 +``` + +### Tag: package-netapp-2019-06-01 and java + +These settings apply only when `--tag=package-netapp-2019-06-01 --java` is specified on the command line. +Please also specify the `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-netapp-2019-06-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.netapp.v2019_06_01 + output-folder: $(azure-libraries-for-java-folder)/netapp/resource-manager/v2019_06_01 +regenerate-manager: true +generate-interface: true ``` ### Tag: package-netapp-2019-05-01 and java diff --git a/specification/netapp/resource-manager/readme.md b/specification/netapp/resource-manager/readme.md index 324c8442f242..6796843d49c3 100644 --- a/specification/netapp/resource-manager/readme.md +++ b/specification/netapp/resource-manager/readme.md @@ -28,9 +28,17 @@ These are the global settings for the Azure NetApp Files API. title: NetAppManagementClient description: Microsoft NetApp Azure Resource Provider specification openapi-type: arm -tag: package-netapp-2019-05-01 +tag: package-netapp-2019-06-01 ``` +### Tag: package-netapp-2019-06-01 + +These settings apply only when `--tag=package-netapp-2019-06-01` is specified on the command line. + +``` yaml $(tag) == 'package-netapp-2019-06-01' +input-file: +- Microsoft.NetApp/stable/2019-06-01/netapp.json +``` ### Tag: package-netapp-2019-05-01 @@ -89,3 +97,30 @@ 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. + +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.NetApp/stable/2019-06-01/netapp.json + - $(this-folder)/Microsoft.NetApp/stable/2019-05-01/netapp.json + - $(this-folder)/Microsoft.NetApp/preview/2017-08-15/netapp.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/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index 10a671309e50..b825963d2253 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,31 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index 10a671309e50..91ddf8dbb201 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,50 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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/2017-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index f738e3b1d708..de2c55109ce6 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,20 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterCreate.json index 57a6eb4ac1d9..88a033c53fdd 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterGet.json index 43ad513cb9c5..305115a0fbda 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterList.json index 89e13cbce685..b6882e5c8f6c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterListByResourceGroup.json index c5530b2b28a0..15d64ae36501 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleCreate.json index 6b3793570ba8..ac48ca2fa5c3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleCreate.json @@ -22,7 +22,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" @@ -41,7 +41,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleGet.json index eb96851e361a..4ddbcf6dee26 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleListByRouteFilter.json index 4bad8fd7a041..8ab4aa18e420 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleUpdate.json index a6312653279a..a623b170d33d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterRuleUpdate.json @@ -22,7 +22,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterUpdate.json index 34be5f6ea806..b0ea02123326 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ServiceCommunityList.json index 4052fe3d7e06..affc93c7abfb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-06-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index 96351f607cc6..30da3084fb12 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,31 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index 96351f607cc6..1da0f3c1d0f7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,50 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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/2017-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index 7c710544fc08..db77f1bdfabf 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,20 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterCreate.json index 743ee9e9ccd0..d25c565b164c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterGet.json index 00754881f258..eb774fee1037 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterList.json index e8e2d1ab7372..c2d63b8e3cbb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterListByResourceGroup.json index 067c5c9d73e4..f7783f444bb5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleCreate.json index 696c93056fd9..fb91a81a7a82 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleCreate.json @@ -22,7 +22,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" @@ -41,7 +41,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleGet.json index 4a71c2d474eb..8dca766d1f8e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleListByRouteFilter.json index bfdc04bd04a0..7b10d06344f6 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleUpdate.json index 06d112df43cb..19f8462c7b00 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterRuleUpdate.json @@ -22,7 +22,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterUpdate.json index 89716bc299dc..900c7508f84b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ServiceCommunityList.json index 443fe4de3193..4abd11f56bf5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-08-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index d22f75b02895..3257cf2699e5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,31 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index d22f75b02895..e611cd50b9ec 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,50 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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/2017-09-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index 066f97d5162e..b5c21146b223 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,20 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/NetworkWatcherAvailableProvidersListGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/NetworkWatcherAvailableProvidersListGet.json index 55fc4f4fbbd8..9ef303249d10 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/NetworkWatcherAvailableProvidersListGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/NetworkWatcherAvailableProvidersListGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-08-01", + "api-version": "2017-09-01", "subscriptionId": "subid", "resourceGroupName": "rg1", "networkWatcherName": "nw1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/NetworkWatcherAzureReachabilityReportGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/NetworkWatcherAzureReachabilityReportGet.json index dbf40afe58f2..51d814934068 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/NetworkWatcherAzureReachabilityReportGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/NetworkWatcherAzureReachabilityReportGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-08-01", + "api-version": "2017-09-01", "subscriptionId": "subid", "resourceGroupName": "rg1", "networkWatcherName": "nw1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterCreate.json index 2c2bac088333..d6295eea2d33 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterGet.json index 920a494189fc..29e888624012 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterList.json index 20cdfec4b3b2..c266e90c13df 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterListByResourceGroup.json index 041b0a903234..4cc746d4b3c8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleCreate.json index 25215c4d2c51..ef59a0a6277a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleCreate.json @@ -22,7 +22,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" @@ -41,7 +41,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleGet.json index 0f4116233980..e234887b1c3a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleListByRouteFilter.json index d4fe7b4d6b03..f38669605cc8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleUpdate.json index 1f40c5ddb0ba..1e5dde078c4e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterRuleUpdate.json @@ -22,7 +22,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterUpdate.json index 87b4d76041d3..330e697002b7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ServiceCommunityList.json index 1e37532979fc..18747ca39351 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-09-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index 3334444c2ee7..55becf0da8d1 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,31 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index 3334444c2ee7..ff6f270028e4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,50 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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/2017-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index 6f0fc3c95ccc..cc83627a32e2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,20 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherAvailableProvidersListGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherAvailableProvidersListGet.json index 55fc4f4fbbd8..77bcec69bb41 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherAvailableProvidersListGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherAvailableProvidersListGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-08-01", + "api-version": "2017-10-01", "subscriptionId": "subid", "resourceGroupName": "rg1", "networkWatcherName": "nw1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherAzureReachabilityReportGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherAzureReachabilityReportGet.json index dbf40afe58f2..761e456c9d68 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherAzureReachabilityReportGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/NetworkWatcherAzureReachabilityReportGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-08-01", + "api-version": "2017-10-01", "subscriptionId": "subid", "resourceGroupName": "rg1", "networkWatcherName": "nw1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterCreate.json index e8db04840baa..6bfe47cd31f2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterGet.json index 808c6b9c527d..815586ba6ad8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterList.json index 7d387ffb86b0..5a940ec6f371 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterListByResourceGroup.json index 1dee65f0f16a..ef4d1d6a1231 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleCreate.json index 9127f63ca7e2..4e02f8e45326 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleCreate.json @@ -22,7 +22,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" @@ -41,7 +41,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleGet.json index dbb712e5b8a1..76227106ed96 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleListByRouteFilter.json index 0fba8746e9aa..27ce12bb51a5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleUpdate.json index 9a44490f53fb..182f4feaf2e8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterRuleUpdate.json @@ -22,7 +22,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "tags": { "key1": "value1" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterUpdate.json index e005f7c68dc4..752b6d0a3d86 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ServiceCommunityList.json index 72c266c7907f..86db61405bd2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-10-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index ebfd022e5755..54435cfca0ca 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,31 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index ebfd022e5755..eb1ccae62e8a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,50 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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/2017-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index 7398ad781c39..e64758731e5c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,20 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/NetworkWatcherAvailableProvidersListGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/NetworkWatcherAvailableProvidersListGet.json index 55fc4f4fbbd8..c681b6c630a7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/NetworkWatcherAvailableProvidersListGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/NetworkWatcherAvailableProvidersListGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-08-01", + "api-version": "2017-11-01", "subscriptionId": "subid", "resourceGroupName": "rg1", "networkWatcherName": "nw1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/NetworkWatcherAzureReachabilityReportGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/NetworkWatcherAzureReachabilityReportGet.json index dbf40afe58f2..e3ef0bef567e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/NetworkWatcherAzureReachabilityReportGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/NetworkWatcherAzureReachabilityReportGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-08-01", + "api-version": "2017-11-01", "subscriptionId": "subid", "resourceGroupName": "rg1", "networkWatcherName": "nw1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterCreate.json index c43102f1a4c0..622b1891b94f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterGet.json index c2c9df7e07ef..afd1eda16bc0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterList.json index c1894d443553..ed77d2e85f76 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterListByResourceGroup.json index cc73db752894..44abc36a159d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleCreate.json index 650d85d8141b..24e77a493060 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleCreate.json @@ -19,7 +19,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -35,7 +35,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleGet.json index 0fa540fdbe47..ae6e3a5e6a06 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleListByRouteFilter.json index ac8468de5b83..8e551d08049d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleUpdate.json index a9abd7ce4c9a..8323ddec53e1 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterRuleUpdate.json @@ -19,7 +19,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterUpdate.json index 1f325fd6d37a..a92753157e0e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ServiceCommunityList.json index cc06200165a6..23f88da2a719 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2017-11-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterCreate.json index cb556a338be7..debfd6d3d93b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterGet.json index 4df644b525bc..819a103a5f03 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterList.json index d9d1b7847887..ddf0c1168e1f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterListByResourceGroup.json index 92949119d3e0..b81b38af223f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleCreate.json index a997f8463aa4..9f492a5126f2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleCreate.json @@ -19,7 +19,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -35,7 +35,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleGet.json index f33d5fb47d2b..ba8d3ccfb454 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleListByRouteFilter.json index 3816176b44bc..dd424579ca68 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleUpdate.json index 309c3d9211bc..cce43c0d3c65 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterRuleUpdate.json @@ -19,7 +19,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterUpdate.json index c07f7cf95611..74f4cf2a4177 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/ServiceCommunityList.json index fcbd7c025303..e69cd9913aa0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index 1ed1ec19d524..fbd68483c395 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,31 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index 1ed1ec19d524..99afa273ab1a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,50 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index 59d4bc164248..30aa6fd80c78 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,20 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/NetworkWatcherAvailableProvidersListGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/NetworkWatcherAvailableProvidersListGet.json index 9c737ed5ca73..312857da404d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/NetworkWatcherAvailableProvidersListGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/NetworkWatcherAvailableProvidersListGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-01-02", + "api-version": "2018-02-01", "subscriptionId": "subid", "resourceGroupName": "rg1", "networkWatcherName": "nw1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/NetworkWatcherAzureReachabilityReportGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/NetworkWatcherAzureReachabilityReportGet.json index f361b9b76e13..b3ca3a451436 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/NetworkWatcherAzureReachabilityReportGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/NetworkWatcherAzureReachabilityReportGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-01-02", + "api-version": "2018-02-01", "subscriptionId": "subid", "resourceGroupName": "rg1", "networkWatcherName": "nw1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterCreate.json index c8da4d991374..c2ae4b2956ee 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterGet.json index 140b4fd7430a..cd61935b4cfd 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterList.json index e90ef28b6ee0..89300f12197f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterListByResourceGroup.json index cc3bc54a943a..e0dded763007 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleCreate.json index f1512f007edd..eb59699ecaeb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleCreate.json @@ -19,7 +19,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -35,7 +35,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleGet.json index d10bb21e4f98..cc9e418e13c7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleListByRouteFilter.json index ee66a1848260..7dc46feceae3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleUpdate.json index 39b54df847b7..45e2b12f6871 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterRuleUpdate.json @@ -19,7 +19,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterUpdate.json index fbc63db8939c..89c0055fdf4a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ServiceCommunityList.json index 693b77b6537d..7ad401761fcf 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index a548190789ca..79fe953c0218 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,31 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index a548190789ca..4707b07f4c79 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,50 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index 57a7ae340e32..6cf3a2d6a0c4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,20 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitARPTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitARPTableList.json index 6e1e0f530837..be5f8db38bc5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitARPTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitARPTableList.json @@ -9,24 +9,17 @@ }, "responses": { "200": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] + "body": { + "value": [ + { + "age": 0, + "interface": "Microsoft", + "ipAddress": "IPAddress", + "macAddress": "macAddress" + } + ] + } }, - "202": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitAuthorizationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitAuthorizationGet.json index 660dda304253..b3176e46fce4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitAuthorizationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitAuthorizationGet.json @@ -8,13 +8,15 @@ }, "responses": { "200": { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitAuthorizationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitAuthorizationList.json index 0426f5e42033..b7f792ae9b23 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitAuthorizationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitAuthorizationList.json @@ -7,18 +7,20 @@ }, "responses": { "200": { - "value": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitListByResourceGroup.json index aa374ab9483f..8c71ab2c1ca8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitListByResourceGroup.json @@ -6,86 +6,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitListBySubscription.json index 55ba0df65341..55b4f90371d0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitListBySubscription.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitListBySubscription.json @@ -5,86 +5,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitPeeringGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitPeeringGet.json index 339fe6ed5861..407ea13a6283 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitPeeringGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitPeeringGet.json @@ -8,45 +8,47 @@ }, "responses": { "200": { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitPeeringList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitPeeringList.json index fb5a1c357318..31c34ce6a1a5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitPeeringList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitPeeringList.json @@ -7,71 +7,73 @@ }, "responses": { "200": { - "value": [ - { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "value": [ + { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } } } + }, + { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "10.0.0.0/30", + "secondaryPeerAddressPrefix": "10.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer" + } } - }, - { - "name": "AzurePrivatePeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "AzurePrivatePeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "10.0.0.0/30", - "secondaryPeerAddressPrefix": "10.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 200, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer" - } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitPeeringStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitPeeringStats.json index ed94e652dcae..67674f05dba9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitPeeringStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitPeeringStats.json @@ -8,10 +8,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitRouteTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitRouteTableList.json index 41b0795242c7..cb014ddb2a6b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitRouteTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitRouteTableList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] + "body": { + "value": [ + { + "network": "", + "nextHop": "", + "locPrf": "", + "weight": 0, + "path": "" + } + ] + } }, - "202": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitRouteTableSummaryList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitRouteTableSummaryList.json index 9fdaa612a7a3..3fbd7f1c4e34 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitRouteTableSummaryList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitRouteTableSummaryList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] + "body": { + "value": [ + { + "neighbor": "100.65.171.1", + "v": 4, + "as": 9583, + "upDown": "never", + "statePfxRcd": "Idle" + } + ] + } }, - "202": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitStats.json index 75b0b3f7ec31..9bfc54b6cd0f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteCircuitStats.json @@ -7,10 +7,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteProviderList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteProviderList.json index 16be8dcf4ad0..bfe9b459db42 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteProviderList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ExpressRouteProviderList.json @@ -5,54 +5,56 @@ }, "responses": { "200": { - "value": [ - { - "name": "providerName", - "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", - "type": "Microsoft.Network/expressRouteServiceProviders", - "properties": { - "provisioningState": "Succeeded", - "peeringLocations": [ - "peeringLocation1", - "peeringLocation2" - ], - "bandwidthsOffered": [ - { - "offerName": "50Mbps", - "valueInMbps": 50 - }, - { - "offerName": "100Mbps", - "valueInMbps": 100 - }, - { - "offerName": "200Mbps", - "valueInMbps": 200 - }, - { - "offerName": "500Mbps", - "valueInMbps": 500 - }, - { - "offerName": "1Gbps", - "valueInMbps": 1000 - }, - { - "offerName": "2Gbps", - "valueInMbps": 2000 - }, - { - "offerName": "5Gbps", - "valueInMbps": 5000 - }, - { - "offerName": "10Gbps", - "valueInMbps": 10000 - } - ] + "body": { + "value": [ + { + "name": "providerName", + "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", + "type": "Microsoft.Network/expressRouteServiceProviders", + "properties": { + "provisioningState": "Succeeded", + "peeringLocations": [ + "peeringLocation1", + "peeringLocation2" + ], + "bandwidthsOffered": [ + { + "offerName": "50Mbps", + "valueInMbps": 50 + }, + { + "offerName": "100Mbps", + "valueInMbps": 100 + }, + { + "offerName": "200Mbps", + "valueInMbps": 200 + }, + { + "offerName": "500Mbps", + "valueInMbps": 500 + }, + { + "offerName": "1Gbps", + "valueInMbps": 1000 + }, + { + "offerName": "2Gbps", + "valueInMbps": 2000 + }, + { + "offerName": "5Gbps", + "valueInMbps": 5000 + }, + { + "offerName": "10Gbps", + "valueInMbps": 10000 + } + ] + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/HubVirtualNetworkConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/HubVirtualNetworkConnectionGet.json index 09aba8442510..1c69549bc8a5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/HubVirtualNetworkConnectionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/HubVirtualNetworkConnectionGet.json @@ -10,12 +10,12 @@ "200": { "body": { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/HubVirtualNetworkConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/HubVirtualNetworkConnectionList.json index 1056ac95201a..8198fc2d5d25 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/HubVirtualNetworkConnectionList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/HubVirtualNetworkConnectionList.json @@ -11,12 +11,12 @@ "body": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -24,12 +24,12 @@ }, { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet2" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterCreate.json index eaee0ad8b06a..d63fb03c232d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterGet.json index c9895845fe08..9528b2c94d28 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterList.json index d90e2bd8be2c..a3964fde2d24 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterListByResourceGroup.json index 8acb61611311..8d8eaa0eca6a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleCreate.json index 4c55b39259d7..81e8c1bf4934 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleCreate.json @@ -19,7 +19,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -35,7 +35,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleGet.json index a26e66404ade..bac3a9a7caae 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleListByRouteFilter.json index d8d532974930..e1af97075cff 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleUpdate.json index 2add49457c70..c9571f3911fa 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterRuleUpdate.json @@ -19,7 +19,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterUpdate.json index f5d87626a5be..cd21071471f6 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ServiceCommunityList.json index 7c5a580acfef..e917fc678bfd 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VirtualHubList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VirtualHubList.json index c3ff75f6604c..4ac386cf0642 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VirtualHubList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VirtualHubList.json @@ -21,12 +21,12 @@ "hubVirtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -50,12 +50,12 @@ "hubVirtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VirtualHubListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VirtualHubListByResourceGroup.json index 6d1cb405a1fd..34493e788ce0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VirtualHubListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VirtualHubListByResourceGroup.json @@ -22,12 +22,12 @@ "hubVirtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -51,12 +51,12 @@ "hubVirtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json index 7b141ad07272..35b33df3a8eb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json @@ -7,14 +7,16 @@ }, "responses": { "200": { - "saLifeTimeSeconds": 86473, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup2", - "pfsGroup": "PFS2" + "body": { + "saLifeTimeSeconds": 86473, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup2", + "pfsGroup": "PFS2" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VpnConnectionPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VpnConnectionPut.json index d458ac071392..ce852f61d159 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VpnConnectionPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VpnConnectionPut.json @@ -16,41 +16,45 @@ }, "responses": { "200": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } }, "201": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VpnGatewayPut.json index 2880ac08c32a..e28e7afbcf5b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VpnGatewayPut.json @@ -38,88 +38,92 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VpnGatewayUpdateTags.json index 489fea180f6e..d09eb878fd73 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-04-01/examples/VpnGatewayUpdateTags.json @@ -13,96 +13,100 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index ece3955c87d5..435998a27699 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,31 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index ece3955c87d5..08238bd5d902 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,50 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index cc483348c9a0..2dfcc7ecc738 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,20 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitARPTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitARPTableList.json index 2ce06074d41e..b03c36fc0a21 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitARPTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitARPTableList.json @@ -9,24 +9,17 @@ }, "responses": { "200": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] + "body": { + "value": [ + { + "age": 0, + "interface": "Microsoft", + "ipAddress": "IPAddress", + "macAddress": "macAddress" + } + ] + } }, - "202": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitAuthorizationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitAuthorizationGet.json index 4a18df9252ba..07632633eb59 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitAuthorizationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitAuthorizationGet.json @@ -8,13 +8,15 @@ }, "responses": { "200": { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitAuthorizationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitAuthorizationList.json index a77e32369640..efc0ca1a1a3b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitAuthorizationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitAuthorizationList.json @@ -7,18 +7,20 @@ }, "responses": { "200": { - "value": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitListByResourceGroup.json index bc29908ac95e..b3a1126e5a9a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitListByResourceGroup.json @@ -6,86 +6,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitListBySubscription.json index 4b274c565730..f61aaa62ac17 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitListBySubscription.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitListBySubscription.json @@ -5,86 +5,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitPeeringGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitPeeringGet.json index 4c92f35faee3..3a23123356b4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitPeeringGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitPeeringGet.json @@ -8,45 +8,47 @@ }, "responses": { "200": { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitPeeringList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitPeeringList.json index 89b9b5cb1f41..a77e6d80c50d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitPeeringList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitPeeringList.json @@ -7,71 +7,73 @@ }, "responses": { "200": { - "value": [ - { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "value": [ + { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } } } + }, + { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "10.0.0.0/30", + "secondaryPeerAddressPrefix": "10.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer" + } } - }, - { - "name": "AzurePrivatePeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "AzurePrivatePeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "10.0.0.0/30", - "secondaryPeerAddressPrefix": "10.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 200, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer" - } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitPeeringStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitPeeringStats.json index a84a8b4c314f..f0b8bfd2a118 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitPeeringStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitPeeringStats.json @@ -8,10 +8,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitRouteTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitRouteTableList.json index 5d79a861972a..68250fddaa45 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitRouteTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitRouteTableList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] + "body": { + "value": [ + { + "network": "", + "nextHop": "", + "locPrf": "", + "weight": 0, + "path": "" + } + ] + } }, - "202": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitRouteTableSummaryList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitRouteTableSummaryList.json index ce3efb7c583b..4361169ea005 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitRouteTableSummaryList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitRouteTableSummaryList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] + "body": { + "value": [ + { + "neighbor": "100.65.171.1", + "v": 4, + "as": 9583, + "upDown": "never", + "statePfxRcd": "Idle" + } + ] + } }, - "202": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitStats.json index 180ba481b9df..1e7519f21341 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteCircuitStats.json @@ -7,10 +7,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteProviderList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteProviderList.json index 78a950995407..590d9caca3b4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteProviderList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ExpressRouteProviderList.json @@ -5,54 +5,56 @@ }, "responses": { "200": { - "value": [ - { - "name": "providerName", - "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", - "type": "Microsoft.Network/expressRouteServiceProviders", - "properties": { - "provisioningState": "Succeeded", - "peeringLocations": [ - "peeringLocation1", - "peeringLocation2" - ], - "bandwidthsOffered": [ - { - "offerName": "50Mbps", - "valueInMbps": 50 - }, - { - "offerName": "100Mbps", - "valueInMbps": 100 - }, - { - "offerName": "200Mbps", - "valueInMbps": 200 - }, - { - "offerName": "500Mbps", - "valueInMbps": 500 - }, - { - "offerName": "1Gbps", - "valueInMbps": 1000 - }, - { - "offerName": "2Gbps", - "valueInMbps": 2000 - }, - { - "offerName": "5Gbps", - "valueInMbps": 5000 - }, - { - "offerName": "10Gbps", - "valueInMbps": 10000 - } - ] + "body": { + "value": [ + { + "name": "providerName", + "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", + "type": "Microsoft.Network/expressRouteServiceProviders", + "properties": { + "provisioningState": "Succeeded", + "peeringLocations": [ + "peeringLocation1", + "peeringLocation2" + ], + "bandwidthsOffered": [ + { + "offerName": "50Mbps", + "valueInMbps": 50 + }, + { + "offerName": "100Mbps", + "valueInMbps": 100 + }, + { + "offerName": "200Mbps", + "valueInMbps": 200 + }, + { + "offerName": "500Mbps", + "valueInMbps": 500 + }, + { + "offerName": "1Gbps", + "valueInMbps": 1000 + }, + { + "offerName": "2Gbps", + "valueInMbps": 2000 + }, + { + "offerName": "5Gbps", + "valueInMbps": 5000 + }, + { + "offerName": "10Gbps", + "valueInMbps": 10000 + } + ] + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/HubVirtualNetworkConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/HubVirtualNetworkConnectionGet.json index f9382271df10..c4931893c436 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/HubVirtualNetworkConnectionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/HubVirtualNetworkConnectionGet.json @@ -10,12 +10,12 @@ "200": { "body": { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/HubVirtualNetworkConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/HubVirtualNetworkConnectionList.json index 975207a818d3..cf34362c4886 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/HubVirtualNetworkConnectionList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/HubVirtualNetworkConnectionList.json @@ -11,12 +11,12 @@ "body": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -24,12 +24,12 @@ }, { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet2" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterCreate.json index ec92c1d34be4..7fe600e551b8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterGet.json index 2711824e74a0..ba81a0b28d63 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterList.json index 9aa4dc38e04c..f5d72a555429 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterListByResourceGroup.json index d346041f0af8..77d5f40f3c79 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleCreate.json index 43a051592609..66809c6a634d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleCreate.json @@ -19,7 +19,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -35,7 +35,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleGet.json index ce2617cfc2e6..2ff240ebbae2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleListByRouteFilter.json index 30a55bd615b0..1d3e022124ac 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleUpdate.json index 4703305c316b..a95f0234f323 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterRuleUpdate.json @@ -19,7 +19,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterUpdate.json index d853f8fb9701..e028fa4e60bf 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ServiceCommunityList.json index ff8d43348752..ce8723373e14 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VirtualHubList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VirtualHubList.json index f4ba38515a08..12338f021a56 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VirtualHubList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VirtualHubList.json @@ -21,12 +21,12 @@ "hubVirtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -50,12 +50,12 @@ "hubVirtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VirtualHubListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VirtualHubListByResourceGroup.json index 5bb4ed0d262d..4d17dbbb9f49 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VirtualHubListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VirtualHubListByResourceGroup.json @@ -22,12 +22,12 @@ "hubVirtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -51,12 +51,12 @@ "hubVirtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json index a96c52445e82..bc6333e0ee1a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json @@ -7,14 +7,16 @@ }, "responses": { "200": { - "saLifeTimeSeconds": 86473, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup2", - "pfsGroup": "PFS2" + "body": { + "saLifeTimeSeconds": 86473, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup2", + "pfsGroup": "PFS2" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VpnConnectionPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VpnConnectionPut.json index 35eccf253b3d..1112ddf1de61 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VpnConnectionPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VpnConnectionPut.json @@ -16,41 +16,45 @@ }, "responses": { "200": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } }, "201": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VpnGatewayPut.json index e2c2b2f9e898..c3e3d013152a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VpnGatewayPut.json @@ -38,88 +38,92 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VpnGatewayUpdateTags.json index f385baa787ff..22265072adc5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-06-01/examples/VpnGatewayUpdateTags.json @@ -13,96 +13,100 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index 7c7aad7d6b99..e82dce94c35d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,31 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index 7c7aad7d6b99..9f7ad545825a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,50 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index 367e529b09fc..4d4a01e054f8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,20 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitARPTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitARPTableList.json index c845959b1e6f..71638c1f6655 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitARPTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitARPTableList.json @@ -9,24 +9,17 @@ }, "responses": { "200": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] + "body": { + "value": [ + { + "age": 0, + "interface": "Microsoft", + "ipAddress": "IPAddress", + "macAddress": "macAddress" + } + ] + } }, - "202": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitAuthorizationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitAuthorizationGet.json index 1d1eb52dd830..15db5aed4ca0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitAuthorizationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitAuthorizationGet.json @@ -8,13 +8,15 @@ }, "responses": { "200": { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitAuthorizationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitAuthorizationList.json index 3cdcfdf5d9e3..f096f47daa2f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitAuthorizationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitAuthorizationList.json @@ -7,18 +7,20 @@ }, "responses": { "200": { - "value": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitListByResourceGroup.json index 6b979154ee4c..3fa88916d5ec 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitListByResourceGroup.json @@ -6,86 +6,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitListBySubscription.json index 73a7680c03ee..eb228491c1af 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitListBySubscription.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitListBySubscription.json @@ -5,86 +5,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitPeeringGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitPeeringGet.json index 995c6661e833..bf9d13222656 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitPeeringGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitPeeringGet.json @@ -8,45 +8,47 @@ }, "responses": { "200": { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitPeeringList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitPeeringList.json index e2d946362923..080611c43d58 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitPeeringList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitPeeringList.json @@ -7,71 +7,73 @@ }, "responses": { "200": { - "value": [ - { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "value": [ + { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } } } + }, + { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "10.0.0.0/30", + "secondaryPeerAddressPrefix": "10.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer" + } } - }, - { - "name": "AzurePrivatePeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "AzurePrivatePeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "10.0.0.0/30", - "secondaryPeerAddressPrefix": "10.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 200, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer" - } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitPeeringStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitPeeringStats.json index 1c7a26eb2ba1..15c26dd3307a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitPeeringStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitPeeringStats.json @@ -8,10 +8,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitRouteTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitRouteTableList.json index 46eee8cb1a8d..9a95c9d5fd12 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitRouteTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitRouteTableList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] + "body": { + "value": [ + { + "network": "", + "nextHop": "", + "locPrf": "", + "weight": 0, + "path": "" + } + ] + } }, - "202": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitRouteTableSummaryList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitRouteTableSummaryList.json index 4bb025467f83..67d32a75657c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitRouteTableSummaryList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitRouteTableSummaryList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] + "body": { + "value": [ + { + "neighbor": "100.65.171.1", + "v": 4, + "as": 9583, + "upDown": "never", + "statePfxRcd": "Idle" + } + ] + } }, - "202": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitStats.json index 284dc31ce0de..74a589a1e552 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteCircuitStats.json @@ -7,10 +7,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteProviderList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteProviderList.json index 5131eeb15a0f..290635ed8fd4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteProviderList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ExpressRouteProviderList.json @@ -5,54 +5,56 @@ }, "responses": { "200": { - "value": [ - { - "name": "providerName", - "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", - "type": "Microsoft.Network/expressRouteServiceProviders", - "properties": { - "provisioningState": "Succeeded", - "peeringLocations": [ - "peeringLocation1", - "peeringLocation2" - ], - "bandwidthsOffered": [ - { - "offerName": "50Mbps", - "valueInMbps": 50 - }, - { - "offerName": "100Mbps", - "valueInMbps": 100 - }, - { - "offerName": "200Mbps", - "valueInMbps": 200 - }, - { - "offerName": "500Mbps", - "valueInMbps": 500 - }, - { - "offerName": "1Gbps", - "valueInMbps": 1000 - }, - { - "offerName": "2Gbps", - "valueInMbps": 2000 - }, - { - "offerName": "5Gbps", - "valueInMbps": 5000 - }, - { - "offerName": "10Gbps", - "valueInMbps": 10000 - } - ] + "body": { + "value": [ + { + "name": "providerName", + "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", + "type": "Microsoft.Network/expressRouteServiceProviders", + "properties": { + "provisioningState": "Succeeded", + "peeringLocations": [ + "peeringLocation1", + "peeringLocation2" + ], + "bandwidthsOffered": [ + { + "offerName": "50Mbps", + "valueInMbps": 50 + }, + { + "offerName": "100Mbps", + "valueInMbps": 100 + }, + { + "offerName": "200Mbps", + "valueInMbps": 200 + }, + { + "offerName": "500Mbps", + "valueInMbps": 500 + }, + { + "offerName": "1Gbps", + "valueInMbps": 1000 + }, + { + "offerName": "2Gbps", + "valueInMbps": 2000 + }, + { + "offerName": "5Gbps", + "valueInMbps": 5000 + }, + { + "offerName": "10Gbps", + "valueInMbps": 10000 + } + ] + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/HubVirtualNetworkConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/HubVirtualNetworkConnectionGet.json index 051223406648..06810973ee60 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/HubVirtualNetworkConnectionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/HubVirtualNetworkConnectionGet.json @@ -10,12 +10,12 @@ "200": { "body": { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/HubVirtualNetworkConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/HubVirtualNetworkConnectionList.json index b7a1b6853214..3614eb1da989 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/HubVirtualNetworkConnectionList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/HubVirtualNetworkConnectionList.json @@ -11,12 +11,12 @@ "body": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -24,12 +24,12 @@ }, { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet2" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixCreateCustomizedValues.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixCreateCustomizedValues.json index e39d6f35c714..e0b8aaa068a0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixCreateCustomizedValues.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixCreateCustomizedValues.json @@ -8,6 +8,7 @@ "1" ], "parameters": { + "location": "westus", "properties": { "publicIPAddressVersion": "IPv4", "prefixLength": 30 @@ -22,14 +23,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -41,14 +46,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixCreateDefaults.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixCreateDefaults.json index 75f96a891030..20b67215ce88 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixCreateDefaults.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixCreateDefaults.json @@ -4,18 +4,30 @@ "subscriptionId": "subid", "resourceGroupName": "rg1", "publicIpPrefixName": "test-ipprefix", - "parameters": {} + "parameters": { + "location": "westus", + "sku": { + "name": "Standard" + }, + "properties": { + "prefixLength": 30 + } + } }, "responses": { "200": { "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -27,11 +39,15 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixGet.json index 37e34d75d994..6c8d0e8b3b3f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixGet.json @@ -10,9 +10,11 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "192.168.254.2/30", @@ -23,6 +25,9 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixList.json index 61bfd8129394..97800bbc3b41 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixList.json @@ -11,9 +11,11 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "40.85.154.2/30", @@ -24,17 +26,26 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix03", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/ipprefix03", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 31, - "ipPrefix": "40.85.153.2/31" + "ipPrefix": "40.85.153.2/31", + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixListAll.json index 4c3c1edbecc0..14ab25d5abb7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixListAll.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixListAll.json @@ -10,31 +10,64 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "41.85.154.247/30", + "ipTags": [], "publicIPAddresses": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix01", "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPPrefixes/ipprefix01", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "ipPrefix": "40.85.154.247/30", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" + }, + { + "name": "pfx", + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/publicIPPrefixes/pfx", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/publicIPPrefixes", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "ipPrefix": "25.101.84.16/30", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipTags": [], + "loadBalancerFrontendIpConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/loadBalancers/lb-pfx/frontendIPConfigurations/ipconfig1" + } + }, + "sku": { + "name": "Standard" + } } ] } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixUpdateTags.json index cce41b02f821..ea1519db1242 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/PublicIpPrefixUpdateTags.json @@ -16,16 +16,23 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "ipPrefix": "40.85.154.247/30", + "prefixLength": 30, + "ipTags": [] }, "tags": { "tag1": "value1", "tag2": "value2" }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterCreate.json index 2a66890ed99d..50fea7932c10 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterGet.json index 9b4df4619103..0e87097732c4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterList.json index 4855a355b2fb..67f02fe0c425 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterListByResourceGroup.json index 0a84e2c6cc64..15729c4a9cf1 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleCreate.json index 006ca5962cdf..ee853ba11b11 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleCreate.json @@ -19,7 +19,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -35,7 +35,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleGet.json index b17f2590e0fc..f8d47595320f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleListByRouteFilter.json index b4f644d2c2e9..c7e6356357d2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleUpdate.json index 9674058d5339..9d4ffc92f1fd 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterRuleUpdate.json @@ -19,7 +19,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterUpdate.json index 79b5922aee5f..024c2f7d2496 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ServiceCommunityList.json index 4c4af88f4aea..7b6ef1cfa22c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VirtualHubList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VirtualHubList.json index 4753ec4a17eb..b3c0a3bf5ac7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VirtualHubList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VirtualHubList.json @@ -21,12 +21,12 @@ "hubVirtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -50,12 +50,12 @@ "hubVirtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VirtualHubListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VirtualHubListByResourceGroup.json index d0acbca07b56..eb492e50c7ca 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VirtualHubListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VirtualHubListByResourceGroup.json @@ -22,12 +22,12 @@ "hubVirtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -51,12 +51,12 @@ "hubVirtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json index 6846c5e322d6..526138e911f8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json @@ -7,14 +7,16 @@ }, "responses": { "200": { - "saLifeTimeSeconds": 86473, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup2", - "pfsGroup": "PFS2" + "body": { + "saLifeTimeSeconds": 86473, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup2", + "pfsGroup": "PFS2" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VpnConnectionPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VpnConnectionPut.json index 4ac5b0c3a504..726c338c32a4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VpnConnectionPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VpnConnectionPut.json @@ -16,41 +16,45 @@ }, "responses": { "200": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } }, "201": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VpnGatewayPut.json index b263fe67aa99..fc277fb78643 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VpnGatewayPut.json @@ -38,88 +38,92 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VpnGatewayUpdateTags.json index 3cd2a4b3450e..a2782c60f8f2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/examples/VpnGatewayUpdateTags.json @@ -13,96 +13,100 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } } 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 7303a3c5ef81..0e0962030c95 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 @@ -372,6 +372,11 @@ }, "description": "The list of all referenced PublicIPAddresses" }, + "loadBalancerFrontendIpConfiguration": { + "readOnly": true, + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference to load balancer frontend IP configuration associated with the public IP prefix." + }, "resourceGuid": { "type": "string", "description": "The resource GUID property of the public IP prefix resource." diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index 947636656e56..536d0e4cefed 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,31 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index 947636656e56..65a428e88b98 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,50 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index cc335f6eea83..dc5cf97229aa 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,20 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitARPTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitARPTableList.json index fe64e8eebec9..96c5068dce47 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitARPTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitARPTableList.json @@ -9,24 +9,17 @@ }, "responses": { "200": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] + "body": { + "value": [ + { + "age": 0, + "interface": "Microsoft", + "ipAddress": "IPAddress", + "macAddress": "macAddress" + } + ] + } }, - "202": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitAuthorizationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitAuthorizationGet.json index 6e8a41df56a8..2cc19ec41187 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitAuthorizationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitAuthorizationGet.json @@ -8,13 +8,15 @@ }, "responses": { "200": { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitAuthorizationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitAuthorizationList.json index d084ec9a25a8..05242f69ec97 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitAuthorizationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitAuthorizationList.json @@ -7,18 +7,20 @@ }, "responses": { "200": { - "value": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json index 3bf0c871bcc1..2c9eff7d548e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json @@ -14,7 +14,7 @@ }, "properties": { "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10 } @@ -32,7 +32,7 @@ "peerings": [], "authorizations": [], "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10, "circuitProvisioningState": "Enabled", @@ -59,7 +59,7 @@ "peerings": [], "authorizations": [], "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10, "circuitProvisioningState": "Enabled", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitListByResourceGroup.json index cd5cb411ad89..9e83fe16797b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitListByResourceGroup.json @@ -6,86 +6,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitListBySubscription.json index 6da0614364e7..2b6f444b0aec 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitListBySubscription.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitListBySubscription.json @@ -5,86 +5,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringGet.json index 625af96a8057..6e9a55856b9f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringGet.json @@ -8,45 +8,47 @@ }, "responses": { "200": { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringList.json index 1f5e75f346fa..3b68dc449c2e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringList.json @@ -7,80 +7,82 @@ }, "responses": { "200": { - "value": [ - { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "value": [ + { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } + }, + "expressRouteConnection": "" + } + }, + { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "10.0.0.0/30", + "secondaryPeerAddressPrefix": "10.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled" + }, + "expressRouteConnection": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" } - }, - "expressRouteConnection": "" - } - }, - { - "name": "AzurePrivatePeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "AzurePrivatePeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "10.0.0.0/30", - "secondaryPeerAddressPrefix": "10.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 200, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", - "state": "Enabled" - }, - "expressRouteConnection": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringStats.json index 01f486c94855..08eebc22167b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringStats.json @@ -8,10 +8,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitRouteTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitRouteTableList.json index a212788a273d..20055db12c60 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitRouteTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitRouteTableList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] + "body": { + "value": [ + { + "network": "", + "nextHop": "", + "locPrf": "", + "weight": 0, + "path": "" + } + ] + } }, - "202": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitRouteTableSummaryList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitRouteTableSummaryList.json index 8dc4541403b1..5de3961d1ec6 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitRouteTableSummaryList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitRouteTableSummaryList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] + "body": { + "value": [ + { + "neighbor": "100.65.171.1", + "v": 4, + "as": 9583, + "upDown": "never", + "statePfxRcd": "Idle" + } + ] + } }, - "202": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitStats.json index 486e0afc387d..e951f6a2d08a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitStats.json @@ -7,10 +7,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteLinkGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteLinkGet.json index f7d899bf9f11..37cab9acd0b5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteLinkGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteLinkGet.json @@ -10,7 +10,7 @@ "200": { "body": { "name": "linkName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/linkName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/linkName", "properties": { "provisioningState": "Succeeded", "routerName": "router1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteLinkList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteLinkList.json index ac666ce41f07..280acf4f1bd5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteLinkList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteLinkList.json @@ -11,7 +11,7 @@ "value": [ { "name": "link1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "properties": { "provisioningState": "Succeeded", "routerName": "router1", @@ -24,7 +24,7 @@ }, { "name": "link2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "properties": { "provisioningState": "Succeeded", "routerName": "router2", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortCreate.json index ca2af1b02429..dad3ecc41d04 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortCreate.json @@ -17,8 +17,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -31,7 +31,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -44,7 +44,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", @@ -64,8 +64,8 @@ "201": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -78,7 +78,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -91,7 +91,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortGet.json index 3fcb93c78b1e..61378aa788f1 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortGet.json @@ -9,8 +9,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -23,7 +23,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -36,7 +36,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortList.json index efb1b31894c5..c5a64e2ae8aa 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortList.json @@ -9,8 +9,8 @@ "value": [ { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -23,7 +23,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -36,7 +36,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortListByResourceGroup.json index 32f25ed3bda9..e62912010516 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortListByResourceGroup.json @@ -10,8 +10,8 @@ "value": [ { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -24,7 +24,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -37,7 +37,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortUpdateLink.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortUpdateLink.json index 37911566b570..5dbdfc9d5f88 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortUpdateLink.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortUpdateLink.json @@ -25,8 +25,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -39,7 +39,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -52,7 +52,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", @@ -72,8 +72,8 @@ "201": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -86,7 +86,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -99,7 +99,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortUpdateTags.json index f59e61c7b91c..18b2ec11f4a6 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortUpdateTags.json @@ -15,8 +15,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -29,7 +29,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -42,7 +42,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortsLocationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortsLocationGet.json index b40653485733..29c57d6866c2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortsLocationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortsLocationGet.json @@ -8,8 +8,8 @@ "200": { "body": { "name": "locationName", - "id": "/subscriptions/subid/providers/Microsofot.Network/expressRoutePortsLocations/locationName", - "type": "Microsofot.Network/expressRoutePortsLocations", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", "location": "westus", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortsLocationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortsLocationList.json index 81c8b98cbf3e..a025723b356e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortsLocationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRoutePortsLocationList.json @@ -9,8 +9,8 @@ "value": [ { "name": "locationName", - "id": "/subscriptions/subid/providers/Microsofot.Network/expressRoutePortsLocations/locationName", - "type": "Microsofot.Network/expressRoutePortsLocations", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", "location": "westus", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteProviderList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteProviderList.json index 0bcb53ada78e..448aad86176c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteProviderList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteProviderList.json @@ -5,54 +5,56 @@ }, "responses": { "200": { - "value": [ - { - "name": "providerName", - "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", - "type": "Microsoft.Network/expressRouteServiceProviders", - "properties": { - "provisioningState": "Succeeded", - "peeringLocations": [ - "peeringLocation1", - "peeringLocation2" - ], - "bandwidthsOffered": [ - { - "offerName": "50Mbps", - "valueInMbps": 50 - }, - { - "offerName": "100Mbps", - "valueInMbps": 100 - }, - { - "offerName": "200Mbps", - "valueInMbps": 200 - }, - { - "offerName": "500Mbps", - "valueInMbps": 500 - }, - { - "offerName": "1Gbps", - "valueInMbps": 1000 - }, - { - "offerName": "2Gbps", - "valueInMbps": 2000 - }, - { - "offerName": "5Gbps", - "valueInMbps": 5000 - }, - { - "offerName": "10Gbps", - "valueInMbps": 10000 - } - ] + "body": { + "value": [ + { + "name": "providerName", + "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", + "type": "Microsoft.Network/expressRouteServiceProviders", + "properties": { + "provisioningState": "Succeeded", + "peeringLocations": [ + "peeringLocation1", + "peeringLocation2" + ], + "bandwidthsOffered": [ + { + "offerName": "50Mbps", + "valueInMbps": 50 + }, + { + "offerName": "100Mbps", + "valueInMbps": 100 + }, + { + "offerName": "200Mbps", + "valueInMbps": 200 + }, + { + "offerName": "500Mbps", + "valueInMbps": 500 + }, + { + "offerName": "1Gbps", + "valueInMbps": 1000 + }, + { + "offerName": "2Gbps", + "valueInMbps": 2000 + }, + { + "offerName": "5Gbps", + "valueInMbps": 5000 + }, + { + "offerName": "10Gbps", + "valueInMbps": 10000 + } + ] + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/HubVirtualNetworkConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/HubVirtualNetworkConnectionGet.json index 212b881c41ef..ea3649b3c548 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/HubVirtualNetworkConnectionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/HubVirtualNetworkConnectionGet.json @@ -10,12 +10,12 @@ "200": { "body": { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/HubVirtualNetworkConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/HubVirtualNetworkConnectionList.json index c98f2663cd0c..d4d06ef76802 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/HubVirtualNetworkConnectionList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/HubVirtualNetworkConnectionList.json @@ -11,12 +11,12 @@ "body": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -24,12 +24,12 @@ }, { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet2" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnGatewayPut.json index 06077555effb..5be0571a7d7e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnGatewayPut.json @@ -27,58 +27,62 @@ }, "responses": { "200": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 0, - "allocatedIpAddresses": [], - "totalIngressBytesTransferred": 0, - "totalEgressBytesTransferred": 0 + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } } } }, "201": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 0, - "allocatedIpAddresses": [], - "totalIngressBytesTransferred": 0, - "totalEgressBytesTransferred": 0 + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnGatewayUpdateTags.json index 6a5f2aa2b129..5ee53275e0c7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnGatewayUpdateTags.json @@ -13,72 +13,76 @@ }, "responses": { "200": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 2, - "allocatedIpAddresses": [ - "1.1.1.1", - "2.2.2.2" - ], - "totalIngressBytesTransferred": 2000, - "totalEgressBytesTransferred": 3000 + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } } } }, "201": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 2, - "allocatedIpAddresses": [ - "1.1.1.1", - "2.2.2.2" - ], - "totalIngressBytesTransferred": 2000, - "totalEgressBytesTransferred": 3000 + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnServerConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnServerConfigurationGet.json index 0bfbfdf3c86a..ce7eee0b8415 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnServerConfigurationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnServerConfigurationGet.json @@ -8,78 +8,80 @@ }, "responses": { "200": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCer1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCer1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCer1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCer1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnServerConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnServerConfigurationList.json index ddb5130d3251..0e13b0a7a3d8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnServerConfigurationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnServerConfigurationList.json @@ -48,7 +48,7 @@ "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" }, "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" } @@ -74,7 +74,7 @@ "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" }, "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnServerConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnServerConfigurationPut.json index 15c70ecdc82b..26081aadc449 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnServerConfigurationPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/P2SVpnServerConfigurationPut.json @@ -61,152 +61,156 @@ }, "responses": { "200": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } }, "201": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixCreateCustomizedValues.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixCreateCustomizedValues.json index edf99b8e7b2a..8676e8bb7085 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixCreateCustomizedValues.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixCreateCustomizedValues.json @@ -8,6 +8,7 @@ "1" ], "parameters": { + "location": "westus", "properties": { "publicIPAddressVersion": "IPv4", "prefixLength": 30 @@ -22,14 +23,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -41,14 +46,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixCreateDefaults.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixCreateDefaults.json index c1204d46c9da..923da5bfdc46 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixCreateDefaults.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixCreateDefaults.json @@ -4,18 +4,30 @@ "subscriptionId": "subid", "resourceGroupName": "rg1", "publicIpPrefixName": "test-ipprefix", - "parameters": {} + "parameters": { + "location": "westus", + "sku": { + "name": "Standard" + }, + "properties": { + "prefixLength": 30 + } + } }, "responses": { "200": { "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -27,11 +39,15 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixGet.json index 29321ce81099..4bb7d2942d41 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixGet.json @@ -10,9 +10,11 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "192.168.254.2/30", @@ -23,6 +25,9 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixList.json index f4e12552d3f8..e92dfdc6dde3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixList.json @@ -11,9 +11,11 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "40.85.154.2/30", @@ -24,17 +26,26 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix03", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/ipprefix03", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 31, - "ipPrefix": "40.85.153.2/31" + "ipPrefix": "40.85.153.2/31", + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixListAll.json index 1285fd93d8c7..0d6453965bb2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixListAll.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixListAll.json @@ -10,31 +10,64 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "41.85.154.247/30", + "ipTags": [], "publicIPAddresses": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix01", "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPPrefixes/ipprefix01", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "ipPrefix": "40.85.154.247/30", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" + }, + { + "name": "pfx", + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/publicIPPrefixes/pfx", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/publicIPPrefixes", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "ipPrefix": "25.101.84.16/30", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipTags": [], + "loadBalancerFrontendIpConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/loadBalancers/lb-pfx/frontendIPConfigurations/ipconfig1" + } + }, + "sku": { + "name": "Standard" + } } ] } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixUpdateTags.json index 65e4807328d2..93e35faede9f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/PublicIpPrefixUpdateTags.json @@ -16,16 +16,23 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "ipPrefix": "40.85.154.247/30", + "prefixLength": 30, + "ipTags": [] }, "tags": { "tag1": "value1", "tag2": "value2" }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterCreate.json index 27af1e9a0173..bef46d1788e9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterGet.json index 95b883a3a6d8..64ce37e47ed3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterList.json index 28be24a32edc..22bae32750e7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterListByResourceGroup.json index 9492313d8a02..1195118bc76c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleCreate.json index a72758d2c195..0bc2b5668609 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleCreate.json @@ -19,7 +19,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -35,7 +35,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleGet.json index 7e85f9cd92eb..519de7cc128b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleListByRouteFilter.json index 86af94e8e854..ed076a95b975 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleUpdate.json index 8f52c7334ce2..447edef72687 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterRuleUpdate.json @@ -19,7 +19,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterUpdate.json index ed222f923989..65d79b0aafca 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ServiceCommunityList.json index b905db6213aa..26b86a2e8e1a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VirtualHubList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VirtualHubList.json index e4486be6b0b4..792deb16720d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VirtualHubList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VirtualHubList.json @@ -21,12 +21,12 @@ "virtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -50,12 +50,12 @@ "virtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VirtualHubListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VirtualHubListByResourceGroup.json index e23276d23d7c..0cd0a21ca76f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VirtualHubListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VirtualHubListByResourceGroup.json @@ -22,12 +22,12 @@ "virtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -51,12 +51,12 @@ "virtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json index eaba28e14dac..9d1653391bcc 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json @@ -7,14 +7,16 @@ }, "responses": { "200": { - "saLifeTimeSeconds": 86473, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup2", - "pfsGroup": "PFS2" + "body": { + "saLifeTimeSeconds": 86473, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup2", + "pfsGroup": "PFS2" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VpnConnectionPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VpnConnectionPut.json index 76876a71ecc4..5fd2c849b855 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VpnConnectionPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VpnConnectionPut.json @@ -17,43 +17,47 @@ }, "responses": { "200": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "vpnConnectionProtocolType": "IKEv1", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "vpnConnectionProtocolType": "IKEv1", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } }, "201": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "vpnConnectionProtocolType": "IKEv1", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "vpnConnectionProtocolType": "IKEv1", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VpnGatewayPut.json index 44d10551772e..590244612392 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VpnGatewayPut.json @@ -34,80 +34,84 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VpnGatewayUpdateTags.json index f3dc8ed669e9..dee1ce79071e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/VpnGatewayUpdateTags.json @@ -13,96 +13,100 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } } 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 90f6541467f4..fa8721fc58d9 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 @@ -372,6 +372,11 @@ }, "description": "The list of all referenced PublicIPAddresses" }, + "loadBalancerFrontendIpConfiguration": { + "readOnly": true, + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference to load balancer frontend IP configuration associated with the public IP prefix." + }, "resourceGuid": { "type": "string", "description": "The resource GUID property of the public IP prefix resource." diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index 3a98dc7bbf66..a3e999e5a0db 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,31 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index 3a98dc7bbf66..a8fa0fa45ad7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,50 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index 7834a5899740..8ad260d30fcb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,20 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitARPTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitARPTableList.json index 3404123c3433..0aa033f64326 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitARPTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitARPTableList.json @@ -9,24 +9,17 @@ }, "responses": { "200": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] + "body": { + "value": [ + { + "age": 0, + "interface": "Microsoft", + "ipAddress": "IPAddress", + "macAddress": "macAddress" + } + ] + } }, - "202": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitAuthorizationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitAuthorizationGet.json index a10b2c388ea0..73fddb19d033 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitAuthorizationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitAuthorizationGet.json @@ -8,13 +8,15 @@ }, "responses": { "200": { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitAuthorizationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitAuthorizationList.json index 1314f8d1f215..d79ea1a1492d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitAuthorizationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitAuthorizationList.json @@ -7,18 +7,20 @@ }, "responses": { "200": { - "value": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json index 71ebe7194d55..4e57c6e3f31f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json @@ -14,7 +14,7 @@ }, "properties": { "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10 } @@ -32,7 +32,7 @@ "peerings": [], "authorizations": [], "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10, "circuitProvisioningState": "Enabled", @@ -59,7 +59,7 @@ "peerings": [], "authorizations": [], "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10, "circuitProvisioningState": "Enabled", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitListByResourceGroup.json index 68868c392e3b..3a7e16629046 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitListByResourceGroup.json @@ -6,86 +6,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitListBySubscription.json index f9bd8e86f338..8326c3d1962b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitListBySubscription.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitListBySubscription.json @@ -5,86 +5,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitPeeringGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitPeeringGet.json index 1c7324c3f28b..9f486f17767a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitPeeringGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitPeeringGet.json @@ -8,45 +8,47 @@ }, "responses": { "200": { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitPeeringList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitPeeringList.json index 47096ca49237..e1b772048f19 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitPeeringList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitPeeringList.json @@ -7,80 +7,82 @@ }, "responses": { "200": { - "value": [ - { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "value": [ + { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } + }, + "expressRouteConnection": "" + } + }, + { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "10.0.0.0/30", + "secondaryPeerAddressPrefix": "10.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled" + }, + "expressRouteConnection": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" } - }, - "expressRouteConnection": "" - } - }, - { - "name": "AzurePrivatePeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "AzurePrivatePeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "10.0.0.0/30", - "secondaryPeerAddressPrefix": "10.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 200, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", - "state": "Enabled" - }, - "expressRouteConnection": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitPeeringStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitPeeringStats.json index 629ae740860c..1524985eac94 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitPeeringStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitPeeringStats.json @@ -8,10 +8,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitRouteTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitRouteTableList.json index c90403d492c2..44d4a20232c4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitRouteTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitRouteTableList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] + "body": { + "value": [ + { + "network": "", + "nextHop": "", + "locPrf": "", + "weight": 0, + "path": "" + } + ] + } }, - "202": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitRouteTableSummaryList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitRouteTableSummaryList.json index 06f51ddd12f6..b4460c23f1cb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitRouteTableSummaryList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitRouteTableSummaryList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] + "body": { + "value": [ + { + "neighbor": "100.65.171.1", + "v": 4, + "as": 9583, + "upDown": "never", + "statePfxRcd": "Idle" + } + ] + } }, - "202": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitStats.json index 82f4a7aecf76..18cc954e4e5f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteCircuitStats.json @@ -7,10 +7,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteLinkGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteLinkGet.json index 8ee5a03f2860..6505b6568790 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteLinkGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteLinkGet.json @@ -10,7 +10,7 @@ "200": { "body": { "name": "linkName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/linkName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/linkName", "properties": { "provisioningState": "Succeeded", "routerName": "router1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteLinkList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteLinkList.json index 4c73740bda4d..ba3980adaeb3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteLinkList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteLinkList.json @@ -11,7 +11,7 @@ "value": [ { "name": "link1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "properties": { "provisioningState": "Succeeded", "routerName": "router1", @@ -24,7 +24,7 @@ }, { "name": "link2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "properties": { "provisioningState": "Succeeded", "routerName": "router2", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortCreate.json index 11ca5eee1e9b..c7e9d68da6d9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortCreate.json @@ -17,8 +17,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -31,7 +31,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -44,7 +44,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", @@ -64,8 +64,8 @@ "201": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -78,7 +78,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -91,7 +91,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortGet.json index 3708c75ed663..aa98bb0d9a2e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortGet.json @@ -9,8 +9,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -23,7 +23,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -36,7 +36,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortList.json index 392ffc530c38..9f717b6a1a0e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortList.json @@ -9,8 +9,8 @@ "value": [ { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -23,7 +23,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -36,7 +36,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortListByResourceGroup.json index da8eda26b44a..fb577be8f4cc 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortListByResourceGroup.json @@ -10,8 +10,8 @@ "value": [ { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -24,7 +24,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -37,7 +37,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortUpdateLink.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortUpdateLink.json index 2377eb698cd5..060d0acb1294 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortUpdateLink.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortUpdateLink.json @@ -25,8 +25,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -39,7 +39,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -52,7 +52,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", @@ -72,8 +72,8 @@ "201": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -86,7 +86,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -99,7 +99,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortUpdateTags.json index 19081a985c16..4853042f1dae 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortUpdateTags.json @@ -15,8 +15,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -29,7 +29,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -42,7 +42,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortsLocationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortsLocationGet.json index 4ad877ea61b6..f0fd8c3298c9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortsLocationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortsLocationGet.json @@ -8,8 +8,8 @@ "200": { "body": { "name": "locationName", - "id": "/subscriptions/subid/providers/Microsofot.Network/expressRoutePortsLocations/locationName", - "type": "Microsofot.Network/expressRoutePortsLocations", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", "location": "westus", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortsLocationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortsLocationList.json index 671c32b7cc9a..c8589be7582f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortsLocationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRoutePortsLocationList.json @@ -9,8 +9,8 @@ "value": [ { "name": "locationName", - "id": "/subscriptions/subid/providers/Microsofot.Network/expressRoutePortsLocations/locationName", - "type": "Microsofot.Network/expressRoutePortsLocations", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", "location": "westus", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteProviderList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteProviderList.json index f0b64c2d5cd0..6a166be62dcb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteProviderList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ExpressRouteProviderList.json @@ -5,54 +5,56 @@ }, "responses": { "200": { - "value": [ - { - "name": "providerName", - "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", - "type": "Microsoft.Network/expressRouteServiceProviders", - "properties": { - "provisioningState": "Succeeded", - "peeringLocations": [ - "peeringLocation1", - "peeringLocation2" - ], - "bandwidthsOffered": [ - { - "offerName": "50Mbps", - "valueInMbps": 50 - }, - { - "offerName": "100Mbps", - "valueInMbps": 100 - }, - { - "offerName": "200Mbps", - "valueInMbps": 200 - }, - { - "offerName": "500Mbps", - "valueInMbps": 500 - }, - { - "offerName": "1Gbps", - "valueInMbps": 1000 - }, - { - "offerName": "2Gbps", - "valueInMbps": 2000 - }, - { - "offerName": "5Gbps", - "valueInMbps": 5000 - }, - { - "offerName": "10Gbps", - "valueInMbps": 10000 - } - ] + "body": { + "value": [ + { + "name": "providerName", + "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", + "type": "Microsoft.Network/expressRouteServiceProviders", + "properties": { + "provisioningState": "Succeeded", + "peeringLocations": [ + "peeringLocation1", + "peeringLocation2" + ], + "bandwidthsOffered": [ + { + "offerName": "50Mbps", + "valueInMbps": 50 + }, + { + "offerName": "100Mbps", + "valueInMbps": 100 + }, + { + "offerName": "200Mbps", + "valueInMbps": 200 + }, + { + "offerName": "500Mbps", + "valueInMbps": 500 + }, + { + "offerName": "1Gbps", + "valueInMbps": 1000 + }, + { + "offerName": "2Gbps", + "valueInMbps": 2000 + }, + { + "offerName": "5Gbps", + "valueInMbps": 5000 + }, + { + "offerName": "10Gbps", + "valueInMbps": 10000 + } + ] + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/HubVirtualNetworkConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/HubVirtualNetworkConnectionGet.json index 469ba2920f11..3d517a49540f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/HubVirtualNetworkConnectionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/HubVirtualNetworkConnectionGet.json @@ -10,12 +10,12 @@ "200": { "body": { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/HubVirtualNetworkConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/HubVirtualNetworkConnectionList.json index cf8826ba4cdf..1c56a4b2cca0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/HubVirtualNetworkConnectionList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/HubVirtualNetworkConnectionList.json @@ -11,12 +11,12 @@ "body": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -24,12 +24,12 @@ }, { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet2" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnGatewayPut.json index 2ca73cc509f6..d42302223cd5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnGatewayPut.json @@ -27,58 +27,62 @@ }, "responses": { "200": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 0, - "allocatedIpAddresses": [], - "totalIngressBytesTransferred": 0, - "totalEgressBytesTransferred": 0 + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } } } }, "201": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 0, - "allocatedIpAddresses": [], - "totalIngressBytesTransferred": 0, - "totalEgressBytesTransferred": 0 + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnGatewayUpdateTags.json index ac19739817ce..86c96108bab4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnGatewayUpdateTags.json @@ -13,72 +13,76 @@ }, "responses": { "200": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 2, - "allocatedIpAddresses": [ - "1.1.1.1", - "2.2.2.2" - ], - "totalIngressBytesTransferred": 2000, - "totalEgressBytesTransferred": 3000 + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } } } }, "201": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 2, - "allocatedIpAddresses": [ - "1.1.1.1", - "2.2.2.2" - ], - "totalIngressBytesTransferred": 2000, - "totalEgressBytesTransferred": 3000 + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnServerConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnServerConfigurationGet.json index bfa3f5f06a80..6feb20916530 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnServerConfigurationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnServerConfigurationGet.json @@ -8,78 +8,80 @@ }, "responses": { "200": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCer1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCer1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCer1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCer1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnServerConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnServerConfigurationList.json index 4f59a358d70a..d6082445ff1b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnServerConfigurationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnServerConfigurationList.json @@ -48,7 +48,7 @@ "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" }, "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" } @@ -74,7 +74,7 @@ "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" }, "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnServerConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnServerConfigurationPut.json index 3954023d780a..3c596dd9a790 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnServerConfigurationPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/P2SVpnServerConfigurationPut.json @@ -61,152 +61,156 @@ }, "responses": { "200": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } }, "201": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixCreateCustomizedValues.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixCreateCustomizedValues.json index 614e53292d0a..6067048d1493 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixCreateCustomizedValues.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixCreateCustomizedValues.json @@ -8,6 +8,7 @@ "1" ], "parameters": { + "location": "westus", "properties": { "publicIPAddressVersion": "IPv4", "prefixLength": 30 @@ -22,14 +23,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -41,14 +46,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixCreateDefaults.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixCreateDefaults.json index 88bc3e9b446e..b664e6aa6767 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixCreateDefaults.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixCreateDefaults.json @@ -4,18 +4,30 @@ "subscriptionId": "subid", "resourceGroupName": "rg1", "publicIpPrefixName": "test-ipprefix", - "parameters": {} + "parameters": { + "location": "westus", + "sku": { + "name": "Standard" + }, + "properties": { + "prefixLength": 30 + } + } }, "responses": { "200": { "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -27,11 +39,15 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixGet.json index 411f946b25c6..30de81b4bf74 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixGet.json @@ -10,9 +10,11 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "192.168.254.2/30", @@ -23,6 +25,9 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixList.json index db868f864361..81171bd5c429 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixList.json @@ -11,9 +11,11 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "40.85.154.2/30", @@ -24,17 +26,26 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix03", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/ipprefix03", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 31, - "ipPrefix": "40.85.153.2/31" + "ipPrefix": "40.85.153.2/31", + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixListAll.json index 7d8829f3a306..19caa035aa0e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixListAll.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixListAll.json @@ -10,31 +10,64 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "41.85.154.247/30", + "ipTags": [], "publicIPAddresses": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix01", "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPPrefixes/ipprefix01", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "ipPrefix": "40.85.154.247/30", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" + }, + { + "name": "pfx", + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/publicIPPrefixes/pfx", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/publicIPPrefixes", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "ipPrefix": "25.101.84.16/30", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipTags": [], + "loadBalancerFrontendIpConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/loadBalancers/lb-pfx/frontendIPConfigurations/ipconfig1" + } + }, + "sku": { + "name": "Standard" + } } ] } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixUpdateTags.json index edc327c16f96..80c5e1cb0fe3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/PublicIpPrefixUpdateTags.json @@ -16,16 +16,23 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "ipPrefix": "40.85.154.247/30", + "prefixLength": 30, + "ipTags": [] }, "tags": { "tag1": "value1", "tag2": "value2" }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterCreate.json index d8daaab41078..6779575a4b1d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterGet.json index d4d9b830e81f..3e4f2e3125ab 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterList.json index 913ddb0281ac..4097d2078974 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterListByResourceGroup.json index e5592be87417..acfedc311891 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleCreate.json index 73cb284cb3f7..c74a5a8ec3b2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleCreate.json @@ -19,7 +19,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -35,7 +35,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleGet.json index 120ae8000bf9..4cf34e837177 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleListByRouteFilter.json index bbe13e0e8ba4..9a641d52861c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleUpdate.json index 06561b4386ed..75feb9edf6e9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterRuleUpdate.json @@ -19,7 +19,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterUpdate.json index 71a5f8798252..2d39794847cb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ServiceCommunityList.json index e2362556e7ef..92349203af20 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VirtualHubList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VirtualHubList.json index 8442f9235da8..9b062d501aac 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VirtualHubList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VirtualHubList.json @@ -21,12 +21,12 @@ "virtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -50,12 +50,12 @@ "virtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VirtualHubListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VirtualHubListByResourceGroup.json index 907cccc4f6b1..54de2b00823f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VirtualHubListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VirtualHubListByResourceGroup.json @@ -22,12 +22,12 @@ "virtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -51,12 +51,12 @@ "virtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json index abc07e94dbd2..9369a00e2825 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json @@ -7,14 +7,16 @@ }, "responses": { "200": { - "saLifeTimeSeconds": 86473, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup2", - "pfsGroup": "PFS2" + "body": { + "saLifeTimeSeconds": 86473, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup2", + "pfsGroup": "PFS2" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VpnConnectionPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VpnConnectionPut.json index 663237c06793..86c04a780a60 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VpnConnectionPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VpnConnectionPut.json @@ -17,43 +17,47 @@ }, "responses": { "200": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "vpnConnectionProtocolType": "IKEv1", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "vpnConnectionProtocolType": "IKEv1", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } }, "201": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "vpnConnectionProtocolType": "IKEv1", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "vpnConnectionProtocolType": "IKEv1", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VpnGatewayPut.json index 39925b5da83e..a2c5239a9199 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VpnGatewayPut.json @@ -34,80 +34,84 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VpnGatewayUpdateTags.json index ba52c27cac48..8e027e52c697 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/examples/VpnGatewayUpdateTags.json @@ -13,96 +13,100 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } } 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 5931fca0be7f..407d94f441cc 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 @@ -372,6 +372,11 @@ }, "description": "The list of all referenced PublicIPAddresses" }, + "loadBalancerFrontendIpConfiguration": { + "readOnly": true, + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference to load balancer frontend IP configuration associated with the public IP prefix." + }, "resourceGuid": { "type": "string", "description": "The resource GUID property of the public IP prefix resource." diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index 60f83cf576fb..0b6d2f9f2e26 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,31 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index 60f83cf576fb..906aeb55eb7f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,50 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index 7fb5d57453ad..6bc4f075e047 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,20 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitARPTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitARPTableList.json index bbd4fbc18456..438a338b2688 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitARPTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitARPTableList.json @@ -9,24 +9,17 @@ }, "responses": { "200": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] + "body": { + "value": [ + { + "age": 0, + "interface": "Microsoft", + "ipAddress": "IPAddress", + "macAddress": "macAddress" + } + ] + } }, - "202": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitAuthorizationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitAuthorizationGet.json index 73fe3020cd37..0d0457d5cd4e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitAuthorizationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitAuthorizationGet.json @@ -8,13 +8,15 @@ }, "responses": { "200": { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitAuthorizationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitAuthorizationList.json index 21da73b3ce53..c2fb553985c3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitAuthorizationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitAuthorizationList.json @@ -7,18 +7,20 @@ }, "responses": { "200": { - "value": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json index fd449d458079..6f4f8fcc64ef 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json @@ -14,7 +14,7 @@ }, "properties": { "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10 } @@ -32,7 +32,7 @@ "peerings": [], "authorizations": [], "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10, "circuitProvisioningState": "Enabled", @@ -59,7 +59,7 @@ "peerings": [], "authorizations": [], "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10, "circuitProvisioningState": "Enabled", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitListByResourceGroup.json index 0b308c40bab2..8ccd252c6614 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitListByResourceGroup.json @@ -6,86 +6,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitListBySubscription.json index 8e7d4c91d1c8..9159d50fb941 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitListBySubscription.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitListBySubscription.json @@ -5,86 +5,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitPeeringGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitPeeringGet.json index cb756c11576f..44a83f166f27 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitPeeringGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitPeeringGet.json @@ -8,45 +8,47 @@ }, "responses": { "200": { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitPeeringList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitPeeringList.json index a5bc2f0c3f7c..f5f9bc9fea28 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitPeeringList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitPeeringList.json @@ -7,80 +7,82 @@ }, "responses": { "200": { - "value": [ - { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "value": [ + { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } + }, + "expressRouteConnection": "" + } + }, + { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "10.0.0.0/30", + "secondaryPeerAddressPrefix": "10.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled" + }, + "expressRouteConnection": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" } - }, - "expressRouteConnection": "" - } - }, - { - "name": "AzurePrivatePeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "AzurePrivatePeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "10.0.0.0/30", - "secondaryPeerAddressPrefix": "10.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 200, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", - "state": "Enabled" - }, - "expressRouteConnection": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitPeeringStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitPeeringStats.json index c74d67f1cb09..64dbb70f39a1 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitPeeringStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitPeeringStats.json @@ -8,10 +8,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitRouteTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitRouteTableList.json index 097ce215074e..f75ff4c7d14f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitRouteTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitRouteTableList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] + "body": { + "value": [ + { + "network": "", + "nextHop": "", + "locPrf": "", + "weight": 0, + "path": "" + } + ] + } }, - "202": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitRouteTableSummaryList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitRouteTableSummaryList.json index 7ca22e59960f..a8d767b521c7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitRouteTableSummaryList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitRouteTableSummaryList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] + "body": { + "value": [ + { + "neighbor": "100.65.171.1", + "v": 4, + "as": 9583, + "upDown": "never", + "statePfxRcd": "Idle" + } + ] + } }, - "202": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitStats.json index ac10fb2f461b..5c329e7cef31 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteCircuitStats.json @@ -7,10 +7,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteLinkGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteLinkGet.json index bb46b27c275f..f795789424b9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteLinkGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteLinkGet.json @@ -10,7 +10,7 @@ "200": { "body": { "name": "linkName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/linkName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/linkName", "properties": { "provisioningState": "Succeeded", "routerName": "router1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteLinkList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteLinkList.json index e1f5a5352660..d4dff13450f6 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteLinkList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteLinkList.json @@ -11,7 +11,7 @@ "value": [ { "name": "link1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "properties": { "provisioningState": "Succeeded", "routerName": "router1", @@ -24,7 +24,7 @@ }, { "name": "link2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "properties": { "provisioningState": "Succeeded", "routerName": "router2", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortCreate.json index 39b006fe10b8..c53ad2449c8a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortCreate.json @@ -17,8 +17,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -31,7 +31,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -44,7 +44,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", @@ -64,8 +64,8 @@ "201": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -78,7 +78,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -91,7 +91,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortGet.json index 27db05ebf551..24af7c8cc62d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortGet.json @@ -9,8 +9,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -23,7 +23,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -36,7 +36,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortList.json index 0845bb1fa7e4..e45e82a66eed 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortList.json @@ -9,8 +9,8 @@ "value": [ { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -23,7 +23,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -36,7 +36,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortListByResourceGroup.json index c095deb2c6f7..1deb2a27bb80 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortListByResourceGroup.json @@ -10,8 +10,8 @@ "value": [ { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -24,7 +24,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -37,7 +37,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortUpdateLink.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortUpdateLink.json index ab49e1c94cf9..52d10ef2b0d7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortUpdateLink.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortUpdateLink.json @@ -25,8 +25,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -39,7 +39,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -52,7 +52,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", @@ -72,8 +72,8 @@ "201": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -86,7 +86,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -99,7 +99,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortUpdateTags.json index df20f1c2b218..742c15b4875c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortUpdateTags.json @@ -15,8 +15,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -29,7 +29,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -42,7 +42,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortsLocationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortsLocationGet.json index c63784245bbd..c59c0f7f1449 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortsLocationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortsLocationGet.json @@ -8,8 +8,8 @@ "200": { "body": { "name": "locationName", - "id": "/subscriptions/subid/providers/Microsofot.Network/expressRoutePortsLocations/locationName", - "type": "Microsofot.Network/expressRoutePortsLocations", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", "location": "westus", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortsLocationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortsLocationList.json index 94209ccf88af..3fb9901afea6 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortsLocationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRoutePortsLocationList.json @@ -9,8 +9,8 @@ "value": [ { "name": "locationName", - "id": "/subscriptions/subid/providers/Microsofot.Network/expressRoutePortsLocations/locationName", - "type": "Microsofot.Network/expressRoutePortsLocations", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", "location": "westus", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteProviderList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteProviderList.json index 838ba1e94aa4..78dea070f6e9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteProviderList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ExpressRouteProviderList.json @@ -5,54 +5,56 @@ }, "responses": { "200": { - "value": [ - { - "name": "providerName", - "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", - "type": "Microsoft.Network/expressRouteServiceProviders", - "properties": { - "provisioningState": "Succeeded", - "peeringLocations": [ - "peeringLocation1", - "peeringLocation2" - ], - "bandwidthsOffered": [ - { - "offerName": "50Mbps", - "valueInMbps": 50 - }, - { - "offerName": "100Mbps", - "valueInMbps": 100 - }, - { - "offerName": "200Mbps", - "valueInMbps": 200 - }, - { - "offerName": "500Mbps", - "valueInMbps": 500 - }, - { - "offerName": "1Gbps", - "valueInMbps": 1000 - }, - { - "offerName": "2Gbps", - "valueInMbps": 2000 - }, - { - "offerName": "5Gbps", - "valueInMbps": 5000 - }, - { - "offerName": "10Gbps", - "valueInMbps": 10000 - } - ] + "body": { + "value": [ + { + "name": "providerName", + "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", + "type": "Microsoft.Network/expressRouteServiceProviders", + "properties": { + "provisioningState": "Succeeded", + "peeringLocations": [ + "peeringLocation1", + "peeringLocation2" + ], + "bandwidthsOffered": [ + { + "offerName": "50Mbps", + "valueInMbps": 50 + }, + { + "offerName": "100Mbps", + "valueInMbps": 100 + }, + { + "offerName": "200Mbps", + "valueInMbps": 200 + }, + { + "offerName": "500Mbps", + "valueInMbps": 500 + }, + { + "offerName": "1Gbps", + "valueInMbps": 1000 + }, + { + "offerName": "2Gbps", + "valueInMbps": 2000 + }, + { + "offerName": "5Gbps", + "valueInMbps": 5000 + }, + { + "offerName": "10Gbps", + "valueInMbps": 10000 + } + ] + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/HubVirtualNetworkConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/HubVirtualNetworkConnectionGet.json index d23e15f7d40f..57ed2eb77acb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/HubVirtualNetworkConnectionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/HubVirtualNetworkConnectionGet.json @@ -10,12 +10,12 @@ "200": { "body": { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/HubVirtualNetworkConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/HubVirtualNetworkConnectionList.json index 3036759a2669..25ff4f2f7dc6 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/HubVirtualNetworkConnectionList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/HubVirtualNetworkConnectionList.json @@ -11,12 +11,12 @@ "body": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -24,12 +24,12 @@ }, { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet2" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnGatewayPut.json index ade17fa4334f..4b15585b32f3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnGatewayPut.json @@ -27,58 +27,62 @@ }, "responses": { "200": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 0, - "allocatedIpAddresses": [], - "totalIngressBytesTransferred": 0, - "totalEgressBytesTransferred": 0 + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } } } }, "201": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 0, - "allocatedIpAddresses": [], - "totalIngressBytesTransferred": 0, - "totalEgressBytesTransferred": 0 + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnGatewayUpdateTags.json index 9001e7514aa8..d83d5a3eedc3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnGatewayUpdateTags.json @@ -13,72 +13,76 @@ }, "responses": { "200": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 2, - "allocatedIpAddresses": [ - "1.1.1.1", - "2.2.2.2" - ], - "totalIngressBytesTransferred": 2000, - "totalEgressBytesTransferred": 3000 + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } } } }, "201": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 2, - "allocatedIpAddresses": [ - "1.1.1.1", - "2.2.2.2" - ], - "totalIngressBytesTransferred": 2000, - "totalEgressBytesTransferred": 3000 + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnServerConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnServerConfigurationGet.json index 4a76d54291e8..92d3e2d3f17d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnServerConfigurationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnServerConfigurationGet.json @@ -8,78 +8,80 @@ }, "responses": { "200": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCer1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCer1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCer1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCer1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnServerConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnServerConfigurationList.json index f8aa6945abb4..af38acb7b7eb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnServerConfigurationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnServerConfigurationList.json @@ -48,7 +48,7 @@ "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" }, "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" } @@ -74,7 +74,7 @@ "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" }, "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnServerConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnServerConfigurationPut.json index e8a463356438..6989c49e29a6 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnServerConfigurationPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/P2SVpnServerConfigurationPut.json @@ -61,152 +61,156 @@ }, "responses": { "200": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } }, "201": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixCreateCustomizedValues.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixCreateCustomizedValues.json index ddf2bf426897..23884f83e4c0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixCreateCustomizedValues.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixCreateCustomizedValues.json @@ -8,6 +8,7 @@ "1" ], "parameters": { + "location": "westus", "properties": { "publicIPAddressVersion": "IPv4", "prefixLength": 30 @@ -22,14 +23,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -41,14 +46,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixCreateDefaults.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixCreateDefaults.json index dd85ebc8bda8..da803d2a5bcd 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixCreateDefaults.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixCreateDefaults.json @@ -4,18 +4,30 @@ "subscriptionId": "subid", "resourceGroupName": "rg1", "publicIpPrefixName": "test-ipprefix", - "parameters": {} + "parameters": { + "location": "westus", + "sku": { + "name": "Standard" + }, + "properties": { + "prefixLength": 30 + } + } }, "responses": { "200": { "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -27,11 +39,15 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixGet.json index 63354eaa1680..aeac0dc1ffed 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixGet.json @@ -10,9 +10,11 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "192.168.254.2/30", @@ -23,6 +25,9 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixList.json index 71cfd8ff97e3..726bdd49512c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixList.json @@ -11,9 +11,11 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "40.85.154.2/30", @@ -24,17 +26,26 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix03", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/ipprefix03", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 31, - "ipPrefix": "40.85.153.2/31" + "ipPrefix": "40.85.153.2/31", + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixListAll.json index d7adb3cd474d..73f1908b8d18 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixListAll.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixListAll.json @@ -10,31 +10,64 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "41.85.154.247/30", + "ipTags": [], "publicIPAddresses": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix01", "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPPrefixes/ipprefix01", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "ipPrefix": "40.85.154.247/30", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" + }, + { + "name": "pfx", + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/publicIPPrefixes/pfx", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/publicIPPrefixes", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "ipPrefix": "25.101.84.16/30", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipTags": [], + "loadBalancerFrontendIpConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/loadBalancers/lb-pfx/frontendIPConfigurations/ipconfig1" + } + }, + "sku": { + "name": "Standard" + } } ] } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixUpdateTags.json index dac6d5c5e803..4d29cfec7675 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/PublicIpPrefixUpdateTags.json @@ -16,16 +16,23 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "ipPrefix": "40.85.154.247/30", + "prefixLength": 30, + "ipTags": [] }, "tags": { "tag1": "value1", "tag2": "value2" }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterCreate.json index 49b5fa74370e..e9274e0c1709 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterGet.json index f4633e3ec3a6..f887a9a95ee3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterList.json index f957cead1185..d27ed76dda82 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterListByResourceGroup.json index 8f1ec0e788e4..e4729790e3ea 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleCreate.json index d45df3d1fa90..467a2c3b5b0a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleCreate.json @@ -19,7 +19,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -35,7 +35,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleGet.json index 3efc330720b1..7ef1764ed2e5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleListByRouteFilter.json index 299fc6c630da..63af38a1ab80 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleUpdate.json index cd4581c451b0..bb505d413fd0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterRuleUpdate.json @@ -19,7 +19,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterUpdate.json index 42a3777a1273..7790cc036d7e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ServiceCommunityList.json index 54402bbfe848..3650a44c704a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VirtualHubList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VirtualHubList.json index 2019cca6f0b2..108706bde606 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VirtualHubList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VirtualHubList.json @@ -21,12 +21,12 @@ "virtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -50,12 +50,12 @@ "virtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VirtualHubListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VirtualHubListByResourceGroup.json index 2598dff83c08..d5fd564b75f3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VirtualHubListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VirtualHubListByResourceGroup.json @@ -22,12 +22,12 @@ "virtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -51,12 +51,12 @@ "virtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json index 8ac6ae0713ec..1d1e51d2018e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json @@ -7,14 +7,16 @@ }, "responses": { "200": { - "saLifeTimeSeconds": 86473, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup2", - "pfsGroup": "PFS2" + "body": { + "saLifeTimeSeconds": 86473, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup2", + "pfsGroup": "PFS2" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VpnConnectionPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VpnConnectionPut.json index bb7f513e71bd..3da50526f384 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VpnConnectionPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VpnConnectionPut.json @@ -17,43 +17,47 @@ }, "responses": { "200": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "vpnConnectionProtocolType": "IKEv1", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "vpnConnectionProtocolType": "IKEv1", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } }, "201": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "vpnConnectionProtocolType": "IKEv1", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "vpnConnectionProtocolType": "IKEv1", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VpnGatewayPut.json index b1e67394ceaf..b27b8a780e16 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VpnGatewayPut.json @@ -34,80 +34,84 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VpnGatewayUpdateTags.json index 6fcf4c7cb9a9..157c8cd3036d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/VpnGatewayUpdateTags.json @@ -13,96 +13,100 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } } 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 4f453bee3824..402e38c4c57a 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 @@ -372,6 +372,11 @@ }, "description": "The list of all referenced PublicIPAddresses" }, + "loadBalancerFrontendIpConfiguration": { + "readOnly": true, + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference to load balancer frontend IP configuration associated with the public IP prefix." + }, "resourceGuid": { "type": "string", "description": "The resource GUID property of the public IP prefix resource." diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index c3d8bd8ec4f9..706ece8ca7dc 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,31 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index c3d8bd8ec4f9..7275f085289e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,50 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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-12-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index 4f615c4d902b..0c407118bd62 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,20 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitARPTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitARPTableList.json index ed91df72b5c8..be92cceb4595 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitARPTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitARPTableList.json @@ -9,24 +9,17 @@ }, "responses": { "200": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] + "body": { + "value": [ + { + "age": 0, + "interface": "Microsoft", + "ipAddress": "IPAddress", + "macAddress": "macAddress" + } + ] + } }, - "202": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitAuthorizationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitAuthorizationGet.json index e74f12dc53bb..17b92c9d93c6 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitAuthorizationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitAuthorizationGet.json @@ -8,13 +8,15 @@ }, "responses": { "200": { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitAuthorizationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitAuthorizationList.json index 3310a851af51..b06bcfcd5d25 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitAuthorizationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitAuthorizationList.json @@ -7,18 +7,20 @@ }, "responses": { "200": { - "value": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json index cae0952c3fab..06b6c41ea550 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json @@ -14,7 +14,7 @@ }, "properties": { "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10 } @@ -32,7 +32,7 @@ "peerings": [], "authorizations": [], "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10, "circuitProvisioningState": "Enabled", @@ -59,7 +59,7 @@ "peerings": [], "authorizations": [], "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10, "circuitProvisioningState": "Enabled", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitListByResourceGroup.json index beca1fe928a5..3eb0f3648c0a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitListByResourceGroup.json @@ -6,86 +6,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitListBySubscription.json index d7f8bb1850c9..9f41d9282090 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitListBySubscription.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitListBySubscription.json @@ -5,86 +5,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitPeeringGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitPeeringGet.json index 2e8e1552efcd..040b2b4ddf09 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitPeeringGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitPeeringGet.json @@ -8,45 +8,47 @@ }, "responses": { "200": { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitPeeringList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitPeeringList.json index 805a7647bf2e..a4be14a9bf26 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitPeeringList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitPeeringList.json @@ -7,80 +7,82 @@ }, "responses": { "200": { - "value": [ - { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "value": [ + { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } + }, + "expressRouteConnection": "" + } + }, + { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "10.0.0.0/30", + "secondaryPeerAddressPrefix": "10.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled" + }, + "expressRouteConnection": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" } - }, - "expressRouteConnection": "" - } - }, - { - "name": "AzurePrivatePeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "AzurePrivatePeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "10.0.0.0/30", - "secondaryPeerAddressPrefix": "10.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 200, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", - "state": "Enabled" - }, - "expressRouteConnection": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitPeeringStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitPeeringStats.json index e1400af4d1e6..b6125f677328 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitPeeringStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitPeeringStats.json @@ -8,10 +8,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitRouteTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitRouteTableList.json index 1ac2944887eb..036eedfa768d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitRouteTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitRouteTableList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] + "body": { + "value": [ + { + "network": "", + "nextHop": "", + "locPrf": "", + "weight": 0, + "path": "" + } + ] + } }, - "202": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitRouteTableSummaryList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitRouteTableSummaryList.json index 31c984ae6fc5..b253d525e96f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitRouteTableSummaryList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitRouteTableSummaryList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] + "body": { + "value": [ + { + "neighbor": "100.65.171.1", + "v": 4, + "as": 9583, + "upDown": "never", + "statePfxRcd": "Idle" + } + ] + } }, - "202": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitStats.json index 13835b530995..6e8223c1165f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteCircuitStats.json @@ -7,10 +7,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteLinkGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteLinkGet.json index 6f6eb0319be4..dcf69b1193ca 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteLinkGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteLinkGet.json @@ -10,7 +10,7 @@ "200": { "body": { "name": "linkName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/linkName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/linkName", "properties": { "provisioningState": "Succeeded", "routerName": "router1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteLinkList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteLinkList.json index 9e5e7afc8bb2..635dbbb6fae9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteLinkList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteLinkList.json @@ -11,7 +11,7 @@ "value": [ { "name": "link1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "properties": { "provisioningState": "Succeeded", "routerName": "router1", @@ -24,7 +24,7 @@ }, { "name": "link2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "properties": { "provisioningState": "Succeeded", "routerName": "router2", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortCreate.json index d955c9ee668f..fa3a7d9764ff 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortCreate.json @@ -17,8 +17,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -31,7 +31,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -44,7 +44,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", @@ -64,8 +64,8 @@ "201": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -78,7 +78,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -91,7 +91,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortGet.json index 82d7129e14c9..19c6b27e5175 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortGet.json @@ -9,8 +9,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -23,7 +23,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -36,7 +36,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortList.json index c6bdc556eea8..fd77a57add06 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortList.json @@ -9,8 +9,8 @@ "value": [ { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -23,7 +23,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -36,7 +36,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortListByResourceGroup.json index 3598ff850727..3a7e29f4f89b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortListByResourceGroup.json @@ -10,8 +10,8 @@ "value": [ { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -24,7 +24,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -37,7 +37,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortUpdateLink.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortUpdateLink.json index e0c1164e61c8..94588ccc0768 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortUpdateLink.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortUpdateLink.json @@ -25,8 +25,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -39,7 +39,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -52,7 +52,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", @@ -72,8 +72,8 @@ "201": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -86,7 +86,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -99,7 +99,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortUpdateTags.json index 5b5bb38c530d..8db42d352605 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortUpdateTags.json @@ -15,8 +15,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -29,7 +29,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -42,7 +42,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortsLocationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortsLocationGet.json index 63a148961d2c..93333fe0ea3d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortsLocationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortsLocationGet.json @@ -8,8 +8,8 @@ "200": { "body": { "name": "locationName", - "id": "/subscriptions/subid/providers/Microsofot.Network/expressRoutePortsLocations/locationName", - "type": "Microsofot.Network/expressRoutePortsLocations", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", "location": "westus", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortsLocationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortsLocationList.json index ee2204decff2..32f642e6c5ad 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortsLocationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRoutePortsLocationList.json @@ -9,8 +9,8 @@ "value": [ { "name": "locationName", - "id": "/subscriptions/subid/providers/Microsofot.Network/expressRoutePortsLocations/locationName", - "type": "Microsofot.Network/expressRoutePortsLocations", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", "location": "westus", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteProviderList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteProviderList.json index 79e5131a0449..208ed87427da 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteProviderList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ExpressRouteProviderList.json @@ -5,54 +5,56 @@ }, "responses": { "200": { - "value": [ - { - "name": "providerName", - "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", - "type": "Microsoft.Network/expressRouteServiceProviders", - "properties": { - "provisioningState": "Succeeded", - "peeringLocations": [ - "peeringLocation1", - "peeringLocation2" - ], - "bandwidthsOffered": [ - { - "offerName": "50Mbps", - "valueInMbps": 50 - }, - { - "offerName": "100Mbps", - "valueInMbps": 100 - }, - { - "offerName": "200Mbps", - "valueInMbps": 200 - }, - { - "offerName": "500Mbps", - "valueInMbps": 500 - }, - { - "offerName": "1Gbps", - "valueInMbps": 1000 - }, - { - "offerName": "2Gbps", - "valueInMbps": 2000 - }, - { - "offerName": "5Gbps", - "valueInMbps": 5000 - }, - { - "offerName": "10Gbps", - "valueInMbps": 10000 - } - ] + "body": { + "value": [ + { + "name": "providerName", + "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", + "type": "Microsoft.Network/expressRouteServiceProviders", + "properties": { + "provisioningState": "Succeeded", + "peeringLocations": [ + "peeringLocation1", + "peeringLocation2" + ], + "bandwidthsOffered": [ + { + "offerName": "50Mbps", + "valueInMbps": 50 + }, + { + "offerName": "100Mbps", + "valueInMbps": 100 + }, + { + "offerName": "200Mbps", + "valueInMbps": 200 + }, + { + "offerName": "500Mbps", + "valueInMbps": 500 + }, + { + "offerName": "1Gbps", + "valueInMbps": 1000 + }, + { + "offerName": "2Gbps", + "valueInMbps": 2000 + }, + { + "offerName": "5Gbps", + "valueInMbps": 5000 + }, + { + "offerName": "10Gbps", + "valueInMbps": 10000 + } + ] + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/HubVirtualNetworkConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/HubVirtualNetworkConnectionGet.json index eb3681488fca..3ae7a0cd8339 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/HubVirtualNetworkConnectionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/HubVirtualNetworkConnectionGet.json @@ -10,12 +10,12 @@ "200": { "body": { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/HubVirtualNetworkConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/HubVirtualNetworkConnectionList.json index 2eb55650f1fe..634954ae3502 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/HubVirtualNetworkConnectionList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/HubVirtualNetworkConnectionList.json @@ -11,12 +11,12 @@ "body": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -24,12 +24,12 @@ }, { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet2" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnGatewayPut.json index 0feceb782f13..851dfe9762db 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnGatewayPut.json @@ -27,58 +27,62 @@ }, "responses": { "200": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 0, - "allocatedIpAddresses": [], - "totalIngressBytesTransferred": 0, - "totalEgressBytesTransferred": 0 + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } } } }, "201": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 0, - "allocatedIpAddresses": [], - "totalIngressBytesTransferred": 0, - "totalEgressBytesTransferred": 0 + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnGatewayUpdateTags.json index c736117b89bf..721ae5462afc 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnGatewayUpdateTags.json @@ -13,72 +13,76 @@ }, "responses": { "200": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 2, - "allocatedIpAddresses": [ - "1.1.1.1", - "2.2.2.2" - ], - "totalIngressBytesTransferred": 2000, - "totalEgressBytesTransferred": 3000 + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } } } }, "201": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 2, - "allocatedIpAddresses": [ - "1.1.1.1", - "2.2.2.2" - ], - "totalIngressBytesTransferred": 2000, - "totalEgressBytesTransferred": 3000 + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnServerConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnServerConfigurationGet.json index 4d22e7ae80f4..00879f31ebff 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnServerConfigurationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnServerConfigurationGet.json @@ -8,78 +8,80 @@ }, "responses": { "200": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCer1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCer1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCer1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCer1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnServerConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnServerConfigurationList.json index 4d52a00403f5..f1cee23330cf 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnServerConfigurationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnServerConfigurationList.json @@ -48,7 +48,7 @@ "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" }, "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" } @@ -74,7 +74,7 @@ "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" }, "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnServerConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnServerConfigurationPut.json index 8dcd53d6dfd8..d9a33ccd9056 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnServerConfigurationPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/P2SVpnServerConfigurationPut.json @@ -61,152 +61,156 @@ }, "responses": { "200": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } }, "201": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixCreateCustomizedValues.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixCreateCustomizedValues.json index 201fbb1e668f..cce58dd7ce5b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixCreateCustomizedValues.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixCreateCustomizedValues.json @@ -8,6 +8,7 @@ "1" ], "parameters": { + "location": "westus", "properties": { "publicIPAddressVersion": "IPv4", "prefixLength": 30 @@ -22,14 +23,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -41,14 +46,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixCreateDefaults.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixCreateDefaults.json index 00dccc52495d..4a249cd50e21 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixCreateDefaults.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixCreateDefaults.json @@ -4,18 +4,30 @@ "subscriptionId": "subid", "resourceGroupName": "rg1", "publicIpPrefixName": "test-ipprefix", - "parameters": {} + "parameters": { + "location": "westus", + "sku": { + "name": "Standard" + }, + "properties": { + "prefixLength": 30 + } + } }, "responses": { "200": { "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -27,11 +39,15 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixGet.json index 9a7ed1c33c15..3adaf24983b9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixGet.json @@ -10,9 +10,11 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "192.168.254.2/30", @@ -23,6 +25,9 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixList.json index dea8ca0ac021..655127ca0768 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixList.json @@ -11,9 +11,11 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "40.85.154.2/30", @@ -24,17 +26,26 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix03", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/ipprefix03", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 31, - "ipPrefix": "40.85.153.2/31" + "ipPrefix": "40.85.153.2/31", + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixListAll.json index 8a77e90a8e80..0f07cd9a1561 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixListAll.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixListAll.json @@ -10,31 +10,64 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "41.85.154.247/30", + "ipTags": [], "publicIPAddresses": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix01", "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPPrefixes/ipprefix01", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "ipPrefix": "40.85.154.247/30", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" + }, + { + "name": "pfx", + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/publicIPPrefixes/pfx", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/publicIPPrefixes", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "ipPrefix": "25.101.84.16/30", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipTags": [], + "loadBalancerFrontendIpConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/loadBalancers/lb-pfx/frontendIPConfigurations/ipconfig1" + } + }, + "sku": { + "name": "Standard" + } } ] } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixUpdateTags.json index 0004c884b252..cbd70e6e68df 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/PublicIpPrefixUpdateTags.json @@ -16,16 +16,23 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "ipPrefix": "40.85.154.247/30", + "prefixLength": 30, + "ipTags": [] }, "tags": { "tag1": "value1", "tag2": "value2" }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterCreate.json index 89ac6fcf6d2e..dee1732bf986 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterGet.json index 35e206dcb516..a6676b4b153b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterList.json index 6400f4cfc364..7b3c160895ab 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterListByResourceGroup.json index 92e30004957a..036056b02f12 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleCreate.json index 0fc7083faa2a..a3cb5d72e39a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleCreate.json @@ -19,7 +19,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -35,7 +35,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleGet.json index 017d8f29571c..b67e69b56f15 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleListByRouteFilter.json index 83dc497e8d45..1753814386bb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleUpdate.json index b0085659fe94..2e7cf3e98393 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterRuleUpdate.json @@ -19,7 +19,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterUpdate.json index d91aca95ed2b..d2c727e1cac9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ServiceCommunityList.json index c61308598bfb..9718e4b0ed6c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VirtualHubList.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VirtualHubList.json index b80609ca3456..312dab0dfb25 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VirtualHubList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VirtualHubList.json @@ -21,12 +21,12 @@ "virtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -50,12 +50,12 @@ "virtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VirtualHubListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VirtualHubListByResourceGroup.json index ac9624d70a4f..720db7de772f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VirtualHubListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VirtualHubListByResourceGroup.json @@ -22,12 +22,12 @@ "virtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -51,12 +51,12 @@ "virtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json index c6ed5fa90daa..23d3e6d8aab5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json @@ -7,14 +7,16 @@ }, "responses": { "200": { - "saLifeTimeSeconds": 86473, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup2", - "pfsGroup": "PFS2" + "body": { + "saLifeTimeSeconds": 86473, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup2", + "pfsGroup": "PFS2" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VpnConnectionPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VpnConnectionPut.json index 117c296741b5..54bdba9318a9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VpnConnectionPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VpnConnectionPut.json @@ -17,43 +17,47 @@ }, "responses": { "200": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "vpnConnectionProtocolType": "IKEv1", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "vpnConnectionProtocolType": "IKEv1", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } }, "201": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "vpnConnectionProtocolType": "IKEv1", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "vpnConnectionProtocolType": "IKEv1", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VpnGatewayPut.json index cfe3040cbb8c..bcd2a131fb40 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VpnGatewayPut.json @@ -34,80 +34,84 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VpnGatewayUpdateTags.json index 3aa42938b823..091a64894ac3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/VpnGatewayUpdateTags.json @@ -13,96 +13,100 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/publicIpPrefix.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/publicIpPrefix.json index da0f54b7c543..c0f85476b5a2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/publicIpPrefix.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/publicIpPrefix.json @@ -372,6 +372,11 @@ }, "description": "The list of all referenced PublicIPAddresses" }, + "loadBalancerFrontendIpConfiguration": { + "readOnly": true, + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference to load balancer frontend IP configuration associated with the public IP prefix." + }, "resourceGuid": { "type": "string", "description": "The resource GUID property of the public IP prefix resource." diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/applicationGateway.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/applicationGateway.json index 13d88cff8196..fcc051b2b3ce 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/applicationGateway.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/applicationGateway.json @@ -801,13 +801,13 @@ "$ref": "#/definitions/ApplicationGatewayProbeHealthResponseMatch", "description": "Criterion for classifying a healthy probe response." }, - "backendPoolName": { - "type": "string", - "description": "Name of backend pool of application gateway to which probe request will be sent." + "backendAddressPool": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of backend pool of application gateway to which probe request will be sent." }, - "backendHttpSettingName": { - "type": "string", - "description": "Name of backend http setting of application gateway to be used for test probe" + "backendHttpSettings": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of backend http setting of application gateway to be used for test probe." } }, "description": "Details of on demand test probe request" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index 9e2d896e0d43..0b5e48cf6dca 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,61 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + }, + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401" + }, + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401S" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_DHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_3DES_EDE_CBC_SHA", + "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index 9e2d896e0d43..cb21a791f804 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,98 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_DHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_3DES_EDE_CBC_SHA", + "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + ], + "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", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "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_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", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_128_CBC_SHA" + ], + "minProtocolVersion": "TLSv1_2" + } + } + ] + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index 0ae49fa534e1..254c0b71ac98 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,44 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_DHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_3DES_EDE_CBC_SHA", + "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + ], + "minProtocolVersion": "TLSv1_0" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayBackendHealthTest.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayBackendHealthTest.json index dfff6831e372..60e5dd0c3cb6 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayBackendHealthTest.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ApplicationGatewayBackendHealthTest.json @@ -9,8 +9,12 @@ "pickHostNameFromBackendHttpSettings": true, "path": "/", "timeout": 30, - "backendPoolName": "MFAnalyticsPool", - "backendHttpSettingName": "MFPoolSettings" + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFAnalyticsPool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings" + } } }, "responses": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitARPTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitARPTableList.json index 919aaa250e79..bde170a71a05 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitARPTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitARPTableList.json @@ -9,24 +9,17 @@ }, "responses": { "200": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] + "body": { + "value": [ + { + "age": 0, + "interface": "Microsoft", + "ipAddress": "IPAddress", + "macAddress": "macAddress" + } + ] + } }, - "202": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitAuthorizationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitAuthorizationGet.json index fb3282cff7c9..98175436b9e0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitAuthorizationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitAuthorizationGet.json @@ -8,13 +8,15 @@ }, "responses": { "200": { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitAuthorizationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitAuthorizationList.json index 990b66a03767..e4a9943f4a7b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitAuthorizationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitAuthorizationList.json @@ -7,18 +7,20 @@ }, "responses": { "200": { - "value": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json index 5043f826deba..e76a5edc7426 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json @@ -14,7 +14,7 @@ }, "properties": { "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10 } @@ -32,7 +32,7 @@ "peerings": [], "authorizations": [], "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10, "circuitProvisioningState": "Enabled", @@ -59,7 +59,7 @@ "peerings": [], "authorizations": [], "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10, "circuitProvisioningState": "Enabled", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitListByResourceGroup.json index e29f9b36fbd7..2f116aded120 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitListByResourceGroup.json @@ -6,86 +6,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitListBySubscription.json index e95ef64a2582..75d8e928aa1f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitListBySubscription.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitListBySubscription.json @@ -5,86 +5,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitPeeringGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitPeeringGet.json index 4557349da6a0..045b198df558 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitPeeringGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitPeeringGet.json @@ -8,45 +8,47 @@ }, "responses": { "200": { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitPeeringList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitPeeringList.json index dfae42d51969..c04f5b665a94 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitPeeringList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitPeeringList.json @@ -7,80 +7,82 @@ }, "responses": { "200": { - "value": [ - { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "value": [ + { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } + }, + "expressRouteConnection": "" + } + }, + { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "10.0.0.0/30", + "secondaryPeerAddressPrefix": "10.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled" + }, + "expressRouteConnection": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" } - }, - "expressRouteConnection": "" - } - }, - { - "name": "AzurePrivatePeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "AzurePrivatePeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "10.0.0.0/30", - "secondaryPeerAddressPrefix": "10.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 200, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", - "state": "Enabled" - }, - "expressRouteConnection": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitPeeringStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitPeeringStats.json index 9f2b0bc389fe..4e9015cc89d7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitPeeringStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitPeeringStats.json @@ -8,10 +8,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitRouteTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitRouteTableList.json index 238cdd9da317..e04334b76947 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitRouteTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitRouteTableList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] + "body": { + "value": [ + { + "network": "", + "nextHop": "", + "locPrf": "", + "weight": 0, + "path": "" + } + ] + } }, - "202": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitRouteTableSummaryList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitRouteTableSummaryList.json index 006f42a8800b..320c93df7a99 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitRouteTableSummaryList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitRouteTableSummaryList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] + "body": { + "value": [ + { + "neighbor": "100.65.171.1", + "v": 4, + "as": 9583, + "upDown": "never", + "statePfxRcd": "Idle" + } + ] + } }, - "202": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitStats.json index e476dcf3b51e..76e99f1f3a0f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteCircuitStats.json @@ -7,10 +7,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteLinkGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteLinkGet.json index 2c437fa42db9..4c67186245e7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteLinkGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteLinkGet.json @@ -10,7 +10,7 @@ "200": { "body": { "name": "linkName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/linkName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/linkName", "properties": { "provisioningState": "Succeeded", "routerName": "router1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteLinkList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteLinkList.json index 88c4b2fcad6b..0a4d74452617 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteLinkList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteLinkList.json @@ -11,7 +11,7 @@ "value": [ { "name": "link1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "properties": { "provisioningState": "Succeeded", "routerName": "router1", @@ -24,7 +24,7 @@ }, { "name": "link2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "properties": { "provisioningState": "Succeeded", "routerName": "router2", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortCreate.json index 354769ff821d..51dac90a446a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortCreate.json @@ -17,8 +17,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -31,7 +31,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -44,7 +44,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", @@ -64,8 +64,8 @@ "201": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -78,7 +78,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -91,7 +91,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortGet.json index 488c7f7e63f2..0e98fdf7c74f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortGet.json @@ -9,8 +9,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -23,7 +23,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -36,7 +36,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortList.json index 0c2836c6b617..1a246bf447af 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortList.json @@ -9,8 +9,8 @@ "value": [ { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -23,7 +23,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -36,7 +36,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortListByResourceGroup.json index 1ebaebf0e879..27d7f4f4f6bb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortListByResourceGroup.json @@ -10,8 +10,8 @@ "value": [ { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -24,7 +24,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -37,7 +37,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortUpdateLink.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortUpdateLink.json index 7db0301d6fef..365aa777037c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortUpdateLink.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortUpdateLink.json @@ -25,8 +25,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -39,7 +39,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -52,7 +52,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", @@ -72,8 +72,8 @@ "201": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -86,7 +86,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -99,7 +99,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortUpdateTags.json index 7851c15e9307..25e829cb9c97 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortUpdateTags.json @@ -15,8 +15,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -29,7 +29,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -42,7 +42,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortsLocationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortsLocationGet.json index 9679af786761..50dba0ebee50 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortsLocationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortsLocationGet.json @@ -8,8 +8,8 @@ "200": { "body": { "name": "locationName", - "id": "/subscriptions/subid/providers/Microsofot.Network/expressRoutePortsLocations/locationName", - "type": "Microsofot.Network/expressRoutePortsLocations", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", "location": "westus", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortsLocationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortsLocationList.json index 46eb516343b0..afcad8e8ab48 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortsLocationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRoutePortsLocationList.json @@ -9,8 +9,8 @@ "value": [ { "name": "locationName", - "id": "/subscriptions/subid/providers/Microsofot.Network/expressRoutePortsLocations/locationName", - "type": "Microsofot.Network/expressRoutePortsLocations", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", "location": "westus", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteProviderList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteProviderList.json index 316eef5a309e..8db34b616b63 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteProviderList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ExpressRouteProviderList.json @@ -5,54 +5,56 @@ }, "responses": { "200": { - "value": [ - { - "name": "providerName", - "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", - "type": "Microsoft.Network/expressRouteServiceProviders", - "properties": { - "provisioningState": "Succeeded", - "peeringLocations": [ - "peeringLocation1", - "peeringLocation2" - ], - "bandwidthsOffered": [ - { - "offerName": "50Mbps", - "valueInMbps": 50 - }, - { - "offerName": "100Mbps", - "valueInMbps": 100 - }, - { - "offerName": "200Mbps", - "valueInMbps": 200 - }, - { - "offerName": "500Mbps", - "valueInMbps": 500 - }, - { - "offerName": "1Gbps", - "valueInMbps": 1000 - }, - { - "offerName": "2Gbps", - "valueInMbps": 2000 - }, - { - "offerName": "5Gbps", - "valueInMbps": 5000 - }, - { - "offerName": "10Gbps", - "valueInMbps": 10000 - } - ] + "body": { + "value": [ + { + "name": "providerName", + "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", + "type": "Microsoft.Network/expressRouteServiceProviders", + "properties": { + "provisioningState": "Succeeded", + "peeringLocations": [ + "peeringLocation1", + "peeringLocation2" + ], + "bandwidthsOffered": [ + { + "offerName": "50Mbps", + "valueInMbps": 50 + }, + { + "offerName": "100Mbps", + "valueInMbps": 100 + }, + { + "offerName": "200Mbps", + "valueInMbps": 200 + }, + { + "offerName": "500Mbps", + "valueInMbps": 500 + }, + { + "offerName": "1Gbps", + "valueInMbps": 1000 + }, + { + "offerName": "2Gbps", + "valueInMbps": 2000 + }, + { + "offerName": "5Gbps", + "valueInMbps": 5000 + }, + { + "offerName": "10Gbps", + "valueInMbps": 10000 + } + ] + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/HubVirtualNetworkConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/HubVirtualNetworkConnectionGet.json index c8e97e0863cd..8c060971cbaa 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/HubVirtualNetworkConnectionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/HubVirtualNetworkConnectionGet.json @@ -10,12 +10,12 @@ "200": { "body": { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/HubVirtualNetworkConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/HubVirtualNetworkConnectionList.json index 0096bb0b4a9d..16c54ed9db17 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/HubVirtualNetworkConnectionList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/HubVirtualNetworkConnectionList.json @@ -11,12 +11,12 @@ "body": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -24,12 +24,12 @@ }, { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet2" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnGatewayPut.json index 0cf6db19e4a8..718eb2c36f87 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnGatewayPut.json @@ -32,68 +32,72 @@ }, "responses": { "200": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "customRoutes": { - "addressPrefixes": [ - "101.168.0.6/32" - ] - }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 0, - "allocatedIpAddresses": [], - "totalIngressBytesTransferred": 0, - "totalEgressBytesTransferred": 0 + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } } } }, "201": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "customRoutes": { - "addressPrefixes": [ - "101.168.0.6/32" - ] - }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 0, - "allocatedIpAddresses": [], - "totalIngressBytesTransferred": 0, - "totalEgressBytesTransferred": 0 + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnGatewayUpdateTags.json index c954562108ae..a6a3b379a9b8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnGatewayUpdateTags.json @@ -13,82 +13,86 @@ }, "responses": { "200": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "customRoutes": { - "addressPrefixes": [ - "101.168.0.6/32" - ] + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 2, - "allocatedIpAddresses": [ - "1.1.1.1", - "2.2.2.2" - ], - "totalIngressBytesTransferred": 2000, - "totalEgressBytesTransferred": 3000 + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } } } }, "201": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "customRoutes": { - "addressPrefixes": [ - "101.168.0.6/32" - ] + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 2, - "allocatedIpAddresses": [ - "1.1.1.1", - "2.2.2.2" - ], - "totalIngressBytesTransferred": 2000, - "totalEgressBytesTransferred": 3000 + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnServerConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnServerConfigurationGet.json index ee2e1c1ca573..a3e4553b4175 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnServerConfigurationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnServerConfigurationGet.json @@ -8,78 +8,80 @@ }, "responses": { "200": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCer1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCer1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCer1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCer1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnServerConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnServerConfigurationList.json index e58e1f62744d..e3212e948af1 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnServerConfigurationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnServerConfigurationList.json @@ -48,7 +48,7 @@ "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" }, "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" } @@ -74,7 +74,7 @@ "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" }, "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnServerConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnServerConfigurationPut.json index 19dcf65db7bb..80ac4e0d95cd 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnServerConfigurationPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/P2SVpnServerConfigurationPut.json @@ -61,152 +61,156 @@ }, "responses": { "200": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } }, "201": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixCreateCustomizedValues.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixCreateCustomizedValues.json index 60e2e952c2a8..3ced65e1b413 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixCreateCustomizedValues.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixCreateCustomizedValues.json @@ -8,6 +8,7 @@ "1" ], "parameters": { + "location": "westus", "properties": { "publicIPAddressVersion": "IPv4", "prefixLength": 30 @@ -22,14 +23,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -41,14 +46,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixCreateDefaults.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixCreateDefaults.json index 4fceba6ab78d..b9a7f3bb1acf 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixCreateDefaults.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixCreateDefaults.json @@ -4,18 +4,30 @@ "subscriptionId": "subid", "resourceGroupName": "rg1", "publicIpPrefixName": "test-ipprefix", - "parameters": {} + "parameters": { + "location": "westus", + "sku": { + "name": "Standard" + }, + "properties": { + "prefixLength": 30 + } + } }, "responses": { "200": { "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -27,11 +39,15 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixGet.json index e7d2f00d6e48..167a5fd0e14d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixGet.json @@ -10,9 +10,11 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "192.168.254.2/30", @@ -23,6 +25,9 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixList.json index d52890e7748b..ba3b93818a7f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixList.json @@ -11,9 +11,11 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "40.85.154.2/30", @@ -24,17 +26,26 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix03", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/ipprefix03", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 31, - "ipPrefix": "40.85.153.2/31" + "ipPrefix": "40.85.153.2/31", + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixListAll.json index 975911ef0c4a..b4bd7bb14b98 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixListAll.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixListAll.json @@ -10,31 +10,64 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "41.85.154.247/30", + "ipTags": [], "publicIPAddresses": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix01", "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPPrefixes/ipprefix01", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "ipPrefix": "40.85.154.247/30", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" + }, + { + "name": "pfx", + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/publicIPPrefixes/pfx", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/publicIPPrefixes", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "ipPrefix": "25.101.84.16/30", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipTags": [], + "loadBalancerFrontendIpConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/loadBalancers/lb-pfx/frontendIPConfigurations/ipconfig1" + } + }, + "sku": { + "name": "Standard" + } } ] } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixUpdateTags.json index cc3a94ff72ba..644aa5f1bbb4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/PublicIpPrefixUpdateTags.json @@ -16,16 +16,23 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "ipPrefix": "40.85.154.247/30", + "prefixLength": 30, + "ipTags": [] }, "tags": { "tag1": "value1", "tag2": "value2" }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterCreate.json index de68815654f3..585d723f6713 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterGet.json index beed95756057..24b296982c35 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterList.json index 0eff809810d6..9c70fa530290 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterListByResourceGroup.json index 3abdb6e0541a..7caf847e0c19 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleCreate.json index 028ff24e83ad..ff2cf582dee2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleCreate.json @@ -19,7 +19,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -35,7 +35,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleGet.json index 5532055a102c..63c325588228 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleListByRouteFilter.json index 8e6c2198db2c..cee2076961f5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleUpdate.json index f15c6dbdb395..3429c9a97ee8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterRuleUpdate.json @@ -19,7 +19,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterUpdate.json index a1c62b876a3b..52827f80fd1d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/RouteFilterUpdate.json @@ -27,11 +27,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +39,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ServiceCommunityList.json index 3a3bec1e6dec..242f01890a39 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VirtualHubList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VirtualHubList.json index 82aedbae4c74..379bdccd9a3b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VirtualHubList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VirtualHubList.json @@ -21,12 +21,12 @@ "virtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -50,12 +50,12 @@ "virtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VirtualHubListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VirtualHubListByResourceGroup.json index 3d12da4f07f2..470da6368bfc 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VirtualHubListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VirtualHubListByResourceGroup.json @@ -22,12 +22,12 @@ "virtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -51,12 +51,12 @@ "virtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json index c8f224eed580..12086572b5b9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json @@ -7,14 +7,16 @@ }, "responses": { "200": { - "saLifeTimeSeconds": 86473, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup2", - "pfsGroup": "PFS2" + "body": { + "saLifeTimeSeconds": 86473, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup2", + "pfsGroup": "PFS2" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VpnConnectionPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VpnConnectionPut.json index 1fd2d8545759..5d8a1c43fdf3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VpnConnectionPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VpnConnectionPut.json @@ -17,45 +17,49 @@ }, "responses": { "200": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "vpnConnectionProtocolType": "IKEv1", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "useLocalAzureIpAddress": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "vpnConnectionProtocolType": "IKEv1", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "useLocalAzureIpAddress": false, + "ipsecPolicies": [] + } } }, "201": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "vpnConnectionProtocolType": "IKEv1", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "useLocalAzureIpAddress": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "vpnConnectionProtocolType": "IKEv1", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "useLocalAzureIpAddress": false, + "ipsecPolicies": [] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VpnGatewayPut.json index 26cdd63dfd82..36fb11faa3ea 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VpnGatewayPut.json @@ -34,82 +34,86 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "useLocalAzureIpAddress": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "useLocalAzureIpAddress": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "useLocalAzureIpAddress": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "useLocalAzureIpAddress": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VpnGatewayUpdateTags.json index 7744e0f84bb0..1e86c59d6e04 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/VpnGatewayUpdateTags.json @@ -13,96 +13,100 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/publicIpPrefix.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/publicIpPrefix.json index 445e186580cb..bef2798df325 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/publicIpPrefix.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/publicIpPrefix.json @@ -339,7 +339,7 @@ } } }, - "description": "SKU of a public IP prefix" + "description": "SKU of a public IP prefix." }, "PublicIPPrefixPropertiesFormat": { "properties": { @@ -361,14 +361,19 @@ }, "ipPrefix": { "type": "string", - "description": "The allocated Prefix" + "description": "The allocated Prefix." }, "publicIPAddresses": { "type": "array", "items": { "$ref": "#/definitions/ReferencedPublicIpAddress" }, - "description": "The list of all referenced PublicIPAddresses" + "description": "The list of all referenced PublicIPAddresses." + }, + "loadBalancerFrontendIpConfiguration": { + "readOnly": true, + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference to load balancer frontend IP configuration associated with the public IP prefix." }, "resourceGuid": { "type": "string", @@ -431,7 +436,7 @@ "properties": { "id": { "type": "string", - "description": "The PublicIPAddress Reference" + "description": "The PublicIPAddress Reference." } }, "description": "Reference to a public IP address." diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/applicationGateway.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/applicationGateway.json index cec2ed2196e9..75202c988a31 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/applicationGateway.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/applicationGateway.json @@ -178,6 +178,9 @@ } }, "x-ms-examples": { + "Create Application Gateway Without Certificates": { + "$ref": "./examples/ApplicationGatewayNoCertificatesCreate.json" + }, "Create Application Gateway": { "$ref": "./examples/ApplicationGatewayCreate.json" } @@ -801,13 +804,13 @@ "$ref": "#/definitions/ApplicationGatewayProbeHealthResponseMatch", "description": "Criterion for classifying a healthy probe response." }, - "backendPoolName": { - "type": "string", - "description": "Name of backend pool of application gateway to which probe request will be sent." + "backendAddressPool": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of backend pool of application gateway to which probe request will be sent." }, - "backendHttpSettingName": { - "type": "string", - "description": "Name of backend http setting of application gateway to be used for test probe." + "backendHttpSettings": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of backend http setting of application gateway to be used for test probe." } }, "description": "Details of on demand test probe request." diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json index a8b991a255b2..860cc5714cce 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json @@ -297,7 +297,6 @@ }, "name": { "type": "string", - "readOnly": true, "description": "Name of the resource that is unique within a resource group. This name can be used to access the resource." }, "etag": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayAvailableSslOptionsGet.json index 20122efe6546..3c027242b7d0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayAvailableSslOptionsGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -4,6 +4,61 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + }, + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401" + }, + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401S" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_DHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_3DES_EDE_CBC_SHA", + "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json index 20122efe6546..9799eaf317bc 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -4,6 +4,98 @@ "subscriptionId": "subid" }, "responses": { - "200": {} + "200": { + "body": { + "value": [ + { + "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", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_DHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_3DES_EDE_CBC_SHA", + "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + ], + "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", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "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_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", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_128_CBC_SHA" + ], + "minProtocolVersion": "TLSv1_2" + } + } + ] + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json index 4e1f4c754b51..e925a06eacdf 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -5,6 +5,44 @@ "predefinedPolicyName": "AppGwSslPolicy20150501" }, "responses": { - "200": {} + "200": { + "body": { + "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", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_DHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_3DES_EDE_CBC_SHA", + "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + ], + "minProtocolVersion": "TLSv1_0" + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayBackendHealthTest.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayBackendHealthTest.json index f46829f978bb..bf70cea20172 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayBackendHealthTest.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayBackendHealthTest.json @@ -9,8 +9,12 @@ "pickHostNameFromBackendHttpSettings": true, "path": "/", "timeout": 30, - "backendPoolName": "MFAnalyticsPool", - "backendHttpSettingName": "MFPoolSettings" + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFAnalyticsPool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings" + } } }, "responses": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayNoCertificatesCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayNoCertificatesCreate.json new file mode 100644 index 000000000000..95c636c6c747 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ApplicationGatewayNoCertificatesCreate.json @@ -0,0 +1,678 @@ +{ + "parameters": { + "api-version": "2019-04-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "applicationGatewayName": "appgw", + "parameters": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {} + } + }, + "location": "eastus", + "properties": { + "sku": { + "name": "Standard_v2", + "tier": "Standard_v2", + "capacity": 3 + }, + "gatewayIPConfigurations": [ + { + "name": "appgwipc", + "properties": { + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet/subnets/appgwsubnet" + } + } + } + ], + "sslCertificates": [], + "trustedRootCertificates": [], + "frontendIPConfigurations": [ + { + "name": "appgwfip", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/appgwpip" + } + } + } + ], + "frontendPorts": [ + { + "name": "appgwfp", + "properties": { + "port": 81 + } + }, + { + "name": "appgwfp80", + "properties": { + "port": 80 + } + } + ], + "backendAddressPools": [ + { + "name": "appgwpool", + "properties": { + "backendAddresses": [ + { + "ipAddress": "10.0.1.1" + }, + { + "ipAddress": "10.0.1.2" + } + ] + } + } + ], + "backendHttpSettingsCollection": [ + { + "name": "appgwbhs", + "properties": { + "port": 80, + "protocol": "Http", + "cookieBasedAffinity": "Disabled", + "requestTimeout": 30 + } + } + ], + "httpListeners": [ + { + "name": "appgwhl", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp" + }, + "protocol": "Http", + "requireServerNameIndication": false + } + }, + { + "name": "appgwhttplistener", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80" + }, + "protocol": "Http" + } + } + ], + "urlPathMaps": [ + { + "name": "pathMap1", + "properties": { + "defaultBackendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "defaultBackendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "defaultRewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + }, + "pathRules": [ + { + "name": "apiPaths", + "properties": { + "paths": [ + "/api", + "/v1/api" + ], + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + } + ] + } + } + ], + "requestRoutingRules": [ + { + "name": "appgwrule", + "properties": { + "ruleType": "Basic", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl" + }, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + }, + { + "name": "appgwPathBasedRule", + "properties": { + "ruleType": "PathBasedRouting", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhttplistener" + }, + "urlPathMap": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1" + } + } + } + ], + "rewriteRuleSets": [ + { + "name": "rewriteRuleSet1", + "properties": { + "rewriteRules": [ + { + "name": "Set X-Forwarded-For", + "ruleSequence": 102, + "conditions": [ + { + "variable": "http_req_Authorization", + "pattern": "^Bearer", + "ignoreCase": true, + "negate": false + } + ], + "actionSet": { + "requestHeaderConfigurations": [ + { + "headerName": "X-Forwarded-For", + "headerValue": "{var_add_x_forwarded_for_proxy}" + } + ], + "responseHeaderConfigurations": [ + { + "headerName": "Strict-Transport-Security", + "headerValue": "max-age=31536000" + } + ] + } + } + ] + } + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "name": "appgw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw", + "type": "Microsoft.Network/applicationGateways", + "location": "southcentralus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Standard_Medium", + "tier": "Standard", + "capacity": 3 + }, + "operationalState": "Running", + "gatewayIPConfigurations": [ + { + "name": "appgwipc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/gatewayIPConfigurations/appgwipc", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1/subnets/appgwsubnet" + } + } + } + ], + "sslCertificates": [], + "authenticationCertificates": [], + "frontendIPConfigurations": [ + { + "name": "appgwfip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/appgwpip" + } + } + } + ], + "frontendPorts": [ + { + "name": "appgwfp", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp", + "properties": { + "provisioningState": "Succeeded", + "port": 81 + } + }, + { + "name": "appgwfp80", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80", + "properties": { + "provisioningState": "Succeeded", + "port": 80 + } + } + ], + "backendAddressPools": [ + { + "name": "appgwpool", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool", + "properties": { + "provisioningState": "Succeeded", + "backendAddresses": [] + } + } + ], + "backendHttpSettingsCollection": [ + { + "name": "appgwbhs", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs", + "properties": { + "provisioningState": "Succeeded", + "port": 80, + "protocol": "Http", + "cookieBasedAffinity": "Disabled", + "requestTimeout": 30 + } + } + ], + "httpListeners": [ + { + "name": "appgwhl", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp" + }, + "protocol": "Http", + "requireServerNameIndication": false + } + }, + { + "name": "appgwhttplistener", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhttplistener", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80" + }, + "protocol": "Http" + } + } + ], + "urlPathMaps": [ + { + "name": "pathMap1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1", + "properties": { + "provisioningState": "Succeeded", + "defaultBackendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "defaultBackendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "defaultRewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + }, + "pathRules": [ + { + "name": "apiPaths", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1/pathRules/apiPaths", + "properties": { + "provisioningState": "Succeeded", + "paths": [ + "/api", + "/v1/api" + ], + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + } + ] + } + } + ], + "requestRoutingRules": [ + { + "name": "appgwrule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/requestRoutingRules/appgwrule", + "properties": { + "provisioningState": "Succeeded", + "ruleType": "Basic", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl" + }, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + }, + { + "name": "appgwPathBasedRule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/requestRoutingRules/appgwPathBasedRule", + "properties": { + "provisioningState": "Succeeded", + "ruleType": "PathBasedRouting", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhttplistener" + }, + "urlPathMap": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1" + } + } + } + ], + "rewriteRuleSets": [ + { + "name": "rewriteRuleSet1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1", + "properties": { + "provisioningState": "Succeeded", + "rewriteRules": [ + { + "name": "Set X-Forwarded-For", + "ruleSequence": 102, + "conditions": [ + { + "variable": "http_req_Authorization", + "pattern": "^Bearer", + "ignoreCase": true, + "negate": false + } + ], + "actionSet": { + "requestHeaderConfigurations": [ + { + "headerName": "X-Forwarded-For", + "headerValue": "{var_remote-addr}" + } + ], + "responseHeaderConfigurations": [ + { + "headerName": "Strict-Transport-Security", + "headerValue": "max-age=31536000" + } + ] + } + } + ] + } + } + ], + "probes": [] + } + } + }, + "200": { + "body": { + "name": "appgw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw", + "type": "Microsoft.Network/applicationGateways", + "location": "southcentralus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Standard_Medium", + "tier": "Standard", + "capacity": 3 + }, + "operationalState": "Running", + "gatewayIPConfigurations": [ + { + "name": "appgwipc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/gatewayIPConfigurations/appgwipc", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1/subnets/appgwsubnet" + } + } + } + ], + "sslCertificates": [], + "authenticationCertificates": [], + "frontendIPConfigurations": [ + { + "name": "appgwfip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/appgwpip" + } + } + } + ], + "frontendPorts": [ + { + "name": "appgwfp", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp", + "properties": { + "provisioningState": "Succeeded", + "port": 81 + } + }, + { + "name": "appgwfp80", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80", + "properties": { + "provisioningState": "Succeeded", + "port": 80 + } + } + ], + "backendAddressPools": [ + { + "name": "appgwpool", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool", + "properties": { + "provisioningState": "Succeeded", + "backendAddresses": [] + } + } + ], + "backendHttpSettingsCollection": [ + { + "name": "appgwbhs", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs", + "properties": { + "provisioningState": "Succeeded", + "port": 80, + "protocol": "Http", + "cookieBasedAffinity": "Disabled", + "requestTimeout": 30 + } + } + ], + "httpListeners": [ + { + "name": "appgwhl", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp" + }, + "protocol": "Http", + "requireServerNameIndication": false + } + }, + { + "name": "appgwhttplistener", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhttplistener", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80" + }, + "protocol": "Http" + } + } + ], + "urlPathMaps": [ + { + "name": "pathMap1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1", + "properties": { + "provisioningState": "Succeeded", + "defaultBackendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "defaultBackendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "defaultRewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + }, + "pathRules": [ + { + "name": "apiPaths", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1/pathRules/apiPaths", + "properties": { + "provisioningState": "Succeeded", + "paths": [ + "/api", + "/v1/api" + ], + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + } + ] + } + } + ], + "requestRoutingRules": [ + { + "name": "appgwrule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/requestRoutingRules/appgwrule", + "properties": { + "provisioningState": "Succeeded", + "ruleType": "Basic", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl" + }, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + }, + { + "name": "appgwPathBasedRule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/requestRoutingRules/appgwPathBasedRule", + "properties": { + "provisioningState": "Succeeded", + "ruleType": "PathBasedRouting", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhttplistener" + }, + "urlPathMap": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1" + } + } + } + ], + "rewriteRuleSets": [ + { + "name": "rewriteRuleSet1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1", + "properties": { + "provisioningState": "Succeeded", + "rewriteRules": [ + { + "name": "Set X-Forwarded-For", + "ruleSequence": 102, + "conditions": [ + { + "variable": "http_req_Authorization", + "pattern": "^Bearer", + "ignoreCase": true, + "negate": false + } + ], + "actionSet": { + "requestHeaderConfigurations": [ + { + "headerName": "X-Forwarded-For", + "headerValue": "{var_remote-addr}" + } + ], + "responseHeaderConfigurations": [ + { + "headerName": "Strict-Transport-Security", + "headerValue": "max-age=31536000" + } + ] + } + } + ] + } + } + ], + "probes": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AutoApprovedPrivateLinkServicesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AutoApprovedPrivateLinkServicesGet.json new file mode 100644 index 000000000000..1b28fb80e8e1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AutoApprovedPrivateLinkServicesGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-04-01", + "location": "regionName", + "subscriptionId": "subId" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "privateLinkService": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls1" + }, + { + "privateLinkService": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls2" + }, + { + "privateLinkService": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls3" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json new file mode 100644 index 000000000000..1074655bc017 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-04-01", + "location": "regionName", + "subscriptionId": "subId", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "privateLinkService": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls1" + }, + { + "privateLinkService": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls2" + }, + { + "privateLinkService": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls3" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AvailablePrivateEndpointTypesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AvailablePrivateEndpointTypesGet.json index d8af89168a0d..4e1912b75365 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AvailablePrivateEndpointTypesGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AvailablePrivateEndpointTypesGet.json @@ -11,7 +11,7 @@ { "id": "/subscriptions/subId/providers/Microsoft.Network/availablePrivateEndpointTypes/Microsoft.Provider.resourceType", "type": "Microsoft.Network/availablePrivateEndpointTypes", - "serviceName": "Microsoft.Provider/resourceType" + "resourceName": "Microsoft.Provider/resourceType" } ] } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json index 82a5a48c73f6..526286508d95 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json @@ -12,7 +12,7 @@ { "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/availablePrivateEndpointTypes/Microsoft.Provider.resourceType", "type": "Microsoft.Network/availablePrivateEndpointTypes", - "serviceName": "Microsoft.Provider/resourceType" + "resourceName": "Microsoft.Provider/resourceType" } ] } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostPut.json index 4a6b7bf969c4..ae13163921f7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostPut.json @@ -5,6 +5,7 @@ "resourceGroupName": "rg1", "bastionHostName": "bastionhosttenant'", "parameters": { + "location": "West US", "properties": { "ipConfigurations": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/CheckPrivateLinkServiceVisibility.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/CheckPrivateLinkServiceVisibility.json new file mode 100644 index 000000000000..20a055c2c1f6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/CheckPrivateLinkServiceVisibility.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2019-04-01", + "subscriptionId": "subid", + "location": "westus", + "parameters": { + "privateLinkServiceAlias": "mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice" + } + }, + "responses": { + "200": { + "body": { + "visible": true + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json new file mode 100644 index 000000000000..bf14cf2cc546 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2019-04-01", + "subscriptionId": "subid", + "location": "westus", + "resourceGroupName": "rg1", + "parameters": { + "privateLinkServiceAlias": "mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice" + } + }, + "responses": { + "200": { + "body": { + "visible": true + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitARPTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitARPTableList.json index e5452435f387..94a19728ec37 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitARPTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitARPTableList.json @@ -9,24 +9,17 @@ }, "responses": { "200": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] + "body": { + "value": [ + { + "age": 0, + "interface": "Microsoft", + "ipAddress": "IPAddress", + "macAddress": "macAddress" + } + ] + } }, - "202": { - "value": [ - { - "age": 0, - "interface": "Microsoft", - "ipAddress": "IPAddress", - "macAddress": "macAddress" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitAuthorizationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitAuthorizationGet.json index 73153e99471f..cb577c79d3c0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitAuthorizationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitAuthorizationGet.json @@ -8,15 +8,17 @@ }, "responses": { "200": { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" - }, - "type": "Microsoft.Network/expressRouteCircuits/authorizations" + "body": { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + }, + "type": "Microsoft.Network/expressRouteCircuits/authorizations" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitAuthorizationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitAuthorizationList.json index 560ef0033ebc..cfad7a041878 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitAuthorizationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitAuthorizationList.json @@ -7,18 +7,20 @@ }, "responses": { "200": { - "value": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authKey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json index bb6c5beecc5f..fd38e564e782 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json @@ -14,7 +14,7 @@ }, "properties": { "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10 } @@ -32,7 +32,7 @@ "peerings": [], "authorizations": [], "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10, "circuitProvisioningState": "Enabled", @@ -59,7 +59,7 @@ "peerings": [], "authorizations": [], "expressRoutePort": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" }, "bandwidthInGbps": 10, "circuitProvisioningState": "Enabled", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitListByResourceGroup.json index 2c3adaeee700..ff01e4edbca5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitListByResourceGroup.json @@ -6,86 +6,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitListBySubscription.json index ba37e31050be..5bcabb57a13b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitListBySubscription.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitListBySubscription.json @@ -5,86 +5,88 @@ }, "responses": { "200": { - "value": [ - { - "name": "circuitName1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", - "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "262effd3-248d-4754-9068-0a89260dd918", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "113", - "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", - "serviceProviderProvisioningState": "Provisioned" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" - } - }, - { - "name": "circuitName2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "type": "Microsoft.Network/expressRouteCircuits", - "location": "westus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", - "peerings": [], - "authorizations": [ - { - "name": "MyAuthorization2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", - "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", - "properties": { - "provisioningState": "Succeeded", - "authorizationKey": "authkey", - "authorizationUseStatus": "Available" + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "47853fd2-9261-4670-b7c3-2debcf9b88da", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } } - } - ], - "serviceProviderProperties": { - "serviceProviderName": "providerName", - "peeringLocation": "peeringLocation", - "bandwidthInMbps": 200 + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" }, - "circuitProvisioningState": "Enabled", - "allowClassicOperations": false, - "gatewayManagerEtag": "", - "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", - "serviceProviderProvisioningState": "NotProvisioned" - }, - "sku": { - "name": "Standard_MeteredData", - "tier": "Standard", - "family": "MeteredData" + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitPeeringGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitPeeringGet.json index e45f22b4799e..57dbafe2a051 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitPeeringGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitPeeringGet.json @@ -8,52 +8,54 @@ }, "responses": { "200": { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } + }, + "routeFilter": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName" } }, - "routeFilter": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName" - } - }, - "type": "Microsoft.Network/expressRouteCircuits/peerings" + "type": "Microsoft.Network/expressRouteCircuits/peerings" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitPeeringList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitPeeringList.json index 153e9069be3b..71f82bec3fa2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitPeeringList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitPeeringList.json @@ -7,80 +7,82 @@ }, "responses": { "200": { - "value": [ - { - "name": "MicrosoftPeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "MicrosoftPeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "123.0.0.0/30", - "secondaryPeerAddressPrefix": "123.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 300, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "microsoftPeeringConfig": { - "advertisedPublicPrefixes": [ - "123.1.0.0/24" - ], - "advertisedCommunities": [], - "advertisedPublicPrefixesState": "ValidationNeeded", - "customerASN": 23, - "legacyMode": 0, - "routingRegistryName": "ARIN" - }, - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "body": { + "value": [ + { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", "microsoftPeeringConfig": { "advertisedPublicPrefixes": [ - "3FFE:FFFF:0:CD31::/120" + "123.1.0.0/24" ], "advertisedCommunities": [], "advertisedPublicPrefixesState": "ValidationNeeded", "customerASN": 23, "legacyMode": 0, "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } + }, + "expressRouteConnection": "" + } + }, + { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "10.0.0.0/30", + "secondaryPeerAddressPrefix": "10.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled" + }, + "expressRouteConnection": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" } - }, - "expressRouteConnection": "" - } - }, - { - "name": "AzurePrivatePeering", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", - "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", - "properties": { - "provisioningState": "Succeeded", - "peeringType": "AzurePrivatePeering", - "azureASN": 12076, - "peerASN": 100, - "primaryPeerAddressPrefix": "10.0.0.0/30", - "secondaryPeerAddressPrefix": "10.0.0.4/30", - "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", - "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", - "state": "Enabled", - "vlanId": 200, - "gatewayManagerEtag": "103", - "lastModifiedBy": "Customer", - "ipv6PeeringConfig": { - "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", - "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", - "state": "Enabled" - }, - "expressRouteConnection": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitPeeringStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitPeeringStats.json index d542125582a7..6505b9dbf304 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitPeeringStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitPeeringStats.json @@ -8,10 +8,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitRouteTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitRouteTableList.json index 05536fd8b56d..f4de8eb03df1 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitRouteTableList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitRouteTableList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] + "body": { + "value": [ + { + "network": "", + "nextHop": "", + "locPrf": "", + "weight": 0, + "path": "" + } + ] + } }, - "202": { - "value": [ - { - "network": "", - "nextHop": "", - "locPrf": "", - "weight": 0, - "path": "" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitRouteTableSummaryList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitRouteTableSummaryList.json index 80b8c5be877c..a88eef1993f7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitRouteTableSummaryList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitRouteTableSummaryList.json @@ -9,26 +9,18 @@ }, "responses": { "200": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] + "body": { + "value": [ + { + "neighbor": "100.65.171.1", + "v": 4, + "as": 9583, + "upDown": "never", + "statePfxRcd": "Idle" + } + ] + } }, - "202": { - "value": [ - { - "neighbor": "100.65.171.1", - "v": 4, - "as": 9583, - "upDown": "never", - "statePfxRcd": "Idle" - } - ] - } + "202": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitStats.json index 8d85afba1c00..d22100de1dc2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitStats.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteCircuitStats.json @@ -7,10 +7,12 @@ }, "responses": { "200": { - "primaryBytesIn": 537408, - "primaryBytesOut": 44032550, - "secondaryBytesIn": 0, - "secondaryBytesOut": 39002500 + "body": { + "primaryBytesIn": 537408, + "primaryBytesOut": 44032550, + "secondaryBytesIn": 0, + "secondaryBytesOut": 39002500 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteConnectionCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteConnectionCreate.json index 13ebafaba763..bc450e5456c2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteConnectionCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteConnectionCreate.json @@ -1,18 +1,18 @@ { "parameters": { - "expressRouteGatewayName": "expressRouteGatewayName", + "expressRouteGatewayName": "gateway-2", "resourceGroupName": "resourceGroupName", "api-version": "2019-04-01", "subscriptionId": "subid", "connectionName": "connectionName", "putExpressRouteConnectionParameters": { - "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName", "name": "connectionName", "properties": { "routingWeight": 2, "authorizationKey": "authorizationKey", "expressRouteCircuitPeering": { - "id": "/subscriptions/subid2/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" } } } @@ -21,11 +21,11 @@ "200": { "body": { "name": "connectionName", - "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName", "properties": { "provisioningState": "Provisioned", "expressRouteCircuitPeering": { - "id": "/subscriptions/subid2/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" }, "authorizationKey": "authorizationKey", "routingWeight": 2 @@ -35,11 +35,11 @@ "201": { "body": { "name": "connectionName", - "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName", "properties": { "provisioningState": "Provisioned", "expressRouteCircuitPeering": { - "id": "/subscriptions/subid2/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" }, "authorizationKey": "authorizationKey", "routingWeight": 2 diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteLinkGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteLinkGet.json index d74b36fa28ae..b6d9eff817f2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteLinkGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteLinkGet.json @@ -10,7 +10,7 @@ "200": { "body": { "name": "linkName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/linkName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/linkName", "properties": { "provisioningState": "Succeeded", "routerName": "router1", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteLinkList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteLinkList.json index c0ad819729da..d81deae34882 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteLinkList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteLinkList.json @@ -11,7 +11,7 @@ "value": [ { "name": "link1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "properties": { "provisioningState": "Succeeded", "routerName": "router1", @@ -24,7 +24,7 @@ }, { "name": "link2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "properties": { "provisioningState": "Succeeded", "routerName": "router2", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortCreate.json index cd69ef6100e9..7a3e54af8cc2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortCreate.json @@ -17,8 +17,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -31,7 +31,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -44,7 +44,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", @@ -64,8 +64,8 @@ "201": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -78,7 +78,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -91,7 +91,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortGet.json index 56d84fc3340a..cc65c148a604 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortGet.json @@ -9,8 +9,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -23,7 +23,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -36,7 +36,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortList.json index 89f2f592dcc4..bf1d9a1b3571 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortList.json @@ -9,8 +9,8 @@ "value": [ { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -23,7 +23,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -36,7 +36,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortListByResourceGroup.json index 74eb815c3b91..d1cda01a7318 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortListByResourceGroup.json @@ -10,8 +10,8 @@ "value": [ { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -24,7 +24,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -37,7 +37,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortUpdateLink.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortUpdateLink.json index 1773ba30db22..e809570f4b7a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortUpdateLink.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortUpdateLink.json @@ -25,8 +25,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -39,7 +39,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -52,7 +52,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", @@ -72,8 +72,8 @@ "201": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -86,7 +86,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -99,7 +99,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortUpdateTags.json index f3fcd01f430d..3517823b665b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortUpdateTags.json @@ -15,8 +15,8 @@ "200": { "body": { "name": "portName", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName", - "type": "Microsofot.Network/expressRoutePorts", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", "location": "westus", "properties": { "provisioningState": "Succeeded", @@ -29,7 +29,7 @@ "allocationDate": "Friday, July 1, 2018", "links": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", "name": "link1", "properties": { "provisioningState": "Succeeded", @@ -42,7 +42,7 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/expressRoutePorts/portName/links/link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", "name": "link2", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortsLocationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortsLocationGet.json index 30079117d2de..c4f03137c8f2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortsLocationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortsLocationGet.json @@ -8,8 +8,8 @@ "200": { "body": { "name": "locationName", - "id": "/subscriptions/subid/providers/Microsofot.Network/expressRoutePortsLocations/locationName", - "type": "Microsofot.Network/expressRoutePortsLocations", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", "location": "westus", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortsLocationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortsLocationList.json index 25d7d1537668..548ae310aa2f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortsLocationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRoutePortsLocationList.json @@ -9,8 +9,8 @@ "value": [ { "name": "locationName", - "id": "/subscriptions/subid/providers/Microsofot.Network/expressRoutePortsLocations/locationName", - "type": "Microsofot.Network/expressRoutePortsLocations", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", "location": "westus", "properties": { "provisioningState": "Succeeded", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteProviderList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteProviderList.json index 6829d51b3d5a..c94b1263f5b4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteProviderList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ExpressRouteProviderList.json @@ -5,54 +5,56 @@ }, "responses": { "200": { - "value": [ - { - "name": "providerName", - "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", - "type": "Microsoft.Network/expressRouteServiceProviders", - "properties": { - "provisioningState": "Succeeded", - "peeringLocations": [ - "peeringLocation1", - "peeringLocation2" - ], - "bandwidthsOffered": [ - { - "offerName": "50Mbps", - "valueInMbps": 50 - }, - { - "offerName": "100Mbps", - "valueInMbps": 100 - }, - { - "offerName": "200Mbps", - "valueInMbps": 200 - }, - { - "offerName": "500Mbps", - "valueInMbps": 500 - }, - { - "offerName": "1Gbps", - "valueInMbps": 1000 - }, - { - "offerName": "2Gbps", - "valueInMbps": 2000 - }, - { - "offerName": "5Gbps", - "valueInMbps": 5000 - }, - { - "offerName": "10Gbps", - "valueInMbps": 10000 - } - ] + "body": { + "value": [ + { + "name": "providerName", + "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", + "type": "Microsoft.Network/expressRouteServiceProviders", + "properties": { + "provisioningState": "Succeeded", + "peeringLocations": [ + "peeringLocation1", + "peeringLocation2" + ], + "bandwidthsOffered": [ + { + "offerName": "50Mbps", + "valueInMbps": 50 + }, + { + "offerName": "100Mbps", + "valueInMbps": 100 + }, + { + "offerName": "200Mbps", + "valueInMbps": 200 + }, + { + "offerName": "500Mbps", + "valueInMbps": 500 + }, + { + "offerName": "1Gbps", + "valueInMbps": 1000 + }, + { + "offerName": "2Gbps", + "valueInMbps": 2000 + }, + { + "offerName": "5Gbps", + "valueInMbps": 5000 + }, + { + "offerName": "10Gbps", + "valueInMbps": 10000 + } + ] + } } - } - ] + ] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/HubVirtualNetworkConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/HubVirtualNetworkConnectionGet.json index 164a5d64d711..31a67e4f92d7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/HubVirtualNetworkConnectionGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/HubVirtualNetworkConnectionGet.json @@ -10,12 +10,12 @@ "200": { "body": { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/HubVirtualNetworkConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/HubVirtualNetworkConnectionList.json index a0d67d46b6ca..a76d3193944f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/HubVirtualNetworkConnectionList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/HubVirtualNetworkConnectionList.json @@ -11,12 +11,12 @@ "body": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -24,12 +24,12 @@ }, { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/vnet2" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnGatewayPut.json index 362f45c9a5dc..fb535c02f2a7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnGatewayPut.json @@ -32,68 +32,72 @@ }, "responses": { "200": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "customRoutes": { - "addressPrefixes": [ - "101.168.0.6/32" - ] - }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 0, - "allocatedIpAddresses": [], - "totalIngressBytesTransferred": 0, - "totalEgressBytesTransferred": 0 + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } } } }, "201": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "customRoutes": { - "addressPrefixes": [ - "101.168.0.6/32" - ] - }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 0, - "allocatedIpAddresses": [], - "totalIngressBytesTransferred": 0, - "totalEgressBytesTransferred": 0 + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnGatewayUpdateTags.json index 53e12737cb5c..4bfde6e0358c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnGatewayUpdateTags.json @@ -13,82 +13,86 @@ }, "responses": { "200": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "customRoutes": { - "addressPrefixes": [ - "101.168.0.6/32" - ] + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 2, - "allocatedIpAddresses": [ - "1.1.1.1", - "2.2.2.2" - ], - "totalIngressBytesTransferred": 2000, - "totalEgressBytesTransferred": 3000 + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } } } }, "201": { - "name": "p2sVpnGateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/p2sVpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "p2SVpnServerConfiguration": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" - }, - "vpnClientAddressPool": { - "addressPrefixes": [ - "101.3.0.0/16" - ] - }, - "customRoutes": { - "addressPrefixes": [ - "101.168.0.6/32" - ] + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "vpnGatewayScaleUnit": 1, - "vpnClientConnectionHealth": { - "vpnClientConnectionsCount": 2, - "allocatedIpAddresses": [ - "1.1.1.1", - "2.2.2.2" - ], - "totalIngressBytesTransferred": 2000, - "totalEgressBytesTransferred": 3000 + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnServerConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnServerConfigurationGet.json index 2691ff6d53eb..892df12430ef 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnServerConfigurationGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnServerConfigurationGet.json @@ -8,78 +8,80 @@ }, "responses": { "200": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCer1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCer1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCer1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCer1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnServerConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnServerConfigurationList.json index 75c5080fe34e..f976288e9f0d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnServerConfigurationList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnServerConfigurationList.json @@ -48,7 +48,7 @@ "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" }, "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" } @@ -74,7 +74,7 @@ "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" }, "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnServerConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnServerConfigurationPut.json index 73ca41d88602..97c8c6472bb4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnServerConfigurationPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/P2SVpnServerConfigurationPut.json @@ -22,22 +22,6 @@ "pfsGroup": "PFS14" } ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "properties": { - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - } - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "properties": { - "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - } - } - ], "radiusServerAddress": "8.9.9.9", "radiusServerSecret": "123_abc", "p2SVpnServerConfigRadiusServerRootCertificates": [ @@ -47,166 +31,90 @@ "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" } } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "properties": { - "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - } - } ] } } }, "responses": { "200": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } }, "201": { - "name": "p2sVpnServerConfiguration1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "vpnProtocols": [ - "IkeV2" - ], - "vpnClientIpsecPolicies": [ - { - "saLifeTimeSeconds": 86472, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup14", - "pfsGroup": "PFS14" - } - ], - "p2SVpnServerConfigVpnClientRootCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" - } - ], - "p2SVpnServerConfigVpnClientRevokedCertificates": [ - { - "name": "p2sVpnServerConfigVpnClientRevokedCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" - } - ], - "radiusServerAddress": "8.9.9.9", - "radiusServerSecret": "123_abc", - "p2SVpnServerConfigRadiusServerRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusServerRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" - } - ], - "p2SVpnServerConfigRadiusClientRootCertificates": [ - { - "name": "p2sVpnServerConfigRadiusClientRootCert1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "Thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" - } - ] - }, - "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ] + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateEndpointCreateForManualApproval.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateEndpointCreateForManualApproval.json index d7e6f6b87492..c51ed2e20d1b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateEndpointCreateForManualApproval.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateEndpointCreateForManualApproval.json @@ -5,6 +5,7 @@ "resourceGroupName": "rg1", "privateEndpointName": "testPe", "parameters": { + "location": "eastus2euap", "properties": { "manualPrivateLinkServiceConnections": [ { @@ -28,7 +29,7 @@ "body": { "name": "testPe", "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe", - "location": "eastus", + "location": "eastus2euap", "properties": { "provisioningState": "Succeeded", "privateLinkServiceConnections": [], @@ -63,7 +64,7 @@ "body": { "name": "testPe", "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe", - "location": "eastus", + "location": "eastus2euap", "properties": { "provisioningState": "Succeeded", "privateLinkServiceConnections": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceCreate.json index 49dcb96c21a1..09257d72567e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceCreate.json @@ -5,6 +5,7 @@ "resourceGroupName": "rg1", "serviceName": "testPls", "parameters": { + "location": "eastus2euap", "properties": { "visibility": { "subscriptions": [ @@ -24,7 +25,7 @@ "fqdn2", "fqdn3" ], - "loadBalancerFrontendIPConfigurations": [ + "loadBalancerFrontendIpConfigurations": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" } @@ -50,7 +51,7 @@ "body": { "name": "testPls", "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls", - "location": "eastus", + "location": "eastus2euap", "properties": { "provisioningState": "Succeeded", "visibility": { @@ -72,7 +73,7 @@ "fqdn3" ], "alias": "ContosoService.{guid}.azure.privatelinkservice", - "loadBalancerFrontendIPConfigurations": [ + "loadBalancerFrontendIpConfigurations": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" } @@ -102,7 +103,7 @@ "body": { "name": "testPls", "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls", - "location": "eastus", + "location": "eastus2euap", "properties": { "provisioningState": "Succeeded", "visibility": { @@ -124,7 +125,7 @@ "fqdn3" ], "alias": "ContosoService.{guid}.azure.privatelinkservice", - "loadBalancerFrontendIPConfigurations": [ + "loadBalancerFrontendIpConfigurations": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceGet.json index 38a081c87c82..c21831500d5e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceGet.json @@ -33,7 +33,7 @@ "fqdn3" ], "alias": "ContosoService.{guid}.azure.privatelinkservice", - "loadBalancerFrontendIPConfigurations": [ + "loadBalancerFrontendIpConfigurations": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceList.json index 0ee3e3d62f5d..bdb19efe43c4 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceList.json @@ -30,7 +30,7 @@ "fqdn2" ], "alias": "ContosoService.{guid}.azure.privatelinkservice", - "loadBalancerFrontendIPConfigurations": [ + "loadBalancerFrontendIpConfigurations": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb1" } @@ -95,7 +95,7 @@ "fqdn3" ], "alias": "ContosoService.{guid}.azure.privatelinkservice", - "loadBalancerFrontendIPConfigurations": [ + "loadBalancerFrontendIpConfigurations": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb2" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceListAll.json index ccab84e6fb09..f418c7d4ba0c 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceListAll.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceListAll.json @@ -33,7 +33,7 @@ "fqdn3" ], "alias": "ContosoService.{guid}.azure.privatelinkservice", - "loadBalancerFrontendIPConfigurations": [ + "loadBalancerFrontendIpConfigurations": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb1" } @@ -96,7 +96,7 @@ "fqdn2" ], "alias": "ContosoService.{guid}.azure.privatelinkservice", - "loadBalancerFrontendIPConfigurations": [ + "loadBalancerFrontendIpConfigurations": [ { "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb2" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json index c4094a353d7b..afcc70022124 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json @@ -19,6 +19,19 @@ } }, "responses": { - "200": {} + "200": { + "body": { + "name": "testPlePeConnection", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "approved it for some reason." + } + } + } + } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixCreateCustomizedValues.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixCreateCustomizedValues.json index e9f3cd342ce4..5c1402551759 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixCreateCustomizedValues.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixCreateCustomizedValues.json @@ -8,6 +8,7 @@ "1" ], "parameters": { + "location": "westus", "properties": { "publicIPAddressVersion": "IPv4", "prefixLength": 30 @@ -22,14 +23,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -41,14 +46,18 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "zones": [ "1" ], "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixCreateDefaults.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixCreateDefaults.json index 7311ddb8658b..3e56e7d73858 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixCreateDefaults.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixCreateDefaults.json @@ -4,18 +4,30 @@ "subscriptionId": "subid", "resourceGroupName": "rg1", "publicIpPrefixName": "test-ipprefix", - "parameters": {} + "parameters": { + "location": "westus", + "sku": { + "name": "Standard" + }, + "properties": { + "prefixLength": 30 + } + } }, "responses": { "200": { "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" @@ -27,11 +39,15 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] }, "sku": { "name": "Standard" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixGet.json index dfab5e67b6c3..0e55c61a03b3 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixGet.json @@ -10,9 +10,11 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "192.168.254.2/30", @@ -23,6 +25,9 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixList.json index f795ee31dc43..9ac5e08bc6a8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixList.json @@ -11,9 +11,11 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "40.85.154.2/30", @@ -24,17 +26,26 @@ } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix03", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/ipprefix03", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 31, - "ipPrefix": "40.85.153.2/31" + "ipPrefix": "40.85.153.2/31", + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixListAll.json index 55da83ee5119..bfea8f02749e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixListAll.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixListAll.json @@ -10,31 +10,64 @@ { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", "prefixLength": 30, "ipPrefix": "41.85.154.247/30", + "ipTags": [], "publicIPAddresses": [ { "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" } ] }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" }, { "name": "ipprefix01", "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPPrefixes/ipprefix01", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "ipPrefix": "40.85.154.247/30", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "prefixLength": 30, + "ipTags": [] + }, + "sku": { + "name": "Standard" }, "type": "Microsoft.Network/publicIPPrefixes" + }, + { + "name": "pfx", + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/publicIPPrefixes/pfx", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/publicIPPrefixes", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "ipPrefix": "25.101.84.16/30", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipTags": [], + "loadBalancerFrontendIpConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/loadBalancers/lb-pfx/frontendIPConfigurations/ipconfig1" + } + }, + "sku": { + "name": "Standard" + } } ] } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixUpdateTags.json index 11e954724c55..1ad71d7a1f9d 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/PublicIpPrefixUpdateTags.json @@ -16,16 +16,23 @@ "body": { "name": "test-ipprefix", "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "westus", "properties": { "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", "publicIPAddressVersion": "IPv4", - "prefixLength": 30 + "ipPrefix": "40.85.154.247/30", + "prefixLength": 30, + "ipTags": [] }, "tags": { "tag1": "value1", "tag2": "value2" }, + "sku": { + "name": "Standard" + }, "type": "Microsoft.Network/publicIPPrefixes" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterCreate.json index 61ef1d87efdf..20a284485e7f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterCreate.json @@ -30,11 +30,11 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -42,7 +42,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -62,11 +62,11 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -74,7 +74,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterGet.json index f8c667bf2f7e..c10305191046 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterGet.json @@ -8,11 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterList.json index c40b01dd6442..72768938d84f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterList.json @@ -8,11 +8,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -20,7 +20,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterListByResourceGroup.json index 4a1371bd10cb..f9589ead1672 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterListByResourceGroup.json @@ -9,11 +9,11 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -21,7 +21,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleCreate.json index 243cc55f7784..2531eadff2b2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleCreate.json @@ -19,7 +19,7 @@ "responses": { "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { @@ -35,7 +35,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleGet.json index 8e00bffd3527..85785e33f1df 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleListByRouteFilter.json index 9dc025964ecf..3b1ebbbad377 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleListByRouteFilter.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleListByRouteFilter.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleUpdate.json index c8f3718dbafd..f0696917114f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterRuleUpdate.json @@ -19,7 +19,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterUpdate.json index 4f8c786cef0a..d1b6dac16657 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/RouteFilterUpdate.json @@ -7,31 +7,17 @@ "routeFilterParameters": { "tags": { "key1": "value1" - }, - "properties": { - "rules": [ - { - "name": "ruleName", - "properties": { - "access": "Allow", - "routeFilterRuleType": "Community", - "communities": [ - "12076:5030" - ] - } - } - ] } } }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "location": "West US", "name": "filterName", - "type": "Microsofot.Network/routeFilters", + "type": "Microsoft.Network/routeFilters", "tags": { "key1": "value1" }, @@ -39,7 +25,7 @@ "provisioningState": "Succeeded", "rules": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/routeFilters/filterName/routeFilterRules/ruleName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "name": "ruleName", "properties": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ServiceCommunityList.json index 0e88211bc5db..1b05770b9cfc 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ServiceCommunityList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/ServiceCommunityList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/skype", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", "name": "skype", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "skype", "bgpCommunities": [ @@ -29,9 +29,9 @@ } }, { - "id": "/subscriptions/subid/providers/Microsofot.Network/bgpServiceCommunities/exchange", + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", "name": "exchange", - "type": "Microsofot.Network/bgpServiceCommunities", + "type": "Microsoft.Network/bgpServiceCommunities", "properties": { "serviceName": "exchange", "bgpCommunities": [ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VirtualHubList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VirtualHubList.json index d63b0b37fc66..b0514391ddd7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VirtualHubList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VirtualHubList.json @@ -21,12 +21,12 @@ "virtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -50,12 +50,12 @@ "virtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VirtualHubListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VirtualHubListByResourceGroup.json index 76c261e72207..e383808497a8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VirtualHubListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VirtualHubListByResourceGroup.json @@ -22,12 +22,12 @@ "virtualNetworkConnections": [ { "name": "connection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualNetworks/SpokeVnet1" + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false @@ -51,12 +51,12 @@ "virtualNetworkConnections": [ { "name": "connection2", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsofot.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", "etag": "w/\\00000000-0000-0000-0000-000000000000\\", "properties": { "provisioningState": "Succeeded", "remoteVirtualNetwork": { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsofot.Network/virtualNetworks/SpokeVnet2" + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" }, "allowHubToRemoteVnetTransit": true, "allowRemoteVnetToUseHubVnetGateways": false diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json index cf39d8aaa5bb..68f9e9325007 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json @@ -7,14 +7,16 @@ }, "responses": { "200": { - "saLifeTimeSeconds": 86473, - "saDataSizeKilobytes": 429497, - "ipsecEncryption": "AES256", - "ipsecIntegrity": "SHA256", - "ikeEncryption": "AES256", - "ikeIntegrity": "SHA384", - "dhGroup": "DHGroup2", - "pfsGroup": "PFS2" + "body": { + "saLifeTimeSeconds": 86473, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup2", + "pfsGroup": "PFS2" + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VpnConnectionPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VpnConnectionPut.json index 1fcf79f8234c..7584f68bfa32 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VpnConnectionPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VpnConnectionPut.json @@ -17,47 +17,51 @@ }, "responses": { "200": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "vpnConnectionProtocolType": "IKEv1", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "usePolicyBasedTrafficSelectors": false, - "useLocalAzureIpAddress": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "vpnConnectionProtocolType": "IKEv1", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "usePolicyBasedTrafficSelectors": false, + "useLocalAzureIpAddress": false, + "ipsecPolicies": [] + } } }, "201": { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "vpnConnectionProtocolType": "IKEv1", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "usePolicyBasedTrafficSelectors": false, - "useLocalAzureIpAddress": false, - "ipsecPolicies": [] + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "vpnConnectionProtocolType": "IKEv1", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "usePolicyBasedTrafficSelectors": false, + "useLocalAzureIpAddress": false, + "ipsecPolicies": [] + } } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VpnGatewayPut.json index 997bced17a2b..99096556f03e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VpnGatewayPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VpnGatewayPut.json @@ -34,82 +34,86 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "useLocalAzureIpAddress": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "useLocalAzureIpAddress": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" - }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidth": 100, - "sharedKey": "key", - "enableBgp": false, - "useLocalAzureIpAddress": false, - "ipsecPolicies": [] + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "useLocalAzureIpAddress": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VpnGatewayUpdateTags.json index 8ac4a427e4d7..b7cee97a4e95 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VpnGatewayUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/VpnGatewayUpdateTags.json @@ -13,96 +13,100 @@ }, "responses": { "200": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } }, "201": { - "name": "gateway1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "location": "West US", - "type": "Microsoft.Network/vpnGateways", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "virtualHub": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" }, - "connections": [ - { - "name": "vpnConnection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", - "etag": "w/\\00000000-0000-0000-0000-000000000000\\", - "properties": { - "provisioningState": "Succeeded", - "remoteVpnSite": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" - }, - "connectionStatus": "Connected", - "ingressBytesTransferred": 0, - "egressBytesTransferred": 0, - "routingWeight": 0, - "connectionBandwidthInMbps": 100, - "sharedKey": "key", - "enableBgp": false, - "ipsecPolicies": [] + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidthInMbps": 100, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "policies": { + "allowBranchToBranchTraffic": true, + "allowVnetToVnetTraffic": false } - ], - "bgpSettings": { - "asn": 65515, - "bgpPeeringAddress": "10.0.1.30", - "peerWeight": 0 - }, - "policies": { - "allowBranchToBranchTraffic": true, - "allowVnetToVnetTraffic": false } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/privateEndpoint.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/privateEndpoint.json index c447e80d19bb..807ef0d89c20 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/privateEndpoint.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/privateEndpoint.json @@ -303,6 +303,87 @@ "nextLinkName": "nextLink" } } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes": { + "get": { + "operationId": "AvailablePrivateEndpointTypes_List", + "description": "Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the domain name." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.", + "schema": { + "$ref": "#/definitions/AvailablePrivateEndpointTypesResult" + } + } + }, + "x-ms-examples": { + "Get available PrivateEndpoint types": { + "$ref": "./examples/AvailablePrivateEndpointTypesGet.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes": { + "get": { + "operationId": "AvailablePrivateEndpointTypes_ListByResourceGroup", + "description": "Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the domain name." + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.", + "schema": { + "$ref": "#/definitions/AvailablePrivateEndpointTypesResult" + } + } + }, + "x-ms-examples": { + "Get available PrivateEndpoint types in the resource group": { + "$ref": "./examples/AvailablePrivateEndpointTypesResourceGroupGet.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } } }, "definitions": { @@ -420,6 +501,44 @@ } }, "description": "Response for the ListPrivateEndpoints API service call." + }, + "AvailablePrivateEndpointTypesResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AvailablePrivateEndpointType" + }, + "description": "An array of available privateEndpoint type." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "An array of available PrivateEndpoint types." + }, + "AvailablePrivateEndpointType": { + "properties": { + "name": { + "type": "string", + "description": "The name of the service and resource." + }, + "id": { + "type": "string", + "description": "A unique identifier of the AvailablePrivateEndpoint Type resource." + }, + "type": { + "type": "string", + "description": "Resource type." + }, + "resourceName": { + "type": "string", + "description": "The name of the service and resource." + } + }, + "description": "The information of an AvailablePrivateEndpointType." } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/privateLinkService.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/privateLinkService.json index 7743e662bedd..e8fa9661b772 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/privateLinkService.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/privateLinkService.json @@ -345,7 +345,10 @@ ], "responses": { "200": { - "description": "Update successful." + "description": "Update successful. The operation returns the resulting PrivateEndpointConnection resource", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } }, "default": { "description": "Error", @@ -422,6 +425,192 @@ "final-state-via": "location" } } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility": { + "post": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_CheckPrivateLinkServiceVisibility", + "description": "Checks the subscription is visible to private link service", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the domain name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckPrivateLinkServiceVisibilityRequest" + }, + "description": "The request body of CheckPrivateLinkService API call." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns whether the subscription is visible to private link service.", + "schema": { + "$ref": "#/definitions/PrivateLinkServiceVisibility" + } + } + }, + "x-ms-examples": { + "Check private link service visibility": { + "$ref": "./examples/CheckPrivateLinkServiceVisibility.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility": { + "post": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_CheckPrivateLinkServiceVisibilityByResourceGroup", + "description": "Checks the subscription is visible to private link service", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the domain name." + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckPrivateLinkServiceVisibilityRequest" + }, + "description": "The request body of CheckPrivateLinkService API call." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns whether the subscription is visible to private link service.", + "schema": { + "$ref": "#/definitions/PrivateLinkServiceVisibility" + } + } + }, + "x-ms-examples": { + "Check private link service visibility": { + "$ref": "./examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices": { + "get": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_ListAutoApprovedPrivateLinkServices", + "description": "Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the domain name." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.", + "schema": { + "$ref": "#/definitions/AutoApprovedPrivateLinkServicesResult" + } + } + }, + "x-ms-examples": { + "Get list of private link service id that can be linked to a private end point with auto approved": { + "$ref": "./examples/AutoApprovedPrivateLinkServicesGet.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices": { + "get": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_ListAutoApprovedPrivateLinkServicesByResourceGroup", + "description": "Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the domain name." + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.", + "schema": { + "$ref": "#/definitions/AutoApprovedPrivateLinkServicesResult" + } + } + }, + "x-ms-examples": { + "Get list of private link service id that can be linked to a private end point with auto approved": { + "$ref": "./examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } } }, "definitions": { @@ -446,7 +635,7 @@ }, "PrivateLinkServiceProperties": { "properties": { - "loadBalancerFrontendIPConfigurations": { + "loadBalancerFrontendIpConfigurations": { "type": "array", "items": { "$ref": "./loadBalancer.json#/definitions/FrontendIPConfiguration" @@ -631,6 +820,50 @@ } }, "description": "Response for the ListPrivateLinkService API service call." + }, + "CheckPrivateLinkServiceVisibilityRequest": { + "properties": { + "privateLinkServiceAlias": { + "type": "string", + "description": "The alias of the private link service." + } + }, + "description": "Request body of the CheckPrivateLinkServiceVisibility API service call." + }, + "PrivateLinkServiceVisibility": { + "properties": { + "visible": { + "type": "boolean", + "description": "Private Link Service Visibility (True/False)." + } + }, + "description": "Response for the CheckPrivateLinkServiceVisibility API service call." + }, + "AutoApprovedPrivateLinkServicesResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AutoApprovedPrivateLinkService" + }, + "description": "An array of auto approved private link service." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "An array of private link service id that can be linked to a private end point with auto approved." + }, + "AutoApprovedPrivateLinkService": { + "properties": { + "privateLinkService": { + "type": "string", + "description": "The id of the private link service resource." + } + }, + "description": "The information of an AutoApprovedPrivateLinkService." } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/publicIpPrefix.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/publicIpPrefix.json index 0fcabd54e0cd..23e7be7824e9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/publicIpPrefix.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/publicIpPrefix.json @@ -370,6 +370,11 @@ }, "description": "The list of all referenced PublicIPAddresses." }, + "loadBalancerFrontendIpConfiguration": { + "readOnly": true, + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference to load balancer frontend IP configuration associated with the public IP prefix." + }, "resourceGuid": { "type": "string", "description": "The resource GUID property of the public IP prefix resource." diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/serviceTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/serviceTags.json index 9dafd19d12e7..62f6acd32f91 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/serviceTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/serviceTags.json @@ -44,7 +44,7 @@ "in": "path", "required": true, "type": "string", - "description": "The location." + "description": "The location that will be used as a reference for version (not as a filter based on location, you will get the list of service tags with prefix details across all regions but limited to the cloud that your subscription belongs to)." }, { "$ref": "./network.json#/parameters/ApiVersionParameter" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/virtualNetwork.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/virtualNetwork.json index 0ddf701b4ae2..80d83143dc79 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/virtualNetwork.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/virtualNetwork.json @@ -1297,6 +1297,14 @@ "provisioningState": { "type": "string", "description": "The provisioning state of the resource." + }, + "privateEndpointNetworkPolicies": { + "type": "string", + "description": "Enable or Disable private end point on the subnet." + }, + "privateLinkServiceNetworkPolicies": { + "type": "string", + "description": "Enable or Disable private link service on the subnet." } }, "description": "Properties of the subnet." diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/applicationGateway.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/applicationGateway.json new file mode 100644 index 000000000000..b77c8d0d95b2 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/applicationGateway.json @@ -0,0 +1,2668 @@ +{ + "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-06-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/applicationGateways/{applicationGatewayName}": { + "delete": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_Delete", + "x-ms-examples": { + "Delete ApplicationGateway": { + "$ref": "./examples/ApplicationGatewayDelete.json" + } + }, + "description": "Deletes the specified application gateway.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "applicationGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the application gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Request successful. Resource with the specified name does not exist." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_Get", + "x-ms-examples": { + "Get ApplicationGateway": { + "$ref": "./examples/ApplicationGatewayGet.json" + } + }, + "description": "Gets the specified application gateway.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "applicationGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the application gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns an ApplicationGateway resource.", + "schema": { + "$ref": "#/definitions/ApplicationGateway" + } + } + } + }, + "put": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_CreateOrUpdate", + "description": "Creates or updates the specified application gateway.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "applicationGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the application gateway." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationGateway" + }, + "description": "Parameters supplied to the create or update application gateway operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting ApplicationGateway resource.", + "schema": { + "$ref": "#/definitions/ApplicationGateway" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting ApplicationGateway resource.", + "schema": { + "$ref": "#/definitions/ApplicationGateway" + } + } + }, + "x-ms-examples": { + "Create Application Gateway": { + "$ref": "./examples/ApplicationGatewayCreate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_UpdateTags", + "x-ms-examples": { + "Update Application Gateway tags": { + "$ref": "./examples/ApplicationGatewayUpdateTags.json" + } + }, + "description": "Updates the specified application gateway tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "applicationGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the application gateway." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update application gateway tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting ApplicationGateway resource.", + "schema": { + "$ref": "#/definitions/ApplicationGateway" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways": { + "get": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_List", + "x-ms-examples": { + "Lists all application gateways in a resource group": { + "$ref": "./examples/ApplicationGatewayList.json" + } + }, + "description": "Lists all application gateways in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of ApplicationGateway resources.", + "schema": { + "$ref": "#/definitions/ApplicationGatewayListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways": { + "get": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_ListAll", + "x-ms-examples": { + "Lists all application gateways in a subscription": { + "$ref": "./examples/ApplicationGatewayListAll.json" + } + }, + "description": "Gets all the application gateways in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of ApplicationGateway resources.", + "schema": { + "$ref": "#/definitions/ApplicationGatewayListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start": { + "post": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_Start", + "x-ms-examples": { + "Start Application Gateway": { + "$ref": "./examples/ApplicationGatewayStart.json" + } + }, + "description": "Starts the specified application gateway.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "applicationGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the application gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation starts the ApplicationGateway resource." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop": { + "post": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_Stop", + "x-ms-examples": { + "Stop Application Gateway": { + "$ref": "./examples/ApplicationGatewayStop.json" + } + }, + "description": "Stops the specified application gateway in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "applicationGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the application gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation stops the ApplicationGateway resource." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth": { + "post": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_BackendHealth", + "description": "Gets the backend health of the specified application gateway in a resource group.", + "x-ms-examples": { + "Get Backend Health": { + "$ref": "./examples/ApplicationGatewayBackendHealthGet.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "applicationGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the application gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands BackendAddressPool and BackendHttpSettings referenced in backend health." + } + ], + "responses": { + "200": { + "description": "Request successful.", + "schema": { + "$ref": "#/definitions/ApplicationGatewayBackendHealth" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/getBackendHealthOnDemand": { + "post": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_BackendHealthOnDemand", + "description": "Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.", + "x-ms-examples": { + "Test Backend Health": { + "$ref": "./examples/ApplicationGatewayBackendHealthTest.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "applicationGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the application gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands BackendAddressPool and BackendHttpSettings referenced in backend health." + }, + { + "name": "probeRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationGatewayOnDemandProbe" + }, + "description": "Request body for on-demand test probe operation." + } + ], + "responses": { + "200": { + "description": "Request successful.", + "schema": { + "$ref": "#/definitions/ApplicationGatewayBackendHealthOnDemand" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableServerVariables": { + "get": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_ListAvailableServerVariables", + "x-ms-examples": { + "Get Available Server Variables": { + "$ref": "./examples/ApplicationGatewayAvailableServerVariablesGet.json" + } + }, + "description": "Lists all available server variables.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of all available server variables.", + "schema": { + "$ref": "#/definitions/ApplicationGatewayAvailableServerVariablesResult" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders": { + "get": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_ListAvailableRequestHeaders", + "x-ms-examples": { + "Get Available Request Headers": { + "$ref": "./examples/ApplicationGatewayAvailableRequestHeadersGet.json" + } + }, + "description": "Lists all available request headers.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of all available request headers.", + "schema": { + "$ref": "#/definitions/ApplicationGatewayAvailableRequestHeadersResult" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders": { + "get": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_ListAvailableResponseHeaders", + "x-ms-examples": { + "Get Available Response Headers": { + "$ref": "./examples/ApplicationGatewayAvailableResponseHeadersGet.json" + } + }, + "description": "Lists all available response headers.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of all available response headers.", + "schema": { + "$ref": "#/definitions/ApplicationGatewayAvailableResponseHeadersResult" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets": { + "get": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_ListAvailableWafRuleSets", + "x-ms-examples": { + "Get Available Waf Rule Sets": { + "$ref": "./examples/ApplicationGatewayAvailableWafRuleSetsGet.json" + } + }, + "description": "Lists all available web application firewall rule sets.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of all available web application firewall rule sets.", + "schema": { + "$ref": "#/definitions/ApplicationGatewayAvailableWafRuleSetsResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default": { + "get": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_ListAvailableSslOptions", + "x-ms-examples": { + "Get Available Ssl Options": { + "$ref": "./examples/ApplicationGatewayAvailableSslOptionsGet.json" + } + }, + "description": "Lists available Ssl options for configuring Ssl policy.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns all available Ssl options for configuring Ssl policy.", + "schema": { + "$ref": "#/definitions/ApplicationGatewayAvailableSslOptions" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies": { + "get": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_ListAvailableSslPredefinedPolicies", + "x-ms-examples": { + "Get Available Ssl Predefined Policies": { + "$ref": "./examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "description": "Lists all SSL predefined policies for configuring Ssl policy.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a lists of all Ssl predefined policies for configuring Ssl policy.", + "schema": { + "$ref": "#/definitions/ApplicationGatewayAvailableSslPredefinedPolicies" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}": { + "get": { + "tags": [ + "ApplicationGateways" + ], + "operationId": "ApplicationGateways_GetSslPredefinedPolicy", + "x-ms-examples": { + "Get Available Ssl Predefined Policy by name": { + "$ref": "./examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json" + } + }, + "description": "Gets Ssl predefined policy with the specified policy name.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "predefinedPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of Ssl predefined policy." + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a Ssl predefined policy with the specified policy name.", + "schema": { + "$ref": "#/definitions/ApplicationGatewaySslPredefinedPolicy" + } + } + } + } + } + }, + "definitions": { + "ApplicationGatewayOnDemandProbe": { + "properties": { + "protocol": { + "$ref": "#/definitions/ApplicationGatewayProtocol", + "description": "The protocol used for the probe." + }, + "host": { + "type": "string", + "description": "Host name to send the probe to." + }, + "path": { + "type": "string", + "description": "Relative path of probe. Valid path starts from '/'. Probe is sent to ://:." + }, + "timeout": { + "type": "integer", + "format": "int32", + "description": "The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable values are from 1 second to 86400 seconds." + }, + "pickHostNameFromBackendHttpSettings": { + "type": "boolean", + "description": "Whether the host header should be picked from the backend http settings. Default value is false." + }, + "match": { + "$ref": "#/definitions/ApplicationGatewayProbeHealthResponseMatch", + "description": "Criterion for classifying a healthy probe response." + }, + "backendAddressPool": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of backend pool of application gateway to which probe request will be sent." + }, + "backendHttpSettings": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of backend http setting of application gateway to be used for test probe." + } + }, + "description": "Details of on demand test probe request." + }, + "ApplicationGatewayBackendHealthOnDemand": { + "properties": { + "backendAddressPool": { + "$ref": "#/definitions/ApplicationGatewayBackendAddressPool", + "description": "Reference of an ApplicationGatewayBackendAddressPool resource." + }, + "backendHealthHttpSettings": { + "$ref": "#/definitions/ApplicationGatewayBackendHealthHttpSettings", + "description": "Application gateway BackendHealthHttp settings." + } + }, + "description": "Result of on demand test probe." + }, + "ApplicationGatewayBackendHealth": { + "properties": { + "backendAddressPools": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayBackendHealthPool" + }, + "description": "A list of ApplicationGatewayBackendHealthPool resources." + } + }, + "description": "Response for ApplicationGatewayBackendHealth API service call." + }, + "ApplicationGatewayBackendHealthPool": { + "properties": { + "backendAddressPool": { + "$ref": "#/definitions/ApplicationGatewayBackendAddressPool", + "description": "Reference of an ApplicationGatewayBackendAddressPool resource." + }, + "backendHttpSettingsCollection": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayBackendHealthHttpSettings" + }, + "description": "List of ApplicationGatewayBackendHealthHttpSettings resources." + } + }, + "description": "Application gateway BackendHealth pool." + }, + "ApplicationGatewayBackendHealthHttpSettings": { + "properties": { + "backendHttpSettings": { + "$ref": "#/definitions/ApplicationGatewayBackendHttpSettings", + "description": "Reference of an ApplicationGatewayBackendHttpSettings resource." + }, + "servers": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayBackendHealthServer" + }, + "description": "List of ApplicationGatewayBackendHealthServer resources." + } + }, + "description": "Application gateway BackendHealthHttp settings." + }, + "ApplicationGatewayBackendHealthServer": { + "properties": { + "address": { + "type": "string", + "description": "IP address or FQDN of backend server." + }, + "ipConfiguration": { + "$ref": "./networkInterface.json#/definitions/NetworkInterfaceIPConfiguration", + "description": "Reference of IP configuration of backend server." + }, + "health": { + "type": "string", + "description": "Health of backend server.", + "enum": [ + "Unknown", + "Up", + "Down", + "Partial", + "Draining" + ], + "x-ms-enum": { + "name": "ApplicationGatewayBackendHealthServerHealth", + "modelAsString": true + } + }, + "healthProbeLog": { + "type": "string", + "description": "Health Probe Log." + } + }, + "description": "Application gateway backendhealth http settings." + }, + "ApplicationGatewaySku": { + "properties": { + "name": { + "type": "string", + "description": "Name of an application gateway SKU.", + "enum": [ + "Standard_Small", + "Standard_Medium", + "Standard_Large", + "WAF_Medium", + "WAF_Large", + "Standard_v2", + "WAF_v2" + ], + "x-ms-enum": { + "name": "ApplicationGatewaySkuName", + "modelAsString": true + } + }, + "tier": { + "type": "string", + "description": "Tier of an application gateway.", + "enum": [ + "Standard", + "WAF", + "Standard_v2", + "WAF_v2" + ], + "x-ms-enum": { + "name": "ApplicationGatewayTier", + "modelAsString": true + } + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "Capacity (instance count) of an application gateway." + } + }, + "description": "SKU of an application gateway." + }, + "ApplicationGatewaySslPolicy": { + "properties": { + "disabledSslProtocols": { + "type": "array", + "description": "Ssl protocols to be disabled on application gateway.", + "items": { + "type": "string", + "$ref": "#/definitions/ProtocolsEnum" + } + }, + "policyType": { + "type": "string", + "description": "Type of Ssl Policy.", + "enum": [ + "Predefined", + "Custom" + ], + "x-ms-enum": { + "name": "ApplicationGatewaySslPolicyType", + "modelAsString": true + } + }, + "policyName": { + "$ref": "#/definitions/PolicyNameEnum", + "description": "Name of Ssl predefined policy." + }, + "cipherSuites": { + "type": "array", + "items": { + "$ref": "#/definitions/CipherSuitesEnum" + }, + "description": "Ssl cipher suites to be enabled in the specified order to application gateway." + }, + "minProtocolVersion": { + "$ref": "#/definitions/ProtocolsEnum", + "description": "Minimum version of Ssl protocol to be supported on application gateway." + } + }, + "description": "Application Gateway Ssl policy." + }, + "ApplicationGatewayIPConfigurationPropertiesFormat": { + "properties": { + "subnet": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of the subnet resource. A subnet from where application gateway gets its private address." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the application gateway subnet resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of IP configuration of an application gateway." + }, + "ApplicationGatewayIPConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayIPConfigurationPropertiesFormat", + "description": "Properties of the application gateway IP configuration." + }, + "name": { + "type": "string", + "description": "Name of the IP configuration that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "IP configuration of an application gateway. Currently 1 public and 1 private IP configuration is allowed." + }, + "ApplicationGatewayAuthenticationCertificatePropertiesFormat": { + "properties": { + "data": { + "type": "string", + "description": "Certificate public data." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the authentication certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Authentication certificates properties of an application gateway." + }, + "ApplicationGatewayAuthenticationCertificate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayAuthenticationCertificatePropertiesFormat", + "description": "Properties of the application gateway authentication certificate." + }, + "name": { + "type": "string", + "description": "Name of the authentication certificate that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Authentication certificates of an application gateway." + }, + "ApplicationGatewayTrustedRootCertificatePropertiesFormat": { + "properties": { + "data": { + "type": "string", + "description": "Certificate public data." + }, + "keyVaultSecretId": { + "type": "string", + "description": "Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate' object stored in KeyVault." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the trusted root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Trusted Root certificates properties of an application gateway." + }, + "ApplicationGatewayTrustedRootCertificate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayTrustedRootCertificatePropertiesFormat", + "description": "Properties of the application gateway trusted root certificate." + }, + "name": { + "type": "string", + "description": "Name of the trusted root certificate that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Trusted Root certificates of an application gateway." + }, + "ApplicationGatewaySslCertificatePropertiesFormat": { + "properties": { + "data": { + "type": "string", + "description": "Base-64 encoded pfx certificate. Only applicable in PUT Request." + }, + "password": { + "type": "string", + "description": "Password for the pfx file specified in data. Only applicable in PUT request." + }, + "publicCertData": { + "type": "string", + "description": "Base-64 encoded Public cert data corresponding to pfx specified in data. Only applicable in GET request." + }, + "keyVaultSecretId": { + "type": "string", + "description": "Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate' object stored in KeyVault." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the SSL certificate resource Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of SSL certificates of an application gateway." + }, + "ApplicationGatewaySslCertificate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewaySslCertificatePropertiesFormat", + "description": "Properties of the application gateway SSL certificate." + }, + "name": { + "type": "string", + "description": "Name of the SSL certificate that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "SSL certificates of an application gateway." + }, + "ApplicationGatewayFrontendIPConfigurationPropertiesFormat": { + "properties": { + "privateIPAddress": { + "type": "string", + "description": "PrivateIPAddress of the network interface IP Configuration." + }, + "privateIPAllocationMethod": { + "$ref": "./network.json#/definitions/IPAllocationMethod", + "description": "The private IP address allocation method." + }, + "subnet": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of the subnet resource." + }, + "publicIPAddress": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of the PublicIP resource." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of Frontend IP configuration of an application gateway." + }, + "ApplicationGatewayFrontendIPConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayFrontendIPConfigurationPropertiesFormat", + "description": "Properties of the application gateway frontend IP configuration." + }, + "name": { + "type": "string", + "description": "Name of the frontend IP configuration that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Frontend IP configuration of an application gateway." + }, + "ApplicationGatewayFrontendPortPropertiesFormat": { + "properties": { + "port": { + "type": "integer", + "format": "int32", + "description": "Frontend port." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the frontend port resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of Frontend port of an application gateway." + }, + "ApplicationGatewayFrontendPort": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayFrontendPortPropertiesFormat", + "description": "Properties of the application gateway frontend port." + }, + "name": { + "type": "string", + "description": "Name of the frontend port that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Frontend port of an application gateway." + }, + "ApplicationGatewayBackendAddress": { + "properties": { + "fqdn": { + "type": "string", + "description": "Fully qualified domain name (FQDN)." + }, + "ipAddress": { + "type": "string", + "description": "IP address." + } + }, + "description": "Backend address of an application gateway." + }, + "ApplicationGatewayBackendAddressPoolPropertiesFormat": { + "properties": { + "backendIPConfigurations": { + "type": "array", + "items": { + "$ref": "./networkInterface.json#/definitions/NetworkInterfaceIPConfiguration" + }, + "description": "Collection of references to IPs defined in network interfaces." + }, + "backendAddresses": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayBackendAddress" + }, + "description": "Backend addresses." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the backend address pool resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of Backend Address Pool of an application gateway." + }, + "ApplicationGatewayBackendAddressPool": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayBackendAddressPoolPropertiesFormat", + "description": "Properties of the application gateway backend address pool." + }, + "name": { + "type": "string", + "description": "Name of the backend address pool that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Backend Address Pool of an application gateway." + }, + "ApplicationGatewayBackendHttpSettingsPropertiesFormat": { + "properties": { + "port": { + "type": "integer", + "format": "int32", + "description": "The destination port on the backend." + }, + "protocol": { + "$ref": "#/definitions/ApplicationGatewayProtocol", + "description": "The protocol used to communicate with the backend." + }, + "cookieBasedAffinity": { + "type": "string", + "description": "Cookie based affinity.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "ApplicationGatewayCookieBasedAffinity", + "modelAsString": true + } + }, + "requestTimeout": { + "type": "integer", + "format": "int32", + "description": "Request timeout in seconds. Application Gateway will fail the request if response is not received within RequestTimeout. Acceptable values are from 1 second to 86400 seconds." + }, + "probe": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Probe resource of an application gateway." + }, + "authenticationCertificates": { + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "Array of references to application gateway authentication certificates." + }, + "trustedRootCertificates": { + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "Array of references to application gateway trusted root certificates." + }, + "connectionDraining": { + "$ref": "#/definitions/ApplicationGatewayConnectionDraining", + "description": "Connection draining of the backend http settings resource." + }, + "hostName": { + "type": "string", + "description": "Host header to be sent to the backend servers." + }, + "pickHostNameFromBackendAddress": { + "type": "boolean", + "description": "Whether to pick host header should be picked from the host name of the backend server. Default value is false." + }, + "affinityCookieName": { + "type": "string", + "description": "Cookie name to use for the affinity cookie." + }, + "probeEnabled": { + "type": "boolean", + "description": "Whether the probe is enabled. Default value is false." + }, + "path": { + "type": "string", + "description": "Path which should be used as a prefix for all HTTP requests. Null means no path will be prefixed. Default value is null." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the backend http settings resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of Backend address pool settings of an application gateway." + }, + "ApplicationGatewayBackendHttpSettings": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayBackendHttpSettingsPropertiesFormat", + "description": "Properties of the application gateway backend HTTP settings." + }, + "name": { + "type": "string", + "description": "Name of the backend http settings that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Backend address pool settings of an application gateway." + }, + "ApplicationGatewayHttpListenerPropertiesFormat": { + "properties": { + "frontendIPConfiguration": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Frontend IP configuration resource of an application gateway." + }, + "frontendPort": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Frontend port resource of an application gateway." + }, + "protocol": { + "$ref": "#/definitions/ApplicationGatewayProtocol", + "description": "Protocol of the HTTP listener." + }, + "hostName": { + "type": "string", + "description": "Host name of HTTP listener." + }, + "sslCertificate": { + "$ref": "./network.json#/definitions/SubResource", + "description": "SSL certificate resource of an application gateway." + }, + "requireServerNameIndication": { + "type": "boolean", + "description": "Applicable only if protocol is https. Enables SNI for multi-hosting." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the HTTP listener resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + }, + "customErrorConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayCustomError" + }, + "description": "Custom error configurations of the HTTP listener." + } + }, + "description": "Properties of HTTP listener of an application gateway." + }, + "ApplicationGatewayHttpListener": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayHttpListenerPropertiesFormat", + "description": "Properties of the application gateway HTTP listener." + }, + "name": { + "type": "string", + "description": "Name of the HTTP listener that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Http listener of an application gateway." + }, + "ApplicationGatewayPathRulePropertiesFormat": { + "properties": { + "paths": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Path rules of URL path map." + }, + "backendAddressPool": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Backend address pool resource of URL path map path rule." + }, + "backendHttpSettings": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Backend http settings resource of URL path map path rule." + }, + "redirectConfiguration": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Redirect configuration resource of URL path map path rule." + }, + "rewriteRuleSet": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Rewrite rule set resource of URL path map path rule." + }, + "provisioningState": { + "type": "string", + "description": "Path rule of URL path map resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of path rule of an application gateway." + }, + "ApplicationGatewayPathRule": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayPathRulePropertiesFormat", + "description": "Properties of the application gateway path rule." + }, + "name": { + "type": "string", + "description": "Name of the path rule that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Path rule of URL path map of an application gateway." + }, + "ApplicationGatewayProbePropertiesFormat": { + "properties": { + "protocol": { + "$ref": "#/definitions/ApplicationGatewayProtocol", + "description": "The protocol used for the probe." + }, + "host": { + "type": "string", + "description": "Host name to send the probe to." + }, + "path": { + "type": "string", + "description": "Relative path of probe. Valid path starts from '/'. Probe is sent to ://:." + }, + "interval": { + "type": "integer", + "format": "int32", + "description": "The probing interval in seconds. This is the time interval between two consecutive probes. Acceptable values are from 1 second to 86400 seconds." + }, + "timeout": { + "type": "integer", + "format": "int32", + "description": "The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable values are from 1 second to 86400 seconds." + }, + "unhealthyThreshold": { + "type": "integer", + "format": "int32", + "description": "The probe retry count. Backend server is marked down after consecutive probe failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20." + }, + "pickHostNameFromBackendHttpSettings": { + "type": "boolean", + "description": "Whether the host header should be picked from the backend http settings. Default value is false." + }, + "minServers": { + "type": "integer", + "format": "int32", + "description": "Minimum number of servers that are always marked healthy. Default value is 0." + }, + "match": { + "$ref": "#/definitions/ApplicationGatewayProbeHealthResponseMatch", + "description": "Criterion for classifying a healthy probe response." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the backend http settings resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + }, + "port": { + "type": "integer", + "format": "int32", + "description": "Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Standard_v2 and WAF_v2 only.", + "minimum": 1, + "maximum": 65535 + } + }, + "description": "Properties of probe of an application gateway." + }, + "ApplicationGatewayProbeHealthResponseMatch": { + "properties": { + "body": { + "type": "string", + "description": "Body that must be contained in the health response. Default value is empty." + }, + "statusCodes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Allowed ranges of healthy status codes. Default range of healthy status codes is 200-399." + } + }, + "description": "Application gateway probe health response match." + }, + "ApplicationGatewayProbe": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayProbePropertiesFormat", + "description": "Properties of the application gateway probe." + }, + "name": { + "type": "string", + "description": "Name of the probe that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Probe of the application gateway." + }, + "ApplicationGatewayRequestRoutingRulePropertiesFormat": { + "properties": { + "ruleType": { + "type": "string", + "description": "Rule type.", + "enum": [ + "Basic", + "PathBasedRouting" + ], + "x-ms-enum": { + "name": "ApplicationGatewayRequestRoutingRuleType", + "modelAsString": true + } + }, + "backendAddressPool": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Backend address pool resource of the application gateway." + }, + "backendHttpSettings": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Backend http settings resource of the application gateway." + }, + "httpListener": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Http listener resource of the application gateway." + }, + "urlPathMap": { + "$ref": "./network.json#/definitions/SubResource", + "description": "URL path map resource of the application gateway." + }, + "rewriteRuleSet": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Rewrite Rule Set resource in Basic rule of the application gateway." + }, + "redirectConfiguration": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Redirect configuration resource of the application gateway." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the request routing rule resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of request routing rule of the application gateway." + }, + "ApplicationGatewayRequestRoutingRule": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayRequestRoutingRulePropertiesFormat", + "description": "Properties of the application gateway request routing rule." + }, + "name": { + "type": "string", + "description": "Name of the request routing rule that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Request routing rule of an application gateway." + }, + "ApplicationGatewayRewriteRuleSet": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayRewriteRuleSetPropertiesFormat", + "description": "Properties of the application gateway rewrite rule set." + }, + "name": { + "type": "string", + "description": "Name of the rewrite rule set that is unique within an Application Gateway." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Rewrite rule set of an application gateway." + }, + "ApplicationGatewayRewriteRuleSetPropertiesFormat": { + "properties": { + "rewriteRules": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayRewriteRule" + }, + "description": "Rewrite rules in the rewrite rule set." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Provisioning state of the rewrite rule set resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of rewrite rule set of the application gateway." + }, + "ApplicationGatewayRewriteRule": { + "properties": { + "name": { + "type": "string", + "description": "Name of the rewrite rule that is unique within an Application Gateway." + }, + "ruleSequence": { + "type": "integer", + "description": "Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet." + }, + "conditions": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayRewriteRuleCondition" + }, + "description": "Conditions based on which the action set execution will be evaluated." + }, + "actionSet": { + "type": "object", + "$ref": "#/definitions/ApplicationGatewayRewriteRuleActionSet", + "description": "Set of actions to be done as part of the rewrite Rule." + } + }, + "description": "Rewrite rule of an application gateway." + }, + "ApplicationGatewayRewriteRuleCondition": { + "properties": { + "variable": { + "type": "string", + "description": "The condition parameter of the RewriteRuleCondition." + }, + "pattern": { + "type": "string", + "description": "The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition." + }, + "ignoreCase": { + "type": "boolean", + "description": "Setting this paramter to truth value with force the pattern to do a case in-sensitive comparison." + }, + "negate": { + "type": "boolean", + "description": "Setting this value as truth will force to check the negation of the condition given by the user." + } + }, + "description": "Set of conditions in the Rewrite Rule in Application Gateway." + }, + "ApplicationGatewayRewriteRuleActionSet": { + "properties": { + "requestHeaderConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayHeaderConfiguration" + }, + "description": "Request Header Actions in the Action Set." + }, + "responseHeaderConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayHeaderConfiguration" + }, + "description": "Response Header Actions in the Action Set." + } + }, + "description": "Set of actions in the Rewrite Rule in Application Gateway." + }, + "ApplicationGatewayHeaderConfiguration": { + "properties": { + "headerName": { + "type": "string", + "description": "Header name of the header configuration." + }, + "headerValue": { + "type": "string", + "description": "Header value of the header configuration." + } + }, + "description": "Header configuration of the Actions set in Application Gateway." + }, + "ApplicationGatewayRedirectConfigurationPropertiesFormat": { + "properties": { + "redirectType": { + "type": "string", + "$ref": "#/definitions/RedirectTypeEnum", + "description": "HTTP redirection type." + }, + "targetListener": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference to a listener to redirect the request to." + }, + "targetUrl": { + "type": "string", + "description": "Url to redirect the request to." + }, + "includePath": { + "type": "boolean", + "description": "Include path in the redirected url." + }, + "includeQueryString": { + "type": "boolean", + "description": "Include query string in the redirected url." + }, + "requestRoutingRules": { + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "Request routing specifying redirect configuration." + }, + "urlPathMaps": { + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "Url path maps specifying default redirect configuration." + }, + "pathRules": { + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "Path rules specifying redirect configuration." + } + }, + "description": "Properties of redirect configuration of the application gateway." + }, + "ApplicationGatewayRedirectConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayRedirectConfigurationPropertiesFormat", + "description": "Properties of the application gateway redirect configuration." + }, + "name": { + "type": "string", + "description": "Name of the redirect configuration that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Redirect configuration of an application gateway." + }, + "ApplicationGatewayPropertiesFormat": { + "properties": { + "sku": { + "$ref": "#/definitions/ApplicationGatewaySku", + "description": "SKU of the application gateway resource." + }, + "sslPolicy": { + "$ref": "#/definitions/ApplicationGatewaySslPolicy", + "description": "SSL policy of the application gateway resource." + }, + "operationalState": { + "readOnly": true, + "type": "string", + "description": "Operational state of the application gateway resource.", + "enum": [ + "Stopped", + "Starting", + "Running", + "Stopping" + ], + "x-ms-enum": { + "name": "ApplicationGatewayOperationalState", + "modelAsString": true + } + }, + "gatewayIPConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayIPConfiguration" + }, + "description": "Subnets of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits)." + }, + "authenticationCertificates": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayAuthenticationCertificate" + }, + "description": "Authentication certificates of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits)." + }, + "trustedRootCertificates": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayTrustedRootCertificate" + }, + "description": "Trusted Root certificates of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits)." + }, + "sslCertificates": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewaySslCertificate" + }, + "description": "SSL certificates of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits)." + }, + "frontendIPConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayFrontendIPConfiguration" + }, + "description": "Frontend IP addresses of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits)." + }, + "frontendPorts": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayFrontendPort" + }, + "description": "Frontend ports of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits)." + }, + "probes": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayProbe" + }, + "description": "Probes of the application gateway resource." + }, + "backendAddressPools": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayBackendAddressPool" + }, + "description": "Backend address pool of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits)." + }, + "backendHttpSettingsCollection": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayBackendHttpSettings" + }, + "description": "Backend http settings of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits)." + }, + "httpListeners": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayHttpListener" + }, + "description": "Http listeners of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits)." + }, + "urlPathMaps": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayUrlPathMap" + }, + "description": "URL path map of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits)." + }, + "requestRoutingRules": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayRequestRoutingRule" + }, + "description": "Request routing rules of the application gateway resource." + }, + "rewriteRuleSets": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayRewriteRuleSet" + }, + "description": "Rewrite rules for the application gateway resource." + }, + "redirectConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayRedirectConfiguration" + }, + "description": "Redirect configurations of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits)." + }, + "webApplicationFirewallConfiguration": { + "$ref": "#/definitions/ApplicationGatewayWebApplicationFirewallConfiguration", + "description": "Web application firewall configuration." + }, + "firewallPolicy": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of the FirewallPolicy resource." + }, + "enableHttp2": { + "type": "boolean", + "description": "Whether HTTP2 is enabled on the application gateway resource." + }, + "enableFips": { + "type": "boolean", + "description": "Whether FIPS is enabled on the application gateway resource." + }, + "autoscaleConfiguration": { + "$ref": "#/definitions/ApplicationGatewayAutoscaleConfiguration", + "description": "Autoscale Configuration." + }, + "resourceGuid": { + "type": "string", + "description": "Resource GUID property of the application gateway resource." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the application gateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + }, + "customErrorConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayCustomError" + }, + "description": "Custom error configurations of the application gateway resource." + } + }, + "description": "Properties of the application gateway." + }, + "ApplicationGateway": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayPropertiesFormat", + "description": "Properties of the application gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of availability zones denoting where the resource needs to come from." + }, + "identity": { + "$ref": "./network.json#/definitions/ManagedServiceIdentity", + "description": "The identity of the application gateway, if configured." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Application gateway resource." + }, + "ApplicationGatewayListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGateway" + }, + "description": "List of an application gateways in a resource group." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of results." + } + }, + "description": "Response for ListApplicationGateways API service call." + }, + "ApplicationGatewayUrlPathMapPropertiesFormat": { + "properties": { + "defaultBackendAddressPool": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Default backend address pool resource of URL path map." + }, + "defaultBackendHttpSettings": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Default backend http settings resource of URL path map." + }, + "defaultRewriteRuleSet": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Default Rewrite rule set resource of URL path map." + }, + "defaultRedirectConfiguration": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Default redirect configuration resource of URL path map." + }, + "pathRules": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayPathRule" + }, + "description": "Path rule of URL path map resource." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the backend http settings resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of UrlPathMap of the application gateway." + }, + "ApplicationGatewayUrlPathMap": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayUrlPathMapPropertiesFormat", + "description": "Properties of the application gateway URL path map." + }, + "name": { + "type": "string", + "description": "Name of the URL path map that is unique within an Application Gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "UrlPathMaps give a url path to the backend mapping information for PathBasedRouting." + }, + "ApplicationGatewayWebApplicationFirewallConfiguration": { + "properties": { + "enabled": { + "type": "boolean", + "description": "Whether the web application firewall is enabled or not." + }, + "firewallMode": { + "type": "string", + "description": "Web application firewall mode.", + "enum": [ + "Detection", + "Prevention" + ], + "x-ms-enum": { + "name": "ApplicationGatewayFirewallMode", + "modelAsString": true + } + }, + "ruleSetType": { + "type": "string", + "description": "The type of the web application firewall rule set. Possible values are: 'OWASP'." + }, + "ruleSetVersion": { + "type": "string", + "description": "The version of the rule set type." + }, + "disabledRuleGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayFirewallDisabledRuleGroup" + }, + "description": "The disabled rule groups." + }, + "requestBodyCheck": { + "type": "boolean", + "description": "Whether allow WAF to check request Body." + }, + "maxRequestBodySize": { + "type": "integer", + "format": "int32", + "maximum": 128, + "exclusiveMaximum": false, + "minimum": 8, + "exclusiveMinimum": false, + "description": "Maximum request body size for WAF." + }, + "maxRequestBodySizeInKb": { + "type": "integer", + "format": "int32", + "maximum": 128, + "exclusiveMaximum": false, + "minimum": 8, + "exclusiveMinimum": false, + "description": "Maximum request body size in Kb for WAF." + }, + "fileUploadLimitInMb": { + "type": "integer", + "format": "int32", + "minimum": 0, + "exclusiveMinimum": false, + "description": "Maximum file upload size in Mb for WAF." + }, + "exclusions": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayFirewallExclusion" + }, + "description": "The exclusion list." + } + }, + "required": [ + "enabled", + "firewallMode", + "ruleSetType", + "ruleSetVersion" + ], + "description": "Application gateway web application firewall configuration." + }, + "ApplicationGatewayAutoscaleConfiguration": { + "properties": { + "minCapacity": { + "type": "integer", + "format": "int32", + "minimum": 0, + "exclusiveMinimum": false, + "description": "Lower bound on number of Application Gateway capacity." + }, + "maxCapacity": { + "type": "integer", + "format": "int32", + "minimum": 2, + "exclusiveMinimum": false, + "description": "Upper bound on number of Application Gateway capacity." + } + }, + "required": [ + "minCapacity" + ], + "description": "Application Gateway autoscale configuration." + }, + "ApplicationGatewayConnectionDraining": { + "properties": { + "enabled": { + "type": "boolean", + "description": "Whether connection draining is enabled or not." + }, + "drainTimeoutInSec": { + "type": "integer", + "format": "int32", + "maximum": 3600, + "exclusiveMaximum": false, + "minimum": 1, + "exclusiveMinimum": false, + "description": "The number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds." + } + }, + "required": [ + "enabled", + "drainTimeoutInSec" + ], + "description": "Connection draining allows open connections to a backend server to be active for a specified time after the backend server got removed from the configuration." + }, + "ApplicationGatewayFirewallDisabledRuleGroup": { + "properties": { + "ruleGroupName": { + "type": "string", + "description": "The name of the rule group that will be disabled." + }, + "rules": { + "type": "array", + "items": { + "type": "integer", + "format": "int32", + "x-nullable": false + }, + "description": "The list of rules that will be disabled. If null, all rules of the rule group will be disabled." + } + }, + "required": [ + "ruleGroupName" + ], + "description": "Allows to disable rules within a rule group or an entire rule group." + }, + "ApplicationGatewayAvailableServerVariablesResult": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Response for ApplicationGatewayAvailableServerVariables API service call." + }, + "ApplicationGatewayAvailableRequestHeadersResult": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Response for ApplicationGatewayAvailableRequestHeaders API service call." + }, + "ApplicationGatewayAvailableResponseHeadersResult": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Response for ApplicationGatewayAvailableResponseHeaders API service call." + }, + "ApplicationGatewayFirewallExclusion": { + "properties": { + "matchVariable": { + "type": "string", + "description": "The variable to be excluded." + }, + "selectorMatchOperator": { + "type": "string", + "description": "When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to." + }, + "selector": { + "type": "string", + "description": "When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to." + } + }, + "required": [ + "matchVariable", + "selectorMatchOperator", + "selector" + ], + "description": "Allow to exclude some variable satisfy the condition for the WAF check." + }, + "ApplicationGatewayAvailableWafRuleSetsResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayFirewallRuleSet" + }, + "description": "The list of application gateway rule sets." + } + }, + "description": "Response for ApplicationGatewayAvailableWafRuleSets API service call." + }, + "ApplicationGatewayFirewallRuleSet": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayFirewallRuleSetPropertiesFormat", + "description": "Properties of the application gateway firewall rule set." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "A web application firewall rule set." + }, + "ApplicationGatewayFirewallRuleSetPropertiesFormat": { + "properties": { + "provisioningState": { + "type": "string", + "description": "The provisioning state of the web application firewall rule set." + }, + "ruleSetType": { + "type": "string", + "description": "The type of the web application firewall rule set." + }, + "ruleSetVersion": { + "type": "string", + "description": "The version of the web application firewall rule set type." + }, + "ruleGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayFirewallRuleGroup" + }, + "description": "The rule groups of the web application firewall rule set." + } + }, + "required": [ + "ruleSetType", + "ruleSetVersion", + "ruleGroups" + ], + "description": "Properties of the web application firewall rule set." + }, + "ApplicationGatewayFirewallRuleGroup": { + "properties": { + "ruleGroupName": { + "type": "string", + "description": "The name of the web application firewall rule group." + }, + "description": { + "type": "string", + "description": "The description of the web application firewall rule group." + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayFirewallRule" + }, + "description": "The rules of the web application firewall rule group." + } + }, + "required": [ + "ruleGroupName", + "rules" + ], + "description": "A web application firewall rule group." + }, + "ApplicationGatewayFirewallRule": { + "properties": { + "ruleId": { + "type": "integer", + "format": "int32", + "description": "The identifier of the web application firewall rule." + }, + "description": { + "type": "string", + "description": "The description of the web application firewall rule." + } + }, + "required": [ + "ruleId" + ], + "description": "A web application firewall rule." + }, + "ApplicationGatewayAvailableSslOptions": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewayAvailableSslOptionsPropertiesFormat", + "description": "Properties of the application gateway available SSL options." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Response for ApplicationGatewayAvailableSslOptions API service call." + }, + "ApplicationGatewayAvailableSslOptionsPropertiesFormat": { + "properties": { + "predefinedPolicies": { + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "List of available Ssl predefined policy." + }, + "defaultPolicy": { + "$ref": "#/definitions/PolicyNameEnum", + "description": "Name of the Ssl predefined policy applied by default to application gateway." + }, + "availableCipherSuites": { + "type": "array", + "items": { + "$ref": "#/definitions/CipherSuitesEnum" + }, + "description": "List of available Ssl cipher suites." + }, + "availableProtocols": { + "type": "array", + "items": { + "$ref": "#/definitions/ProtocolsEnum" + }, + "description": "List of available Ssl protocols." + } + }, + "description": "Properties of ApplicationGatewayAvailableSslOptions." + }, + "ApplicationGatewayAvailableSslPredefinedPolicies": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewaySslPredefinedPolicy" + }, + "description": "List of available Ssl predefined policy." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of results." + } + }, + "description": "Response for ApplicationGatewayAvailableSslOptions API service call." + }, + "ApplicationGatewaySslPredefinedPolicy": { + "properties": { + "name": { + "type": "string", + "description": "Name of the Ssl predefined policy." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationGatewaySslPredefinedPolicyPropertiesFormat", + "description": "Properties of the application gateway SSL predefined policy." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "An Ssl predefined policy." + }, + "ApplicationGatewaySslPredefinedPolicyPropertiesFormat": { + "properties": { + "cipherSuites": { + "type": "array", + "items": { + "$ref": "#/definitions/CipherSuitesEnum" + }, + "description": "Ssl cipher suites to be enabled in the specified order for application gateway." + }, + "minProtocolVersion": { + "$ref": "#/definitions/ProtocolsEnum", + "description": "Minimum version of Ssl protocol to be supported on application gateway." + } + }, + "description": "Properties of ApplicationGatewaySslPredefinedPolicy." + }, + "ApplicationGatewayCustomError": { + "properties": { + "statusCode": { + "type": "string", + "description": "Status code of the application gateway customer error.", + "enum": [ + "HttpStatus403", + "HttpStatus502" + ], + "x-ms-enum": { + "name": "ApplicationGatewayCustomErrorStatusCode", + "modelAsString": true + } + }, + "customErrorPageUrl": { + "type": "string", + "description": "Error page URL of the application gateway customer error." + } + }, + "description": "Customer error of an application gateway." + }, + "PolicyNameEnum": { + "type": "string", + "description": "Ssl predefined policy name enums.", + "enum": [ + "AppGwSslPolicy20150501", + "AppGwSslPolicy20170401", + "AppGwSslPolicy20170401S" + ], + "x-ms-enum": { + "name": "ApplicationGatewaySslPolicyName", + "modelAsString": true + } + }, + "ProtocolsEnum": { + "type": "string", + "description": "Ssl protocol enums.", + "enum": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ], + "x-ms-enum": { + "name": "ApplicationGatewaySslProtocol", + "modelAsString": true + } + }, + "CipherSuitesEnum": { + "type": "string", + "description": "Ssl cipher suites enums.", + "enum": [ + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_DHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_3DES_EDE_CBC_SHA", + "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" + ], + "x-ms-enum": { + "name": "ApplicationGatewaySslCipherSuite", + "modelAsString": true + } + }, + "RedirectTypeEnum": { + "type": "string", + "description": "Redirect type enum.", + "enum": [ + "Permanent", + "Found", + "SeeOther", + "Temporary" + ], + "x-ms-enum": { + "name": "ApplicationGatewayRedirectType", + "modelAsString": true + } + }, + "ApplicationGatewayProtocol": { + "type": "string", + "description": "Application Gateway protocol.", + "enum": [ + "Http", + "Https" + ], + "x-ms-enum": { + "name": "ApplicationGatewayProtocol", + "modelAsString": true + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/applicationSecurityGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/applicationSecurityGroup.json new file mode 100644 index 000000000000..3a2b5c1a5e96 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/applicationSecurityGroup.json @@ -0,0 +1,371 @@ +{ + "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-06-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/applicationSecurityGroups/{applicationSecurityGroupName}": { + "delete": { + "tags": [ + "ApplicationSecurityGroups" + ], + "operationId": "ApplicationSecurityGroups_Delete", + "description": "Deletes the specified application security group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "applicationSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the application security group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request successful. Resource does not exist." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete application security group": { + "$ref": "./examples/ApplicationSecurityGroupDelete.json" + } + } + }, + "get": { + "tags": [ + "ApplicationSecurityGroups" + ], + "operationId": "ApplicationSecurityGroups_Get", + "description": "Gets information about the specified application security group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "applicationSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the application security group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the specified application security group resource.", + "schema": { + "$ref": "#/definitions/ApplicationSecurityGroup" + } + } + }, + "x-ms-examples": { + "Get application security group": { + "$ref": "./examples/ApplicationSecurityGroupGet.json" + } + } + }, + "put": { + "tags": [ + "ApplicationSecurityGroups" + ], + "operationId": "ApplicationSecurityGroups_CreateOrUpdate", + "description": "Creates or updates an application security group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "applicationSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the application security group." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationSecurityGroup" + }, + "description": "Parameters supplied to the create or update ApplicationSecurityGroup operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting application security group resource.", + "schema": { + "$ref": "#/definitions/ApplicationSecurityGroup" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting application security group resource.", + "schema": { + "$ref": "#/definitions/ApplicationSecurityGroup" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create application security group": { + "$ref": "./examples/ApplicationSecurityGroupCreate.json" + } + } + }, + "patch": { + "tags": [ + "applicationSecurityGroups" + ], + "operationId": "ApplicationSecurityGroups_UpdateTags", + "description": "Updates an application security group's tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "applicationSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the application security group." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update application security group tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting ApplicationSecurityGroup resource.", + "schema": { + "$ref": "#/definitions/ApplicationSecurityGroup" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update application security group tags": { + "$ref": "./examples/ApplicationSecurityGroupUpdateTags.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups": { + "get": { + "tags": [ + "ApplicationSecurityGroups" + ], + "operationId": "ApplicationSecurityGroups_ListAll", + "description": "Gets all application security groups in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of application security group resources.", + "schema": { + "$ref": "#/definitions/ApplicationSecurityGroupListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all application security groups": { + "$ref": "./examples/ApplicationSecurityGroupListAll.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups": { + "get": { + "tags": [ + "ApplicationSecurityGroups" + ], + "operationId": "ApplicationSecurityGroups_List", + "description": "Gets all the application security groups in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of application security group resources.", + "schema": { + "$ref": "#/definitions/ApplicationSecurityGroupListResult" + } + } + }, + "x-ms-examples": { + "List load balancers in resource group": { + "$ref": "./examples/ApplicationSecurityGroupList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ApplicationSecurityGroup": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationSecurityGroupPropertiesFormat", + "description": "Properties of the application security group." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "An application security group in a resource group." + }, + "ApplicationSecurityGroupPropertiesFormat": { + "properties": { + "resourceGuid": { + "readOnly": true, + "type": "string", + "description": "The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the application security group resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Application security group properties." + }, + "ApplicationSecurityGroupListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationSecurityGroup" + }, + "description": "A list of application security groups." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "A list of application security groups." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/availablePrivateEndpointTypes.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/availableDelegations.json similarity index 65% rename from specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/availablePrivateEndpointTypes.json rename to specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/availableDelegations.json index 68764771e26d..2b19a8851542 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/availablePrivateEndpointTypes.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/availableDelegations.json @@ -3,7 +3,7 @@ "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-04-01" + "version": "2019-06-01" }, "host": "management.azure.com", "schemes": [ @@ -34,17 +34,17 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableDelegations": { "get": { - "operationId": "AvailablePrivateEndpointTypes_List", - "description": "Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.", + "operationId": "AvailableDelegations_List", + "description": "Gets all of the available subnet delegations for this subscription in this region.", "parameters": [ { "name": "location", "in": "path", "required": true, "type": "string", - "description": "The location of the domain name." + "description": "The location of the subnet." }, { "$ref": "./network.json#/parameters/ApiVersionParameter" @@ -55,15 +55,15 @@ ], "responses": { "200": { - "description": "Request successful. Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.", + "description": "Request successful. Returns all of the possible delegations for a subnet in this subscription in the region.", "schema": { - "$ref": "#/definitions/AvailablePrivateEndpointTypesResult" + "$ref": "#/definitions/AvailableDelegationsResult" } } }, "x-ms-examples": { - "Get available PrivateEndpoint types": { - "$ref": "./examples/AvailablePrivateEndpointTypesGet.json" + "Get available delegations": { + "$ref": "./examples/AvailableDelegationsSubscriptionGet.json" } }, "x-ms-pageable": { @@ -71,10 +71,10 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availableDelegations": { "get": { - "operationId": "AvailableResourceGroupPrivateEndpointTypes_List", - "description": "Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.", + "operationId": "AvailableResourceGroupDelegations_List", + "description": "Gets all of the available subnet delegations for this resource group in this region.", "parameters": [ { "name": "location", @@ -99,15 +99,15 @@ ], "responses": { "200": { - "description": "Request successful. Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.", + "description": "Request successful. Returns all of the possible delegations for a subnet in this subscription in the region.", "schema": { - "$ref": "#/definitions/AvailablePrivateEndpointTypesResult" + "$ref": "#/definitions/AvailableDelegationsResult" } } }, "x-ms-examples": { - "Get available PrivateEndpoint types in the resource group": { - "$ref": "./examples/AvailablePrivateEndpointTypesResourceGroupGet.json" + "Get available delegations in the resource group": { + "$ref": "./examples/AvailableDelegationsResourceGroupGet.json" } }, "x-ms-pageable": { @@ -117,14 +117,14 @@ } }, "definitions": { - "AvailablePrivateEndpointTypesResult": { + "AvailableDelegationsResult": { "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/AvailablePrivateEndpointType" + "$ref": "#/definitions/AvailableDelegation" }, - "description": "An array of available privateEndpoint type." + "description": "An array of available delegations." }, "nextLink": { "readOnly": true, @@ -132,13 +132,17 @@ "description": "The URL to get the next set of results." } }, - "description": "An array of available PrivateEndpoint types." + "description": "An array of available delegations." }, - "AvailablePrivateEndpointType": { + "AvailableDelegation": { "properties": { + "name": { + "type": "string", + "description": "The name of the AvailableDelegation resource." + }, "id": { "type": "string", - "description": "A unique identifier of the AvailablePrivateEndpoint Type resource." + "description": "A unique identifier of the AvailableDelegation resource." }, "type": { "type": "string", @@ -147,9 +151,16 @@ "serviceName": { "type": "string", "description": "The name of the service and resource." + }, + "actions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Describes the actions permitted to the service upon delegation." } }, - "description": "The information of an AvailablePrivateEndpointType." + "description": "The serviceName of an AvailableDelegation indicates a possible delegation for a subnet." } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/azureFirewall.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/azureFirewall.json new file mode 100644 index 000000000000..8d8df966288c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/azureFirewall.json @@ -0,0 +1,884 @@ +{ + "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-06-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/azureFirewalls/{azureFirewallName}": { + "delete": { + "tags": [ + "AzureFirewalls" + ], + "operationId": "AzureFirewalls_Delete", + "description": "Deletes the specified Azure Firewall.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "azureFirewallName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Azure Firewall." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Request successful. Resource with the specified name does not exist." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete Azure Firewall": { + "$ref": "./examples/AzureFirewallDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "AzureFirewalls" + ], + "operationId": "AzureFirewalls_Get", + "description": "Gets the specified Azure Firewall.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "azureFirewallName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Azure Firewall." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns an AzureFirewall resource.", + "schema": { + "$ref": "#/definitions/AzureFirewall" + } + } + }, + "x-ms-examples": { + "Get Azure Firewall": { + "$ref": "./examples/AzureFirewallGet.json" + }, + "Get Azure Firewall With Zones": { + "$ref": "./examples/AzureFirewallGetWithZones.json" + } + } + }, + "put": { + "tags": [ + "AzureFirewalls" + ], + "operationId": "AzureFirewalls_CreateOrUpdate", + "description": "Creates or updates the specified Azure Firewall.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "azureFirewallName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Azure Firewall." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AzureFirewall" + }, + "description": "Parameters supplied to the create or update Azure Firewall operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting AzureFirewall resource.", + "schema": { + "$ref": "#/definitions/AzureFirewall" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting AzureFirewall resource.", + "schema": { + "$ref": "#/definitions/AzureFirewall" + } + } + }, + "x-ms-examples": { + "Create Azure Firewall": { + "$ref": "./examples/AzureFirewallPut.json" + }, + "Create Azure Firewall With Zones": { + "$ref": "./examples/AzureFirewallPutWithZones.json" + }, + "Create Azure Firewall in virtual Hub": { + "$ref": "./examples/AzureFirewallPutInHub.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "AzureFirewalls" + ], + "operationId": "AzureFirewalls_UpdateTags", + "description": "Updates tags for an Azure Firewall resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "azureFirewallName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Azure Firewall." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AzureFirewall" + }, + "description": "Parameters supplied to the create or update Azure Firewall operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting AzureFirewall resource.", + "schema": { + "$ref": "#/definitions/AzureFirewall" + } + } + }, + "x-ms-examples": { + "Update Azure Firewall Tags": { + "$ref": "./examples/AzureFirewallUpdateTags.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls": { + "get": { + "tags": [ + "AzureFirewalls" + ], + "operationId": "AzureFirewalls_List", + "description": "Lists all Azure Firewalls in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of AzureFirewall resources.", + "schema": { + "$ref": "#/definitions/AzureFirewallListResult" + } + } + }, + "x-ms-examples": { + "List all Azure Firewalls for a given resource group": { + "$ref": "./examples/AzureFirewallListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewalls": { + "get": { + "tags": [ + "AzureFirewalls" + ], + "operationId": "AzureFirewalls_ListAll", + "description": "Gets all the Azure Firewalls in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of AzureFirewall resources.", + "schema": { + "$ref": "#/definitions/AzureFirewallListResult" + } + } + }, + "x-ms-examples": { + "List all Azure Firewalls for a given subscription": { + "$ref": "./examples/AzureFirewallListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "AzureFirewallIPConfigurationPropertiesFormat": { + "properties": { + "privateIPAddress": { + "type": "string", + "readOnly": true, + "description": "The Firewall Internal Load Balancer IP to be used as the next hop in User Defined Routes." + }, + "subnet": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of the subnet resource. This resource must be named 'AzureFirewallSubnet'." + }, + "publicIPAddress": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of the PublicIP resource. This field is a mandatory input if subnet is not null." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + } + }, + "description": "Properties of IP configuration of an Azure Firewall." + }, + "AzureFirewallIPConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AzureFirewallIPConfigurationPropertiesFormat", + "description": "Properties of the azure firewall IP configuration." + }, + "name": { + "type": "string", + "description": "Name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "IP configuration of an Azure Firewall." + }, + "AzureFirewallPublicIPAddress": { + "properties": { + "address": { + "type": "string", + "description": "Public IP Address value." + } + }, + "description": "Public IP Address associated with azure firewall." + }, + "HubIPAddresses": { + "properties": { + "publicIPAddresses": { + "type": "array", + "description": "List of Public IP addresses associated with azure firewall.", + "items": { + "$ref": "#/definitions/AzureFirewallPublicIPAddress" + } + }, + "privateIPAddress": { + "type": "string", + "description": "Private IP Address associated with azure firewall." + } + }, + "description": "IP addresses associated with azure firewall." + }, + "AzureFirewallPropertiesFormat": { + "properties": { + "applicationRuleCollections": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFirewallApplicationRuleCollection" + }, + "description": "Collection of application rule collections used by Azure Firewall." + }, + "natRuleCollections": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFirewallNatRuleCollection" + }, + "description": "Collection of NAT rule collections used by Azure Firewall." + }, + "networkRuleCollections": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFirewallNetworkRuleCollection" + }, + "description": "Collection of network rule collections used by Azure Firewall." + }, + "ipConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFirewallIPConfiguration" + }, + "description": "IP configuration of the Azure Firewall resource." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + }, + "threatIntelMode": { + "description": "The operation mode for Threat Intelligence.", + "$ref": "#/definitions/AzureFirewallThreatIntelMode" + }, + "virtualHub": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The virtualHub to which the firewall belongs." + }, + "firewallPolicy": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The firewallPolicy associated with this azure firewall." + }, + "hubIpAddresses": { + "readOnly": true, + "description": "IP addresses associated with AzureFirewall.", + "$ref": "#/definitions/HubIPAddresses" + } + }, + "description": "Properties of the Azure Firewall." + }, + "AzureFirewall": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AzureFirewallPropertiesFormat", + "description": "Properties of the azure firewall." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of availability zones denoting where the resource needs to come from." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Azure Firewall resource." + }, + "AzureFirewallListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFirewall" + }, + "description": "List of Azure Firewalls in a resource group." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of results." + } + }, + "description": "Response for ListAzureFirewalls API service call." + }, + "AzureFirewallThreatIntelMode": { + "type": "string", + "description": "The operation mode for Threat Intel.", + "enum": [ + "Alert", + "Deny", + "Off" + ], + "x-ms-enum": { + "name": "AzureFirewallThreatIntelMode", + "modelAsString": true + } + }, + "AzureFirewallApplicationRuleCollectionPropertiesFormat": { + "properties": { + "priority": { + "type": "integer", + "format": "int32", + "maximum": 65000, + "exclusiveMaximum": false, + "minimum": 100, + "exclusiveMinimum": false, + "description": "Priority of the application rule collection resource." + }, + "action": { + "$ref": "#/definitions/AzureFirewallRCAction", + "description": "The action type of a rule collection." + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFirewallApplicationRule" + }, + "description": "Collection of rules used by a application rule collection." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + } + }, + "description": "Properties of the application rule collection." + }, + "AzureFirewallApplicationRuleCollection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AzureFirewallApplicationRuleCollectionPropertiesFormat", + "description": "Properties of the azure firewall application rule collection." + }, + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Application rule collection resource." + }, + "AzureFirewallApplicationRuleProtocol": { + "properties": { + "protocolType": { + "description": "Protocol type.", + "$ref": "#/definitions/AzureFirewallApplicationRuleProtocolType" + }, + "port": { + "type": "integer", + "format": "int32", + "maximum": 64000, + "exclusiveMaximum": false, + "minimum": 0, + "exclusiveMinimum": false, + "description": "Port number for the protocol, cannot be greater than 64000. This field is optional." + } + }, + "description": "Properties of the application rule protocol." + }, + "AzureFirewallApplicationRule": { + "properties": { + "name": { + "type": "string", + "description": "Name of the application rule." + }, + "description": { + "type": "string", + "description": "Description of the rule." + }, + "sourceAddresses": { + "type": "array", + "description": "List of source IP addresses for this rule.", + "items": { + "type": "string" + } + }, + "protocols": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFirewallApplicationRuleProtocol" + }, + "description": "Array of ApplicationRuleProtocols." + }, + "targetFqdns": { + "type": "array", + "description": "List of FQDNs for this rule.", + "items": { + "type": "string" + } + }, + "fqdnTags": { + "type": "array", + "description": "List of FQDN Tags for this rule.", + "items": { + "type": "string" + } + } + }, + "description": "Properties of an application rule." + }, + "AzureFirewallNatRuleCollectionProperties": { + "properties": { + "priority": { + "type": "integer", + "format": "int32", + "maximum": 65000, + "exclusiveMaximum": false, + "minimum": 100, + "exclusiveMinimum": false, + "description": "Priority of the NAT rule collection resource." + }, + "action": { + "$ref": "#/definitions/AzureFirewallNatRCAction", + "description": "The action type of a NAT rule collection." + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFirewallNatRule" + }, + "description": "Collection of rules used by a NAT rule collection." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + } + }, + "description": "Properties of the NAT rule collection." + }, + "AzureFirewallNatRuleCollection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AzureFirewallNatRuleCollectionProperties", + "description": "Properties of the azure firewall NAT rule collection." + }, + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "NAT rule collection resource." + }, + "AzureFirewallNatRule": { + "properties": { + "name": { + "type": "string", + "description": "Name of the NAT rule." + }, + "description": { + "type": "string", + "description": "Description of the rule." + }, + "sourceAddresses": { + "type": "array", + "description": "List of source IP addresses for this rule.", + "items": { + "type": "string" + } + }, + "destinationAddresses": { + "type": "array", + "description": "List of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.", + "items": { + "type": "string" + } + }, + "destinationPorts": { + "type": "array", + "description": "List of destination ports.", + "items": { + "type": "string" + } + }, + "protocols": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFirewallNetworkRuleProtocol" + }, + "description": "Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule." + }, + "translatedAddress": { + "type": "string", + "description": "The translated address for this NAT rule." + }, + "translatedPort": { + "type": "string", + "description": "The translated port for this NAT rule." + } + }, + "description": "Properties of a NAT rule." + }, + "AzureFirewallNatRCAction": { + "properties": { + "type": { + "description": "The type of action.", + "$ref": "#/definitions/AzureFirewallNatRCActionType" + } + }, + "description": "AzureFirewall NAT Rule Collection Action." + }, + "AzureFirewallNatRCActionType": { + "type": "string", + "description": "The action type of a NAT rule collection.", + "enum": [ + "Snat", + "Dnat" + ], + "x-ms-enum": { + "name": "AzureFirewallNatRCActionType", + "modelAsString": true + } + }, + "AzureFirewallNetworkRuleCollectionPropertiesFormat": { + "properties": { + "priority": { + "type": "integer", + "format": "int32", + "maximum": 65000, + "exclusiveMaximum": false, + "minimum": 100, + "exclusiveMinimum": false, + "description": "Priority of the network rule collection resource." + }, + "action": { + "$ref": "#/definitions/AzureFirewallRCAction", + "description": "The action type of a rule collection." + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFirewallNetworkRule" + }, + "description": "Collection of rules used by a network rule collection." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + } + }, + "description": "Properties of the network rule collection." + }, + "AzureFirewallNetworkRuleCollection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AzureFirewallNetworkRuleCollectionPropertiesFormat", + "description": "Properties of the azure firewall network rule collection." + }, + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Network rule collection resource." + }, + "AzureFirewallNetworkRule": { + "properties": { + "name": { + "type": "string", + "description": "Name of the network rule." + }, + "description": { + "type": "string", + "description": "Description of the rule." + }, + "protocols": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFirewallNetworkRuleProtocol" + }, + "description": "Array of AzureFirewallNetworkRuleProtocols." + }, + "sourceAddresses": { + "type": "array", + "description": "List of source IP addresses for this rule.", + "items": { + "type": "string" + } + }, + "destinationAddresses": { + "type": "array", + "description": "List of destination IP addresses.", + "items": { + "type": "string" + } + }, + "destinationPorts": { + "type": "array", + "description": "List of destination ports.", + "items": { + "type": "string" + } + } + }, + "description": "Properties of the network rule." + }, + "AzureFirewallRCAction": { + "properties": { + "type": { + "description": "The type of action.", + "$ref": "#/definitions/AzureFirewallRCActionType" + } + }, + "description": "Properties of the AzureFirewallRCAction." + }, + "AzureFirewallRCActionType": { + "type": "string", + "description": "The action type of a rule collection.", + "enum": [ + "Allow", + "Deny" + ], + "x-ms-enum": { + "name": "AzureFirewallRCActionType", + "modelAsString": true + } + }, + "AzureFirewallNetworkRuleProtocol": { + "type": "string", + "description": "The protocol of a Network Rule resource.", + "enum": [ + "TCP", + "UDP", + "Any", + "ICMP" + ], + "x-ms-enum": { + "name": "AzureFirewallNetworkRuleProtocol", + "modelAsString": true + } + }, + "AzureFirewallApplicationRuleProtocolType": { + "type": "string", + "description": "The protocol type of a Application Rule resource.", + "enum": [ + "Http", + "Https" + ], + "x-ms-enum": { + "name": "AzureFirewallApplicationRuleProtocolType", + "modelAsString": true + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/azureFirewallFqdnTag.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/azureFirewallFqdnTag.json new file mode 100644 index 000000000000..e783e38509a1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/azureFirewallFqdnTag.json @@ -0,0 +1,124 @@ +{ + "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-06-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.Network/azureFirewallFqdnTags": { + "get": { + "tags": [ + "AzureFirewallFqdnTags" + ], + "operationId": "AzureFirewallFqdnTags_ListAll", + "description": "Gets all the Azure Firewall FQDN Tags in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of Azure Firewall FQDN Tag resources.", + "schema": { + "$ref": "#/definitions/AzureFirewallFqdnTagListResult" + } + } + }, + "x-ms-examples": { + "List all Azure Firewall FQDN Tags for a given subscription": { + "$ref": "./examples/AzureFirewallFqdnTagsListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "AzureFirewallFqdnTagPropertiesFormat": { + "properties": { + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioning state of the resource." + }, + "fqdnTagName": { + "type": "string", + "readOnly": true, + "description": "The name of this FQDN Tag." + } + }, + "description": "Azure Firewall FQDN Tag Properties." + }, + "AzureFirewallFqdnTag": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AzureFirewallFqdnTagPropertiesFormat", + "description": "Properties of the azure firewall FQDN tag." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Azure Firewall FQDN Tag Resource." + }, + "AzureFirewallFqdnTagListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFirewallFqdnTag" + }, + "description": "List of Azure Firewall FQDN Tags in a resource group." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of results." + } + }, + "description": "Response for ListAzureFirewallFqdnTags API service call." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/bastionHost.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/bastionHost.json new file mode 100644 index 000000000000..8da661f085d9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/bastionHost.json @@ -0,0 +1,377 @@ +{ + "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-06-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/bastionHosts/{bastionHostName}": { + "delete": { + "tags": [ + "BastionHosts" + ], + "operationId": "BastionHosts_Delete", + "description": "Deletes the specified Bastion Host.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "bastionHostName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Bastion Host." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Request successful. Resource with the specified name does not exist." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete Bastion Host": { + "$ref": "./examples/BastionHostDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "BastionHosts" + ], + "operationId": "BastionHosts_Get", + "description": "Gets the specified Bastion Host.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "bastionHostName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Bastion Host." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns an BastionHost resource.", + "schema": { + "$ref": "#/definitions/BastionHost" + } + } + }, + "x-ms-examples": { + "Get Bastion Host": { + "$ref": "./examples/BastionHostGet.json" + } + } + }, + "put": { + "tags": [ + "BastionHosts" + ], + "operationId": "BastionHosts_CreateOrUpdate", + "description": "Creates or updates the specified Bastion Host.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "bastionHostName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Bastion Host." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BastionHost" + }, + "description": "Parameters supplied to the create or update Bastion Host operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting Bastion Host resource.", + "schema": { + "$ref": "#/definitions/BastionHost" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting Bastion Host resource.", + "schema": { + "$ref": "#/definitions/BastionHost" + } + } + }, + "x-ms-examples": { + "Create Bastion Host": { + "$ref": "./examples/BastionHostPut.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/bastionHosts": { + "get": { + "tags": [ + "BastionHosts" + ], + "operationId": "BastionHosts_List", + "description": "Lists all Bastion Hosts in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of Bastion Host resources.", + "schema": { + "$ref": "#/definitions/BastionHostListResult" + } + } + }, + "x-ms-examples": { + "List all Bastion Hosts for a given subscription": { + "$ref": "./examples/BastionHostListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts": { + "get": { + "tags": [ + "BastionHosts" + ], + "operationId": "BastionHosts_ListByResourceGroup", + "description": "Lists all Bastion Hosts in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of BastionHost resources.", + "schema": { + "$ref": "#/definitions/BastionHostListResult" + } + } + }, + "x-ms-examples": { + "List all Bastion Hosts for a given resource group": { + "$ref": "./examples/BastionHostListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "BastionHostIPConfigurationPropertiesFormat": { + "properties": { + "subnet": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of the subnet resource." + }, + "publicIPAddress": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of the PublicIP resource." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + }, + "privateIPAllocationMethod": { + "$ref": "./network.json#/definitions/IPAllocationMethod", + "description": "Private IP allocation method." + } + }, + "required": [ + "subnet", + "publicIPAddress" + ], + "description": "Properties of IP configuration of an Bastion Host." + }, + "BastionHostIPConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BastionHostIPConfigurationPropertiesFormat", + "description": "Represents the ip configuration associated with the resource." + }, + "name": { + "type": "string", + "description": "Name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Ip configuration type." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "IP configuration of an Bastion Host." + }, + "BastionHostPropertiesFormat": { + "properties": { + "ipConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/BastionHostIPConfiguration" + }, + "description": "IP configuration of the Bastion Host resource." + }, + "dnsName": { + "type": "string", + "description": "FQDN for the endpoint on which bastion host is accessible." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + } + }, + "description": "Properties of the Bastion Host." + }, + "BastionHost": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BastionHostPropertiesFormat", + "description": "Represents the bastion host resource." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Bastion Host resource." + }, + "BastionHostListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/BastionHost" + }, + "description": "List of Bastion Hosts in a resource group." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of results." + } + }, + "description": "Response for ListBastionHosts API service call." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/checkDnsAvailability.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/checkDnsAvailability.json new file mode 100644 index 000000000000..01de0ac3dbdc --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/checkDnsAvailability.json @@ -0,0 +1,90 @@ +{ + "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-06-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.Network/locations/{location}/CheckDnsNameAvailability": { + "get": { + "operationId": "CheckDnsNameAvailability", + "description": "Checks whether a domain name in the cloudapp.azure.com zone is available for use.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the domain name." + }, + { + "name": "domainNameLabel", + "in": "query", + "required": true, + "type": "string", + "description": "The domain name to be verified. It must conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns whether the DNS name is available.", + "schema": { + "$ref": "#/definitions/DnsNameAvailabilityResult" + } + } + }, + "x-ms-examples": { + "Check Dns Name Availability": { + "$ref": "./examples/CheckDnsNameAvailability.json" + } + } + } + } + }, + "definitions": { + "DnsNameAvailabilityResult": { + "properties": { + "available": { + "type": "boolean", + "description": "Domain availability (True/False)." + } + }, + "description": "Response for the CheckDnsNameAvailability API service call." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/ddosCustomPolicy.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/ddosCustomPolicy.json new file mode 100644 index 000000000000..4e91aec296c0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/ddosCustomPolicy.json @@ -0,0 +1,400 @@ +{ + "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-06-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/ddosCustomPolicies/{ddosCustomPolicyName}": { + "delete": { + "tags": [ + "ddosCustomPolicies" + ], + "operationId": "DdosCustomPolicies_Delete", + "description": "Deletes the specified DDoS custom policy.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "ddosCustomPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DDoS custom policy." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request successful. Resource does not exist." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + }, + "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" + }, + "x-ms-examples": { + "Delete DDoS custom policy": { + "$ref": "./examples/DdosCustomPolicyDelete.json" + } + } + }, + "get": { + "tags": [ + "ddosCustomPolicies" + ], + "operationId": "DdosCustomPolicies_Get", + "description": "Gets information about the specified DDoS custom policy.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "ddosCustomPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DDoS custom policy." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the specified DDoS custom policy resource.", + "schema": { + "$ref": "#/definitions/DdosCustomPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get DDoS custom policy": { + "$ref": "./examples/DdosCustomPolicyGet.json" + } + } + }, + "put": { + "tags": [ + "ddosCustomPolicies" + ], + "operationId": "DdosCustomPolicies_CreateOrUpdate", + "description": "Creates or updates a DDoS custom policy.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "ddosCustomPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DDoS custom policy." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DdosCustomPolicy" + }, + "description": "Parameters supplied to the create or update operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting DDoS custom policy resource.", + "schema": { + "$ref": "#/definitions/DdosCustomPolicy" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting DDoS custom policy resource.", + "schema": { + "$ref": "#/definitions/DdosCustomPolicy" + } + }, + "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": "azure-async-operation" + }, + "x-ms-examples": { + "Create DDoS custom policy": { + "$ref": "./examples/DdosCustomPolicyCreate.json" + } + } + }, + "patch": { + "tags": [ + "ddosCustomPolicies" + ], + "operationId": "DdosCustomPolicies_UpdateTags", + "description": "Update a DDoS custom policy tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "ddosCustomPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DDoS custom policy." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to the update DDoS custom policy resource tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting DDoS custom policy resource.", + "schema": { + "$ref": "#/definitions/DdosCustomPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "DDoS Custom policy Update tags": { + "$ref": "./examples/DdosCustomPolicyUpdateTags.json" + } + } + } + } + }, + "definitions": { + "DdosCustomPolicy": { + "description": "A DDoS custom policy in a resource group.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DdosCustomPolicyPropertiesFormat", + "description": "Properties of the DDoS custom policy." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ] + }, + "DdosCustomPolicyPropertiesFormat": { + "properties": { + "resourceGuid": { + "readOnly": true, + "type": "string", + "description": "The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the DDoS custom policy resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'." + }, + "publicIPAddresses": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "The list of public IPs associated with the DDoS custom policy resource. This list is read-only." + }, + "protocolCustomSettings": { + "readOnly": false, + "type": "array", + "items": { + "$ref": "#/definitions/ProtocolCustomSettingsFormat" + }, + "description": "The protocol-specific DDoS policy customization parameters." + } + }, + "description": "DDoS custom policy properties." + }, + "ProtocolCustomSettingsFormat": { + "properties": { + "protocol": { + "readOnly": false, + "type": "string", + "enum": [ + "Tcp", + "Udp", + "Syn" + ], + "x-ms-enum": { + "name": "DdosCustomPolicyProtocol", + "modelAsString": true + }, + "description": "The protocol for which the DDoS protection policy is being customized." + }, + "triggerRateOverride": { + "readOnly": false, + "type": "string", + "description": "The customized DDoS protection trigger rate." + }, + "sourceRateOverride": { + "readOnly": false, + "type": "string", + "description": "The customized DDoS protection source rate." + }, + "triggerSensitivityOverride": { + "readOnly": false, + "type": "string", + "enum": [ + "Relaxed", + "Low", + "Default", + "High" + ], + "x-ms-enum": { + "name": "DdosCustomPolicyTriggerSensitivityOverride", + "modelAsString": true + }, + "description": "The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic." + } + }, + "description": "DDoS custom policy properties." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Cloud error body." + } + }, + "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." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/ddosProtectionPlan.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/ddosProtectionPlan.json new file mode 100644 index 000000000000..75e566efb60f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/ddosProtectionPlan.json @@ -0,0 +1,401 @@ +{ + "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-06-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/ddosProtectionPlans/{ddosProtectionPlanName}": { + "delete": { + "tags": [ + "DdosProtectionPlans" + ], + "operationId": "DdosProtectionPlans_Delete", + "description": "Deletes the specified DDoS protection plan.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "ddosProtectionPlanName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DDoS protection plan." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request successful. Resource does not exist." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete DDoS protection plan": { + "$ref": "./examples/DdosProtectionPlanDelete.json" + } + } + }, + "get": { + "tags": [ + "DdosProtectionPlans" + ], + "operationId": "DdosProtectionPlans_Get", + "description": "Gets information about the specified DDoS protection plan.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "ddosProtectionPlanName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DDoS protection plan." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the specified DDoS protection plan resource.", + "schema": { + "$ref": "#/definitions/DdosProtectionPlan" + } + } + }, + "x-ms-examples": { + "Get DDoS protection plan": { + "$ref": "./examples/DdosProtectionPlanGet.json" + } + } + }, + "put": { + "tags": [ + "DdosProtectionPlans" + ], + "operationId": "DdosProtectionPlans_CreateOrUpdate", + "description": "Creates or updates a DDoS protection plan.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "ddosProtectionPlanName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DDoS protection plan." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DdosProtectionPlan" + }, + "description": "Parameters supplied to the create or update operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting DDoS protection plan resource.", + "schema": { + "$ref": "#/definitions/DdosProtectionPlan" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting DDoS protection plan resource.", + "schema": { + "$ref": "#/definitions/DdosProtectionPlan" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create DDoS protection plan": { + "$ref": "./examples/DdosProtectionPlanCreate.json" + } + } + }, + "patch": { + "tags": [ + "DdosProtectionPlans" + ], + "operationId": "DdosProtectionPlans_UpdateTags", + "description": "Update a DDoS protection plan tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "ddosProtectionPlanName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DDoS protection plan." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to the update DDoS protection plan resource tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting DDoS protection plan resource.", + "schema": { + "$ref": "#/definitions/DdosProtectionPlan" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "DDoS protection plan Update tags": { + "$ref": "./examples/DdosProtectionPlanUpdateTags.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans": { + "get": { + "tags": [ + "DdosProtectionPlans" + ], + "operationId": "DdosProtectionPlans_List", + "description": "Gets all DDoS protection plans in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of DDoS protection plan resources.", + "schema": { + "$ref": "#/definitions/DdosProtectionPlanListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all DDoS protection plans": { + "$ref": "./examples/DdosProtectionPlanListAll.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans": { + "get": { + "tags": [ + "DdosProtectionPlans" + ], + "operationId": "DdosProtectionPlans_ListByResourceGroup", + "description": "Gets all the DDoS protection plans in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of DDoS protection plan resources.", + "schema": { + "$ref": "#/definitions/DdosProtectionPlanListResult" + } + } + }, + "x-ms-examples": { + "List DDoS protection plans in resource group": { + "$ref": "./examples/DdosProtectionPlanList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "DdosProtectionPlan": { + "description": "A DDoS protection plan in a resource group.", + "x-ms-azure-resource": true, + "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." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DdosProtectionPlanPropertiesFormat", + "description": "Properties of the DDoS protection plan." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + } + }, + "DdosProtectionPlanPropertiesFormat": { + "properties": { + "resourceGuid": { + "readOnly": true, + "type": "string", + "description": "The resource GUID property of the DDoS protection plan resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the DDoS protection plan resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'." + }, + "virtualNetworks": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "The list of virtual networks associated with the DDoS protection plan resource. This list is read-only." + } + }, + "description": "DDoS protection plan properties." + }, + "DdosProtectionPlanListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DdosProtectionPlan" + }, + "description": "A list of DDoS protection plans." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "A list of DDoS protection plans." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/endpointService.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/endpointService.json new file mode 100644 index 000000000000..040d0aa783d6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/endpointService.json @@ -0,0 +1,113 @@ +{ + "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-06-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.Network/locations/{location}/virtualNetworkAvailableEndpointServices": { + "get": { + "operationId": "AvailableEndpointServices_List", + "description": "List what values of endpoint services are available for use.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location to check available endpoint services." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns list of available endpoint services.", + "schema": { + "$ref": "#/definitions/EndpointServicesListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "EndpointServicesList": { + "$ref": "./examples/EndpointServicesList.json" + } + } + } + } + }, + "definitions": { + "EndpointServicesListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EndpointServiceResult" + }, + "description": "List of available endpoint services in a region." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for the ListAvailableEndpointServices API service call." + }, + "EndpointServiceResult": { + "properties": { + "name": { + "type": "string", + "description": "Name of the endpoint service.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Type of the endpoint service.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Endpoint service." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableRequestHeadersGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableRequestHeadersGet.json new file mode 100644 index 000000000000..d7f2485b6b1c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableRequestHeadersGet.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "72f988bf-86f1-41af-91ab-2d7cd0dddd4" + }, + "responses": { + "200": { + "body": [ + "Accept-Charset" + ] + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableResponseHeadersGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableResponseHeadersGet.json new file mode 100644 index 000000000000..51e0d480f00f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableResponseHeadersGet.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "72f988bf-86f1-41af-91ab-2d7cd0dddd4" + }, + "responses": { + "200": { + "body": [ + "Access-Control-Allow-Origin" + ] + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableServerVariablesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableServerVariablesGet.json new file mode 100644 index 000000000000..7a16b61b0b32 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableServerVariablesGet.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "72f988bf-86f1-41af-91ab-2d7cd0dddd4" + }, + "responses": { + "200": { + "body": [ + "request_query" + ] + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableSslOptionsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableSslOptionsGet.json new file mode 100644 index 000000000000..36159e0dcf09 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableSslOptionsGet.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default", + "type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions", + "properties": { + "predefinedPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501" + }, + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401" + }, + { + "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401S" + } + ], + "defaultPolicy": "AppGwSslPolicy20150501", + "availableCipherSuites": [ + "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", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_DHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_3DES_EDE_CBC_SHA", + "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + ], + "availableProtocols": [ + "TLSv1_0", + "TLSv1_1", + "TLSv1_2" + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json new file mode 100644 index 000000000000..b2d50ae8e9f9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "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", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_DHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_3DES_EDE_CBC_SHA", + "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + ], + "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", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "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_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", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_128_CBC_SHA" + ], + "minProtocolVersion": "TLSv1_2" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json new file mode 100644 index 000000000000..d23105c1d1ce --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "predefinedPolicyName": "AppGwSslPolicy20150501" + }, + "responses": { + "200": { + "body": { + "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", + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384", + "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256", + "TLS_DHE_RSA_WITH_AES_256_CBC_SHA", + "TLS_DHE_RSA_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_AES_256_GCM_SHA384", + "TLS_RSA_WITH_AES_128_GCM_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA256", + "TLS_RSA_WITH_AES_128_CBC_SHA256", + "TLS_RSA_WITH_AES_256_CBC_SHA", + "TLS_RSA_WITH_AES_128_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256", + "TLS_DHE_DSS_WITH_AES_256_CBC_SHA", + "TLS_DHE_DSS_WITH_AES_128_CBC_SHA", + "TLS_RSA_WITH_3DES_EDE_CBC_SHA", + "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + ], + "minProtocolVersion": "TLSv1_0" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableWafRuleSetsGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableWafRuleSetsGet.json new file mode 100644 index 000000000000..1f854921bd65 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayAvailableWafRuleSetsGet.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "OWASP_3.0", + "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets/", + "type": "Microsoft.Network/applicationGatewayAvailableWafRuleSets", + "properties": { + "provisioningState": "Succeeded", + "ruleSetType": "OWASP", + "ruleSetVersion": "3.0", + "ruleGroups": [ + { + "ruleGroupName": "General", + "description": "", + "rules": [ + { + "ruleId": 200004, + "description": "Possible Multipart Unmatched Boundary." + } + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayBackendHealthGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayBackendHealthGet.json new file mode 100644 index 000000000000..907801992147 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayBackendHealthGet.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "appgw", + "applicationGatewayName": "appgw" + }, + "responses": { + "200": { + "body": { + "backendAddressPools": [ + { + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFAnalyticsPool" + }, + "backendHttpSettingsCollection": [ + { + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings" + }, + "servers": [ + { + "address": "10.220.1.8", + "health": "Up" + } + ] + } + ] + }, + { + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFPool" + }, + "backendHttpSettingsCollection": [ + { + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings" + }, + "servers": [ + { + "address": "10.220.1.4", + "health": "Up" + }, + { + "address": "10.220.1.5", + "health": "Up" + } + ] + } + ] + } + ] + } + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayBackendHealthTest.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayBackendHealthTest.json new file mode 100644 index 000000000000..9fc5e1dcf490 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayBackendHealthTest.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "applicationGatewayName": "appgw", + "probeRequest": { + "protocol": "Http", + "pickHostNameFromBackendHttpSettings": true, + "path": "/", + "timeout": 30, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFAnalyticsPool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings" + } + } + }, + "responses": { + "200": { + "body": { + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFAnalyticsPool" + }, + "backendHealthHttpSettings": { + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings" + }, + "servers": [ + { + "address": "10.220.1.4", + "health": "Up" + }, + { + "address": "10.220.1.5", + "health": "Up" + } + ] + } + } + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayCreate.json new file mode 100644 index 000000000000..265b0e4714ff --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayCreate.json @@ -0,0 +1,732 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "applicationGatewayName": "appgw", + "parameters": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {} + } + }, + "location": "eastus", + "properties": { + "sku": { + "name": "Standard_v2", + "tier": "Standard_v2", + "capacity": 3 + }, + "gatewayIPConfigurations": [ + { + "name": "appgwipc", + "properties": { + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet/subnets/appgwsubnet" + } + } + } + ], + "sslCertificates": [ + { + "name": "sslcert", + "properties": { + "data": "****", + "password": "****" + } + }, + { + "name": "sslcert2", + "properties": { + "keyVaultSecretId": "https://kv/secret" + } + } + ], + "trustedRootCertificates": [ + { + "name": "rootcert", + "properties": { + "data": "****" + } + }, + { + "name": "rootcert1", + "properties": { + "keyVaultSecretId": "https://kv/secret" + } + } + ], + "frontendIPConfigurations": [ + { + "name": "appgwfip", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/appgwpip" + } + } + } + ], + "frontendPorts": [ + { + "name": "appgwfp", + "properties": { + "port": 443 + } + }, + { + "name": "appgwfp80", + "properties": { + "port": 80 + } + } + ], + "backendAddressPools": [ + { + "name": "appgwpool", + "properties": { + "backendAddresses": [ + { + "ipAddress": "10.0.1.1" + }, + { + "ipAddress": "10.0.1.2" + } + ] + } + } + ], + "backendHttpSettingsCollection": [ + { + "name": "appgwbhs", + "properties": { + "port": 80, + "protocol": "Http", + "cookieBasedAffinity": "Disabled", + "requestTimeout": 30 + } + } + ], + "httpListeners": [ + { + "name": "appgwhl", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp" + }, + "protocol": "Https", + "sslCertificate": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/sslCertificates/sslcert" + }, + "requireServerNameIndication": false + } + }, + { + "name": "appgwhttplistener", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80" + }, + "protocol": "Http" + } + } + ], + "urlPathMaps": [ + { + "name": "pathMap1", + "properties": { + "defaultBackendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "defaultBackendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "defaultRewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + }, + "pathRules": [ + { + "name": "apiPaths", + "properties": { + "paths": [ + "/api", + "/v1/api" + ], + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + } + ] + } + } + ], + "requestRoutingRules": [ + { + "name": "appgwrule", + "properties": { + "ruleType": "Basic", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl" + }, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + }, + { + "name": "appgwPathBasedRule", + "properties": { + "ruleType": "PathBasedRouting", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhttplistener" + }, + "urlPathMap": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1" + } + } + } + ], + "rewriteRuleSets": [ + { + "name": "rewriteRuleSet1", + "properties": { + "rewriteRules": [ + { + "name": "Set X-Forwarded-For", + "ruleSequence": 102, + "conditions": [ + { + "variable": "http_req_Authorization", + "pattern": "^Bearer", + "ignoreCase": true, + "negate": false + } + ], + "actionSet": { + "requestHeaderConfigurations": [ + { + "headerName": "X-Forwarded-For", + "headerValue": "{var_add_x_forwarded_for_proxy}" + } + ], + "responseHeaderConfigurations": [ + { + "headerName": "Strict-Transport-Security", + "headerValue": "max-age=31536000" + } + ] + } + } + ] + } + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "name": "appgw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw", + "type": "Microsoft.Network/applicationGateways", + "location": "southcentralus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Standard_Medium", + "tier": "Standard", + "capacity": 3 + }, + "operationalState": "Running", + "gatewayIPConfigurations": [ + { + "name": "appgwipc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/gatewayIPConfigurations/appgwipc", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1/subnets/appgwsubnet" + } + } + } + ], + "sslCertificates": [ + { + "name": "sslcert", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/sslCertificates/sslcert", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "*****" + } + } + ], + "authenticationCertificates": [], + "frontendIPConfigurations": [ + { + "name": "appgwfip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/appgwpip" + } + } + } + ], + "frontendPorts": [ + { + "name": "appgwfp", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp", + "properties": { + "provisioningState": "Succeeded", + "port": 443 + } + }, + { + "name": "appgwfp80", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80", + "properties": { + "provisioningState": "Succeeded", + "port": 80 + } + } + ], + "backendAddressPools": [ + { + "name": "appgwpool", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool", + "properties": { + "provisioningState": "Succeeded", + "backendAddresses": [] + } + } + ], + "backendHttpSettingsCollection": [ + { + "name": "appgwbhs", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs", + "properties": { + "provisioningState": "Succeeded", + "port": 80, + "protocol": "Http", + "cookieBasedAffinity": "Disabled", + "requestTimeout": 30 + } + } + ], + "httpListeners": [ + { + "name": "appgwhl", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp" + }, + "protocol": "Https", + "sslCertificate": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/sslCertificates/sslcert" + }, + "requireServerNameIndication": false + } + }, + { + "name": "appgwhttplistener", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhttplistener", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80" + }, + "protocol": "Http" + } + } + ], + "urlPathMaps": [ + { + "name": "pathMap1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1", + "properties": { + "provisioningState": "Succeeded", + "defaultBackendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "defaultBackendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "defaultRewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + }, + "pathRules": [ + { + "name": "apiPaths", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1/pathRules/apiPaths", + "properties": { + "provisioningState": "Succeeded", + "paths": [ + "/api", + "/v1/api" + ], + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + } + ] + } + } + ], + "requestRoutingRules": [ + { + "name": "appgwrule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/requestRoutingRules/appgwrule", + "properties": { + "provisioningState": "Succeeded", + "ruleType": "Basic", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl" + }, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + }, + { + "name": "appgwPathBasedRule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/requestRoutingRules/appgwPathBasedRule", + "properties": { + "provisioningState": "Succeeded", + "ruleType": "PathBasedRouting", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhttplistener" + }, + "urlPathMap": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1" + } + } + } + ], + "rewriteRuleSets": [ + { + "name": "rewriteRuleSet1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1", + "properties": { + "provisioningState": "Succeeded", + "rewriteRules": [ + { + "name": "Set X-Forwarded-For", + "ruleSequence": 102, + "conditions": [ + { + "variable": "http_req_Authorization", + "pattern": "^Bearer", + "ignoreCase": true, + "negate": false + } + ], + "actionSet": { + "requestHeaderConfigurations": [ + { + "headerName": "X-Forwarded-For", + "headerValue": "{var_remote-addr}" + } + ], + "responseHeaderConfigurations": [ + { + "headerName": "Strict-Transport-Security", + "headerValue": "max-age=31536000" + } + ] + } + } + ] + } + } + ], + "probes": [] + } + } + }, + "200": { + "body": { + "name": "appgw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw", + "type": "Microsoft.Network/applicationGateways", + "location": "southcentralus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Standard_Medium", + "tier": "Standard", + "capacity": 3 + }, + "operationalState": "Running", + "gatewayIPConfigurations": [ + { + "name": "appgwipc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/gatewayIPConfigurations/appgwipc", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1/subnets/appgwsubnet" + } + } + } + ], + "sslCertificates": [ + { + "name": "sslcert", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/sslCertificates/sslcert", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "*****" + } + } + ], + "authenticationCertificates": [], + "frontendIPConfigurations": [ + { + "name": "appgwfip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/appgwpip" + } + } + } + ], + "frontendPorts": [ + { + "name": "appgwfp", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp", + "properties": { + "provisioningState": "Succeeded", + "port": 443 + } + }, + { + "name": "appgwfp80", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80", + "properties": { + "provisioningState": "Succeeded", + "port": 80 + } + } + ], + "backendAddressPools": [ + { + "name": "appgwpool", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool", + "properties": { + "provisioningState": "Succeeded", + "backendAddresses": [] + } + } + ], + "backendHttpSettingsCollection": [ + { + "name": "appgwbhs", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs", + "properties": { + "provisioningState": "Succeeded", + "port": 80, + "protocol": "Http", + "cookieBasedAffinity": "Disabled", + "requestTimeout": 30 + } + } + ], + "httpListeners": [ + { + "name": "appgwhl", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp" + }, + "protocol": "Https", + "sslCertificate": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/sslCertificates/sslcert" + }, + "requireServerNameIndication": false + } + }, + { + "name": "appgwhttplistener", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhttplistener", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80" + }, + "protocol": "Http" + } + } + ], + "urlPathMaps": [ + { + "name": "pathMap1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1", + "properties": { + "provisioningState": "Succeeded", + "defaultBackendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "defaultBackendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "defaultRewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + }, + "pathRules": [ + { + "name": "apiPaths", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1/pathRules/apiPaths", + "properties": { + "provisioningState": "Succeeded", + "paths": [ + "/api", + "/v1/api" + ], + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + } + ] + } + } + ], + "requestRoutingRules": [ + { + "name": "appgwrule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/requestRoutingRules/appgwrule", + "properties": { + "provisioningState": "Succeeded", + "ruleType": "Basic", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl" + }, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + }, + { + "name": "appgwPathBasedRule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/requestRoutingRules/appgwPathBasedRule", + "properties": { + "provisioningState": "Succeeded", + "ruleType": "PathBasedRouting", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhttplistener" + }, + "urlPathMap": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1" + } + } + } + ], + "rewriteRuleSets": [ + { + "name": "rewriteRuleSet1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1", + "properties": { + "provisioningState": "Succeeded", + "rewriteRules": [ + { + "name": "Set X-Forwarded-For", + "ruleSequence": 102, + "conditions": [ + { + "variable": "http_req_Authorization", + "pattern": "^Bearer", + "ignoreCase": true, + "negate": false + } + ], + "actionSet": { + "requestHeaderConfigurations": [ + { + "headerName": "X-Forwarded-For", + "headerValue": "{var_remote-addr}" + } + ], + "responseHeaderConfigurations": [ + { + "headerName": "Strict-Transport-Security", + "headerValue": "max-age=31536000" + } + ] + } + } + ] + } + } + ], + "probes": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayDelete.json new file mode 100644 index 000000000000..efcd8b6f7bc6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "applicationGatewayName": "appgw" + }, + "responses": { + "202": {}, + "204": {}, + "200": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayGet.json new file mode 100644 index 000000000000..c78ed94b34c3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayGet.json @@ -0,0 +1,252 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "applicationGatewayName": "appgw" + }, + "responses": { + "200": { + "body": { + "name": "appgw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw", + "type": "Microsoft.Network/applicationGateways", + "location": "southcentralus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Standard_Medium", + "tier": "Standard", + "capacity": 3 + }, + "operationalState": "Running", + "gatewayIPConfigurations": [ + { + "name": "appgwipc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/gatewayIPConfigurations/appgwipc", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1/subnets/appgwsubnet" + } + } + } + ], + "sslCertificates": [ + { + "name": "sslcert", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/sslCertificates/sslcert", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "*****" + } + } + ], + "authenticationCertificates": [], + "frontendIPConfigurations": [ + { + "name": "appgwfip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/appgwpip" + } + } + } + ], + "frontendPorts": [ + { + "name": "appgwfp", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp", + "properties": { + "provisioningState": "Succeeded", + "port": 443 + } + }, + { + "name": "appgwfp80", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80", + "properties": { + "provisioningState": "Succeeded", + "port": 80 + } + } + ], + "backendAddressPools": [ + { + "name": "appgwpool", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool", + "properties": { + "provisioningState": "Succeeded", + "backendAddresses": [] + } + } + ], + "backendHttpSettingsCollection": [ + { + "name": "appgwbhs", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs", + "properties": { + "provisioningState": "Succeeded", + "port": 80, + "protocol": "Http", + "cookieBasedAffinity": "Disabled", + "requestTimeout": 30 + } + } + ], + "httpListeners": [ + { + "name": "appgwhl", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp" + }, + "protocol": "Https", + "sslCertificate": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/sslCertificates/sslcert" + }, + "requireServerNameIndication": false + } + }, + { + "name": "appgwhttplistener", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhttplistener", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80" + }, + "protocol": "Http" + } + } + ], + "urlPathMaps": [ + { + "name": "pathMap1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1", + "properties": { + "provisioningState": "Succeeded", + "defaultBackendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "defaultBackendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "defaultRewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + }, + "pathRules": [ + { + "name": "apiPaths", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1/pathRules/apiPaths", + "properties": { + "provisioningState": "Succeeded", + "paths": [ + "/api", + "/v1/api" + ], + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + } + ] + } + } + ], + "requestRoutingRules": [ + { + "name": "appgwrule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/requestRoutingRules/appgwrule", + "properties": { + "provisioningState": "Succeeded", + "ruleType": "Basic", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl" + }, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + }, + "rewriteRuleSet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1" + } + } + }, + { + "name": "appgwPathBasedRule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/requestRoutingRules/appgwPathBasedRule", + "properties": { + "provisioningState": "Succeeded", + "ruleType": "PathBasedRouting", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhttplistener" + }, + "urlPathMap": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/urlPathMaps/pathMap1" + } + } + } + ], + "rewriteRuleSets": [ + { + "name": "rewriteRuleSet1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1", + "properties": { + "provisioningState": "Succeeded", + "rewriteRules": [ + { + "name": "Set X-Forwarded-For", + "ruleSequence": 102, + "conditions": [ + { + "variable": "http_req_Authorization", + "pattern": "^Bearer", + "ignoreCase": true, + "negate": false + } + ], + "actionSet": { + "requestHeaderConfigurations": [ + { + "headerName": "X-Forwarded-For", + "headerValue": "{var_remote-addr}" + } + ], + "responseHeaderConfigurations": [ + { + "headerName": "Strict-Transport-Security", + "headerValue": "max-age=31536000" + } + ] + } + } + ] + } + } + ], + "probes": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayList.json new file mode 100644 index 000000000000..9cd20c26b403 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayList.json @@ -0,0 +1,125 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "appgw", + "type": "Microsoft.Network/applicationGateways", + "location": "southcentralus", + "properties": { + "sku": { + "name": "Standard_Medium", + "tier": "Standard", + "capacity": 3 + }, + "gatewayIPConfigurations": [ + { + "name": "appgwipc", + "properties": { + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet/subnets/appgwsubnet" + } + } + } + ], + "sslCertificates": [ + { + "name": "sslcert", + "properties": { + "data": "base64-pfxData", + "password": "pass1" + } + } + ], + "frontendIPConfigurations": [ + { + "name": "appgwfip", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/appgwpip" + } + } + } + ], + "frontendPorts": [ + { + "name": "appgwfp", + "properties": { + "port": 443 + } + } + ], + "backendAddressPools": [ + { + "name": "appgwpool", + "properties": { + "backendAddresses": [ + { + "ipAddress": "10.0.1.1" + }, + { + "ipAddress": "10.0.1.2" + } + ] + } + } + ], + "backendHttpSettingsCollection": [ + { + "name": "appgwbhs", + "properties": { + "port": 80, + "protocol": "Http", + "cookieBasedAffinity": "Disabled", + "requestTimeout": 30 + } + } + ], + "httpListeners": [ + { + "name": "appgwhl", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp" + }, + "protocol": "Https", + "sslCertificate": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/sslCertificates/sslcert" + }, + "requireServerNameIndication": false + } + } + ], + "requestRoutingRules": [ + { + "name": "appgwrule", + "properties": { + "ruleType": "Basic", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl" + }, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + } + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayListAll.json new file mode 100644 index 000000000000..42e72ad3ece1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayListAll.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "appgw", + "type": "Microsoft.Network/applicationGateways", + "location": "southcentralus", + "properties": { + "sku": { + "name": "Standard_Medium", + "tier": "Standard", + "capacity": 3 + }, + "gatewayIPConfigurations": [ + { + "name": "appgwipc", + "properties": { + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet/subnets/appgwsubnet" + } + } + } + ], + "sslCertificates": [ + { + "name": "sslcert", + "properties": { + "data": "base64-pfxData", + "password": "pass1" + } + } + ], + "frontendIPConfigurations": [ + { + "name": "appgwfip", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/appgwpip" + } + } + } + ], + "frontendPorts": [ + { + "name": "appgwfp", + "properties": { + "port": 443 + } + } + ], + "backendAddressPools": [ + { + "name": "appgwpool", + "properties": { + "backendAddresses": [ + { + "ipAddress": "10.0.1.1" + }, + { + "ipAddress": "10.0.1.2" + } + ] + } + } + ], + "backendHttpSettingsCollection": [ + { + "name": "appgwbhs", + "properties": { + "port": 80, + "protocol": "Http", + "cookieBasedAffinity": "Disabled", + "requestTimeout": 30 + } + } + ], + "httpListeners": [ + { + "name": "appgwhl", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp" + }, + "protocol": "Https", + "sslCertificate": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/sslCertificates/sslcert" + }, + "requireServerNameIndication": false + } + } + ], + "requestRoutingRules": [ + { + "name": "appgwrule", + "properties": { + "ruleType": "Basic", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl" + }, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs" + } + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayStart.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayStart.json new file mode 100644 index 000000000000..5187fc361482 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayStart.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "applicationGatewayName": "appgw" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayStop.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayStop.json new file mode 100644 index 000000000000..5187fc361482 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayStop.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "applicationGatewayName": "appgw" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayUpdateTags.json new file mode 100644 index 000000000000..00619c5e69bd --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationGatewayUpdateTags.json @@ -0,0 +1,148 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "applicationGatewayName": "AppGw", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "AppGw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/AppGw", + "type": "Microsoft.Network/applicationGateways", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "sku": { + "name": "Standard_Small", + "tier": "Standard", + "capacity": 2 + }, + "operationalState": "Running", + "gatewayIPConfigurations": [ + { + "name": "GatewayIp01", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/AppGw/gatewayIPConfigurations/GatewayIp01", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet/subnets/subnet1" + } + } + } + ], + "sslCertificates": [], + "authenticationCertificates": [], + "frontendIPConfigurations": [ + { + "name": "FrontEndConfig01", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/AppGw/frontendIPConfigurations/FrontEndConfig01", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/publicIp1" + } + } + } + ], + "frontendPorts": [ + { + "name": "FrontEndPort01", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/AppGw/frontendPorts/FrontEndPort01", + "properties": { + "provisioningState": "Succeeded", + "port": 80 + } + } + ], + "backendAddressPools": [ + { + "name": "Pool01", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/AppGw/backendAddressPools/Pool01", + "properties": { + "provisioningState": "Succeeded", + "backendAddresses": [ + { + "ipAddress": "10.10.10.1" + }, + { + "ipAddress": "10.10.10.2" + }, + { + "ipAddress": "10.10.10.3" + } + ] + } + } + ], + "backendHttpSettingsCollection": [ + { + "name": "PoolSetting01", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/AppGw/backendHttpSettingsCollection/PoolSetting01", + "properties": { + "provisioningState": "Succeeded", + "port": 80, + "protocol": "Http", + "cookieBasedAffinity": "Disabled", + "pickHostNameFromBackendAddress": false, + "requestTimeout": 30 + } + } + ], + "httpListeners": [ + { + "name": "listener1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/AppGw/httpListeners/listener1", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/AppGw/frontendIPConfigurations/FrontEndConfig01" + }, + "frontendPort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/AppGw/frontendPorts/FrontEndPort01" + }, + "protocol": "Http", + "requireServerNameIndication": false + } + } + ], + "urlPathMaps": [], + "requestRoutingRules": [ + { + "name": "Rule01", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/AppGw/requestRoutingRules/Rule01", + "properties": { + "provisioningState": "Succeeded", + "ruleType": "Basic", + "httpListener": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/AppGw/httpListeners/listener1" + }, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/AppGw/backendAddressPools/Pool01" + }, + "backendHttpSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/AppGw/backendHttpSettingsCollection/PoolSetting01" + } + } + } + ], + "probes": [], + "redirectConfigurations": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupCreate.json new file mode 100644 index 000000000000..074a8925cc0f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupCreate.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "applicationSecurityGroupName": "test-asg", + "parameters": { + "location": "westus", + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "name": "test-asg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationSecurityGroups/test-asg", + "type": "Microsoft.Network/applicationSecurityGroups", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + }, + "201": { + "body": { + "name": "test-asg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationSecurityGroups/test-asg", + "type": "Microsoft.Network/applicationSecurityGroups", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupDelete.json new file mode 100644 index 000000000000..172a2cc5ceb1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "applicationSecurityGroupName": "test-asg" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupGet.json new file mode 100644 index 000000000000..8734fa66f7bc --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "applicationSecurityGroupName": "test-asg" + }, + "responses": { + "200": { + "body": { + "name": "test-asg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationSecurityGroups/test-asg", + "type": "Microsoft.Network/applicationSecurityGroups", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupList.json new file mode 100644 index 000000000000..c67272a37064 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupList.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationSecurityGroups/asg1", + "name": "asg1", + "type": "Microsoft.Network/applicationSecurityGroups", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationSecurityGroups/asg2", + "name": "asg2", + "type": "Microsoft.Network/applicationSecurityGroups", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupListAll.json new file mode 100644 index 000000000000..ef74dcbb659b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupListAll.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationSecurityGroups/asg1", + "name": "asg1", + "type": "Microsoft.Network/applicationSecurityGroups", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationSecurityGroups/asg2", + "name": "asg2", + "type": "Microsoft.Network/applicationSecurityGroups", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupUpdateTags.json new file mode 100644 index 000000000000..c3e45d6b0e95 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ApplicationSecurityGroupUpdateTags.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "applicationSecurityGroupName": "test-asg", + "location": "westus", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-asg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationSecurityGroups/test-asg", + "type": "Microsoft.Network/applicationSecurityGroups", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AutoApprovedPrivateLinkServicesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AutoApprovedPrivateLinkServicesGet.json new file mode 100644 index 000000000000..fa6cb8ec4fa9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AutoApprovedPrivateLinkServicesGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "location": "regionName", + "subscriptionId": "subId" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "privateLinkService": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls1" + }, + { + "privateLinkService": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls2" + }, + { + "privateLinkService": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls3" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json new file mode 100644 index 000000000000..d3a024d3fcdf --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "location": "regionName", + "subscriptionId": "subId", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "privateLinkService": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls1" + }, + { + "privateLinkService": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls2" + }, + { + "privateLinkService": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls3" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AvailableDelegationsResourceGroupGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AvailableDelegationsResourceGroupGet.json new file mode 100644 index 000000000000..d62bd1479581 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AvailableDelegationsResourceGroupGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "location": "westcentralus", + "subscriptionId": "subId", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Provider.resourceType", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/availableDelegations/Microsoft.Provider.resourceType", + "type": "Microsoft.Network/availableDelegations", + "serviceName": "Microsoft.Provider/resourceType", + "actions": [ + "Microsoft.Network/resource/action" + ] + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AvailableDelegationsSubscriptionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AvailableDelegationsSubscriptionGet.json new file mode 100644 index 000000000000..adc2c5ca785b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AvailableDelegationsSubscriptionGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "location": "westcentralus", + "subscriptionId": "subId" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Provider.resourceType", + "id": "/subscriptions/subId/providers/Microsoft.Network/availableDelegations/Microsoft.Provider.resourceType", + "type": "Microsoft.Network/availableDelegations", + "serviceName": "Microsoft.Provider/resourceType", + "actions": [ + "Microsoft.Network/resource/action" + ] + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AvailablePrivateEndpointTypesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AvailablePrivateEndpointTypesGet.json new file mode 100644 index 000000000000..2b36cdc3eb00 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AvailablePrivateEndpointTypesGet.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "location": "regionName", + "subscriptionId": "subId" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subId/providers/Microsoft.Network/availablePrivateEndpointTypes/Microsoft.Provider.resourceType", + "type": "Microsoft.Network/availablePrivateEndpointTypes", + "resourceName": "Microsoft.Provider/resourceType" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json new file mode 100644 index 000000000000..527f28df1079 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "location": "regionName", + "subscriptionId": "subId", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/availablePrivateEndpointTypes/Microsoft.Provider.resourceType", + "type": "Microsoft.Network/availablePrivateEndpointTypes", + "resourceName": "Microsoft.Provider/resourceType" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallDelete.json new file mode 100644 index 000000000000..cd87d370bae9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureFirewallName": "azurefirewall" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallFqdnTagsListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallFqdnTagsListBySubscription.json new file mode 100644 index 000000000000..e46ca004ef99 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallFqdnTagsListBySubscription.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "azfwfqdntag", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewallFqdnTags/azfwfqdntag", + "type": "Microsoft.Network/azureFirewallFqdnTags", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "fqdnTagName": "azfwfqdntag" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallGet.json new file mode 100644 index 000000000000..59446c78f26c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallGet.json @@ -0,0 +1,136 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureFirewallName": "azurefirewall" + }, + "responses": { + "200": { + "body": { + "name": "azurefirewall", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall", + "type": "Microsoft.Network/azureFirewalls", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "zones": [], + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "ipConfigurations": [ + { + "name": "azureFirewallIpConfiguration", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewallgw/ipConfigurations/azureFirewallIpConfiguration", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.0", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ], + "applicationRuleCollections": [ + { + "name": "apprulecoll", + "properties": { + "priority": 110, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "rule1", + "description": "Deny inbound rule", + "protocols": [ + { + "protocolType": "Https", + "port": 443 + } + ], + "targetFqdns": [ + "www.test.com" + ], + "sourceAddresses": [ + "216.58.216.164", + "10.0.0.0/24" + ] + } + ] + } + } + ], + "natRuleCollections": [ + { + "name": "natrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Dnat" + }, + "rules": [ + { + "name": "DNAT-HTTPS-traffic", + "description": "D-NAT all outbound web traffic for inspection", + "sourceAddresses": [ + "*" + ], + "destinationAddresses": [ + "1.2.3.4" + ], + "destinationPorts": [ + "443" + ], + "protocols": [ + "TCP" + ], + "translatedAddress": "1.2.3.5", + "translatedPort": "8443" + } + ] + } + } + ], + "networkRuleCollections": [ + { + "name": "netrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "L4-traffic", + "description": "Block traffic based on source IPs and ports", + "sourceAddresses": [ + "192.168.1.1-192.168.1.12", + "10.1.4.12-10.1.4.255" + ], + "destinationPorts": [ + "443-444", + "8443" + ], + "destinationAddresses": [ + "*" + ], + "protocols": [ + "TCP" + ] + } + ] + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallGetWithZones.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallGetWithZones.json new file mode 100644 index 000000000000..e23e50ece3f2 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallGetWithZones.json @@ -0,0 +1,140 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureFirewallName": "azurefirewall" + }, + "responses": { + "200": { + "body": { + "name": "azurefirewall", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall", + "type": "Microsoft.Network/azureFirewalls", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US 2", + "zones": [ + "1", + "2", + "3" + ], + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "ipConfigurations": [ + { + "name": "azureFirewallIpConfiguration", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewallgw/ipConfigurations/azureFirewallIpConfiguration", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.0", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ], + "applicationRuleCollections": [ + { + "name": "apprulecoll", + "properties": { + "priority": 110, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "rule1", + "description": "Deny inbound rule", + "protocols": [ + { + "protocolType": "Https", + "port": 443 + } + ], + "targetFqdns": [ + "www.test.com" + ], + "sourceAddresses": [ + "216.58.216.164", + "10.0.0.0/24" + ] + } + ] + } + } + ], + "natRuleCollections": [ + { + "name": "natrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Dnat" + }, + "rules": [ + { + "name": "DNAT-HTTPS-traffic", + "description": "D-NAT all outbound web traffic for inspection", + "sourceAddresses": [ + "*" + ], + "destinationAddresses": [ + "1.2.3.4" + ], + "destinationPorts": [ + "443" + ], + "protocols": [ + "TCP" + ], + "translatedAddress": "1.2.3.5", + "translatedPort": "8443" + } + ] + } + } + ], + "networkRuleCollections": [ + { + "name": "netrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "L4-traffic", + "description": "Block traffic based on source IPs and ports", + "sourceAddresses": [ + "192.168.1.1-192.168.1.12", + "10.1.4.12-10.1.4.255" + ], + "destinationPorts": [ + "443-444", + "8443" + ], + "destinationAddresses": [ + "*" + ], + "protocols": [ + "TCP" + ] + } + ] + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallListByResourceGroup.json new file mode 100644 index 000000000000..daa622865e1a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallListByResourceGroup.json @@ -0,0 +1,139 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "azurefirewall", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall", + "type": "Microsoft.Network/azureFirewalls", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "zones": [], + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "ipConfigurations": [ + { + "name": "azureFirewallIpConfiguration", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azfirewallgw/ipConfigurations/azureFirewallIpConfiguration", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.0", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ], + "applicationRuleCollections": [ + { + "name": "apprulecoll", + "properties": { + "priority": 110, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "rule1", + "description": "Deny inbound rule", + "protocols": [ + { + "protocolType": "Https", + "port": 443 + } + ], + "targetFqdns": [ + "www.test.com" + ], + "sourceAddresses": [ + "216.58.216.164", + "10.0.0.0/24" + ] + } + ] + } + } + ], + "natRuleCollections": [ + { + "name": "natrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Dnat" + }, + "rules": [ + { + "name": "DNAT-HTTPS-traffic", + "description": "D-NAT all outbound web traffic for inspection", + "sourceAddresses": [ + "*" + ], + "destinationAddresses": [ + "1.2.3.4" + ], + "destinationPorts": [ + "443" + ], + "protocols": [ + "TCP" + ], + "translatedAddress": "1.2.3.5", + "translatedPort": "8443" + } + ] + } + } + ], + "networkRuleCollections": [ + { + "name": "netrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "L4-traffic", + "description": "Block traffic based on source IPs and ports", + "sourceAddresses": [ + "192.168.1.1-192.168.1.12", + "10.1.4.12-10.1.4.255" + ], + "destinationPorts": [ + "443-444", + "8443" + ], + "destinationAddresses": [ + "*" + ], + "protocols": [ + "TCP" + ] + } + ] + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallListBySubscription.json new file mode 100644 index 000000000000..dfd9b6749338 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallListBySubscription.json @@ -0,0 +1,138 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "azurefirewall", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall", + "type": "Microsoft.Network/azureFirewalls", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "zones": [], + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "ipConfigurations": [ + { + "name": "azureFirewallIpConfiguration", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azfirewallgw/ipConfigurations/azureFirewallIpConfiguration", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.0", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ], + "applicationRuleCollections": [ + { + "name": "apprulecoll", + "properties": { + "priority": 110, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "rule1", + "description": "Deny inbound rule", + "protocols": [ + { + "protocolType": "Https", + "port": 443 + } + ], + "targetFqdns": [ + "www.test.com" + ], + "sourceAddresses": [ + "216.58.216.164", + "10.0.0.0/24" + ] + } + ] + } + } + ], + "natRuleCollections": [ + { + "name": "natrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Dnat" + }, + "rules": [ + { + "name": "DNAT-HTTPS-traffic", + "description": "D-NAT all outbound web traffic for inspection", + "sourceAddresses": [ + "*" + ], + "destinationAddresses": [ + "1.2.3.4" + ], + "destinationPorts": [ + "443" + ], + "protocols": [ + "TCP" + ], + "translatedAddress": "1.2.3.5", + "translatedPort": "8443" + } + ] + } + } + ], + "networkRuleCollections": [ + { + "name": "netrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "L4-traffic", + "description": "Block traffic based on source IPs and ports", + "sourceAddresses": [ + "192.168.1.1-192.168.1.12", + "10.1.4.12-10.1.4.255" + ], + "destinationPorts": [ + "443-444", + "8443" + ], + "destinationAddresses": [ + "*" + ], + "protocols": [ + "TCP" + ] + } + ] + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallPut.json new file mode 100644 index 000000000000..34778b7a0d63 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallPut.json @@ -0,0 +1,377 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureFirewallName": "azurefirewall", + "parameters": { + "tags": { + "key1": "value1" + }, + "location": "West US", + "zones": [], + "properties": { + "threatIntelMode": "Alert", + "ipConfigurations": [ + { + "name": "azureFirewallIpConfiguration", + "properties": { + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ], + "applicationRuleCollections": [ + { + "name": "apprulecoll", + "properties": { + "priority": 110, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "rule1", + "description": "Deny inbound rule", + "protocols": [ + { + "protocolType": "Https", + "port": 443 + } + ], + "targetFqdns": [ + "www.test.com" + ], + "sourceAddresses": [ + "216.58.216.164", + "10.0.0.0/24" + ] + } + ] + } + } + ], + "natRuleCollections": [ + { + "name": "natrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Dnat" + }, + "rules": [ + { + "name": "DNAT-HTTPS-traffic", + "description": "D-NAT all outbound web traffic for inspection", + "sourceAddresses": [ + "*" + ], + "destinationAddresses": [ + "1.2.3.4" + ], + "destinationPorts": [ + "443" + ], + "protocols": [ + "TCP" + ], + "translatedAddress": "1.2.3.5", + "translatedPort": "8443" + } + ] + } + } + ], + "networkRuleCollections": [ + { + "name": "netrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "L4-traffic", + "description": "Block traffic based on source IPs and ports", + "sourceAddresses": [ + "192.168.1.1-192.168.1.12", + "10.1.4.12-10.1.4.255" + ], + "destinationPorts": [ + "443-444", + "8443" + ], + "destinationAddresses": [ + "*" + ], + "protocols": [ + "TCP" + ] + } + ] + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "azurefirewall", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall", + "type": "Microsoft.Network/azureFirewalls", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "zones": [], + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "ipConfigurations": [ + { + "name": "azureFirewallIpConfiguration", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azfirewallgw/ipConfigurations/azureFirewallIpConfiguration", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.0", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ], + "applicationRuleCollections": [ + { + "name": "apprulecoll", + "properties": { + "priority": 110, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "rule1", + "description": "Deny inbound rule", + "protocols": [ + { + "protocolType": "Https", + "port": 443 + } + ], + "targetFqdns": [ + "www.test.com" + ], + "sourceAddresses": [ + "216.58.216.164", + "10.0.0.0/24" + ] + } + ] + } + } + ], + "natRuleCollections": [ + { + "name": "natrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Dnat" + }, + "rules": [ + { + "name": "DNAT-HTTPS-traffic", + "description": "D-NAT all outbound web traffic for inspection", + "sourceAddresses": [ + "*" + ], + "destinationAddresses": [ + "1.2.3.4" + ], + "destinationPorts": [ + "443" + ], + "protocols": [ + "TCP" + ], + "translatedAddress": "1.2.3.5", + "translatedPort": "8443" + } + ] + } + } + ], + "networkRuleCollections": [ + { + "name": "netrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "L4-traffic", + "description": "Block traffic based on source IPs and ports", + "sourceAddresses": [ + "192.168.1.1-192.168.1.12", + "10.1.4.12-10.1.4.255" + ], + "destinationPorts": [ + "443-444", + "8443" + ], + "destinationAddresses": [ + "*" + ], + "protocols": [ + "TCP" + ] + } + ] + } + } + ] + } + } + }, + "201": { + "body": { + "name": "azurefirewall", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall", + "type": "Microsoft.Network/azureFirewalls", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "zones": [], + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "ipConfigurations": [ + { + "name": "azureFirewallIpConfiguration", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azfirewallgw/ipConfigurations/azureFirewallIpConfiguration", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.0", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ], + "applicationRuleCollections": [ + { + "name": "apprulecoll", + "properties": { + "priority": 110, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "rule1", + "description": "Deny inbound rule", + "protocols": [ + { + "protocolType": "Https", + "port": 443 + } + ], + "targetFqdns": [ + "www.test.com" + ], + "sourceAddresses": [ + "216.58.216.164", + "10.0.0.0/24" + ] + } + ] + } + } + ], + "natRuleCollections": [ + { + "name": "natrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Dnat" + }, + "rules": [ + { + "name": "DNAT-HTTPS-traffic", + "description": "D-NAT all outbound web traffic for inspection", + "sourceAddresses": [ + "*" + ], + "destinationAddresses": [ + "1.2.3.4" + ], + "destinationPorts": [ + "443" + ], + "protocols": [ + "TCP" + ], + "translatedAddress": "1.2.3.5", + "translatedPort": "8443" + } + ] + } + } + ], + "networkRuleCollections": [ + { + "name": "netrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "L4-traffic", + "description": "Block traffic based on source IPs and ports", + "sourceAddresses": [ + "192.168.1.1-192.168.1.12", + "10.1.4.12-10.1.4.255" + ], + "destinationPorts": [ + "443-444", + "8443" + ], + "destinationAddresses": [ + "*" + ], + "protocols": [ + "TCP" + ] + } + ] + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallPutInHub.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallPutInHub.json new file mode 100644 index 000000000000..a36f65acd58b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallPutInHub.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureFirewallName": "azurefirewall", + "parameters": { + "tags": { + "key1": "value1" + }, + "location": "West US", + "zones": [], + "properties": { + "threatIntelMode": "Alert", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1" + }, + "firewallPolicy": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/policy1" + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "azurefirewall", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall", + "type": "Microsoft.Network/azureFirewalls", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "zones": [], + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1" + }, + "firewallPolicy": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/policy1" + }, + "hubIpAddresses": { + "publicIPAddresses": [ + { + "address": "13.73.240.12" + } + ], + "privateIPAddress": "10.0.0.0" + } + } + } + }, + "201": { + "body": { + "name": "azurefirewall", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall", + "type": "Microsoft.Network/azureFirewalls", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "zones": [], + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1" + }, + "firewallPolicy": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/policy1" + }, + "hubIpAddresses": { + "publicIPAddresses": [ + { + "address": "13.73.240.12" + } + ], + "privateIPAddress": "10.0.0.0" + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallPutWithZones.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallPutWithZones.json new file mode 100644 index 000000000000..891652a4be6c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallPutWithZones.json @@ -0,0 +1,389 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureFirewallName": "azurefirewall", + "parameters": { + "location": "West US 2", + "tags": { + "key1": "value1" + }, + "zones": [ + "1", + "2", + "3" + ], + "properties": { + "threatIntelMode": "Alert", + "ipConfigurations": [ + { + "name": "azureFirewallIpConfiguration", + "properties": { + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ], + "applicationRuleCollections": [ + { + "name": "apprulecoll", + "properties": { + "priority": 110, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "rule1", + "description": "Deny inbound rule", + "protocols": [ + { + "protocolType": "Https", + "port": 443 + } + ], + "targetFqdns": [ + "www.test.com" + ], + "sourceAddresses": [ + "216.58.216.164", + "10.0.0.0/24" + ] + } + ] + } + } + ], + "natRuleCollections": [ + { + "name": "natrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Dnat" + }, + "rules": [ + { + "name": "DNAT-HTTPS-traffic", + "description": "D-NAT all outbound web traffic for inspection", + "sourceAddresses": [ + "*" + ], + "destinationAddresses": [ + "1.2.3.4" + ], + "destinationPorts": [ + "443" + ], + "protocols": [ + "TCP" + ], + "translatedAddress": "1.2.3.5", + "translatedPort": "8443" + } + ] + } + } + ], + "networkRuleCollections": [ + { + "name": "netrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "L4-traffic", + "description": "Block traffic based on source IPs and ports", + "sourceAddresses": [ + "192.168.1.1-192.168.1.12", + "10.1.4.12-10.1.4.255" + ], + "destinationPorts": [ + "443-444", + "8443" + ], + "destinationAddresses": [ + "*" + ], + "protocols": [ + "TCP" + ] + } + ] + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "azurefirewall", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall", + "type": "Microsoft.Network/azureFirewalls", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US 2", + "zones": [ + "1", + "2", + "3" + ], + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "ipConfigurations": [ + { + "name": "azureFirewallIpConfiguration", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azfirewallgw/ipConfigurations/azureFirewallIpConfiguration", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.0", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ], + "applicationRuleCollections": [ + { + "name": "apprulecoll", + "properties": { + "priority": 110, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "rule1", + "description": "Deny inbound rule", + "protocols": [ + { + "protocolType": "Https", + "port": 443 + } + ], + "targetFqdns": [ + "www.test.com" + ], + "sourceAddresses": [ + "216.58.216.164", + "10.0.0.0/24" + ] + } + ] + } + } + ], + "natRuleCollections": [ + { + "name": "natrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Dnat" + }, + "rules": [ + { + "name": "DNAT-HTTPS-traffic", + "description": "D-NAT all outbound web traffic for inspection", + "sourceAddresses": [ + "*" + ], + "destinationAddresses": [ + "1.2.3.4" + ], + "destinationPorts": [ + "443" + ], + "protocols": [ + "TCP" + ], + "translatedAddress": "1.2.3.5", + "translatedPort": "8443" + } + ] + } + } + ], + "networkRuleCollections": [ + { + "name": "netrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "L4-traffic", + "description": "Block traffic based on source IPs and ports", + "sourceAddresses": [ + "192.168.1.1-192.168.1.12", + "10.1.4.12-10.1.4.255" + ], + "destinationPorts": [ + "443-444", + "8443" + ], + "destinationAddresses": [ + "*" + ], + "protocols": [ + "TCP" + ] + } + ] + } + } + ] + } + } + }, + "201": { + "body": { + "name": "azurefirewall", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall", + "type": "Microsoft.Network/azureFirewalls", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US 2", + "zones": [ + "1", + "2", + "3" + ], + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "ipConfigurations": [ + { + "name": "azureFirewallIpConfiguration", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azfirewallgw/ipConfigurations/azureFirewallIpConfiguration", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.0", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ], + "applicationRuleCollections": [ + { + "name": "apprulecoll", + "properties": { + "priority": 110, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "rule1", + "description": "Deny inbound rule", + "protocols": [ + { + "protocolType": "Https", + "port": 443 + } + ], + "targetFqdns": [ + "www.test.com" + ], + "sourceAddresses": [ + "216.58.216.164", + "10.0.0.0/24" + ] + } + ] + } + } + ], + "natRuleCollections": [ + { + "name": "natrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Dnat" + }, + "rules": [ + { + "name": "DNAT-HTTPS-traffic", + "description": "D-NAT all outbound web traffic for inspection", + "sourceAddresses": [ + "*" + ], + "destinationAddresses": [ + "1.2.3.4" + ], + "destinationPorts": [ + "443" + ], + "protocols": [ + "TCP" + ], + "translatedAddress": "1.2.3.5", + "translatedPort": "8443" + } + ] + } + } + ], + "networkRuleCollections": [ + { + "name": "netrulecoll", + "properties": { + "priority": 112, + "action": { + "type": "Deny" + }, + "rules": [ + { + "name": "L4-traffic", + "description": "Block traffic based on source IPs and ports", + "sourceAddresses": [ + "192.168.1.1-192.168.1.12", + "10.1.4.12-10.1.4.255" + ], + "destinationPorts": [ + "443-444", + "8443" + ], + "destinationAddresses": [ + "*" + ], + "protocols": [ + "TCP" + ] + } + ] + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallUpdateTags.json new file mode 100644 index 000000000000..2c21b5d0a590 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/AzureFirewallUpdateTags.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "azfwtest", + "azureFirewallName": "fw1", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "fw1", + "id": "/subscriptions/subid/resourceGroups/azfwtest/providers/Microsoft.Network/azureFirewalls/fw1", + "type": "Microsoft.Network/azureFirewalls", + "location": "brazilsouth", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostDelete.json new file mode 100644 index 000000000000..5c37bf67b71f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "bastionHostName": "bastionhosttenant" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostGet.json new file mode 100644 index 000000000000..d0f2fde93ae2 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostGet.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "bastionHostName": "bastionhosttenant'" + }, + "responses": { + "200": { + "body": { + "name": "bastionhost'", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", + "type": "Microsoft.Network/bastionHosts", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", + "ipConfigurations": [ + { + "name": "bastionHostIpConfiguration", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostListByResourceGroup.json new file mode 100644 index 000000000000..e116df5d8335 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostListByResourceGroup.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "bastionhost'", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", + "type": "Microsoft.Network/bastionHosts", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "properties": { + "provisioningState": "Succeeded", + "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", + "ipConfigurations": [ + { + "name": "bastionHostIpConfiguration", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostListBySubscription.json new file mode 100644 index 000000000000..c76495f159b8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostListBySubscription.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "bastionhost'", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", + "type": "Microsoft.Network/bastionHosts", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "properties": { + "provisioningState": "Succeeded", + "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", + "ipConfigurations": [ + { + "name": "bastionHostIpConfiguration", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostPut.json new file mode 100644 index 000000000000..ca3b6fe79ae0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/BastionHostPut.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "bastionHostName": "bastionhosttenant'", + "parameters": { + "properties": { + "ipConfigurations": [ + { + "name": "bastionHostIpConfiguration", + "properties": { + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "bastionhost'", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", + "type": "Microsoft.Network/bastionHosts", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "properties": { + "provisioningState": "Succeeded", + "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", + "ipConfigurations": [ + { + "name": "bastionHostIpConfiguration", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ] + } + } + }, + "201": { + "body": { + "name": "bastionhost'", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", + "type": "Microsoft.Network/bastionHosts", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "properties": { + "provisioningState": "Succeeded", + "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", + "ipConfigurations": [ + { + "name": "bastionHostIpConfiguration", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/CheckDnsNameAvailability.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/CheckDnsNameAvailability.json new file mode 100644 index 000000000000..13b4946c534f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/CheckDnsNameAvailability.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "location": "westus", + "domainNameLabel": "testdns" + }, + "responses": { + "200": { + "body": { + "available": false + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/CheckPrivateLinkServiceVisibility.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/CheckPrivateLinkServiceVisibility.json new file mode 100644 index 000000000000..b2a6af0b8579 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/CheckPrivateLinkServiceVisibility.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "location": "westus", + "parameters": { + "privateLinkServiceAlias": "mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice" + } + }, + "responses": { + "200": { + "body": { + "visible": true + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json new file mode 100644 index 000000000000..71aed28e49ff --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "location": "westus", + "resourceGroupName": "rg1", + "parameters": { + "privateLinkServiceAlias": "mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice" + } + }, + "responses": { + "200": { + "body": { + "visible": true + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosCustomPolicyCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosCustomPolicyCreate.json new file mode 100644 index 000000000000..f725eb7fc9c5 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosCustomPolicyCreate.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "ddosCustomPolicyName": "test-ddos-custom-policy", + "parameters": { + "location": "centraluseuap", + "properties": { + "protocolCustomSettings": [ + { + "protocol": "Tcp" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-ddos-custom-policy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosCustomPolicies/test-ddos-custom-policy", + "type": "Microsoft.Network/ddosCustomPolicies", + "location": "centraluseuap", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "publicIPAddresses": [], + "protocolCustomSettings": [ + { + "protocol": "Tcp", + "triggerRateOverride": "20000" + } + ] + } + } + }, + "201": { + "body": { + "name": "test-ddos-custom-policy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosCustomPolicies/test-ddos-custom-policy", + "type": "Microsoft.Network/ddosCustomPolicies", + "location": "centraluseuap", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "publicIPAddresses": [], + "protocolCustomSettings": [ + { + "protocol": "Tcp", + "triggerRateOverride": "20000" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosCustomPolicyDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosCustomPolicyDelete.json new file mode 100644 index 000000000000..b3a5edafd305 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosCustomPolicyDelete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "ddosCustomPolicyName": "test-ddos-custom-policy", + "parameters": { + "properties": {} + } + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosCustomPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosCustomPolicyGet.json new file mode 100644 index 000000000000..acb6f2674b1a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosCustomPolicyGet.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "ddosCustomPolicyName": "test-ddos-custom-policy" + }, + "responses": { + "200": { + "body": { + "name": "test-ddos-custom-policy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosCustomPolicies/test-ddos-custom-policy", + "type": "Microsoft.Network/ddosCustomPolicies", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "publicIPAddresses": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosCustomPolicyUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosCustomPolicyUpdateTags.json new file mode 100644 index 000000000000..3b04667be78e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosCustomPolicyUpdateTags.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "ddosCustomPolicyName": "test-ddos-custom-policy", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-ddos-custom-policy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosCustomPolicies/test-ddos-custom-policy", + "type": "Microsoft.Network/ddosCustomPolicies", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "publicIPAddresses": [], + "protocolCustomSettings": [ + { + "protocol": "Tcp", + "triggerRateOverride": "20000" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanCreate.json new file mode 100644 index 000000000000..a93d6d8adc64 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "ddosProtectionPlanName": "test-plan", + "parameters": { + "location": "westus", + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "name": "test-plan", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosProtectionPlans/test-plan", + "type": "Microsoft.Network/ddosProtectionPlans", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworks": [] + } + } + }, + "201": { + "body": { + "name": "test-plan", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosProtectionPlans/test-plan", + "type": "Microsoft.Network/ddosProtectionPlans", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworks": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanDelete.json new file mode 100644 index 000000000000..6ea36203556b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "ddosProtectionPlanName": "test-plan" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanGet.json new file mode 100644 index 000000000000..d2df9369b0bf --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanGet.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "ddosProtectionPlanName": "test-plan" + }, + "responses": { + "200": { + "body": { + "name": "test-plan", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosProtectionPlans/test-plan", + "type": "Microsoft.Network/ddosProtectionPlans", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworks": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanList.json new file mode 100644 index 000000000000..fac1c0b1a990 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanList.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosProtectionPlans/plan1", + "name": "plan1", + "type": "Microsoft.Network/ddosProtectionPlans", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworks": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosProtectionPlans/plan2", + "name": "plan2", + "type": "Microsoft.Network/ddosProtectionPlans", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworks": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanListAll.json new file mode 100644 index 000000000000..17b8a23e7fa1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanListAll.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosProtectionPlans/plan1", + "name": "plan1", + "type": "Microsoft.Network/ddosProtectionPlans", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworks": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet1" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosProtectionPlans/plan2", + "name": "plan2", + "type": "Microsoft.Network/ddosProtectionPlans", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworks": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet2" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet3" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanUpdateTags.json new file mode 100644 index 000000000000..bb1468e13dfe --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DdosProtectionPlanUpdateTags.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "ddosProtectionPlanName": "test-plan", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-plan", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosProtectionPlans/test-plan", + "type": "Microsoft.Network/ddosProtectionPlans", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworks": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DefaultSecurityRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DefaultSecurityRuleGet.json new file mode 100644 index 000000000000..0964ee88c6f3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DefaultSecurityRuleGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "resourceGroupName": "testrg", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "networkSecurityGroupName": "nsg1", + "defaultSecurityRuleName": "AllowVnetInBound" + }, + "responses": { + "200": { + "body": { + "name": "AllowVnetInBound", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/AllowVnetInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound", + "sourcePortRanges": [], + "destinationPortRanges": [], + "sourceAddressPrefixes": [], + "destinationAddressPrefixes": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DefaultSecurityRuleList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DefaultSecurityRuleList.json new file mode 100644 index 000000000000..1555b988e9b8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/DefaultSecurityRuleList.json @@ -0,0 +1,136 @@ +{ + "parameters": { + "resourceGroupName": "testrg", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "networkSecurityGroupName": "nsg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "AllowVnetInBound", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/AllowVnetInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound", + "sourcePortRanges": [], + "destinationPortRanges": [], + "sourceAddressPrefixes": [], + "destinationAddressPrefixes": [] + } + }, + { + "name": "AllowAzureLoadBalancerInBound", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/AllowAzureLoadBalancerInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from azure load balancer", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "AzureLoadBalancer", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 65001, + "direction": "Inbound", + "sourcePortRanges": [], + "destinationPortRanges": [], + "sourceAddressPrefixes": [], + "destinationAddressPrefixes": [] + } + }, + { + "name": "DenyAllInBound", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/DenyAllInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all inbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Inbound", + "sourcePortRanges": [], + "destinationPortRanges": [], + "sourceAddressPrefixes": [], + "destinationAddressPrefixes": [] + } + }, + { + "name": "AllowVnetOutBound", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/AllowVnetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Outbound", + "sourcePortRanges": [], + "destinationPortRanges": [], + "sourceAddressPrefixes": [], + "destinationAddressPrefixes": [] + } + }, + { + "name": "AllowInternetOutBound", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/AllowInternetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to Internet", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "Internet", + "access": "Allow", + "priority": 65001, + "direction": "Outbound", + "sourcePortRanges": [], + "destinationPortRanges": [], + "sourceAddressPrefixes": [], + "destinationAddressPrefixes": [] + } + }, + { + "name": "DenyAllOutBound", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/DenyAllOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all outbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Outbound", + "sourcePortRanges": [], + "destinationPortRanges": [], + "sourceAddressPrefixes": [], + "destinationAddressPrefixes": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/EndpointServicesList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/EndpointServicesList.json new file mode 100644 index 000000000000..b67404641639 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/EndpointServicesList.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "location": "westus", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Storage", + "id": "/subscriptions/subid/providers/Microsoft.Network/virtualNetworkEndpointServices/Microsoft.Storage", + "type": "Microsoft.Network/virtualNetworkEndpointServices" + }, + { + "name": "Microsoft.Sql", + "id": "/subscriptions/subid/providers/Microsoft.Network/virtualNetworkEndpointServices/Microsoft.Sql", + "type": "Microsoft.Network/virtualNetworkEndpointServices" + }, + { + "name": "Microsoft.AzureActiveDirectory", + "id": "/subscriptions/subid/providers/Microsoft.Network/virtualNetworkEndpointServices/Microsoft.AzureActiveDirectory", + "type": "Microsoft.Network/virtualNetworkEndpointServices" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitARPTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitARPTableList.json new file mode 100644 index 000000000000..f14eaa358f1b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitARPTableList.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "peeringName": "peeringName", + "devicePath": "devicePath" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "age": 0, + "interface": "Microsoft", + "ipAddress": "IPAddress", + "macAddress": "macAddress" + } + ] + } + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitAuthorizationCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitAuthorizationCreate.json new file mode 100644 index 000000000000..a53266575699 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitAuthorizationCreate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "authorizationName": "authorizatinName", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "authorizationParameters": { + "properties": { + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } + } + }, + "responses": { + "201": { + "body": { + "name": "authorizationName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/authorizationName", + "etag": "W/\"e22dd4b2-4c24-44cf-b702-70a472b62914\"", + "properties": { + "provisioningState": "Updating", + "authorizationUseStatus": "Available" + } + } + }, + "200": { + "body": { + "name": "authorizationName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/authorizationName", + "etag": "W/\"e22dd4b2-4c24-44cf-b702-70a472b62914\"", + "properties": { + "provisioningState": "Updating", + "authorizationUseStatus": "Available" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitAuthorizationDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitAuthorizationDelete.json new file mode 100644 index 000000000000..a1014d76bd0a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitAuthorizationDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "authorizationName": "authorizationName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitAuthorizationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitAuthorizationGet.json new file mode 100644 index 000000000000..55867db2b5e3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitAuthorizationGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "authorizationName": "authorizationName" + }, + "responses": { + "200": { + "body": { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + }, + "type": "Microsoft.Network/expressRouteCircuits/authorizations" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitAuthorizationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitAuthorizationList.json new file mode 100644 index 000000000000..c6cf3945a8d7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitAuthorizationList.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authKey", + "authorizationUseStatus": "Available" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitConnectionCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitConnectionCreate.json new file mode 100644 index 000000000000..f3a7bdd54cb5 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitConnectionCreate.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "connectionName": "circuitConnectionUSAUS", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid1", + "circuitName": "ExpressRouteARMCircuitA", + "peeringName": "AzurePrivatePeering", + "type": "Microsoft.Network/expressRouteCircuits/peerings/connections", + "expressRouteCircuitConnectionParameters": { + "properties": { + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/dedharcktlocal/peerings/AzurePrivatePeering" + }, + "peerExpressRouteCircuitPeering": { + "id": "/subscriptions/subid2/resourceGroups/dedharcktpeer/providers/Microsoft.Network/expressRouteCircuits/dedharcktremote/peerings/AzurePrivatePeering" + }, + "authorizationKey": "946a1918-b7a2-4917-b43c-8c4cdaee006a", + "addressPrefix": "10.0.0.0/29" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering/connections/circuitConnectionUSAUS", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "circuitConnectionUSAUS", + "properties": { + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/dedharcktlocal/peerings/AzurePrivatePeering" + }, + "peerExpressRouteCircuitPeering": { + "id": "/subscriptions/subid2/resourceGroups/dedharcktpeer/providers/Microsoft.Network/expressRouteCircuits/dedharcktremote/peerings/AzurePrivatePeering" + }, + "authorizationKey": "946a1918-b7a2-4917-b43c-8c4cdaee006a", + "addressPrefix": "10.0.0.0/24", + "circuitConnectionStatus": "Connected", + "provisioningState": "Succeeded" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering/connections/circuitConnectionUSAUS", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "circuitConnectionUSAUS", + "properties": { + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/dedharcktlocal/peerings/AzurePrivatePeering" + }, + "peerExpressRouteCircuitPeering": { + "id": "/subscriptions/subid2/resourceGroups/dedharcktpeer/providers/Microsoft.Network/expressRouteCircuits/dedharcktremote/peerings/AzurePrivatePeering" + }, + "authorizationKey": "946a1918-b7a2-4917-b43c-8c4cdaee006a", + "addressPrefix": "10.0.0.0/24", + "circuitConnectionStatus": "Connected", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitConnectionDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitConnectionDelete.json new file mode 100644 index 000000000000..e1cfce9f5017 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitConnectionDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "circuitName": "ExpressRouteARMCircuitA", + "peeringName": "AzurePrivatePeering", + "connectionName": "circuitConnectionUSAUS", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitConnectionGet.json new file mode 100644 index 000000000000..b8fded611342 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitConnectionGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "connectionName": "circuitConnectionUSAUS", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid1", + "circuitName": "ExpressRouteARMCircuitA", + "peeringName": "AzurePrivatePeering" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering/connections/circuitConnectionUSAUS", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "circuitConnectionUSAUS", + "properties": { + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/dedharcktlocal/peerings/AzurePrivatePeering" + }, + "peerExpressRouteCircuitPeering": { + "id": "/subscriptions/subid2/resourceGroups/dedharcktpeer/providers/Microsoft.Network/expressRouteCircuits/dedharcktremote/peerings/AzurePrivatePeering" + }, + "authorizationKey": "946a1918-b7a2-4917-b43c-8c4cdaee006a", + "addressPrefix": "10.0.0.0/24", + "circuitConnectionStatus": "Connected", + "provisioningState": "Succeeded" + }, + "type": "Microsoft.Network/expressRouteCircuits/peerings/connections" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitConnectionList.json new file mode 100644 index 000000000000..e15cdbd9b44a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitConnectionList.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid1", + "circuitName": "ExpressRouteARMCircuitA", + "peeringName": "AzurePrivatePeering" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering/connections/circuitConnectionUSAUS", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "circuitConnectionUSAUS", + "properties": { + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/dedharcktlocal/peerings/AzurePrivatePeering" + }, + "peerExpressRouteCircuitPeering": { + "id": "/subscriptions/subid2/resourceGroups/dedharcktpeer/providers/Microsoft.Network/expressRouteCircuits/dedharcktremote/peerings/AzurePrivatePeering" + }, + "authorizationKey": "946a1918-b7a2-4917-b43c-8c4cdaee006a", + "addressPrefix": "10.0.0.0/24", + "circuitConnectionStatus": "Connected", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering/connections/circuitConnectionUSEUR", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "circuitConnectionUSEUR", + "properties": { + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/dedharcktlocal/peerings/AzurePrivatePeering" + }, + "peerExpressRouteCircuitPeering": { + "id": "/subscriptions/subid1/resourceGroups/dedharckteurope/providers/Microsoft.Network/expressRouteCircuits/dedharcktams/peerings/AzurePrivatePeering" + }, + "addressPrefix": "20.0.0.0/24", + "circuitConnectionStatus": "Connected", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitCreate.json new file mode 100644 index 000000000000..e6d93225a08d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitCreate.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "parameters": { + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + }, + "properties": { + "authorizations": [], + "peerings": [], + "allowClassicOperations": false, + "serviceProviderProperties": { + "serviceProviderName": "Equinix", + "peeringLocation": "Silicon Valley", + "bandwidthInMbps": 200 + } + }, + "location": "Brazil South" + } + }, + "responses": { + "201": { + "body": { + "name": "circuitName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "Brazil South", + "properties": { + "provisioningState": "Succeeded", + "peerings": [], + "authorizations": [], + "serviceProviderProperties": { + "serviceProviderName": "Equinix", + "peeringLocation": "Silicon Valley", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "serviceKey": "a1410692-0000-4ceb-b94a-b90b94d398d1", + "serviceProviderProvisioningState": "NotProvisioned" + }, + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } + } + }, + "200": { + "body": { + "name": "circuitName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "Brazil South", + "properties": { + "provisioningState": "Succeeded", + "peerings": [], + "authorizations": [], + "serviceProviderProperties": { + "serviceProviderName": "Equinix", + "peeringLocation": "Silicon Valley", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "serviceKey": "a1410692-0000-4ceb-b94a-b90b94d398d1", + "serviceProviderProvisioningState": "NotProvisioned" + }, + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json new file mode 100644 index 000000000000..f3c588c01b1b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "type": "Microsoft.Network/expressRouteCircuits", + "circuitName": "expressRouteCircuit1", + "parameters": { + "location": "westus", + "sku": { + "name": "Premium_MeteredData", + "tier": "Premium", + "family": "MeteredData" + }, + "properties": { + "expressRoutePort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" + }, + "bandwidthInGbps": 10 + } + } + }, + "responses": { + "200": { + "body": { + "name": "expressRouteCircuit1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/expressRouteCircuit1", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peerings": [], + "authorizations": [], + "expressRoutePort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" + }, + "bandwidthInGbps": 10, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "20", + "serviceKey": "d281f746-ee01-4d00-8b0a-edec4833772b", + "serviceProviderProvisioningState": "Provisioned" + }, + "sku": { + "name": "Premium_MeteredData", + "tier": "Premium", + "family": "MeteredData" + } + } + }, + "201": { + "body": { + "name": "expressRouteCircuit1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/expressRouteCircuit1", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peerings": [], + "authorizations": [], + "expressRoutePort": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName" + }, + "bandwidthInGbps": 10, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "20", + "serviceKey": "d281f746-ee01-4d00-8b0a-edec4833772b", + "serviceProviderProvisioningState": "Provisioned" + }, + "sku": { + "name": "Premium_MeteredData", + "tier": "Premium", + "family": "MeteredData" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitDelete.json new file mode 100644 index 000000000000..6a4d8fc5b6ec --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitGet.json new file mode 100644 index 000000000000..f8217bfe6383 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitGet.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "circuitName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peerings": [], + "authorizations": [], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "serviceKey": "a1410692-0000-4ceb-b94a-b90b94d398d1", + "serviceProviderProvisioningState": "NotProvisioned" + }, + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitListByResourceGroup.json new file mode 100644 index 000000000000..de7df5a6ed00 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitListByResourceGroup.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } + } + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" + }, + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } + }, + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } + } + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" + }, + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitListBySubscription.json new file mode 100644 index 000000000000..e5db41ac9996 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitListBySubscription.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "circuitName1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/authorizations/MyAuthorization1", + "etag": "W/\"832b28c3-f5fd-4d2a-a2cb-6e4a2fe452b3\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } + } + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "113", + "serviceKey": "a1410692-ed3b-4ceb-b94a-b90b95d398d1", + "serviceProviderProvisioningState": "Provisioned" + }, + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } + }, + { + "name": "circuitName2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peerings": [], + "authorizations": [ + { + "name": "MyAuthorization2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName2/authorizations/MyAuthorization2", + "etag": "W/\"e33c875f-48df-4a91-b7d3-eb95b5ddbb89\"", + "properties": { + "provisioningState": "Succeeded", + "authorizationKey": "authkey", + "authorizationUseStatus": "Available" + } + } + ], + "serviceProviderProperties": { + "serviceProviderName": "providerName", + "peeringLocation": "peeringLocation", + "bandwidthInMbps": 200 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "6569625a-9ba4-498b-9719-14d778eef609", + "serviceProviderProvisioningState": "NotProvisioned" + }, + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringCreate.json new file mode 100644 index 000000000000..5247255872f0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringCreate.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "peeringName": "AzurePrivatePeering", + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "peeringParameters": { + "properties": { + "azureASN": 12076, + "peerASN": 200, + "primaryPeerAddressPrefix": "192.168.16.252/30", + "secondaryPeerAddressPrefix": "192.168.18.252/30", + "vlanId": 200 + } + } + }, + "responses": { + "201": { + "body": { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", + "etag": "W/\"72090554-7e3b-43f2-80ad-99a9020dcb11\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 200, + "primaryPeerAddressPrefix": "192.168.16.252/30", + "secondaryPeerAddressPrefix": "192.168.18.252/30", + "primaryAzurePort": "", + "secondaryAzurePort": "", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "", + "lastModifiedBy": "Customer", + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled" + }, + "expressRouteConnection": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" + } + } + } + }, + "200": { + "body": { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", + "etag": "W/\"72090554-7e3b-43f2-80ad-99a9020dcb11\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 200, + "primaryPeerAddressPrefix": "192.168.16.252/30", + "secondaryPeerAddressPrefix": "192.168.18.252/30", + "primaryAzurePort": "", + "secondaryAzurePort": "", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "", + "lastModifiedBy": "Customer", + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled" + }, + "expressRouteConnection": "" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringDelete.json new file mode 100644 index 000000000000..e4d30574e1bf --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "peeringName": "peeringName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringGet.json new file mode 100644 index 000000000000..2d9ed2ac8cbb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringGet.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "peeringName": "MicrosoftPeering" + }, + "responses": { + "200": { + "body": { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", + "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "123.1.0.0/24" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } + }, + "routeFilter": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName" + } + }, + "type": "Microsoft.Network/expressRouteCircuits/peerings" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringList.json new file mode 100644 index 000000000000..ecd157122d32 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringList.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "MicrosoftPeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "MicrosoftPeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "123.0.0.0/30", + "secondaryPeerAddressPrefix": "123.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", + "state": "Enabled", + "vlanId": 300, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "123.1.0.0/24" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + }, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled", + "microsoftPeeringConfig": { + "advertisedPublicPrefixes": [ + "3FFE:FFFF:0:CD31::/120" + ], + "advertisedCommunities": [], + "advertisedPublicPrefixesState": "ValidationNeeded", + "customerASN": 23, + "legacyMode": 0, + "routingRegistryName": "ARIN" + } + }, + "expressRouteConnection": "" + } + }, + { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering", + "etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 100, + "primaryPeerAddressPrefix": "10.0.0.0/30", + "secondaryPeerAddressPrefix": "10.0.0.4/30", + "primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A", + "secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "103", + "lastModifiedBy": "Customer", + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled" + }, + "expressRouteConnection": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName" + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringStats.json new file mode 100644 index 000000000000..af0de526633c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitPeeringStats.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "peeringName": "peeringName" + }, + "responses": { + "200": { + "body": { + "primarybytesIn": 537408, + "primarybytesOut": 44032550, + "secondarybytesIn": 0, + "secondarybytesOut": 39002500 + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitRouteTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitRouteTableList.json new file mode 100644 index 000000000000..cbc1921c4091 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitRouteTableList.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "peeringName": "peeringName", + "devicePath": "devicePath" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "network": "", + "nextHop": "", + "locPrf": "", + "weight": 0, + "path": "" + } + ] + } + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitRouteTableSummaryList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitRouteTableSummaryList.json new file mode 100644 index 000000000000..485f4be3d2d5 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitRouteTableSummaryList.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "peeringName": "peeringName", + "devicePath": "devicePath" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "neighbor": "100.65.171.1", + "v": 4, + "as": 9583, + "upDown": "never", + "statePfxRcd": "Idle" + } + ] + } + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitStats.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitStats.json new file mode 100644 index 000000000000..1fed3dd7c326 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitStats.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "circuitName": "circuitName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "primarybytesIn": 537408, + "primarybytesOut": 44032550, + "secondarybytesIn": 0, + "secondarybytesOut": 39002500 + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitUpdateTags.json new file mode 100644 index 000000000000..1900121a561f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCircuitUpdateTags.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "ertest", + "circuitName": "er1", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "er1", + "id": "/subscriptions/subid/resourceGroups/ertest/providers/Microsoft.Network/expressRouteCircuits/er1", + "type": "Microsoft.Network/expressRouteCircuits", + "location": "brazilsouth", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Failed", + "peerings": [], + "authorizations": [], + "serviceProviderProperties": { + "serviceProviderName": "Equinix", + "peeringLocation": "Silicon Valley", + "bandwidthInMbps": 1000 + }, + "circuitProvisioningState": "Enabled", + "allowClassicOperations": false, + "gatewayManagerEtag": "", + "serviceKey": "0b392c2e-1e9d-46d7-b5e0-9ce90ca6b60c", + "serviceProviderProvisioningState": "NotProvisioned" + }, + "sku": { + "name": "Standard_MeteredData", + "tier": "Standard", + "family": "MeteredData" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteConnectionCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteConnectionCreate.json new file mode 100644 index 000000000000..78c719462e1b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteConnectionCreate.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "expressRouteGatewayName": "gateway-2", + "resourceGroupName": "resourceGroupName", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "connectionName": "connectionName", + "putExpressRouteConnectionParameters": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName", + "name": "connectionName", + "properties": { + "routingWeight": 2, + "authorizationKey": "authorizationKey", + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "connectionName", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName", + "properties": { + "provisioningState": "Provisioned", + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" + }, + "authorizationKey": "authorizationKey", + "routingWeight": 2 + } + } + }, + "201": { + "body": { + "name": "connectionName", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName", + "properties": { + "provisioningState": "Provisioned", + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" + }, + "authorizationKey": "authorizationKey", + "routingWeight": 2 + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteConnectionDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteConnectionDelete.json new file mode 100644 index 000000000000..0d1cb8a4867e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteConnectionDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "expressRouteGatewayName": "expressRouteGatewayName", + "resourceGroupName": "resourceGroupName", + "connectionName": "connectionName", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "202": {}, + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteConnectionGet.json new file mode 100644 index 000000000000..935fbcd5e17e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteConnectionGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "expressRouteGatewayName": "expressRouteGatewayName", + "resourceGroupName": "resourceGroupName", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "connectionName": "connectionName" + }, + "responses": { + "200": { + "body": { + "name": "connectionName", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName", + "properties": { + "provisioningState": "Provisioned", + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" + }, + "authorizationKey": "authorizationKey", + "routingWeight": 1 + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteConnectionList.json new file mode 100644 index 000000000000..8739e325d67d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteConnectionList.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "resourceGroupName": "resourceGroupName", + "expressRouteGatewayName": "expressRouteGatewayName", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "connectionName", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName", + "properties": { + "provisioningState": "Provisioned", + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" + }, + "authorizationKey": "authorizationKey", + "routingWeight": 1 + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json new file mode 100644 index 000000000000..ca00d7e2604f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "peeringName": "AzurePrivatePeering", + "crossConnectionName": "", + "resourceGroupName": "CrossConnection-SiliconValley", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "peeringParameters": { + "properties": { + "peerASN": 200, + "primaryPeerAddressPrefix": "192.168.16.252/30", + "secondaryPeerAddressPrefix": "192.168.18.252/30", + "vlanId": 200, + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126" + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/CrossConnection-SiliconValley/providers/Microsoft.Network/expressRouteCrossConnections//peerings/AzurePrivatePeering", + "etag": "W/\"72090554-7e3b-43f2-80ad-99a9020dcb11\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 200, + "primaryPeerAddressPrefix": "192.168.16.252/30", + "secondaryPeerAddressPrefix": "192.168.18.252/30", + "primaryAzurePort": "", + "secondaryAzurePort": "", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "", + "lastModifiedBy": "Customer", + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled" + } + } + } + }, + "200": { + "body": { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/CrossConnection-Boydton1DC/providers/Microsoft.Network/expressRouteCrossConnections//peerings/AzurePrivatePeering", + "etag": "W/\"72090554-7e3b-43f2-80ad-99a9020dcb11\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 200, + "primaryPeerAddressPrefix": "192.168.16.252/30", + "secondaryPeerAddressPrefix": "192.168.18.252/30", + "primaryAzurePort": "", + "secondaryAzurePort": "", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "", + "lastModifiedBy": "Customer", + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled" + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionBgpPeeringDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionBgpPeeringDelete.json new file mode 100644 index 000000000000..ab176cb6c528 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionBgpPeeringDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "peeringName": "AzurePrivatePeering", + "crossConnectionName": "", + "resourceGroupName": "CrossConnection-SiliconValley", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json new file mode 100644 index 000000000000..0cf29ce2b54d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "peeringName": "AzurePrivatePeering", + "crossConnectionName": "", + "resourceGroupName": "CrossConnection-SiliconValley", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/CrossConnection-Boydton1DC/providers/Microsoft.Network/expressRouteCrossConnections//peerings/AzurePrivatePeering", + "etag": "W/\"72090554-7e3b-43f2-80ad-99a9020dcb11\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 200, + "primaryPeerAddressPrefix": "192.168.16.252/30", + "secondaryPeerAddressPrefix": "192.168.18.252/30", + "primaryAzurePort": "", + "secondaryAzurePort": "", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "", + "lastModifiedBy": "Customer", + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled" + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionBgpPeeringList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionBgpPeeringList.json new file mode 100644 index 000000000000..7e4db8e4e6f7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionBgpPeeringList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "crossConnectionName": "", + "resourceGroupName": "CrossConnection-SiliconValley", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "AzurePrivatePeering", + "id": "/subscriptions/subid/resourceGroups/CrossConnection-SiliconValley/providers/Microsoft.Network/expressRouteCrossConnections//peerings/AzurePrivatePeering", + "etag": "W/\"72090554-7e3b-43f2-80ad-99a9020dcb11\"", + "properties": { + "provisioningState": "Succeeded", + "peeringType": "AzurePrivatePeering", + "azureASN": 12076, + "peerASN": 200, + "primaryPeerAddressPrefix": "192.168.16.252/30", + "secondaryPeerAddressPrefix": "192.168.18.252/30", + "primaryAzurePort": "", + "secondaryAzurePort": "", + "state": "Enabled", + "vlanId": 200, + "gatewayManagerEtag": "", + "lastModifiedBy": "Customer", + "ipv6PeeringConfig": { + "primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126", + "secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126", + "state": "Enabled" + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionGet.json new file mode 100644 index 000000000000..2e3c103c5b9d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "CrossConnection-SiliconValley", + "crossConnectionName": "" + }, + "responses": { + "200": { + "body": { + "name": "", + "id": "/subscriptions/subid/resourceGroups/CrossConnection-SiliconValley/providers/Microsoft.Network/expressRouteCrossConnections/", + "type": "Microsoft.Network/expressRouteCrossConnections", + "location": "brazilsouth", + "etag": "W/\"c0e6477e-8150-4d4f-9bf6-bb10e6acb63a\"", + "properties": { + "provisioningState": "Enabled", + "expressRouteCircuit": { + "id": "/subscriptions/subid/resourceGroups/ertest/providers/Microsoft.Network/expressRouteCircuits/er1" + }, + "peerings": [], + "peeringLocation": "SiliconValley", + "bandwidthInMbps": 1000, + "primaryAzurePort": "bvtazureixp01", + "secondaryAzurePort": "bvtazureixp01", + "sTag": 2, + "serviceProviderProvisioningState": "NotProvisioned" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionList.json new file mode 100644 index 000000000000..3143175d98b9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionList.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "", + "id": "/subscriptions/subid/resourceGroups/CrossConnectionSiliconValley/providers/Microsoft.Network/expressRouteCrossConnections/", + "type": "Microsoft.Network/expressRouteCrossConnections", + "location": "brazilsouth", + "properties": { + "provisioningState": "Enabled", + "expressRouteCircuit": { + "id": "/subscriptions/subid/resourceGroups/ertest/providers/Microsoft.Network/expressRouteCircuits/er1" + }, + "peerings": [], + "peeringLocation": "SiliconValley", + "bandwidthInMbps": 1000, + "primaryAzurePort": "bvtazureixp01", + "secondaryAzurePort": "bvtazureixp01", + "sTag": 2, + "serviceProviderProvisioningState": "NotProvisioned" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionListByResourceGroup.json new file mode 100644 index 000000000000..23f12c713ced --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionListByResourceGroup.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "resourceGroupName": "CrossConnection-SiliconValley", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "", + "id": "/subscriptions/subid/resourceGroups/CrossConnectionSilicon-Valley/providers/Microsoft.Network/expressRouteCrossConnections/", + "type": "Microsoft.Network/expressRouteCrossConnections", + "location": "brazilsouth", + "properties": { + "provisioningState": "Enabled", + "expressRouteCircuit": { + "id": "/subscriptions/subid/resourceGroups/ertest/providers/Microsoft.Network/expressRouteCircuits/er1" + }, + "peerings": [], + "peeringLocation": "SiliconValley", + "bandwidthInMbps": 1000, + "primaryAzurePort": "bvtazureixp01", + "secondaryAzurePort": "bvtazureixp01", + "sTag": 2, + "serviceProviderProvisioningState": "NotProvisioned" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionUpdate.json new file mode 100644 index 000000000000..0ff9eba3ddbe --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionUpdate.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "CrossConnection-SiliconValley", + "crossConnectionName": "", + "parameters": { + "properties": { + "serviceProviderProvisioningState": "NotProvisioned" + } + } + }, + "responses": { + "200": { + "body": { + "name": "", + "id": "/subscriptions/subid/resourceGroups/CrossConnectionSiliconValley/providers/Microsoft.Network/expressRouteCrossConnections/", + "type": "Microsoft.Network/expressRouteCrossConnections", + "location": "brazilsouth", + "properties": { + "provisioningState": "Enabled", + "expressRouteCircuit": { + "id": "/subscriptions/subid/resourceGroups/ertest/providers/Microsoft.Network/expressRouteCircuits/er1" + }, + "peerings": [], + "peeringLocation": "SiliconValley", + "bandwidthInMbps": 1000, + "primaryAzurePort": "bvtazureixp01", + "secondaryAzurePort": "bvtazureixp01", + "sTag": 2, + "serviceProviderProvisioningState": "NotProvisioned" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionUpdateTags.json new file mode 100644 index 000000000000..efcd0b7adb78 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionUpdateTags.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "CrossConnection-SiliconValley", + "crossConnectionName": "", + "crossConnectionParameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "er1", + "id": "/subscriptions/subid/resourceGroups/CrossConnectionSiliconValley/providers/Microsoft.Network/expressRouteCrossConnections/", + "type": "Microsoft.Network/expressRouteCrossConnections", + "location": "brazilsouth", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Failed", + "expressRouteCircuit": { + "id": "/subscriptions/subid/resourceGroups/ertest/providers/Microsoft.Network/expressRouteCircuits/er1" + }, + "peerings": [], + "peeringLocation": "SiliconValley", + "bandwidthInMbps": 1000, + "primaryAzurePort": "bvtazureixp01", + "secondaryAzurePort": "bvtazureixp01", + "sTag": 2, + "serviceProviderProvisioningState": "NotProvisioned" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionsArpTable.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionsArpTable.json new file mode 100644 index 000000000000..8b9d7956de84 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionsArpTable.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "peeringName": "AzurePrivatePeering", + "crossConnectionName": "", + "resourceGroupName": "CrossConnection-SiliconValley", + "devicePath": "primary", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "age": 0, + "interface": "Microsoft", + "ipAddress": "192.116.14.254", + "macAddress": "885a.9269.9110" + } + ] + } + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionsRouteTable.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionsRouteTable.json new file mode 100644 index 000000000000..602fbd8ba65d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionsRouteTable.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "peeringName": "AzurePrivatePeering", + "crossConnectionName": "", + "resourceGroupName": "CrossConnection-SiliconValley", + "devicePath": "primary", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "network": "10.6.0.0/16", + "nextHop": "10.6.1.12", + "locPrf": "", + "weight": 0, + "path": "65514" + }, + { + "network": "10.7.0.0/16", + "nextHop": "10.7.1.13", + "locPrf": "", + "weight": 0, + "path": "65514" + } + ] + } + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionsRouteTableSummary.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionsRouteTableSummary.json new file mode 100644 index 000000000000..1d39d6cd3f31 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteCrossConnectionsRouteTableSummary.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "peeringName": "AzurePrivatePeering", + "crossConnectionName": "", + "resourceGroupName": "CrossConnection-SiliconValley", + "devicePath": "primary", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "neighbor": "10.6.1.112", + "asn": 65514, + "upDown": "1d14h", + "stateOrPrefixesReceived": "Active" + }, + { + "neighbor": "10.6.1.113", + "asn": 65514, + "upDown": "1d14h", + "stateOrPrefixesReceived": "1" + } + ] + } + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayCreate.json new file mode 100644 index 000000000000..de195a465674 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayCreate.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "expressRouteGatewayName": "gateway-2", + "subscriptionId": "subid", + "resourceGroupName": "resourceGroupName", + "api-version": "2019-06-01", + "putExpressRouteGatewayParameters": { + "location": "westus", + "properties": { + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupId/providers/Microsoft.Network/virtualHubs/virtualHubName" + }, + "autoScaleConfiguration": { + "bounds": { + "min": 3 + } + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "gateway-2", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "westus", + "type": "Microsoft.Network/expressRouteGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/virtualHubName" + }, + "autoScaleConfiguration": { + "bounds": { + "min": 3 + } + } + } + } + }, + "200": { + "body": { + "name": "gateway-2", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "westus", + "type": "Microsoft.Network/expressRouteGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/virtualHubName" + }, + "autoScaleConfiguration": { + "bounds": { + "min": 3 + } + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayDelete.json new file mode 100644 index 000000000000..7800b0fb5622 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "expressRouteGatewayName": "expressRouteGatewayName", + "resourceGroupName": "resourceGroupName", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "202": {}, + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayGet.json new file mode 100644 index 000000000000..cdcd052e3b7e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "expressRouteGatewayName": "expressRouteGatewayName", + "resourceGroupName": "resourceGroupName", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "expressRouteGatewayName", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "westus", + "type": "Microsoft.Network/expressRouteGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/virtualHubName" + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayListByResourceGroup.json new file mode 100644 index 000000000000..ac93f097a265 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayListByResourceGroup.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "resourceGroupName": "resourceGroupName", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "expressRouteGatewayName", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "westus", + "type": "Microsoft.Network/expressRouteGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/virtualHubName" + }, + "autoScaleConfiguration": { + "bounds": { + "min": 2 + } + }, + "expressRouteConnections": [ + { + "name": "connectionName", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName", + "properties": { + "provisioningState": "Provisioned", + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" + }, + "authorizationKey": "f28e9c99-78d8-4248-a855-c54cf6beb99d", + "routingWeight": 1 + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayListBySubscription.json new file mode 100644 index 000000000000..9ecc3b3e8f18 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteGatewayListBySubscription.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "expressRouteGatewayName", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "westus", + "type": "Microsoft.Network/expressRouteGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/virtualHubName" + }, + "autoScaleConfiguration": { + "bounds": { + "min": 2 + } + }, + "expressRouteConnections": [ + { + "name": "connectionName", + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName", + "properties": { + "provisioningState": "Provisioned", + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering" + }, + "authorizationKey": "f28e9c99-78d8-4248-a855-c54cf6beb99d", + "routingWeight": 1 + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteLinkGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteLinkGet.json new file mode 100644 index 000000000000..e052c79748f9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteLinkGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "expressRoutePortName": "portName", + "linkName": "linkName" + }, + "responses": { + "200": { + "body": { + "name": "linkName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/linkName", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router1", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId1", + "rackId": "rackId1", + "connectorType": "LC", + "adminState": "Disabled" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteLinkList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteLinkList.json new file mode 100644 index 000000000000..7a9b4b503581 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteLinkList.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "expressRoutePortName": "portName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router1", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId1", + "rackId": "rackId1", + "connectorType": "LC", + "adminState": "Disabled" + } + }, + { + "name": "link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router2", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId2", + "rackId": "rackId2", + "connectorType": "LC", + "adminState": "Disabled" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortCreate.json new file mode 100644 index 000000000000..28c36c634ba5 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortCreate.json @@ -0,0 +1,112 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "expressRoutePortName": "portName", + "parameters": { + "location": "westus", + "properties": { + "peeringLocation": "peeringLocationName", + "bandwidthInGbps": 100, + "encapsulation": "QinQ" + } + } + }, + "responses": { + "200": { + "body": { + "name": "portName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peeringLocation": "peeringLocationName", + "bandwidthInGbps": 100, + "provisionedBandwidthInGbps": 0.0, + "mtu": "1500", + "encapsulation": "QinQ", + "etherType": "0x8100", + "allocationDate": "Friday, July 1, 2018", + "links": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", + "name": "link1", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router1", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId1", + "rackId": "rackId1", + "connectorType": "LC", + "adminState": "Disabled" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", + "name": "link2", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router2", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId2", + "rackId": "rackId2", + "connectorType": "LC", + "adminState": "Disabled" + } + } + ], + "circuits": [] + } + } + }, + "201": { + "body": { + "name": "portName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peeringLocation": "peeringLocationName", + "bandwidthInGbps": 100, + "provisionedBandwidthInGbps": 0.0, + "mtu": "1500", + "encapsulation": "QinQ", + "etherType": "0x8100", + "allocationDate": "Friday, July 1, 2018", + "links": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", + "name": "link1", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router1", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId1", + "rackId": "rackId1", + "connectorType": "LC", + "adminState": "Disabled" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", + "name": "link2", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router2", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId2", + "rackId": "rackId2", + "connectorType": "LC", + "adminState": "Disabled" + } + } + ], + "circuits": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortDelete.json new file mode 100644 index 000000000000..00fe8a3fc150 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "expressRoutePortName": "portName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortGet.json new file mode 100644 index 000000000000..7f07581fdb69 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortGet.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "expressRoutePortName": "portName" + }, + "responses": { + "200": { + "body": { + "name": "portName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peeringLocation": "peeringLocationName", + "bandwidthInGbps": 100, + "provisionedBandwidthInGbps": 0.0, + "mtu": "1500", + "encapsulation": "QinQ", + "etherType": "0x8100", + "allocationDate": "Friday, July 1, 2018", + "links": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", + "name": "link1", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router1", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId1", + "rackId": "rackId1", + "connectorType": "LC", + "adminState": "Disabled" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", + "name": "link2", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router2", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId2", + "rackId": "rackId2", + "connectorType": "LC", + "adminState": "Disabled" + } + } + ], + "circuits": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortList.json new file mode 100644 index 000000000000..b3f77c0067fa --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortList.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "portName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peeringLocation": "peeringLocationName", + "bandwidthInGbps": 100, + "provisionedBandwidthInGbps": 0.0, + "mtu": "1500", + "encapsulation": "QinQ", + "etherType": "0x8100", + "allocationDate": "Friday, July 1, 2018", + "links": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", + "name": "link1", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router1", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId1", + "rackId": "rackId1", + "connectorType": "LC", + "adminState": "Disabled" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", + "name": "link2", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router2", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId2", + "rackId": "rackId2", + "connectorType": "LC", + "adminState": "Disabled" + } + } + ], + "circuits": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortListByResourceGroup.json new file mode 100644 index 000000000000..49f6de98f9b0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortListByResourceGroup.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-06-01", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "portName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peeringLocation": "peeringLocationName", + "bandwidthInGbps": 100, + "provisionedBandwidthInGbps": 0.0, + "mtu": "1500", + "encapsulation": "QinQ", + "etherType": "0x8100", + "allocationDate": "Friday, July 1, 2018", + "links": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", + "name": "link1", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router1", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId1", + "rackId": "rackId1", + "connectorType": "LC", + "adminState": "Disabled" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", + "name": "link2", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router2", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId2", + "rackId": "rackId2", + "connectorType": "LC", + "adminState": "Disabled" + } + } + ], + "circuits": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortUpdateLink.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortUpdateLink.json new file mode 100644 index 000000000000..82c623276aca --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortUpdateLink.json @@ -0,0 +1,120 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "expressRoutePortName": "portName", + "parameters": { + "location": "westus", + "properties": { + "peeringLocation": "peeringLocationName", + "bandwidthInGbps": 100, + "encapsulation": "QinQ", + "links": [ + { + "name": "link1", + "properties": { + "adminState": "Enabled" + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "portName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peeringLocation": "peeringLocationName", + "bandwidthInGbps": 100, + "provisionedBandwidthInGbps": 0.0, + "mtu": "1500", + "encapsulation": "QinQ", + "etherType": "0x8100", + "allocationDate": "Friday, July 1, 2018", + "links": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", + "name": "link1", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router1", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId1", + "rackId": "rackId1", + "connectorType": "LC", + "adminState": "Enabled" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", + "name": "link2", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router2", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId2", + "rackId": "rackId2", + "connectorType": "LC", + "adminState": "Disabled" + } + } + ], + "circuits": [] + } + } + }, + "201": { + "body": { + "name": "portName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peeringLocation": "peeringLocationName", + "bandwidthInGbps": 100, + "provisionedBandwidthInGbps": 0.0, + "mtu": "1500", + "encapsulation": "QinQ", + "etherType": "0x8100", + "allocationDate": "Friday, July 1, 2018", + "links": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", + "name": "link1", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router1", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId1", + "rackId": "rackId1", + "connectorType": "LC", + "adminState": "Enabled" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", + "name": "link2", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router2", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId2", + "rackId": "rackId2", + "connectorType": "LC", + "adminState": "Disabled" + } + } + ], + "circuits": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortUpdateTags.json new file mode 100644 index 000000000000..5a77692114af --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortUpdateTags.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "expressRoutePortName": "portName", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "portName", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName", + "type": "Microsoft.Network/expressRoutePorts", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "peeringLocation": "peeringLocationName", + "bandwidthInGbps": 100, + "provisionedBandwidthInGbps": 0.0, + "mtu": "1500", + "encapsulation": "QinQ", + "etherType": "0x8100", + "allocationDate": "Friday, July 1, 2018", + "links": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link1", + "name": "link1", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router1", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId1", + "rackId": "rackId1", + "connectorType": "LC", + "adminState": "Disabled" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName/links/link2", + "name": "link2", + "properties": { + "provisioningState": "Succeeded", + "routerName": "router2", + "interfaceName": "Ethernet 0/0", + "patchPanelId": "patchPanelId2", + "rackId": "rackId2", + "connectorType": "LC", + "adminState": "Disabled" + } + } + ], + "circuits": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortsLocationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortsLocationGet.json new file mode 100644 index 000000000000..9aec8942a1e0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortsLocationGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-06-01", + "locationName": "locationName" + }, + "responses": { + "200": { + "body": { + "name": "locationName", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "address": "123 Main Street, City, State, Zip", + "contact": "email@address.com", + "availableBandwidths": [ + { + "offerName": "100 Gbps", + "valueInGbps": 100 + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortsLocationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortsLocationList.json new file mode 100644 index 000000000000..6199c081a47f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRoutePortsLocationList.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "locationName", + "id": "/subscriptions/subid/providers/Microsoft.Network/expressRoutePortsLocations/locationName", + "type": "Microsoft.Network/expressRoutePortsLocations", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "address": "123 Main Street, City, State, Zip", + "contact": "email@address.com", + "availableBandwidths": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteProviderList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteProviderList.json new file mode 100644 index 000000000000..7d823a67d12c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ExpressRouteProviderList.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "providerName", + "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/", + "type": "Microsoft.Network/expressRouteServiceProviders", + "properties": { + "provisioningState": "Succeeded", + "peeringLocations": [ + "peeringLocation1", + "peeringLocation2" + ], + "bandwidthsOffered": [ + { + "offerName": "50Mbps", + "valueInMbps": 50 + }, + { + "offerName": "100Mbps", + "valueInMbps": 100 + }, + { + "offerName": "200Mbps", + "valueInMbps": 200 + }, + { + "offerName": "500Mbps", + "valueInMbps": 500 + }, + { + "offerName": "1Gbps", + "valueInMbps": 1000 + }, + { + "offerName": "2Gbps", + "valueInMbps": 2000 + }, + { + "offerName": "5Gbps", + "valueInMbps": 5000 + }, + { + "offerName": "10Gbps", + "valueInMbps": 10000 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyDelete.json new file mode 100644 index 000000000000..5d723f57a294 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "firewallPolicyName": "firewallPolicy" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyGet.json new file mode 100644 index 000000000000..d21b7ff091fb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "firewallPolicyName": "firewallPolicy" + }, + "responses": { + "200": { + "body": { + "name": "firewallPolicy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy", + "type": "Microsoft.Network/firewallPolicies", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "ruleGroups": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/ruleGroup1" + } + ], + "firewalls": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyListByResourceGroup.json new file mode 100644 index 000000000000..61f12a20a7ff --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyListByResourceGroup.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "firewallPolicy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy", + "type": "Microsoft.Network/firewallPolicies", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "ruleGroups": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/ruleGroup1" + } + ], + "firewalls": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyListBySubscription.json new file mode 100644 index 000000000000..5f2cb3fa8fa5 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyListBySubscription.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "firewallPolicy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy", + "type": "Microsoft.Network/firewallPolicies", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "ruleGroups": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/ruleGroup1" + } + ], + "firewalls": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyPut.json new file mode 100644 index 000000000000..049561efd705 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyPut.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "firewallPolicyName": "firewallPolicy", + "parameters": { + "tags": { + "key1": "value1" + }, + "location": "West US", + "properties": { + "threatIntelMode": "Alert" + } + } + }, + "responses": { + "200": { + "body": { + "name": "firewallPolicy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy", + "type": "Microsoft.Network/firewallPolicies", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "ruleGroups": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/rulegroup1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/rulegroup2" + } + ], + "firewalls": [] + } + } + }, + "201": { + "body": { + "name": "firewallPolicy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy", + "type": "Microsoft.Network/firewallPolicies", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Alert", + "ruleGroups": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/ruleGroup1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/rulegroup2" + } + ], + "firewalls": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyRuleGroupDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyRuleGroupDelete.json new file mode 100644 index 000000000000..261226cee578 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyRuleGroupDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "ruleGroupName": "ruleGroup1", + "firewallPolicyName": "firewallPolicy", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyRuleGroupGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyRuleGroupGet.json new file mode 100644 index 000000000000..dcbfce54e969 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyRuleGroupGet.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "ruleGroupName": "ruleGroup1", + "firewallPolicyName": "firewallPolicy", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "ruleGroup1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/ruleGroup1", + "etag": "W/\"72090554-7e3b-43f2-80ad-99a9020dcb11\"", + "properties": { + "provisioningState": "Succeeded", + "priority": 110, + "rules": [ + { + "ruleType": "FirewallPolicyFilterRule", + "name": "Example-Filter-Rule", + "priority": 200, + "action": { + "type": "Deny" + }, + "ruleConditions": [ + { + "ruleConditionType": "NetworkRuleCondition", + "name": "network-condition1", + "sourceAddresses": [ + "10.1.25.0/24" + ], + "destinationAddresses": [ + "*" + ], + "ipProtocols": [ + "TCP" + ], + "destinationPorts": [ + "*" + ] + } + ] + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyRuleGroupList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyRuleGroupList.json new file mode 100644 index 000000000000..ea5e347486be --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyRuleGroupList.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "firewallPolicyName": "firewallPolicy", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ruleGroup1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/ruleGroup1", + "etag": "W/\"72090554-7e3b-43f2-80ad-99a9020dcb11\"", + "properties": { + "provisioningState": "Succeeded", + "priority": 110, + "rules": [ + { + "name": "Example-Filter-Rule", + "ruleType": "FirewallPolicyFilterRule", + "priority": 120, + "action": { + "type": "Deny" + }, + "ruleConditions": [ + { + "name": "network-condition-1", + "ruleConditionType": "NetworkRuleCondition", + "description": "Network rule condition", + "destinationAddresses": [ + "*" + ], + "sourceAddresses": [ + "10.1.25.0/24" + ], + "ipProtocols": [ + "TCP" + ], + "destinationPorts": [ + "*" + ] + } + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyRuleGroupPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyRuleGroupPut.json new file mode 100644 index 000000000000..ca509ffece61 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyRuleGroupPut.json @@ -0,0 +1,119 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "firewallPolicyName": "firewallPolicy", + "ruleGroupName": "ruleGroup1", + "parameters": { + "properties": { + "priority": 110, + "rules": [ + { + "ruleType": "FirewallPolicyFilterRule", + "name": "Example-Filter-Rule", + "action": { + "type": "Deny" + }, + "ruleConditions": [ + { + "ruleConditionType": "NetworkRuleCondition", + "name": "network-condition1", + "sourceAddresses": [ + "10.1.25.0/24" + ], + "destinationAddresses": [ + "*" + ], + "ipProtocols": [ + "TCP" + ], + "destinationPorts": [ + "*" + ] + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "ruleGroup1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleGroups/ruleGroup1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "priority": 110, + "rules": [ + { + "ruleType": "FirewallPolicyFilterRule", + "name": "Example-Filter-Rule", + "action": { + "type": "Deny" + }, + "ruleConditions": [ + { + "ruleConditionType": "NetworkRuleCondition", + "name": "network-condition1", + "sourceAddresses": [ + "10.1.25.0/24" + ], + "destinationAddresses": [ + "*" + ], + "ipProtocols": [ + "TCP" + ], + "destinationPorts": [ + "*" + ] + } + ] + } + ] + } + } + }, + "201": { + "body": { + "name": "firewallPolicy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "priority": 110, + "rules": [ + { + "ruleType": "FirewallPolicyFilterRule", + "name": "Example-Filter-Rule", + "action": { + "type": "Deny" + }, + "ruleConditions": [ + { + "ruleConditionType": "NetworkRuleCondition", + "name": "network-condition1", + "sourceAddresses": [ + "10.1.25.0/24" + ], + "destinationAddresses": [ + "*" + ], + "ipProtocols": [ + "TCP" + ], + "destinationPorts": [ + "*" + ] + } + ] + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyUpdateTags.json new file mode 100644 index 000000000000..810afda60357 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/FirewallPolicyUpdateTags.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "firewallPolicyName": "firewallPolicy", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "firewallPolicyParameters": { + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "firewallPolicy", + "type": "Microsoft.Network/firewallPolicies", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "threatIntelMode": "Deny" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/HubVirtualNetworkConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/HubVirtualNetworkConnectionGet.json new file mode 100644 index 000000000000..67c6898033a8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/HubVirtualNetworkConnectionGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "connectionName": "connection1", + "virtualHubName": "virtualHub1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVirtualNetwork": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" + }, + "allowHubToRemoteVnetTransit": true, + "allowRemoteVnetToUseHubVnetGateways": false + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/HubVirtualNetworkConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/HubVirtualNetworkConnectionList.json new file mode 100644 index 000000000000..96d766bf4d6f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/HubVirtualNetworkConnectionList.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "connectionName": "connection1", + "virtualHubName": "virtualHub1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": [ + { + "name": "connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVirtualNetwork": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" + }, + "allowHubToRemoteVnetTransit": true, + "allowRemoteVnetToUseHubVnetGateways": false + } + }, + { + "name": "connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/virtualHubVnetConnections/connection2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVirtualNetwork": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" + }, + "allowHubToRemoteVnetTransit": true, + "allowRemoteVnetToUseHubVnetGateways": false + } + } + ] + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/InboundNatRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/InboundNatRuleCreate.json new file mode 100644 index 000000000000..b083b32d2eaa --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/InboundNatRuleCreate.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "resourceGroupName": "testrg", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "loadBalancerName": "lb1", + "inboundNatRuleName": "natRule1.1", + "inboundNatRuleParameters": { + "properties": { + "protocol": "Tcp", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1" + }, + "frontendPort": 3390, + "backendPort": 3389, + "idleTimeoutInMinutes": 4, + "enableTcpReset": false, + "enableFloatingIP": false + } + } + }, + "responses": { + "200": { + "body": { + "name": "natRule1.1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/natRule1.1", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1" + }, + "frontendPort": 3390, + "backendPort": 3389, + "enableFloatingIP": false, + "idleTimeoutInMinutes": 4, + "protocol": "Tcp", + "enableTcpReset": false, + "backendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1" + } + } + } + }, + "201": { + "body": { + "name": "natRule1.1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/natRule1.1", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1" + }, + "frontendPort": 3390, + "backendPort": 3389, + "enableFloatingIP": false, + "idleTimeoutInMinutes": 4, + "protocol": "Tcp", + "enableTcpReset": false, + "backendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1" + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/InboundNatRuleDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/InboundNatRuleDelete.json new file mode 100644 index 000000000000..7575eebe6fe8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/InboundNatRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "testrg", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "loadBalancerName": "lb1", + "inboundNatRuleName": "natRule1.1" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/InboundNatRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/InboundNatRuleGet.json new file mode 100644 index 000000000000..c7e3db466e73 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/InboundNatRuleGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "resourceGroupName": "testrg", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "loadBalancerName": "lb1", + "inboundNatRuleName": "natRule1.1" + }, + "responses": { + "200": { + "body": { + "name": "natRule1.1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/natRule1.1", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1" + }, + "frontendPort": 3390, + "backendPort": 3389, + "enableFloatingIP": false, + "idleTimeoutInMinutes": 4, + "protocol": "Tcp", + "enableTcpReset": true, + "backendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1" + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/InboundNatRuleList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/InboundNatRuleList.json new file mode 100644 index 000000000000..6526242a03e1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/InboundNatRuleList.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "resourceGroupName": "testrg", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "loadBalancerName": "lb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "natRule1.1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/natRule1.1", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1" + }, + "frontendPort": 3390, + "backendPort": 3389, + "enableFloatingIP": false, + "idleTimeoutInMinutes": 4, + "protocol": "Tcp", + "enableTcpReset": true, + "backendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1" + } + } + }, + { + "name": "natRule1.3", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/natRule1.3", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1" + }, + "frontendPort": 3392, + "backendPort": 3389, + "enableFloatingIP": false, + "idleTimeoutInMinutes": 4, + "protocol": "Tcp", + "enableTcpReset": true, + "backendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/nic1/ipConfigurations/ip1" + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerBackendAddressPoolGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerBackendAddressPoolGet.json new file mode 100644 index 000000000000..ea8e107c75c0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerBackendAddressPoolGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "loadBalancerName": "lb", + "backendAddressPoolName": "backend", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "name": "backend", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/backend", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/loadBalancers/backendAddressPools", + "properties": { + "provisioningState": "Succeeded", + "backendIPConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/nic/ipConfigurations/default-ip-config" + } + ], + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerBackendAddressPoolList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerBackendAddressPoolList.json new file mode 100644 index 000000000000..6ce58f376d6e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerBackendAddressPoolList.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "loadBalancerName": "lb", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "backend", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/backend", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/loadBalancers/backendAddressPools", + "properties": { + "provisioningState": "Succeeded", + "backendIPConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/nic/ipConfigurations/default-ip-config" + } + ], + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreate.json new file mode 100644 index 000000000000..186e2d491a0b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreate.json @@ -0,0 +1,339 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "loadBalancerName": "lb", + "parameters": { + "location": "eastus", + "properties": { + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "properties": { + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + } + } + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "properties": {} + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": false, + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + } + } + } + ], + "probes": [ + { + "name": "probe-lb", + "properties": { + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2 + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": false + } + } + ], + "inboundNatPools": [] + } + } + }, + "responses": { + "200": { + "body": { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "type": "Microsoft.Network/loadBalancers", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "sku": { + "name": "Basic" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule" + } + ] + } + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb", + "type": "Microsoft.Network/loadBalancers/backendAddressPools", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", + "type": "Microsoft.Network/loadBalancers/loadBalancingRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": false, + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + }, + "disableOutboundSnat": false + } + } + ], + "probes": [ + { + "name": "probe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb", + "type": "Microsoft.Network/loadBalancers/probes", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule", + "type": "Microsoft.Network/loadBalancers/inboundNatRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": false + } + } + ], + "inboundNatPools": [] + } + } + }, + "201": { + "body": { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "type": "Microsoft.Network/loadBalancers", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "sku": { + "name": "Basic" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule" + } + ] + } + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb", + "type": "Microsoft.Network/loadBalancers/backendAddressPools", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", + "type": "Microsoft.Network/loadBalancers/loadBalancingRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": false, + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + }, + "disableOutboundSnat": false + } + } + ], + "probes": [ + { + "name": "probe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb", + "type": "Microsoft.Network/loadBalancers/probes", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule", + "type": "Microsoft.Network/loadBalancers/inboundNatRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": false + } + } + ], + "inboundNatPools": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreateStandardSku.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreateStandardSku.json new file mode 100644 index 000000000000..bd1ded7c66f1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreateStandardSku.json @@ -0,0 +1,339 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "loadBalancerName": "lb", + "parameters": { + "location": "eastus", + "sku": { + "name": "Standard" + }, + "properties": { + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "properties": { + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + } + } + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "properties": {} + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + } + } + } + ], + "probes": [ + { + "name": "probe-lb", + "properties": { + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2 + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp" + } + } + ], + "inboundNatPools": [], + "outboundRules": [] + } + } + }, + "responses": { + "200": { + "body": { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "type": "Microsoft.Network/loadBalancers", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule" + } + ] + } + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb", + "type": "Microsoft.Network/loadBalancers/backendAddressPools", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", + "type": "Microsoft.Network/loadBalancers/loadBalancingRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + }, + "disableOutboundSnat": false + } + } + ], + "probes": [ + { + "name": "probe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb", + "type": "Microsoft.Network/loadBalancers/probes", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule", + "type": "Microsoft.Network/loadBalancers/inboundNatRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp" + } + } + ], + "outboundRules": [], + "inboundNatPools": [] + } + } + }, + "201": { + "body": { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "type": "Microsoft.Network/loadBalancers", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule" + } + ] + } + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb", + "type": "Microsoft.Network/loadBalancers/backendAddressPools", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", + "type": "Microsoft.Network/loadBalancers/loadBalancingRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + }, + "disableOutboundSnat": false + } + } + ], + "probes": [ + { + "name": "probe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb", + "type": "Microsoft.Network/loadBalancers/probes", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule", + "type": "Microsoft.Network/loadBalancers/inboundNatRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp" + } + } + ], + "outboundRules": [], + "inboundNatPools": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreateWithInboundNatPool.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreateWithInboundNatPool.json new file mode 100644 index 000000000000..07175aab2657 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreateWithInboundNatPool.json @@ -0,0 +1,184 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "loadBalancerName": "lb", + "parameters": { + "location": "eastus", + "sku": { + "name": "Standard" + }, + "properties": { + "frontendIPConfigurations": [ + { + "properties": { + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "properties": { + "serviceEndpoints": [], + "resourceNavigationLinks": [] + }, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/lbvnet/subnets/lbsubnet" + } + }, + "name": "test", + "zones": [], + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/test" + } + ], + "backendAddressPools": [], + "loadBalancingRules": [], + "probes": [], + "inboundNatRules": [], + "outboundRules": [], + "inboundNatPools": [ + { + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/test" + }, + "protocol": "Tcp", + "frontendPortRangeStart": 8080, + "frontendPortRangeEnd": 8085, + "backendPort": 8888, + "idleTimeoutInMinutes": 10, + "enableFloatingIP": true, + "enableTcpReset": true + }, + "name": "test", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatPools/test" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "type": "Microsoft.Network/loadBalancers", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [ + { + "name": "test", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/test", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/lbvnet/subnets/lbsubnet" + }, + "inboundNatPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatPools/test" + } + ] + } + } + ], + "backendAddressPools": [], + "loadBalancingRules": [], + "probes": [], + "inboundNatRules": [], + "outboundRules": [], + "inboundNatPools": [ + { + "name": "test", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatPools/test", + "type": "Microsoft.Network/loadBalancers/inboundNatPools", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendPortRangeStart": 8080, + "frontendPortRangeEnd": 8085, + "backendPort": 8888, + "idleTimeoutInMinutes": 10, + "enableFloatingIP": true, + "protocol": "Tcp", + "enableTcpReset": true, + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/test" + } + } + } + ] + } + } + }, + "201": { + "body": { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "type": "Microsoft.Network/loadBalancers", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [ + { + "name": "test", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/test", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/lbvnet/subnets/lbsubnet" + }, + "inboundNatPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatPools/test" + } + ] + } + } + ], + "backendAddressPools": [], + "loadBalancingRules": [], + "probes": [], + "inboundNatRules": [], + "outboundRules": [], + "inboundNatPools": [ + { + "name": "test", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatPools/test", + "type": "Microsoft.Network/loadBalancers/inboundNatPools", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendPortRangeStart": 8080, + "frontendPortRangeEnd": 8085, + "backendPort": 8888, + "idleTimeoutInMinutes": 10, + "enableFloatingIP": true, + "protocol": "Tcp", + "enableTcpReset": true, + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/test" + } + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreateWithOutboundRules.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreateWithOutboundRules.json new file mode 100644 index 000000000000..df754b27e339 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreateWithOutboundRules.json @@ -0,0 +1,423 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "loadBalancerName": "lb", + "parameters": { + "location": "eastus", + "sku": { + "name": "Standard" + }, + "properties": { + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pip" + } + } + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "properties": {} + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + }, + "protocol": "Tcp", + "loadDistribution": "Default", + "frontendPort": 80, + "backendPort": 80, + "idleTimeoutInMinutes": 15, + "enableFloatingIP": true, + "disableOutboundSnat": true + } + } + ], + "probes": [ + { + "name": "probe-lb", + "properties": { + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2 + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp" + } + } + ], + "inboundNatPools": [], + "outboundRules": [ + { + "name": "rule1", + "properties": { + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "frontendIPConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + } + ], + "protocol": "All" + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "type": "Microsoft.Network/loadBalancers", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pip" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule" + } + ], + "outboundRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/outboundRules/rule1" + } + ], + "privateIPAddressVersion": "IPv4" + } + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb", + "type": "Microsoft.Network/loadBalancers/backendAddressPools", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "outboundRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/outboundRules/rule1" + } + ], + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", + "type": "Microsoft.Network/loadBalancers/loadBalancingRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": false, + "loadDistribution": "Default", + "disableOutboundSnat": true, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + } + } + } + ], + "probes": [ + { + "name": "probe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb", + "type": "Microsoft.Network/loadBalancers/probes", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule", + "type": "Microsoft.Network/loadBalancers/inboundNatRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": false + } + } + ], + "outboundRules": [ + { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/outboundRules/rule1", + "type": "Microsoft.Network/loadBalancers/outboundRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "allocatedOutboundPorts": 1024, + "protocol": "All", + "enableTcpReset": false, + "idleTimeoutInMinutes": 4, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "frontendIPConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + } + ] + } + } + ], + "inboundNatPools": [] + } + } + }, + "201": { + "body": { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "type": "Microsoft.Network/loadBalancers", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pip" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule" + } + ], + "outboundRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/outboundRules/rule1" + } + ], + "privateIPAddressVersion": "IPv4" + } + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb", + "type": "Microsoft.Network/loadBalancers/backendAddressPools", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "outboundRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/outboundRules/rule1" + } + ], + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", + "type": "Microsoft.Network/loadBalancers/loadBalancingRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": false, + "loadDistribution": "Default", + "disableOutboundSnat": true, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + } + } + } + ], + "probes": [ + { + "name": "probe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb", + "type": "Microsoft.Network/loadBalancers/probes", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule", + "type": "Microsoft.Network/loadBalancers/inboundNatRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": false + } + } + ], + "outboundRules": [ + { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/outboundRules/rule1", + "type": "Microsoft.Network/loadBalancers/outboundRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "allocatedOutboundPorts": 1024, + "protocol": "All", + "enableTcpReset": false, + "idleTimeoutInMinutes": 4, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "frontendIPConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + } + ] + } + } + ], + "inboundNatPools": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreateWithZones.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreateWithZones.json new file mode 100644 index 000000000000..e31f1ba1ba8d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerCreateWithZones.json @@ -0,0 +1,348 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "loadBalancerName": "lb", + "parameters": { + "location": "eastus", + "sku": { + "name": "Standard" + }, + "properties": { + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "properties": { + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + } + }, + "zones": [ + "1" + ] + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "properties": {} + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + } + } + } + ], + "probes": [ + { + "name": "probe-lb", + "properties": { + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2 + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "properties": { + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp" + } + } + ], + "inboundNatPools": [], + "outboundRules": [] + } + } + }, + "responses": { + "200": { + "body": { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "type": "Microsoft.Network/loadBalancers", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "zones": [ + "1" + ], + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule" + } + ] + } + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb", + "type": "Microsoft.Network/loadBalancers/backendAddressPools", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", + "type": "Microsoft.Network/loadBalancers/loadBalancingRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + }, + "disableOutboundSnat": false + } + } + ], + "probes": [ + { + "name": "probe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb", + "type": "Microsoft.Network/loadBalancers/probes", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule", + "type": "Microsoft.Network/loadBalancers/inboundNatRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp" + } + } + ], + "outboundRules": [], + "inboundNatPools": [] + } + } + }, + "201": { + "body": { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "type": "Microsoft.Network/loadBalancers", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "zones": [ + "1" + ], + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule" + } + ] + } + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb", + "type": "Microsoft.Network/loadBalancers/backendAddressPools", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", + "type": "Microsoft.Network/loadBalancers/loadBalancingRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + }, + "disableOutboundSnat": false + } + } + ], + "probes": [ + { + "name": "probe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb", + "type": "Microsoft.Network/loadBalancers/probes", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule", + "type": "Microsoft.Network/loadBalancers/inboundNatRules", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp" + } + } + ], + "outboundRules": [], + "inboundNatPools": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerDelete.json new file mode 100644 index 000000000000..0c9427c65cb3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "loadBalancerName": "lb" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerFrontendIPConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerFrontendIPConfigurationGet.json new file mode 100644 index 000000000000..5487fe648611 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerFrontendIPConfigurationGet.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "loadBalancerName": "lb", + "frontendIPConfigurationName": "frontend", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "name": "frontend", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/frontend", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "privateIPAddressVersion": "IPv4", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/inrlb" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerFrontendIPConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerFrontendIPConfigurationList.json new file mode 100644 index 000000000000..dc194f07f680 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerFrontendIPConfigurationList.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "resourceGroupName": "testrg", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "loadBalancerName": "lb" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "frontend", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/frontend", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "privateIPAddressVersion": "IPv4", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/inrlb" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerGet.json new file mode 100644 index 000000000000..71178dad1fb7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerGet.json @@ -0,0 +1,139 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "loadBalancerName": "lb" + }, + "responses": { + "200": { + "body": { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers", + "location": "westus", + "sku": { + "name": "Basic" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "privateIPAddressVersion": "IPv4", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule" + } + ] + } + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/backendAddressPools", + "properties": { + "provisioningState": "Succeeded", + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/loadBalancingRules", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": true, + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + }, + "disableOutboundSnat": false + } + } + ], + "probes": [ + { + "name": "probe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/probes", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/inboundNatRules", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": true + } + } + ], + "inboundNatPools": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerList.json new file mode 100644 index 000000000000..56210059a6c7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerList.json @@ -0,0 +1,161 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers", + "location": "westus", + "sku": { + "name": "Basic" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [ + { + "name": "felb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/felb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "privateIPAddressVersion": "IPv4", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/inrlb" + } + ] + } + } + ], + "backendAddressPools": [ + { + "name": "belb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/belb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/backendAddressPools", + "properties": { + "provisioningState": "Succeeded", + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/loadBalancingRules", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/felb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": true, + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/belb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/prlb" + } + } + } + ], + "probes": [ + { + "name": "prlb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/prlb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/probes", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "inboundNatRules": [ + { + "name": "inrlb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/inrlb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/inboundNatRules", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/felb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": true + } + } + ], + "inboundNatPools": [] + } + }, + { + "name": "lb2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb2", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers", + "location": "westus", + "sku": { + "name": "Basic" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [], + "backendAddressPools": [], + "loadBalancingRules": [], + "probes": [], + "inboundNatRules": [], + "inboundNatPools": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerListAll.json new file mode 100644 index 000000000000..9d04121de085 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerListAll.json @@ -0,0 +1,160 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers", + "location": "westus", + "sku": { + "name": "Basic" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [ + { + "name": "felb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/felb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "privateIPAddressVersion": "IPv4", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/inrlb" + } + ] + } + } + ], + "backendAddressPools": [ + { + "name": "belb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/belb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/backendAddressPools", + "properties": { + "provisioningState": "Succeeded", + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/loadBalancingRules", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/felb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": true, + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/belb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/prlb" + } + } + } + ], + "probes": [ + { + "name": "prlb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/prlb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/probes", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "inboundNatRules": [ + { + "name": "inrlb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/inrlb", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers/inboundNatRules", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/felb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": true + } + } + ], + "inboundNatPools": [] + } + }, + { + "name": "lb3", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/loadBalancers/lb3", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/loadBalancers", + "location": "westus", + "sku": { + "name": "Basic" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "frontendIPConfigurations": [], + "backendAddressPools": [], + "loadBalancingRules": [], + "probes": [], + "inboundNatRules": [], + "inboundNatPools": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerLoadBalancingRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerLoadBalancingRuleGet.json new file mode 100644 index 000000000000..0e3e46804cc0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerLoadBalancingRuleGet.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "loadBalancerName": "lb1", + "loadBalancingRuleName": "rule1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/loadBalancingRules/rule1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/loadBalancers/loadBalancingRules", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/lbfrontend" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": false, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": true, + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/bepool1" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/probes/probe1" + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerLoadBalancingRuleList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerLoadBalancingRuleList.json new file mode 100644 index 000000000000..f6e67e513381 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerLoadBalancingRuleList.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "loadBalancerName": "lb1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/loadBalancingRules/rule1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/loadBalancers/loadBalancingRules", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/lbfrontend" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": false, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": true, + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/bepool1" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/probes/probe1" + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerNetworkInterfaceListSimple.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerNetworkInterfaceListSimple.json new file mode 100644 index 000000000000..442ab6035f71 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerNetworkInterfaceListSimple.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "loadBalancerName": "lb", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "mynic", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/mynic", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "ipConfigurations": [ + { + "name": "ipconfig1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/mynic/ipConfigurations/ipconfig1", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/frontendSubnet" + }, + "privateIPAddressVersion": "IPv4", + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/bepool1" + } + ], + "loadBalancerInboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/inbound1" + } + ] + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [] + }, + "enableAcceleratedNetworking": false, + "enableIPForwarding": false + }, + "type": "Microsoft.Network/networkInterfaces" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerNetworkInterfaceListVmss.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerNetworkInterfaceListVmss.json new file mode 100644 index 000000000000..410f59ab8406 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerNetworkInterfaceListVmss.json @@ -0,0 +1,112 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "loadBalancerName": "lb", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "vmss1Nic", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/vmss1Nic", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "ipConfigurations": [ + { + "name": "vmss1IpConfig", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/vmss1Nic/ipConfigurations/vmss1IpConfig", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.4", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vmss1Vnet/subnets/default" + }, + "primary": true, + "privateIPAddressVersion": "IPv4", + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/bepool" + } + ], + "loadBalancerInboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/natpool.0" + } + ] + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [], + "internalDomainNameSuffix": "aaaaaaaaaaaaaaaaaaaaaaaaaa.dx.internal.cloudapp.net" + }, + "macAddress": "00-00-00-00-00-00", + "enableAcceleratedNetworking": false, + "enableIPForwarding": false, + "primary": true, + "virtualMachine": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0" + } + } + }, + { + "name": "vmss1Nic", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss1Nic", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "ipConfigurations": [ + { + "name": "vmss1IpConfig", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss1Nic/ipConfigurations/vmss1IpConfig", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.5", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vmss1Vnet/subnets/default" + }, + "primary": true, + "privateIPAddressVersion": "IPv4", + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/bepool" + } + ], + "loadBalancerInboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/natpool.1" + } + ] + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [], + "internalDomainNameSuffix": "aaaaaaaaaaaaaaaaaaaaaaaaaa.dx.internal.cloudapp.net" + }, + "macAddress": "00-00-00-00-00-00", + "enableAcceleratedNetworking": false, + "enableIPForwarding": false, + "primary": true, + "virtualMachine": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1" + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerOutboundRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerOutboundRuleGet.json new file mode 100644 index 000000000000..14a5a8a8e2e3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerOutboundRuleGet.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "loadBalancerName": "lb1", + "outboundRuleName": "rule1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1", + "type": "Microsoft.Network/loadBalancers/outboundRules", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/lbfrontend" + } + ], + "allocatedOutboundPorts": 64, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": true, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/bepool1" + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerOutboundRuleList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerOutboundRuleList.json new file mode 100644 index 000000000000..e3e97ad2c919 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerOutboundRuleList.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "loadBalancerName": "lb1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1", + "type": "Microsoft.Network/loadBalancers/outboundRules", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/lbfrontend" + } + ], + "allocatedOutboundPorts": 64, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "enableTcpReset": true, + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/bepool1" + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerProbeGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerProbeGet.json new file mode 100644 index 000000000000..db0bd4a1c781 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerProbeGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "loadBalancerName": "lb", + "probeName": "probe1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "name": "probe1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/probes/probe1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/loadBalancers/probes", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerProbeList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerProbeList.json new file mode 100644 index 000000000000..50e3f045efae --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerProbeList.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "loadBalancerName": "lb", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "prlb", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/probes/prlb", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/loadBalancers/probes", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerUpdateTags.json new file mode 100644 index 000000000000..e2f510ef6783 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LoadBalancerUpdateTags.json @@ -0,0 +1,132 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "loadBalancerName": "lb", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", + "type": "Microsoft.Network/loadBalancers", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule" + } + ] + } + } + ], + "backendAddressPools": [ + { + "name": "be-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb", + "properties": { + "provisioningState": "Succeeded", + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + }, + "disableOutboundSnat": false + } + } + ], + "probes": [ + { + "name": "probe-lb", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" + } + ] + } + } + ], + "inboundNatRules": [ + { + "name": "in-nat-rule", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": true, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp" + } + } + ], + "outboundRules": [], + "inboundNatPools": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayCreate.json new file mode 100644 index 000000000000..1b3b27b107d6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayCreate.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "localNetworkGatewayName": "localgw", + "parameters": { + "properties": { + "localNetworkAddressSpace": { + "addressPrefixes": [ + "10.1.0.0/16" + ] + }, + "gatewayIpAddress": "11.12.13.14" + }, + "location": "Central US" + } + }, + "responses": { + "201": { + "body": { + "name": "localgw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/localNetworkGateways", + "location": "centralus", + "properties": { + "provisioningState": "Updating", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "localNetworkAddressSpace": { + "addressPrefixes": [ + "10.1.0.0/16" + ] + }, + "gatewayIpAddress": "11.12.13.14" + } + } + }, + "200": { + "body": { + "name": "localgw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/localNetworkGateways", + "location": "centralus", + "properties": { + "provisioningState": "Updating", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "localNetworkAddressSpace": { + "addressPrefixes": [ + "10.1.0.0/16" + ] + }, + "gatewayIpAddress": "11.12.13.14" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayDelete.json new file mode 100644 index 000000000000..03c7812d0cb7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "localNetworkGatewayName": "localgw" + }, + "responses": { + "202": {}, + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayGet.json new file mode 100644 index 000000000000..7ce0d4441e8c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "localNetworkGatewayName": "localgw" + }, + "responses": { + "200": { + "body": { + "name": "localgw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/localNetworkGateways", + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "localNetworkAddressSpace": { + "addressPrefixes": [ + "10.1.0.0/16" + ] + }, + "gatewayIpAddress": "x.x.x.x" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayList.json new file mode 100644 index 000000000000..56dca91e5c31 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "localgw1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/localNetworkGateways", + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "localNetworkAddressSpace": { + "addressPrefixes": [ + "10.1.0.0/16" + ] + }, + "gatewayIpAddress": "x.x.x.x" + } + }, + { + "name": "localgw2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw2", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/localNetworkGateways", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "localNetworkAddressSpace": { + "addressPrefixes": [ + "10.2.0.0/16" + ] + }, + "gatewayIpAddress": "x.x.x.x" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayUpdateTags.json new file mode 100644 index 000000000000..74acc2314cf4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/LocalNetworkGatewayUpdateTags.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "localNetworkGatewayName": "lgw", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "lgw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/lgw", + "type": "Microsoft.Network/localNetworkGateways", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "localNetworkAddressSpace": { + "addressPrefixes": [ + "12.0.0.0/8" + ] + }, + "gatewayIpAddress": "12.0.0.1" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayCreateOrUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayCreateOrUpdate.json new file mode 100644 index 000000000000..38c66b2dcf93 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayCreateOrUpdate.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "natGatewayName": "test-natgateway", + "parameters": { + "location": "westus", + "sku": { + "name": "Standard" + }, + "properties": { + "publicIpAddresses": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" + } + ], + "publicIpPrefixes": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-natGateway", + "sku": { + "name": "Standard" + }, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway", + "location": "westus", + "properties": { + "idleTimeoutInMinutes": 5, + "provisioningState": "Succeeded", + "publicIpAddresses": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" + } + ], + "publicIpPrefixes": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1" + } + ], + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1" + } + ] + }, + "type": "Microsoft.Network/natGateways" + } + }, + "201": { + "body": { + "name": "test-natGateway", + "sku": { + "name": "Standard" + }, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway", + "location": "westus", + "properties": { + "idleTimeoutInMinutes": 5, + "provisioningState": "Succeeded", + "publicIpAddresses": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" + } + ], + "publicIpPrefixes": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1" + } + ], + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1" + } + ] + }, + "type": "Microsoft.Network/natGateways" + } + }, + "202": { + "body": { + "name": "test-natGateway", + "sku": { + "name": "Standard" + }, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway", + "location": "westus", + "properties": { + "idleTimeoutInMinutes": 5, + "provisioningState": "Succeeded", + "publicIpAddresses": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" + } + ], + "publicIpPrefixes": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1" + } + ], + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1" + } + ] + }, + "type": "Microsoft.Network/natGateways" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayDelete.json new file mode 100644 index 000000000000..1bb5ab2f60eb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "natGatewayName": "test-natGateway" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayGet.json new file mode 100644 index 000000000000..562fd2bcfe0c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayGet.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "natGatewayName": "test-natGateway" + }, + "responses": { + "200": { + "body": { + "name": "test-natGateway", + "sku": { + "name": "Standard" + }, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway", + "location": "westus", + "properties": { + "idleTimeoutInMinutes": 5, + "provisioningState": "Succeeded", + "publicIpAddresses": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" + } + ], + "publicIpPrefixes": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1" + } + ], + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1" + } + ] + }, + "type": "Microsoft.Network/natGateways" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayList.json new file mode 100644 index 000000000000..5fc97d9805bc --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayList.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-natGateway", + "sku": { + "name": "Standard" + }, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateway/test-natGateway", + "location": "westus", + "properties": { + "idleTimeoutInMinutes": 5, + "provisioningState": "Succeeded", + "publicIpAddresses": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" + } + ], + "publicIpPrefixes": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1" + } + ], + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1" + } + ] + }, + "type": "Microsoft.Network/natGateways" + }, + { + "name": "test-natGateway2", + "sku": { + "name": "Standard" + }, + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/natGateway/test-natGateway2", + "location": "westus", + "properties": { + "idleTimeoutInMinutes": 5, + "provisioningState": "Succeeded", + "publicIpAddresses": [ + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" + } + ], + "publicIpPrefixes": [ + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1" + } + ], + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1" + } + ] + }, + "type": "Microsoft.Network/natGateways" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayListAll.json new file mode 100644 index 000000000000..999ec5d1aafe --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayListAll.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-natGateway", + "sku": { + "name": "Standard" + }, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway", + "location": "westus", + "properties": { + "idleTimeoutInMinutes": 5, + "provisioningState": "Succeeded", + "publicIpAddresses": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" + } + ], + "publicIpPrefixes": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1" + } + ], + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1" + } + ] + }, + "type": "Microsoft.Network/natGateways" + }, + { + "name": "test-natGateway2", + "sku": { + "name": "Standard" + }, + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/natGatewayes/test-natGateway2", + "location": "westus", + "properties": { + "idleTimeoutInMinutes": 5, + "provisioningState": "Succeeded", + "publicIpAddresses": [ + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" + } + ], + "publicIpPrefixes": [ + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1" + } + ], + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1" + } + ] + }, + "type": "Microsoft.Network/natGateways" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayUpdateTags.json new file mode 100644 index 000000000000..f47d4afb80fa --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NatGatewayUpdateTags.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "natGatewayName": "test-natGateway", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-natGateway", + "sku": { + "name": "Standard" + }, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway", + "location": "westus", + "properties": { + "idleTimeoutInMinutes": 5, + "provisioningState": "Succeeded", + "publicIpAddresses": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" + } + ], + "publicIpPrefixes": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1" + } + ], + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1" + } + ] + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.Network/natGateways" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceCreate.json new file mode 100644 index 000000000000..8e7ca9b9bfe1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceCreate.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkInterfaceName": "test-nic", + "parameters": { + "properties": { + "enableAcceleratedNetworking": true, + "ipConfigurations": [ + { + "name": "ipconfig1", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default" + } + } + } + ] + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "name": "test-nic", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic/ipConfigurations/ipconfig1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "172.20.2.4", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default" + }, + "primary": true, + "privateIPAddressVersion": "IPv4" + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [] + }, + "enableAcceleratedNetworking": true, + "enableIPForwarding": false + }, + "type": "Microsoft.Network/networkInterfaces" + } + }, + "201": { + "body": { + "name": "test-nic", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic/ipConfigurations/ipconfig1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "172.20.2.4", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default" + }, + "primary": true, + "privateIPAddressVersion": "IPv4" + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [] + }, + "enableAcceleratedNetworking": true, + "enableIPForwarding": false + }, + "type": "Microsoft.Network/networkInterfaces" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceDelete.json new file mode 100644 index 000000000000..31f4de05ffc1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkInterfaceName": "test-nic" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceEffectiveNSGList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceEffectiveNSGList.json new file mode 100644 index 000000000000..319cc89bdfb2 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceEffectiveNSGList.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkInterfaceName": "nic1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "networkSecurityGroup": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/test-nsg" + }, + "association": { + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default" + }, + "networkInterface": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1" + } + }, + "effectiveSecurityRules": [ + { + "name": "securityRules/rule1", + "protocol": "Tcp", + "sourcePortRange": "456-456", + "destinationPortRange": "6579-6579", + "sourceAddressPrefix": "0.0.0.0/32", + "destinationAddressPrefix": "0.0.0.0/32", + "access": "Allow", + "priority": 234, + "direction": "Inbound" + }, + { + "name": "securityRules/default-allow-rdp", + "protocol": "Tcp", + "sourcePortRange": "0-65535", + "destinationPortRange": "3389-3389", + "sourceAddressPrefix": "1.1.1.1/32", + "destinationAddressPrefix": "0.0.0.0/0", + "access": "Allow", + "priority": 1000, + "direction": "Inbound" + }, + { + "name": "defaultSecurityRules/AllowInternetOutBound", + "protocol": "All", + "sourcePortRange": "0-65535", + "destinationPortRange": "0-65535", + "sourceAddressPrefix": "0.0.0.0/0", + "destinationAddressPrefix": "Internet", + "expandedDestinationAddressPrefix": [ + "32.0.0.0/3", + "4.0.0.0/6", + "2.0.0.0/7", + "1.0.0.0/8" + ], + "access": "Allow", + "priority": 65001, + "direction": "Outbound" + } + ] + } + ] + } + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceEffectiveRouteTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceEffectiveRouteTableList.json new file mode 100644 index 000000000000..9335afb3f3bc --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceEffectiveRouteTableList.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkInterfaceName": "nic1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "source": "Default", + "state": "Active", + "addressPrefix": [ + "172.20.2.0/24" + ], + "nextHopType": "VnetLocal", + "nextHopIpAddress": [] + }, + { + "source": "Default", + "state": "Active", + "addressPrefix": [ + "0.0.0.0/0" + ], + "nextHopType": "Internet", + "nextHopIpAddress": [] + }, + { + "source": "Default", + "state": "Active", + "addressPrefix": [ + "10.0.0.0/8" + ], + "nextHopType": "None", + "nextHopIpAddress": [] + }, + { + "source": "Default", + "state": "Active", + "addressPrefix": [ + "100.64.0.0/10" + ], + "nextHopType": "None", + "nextHopIpAddress": [] + }, + { + "source": "Default", + "state": "Active", + "addressPrefix": [ + "172.16.0.0/12" + ], + "nextHopType": "None", + "nextHopIpAddress": [] + }, + { + "source": "Default", + "state": "Active", + "addressPrefix": [ + "192.168.0.0/16" + ], + "nextHopType": "None", + "nextHopIpAddress": [] + } + ] + } + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceGet.json new file mode 100644 index 000000000000..3c1aab1e6c74 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceGet.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkInterfaceName": "test-nic" + }, + "responses": { + "200": { + "body": { + "name": "test-nic", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic/ipConfigurations/ipconfig1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "172.20.2.4", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default" + }, + "primary": true, + "privateIPAddressVersion": "IPv4" + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [], + "internalDomainNameSuffix": "test.bx.internal.cloudapp.net" + }, + "macAddress": "00-0D-3A-1B-C7-21", + "enableAcceleratedNetworking": true, + "enableIPForwarding": false, + "networkSecurityGroup": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg" + }, + "primary": true, + "virtualMachine": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1" + } + }, + "type": "Microsoft.Network/networkInterfaces" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceIPConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceIPConfigurationGet.json new file mode 100644 index 000000000000..3cea12bd7dd3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceIPConfigurationGet.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "networkInterfaceName": "mynic", + "ipConfigurationName": "ipconfig1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "name": "ipconfig1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/mynic/ipConfigurations/ipconfig1", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/frontendSubnet" + }, + "privateIPAddressVersion": "IPv4", + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/backendAddressPools/bepool1" + } + ], + "loadBalancerInboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/inboundNatRules/inbound1" + } + ], + "virtualNetworkTaps": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/vTAP1" + }, + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/vTAP2" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceIPConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceIPConfigurationList.json new file mode 100644 index 000000000000..551b427e58eb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceIPConfigurationList.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "networkInterfaceName": "nic1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ipconfig1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.4", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet12/subnets/subnet12" + }, + "primary": true, + "privateIPAddressVersion": "IPv4" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceList.json new file mode 100644 index 000000000000..57302337385c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceList.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-nic", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic/ipConfigurations/ipconfig1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "172.20.2.4", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default" + }, + "primary": true, + "privateIPAddressVersion": "IPv4" + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [], + "internalDomainNameSuffix": "test.bx.internal.cloudapp.net" + }, + "macAddress": "00-0D-3A-1B-C7-21", + "enableAcceleratedNetworking": true, + "enableIPForwarding": false, + "networkSecurityGroup": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg" + }, + "primary": true, + "virtualMachine": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1" + } + }, + "type": "Microsoft.Network/networkInterfaces" + }, + { + "name": "test-nic2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic2", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic2/ipConfigurations/ipconfig1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "172.20.2.4", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip2" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet2/subnets/default" + }, + "primary": true, + "privateIPAddressVersion": "IPv4" + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [] + }, + "enableAcceleratedNetworking": true, + "enableIPForwarding": false + }, + "type": "Microsoft.Network/networkInterfaces" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceListAll.json new file mode 100644 index 000000000000..8174f060b99f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceListAll.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-nic", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic/ipConfigurations/ipconfig1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "172.20.2.4", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default" + }, + "primary": true, + "privateIPAddressVersion": "IPv4" + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [], + "internalDomainNameSuffix": "test.bx.internal.cloudapp.net" + }, + "macAddress": "00-0D-3A-1B-C7-21", + "enableAcceleratedNetworking": true, + "enableIPForwarding": false, + "networkSecurityGroup": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg" + }, + "primary": true, + "virtualMachine": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1" + } + }, + "type": "Microsoft.Network/networkInterfaces" + }, + { + "name": "test-nic2", + "id": "/subscriptions/subid/resourceGroups/rgnew/providers/Microsoft.Network/networkInterfaces/test-nic2", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfig1", + "id": "/subscriptions/subid/resourceGroups/rgnew/providers/Microsoft.Network/networkInterfaces/test-nic2/ipConfigurations/ipconfig1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "172.20.2.4", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rgnew/providers/Microsoft.Network/publicIPAddresses/test-ip2" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rgnew/providers/Microsoft.Network/virtualNetworks/rgnew-vnet2/subnets/default" + }, + "primary": true, + "privateIPAddressVersion": "IPv4" + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [] + }, + "enableAcceleratedNetworking": true, + "enableIPForwarding": false + }, + "type": "Microsoft.Network/networkInterfaces" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceLoadBalancerList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceLoadBalancerList.json new file mode 100644 index 000000000000..18a63827e432 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceLoadBalancerList.json @@ -0,0 +1,139 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "networkInterfaceName": "nic1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "lbname1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "type": "Microsoft.Network/loadBalancers", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "frontendIPConfigurations": [ + { + "name": "lbfrontend", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/frontendIPConfigurations/lbfrontend", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/publicIPAddresses/myDynamicPublicIP" + }, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/loadBalancingRules/rule1" + } + ], + "inboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/inboundNatRules/inbound1" + } + ] + } + } + ], + "backendAddressPools": [ + { + "name": "bepool1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/backendAddressPools/bepool1", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "properties": { + "provisioningState": "Succeeded", + "backendIPConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1" + } + ], + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/loadBalancingRules/rule1" + } + ] + } + } + ], + "loadBalancingRules": [ + { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/loadBalancingRules/rule1", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/frontendIPConfigurations/lbfrontend" + }, + "frontendPort": 80, + "backendPort": 80, + "enableFloatingIP": false, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "loadDistribution": "Default", + "backendAddressPool": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/backendAddressPools/bepool1" + }, + "probe": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/probes/probe1" + } + } + } + ], + "probes": [ + { + "name": "probe1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/probes/probe1", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "properties": { + "provisioningState": "Succeeded", + "protocol": "Http", + "port": 80, + "requestPath": "healthcheck.aspx", + "intervalInSeconds": 15, + "numberOfProbes": 2, + "loadBalancingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/loadBalancingRules/rule1" + } + ] + } + } + ], + "inboundNatRules": [ + { + "name": "inbound1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/inboundNatRules/inbound1", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "properties": { + "provisioningState": "Succeeded", + "frontendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lbname1/frontendIPConfigurations/lbfrontend" + }, + "frontendPort": 3389, + "backendPort": 3389, + "enableFloatingIP": false, + "idleTimeoutInMinutes": 15, + "protocol": "Tcp", + "backendIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1" + } + } + } + ], + "outboundRules": [], + "inboundNatPools": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceTapConfigurationCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceTapConfigurationCreate.json new file mode 100644 index 000000000000..24ea42134dc0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceTapConfigurationCreate.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "networkInterfaceName": "mynic", + "tapConfigurationName": "tapconfiguration1", + "api-version": "2019-06-01", + "tapConfigurationParameters": { + "properties": { + "virtualNetworkTap": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap" + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "tapConfiguration1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/mynic/tapConfigurations/tapConfiguration1", + "etag": "etag", + "type": "Microsoft.Network/networkInterfaces/tapConfigurations", + "properties": { + "virtualNetworkTap": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap" + }, + "provisioningState": "Succeded" + } + } + }, + "201": { + "body": { + "name": "tapConfiguration1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/mynic/tapConfigurations/tapConfiguration1", + "etag": "etag", + "type": "Microsoft.Network/networkInterfaces/tapConfigurations", + "properties": { + "virtualNetworkTap": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap" + }, + "provisioningState": "Succeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceTapConfigurationDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceTapConfigurationDelete.json new file mode 100644 index 000000000000..498972782118 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceTapConfigurationDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkInterfaceName": "test-networkinterface", + "tapConfigurationName": "test-tapconfiguration" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceTapConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceTapConfigurationGet.json new file mode 100644 index 000000000000..f107c1453e54 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceTapConfigurationGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "networkInterfaceName": "mynic", + "tapConfigurationName": "tapconfiguration1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "name": "tapConfiguration1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/mynic/tapConfigurations/tapConfiguration1", + "etag": "etag", + "type": "Microsoft.Network/networkInterfaces/tapConfigurations", + "properties": { + "virtualNetworkTap": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap" + }, + "provisioningState": "Succeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceTapConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceTapConfigurationList.json new file mode 100644 index 000000000000..b60be89c275c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceTapConfigurationList.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkInterfaceName": "mynic" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "tapConfiguration1", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/mynic/tapConfigurations/tapConfiguration1", + "etag": "etag", + "type": "Microsoft.Network/networkInterfaces/tapConfigurations", + "properties": { + "virtualNetworkTap": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap" + }, + "provisioningState": "Succeded" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceUpdateTags.json new file mode 100644 index 000000000000..a10d2fa5ce2f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkInterfaceUpdateTags.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkInterfaceName": "test-nic", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-nic", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic", + "location": "eastus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic/ipConfigurations/ipconfig1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "172.20.2.4", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default" + }, + "primary": true, + "privateIPAddressVersion": "IPv4" + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [] + }, + "enableAcceleratedNetworking": true, + "enableIPForwarding": false + }, + "type": "Microsoft.Network/networkInterfaces" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileCreateConfigOnly.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileCreateConfigOnly.json new file mode 100644 index 000000000000..ebd78465e92e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileCreateConfigOnly.json @@ -0,0 +1,110 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkProfileName": "networkProfile1", + "parameters": { + "location": "westus", + "properties": { + "containerNetworkInterfaceConfigurations": [ + { + "name": "eth1", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig1", + "properties": { + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + } + ] + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "networkProfile1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "1570d8b6-ab8a-4ad2-81d6-d2799b429cbf", + "containerNetworkInterfaceConfigurations": [ + { + "name": "eth1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1/ipConfigurations/ipconfig1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + } + ] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" + } + ], + "containerNetworkInterfaces": [] + } + } + }, + "201": { + "body": { + "name": "networkProfile1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "1570d8b6-ab8a-4ad2-81d6-d2799b429cbf", + "containerNetworkInterfaceConfigurations": [ + { + "name": "eth1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1/ipConfigurations/ipconfig1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + } + ] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" + } + ], + "containerNetworkInterfaces": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileDelete.json new file mode 100644 index 000000000000..95a44ddfd0ba --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkProfileName": "networkProfile1" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileGetConfigOnly.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileGetConfigOnly.json new file mode 100644 index 000000000000..e09de00f3504 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileGetConfigOnly.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkProfileName": "networkProfile1" + }, + "responses": { + "200": { + "body": { + "name": "networkProfile1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles", + "location": "centraluseuap", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "1570d8b6-ab8a-4ad2-81d6-d2799b429cbf", + "containerNetworkInterfaceConfigurations": [ + { + "name": "eth0", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfigprofile1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0/ipConfigurations/ipconfigprofile1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + }, + { + "name": "ipconfigprofile2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0/ipConfigurations/ipconfigprofile2", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + } + ] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" + }, + { + "name": "eth1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfigprofile3", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1/ipConfigurations/ipconfigprofile3", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + } + ] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" + } + ], + "containerNetworkInterfaces": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileGetWithContainerNic.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileGetWithContainerNic.json new file mode 100644 index 000000000000..f80c47d3bd97 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileGetWithContainerNic.json @@ -0,0 +1,203 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkProfileName": "networkProfile1" + }, + "responses": { + "200": { + "body": { + "name": "networkProfile1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1", + "etag": "W/\"de9b89d2-83b0-4da3-b488-6ea8b0557edd\"", + "type": "Microsoft.Network/networkProfiles", + "location": "centraluseuap", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "1570d8b6-ab8a-4ad2-81d6-d2799b429cbf", + "containerNetworkInterfaceConfigurations": [ + { + "name": "eth0", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0", + "etag": "W/\"de9b89d2-83b0-4da3-b488-6ea8b0557edd\"", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfigprofile1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0/ipConfigurations/ipconfigprofile1", + "etag": "W/\"de9b89d2-83b0-4da3-b488-6ea8b0557edd\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + }, + { + "name": "ipconfigprofile2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0/ipConfigurations/ipconfigprofile2", + "etag": "W/\"de9b89d2-83b0-4da3-b488-6ea8b0557edd\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + } + ], + "containerNetworkInterfaces": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaces/containerGroup1_eth0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaces/containerGroup2_eth0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaces/containerGroup3_eth0" + } + ] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" + }, + { + "name": "eth1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1", + "etag": "W/\"de9b89d2-83b0-4da3-b488-6ea8b0557edd\"", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfigprofile3", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1/ipConfigurations/ipconfigprofile3", + "etag": "W/\"de9b89d2-83b0-4da3-b488-6ea8b0557edd\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + } + ], + "containerNetworkInterfaces": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaces/containerGroup1_eth1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaces/containerGroup2_eth1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaces/containerGroup3_eth1" + } + ] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" + } + ], + "containerNetworkInterfaces": [ + { + "name": "containerGroup1_eth0", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaces/containerGroup1_eth0", + "etag": "W/\"de9b89d2-83b0-4da3-b488-6ea8b0557edd\"", + "properties": { + "provisioningState": "Succeeded", + "containerNetworkInterfaceConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0" + }, + "container": { + "id": "/subscriptions/subid/resourceGroups/networkProfilesDemo/providers/Microsoft.ContainerInstance/containerGroups/containerGroup1" + }, + "ipConfigurations": [] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaces" + }, + { + "name": "containerGroup1_eth1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaces/containerGroup1_eth1", + "etag": "W/\"de9b89d2-83b0-4da3-b488-6ea8b0557edd\"", + "properties": { + "provisioningState": "Succeeded", + "containerNetworkInterfaceConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1" + }, + "container": { + "id": "/subscriptions/subid/resourceGroups/networkProfilesDemo/providers/Microsoft.ContainerInstance/containerGroups/containerGroup1" + }, + "ipConfigurations": [] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaces" + }, + { + "name": "containerGroup2_eth0", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaces/containerGroup2_eth0", + "etag": "W/\"de9b89d2-83b0-4da3-b488-6ea8b0557edd\"", + "properties": { + "provisioningState": "Succeeded", + "containerNetworkInterfaceConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0" + }, + "container": { + "id": "/subscriptions/subid/resourceGroups/networkProfilesDemo/providers/Microsoft.ContainerInstance/containerGroups/containerGroup2" + }, + "ipConfigurations": [] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaces" + }, + { + "name": "containerGroup2_eth1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaces/containerGroup2_eth1", + "etag": "W/\"de9b89d2-83b0-4da3-b488-6ea8b0557edd\"", + "properties": { + "provisioningState": "Succeeded", + "containerNetworkInterfaceConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1" + }, + "container": { + "id": "/subscriptions/subid/resourceGroups/networkProfilesDemo/providers/Microsoft.ContainerInstance/containerGroups/containerGroup2" + }, + "ipConfigurations": [] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaces" + }, + { + "name": "containerGroup3_eth0", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaces/containerGroup3_eth0", + "etag": "W/\"de9b89d2-83b0-4da3-b488-6ea8b0557edd\"", + "properties": { + "provisioningState": "Succeeded", + "containerNetworkInterfaceConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0" + }, + "container": { + "id": "/subscriptions/subid/resourceGroups/networkProfilesDemo/providers/Microsoft.ContainerInstance/containerGroups/containerGroup3" + }, + "ipConfigurations": [] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaces" + }, + { + "name": "containerGroup3_eth1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaces/containerGroup3_eth1", + "etag": "W/\"de9b89d2-83b0-4da3-b488-6ea8b0557edd\"", + "properties": { + "provisioningState": "Succeeded", + "containerNetworkInterfaceConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1" + }, + "container": { + "id": "/subscriptions/subid/resourceGroups/networkProfilesDemo/providers/Microsoft.ContainerInstance/containerGroups/containerGroup3" + }, + "ipConfigurations": [] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaces" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileList.json new file mode 100644 index 000000000000..8ca0f774bda2 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileList.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1", + "name": "networkProfile1", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "1570d8b6-ab8a-4ad2-81d6-d2799b429cbf", + "containerNetworkInterfaceConfigurations": [ + { + "name": "eth0", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfigprofile1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0/ipConfigurations/ipconfigprofile1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + }, + { + "name": "ipconfigprofile2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0/ipConfigurations/ipconfigprofile2", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + } + ] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" + } + ], + "containerNetworkInterfaces": [] + }, + "type": "Microsoft.Network/networkProfiles", + "location": "centraluseuap" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile2", + "name": "networkProfile2", + "properties": { + "containerNetworkInterfaceConfigurations": [ + { + "name": "eth1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfigprofile3", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1/ipConfigurations/ipconfigprofile3", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + } + ] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" + } + ], + "containerNetworkInterfaces": [] + }, + "type": "Microsoft.Network/networkProfiles", + "location": "centraluseuap" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileListAll.json new file mode 100644 index 000000000000..c12ae0ee648e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileListAll.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1", + "name": "networkProfile1", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "1570d8b6-ab8a-4ad2-81d6-d2799b429cbf", + "containerNetworkInterfaceConfigurations": [ + { + "name": "eth0", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfigprofile1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0/ipConfigurations/ipconfigprofile1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + } + ] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" + } + ], + "containerNetworkInterfaces": [] + }, + "type": "Microsoft.Network/networkProfiles", + "location": "centraluseuap" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkProfiles/networkProfile2", + "name": "networkProfile2", + "properties": { + "containerNetworkInterfaceConfigurations": [ + { + "name": "eth1", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfigprofile3", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1/ipConfigurations/ipconfigprofile3", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + } + ] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" + } + ], + "containerNetworkInterfaces": [] + }, + "type": "Microsoft.Network/networkProfiles", + "location": "centraluseuap" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileUpdateTags.json new file mode 100644 index 000000000000..5f0723c05f54 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkProfileUpdateTags.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkProfileName": "test-np", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-np", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-np", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "1570d8b6-ab8a-4ad2-81d6-d2799b429cbf", + "containerNetworkInterfaceConfigurations": [ + { + "name": "eth0", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ipconfigprofile1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0/ipConfigurations/ipconfigprofile1", + "etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", + "properties": { + "provisioningState": "Succeeded", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" + } + } + } + ] + }, + "type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" + } + ], + "containerNetworkInterfaces": [] + }, + "type": "Microsoft.Network/networkProfiles", + "location": "centraluseuap" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupCreate.json new file mode 100644 index 000000000000..7e646dd0f327 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupCreate.json @@ -0,0 +1,233 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkSecurityGroupName": "testnsg", + "parameters": { + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "name": "testnsg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg", + "type": "Microsoft.Network/networkSecurityGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "securityRules": [], + "defaultSecurityRules": [ + { + "name": "AllowVnetInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowVnetInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound" + } + }, + { + "name": "AllowAzureLoadBalancerInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowAzureLoadBalancerInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from azure load balancer", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "AzureLoadBalancer", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 65001, + "direction": "Inbound" + } + }, + { + "name": "DenyAllInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/DenyAllInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all inbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Inbound" + } + }, + { + "name": "AllowVnetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowVnetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Outbound" + } + }, + { + "name": "AllowInternetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowInternetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to Internet", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "Internet", + "access": "Allow", + "priority": 65001, + "direction": "Outbound" + } + }, + { + "name": "DenyAllOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/DenyAllOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all outbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Outbound" + } + } + ] + } + } + }, + "201": { + "body": { + "name": "testnsg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg", + "type": "Microsoft.Network/networkSecurityGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "securityRules": [], + "defaultSecurityRules": [ + { + "name": "AllowVnetInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowVnetInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound" + } + }, + { + "name": "AllowAzureLoadBalancerInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowAzureLoadBalancerInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from azure load balancer", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "AzureLoadBalancer", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 65001, + "direction": "Inbound" + } + }, + { + "name": "DenyAllInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/DenyAllInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all inbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Inbound" + } + }, + { + "name": "AllowVnetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowVnetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Outbound" + } + }, + { + "name": "AllowInternetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowInternetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to Internet", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "Internet", + "access": "Allow", + "priority": 65001, + "direction": "Outbound" + } + }, + { + "name": "DenyAllOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/DenyAllOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all outbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Outbound" + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupCreateWithRule.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupCreateWithRule.json new file mode 100644 index 000000000000..f25cd684e53f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupCreateWithRule.json @@ -0,0 +1,282 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkSecurityGroupName": "testnsg", + "parameters": { + "properties": { + "securityRules": [ + { + "name": "rule1", + "properties": { + "protocol": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Allow", + "destinationPortRange": "80", + "sourcePortRange": "*", + "priority": 130, + "direction": "Inbound" + } + } + ] + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "name": "testnsg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg", + "type": "Microsoft.Network/networkSecurityGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "securityRules": [ + { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/securityRules/rule1", + "properties": { + "provisioningState": "Succeeded", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "80", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 130, + "direction": "Inbound" + } + } + ], + "defaultSecurityRules": [ + { + "name": "AllowVnetInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowVnetInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound" + } + }, + { + "name": "AllowAzureLoadBalancerInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowAzureLoadBalancerInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from azure load balancer", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "AzureLoadBalancer", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 65001, + "direction": "Inbound" + } + }, + { + "name": "DenyAllInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/DenyAllInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all inbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Inbound" + } + }, + { + "name": "AllowVnetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowVnetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Outbound" + } + }, + { + "name": "AllowInternetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowInternetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to Internet", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "Internet", + "access": "Allow", + "priority": 65001, + "direction": "Outbound" + } + }, + { + "name": "DenyAllOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/DenyAllOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all outbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Outbound" + } + } + ] + } + } + }, + "201": { + "body": { + "name": "testnsg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg", + "type": "Microsoft.Network/networkSecurityGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "securityRules": [ + { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/securityRules/rule1", + "properties": { + "provisioningState": "Succeeded", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "80", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 130, + "direction": "Inbound" + } + } + ], + "defaultSecurityRules": [ + { + "name": "AllowVnetInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowVnetInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound" + } + }, + { + "name": "AllowAzureLoadBalancerInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowAzureLoadBalancerInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from azure load balancer", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "AzureLoadBalancer", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 65001, + "direction": "Inbound" + } + }, + { + "name": "DenyAllInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/DenyAllInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all inbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Inbound" + } + }, + { + "name": "AllowVnetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowVnetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Outbound" + } + }, + { + "name": "AllowInternetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowInternetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to Internet", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "Internet", + "access": "Allow", + "priority": 65001, + "direction": "Outbound" + } + }, + { + "name": "DenyAllOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/DenyAllOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all outbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Outbound" + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupDelete.json new file mode 100644 index 000000000000..a618b7f5de3c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkSecurityGroupName": "testnsg" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupGet.json new file mode 100644 index 000000000000..b1354d59769c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupGet.json @@ -0,0 +1,136 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkSecurityGroupName": "testnsg" + }, + "responses": { + "200": { + "body": { + "name": "testnsg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg", + "type": "Microsoft.Network/networkSecurityGroups", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "securityRules": [ + { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/securityRules/rule1", + "properties": { + "provisioningState": "Succeeded", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "80", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 130, + "direction": "Inbound" + } + } + ], + "defaultSecurityRules": [ + { + "name": "AllowVnetInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowVnetInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound" + } + }, + { + "name": "AllowAzureLoadBalancerInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowAzureLoadBalancerInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from azure load balancer", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "AzureLoadBalancer", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 65001, + "direction": "Inbound" + } + }, + { + "name": "DenyAllInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/DenyAllInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all inbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Inbound" + } + }, + { + "name": "AllowVnetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowVnetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Outbound" + } + }, + { + "name": "AllowInternetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowInternetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to Internet", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "Internet", + "access": "Allow", + "priority": 65001, + "direction": "Outbound" + } + }, + { + "name": "DenyAllOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/DenyAllOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all outbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Outbound" + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupList.json new file mode 100644 index 000000000000..d3fcf3a8dd63 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupList.json @@ -0,0 +1,231 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nsg1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1", + "type": "Microsoft.Network/networkSecurityGroups", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "securityRules": [], + "defaultSecurityRules": [ + { + "name": "AllowVnetInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/AllowVnetInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound" + } + }, + { + "name": "AllowAzureLoadBalancerInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/AllowAzureLoadBalancerInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from azure load balancer", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "AzureLoadBalancer", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 65001, + "direction": "Inbound" + } + }, + { + "name": "DenyAllInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/DenyAllInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all inbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Inbound" + } + }, + { + "name": "AllowVnetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/AllowVnetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Outbound" + } + }, + { + "name": "AllowInternetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/AllowInternetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to Internet", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "Internet", + "access": "Allow", + "priority": 65001, + "direction": "Outbound" + } + }, + { + "name": "DenyAllOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/DenyAllOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all outbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Outbound" + } + } + ] + } + }, + { + "name": "nsg3", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg3", + "type": "Microsoft.Network/networkSecurityGroups", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "securityRules": [], + "defaultSecurityRules": [ + { + "name": "AllowVnetInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg3/defaultSecurityRules/AllowVnetInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound" + } + }, + { + "name": "AllowAzureLoadBalancerInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg3/defaultSecurityRules/AllowAzureLoadBalancerInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from azure load balancer", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "AzureLoadBalancer", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 65001, + "direction": "Inbound" + } + }, + { + "name": "DenyAllInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg3/defaultSecurityRules/DenyAllInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all inbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Inbound" + } + }, + { + "name": "AllowVnetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg3/defaultSecurityRules/AllowVnetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Outbound" + } + }, + { + "name": "AllowInternetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg3/defaultSecurityRules/AllowInternetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to Internet", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "Internet", + "access": "Allow", + "priority": 65001, + "direction": "Outbound" + } + }, + { + "name": "DenyAllOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg3/defaultSecurityRules/DenyAllOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all outbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Outbound" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupListAll.json new file mode 100644 index 000000000000..903b592968d2 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupListAll.json @@ -0,0 +1,230 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nsg1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1", + "type": "Microsoft.Network/networkSecurityGroups", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "securityRules": [], + "defaultSecurityRules": [ + { + "name": "AllowVnetInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/AllowVnetInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound" + } + }, + { + "name": "AllowAzureLoadBalancerInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/AllowAzureLoadBalancerInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from azure load balancer", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "AzureLoadBalancer", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 65001, + "direction": "Inbound" + } + }, + { + "name": "DenyAllInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/DenyAllInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all inbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Inbound" + } + }, + { + "name": "AllowVnetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/AllowVnetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Outbound" + } + }, + { + "name": "AllowInternetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/AllowInternetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to Internet", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "Internet", + "access": "Allow", + "priority": 65001, + "direction": "Outbound" + } + }, + { + "name": "DenyAllOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1/defaultSecurityRules/DenyAllOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all outbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Outbound" + } + } + ] + } + }, + { + "name": "nsg3", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg3", + "type": "Microsoft.Network/networkSecurityGroups", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "securityRules": [], + "defaultSecurityRules": [ + { + "name": "AllowVnetInBound", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg3/defaultSecurityRules/AllowVnetInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound" + } + }, + { + "name": "AllowAzureLoadBalancerInBound", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg3/defaultSecurityRules/AllowAzureLoadBalancerInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from azure load balancer", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "AzureLoadBalancer", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 65001, + "direction": "Inbound" + } + }, + { + "name": "DenyAllInBound", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg3/defaultSecurityRules/DenyAllInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all inbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Inbound" + } + }, + { + "name": "AllowVnetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg3/defaultSecurityRules/AllowVnetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Outbound" + } + }, + { + "name": "AllowInternetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg3/defaultSecurityRules/AllowInternetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to Internet", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "Internet", + "access": "Allow", + "priority": 65001, + "direction": "Outbound" + } + }, + { + "name": "DenyAllOutBound", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg3/defaultSecurityRules/DenyAllOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all outbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Outbound" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupRuleCreate.json new file mode 100644 index 000000000000..59884ad6a46c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupRuleCreate.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkSecurityGroupName": "testnsg", + "securityRuleName": "rule1", + "securityRuleParameters": { + "properties": { + "protocol": "*", + "sourceAddressPrefix": "10.0.0.0/8", + "destinationAddressPrefix": "11.0.0.0/8", + "access": "Deny", + "destinationPortRange": "8080", + "sourcePortRange": "*", + "priority": 100, + "direction": "Outbound" + } + } + }, + "responses": { + "200": { + "body": { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/securityRules/rule1", + "properties": { + "provisioningState": "Succeeded", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "8080", + "sourceAddressPrefix": "10.0.0.0/8", + "destinationAddressPrefix": "11.0.0.0/8", + "access": "Deny", + "priority": 100, + "direction": "Outbound" + } + } + }, + "201": { + "body": { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/securityRules/rule1", + "properties": { + "provisioningState": "Succeeded", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "8080", + "sourceAddressPrefix": "10.0.0.0/8", + "destinationAddressPrefix": "11.0.0.0/8", + "access": "Deny", + "priority": 100, + "direction": "Outbound" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupRuleDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupRuleDelete.json new file mode 100644 index 000000000000..9800d44afc36 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkSecurityGroupName": "testnsg", + "securityRuleName": "rule1" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupRuleGet.json new file mode 100644 index 000000000000..2d84db7b20ae --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupRuleGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkSecurityGroupName": "testnsg", + "securityRuleName": "rule1" + }, + "responses": { + "200": { + "body": { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/securityRules/rule1", + "properties": { + "provisioningState": "Succeeded", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "80", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 130, + "direction": "Inbound" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupRuleList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupRuleList.json new file mode 100644 index 000000000000..c9b34d577865 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupRuleList.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkSecurityGroupName": "testnsg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/securityRules/rule1", + "properties": { + "provisioningState": "Succeeded", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "80", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 130, + "direction": "Inbound" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupUpdateTags.json new file mode 100644 index 000000000000..f4110de31f8e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkSecurityGroupUpdateTags.json @@ -0,0 +1,130 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkSecurityGroupName": "testnsg", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "testnsg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg", + "type": "Microsoft.Network/networkSecurityGroups", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "securityRules": [], + "defaultSecurityRules": [ + { + "name": "AllowVnetInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowVnetInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound" + } + }, + { + "name": "AllowAzureLoadBalancerInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowAzureLoadBalancerInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from azure load balancer", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "AzureLoadBalancer", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 65001, + "direction": "Inbound" + } + }, + { + "name": "DenyAllInBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/DenyAllInBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all inbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Inbound" + } + }, + { + "name": "AllowVnetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowVnetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Outbound" + } + }, + { + "name": "AllowInternetOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/AllowInternetOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow outbound traffic from all VMs to Internet", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "Internet", + "access": "Allow", + "priority": 65001, + "direction": "Outbound" + } + }, + { + "name": "DenyAllOutBound", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/defaultSecurityRules/DenyAllOutBound", + "properties": { + "provisioningState": "Succeeded", + "description": "Deny all outbound traffic", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Outbound" + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherAvailableProvidersListGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherAvailableProvidersListGet.json new file mode 100644 index 000000000000..a0d1c37571b4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherAvailableProvidersListGet.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "azureLocations": [ + "West US" + ], + "country": "United States", + "state": "washington", + "city": "seattle" + } + }, + "responses": { + "200": { + "body": { + "countries": [ + { + "countryName": "United States", + "states": [ + { + "stateName": "washington", + "cities": [ + { + "cityName": "seattle", + "providers": [ + "Comcast Cable Communications, Inc. - ASN 7922", + "Comcast Cable Communications, LLC - ASN 7922", + "Level 3 Communications, Inc. (GBLX) - ASN 3549", + "Qwest Communications Company, LLC - ASN 209" + ] + } + ] + } + ] + } + ] + } + }, + "202": { + "body": { + "countries": [ + { + "countryName": "United States", + "states": [ + { + "stateName": "washington", + "cities": [ + { + "cityName": "seattle", + "providers": [ + "Comcast Cable Communications, Inc. - ASN 7922", + "Comcast Cable Communications, LLC - ASN 7922", + "Level 3 Communications, Inc. (GBLX) - ASN 3549", + "Qwest Communications Company, LLC - ASN 209" + ] + } + ] + } + ] + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherAzureReachabilityReportGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherAzureReachabilityReportGet.json new file mode 100644 index 000000000000..5e502d6d4c12 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherAzureReachabilityReportGet.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "providerLocation": { + "country": "United States", + "state": "washington" + }, + "providers": [ + "Frontier Communications of America, Inc. - ASN 5650" + ], + "azureLocations": [ + "West US" + ], + "startTime": "2017-09-07T00:00:00Z", + "endTime": "2017-09-10T00:00:00Z" + } + }, + "responses": { + "200": { + "body": { + "aggregationLevel": "State", + "providerLocation": { + "country": "United States", + "state": "washington" + }, + "reachabilityReport": [ + { + "provider": "Frontier Communications of America, Inc. - ASN 5650", + "azureLocation": "West US", + "latencies": [ + { + "timeStamp": "2017-09-07T00:00:00Z", + "score": 94 + }, + { + "timeStamp": "2017-09-08T00:00:00Z", + "score": 94 + }, + { + "timeStamp": "2017-09-09T00:00:00Z", + "score": 94 + } + ] + } + ] + } + }, + "202": { + "body": { + "aggregationLevel": "State", + "providerLocation": { + "country": "United States", + "state": "washington" + }, + "reachabilityReport": [ + { + "provider": "Frontier Communications of America, Inc. - ASN 5650", + "azureLocation": "West US", + "latencies": [ + { + "timeStamp": "2017-09-07T00:00:00Z", + "score": 94 + }, + { + "timeStamp": "2017-09-08T00:00:00Z", + "score": 94 + }, + { + "timeStamp": "2017-09-09T00:00:00Z", + "score": 94 + } + ] + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorCreate.json new file mode 100644 index 000000000000..e31b2635799a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorCreate.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2019-06-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-06-01/examples/NetworkWatcherConnectionMonitorDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorDelete.json new file mode 100644 index 000000000000..fc23a165af9d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "connectionMonitorName": "cm1" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorGet.json new file mode 100644 index 000000000000..5be221ce1d16 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorGet.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-06-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-06-01/examples/NetworkWatcherConnectionMonitorList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorList.json new file mode 100644 index 000000000000..7a35958530f1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorList.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2019-06-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-06-01/examples/NetworkWatcherConnectionMonitorQuery.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorQuery.json new file mode 100644 index 000000000000..b7278b5d44ca --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorQuery.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2019-06-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-06-01/examples/NetworkWatcherConnectionMonitorStart.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorStart.json new file mode 100644 index 000000000000..28d3fa396a41 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorStart.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "connectionMonitorName": "cm1" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorStop.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorStop.json new file mode 100644 index 000000000000..28d3fa396a41 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectionMonitorStop.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "connectionMonitorName": "cm1" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectivityCheck.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectivityCheck.json new file mode 100644 index 000000000000..53a0cb55215a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherConnectivityCheck.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "source": { + "resourceId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1" + }, + "destination": { + "address": "192.168.100.4", + "port": 3389 + } + } + }, + "responses": { + "200": { + "body": { + "hops": [ + { + "type": "Source", + "id": "7dbbe7aa-60ba-4650-831e-63d775d38e9e", + "address": "10.1.1.4", + "resourceId": "subscriptions/subid/resourceGroups/rg2/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/rg2/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1", + "nextHopIds": [], + "issues": [] + } + ], + "connectionStatus": "Connected", + "avgLatencyInMs": 1, + "minLatencyInMs": 1, + "maxLatencyInMs": 4, + "probesSent": 100, + "probesFailed": 0 + } + }, + "202": { + "body": { + "hops": [ + { + "type": "Source", + "id": "7dbbe7aa-60ba-4650-831e-63d775d38e9e", + "address": "10.1.1.4", + "resourceId": "subscriptions/subid/resourceGroups/rg2/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/rg2/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1", + "nextHopIds": [], + "issues": [] + } + ], + "connectionStatus": "Connected", + "avgLatencyInMs": 1, + "minLatencyInMs": 1, + "maxLatencyInMs": 4, + "probesSent": 100, + "probesFailed": 0 + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherCreate.json new file mode 100644 index 000000000000..e48a7404a7b0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "location": "eastus", + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "name": "nw1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/networkWatchers", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "nw1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/networkWatchers", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherDelete.json new file mode 100644 index 000000000000..edcdd0324917 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherFlowLogConfigure.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherFlowLogConfigure.json new file mode 100644 index 000000000000..43b5c53ffa6d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherFlowLogConfigure.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "targetResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1", + "properties": { + "storageId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1", + "enabled": true + } + } + }, + "responses": { + "200": { + "body": { + "targetResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1", + "properties": { + "storageId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1", + "enabled": true + } + } + }, + "202": { + "body": { + "targetResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1", + "properties": { + "storageId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1", + "enabled": true + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherFlowLogStatusQuery.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherFlowLogStatusQuery.json new file mode 100644 index 000000000000..522e77e6ff29 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherFlowLogStatusQuery.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "targetResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1" + } + }, + "responses": { + "200": { + "body": { + "targetResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1", + "properties": { + "storageId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1", + "enabled": true + } + } + }, + "202": { + "body": { + "targetResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1", + "properties": { + "storageId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1", + "enabled": true + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherGet.json new file mode 100644 index 000000000000..3a32b617cf1e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1" + }, + "responses": { + "200": { + "body": { + "name": "nw1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/networkWatchers", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherIpFlowVerify.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherIpFlowVerify.json new file mode 100644 index 000000000000..2a7581327c45 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherIpFlowVerify.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "targetResourceId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1", + "direction": "Outbound", + "protocol": "TCP", + "localPort": "80", + "remotePort": "80", + "localIPAddress": "10.2.0.4", + "remoteIPAddress": "121.10.1.1" + } + }, + "responses": { + "200": { + "body": { + "access": "Allow", + "ruleName": "Rule1" + } + }, + "202": { + "body": { + "access": "Allow", + "ruleName": "Rule1" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherList.json new file mode 100644 index 000000000000..a95303d58639 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherList.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nw1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/networkWatchers", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "name": "nw2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw2", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/networkWatchers", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherListAll.json new file mode 100644 index 000000000000..b4eb0169ea36 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherListAll.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nw1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/networkWatchers", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "name": "nw2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw2", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/networkWatchers", + "location": "westus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherNetworkConfigurationDiagnostic.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherNetworkConfigurationDiagnostic.json new file mode 100644 index 000000000000..16bc92475a60 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherNetworkConfigurationDiagnostic.json @@ -0,0 +1,198 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "targetResourceId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1", + "profiles": [ + { + "direction": "Inbound", + "protocol": "TCP", + "source": "10.1.0.4", + "destination": "12.11.12.14", + "destinationPort": "12100" + } + ] + } + }, + "responses": { + "200": { + "body": { + "results": [ + { + "profile": { + "direction": "Inbound", + "protocol": "TCP", + "source": "10.1.0.4", + "destination": "12.11.12.14", + "destinationPort": "12100" + }, + "networkSecurityGroupResult": { + "securityRuleAccessResult": "Allow", + "evaluatedNetworkSecurityGroups": [ + { + "networkSecurityGroupId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg1", + "appliedTo": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet/subnets/AppSubnet", + "matchedRule": { + "ruleName": "UserRule_fe_rule", + "action": "Allow" + }, + "rulesEvaluationResult": [ + { + "name": "UserRule_Cleanuptool-Allow-100", + "protocolMatched": true, + "sourceMatched": false, + "sourcePortMatched": true, + "destinationMatched": true, + "destinationPortMatched": false + }, + { + "name": "UserRule_Cleanuptool-Allow-101", + "protocolMatched": true, + "sourceMatched": true, + "sourcePortMatched": true, + "destinationMatched": true, + "destinationPortMatched": false + }, + { + "name": "UserRule_Cleanuptool-Allow-102", + "protocolMatched": true, + "sourceMatched": false, + "sourcePortMatched": true, + "destinationMatched": true, + "destinationPortMatched": false + }, + { + "name": "UserRule_Cleanuptool-Deny-103", + "protocolMatched": true, + "sourceMatched": true, + "sourcePortMatched": true, + "destinationMatched": true, + "destinationPortMatched": false + }, + { + "name": "UserRule_fe_rule", + "protocolMatched": true, + "sourceMatched": true, + "sourcePortMatched": true, + "destinationMatched": true, + "destinationPortMatched": true + } + ] + }, + { + "networkSecurityGroupId": "/subscriptions/61cc8a98-a8be-4bfe-a04e-0b461f93fe35/resourceGroups/NwRgCentralUSEUAP_copy/providers/Microsoft.Network/networkSecurityGroups/AppNSG", + "appliedTo": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet/networkInterfaces/nic", + "matchedRule": { + "ruleName": "UserRule_fe_rule", + "action": "Allow" + }, + "rulesEvaluationResult": [ + { + "name": "UserRule_fe_rule", + "protocolMatched": true, + "sourceMatched": true, + "sourcePortMatched": true, + "destinationMatched": true, + "destinationPortMatched": true + } + ] + } + ] + } + } + ] + } + }, + "202": { + "body": { + "results": [ + { + "profile": { + "direction": "Inbound", + "protocol": "TCP", + "source": "10.1.0.4", + "destination": "12.11.12.14", + "destinationPort": "12100" + }, + "networkSecurityGroupResult": { + "securityRuleAccessResult": "Allow", + "evaluatedNetworkSecurityGroups": [ + { + "networkSecurityGroupId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg1", + "appliedTo": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet/subnets/AppSubnet", + "matchedRule": { + "ruleName": "UserRule_fe_rule", + "action": "Allow" + }, + "rulesEvaluationResult": [ + { + "name": "UserRule_Cleanuptool-Allow-100", + "protocolMatched": true, + "sourceMatched": false, + "sourcePortMatched": true, + "destinationMatched": true, + "destinationPortMatched": false + }, + { + "name": "UserRule_Cleanuptool-Allow-101", + "protocolMatched": true, + "sourceMatched": true, + "sourcePortMatched": true, + "destinationMatched": true, + "destinationPortMatched": false + }, + { + "name": "UserRule_Cleanuptool-Allow-102", + "protocolMatched": true, + "sourceMatched": false, + "sourcePortMatched": true, + "destinationMatched": true, + "destinationPortMatched": false + }, + { + "name": "UserRule_Cleanuptool-Deny-103", + "protocolMatched": true, + "sourceMatched": true, + "sourcePortMatched": true, + "destinationMatched": true, + "destinationPortMatched": false + }, + { + "name": "UserRule_fe_rule", + "protocolMatched": true, + "sourceMatched": true, + "sourcePortMatched": true, + "destinationMatched": true, + "destinationPortMatched": true + } + ] + }, + { + "networkSecurityGroupId": "/subscriptions/61cc8a98-a8be-4bfe-a04e-0b461f93fe35/resourceGroups/NwRgCentralUSEUAP_copy/providers/Microsoft.Network/networkSecurityGroups/AppNSG", + "appliedTo": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet/networkInterfaces/nic", + "matchedRule": { + "ruleName": "UserRule_fe_rule", + "action": "Allow" + }, + "rulesEvaluationResult": [ + { + "name": "UserRule_fe_rule", + "protocolMatched": true, + "sourceMatched": true, + "sourcePortMatched": true, + "destinationMatched": true, + "destinationPortMatched": true + } + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherNextHopGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherNextHopGet.json new file mode 100644 index 000000000000..e4c12a3bf745 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherNextHopGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "targetResourceId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1", + "sourceIPAddress": "10.0.0.5", + "destinationIPAddress": "10.0.0.10", + "targetNicResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1" + } + }, + "responses": { + "200": { + "body": { + "nextHopType": "VnetLocal", + "nextHopIpAddress": "10.0.0.1", + "routeTableId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/routeTables/rt1" + } + }, + "202": { + "body": { + "nextHopType": "VnetLocal", + "nextHopIpAddress": "10.0.0.1", + "routeTableId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/routeTables/rt1" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureCreate.json new file mode 100644 index 000000000000..3a7610c0c97a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureCreate.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "packetCaptureName": "pc1", + "parameters": { + "properties": { + "target": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1", + "bytesToCapturePerPacket": 10000, + "totalBytesPerSession": 100000, + "timeLimitInSeconds": 100, + "storageLocation": { + "storageId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore", + "storagePath": "https://mytestaccountname.blob.core.windows.net/capture/pc1.cap", + "filePath": "D:\\capture\\pc1.cap" + }, + "filters": [ + { + "protocol": "TCP", + "localIPAddress": "10.0.0.4", + "localPort": "80" + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "name": "pc1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/packetCaptures/pc1", + "properties": { + "provisioningState": "Updating", + "target": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1", + "bytesToCapturePerPacket": 10000, + "totalBytesPerSession": 100000, + "timeLimitInSeconds": 100, + "storageLocation": { + "storageId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore", + "storagePath": "https://mytestaccountname.blob.core.windows.net/capture/pc1.cap", + "filePath": "D:\\capture\\pc1.cap" + }, + "filters": [ + { + "protocol": "TCP", + "localIPAddress": "10.0.0.4", + "localPort": "80" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureDelete.json new file mode 100644 index 000000000000..9db919796e53 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "packetCaptureName": "pc1" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureGet.json new file mode 100644 index 000000000000..087574ed359d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureGet.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "packetCaptureName": "pc1" + }, + "responses": { + "200": { + "body": { + "name": "pc1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/packetCaptures/pc1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Updating", + "target": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1", + "bytesToCapturePerPacket": 10000, + "totalBytesPerSession": 100000, + "timeLimitInSeconds": 100, + "storageLocation": { + "storageId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore", + "storagePath": "https://mytestaccountname.blob.core.windows.net/capture/pc1.cap", + "filePath": "D:\\capture\\pc1.cap" + }, + "filters": [ + { + "protocol": "TCP", + "localIPAddress": "10.0.0.4", + "localPort": "80" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureQueryStatus.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureQueryStatus.json new file mode 100644 index 000000000000..ba9fe38de6e5 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureQueryStatus.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "packetCaptureName": "pc1" + }, + "responses": { + "200": { + "body": { + "name": "pc1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/packetCaptures/pc1", + "captureStartTime": "2016-09-07T12:35:24Z", + "packetCaptureStatus": "Stopped", + "stopReason": "TimeExceeded", + "packetCaptureError": [] + } + }, + "202": { + "body": { + "name": "pc1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/packetCaptures/pc1", + "captureStartTime": "2016-09-07T12:35:24Z", + "packetCaptureStatus": "Stopped", + "stopReason": "TimeExceeded", + "packetCaptureError": [] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureStop.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureStop.json new file mode 100644 index 000000000000..076099f969fe --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCaptureStop.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "packetCaptureName": "pc1" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCapturesList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCapturesList.json new file mode 100644 index 000000000000..70b00c3a107b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherPacketCapturesList.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "pc1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/packetCaptures/pc1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Updating", + "target": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1", + "bytesToCapturePerPacket": 10000, + "totalBytesPerSession": 100000, + "timeLimitInSeconds": 100, + "storageLocation": { + "storageId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore", + "storagePath": "https://mytestaccountname.blob.core.windows.net/capture/pc1.cap", + "filePath": "D:\\capture\\pc1.cap" + }, + "filters": [ + { + "protocol": "TCP", + "localIPAddress": "10.0.0.4", + "localPort": "80" + } + ] + } + }, + { + "name": "pc2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/packetCaptures/pc2", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "target": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1", + "bytesToCapturePerPacket": 10000, + "totalBytesPerSession": 100000, + "timeLimitInSeconds": 100, + "storageLocation": { + "storageId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore", + "storagePath": "https://mytestaccountname.blob.core.windows.net/capture/pc2.cap", + "filePath": "D:\\capture\\pc2.cap" + }, + "filters": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherSecurityGroupViewGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherSecurityGroupViewGet.json new file mode 100644 index 000000000000..f104ba60baaf --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherSecurityGroupViewGet.json @@ -0,0 +1,141 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "targetResourceId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1" + } + }, + "responses": { + "200": { + "body": { + "networkInterfaces": [ + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkInterfaces/nic1", + "securityRuleAssociations": { + "subnetAssociation": { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "securityRules": [ + { + "name": "fe_rule", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/AppNSG/securityRules/fe_rule", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow Frontend", + "protocol": "Tcp", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "10.1.0.0/24", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 100, + "direction": "Inbound" + } + } + ] + }, + "defaultSecurityRules": [ + { + "name": "AllowVnetInBound", + "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/networkSecurityGroups//defaultSecurityRules/", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound" + } + } + ], + "effectiveSecurityRules": [ + { + "name": "DefaultOutboundDenyAll", + "protocol": "All", + "sourcePortRange": "0-65535", + "destinationPortRange": "0-65535", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Outbound" + } + ] + } + } + ] + } + }, + "202": { + "body": { + "networkInterfaces": [ + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkInterfaces/nic1", + "securityRuleAssociations": { + "subnetAssociation": { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "securityRules": [ + { + "name": "fe_rule", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/AppNSG/securityRules/fe_rule", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow Frontend", + "protocol": "Tcp", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "10.1.0.0/24", + "destinationAddressPrefix": "*", + "access": "Allow", + "priority": 100, + "direction": "Inbound" + } + } + ] + }, + "defaultSecurityRules": [ + { + "name": "AllowVnetInBound", + "id": "/subscriptions//resourceGroups//providers/Microsoft.Network/networkSecurityGroups//defaultSecurityRules/", + "properties": { + "provisioningState": "Succeeded", + "description": "Allow inbound traffic from all VMs in VNET", + "protocol": "*", + "sourcePortRange": "*", + "destinationPortRange": "*", + "sourceAddressPrefix": "VirtualNetwork", + "destinationAddressPrefix": "VirtualNetwork", + "access": "Allow", + "priority": 65000, + "direction": "Inbound" + } + } + ], + "effectiveSecurityRules": [ + { + "name": "DefaultOutboundDenyAll", + "protocol": "All", + "sourcePortRange": "0-65535", + "destinationPortRange": "0-65535", + "sourceAddressPrefix": "*", + "destinationAddressPrefix": "*", + "access": "Deny", + "priority": 65500, + "direction": "Outbound" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherTopologyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherTopologyGet.json new file mode 100644 index 000000000000..be46cc5a50a6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherTopologyGet.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "targetResourceGroupName": "rg2" + } + }, + "responses": { + "200": { + "body": { + "id": "ce592f46-8164-4bf2-ad36-b8e4acf6fb68", + "createdDateTime": "2017-08-02T19:31:55.9461781Z", + "lastModified": "2017-05-27T00:00:13.2005337Z", + "resources": [ + { + "name": "MultiTierApp0", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/MultiTierApp0", + "location": "westus", + "associations": [ + { + "name": "appNic0", + "resourceId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkInterfaces/appNic0", + "associationType": "Contains" + }, + { + "name": "appNic10", + "resourceId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/networkInterfaces/appNic10", + "associationType": "Contains" + } + ] + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherTroubleshootGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherTroubleshootGet.json new file mode 100644 index 000000000000..01ae4a582103 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherTroubleshootGet.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "targetResourceId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1", + "properties": { + "storageId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1", + "storagePath": "https://st1.blob.core.windows.net/cn1" + } + } + }, + "responses": { + "200": { + "body": { + "startTime": "2017-01-12T00:19:47.0442834Z", + "endTime": "2017-01-12T00:20:09.914Z", + "code": "UnHealthy", + "results": [ + { + "id": "000000", + "reasonType": "VipUnResponsive", + "summary": "We are sorry, your VPN gateway is unreachable from the Internet", + "detail": "During this time S2S VPN tunnels to on premises sites or other Azure virtual networks will be disconnected", + "recommendedActions": [ + { + "actionText": "Verify if there is a network security group (NSG) applied to the GatewaySubnet", + "actionUri": "https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-create-nsg-arm-pportal", + "actionUriText": "Verify" + }, + { + "actionText": "If your VPN gateway isn't up and running by the expected resolution time, contact support", + "actionUri": "http://azure.microsoft.com/support", + "actionUriText": "contact support" + } + ] + } + ] + } + }, + "202": { + "body": { + "startTime": "2017-01-12T00:19:47.0442834Z", + "endTime": "2017-01-12T00:20:09.914Z", + "code": "UnHealthy", + "results": [ + { + "id": "000000", + "reasonType": "VipUnResponsive", + "summary": "We are sorry, your VPN gateway is unreachable from the Internet", + "detail": "During this time S2S VPN tunnels to on premises sites or other Azure virtual networks will be disconnected", + "recommendedActions": [ + { + "actionText": "Verify if there is a network security group (NSG) applied to the GatewaySubnet", + "actionUri": "https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-create-nsg-arm-pportal", + "actionUriText": "Verify" + }, + { + "actionText": "If your VPN gateway isn't up and running by the expected resolution time, contact support", + "actionUri": "http://azure.microsoft.com/support", + "actionUriText": "contact support" + } + ] + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherTroubleshootResultQuery.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherTroubleshootResultQuery.json new file mode 100644 index 000000000000..3957ec7c20f4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherTroubleshootResultQuery.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "targetResourceId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1" + } + }, + "responses": { + "200": { + "body": { + "startTime": "2017-01-12T00:19:47.0442834Z", + "endTime": "2017-01-12T00:20:09.914Z", + "code": "UnHealthy", + "results": [ + { + "id": "000000", + "reasonType": "VipUnResponsive", + "summary": "We are sorry, your VPN gateway is unreachable from the Internet", + "detail": "During this time S2S VPN tunnels to on premises sites or other Azure virtual networks will be disconnected", + "recommendedActions": [ + { + "actionText": "Verify if there is a network security group (NSG) applied to the GatewaySubnet", + "actionUri": "https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-create-nsg-arm-pportal", + "actionUriText": "Verify" + }, + { + "actionText": "If your VPN gateway isn't up and running by the expected resolution time, contact support", + "actionUri": "http://azure.microsoft.com/support", + "actionUriText": "contact support" + } + ] + } + ] + } + }, + "202": { + "body": { + "startTime": "2017-01-12T00:19:47.0442834Z", + "endTime": "2017-01-12T00:20:09.914Z", + "code": "UnHealthy", + "results": [ + { + "id": "000000", + "reasonType": "VipUnResponsive", + "summary": "We are sorry, your VPN gateway is unreachable from the Internet", + "detail": "During this time S2S VPN tunnels to on premises sites or other Azure virtual networks will be disconnected", + "recommendedActions": [ + { + "actionText": "Verify if there is a network security group (NSG) applied to the GatewaySubnet", + "actionUri": "https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-create-nsg-arm-pportal", + "actionUriText": "Verify" + }, + { + "actionText": "If your VPN gateway isn't up and running by the expected resolution time, contact support", + "actionUri": "http://azure.microsoft.com/support", + "actionUriText": "contact support" + } + ] + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherUpdateTags.json new file mode 100644 index 000000000000..45ec9e297a5b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/NetworkWatcherUpdateTags.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkWatcherName": "nw1", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "nw1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/networkWatchers", + "location": "eastus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/OperationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/OperationList.json new file mode 100644 index 000000000000..51f6b7574a50 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/OperationList.json @@ -0,0 +1,137 @@ +{ + "parameters": { + "location": "westus", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Network/localnetworkgateways/read", + "display": { + "provider": "Microsoft Network", + "resource": "LocalNetworkGateway", + "operation": "Get LocalNetworkGateway", + "description": "Gets LocalNetworkGateway" + } + }, + { + "name": "Microsoft.Network/localnetworkgateways/write", + "display": { + "provider": "Microsoft Network", + "resource": "LocalNetworkGateway", + "operation": "Create or update LocalNetworkGateway", + "description": "Creates or updates an existing LocalNetworkGateway" + } + }, + { + "name": "Microsoft.Network/localnetworkgateways/delete", + "display": { + "provider": "Microsoft Network", + "resource": "LocalNetworkGateway", + "operation": "Delete LocalNetworkGateway", + "description": "Deletes LocalNetworkGateway" + } + }, + { + "name": "Microsoft.Network/networkInterfaces/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft Network", + "resource": "Network Interface metric definition", + "operation": "Read Network Interface metric definitions", + "description": "Gets available metrics for the Network Interface" + }, + "origin": "system", + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "BytesSentRate", + "displayName": "Bytes Sent", + "displayDescription": "Number of bytes the Network Interface sent", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "00:01:00", + "retention": "00:00:00", + "blobDuration": "01:00:00" + }, + { + "timeGrain": "01:00:00", + "retention": "00:00:00", + "blobDuration": "1.00:00:00" + } + ], + "enableRegionalMdmAccount": false, + "metricFilterPattern": "^__Ready__$", + "fillGapWithZero": false, + "dimensions": [], + "isInternal": false + }, + { + "name": "BytesReceivedRate", + "displayName": "Bytes Received", + "displayDescription": "Number of bytes the Network Interface received", + "unit": "Count", + "aggregationType": "Total", + "availabilities": [ + { + "timeGrain": "00:01:00", + "retention": "00:00:00", + "blobDuration": "01:00:00" + }, + { + "timeGrain": "01:00:00", + "retention": "00:00:00", + "blobDuration": "1.00:00:00" + } + ], + "enableRegionalMdmAccount": false, + "metricFilterPattern": "^__Ready__$", + "fillGapWithZero": false, + "dimensions": [], + "isInternal": false + } + ] + } + } + }, + { + "name": "Microsoft.Network/networksecuritygroups/providers/Microsoft.Insights/logDefinitions/read", + "display": { + "provider": "Microsoft Network", + "resource": "Network Security Groups Log Definitions", + "operation": "Get Network Security Group Event Log Definitions", + "description": "Gets the events for network security group" + }, + "origin": "system", + "properties": { + "serviceSpecification": { + "logSpecifications": [ + { + "name": "NetworkSecurityGroupEvent", + "displayName": "Network Security Group Event", + "blobDuration": "PT1H" + }, + { + "name": "NetworkSecurityGroupRuleCounter", + "displayName": "Network Security Group Rule Counter", + "blobDuration": "PT1H" + }, + { + "name": "NetworkSecurityGroupFlowEvent", + "displayName": "Network Security Group Rule Flow Event", + "blobDuration": "PT1H" + } + ] + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayDelete.json new file mode 100644 index 000000000000..a3e24088f6e1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "gatewayName": "p2sVpnGateway1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayGenerateVpnProfile.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayGenerateVpnProfile.json new file mode 100644 index 000000000000..019ee1ed06ab --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayGenerateVpnProfile.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "gatewayName": "p2sVpnGateway1", + "parameters": { + "authenticationMethod": "EAPTLS" + } + }, + "responses": { + "202": {}, + "200": { + "body": "" + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayGet.json new file mode 100644 index 000000000000..f5f5b417f88c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayGet.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "gatewayName": "p2sVpnGateway1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayGetConnectionHealth.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayGetConnectionHealth.json new file mode 100644 index 000000000000..5032cf76a204 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayGetConnectionHealth.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "gatewayName": "p2sVpnGateway1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } + } + } + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayList.json new file mode 100644 index 000000000000..cdaf98dd73df --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayList.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } + } + }, + { + "name": "p2sVpnGateway2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.4.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayListByResourceGroup.json new file mode 100644 index 000000000000..cdaf98dd73df --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayListByResourceGroup.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } + } + }, + { + "name": "p2sVpnGateway2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.4.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayPut.json new file mode 100644 index 000000000000..8090518ab6c6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayPut.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "gatewayName": "p2sVpnGateway1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "p2SVpnGatewayParameters": { + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1 + } + } + }, + "responses": { + "200": { + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } + } + } + }, + "201": { + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 0, + "allocatedIpAddresses": [], + "totalIngressBytesTransferred": 0, + "totalEgressBytesTransferred": 0 + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayUpdateTags.json new file mode 100644 index 000000000000..30162c973ea6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnGatewayUpdateTags.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "gatewayName": "p2sVpnGateway1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "p2SVpnGatewayParameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } + } + } + }, + "201": { + "body": { + "name": "p2sVpnGateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/p2sVpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "p2SVpnServerConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1" + }, + "vpnClientAddressPool": { + "addressPrefixes": [ + "101.3.0.0/16" + ] + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + }, + "vpnGatewayScaleUnit": 1, + "vpnClientConnectionHealth": { + "vpnClientConnectionsCount": 2, + "allocatedIpAddresses": [ + "1.1.1.1", + "2.2.2.2" + ], + "totalIngressBytesTransferred": 2000, + "totalEgressBytesTransferred": 3000 + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnServerConfigurationDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnServerConfigurationDelete.json new file mode 100644 index 000000000000..120346be9ea4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnServerConfigurationDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "p2SVpnServerConfigurationName": "p2sVpnServerConfiguration1", + "virtualWanName": "virtualWan1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnServerConfigurationGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnServerConfigurationGet.json new file mode 100644 index 000000000000..284e35795313 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnServerConfigurationGet.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "virtualWanName": "virtualWan1", + "p2SVpnServerConfigurationName": "p2sVpnServerConfiguration1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + } + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + } + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCer1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCer1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + } + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnServerConfigurationList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnServerConfigurationList.json new file mode 100644 index 000000000000..13a605108ba6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnServerConfigurationList.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "virtualWanName": "virtualWan1", + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": [ + { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRootCertificates" + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/VpnClientRevokedCert2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigVpnClientRevokedCertificates" + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusServerRootCertificates" + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + }, + "type": "Microsoft.Network/virtualWans/p2sVpnServerConfigurations/p2sVpnServerConfigRadiusClientRootCertificates" + } + ] + } + } + ] + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnServerConfigurationPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnServerConfigurationPut.json new file mode 100644 index 000000000000..eb5b0e27eec4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/P2SVpnServerConfigurationPut.json @@ -0,0 +1,206 @@ +{ + "parameters": { + "virtualWanName": "virtualWan1", + "p2SVpnServerConfigurationName": "p2sVpnServerConfiguration1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "p2SVpnServerConfigurationParameters": { + "properties": { + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "properties": { + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + } + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "properties": { + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + } + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "properties": { + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + } + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "properties": { + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + } + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + } + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + } + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + } + } + ] + } + } + }, + "201": { + "body": { + "name": "p2sVpnServerConfiguration1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations//p2sVpnServerConfiguration1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnProtocols": [ + "IkeV2" + ], + "vpnClientIpsecPolicies": [ + { + "saLifeTimeSeconds": 86472, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup14", + "pfsGroup": "PFS14" + } + ], + "p2SVpnServerConfigVpnClientRootCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRootCertificates/p2sVpnServerConfigVpnClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN" + } + } + ], + "p2SVpnServerConfigVpnClientRevokedCertificates": [ + { + "name": "p2sVpnServerConfigVpnClientRevokedCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigVpnClientRevokedCertificates/p2sVpnServerConfigVpnClientRevokedCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + } + } + ], + "radiusServerAddress": "8.9.9.9", + "radiusServerSecret": "123_abc", + "p2SVpnServerConfigRadiusServerRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusServerRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusServerRootCertificates/p2sVpnServerConfigRadiusServerRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "publicCertData": "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM" + } + } + ], + "p2SVpnServerConfigRadiusClientRootCertificates": [ + { + "name": "p2sVpnServerConfigRadiusClientRootCert1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1/p2sVpnServerConfigurations/p2sVpnServerConfiguration1/p2sVpnServerConfigRadiusClientRootCertificates/p2sVpnServerConfigRadiusClientRootCert1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "thumbprint": "83FFBFC8848B5A5836C94D0112367E16148A286F" + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PeerExpressRouteCircuitConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PeerExpressRouteCircuitConnectionGet.json new file mode 100644 index 000000000000..2afc1329c1bb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PeerExpressRouteCircuitConnectionGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "connectionName": "60aee347-e889-4a42-8c1b-0aae8b1e4013", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid1", + "circuitName": "ExpressRouteARMCircuitA", + "peeringName": "AzurePrivatePeering" + }, + "responses": { + "200": { + "body": { + "name": "60aee347-e889-4a42-8c1b-0aae8b1e4013", + "id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering/peerConnections/60aee347-e889-4a42-8c1b-0aae8b1e4013", + "etag": "W/\"6ffbbb06-da20-44ca-a34f-280c4653b1e9\"", + "properties": { + "provisioningState": "Succeeded", + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering" + }, + "peerExpressRouteCircuitPeering": { + "id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitB/peerings/AzurePrivatePeering" + }, + "addressPrefix": "20.0.0.0/29", + "circuitConnectionStatus": "Connected", + "connectionName": "circuitConnectionWestusEastus", + "authResourceGuid": "" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PeerExpressRouteCircuitConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PeerExpressRouteCircuitConnectionList.json new file mode 100644 index 000000000000..0e12baeaa432 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PeerExpressRouteCircuitConnectionList.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid1", + "circuitName": "ExpressRouteARMCircuitA", + "peeringName": "AzurePrivatePeering" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "60aee347-e889-4a42-8c1b-0aae8b1e4013", + "id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering/peerConnections/60aee347-e889-4a42-8c1b-0aae8b1e4013", + "etag": "W/\"6ffbbb06-da20-44ca-a34f-280c4653b1e9\"", + "properties": { + "provisioningState": "Succeeded", + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering" + }, + "peerExpressRouteCircuitPeering": { + "id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitB/peerings/AzurePrivatePeering" + }, + "addressPrefix": "20.0.0.0/29", + "circuitConnectionStatus": "Connected", + "connectionName": "circuitConnectionWestusEastus", + "authResourceGuid": "" + } + }, + { + "name": "c8b17193-8dd3-4f61-866d-8cdd2e2e268e", + "id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering/peerConnections/c8b17193-8dd3-4f61-866d-8cdd2e2e268e", + "etag": "W/\"6ffbbb06-da20-44ca-a34f-280c4653b1e9\"", + "properties": { + "provisioningState": "Succeeded", + "expressRouteCircuitPeering": { + "id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitA/peerings/AzurePrivatePeering" + }, + "peerExpressRouteCircuitPeering": { + "id": "/subscriptions/subid2/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/ExpressRouteARMCircuitC/peerings/AzurePrivatePeering" + }, + "addressPrefix": "30.0.0.0/29", + "circuitConnectionStatus": "Connected", + "connectionName": "circuitConnectionCentralusEastus", + "authResourceGuid": "64283012-d377-421d-8398-f6aeb2ac7ea0" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointCreate.json new file mode 100644 index 000000000000..ecb7044a44a3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointCreate.json @@ -0,0 +1,98 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "privateEndpointName": "testPe", + "parameters": { + "location": "eastus2euap", + "properties": { + "privateLinkServiceConnections": [ + { + "properties": { + "privateLinkServiceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls", + "groupIds": [ + "groupIdFromResource" + ], + "requestMessage": "Please approve my connection." + } + } + ], + "subnet": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "testPe", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe", + "location": "eastus2euap", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnections": [ + { + "properties": { + "privateLinkServiceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls", + "groupIds": [ + "groupIdFromResource" + ], + "requestMessage": "Please approve my connection.", + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionRequired": "None" + } + } + } + ], + "manualPrivateLinkServiceConnections": [], + "subnet": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + }, + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testPe.nic.abcd1234" + } + ] + } + } + }, + "201": { + "body": { + "name": "testPe", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe", + "location": "eastus2euap", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnections": [ + { + "properties": { + "privateLinkServiceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls", + "groupIds": [ + "groupIdFromResource" + ], + "requestMessage": "Please approve my connection.", + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionRequired": "None" + } + } + } + ], + "subnet": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + }, + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testPe.nic.abcd1234" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointCreateForManualApproval.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointCreateForManualApproval.json new file mode 100644 index 000000000000..d82668b67042 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointCreateForManualApproval.json @@ -0,0 +1,98 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "privateEndpointName": "testPe", + "parameters": { + "location": "eastus", + "properties": { + "manualPrivateLinkServiceConnections": [ + { + "properties": { + "privateLinkServiceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls", + "groupIds": [ + "groupIdFromResource" + ], + "requestMessage": "Please manually approve my connection." + } + } + ], + "subnet": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "testPe", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnections": [], + "manualPrivateLinkServiceConnections": [ + { + "properties": { + "privateLinkServiceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls", + "groupIds": [ + "groupIdFromResource" + ], + "requestMessage": "Please manually approve my connection.", + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "Awaiting approval", + "actionRequired": "None" + } + } + } + ], + "subnet": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + }, + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testPe.nic.abcd1234" + } + ] + } + } + }, + "201": { + "body": { + "name": "testPe", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnections": [ + { + "properties": { + "privateLinkServiceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls", + "groupIds": [ + "groupIdFromResource" + ], + "requestMessage": "Please approve my connection.", + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionRequired": "None" + } + } + } + ], + "subnet": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + }, + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testPe.nic.abcd1234" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointDelete.json new file mode 100644 index 000000000000..ba7e531c8758 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "privateEndpointName": "testPe" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointGet.json new file mode 100644 index 000000000000..425fddb7053d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointGet.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "privateEndpointName": "testPe" + }, + "responses": { + "200": { + "body": { + "name": "testPe", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe", + "type": "Microsoft.Network/privateEndpoints", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnections": [ + { + "properties": { + "privateLinkServiceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls", + "groupIds": [ + "groupIdFromResource" + ], + "requestMessage": "Please approve my connection.", + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionRequired": "None" + } + } + } + ], + "manualPrivateLinkServiceConnections": [], + "subnet": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + }, + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testPe.nic.abcd1234" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointGetForManualApproval.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointGetForManualApproval.json new file mode 100644 index 000000000000..09540ed0e65f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointGetForManualApproval.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "privateEndpointName": "testPe" + }, + "responses": { + "200": { + "body": { + "name": "testPe", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe", + "type": "Microsoft.Network/privateEndpoints", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnections": [], + "manualPrivateLinkServiceConnections": [ + { + "properties": { + "privateLinkServiceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls", + "groupIds": [ + "groupIdFromResource" + ], + "requestMessage": "Please manually approve my connection.", + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "Awaiting approval", + "actionRequired": "None" + } + } + } + ], + "subnet": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + }, + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testPe.nic.abcd1234" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointList.json new file mode 100644 index 000000000000..f837a0575124 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointList.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/pe1", + "name": "pe1", + "type": "Microsoft.Network/privateEndpoints", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnections": [ + { + "properties": { + "privateLinkServiceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls1", + "groupIds": [ + "groupIdFromResource" + ], + "requestMessage": "Please approve my connection for pe1.", + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionRequired": "None" + } + } + } + ], + "manualPrivateLinkServiceConnections": [], + "subnet": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + }, + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/pe1.nic.abcd1234" + } + ] + } + }, + { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/pe2", + "name": "pe2", + "type": "Microsoft.Network/privateEndpoints", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnections": [], + "manualPrivateLinkServiceConnections": [ + { + "properties": { + "privateLinkServiceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls2", + "groupIds": [ + "groupIdFromResource" + ], + "requestMessage": "Please manually approve my connection for pe2.", + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "Awaiting approval", + "actionRequired": "None" + } + } + } + ], + "subnet": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet2" + }, + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/pe2.nic.zyxw9876" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointListAll.json new file mode 100644 index 000000000000..6f4ee037b66d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateEndpointListAll.json @@ -0,0 +1,114 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/pe1", + "name": "pe1", + "type": "Microsoft.Network/privateEndpoints", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnections": [ + { + "properties": { + "privateLinkServiceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls1", + "groupIds": [ + "groupIdFromResource" + ], + "requestMessage": "Please approve my connection for pe1.", + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionRequired": "None" + } + } + } + ], + "subnet": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + }, + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/pe1.nic.abcd1234" + } + ] + } + }, + { + "id": "/subscriptions/subId/resourceGroups/rg2/providers/Microsoft.Network/privateEndpoints/pe2", + "name": "pe2", + "type": "Microsoft.Network/privateEndpoints", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnections": [], + "manualPrivateLinkServiceConnections": [ + { + "properties": { + "privateLinkServiceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls2", + "groupIds": [ + "groupIdFromResource" + ], + "requestMessage": "Please manually approve my connection for pe2.", + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "Awaiting approval", + "actionRequired": "None" + } + } + } + ], + "subnet": { + "id": "/subscriptions/subId/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet2" + }, + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg2/provders/Microsoft.Network/networkInterfaces/pe2.nic.zyxw9876" + } + ] + } + }, + { + "id": "/subscriptions/subId/resourceGroups/rg3/providers/Microsoft.Network/privateEndpoints/pe3", + "name": "pe3", + "type": "Microsoft.Network/privateEndpoints", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnections": [ + { + "properties": { + "privateLinkServiceId": "/subscriptions/subId/resourceGroups/rg3/providers/Microsoft.Network/privateLinkServices/testPls3", + "groupIds": [ + "groupIdFromResource" + ], + "requestMessage": "Please approve my connection for pe3.", + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionRequired": "None" + } + } + } + ], + "subnet": { + "id": "/subscriptions/subId/resourceGroups/rg3/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet3" + }, + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg3/provders/Microsoft.Network/networkInterfaces/pe3.nic.efgh5463" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceCreate.json new file mode 100644 index 000000000000..652b11fa202b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceCreate.json @@ -0,0 +1,155 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "serviceName": "testPls", + "parameters": { + "location": "eastus", + "properties": { + "visibility": { + "subscriptions": [ + "subscription1", + "subscription2", + "subscription3" + ] + }, + "autoApproval": { + "subscriptions": [ + "subscription1", + "subscription2" + ] + }, + "fqdns": [ + "fqdn1", + "fqdn2", + "fqdn3" + ], + "loadBalancerFrontendIpConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + } + ], + "ipConfigurations": [ + { + "name": "fe-lb", + "properties": { + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Static", + "privateIPAddressVersion": "IPv4", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + } + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "testPls", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "visibility": { + "subscriptions": [ + "subscription1", + "subscription2", + "subscription3" + ] + }, + "autoApproval": { + "subscriptions": [ + "subscription1", + "subscription2" + ] + }, + "fqdns": [ + "fqdn1", + "fqdn2", + "fqdn3" + ], + "alias": "ContosoService.{guid}.azure.privatelinkservice", + "loadBalancerFrontendIpConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + } + ], + "ipConfigurations": [ + { + "name": "fe-lb", + "properties": { + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Static", + "privateIPAddressVersion": "IPv4", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + } + } + } + ], + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testPls.nic.abcd1234" + } + ] + } + } + }, + "201": { + "body": { + "name": "testPls", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "visibility": { + "subscriptions": [ + "subscription1", + "subscription2", + "subscription3" + ] + }, + "autoApproval": { + "subscriptions": [ + "subscription1", + "subscription2" + ] + }, + "fqdns": [ + "fqdn1", + "fqdn2", + "fqdn3" + ], + "alias": "ContosoService.{guid}.azure.privatelinkservice", + "loadBalancerFrontendIpConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + } + ], + "ipConfigurations": [ + { + "name": "fe-lb", + "properties": { + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Static", + "privateIPAddressVersion": "IPv4", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + } + } + } + ], + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testPls.nic.abcd1234" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceDelete.json new file mode 100644 index 000000000000..2418be97cae1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "serviceName": "testPls" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceDeletePrivateEndpointConnection.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceDeletePrivateEndpointConnection.json new file mode 100644 index 000000000000..b26fceb67cf1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceDeletePrivateEndpointConnection.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "serviceName": "testPls", + "peConnectionName": "testPlePeConnection" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceGet.json new file mode 100644 index 000000000000..2f5da8fd8e14 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceGet.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "serviceName": "testPls" + }, + "responses": { + "200": { + "body": { + "name": "testPls", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls", + "type": "Microsoft.Network/privateLinkServices", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "visibility": { + "subscriptions": [ + "subscription1", + "subscription2", + "subscription3" + ] + }, + "autoApproval": { + "subscriptions": [ + "subscription1", + "subscription2" + ] + }, + "fqdns": [ + "fqdn1", + "fqdn2", + "fqdn3" + ], + "alias": "ContosoService.{guid}.azure.privatelinkservice", + "loadBalancerFrontendIpConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + } + ], + "ipConfigurations": [ + { + "name": "fe-lb", + "properties": { + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Static", + "privateIPAddressVersion": "IPv4", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + } + } + } + ], + "privateEndpointConnections": [ + { + "name": "privateEndpointConnection", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "approved it for some reason." + } + } + } + ], + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testPls.nic.abcd1234" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceList.json new file mode 100644 index 000000000000..92b1af7eb93d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceList.json @@ -0,0 +1,141 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testPls1", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls1", + "type": "Microsoft.Network/privateLinkServices", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "visibility": { + "subscriptions": [ + "subscription1" + ] + }, + "autoApproval": { + "subscriptions": [ + "subscription1" + ] + }, + "fqdns": [ + "fqdn1", + "fqdn2" + ], + "alias": "ContosoService.{guid}.azure.privatelinkservice", + "loadBalancerFrontendIpConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb1" + } + ], + "ipConfigurations": [ + { + "name": "fe-lb1", + "properties": { + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Static", + "privateIPAddressVersion": "IPv4", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb1" + } + } + } + ], + "privateEndpointConnections": [ + { + "name": "pec1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe1" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "approved it for some reason." + } + } + } + ], + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testPls1.nic.abcd1234" + } + ] + } + }, + { + "name": "testPls2", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls2", + "type": "Microsoft.Network/privateLinkServices", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "visibility": { + "subscriptions": [ + "subscription1", + "subscription2", + "subscription3" + ] + }, + "autoApproval": { + "subscriptions": [ + "subscription1", + "subscription2" + ] + }, + "fqdns": [ + "fqdn1", + "fqdn2", + "fqdn3" + ], + "alias": "ContosoService.{guid}.azure.privatelinkservice", + "loadBalancerFrontendIpConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb2" + } + ], + "ipConfigurations": [ + { + "name": "fe-lb2", + "properties": { + "privateIPAddress": "10.0.1.5", + "privateIPAllocationMethod": "Static", + "privateIPAddressVersion": "IPv4", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb2" + } + } + } + ], + "privateEndpointConnections": [ + { + "name": "pec2", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe2" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "approved it for some reason." + } + } + } + ], + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testPls2.nic.efgh5678" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceListAll.json new file mode 100644 index 000000000000..7e48a7b57406 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceListAll.json @@ -0,0 +1,142 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testPls1", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls1", + "type": "Microsoft.Network/privateLinkServices", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "visibility": { + "subscriptions": [ + "subscription1", + "subscription2", + "subscription3" + ] + }, + "autoApproval": { + "subscriptions": [ + "subscription1", + "subscription2" + ] + }, + "fqdns": [ + "fqdn1", + "fqdn2", + "fqdn3" + ], + "alias": "ContosoService.{guid}.azure.privatelinkservice", + "loadBalancerFrontendIpConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb1" + } + ], + "ipConfigurations": [ + { + "name": "fe-lb1", + "properties": { + "privateIPAddress": "10.0.1.4", + "privateIPAllocationMethod": "Static", + "privateIPAddressVersion": "IPv4", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb1" + } + } + } + ], + "privateEndpointConnections": [ + { + "name": "pec1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe1" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "approved it for some reason." + } + } + } + ], + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testPls1.nic.abcd1234" + } + ] + } + }, + { + "name": "testPls2", + "id": "/subscriptions/subId/resourceGroups/rg2/providers/Microsoft.Network/privateLinkServices/testPls2", + "type": "Microsoft.Network/privateLinkServices", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "visibility": { + "subscriptions": [ + "subscription1", + "subscription2" + ] + }, + "autoApproval": { + "subscriptions": [ + "subscription1", + "subscription2" + ] + }, + "fqdns": [ + "fqdn1", + "fqdn2" + ], + "alias": "ContosoService.{guid}.azure.privatelinkservice", + "loadBalancerFrontendIpConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb2" + } + ], + "ipConfigurations": [ + { + "name": "fe-lb2", + "properties": { + "privateIPAddress": "10.0.1.5", + "privateIPAllocationMethod": "Static", + "privateIPAddressVersion": "IPv4", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb2" + } + } + } + ], + "privateEndpointConnections": [ + { + "name": "pec1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg2/providers/Microsoft.Network/privateEndpoints/testPe2" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "approved it for some reason." + } + } + } + ], + "networkInterfaces": [ + { + "id": "/subscriptions/subId/resourceGroups/rg2/provders/Microsoft.Network/networkInterfaces/testPls2.nic.efgh5678" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json new file mode 100644 index 000000000000..f4219dabe142 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "serviceName": "testPls", + "peConnectionName": "testPlePeConnection", + "parameters": { + "name": "testPlePeConnection", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "approved it for some reason." + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "testPlePeConnection", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/testPe" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "approved it for some reason." + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressCreateCustomizedValues.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressCreateCustomizedValues.json new file mode 100644 index 000000000000..a2e158c87592 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressCreateCustomizedValues.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "publicIpAddressName": "test-ip", + "zones": [ + "1" + ], + "parameters": { + "properties": { + "publicIPAllocationMethod": "Static", + "idleTimeoutInMinutes": 10, + "publicIPAddressVersion": "IPv4" + }, + "sku": { + "name": "Standard" + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "name": "testDNS-ip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip", + "location": "eastus", + "zones": [ + "1" + ], + "properties": { + "provisioningState": "Succeeded", + "publicIPAddressVersion": "IPv4", + "publicIPAllocationMethod": "Static", + "idleTimeoutInMinutes": 10, + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testDNS649/ipConfigurations/ipconfig1" + } + }, + "sku": { + "name": "Standard" + }, + "type": "Microsoft.Network/publicIPAddresses" + } + }, + "201": { + "body": { + "name": "testDNS-ip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip", + "location": "eastus", + "zones": [ + "1" + ], + "properties": { + "provisioningState": "Succeeded", + "publicIPAddressVersion": "IPv4", + "publicIPAllocationMethod": "Static", + "idleTimeoutInMinutes": 10, + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testDNS649/ipConfigurations/ipconfig1" + } + }, + "sku": { + "name": "Standard" + }, + "type": "Microsoft.Network/publicIPAddresses" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressCreateDefaults.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressCreateDefaults.json new file mode 100644 index 000000000000..2f82d6a64ec8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressCreateDefaults.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "publicIpAddressName": "test-ip", + "parameters": { + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "name": "testDNS-ip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "publicIPAddressVersion": "IPv4", + "publicIPAllocationMethod": "Dynamic", + "idleTimeoutInMinutes": 4, + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testDNS649/ipConfigurations/ipconfig1" + } + }, + "sku": { + "name": "Basic" + }, + "type": "Microsoft.Network/publicIPAddresses" + } + }, + "201": { + "body": { + "name": "testDNS-ip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "publicIPAddressVersion": "IPv4", + "publicIPAllocationMethod": "Dynamic", + "idleTimeoutInMinutes": 4, + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testDNS649/ipConfigurations/ipconfig1" + } + }, + "sku": { + "name": "Basic" + }, + "type": "Microsoft.Network/publicIPAddresses" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressCreateDns.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressCreateDns.json new file mode 100644 index 000000000000..008771c29f5d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressCreateDns.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "publicIpAddressName": "test-ip", + "parameters": { + "properties": { + "dnsSettings": { + "domainNameLabel": "dnslbl" + } + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "name": "testDNS-ip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "publicIPAddressVersion": "IPv4", + "publicIPAllocationMethod": "Dynamic", + "idleTimeoutInMinutes": 4, + "dnsSettings": { + "domainNameLabel": "dnslbl", + "fqdn": "dnslbl.westus.cloudapp.azure.com" + }, + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testDNS649/ipConfigurations/ipconfig1" + } + }, + "type": "Microsoft.Network/publicIPAddresses" + } + }, + "201": { + "body": { + "name": "testDNS-ip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "publicIPAddressVersion": "IPv4", + "publicIPAllocationMethod": "Dynamic", + "idleTimeoutInMinutes": 4, + "dnsSettings": { + "domainNameLabel": "dnslbl", + "fqdn": "dnslbl.westus.cloudapp.azure.com" + }, + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testDNS649/ipConfigurations/ipconfig1" + } + }, + "type": "Microsoft.Network/publicIPAddresses" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressDelete.json new file mode 100644 index 000000000000..8894ef02a9d0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "publicIpAddressName": "test-ip" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressGet.json new file mode 100644 index 000000000000..0fd0823b214b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressGet.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "publicIpAddressName": "testDNS-ip" + }, + "responses": { + "200": { + "body": { + "name": "testDNS-ip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/testDNS-ip", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "publicIPAddressVersion": "IPv4", + "publicIPAllocationMethod": "Dynamic", + "idleTimeoutInMinutes": 4, + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testDNS649/ipConfigurations/ipconfig1" + }, + "ipTags": [ + { + "ipTagType": "FirstPartyUsage", + "tag": "SQL" + }, + { + "ipTagType": "FirstPartyUsage", + "tag": "Storage" + } + ] + }, + "type": "Microsoft.Network/publicIPAddresses" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressList.json new file mode 100644 index 000000000000..970ea97c6779 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressList.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testDNS-ip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/testDNS-ip", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "publicIPAddressVersion": "IPv4", + "publicIPAllocationMethod": "Dynamic", + "idleTimeoutInMinutes": 4, + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testDNS649/ipConfigurations/ipconfig1" + }, + "ipTags": [ + { + "ipTagType": "FirstPartyUsage", + "tag": "SQL" + }, + { + "ipTagType": "FirstPartyUsage", + "tag": "Storage" + } + ] + }, + "type": "Microsoft.Network/publicIPAddresses" + }, + { + "name": "ip03", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/ip03", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "ipAddress": "40.85.154.247", + "publicIPAddressVersion": "IPv4", + "publicIPAllocationMethod": "Dynamic", + "idleTimeoutInMinutes": 4, + "dnsSettings": { + "domainNameLabel": "testlbl", + "fqdn": "testlbl.westus.cloudapp.azure.com" + }, + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/testLb/frontendIPConfigurations/LoadBalancerFrontEnd" + } + }, + "type": "Microsoft.Network/publicIPAddresses" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressListAll.json new file mode 100644 index 000000000000..376524c24943 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressListAll.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testDNS-ip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/testDNS-ip", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "publicIPAddressVersion": "IPv4", + "publicIPAllocationMethod": "Dynamic", + "idleTimeoutInMinutes": 4, + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testDNS649/ipConfigurations/ipconfig1" + } + }, + "type": "Microsoft.Network/publicIPAddresses" + }, + { + "name": "ip01", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPAddresses/ip01", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "ipAddress": "40.85.154.247", + "publicIPAddressVersion": "IPv4", + "publicIPAllocationMethod": "Dynamic", + "idleTimeoutInMinutes": 4, + "dnsSettings": { + "domainNameLabel": "testlbl", + "fqdn": "testlbl.westus.cloudapp.azure.com" + }, + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/loadBalancers/testLb/frontendIPConfigurations/LoadBalancerFrontEnd" + } + }, + "type": "Microsoft.Network/publicIPAddresses" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressUpdateTags.json new file mode 100644 index 000000000000..3856c88fe0b7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpAddressUpdateTags.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "publicIpAddressName": "test-ip", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "testDNS-ip", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "publicIPAddressVersion": "IPv4", + "publicIPAllocationMethod": "Static", + "idleTimeoutInMinutes": 10, + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testDNS649/ipConfigurations/ipconfig1" + } + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "type": "Microsoft.Network/publicIPAddresses" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixCreateCustomizedValues.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixCreateCustomizedValues.json new file mode 100644 index 000000000000..3795bf559667 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixCreateCustomizedValues.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "publicIpPrefixName": "test-ipprefix", + "zones": [ + "1" + ], + "parameters": { + "location": "westus", + "properties": { + "publicIPAddressVersion": "IPv4", + "prefixLength": 30 + }, + "sku": { + "name": "Standard" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-ipprefix", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "westus", + "zones": [ + "1" + ], + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] + }, + "sku": { + "name": "Standard" + }, + "type": "Microsoft.Network/publicIPPrefixes" + } + }, + "201": { + "body": { + "name": "test-ipprefix", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "westus", + "zones": [ + "1" + ], + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] + }, + "sku": { + "name": "Standard" + }, + "type": "Microsoft.Network/publicIPPrefixes" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixCreateDefaults.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixCreateDefaults.json new file mode 100644 index 000000000000..51f76b0c81f7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixCreateDefaults.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "publicIpPrefixName": "test-ipprefix", + "parameters": { + "location": "westus", + "properties": { + "prefixLength": 30 + }, + "sku": { + "name": "Standard" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-ipprefix", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] + }, + "sku": { + "name": "Standard" + }, + "type": "Microsoft.Network/publicIPPrefixes" + } + }, + "201": { + "body": { + "name": "test-ipprefix", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [] + }, + "sku": { + "name": "Standard" + }, + "type": "Microsoft.Network/publicIPPrefixes" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixDelete.json new file mode 100644 index 000000000000..8d0a446a52e5 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "publicIpPrefixName": "test-ipprefix" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixGet.json new file mode 100644 index 000000000000..ca846f1ccd03 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixGet.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "publicIpPrefixName": "test-ipprefix" + }, + "responses": { + "200": { + "body": { + "name": "test-ipprefix", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipPrefix": "192.168.254.2/30", + "ipTags": [], + "publicIPAddresses": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" + } + ] + }, + "sku": { + "name": "Standard" + }, + "type": "Microsoft.Network/publicIPPrefixes" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixList.json new file mode 100644 index 000000000000..c0757132723b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixList.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-ipprefix", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipPrefix": "40.85.154.2/30", + "ipTags": [ + { + "ipTagType": "FirstPartyUsage", + "tag": "SQL" + } + ] + }, + "sku": { + "name": "Standard" + }, + "type": "Microsoft.Network/publicIPPrefixes" + }, + { + "name": "ipprefix03", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/ipprefix03", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "publicIPAddressVersion": "IPv4", + "prefixLength": 31, + "ipPrefix": "40.85.153.2/31", + "ipTags": [] + }, + "sku": { + "name": "Standard" + }, + "type": "Microsoft.Network/publicIPPrefixes" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixListAll.json new file mode 100644 index 000000000000..dcaa05348391 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixListAll.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-ipprefix", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipPrefix": "41.85.154.247/30", + "ipTags": [], + "publicIPAddresses": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1" + } + ] + }, + "sku": { + "name": "Standard" + }, + "type": "Microsoft.Network/publicIPPrefixes" + }, + { + "name": "ipprefix01", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPPrefixes/ipprefix01", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "ipPrefix": "40.85.154.247/30", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipTags": [] + }, + "sku": { + "name": "Standard" + }, + "type": "Microsoft.Network/publicIPPrefixes" + }, + { + "name": "pfx", + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/publicIPPrefixes/pfx", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "type": "Microsoft.Network/publicIPPrefixes", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "ipPrefix": "25.101.84.16/30", + "publicIPAddressVersion": "IPv4", + "prefixLength": 30, + "ipTags": [], + "loadBalancerFrontendIpConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/loadBalancers/lb-pfx/frontendIPConfigurations/ipconfig1" + } + }, + "sku": { + "name": "Standard" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixUpdateTags.json new file mode 100644 index 000000000000..4d3b2b86f669 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/PublicIpPrefixUpdateTags.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "publicIpPrefixName": "test-ipprefix", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-ipprefix", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/test-ipprefix", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "publicIPAddressVersion": "IPv4", + "ipPrefix": "40.85.154.247/30", + "prefixLength": 30, + "ipTags": [] + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "sku": { + "name": "Standard" + }, + "type": "Microsoft.Network/publicIPPrefixes" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterCreate.json new file mode 100644 index 000000000000..522d2d1e25ad --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterCreate.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "routeFilterName": "filterName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "routeFilterParameters": { + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "rules": [ + { + "name": "ruleName", + "properties": { + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030", + "12076:5040" + ] + } + } + ], + "peerings": [] + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "filterName", + "type": "Microsoft.Network/routeFilters", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "rules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "ruleName", + "properties": { + "provisioningState": "Succeeded", + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030", + "12076:5040" + ] + } + } + ], + "peerings": [] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "filterName", + "type": "Microsoft.Network/routeFilters", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "rules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "ruleName", + "properties": { + "provisioningState": "Succeeded", + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030", + "12076:5040" + ] + } + } + ], + "peerings": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterDelete.json new file mode 100644 index 000000000000..72e0df7c1e90 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "routeFilterName": "filterName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterGet.json new file mode 100644 index 000000000000..7cd72289f8f8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterGet.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "routeFilterName": "filterName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "filterName", + "type": "Microsoft.Network/routeFilters", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "rules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "ruleName", + "properties": { + "provisioningState": "Succeeded", + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030", + "12076:5040" + ] + } + } + ], + "peerings": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterList.json new file mode 100644 index 000000000000..a292f6455084 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "filterName", + "type": "Microsoft.Network/routeFilters", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "rules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "ruleName", + "properties": { + "provisioningState": "Succeeded", + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030", + "12076:5040" + ] + } + } + ], + "peerings": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterListByResourceGroup.json new file mode 100644 index 000000000000..3b0c54d22ea8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterListByResourceGroup.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "filterName", + "type": "Microsoft.Network/routeFilters", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "rules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "ruleName", + "properties": { + "provisioningState": "Succeeded", + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030", + "12076:5040" + ] + } + } + ], + "peerings": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleCreate.json new file mode 100644 index 000000000000..cde1fd8bb591 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleCreate.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "routeFilterName": "filterName", + "ruleName": "ruleName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "routeFilterRuleParameters": { + "properties": { + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030", + "12076:5040" + ] + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "ruleName", + "properties": { + "provisioningState": "Succeeded", + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030", + "12076:5040" + ] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "ruleName", + "properties": { + "provisioningState": "Succeeded", + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030", + "12076:5040" + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleDelete.json new file mode 100644 index 000000000000..4b49614994b8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "routeFilterName": "filterName", + "ruleName": "ruleName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleGet.json new file mode 100644 index 000000000000..b532fc80d318 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleGet.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "ruleName": "filterName", + "routeFilterName": "filterName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "ruleName", + "properties": { + "provisioningState": "Succeeded", + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030", + "12076:5040" + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleListByRouteFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleListByRouteFilter.json new file mode 100644 index 000000000000..d4c6519ed9b6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleListByRouteFilter.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "routeFilterName": "filterName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "ruleName", + "properties": { + "provisioningState": "Succeeded", + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030", + "12076:5040" + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleUpdate.json new file mode 100644 index 000000000000..fda800c5ac95 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterRuleUpdate.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "routeFilterName": "filterName", + "ruleName": "ruleName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "routeFilterRuleParameters": { + "properties": { + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030", + "12076:5040" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "ruleName", + "properties": { + "provisioningState": "Succeeded", + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030", + "12076:5040" + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterUpdate.json new file mode 100644 index 000000000000..0bc3f3c4160c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteFilterUpdate.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "routeFilterName": "filterName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "routeFilterParameters": { + "tags": { + "key1": "value1" + }, + "properties": { + "rules": [ + { + "name": "ruleName", + "properties": { + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030" + ] + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "filterName", + "type": "Microsoft.Network/routeFilters", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "rules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeFilters/filterName/routeFilterRules/ruleName", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "name": "ruleName", + "properties": { + "provisioningState": "Succeeded", + "access": "Allow", + "routeFilterRuleType": "Community", + "communities": [ + "12076:5030" + ] + } + } + ], + "peerings": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableCreate.json new file mode 100644 index 000000000000..10aabc305083 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableCreate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "routeTableName": "testrt", + "parameters": { + "location": "westus" + } + }, + "responses": { + "200": { + "body": { + "name": "testrt", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt", + "type": "Microsoft.Network/routeTables", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "routes": [], + "disableBgpRoutePropagation": true + } + } + }, + "201": { + "body": { + "name": "testrt", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt", + "type": "Microsoft.Network/routeTables", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "disableBgpRoutePropagation": true, + "routes": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableCreateWithRoute.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableCreateWithRoute.json new file mode 100644 index 000000000000..7c8d4f52ca00 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableCreateWithRoute.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "routeTableName": "testrt", + "parameters": { + "properties": { + "disableBgpRoutePropagation": true, + "routes": [ + { + "name": "route1", + "properties": { + "addressPrefix": "10.0.3.0/24", + "nextHopType": "VirtualNetworkGateway" + } + } + ] + }, + "location": "westus" + } + }, + "responses": { + "200": { + "body": { + "name": "testrt", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt", + "type": "Microsoft.Network/routeTables", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "disableBgpRoutePropagation": true, + "routes": [ + { + "name": "route1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt/routes/route1", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.3.0/24", + "nextHopType": "VirtualNetworkGateway" + } + } + ] + } + } + }, + "201": { + "body": { + "name": "testrt", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt", + "type": "Microsoft.Network/routeTables", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "routes": [ + { + "name": "route1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt/routes/route1", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.3.0/24", + "nextHopType": "VirtualNetworkGateway" + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableDelete.json new file mode 100644 index 000000000000..6e0b6f33ad4a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "routeTableName": "testrt" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableGet.json new file mode 100644 index 000000000000..23c35c33cfd8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "routeTableName": "testrt" + }, + "responses": { + "200": { + "body": { + "name": "testrt", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt", + "type": "Microsoft.Network/routeTables", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "disableBgpRoutePropagation": false, + "routes": [ + { + "name": "route1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt/routes/route1", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.3.0/24", + "nextHopType": "VirtualNetworkGateway" + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableList.json new file mode 100644 index 000000000000..0228bee575bb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableList.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testrt", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt", + "type": "Microsoft.Network/routeTables", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "disableBgpRoutePropagation": true, + "routes": [ + { + "name": "route1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt/routes/route1", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.3.0/24", + "nextHopType": "VirtualNetworkGateway" + } + } + ] + } + }, + { + "name": "testrt2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt2", + "type": "Microsoft.Network/routeTables", + "location": "westus", + "properties": { + "disableBgpRoutePropagation": true, + "provisioningState": "Succeeded", + "routes": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableListAll.json new file mode 100644 index 000000000000..53c18b34d61f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableListAll.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testrt", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt", + "type": "Microsoft.Network/routeTables", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "routes": [ + { + "name": "route1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt/routes/route1", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.3.0/24", + "nextHopType": "VirtualNetworkGateway" + } + } + ] + } + }, + { + "name": "testrt3", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/routeTables/testrt3", + "type": "Microsoft.Network/routeTables", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "routes": [] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableRouteCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableRouteCreate.json new file mode 100644 index 000000000000..8f49986ae713 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableRouteCreate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "routeTableName": "testrt", + "routeName": "route1", + "routeParameters": { + "properties": { + "addressPrefix": "10.0.3.0/24", + "nextHopType": "VirtualNetworkGateway" + } + } + }, + "responses": { + "200": { + "body": { + "name": "route1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt/routes/route1", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.3.0/24", + "nextHopType": "VirtualNetworkGateway" + } + } + }, + "201": { + "body": { + "name": "route1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt/routes/route1", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.3.0/24", + "nextHopType": "VirtualNetworkGateway" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableRouteDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableRouteDelete.json new file mode 100644 index 000000000000..08170b2b3d7d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableRouteDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "routeTableName": "testrt", + "routeName": "route1" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableRouteGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableRouteGet.json new file mode 100644 index 000000000000..ecdecdf3695c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableRouteGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "routeTableName": "testrt", + "routeName": "route1" + }, + "responses": { + "200": { + "body": { + "name": "route1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt/routes/route1", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.3.0/24", + "nextHopType": "Internet" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableRouteList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableRouteList.json new file mode 100644 index 000000000000..a4cb68ab7c03 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableRouteList.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "routeTableName": "testrt" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "route1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt/routes/route1", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.3.0/24", + "nextHopType": "Internet" + } + }, + { + "name": "route2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt/routes/route2", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.2.0/24", + "nextHopType": "VirtualNetworkGateway" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableUpdateTags.json new file mode 100644 index 000000000000..eefbb486aafe --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/RouteTableUpdateTags.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "routeTableName": "testrt", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "testrt", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/routeTables/testrt", + "type": "Microsoft.Network/routeTables", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "routes": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceCommunityList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceCommunityList.json new file mode 100644 index 000000000000..8fe25baa314f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceCommunityList.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/skype", + "name": "skype", + "type": "Microsoft.Network/bgpServiceCommunities", + "properties": { + "serviceName": "skype", + "bgpCommunities": [ + { + "serviceSupportedRegion": "Global", + "communityName": "Skype For Business Online", + "communityValue": "12076:5030", + "communityPrefixes": [ + "13.67.56.225/32", + "13.67.186.105/32" + ], + "isAuthorizedToUse": true, + "serviceGroup": "O365" + } + ] + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.Network/bgpServiceCommunities/exchange", + "name": "exchange", + "type": "Microsoft.Network/bgpServiceCommunities", + "properties": { + "serviceName": "exchange", + "bgpCommunities": [ + { + "serviceSupportedRegion": "Global", + "communityName": "Exchange Online", + "communityValue": "12076:5040", + "communityPrefixes": [ + "13.67.56.225/32", + "13.67.186.105/32" + ], + "isAuthorizedToUse": true, + "serviceGroup": "O365" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyCreate.json new file mode 100644 index 000000000000..e41786dcd015 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyCreate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "serviceEndpointPolicyName": "testPolicy", + "parameters": { + "location": "westus" + } + }, + "responses": { + "200": { + "body": { + "name": "testnsg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ServiceEndpointPolicies/testpolicy", + "type": "Microsoft.Network/ServiceEndpointPolicies", + "location": "westus", + "properties": { + "serviceEndpointPolicyDefinitions": [], + "subnets": [], + "provisioningState": "Succeeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F" + } + } + }, + "201": { + "body": { + "name": "testnsg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testpolicy", + "type": "Microsoft.Network/ServiceEndpointPolicies", + "location": "westus", + "properties": { + "serviceEndpointPolicyDefinitions": [], + "subnets": [], + "provisioningState": "Succeeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyCreateWithDefinition.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyCreateWithDefinition.json new file mode 100644 index 000000000000..cd30c41bed8e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyCreateWithDefinition.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "serviceEndpointPolicyName": "testPolicy", + "parameters": { + "location": "westus", + "properties": { + "serviceEndpointPolicyDefinitions": [ + { + "name": "StorageServiceEndpointPolicyDefinition", + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1/resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "testnsg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ServiceEndpointPolicies/testpolicy", + "type": "Microsoft.Network/ServiceEndpointPolicies", + "location": "westus", + "properties": { + "serviceEndpointPolicyDefinitions": [ + { + "name": "StorageServiceEndpointPolicyDefinition", + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1/resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + ], + "subnets": [], + "provisioningState": "Succeeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F" + } + } + }, + "201": { + "body": { + "name": "testnsg", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ServiceEndpointPolicies/testpolicy", + "type": "Microsoft.Network/ServiceEndpointPolicies", + "location": "westus", + "properties": { + "serviceEndpointPolicyDefinitions": [ + { + "name": "StorageServiceEndpointPolicyDefinition", + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1/resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + ], + "subnets": [], + "provisioningState": "Succeeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDefinitionCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDefinitionCreate.json new file mode 100644 index 000000000000..da5cc80af357 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDefinitionCreate.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "serviceEndpointPolicyName": "testPolicy", + "serviceEndpointPolicyDefinitionName": "testDefinition", + "ServiceEndpointPolicyDefinitions": { + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1/resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "testDefinition", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/serviceEndpointPolicies/testPolicy/serviceEndpointPolicyDefinitions/testDefinition", + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1/resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + }, + "201": { + "body": { + "name": "rule1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/testnsg/securityRules/rule1", + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1/resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDefinitionDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDefinitionDelete.json new file mode 100644 index 000000000000..6da36a37d55d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDefinitionDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "serviceEndpointPolicyName": "testPolicy", + "serviceEndpointPolicyDefinitionName": "testDefinition" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDefinitionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDefinitionGet.json new file mode 100644 index 000000000000..0fa9238a9b58 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDefinitionGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "serviceEndpointPolicyName": "testPolicy", + "serviceEndpointPolicyDefinitionName": "testDefinition" + }, + "responses": { + "200": { + "body": { + "name": "testDefinition", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/serviceEndpointPolicies/testPolicy/serviceEndpointPolicyDefinitions/testDefinition", + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1/resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDefinitionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDefinitionList.json new file mode 100644 index 000000000000..320c19dcc87b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDefinitionList.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "serviceEndpointPolicyName": "testPolicy" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testDef", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/serviceEndpointPolicies/testPolicy/serviceEndpointPolicyDefinitions/testDef", + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1/resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDelete.json new file mode 100644 index 000000000000..2a398582422d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "serviceEndpointPolicyName": "serviceEndpointPolicy1" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyGet.json new file mode 100644 index 000000000000..1d8b95181932 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyGet.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "serviceEndpointPolicyName": "testServiceEndpointPolicy" + }, + "responses": { + "200": { + "body": { + "name": "testServiceEndpointPolicy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/serviceEndpointPolicies/testServiceEndpointPolicy", + "type": "Microsoft.Network/serviceEndpointPolicies", + "location": "westus", + "properties": { + "serviceEndpointPolicyDefinitions": [ + { + "name": "StorageServiceEndpointPolicyDefinition", + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1/resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + ], + "subnets": [], + "provisioningState": "Succeeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyList.json new file mode 100644 index 000000000000..c1c3e7df67b2 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyList.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testServiceEndpointPolicy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/serviceEndpointPolicies/testServiceEndpointPolicy", + "location": "westus", + "properties": { + "serviceEndpointPolicyDefinitions": [ + { + "name": "StorageServiceEndpointPolicyDefinition", + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + ], + "subnets": [], + "provisioningState": "Succeeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F" + } + }, + { + "name": "testServiceEndpointPolicy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/serviceEndpointPolicies/testServiceEndpointPolicy1", + "location": "westus", + "properties": { + "serviceEndpointPolicyDefinitions": [ + { + "name": "StorageServiceEndpointPolicyDefinition1", + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1/resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + ], + "subnets": [], + "provisioningState": "Succeeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyListAll.json new file mode 100644 index 000000000000..117973d78d1d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyListAll.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testPolicy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/serviceEndpointPolicies/testPolicy", + "type": "Microsoft.Network/serviceEndpointPolicies", + "location": "westus", + "properties": { + "serviceEndpointPolicyDefinitions": [ + { + "name": "StorageServiceEndpointPolicyDefinition1", + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1/resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + ], + "subnets": [], + "provisioningState": "Succeeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F" + } + }, + { + "name": "testPolicy1", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/serviceEndpointPolicies/testPolicy2", + "type": "Microsoft.Network/serviceEndpointPolicies", + "location": "westus", + "properties": { + "serviceEndpointPolicyDefinitions": [ + { + "name": "StorageServiceEndpointPolicyDefinition2", + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1/resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + ], + "subnets": [], + "provisioningState": "Succeeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyUpdateTags.json new file mode 100644 index 000000000000..2ebdd3bbfd1a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceEndpointPolicyUpdateTags.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "serviceEndpointPolicyName": "testServiceEndpointPolicy", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "testServiceEndpointPolicy", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/serviceEndpointPolicies/testServiceEndpointPolicy", + "type": "Microsoft.Network/serviceEndpointPolicies", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "serviceEndpointPolicyDefinitions": [ + { + "name": "StorageServiceEndpointPolicyDefinition", + "properties": { + "description": "Storage Service EndpointPolicy Definition", + "service": "Microsoft.Storage", + "serviceResources": [ + "/subscriptions/subid1", + "/subscriptions/subid1/resourceGroups/storageRg", + "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount" + ] + } + } + ], + "subnets": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceTagsList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceTagsList.json new file mode 100644 index 000000000000..e25d9fe67741 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/ServiceTagsList.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "location": "westcentralus", + "subscriptionId": "subId" + }, + "responses": { + "200": { + "body": { + "name": "public", + "id": "/subscriptions/subId/providers/Microsoft.Network/serviceTags/public", + "type": "Microsoft.Network/serviceTags", + "changeNumber": "63", + "cloud": "Public", + "values": [ + { + "name": "ApiManagement", + "id": "ApiManagement", + "properties": { + "changeNumber": "7", + "region": "", + "systemService": "AzureApiManagement", + "addressPrefixes": [ + "13.64.39.16/32", + "40.74.146.80/31", + "40.74.147.32/28" + ] + } + }, + { + "name": "ApiManagement.AustraliaCentral", + "id": "ApiManagement.AustraliaCentral", + "properties": { + "changeNumber": "2", + "region": "australiacentral", + "systemService": "AzureApiManagement", + "addressPrefixes": [ + "20.36.106.68/31", + "20.36.107.176/28" + ] + } + }, + { + "name": "AppService", + "id": "AppService", + "properties": { + "changeNumber": "13", + "region": "", + "systemService": "AzureAppService", + "addressPrefixes": [ + "13.64.73.110/32", + "191.235.208.12/32", + "191.235.215.184/32" + ] + } + }, + { + "name": "ServiceBus", + "id": "ServiceBus", + "properties": { + "changeNumber": "10", + "region": "", + "systemService": "AzureServiceBus", + "addressPrefixes": [ + "23.98.82.96/29", + "40.68.127.68/32", + "40.70.146.64/29" + ] + } + }, + { + "name": "ServiceBus.EastUS2", + "id": "ServiceBus.EastUS2", + "properties": { + "changeNumber": "1", + "region": "eastus2", + "systemService": "AzureServiceBus", + "addressPrefixes": [ + "13.68.110.36/32", + "40.70.146.64/29" + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetCreate.json new file mode 100644 index 000000000000..f180511ab77a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetCreate.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subnetName": "subnet1", + "virtualNetworkName": "vnetname", + "resourceGroupName": "subnet-test", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "subnetParameters": { + "properties": { + "addressPrefix": "10.0.0.0/16" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet1", + "name": "subnet1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet1", + "name": "subnet1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetCreateServiceEndpoint.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetCreateServiceEndpoint.json new file mode 100644 index 000000000000..ff4ba173632f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetCreateServiceEndpoint.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "subnetName": "subnet1", + "virtualNetworkName": "vnetname", + "resourceGroupName": "subnet-test", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "subnetParameters": { + "properties": { + "addressPrefix": "10.0.0.0/16", + "serviceEndpoints": [ + { + "service": "Microsoft.Storage" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet1", + "name": "subnet1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "serviceEndpoints": [ + { + "service": "Microsoft.Storage", + "locations": [ + "eastus2(stage)", + "usnorth(stage)" + ], + "provisioningState": "Succeeded" + } + ], + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet1", + "name": "subnet1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "serviceEndpoints": [ + { + "service": "Microsoft.Storage", + "locations": [ + "eastus2(stage)", + "usnorth(stage)" + ], + "provisioningState": "Succeeded" + } + ], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetCreateWithDelegation.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetCreateWithDelegation.json new file mode 100644 index 000000000000..79287da043a9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetCreateWithDelegation.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subnetName": "subnet1", + "virtualNetworkName": "vnetname", + "resourceGroupName": "subnet-test", + "api-version": "2019-06-01", + "subscriptionId": "subId", + "subnetParameters": { + "properties": { + "addressPrefix": "10.0.0.0/16" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet1", + "name": "subnet1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "provisioningState": "Succeeded", + "delegations": [ + { + "name": "myDelegation", + "id": "/subscriptions/subId/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet1/delegations/myDelegation", + "properties": { + "provisioningState": "Succeeded", + "serviceName": "Microsoft.Provider/resourceType", + "actions": [] + } + } + ], + "purpose": "" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subId/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet1", + "name": "subnet1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "provisioningState": "Succeeded", + "delegations": [ + { + "name": "myDelegation", + "id": "/subscriptions/subId/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet1/delegations/myDelegation", + "properties": { + "provisioningState": "Succeeded", + "serviceName": "Microsoft.Provider/resourceType", + "actions": [] + } + } + ], + "purpose": "" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetDelete.json new file mode 100644 index 000000000000..d56a87147e5a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subnetName": "subnet1", + "virtualNetworkName": "vnetname", + "resourceGroupName": "subnet-test", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetGet.json new file mode 100644 index 000000000000..cf722e3bb7c4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetGet.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subnetName": "subnet1", + "virtualNetworkName": "vnetname", + "resourceGroupName": "subnet-test", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet1", + "name": "subnet1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetGetWithDelegation.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetGetWithDelegation.json new file mode 100644 index 000000000000..95ca9e7156aa --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetGetWithDelegation.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subnetName": "subnet1", + "virtualNetworkName": "vnetname", + "resourceGroupName": "subnet-test", + "api-version": "2019-06-01", + "subscriptionId": "subId" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet1", + "name": "subnet1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "provisioningState": "Succeeded", + "delegations": [ + { + "name": "myDelegation", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1/delegations/myDelegation", + "properties": { + "provisioningState": "Succeeded", + "serviceName": "Microsoft.Provider/resourceType", + "actions": [] + } + } + ], + "purpose": "" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetList.json new file mode 100644 index 000000000000..4e5fa6f8da75 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetList.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "virtualNetworkName": "vnetname", + "resourceGroupName": "subnet-test", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet1", + "name": "subnet1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet2", + "name": "subnet2", + "properties": { + "addressPrefix": "10.0.0.0/16", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetPrepareNetworkPolicies.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetPrepareNetworkPolicies.json new file mode 100644 index 000000000000..30e3b4626326 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetPrepareNetworkPolicies.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkName": "test-vnet", + "subnetName": "subnet1", + "prepareNetworkPoliciesRequestParameters": { + "serviceName": "Microsoft.Sql/managedInstances" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetUnprepareNetworkPolicies.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetUnprepareNetworkPolicies.json new file mode 100644 index 000000000000..24941c8e1876 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/SubnetUnprepareNetworkPolicies.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkName": "test-vnet", + "subnetName": "subnet1", + "unprepareNetworkPoliciesRequestParameters": { + "serviceName": "Microsoft.Sql/managedInstances" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/UsageList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/UsageList.json new file mode 100644 index 000000000000..349864633b35 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/UsageList.json @@ -0,0 +1,265 @@ +{ + "parameters": { + "location": "westus", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "currentValue": 8.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/VirtualNetworks", + "limit": 50.0, + "name": { + "localizedValue": "Virtual Networks", + "value": "VirtualNetworks" + }, + "unit": "Count" + }, + { + "currentValue": 3.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/StaticPublicIPAddresses", + "limit": 20.0, + "name": { + "localizedValue": "Static Public IP Addresses", + "value": "StaticPublicIPAddresses" + }, + "unit": "Count" + }, + { + "currentValue": 1.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/NetworkSecurityGroups", + "limit": 100.0, + "name": { + "localizedValue": "Network Security Groups", + "value": "NetworkSecurityGroups" + }, + "unit": "Count" + }, + { + "currentValue": 8.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/PublicIPAddresses", + "limit": 60.0, + "name": { + "localizedValue": "Public IP Addresses", + "value": "PublicIPAddresses" + }, + "unit": "Count" + }, + { + "currentValue": 2.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/NetworkInterfaces", + "limit": 350.0, + "name": { + "localizedValue": "Network Interfaces", + "value": "NetworkInterfaces" + }, + "unit": "Count" + }, + { + "currentValue": 2.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/LoadBalancers", + "limit": 100.0, + "name": { + "localizedValue": "Load Balancers", + "value": "LoadBalancers" + }, + "unit": "Count" + }, + { + "currentValue": 1.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/ApplicationGateways", + "limit": 50.0, + "name": { + "localizedValue": "Application Gateways", + "value": "ApplicationGateways" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/RouteTables", + "limit": 100.0, + "name": { + "localizedValue": "Route Tables", + "value": "RouteTables" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/RouteFilters", + "limit": 1000.0, + "name": { + "localizedValue": "Route Filters", + "value": "RouteFilters" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/NetworkWatchers", + "limit": 1.0, + "name": { + "localizedValue": "Network Watchers", + "value": "NetworkWatchers" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/PacketCaptures", + "limit": 10.0, + "name": { + "localizedValue": "Packet Captures", + "value": "PacketCaptures" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/DnsServersPerVirtualNetwork", + "limit": 9.0, + "name": { + "localizedValue": "DNS servers per Virtual Network", + "value": "DnsServersPerVirtualNetwork" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/SubnetsPerVirtualNetwork", + "limit": 1000.0, + "name": { + "localizedValue": "Subnets per Virtual Network", + "value": "SubnetsPerVirtualNetwork" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/IPConfigurationsPerVirtualNetwork", + "limit": 4096.0, + "name": { + "localizedValue": "IP Configurations per Virtual Network", + "value": "IPConfigurationsPerVirtualNetwork" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/PeeringsPerVirtualNetwork", + "limit": 10.0, + "name": { + "localizedValue": "Peerings per Virtual Network", + "value": "PeeringsPerVirtualNetwork" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/SecurityRulesPerNetworkSecurityGroup", + "limit": 200.0, + "name": { + "localizedValue": "Security rules per Network Security Group", + "value": "SecurityRulesPerNetworkSecurityGroup" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/SecurityRuleAddressesOrPortsPerNetworkSecurityGroup", + "limit": 2000.0, + "name": { + "localizedValue": "Security rules addresses or ports per Network Security Group", + "value": "SecurityRuleAddressesOrPortsPerNetworkSecurityGroup" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/InboundRulesPerLoadBalancer", + "limit": 150.0, + "name": { + "localizedValue": "Inbound Rules per Load Balancer", + "value": "InboundRulesPerLoadBalancer" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/FrontendIPConfigurationPerLoadBalancer", + "limit": 10.0, + "name": { + "localizedValue": "Frontend IP Configurations per Load Balancer", + "value": "FrontendIPConfigurationPerLoadBalancer" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/outboundRulesPerLoadBalancer", + "limit": 5.0, + "name": { + "localizedValue": "Outbound Rules per Load Balancer", + "value": "outboundRulesPerLoadBalancer" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/RoutesPerRouteTable", + "limit": 100.0, + "name": { + "localizedValue": "Routes per Route Table", + "value": "RoutesPerRouteTable" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/SecondaryIPConfigurationsPerNetworkInterface", + "limit": 256.0, + "name": { + "localizedValue": "Secondary IP Configurations per Network Interface", + "value": "SecondaryIPConfigurationsPerNetworkInterface" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/InboundRulesPerNetworkInterface", + "limit": 500.0, + "name": { + "localizedValue": "Inbound rules per Network Interface", + "value": "InboundRulesPerNetworkInterface" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/RouteFilterRulesPerRouteFilter", + "limit": 1.0, + "name": { + "localizedValue": "Route filter rules per Route Filter", + "value": "RouteFilterRulesPerRouteFilter" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/westus/usages/RouteFiltersPerExpressRouteBgpPeering", + "limit": 1.0, + "name": { + "localizedValue": "Route filters per Express route BGP Peering", + "value": "RouteFiltersPerExpressRouteBgpPeering" + }, + "unit": "Count" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/UsageListSpacedLocation.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/UsageListSpacedLocation.json new file mode 100644 index 000000000000..61d61ffb62f4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/UsageListSpacedLocation.json @@ -0,0 +1,335 @@ +{ + "parameters": { + "location": "West US", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "currentValue": 12.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/VirtualNetworks", + "limit": 50.0, + "name": { + "localizedValue": "Virtual Networks", + "value": "VirtualNetworks" + }, + "unit": "Count" + }, + { + "currentValue": 1.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/StaticPublicIPAddresses", + "limit": 20.0, + "name": { + "localizedValue": "Static Public IP Addresses", + "value": "StaticPublicIPAddresses" + }, + "unit": "Count" + }, + { + "currentValue": 3.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/NetworkSecurityGroups", + "limit": 100.0, + "name": { + "localizedValue": "Network Security Groups", + "value": "NetworkSecurityGroups" + }, + "unit": "Count" + }, + { + "currentValue": 12.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/PublicIPAddresses", + "limit": 60.0, + "name": { + "localizedValue": "Public IP Addresses", + "value": "PublicIPAddresses" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/PublicIpPrefixes", + "limit": 2147483647.0, + "name": { + "localizedValue": "Public Ip Prefixes", + "value": "PublicIpPrefixes" + }, + "unit": "Count" + }, + { + "currentValue": 2.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/NetworkInterfaces", + "limit": 24000.0, + "name": { + "localizedValue": "Network Interfaces", + "value": "NetworkInterfaces" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/LoadBalancers", + "limit": 100.0, + "name": { + "localizedValue": "Load Balancers", + "value": "LoadBalancers" + }, + "unit": "Count" + }, + { + "currentValue": 3.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/ApplicationGateways", + "limit": 50.0, + "name": { + "localizedValue": "Application Gateways", + "value": "ApplicationGateways" + }, + "unit": "Count" + }, + { + "currentValue": 5.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/RouteTables", + "limit": 100.0, + "name": { + "localizedValue": "Route Tables", + "value": "RouteTables" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/RouteFilters", + "limit": 1000.0, + "name": { + "localizedValue": "Route Filters", + "value": "RouteFilters" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/NetworkWatchers", + "limit": 1.0, + "name": { + "localizedValue": "Network Watchers", + "value": "NetworkWatchers" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/PacketCaptures", + "limit": 100.0, + "name": { + "localizedValue": "Packet Captures", + "value": "PacketCaptures" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/ApplicationSecurityGroups", + "limit": 500.0, + "name": { + "localizedValue": "Application Security Groups.", + "value": "ApplicationSecurityGroups" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/DdosProtectionPlans", + "limit": 1.0, + "name": { + "localizedValue": "DDoS Protection Plans.", + "value": "DdosProtectionPlans" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/ServiceEndpointPolicies", + "limit": 200.0, + "name": { + "localizedValue": "Service Endpoint Policies", + "value": "ServiceEndpointPolicies" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/NetworkIntentPolicies", + "limit": 200.0, + "name": { + "localizedValue": "Network Intent Policies", + "value": "NetworkIntentPolicies" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/DnsServersPerVirtualNetwork", + "limit": 9.0, + "name": { + "localizedValue": "DNS servers per Virtual Network", + "value": "DnsServersPerVirtualNetwork" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/SubnetsPerVirtualNetwork", + "limit": 1000.0, + "name": { + "localizedValue": "Subnets per Virtual Network", + "value": "SubnetsPerVirtualNetwork" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/IPConfigurationsPerVirtualNetwork", + "limit": 16384.0, + "name": { + "localizedValue": "IP Configurations per Virtual Network", + "value": "IPConfigurationsPerVirtualNetwork" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/PeeringsPerVirtualNetwork", + "limit": 50.0, + "name": { + "localizedValue": "Peerings per Virtual Network", + "value": "PeeringsPerVirtualNetwork" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/SecurityRulesPerNetworkSecurityGroup", + "limit": 1000.0, + "name": { + "localizedValue": "Security rules per Network Security Group", + "value": "SecurityRulesPerNetworkSecurityGroup" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/SecurityRulesPerNetworkIntentPolicy", + "limit": 100.0, + "name": { + "localizedValue": "Security rules per Network Intent Policy", + "value": "SecurityRulesPerNetworkIntentPolicy" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/RoutesPerNetworkIntentPolicy", + "limit": 100.0, + "name": { + "localizedValue": "Routes per Network Intent Policy", + "value": "RoutesPerNetworkIntentPolicy" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/SecurityRuleAddressesOrPortsPerNetworkSecurityGroup", + "limit": 2000.0, + "name": { + "localizedValue": "Security rules addresses or ports per Network Security Group", + "value": "SecurityRuleAddressesOrPortsPerNetworkSecurityGroup" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/InboundRulesPerLoadBalancer", + "limit": 150.0, + "name": { + "localizedValue": "Inbound Rules per Load Balancer", + "value": "InboundRulesPerLoadBalancer" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/FrontendIPConfigurationPerLoadBalancer", + "limit": 10.0, + "name": { + "localizedValue": "Frontend IP Configurations per Load Balancer", + "value": "FrontendIPConfigurationPerLoadBalancer" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/OutboundRulesPerLoadBalancer", + "limit": 5.0, + "name": { + "localizedValue": "Outbound Rules per Load Balancer", + "value": "OutboundRulesPerLoadBalancer" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/RoutesPerRouteTable", + "limit": 400.0, + "name": { + "localizedValue": "Routes per Route Table", + "value": "RoutesPerRouteTable" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/SecondaryIPConfigurationsPerNetworkInterface", + "limit": 256.0, + "name": { + "localizedValue": "Secondary IP Configurations per Network Interface", + "value": "SecondaryIPConfigurationsPerNetworkInterface" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/InboundRulesPerNetworkInterface", + "limit": 500.0, + "name": { + "localizedValue": "Inbound rules per Network Interface", + "value": "InboundRulesPerNetworkInterface" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/RouteFilterRulesPerRouteFilter", + "limit": 1.0, + "name": { + "localizedValue": "Route filter rules per Route Filter", + "value": "RouteFilterRulesPerRouteFilter" + }, + "unit": "Count" + }, + { + "currentValue": 0.0, + "id": "/subscriptions/subid/providers/Microsoft.Network/locations/West US/usages/RouteFiltersPerExpressRouteBgpPeering", + "limit": 1.0, + "name": { + "localizedValue": "Route filters per Express route BGP Peering", + "value": "RouteFiltersPerExpressRouteBgpPeering" + }, + "unit": "Count" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubDelete.json new file mode 100644 index 000000000000..82fc7cc7686b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "virtualHubName": "virtualHub1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubGet.json new file mode 100644 index 000000000000..eae50b176383 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubGet.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "virtualHubName": "virtualHub1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "virtualHub1", + "type": "Microsoft.Network/virtualHubs", + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1" + }, + "virtualNetworkConnections": [], + "addressPrefix": "10.10.1.0/24" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubList.json new file mode 100644 index 000000000000..4d24a3b2aea1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubList.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "virtualHub1", + "type": "Microsoft.Network/virtualHubs", + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1" + }, + "virtualNetworkConnections": [ + { + "name": "connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVirtualNetwork": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" + }, + "allowHubToRemoteVnetTransit": true, + "allowRemoteVnetToUseHubVnetGateways": false + } + } + ], + "addressPrefix": "10.10.1.0/24" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/virtualHub2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "East US", + "name": "virtualHub2", + "type": "Microsoft.Network/virtualHubs", + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1" + }, + "virtualNetworkConnections": [ + { + "name": "connection2", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVirtualNetwork": { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" + }, + "allowHubToRemoteVnetTransit": true, + "allowRemoteVnetToUseHubVnetGateways": false + } + } + ], + "addressPrefix": "210.10.1.0/24" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubListByResourceGroup.json new file mode 100644 index 000000000000..87f931563829 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubListByResourceGroup.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "virtualHub1", + "type": "Microsoft.Network/virtualHubs", + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1" + }, + "virtualNetworkConnections": [ + { + "name": "connection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubVirtualNetworkConnections/connection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVirtualNetwork": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" + }, + "allowHubToRemoteVnetTransit": true, + "allowRemoteVnetToUseHubVnetGateways": false + } + } + ], + "addressPrefix": "10.10.1.0/24" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "East US", + "name": "virtualHub2", + "type": "Microsoft.Network/virtualHubs", + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1" + }, + "virtualNetworkConnections": [ + { + "name": "connection2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2/hubVirtualNetworkConnections/connection2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVirtualNetwork": { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/SpokeVnet2" + }, + "allowHubToRemoteVnetTransit": true, + "allowRemoteVnetToUseHubVnetGateways": false + } + } + ], + "addressPrefix": "210.10.1.0/24" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubPut.json new file mode 100644 index 000000000000..7b74aa116265 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubPut.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "virtualHubName": "virtualHub2", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "virtualHubParameters": { + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1" + }, + "addressPrefix": "10.168.0.0/24" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "virtualHub2", + "type": "Microsoft.Network/virtualHubs", + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1" + }, + "virtualNetworkConnections": [], + "addressPrefix": "10.168.0.0/24" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "virtualHub2", + "type": "Microsoft.Network/virtualHubs", + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1" + }, + "virtualNetworkConnections": [], + "addressPrefix": "10.168.0.0/24" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubUpdateTags.json new file mode 100644 index 000000000000..ec5eaecf0990 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualHubUpdateTags.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "virtualHubName": "virtualHub2", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "virtualHubParameters": { + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "virtualHub2", + "type": "Microsoft.Network/virtualHubs", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1" + }, + "virtualNetworkConnections": [], + "addressPrefix": "10.168.0.0/24" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "virtualHub2", + "type": "Microsoft.Network/virtualHubs", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1" + }, + "virtualNetworkConnections": [], + "addressPrefix": "10.168.0.0/24" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCheckIPAddressAvailability.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCheckIPAddressAvailability.json new file mode 100644 index 000000000000..e55c250634f4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCheckIPAddressAvailability.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkName": "test-vnet", + "ipAddress": "10.0.1.4" + }, + "responses": { + "200": { + "body": { + "available": false, + "availableIPAddresses": [ + "10.0.1.5", + "10.0.1.6", + "10.0.1.7", + "10.0.1.8", + "10.0.1.9" + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreate.json new file mode 100644 index 000000000000..5b74a3575264 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreate.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkName": "test-vnet", + "parameters": { + "properties": { + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + } + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [], + "virtualNetworkPeerings": [] + } + } + }, + "201": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [], + "virtualNetworkPeerings": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateServiceEndpointPolicy.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateServiceEndpointPolicy.json new file mode 100644 index 000000000000..cf3a1d4e311b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateServiceEndpointPolicy.json @@ -0,0 +1,126 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "vnetTest", + "virtualNetworkName": "vnet1", + "parameters": { + "properties": { + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "name": "test-1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "serviceEndpoints": [ + { + "service": "Microsoft.Storage" + } + ], + "serviceEndpointPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups/vnetTest/providers/Microsoft.Network/serviceEndpointPolicies/ServiceEndpointPolicy1" + } + ] + } + } + ] + }, + "location": "eastus2euap" + } + }, + "responses": { + "200": { + "body": { + "name": "vnet1", + "id": "/subscriptions/subid/resourceGroups/vnetTest/providers/Microsoft.Network/virtualNetworks/vnet1", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus2euap", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "name": "test-1", + "id": "/subscriptions/subid/resourceGroups/vnetTest/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/test-1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "ipConfigurations": [], + "resourceNavigationLinks": [], + "serviceEndpoints": [ + { + "provisioningState": "Succeeded", + "service": "Microsoft.Storage", + "locations": [ + "eastus2(stage)", + "usnorth(stage)" + ] + } + ], + "serviceEndpointPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups/vnetTest/providers/Microsoft.Network/serviceEndpointPolicies/ServiceEndpointPolicy1" + } + ], + "provisioningState": "Succeeded" + } + } + ], + "virtualNetworkPeerings": [] + } + } + }, + "201": { + "body": { + "name": "vnet1", + "id": "/subscriptions/subid/resourceGroups/vnetTest/providers/Microsoft.Network/virtualNetworks/vnet1", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus2euap", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "name": "test-1", + "id": "/subscriptions/subid/resourceGroups/vnetTest/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/test-1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "ipConfigurations": [], + "resourceNavigationLinks": [], + "serviceEndpoints": [ + { + "provisioningState": "Succeeded", + "service": "Microsoft.Storage", + "locations": [ + "eastus2(stage)", + "usnorth(stage)" + ] + } + ], + "serviceEndpointPolicies": [ + { + "id": "/subscriptions/subid/resourceGroups/vnetTest/providers/Microsoft.Network/serviceEndpointPolicies/ServiceEndpointPolicy1" + } + ], + "provisioningState": "Succeeded" + } + } + ], + "virtualNetworkPeerings": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateServiceEndpoints.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateServiceEndpoints.json new file mode 100644 index 000000000000..3e71ab1f4c9a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateServiceEndpoints.json @@ -0,0 +1,111 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "vnetTest", + "virtualNetworkName": "vnet1", + "parameters": { + "properties": { + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "name": "test-1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "serviceEndpoints": [ + { + "service": "Microsoft.Storage" + } + ] + } + } + ] + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "name": "vnet1", + "id": "/subscriptions/subid/resourceGroups/vnetTest/providers/Microsoft.Network/virtualNetworks/vnet1", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "name": "test-1", + "id": "/subscriptions/subid/resourceGroups/vnetTest/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/test-1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "ipConfigurations": [], + "resourceNavigationLinks": [], + "serviceEndpoints": [ + { + "provisioningState": "Succeeded", + "service": "Microsoft.Storage", + "locations": [ + "eastus2(stage)", + "usnorth(stage)" + ] + } + ], + "provisioningState": "Succeeded" + } + } + ], + "virtualNetworkPeerings": [] + } + } + }, + "201": { + "body": { + "name": "vnet1", + "id": "/subscriptions/subid/resourceGroups/vnetTest/providers/Microsoft.Network/virtualNetworks/vnet1", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "name": "test-1", + "id": "/subscriptions/subid/resourceGroups/vnetTest/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/test-1", + "properties": { + "addressPrefix": "10.0.0.0/16", + "ipConfigurations": [], + "resourceNavigationLinks": [], + "serviceEndpoints": [ + { + "provisioningState": "Succeeded", + "service": "Microsoft.Storage", + "locations": [ + "eastus2(stage)", + "usnorth(stage)" + ] + } + ], + "provisioningState": "Succeeded" + } + } + ], + "virtualNetworkPeerings": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateSubnet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateSubnet.json new file mode 100644 index 000000000000..29ff54dd6daf --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateSubnet.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkName": "test-vnet", + "parameters": { + "properties": { + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "name": "test-1", + "properties": { + "addressPrefix": "10.0.0.0/24" + } + } + ] + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-1", + "name": "test-1", + "properties": { + "addressPrefix": "10.0.0.0/24", + "provisioningState": "Succeeded" + } + } + ], + "virtualNetworkPeerings": [] + } + } + }, + "201": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-1", + "name": "test-1", + "properties": { + "addressPrefix": "10.0.0.0/24", + "provisioningState": "Succeeded" + } + } + ], + "virtualNetworkPeerings": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateSubnetWithAddressPrefixes.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateSubnetWithAddressPrefixes.json new file mode 100644 index 000000000000..6a915c182658 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateSubnetWithAddressPrefixes.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkName": "test-vnet", + "parameters": { + "properties": { + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "name": "test-2", + "properties": { + "addressPrefixes": [ + "10.0.0.0/28", + "10.0.1.0/28" + ] + } + } + ] + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-2", + "name": "test-2", + "properties": { + "addressPrefixes": [ + "10.0.0.0/28", + "10.1.0.0/28" + ], + "provisioningState": "Succeeded" + } + } + ], + "virtualNetworkPeerings": [] + } + } + }, + "201": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-2", + "name": "test-2", + "properties": { + "addressPrefixes": [ + "10.0.0.0/28", + "10.0.1.0/28" + ], + "provisioningState": "Succeeded" + } + } + ], + "virtualNetworkPeerings": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateSubnetWithDelegation.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateSubnetWithDelegation.json new file mode 100644 index 000000000000..3a996b62d1a5 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkCreateSubnetWithDelegation.json @@ -0,0 +1,114 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "virtualNetworkName": "test-vnet", + "parameters": { + "properties": { + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "name": "test-1", + "properties": { + "addressPrefix": "10.0.0.0/24", + "delegations": [ + { + "name": "myDelegation", + "properties": { + "serviceName": "Microsoft.Sql/managedInstances" + } + } + ] + } + } + ] + }, + "location": "westcentralus" + } + }, + "responses": { + "200": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "westcentralus", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-1", + "name": "test-1", + "properties": { + "addressPrefix": "10.0.0.0/24", + "provisioningState": "Succeeded", + "delegations": [ + { + "name": "myDelegation", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-1/delegations/myDelegation", + "properties": { + "provisioningState": "Succeeded", + "serviceName": "Microsoft.Sql/managedInstances", + "actions": [] + } + } + ], + "purpose": "" + } + } + ], + "virtualNetworkPeerings": [] + } + } + }, + "201": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "westcentralus", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-1", + "name": "test-1", + "properties": { + "addressPrefix": "10.0.0.0/24", + "provisioningState": "Succeeded", + "delegations": [ + { + "name": "myDelegation", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-1/delegations/myDelegation", + "properties": { + "provisioningState": "Succeeded", + "serviceName": "Microsoft.Sql/managedInstances", + "actions": [] + } + } + ], + "purpose": "" + } + } + ], + "virtualNetworkPeerings": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkDelete.json new file mode 100644 index 000000000000..a9316b9bd589 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkName": "test-vnet" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionCreate.json new file mode 100644 index 000000000000..9345d369fc68 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionCreate.json @@ -0,0 +1,131 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayConnectionName": "connS2S", + "parameters": { + "properties": { + "virtualNetworkGateway1": { + "properties": { + "ipConfigurations": [ + { + "properties": { + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip" + } + }, + "name": "gwipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/gwipconfig1" + } + ], + "gatewayType": "Vpn", + "vpnType": "RouteBased", + "enableBgp": false, + "activeActive": false, + "sku": { + "name": "VpnGw1", + "tier": "VpnGw1", + "capacity": 2 + }, + "bgpSettings": { + "asn": 65514, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + } + }, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw", + "location": "centralus", + "tags": {} + }, + "localNetworkGateway2": { + "properties": { + "localNetworkAddressSpace": { + "addressPrefixes": [ + "10.1.0.0/16" + ] + }, + "gatewayIpAddress": "x.x.x.x" + }, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw", + "location": "centralus", + "tags": {} + }, + "connectionType": "IPsec", + "connectionProtocol": "IKEv2", + "routingWeight": 0, + "sharedKey": "Abc123", + "enableBgp": false, + "usePolicyBasedTrafficSelectors": false, + "ipsecPolicies": [] + }, + "location": "centralus" + } + }, + "responses": { + "201": { + "body": { + "name": "connS2S", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/connections/connS2S", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/connections", + "location": "centralus", + "properties": { + "provisioningState": "Updating", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworkGateway1": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw", + "properties": {} + }, + "localNetworkGateway2": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw", + "properties": {} + }, + "connectionType": "IPsec", + "connectionProtocol": "IKEv2", + "routingWeight": 0, + "sharedKey": "Abc123", + "enableBgp": false, + "usePolicyBasedTrafficSelectors": false, + "ipsecPolicies": [], + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0 + } + } + }, + "200": { + "body": { + "name": "connS2S", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/connections/connS2S", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/connections", + "location": "centralus", + "properties": { + "provisioningState": "Updating", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworkGateway1": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw", + "properties": {} + }, + "localNetworkGateway2": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw", + "properties": {} + }, + "connectionType": "IPsec", + "connectionProtocol": "IKEv2", + "routingWeight": 0, + "sharedKey": "Abc123", + "enableBgp": false, + "usePolicyBasedTrafficSelectors": false, + "ipsecPolicies": [], + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0 + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionDelete.json new file mode 100644 index 000000000000..c12d6fa33d54 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayConnectionName": "conn1" + }, + "responses": { + "202": {}, + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionGet.json new file mode 100644 index 000000000000..c3c9f38110e6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionGet.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayConnectionName": "connS2S" + }, + "responses": { + "200": { + "body": { + "name": "connS2S", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/connections/connS2S", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/connections", + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworkGateway1": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw", + "properties": {} + }, + "localNetworkGateway2": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw", + "properties": {} + }, + "connectionType": "IPsec", + "connectionProtocol": "IKEv2", + "routingWeight": 0, + "sharedKey": "Abc123", + "enableBgp": false, + "usePolicyBasedTrafficSelectors": false, + "ipsecPolicies": [], + "connectionStatus": "Connecting", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0 + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionGetSharedKey.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionGetSharedKey.json new file mode 100644 index 000000000000..45e6bb7a0919 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionGetSharedKey.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayConnectionName": "connS2S" + }, + "responses": { + "200": { + "body": { + "value": "AzureAbc123" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionResetSharedKey.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionResetSharedKey.json new file mode 100644 index 000000000000..55891b3ca5b0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionResetSharedKey.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayConnectionName": "conn1", + "parameters": { + "keyLength": 128 + } + }, + "responses": { + "200": { + "body": { + "keyLength": 128 + } + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionSetSharedKey.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionSetSharedKey.json new file mode 100644 index 000000000000..05e7e95e00d7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionSetSharedKey.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayConnectionName": "connS2S", + "parameters": { + "value": "AzureAbc123" + } + }, + "responses": { + "200": { + "body": { + "value": "AzureAbc123" + } + }, + "201": { + "body": { + "value": "AzureAbc123" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionUpdateTags.json new file mode 100644 index 000000000000..5c766e129fd5 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionUpdateTags.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayConnectionName": "test", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "202": {}, + "200": { + "body": { + "name": "test", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/connections/test", + "type": "Microsoft.Network/connections", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworkGateway1": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw", + "properties": {} + }, + "localNetworkGateway2": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/lgw", + "properties": {} + }, + "connectionType": "IPsec", + "routingWeight": 0, + "sharedKey": "temp1234", + "enableBgp": false, + "usePolicyBasedTrafficSelectors": false, + "ipsecPolicies": [], + "connectionStatus": "Unknown", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0 + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionsList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionsList.json new file mode 100644 index 000000000000..416447a6553c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayConnectionsList.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "conn1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/connections/conn1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/connections", + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworkGateway1": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw1", + "properties": {} + }, + "localNetworkGateway2": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw1", + "properties": {} + }, + "connectionType": "IPsec", + "connectionProtocol": "IKEv1", + "routingWeight": 0, + "enableBgp": false, + "usePolicyBasedTrafficSelectors": false, + "ipsecPolicies": [], + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0 + } + }, + { + "name": "conn2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/connections/conn2", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/connections", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworkGateway1": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw2", + "properties": {} + }, + "localNetworkGateway2": { + "properties": {}, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw2" + }, + "connectionType": "IPsec", + "connectionProtocol": "IKEv2", + "routingWeight": 0, + "enableBgp": false, + "usePolicyBasedTrafficSelectors": false, + "ipsecPolicies": [], + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0 + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayDelete.json new file mode 100644 index 000000000000..5d9af33b3844 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw" + }, + "responses": { + "202": {}, + "200": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGenerateVpnClientPackage.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGenerateVpnClientPackage.json new file mode 100644 index 000000000000..9ca488f9f4eb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGenerateVpnClientPackage.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw", + "parameters": {} + }, + "responses": { + "200": { + "body": "" + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGenerateVpnProfile.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGenerateVpnProfile.json new file mode 100644 index 000000000000..6ade35eb9e57 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGenerateVpnProfile.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw", + "parameters": {} + }, + "responses": { + "202": {}, + "200": { + "body": "" + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGet.json new file mode 100644 index 000000000000..75ecc7da9012 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGet.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw" + }, + "responses": { + "200": { + "body": { + "name": "vpngw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/virtualNetworkGateways", + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "ipConfigurations": [ + { + "name": "gwipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/gwipconfig1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet" + } + } + } + ], + "sku": { + "name": "VpnGw1", + "tier": "VpnGw1", + "capacity": 0 + }, + "gatewayType": "Vpn", + "vpnType": "RouteBased", + "enableBgp": false, + "activeActive": false, + "vpnClientConfiguration": { + "vpnClientProtocols": [ + "OpenVPN" + ], + "vpnClientRootCertificates": [], + "vpnClientRevokedCertificates": [], + "aadTenant": "https://login.microsoftonline.com/99163270-c9ab-4279-bb12-5353ed9bf6e1", + "aadAudience": "fd11706c-e78c-4828-8be7-ac7dcefd4b17", + "aadIssuer": "https://sts.windows.net/99163270-c9ab-4279-bb12-5353ed9bf6e1/" + }, + "bgpSettings": { + "asn": 65514, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetAdvertisedRoutes.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetAdvertisedRoutes.json new file mode 100644 index 000000000000..e24112a7f88a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetAdvertisedRoutes.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw", + "peer": "test" + }, + "responses": { + "202": {}, + "200": { + "body": {} + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetBGPPeerStatus.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetBGPPeerStatus.json new file mode 100644 index 000000000000..e4a21a7b56ef --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetBGPPeerStatus.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw" + }, + "responses": { + "202": {}, + "200": { + "body": {} + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json new file mode 100644 index 000000000000..0fe2a3baf8a2 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw" + }, + "responses": { + "200": { + "body": { + "saLifeTimeSeconds": 86473, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup2", + "pfsGroup": "PFS2" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetVpnProfilePackageUrl.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetVpnProfilePackageUrl.json new file mode 100644 index 000000000000..3057f56047a8 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetVpnProfilePackageUrl.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw" + }, + "responses": { + "202": {}, + "200": { + "body": "" + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json new file mode 100644 index 000000000000..ecd3ecd4949e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "resourceGroupName": "p2s-vnet-test", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "virtualNetworkGatewayName": "vpnp2sgw" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "vpnConnectionId": "IKEv2_1e1cfe59-5c7c-4315-a876-b11fbfdfeed4", + "vpnConnectionDuration": 900, + "vpnConnectionTime": "2019-05-02T22:26:22", + "publicIpAddress": "167.220.2.232:45522", + "privateIpAddress": "192.168.210.2", + "vpnUserName": "gwp2schildcert", + "maxBandwidth": 240000000, + "egressPacketsTransferred": 557, + "egressBytesTransferred": 33420, + "ingressPacketsTransferred": 557, + "ingressBytesTransferred": 33420, + "maxPacketsPerSecond": 4 + }, + { + "vpnConnectionId": "IKEv2_571cfe59-2c7d-1415-e813-c51fbfdfea16", + "vpnConnectionDuration": 800, + "vpnConnectionTime": "2019-05-01T21:06:12", + "publicIpAddress": "167.220.2.232:45213", + "privateIpAddress": "192.168.210.1", + "vpnUserName": "gwp2schildcert", + "maxBandwidth": 220000000, + "egressPacketsTransferred": 357, + "egressBytesTransferred": 23420, + "ingressPacketsTransferred": 357, + "ingressBytesTransferred": 23420, + "maxPacketsPerSecond": 4 + } + ] + } + }, + "202": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayLearnedRoutes.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayLearnedRoutes.json new file mode 100644 index 000000000000..e4a21a7b56ef --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayLearnedRoutes.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw" + }, + "responses": { + "202": {}, + "200": { + "body": {} + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayList.json new file mode 100644 index 000000000000..644137ba8f00 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayList.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "vpngw1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/virtualNetworkGateways", + "location": "loc1", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "ipConfigurations": [ + { + "name": "default", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw1/ipConfigurations/default", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/vpngw1-ip" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet" + } + } + } + ], + "sku": { + "name": "VpnGw1", + "tier": "VpnGw1", + "capacity": 2 + }, + "gatewayType": "Vpn", + "vpnType": "RouteBased", + "enableBgp": false, + "activeActive": false, + "vpnClientConfiguration": { + "vpnClientProtocols": [], + "vpnClientRootCertificates": [], + "vpnClientRevokedCertificates": [] + }, + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.0.14", + "peerWeight": 0 + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + } + } + }, + { + "name": "vpngw2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw2", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/virtualNetworkGateways", + "location": "loc2", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "ipConfigurations": [ + { + "name": "default", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw2/ipConfigurations/default", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/vpngw2-ip" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/GatewaySubnet" + } + } + } + ], + "sku": { + "name": "VpnGw1", + "tier": "VpnGw1", + "capacity": 2 + }, + "gatewayType": "Vpn", + "vpnType": "RouteBased", + "enableBgp": false, + "activeActive": false, + "vpnClientConfiguration": { + "vpnClientProtocols": [ + "OpenVPN" + ], + "vpnClientRootCertificates": [], + "vpnClientRevokedCertificates": [], + "aadTenant": "https://login.microsoftonline.com/99163270-c9ab-4279-bb12-5353ed9bf6e1", + "aadAudience": "fd11706c-e78c-4828-8be7-ac7dcefd4b17", + "aadIssuer": "https://sts.windows.net/99163270-c9ab-4279-bb12-5353ed9bf6e1/" + }, + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.1.0.46", + "peerWeight": 0 + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayReset.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayReset.json new file mode 100644 index 000000000000..5b3604e9d6bd --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayReset.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw" + }, + "responses": { + "202": {}, + "200": { + "body": { + "name": "vpngw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/virtualNetworkGateways", + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "ipConfigurations": [ + { + "name": "gwipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/gwipconfig1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet" + } + } + } + ], + "sku": { + "name": "VpnGw1", + "tier": "VpnGw1", + "capacity": 0 + }, + "gatewayType": "Vpn", + "vpnType": "RouteBased", + "enableBgp": false, + "activeActive": false, + "bgpSettings": { + "asn": 65514, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayResetVpnClientSharedKey.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayResetVpnClientSharedKey.json new file mode 100644 index 000000000000..57f686ee2dae --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayResetVpnClientSharedKey.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw" + }, + "responses": { + "202": {}, + "200": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewaySetVpnClientIpsecParameters.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewaySetVpnClientIpsecParameters.json new file mode 100644 index 000000000000..852dbb68dae0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewaySetVpnClientIpsecParameters.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw", + "vpnclientIpsecParams": { + "saLifeTimeSeconds": 86473, + "saDataSizeKilobytes": 429497, + "ipsecEncryption": "AES256", + "ipsecIntegrity": "SHA256", + "ikeEncryption": "AES256", + "ikeIntegrity": "SHA384", + "dhGroup": "DHGroup2", + "pfsGroup": "PFS2" + } + }, + "responses": { + "202": {}, + "200": { + "body": "" + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewaySupportedVpnDevice.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewaySupportedVpnDevice.json new file mode 100644 index 000000000000..71c2500bff90 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewaySupportedVpnDevice.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw" + }, + "responses": { + "200": { + "body": "" + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayUpdate.json new file mode 100644 index 000000000000..05ae9a30b840 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayUpdate.json @@ -0,0 +1,165 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw", + "parameters": { + "properties": { + "ipConfigurations": [ + { + "properties": { + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet" + }, + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip" + } + }, + "name": "gwipconfig1" + } + ], + "gatewayType": "Vpn", + "vpnType": "RouteBased", + "enableBgp": false, + "activeActive": false, + "sku": { + "name": "VpnGw1", + "tier": "VpnGw1" + }, + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + } + }, + "location": "centralus" + } + }, + "responses": { + "200": { + "body": { + "name": "vpngw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/virtualNetworkGateways", + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "ipConfigurations": [ + { + "name": "gwipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/gwipconfig1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet" + } + } + } + ], + "sku": { + "name": "VpnGw1", + "tier": "VpnGw1", + "capacity": 0 + }, + "gatewayType": "Vpn", + "vpnType": "RouteBased", + "enableBgp": false, + "activeActive": false, + "vpnClientConfiguration": { + "vpnClientProtocols": [ + "OpenVPN" + ], + "vpnClientRootCertificates": [], + "vpnClientRevokedCertificates": [], + "aadTenant": "", + "aadAudience": "", + "aadIssuer": "" + }, + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + } + } + } + }, + "201": { + "body": { + "name": "vpngw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/virtualNetworkGateways", + "location": "centralus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "ipConfigurations": [ + { + "name": "gwipconfig1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/gwipconfig1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet" + } + } + } + ], + "sku": { + "name": "VpnGw1", + "tier": "VpnGw1", + "capacity": 0 + }, + "gatewayType": "Vpn", + "vpnType": "RouteBased", + "enableBgp": false, + "activeActive": false, + "vpnClientConfiguration": { + "vpnClientProtocols": [ + "OpenVPN" + ], + "vpnClientRootCertificates": [], + "vpnClientRevokedCertificates": [], + "aadTenant": "https://login.microsoftonline.com/99163270-c9ab-4279-bb12-5353ed9bf6e1", + "aadAudience": "fd11706c-e78c-4828-8be7-ac7dcefd4b17", + "aadIssuer": "https://sts.windows.net/99163270-c9ab-4279-bb12-5353ed9bf6e1/" + }, + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayUpdateTags.json new file mode 100644 index 000000000000..c57956edfd7b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayUpdateTags.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayName": "vpngw", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "202": {}, + "200": { + "body": { + "name": "vpngw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw", + "type": "Microsoft.Network/virtualNetworkGateways", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "ipConfigurations": [ + { + "name": "default", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/default", + "properties": { + "provisioningState": "Succeeded", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/testpub1" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/GatewaySubnet" + } + } + } + ], + "sku": { + "name": "VpnGw1", + "tier": "VpnGw1", + "capacity": 2 + }, + "gatewayType": "Vpn", + "vpnType": "RouteBased", + "enableBgp": false, + "activeActive": false, + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.0.254", + "peerWeight": 0 + }, + "customRoutes": { + "addressPrefixes": [ + "101.168.0.6/32" + ] + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayVpnDeviceConfigurationScript.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayVpnDeviceConfigurationScript.json new file mode 100644 index 000000000000..d5cb556ca1d7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewayVpnDeviceConfigurationScript.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkGatewayConnectionName": "vpngw", + "parameters": { + "vendor": "Cisco", + "deviceFamily": "ISR", + "firmwareVersion": "IOS 15.1 (Preview)" + } + }, + "responses": { + "200": { + "body": "! Microsoft Corporation\r\n! ---------------------------------------------------------------------------------------------------------------------\r\n! Sample VPN tunnel configuration template for IOS-based devices\r\n!\r\n! This configuration template applies to Cisco VPN devices running IOS 15.1 or beyond (ISR or ASR)\r\n!\r\n\r\n\r\n\t\t\r\n\r\n! ---------------------------------------------------------------------------------------------------------------------\r\n! ACL rules\r\n!\r\n! Some VPN devices require explicit ACL rules to allow cross-premises traffic:\r\n!\r\n! 1. Allow traffic between on premises address ranges and VNet address ranges\r\n! 2. Allow IKE traffic (UDP:500) between on premises VPN devices and Azure VPN gateway\r\n! 3. Allow IPsec traffic (Proto:ESP) between on premises VPN devices and Azure VPN gateway\r\n!\r\n\t\t\r\naccess-list 101 permit ip 10.1.0.0 0.0.255.255 10.0.0.0 0.0.255.255\r\n\r\n! ---------------------------------------------------------------------------------------------------------------------\r\n! Internet Key Exchange (IKE) configuration\r\n!\r\n! This section specifies the authentication, encryption, hashing, and Diffie-Hellman group parameters for IKE\r\n! main mode or phase 1\r\n!\r\n\r\ncrypto ikev2 proposal SwaggerS2S-proposal\r\n encryption DES3\r\n integrity SHA384\r\n group DHGroup24\r\n lifetime 3600\r\n exit\r\n\r\ncrypto ikev2 policy SwaggerS2S-policy\r\n proposal SwaggerS2S-proposal\r\n exit\r\n\r\ncrypto ikev2 keyring SwaggerBranch-keyring\r\n\t\t\r\n\t\tpeer 52.173.199.254\r\n\t\taddress 52.173.199.254\r\n\t\tpre-shared-key lALEHuppeopJmA94exRNiRr2QzuZ6lOsvzu5IlJUEA6LthbTc8g5MTT86MCsGNMzGkTAaLuLnEJoD1Cn4cIlr94qKZm9drsgllzWvsPNezS71stAkaW1Bb7h6GBnDlDP\r\n exit\r\n\r\ncrypto ikev2 profile SwaggerS2S-profile\r\n match address local 10.3.0.0\r\n\tmatch identity remote address 52.173.199.254 255.255.255.255\r\n\t\t\r\n authentication remote pre-share\r\n authentication local pre-share\r\n keyring SwaggerBranch-keyring\r\n exit\r\n\r\n! ---------------------------------------------------------------------------------------------------------------------\r\n! IPsec configuration\r\n!\r\n! This section specifies encryption, authentication, tunnel mode properties for the Phase 2 negotiation\r\n!\r\ncrypto ipsec transform-set SwaggerS2S-TransformSet DES3 DES3\r\n mode tunnel\r\n exit\r\n\r\n! ---------------------------------------------------------------------------------------------------------------------\r\n! Crypto map configuration\r\n!\r\n! This section defines a crypto profile that binds the cross-premises network traffic to the IPsec and IKE\r\n! policy profiles for this connection. Then defines the VTI (virtual tunnel interface) with the crypto\r\n! profile. A random interface number (tunnel 1) was used with a random link local address (169.254.0.1/28)\r\n! for the tunnel interface. If either selection is already used in the VPN device, please select another\r\n! interface number or address. The only requirement is that they must not overlap with another interface\r\n! on the same VPN device.\r\n!\r\ncrypto ipsec profile SwaggerS2S-IPsecProfile\r\n set transform-set SwaggerS2S-TransformSet\r\n set ikev2-profile SwaggerS2S-profile\r\n set pfs None\r\n set security-association lifetime 3600\r\n exit\r\n\r\n\r\nint tunnel 52.173.199.254\r\n ip address 169.254.0.1 255.255.255.252\r\n ip tcp adjust-mss 1350\r\n tunnel source 10.3.0.0\r\n tunnel mode ipsec ipv4\r\n tunnel destination 52.173.199.254\r\n tunnel protection ipsec profile SwaggerS2S-IPsecProfile\r\n exit\r\n\r\n\tip route 10.0.0.0 255.255.0.0 tunnel 52.173.199.254 " + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewaysListConnections.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewaysListConnections.json new file mode 100644 index 000000000000..728ea07d74dd --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGatewaysListConnections.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "testrg", + "virtualNetworkGatewayName": "test-vpn-gateway-1", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-vpn-connection", + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/connections/test-vpn-connection", + "etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", + "type": "Microsoft.Network/connections", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworkGateway1": { + "id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkGateways/test-vpn-gateway-1" + }, + "virtualNetworkGateway2": { + "id": "/subscriptions/subid/resourceGroups/testrg-2/providers/Microsoft.Network/virtualNetworkGateways/test-vpn-gateway-2" + }, + "connectionType": "Vnet2Vnet", + "routingWeight": 22, + "enableBgp": true, + "usePolicyBasedTrafficSelectors": false, + "ipsecPolicies": [], + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0 + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGet.json new file mode 100644 index 000000000000..29e0c8d4fff4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGet.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkName": "test-vnet" + }, + "responses": { + "200": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "name": "subnet1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.1.0/24", + "ipConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe" + } + ] + } + } + ], + "virtualNetworkPeerings": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGetResourceNavigationLinks.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGetResourceNavigationLinks.json new file mode 100644 index 000000000000..743eec618e18 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGetResourceNavigationLinks.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkName": "vnet", + "subnetName": "subnet" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "redisCache_redis-tester", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet/subnets/subnet/resourceNavigationLinks/redisCache_redis-tester", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/virtualNetworks/subnets/resourceNavigationLinks", + "properties": { + "provisioningState": "Succeeded", + "linkedResourceType": "Microsoft.Cache/redis", + "link": "/subscriptions/subid/resourceGroups/another-rg/providers/Microsoft.Cache/Redis/redis-tester" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGetServiceAssociationLinks.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGetServiceAssociationLinks.json new file mode 100644 index 000000000000..93a11b6b48ea --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGetServiceAssociationLinks.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkName": "vnet", + "subnetName": "subnet" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "acisal", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet/subnets/subnet/serviceAssociationLinks/acisal", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/virtualNetworks/subnets/serviceAssociationLinks", + "properties": { + "provisioningState": "Succeeded", + "linkedResourceType": "Microsoft.ContainerInstance/containerGroups", + "allowDelete": true, + "locations": [ + "westus" + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGetWithServiceAssociationLink.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGetWithServiceAssociationLink.json new file mode 100644 index 000000000000..81765779ea73 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGetWithServiceAssociationLink.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "virtualNetworkName": "test-vnet" + }, + "responses": { + "200": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "name": "subnet1", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1", + "etag": "W/\"4d3e91b4-f67f-48be-880b-e4a8abdd019e\"", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.214.0/24", + "ipConfigurationProfiles": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0/ipConfigurations/ipconfigprofile1" + } + ], + "serviceAssociationLinks": [ + { + "name": "serviceAssociationLink1", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1/serviceAssociationLinks/serviceAssociationLink1", + "etag": "W/\"4d3e91b4-f67f-48be-880b-e4a8abdd019e\"", + "properties": { + "provisioningState": "Succeeded", + "linkedResourceType": "Microsoft.Provider/resourceType" + } + } + ], + "serviceEndpoints": [], + "delegations": [ + { + "name": "aciDelegation", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1/delegations/aciDelegation", + "etag": "W/\"4d3e91b4-f67f-48be-880b-e4a8abdd019e\"", + "properties": { + "provisioningState": "Succeeded", + "serviceName": "Microsoft.Provider/resourceType", + "actions": [ + "Microsoft.Network/virtualNetworks/subnets/action" + ] + } + } + ] + } + } + ], + "virtualNetworkPeerings": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGetWithSubnetDelegation.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGetWithSubnetDelegation.json new file mode 100644 index 000000000000..79f87aa0f811 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkGetWithSubnetDelegation.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subId", + "resourceGroupName": "rg1", + "virtualNetworkName": "test-vnet" + }, + "responses": { + "200": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [ + { + "name": "subnet1", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.1.0/24", + "ipConfigurations": [ + { + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe" + } + ], + "delegations": [ + { + "name": "myDelegation", + "id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1/delegations/myDelegation", + "properties": { + "provisioningState": "Succeeded", + "serviceName": "Microsoft.Provider/resourceType", + "actions": [] + } + } + ], + "purpose": "" + } + } + ], + "virtualNetworkPeerings": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkList.json new file mode 100644 index 000000000000..2c849d553654 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkList.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1", + "name": "vnet1", + "type": "Microsoft.Network/virtualNetworks", + "location": "westus", + "properties": { + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/8" + ] + }, + "dhcpOptions": { + "dnsServers": [] + }, + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/test-1", + "name": "test-1", + "properties": { + "addressPrefix": "10.0.0.0/24", + "provisioningState": "Succeeded" + } + } + ], + "virtualNetworkPeerings": [], + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2", + "name": "vnet2", + "type": "Microsoft.Network/virtualNetworks", + "location": "westus", + "properties": { + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "dhcpOptions": { + "dnsServers": [ + "8.8.8.8" + ] + }, + "subnets": [], + "virtualNetworkPeerings": [], + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkListAll.json new file mode 100644 index 000000000000..536723df9f5e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkListAll.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1", + "name": "vnet1", + "type": "Microsoft.Network/virtualNetworks", + "location": "westus", + "properties": { + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/8" + ] + }, + "dhcpOptions": { + "dnsServers": [] + }, + "subnets": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/test-1", + "name": "test-1", + "properties": { + "addressPrefix": "10.0.0.0/24", + "provisioningState": "Succeeded" + } + } + ], + "virtualNetworkPeerings": [], + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet2", + "name": "vnet2", + "type": "Microsoft.Network/virtualNetworks", + "location": "westus", + "properties": { + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "dhcpOptions": { + "dnsServers": [ + "8.8.8.8" + ] + }, + "subnets": [], + "virtualNetworkPeerings": [], + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkListUsage.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkListUsage.json new file mode 100644 index 000000000000..a0afde114836 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkListUsage.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "virtualNetworkName": "vnetName", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "currentValue": -1.0, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetName/subnets/GatewaySubnet", + "limit": -1.0, + "name": { + "localizedValue": "Subnet size and usage", + "value": "SubnetSpace" + }, + "unit": "Count" + }, + { + "currentValue": 2.0, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetName/subnets/newSubnet", + "limit": 3.0, + "name": { + "localizedValue": "Subnet size and usage", + "value": "SubnetSpace" + }, + "unit": "Count" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkPeeringCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkPeeringCreate.json new file mode 100644 index 000000000000..58171c502915 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkPeeringCreate.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "virtualNetworkPeeringName": "peer", + "virtualNetworkName": "vnet1", + "resourceGroupName": "peerTest", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "VirtualNetworkPeeringParameters": { + "properties": { + "allowVirtualNetworkAccess": true, + "allowForwardedTraffic": true, + "allowGatewayTransit": false, + "useRemoteGateways": false, + "remoteVirtualNetwork": { + "id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet1/virtualNetworkPeerings/peer", + "name": "peer", + "properties": { + "allowVirtualNetworkAccess": true, + "allowForwardedTraffic": true, + "allowGatewayTransit": false, + "useRemoteGateways": false, + "remoteVirtualNetwork": { + "id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2" + }, + "remoteAddressSpace": { + "addressPrefixes": [ + "12.0.0.0/8" + ] + }, + "peeringState": "Initiated", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet1/virtualNetworkPeerings/peer", + "name": "peer", + "properties": { + "allowVirtualNetworkAccess": true, + "allowForwardedTraffic": true, + "allowGatewayTransit": false, + "useRemoteGateways": false, + "remoteVirtualNetwork": { + "id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2" + }, + "remoteAddressSpace": { + "addressPrefixes": [ + "12.0.0.0/8" + ] + }, + "peeringState": "Initiated", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkPeeringDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkPeeringDelete.json new file mode 100644 index 000000000000..fbddd5249534 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkPeeringDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "virtualNetworkPeeringName": "peer", + "virtualNetworkName": "vnet1", + "resourceGroupName": "peerTest", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkPeeringGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkPeeringGet.json new file mode 100644 index 000000000000..57235635a53e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkPeeringGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "virtualNetworkPeeringName": "peer", + "virtualNetworkName": "vnet1", + "resourceGroupName": "peerTest", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet1/virtualNetworkPeerings/peer", + "name": "peer", + "properties": { + "allowVirtualNetworkAccess": true, + "allowForwardedTraffic": true, + "allowGatewayTransit": false, + "useRemoteGateways": false, + "remoteVirtualNetwork": { + "id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2" + }, + "remoteAddressSpace": { + "addressPrefixes": [ + "12.0.0.0/8" + ] + }, + "peeringState": "Initiated", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkPeeringList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkPeeringList.json new file mode 100644 index 000000000000..079ea2c9edf9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkPeeringList.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "virtualNetworkName": "vnet1", + "resourceGroupName": "peerTest", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet1/virtualNetworkPeerings/peer", + "name": "peer", + "properties": { + "allowVirtualNetworkAccess": true, + "allowForwardedTraffic": true, + "allowGatewayTransit": false, + "useRemoteGateways": false, + "remoteVirtualNetwork": { + "id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2" + }, + "remoteAddressSpace": { + "addressPrefixes": [ + "12.0.0.0/8" + ] + }, + "peeringState": "Initiated", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet1/virtualNetworkPeerings/peer2", + "name": "peer", + "properties": { + "allowVirtualNetworkAccess": true, + "allowForwardedTraffic": false, + "allowGatewayTransit": false, + "useRemoteGateways": false, + "remoteVirtualNetwork": { + "id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet3" + }, + "remoteAddressSpace": { + "addressPrefixes": [ + "13.0.0.0/8" + ] + }, + "peeringState": "Initiated", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapCreate.json new file mode 100644 index 000000000000..f63731627c58 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapCreate.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "tapName": "test-vtap", + "parameters": { + "properties": { + "destinationNetworkInterfaceIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/ipconfig1" + } + }, + "location": "centraluseuap" + } + }, + "responses": { + "200": { + "body": { + "name": "testvtap", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap", + "etag": "etag", + "type": "Microsoft.Network/virtualNetworkTaps", + "location": "centraluseuap", + "properties": { + "destinationNetworkInterfaceIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1" + }, + "destinationPort": 4789, + "provisioningState": "Succeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F", + "networkInterfaceTapConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface2/tapConfigurations/testtapConfiguration" + } + ] + } + } + }, + "201": { + "body": { + "name": "testvtap", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap", + "etag": "etag", + "type": "Microsoft.Network/virtualNetworkTaps", + "location": "centraluseuap", + "properties": { + "destinationNetworkInterfaceIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1" + }, + "destinationPort": 4789, + "provisioningState": "Succeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F", + "networkInterfaceTapConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface2/tapConfigurations/testtapConfiguration" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapDelete.json new file mode 100644 index 000000000000..eab32c6fb583 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "tapName": "test-vtap" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapGet.json new file mode 100644 index 000000000000..3517583d419c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "tapName": "testvtap" + }, + "responses": { + "200": { + "body": { + "name": "testvtap", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap", + "etag": "etag", + "type": "Microsoft.Network/virtualNetworkTaps", + "location": "centraluseuap", + "properties": { + "destinationNetworkInterfaceIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1" + }, + "destinationPort": 4789, + "provisioningState": "Succeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F", + "networkInterfaceTapConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface2/tapConfigurations/testtapConfiguration" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapList.json new file mode 100644 index 000000000000..29273797fe1d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapList.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testvtap", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap", + "etag": "etag", + "type": "Microsoft.Network/virtualNetworkTaps", + "location": "centraluseuap", + "properties": { + "destinationNetworkInterfaceIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1" + }, + "destinationPort": 4789, + "provisioningState": "Succeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F", + "networkInterfaceTapConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface2/tapConfigurations/testtapConfiguration" + } + ] + } + }, + { + "name": "testvtap2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap2", + "etag": "etag", + "type": "Microsoft.Network/virtualNetworkTaps", + "location": "centraluseuap", + "properties": { + "destinationNetworkInterfaceIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1" + }, + "destinationPort": 4789, + "provisioningState": "Succeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F", + "networkInterfaceTapConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface3/tapConfigurations/testtapConfiguration" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapListAll.json new file mode 100644 index 000000000000..839135ca10c9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapListAll.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testvtap", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap", + "etag": "etag", + "type": "Microsoft.Network/virtualNetworkTaps", + "location": "centraluseuap", + "properties": { + "destinationNetworkInterfaceIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1" + }, + "destinationPort": 4789, + "provisioningState": "Succeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F", + "networkInterfaceTapConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface2/tapConfigurations/testtapConfiguration" + } + ] + } + }, + { + "name": "testvtap2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/testvtap2", + "etag": "etag", + "type": "Microsoft.Network/virtualNetworkTaps", + "location": "centraluseuap", + "properties": { + "destinationNetworkInterfaceIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1" + }, + "destinationPort": 4789, + "provisioningState": "Succeded", + "resourceGuid": "6A7C139D-8B8D-499B-B7CB-4F3F02A8A44F", + "networkInterfaceTapConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface3/tapConfigurations/testtapConfiguration" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapUpdateTags.json new file mode 100644 index 000000000000..750fa6db1098 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkTapUpdateTags.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "tapName": "test-vtap", + "tapParameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-vtap", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkTaps/test-vtap", + "location": "eastus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "destinationNetworkInterfaceIPConfiguration": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/testIPConfig1" + }, + "destinationPort": 4789, + "provisioningState": "Succeded", + "networkInterfaceTapConfigurations": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface2/tapConfigurations/testtapConfiguration" + } + ] + }, + "type": "Microsoft.Network/virtualNetworkTaps" + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkUpdateTags.json new file mode 100644 index 000000000000..159ed633384e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualNetworkUpdateTags.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualNetworkName": "test-vnet", + "location": "westus", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-vnet", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet", + "type": "Microsoft.Network/virtualNetworks", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [], + "virtualNetworkPeerings": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANDelete.json new file mode 100644 index 000000000000..317975eee94b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "VirtualWANName": "virtualWan1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANGet.json new file mode 100644 index 000000000000..77f37954fb3b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANGet.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "VirtualWANName": "wan1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "wan1", + "type": "Microsoft.Network/virtualWANs", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "disableVpnEncryption": false, + "virtualHubs": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub2" + ], + "vpnSites": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite2" + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANList.json new file mode 100644 index 000000000000..580d7391baa7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANList.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "wan1", + "type": "Microsoft.Network/virtualWANs", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "disableVpnEncryption": false, + "virtualHubs": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub2" + ], + "vpnSites": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite2" + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualWANs/wan2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "East US", + "name": "wan2", + "type": "Microsoft.Network/virtualWANs", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "disableVpnEncryption": false, + "virtualHubs": [ + "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/hub1", + "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/hub2" + ], + "vpnSites": [ + "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/vpnSites/vpnSite1", + "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/vpnSites/vpnSite2" + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANListByResourceGroup.json new file mode 100644 index 000000000000..75be22ec3327 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANListByResourceGroup.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "wan1", + "type": "Microsoft.Network/virtualWANs", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "disableVpnEncryption": false, + "virtualHubs": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub2" + ], + "vpnSites": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite2" + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "East US", + "name": "wan2", + "type": "Microsoft.Network/virtualWANs", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "disableVpnEncryption": false, + "virtualHubs": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub3", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub4" + ], + "vpnSites": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite3", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite4" + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANPut.json new file mode 100644 index 000000000000..98d9214fb78d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANPut.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "VirtualWANName": "wan1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "WANParameters": { + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "disableVpnEncryption": false + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "wan1", + "type": "Microsoft.Network/virtualWANs", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "disableVpnEncryption": false, + "virtualHubs": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub2" + ], + "vpnSites": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite2" + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "wan1", + "type": "Microsoft.Network/virtualWANs", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "disableVpnEncryption": false, + "virtualHubs": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub2" + ], + "vpnSites": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite2" + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANUpdateTags.json new file mode 100644 index 000000000000..198dc210e074 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWANUpdateTags.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "VirtualWANName": "wan1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "WANParameters": { + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "wan1", + "type": "Microsoft.Network/virtualWANs", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "disableVpnEncryption": false, + "virtualHubs": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub2" + ], + "vpnSites": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite2" + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "wan1", + "type": "Microsoft.Network/virtualWANs", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "disableVpnEncryption": false, + "virtualHubs": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub2" + ], + "vpnSites": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite2" + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWanSupportedSecurityProviders.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWanSupportedSecurityProviders.json new file mode 100644 index 000000000000..3ea259aa0f79 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VirtualWanSupportedSecurityProviders.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "virtualWANName": "wan1" + }, + "responses": { + "200": { + "description": "Request successful.", + "body": { + "supportedProviders": [ + { + "name": "AzureFirewall", + "url": "", + "type": "Native" + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssNetworkInterfaceGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssNetworkInterfaceGet.json new file mode 100644 index 000000000000..bb1b21c63014 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssNetworkInterfaceGet.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2017-03-30", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "networkInterfaceName": "nic1", + "virtualMachineScaleSetName": "vmss1", + "virtualmachineIndex": "1" + }, + "responses": { + "200": { + "body": { + "name": "nic1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ip1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.5", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1/publicIPAddresses/pub1" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1" + }, + "primary": true, + "privateIPAddressVersion": "IPv4", + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/addressPool1" + } + ], + "loadBalancerInboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/natPool1.1" + } + ] + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [], + "internalDomainNameSuffix": "dns.cdmx.internal.cloudapp.net" + }, + "macAddress": "00-00-00-00-00-00", + "enableAcceleratedNetworking": false, + "enableIPForwarding": false, + "networkSecurityGroup": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1" + }, + "primary": true, + "virtualMachine": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1" + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssNetworkInterfaceIpConfigGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssNetworkInterfaceIpConfigGet.json new file mode 100644 index 000000000000..3b0b460e3e5d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssNetworkInterfaceIpConfigGet.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2017-03-30", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualMachineScaleSetName": "vmss1", + "virtualmachineIndex": "2", + "networkInterfaceName": "nic1", + "ipConfigurationName": "ip1" + }, + "responses": { + "200": { + "body": { + "name": "ip1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/2/networkInterfaces/nic1/ipConfigurations/ip1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.6", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1" + }, + "primary": true, + "privateIPAddressVersion": "IPv4", + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/addressPool1" + } + ], + "loadBalancerInboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/natPool1.2" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssNetworkInterfaceIpConfigList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssNetworkInterfaceIpConfigList.json new file mode 100644 index 000000000000..096c72dd6cd5 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssNetworkInterfaceIpConfigList.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2017-03-30", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualMachineScaleSetName": "vmss1", + "virtualmachineIndex": "2", + "networkInterfaceName": "nic1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ip1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/2/networkInterfaces/nic1/ipConfigurations/ip1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.6", + "privateIPAllocationMethod": "Dynamic", + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1" + }, + "primary": true, + "privateIPAddressVersion": "IPv4", + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/addressPool1" + } + ], + "loadBalancerInboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/natPool1.2" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssNetworkInterfaceList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssNetworkInterfaceList.json new file mode 100644 index 000000000000..a554ba43fc16 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssNetworkInterfaceList.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "api-version": "2017-03-30", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualMachineScaleSetName": "vmss1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nic1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/nic1", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ip1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/nic1/ipConfigurations/ip1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.4", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/nic1/ipConfigurations/ip1/publicIPAddresses/pub1" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1" + }, + "primary": true, + "privateIPAddressVersion": "IPv4", + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/addressPool1" + } + ], + "loadBalancerInboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/natPool1.0" + } + ] + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [], + "internalDomainNameSuffix": "ruw4wz3grewudjsyzrxj44pxod.cdmx.internal.cloudapp.net" + }, + "macAddress": "00-00-00-00-00-00", + "enableAcceleratedNetworking": false, + "enableIPForwarding": false, + "networkSecurityGroup": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1" + }, + "primary": true, + "virtualMachine": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0" + } + } + }, + { + "name": "nic1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ip1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.5", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1/publicIPAddresses/pub1" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1" + }, + "primary": true, + "privateIPAddressVersion": "IPv4", + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/addressPool1" + } + ], + "loadBalancerInboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/natPool1.1" + } + ] + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [], + "internalDomainNameSuffix": "ruw4wz3grewudjsyzrxj44pxod.cdmx.internal.cloudapp.net" + }, + "macAddress": "00-00-00-00-00-00", + "enableAcceleratedNetworking": false, + "enableIPForwarding": false, + "networkSecurityGroup": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1" + }, + "primary": true, + "virtualMachine": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1" + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssPublicIpGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssPublicIpGet.json new file mode 100644 index 000000000000..3601aa554519 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssPublicIpGet.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "virtualMachineScaleSetName": "vmss1", + "resourceGroupName": "vmss-tester", + "api-version": "2017-03-30", + "subscriptionId": "subid", + "virtualmachineIndex": 1, + "networkInterfaceName": "nic1", + "ipConfigurationName": "ip1", + "publicIpAddressName": "pub1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/vmss-tester/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1/publicIPAddresses/pub1", + "name": "pub1", + "properties": { + "publicIPAllocationMethod": "Dynamic", + "publicIPAddressVersion": "IPv4", + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/vmss-tester/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1" + }, + "dnsSettings": { + "domainNameLabel": "vm1.testvmssacc", + "fqdn": "vm1.testvmssacc.southeastasia.cloudapp.azure.com" + }, + "ipAddress": "13.67.119.72", + "idleTimeoutInMinutes": 10, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssPublicIpListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssPublicIpListAll.json new file mode 100644 index 000000000000..2371537ba644 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssPublicIpListAll.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "virtualMachineScaleSetName": "vmss1", + "resourceGroupName": "vmss-tester", + "api-version": "2017-03-30", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/vmss-tester/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1/publicIPAddresses/pub1", + "name": "pub1", + "properties": { + "publicIPAllocationMethod": "Dynamic", + "publicIPAddressVersion": "IPv4", + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/vmss-tester/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1" + }, + "dnsSettings": { + "domainNameLabel": "vm1.testvmssacc", + "fqdn": "vm1.testvmssacc.southeastasia.cloudapp.azure.com" + }, + "ipAddress": "13.67.119.72", + "idleTimeoutInMinutes": 10, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/vmss-tester/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/nic1/ipConfigurations/ip1/publicIPAddresses/pub1", + "name": "pub1", + "properties": { + "publicIPAllocationMethod": "Dynamic", + "publicIPAddressVersion": "IPv4", + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/vmss-tester/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/nic1/ipConfigurations/ip1" + }, + "dnsSettings": { + "domainNameLabel": "vm3.testvmssacc", + "fqdn": "vm3.testvmssacc.southeastasia.cloudapp.azure.com" + }, + "ipAddress": "13.67.118.216", + "idleTimeoutInMinutes": 10, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssVmNetworkInterfaceList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssVmNetworkInterfaceList.json new file mode 100644 index 000000000000..b351fa9dce32 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssVmNetworkInterfaceList.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2017-03-30", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "virtualMachineScaleSetName": "vmss1", + "virtualmachineIndex": "1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nic1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1", + "properties": { + "provisioningState": "Succeeded", + "ipConfigurations": [ + { + "name": "ip1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1", + "properties": { + "provisioningState": "Succeeded", + "privateIPAddress": "10.0.0.5", + "privateIPAllocationMethod": "Dynamic", + "publicIPAddress": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1/publicIPAddresses/pub1" + }, + "subnet": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1" + }, + "primary": true, + "privateIPAddressVersion": "IPv4", + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/addressPool1" + } + ], + "loadBalancerInboundNatRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/natPool1.1" + } + ] + } + } + ], + "dnsSettings": { + "dnsServers": [], + "appliedDnsServers": [], + "internalDomainNameSuffix": "ruw4wz3grewudjsyzrxj44pxod.cdmx.internal.cloudapp.net" + }, + "macAddress": "00-00-00-00-00-00", + "enableAcceleratedNetworking": false, + "enableIPForwarding": false, + "networkSecurityGroup": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1" + }, + "primary": true, + "virtualMachine": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1" + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssVmPublicIpList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssVmPublicIpList.json new file mode 100644 index 000000000000..5df78ff0a7d1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VmssVmPublicIpList.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "virtualMachineScaleSetName": "vmss1", + "resourceGroupName": "vmss-tester", + "api-version": "2017-03-30", + "subscriptionId": "subid", + "virtualmachineIndex": 1, + "networkInterfaceName": "nic1", + "ipConfigurationName": "ip1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/vmss-tester/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1/publicIPAddresses/pub1", + "name": "pub1", + "properties": { + "publicIPAllocationMethod": "Dynamic", + "publicIPAddressVersion": "IPv4", + "ipConfiguration": { + "id": "/subscriptions/subid/resourceGroups/vmss-tester/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/nic1/ipConfigurations/ip1" + }, + "dnsSettings": { + "domainNameLabel": "vm1.testvmssacc", + "fqdn": "vm1.testvmssacc.southeastasia.cloudapp.azure.com" + }, + "ipAddress": "13.67.119.72", + "idleTimeoutInMinutes": 10, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnConnectionDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnConnectionDelete.json new file mode 100644 index 000000000000..da9e6aa927eb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnConnectionDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "connectionName": "vpnConnection1", + "gatewayName": "gateway1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnConnectionGet.json new file mode 100644 index 000000000000..f971893988ec --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnConnectionGet.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "gatewayName": "gateway1", + "connectionName": "vpnConnection1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "enableInternetSecurity": false, + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "vpnLinkConnections": [ + { + "name": "Connection-Link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link1", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + }, + { + "name": "Connection-Link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link2", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink2" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnConnectionList.json new file mode 100644 index 000000000000..cac9f569aaec --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnConnectionList.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "gatewayName": "gateway1", + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "enableInternetSecurity": false, + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "vpnLinkConnections": [ + { + "name": "Connection-Link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link1", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + }, + { + "name": "Connection-Link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link2", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink2" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + } + ] + } + } + ] + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnConnectionPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnConnectionPut.json new file mode 100644 index 000000000000..8e61992e8371 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnConnectionPut.json @@ -0,0 +1,112 @@ +{ + "parameters": { + "connectionName": "vpnConnection1", + "gatewayName": "gateway1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "VpnConnectionParameters": { + "properties": { + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "vpnLinkConnections": [ + { + "name": "Connection-Link1", + "properties": { + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1" + }, + "connectionBandwidth": 200, + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key" + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "enableInternetSecurity": false, + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "vpnLinkConnections": [ + { + "name": "Connection-Link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + } + ] + } + } + }, + "201": { + "body": { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "enableInternetSecurity": false, + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "vpnLinkConnections": [ + { + "name": "Connection-Link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayDelete.json new file mode 100644 index 000000000000..5dad1ff2eb23 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "gatewayName": "gateway1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayGet.json new file mode 100644 index 000000000000..24176b82148f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayGet.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "gatewayName": "gateway1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "enableInternetSecurity": false, + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "vpnLinkConnections": [ + { + "name": "Connection-Link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link1", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + }, + { + "name": "Connection-Link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link2", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink2" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + } + ] + } + } + ], + "bgpSettings": { + "asn": 65514, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayList.json new file mode 100644 index 000000000000..c986bc37d9e1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayList.json @@ -0,0 +1,137 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "enableInternetSecurity": false, + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "vpnLinkConnections": [ + { + "name": "Connection-Link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link1", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + }, + { + "name": "Connection-Link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link2", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink2" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + } + ] + } + } + ], + "bgpSettings": { + "asn": 65514, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + } + } + }, + { + "name": "gateway2", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/vpnGateways/gateway2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/virtualHub2" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/vpnGateways/gateway2/vpnConnections/vpnConnection2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/vpnSites/vpnSite2" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "useLocalAzureIpAddress": false, + "ipsecPolicies": [] + } + } + ], + "bgpSettings": { + "asn": 65514, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayListByResourceGroup.json new file mode 100644 index 000000000000..c986bc37d9e1 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayListByResourceGroup.json @@ -0,0 +1,137 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "enableInternetSecurity": false, + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "vpnLinkConnections": [ + { + "name": "Connection-Link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link1", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + }, + { + "name": "Connection-Link2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link2", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink2" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + } + ] + } + } + ], + "bgpSettings": { + "asn": 65514, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + } + } + }, + { + "name": "gateway2", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/vpnGateways/gateway2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualHubs/virtualHub2" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/vpnGateways/gateway2/vpnConnections/vpnConnection2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/vpnSites/vpnSite2" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "useLocalAzureIpAddress": false, + "ipsecPolicies": [] + } + } + ], + "bgpSettings": { + "asn": 65514, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayPut.json new file mode 100644 index 000000000000..623205087d7a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayPut.json @@ -0,0 +1,170 @@ +{ + "parameters": { + "gatewayName": "gateway1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "vpnGatewayParameters": { + "location": "westcentralus", + "tags": { + "key1": "value1" + }, + "properties": { + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "properties": { + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "vpnLinkConnections": [ + { + "name": "Connection-Link1", + "properties": { + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1" + }, + "connectionBandwidth": 200, + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key" + } + } + ] + } + } + ], + "bgpSettings": { + "asn": 65515, + "peerWeight": 0 + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "enableInternetSecurity": false, + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "vpnLinkConnections": [ + { + "name": "Connection-Link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + } + ] + } + } + ], + "bgpSettings": { + "asn": 65514, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + } + } + } + }, + "201": { + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "enableInternetSecurity": false, + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "vpnLinkConnections": [ + { + "name": "Connection-Link1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + } + ] + } + } + ], + "bgpSettings": { + "asn": 65514, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayReset.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayReset.json new file mode 100644 index 000000000000..179b7e0139b6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayReset.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "gatewayName": "vpngw", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "202": {}, + "200": { + "body": { + "name": "vpngw", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/vpngw", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/vpngw/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "connectionBandwidth": 100, + "sharedKey": "key", + "enableBgp": false, + "useLocalAzureIpAddress": false, + "ipsecPolicies": [] + } + } + ], + "bgpSettings": { + "asn": 65514, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayUpdateTags.json new file mode 100644 index 000000000000..475911387e91 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnGatewayUpdateTags.json @@ -0,0 +1,104 @@ +{ + "parameters": { + "gatewayName": "gateway1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "vpnGatewayParameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } + } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + } + } + } + }, + "201": { + "body": { + "name": "gateway1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "type": "Microsoft.Network/vpnGateways", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualHub": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1" + }, + "connections": [ + { + "name": "vpnConnection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "remoteVpnSite": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" + }, + "connectionStatus": "Connected", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "routingWeight": 0, + "sharedKey": "key", + "enableBgp": false, + "ipsecPolicies": [] + } + } + ], + "bgpSettings": { + "asn": 65515, + "bgpPeeringAddress": "10.0.1.30", + "peerWeight": 0 + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteDelete.json new file mode 100644 index 000000000000..4306d67c7033 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "vpnSiteName": "vpnSite1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteGet.json new file mode 100644 index 000000000000..2838651ace88 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteGet.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "vpnSiteName": "vpnSite1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "vpnSite1", + "type": "Microsoft.Network/vpnSites", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1" + }, + "deviceProperties": { + "linkSpeedInMbps": 0 + }, + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "isSecuritySite": false, + "vpnSiteLinks": [ + { + "name": "vpnSiteLink1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/vpnSiteLink1", + "type": "Microsoft.Network/vpnSites/vpnSiteLinks", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "ipAddress": "50.50.50.56", + "linkProperties": { + "linkProviderName": "vendor1", + "linkSpeedInMbps": 0 + }, + "bgpProperties": { + "bgpPeeringAddress": "192.168.0.0", + "asn": 1234 + } + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteLinkConnectionGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteLinkConnectionGet.json new file mode 100644 index 000000000000..7445a2c4aabc --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteLinkConnectionGet.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "gatewayName": "gateway1", + "connectionName": "vpnConnection1", + "linkConnectionName": "Connection-Link1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "Connection-Link1", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteLinkConnectionList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteLinkConnectionList.json new file mode 100644 index 000000000000..e0818fe22e32 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteLinkConnectionList.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "gatewayName": "gateway1", + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "connectionName": "vpnConnection1" + }, + "responses": { + "200": { + "body": [ + { + "name": "Connection-Link1", + "type": "Microsoft.Network/vpnGateways/vpnConnections/VpnSiteLinkConnections", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/VpnSiteLinkConnections/Connection-Link1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "provisioningState": "Succeeded", + "vpnSiteLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1" + }, + "connectionBandwidth": 200, + "ipsecPolicies": [], + "vpnConnectionProtocolType": "IKEv2", + "sharedKey": "key", + "ingressBytesTransferred": 0, + "egressBytesTransferred": 0, + "enableBgp": false, + "enableRateLimiting": false, + "useLocalAzureIpAddress": false, + "usePolicyBasedTrafficSelectors": false, + "routingWeight": 0 + } + } + ] + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteLinkGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteLinkGet.json new file mode 100644 index 000000000000..f7d8e5666f88 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteLinkGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "vpnSiteName": "vpnSite1", + "vpnSiteLinkName": "vpnSiteLink1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "vpnSiteLink1", + "type": "Microsoft.Network/vpnSites/vpnSiteLinks", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/vpnSiteLink1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "ipAddress": "50.50.50.56", + "linkProperties": { + "linkSpeedInMbps": 0 + }, + "bgpProperties": { + "bgpPeeringAddress": "192.168.0.0", + "asn": 1234 + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteLinkListByVpnSite.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteLinkListByVpnSite.json new file mode 100644 index 000000000000..0182284d4799 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteLinkListByVpnSite.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "vpnSiteName": "vpnSite1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "vpnSiteLink1", + "type": "Microsoft.Network/vpnSites/vpnSiteLinks", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/vpnSiteLink1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "ipAddress": "50.50.50.56", + "linkProperties": { + "linkSpeedInMbps": 200 + }, + "bgpProperties": { + "bgpPeeringAddress": "192.168.0.0", + "asn": 1234 + } + } + }, + { + "name": "vpnSiteLink2", + "type": "Microsoft.Network/vpnSites/vpnSiteLinks", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/vpnSiteLink2", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "ipAddress": "40.40.40.46", + "linkProperties": { + "linkSpeedInMbps": 200 + }, + "bgpProperties": { + "bgpPeeringAddress": "192.168.0.1", + "asn": 1234 + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteList.json new file mode 100644 index 000000000000..7e97a72c5929 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteList.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "vpnSite1", + "type": "Microsoft.Network/vpnSites", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1" + }, + "deviceProperties": { + "linkSpeedInMbps": 0 + }, + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "isSecuritySite": false, + "vpnSiteLinks": [ + { + "name": "vpnSiteLink1", + "type": "Microsoft.Network/vpnSites/vpnSiteLinks", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/vpnSiteLink1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "ipAddress": "50.50.50.56", + "linkProperties": { + "linkSpeedInMbps": 0 + }, + "bgpProperties": { + "bgpPeeringAddress": "192.168.0.0", + "asn": 1234 + } + } + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/vpnSites/vpnSite2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "East US", + "name": "vpnSite2", + "type": "Microsoft.Network/vpnSites", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualWan": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualWANs/wan1", + "deviceProperties": { + "deviceVendor": "vendor1", + "deviceModel": "model01", + "linkSpeedInMbps": 200 + }, + "ipAddress": "10.1.0.0", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "bgpProperties": { + "bgpPeeringAddress": "192.168.0.0", + "asn": 1234 + }, + "isSecuritySite": false + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteListByResourceGroup.json new file mode 100644 index 000000000000..f6085910446b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteListByResourceGroup.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "vpnSite1", + "type": "Microsoft.Network/vpnSites", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1" + }, + "deviceProperties": { + "linkSpeedInMbps": 0 + }, + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "isSecuritySite": false, + "vpnSiteLinks": [ + { + "name": "vpnSiteLink1", + "type": "Microsoft.Network/vpnSites/vpnSiteLinks", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/vpnSiteLink1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "ipAddress": "50.50.50.56", + "linkProperties": { + "linkSpeedInMbps": 0 + }, + "bgpProperties": { + "bgpPeeringAddress": "192.168.0.0", + "asn": 1234 + } + } + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite2", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "vpnSite2", + "type": "Microsoft.Network/vpnSites", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualWan": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1", + "deviceProperties": { + "deviceVendor": "vendor1", + "deviceModel": "model01", + "linkSpeedInMbps": 200 + }, + "ipAddress": "10.1.0.0", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "bgpProperties": { + "bgpPeeringAddress": "192.168.0.0", + "asn": 1234 + } + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSitePut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSitePut.json new file mode 100644 index 000000000000..1df93e6f9fb3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSitePut.json @@ -0,0 +1,136 @@ +{ + "parameters": { + "vpnSiteName": "vpnSite1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "VpnSiteParameters": { + "tags": { + "key1": "value1" + }, + "location": "West US", + "properties": { + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1" + }, + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "isSecuritySite": false, + "vpnSiteLinks": [ + { + "name": "vpnSiteLink1", + "properties": { + "ipAddress": "50.50.50.56", + "linkProperties": { + "linkProviderName": "vendor1", + "linkSpeedInMbps": 0 + }, + "bgpProperties": { + "bgpPeeringAddress": "192.168.0.0", + "asn": 1234 + } + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "vpnSite1", + "type": "Microsoft.Network/vpnSites", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1" + }, + "deviceProperties": { + "linkSpeedInMbps": 0 + }, + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "isSecuritySite": false, + "vpnSiteLinks": [ + { + "name": "vpnSiteLink1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/vpnSiteLink1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "type": "Microsoft.Network/vpnSites/vpnSiteLinks", + "properties": { + "provisioningState": "Succeeded", + "ipAddress": "50.50.50.56", + "linkProperties": { + "linkProviderName": "vendor1", + "linkSpeedInMbps": 0 + }, + "bgpProperties": { + "bgpPeeringAddress": "192.168.0.0", + "asn": 1234 + } + } + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "vpnSite1", + "type": "Microsoft.Network/vpnSites", + "tags": { + "key1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualWan": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1" + }, + "deviceProperties": { + "linkSpeedInMbps": 0 + }, + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "isSecuritySite": false, + "vpnSiteLinks": [ + { + "name": "vpnSiteLink1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/vpnSiteLink1", + "etag": "W/\"00000000-0000-0000-0000-000000000000\"", + "properties": { + "provisioningState": "Succeeded", + "ipAddress": "50.50.50.56", + "linkProperties": { + "linkProviderName": "vendor1", + "linkSpeedInMbps": 0 + }, + "bgpProperties": { + "bgpPeeringAddress": "192.168.0.0", + "asn": 1234 + } + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteUpdateTags.json new file mode 100644 index 000000000000..cff7f96d2d4b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSiteUpdateTags.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "vpnSiteName": "vpnSite1", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "subscriptionId": "subid", + "VpnSiteParameters": { + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "vpnSite1", + "type": "Microsoft.Network/vpnSites", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualWan": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1", + "deviceProperties": { + "deviceVendor": "vendor1", + "deviceModel": "model01", + "linkSpeedInMbps": 200 + }, + "ipAddress": "10.0.0.0", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "bgpProperties": { + "bgpPeeringAddress": "192.168.0.0", + "asn": 1234 + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "name": "vpnSite1", + "type": "Microsoft.Network/vpnSites", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "virtualWan": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1", + "deviceProperties": { + "deviceVendor": "vendor1", + "deviceModel": "model01", + "linkSpeedInMbps": 200 + }, + "ipAddress": "10.0.0.0", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "bgpProperties": { + "bgpPeeringAddress": "192.168.0.0", + "asn": 1234 + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSitesConfigurationDownload.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSitesConfigurationDownload.json new file mode 100644 index 000000000000..f367241ff3af --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/VpnSitesConfigurationDownload.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "api-version": "2019-06-01", + "virtualWANName": "wan1", + "request": { + "vpnSites": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/abc" + ], + "outputBlobSasUrl": "https://blobcortextesturl.blob.core.windows.net/folderforconfig/vpnFile?sp=rw&se=2018-01-10T03%3A42%3A04Z&sv=2017-04-17&sig=WvXrT5bDmDFfgHs%2Brz%2BjAu123eRCNE9BO0eQYcPDT7pY%3D&sr=b" + } + }, + "responses": { + "200": { + "description": "Request successful. Follow the location header for sas-url to output blob." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafListAllPolicies.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafListAllPolicies.json new file mode 100644 index 000000000000..506091a428ad --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafListAllPolicies.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Policy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1", + "type": "Microsoft.Network/applicationgatewaywebapplicationfirewallpolicies", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "location": "WestUs", + "properties": { + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "policySettings": { + "enabledState": "Enabled", + "mode": "Prevention" + }, + "customRules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } + ], + "action": "Block" + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafListPolicies.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafListPolicies.json new file mode 100644 index 000000000000..c7a5786d04e9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafListPolicies.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Policy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1", + "type": "Microsoft.Network/applicationgatewaywebapplicationfirewallpolicies", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "location": "WestUs", + "properties": { + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "policySettings": { + "enabledState": "Enabled", + "mode": "Prevention" + }, + "customRules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } + ], + "action": "Block" + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafPolicyCreateOrUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafPolicyCreateOrUpdate.json new file mode 100644 index 000000000000..3ad1dae0b58b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafPolicyCreateOrUpdate.json @@ -0,0 +1,228 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "policyName": "Policy1", + "parameters": { + "location": "WestUs", + "properties": { + "customRules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "MatchRule", + "action": "Block", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ] + } + ] + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeaders", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "Policy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1", + "type": "Microsoft.Network/applicationgatewaywebapplicationfirewallpolicies", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "location": "WestUs", + "properties": { + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "policySettings": { + "enabledState": "Enabled", + "mode": "Prevention" + }, + "customRules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } + ], + "action": "Block" + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] + } + } + }, + "201": { + "body": { + "name": "Policy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1", + "type": "Microsoft.Network/applicationgatewaywebapplicationfirewallpolicies", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "location": "WestUs", + "properties": { + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "policySettings": { + "enabledState": "Enabled", + "mode": "Prevention" + }, + "customRules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } + ], + "action": "Block" + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafPolicyDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafPolicyDelete.json new file mode 100644 index 000000000000..bcc5516ae945 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafPolicyDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "policyName": "Policy1" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafPolicyGet.json new file mode 100644 index 000000000000..b2d8e7d12e82 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/examples/WafPolicyGet.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "api-version": "2019-06-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "policyName": "Policy1" + }, + "responses": { + "200": { + "body": { + "name": "Policy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1", + "type": "Microsoft.Network/applicationgatewaywebapplicationfirewallpolicies", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "location": "WestUs", + "properties": { + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "policySettings": { + "enabledState": "Enabled", + "mode": "Prevention" + }, + "customRules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24", + "10.0.0.0/24" + ], + "transforms": [] + } + ], + "action": "Block" + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariables": [ + { + "variableName": "RemoteAddr", + "selector": null + } + ], + "operator": "IPMatch", + "negationConditon": false, + "matchValues": [ + "192.168.1.0/24" + ] + }, + { + "matchVariables": [ + { + "variableName": "RequestHeader", + "selector": "UserAgent" + } + ], + "operator": "Contains", + "negationConditon": false, + "matchValues": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/expressRouteCircuit.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/expressRouteCircuit.json new file mode 100644 index 000000000000..2fe6a74133e6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/expressRouteCircuit.json @@ -0,0 +1,2328 @@ +{ + "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-06-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/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}": { + "delete": { + "tags": [ + "ExpressRouteCircuitAuthorizations" + ], + "operationId": "ExpressRouteCircuitAuthorizations_Delete", + "description": "Deletes the specified authorization from the specified express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "authorizationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the authorization." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + }, + "204": { + "description": "Delete successful." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete ExpressRouteCircuit Authorization": { + "$ref": "./examples/ExpressRouteCircuitAuthorizationDelete.json" + } + } + }, + "get": { + "tags": [ + "ExpressRouteCircuitAuthorizations" + ], + "operationId": "ExpressRouteCircuitAuthorizations_Get", + "description": "Gets the specified authorization from the specified express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "authorizationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the authorization." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the ExpressRouteCircuitAuthorization resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitAuthorization" + } + } + }, + "x-ms-examples": { + "Get ExpressRouteCircuit Authorization": { + "$ref": "./examples/ExpressRouteCircuitAuthorizationGet.json" + } + } + }, + "put": { + "tags": [ + "ExpressRouteCircuitAuthorizations" + ], + "operationId": "ExpressRouteCircuitAuthorizations_CreateOrUpdate", + "description": "Creates or updates an authorization in the specified express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "authorizationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the authorization." + }, + { + "name": "authorizationParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitAuthorization" + }, + "description": "Parameters supplied to the create or update express route circuit authorization operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting ExpressRouteCircuitAuthorization resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitAuthorization" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting ExpressRouteCircuitAuthorization resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitAuthorization" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create ExpressRouteCircuit Authorization": { + "$ref": "./examples/ExpressRouteCircuitAuthorizationCreate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations": { + "get": { + "tags": [ + "ExpressRouteCircuitAuthorizations" + ], + "operationId": "ExpressRouteCircuitAuthorizations_List", + "description": "Gets all authorizations in an express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the circuit." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of ExpressRouteCircuitAuthorization resources.", + "schema": { + "$ref": "#/definitions/AuthorizationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List ExpressRouteCircuit Authorization": { + "$ref": "./examples/ExpressRouteCircuitAuthorizationList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}": { + "delete": { + "tags": [ + "ExpressRouteCircuitPeerings" + ], + "operationId": "ExpressRouteCircuitPeerings_Delete", + "description": "Deletes the specified peering from the specified express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Delete successful." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete ExpressRouteCircuit Peerings": { + "$ref": "./examples/ExpressRouteCircuitPeeringDelete.json" + } + } + }, + "get": { + "tags": [ + "ExpressRouteCircuitPeerings" + ], + "operationId": "ExpressRouteCircuitPeerings_Get", + "description": "Gets the specified peering for the express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ExpressRouteCircuitPeering resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitPeering" + } + } + }, + "x-ms-examples": { + "Get ExpressRouteCircuit Peering": { + "$ref": "./examples/ExpressRouteCircuitPeeringGet.json" + } + } + }, + "put": { + "tags": [ + "ExpressRouteCircuitPeerings" + ], + "operationId": "ExpressRouteCircuitPeerings_CreateOrUpdate", + "description": "Creates or updates a peering in the specified express route circuits.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "name": "peeringParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitPeering" + }, + "description": "Parameters supplied to the create or update express route circuit peering operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting ExpressRouteCircuitPeering resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitPeering" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting ExpressRouteCircuitPeering resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitPeering" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create ExpressRouteCircuit Peerings": { + "$ref": "./examples/ExpressRouteCircuitPeeringCreate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings": { + "get": { + "tags": [ + "ExpressRouteCircuitPeerings" + ], + "operationId": "ExpressRouteCircuitPeerings_List", + "description": "Gets all peerings in a specified express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of ExpressRouteCircuitPeering resources.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitPeeringListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List ExpressRouteCircuit Peerings": { + "$ref": "./examples/ExpressRouteCircuitPeeringList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}": { + "delete": { + "tags": [ + "ExpressRouteCircuitConnections" + ], + "operationId": "ExpressRouteCircuitConnections_Delete", + "description": "Deletes the specified Express Route Circuit Connection from the specified express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "name": "connectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete ExpressRouteCircuit": { + "$ref": "./examples/ExpressRouteCircuitConnectionDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "ExpressRouteCircuitConnections" + ], + "operationId": "ExpressRouteCircuitConnections_Get", + "description": "Gets the specified Express Route Circuit Connection from the specified express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "name": "connectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting Express Route Circuit Connection resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitConnection" + } + } + }, + "x-ms-examples": { + "ExpressRouteCircuitConnectionGet": { + "$ref": "./examples/ExpressRouteCircuitConnectionGet.json" + } + } + }, + "put": { + "tags": [ + "ExpressRouteCircuitConnections" + ], + "operationId": "ExpressRouteCircuitConnections_CreateOrUpdate", + "description": "Creates or updates a Express Route Circuit Connection in the specified express route circuits.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "name": "connectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit connection." + }, + { + "name": "expressRouteCircuitConnectionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitConnection" + }, + "description": "Parameters supplied to the create or update express route circuit connection operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting ExpressRouteCircuitPeering resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitConnection" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting ExpressRouteCircuitPeering resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitConnection" + } + } + }, + "x-ms-examples": { + "ExpressRouteCircuitConnectionCreate": { + "$ref": "./examples/ExpressRouteCircuitConnectionCreate.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/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections": { + "get": { + "tags": [ + "ExpressRouteCircuitConnections" + ], + "operationId": "ExpressRouteCircuitConnections_List", + "description": "Gets all global reach connections associated with a private peering in an express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the circuit." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of ExpressRouteCircuitConnections resources.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitConnectionListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List ExpressRouteCircuit Connection": { + "$ref": "./examples/ExpressRouteCircuitConnectionList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/peerConnections/{connectionName}": { + "get": { + "tags": [ + "PeerExpressRouteCircuitConnections" + ], + "operationId": "PeerExpressRouteCircuitConnections_Get", + "description": "Gets the specified Peer Express Route Circuit Connection from the specified express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "name": "connectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peer express route circuit connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting Peer Express Route Circuit Connection resource.", + "schema": { + "$ref": "#/definitions/PeerExpressRouteCircuitConnection" + } + } + }, + "x-ms-examples": { + "PeerExpressRouteCircuitConnectionGet": { + "$ref": "./examples/PeerExpressRouteCircuitConnectionGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/peerConnections": { + "get": { + "tags": [ + "PeerExpressRouteCircuitConnections" + ], + "operationId": "PeerExpressRouteCircuitConnections_List", + "description": "Gets all global reach peer connections associated with a private peering in an express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the circuit." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of PeerExpressRouteCircuitConnections resources.", + "schema": { + "$ref": "#/definitions/PeerExpressRouteCircuitConnectionListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Peer ExpressRouteCircuit Connection": { + "$ref": "./examples/PeerExpressRouteCircuitConnectionList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}": { + "delete": { + "tags": [ + "ExpressRouteCircuits" + ], + "operationId": "ExpressRouteCircuits_Delete", + "description": "Deletes the specified express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted. Sets 'Disabling' provisioningState until the operation completes. Returns an operation URI that can be queried to find the current state of the operation." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete ExpressRouteCircuit": { + "$ref": "./examples/ExpressRouteCircuitDelete.json" + } + } + }, + "get": { + "tags": [ + "ExpressRouteCircuits" + ], + "operationId": "ExpressRouteCircuits_Get", + "description": "Gets information about the specified express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of express route circuit." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ExpressRouteCircuit resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuit" + } + } + }, + "x-ms-examples": { + "Get ExpressRouteCircuit": { + "$ref": "./examples/ExpressRouteCircuitGet.json" + } + } + }, + "put": { + "tags": [ + "ExpressRouteCircuits" + ], + "operationId": "ExpressRouteCircuits_CreateOrUpdate", + "description": "Creates or updates an express route circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the circuit." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExpressRouteCircuit" + }, + "description": "Parameters supplied to the create or update express route circuit operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting ExpressRouteCircuit resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuit" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting ExpressRouteCircuit resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuit" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create ExpressRouteCircuit": { + "$ref": "./examples/ExpressRouteCircuitCreate.json" + }, + "Create ExpressRouteCircuit on ExpressRoutePort": { + "$ref": "./examples/ExpressRouteCircuitCreateOnExpressRoutePort.json" + } + } + }, + "patch": { + "tags": [ + "ExpressRouteCircuits" + ], + "operationId": "ExpressRouteCircuits_UpdateTags", + "description": "Updates an express route circuit tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the circuit." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update express route circuit tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting ExpressRouteCircuit resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuit" + } + } + }, + "x-ms-examples": { + "Update Express Route Circuit Tags": { + "$ref": "./examples/ExpressRouteCircuitUpdateTags.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/arpTables/{devicePath}": { + "post": { + "tags": [ + "ExpressRouteCircuitArpTable" + ], + "operationId": "ExpressRouteCircuits_ListArpTable", + "description": "Gets the currently advertised ARP table associated with the express route circuit in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "name": "devicePath", + "in": "path", + "required": true, + "type": "string", + "description": "The path of the device." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ExpressRouteCircuitsArpTable resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitsArpTableListResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "List ARP Table": { + "$ref": "./examples/ExpressRouteCircuitARPTableList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTables/{devicePath}": { + "post": { + "tags": [ + "ExpressRouteCircuitRoutesTable" + ], + "operationId": "ExpressRouteCircuits_ListRoutesTable", + "description": "Gets the currently advertised routes table associated with the express route circuit in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "name": "devicePath", + "in": "path", + "required": true, + "type": "string", + "description": "The path of the device." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ExpressRouteCircuitsRouteTable resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitsRoutesTableListResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "List Route Tables": { + "$ref": "./examples/ExpressRouteCircuitRouteTableList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTablesSummary/{devicePath}": { + "post": { + "tags": [ + "ExpressRouteCircuitRoutesTableSummary" + ], + "operationId": "ExpressRouteCircuits_ListRoutesTableSummary", + "description": "Gets the currently advertised routes table summary associated with the express route circuit in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "name": "devicePath", + "in": "path", + "required": true, + "type": "string", + "description": "The path of the device." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ExpressRouteCircuitsRoutesTableSummary resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitsRoutesTableSummaryListResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "List Route Table Summary": { + "$ref": "./examples/ExpressRouteCircuitRouteTableSummaryList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/stats": { + "get": { + "tags": [ + "ExpressRouteCircuitStats" + ], + "operationId": "ExpressRouteCircuits_GetStats", + "description": "Gets all the stats from an express route circuit in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ExpressRouteCircuitStats resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitStats" + } + } + }, + "x-ms-examples": { + "Get ExpressRoute Circuit Traffic Stats": { + "$ref": "./examples/ExpressRouteCircuitStats.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/stats": { + "get": { + "tags": [ + "ExpressRouteCircuitStats" + ], + "operationId": "ExpressRouteCircuits_GetPeeringStats", + "description": "Gets all stats from an express route circuit in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "circuitName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the express route circuit." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ExpressRouteCircuitStats resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitStats" + } + } + }, + "x-ms-examples": { + "Get ExpressRoute Circuit Peering Traffic Stats": { + "$ref": "./examples/ExpressRouteCircuitPeeringStats.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits": { + "get": { + "tags": [ + "ExpressRouteCircuits" + ], + "operationId": "ExpressRouteCircuits_List", + "description": "Gets all the express route circuits in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ExpressRouteCircuitAuthorization resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List ExpressRouteCircuits in a resource group": { + "$ref": "./examples/ExpressRouteCircuitListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits": { + "get": { + "tags": [ + "ExpressRouteCircuits" + ], + "operationId": "ExpressRouteCircuits_ListAll", + "description": "Gets all the express route circuits in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of ExpressRouteCircuit resources.", + "schema": { + "$ref": "#/definitions/ExpressRouteCircuitListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List ExpressRouteCircuits in a subscription": { + "$ref": "./examples/ExpressRouteCircuitListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteServiceProviders": { + "get": { + "tags": [ + "ExpressRouteServiceProviders" + ], + "operationId": "ExpressRouteServiceProviders_List", + "description": "Gets all the available express route service providers.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of ExpressRouteServiceProvider resources.", + "schema": { + "$ref": "#/definitions/ExpressRouteServiceProviderListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List ExpressRoute providers": { + "$ref": "./examples/ExpressRouteProviderList.json" + } + } + } + } + }, + "definitions": { + "AuthorizationPropertiesFormat": { + "properties": { + "authorizationKey": { + "type": "string", + "description": "The authorization key." + }, + "authorizationUseStatus": { + "type": "string", + "description": "The authorization use status.", + "enum": [ + "Available", + "InUse" + ], + "x-ms-enum": { + "name": "AuthorizationUseStatus", + "modelAsString": true + } + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of ExpressRouteCircuitAuthorization." + }, + "ExpressRouteCircuitAuthorization": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AuthorizationPropertiesFormat", + "description": "Properties of the express route circuit authorization." + }, + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Authorization in an ExpressRouteCircuit resource." + }, + "AuthorizationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCircuitAuthorization" + }, + "description": "The authorizations in an ExpressRoute Circuit." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListAuthorizations API service call retrieves all authorizations that belongs to an ExpressRouteCircuit." + }, + "ExpressRouteCircuitPeeringConfig": { + "properties": { + "advertisedPublicPrefixes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The reference of AdvertisedPublicPrefixes." + }, + "advertisedCommunities": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The communities of bgp peering. Specified for microsoft peering." + }, + "advertisedPublicPrefixesState": { + "type": "string", + "description": "The advertised public prefix state of the Peering resource.", + "enum": [ + "NotConfigured", + "Configuring", + "Configured", + "ValidationNeeded" + ], + "x-ms-enum": { + "name": "ExpressRouteCircuitPeeringAdvertisedPublicPrefixState", + "modelAsString": true + } + }, + "legacyMode": { + "type": "integer", + "format": "int32", + "description": "The legacy mode of the peering." + }, + "customerASN": { + "type": "integer", + "format": "int32", + "description": "The CustomerASN of the peering." + }, + "routingRegistryName": { + "type": "string", + "description": "The RoutingRegistryName of the configuration." + } + }, + "description": "Specifies the peering configuration." + }, + "Ipv6ExpressRouteCircuitPeeringConfig": { + "properties": { + "primaryPeerAddressPrefix": { + "type": "string", + "description": "The primary address prefix." + }, + "secondaryPeerAddressPrefix": { + "type": "string", + "description": "The secondary address prefix." + }, + "microsoftPeeringConfig": { + "$ref": "#/definitions/ExpressRouteCircuitPeeringConfig", + "description": "The Microsoft peering configuration." + }, + "routeFilter": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference of the RouteFilter resource." + }, + "state": { + "type": "string", + "description": "The state of peering.", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "ExpressRouteCircuitPeeringState", + "modelAsString": true + } + } + }, + "description": "Contains IPv6 peering config." + }, + "ExpressRouteCircuitStats": { + "properties": { + "primarybytesIn": { + "type": "integer", + "format": "int64", + "description": "Gets BytesIn of the peering." + }, + "primarybytesOut": { + "type": "integer", + "format": "int64", + "description": "Gets BytesOut of the peering." + }, + "secondarybytesIn": { + "type": "integer", + "format": "int64", + "description": "Gets BytesIn of the peering." + }, + "secondarybytesOut": { + "type": "integer", + "format": "int64", + "description": "Gets BytesOut of the peering." + } + }, + "description": "Contains stats associated with the peering." + }, + "ExpressRouteCircuitPeeringPropertiesFormat": { + "properties": { + "peeringType": { + "$ref": "#/definitions/ExpressRoutePeeringType", + "description": "The peering type." + }, + "state": { + "$ref": "#/definitions/ExpressRoutePeeringState", + "description": "The peering state." + }, + "azureASN": { + "type": "integer", + "format": "int32", + "description": "The Azure ASN." + }, + "peerASN": { + "type": "integer", + "format": "int64", + "minimum": 1, + "maximum": 4294967295, + "description": "The peer ASN." + }, + "primaryPeerAddressPrefix": { + "type": "string", + "description": "The primary address prefix." + }, + "secondaryPeerAddressPrefix": { + "type": "string", + "description": "The secondary address prefix." + }, + "primaryAzurePort": { + "type": "string", + "description": "The primary port." + }, + "secondaryAzurePort": { + "type": "string", + "description": "The secondary port." + }, + "sharedKey": { + "type": "string", + "description": "The shared key." + }, + "vlanId": { + "type": "integer", + "format": "int32", + "description": "The VLAN ID." + }, + "microsoftPeeringConfig": { + "$ref": "#/definitions/ExpressRouteCircuitPeeringConfig", + "description": "The Microsoft peering configuration." + }, + "stats": { + "$ref": "#/definitions/ExpressRouteCircuitStats", + "description": "Gets peering stats." + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + }, + "gatewayManagerEtag": { + "type": "string", + "description": "The GatewayManager Etag." + }, + "lastModifiedBy": { + "type": "string", + "description": "Gets whether the provider or the customer last modified the peering." + }, + "routeFilter": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference of the RouteFilter resource." + }, + "ipv6PeeringConfig": { + "$ref": "#/definitions/Ipv6ExpressRouteCircuitPeeringConfig", + "description": "The IPv6 peering configuration." + }, + "expressRouteConnection": { + "$ref": "./expressRouteGateway.json#/definitions/ExpressRouteConnectionId", + "description": "The ExpressRoute connection." + }, + "connections": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCircuitConnection" + }, + "description": "The list of circuit connections associated with Azure Private Peering for this circuit." + }, + "peeredConnections": { + "type": "array", + "items": { + "$ref": "#/definitions/PeerExpressRouteCircuitConnection" + }, + "readOnly": true, + "description": "The list of peered circuit connections associated with Azure Private Peering for this circuit." + } + }, + "description": "Properties of the express route circuit peering." + }, + "ExpressRouteCircuitPeering": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExpressRouteCircuitPeeringPropertiesFormat", + "description": "Properties of the express route circuit peering." + }, + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Peering in an ExpressRouteCircuit resource." + }, + "ExpressRouteCircuitPeeringListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCircuitPeering" + }, + "description": "The peerings in an express route circuit." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListPeering API service call retrieves all peerings that belong to an ExpressRouteCircuit." + }, + "ExpressRoutePeeringType": { + "type": "string", + "description": "The peering type.", + "enum": [ + "AzurePublicPeering", + "AzurePrivatePeering", + "MicrosoftPeering" + ], + "x-ms-enum": { + "name": "ExpressRoutePeeringType", + "modelAsString": true + } + }, + "ExpressRoutePeeringState": { + "type": "string", + "description": "The state of peering.", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "ExpressRoutePeeringState", + "modelAsString": true + } + }, + "ExpressRouteCircuitConnectionPropertiesFormat": { + "properties": { + "expressRouteCircuitPeering": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference to Express Route Circuit Private Peering Resource of the circuit initiating connection." + }, + "peerExpressRouteCircuitPeering": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference to Express Route Circuit Private Peering Resource of the peered circuit." + }, + "addressPrefix": { + "type": "string", + "description": "/29 IP address space to carve out Customer addresses for tunnels." + }, + "authorizationKey": { + "type": "string", + "description": "The authorization key." + }, + "circuitConnectionStatus": { + "$ref": "#/definitions/CircuitConnectionStatus", + "description": "Express Route Circuit connection state." + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Provisioning state of the circuit connection resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of the express route circuit connection." + }, + "ExpressRouteCircuitConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExpressRouteCircuitConnectionPropertiesFormat", + "description": "Properties of the express route circuit connection." + }, + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Express Route Circuit Connection in an ExpressRouteCircuitPeering resource." + }, + "ExpressRouteCircuitConnectionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCircuitConnection" + }, + "description": "The global reach connection associated with Private Peering in an ExpressRoute Circuit." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListConnections API service call retrieves all global reach connections that belongs to a Private Peering for an ExpressRouteCircuit." + }, + "PeerExpressRouteCircuitConnectionPropertiesFormat": { + "properties": { + "expressRouteCircuitPeering": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference to Express Route Circuit Private Peering Resource of the circuit." + }, + "peerExpressRouteCircuitPeering": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference to Express Route Circuit Private Peering Resource of the peered circuit." + }, + "addressPrefix": { + "type": "string", + "description": "/29 IP address space to carve out Customer addresses for tunnels." + }, + "circuitConnectionStatus": { + "$ref": "#/definitions/CircuitConnectionStatus", + "description": "Express Route Circuit connection state." + }, + "connectionName": { + "type": "string", + "description": "The name of the express route circuit connection resource." + }, + "authResourceGuid": { + "type": "string", + "description": "The resource guid of the authorization used for the express route circuit connection." + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Provisioning state of the peer express route circuit connection resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of the peer express route circuit connection." + }, + "PeerExpressRouteCircuitConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PeerExpressRouteCircuitConnectionPropertiesFormat", + "description": "Properties of the peer express route circuit connection." + }, + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Peer Express Route Circuit Connection in an ExpressRouteCircuitPeering resource." + }, + "PeerExpressRouteCircuitConnectionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PeerExpressRouteCircuitConnection" + }, + "description": "The global reach peer circuit connection associated with Private Peering in an ExpressRoute Circuit." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListPeeredConnections API service call retrieves all global reach peer circuit connections that belongs to a Private Peering for an ExpressRouteCircuit." + }, + "ExpressRouteCircuitSku": { + "properties": { + "name": { + "type": "string", + "description": "The name of the SKU." + }, + "tier": { + "type": "string", + "description": "The tier of the SKU.", + "enum": [ + "Standard", + "Premium", + "Basic", + "Local" + ], + "x-ms-enum": { + "name": "ExpressRouteCircuitSkuTier", + "modelAsString": true + } + }, + "family": { + "type": "string", + "description": "The family of the SKU.", + "enum": [ + "UnlimitedData", + "MeteredData" + ], + "x-ms-enum": { + "name": "ExpressRouteCircuitSkuFamily", + "modelAsString": true + } + } + }, + "description": "Contains SKU in an ExpressRouteCircuit." + }, + "ExpressRouteCircuitServiceProviderProperties": { + "properties": { + "serviceProviderName": { + "type": "string", + "description": "The serviceProviderName." + }, + "peeringLocation": { + "type": "string", + "description": "The peering location." + }, + "bandwidthInMbps": { + "type": "integer", + "format": "int32", + "description": "The BandwidthInMbps." + } + }, + "description": "Contains ServiceProviderProperties in an ExpressRouteCircuit." + }, + "ExpressRouteCircuitPropertiesFormat": { + "properties": { + "allowClassicOperations": { + "type": "boolean", + "description": "Allow classic operations." + }, + "circuitProvisioningState": { + "type": "string", + "description": "The CircuitProvisioningState state of the resource." + }, + "serviceProviderProvisioningState": { + "$ref": "#/definitions/ServiceProviderProvisioningState", + "description": "The ServiceProviderProvisioningState state of the resource." + }, + "authorizations": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCircuitAuthorization" + }, + "description": "The list of authorizations." + }, + "peerings": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCircuitPeering" + }, + "description": "The list of peerings." + }, + "serviceKey": { + "type": "string", + "description": "The ServiceKey." + }, + "serviceProviderNotes": { + "type": "string", + "description": "The ServiceProviderNotes." + }, + "serviceProviderProperties": { + "$ref": "#/definitions/ExpressRouteCircuitServiceProviderProperties", + "description": "The ServiceProviderProperties." + }, + "expressRoutePort": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference to the ExpressRoutePort resource when the circuit is provisioned on an ExpressRoutePort resource." + }, + "bandwidthInGbps": { + "type": "number", + "description": "The bandwidth of the circuit when the circuit is provisioned on an ExpressRoutePort resource." + }, + "stag": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The identifier of the circuit traffic. Outer tag for QinQ encapsulation." + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + }, + "gatewayManagerEtag": { + "type": "string", + "description": "The GatewayManager Etag." + }, + "globalReachEnabled": { + "type": "boolean", + "description": "Flag denoting Global reach status." + } + }, + "description": "Properties of ExpressRouteCircuit." + }, + "ExpressRouteCircuit": { + "properties": { + "sku": { + "$ref": "#/definitions/ExpressRouteCircuitSku", + "description": "The SKU." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExpressRouteCircuitPropertiesFormat", + "description": "Properties of the express route circuit." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "ExpressRouteCircuit resource." + }, + "ExpressRouteCircuitArpTable": { + "properties": { + "age": { + "type": "integer", + "format": "int32", + "description": "Entry age in minutes." + }, + "interface": { + "type": "string", + "description": "Interface address." + }, + "ipAddress": { + "type": "string", + "description": "The IP address." + }, + "macAddress": { + "type": "string", + "description": "The MAC address." + } + }, + "description": "The ARP table associated with the ExpressRouteCircuit." + }, + "ExpressRouteCircuitsArpTableListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCircuitArpTable" + }, + "description": "Gets list of the ARP table." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListArpTable associated with the Express Route Circuits API." + }, + "ExpressRouteCircuitRoutesTable": { + "properties": { + "network": { + "type": "string", + "description": "IP address of a network entity." + }, + "nextHop": { + "type": "string", + "description": "NextHop address." + }, + "locPrf": { + "type": "string", + "description": "Local preference value as set with the set local-preference route-map configuration command." + }, + "weight": { + "type": "integer", + "format": "int32", + "description": "Route Weight." + }, + "path": { + "type": "string", + "description": "Autonomous system paths to the destination network." + } + }, + "description": "The routes table associated with the ExpressRouteCircuit." + }, + "ExpressRouteCircuitsRoutesTableListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCircuitRoutesTable" + }, + "description": "The list of routes table." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListRoutesTable associated with the Express Route Circuits API." + }, + "ExpressRouteCircuitRoutesTableSummary": { + "properties": { + "neighbor": { + "type": "string", + "description": "IP address of the neighbor." + }, + "v": { + "type": "integer", + "format": "int32", + "description": "BGP version number spoken to the neighbor." + }, + "as": { + "type": "integer", + "format": "int32", + "description": "Autonomous system number." + }, + "upDown": { + "type": "string", + "description": "The length of time that the BGP session has been in the Established state, or the current status if not in the Established state." + }, + "statePfxRcd": { + "type": "string", + "description": "Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group." + } + }, + "description": "The routes table associated with the ExpressRouteCircuit." + }, + "ExpressRouteCircuitsRoutesTableSummaryListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCircuitRoutesTableSummary" + }, + "description": "A list of the routes table." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListRoutesTable associated with the Express Route Circuits API." + }, + "ExpressRouteCircuitListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCircuit" + }, + "description": "A list of ExpressRouteCircuits in a resource group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListExpressRouteCircuit API service call." + }, + "ExpressRouteServiceProviderBandwidthsOffered": { + "properties": { + "offerName": { + "type": "string", + "description": "The OfferName." + }, + "valueInMbps": { + "type": "integer", + "format": "int32", + "description": "The ValueInMbps." + } + }, + "description": "Contains bandwidths offered in ExpressRouteServiceProvider resources." + }, + "ExpressRouteServiceProviderPropertiesFormat": { + "properties": { + "peeringLocations": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Get a list of peering locations." + }, + "bandwidthsOffered": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteServiceProviderBandwidthsOffered" + }, + "description": "Gets bandwidths offered." + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the resource." + } + }, + "description": "Properties of ExpressRouteServiceProvider." + }, + "ExpressRouteServiceProvider": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExpressRouteServiceProviderPropertiesFormat", + "description": "Properties of the express route service provider." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "A ExpressRouteResourceProvider object." + }, + "ExpressRouteServiceProviderListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteServiceProvider" + }, + "description": "A list of ExpressRouteResourceProvider resources." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for the ListExpressRouteServiceProvider API service call." + }, + "CircuitConnectionStatus": { + "type": "string", + "readOnly": true, + "description": "Express Route Circuit connection state.", + "enum": [ + "Connected", + "Connecting", + "Disconnected" + ], + "x-ms-enum": { + "name": "CircuitConnectionStatus", + "modelAsString": true + } + }, + "ServiceProviderProvisioningState": { + "type": "string", + "description": "The ServiceProviderProvisioningState state of the resource.", + "enum": [ + "NotProvisioned", + "Provisioning", + "Provisioned", + "Deprovisioning" + ], + "x-ms-enum": { + "name": "ServiceProviderProvisioningState", + "modelAsString": true + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/expressRouteCrossConnection.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/expressRouteCrossConnection.json new file mode 100644 index 000000000000..5daf12481862 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/expressRouteCrossConnection.json @@ -0,0 +1,934 @@ +{ + "swagger": "2.0", + "info": { + "title": "ExpressRouteCrossConnection REST APIs", + "description": "The Microsoft Azure ExpressRouteCrossConnection Resource Provider REST APIs describes the operations for the connectivity provider to provision ExpressRoute circuit, create and modify BGP peering entities and troubleshoot connectivity on customer's ExpressRoute circuit.", + "version": "2019-06-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.Network/expressRouteCrossConnections": { + "get": { + "tags": [ + "ExpressRouteCrossConnections" + ], + "operationId": "ExpressRouteCrossConnections_List", + "description": "Retrieves all the ExpressRouteCrossConnections in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of ExpressRouteCrossConnection resources. If there are no cross connection resources an empty list is returned.", + "schema": { + "$ref": "#/definitions/ExpressRouteCrossConnectionListResult" + } + } + }, + "x-ms-examples": { + "ExpressRouteCrossConnectionList": { + "$ref": "./examples/ExpressRouteCrossConnectionList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections": { + "get": { + "tags": [ + "ExpressRouteCrossConnections" + ], + "operationId": "ExpressRouteCrossConnections_ListByResourceGroup", + "description": "Retrieves all the ExpressRouteCrossConnections in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful.The operation returns a list of ExpressRouteCrossConnection resources. If there are no cross connection resources an empty list is returned.", + "schema": { + "$ref": "#/definitions/ExpressRouteCrossConnectionListResult" + } + } + }, + "x-ms-examples": { + "ExpressRouteCrossConnectionListByResourceGroup": { + "$ref": "./examples/ExpressRouteCrossConnectionListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}": { + "get": { + "tags": [ + "ExpressRouteCrossConnections" + ], + "operationId": "ExpressRouteCrossConnections_Get", + "description": "Gets details about the specified ExpressRouteCrossConnection.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group (peering location of the circuit)." + }, + { + "name": "crossConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRouteCrossConnection (service key of the circuit)." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ExpressRouteCrossConnection resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCrossConnection" + } + } + }, + "x-ms-examples": { + "GetExpressRouteCrossConnection": { + "$ref": "./examples/ExpressRouteCrossConnectionGet.json" + } + } + }, + "put": { + "tags": [ + "ExpressRouteCrossConnections" + ], + "operationId": "ExpressRouteCrossConnections_CreateOrUpdate", + "description": "Update the specified ExpressRouteCrossConnection.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "crossConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRouteCrossConnection." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExpressRouteCrossConnection" + }, + "description": "Parameters supplied to the update express route crossConnection operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting ExpressRouteCrossConnection resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCrossConnection" + } + } + }, + "x-ms-examples": { + "UpdateExpressRouteCrossConnection": { + "$ref": "./examples/ExpressRouteCrossConnectionUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "ExpressRouteCrossConnections" + ], + "operationId": "ExpressRouteCrossConnections_UpdateTags", + "description": "Updates an express route cross connection tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "crossConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the cross connection." + }, + { + "name": "crossConnectionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update express route cross connection tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting ExpressRouteCrossConnection resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCrossConnection" + } + } + }, + "x-ms-examples": { + "UpdateExpressRouteCrossConnectionTags": { + "$ref": "./examples/ExpressRouteCrossConnectionUpdateTags.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings": { + "get": { + "tags": [ + "ExpressRouteCrossConnectionPeerings" + ], + "operationId": "ExpressRouteCrossConnectionPeerings_List", + "description": "Gets all peerings in a specified ExpressRouteCrossConnection.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "crossConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRouteCrossConnection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of ExpressRouteCrossConnectionPeering resources.", + "schema": { + "$ref": "#/definitions/ExpressRouteCrossConnectionPeeringList" + } + } + }, + "x-ms-examples": { + "ExpressRouteCrossConnectionBgpPeeringList": { + "$ref": "./examples/ExpressRouteCrossConnectionBgpPeeringList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}": { + "delete": { + "tags": [ + "ExpressRouteCrossConnectionPeerings" + ], + "operationId": "ExpressRouteCrossConnectionPeerings_Delete", + "description": "Deletes the specified peering from the ExpressRouteCrossConnection.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "crossConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRouteCrossConnection." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "DeleteExpressRouteCrossConnectionBgpPeering": { + "$ref": "./examples/ExpressRouteCrossConnectionBgpPeeringDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "ExpressRouteCrossConnectionPeerings" + ], + "operationId": "ExpressRouteCrossConnectionPeerings_Get", + "description": "Gets the specified peering for the ExpressRouteCrossConnection.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "crossConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRouteCrossConnection." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ExpressRouteCrossConnectionPeering resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCrossConnectionPeering" + } + } + }, + "x-ms-examples": { + "GetExpressRouteCrossConnectionBgpPeering": { + "$ref": "./examples/ExpressRouteCrossConnectionBgpPeeringGet.json" + } + } + }, + "put": { + "tags": [ + "ExpressRouteCrossConnectionPeerings" + ], + "operationId": "ExpressRouteCrossConnectionPeerings_CreateOrUpdate", + "description": "Creates or updates a peering in the specified ExpressRouteCrossConnection.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "crossConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRouteCrossConnection." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "name": "peeringParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExpressRouteCrossConnectionPeering" + }, + "description": "Parameters supplied to the create or update ExpressRouteCrossConnection peering operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting ExpressRouteCrossConnectionPeering resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCrossConnectionPeering" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting ExpressRouteCrossConnectionPeering resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCrossConnectionPeering" + } + } + }, + "x-ms-examples": { + "ExpressRouteCrossConnectionBgpPeeringCreate": { + "$ref": "./examples/ExpressRouteCrossConnectionBgpPeeringCreate.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/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/arpTables/{devicePath}": { + "post": { + "tags": [ + "ExpressRouteCrossConnectionArpTable" + ], + "operationId": "ExpressRouteCrossConnections_ListArpTable", + "description": "Gets the currently advertised ARP table associated with the express route cross connection in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "crossConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRouteCrossConnection." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "name": "devicePath", + "in": "path", + "required": true, + "type": "string", + "description": "The path of the device." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ExpressRouteCrossConnectionsArpTable resource.", + "schema": { + "$ref": "./expressRouteCircuit.json#/definitions/ExpressRouteCircuitsArpTableListResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "GetExpressRouteCrossConnectionsArpTable": { + "$ref": "./examples/ExpressRouteCrossConnectionsArpTable.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTablesSummary/{devicePath}": { + "post": { + "tags": [ + "ExpressRouteCrossConnectionRouteTableSummary" + ], + "operationId": "ExpressRouteCrossConnections_ListRoutesTableSummary", + "description": "Gets the route table summary associated with the express route cross connection in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "crossConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRouteCrossConnection." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "name": "devicePath", + "in": "path", + "required": true, + "type": "string", + "description": "The path of the device." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ExpressRouteCrossConnectionsRouteTableSummary resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteCrossConnectionsRoutesTableSummaryListResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "GetExpressRouteCrossConnectionsRouteTableSummary": { + "$ref": "./examples/ExpressRouteCrossConnectionsRouteTableSummary.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTables/{devicePath}": { + "post": { + "tags": [ + "ExpressRouteCrossConnectionRouteTable" + ], + "operationId": "ExpressRouteCrossConnections_ListRoutesTable", + "description": "Gets the currently advertised routes table associated with the express route cross connection in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "crossConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRouteCrossConnection." + }, + { + "name": "peeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "name": "devicePath", + "in": "path", + "required": true, + "type": "string", + "description": "The path of the device." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ExpressRouteCrossConnectionsRouteTable resource.", + "schema": { + "$ref": "./expressRouteCircuit.json#/definitions/ExpressRouteCircuitsRoutesTableListResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "GetExpressRouteCrossConnectionsRouteTable": { + "$ref": "./examples/ExpressRouteCrossConnectionsRouteTable.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + } + }, + "definitions": { + "ExpressRouteCrossConnectionRoutesTableSummary": { + "properties": { + "neighbor": { + "type": "string", + "description": "IP address of Neighbor router." + }, + "asn": { + "type": "integer", + "format": "int32", + "description": "Autonomous system number." + }, + "upDown": { + "type": "string", + "description": "The length of time that the BGP session has been in the Established state, or the current status if not in the Established state." + }, + "stateOrPrefixesReceived": { + "type": "string", + "description": "Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group." + } + }, + "description": "The routes table associated with the ExpressRouteCircuit." + }, + "ExpressRouteCrossConnectionsRoutesTableSummaryListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCrossConnectionRoutesTableSummary" + }, + "description": "A list of the routes table." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListRoutesTable associated with the Express Route Cross Connections." + }, + "ExpressRouteCircuitReference": { + "properties": { + "id": { + "type": "string", + "description": "Corresponding Express Route Circuit Id." + } + }, + "description": "Reference to an express route circuit." + }, + "ExpressRouteCrossConnectionProperties": { + "properties": { + "primaryAzurePort": { + "readOnly": true, + "type": "string", + "description": "The name of the primary port." + }, + "secondaryAzurePort": { + "readOnly": true, + "type": "string", + "description": "The name of the secondary port." + }, + "sTag": { + "readOnly": true, + "type": "integer", + "description": "The identifier of the circuit traffic." + }, + "peeringLocation": { + "type": "string", + "description": "The peering location of the ExpressRoute circuit." + }, + "bandwidthInMbps": { + "type": "integer", + "format": "int32", + "description": "The circuit bandwidth In Mbps." + }, + "expressRouteCircuit": { + "$ref": "#/definitions/ExpressRouteCircuitReference", + "description": "The ExpressRouteCircuit." + }, + "serviceProviderProvisioningState": { + "$ref": "./expressRouteCircuit.json#/definitions/ServiceProviderProvisioningState", + "description": "The provisioning state of the circuit in the connectivity provider system." + }, + "serviceProviderNotes": { + "type": "string", + "description": "Additional read only notes set by the connectivity provider." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + }, + "peerings": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCrossConnectionPeering" + }, + "description": "The list of peerings." + } + }, + "description": "Properties of ExpressRouteCrossConnection." + }, + "ExpressRouteCrossConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExpressRouteCrossConnectionProperties", + "description": "Properties of the express route cross connection." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "ExpressRouteCrossConnection resource." + }, + "ExpressRouteCrossConnectionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCrossConnection" + }, + "description": "A list of ExpressRouteCrossConnection resources." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListExpressRouteCrossConnection API service call." + }, + "ExpressRouteCrossConnectionPeeringProperties": { + "properties": { + "peeringType": { + "$ref": "./expressRouteCircuit.json#/definitions/ExpressRoutePeeringType", + "description": "The peering type." + }, + "state": { + "$ref": "./expressRouteCircuit.json#/definitions/ExpressRoutePeeringState", + "description": "The peering state." + }, + "azureASN": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The Azure ASN." + }, + "peerASN": { + "type": "integer", + "format": "int64", + "minimum": 1, + "maximum": 4294967295, + "description": "The peer ASN." + }, + "primaryPeerAddressPrefix": { + "type": "string", + "description": "The primary address prefix." + }, + "secondaryPeerAddressPrefix": { + "type": "string", + "description": "The secondary address prefix." + }, + "primaryAzurePort": { + "readOnly": true, + "type": "string", + "description": "The primary port." + }, + "secondaryAzurePort": { + "readOnly": true, + "type": "string", + "description": "The secondary port." + }, + "sharedKey": { + "type": "string", + "description": "The shared key." + }, + "vlanId": { + "type": "integer", + "format": "int32", + "description": "The VLAN ID." + }, + "microsoftPeeringConfig": { + "$ref": "./expressRouteCircuit.json#/definitions/ExpressRouteCircuitPeeringConfig", + "description": "The Microsoft peering configuration." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + }, + "gatewayManagerEtag": { + "type": "string", + "description": "The GatewayManager Etag." + }, + "lastModifiedBy": { + "type": "string", + "description": "Gets whether the provider or the customer last modified the peering." + }, + "ipv6PeeringConfig": { + "$ref": "./expressRouteCircuit.json#/definitions/Ipv6ExpressRouteCircuitPeeringConfig", + "description": "The IPv6 peering configuration." + } + }, + "description": "Properties of express route cross connection peering." + }, + "ExpressRouteCrossConnectionPeering": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExpressRouteCrossConnectionPeeringProperties", + "description": "Properties of the express route cross connection peering." + }, + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Peering in an ExpressRoute Cross Connection resource." + }, + "ExpressRouteCrossConnectionPeeringList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteCrossConnectionPeering" + }, + "description": "The peerings in an express route cross connection." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListPeering API service call retrieves all peerings that belong to an ExpressRouteCrossConnection." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/expressRouteGateway.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/expressRouteGateway.json new file mode 100644 index 000000000000..d4c1285b9856 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/expressRouteGateway.json @@ -0,0 +1,640 @@ +{ + "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-06-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.Network/expressRouteGateways": { + "get": { + "tags": [ + "ExpressRouteGateways" + ], + "operationId": "ExpressRouteGateways_ListBySubscription", + "x-ms-examples": { + "ExpressRouteGatewayListBySubscription": { + "$ref": "./examples/ExpressRouteGatewayListBySubscription.json" + } + }, + "description": "Lists ExpressRoute gateways under a given subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful.", + "schema": { + "$ref": "#/definitions/ExpressRouteGatewayList" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways": { + "get": { + "tags": [ + "ExpressRouteGateways" + ], + "operationId": "ExpressRouteGateways_ListByResourceGroup", + "x-ms-examples": { + "ExpressRouteGatewayListByResourceGroup": { + "$ref": "./examples/ExpressRouteGatewayListByResourceGroup.json" + } + }, + "description": "Lists ExpressRoute gateways in a given resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Operation successful.", + "schema": { + "$ref": "#/definitions/ExpressRouteGatewayList" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}": { + "put": { + "tags": [ + "ExpressRouteGateways" + ], + "operationId": "ExpressRouteGateways_CreateOrUpdate", + "x-ms-examples": { + "ExpressRouteGatewayCreate": { + "$ref": "./examples/ExpressRouteGatewayCreate.json" + } + }, + "description": "Creates or updates a ExpressRoute gateway in a specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "expressRouteGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRoute gateway." + }, + { + "name": "putExpressRouteGatewayParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExpressRouteGateway" + }, + "description": "Parameters required in an ExpressRoute gateway PUT operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting ExpressRoute gateway resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteGateway" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting ExpressRoute gateway resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteGateway" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "get": { + "tags": [ + "ExpressRouteGateways" + ], + "operationId": "ExpressRouteGateways_Get", + "x-ms-examples": { + "ExpressRouteGatewayGet": { + "$ref": "./examples/ExpressRouteGatewayGet.json" + } + }, + "description": "Fetches the details of a ExpressRoute gateway in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "expressRouteGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRoute gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Operation succeeded. The operation returns the ExpressRoute gateway.", + "schema": { + "$ref": "#/definitions/ExpressRouteGateway" + } + } + } + }, + "delete": { + "tags": [ + "ExpressRouteGateways" + ], + "operationId": "ExpressRouteGateways_Delete", + "x-ms-examples": { + "ExpressRouteGatewayDelete": { + "$ref": "./examples/ExpressRouteGatewayDelete.json" + } + }, + "description": "Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be deleted when there are no connection subresources.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "expressRouteGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRoute gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + }, + "204": { + "description": "Delete successful." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}": { + "put": { + "tags": [ + "ExpressRouteConnections" + ], + "operationId": "ExpressRouteConnections_CreateOrUpdate", + "x-ms-examples": { + "ExpressRouteConnectionCreate": { + "$ref": "./examples/ExpressRouteConnectionCreate.json" + } + }, + "description": "Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "expressRouteGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRoute gateway." + }, + { + "name": "connectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connection subresource." + }, + { + "name": "putExpressRouteConnectionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExpressRouteConnection" + }, + "description": "Parameters required in an ExpressRouteConnection PUT operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the ExpressRouteConnection.", + "schema": { + "$ref": "#/definitions/ExpressRouteConnection" + } + }, + "201": { + "description": "Create successful. The operation returns the ExpressRouteConnection.", + "schema": { + "$ref": "#/definitions/ExpressRouteConnection" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "get": { + "tags": [ + "ExpressRouteConnections" + ], + "operationId": "ExpressRouteConnections_Get", + "x-ms-examples": { + "ExpressRouteConnectionGet": { + "$ref": "./examples/ExpressRouteConnectionGet.json" + } + }, + "description": "Gets the specified ExpressRouteConnection.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "expressRouteGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRoute gateway." + }, + { + "name": "connectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRoute connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the ExpressRouteConnection.", + "schema": { + "$ref": "#/definitions/ExpressRouteConnection" + } + } + } + }, + "delete": { + "tags": [ + "ExpressRouteConnections" + ], + "operationId": "ExpressRouteConnections_Delete", + "x-ms-examples": { + "ExpressRouteConnectionDelete": { + "$ref": "./examples/ExpressRouteConnectionDelete.json" + } + }, + "description": "Deletes a connection to a ExpressRoute circuit.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "expressRouteGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRoute gateway." + }, + { + "name": "connectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connection subresource." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted, and the operation will continue asynchronously." + }, + "200": { + "description": "Delete successful." + }, + "204": { + "description": "Delete successful." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections": { + "get": { + "tags": [ + "ExpressRouteConnections" + ], + "operationId": "ExpressRouteConnections_List", + "x-ms-examples": { + "ExpressRouteConnectionList": { + "$ref": "./examples/ExpressRouteConnectionList.json" + } + }, + "description": "Lists ExpressRouteConnections.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "expressRouteGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRoute gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful.", + "schema": { + "$ref": "#/definitions/ExpressRouteConnectionList" + } + } + } + } + } + }, + "definitions": { + "VirtualHubId": { + "properties": { + "id": { + "type": "string", + "description": "The resource URI for the Virtual Hub where the ExpressRoute gateway is or will be deployed. The Virtual Hub resource and the ExpressRoute gateway resource reside in the same subscription." + } + }, + "description": "Virtual Hub identifier." + }, + "ExpressRouteCircuitPeeringId": { + "properties": { + "id": { + "type": "string", + "description": "The ID of the ExpressRoute circuit peering." + } + }, + "description": "ExpressRoute circuit peering identifier." + }, + "ExpressRouteConnectionId": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The ID of the ExpressRouteConnection." + } + }, + "description": "The ID of the ExpressRouteConnection." + }, + "ExpressRouteGatewayProperties": { + "required": [ + "virtualHub" + ], + "properties": { + "autoScaleConfiguration": { + "properties": { + "bounds": { + "properties": { + "min": { + "type": "integer", + "description": "Minimum number of scale units deployed for ExpressRoute gateway." + }, + "max": { + "type": "integer", + "description": "Maximum number of scale units deployed for ExpressRoute gateway." + } + }, + "description": "Minimum and maximum number of scale units to deploy." + } + }, + "description": "Configuration for auto scaling." + }, + "expressRouteConnections": { + "type": "array", + "readOnly": true, + "description": "List of ExpressRoute connections to the ExpressRoute gateway.", + "items": { + "$ref": "#/definitions/ExpressRouteConnection" + } + }, + "provisioningState": { + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the resource." + }, + "virtualHub": { + "$ref": "#/definitions/VirtualHubId", + "description": "The Virtual Hub where the ExpressRoute gateway is or will be deployed." + } + }, + "description": "ExpressRoute gateway resource properties." + }, + "ExpressRouteGateway": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExpressRouteGatewayProperties", + "description": "Properties of the express route gateway." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "ExpressRoute gateway resource." + }, + "ExpressRouteGatewayList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteGateway" + }, + "description": "List of ExpressRoute gateways." + } + }, + "description": "List of ExpressRoute gateways." + }, + "ExpressRouteConnectionProperties": { + "required": [ + "expressRouteCircuitPeering" + ], + "properties": { + "provisioningState": { + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the resource." + }, + "expressRouteCircuitPeering": { + "$ref": "#/definitions/ExpressRouteCircuitPeeringId", + "description": "The ExpressRoute circuit peering." + }, + "authorizationKey": { + "type": "string", + "description": "Authorization key to establish the connection." + }, + "routingWeight": { + "type": "integer", + "description": "The routing weight associated to the connection." + } + }, + "description": "Properties of the ExpressRouteConnection subresource." + }, + "ExpressRouteConnection": { + "required": [ + "name" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExpressRouteConnectionProperties", + "description": "Properties of the express route connection." + }, + "name": { + "type": "string", + "description": "The name of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "ExpressRouteConnection resource." + }, + "ExpressRouteConnectionList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteConnection" + }, + "description": "The list of ExpressRoute connections." + } + }, + "description": "ExpressRouteConnection list." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/expressRoutePort.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/expressRoutePort.json new file mode 100644 index 000000000000..1c71fe14d654 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/expressRoutePort.json @@ -0,0 +1,775 @@ +{ + "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-06-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.Network/ExpressRoutePortsLocations": { + "get": { + "tags": [ + "ExpressRoutePortsLocations" + ], + "operationId": "ExpressRoutePortsLocations_List", + "description": "Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. Available bandwidths can only be obtained when retrieving a specific peering location.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the list of all ExpressRoutePort peering locations.", + "schema": { + "$ref": "#/definitions/ExpressRoutePortsLocationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ExpressRoutePortsLocationList": { + "$ref": "./examples/ExpressRoutePortsLocationList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}": { + "get": { + "tags": [ + "ExpressRoutePortsLocations" + ], + "operationId": "ExpressRoutePortsLocations_Get", + "description": "Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at said peering location.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the requested ExpressRoutePort peering location." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the requested ExpressRoutePort peering location.", + "schema": { + "$ref": "#/definitions/ExpressRoutePortsLocation" + } + } + }, + "x-ms-examples": { + "ExpressRoutePortsLocationGet": { + "$ref": "./examples/ExpressRoutePortsLocationGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}": { + "delete": { + "tags": [ + "ExpressRoutePorts" + ], + "operationId": "ExpressRoutePorts_Delete", + "description": "Deletes the specified ExpressRoutePort resource.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "expressRoutePortName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRoutePort resource." + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Request successful. Resource does not exist." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "ExpressRoutePortDelete": { + "$ref": "./examples/ExpressRoutePortDelete.json" + } + } + }, + "get": { + "tags": [ + "ExpressRoutePorts" + ], + "operationId": "ExpressRoutePorts_Get", + "description": "Retrieves the requested ExpressRoutePort resource.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "expressRoutePortName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of ExpressRoutePort." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the requested ExpressRoutePort resource.", + "schema": { + "$ref": "#/definitions/ExpressRoutePort" + } + } + }, + "x-ms-examples": { + "ExpressRoutePortGet": { + "$ref": "./examples/ExpressRoutePortGet.json" + } + } + }, + "put": { + "tags": [ + "ExpressRoutePorts" + ], + "operationId": "ExpressRoutePorts_CreateOrUpdate", + "description": "Creates or updates the specified ExpressRoutePort resource.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "expressRoutePortName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRoutePort resource." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExpressRoutePort" + }, + "description": "Parameters supplied to the create ExpressRoutePort operation." + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting ExpressRoutePort resource.", + "schema": { + "$ref": "#/definitions/ExpressRoutePort" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting ExpressRoutePort resource.", + "schema": { + "$ref": "#/definitions/ExpressRoutePort" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "ExpressRoutePortCreate": { + "$ref": "./examples/ExpressRoutePortCreate.json" + }, + "ExpressRoutePortUpdateLink": { + "$ref": "./examples/ExpressRoutePortUpdateLink.json" + } + } + }, + "patch": { + "tags": [ + "ExpressRoutePorts" + ], + "operationId": "ExpressRoutePorts_UpdateTags", + "description": "Update ExpressRoutePort tags.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "expressRoutePortName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRoutePort resource." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update ExpressRoutePort resource tags." + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting ExpressRoutePort resource.", + "schema": { + "$ref": "#/definitions/ExpressRoutePort" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "ExpressRoutePortUpdateTags": { + "$ref": "./examples/ExpressRoutePortUpdateTags.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts": { + "get": { + "tags": [ + "ExpressRoutePorts" + ], + "operationId": "ExpressRoutePorts_ListByResourceGroup", + "description": "List all the ExpressRoutePort resources in the specified resource group.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of ExpressRoutePort resources. If there are no ExpressRoutePort resources then an empty list is returned.", + "schema": { + "$ref": "#/definitions/ExpressRoutePortListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ExpressRoutePortListByResourceGroup": { + "$ref": "./examples/ExpressRoutePortListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePorts": { + "get": { + "tags": [ + "ExpressRoutePorts" + ], + "operationId": "ExpressRoutePorts_List", + "description": "List all the ExpressRoutePort resources in the specified subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of ExpressRoutePort resources. If there are no ExpressRoutePort resources then an empty list is returned.", + "schema": { + "$ref": "#/definitions/ExpressRoutePortListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ExpressRoutePortList": { + "$ref": "./examples/ExpressRoutePortList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/links/{linkName}": { + "get": { + "tags": [ + "ExpressRouteLinks" + ], + "operationId": "ExpressRouteLinks_Get", + "description": "Retrieves the specified ExpressRouteLink resource.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "expressRoutePortName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRoutePort resource." + }, + { + "name": "linkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRouteLink resource." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the requested ExpressRouteLink resource.", + "schema": { + "$ref": "#/definitions/ExpressRouteLink" + } + } + }, + "x-ms-examples": { + "ExpressRouteLinkGet": { + "$ref": "./examples/ExpressRouteLinkGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/links": { + "get": { + "tags": [ + "ExpressRouteLinks" + ], + "operationId": "ExpressRouteLinks_List", + "description": "Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "expressRoutePortName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ExpressRoutePort resource." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of ExpressRouteLink resources. If there are no ExpressRouteLink resources then an empty list is returned.", + "schema": { + "$ref": "#/definitions/ExpressRouteLinkListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ExpressRouteLinkGet": { + "$ref": "./examples/ExpressRouteLinkList.json" + } + } + } + } + }, + "definitions": { + "ExpressRoutePortsLocationBandwidths": { + "title": "ExpressRoutePorts Location Bandwidths", + "description": "Real-time inventory of available ExpressRoute port bandwidths.", + "properties": { + "offerName": { + "type": "string", + "readOnly": true, + "description": "Bandwidth descriptive name." + }, + "valueInGbps": { + "type": "integer", + "readOnly": true, + "description": "Bandwidth value in Gbps." + } + } + }, + "ExpressRoutePortsLocationPropertiesFormat": { + "title": "ExpressRoutePorts Location Properties", + "description": "Properties specific to ExpressRoutePorts peering location resources.", + "properties": { + "address": { + "type": "string", + "readOnly": true, + "description": "Address of peering location." + }, + "contact": { + "type": "string", + "readOnly": true, + "description": "Contact details of peering locations." + }, + "availableBandwidths": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRoutePortsLocationBandwidths" + }, + "description": "The inventory of available ExpressRoutePort bandwidths." + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioning state of the ExpressRoutePortLocation resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'." + } + } + }, + "ExpressRoutePortsLocation": { + "title": "ExpressRoutePorts Peering Location", + "description": "Definition of the ExpressRoutePorts peering location resource.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExpressRoutePortsLocationPropertiesFormat", + "description": "ExpressRoutePort peering location properties." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ] + }, + "ExpressRoutePortsLocationListResult": { + "title": "ExpressRoutePorts Location List Result", + "description": "Response for ListExpressRoutePortsLocations API service call.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRoutePortsLocation" + }, + "description": "The list of all ExpressRoutePort peering locations." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "ExpressRouteLinkPropertiesFormat": { + "title": "ExpressRouteLink Resource Properties", + "description": "Properties specific to ExpressRouteLink resources.", + "properties": { + "routerName": { + "readOnly": true, + "type": "string", + "description": "Name of Azure router associated with physical port." + }, + "interfaceName": { + "readOnly": true, + "type": "string", + "description": "Name of Azure router interface." + }, + "patchPanelId": { + "readOnly": true, + "type": "string", + "description": "Mapping between physical port to patch panel port." + }, + "rackId": { + "readOnly": true, + "type": "string", + "description": "Mapping of physical patch panel to rack." + }, + "connectorType": { + "readOnly": true, + "type": "string", + "description": "Physical fiber port type.", + "enum": [ + "LC", + "SC" + ], + "x-ms-enum": { + "name": "ExpressRouteLinkConnectorType", + "modelAsString": true + } + }, + "adminState": { + "type": "string", + "description": "Administrative state of the physical port.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "ExpressRouteLinkAdminState", + "modelAsString": true + } + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioning state of the ExpressRouteLink resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'." + } + } + }, + "ExpressRouteLink": { + "title": "ExpressRouteLink", + "description": "ExpressRouteLink child resource definition.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExpressRouteLinkPropertiesFormat", + "description": "ExpressRouteLink properties." + }, + "name": { + "type": "string", + "description": "Name of child port resource that is unique among child port resources of the parent." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ] + }, + "ExpressRouteLinkListResult": { + "title": "ExpressRouteLink List Result", + "description": "Response for ListExpressRouteLinks API service call.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteLink" + }, + "description": "The list of ExpressRouteLink sub-resources." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + }, + "ExpressRoutePortPropertiesFormat": { + "title": "ExpressRoutePort Properties", + "description": "Properties specific to ExpressRoutePort resources.", + "properties": { + "peeringLocation": { + "type": "string", + "description": "The name of the peering location that the ExpressRoutePort is mapped to physically." + }, + "bandwidthInGbps": { + "type": "integer", + "description": "Bandwidth of procured ports in Gbps." + }, + "provisionedBandwidthInGbps": { + "readOnly": true, + "type": "number", + "description": "Aggregate Gbps of associated circuit bandwidths." + }, + "mtu": { + "readOnly": true, + "type": "string", + "description": "Maximum transmission unit of the physical port pair(s)." + }, + "encapsulation": { + "type": "string", + "description": "Encapsulation method on physical ports.", + "enum": [ + "Dot1Q", + "QinQ" + ], + "x-ms-enum": { + "name": "ExpressRoutePortsEncapsulation", + "modelAsString": true + } + }, + "etherType": { + "readOnly": true, + "type": "string", + "description": "Ether type of the physical port." + }, + "allocationDate": { + "readOnly": true, + "type": "string", + "description": "Date of the physical port allocation to be used in Letter of Authorization." + }, + "links": { + "title": "ExpressRouteLink Sub-Resources", + "description": "The set of physical links of the ExpressRoutePort resource.", + "readOnly": false, + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRouteLink" + } + }, + "circuits": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "Reference the ExpressRoute circuit(s) that are provisioned on this ExpressRoutePort resource." + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioning state of the ExpressRoutePort resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'." + }, + "resourceGuid": { + "type": "string", + "description": "The resource GUID property of the ExpressRoutePort resource." + } + } + }, + "ExpressRoutePort": { + "title": "ExpressRoute Port", + "description": "ExpressRoutePort resource definition.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExpressRoutePortPropertiesFormat", + "description": "ExpressRoutePort properties." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ] + }, + "ExpressRoutePortListResult": { + "title": "ExpressRoute Port List Result", + "description": "Response for ListExpressRoutePorts API service call.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpressRoutePort" + }, + "description": "A list of ExpressRoutePort resources." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/firewallPolicy.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/firewallPolicy.json new file mode 100644 index 000000000000..ef40ac8b6708 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/firewallPolicy.json @@ -0,0 +1,985 @@ +{ + "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-06-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/firewallPolicies/{firewallPolicyName}": { + "delete": { + "tags": [ + "FirewallPolicies" + ], + "operationId": "FirewallPolicies_Delete", + "description": "Deletes the specified Firewall Policy.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "firewallPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Firewall Policy." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Request successful. Resource with the specified name does not exist" + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete Firewall Policy": { + "$ref": "./examples/FirewallPolicyDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "FirewallPolicies" + ], + "operationId": "FirewallPolicies_Get", + "description": "Gets the specified Firewall Policy.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "firewallPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Firewall Policy." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a Firewall Policy resource.", + "schema": { + "$ref": "#/definitions/FirewallPolicy" + } + } + }, + "x-ms-examples": { + "Get FirewallPolicy": { + "$ref": "./examples/FirewallPolicyGet.json" + } + } + }, + "patch": { + "tags": [ + "FirewallPolicies" + ], + "operationId": "FirewallPolicies_UpdateTags", + "x-ms-examples": { + "Update FirewallPolicy": { + "$ref": "./examples/FirewallPolicyUpdateTags.json" + } + }, + "description": "Updates a Firewall Policy Tags.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the Firewall Policy." + }, + { + "name": "firewallPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Firewall Policy being updated." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "firewallPolicyParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to Update Firewall Policy tags." + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the Firewall Policy updated.", + "schema": { + "$ref": "#/definitions/FirewallPolicy" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + }, + "put": { + "tags": [ + "FirewallPolicies" + ], + "operationId": "FirewallPolicies_CreateOrUpdate", + "description": "Creates or updates the specified Firewall Policy.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "firewallPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Firewall Policy." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FirewallPolicy" + }, + "description": "Parameters supplied to the create or update Firewall Policy operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Request received successfully. The operation returns the resulting FirewallPolicy resource.", + "schema": { + "$ref": "#/definitions/FirewallPolicy" + } + }, + "200": { + "description": "Request successful. The operation returns the resulting FirewallPolicy resource.", + "schema": { + "$ref": "#/definitions/FirewallPolicy" + } + } + }, + "x-ms-examples": { + "Create FirewallPolicy": { + "$ref": "./examples/FirewallPolicyPut.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/firewallPolicies": { + "get": { + "tags": [ + "FirewallPolicies" + ], + "operationId": "FirewallPolicies_List", + "description": "Lists all Firewall Policies in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of FirewallPolicy resources.", + "schema": { + "$ref": "#/definitions/FirewallPolicyListResult" + } + } + }, + "x-ms-examples": { + "List all Firewall Policies for a given resource group": { + "$ref": "./examples/FirewallPolicyListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/firewallPolicies": { + "get": { + "tags": [ + "FirewallPolicies" + ], + "operationId": "FirewallPolicies_ListAll", + "description": "Gets all the Firewall Policies in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of FirewallPolicy resources.", + "schema": { + "$ref": "#/definitions/FirewallPolicyListResult" + } + } + }, + "x-ms-examples": { + "List all Firewall Policies for a given subscription": { + "$ref": "./examples/FirewallPolicyListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleGroups/{ruleGroupName}": { + "delete": { + "tags": [ + "FirewallPolicyRuleGroups" + ], + "operationId": "FirewallPolicyRuleGroups_Delete", + "description": "Deletes the specified FirewallPolicyRuleGroup.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "firewallPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Firewall Policy." + }, + { + "name": "ruleGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the FirewallPolicyRuleGroup." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Request successful. Resource with the specified name does not exist" + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete FirewallPolicyRuleGroup": { + "$ref": "./examples/FirewallPolicyRuleGroupDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "FirewallPolicyRuleGroups" + ], + "operationId": "FirewallPolicyRuleGroups_Get", + "description": "Gets the specified FirewallPolicyRuleGroup.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "firewallPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Firewall Policy." + }, + { + "name": "ruleGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the FirewallPolicyRuleGroup." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a FirewallPolicyRuleGroup resource.", + "schema": { + "$ref": "#/definitions/FirewallPolicyRuleGroup" + } + } + }, + "x-ms-examples": { + "Get FirewallPolicyRuleGroup": { + "$ref": "./examples/FirewallPolicyRuleGroupGet.json" + } + } + }, + "put": { + "tags": [ + "FirewallPolicyRuleGroups" + ], + "operationId": "FirewallPolicyRuleGroups_CreateOrUpdate", + "description": "Creates or updates the specified FirewallPolicyRuleGroup.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "firewallPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Firewall Policy." + }, + { + "name": "ruleGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the FirewallPolicyRuleGroup." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FirewallPolicyRuleGroup" + }, + "description": "Parameters supplied to the create or update FirewallPolicyRuleGroup operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Request received successfully. The operation returns the resulting FirewallPolicyRuleGroup resource.", + "schema": { + "$ref": "#/definitions/FirewallPolicyRuleGroup" + } + }, + "200": { + "description": "Request successful. The operation returns the resulting FirewallPolicyRuleGroup resource.", + "schema": { + "$ref": "#/definitions/FirewallPolicyRuleGroup" + } + } + }, + "x-ms-examples": { + "Create FirewallPolicyRuleGroup": { + "$ref": "./examples/FirewallPolicyRuleGroupPut.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/firewallPolicies/{firewallPolicyName}/ruleGroups": { + "get": { + "tags": [ + "FirewallPolicyRuleGroups" + ], + "operationId": "FirewallPolicyRuleGroups_List", + "description": "Lists all FirewallPolicyRuleGroups in a FirewallPolicy resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "firewallPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Firewall Policy." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success. The operation returns a list of FirewallPolicyRuleGroup resources.", + "schema": { + "$ref": "#/definitions/FirewallPolicyRuleGroupListResult" + } + } + }, + "x-ms-examples": { + "List all FirewallPolicyRuleGroups for a given FirewallPolicy": { + "$ref": "./examples/FirewallPolicyRuleGroupList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "FirewallPolicy": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/FirewallPolicyPropertiesFormat", + "description": "Properties of the firewall policy." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "FirewallPolicy Resource." + }, + "FirewallPolicyPropertiesFormat": { + "properties": { + "ruleGroups": { + "type": "array", + "readOnly": true, + "description": "List of references to FirewallPolicyRuleGroups", + "items": { + "$ref": "./network.json#/definitions/SubResource" + } + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + }, + "basePolicy": { + "readOnly": false, + "$ref": "./network.json#/definitions/SubResource", + "description": "The parent firewall policy from which rules are inherited." + }, + "firewalls": { + "type": "array", + "readOnly": true, + "description": "List of references to Azure Firewalls that this Firewall Policy is associated with", + "items": { + "$ref": "./network.json#/definitions/SubResource" + } + }, + "childPolicies": { + "type": "array", + "readOnly": true, + "description": "List of references to Child Firewall Policies", + "items": { + "$ref": "./network.json#/definitions/SubResource" + } + }, + "threatIntelMode": { + "description": "The operation mode for Threat Intelligence.", + "$ref": "./azureFirewall.json#/definitions/AzureFirewallThreatIntelMode" + } + }, + "description": "Firewall Policy definition" + }, + "FirewallPolicyRuleGroup": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/FirewallPolicyRuleGroupProperties", + "description": "The properties of the firewall policy rule group." + }, + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Rule Group type." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Rule Group resource" + }, + "FirewallPolicyRuleGroupProperties": { + "properties": { + "priority": { + "type": "integer", + "format": "int32", + "maximum": 65000, + "exclusiveMaximum": false, + "minimum": 100, + "exclusiveMinimum": false, + "description": "Priority of the Firewall Policy Rule Group resource." + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallPolicyRule" + }, + "description": "Group of Firewall Policy rules." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + } + }, + "description": "Properties of the rule group." + }, + "FirewallPolicyRule": { + "description": "Properties of the rule.", + "discriminator": "ruleType", + "required": [ + "ruleType" + ], + "properties": { + "ruleType": { + "type": "string", + "description": " The type of the rule", + "enum": [ + "FirewallPolicyNatRule", + "FirewallPolicyFilterRule" + ], + "x-ms-enum": { + "name": "FirewallPolicyRuleType", + "modelAsString": true + } + }, + "name": { + "type": "string", + "description": "Name of the Rule" + }, + "priority": { + "type": "integer", + "format": "int32", + "maximum": 65000, + "exclusiveMaximum": false, + "minimum": 100, + "exclusiveMinimum": false, + "description": "Priority of the Firewall Policy Rule resource." + } + } + }, + "FirewallPolicyNatRule": { + "properties": { + "action": { + "$ref": "#/definitions/FirewallPolicyNatRuleAction", + "description": "The action type of a Nat rule, SNAT or DNAT" + }, + "translatedAddress": { + "type": "string", + "description": "The translated address for this NAT rule." + }, + "translatedPort": { + "type": "string", + "description": "The translated port for this NAT rule." + }, + "ruleCondition": { + "$ref": "#/definitions/FirewallPolicyRuleCondition", + "description": "The match conditions for incoming traffic" + } + }, + "allOf": [ + { + "$ref": "#/definitions/FirewallPolicyRule" + } + ], + "x-ms-discriminator-value": "FirewallPolicyNatRule", + "description": "Firewall Policy NAT Rule" + }, + "FirewallPolicyFilterRule": { + "properties": { + "action": { + "$ref": "#/definitions/FirewallPolicyFilterRuleAction", + "description": "The action type of a Filter rule" + }, + "ruleConditions": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallPolicyRuleCondition" + }, + "description": "Collection of rule conditions used by a rule." + } + }, + "allOf": [ + { + "$ref": "#/definitions/FirewallPolicyRule" + } + ], + "x-ms-discriminator-value": "FirewallPolicyFilterRule", + "description": "Firewall Policy Filter Rule" + }, + "FirewallPolicyRuleCondition": { + "description": "Properties of a rule.", + "discriminator": "ruleConditionType", + "required": [ + "ruleConditionType" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the rule condition." + }, + "description": { + "type": "string", + "description": "Description of the rule condition." + }, + "ruleConditionType": { + "type": "string", + "description": "Rule Condition Type", + "enum": [ + "ApplicationRuleCondition", + "NetworkRuleCondition" + ], + "x-ms-enum": { + "name": "FirewallPolicyRuleConditionType", + "modelAsString": true + } + } + } + }, + "ApplicationRuleCondition": { + "x-ms-discriminator-value": "ApplicationRuleCondition", + "allOf": [ + { + "$ref": "#/definitions/FirewallPolicyRuleCondition" + } + ], + "properties": { + "sourceAddresses": { + "type": "array", + "description": "List of source IP addresses for this rule.", + "items": { + "type": "string" + } + }, + "destinationAddresses": { + "type": "array", + "description": "List of destination IP addresses or Service Tags.", + "items": { + "type": "string" + } + }, + "protocols": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallPolicyRuleConditionApplicationProtocol" + }, + "description": "Array of Application Protocols." + }, + "targetFqdns": { + "type": "array", + "description": "List of FQDNs for this rule condition.", + "items": { + "type": "string" + } + }, + "fqdnTags": { + "type": "array", + "description": "List of FQDN Tags for this rule condition.", + "items": { + "type": "string" + } + } + }, + "description": "Rule condition of type application." + }, + "NetworkRuleCondition": { + "description": "Rule condition of type network", + "x-ms-discriminator-value": "NetworkRuleCondition", + "allOf": [ + { + "$ref": "#/definitions/FirewallPolicyRuleCondition" + } + ], + "properties": { + "ipProtocols": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallPolicyRuleConditionNetworkProtocol" + }, + "description": "Array of FirewallPolicyRuleConditionNetworkProtocols." + }, + "sourceAddresses": { + "type": "array", + "description": "List of source IP addresses for this rule.", + "items": { + "type": "string" + } + }, + "destinationAddresses": { + "type": "array", + "description": "List of destination IP addresses or Service Tags.", + "items": { + "type": "string" + } + }, + "destinationPorts": { + "type": "array", + "description": "List of destination ports.", + "items": { + "type": "string" + } + } + } + }, + "FirewallPolicyRuleConditionApplicationProtocol": { + "properties": { + "protocolType": { + "description": "Protocol type", + "$ref": "#/definitions/FirewallPolicyRuleConditionApplicationProtocolType" + }, + "port": { + "type": "integer", + "format": "int32", + "maximum": 64000, + "exclusiveMaximum": false, + "minimum": 0, + "exclusiveMinimum": false, + "description": "Port number for the protocol, cannot be greater than 64000." + } + }, + "description": "Properties of the application rule protocol." + }, + "FirewallPolicyRuleConditionApplicationProtocolType": { + "type": "string", + "description": "The application protocol type of a Rule condition.", + "enum": [ + "Http", + "Https" + ], + "x-ms-enum": { + "name": "FirewallPolicyRuleConditionApplicationProtocolType", + "modelAsString": true + } + }, + "FirewallPolicyNatRuleActionType": { + "type": "string", + "description": "The action type of a rule", + "enum": [ + "DNAT", + "SNAT" + ], + "x-ms-enum": { + "name": "FirewallPolicyNatRuleActionType", + "modelAsString": true + } + }, + "FirewallPolicyNatRuleAction": { + "properties": { + "type": { + "description": "The type of action.", + "$ref": "#/definitions/FirewallPolicyNatRuleActionType" + } + }, + "description": "Properties of the FirewallPolicyNatRuleAction." + }, + "FirewallPolicyFilterRuleActionType": { + "type": "string", + "description": "The action type of a rule", + "enum": [ + "Allow", + "Deny", + "Alert " + ], + "x-ms-enum": { + "name": "FirewallPolicyFilterRuleActionType", + "modelAsString": true + } + }, + "FirewallPolicyFilterRuleAction": { + "properties": { + "type": { + "description": "The type of action.", + "$ref": "#/definitions/FirewallPolicyFilterRuleActionType" + } + }, + "description": "Properties of the FirewallPolicyFilterRuleAction." + }, + "FirewallPolicyRuleConditionNetworkProtocol": { + "type": "string", + "description": "The Network protocol of a Rule condition", + "enum": [ + "TCP", + "UDP", + "Any", + "ICMP" + ], + "x-ms-enum": { + "name": "FirewallPolicyRuleConditionNetworkProtocol", + "modelAsString": true + } + }, + "FirewallPolicyListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallPolicy" + }, + "description": "List of Firewall Policies in a resource group." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of results." + } + }, + "description": "Response for ListFirewallPolicies API service call." + }, + "FirewallPolicyRuleGroupListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallPolicyRuleGroup" + }, + "description": "List of FirewallPolicyRuleGroups in a FirewallPolicy." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of results." + } + }, + "description": "Response for ListFirewallPolicyRuleGroups API service call." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/loadBalancer.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/loadBalancer.json new file mode 100644 index 000000000000..68a7a0415d7c --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/loadBalancer.json @@ -0,0 +1,1916 @@ +{ + "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-06-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/loadBalancers/{loadBalancerName}": { + "delete": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancers_Delete", + "description": "Deletes the specified load balancer.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request successful. Resource does not exist." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete load balancer": { + "$ref": "./examples/LoadBalancerDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancers_Get", + "description": "Gets the specified load balancer.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting LoadBalancer resource.", + "schema": { + "$ref": "#/definitions/LoadBalancer" + } + } + }, + "x-ms-examples": { + "Get load balancer": { + "$ref": "./examples/LoadBalancerGet.json" + } + } + }, + "put": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancers_CreateOrUpdate", + "description": "Creates or updates a load balancer.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LoadBalancer" + }, + "description": "Parameters supplied to the create or update load balancer operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting LoadBalancer resource.", + "schema": { + "$ref": "#/definitions/LoadBalancer" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting LoadBalancer resource.", + "schema": { + "$ref": "#/definitions/LoadBalancer" + } + } + }, + "x-ms-examples": { + "Create load balancer": { + "$ref": "./examples/LoadBalancerCreate.json" + }, + "Create load balancer with Standard SKU": { + "$ref": "./examples/LoadBalancerCreateStandardSku.json" + }, + "Create load balancer with Frontend IP in Zone 1": { + "$ref": "./examples/LoadBalancerCreateWithZones.json" + }, + "Create load balancer with inbound nat pool": { + "$ref": "./examples/LoadBalancerCreateWithInboundNatPool.json" + }, + "Create load balancer with outbound rules": { + "$ref": "./examples/LoadBalancerCreateWithOutboundRules.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancers_UpdateTags", + "description": "Updates a load balancer tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update load balancer tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting LoadBalancer resource.", + "schema": { + "$ref": "#/definitions/LoadBalancer" + } + } + }, + "x-ms-examples": { + "Update load balancer tags": { + "$ref": "./examples/LoadBalancerUpdateTags.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/loadBalancers": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancers_ListAll", + "description": "Gets all the load balancers in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of LoadBalancer resources.", + "schema": { + "$ref": "#/definitions/LoadBalancerListResult" + } + } + }, + "x-ms-examples": { + "List all load balancers": { + "$ref": "./examples/LoadBalancerListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancers_List", + "description": "Gets all the load balancers in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of LoadBalancer resources.", + "schema": { + "$ref": "#/definitions/LoadBalancerListResult" + } + } + }, + "x-ms-examples": { + "List load balancers in resource group": { + "$ref": "./examples/LoadBalancerList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancerBackendAddressPools_List", + "description": "Gets all the load balancer backed address pools.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of LoadBalancer BackendAddressPool resources.", + "schema": { + "$ref": "#/definitions/LoadBalancerBackendAddressPoolListResult" + } + } + }, + "x-ms-examples": { + "LoadBalancerBackendAddressPoolList": { + "$ref": "./examples/LoadBalancerBackendAddressPoolList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancerBackendAddressPools_Get", + "description": "Gets load balancer backend address pool.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "name": "backendAddressPoolName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the backend address pool." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns LoadBalancer BackendAddressPool resource.", + "schema": { + "$ref": "#/definitions/BackendAddressPool" + } + } + }, + "x-ms-examples": { + "LoadBalancerBackendAddressPoolGet": { + "$ref": "./examples/LoadBalancerBackendAddressPoolGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancerFrontendIPConfigurations_List", + "description": "Gets all the load balancer frontend IP configurations.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of LoadBalancer FrontendIPConfiguration resources.", + "schema": { + "$ref": "#/definitions/LoadBalancerFrontendIPConfigurationListResult" + } + } + }, + "x-ms-examples": { + "LoadBalancerFrontendIPConfigurationList": { + "$ref": "./examples/LoadBalancerFrontendIPConfigurationList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations/{frontendIPConfigurationName}": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancerFrontendIPConfigurations_Get", + "description": "Gets load balancer frontend IP configuration.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "name": "frontendIPConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the frontend IP configuration." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns LoadBalancer FrontendIPConfiguration resource.", + "schema": { + "$ref": "#/definitions/FrontendIPConfiguration" + } + } + }, + "x-ms-examples": { + "LoadBalancerFrontendIPConfigurationGet": { + "$ref": "./examples/LoadBalancerFrontendIPConfigurationGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "InboundNatRules_List", + "description": "Gets all the inbound nat rules in a load balancer.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of LoadBalancer InboundNatRule resources.", + "schema": { + "$ref": "#/definitions/InboundNatRuleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "InboundNatRuleList": { + "$ref": "./examples/InboundNatRuleList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}": { + "delete": { + "tags": [ + "LoadBalancers" + ], + "operationId": "InboundNatRules_Delete", + "description": "Deletes the specified load balancer inbound nat rule.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "name": "inboundNatRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the inbound nat rule." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request successful. Resource does not exist." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "InboundNatRuleDelete": { + "$ref": "./examples/InboundNatRuleDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "InboundNatRules_Get", + "description": "Gets the specified load balancer inbound nat rule.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "name": "inboundNatRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the inbound nat rule." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting InboundNatRule resource.", + "schema": { + "$ref": "#/definitions/InboundNatRule" + } + } + }, + "x-ms-examples": { + "InboundNatRuleGet": { + "$ref": "./examples/InboundNatRuleGet.json" + } + } + }, + "put": { + "tags": [ + "LoadBalancers" + ], + "operationId": "InboundNatRules_CreateOrUpdate", + "description": "Creates or updates a load balancer inbound nat rule.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "name": "inboundNatRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the inbound nat rule." + }, + { + "name": "inboundNatRuleParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InboundNatRule" + }, + "description": "Parameters supplied to the create or update inbound nat rule operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting InboundNatRule resource.", + "schema": { + "$ref": "#/definitions/InboundNatRule" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting InboundNatRule resource.", + "schema": { + "$ref": "#/definitions/InboundNatRule" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "InboundNatRuleCreate": { + "$ref": "./examples/InboundNatRuleCreate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancerLoadBalancingRules_List", + "description": "Gets all the load balancing rules in a load balancer.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of LoadBalancer LoadBalancingRule resources.", + "schema": { + "$ref": "#/definitions/LoadBalancerLoadBalancingRuleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "LoadBalancerLoadBalancingRuleList": { + "$ref": "./examples/LoadBalancerLoadBalancingRuleList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancerLoadBalancingRules_Get", + "description": "Gets the specified load balancer load balancing rule.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "name": "loadBalancingRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancing rule." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting LoadBalancingRule resource.", + "schema": { + "$ref": "#/definitions/LoadBalancingRule" + } + } + }, + "x-ms-examples": { + "LoadBalancerLoadBalancingRuleGet": { + "$ref": "./examples/LoadBalancerLoadBalancingRuleGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancerOutboundRules_List", + "description": "Gets all the outbound rules in a load balancer.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of LoadBalancer OutboundRule resources.", + "schema": { + "$ref": "#/definitions/LoadBalancerOutboundRuleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "LoadBalancerOutboundRuleList": { + "$ref": "./examples/LoadBalancerOutboundRuleList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules/{outboundRuleName}": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancerOutboundRules_Get", + "description": "Gets the specified load balancer outbound rule.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "name": "outboundRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the outbound rule." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting OutboundRule resource.", + "schema": { + "$ref": "#/definitions/OutboundRule" + } + } + }, + "x-ms-examples": { + "LoadBalancerOutboundRuleGet": { + "$ref": "./examples/LoadBalancerOutboundRuleGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancerNetworkInterfaces_List", + "description": "Gets associated load balancer network interfaces.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NetworkInterface resources.", + "schema": { + "$ref": "./networkInterface.json#/definitions/NetworkInterfaceListResult" + } + } + }, + "x-ms-examples": { + "LoadBalancerNetworkInterfaceListVmss": { + "$ref": "./examples/LoadBalancerNetworkInterfaceListVmss.json" + }, + "LoadBalancerNetworkInterfaceListSimple": { + "$ref": "./examples/LoadBalancerNetworkInterfaceListSimple.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancerProbes_List", + "description": "Gets all the load balancer probes.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of LoadBalancer Probe resources.", + "schema": { + "$ref": "#/definitions/LoadBalancerProbeListResult" + } + } + }, + "x-ms-examples": { + "LoadBalancerProbeList": { + "$ref": "./examples/LoadBalancerProbeList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}": { + "get": { + "tags": [ + "LoadBalancers" + ], + "operationId": "LoadBalancerProbes_Get", + "description": "Gets load balancer probe.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "loadBalancerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the load balancer." + }, + { + "name": "probeName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the probe." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns LoadBalancer Probe resource.", + "schema": { + "$ref": "#/definitions/Probe" + } + } + }, + "x-ms-examples": { + "LoadBalancerProbeGet": { + "$ref": "./examples/LoadBalancerProbeGet.json" + } + } + } + } + }, + "definitions": { + "LoadBalancerSku": { + "properties": { + "name": { + "type": "string", + "description": "Name of a load balancer SKU.", + "enum": [ + "Basic", + "Standard" + ], + "x-ms-enum": { + "name": "LoadBalancerSkuName", + "modelAsString": true + } + } + }, + "description": "SKU of a load balancer." + }, + "FrontendIPConfigurationPropertiesFormat": { + "properties": { + "inboundNatRules": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "Read only. Inbound rules URIs that use this frontend IP." + }, + "inboundNatPools": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "Read only. Inbound pools URIs that use this frontend IP." + }, + "outboundRules": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "Read only. Outbound rules URIs that use this frontend IP." + }, + "loadBalancingRules": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "Gets load balancing rules URIs that use this frontend IP." + }, + "privateIPAddress": { + "type": "string", + "description": "The private IP address of the IP configuration." + }, + "privateIPAllocationMethod": { + "$ref": "./network.json#/definitions/IPAllocationMethod", + "description": "The Private IP allocation method." + }, + "privateIPAddressVersion": { + "$ref": "./network.json#/definitions/IPVersion", + "description": "It represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4." + }, + "subnet": { + "$ref": "./virtualNetwork.json#/definitions/Subnet", + "description": "The reference of the subnet resource." + }, + "publicIPAddress": { + "$ref": "./publicIpAddress.json#/definitions/PublicIPAddress", + "description": "The reference of the Public IP resource." + }, + "publicIPPrefix": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference of the Public IP Prefix resource." + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of Frontend IP Configuration of the load balancer." + }, + "FrontendIPConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/FrontendIPConfigurationPropertiesFormat", + "description": "Properties of the load balancer probe." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Type of the resource." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of availability zones denoting the IP allocated for the resource needs to come from." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Frontend IP address of the load balancer." + }, + "BackendAddressPoolPropertiesFormat": { + "properties": { + "backendIPConfigurations": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./networkInterface.json#/definitions/NetworkInterfaceIPConfiguration" + }, + "description": "Gets collection of references to IP addresses defined in network interfaces." + }, + "loadBalancingRules": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "Gets load balancing rules that use this backend address pool." + }, + "outboundRule": { + "readOnly": true, + "$ref": "./network.json#/definitions/SubResource", + "description": "Gets outbound rules that use this backend address pool." + }, + "outboundRules": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "Gets outbound rules that use this backend address pool." + }, + "provisioningState": { + "type": "string", + "description": "Get provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of the backend address pool." + }, + "BackendAddressPool": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BackendAddressPoolPropertiesFormat", + "description": "Properties of load balancer backend address pool." + }, + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within the set of backend address pools used by the load balancer. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Pool of backend IP addresses." + }, + "LoadBalancingRulePropertiesFormat": { + "properties": { + "frontendIPConfiguration": { + "$ref": "./network.json#/definitions/SubResource", + "description": "A reference to frontend IP addresses." + }, + "backendAddressPool": { + "$ref": "./network.json#/definitions/SubResource", + "description": "A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs." + }, + "probe": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference of the load balancer probe used by the load balancing rule." + }, + "protocol": { + "$ref": "#/definitions/TransportProtocol", + "description": "The reference to the transport protocol used by the load balancing rule." + }, + "loadDistribution": { + "type": "string", + "description": "The load distribution policy for this rule.", + "enum": [ + "Default", + "SourceIP", + "SourceIPProtocol" + ], + "x-ms-enum": { + "name": "LoadDistribution", + "modelAsString": true + } + }, + "frontendPort": { + "type": "integer", + "format": "int32", + "description": "The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables \"Any Port\"." + }, + "backendPort": { + "type": "integer", + "format": "int32", + "description": "The port used for internal connections on the endpoint. Acceptable values are between 0 and 65535. Note that value 0 enables \"Any Port\"." + }, + "idleTimeoutInMinutes": { + "type": "integer", + "format": "int32", + "description": "The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP." + }, + "enableFloatingIP": { + "type": "boolean", + "description": "Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint." + }, + "enableTcpReset": { + "type": "boolean", + "description": "Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP." + }, + "disableOutboundSnat": { + "type": "boolean", + "description": "Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule." + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "required": [ + "protocol", + "frontendPort" + ], + "description": "Properties of the load balancer." + }, + "LoadBalancingRule": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LoadBalancingRulePropertiesFormat", + "description": "Properties of load balancer load balancing rule." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within the set of load balancing rules used by the load balancer. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "A load balancing rule for a load balancer." + }, + "ProbePropertiesFormat": { + "properties": { + "loadBalancingRules": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "The load balancer rules that use this probe." + }, + "protocol": { + "type": "string", + "description": "The protocol of the end point. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful.", + "enum": [ + "Http", + "Tcp", + "Https" + ], + "x-ms-enum": { + "name": "ProbeProtocol", + "modelAsString": true + } + }, + "port": { + "type": "integer", + "format": "int32", + "description": "The port for communicating the probe. Possible values range from 1 to 65535, inclusive." + }, + "intervalInSeconds": { + "type": "integer", + "format": "int32", + "description": "The interval, in seconds, for how frequently to probe the endpoint for health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5." + }, + "numberOfProbes": { + "type": "integer", + "format": "int32", + "description": "The number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure." + }, + "requestPath": { + "type": "string", + "description": "The URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, it is not allowed. There is no default value." + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "required": [ + "protocol", + "port" + ], + "description": "Load balancer probe resource." + }, + "Probe": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProbePropertiesFormat", + "description": "Properties of load balancer probe." + }, + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within the set of probes used by the load balancer. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "A load balancer probe." + }, + "InboundNatRulePropertiesFormat": { + "properties": { + "frontendIPConfiguration": { + "$ref": "./network.json#/definitions/SubResource", + "description": "A reference to frontend IP addresses." + }, + "backendIPConfiguration": { + "readOnly": true, + "$ref": "./networkInterface.json#/definitions/NetworkInterfaceIPConfiguration", + "description": "A reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations is forwarded to the backend IP." + }, + "protocol": { + "$ref": "#/definitions/TransportProtocol", + "description": "The reference to the transport protocol used by the load balancing rule." + }, + "frontendPort": { + "type": "integer", + "format": "int32", + "description": "The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534." + }, + "backendPort": { + "type": "integer", + "format": "int32", + "description": "The port used for the internal endpoint. Acceptable values range from 1 to 65535." + }, + "idleTimeoutInMinutes": { + "type": "integer", + "format": "int32", + "description": "The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP." + }, + "enableFloatingIP": { + "type": "boolean", + "description": "Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint." + }, + "enableTcpReset": { + "type": "boolean", + "description": "Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP." + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of the inbound NAT rule." + }, + "InboundNatRule": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/InboundNatRulePropertiesFormat", + "description": "Properties of load balancer inbound nat rule." + }, + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within the set of inbound NAT rules used by the load balancer. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Inbound NAT rule of the load balancer." + }, + "InboundNatPoolPropertiesFormat": { + "properties": { + "frontendIPConfiguration": { + "$ref": "./network.json#/definitions/SubResource", + "description": "A reference to frontend IP addresses." + }, + "protocol": { + "$ref": "#/definitions/TransportProtocol", + "description": "The reference to the transport protocol used by the inbound NAT pool." + }, + "frontendPortRangeStart": { + "type": "integer", + "format": "int32", + "description": "The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65534." + }, + "frontendPortRangeEnd": { + "type": "integer", + "format": "int32", + "description": "The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65535." + }, + "backendPort": { + "type": "integer", + "format": "int32", + "description": "The port used for internal connections on the endpoint. Acceptable values are between 1 and 65535." + }, + "idleTimeoutInMinutes": { + "type": "integer", + "format": "int32", + "description": "The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP." + }, + "enableFloatingIP": { + "type": "boolean", + "description": "Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint." + }, + "enableTcpReset": { + "type": "boolean", + "description": "Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP." + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "required": [ + "protocol", + "frontendPortRangeStart", + "frontendPortRangeEnd", + "backendPort" + ], + "description": "Properties of Inbound NAT pool." + }, + "InboundNatPool": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/InboundNatPoolPropertiesFormat", + "description": "Properties of load balancer inbound nat pool." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within the set of inbound NAT pools used by the load balancer. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Inbound NAT pool of the load balancer." + }, + "OutboundRulePropertiesFormat": { + "properties": { + "allocatedOutboundPorts": { + "type": "integer", + "format": "int32", + "description": "The number of outbound ports to be used for NAT." + }, + "frontendIPConfigurations": { + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "The Frontend IP addresses of the load balancer." + }, + "backendAddressPool": { + "$ref": "./network.json#/definitions/SubResource", + "description": "A reference to a pool of DIPs. Outbound traffic is randomly load balanced across IPs in the backend IPs." + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + }, + "protocol": { + "type": "string", + "description": "The protocol for the outbound rule in load balancer.", + "enum": [ + "Tcp", + "Udp", + "All" + ], + "x-ms-enum": { + "name": "LoadBalancerOutboundRuleProtocol", + "modelAsString": true + } + }, + "enableTcpReset": { + "type": "boolean", + "description": "Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP." + }, + "idleTimeoutInMinutes": { + "type": "integer", + "description": "The timeout for the TCP idle connection." + } + }, + "required": [ + "backendAddressPool", + "frontendIPConfigurations", + "protocol" + ], + "description": "Outbound rule of the load balancer." + }, + "OutboundRule": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/OutboundRulePropertiesFormat", + "description": "Properties of load balancer outbound rule." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within the set of outbound rules used by the load balancer. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Type of the resource." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Outbound rule of the load balancer." + }, + "LoadBalancerPropertiesFormat": { + "properties": { + "frontendIPConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/FrontendIPConfiguration" + }, + "description": "Object representing the frontend IPs to be used for the load balancer." + }, + "backendAddressPools": { + "type": "array", + "items": { + "$ref": "#/definitions/BackendAddressPool" + }, + "description": "Collection of backend address pools used by a load balancer." + }, + "loadBalancingRules": { + "type": "array", + "items": { + "$ref": "#/definitions/LoadBalancingRule" + }, + "description": "Object collection representing the load balancing rules Gets the provisioning." + }, + "probes": { + "type": "array", + "items": { + "$ref": "#/definitions/Probe" + }, + "description": "Collection of probe objects used in the load balancer." + }, + "inboundNatRules": { + "type": "array", + "items": { + "$ref": "#/definitions/InboundNatRule" + }, + "description": "Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules." + }, + "inboundNatPools": { + "type": "array", + "items": { + "$ref": "#/definitions/InboundNatPool" + }, + "description": "Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound Nat rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules." + }, + "outboundRules": { + "type": "array", + "items": { + "$ref": "#/definitions/OutboundRule" + }, + "description": "The outbound rules." + }, + "resourceGuid": { + "type": "string", + "description": "The resource GUID property of the load balancer resource." + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of the load balancer." + }, + "LoadBalancer": { + "properties": { + "sku": { + "$ref": "#/definitions/LoadBalancerSku", + "description": "The load balancer SKU." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LoadBalancerPropertiesFormat", + "description": "Properties of load balancer." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "LoadBalancer resource." + }, + "LoadBalancerListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/LoadBalancer" + }, + "description": "A list of load balancers in a resource group." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListLoadBalancers API service call." + }, + "InboundNatRuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/InboundNatRule" + }, + "description": "A list of inbound nat rules in a load balancer." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListInboundNatRule API service call." + }, + "LoadBalancerBackendAddressPoolListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/BackendAddressPool" + }, + "description": "A list of backend address pools in a load balancer." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListBackendAddressPool API service call." + }, + "LoadBalancerFrontendIPConfigurationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FrontendIPConfiguration" + }, + "description": "A list of frontend IP configurations in a load balancer." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListFrontendIPConfiguration API service call." + }, + "LoadBalancerLoadBalancingRuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/LoadBalancingRule" + }, + "description": "A list of load balancing rules in a load balancer." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListLoadBalancingRule API service call." + }, + "LoadBalancerOutboundRuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/OutboundRule" + }, + "description": "A list of outbound rules in a load balancer." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListOutboundRule API service call." + }, + "LoadBalancerProbeListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Probe" + }, + "description": "A list of probes in a load balancer." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListProbe API service call." + }, + "TransportProtocol": { + "type": "string", + "description": "The transport protocol for the endpoint.", + "enum": [ + "Udp", + "Tcp", + "All" + ], + "x-ms-enum": { + "name": "TransportProtocol", + "modelAsString": true + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/natGateway.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/natGateway.json new file mode 100644 index 000000000000..d7054afffb72 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/natGateway.json @@ -0,0 +1,433 @@ +{ + "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-06-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/natGateways/{natGatewayName}": { + "delete": { + "tags": [ + "NatGateways" + ], + "operationId": "NatGateways_Delete", + "description": "Deletes the specified nat gateway.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "natGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the nat gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request successful. Resource does not exist." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete nat gateway": { + "$ref": "./examples/NatGatewayDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "NatGateways" + ], + "operationId": "NatGateways_Get", + "description": "Gets the specified nat gateway in a specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "natGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the nat gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting NatGateway resource.", + "schema": { + "$ref": "#/definitions/NatGateway" + } + } + }, + "x-ms-examples": { + "Get nat gateway": { + "$ref": "./examples/NatGatewayGet.json" + } + } + }, + "put": { + "tags": [ + "NatGateways" + ], + "operationId": "NatGateways_CreateOrUpdate", + "description": "Creates or updates a nat gateway.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "natGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the nat gateway." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NatGateway" + }, + "description": "Parameters supplied to the create or update nat gateway operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting NatGateway resource.", + "schema": { + "$ref": "#/definitions/NatGateway" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting NatGateway resource.", + "schema": { + "$ref": "#/definitions/NatGateway" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/NatGateway" + } + } + }, + "x-ms-examples": { + "Create nat gateway": { + "$ref": "./examples/NatGatewayCreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "NatGateways" + ], + "operationId": "NatGateways_UpdateTags", + "description": "Updates nat gateway tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "natGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the nat gateway." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update nat gateway tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting NatGateway resource.", + "schema": { + "$ref": "#/definitions/NatGateway" + } + } + }, + "x-ms-examples": { + "Update nat gateway tags": { + "$ref": "./examples/NatGatewayUpdateTags.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/natGateways": { + "get": { + "tags": [ + "NatGateways" + ], + "operationId": "NatGateways_ListAll", + "description": "Gets all the Nat Gateways in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NatGateway resources.", + "schema": { + "$ref": "#/definitions/NatGatewayListResult" + } + } + }, + "x-ms-examples": { + "List all nat gateways": { + "$ref": "./examples/NatGatewayListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways": { + "get": { + "tags": [ + "NatGateways" + ], + "operationId": "NatGateways_List", + "description": "Gets all nat gateways in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NatGateway resources.", + "schema": { + "$ref": "#/definitions/NatGatewayListResult" + } + } + }, + "x-ms-examples": { + "List nat gateways in resource group": { + "$ref": "./examples/NatGatewayList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "NatGatewaySku": { + "properties": { + "name": { + "type": "string", + "description": "Name of Nat Gateway SKU.", + "enum": [ + "Standard" + ], + "x-ms-enum": { + "name": "NatGatewaySkuName", + "modelAsString": true + } + } + }, + "description": "SKU of nat gateway." + }, + "NatGatewayPropertiesFormat": { + "properties": { + "idleTimeoutInMinutes": { + "type": "integer", + "format": "int32", + "description": "The idle timeout of the nat gateway." + }, + "publicIpAddresses": { + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "An array of public ip addresses associated with the nat gateway resource." + }, + "publicIpPrefixes": { + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "An array of public ip prefixes associated with the nat gateway resource." + }, + "subnets": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "An array of references to the subnets using this nat gateway resource." + }, + "resourceGuid": { + "type": "string", + "description": "The resource GUID property of the nat gateway resource." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the NatGateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Nat Gateway properties." + }, + "NatGateway": { + "properties": { + "sku": { + "$ref": "#/definitions/NatGatewaySku", + "description": "The nat gateway SKU." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NatGatewayPropertiesFormat", + "description": "Nat Gateway properties." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of availability zones denoting the zone in which Nat Gateway should be deployed." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Nat Gateway resource." + }, + "NatGatewayListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NatGateway" + }, + "description": "A list of Nat Gateways that exists in a resource group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListNatGateways API service call." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/network.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/network.json new file mode 100644 index 000000000000..320c22b7796f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/network.json @@ -0,0 +1,300 @@ +{ + "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-06-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": {}, + "definitions": { + "ErrorDetails": { + "properties": { + "code": { + "type": "string", + "description": "Error code." + }, + "target": { + "type": "string", + "description": "Error target." + }, + "message": { + "type": "string", + "description": "Error message." + } + }, + "description": "Common error details representation." + }, + "Error": { + "properties": { + "code": { + "type": "string", + "description": "Error code." + }, + "message": { + "type": "string", + "description": "Error message." + }, + "target": { + "type": "string", + "description": "Error target." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetails" + }, + "description": "Error details." + }, + "innerError": { + "type": "string", + "description": "Inner error message." + } + }, + "description": "Common error representation." + }, + "AzureAsyncOperationResult": { + "properties": { + "status": { + "type": "string", + "description": "Status of the Azure async operation.", + "enum": [ + "InProgress", + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "NetworkOperationStatus", + "modelAsString": true + } + }, + "error": { + "$ref": "#/definitions/Error", + "description": "Details of the error occurred during specified asynchronous operation." + } + }, + "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": { + "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." + }, + "ManagedServiceIdentity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of the system assigned identity. This property will only be provided for a system assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of the system assigned identity. This property will only be provided for a system assigned identity." + }, + "type": { + "type": "string", + "description": "The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "type": "object", + "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 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." + }, + "ProvisioningState": { + "type": "string", + "readOnly": true, + "description": "The current provisioning state.", + "enum": [ + "Succeeded", + "Updating", + "Deleting", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "Access": { + "type": "string", + "description": "Access to be allowed or denied.", + "enum": [ + "Allow", + "Deny" + ], + "x-ms-enum": { + "name": "Access", + "modelAsString": true + } + }, + "AuthenticationMethod": { + "type": "string", + "description": "VPN client authentication method.", + "enum": [ + "EAPTLS", + "EAPMSCHAPv2" + ], + "x-ms-enum": { + "name": "AuthenticationMethod", + "modelAsString": true + } + }, + "IPAllocationMethod": { + "type": "string", + "description": "IP address allocation method.", + "enum": [ + "Static", + "Dynamic" + ], + "x-ms-enum": { + "name": "IPAllocationMethod", + "modelAsString": true + } + }, + "IPVersion": { + "type": "string", + "description": "IP address version.", + "enum": [ + "IPv4", + "IPv6" + ], + "x-ms-enum": { + "name": "IPVersion", + "modelAsString": true + } + } + }, + "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." + }, + "ApiVersionVmssParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "enum": [ + "2017-03-30" + ], + "x-ms-enum": { + "name": "ApiVersion", + "modelAsString": true + }, + "description": "Client API version." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkInterface.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkInterface.json new file mode 100644 index 000000000000..01c41f11747e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkInterface.json @@ -0,0 +1,1391 @@ +{ + "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-06-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/networkInterfaces/{networkInterfaceName}": { + "delete": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaces_Delete", + "description": "Deletes the specified network interface.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request successful. Resource does not exist." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete network interface": { + "$ref": "./examples/NetworkInterfaceDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaces_Get", + "description": "Gets information about the specified network interface.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting NetworkInterface resource.", + "schema": { + "$ref": "#/definitions/NetworkInterface" + } + } + }, + "x-ms-examples": { + "Get network interface": { + "$ref": "./examples/NetworkInterfaceGet.json" + } + } + }, + "put": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaces_CreateOrUpdate", + "description": "Creates or updates a network interface.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkInterface" + }, + "description": "Parameters supplied to the create or update network interface operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting NetworkInterface resource.", + "schema": { + "$ref": "#/definitions/NetworkInterface" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting NetworkInterface resource.", + "schema": { + "$ref": "#/definitions/NetworkInterface" + } + } + }, + "x-ms-examples": { + "Create network interface": { + "$ref": "./examples/NetworkInterfaceCreate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaces_UpdateTags", + "description": "Updates a network interface tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update network interface tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting NetworkInterface resource.", + "schema": { + "$ref": "#/definitions/NetworkInterface" + } + } + }, + "x-ms-examples": { + "Update network interface tags": { + "$ref": "./examples/NetworkInterfaceUpdateTags.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces": { + "get": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaces_ListAll", + "description": "Gets all network interfaces in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NetworkInterface resources.", + "schema": { + "$ref": "#/definitions/NetworkInterfaceListResult" + } + } + }, + "x-ms-examples": { + "List all network interfaces": { + "$ref": "./examples/NetworkInterfaceListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces": { + "get": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaces_List", + "description": "Gets all network interfaces in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NetworkInterface resources.", + "schema": { + "$ref": "#/definitions/NetworkInterfaceListResult" + } + } + }, + "x-ms-examples": { + "List network interfaces in resource group": { + "$ref": "./examples/NetworkInterfaceList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable": { + "post": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaces_GetEffectiveRouteTable", + "description": "Gets all route tables applied to a network interface.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of EffectRoute resources.", + "schema": { + "$ref": "#/definitions/EffectiveRouteListResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "Show network interface effective route tables": { + "$ref": "./examples/NetworkInterfaceEffectiveRouteTableList.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups": { + "post": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaces_ListEffectiveNetworkSecurityGroups", + "description": "Gets all network security groups applied to a network interface.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NetworkSecurityGroup resources.", + "schema": { + "$ref": "#/definitions/EffectiveNetworkSecurityGroupListResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "List network interface effective network security groups": { + "$ref": "./examples/NetworkInterfaceEffectiveNSGList.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations": { + "get": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaceIPConfigurations_List", + "description": "Get all ip configurations in a network interface.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NetworkInterface IPConfiguration resources.", + "schema": { + "$ref": "#/definitions/NetworkInterfaceIPConfigurationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "NetworkInterfaceIPConfigurationList": { + "$ref": "./examples/NetworkInterfaceIPConfigurationList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}": { + "get": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaceIPConfigurations_Get", + "description": "Gets the specified network interface ip configuration.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "name": "ipConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ip configuration name." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting NetworkInterface IPConfiguration resource.", + "schema": { + "$ref": "#/definitions/NetworkInterfaceIPConfiguration" + } + } + }, + "x-ms-examples": { + "NetworkInterfaceIPConfigurationGet": { + "$ref": "./examples/NetworkInterfaceIPConfigurationGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/loadBalancers": { + "get": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaceLoadBalancers_List", + "description": "List all load balancers in a network interface.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NetworkInterface LoadBalancer resources.", + "schema": { + "$ref": "#/definitions/NetworkInterfaceLoadBalancerListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "NetworkInterfaceLoadBalancerList": { + "$ref": "./examples/NetworkInterfaceLoadBalancerList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}": { + "delete": { + "tags": [ + "Network Interfaces" + ], + "operationId": "NetworkInterfaceTapConfigurations_Delete", + "description": "Deletes the specified tap configuration from the NetworkInterface.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "name": "tapConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the tap configuration." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete tap configuration": { + "$ref": "./examples/NetworkInterfaceTapConfigurationDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaceTapConfigurations_Get", + "description": "Get the specified tap configuration on a network interface.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "name": "tapConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the tap configuration." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a tap configuration.", + "schema": { + "$ref": "#/definitions/NetworkInterfaceTapConfiguration" + } + } + }, + "x-ms-examples": { + "Get Network Interface Tap Configurations": { + "$ref": "./examples/NetworkInterfaceTapConfigurationGet.json" + } + } + }, + "put": { + "tags": [ + "Network Interfaces" + ], + "operationId": "NetworkInterfaceTapConfigurations_CreateOrUpdate", + "description": "Creates or updates a Tap configuration in the specified NetworkInterface.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "name": "tapConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the tap configuration." + }, + { + "name": "tapConfigurationParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkInterfaceTapConfiguration" + }, + "description": "Parameters supplied to the create or update tap configuration operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Tap Configuration resource.", + "schema": { + "$ref": "#/definitions/NetworkInterfaceTapConfiguration" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Tap configuration resource.", + "schema": { + "$ref": "#/definitions/NetworkInterfaceTapConfiguration" + } + } + }, + "x-ms-examples": { + "Create Network Interface Tap Configurations": { + "$ref": "./examples/NetworkInterfaceTapConfigurationCreate.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/networkInterfaces/{networkInterfaceName}/tapConfigurations": { + "get": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaceTapConfigurations_List", + "description": "Get all Tap configurations in a network interface.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NetworkInterface TapConfiguration resources.", + "schema": { + "$ref": "#/definitions/NetworkInterfaceTapConfigurationListResult" + } + } + }, + "x-ms-examples": { + "List virtual network tap configurations": { + "$ref": "./examples/NetworkInterfaceTapConfigurationList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "NetworkInterfaceTapConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NetworkInterfaceTapConfigurationPropertiesFormat", + "description": "Properties of the Virtual Network Tap configuration." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Sub Resource type." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Tap configuration in a Network Interface." + }, + "NetworkInterfaceTapConfigurationPropertiesFormat": { + "properties": { + "virtualNetworkTap": { + "$ref": "./virtualNetworkTap.json#/definitions/VirtualNetworkTap", + "description": "The reference of the Virtual Network Tap resource." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the network interface tap configuration. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of Virtual Network Tap configuration." + }, + "NetworkInterfaceIPConfigurationPropertiesFormat": { + "properties": { + "virtualNetworkTaps": { + "type": "array", + "items": { + "$ref": "./virtualNetworkTap.json#/definitions/VirtualNetworkTap" + }, + "description": "The reference to Virtual Network Taps." + }, + "applicationGatewayBackendAddressPools": { + "type": "array", + "items": { + "$ref": "./applicationGateway.json#/definitions/ApplicationGatewayBackendAddressPool" + }, + "description": "The reference of ApplicationGatewayBackendAddressPool resource." + }, + "loadBalancerBackendAddressPools": { + "type": "array", + "items": { + "$ref": "./loadBalancer.json#/definitions/BackendAddressPool" + }, + "description": "The reference of LoadBalancerBackendAddressPool resource." + }, + "loadBalancerInboundNatRules": { + "type": "array", + "items": { + "$ref": "./loadBalancer.json#/definitions/InboundNatRule" + }, + "description": "A list of references of LoadBalancerInboundNatRules." + }, + "privateIPAddress": { + "type": "string", + "description": "Private IP address of the IP configuration." + }, + "privateIPAllocationMethod": { + "$ref": "./network.json#/definitions/IPAllocationMethod", + "description": "The private IP address allocation method." + }, + "privateIPAddressVersion": { + "$ref": "./network.json#/definitions/IPVersion", + "description": "Available from Api-Version 2016-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4." + }, + "subnet": { + "$ref": "./virtualNetwork.json#/definitions/Subnet", + "description": "Subnet bound to the IP configuration." + }, + "primary": { + "type": "boolean", + "description": "Gets whether this is a primary customer address on the network interface." + }, + "publicIPAddress": { + "$ref": "./publicIpAddress.json#/definitions/PublicIPAddress", + "description": "Public IP address bound to the IP configuration." + }, + "applicationSecurityGroups": { + "type": "array", + "items": { + "$ref": "./applicationSecurityGroup.json#/definitions/ApplicationSecurityGroup" + }, + "description": "Application security groups in which the IP configuration is included." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the network interface IP configuration. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of IP configuration." + }, + "NetworkInterfaceIPConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NetworkInterfaceIPConfigurationPropertiesFormat", + "description": "Network interface IP configuration properties." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "IPConfiguration in a network interface." + }, + "NetworkInterfaceDnsSettings": { + "properties": { + "dnsServers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection." + }, + "appliedDnsServers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "If the VM that uses this NIC is part of an Availability Set, then this list will have the union of all DNS servers from all NICs that are part of the Availability Set. This property is what is configured on each of those VMs." + }, + "internalDnsNameLabel": { + "type": "string", + "description": "Relative DNS name for this NIC used for internal communications between VMs in the same virtual network." + }, + "internalFqdn": { + "type": "string", + "description": "Fully qualified DNS name supporting internal communications between VMs in the same virtual network." + }, + "internalDomainNameSuffix": { + "type": "string", + "description": "Even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM. This DNS name can be constructed by concatenating the VM name with the value of internalDomainNameSuffix." + } + }, + "description": "DNS settings of a network interface." + }, + "NetworkInterfacePropertiesFormat": { + "properties": { + "virtualMachine": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference of a virtual machine.", + "readOnly": true + }, + "networkSecurityGroup": { + "$ref": "./networkSecurityGroup.json#/definitions/NetworkSecurityGroup", + "description": "The reference of the NetworkSecurityGroup resource." + }, + "privateEndpoint": { + "readOnly": true, + "$ref": "./privateEndpoint.json#/definitions/PrivateEndpoint", + "description": "A reference to the private endpoint to which the network interface is linked." + }, + "ipConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterfaceIPConfiguration" + }, + "description": "A list of IPConfigurations of the network interface." + }, + "tapConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterfaceTapConfiguration" + }, + "description": "A list of TapConfigurations of the network interface." + }, + "dnsSettings": { + "$ref": "#/definitions/NetworkInterfaceDnsSettings", + "description": "The DNS settings in network interface." + }, + "macAddress": { + "type": "string", + "description": "The MAC address of the network interface." + }, + "primary": { + "type": "boolean", + "description": "Gets whether this is a primary network interface on a virtual machine." + }, + "enableAcceleratedNetworking": { + "type": "boolean", + "description": "If the network interface is accelerated networking enabled." + }, + "enableIPForwarding": { + "type": "boolean", + "description": "Indicates whether IP forwarding is enabled on this network interface." + }, + "hostedWorkloads": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true, + "description": "A list of references to linked BareMetal resources." + }, + "resourceGuid": { + "type": "string", + "description": "The resource GUID property of the network interface resource." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "NetworkInterface properties." + }, + "NetworkInterface": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NetworkInterfacePropertiesFormat", + "description": "Properties of the network interface." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "A network interface in a resource group." + }, + "NetworkInterfaceListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterface" + }, + "description": "A list of network interfaces in a resource group." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for the ListNetworkInterface API service call." + }, + "NetworkInterfaceTapConfigurationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterfaceTapConfiguration" + }, + "description": "A list of tap configurations." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for list tap configurations API service call." + }, + "NetworkInterfaceIPConfigurationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterfaceIPConfiguration" + }, + "description": "A list of ip configurations." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for list ip configurations API service call." + }, + "NetworkInterfaceLoadBalancerListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "./loadBalancer.json#/definitions/LoadBalancer" + }, + "description": "A list of load balancers." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for list ip configurations API service call." + }, + "EffectiveNetworkSecurityGroup": { + "properties": { + "networkSecurityGroup": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The ID of network security group that is applied." + }, + "association": { + "$ref": "#/definitions/EffectiveNetworkSecurityGroupAssociation", + "description": "Associated resources." + }, + "effectiveSecurityRules": { + "type": "array", + "items": { + "$ref": "#/definitions/EffectiveNetworkSecurityRule" + }, + "description": "A collection of effective security rules." + }, + "tagMap": { + "type": "string", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of IP Addresses within the tag (key)." + }, + "description": "Mapping of tags to list of IP Addresses included within the tag." + } + }, + "description": "Effective network security group." + }, + "EffectiveNetworkSecurityGroupAssociation": { + "properties": { + "subnet": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The ID of the subnet if assigned." + }, + "networkInterface": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The ID of the network interface if assigned." + } + }, + "description": "The effective network security group association." + }, + "EffectiveNetworkSecurityRule": { + "properties": { + "name": { + "type": "string", + "description": "The name of the security rule specified by the user (if created by the user)." + }, + "protocol": { + "type": "string", + "description": "The network protocol this rule applies to.", + "enum": [ + "Tcp", + "Udp", + "All" + ], + "x-ms-enum": { + "name": "EffectiveSecurityRuleProtocol", + "modelAsString": true + } + }, + "sourcePortRange": { + "type": "string", + "description": "The source port or range." + }, + "destinationPortRange": { + "type": "string", + "description": "The destination port or range." + }, + "sourcePortRanges": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The source port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*)." + }, + "destinationPortRanges": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The destination port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*)." + }, + "sourceAddressPrefix": { + "type": "string", + "description": "The source address prefix." + }, + "destinationAddressPrefix": { + "type": "string", + "description": "The destination address prefix." + }, + "sourceAddressPrefixes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The source address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*)." + }, + "destinationAddressPrefixes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The destination address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*)." + }, + "expandedSourceAddressPrefix": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The expanded source address prefix." + }, + "expandedDestinationAddressPrefix": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Expanded destination address prefix." + }, + "access": { + "$ref": "./networkSecurityGroup.json#/definitions/SecurityRuleAccess", + "description": "Whether network traffic is allowed or denied." + }, + "priority": { + "type": "integer", + "format": "int32", + "description": "The priority of the rule." + }, + "direction": { + "$ref": "./networkSecurityGroup.json#/definitions/SecurityRuleDirection", + "description": "The direction of the rule." + } + }, + "description": "Effective network security rules." + }, + "EffectiveNetworkSecurityGroupListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EffectiveNetworkSecurityGroup" + }, + "description": "A list of effective network security groups." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for list effective network security groups API service call." + }, + "EffectiveRoute": { + "properties": { + "name": { + "type": "string", + "description": "The name of the user defined route. This is optional." + }, + "disableBgpRoutePropagation": { + "type": "boolean", + "description": "If true, on-premises routes are not propagated to the network interfaces in the subnet." + }, + "source": { + "type": "string", + "description": "Who created the route.", + "enum": [ + "Unknown", + "User", + "VirtualNetworkGateway", + "Default" + ], + "x-ms-enum": { + "name": "EffectiveRouteSource", + "modelAsString": true + } + }, + "state": { + "type": "string", + "description": "The value of effective route.", + "enum": [ + "Active", + "Invalid" + ], + "x-ms-enum": { + "name": "EffectiveRouteState", + "modelAsString": true + } + }, + "addressPrefix": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The address prefixes of the effective routes in CIDR notation." + }, + "nextHopIpAddress": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The IP address of the next hop of the effective route." + }, + "nextHopType": { + "$ref": "./routeTable.json#/definitions/RouteNextHopType", + "description": "The type of Azure hop the packet should be sent to." + } + }, + "description": "Effective Route." + }, + "EffectiveRouteListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EffectiveRoute" + }, + "description": "A list of effective routes." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for list effective route API service call." + }, + "IPConfigurationPropertiesFormat": { + "properties": { + "privateIPAddress": { + "type": "string", + "description": "The private IP address of the IP configuration." + }, + "privateIPAllocationMethod": { + "$ref": "./network.json#/definitions/IPAllocationMethod", + "description": "The private IP address allocation method." + }, + "subnet": { + "$ref": "./virtualNetwork.json#/definitions/Subnet", + "description": "The reference of the subnet resource." + }, + "publicIPAddress": { + "$ref": "./publicIpAddress.json#/definitions/PublicIPAddress", + "description": "The reference of the public IP resource." + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of IP configuration." + }, + "IPConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/IPConfigurationPropertiesFormat", + "description": "Properties of the IP configuration." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "IP configuration." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkProfile.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkProfile.json new file mode 100644 index 000000000000..d424dafe00aa --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkProfile.json @@ -0,0 +1,579 @@ +{ + "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-06-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/networkProfiles/{networkProfileName}": { + "delete": { + "tags": [ + "NetworkProfiles" + ], + "operationId": "NetworkProfiles_Delete", + "description": "Deletes the specified network profile.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkProfileName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the NetworkProfile." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request successful. Resource does not exist." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete network profile": { + "$ref": "./examples/NetworkProfileDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "NetworkProfiles" + ], + "operationId": "NetworkProfiles_Get", + "description": "Gets the specified network profile in a specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkProfileName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the public IP prefix." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting NetworkProfile resource.", + "schema": { + "$ref": "#/definitions/NetworkProfile" + } + } + }, + "x-ms-examples": { + "Get network profile": { + "$ref": "./examples/NetworkProfileGetConfigOnly.json" + }, + "Get network profile with container network interfaces": { + "$ref": "./examples/NetworkProfileGetWithContainerNic.json" + } + } + }, + "put": { + "tags": [ + "NetworkProfiles" + ], + "operationId": "NetworkProfiles_CreateOrUpdate", + "description": "Creates or updates a network profile.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkProfileName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network profile." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkProfile" + }, + "description": "Parameters supplied to the create or update network profile operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting NetworkProfile resource.", + "schema": { + "$ref": "#/definitions/NetworkProfile" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting NetworkProfile resource.", + "schema": { + "$ref": "#/definitions/NetworkProfile" + } + } + }, + "x-ms-examples": { + "Create network profile defaults": { + "$ref": "./examples/NetworkProfileCreateConfigOnly.json" + } + }, + "x-ms-long-running-operation": false + }, + "patch": { + "tags": [ + "NetworkProfiles" + ], + "operationId": "NetworkProfiles_UpdateTags", + "description": "Updates network profile tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkProfileName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network profile." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update network profile tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting NetworkProfile resource.", + "schema": { + "$ref": "#/definitions/NetworkProfile" + } + } + }, + "x-ms-examples": { + "Update network profile tags": { + "$ref": "./examples/NetworkProfileUpdateTags.json" + } + }, + "x-ms-long-running-operation": false + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkProfiles": { + "get": { + "tags": [ + "NetworkProfiles" + ], + "operationId": "NetworkProfiles_ListAll", + "description": "Gets all the network profiles in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NetworkProfile resources.", + "schema": { + "$ref": "#/definitions/NetworkProfileListResult" + } + } + }, + "x-ms-examples": { + "List all network profiles": { + "$ref": "./examples/NetworkProfileListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles": { + "get": { + "tags": [ + "NetworkProfiles" + ], + "operationId": "NetworkProfiles_List", + "description": "Gets all network profiles in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NetworkProfile resources.", + "schema": { + "$ref": "#/definitions/NetworkProfileListResult" + } + } + }, + "x-ms-examples": { + "List resource group network profiles": { + "$ref": "./examples/NetworkProfileList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "NetworkProfilePropertiesFormat": { + "properties": { + "containerNetworkInterfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/ContainerNetworkInterface" + }, + "description": "List of child container network interfaces." + }, + "containerNetworkInterfaceConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/ContainerNetworkInterfaceConfiguration" + }, + "description": "List of chid container network interface configurations." + }, + "resourceGuid": { + "readOnly": true, + "type": "string", + "description": "The resource GUID property of the network interface resource." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource." + } + }, + "description": "Network profile properties." + }, + "NetworkProfile": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NetworkProfilePropertiesFormat", + "description": "Network profile properties." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Network profile resource." + }, + "NetworkProfileListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkProfile" + }, + "description": "A list of network profiles that exist in a resource group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListNetworkProfiles API service call." + }, + "ContainerNetworkInterfacePropertiesFormat": { + "properties": { + "containerNetworkInterfaceConfiguration": { + "$ref": "#/definitions/ContainerNetworkInterfaceConfiguration", + "description": "Container network interface configuration from which this container network interface is created." + }, + "container": { + "$ref": "#/definitions/Container", + "description": "Reference to the container to which this container network interface is attached." + }, + "ipConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/ContainerNetworkInterfaceIpConfiguration" + }, + "description": "Reference to the ip configuration on this container nic." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource." + } + }, + "description": "Properties of container network interface." + }, + "ContainerNetworkInterface": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ContainerNetworkInterfacePropertiesFormat", + "description": "Container network interface properties." + }, + "name": { + "type": "string", + "description": "The name of the resource. This name can be used to access the resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Sub Resource type." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Container network interface child resource." + }, + "ContainerNetworkInterfaceConfigurationPropertiesFormat": { + "properties": { + "ipConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/IPConfigurationProfile" + }, + "description": "A list of ip configurations of the container network interface configuration." + }, + "containerNetworkInterfaces": { + "type": "array", + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "A list of container network interfaces created from this container network interface configuration." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource." + } + }, + "description": "Container network interface configuration properties." + }, + "ContainerNetworkInterfaceConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ContainerNetworkInterfaceConfigurationPropertiesFormat", + "description": "Container network interface configuration properties." + }, + "name": { + "type": "string", + "description": "The name of the resource. This name can be used to access the resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Sub Resource type." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Container network interface configuration child resource." + }, + "IPConfigurationProfilePropertiesFormat": { + "properties": { + "subnet": { + "$ref": "./virtualNetwork.json#/definitions/Subnet", + "description": "The reference of the subnet resource to create a container network interface ip configuration." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource." + } + }, + "description": "IP configuration profile properties." + }, + "IPConfigurationProfile": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/IPConfigurationProfilePropertiesFormat", + "description": "Properties of the IP configuration profile." + }, + "name": { + "type": "string", + "description": "The name of the resource. This name can be used to access the resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Sub Resource type." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "IP configuration profile child resource." + }, + "Container": { + "properties": {}, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Reference to container resource in remote resource provider." + }, + "ContainerNetworkInterfaceIpConfigurationPropertiesFormat": { + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource." + } + }, + "description": "Properties of the container network interface IP configuration." + }, + "ContainerNetworkInterfaceIpConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ContainerNetworkInterfaceIpConfigurationPropertiesFormat", + "description": "Properties of the container network interface IP configuration." + }, + "name": { + "type": "string", + "description": "The name of the resource. This name can be used to access the resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Sub Resource type." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "description": "The ip configuration for a container network interface." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkSecurityGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkSecurityGroup.json new file mode 100644 index 000000000000..ffc3ecffee8e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkSecurityGroup.json @@ -0,0 +1,896 @@ +{ + "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-06-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/networkSecurityGroups/{networkSecurityGroupName}": { + "delete": { + "tags": [ + "NetworkSecurityGroups" + ], + "operationId": "NetworkSecurityGroups_Delete", + "description": "Deletes the specified network security group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network security group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + }, + "204": { + "description": "Request successful. Resource does not exist." + } + }, + "x-ms-examples": { + "Delete network security group": { + "$ref": "./examples/NetworkSecurityGroupDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "NetworkSecurityGroups" + ], + "operationId": "NetworkSecurityGroups_Get", + "description": "Gets the specified network security group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network security group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting NetworkSecurityGroup resource.", + "schema": { + "$ref": "#/definitions/NetworkSecurityGroup" + } + } + }, + "x-ms-examples": { + "Get network security group": { + "$ref": "./examples/NetworkSecurityGroupGet.json" + } + } + }, + "put": { + "tags": [ + "NetworkSecurityGroups" + ], + "operationId": "NetworkSecurityGroups_CreateOrUpdate", + "description": "Creates or updates a network security group in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network security group." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkSecurityGroup" + }, + "description": "Parameters supplied to the create or update network security group operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting NetworkSecurityGroup resource.", + "schema": { + "$ref": "#/definitions/NetworkSecurityGroup" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting NetworkSecurityGroup resource.", + "schema": { + "$ref": "#/definitions/NetworkSecurityGroup" + } + } + }, + "x-ms-examples": { + "Create network security group": { + "$ref": "./examples/NetworkSecurityGroupCreate.json" + }, + "Create network security group with rule": { + "$ref": "./examples/NetworkSecurityGroupCreateWithRule.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "NetworkSecurityGroups" + ], + "operationId": "NetworkSecurityGroups_UpdateTags", + "description": "Updates a network security group tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network security group." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update network security group tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting NetworkSecurityGroup resource.", + "schema": { + "$ref": "#/definitions/NetworkSecurityGroup" + } + } + }, + "x-ms-examples": { + "Update network security group tags": { + "$ref": "./examples/NetworkSecurityGroupUpdateTags.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups": { + "get": { + "tags": [ + "NetworkSecurityGroups" + ], + "operationId": "NetworkSecurityGroups_ListAll", + "description": "Gets all network security groups in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NetworkSecurityGroup resources.", + "schema": { + "$ref": "#/definitions/NetworkSecurityGroupListResult" + } + } + }, + "x-ms-examples": { + "List all network security groups": { + "$ref": "./examples/NetworkSecurityGroupListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups": { + "get": { + "tags": [ + "NetworkSecurityGroups" + ], + "operationId": "NetworkSecurityGroups_List", + "description": "Gets all network security groups in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NetworkSecurityGroup resources.", + "schema": { + "$ref": "#/definitions/NetworkSecurityGroupListResult" + } + } + }, + "x-ms-examples": { + "List network security groups in resource group": { + "$ref": "./examples/NetworkSecurityGroupList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}": { + "delete": { + "tags": [ + "SecurityRules" + ], + "operationId": "SecurityRules_Delete", + "description": "Deletes the specified network security rule.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network security group." + }, + { + "name": "securityRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the security rule." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request successful. Resource does not exist." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete network security rule from network security group": { + "$ref": "./examples/NetworkSecurityGroupRuleDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "SecurityRules" + ], + "operationId": "SecurityRules_Get", + "description": "Get the specified network security rule.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network security group." + }, + { + "name": "securityRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the security rule." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting SecurityRule resource.", + "schema": { + "$ref": "#/definitions/SecurityRule" + } + } + }, + "x-ms-examples": { + "Get network security rule in network security group": { + "$ref": "./examples/NetworkSecurityGroupRuleGet.json" + } + } + }, + "put": { + "tags": [ + "SecurityRules" + ], + "operationId": "SecurityRules_CreateOrUpdate", + "description": "Creates or updates a security rule in the specified network security group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network security group." + }, + { + "name": "securityRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the security rule." + }, + { + "name": "securityRuleParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SecurityRule" + }, + "description": "Parameters supplied to the create or update network security rule operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting SecurityRule resource.", + "schema": { + "$ref": "#/definitions/SecurityRule" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting SecurityRule resource.", + "schema": { + "$ref": "#/definitions/SecurityRule" + } + } + }, + "x-ms-examples": { + "Create security rule": { + "$ref": "./examples/NetworkSecurityGroupRuleCreate.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/networkSecurityGroups/{networkSecurityGroupName}/securityRules": { + "get": { + "tags": [ + "SecurityRules" + ], + "operationId": "SecurityRules_List", + "description": "Gets all security rules in a network security group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network security group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of SecurityRule resources.", + "schema": { + "$ref": "#/definitions/SecurityRuleListResult" + } + } + }, + "x-ms-examples": { + "List network security rules in network security group": { + "$ref": "./examples/NetworkSecurityGroupRuleList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules": { + "get": { + "tags": [ + "SecurityRules" + ], + "operationId": "DefaultSecurityRules_List", + "description": "Gets all default security rules in a network security group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network security group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of SecurityRule resources.", + "schema": { + "$ref": "#/definitions/SecurityRuleListResult" + } + } + }, + "x-ms-examples": { + "DefaultSecurityRuleList": { + "$ref": "./examples/DefaultSecurityRuleList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}": { + "get": { + "tags": [ + "SecurityRules" + ], + "operationId": "DefaultSecurityRules_Get", + "description": "Get the specified default network security rule.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "networkSecurityGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network security group." + }, + { + "name": "defaultSecurityRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the default security rule." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting SecurityRule resource.", + "schema": { + "$ref": "#/definitions/SecurityRule" + } + } + }, + "x-ms-examples": { + "DefaultSecurityRuleGet": { + "$ref": "./examples/DefaultSecurityRuleGet.json" + } + } + } + } + }, + "definitions": { + "SecurityRulePropertiesFormat": { + "properties": { + "description": { + "type": "string", + "description": "A description for this rule. Restricted to 140 chars." + }, + "protocol": { + "type": "string", + "description": "Network protocol this rule applies to.", + "enum": [ + "Tcp", + "Udp", + "Icmp", + "Esp", + "*" + ], + "x-ms-enum": { + "name": "SecurityRuleProtocol", + "modelAsString": true + } + }, + "sourcePortRange": { + "type": "string", + "description": "The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports." + }, + "destinationPortRange": { + "type": "string", + "description": "The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports." + }, + "sourceAddressPrefix": { + "type": "string", + "description": "The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from." + }, + "sourceAddressPrefixes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The CIDR or source IP ranges." + }, + "sourceApplicationSecurityGroups": { + "type": "array", + "items": { + "$ref": "./applicationSecurityGroup.json#/definitions/ApplicationSecurityGroup" + }, + "description": "The application security group specified as source." + }, + "destinationAddressPrefix": { + "type": "string", + "description": "The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used." + }, + "destinationAddressPrefixes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The destination address prefixes. CIDR or destination IP ranges." + }, + "destinationApplicationSecurityGroups": { + "type": "array", + "items": { + "$ref": "./applicationSecurityGroup.json#/definitions/ApplicationSecurityGroup" + }, + "description": "The application security group specified as destination." + }, + "sourcePortRanges": { + "type": "array", + "items": { + "type": "string", + "description": "The source port." + }, + "description": "The source port ranges." + }, + "destinationPortRanges": { + "type": "array", + "items": { + "type": "string", + "description": "The destination port." + }, + "description": "The destination port ranges." + }, + "access": { + "$ref": "#/definitions/SecurityRuleAccess", + "description": "The network traffic is allowed or denied." + }, + "priority": { + "type": "integer", + "format": "int32", + "description": "The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule." + }, + "direction": { + "$ref": "#/definitions/SecurityRuleDirection", + "description": "The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "required": [ + "protocol", + "access", + "direction" + ], + "description": "Security rule resource." + }, + "SecurityRule": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SecurityRulePropertiesFormat", + "description": "Properties of the security rule." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Network security rule." + }, + "SecurityRuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityRule" + }, + "description": "The security rules in a network security group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListSecurityRule API service call. Retrieves all security rules that belongs to a network security group." + }, + "NetworkSecurityGroupPropertiesFormat": { + "properties": { + "securityRules": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityRule" + }, + "description": "A collection of security rules of the network security group." + }, + "defaultSecurityRules": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityRule" + }, + "description": "The default security rules of network security group." + }, + "networkInterfaces": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./networkInterface.json#/definitions/NetworkInterface" + }, + "description": "A collection of references to network interfaces." + }, + "subnets": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./virtualNetwork.json#/definitions/Subnet" + }, + "description": "A collection of references to subnets." + }, + "resourceGuid": { + "type": "string", + "description": "The resource GUID property of the network security group resource." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Network Security Group resource." + }, + "NetworkSecurityGroup": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NetworkSecurityGroupPropertiesFormat", + "description": "Properties of the network security group." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "NetworkSecurityGroup resource." + }, + "NetworkSecurityGroupListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkSecurityGroup" + }, + "description": "A list of NetworkSecurityGroup resources." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListNetworkSecurityGroups API service call." + }, + "SecurityRuleAccess": { + "type": "string", + "description": "Whether network traffic is allowed or denied.", + "enum": [ + "Allow", + "Deny" + ], + "x-ms-enum": { + "name": "SecurityRuleAccess", + "modelAsString": true + } + }, + "SecurityRuleDirection": { + "type": "string", + "description": "The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.", + "enum": [ + "Inbound", + "Outbound" + ], + "x-ms-enum": { + "name": "SecurityRuleDirection", + "modelAsString": true + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkWatcher.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkWatcher.json new file mode 100644 index 000000000000..3dc318a36de0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/networkWatcher.json @@ -0,0 +1,3742 @@ +{ + "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-06-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}": { + "put": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_CreateOrUpdate", + "description": "Creates or updates a network watcher in the specified resource group.", + "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": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkWatcher" + }, + "description": "Parameters that define the network watcher resource." + }, + { + "$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/NetworkWatcher" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting network watcher resource.", + "schema": { + "$ref": "#/definitions/NetworkWatcher" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create network watcher": { + "$ref": "./examples/NetworkWatcherCreate.json" + } + } + }, + "get": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_Get", + "description": "Gets the specified network watcher by resource group.", + "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." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a network watcher resource.", + "schema": { + "$ref": "#/definitions/NetworkWatcher" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get network watcher": { + "$ref": "./examples/NetworkWatcherGet.json" + } + } + }, + "delete": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_Delete", + "description": "Deletes the specified network watcher resource.", + "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." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Delete successful." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete network watcher": { + "$ref": "./examples/NetworkWatcherDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "patch": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_UpdateTags", + "description": "Updates a network watcher tags.", + "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": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update network watcher tags." + }, + { + "$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/NetworkWatcher" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update network watcher tags": { + "$ref": "./examples/NetworkWatcherUpdateTags.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers": { + "get": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_List", + "description": "Gets all network watchers by resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of network watcher resources.", + "schema": { + "$ref": "#/definitions/NetworkWatcherListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "List network watchers": { + "$ref": "./examples/NetworkWatcherList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers": { + "get": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_ListAll", + "description": "Gets all network watchers by subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of network watcher resources.", + "schema": { + "$ref": "#/definitions/NetworkWatcherListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "List all network watchers": { + "$ref": "./examples/NetworkWatcherListAll.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/topology": { + "post": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_GetTopology", + "description": "Gets the current network topology by resource group.", + "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": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TopologyParameters" + }, + "description": "Parameters that define the representation of topology." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the topology of resource group.", + "schema": { + "$ref": "#/definitions/Topology" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Topology": { + "$ref": "./examples/NetworkWatcherTopologyGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify": { + "post": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_VerifyIPFlow", + "description": "Verify IP flow from the specified VM to a location given the currently configured NSG rules.", + "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": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VerificationIPFlowParameters" + }, + "description": "Parameters that define the IP flow to be verified." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the result of IP flow verification.", + "schema": { + "$ref": "#/definitions/VerificationIPFlowResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/VerificationIPFlowResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Ip flow verify": { + "$ref": "./examples/NetworkWatcherIpFlowVerify.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}/nextHop": { + "post": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_GetNextHop", + "description": "Gets the next hop from the specified VM.", + "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": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NextHopParameters" + }, + "description": "Parameters that define the source and destination endpoint." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the next hop from the VM.", + "schema": { + "$ref": "#/definitions/NextHopResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/NextHopResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get next hop": { + "$ref": "./examples/NetworkWatcherNextHopGet.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}/securityGroupView": { + "post": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_GetVMSecurityRules", + "description": "Gets the configured and effective security group rules on the specified VM.", + "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": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SecurityGroupViewParameters" + }, + "description": "Parameters that define the VM to check security groups for." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns security group rules on the VM.", + "schema": { + "$ref": "#/definitions/SecurityGroupViewResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/SecurityGroupViewResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get security group view": { + "$ref": "./examples/NetworkWatcherSecurityGroupViewGet.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}/packetCaptures/{packetCaptureName}": { + "put": { + "tags": [ + "PacketCaptures" + ], + "operationId": "PacketCaptures_Create", + "description": "Create and start a packet capture on the specified VM.", + "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": "packetCaptureName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the packet capture session." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PacketCapture" + }, + "description": "Parameters that define the create packet capture operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Request successful. The operation returns the resulting packet capture session.", + "schema": { + "$ref": "#/definitions/PacketCaptureResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create packet capture": { + "$ref": "./examples/NetworkWatcherPacketCaptureCreate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "get": { + "tags": [ + "PacketCaptures" + ], + "operationId": "PacketCaptures_Get", + "description": "Gets a packet capture session by name.", + "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": "packetCaptureName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the packet capture session." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a packet capture session.", + "schema": { + "$ref": "#/definitions/PacketCaptureResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get packet capture": { + "$ref": "./examples/NetworkWatcherPacketCaptureGet.json" + } + } + }, + "delete": { + "tags": [ + "PacketCaptures" + ], + "operationId": "PacketCaptures_Delete", + "description": "Deletes the specified packet capture session.", + "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": "packetCaptureName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the packet capture session." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete packet capture": { + "$ref": "./examples/NetworkWatcherPacketCaptureDelete.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}/packetCaptures/{packetCaptureName}/stop": { + "post": { + "tags": [ + "PacketCaptures" + ], + "operationId": "PacketCaptures_Stop", + "description": "Stops a specified packet capture session.", + "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": "packetCaptureName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the packet capture session." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation stops the packet capture session." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Stop packet capture": { + "$ref": "./examples/NetworkWatcherPacketCaptureStop.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}/packetCaptures/{packetCaptureName}/queryStatus": { + "post": { + "tags": [ + "PacketCaptures" + ], + "operationId": "PacketCaptures_GetStatus", + "description": "Query the status of a running packet capture session.", + "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 resource." + }, + { + "name": "packetCaptureName", + "in": "path", + "required": true, + "type": "string", + "description": "The name given to the packet capture session." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successful query of packet capture status.", + "schema": { + "$ref": "#/definitions/PacketCaptureQueryStatusResult" + } + }, + "202": { + "description": "Accepted query status of packet capture.", + "schema": { + "$ref": "#/definitions/PacketCaptureQueryStatusResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Query packet capture status": { + "$ref": "./examples/NetworkWatcherPacketCaptureQueryStatus.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}/packetCaptures": { + "get": { + "tags": [ + "PacketCaptures" + ], + "operationId": "PacketCaptures_List", + "description": "Lists all packet capture sessions within the specified resource group.", + "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 resource." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successful packet capture enumeration request.", + "schema": { + "$ref": "#/definitions/PacketCaptureListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "List packet captures": { + "$ref": "./examples/NetworkWatcherPacketCapturesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot": { + "post": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_GetTroubleshooting", + "description": "Initiate troubleshooting on a specified resource.", + "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 resource." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TroubleshootingParameters" + }, + "description": "Parameters that define the resource to troubleshoot." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successful troubleshooting request.", + "schema": { + "$ref": "#/definitions/TroubleshootingResult" + } + }, + "202": { + "description": "Accepted get troubleshooting request.", + "schema": { + "$ref": "#/definitions/TroubleshootingResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get troubleshooting": { + "$ref": "./examples/NetworkWatcherTroubleshootGet.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}/queryTroubleshootResult": { + "post": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_GetTroubleshootingResult", + "description": "Get the last completed troubleshooting result on a specified resource.", + "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 resource." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/QueryTroubleshootingParameters" + }, + "description": "Parameters that define the resource to query the troubleshooting result." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successful get troubleshooting result request.", + "schema": { + "$ref": "#/definitions/TroubleshootingResult" + } + }, + "202": { + "description": "Accepted get troubleshooting result request.", + "schema": { + "$ref": "#/definitions/TroubleshootingResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get troubleshoot result": { + "$ref": "./examples/NetworkWatcherTroubleshootResultQuery.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}/configureFlowLog": { + "post": { + "tags": [ + "NetworkWatchers", + "TrafficAnalytics" + ], + "operationId": "NetworkWatchers_SetFlowLogConfiguration", + "description": "Configures flow log and traffic analytics (optional) on a specified resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network watcher resource group." + }, + { + "name": "networkWatcherName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network watcher resource." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FlowLogInformation" + }, + "description": "Parameters that define the configuration of flow log." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successful request for setting flow log and traffic analytics (optional) configuration.", + "schema": { + "$ref": "#/definitions/FlowLogInformation" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/FlowLogInformation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Configure flow log": { + "$ref": "./examples/NetworkWatcherFlowLogConfigure.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}/queryFlowLogStatus": { + "post": { + "tags": [ + "NetworkWatchers", + "TrafficAnalytics" + ], + "operationId": "NetworkWatchers_GetFlowLogStatus", + "description": "Queries status of flow log and traffic analytics (optional) on a specified resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network watcher resource group." + }, + { + "name": "networkWatcherName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network watcher resource." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FlowLogStatusParameters" + }, + "description": "Parameters that define a resource to query flow log and traffic analytics (optional) status." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successful request for query flow log and traffic analytics (optional) status.", + "schema": { + "$ref": "#/definitions/FlowLogInformation" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/FlowLogInformation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get flow log status": { + "$ref": "./examples/NetworkWatcherFlowLogStatusQuery.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}/connectivityCheck": { + "post": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_CheckConnectivity", + "description": "Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint including another VM or an arbitrary remote server.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network watcher resource group." + }, + { + "name": "networkWatcherName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network watcher resource." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConnectivityParameters" + }, + "description": "Parameters that determine how the connectivity check will be performed." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successful request for checking connectivity.", + "schema": { + "$ref": "#/definitions/ConnectivityInformation" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/ConnectivityInformation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Check connectivity": { + "$ref": "./examples/NetworkWatcherConnectivityCheck.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}/azureReachabilityReport": { + "post": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_GetAzureReachabilityReport", + "description": "Gets the relative latency score for internet service providers from a specified location to Azure regions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network watcher resource group." + }, + { + "name": "networkWatcherName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network watcher resource." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AzureReachabilityReportParameters" + }, + "description": "Parameters that determine Azure reachability report configuration." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successful request for Azure reachability report.", + "schema": { + "$ref": "#/definitions/AzureReachabilityReport" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/AzureReachabilityReport" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Azure Reachability Report": { + "$ref": "./examples/NetworkWatcherAzureReachabilityReportGet.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}/availableProvidersList": { + "post": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_ListAvailableProviders", + "description": "Lists all available internet service providers for a specified Azure region.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network watcher resource group." + }, + { + "name": "networkWatcherName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network watcher resource." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AvailableProvidersListParameters" + }, + "description": "Parameters that scope the list of available providers." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successful request for list of available providers.", + "schema": { + "$ref": "#/definitions/AvailableProvidersList" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/AvailableProvidersList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Available Providers List": { + "$ref": "./examples/NetworkWatcherAvailableProvidersListGet.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}": { + "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": "#/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": "#/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": "#/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" + } + } + }, + "/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": "#/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": "#/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": "#/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": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "List connection monitors": { + "$ref": "./examples/NetworkWatcherConnectionMonitorList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/networkConfigurationDiagnostic": { + "post": { + "tags": [ + "NetworkWatchers" + ], + "operationId": "NetworkWatchers_GetNetworkConfigurationDiagnostic", + "description": "Get network configuration diagnostic.", + "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": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkConfigurationDiagnosticParameters" + }, + "description": "Parameters to get network configuration diagnostic." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the result of network configuration diagnostic.", + "schema": { + "$ref": "#/definitions/NetworkConfigurationDiagnosticResponse" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/NetworkConfigurationDiagnosticResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Network configuration diagnostic": { + "$ref": "./examples/NetworkWatcherNetworkConfigurationDiagnostic.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + } + }, + "definitions": { + "ErrorResponse": { + "description": "The error object.", + "properties": { + "error": { + "title": "Error", + "$ref": "./network.json#/definitions/ErrorDetails", + "description": "The error details object." + } + } + }, + "NetworkWatcher": { + "properties": { + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NetworkWatcherPropertiesFormat", + "description": "Properties of the network watcher." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Network watcher in a resource group." + }, + "NetworkWatcherPropertiesFormat": { + "properties": { + "provisioningState": { + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the resource." + } + }, + "description": "The network watcher properties." + }, + "NetworkWatcherListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkWatcher" + }, + "description": "List of network watcher resources." + } + }, + "description": "Response for ListNetworkWatchers API service call." + }, + "TopologyParameters": { + "properties": { + "targetResourceGroupName": { + "type": "string", + "description": "The name of the target resource group to perform topology on." + }, + "targetVirtualNetwork": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference of the Virtual Network resource." + }, + "targetSubnet": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference of the Subnet resource." + } + }, + "description": "Parameters that define the representation of topology." + }, + "Topology": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "GUID representing the operation id." + }, + "createdDateTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The datetime when the topology was initially created for the resource group." + }, + "lastModified": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The datetime when the topology was last modified." + }, + "resources": { + "type": "array", + "items": { + "$ref": "#/definitions/TopologyResource" + }, + "description": "A list of topology resources." + } + }, + "description": "Topology of the specified resource group." + }, + "TopologyResource": { + "properties": { + "name": { + "type": "string", + "description": "Name of the resource." + }, + "id": { + "type": "string", + "description": "ID of the resource." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "associations": { + "type": "array", + "description": "Holds the associations the resource has with other resources in the resource group.", + "items": { + "$ref": "#/definitions/TopologyAssociation" + } + } + }, + "description": "The network resource topology information for the given resource group." + }, + "TopologyAssociation": { + "properties": { + "name": { + "type": "string", + "description": "The name of the resource that is associated with the parent resource." + }, + "resourceId": { + "type": "string", + "description": "The ID of the resource that is associated with the parent resource." + }, + "associationType": { + "type": "string", + "enum": [ + "Associated", + "Contains" + ], + "x-ms-enum": { + "name": "AssociationType", + "modelAsString": true + }, + "description": "The association type of the child resource to the parent resource." + } + }, + "description": "Resources that have an association with the parent resource." + }, + "VerificationIPFlowParameters": { + "description": "Parameters that define the IP flow to be verified.", + "required": [ + "targetResourceId", + "direction", + "protocol", + "localPort", + "remotePort", + "localIPAddress", + "remoteIPAddress" + ], + "properties": { + "targetResourceId": { + "type": "string", + "description": "The ID of the target resource to perform next-hop on." + }, + "direction": { + "$ref": "#/definitions/Direction", + "description": "The direction of the packet represented as a 5-tuple." + }, + "protocol": { + "type": "string", + "enum": [ + "TCP", + "UDP" + ], + "x-ms-enum": { + "name": "IpFlowProtocol", + "modelAsString": true + }, + "description": "Protocol to be verified on." + }, + "localPort": { + "type": "string", + "description": "The local port. Acceptable values are a single integer in the range (0-65535). Support for * for the source port, which depends on the direction." + }, + "remotePort": { + "type": "string", + "description": "The remote port. Acceptable values are a single integer in the range (0-65535). Support for * for the source port, which depends on the direction." + }, + "localIPAddress": { + "type": "string", + "description": "The local IP address. Acceptable values are valid IPv4 addresses." + }, + "remoteIPAddress": { + "type": "string", + "description": "The remote IP address. Acceptable values are valid IPv4 addresses." + }, + "targetNicResourceId": { + "type": "string", + "description": "The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of them, then this parameter must be specified. Otherwise optional)." + } + } + }, + "VerificationIPFlowResult": { + "description": "Results of IP flow verification on the target resource.", + "properties": { + "access": { + "$ref": "./network.json#/definitions/Access", + "description": "Indicates whether the traffic is allowed or denied." + }, + "ruleName": { + "type": "string", + "description": "Name of the rule. If input is not matched against any security rule, it is not displayed." + } + } + }, + "NextHopParameters": { + "description": "Parameters that define the source and destination endpoint.", + "required": [ + "targetResourceId", + "sourceIPAddress", + "destinationIPAddress" + ], + "properties": { + "targetResourceId": { + "type": "string", + "description": "The resource identifier of the target resource against which the action is to be performed." + }, + "sourceIPAddress": { + "type": "string", + "description": "The source IP address." + }, + "destinationIPAddress": { + "type": "string", + "description": "The destination IP address." + }, + "targetNicResourceId": { + "type": "string", + "description": "The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of the nics, then this parameter must be specified. Otherwise optional)." + } + } + }, + "NextHopResult": { + "description": "The information about next hop from the specified VM.", + "properties": { + "nextHopType": { + "type": "string", + "enum": [ + "Internet", + "VirtualAppliance", + "VirtualNetworkGateway", + "VnetLocal", + "HyperNetGateway", + "None" + ], + "x-ms-enum": { + "name": "NextHopType", + "modelAsString": true + }, + "description": "Next hop type." + }, + "nextHopIpAddress": { + "type": "string", + "description": "Next hop IP Address." + }, + "routeTableId": { + "type": "string", + "description": "The resource identifier for the route table associated with the route being returned. If the route being returned does not correspond to any user created routes then this field will be the string 'System Route'." + } + } + }, + "SecurityGroupViewParameters": { + "description": "Parameters that define the VM to check security groups for.", + "required": [ + "targetResourceId" + ], + "properties": { + "targetResourceId": { + "type": "string", + "description": "ID of the target VM." + } + } + }, + "SecurityGroupViewResult": { + "description": "The information about security rules applied to the specified VM.", + "properties": { + "networkInterfaces": { + "type": "array", + "description": "List of network interfaces on the specified VM.", + "items": { + "$ref": "#/definitions/SecurityGroupNetworkInterface" + } + } + } + }, + "SecurityGroupNetworkInterface": { + "description": "Network interface and all its associated security rules.", + "properties": { + "id": { + "type": "string", + "description": "ID of the network interface." + }, + "securityRuleAssociations": { + "$ref": "#/definitions/SecurityRuleAssociations", + "description": "All security rules associated with the network interface." + } + } + }, + "SecurityRuleAssociations": { + "description": "All security rules associated with the network interface.", + "properties": { + "networkInterfaceAssociation": { + "$ref": "#/definitions/NetworkInterfaceAssociation", + "description": "Network interface and it's custom security rules." + }, + "subnetAssociation": { + "$ref": "#/definitions/SubnetAssociation", + "description": "Subnet and it's custom security rules." + }, + "defaultSecurityRules": { + "type": "array", + "items": { + "$ref": "./networkSecurityGroup.json#/definitions/SecurityRule" + }, + "description": "Collection of default security rules of the network security group." + }, + "effectiveSecurityRules": { + "type": "array", + "items": { + "$ref": "./networkInterface.json#/definitions/EffectiveNetworkSecurityRule" + }, + "description": "Collection of effective security rules." + } + } + }, + "NetworkInterfaceAssociation": { + "description": "Network interface and its custom security rules.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Network interface ID." + }, + "securityRules": { + "type": "array", + "description": "Collection of custom security rules.", + "items": { + "$ref": "./networkSecurityGroup.json#/definitions/SecurityRule" + } + } + } + }, + "SubnetAssociation": { + "description": "Subnet and it's custom security rules.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Subnet ID." + }, + "securityRules": { + "type": "array", + "description": "Collection of custom security rules.", + "items": { + "$ref": "./networkSecurityGroup.json#/definitions/SecurityRule" + } + } + } + }, + "PacketCapture": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PacketCaptureParameters", + "description": "Properties of the packet capture." + } + }, + "required": [ + "properties" + ], + "description": "Parameters that define the create packet capture operation." + }, + "PacketCaptureParameters": { + "properties": { + "target": { + "type": "string", + "description": "The ID of the targeted resource, only VM is currently supported." + }, + "bytesToCapturePerPacket": { + "type": "integer", + "default": 0, + "description": "Number of bytes captured per packet, the remaining bytes are truncated." + }, + "totalBytesPerSession": { + "type": "integer", + "default": 1073741824, + "description": "Maximum size of the capture output." + }, + "timeLimitInSeconds": { + "type": "integer", + "default": 18000, + "description": "Maximum duration of the capture session in seconds." + }, + "storageLocation": { + "$ref": "#/definitions/PacketCaptureStorageLocation", + "description": "Describes the storage location for a packet capture session." + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/definitions/PacketCaptureFilter" + }, + "description": "A list of packet capture filters." + } + }, + "required": [ + "target", + "storageLocation" + ], + "description": "Parameters that define the create packet capture operation." + }, + "PacketCaptureStorageLocation": { + "properties": { + "storageId": { + "type": "string", + "description": "The ID of the storage account to save the packet capture session. Required if no local file path is provided." + }, + "storagePath": { + "type": "string", + "description": "The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture." + }, + "filePath": { + "type": "string", + "description": "A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional." + } + }, + "description": "Describes the storage location for a packet capture session." + }, + "PacketCaptureFilter": { + "properties": { + "protocol": { + "type": "string", + "enum": [ + "TCP", + "UDP", + "Any" + ], + "x-ms-enum": { + "name": "PcProtocol", + "modelAsString": true + }, + "default": "Any", + "description": "Protocol to be filtered on." + }, + "localIPAddress": { + "type": "string", + "description": "Local IP Address to be filtered on. Notation: \"127.0.0.1\" for single address entry. \"127.0.0.1-127.0.0.255\" for range. \"127.0.0.1;127.0.0.5\"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null." + }, + "remoteIPAddress": { + "type": "string", + "description": "Local IP Address to be filtered on. Notation: \"127.0.0.1\" for single address entry. \"127.0.0.1-127.0.0.255\" for range. \"127.0.0.1;127.0.0.5;\" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null." + }, + "localPort": { + "type": "string", + "description": "Local port to be filtered on. Notation: \"80\" for single port entry.\"80-85\" for range. \"80;443;\" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null." + }, + "remotePort": { + "type": "string", + "description": "Remote port to be filtered on. Notation: \"80\" for single port entry.\"80-85\" for range. \"80;443;\" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null." + } + }, + "description": "Filter that is applied to packet capture request. Multiple filters can be applied." + }, + "PacketCaptureListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PacketCaptureResult" + }, + "description": "Information about packet capture sessions." + } + }, + "description": "List of packet capture sessions." + }, + "PacketCaptureResult": { + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "Name of the packet capture session." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "ID of the packet capture operation." + }, + "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." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PacketCaptureResultProperties", + "description": "Properties of the packet capture result." + } + }, + "description": "Information about packet capture session." + }, + "PacketCaptureResultProperties": { + "properties": { + "provisioningState": { + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the packet capture session." + } + }, + "allOf": [ + { + "$ref": "#/definitions/PacketCaptureParameters" + } + ], + "description": "Describes the properties of a packet capture session." + }, + "PacketCaptureQueryStatusResult": { + "properties": { + "name": { + "type": "string", + "description": "The name of the packet capture resource." + }, + "id": { + "type": "string", + "description": "The ID of the packet capture resource." + }, + "captureStartTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the packet capture session." + }, + "packetCaptureStatus": { + "type": "string", + "enum": [ + "NotStarted", + "Running", + "Stopped", + "Error", + "Unknown" + ], + "x-ms-enum": { + "name": "PcStatus", + "modelAsString": true + }, + "description": "The status of the packet capture session." + }, + "stopReason": { + "type": "string", + "description": "The reason the current packet capture session was stopped." + }, + "packetCaptureError": { + "type": "array", + "description": "List of errors of packet capture session.", + "items": { + "type": "string", + "enum": [ + "InternalError", + "AgentStopped", + "CaptureFailed", + "LocalFileFailed", + "StorageFailed" + ], + "x-ms-enum": { + "name": "PcError", + "modelAsString": true + } + } + } + }, + "description": "Status of packet capture session." + }, + "TroubleshootingParameters": { + "description": "Parameters that define the resource to troubleshoot.", + "required": [ + "targetResourceId", + "properties" + ], + "properties": { + "targetResourceId": { + "description": "The target resource to troubleshoot.", + "type": "string" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TroubleshootingProperties", + "description": "Properties of the troubleshooting resource." + } + } + }, + "QueryTroubleshootingParameters": { + "description": "Parameters that define the resource to query the troubleshooting result.", + "required": [ + "targetResourceId" + ], + "properties": { + "targetResourceId": { + "description": "The target resource ID to query the troubleshooting result.", + "type": "string" + } + } + }, + "TroubleshootingProperties": { + "description": "Storage location provided for troubleshoot.", + "required": [ + "storageId", + "storagePath" + ], + "properties": { + "storageId": { + "description": "The ID for the storage account to save the troubleshoot result.", + "type": "string" + }, + "storagePath": { + "description": "The path to the blob to save the troubleshoot result in.", + "type": "string" + } + } + }, + "TroubleshootingResult": { + "description": "Troubleshooting information gained from specified resource.", + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the troubleshooting." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the troubleshooting." + }, + "code": { + "type": "string", + "description": "The result code of the troubleshooting." + }, + "results": { + "type": "array", + "description": "Information from troubleshooting.", + "items": { + "$ref": "#/definitions/TroubleshootingDetails" + } + } + } + }, + "TroubleshootingDetails": { + "description": "Information gained from troubleshooting of specified resource.", + "properties": { + "id": { + "type": "string", + "description": "The id of the get troubleshoot operation." + }, + "reasonType": { + "type": "string", + "description": "Reason type of failure." + }, + "summary": { + "type": "string", + "description": "A summary of troubleshooting." + }, + "detail": { + "type": "string", + "description": "Details on troubleshooting results." + }, + "recommendedActions": { + "type": "array", + "description": "List of recommended actions.", + "items": { + "$ref": "#/definitions/TroubleshootingRecommendedActions" + } + } + } + }, + "TroubleshootingRecommendedActions": { + "description": "Recommended actions based on discovered issues.", + "properties": { + "actionId": { + "description": "ID of the recommended action.", + "type": "string" + }, + "actionText": { + "description": "Description of recommended actions.", + "type": "string" + }, + "actionUri": { + "description": "The uri linking to a documentation for the recommended troubleshooting actions.", + "type": "string" + }, + "actionUriText": { + "description": "The information from the URI for the recommended troubleshooting actions.", + "type": "string" + } + } + }, + "FlowLogProperties": { + "description": "Parameters that define the configuration of flow log.", + "required": [ + "storageId", + "enabled" + ], + "properties": { + "storageId": { + "description": "ID of the storage account which is used to store the flow log.", + "type": "string" + }, + "enabled": { + "description": "Flag to enable/disable flow logging.", + "type": "boolean" + }, + "retentionPolicy": { + "$ref": "#/definitions/RetentionPolicyParameters", + "description": "Parameters that define the retention policy for flow log." + }, + "format": { + "$ref": "#/definitions/FlowLogFormatParameters", + "description": "Parameters that define the flow log format." + } + } + }, + "FlowLogStatusParameters": { + "description": "Parameters that define a resource to query flow log and traffic analytics (optional) status.", + "required": [ + "targetResourceId" + ], + "properties": { + "targetResourceId": { + "description": "The target resource where getting the flow log and traffic analytics (optional) status.", + "type": "string" + } + } + }, + "RetentionPolicyParameters": { + "description": "Parameters that define the retention policy for flow log.", + "properties": { + "days": { + "description": "Number of days to retain flow log records.", + "type": "integer", + "default": 0 + }, + "enabled": { + "description": "Flag to enable/disable retention.", + "type": "boolean", + "default": false + } + } + }, + "FlowLogFormatParameters": { + "description": "Parameters that define the flow log format.", + "properties": { + "type": { + "type": "string", + "description": "The file type of flow log.", + "enum": [ + "JSON" + ], + "x-ms-enum": { + "name": "FlowLogFormatType", + "modelAsString": true + } + }, + "version": { + "description": "The version (revision) of the flow log.", + "type": "integer", + "default": 0 + } + } + }, + "FlowLogInformation": { + "description": "Information on the configuration of flow log and traffic analytics (optional) .", + "required": [ + "targetResourceId", + "properties" + ], + "properties": { + "targetResourceId": { + "description": "The ID of the resource to configure for flow log and traffic analytics (optional) .", + "type": "string" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/FlowLogProperties", + "description": "Properties of the flow log." + }, + "flowAnalyticsConfiguration": { + "$ref": "#/definitions/TrafficAnalyticsProperties", + "description": "Parameters that define the configuration of traffic analytics." + } + } + }, + "TrafficAnalyticsProperties": { + "description": "Parameters that define the configuration of traffic analytics.", + "required": [ + "networkWatcherFlowAnalyticsConfiguration" + ], + "properties": { + "networkWatcherFlowAnalyticsConfiguration": { + "$ref": "#/definitions/TrafficAnalyticsConfigurationProperties", + "description": "Parameters that define the configuration of traffic analytics." + } + } + }, + "TrafficAnalyticsConfigurationProperties": { + "description": "Parameters that define the configuration of traffic analytics.", + "required": [ + "enabled", + "workspaceId", + "workspaceRegion", + "workspaceResourceId" + ], + "properties": { + "enabled": { + "description": "Flag to enable/disable traffic analytics.", + "type": "boolean" + }, + "workspaceId": { + "description": "The resource guid of the attached workspace.", + "type": "string" + }, + "workspaceRegion": { + "description": "The location of the attached workspace.", + "type": "string" + }, + "workspaceResourceId": { + "description": "Resource Id of the attached workspace.", + "type": "string" + }, + "trafficAnalyticsInterval": { + "description": "The interval in minutes which would decide how frequently TA service should do flow analytics.", + "type": "integer" + } + } + }, + "ConnectivityParameters": { + "description": "Parameters that determine how the connectivity check will be performed.", + "required": [ + "source", + "destination" + ], + "properties": { + "source": { + "$ref": "#/definitions/ConnectivitySource", + "description": "Describes the source of the connection." + }, + "destination": { + "$ref": "#/definitions/ConnectivityDestination", + "description": "Describes the destination of connection." + }, + "protocol": { + "type": "string", + "description": "Network protocol.", + "enum": [ + "Tcp", + "Http", + "Https", + "Icmp" + ], + "x-ms-enum": { + "name": "Protocol", + "modelAsString": true + } + }, + "protocolConfiguration": { + "$ref": "#/definitions/ProtocolConfiguration", + "description": "Configuration of the protocol." + } + } + }, + "ConnectivitySource": { + "description": "Parameters that define the source of the connection.", + "required": [ + "resourceId" + ], + "properties": { + "resourceId": { + "description": "The ID of the resource from which a connectivity check will be initiated.", + "type": "string" + }, + "port": { + "description": "The source port from which a connectivity check will be performed.", + "type": "integer" + } + } + }, + "ConnectivityDestination": { + "description": "Parameters that define destination of connection.", + "properties": { + "resourceId": { + "description": "The ID of the resource to which a connection attempt will be made.", + "type": "string" + }, + "address": { + "description": "The IP address or URI the resource to which a connection attempt will be made.", + "type": "string" + }, + "port": { + "description": "Port on which check connectivity will be performed.", + "type": "integer" + } + } + }, + "ConnectivityInformation": { + "description": "Information on the connectivity status.", + "properties": { + "hops": { + "readOnly": true, + "type": "array", + "description": "List of hops between the source and the destination.", + "items": { + "$ref": "#/definitions/ConnectivityHop" + } + }, + "connectionStatus": { + "readOnly": true, + "type": "string", + "enum": [ + "Unknown", + "Connected", + "Disconnected", + "Degraded" + ], + "x-ms-enum": { + "name": "ConnectionStatus", + "modelAsString": true + }, + "description": "The connection status." + }, + "avgLatencyInMs": { + "description": "Average latency in milliseconds.", + "readOnly": true, + "type": "integer" + }, + "minLatencyInMs": { + "description": "Minimum latency in milliseconds.", + "readOnly": true, + "type": "integer" + }, + "maxLatencyInMs": { + "description": "Maximum latency in milliseconds.", + "readOnly": true, + "type": "integer" + }, + "probesSent": { + "description": "Total number of probes sent.", + "readOnly": true, + "type": "integer" + }, + "probesFailed": { + "description": "Number of failed probes.", + "readOnly": true, + "type": "integer" + } + } + }, + "ConnectivityHop": { + "description": "Information about a hop between the source and the destination.", + "properties": { + "type": { + "description": "The type of the hop.", + "readOnly": true, + "type": "string" + }, + "id": { + "description": "The ID of the hop.", + "readOnly": true, + "type": "string" + }, + "address": { + "description": "The IP address of the hop.", + "readOnly": true, + "type": "string" + }, + "resourceId": { + "description": "The ID of the resource corresponding to this hop.", + "readOnly": true, + "type": "string" + }, + "nextHopIds": { + "readOnly": true, + "type": "array", + "description": "List of next hop identifiers.", + "items": { + "type": "string" + } + }, + "issues": { + "readOnly": true, + "type": "array", + "description": "List of issues.", + "items": { + "$ref": "#/definitions/ConnectivityIssue" + } + } + } + }, + "ConnectivityIssue": { + "description": "Information about an issue encountered in the process of checking for connectivity.", + "properties": { + "origin": { + "readOnly": true, + "type": "string", + "enum": [ + "Local", + "Inbound", + "Outbound" + ], + "x-ms-enum": { + "name": "Origin", + "modelAsString": true + }, + "description": "The origin of the issue." + }, + "severity": { + "readOnly": true, + "type": "string", + "enum": [ + "Error", + "Warning" + ], + "x-ms-enum": { + "name": "Severity", + "modelAsString": true + }, + "description": "The severity of the issue." + }, + "type": { + "readOnly": true, + "type": "string", + "enum": [ + "Unknown", + "AgentStopped", + "GuestFirewall", + "DnsResolution", + "SocketBind", + "NetworkSecurityRule", + "UserDefinedRoute", + "PortThrottled", + "Platform" + ], + "x-ms-enum": { + "name": "IssueType", + "modelAsString": true + }, + "description": "The type of issue." + }, + "context": { + "readOnly": true, + "type": "array", + "description": "Provides additional context on the issue.", + "items": { + "$ref": "#/definitions/IssueContext" + } + } + } + }, + "IssueContext": { + "description": "A key-value pair that provides additional context on the issue.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "ProtocolConfiguration": { + "description": "Configuration of the protocol.", + "properties": { + "HTTPConfiguration": { + "$ref": "#/definitions/HTTPConfiguration", + "description": "HTTP configuration of the connectivity check." + } + } + }, + "HTTPConfiguration": { + "properties": { + "method": { + "type": "string", + "description": "HTTP method.", + "enum": [ + "Get" + ], + "x-ms-enum": { + "name": "HTTPMethod", + "modelAsString": true + } + }, + "headers": { + "type": "array", + "description": "List of HTTP headers.", + "items": { + "$ref": "#/definitions/HTTPHeader" + } + }, + "validStatusCodes": { + "type": "array", + "items": { + "type": "integer" + }, + "description": "Valid status codes." + } + }, + "description": "HTTP configuration of the connectivity check." + }, + "HTTPHeader": { + "properties": { + "name": { + "type": "string", + "description": "The name in HTTP header." + }, + "value": { + "type": "string", + "description": "The value in HTTP header." + } + }, + "description": "Describes the HTTP header." + }, + "AzureReachabilityReportParameters": { + "properties": { + "providerLocation": { + "$ref": "#/definitions/AzureReachabilityReportLocation", + "description": "Parameters that define a geographic location." + }, + "providers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of Internet service providers." + }, + "azureLocations": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Optional Azure regions to scope the query to." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time for the Azure reachability report." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time for the Azure reachability report." + } + }, + "required": [ + "providerLocation", + "startTime", + "endTime" + ], + "description": "Geographic and time constraints for Azure reachability report." + }, + "AzureReachabilityReportLocation": { + "properties": { + "country": { + "type": "string", + "description": "The name of the country." + }, + "state": { + "type": "string", + "description": "The name of the state." + }, + "city": { + "type": "string", + "description": "The name of the city or town." + } + }, + "required": [ + "country" + ], + "description": "Parameters that define a geographic location." + }, + "AzureReachabilityReport": { + "properties": { + "aggregationLevel": { + "type": "string", + "description": "The aggregation level of Azure reachability report. Can be Country, State or City." + }, + "providerLocation": { + "$ref": "#/definitions/AzureReachabilityReportLocation", + "description": "Parameters that define a geographic location." + }, + "reachabilityReport": { + "type": "array", + "description": "List of Azure reachability report items.", + "items": { + "$ref": "#/definitions/AzureReachabilityReportItem" + } + } + }, + "required": [ + "aggregationLevel", + "providerLocation", + "reachabilityReport" + ], + "description": "Azure reachability report details." + }, + "AzureReachabilityReportItem": { + "properties": { + "provider": { + "type": "string", + "description": "The Internet service provider." + }, + "azureLocation": { + "type": "string", + "description": "The Azure region." + }, + "latencies": { + "type": "array", + "description": "List of latency details for each of the time series.", + "items": { + "$ref": "#/definitions/AzureReachabilityReportLatencyInfo" + } + } + }, + "description": "Azure reachability report details for a given provider location." + }, + "AzureReachabilityReportLatencyInfo": { + "properties": { + "timeStamp": { + "type": "string", + "format": "date-time", + "description": "The time stamp." + }, + "score": { + "type": "integer", + "description": "The relative latency score between 1 and 100, higher values indicating a faster connection.", + "minimum": 1, + "maximum": 100 + } + }, + "description": "Details on latency for a time series." + }, + "AvailableProvidersListParameters": { + "properties": { + "azureLocations": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of Azure regions." + }, + "country": { + "type": "string", + "description": "The country for available providers list." + }, + "state": { + "type": "string", + "description": "The state for available providers list." + }, + "city": { + "type": "string", + "description": "The city or town for available providers list." + } + }, + "description": "Constraints that determine the list of available Internet service providers." + }, + "AvailableProvidersList": { + "properties": { + "countries": { + "type": "array", + "description": "List of available countries.", + "items": { + "$ref": "#/definitions/AvailableProvidersListCountry" + } + } + }, + "required": [ + "countries" + ], + "description": "List of available countries with details." + }, + "AvailableProvidersListCountry": { + "properties": { + "countryName": { + "type": "string", + "description": "The country name." + }, + "providers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of Internet service providers." + }, + "states": { + "type": "array", + "description": "List of available states in the country.", + "items": { + "$ref": "#/definitions/AvailableProvidersListState" + } + } + }, + "description": "Country details." + }, + "AvailableProvidersListState": { + "properties": { + "stateName": { + "type": "string", + "description": "The state name." + }, + "providers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of Internet service providers." + }, + "cities": { + "type": "array", + "description": "List of available cities or towns in the state.", + "items": { + "$ref": "#/definitions/AvailableProvidersListCity" + } + } + }, + "description": "State details." + }, + "AvailableProvidersListCity": { + "properties": { + "cityName": { + "type": "string", + "description": "The city or town name." + }, + "providers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of Internet service providers." + } + }, + "description": "City or town details." + }, + "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." + }, + "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." + }, + "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": "#/definitions/ConnectivityHop" + } + } + }, + "description": "Connection state snapshot." + }, + "NetworkConfigurationDiagnosticParameters": { + "description": "Parameters to get network configuration diagnostic.", + "required": [ + "targetResourceId", + "profiles" + ], + "properties": { + "targetResourceId": { + "type": "string", + "description": "The ID of the target resource to perform network configuration diagnostic. Valid options are VM, NetworkInterface, VMSS/NetworkInterface and Application Gateway." + }, + "verbosityLevel": { + "type": "string", + "enum": [ + "Normal", + "Minimum", + "Full" + ], + "x-ms-enum": { + "name": "VerbosityLevel", + "modelAsString": true + }, + "description": "Verbosity level." + }, + "profiles": { + "type": "array", + "description": "List of network configuration diagnostic profiles.", + "items": { + "$ref": "#/definitions/NetworkConfigurationDiagnosticProfile" + } + } + } + }, + "NetworkConfigurationDiagnosticProfile": { + "description": "Parameters to compare with network configuration.", + "required": [ + "direction", + "protocol", + "source", + "destination", + "destinationPort" + ], + "properties": { + "direction": { + "$ref": "#/definitions/Direction", + "description": "The direction of the traffic." + }, + "protocol": { + "type": "string", + "description": "Protocol to be verified on. Accepted values are '*', TCP, UDP." + }, + "source": { + "type": "string", + "description": "Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag." + }, + "destination": { + "type": "string", + "description": "Traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag." + }, + "destinationPort": { + "type": "string", + "description": "Traffic destination port. Accepted values are '*', port (for example, 3389) and port range (for example, 80-100)." + } + } + }, + "NetworkConfigurationDiagnosticResponse": { + "description": "Results of network configuration diagnostic on the target resource.", + "properties": { + "results": { + "readOnly": true, + "type": "array", + "description": "List of network configuration diagnostic results.", + "items": { + "$ref": "#/definitions/NetworkConfigurationDiagnosticResult" + } + } + } + }, + "NetworkConfigurationDiagnosticResult": { + "description": "Network configuration diagnostic result corresponded to provided traffic query.", + "properties": { + "profile": { + "$ref": "#/definitions/NetworkConfigurationDiagnosticProfile", + "description": "Network configuration diagnostic profile." + }, + "networkSecurityGroupResult": { + "$ref": "#/definitions/NetworkSecurityGroupResult", + "description": "Network security group result." + } + } + }, + "NetworkSecurityGroupResult": { + "description": "Network configuration diagnostic result corresponded provided traffic query.", + "properties": { + "securityRuleAccessResult": { + "$ref": "./networkSecurityGroup.json#/definitions/SecurityRuleAccess", + "description": "The network traffic is allowed or denied." + }, + "evaluatedNetworkSecurityGroups": { + "readOnly": true, + "type": "array", + "description": "List of results network security groups diagnostic.", + "items": { + "$ref": "#/definitions/EvaluatedNetworkSecurityGroup" + } + } + } + }, + "EvaluatedNetworkSecurityGroup": { + "description": "Results of network security group evaluation.", + "properties": { + "networkSecurityGroupId": { + "type": "string", + "description": "Network security group ID." + }, + "appliedTo": { + "type": "string", + "description": "Resource ID of nic or subnet to which network security group is applied." + }, + "matchedRule": { + "$ref": "#/definitions/MatchedRule", + "description": "Matched network security rule." + }, + "rulesEvaluationResult": { + "readOnly": true, + "type": "array", + "description": "List of network security rules evaluation results.", + "items": { + "$ref": "#/definitions/NetworkSecurityRulesEvaluationResult" + } + } + } + }, + "MatchedRule": { + "description": "Matched rule.", + "properties": { + "ruleName": { + "type": "string", + "description": "Name of the matched network security rule." + }, + "action": { + "type": "string", + "description": "The network traffic is allowed or denied. Possible values are 'Allow' and 'Deny'." + } + } + }, + "NetworkSecurityRulesEvaluationResult": { + "description": "Network security rules evaluation result.", + "properties": { + "name": { + "type": "string", + "description": "Name of the network security rule." + }, + "protocolMatched": { + "type": "boolean", + "description": "Value indicating whether protocol is matched." + }, + "sourceMatched": { + "type": "boolean", + "description": "Value indicating whether source is matched." + }, + "sourcePortMatched": { + "type": "boolean", + "description": "Value indicating whether source port is matched." + }, + "destinationMatched": { + "type": "boolean", + "description": "Value indicating whether destination is matched." + }, + "destinationPortMatched": { + "type": "boolean", + "description": "Value indicating whether destination port is matched." + } + } + }, + "Direction": { + "type": "string", + "description": "The direction of the traffic.", + "enum": [ + "Inbound", + "Outbound" + ], + "x-ms-enum": { + "name": "Direction", + "modelAsString": true + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/operation.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/operation.json new file mode 100644 index 000000000000..0af82b32e4bc --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/operation.json @@ -0,0 +1,265 @@ +{ + "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-06-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.Network/operations": { + "get": { + "operationId": "Operations_List", + "description": "Lists all of the available Network Rest API operations.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get a list of operations for a resource provider": { + "$ref": "./examples/OperationList.json" + } + } + } + } + }, + "definitions": { + "OperationListResult": { + "description": "Result of the request to list Network 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 Network operations supported by the Network resource provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "Operation": { + "description": "Network REST API operation definition.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string" + }, + "display": { + "description": "Display metadata associated with the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft Network.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed.", + "type": "string" + }, + "operation": { + "description": "Type of the operation: get, read, delete, etc.", + "type": "string" + }, + "description": { + "description": "Description of the operation.", + "type": "string" + } + } + }, + "origin": { + "description": "Origin of the operation.", + "type": "string" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/OperationPropertiesFormat", + "description": "Operation properties format." + } + } + }, + "OperationPropertiesFormat": { + "description": "Description of operation properties format.", + "properties": { + "serviceSpecification": { + "description": "Specification of the service.", + "properties": { + "metricSpecifications": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricSpecification" + }, + "description": "Operation service specification." + }, + "logSpecifications": { + "type": "array", + "items": { + "$ref": "#/definitions/LogSpecification" + }, + "description": "Operation log specification." + } + } + } + } + }, + "LogSpecification": { + "description": "Description of logging specification.", + "properties": { + "name": { + "type": "string", + "description": "The name of the specification." + }, + "displayName": { + "type": "string", + "description": "The display name of the specification." + }, + "blobDuration": { + "type": "string", + "description": "Duration of the blob." + } + } + }, + "MetricSpecification": { + "description": "Description of metrics specification.", + "properties": { + "name": { + "type": "string", + "description": "The name of the metric." + }, + "displayName": { + "type": "string", + "description": "The display name of the metric." + }, + "displayDescription": { + "type": "string", + "description": "The description of the metric." + }, + "unit": { + "type": "string", + "description": "Units the metric to be displayed in." + }, + "aggregationType": { + "type": "string", + "description": "The aggregation type." + }, + "availabilities": { + "type": "array", + "items": { + "$ref": "#/definitions/Availability" + }, + "description": "List of availability." + }, + "enableRegionalMdmAccount": { + "type": "boolean", + "description": "Whether regional MDM account enabled." + }, + "fillGapWithZero": { + "type": "boolean", + "description": "Whether gaps would be filled with zeros." + }, + "metricFilterPattern": { + "type": "string", + "description": "Pattern for the filter of the metric." + }, + "dimensions": { + "type": "array", + "items": { + "$ref": "#/definitions/Dimension" + }, + "description": "List of dimensions." + }, + "isInternal": { + "type": "boolean", + "description": "Whether the metric is internal." + }, + "sourceMdmAccount": { + "type": "string", + "description": "The source MDM account." + }, + "sourceMdmNamespace": { + "type": "string", + "description": "The source MDM namespace." + }, + "resourceIdDimensionNameOverride": { + "type": "string", + "description": "The resource Id dimension name override." + } + } + }, + "Dimension": { + "description": "Dimension of the metric.", + "properties": { + "name": { + "type": "string", + "description": "The name of the dimension." + }, + "displayName": { + "type": "string", + "description": "The display name of the dimension." + }, + "internalName": { + "type": "string", + "description": "The internal name of the dimension." + } + } + }, + "Availability": { + "description": "Availability of the metric.", + "properties": { + "timeGrain": { + "type": "string", + "description": "The time grain of the availability." + }, + "retention": { + "type": "string", + "description": "The retention of the availability." + }, + "blobDuration": { + "type": "string", + "description": "Duration of the availability blob." + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/privateEndpoint.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/privateEndpoint.json new file mode 100644 index 000000000000..b32dba97b6b9 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/privateEndpoint.json @@ -0,0 +1,557 @@ +{ + "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-06-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/privateEndpoints/{privateEndpointName}": { + "delete": { + "tags": [ + "PrivateEndpoints" + ], + "operationId": "PrivateEndpoints_Delete", + "description": "Deletes the specified private endpoint.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateEndpointName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the private endpoint." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Delete successful." + }, + "200": { + "description": "Delete successful." + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete private endpoint": { + "$ref": "./examples/PrivateEndpointDelete.json" + } + } + }, + "get": { + "tags": [ + "PrivateEndpoints" + ], + "operationId": "PrivateEndpoints_Get", + "description": "Gets the specified private endpoint by resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateEndpointName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the private endpoint." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting private endpoint resource.", + "schema": { + "$ref": "#/definitions/PrivateEndpoint" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-examples": { + "Get private endpoint": { + "$ref": "./examples/PrivateEndpointGet.json" + }, + "Get private endpoint with manual approval connection": { + "$ref": "./examples/PrivateEndpointGetForManualApproval.json" + } + } + }, + "put": { + "tags": [ + "PrivateEndpoints" + ], + "operationId": "PrivateEndpoints_CreateOrUpdate", + "description": "Creates or updates an private endpoint in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateEndpointName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the private endpoint." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpoint" + }, + "description": "Parameters supplied to the create or update private endpoint operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting private endpoint resource.", + "schema": { + "$ref": "#/definitions/PrivateEndpoint" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting private endpoint resource.", + "schema": { + "$ref": "#/definitions/PrivateEndpoint" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create private endpoint": { + "$ref": "./examples/PrivateEndpointCreate.json" + }, + "Create private endpoint with manual approval connection": { + "$ref": "./examples/PrivateEndpointCreateForManualApproval.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints": { + "get": { + "tags": [ + "PrivateEndpoints" + ], + "operationId": "PrivateEndpoints_List", + "description": "Gets all private endpoints in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of private endpoint resources.", + "schema": { + "$ref": "#/definitions/PrivateEndpointListResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-examples": { + "List private endpoints in resource group": { + "$ref": "./examples/PrivateEndpointList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateEndpoints": { + "get": { + "tags": [ + "PrivateEndpoints" + ], + "operationId": "PrivateEndpoints_ListBySubscription", + "description": "Gets all private endpoints in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of private endpoint resources.", + "schema": { + "$ref": "#/definitions/PrivateEndpointListResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-examples": { + "List all private endpoints": { + "$ref": "./examples/PrivateEndpointListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes": { + "get": { + "operationId": "AvailablePrivateEndpointTypes_List", + "description": "Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the domain name." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.", + "schema": { + "$ref": "#/definitions/AvailablePrivateEndpointTypesResult" + } + } + }, + "x-ms-examples": { + "Get available PrivateEndpoint types": { + "$ref": "./examples/AvailablePrivateEndpointTypesGet.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes": { + "get": { + "operationId": "AvailablePrivateEndpointTypes_ListByResourceGroup", + "description": "Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the domain name." + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.", + "schema": { + "$ref": "#/definitions/AvailablePrivateEndpointTypesResult" + } + } + }, + "x-ms-examples": { + "Get available PrivateEndpoint types in the resource group": { + "$ref": "./examples/AvailablePrivateEndpointTypesResourceGroupGet.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "PrivateEndpoint": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PrivateEndpointProperties", + "description": "Properties of the private endpoint." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Private endpoint resource." + }, + "PrivateEndpointProperties": { + "properties": { + "subnet": { + "$ref": "./virtualNetwork.json#/definitions/Subnet", + "description": "The ID of the subnet from which the private IP will be allocated." + }, + "networkInterfaces": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "./networkInterface.json#/definitions/NetworkInterface" + }, + "description": "Gets an array of references to the network interfaces created for this private endpoint." + }, + "provisioningState": { + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the private endpoint." + }, + "privateLinkServiceConnections": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkServiceConnection" + }, + "description": "A grouping of information about the connection to the remote resource." + }, + "manualPrivateLinkServiceConnections": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkServiceConnection" + }, + "description": "A grouping of information about the connection to the remote resource. Used when the network admin does not have access to approve connections to the remote resource." + } + }, + "description": "Properties of the private endpoint." + }, + "PrivateLinkServiceConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PrivateLinkServiceConnectionProperties", + "description": "Properties of the private link service connection." + }, + "name": { + "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": "The resource type." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "PrivateLinkServiceConnection resource." + }, + "PrivateLinkServiceConnectionProperties": { + "properties": { + "provisioningState": { + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the private link service connection." + }, + "privateLinkServiceId": { + "type": "string", + "description": "The resource id of private link service." + }, + "groupIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to." + }, + "requestMessage": { + "type": "string", + "description": "A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars." + }, + "privateLinkServiceConnectionState": { + "$ref": "./privateLinkService.json#/definitions/PrivateLinkServiceConnectionState", + "description": "A collection of read-only information about the state of the connection to the remote resource." + } + }, + "description": "Properties of the PrivateLinkServiceConnection." + }, + "PrivateEndpointListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpoint" + }, + "description": "Gets a list of private endpoint resources in a resource group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results.", + "readOnly": true + } + }, + "description": "Response for the ListPrivateEndpoints API service call." + }, + "AvailablePrivateEndpointTypesResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AvailablePrivateEndpointType" + }, + "description": "An array of available privateEndpoint type." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "An array of available PrivateEndpoint types." + }, + "AvailablePrivateEndpointType": { + "properties": { + "name": { + "type": "string", + "description": "The name of the service and resource." + }, + "id": { + "type": "string", + "description": "A unique identifier of the AvailablePrivateEndpoint Type resource." + }, + "type": { + "type": "string", + "description": "Resource type." + }, + "resourceName": { + "type": "string", + "description": "The name of the service and resource." + } + }, + "description": "The information of an AvailablePrivateEndpointType." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/privateLinkService.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/privateLinkService.json new file mode 100644 index 000000000000..a022fe0691a7 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/privateLinkService.json @@ -0,0 +1,897 @@ +{ + "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-06-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/privateLinkServices/{serviceName}": { + "delete": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_Delete", + "description": "Deletes the specified private link service.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "serviceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the private link service." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Delete successful." + }, + "200": { + "description": "Delete successful." + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete private link service": { + "$ref": "./examples/PrivateLinkServiceDelete.json" + } + } + }, + "get": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_Get", + "description": "Gets the specified private link service by resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "serviceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the private link service." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting PrivateLinkService resource.", + "schema": { + "$ref": "#/definitions/PrivateLinkService" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-examples": { + "Get private link service": { + "$ref": "./examples/PrivateLinkServiceGet.json" + } + } + }, + "put": { + "tags": [ + "PrivateLinkService" + ], + "operationId": "PrivateLinkServices_CreateOrUpdate", + "description": "Creates or updates an private link service in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "serviceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the private link service." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateLinkService" + }, + "description": "Parameters supplied to the create or update private link service operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting privateLinkService resource.", + "schema": { + "$ref": "#/definitions/PrivateLinkService" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting privateLinkService resource.", + "schema": { + "$ref": "#/definitions/PrivateLinkService" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create private link service": { + "$ref": "./examples/PrivateLinkServiceCreate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices": { + "get": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_List", + "description": "Gets all private link services in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of privateLinkService resources.", + "schema": { + "$ref": "#/definitions/PrivateLinkServiceListResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-examples": { + "List private link service in resource group": { + "$ref": "./examples/PrivateLinkServiceList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateLinkServices": { + "get": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_ListBySubscription", + "description": "Gets all private link service in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of PrivateLinkService resources.", + "schema": { + "$ref": "#/definitions/PrivateLinkServiceListResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-examples": { + "List all private list service": { + "$ref": "./examples/PrivateLinkServiceListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}": { + "put": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_UpdatePrivateEndpointConnection", + "description": "Approve or reject private end point connection for a private link service in a subscription.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "serviceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the private link service." + }, + { + "name": "peConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the private end point connection." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + }, + "description": "Parameters supplied to approve or reject the private end point connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting PrivateEndpointConnection resource", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-examples": { + "approve or reject private end point connection for a private link service": { + "$ref": "./examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json" + } + } + }, + "delete": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_DeletePrivateEndpointConnection", + "description": "Delete private end point connection for a private link service in a subscription.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "serviceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the private link service." + }, + { + "name": "peConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the private end point connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Delete successful." + }, + "200": { + "description": "Delete successful." + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-examples": { + "delete private end point connection for a private link service": { + "$ref": "./examples/PrivateLinkServiceDeletePrivateEndpointConnection.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility": { + "post": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_CheckPrivateLinkServiceVisibility", + "description": "Checks the subscription is visible to private link service", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the domain name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckPrivateLinkServiceVisibilityRequest" + }, + "description": "The request body of CheckPrivateLinkService API call." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns whether the subscription is visible to private link service.", + "schema": { + "$ref": "#/definitions/PrivateLinkServiceVisibility" + } + } + }, + "x-ms-examples": { + "Check private link service visibility": { + "$ref": "./examples/CheckPrivateLinkServiceVisibility.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility": { + "post": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_CheckPrivateLinkServiceVisibilityByResourceGroup", + "description": "Checks the subscription is visible to private link service", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the domain name." + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckPrivateLinkServiceVisibilityRequest" + }, + "description": "The request body of CheckPrivateLinkService API call." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns whether the subscription is visible to private link service.", + "schema": { + "$ref": "#/definitions/PrivateLinkServiceVisibility" + } + } + }, + "x-ms-examples": { + "Check private link service visibility": { + "$ref": "./examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices": { + "get": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_ListAutoApprovedPrivateLinkServices", + "description": "Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the domain name." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.", + "schema": { + "$ref": "#/definitions/AutoApprovedPrivateLinkServicesResult" + } + } + }, + "x-ms-examples": { + "Get list of private link service id that can be linked to a private end point with auto approved": { + "$ref": "./examples/AutoApprovedPrivateLinkServicesGet.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices": { + "get": { + "tags": [ + "PrivateLinkServices" + ], + "operationId": "PrivateLinkServices_ListAutoApprovedPrivateLinkServicesByResourceGroup", + "description": "Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the domain name." + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.", + "schema": { + "$ref": "#/definitions/AutoApprovedPrivateLinkServicesResult" + } + } + }, + "x-ms-examples": { + "Get list of private link service id that can be linked to a private end point with auto approved": { + "$ref": "./examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "PrivateLinkService": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PrivateLinkServiceProperties", + "description": "Properties of the private link service." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Private link service resource." + }, + "PrivateLinkServiceProperties": { + "properties": { + "loadBalancerFrontendIpConfigurations": { + "type": "array", + "items": { + "$ref": "./loadBalancer.json#/definitions/FrontendIPConfiguration" + }, + "description": "An array of references to the load balancer IP configurations." + }, + "ipConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkServiceIpConfiguration" + }, + "description": "An array of references to the private link service IP configuration." + }, + "networkInterfaces": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "./networkInterface.json#/definitions/NetworkInterface" + }, + "description": "Gets an array of references to the network interfaces created for this private link service." + }, + "provisioningState": { + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the private link service." + }, + "privateEndpointConnections": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + }, + "description": "An array of list about connections to the private endpoint." + }, + "visibility": { + "allOf": [ + { + "$ref": "#/definitions/ResourceSet" + } + ], + "description": "The visibility list of the private link service." + }, + "autoApproval": { + "allOf": [ + { + "$ref": "#/definitions/ResourceSet" + } + ], + "description": "The auto-approval list of the private link service." + }, + "fqdns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of Fqdn." + }, + "alias": { + "readOnly": true, + "type": "string", + "description": "The alias of the private link service." + } + }, + "description": "Properties of the private link service." + }, + "ResourceSet": { + "properties": { + "subscriptions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of subscriptions." + } + }, + "description": "The base resource set for visibility and auto-approval." + }, + "PrivateLinkServiceIpConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PrivateLinkServiceIpConfigurationProperties", + "description": "Properties of the private link service ip configuration." + }, + "name": { + "type": "string", + "description": "The name of private link service ip configuration." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The resource type." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "The private link service ip configuration." + }, + "PrivateLinkServiceIpConfigurationProperties": { + "properties": { + "privateIPAddress": { + "type": "string", + "description": "The private IP address of the IP configuration." + }, + "privateIPAllocationMethod": { + "$ref": "./network.json#/definitions/IPAllocationMethod", + "description": "The private IP address allocation method." + }, + "subnet": { + "$ref": "./virtualNetwork.json#/definitions/Subnet", + "description": "The reference of the subnet resource." + }, + "primary": { + "type": "boolean", + "description": "Whether the ip configuration is primary or not." + }, + "provisioningState": { + "$ref": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the private link service ip configuration." + }, + "privateIPAddressVersion": { + "$ref": "./network.json#/definitions/IPVersion", + "description": "Available from Api-Version 2016-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4." + } + }, + "description": "Properties of private link service IP configuration." + }, + "PrivateEndpointConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "description": "Properties of the private end point connection." + }, + "name": { + "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": "The resource type." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "PrivateEndpointConnection resource." + }, + "PrivateEndpointConnectionProperties": { + "properties": { + "privateEndpoint": { + "$ref": "./privateEndpoint.json#/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": "./network.json#/definitions/ProvisioningState", + "description": "The provisioning state of the private endpoint connection." + } + }, + "description": "Properties of the PrivateEndpointConnectProperties." + }, + "PrivateLinkServiceConnectionState": { + "properties": { + "status": { + "type": "string", + "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." + }, + "PrivateLinkServiceListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkService" + }, + "description": "Gets a list of PrivateLinkService resources in a resource group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results.", + "readOnly": true + } + }, + "description": "Response for the ListPrivateLinkService API service call." + }, + "CheckPrivateLinkServiceVisibilityRequest": { + "properties": { + "privateLinkServiceAlias": { + "type": "string", + "description": "The alias of the private link service." + } + }, + "description": "Request body of the CheckPrivateLinkServiceVisibility API service call." + }, + "PrivateLinkServiceVisibility": { + "properties": { + "visible": { + "type": "boolean", + "description": "Private Link Service Visibility (True/False)." + } + }, + "description": "Response for the CheckPrivateLinkServiceVisibility API service call." + }, + "AutoApprovedPrivateLinkServicesResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AutoApprovedPrivateLinkService" + }, + "description": "An array of auto approved private link service." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "An array of private link service id that can be linked to a private end point with auto approved." + }, + "AutoApprovedPrivateLinkService": { + "properties": { + "privateLinkService": { + "type": "string", + "description": "The id of the private link service resource." + } + }, + "description": "The information of an AutoApprovedPrivateLinkService." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/publicIpAddress.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/publicIpAddress.json new file mode 100644 index 000000000000..1e682cf8113a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/publicIpAddress.json @@ -0,0 +1,502 @@ +{ + "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-06-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/publicIPAddresses/{publicIpAddressName}": { + "delete": { + "tags": [ + "PublicIPAddresses" + ], + "operationId": "PublicIPAddresses_Delete", + "description": "Deletes the specified public IP address.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "publicIpAddressName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the subnet." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request successful. Resource does not exist." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete public IP address": { + "$ref": "./examples/PublicIpAddressDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "PublicIPAddresses" + ], + "operationId": "PublicIPAddresses_Get", + "description": "Gets the specified public IP address in a specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "publicIpAddressName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the subnet." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting PublicIPAddress resource.", + "schema": { + "$ref": "#/definitions/PublicIPAddress" + } + } + }, + "x-ms-examples": { + "Get public IP address": { + "$ref": "./examples/PublicIpAddressGet.json" + } + } + }, + "put": { + "tags": [ + "PublicIPAddresses" + ], + "operationId": "PublicIPAddresses_CreateOrUpdate", + "description": "Creates or updates a static or dynamic public IP address.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "publicIpAddressName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the public IP address." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PublicIPAddress" + }, + "description": "Parameters supplied to the create or update public IP address operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting PublicIPAddress resource.", + "schema": { + "$ref": "#/definitions/PublicIPAddress" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting PublicIPAddress resource.", + "schema": { + "$ref": "#/definitions/PublicIPAddress" + } + } + }, + "x-ms-examples": { + "Create public IP address defaults": { + "$ref": "./examples/PublicIpAddressCreateDefaults.json" + }, + "Create public IP address allocation method": { + "$ref": "./examples/PublicIpAddressCreateCustomizedValues.json" + }, + "Create public IP address DNS": { + "$ref": "./examples/PublicIpAddressCreateDns.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "PublicIPAddresses" + ], + "operationId": "PublicIPAddresses_UpdateTags", + "description": "Updates public IP address tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "publicIpAddressName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the public IP address." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update public IP address tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting PublicIPAddress resource.", + "schema": { + "$ref": "#/definitions/PublicIPAddress" + } + } + }, + "x-ms-examples": { + "Update public IP address tags": { + "$ref": "./examples/PublicIpAddressUpdateTags.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses": { + "get": { + "tags": [ + "PublicIPAddresses" + ], + "operationId": "PublicIPAddresses_ListAll", + "description": "Gets all the public IP addresses in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of PublicIPAddress resources.", + "schema": { + "$ref": "#/definitions/PublicIPAddressListResult" + } + } + }, + "x-ms-examples": { + "List all public IP addresses": { + "$ref": "./examples/PublicIpAddressListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses": { + "get": { + "tags": [ + "PublicIPAddresses" + ], + "operationId": "PublicIPAddresses_List", + "description": "Gets all public IP addresses in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of PublicIPAddress resources.", + "schema": { + "$ref": "#/definitions/PublicIPAddressListResult" + } + } + }, + "x-ms-examples": { + "List resource group public IP addresses": { + "$ref": "./examples/PublicIpAddressList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "PublicIPAddressSku": { + "properties": { + "name": { + "type": "string", + "description": "Name of a public IP address SKU.", + "enum": [ + "Basic", + "Standard" + ], + "x-ms-enum": { + "name": "PublicIPAddressSkuName", + "modelAsString": true + } + } + }, + "description": "SKU of a public IP address." + }, + "PublicIPAddressPropertiesFormat": { + "properties": { + "publicIPAllocationMethod": { + "$ref": "./network.json#/definitions/IPAllocationMethod", + "description": "The public IP address allocation method." + }, + "publicIPAddressVersion": { + "$ref": "./network.json#/definitions/IPVersion", + "description": "The public IP address version." + }, + "ipConfiguration": { + "readOnly": true, + "$ref": "./networkInterface.json#/definitions/IPConfiguration", + "description": "The IP configuration associated with the public IP address." + }, + "dnsSettings": { + "$ref": "#/definitions/PublicIPAddressDnsSettings", + "description": "The FQDN of the DNS record associated with the public IP address." + }, + "ddosSettings": { + "$ref": "#/definitions/DdosSettings", + "description": "The DDoS protection custom policy associated with the public IP address." + }, + "ipTags": { + "type": "array", + "items": { + "$ref": "#/definitions/IpTag" + }, + "description": "The list of tags associated with the public IP address." + }, + "ipAddress": { + "type": "string", + "description": "The IP address associated with the public IP address resource." + }, + "publicIPPrefix": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The Public IP Prefix this Public IP Address should be allocated from." + }, + "idleTimeoutInMinutes": { + "type": "integer", + "format": "int32", + "description": "The idle timeout of the public IP address." + }, + "resourceGuid": { + "type": "string", + "description": "The resource GUID property of the public IP resource." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Public IP address properties." + }, + "PublicIPAddress": { + "properties": { + "sku": { + "$ref": "#/definitions/PublicIPAddressSku", + "description": "The public IP address SKU." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PublicIPAddressPropertiesFormat", + "description": "Public IP address properties." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of availability zones denoting the IP allocated for the resource needs to come from." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Public IP address resource." + }, + "PublicIPAddressListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicIPAddress" + }, + "description": "A list of public IP addresses that exists in a resource group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListPublicIpAddresses API service call." + }, + "PublicIPAddressDnsSettings": { + "properties": { + "domainNameLabel": { + "type": "string", + "description": "Gets or sets the Domain name label.The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system." + }, + "fqdn": { + "type": "string", + "description": "Gets the FQDN, Fully qualified domain name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone." + }, + "reverseFqdn": { + "type": "string", + "description": "Gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN." + } + }, + "description": "Contains FQDN of the DNS record associated with the public IP address." + }, + "DdosSettings": { + "properties": { + "ddosCustomPolicy": { + "readOnly": false, + "$ref": "./network.json#/definitions/SubResource", + "description": "The DDoS custom policy associated with the public IP." + }, + "protectionCoverage": { + "readOnly": false, + "type": "string", + "enum": [ + "Basic", + "Standard" + ], + "x-ms-enum": { + "name": "DdosSettingsProtectionCoverage", + "modelAsString": true + }, + "description": "The DDoS protection policy customizability of the public IP. Only standard coverage will have the ability to be customized." + } + }, + "description": "Contains the DDoS protection settings of the public IP." + }, + "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." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/publicIpPrefix.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/publicIpPrefix.json new file mode 100644 index 000000000000..5e882a6e257f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/publicIpPrefix.json @@ -0,0 +1,445 @@ +{ + "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-06-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/publicIPPrefixes/{publicIpPrefixName}": { + "delete": { + "tags": [ + "PublicIPPrefixes" + ], + "operationId": "PublicIPPrefixes_Delete", + "description": "Deletes the specified public IP prefix.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "publicIpPrefixName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the PublicIpPrefix." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request successful. Resource does not exist." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete public IP prefix": { + "$ref": "./examples/PublicIpPrefixDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "PublicIPPrefixes" + ], + "operationId": "PublicIPPrefixes_Get", + "description": "Gets the specified public IP prefix in a specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "publicIpPrefixName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the public IP prefix." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting PublicIPPrefix resource.", + "schema": { + "$ref": "#/definitions/PublicIPPrefix" + } + } + }, + "x-ms-examples": { + "Get public IP prefix": { + "$ref": "./examples/PublicIpPrefixGet.json" + } + } + }, + "put": { + "tags": [ + "PublicIPPrefixes" + ], + "operationId": "PublicIPPrefixes_CreateOrUpdate", + "description": "Creates or updates a static or dynamic public IP prefix.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "publicIpPrefixName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the public IP prefix." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PublicIPPrefix" + }, + "description": "Parameters supplied to the create or update public IP prefix operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting PublicIPPrefix resource.", + "schema": { + "$ref": "#/definitions/PublicIPPrefix" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting PublicIPPrefix resource.", + "schema": { + "$ref": "#/definitions/PublicIPPrefix" + } + } + }, + "x-ms-examples": { + "Create public IP prefix defaults": { + "$ref": "./examples/PublicIpPrefixCreateDefaults.json" + }, + "Create public IP prefix allocation method": { + "$ref": "./examples/PublicIpPrefixCreateCustomizedValues.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "patch": { + "tags": [ + "PublicIPPrefixes" + ], + "operationId": "PublicIPPrefixes_UpdateTags", + "description": "Updates public IP prefix tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "publicIpPrefixName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the public IP prefix." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update public IP prefix tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting PublicIPPrefix resource.", + "schema": { + "$ref": "#/definitions/PublicIPPrefix" + } + } + }, + "x-ms-examples": { + "Update public IP prefix tags": { + "$ref": "./examples/PublicIpPrefixUpdateTags.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPPrefixes": { + "get": { + "tags": [ + "PublicIPPrefixes" + ], + "operationId": "PublicIPPrefixes_ListAll", + "description": "Gets all the public IP prefixes in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of PublicIPPrefix resources.", + "schema": { + "$ref": "#/definitions/PublicIPPrefixListResult" + } + } + }, + "x-ms-examples": { + "List all public IP prefixes": { + "$ref": "./examples/PublicIpPrefixListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes": { + "get": { + "tags": [ + "PublicIPPrefixes" + ], + "operationId": "PublicIPPrefixes_List", + "description": "Gets all public IP prefixes in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of PublicIPPrefix resources.", + "schema": { + "$ref": "#/definitions/PublicIPPrefixListResult" + } + } + }, + "x-ms-examples": { + "List resource group public IP prefixes": { + "$ref": "./examples/PublicIpPrefixList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "PublicIPPrefixSku": { + "properties": { + "name": { + "type": "string", + "description": "Name of a public IP prefix SKU.", + "enum": [ + "Standard" + ], + "x-ms-enum": { + "name": "PublicIPPrefixSkuName", + "modelAsString": true + } + } + }, + "description": "SKU of a public IP prefix." + }, + "PublicIPPrefixPropertiesFormat": { + "properties": { + "publicIPAddressVersion": { + "$ref": "./network.json#/definitions/IPVersion", + "description": "The public IP address version." + }, + "ipTags": { + "type": "array", + "items": { + "$ref": "./publicIpAddress.json#/definitions/IpTag" + }, + "description": "The list of tags associated with the public IP prefix." + }, + "prefixLength": { + "type": "integer", + "format": "int32", + "description": "The Length of the Public IP Prefix." + }, + "ipPrefix": { + "type": "string", + "description": "The allocated Prefix." + }, + "publicIPAddresses": { + "type": "array", + "items": { + "$ref": "#/definitions/ReferencedPublicIpAddress" + }, + "description": "The list of all referenced PublicIPAddresses." + }, + "loadBalancerFrontendIpConfiguration": { + "readOnly": true, + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference to load balancer frontend IP configuration associated with the public IP prefix." + }, + "resourceGuid": { + "type": "string", + "description": "The resource GUID property of the public IP prefix resource." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the Public IP prefix resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Public IP prefix properties." + }, + "PublicIPPrefix": { + "properties": { + "sku": { + "$ref": "#/definitions/PublicIPPrefixSku", + "description": "The public IP prefix SKU." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PublicIPPrefixPropertiesFormat", + "description": "Public IP prefix properties." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of availability zones denoting the IP allocated for the resource needs to come from." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Public IP prefix resource." + }, + "PublicIPPrefixListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicIPPrefix" + }, + "description": "A list of public IP prefixes that exists in a resource group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListPublicIpPrefixes API service call." + }, + "ReferencedPublicIpAddress": { + "properties": { + "id": { + "type": "string", + "description": "The PublicIPAddress Reference." + } + }, + "description": "Reference to a public IP address." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/routeFilter.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/routeFilter.json new file mode 100644 index 000000000000..ea9c0ba3d7f4 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/routeFilter.json @@ -0,0 +1,820 @@ +{ + "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-06-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/routeFilters/{routeFilterName}": { + "delete": { + "tags": [ + "RouteFilters" + ], + "operationId": "RouteFilters_Delete", + "x-ms-examples": { + "RouteFilterDelete": { + "$ref": "./examples/RouteFilterDelete.json" + } + }, + "description": "Deletes the specified route filter.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeFilterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route filter." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + }, + "204": { + "description": "Delete successful." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "RouteFilters" + ], + "operationId": "RouteFilters_Get", + "x-ms-examples": { + "RouteFilterGet": { + "$ref": "./examples/RouteFilterGet.json" + } + }, + "description": "Gets the specified route filter.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeFilterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route filter." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced express route bgp peering resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting Route Filter resource.", + "schema": { + "$ref": "#/definitions/RouteFilter" + } + } + } + }, + "put": { + "tags": [ + "RouteFilters" + ], + "operationId": "RouteFilters_CreateOrUpdate", + "x-ms-examples": { + "RouteFilterCreate": { + "$ref": "./examples/RouteFilterCreate.json" + } + }, + "description": "Creates or updates a route filter in a specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeFilterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route filter." + }, + { + "name": "routeFilterParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RouteFilter" + }, + "description": "Parameters supplied to the create or update route filter operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting Route Filter resource.", + "schema": { + "$ref": "#/definitions/RouteFilter" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Route Filter resource.", + "schema": { + "$ref": "#/definitions/RouteFilter" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "RouteFilters" + ], + "operationId": "RouteFilters_Update", + "x-ms-examples": { + "RouteFilterUpdate": { + "$ref": "./examples/RouteFilterUpdate.json" + } + }, + "description": "Updates a route filter in a specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeFilterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route filter." + }, + { + "name": "routeFilterParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PatchRouteFilter" + }, + "description": "Parameters supplied to the update route filter operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting Route Filter resource.", + "schema": { + "$ref": "#/definitions/RouteFilter" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters": { + "get": { + "tags": [ + "RouteFilters" + ], + "operationId": "RouteFilters_ListByResourceGroup", + "x-ms-examples": { + "RouteFilterListByResourceGroup": { + "$ref": "./examples/RouteFilterListByResourceGroup.json" + } + }, + "description": "Gets all route filters in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of Route Filter resources.", + "schema": { + "$ref": "#/definitions/RouteFilterListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeFilters": { + "get": { + "tags": [ + "RouteFilters" + ], + "operationId": "RouteFilters_List", + "x-ms-examples": { + "RouteFilterList": { + "$ref": "./examples/RouteFilterList.json" + } + }, + "description": "Gets all route filters in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of Route Filter resources.", + "schema": { + "$ref": "#/definitions/RouteFilterListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}": { + "delete": { + "tags": [ + "RouteFilterRules" + ], + "operationId": "RouteFilterRules_Delete", + "x-ms-examples": { + "RouteFilterRuleDelete": { + "$ref": "./examples/RouteFilterRuleDelete.json" + } + }, + "description": "Deletes the specified rule from a route filter.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeFilterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route filter." + }, + { + "name": "ruleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the rule." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Accepted." + }, + "204": { + "description": "Rule was deleted or not found." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "RouteFilterRules" + ], + "operationId": "RouteFilterRules_Get", + "x-ms-examples": { + "RouteFilterRuleGet": { + "$ref": "./examples/RouteFilterRuleGet.json" + } + }, + "description": "Gets the specified rule from a route filter.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeFilterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route filter." + }, + { + "name": "ruleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the rule." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting Route Filter Rule resource.", + "schema": { + "$ref": "#/definitions/RouteFilterRule" + } + } + } + }, + "put": { + "tags": [ + "RouteFilterRules" + ], + "operationId": "RouteFilterRules_CreateOrUpdate", + "x-ms-examples": { + "RouteFilterRuleCreate": { + "$ref": "./examples/RouteFilterRuleCreate.json" + } + }, + "description": "Creates or updates a route in the specified route filter.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeFilterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route filter." + }, + { + "name": "ruleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route filter rule." + }, + { + "name": "routeFilterRuleParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RouteFilterRule" + }, + "description": "Parameters supplied to the create or update route filter rule operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Route Filter Rule resource.", + "schema": { + "$ref": "#/definitions/RouteFilterRule" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Route Filter Rule resource.", + "schema": { + "$ref": "#/definitions/RouteFilterRule" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "RouteFilterRules" + ], + "operationId": "RouteFilterRules_Update", + "x-ms-examples": { + "RouteFilterRuleUpdate": { + "$ref": "./examples/RouteFilterRuleUpdate.json" + } + }, + "description": "Updates a route in the specified route filter.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeFilterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route filter." + }, + { + "name": "ruleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route filter rule." + }, + { + "name": "routeFilterRuleParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PatchRouteFilterRule" + }, + "description": "Parameters supplied to the update route filter rule operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Route Filter Rule resource.", + "schema": { + "$ref": "#/definitions/RouteFilterRule" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules": { + "get": { + "tags": [ + "RouteFilterRules" + ], + "operationId": "RouteFilterRules_ListByRouteFilter", + "x-ms-examples": { + "RouteFilterRuleListByRouteFilter": { + "$ref": "./examples/RouteFilterRuleListByRouteFilter.json" + } + }, + "description": "Gets all RouteFilterRules in a route filter.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeFilterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route filter." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of Route Filter Rule resources.", + "schema": { + "$ref": "#/definitions/RouteFilterRuleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "RouteFilterRulePropertiesFormat": { + "required": [ + "access", + "routeFilterRuleType", + "communities" + ], + "properties": { + "access": { + "$ref": "./network.json#/definitions/Access", + "description": "The access type of the rule." + }, + "routeFilterRuleType": { + "type": "string", + "description": "The rule type of the rule.", + "enum": [ + "Community" + ], + "x-ms-enum": { + "name": "RouteFilterRuleType", + "modelAsString": true + } + }, + "communities": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']." + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'." + } + }, + "description": "Route Filter Rule Resource." + }, + "RouteFilterRule": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RouteFilterRulePropertiesFormat", + "description": "Properties of the route filter rule." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Route Filter Rule Resource." + }, + "PatchRouteFilterRule": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RouteFilterRulePropertiesFormat", + "description": "Properties of the route filter rule." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Route Filter Rule Resource." + }, + "RouteFilterPropertiesFormat": { + "properties": { + "rules": { + "type": "array", + "items": { + "$ref": "#/definitions/RouteFilterRule" + }, + "description": "Collection of RouteFilterRules contained within a route filter." + }, + "peerings": { + "type": "array", + "items": { + "$ref": "./expressRouteCircuit.json#/definitions/ExpressRouteCircuitPeering" + }, + "description": "A collection of references to express route circuit peerings." + }, + "ipv6Peerings": { + "type": "array", + "items": { + "$ref": "./expressRouteCircuit.json#/definitions/ExpressRouteCircuitPeering" + }, + "description": "A collection of references to express route circuit ipv6 peerings." + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'." + } + }, + "description": "Route Filter Resource." + }, + "RouteFilter": { + "required": [ + "location" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RouteFilterPropertiesFormat", + "description": "Properties of the route filter." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Route Filter Resource." + }, + "PatchRouteFilter": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RouteFilterPropertiesFormat", + "description": "Properties of the route filter." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Route Filter Resource." + }, + "RouteFilterListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RouteFilter" + }, + "description": "Gets a list of route filters in a resource group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for the ListRouteFilters API service call." + }, + "RouteFilterRuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RouteFilterRule" + }, + "description": "Gets a list of RouteFilterRules in a resource group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for the ListRouteFilterRules API service call." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/routeTable.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/routeTable.json new file mode 100644 index 000000000000..69cb914904cb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/routeTable.json @@ -0,0 +1,692 @@ +{ + "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-06-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/routeTables/{routeTableName}": { + "delete": { + "tags": [ + "RouteTables" + ], + "operationId": "RouteTables_Delete", + "description": "Deletes the specified route table.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeTableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route table." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request successful. Resource does not exist." + }, + "200": { + "description": "Request successful. Operation to delete was accepted." + }, + "202": { + "description": "Accepted. If route table not found returned synchronously, otherwise if found returned asynchronously." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete route table": { + "$ref": "./examples/RouteTableDelete.json" + } + } + }, + "get": { + "tags": [ + "RouteTables" + ], + "operationId": "RouteTables_Get", + "description": "Gets the specified route table.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeTableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route table." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting RouteTable resource.", + "schema": { + "$ref": "#/definitions/RouteTable" + } + } + }, + "x-ms-examples": { + "Get route table": { + "$ref": "./examples/RouteTableGet.json" + } + } + }, + "put": { + "tags": [ + "RouteTables" + ], + "operationId": "RouteTables_CreateOrUpdate", + "description": "Create or updates a route table in a specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeTableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route table." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RouteTable" + }, + "description": "Parameters supplied to the create or update route table operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting RouteTable resource.", + "schema": { + "$ref": "#/definitions/RouteTable" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting RouteTable resource.", + "schema": { + "$ref": "#/definitions/RouteTable" + } + } + }, + "x-ms-examples": { + "Create route table": { + "$ref": "./examples/RouteTableCreate.json" + }, + "Create route table with route": { + "$ref": "./examples/RouteTableCreateWithRoute.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "RouteTables" + ], + "operationId": "RouteTables_UpdateTags", + "description": "Updates a route table tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeTableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route table." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update route table tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting RouteTable resource.", + "schema": { + "$ref": "#/definitions/RouteTable" + } + } + }, + "x-ms-examples": { + "Update route table tags": { + "$ref": "./examples/RouteTableUpdateTags.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables": { + "get": { + "tags": [ + "RouteTables" + ], + "operationId": "RouteTables_List", + "description": "Gets all route tables in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of RouteTable resources.", + "schema": { + "$ref": "#/definitions/RouteTableListResult" + } + } + }, + "x-ms-examples": { + "List route tables in resource group": { + "$ref": "./examples/RouteTableList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeTables": { + "get": { + "tags": [ + "RouteTables" + ], + "operationId": "RouteTables_ListAll", + "description": "Gets all route tables in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of RouteTable resources.", + "schema": { + "$ref": "#/definitions/RouteTableListResult" + } + } + }, + "x-ms-examples": { + "List all route tables": { + "$ref": "./examples/RouteTableListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}": { + "delete": { + "tags": [ + "Routes" + ], + "operationId": "Routes_Delete", + "description": "Deletes the specified route from a route table.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeTableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route table." + }, + { + "name": "routeName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Accepted." + }, + "204": { + "description": "Route was deleted or not found." + } + }, + "x-ms-examples": { + "Delete route": { + "$ref": "./examples/RouteTableRouteDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "Routes" + ], + "operationId": "Routes_Get", + "description": "Gets the specified route from a route table.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeTableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route table." + }, + { + "name": "routeName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting Route resource.", + "schema": { + "$ref": "#/definitions/Route" + } + } + }, + "x-ms-examples": { + "Get route": { + "$ref": "./examples/RouteTableRouteGet.json" + } + } + }, + "put": { + "tags": [ + "Routes" + ], + "operationId": "Routes_CreateOrUpdate", + "description": "Creates or updates a route in the specified route table.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeTableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route table." + }, + { + "name": "routeName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route." + }, + { + "name": "routeParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Route" + }, + "description": "Parameters supplied to the create or update route operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Route resource.", + "schema": { + "$ref": "#/definitions/Route" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Route resource.", + "schema": { + "$ref": "#/definitions/Route" + } + } + }, + "x-ms-examples": { + "Create route": { + "$ref": "./examples/RouteTableRouteCreate.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/routeTables/{routeTableName}/routes": { + "get": { + "tags": [ + "Routes" + ], + "operationId": "Routes_List", + "description": "Gets all routes in a route table.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "routeTableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the route table." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of Route resources.", + "schema": { + "$ref": "#/definitions/RouteListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List routes": { + "$ref": "./examples/RouteTableRouteList.json" + } + } + } + } + }, + "definitions": { + "RoutePropertiesFormat": { + "properties": { + "addressPrefix": { + "type": "string", + "description": "The destination CIDR to which the route applies." + }, + "nextHopType": { + "$ref": "#/definitions/RouteNextHopType", + "description": "The type of Azure hop the packet should be sent to." + }, + "nextHopIpAddress": { + "type": "string", + "description": "The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "required": [ + "nextHopType" + ], + "description": "Route resource." + }, + "Route": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RoutePropertiesFormat", + "description": "Properties of the route." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Route resource." + }, + "RouteTablePropertiesFormat": { + "properties": { + "routes": { + "type": "array", + "items": { + "$ref": "#/definitions/Route" + }, + "description": "Collection of routes contained within a route table." + }, + "subnets": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./virtualNetwork.json#/definitions/Subnet" + }, + "description": "A collection of references to subnets." + }, + "disableBgpRoutePropagation": { + "type": "boolean", + "description": "Gets or sets whether to disable the routes learned by BGP on that route table. True means disable." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Route Table resource." + }, + "RouteTable": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RouteTablePropertiesFormat", + "description": "Properties of the route table." + }, + "etag": { + "type": "string", + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Route table resource." + }, + "RouteTableListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RouteTable" + }, + "description": "Gets a list of route tables in a resource group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for the ListRouteTable API service call." + }, + "RouteListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Route" + }, + "description": "Gets a list of routes in a resource group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for the ListRoute API service call." + }, + "RouteNextHopType": { + "type": "string", + "description": "The type of Azure hop the packet should be sent to.", + "enum": [ + "VirtualNetworkGateway", + "VnetLocal", + "Internet", + "VirtualAppliance", + "None" + ], + "x-ms-enum": { + "name": "RouteNextHopType", + "modelAsString": true + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/serviceCommunity.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/serviceCommunity.json new file mode 100644 index 000000000000..3d3913e0c9ed --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/serviceCommunity.json @@ -0,0 +1,152 @@ +{ + "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-06-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.Network/bgpServiceCommunities": { + "get": { + "tags": [ + "BgpServiceCommunities" + ], + "operationId": "BgpServiceCommunities_List", + "x-ms-examples": { + "ServiceCommunityList": { + "$ref": "./examples/ServiceCommunityList.json" + } + }, + "description": "Gets all the available bgp service communities.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of BgpServiceCommunity resources.", + "schema": { + "$ref": "#/definitions/BgpServiceCommunityListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "BGPCommunity": { + "properties": { + "serviceSupportedRegion": { + "type": "string", + "description": "The region which the service support. e.g. For O365, region is Global." + }, + "communityName": { + "type": "string", + "description": "The name of the bgp community. e.g. Skype." + }, + "communityValue": { + "type": "string", + "description": "The value of the bgp community. For more information: https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing." + }, + "communityPrefixes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The prefixes that the bgp community contains." + }, + "isAuthorizedToUse": { + "type": "boolean", + "description": "Customer is authorized to use bgp community or not." + }, + "serviceGroup": { + "type": "string", + "description": "The service group of the bgp community contains." + } + }, + "description": "Contains bgp community information offered in Service Community resources." + }, + "BgpServiceCommunityPropertiesFormat": { + "properties": { + "serviceName": { + "type": "string", + "description": "The name of the bgp community. e.g. Skype." + }, + "bgpCommunities": { + "type": "array", + "items": { + "$ref": "#/definitions/BGPCommunity" + }, + "description": "Get a list of bgp communities." + } + }, + "description": "Properties of Service Community." + }, + "BgpServiceCommunity": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BgpServiceCommunityPropertiesFormat", + "description": "Properties of the BGP service community." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Service Community Properties." + }, + "BgpServiceCommunityListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/BgpServiceCommunity" + }, + "description": "A list of service community resources." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for the ListServiceCommunity API service call." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/serviceEndpointPolicy.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/serviceEndpointPolicy.json new file mode 100644 index 000000000000..fc91cb6f1e64 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/serviceEndpointPolicy.json @@ -0,0 +1,681 @@ +{ + "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-06-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/serviceEndpointPolicies/{serviceEndpointPolicyName}": { + "delete": { + "tags": [ + "ServiceEndpointPolicies" + ], + "operationId": "ServiceEndpointPolicies_Delete", + "description": "Deletes the specified service endpoint policy.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "serviceEndpointPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the service endpoint policy." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + }, + "204": { + "description": "Request successful. Resource does not exist." + } + }, + "x-ms-examples": { + "Delete service endpoint policy": { + "$ref": "./examples/ServiceEndpointPolicyDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "ServiceEndpointPolicies" + ], + "operationId": "ServiceEndpointPolicies_Get", + "description": "Gets the specified service Endpoint Policies in a specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "serviceEndpointPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the service endpoint policy." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ServiceEndpointPolicy resource.", + "schema": { + "$ref": "#/definitions/ServiceEndpointPolicy" + } + } + }, + "x-ms-examples": { + "Get service endPoint Policy": { + "$ref": "./examples/ServiceEndpointPolicyGet.json" + } + } + }, + "put": { + "tags": [ + "ServiceEndpointPolicies" + ], + "operationId": "ServiceEndpointPolicies_CreateOrUpdate", + "description": "Creates or updates a service Endpoint Policies.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "serviceEndpointPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the service endpoint policy." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceEndpointPolicy" + }, + "description": "Parameters supplied to the create or update service endpoint policy operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting ServiceEndpointPolicy resource.", + "schema": { + "$ref": "#/definitions/ServiceEndpointPolicy" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting ServiceEndpointPolicy resource.", + "schema": { + "$ref": "#/definitions/ServiceEndpointPolicy" + } + } + }, + "x-ms-examples": { + "Create service endpoint policy": { + "$ref": "./examples/ServiceEndpointPolicyCreate.json" + }, + "Create service endpoint policy with definition": { + "$ref": "./examples/ServiceEndpointPolicyCreateWithDefinition.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "ServiceEndpointPolicies" + ], + "operationId": "ServiceEndpointPolicies_Update", + "description": "Updates service Endpoint Policies.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "serviceEndpointPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the service endpoint policy." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update service endpoint policy tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting ServiceEndpointPolicy resource.", + "schema": { + "$ref": "#/definitions/ServiceEndpointPolicy" + } + } + }, + "x-ms-examples": { + "Update service endpoint policy tags": { + "$ref": "./examples/ServiceEndpointPolicyUpdateTags.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ServiceEndpointPolicies": { + "get": { + "tags": [ + "ServiceEndpointPolicies" + ], + "operationId": "ServiceEndpointPolicies_List", + "description": "Gets all the service endpoint policies in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of ServiceEndpointPolicy resources.", + "schema": { + "$ref": "#/definitions/ServiceEndpointPolicyListResult" + } + } + }, + "x-ms-examples": { + "List all service endpoint policy": { + "$ref": "./examples/ServiceEndpointPolicyListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies": { + "get": { + "tags": [ + "ServiceEndpointPolicies" + ], + "operationId": "ServiceEndpointPolicies_ListByResourceGroup", + "description": "Gets all service endpoint Policies in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of ServiceEndpointPolicy resources.", + "schema": { + "$ref": "#/definitions/ServiceEndpointPolicyListResult" + } + } + }, + "x-ms-examples": { + "List resource group service endpoint policies": { + "$ref": "./examples/ServiceEndpointPolicyList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}": { + "delete": { + "tags": [ + "ServiceEndpointPolicyDefinitions" + ], + "operationId": "ServiceEndpointPolicyDefinitions_Delete", + "description": "Deletes the specified ServiceEndpoint policy definitions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "serviceEndpointPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Service Endpoint Policy." + }, + { + "name": "serviceEndpointPolicyDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the service endpoint policy definition." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request successful. Resource does not exist." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete service endpoint policy definitions from service endpoint policy": { + "$ref": "./examples/ServiceEndpointPolicyDefinitionDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "serviceEndpointPolicyDefinitions" + ], + "operationId": "ServiceEndpointPolicyDefinitions_Get", + "description": "Get the specified service endpoint policy definitions from service endpoint policy.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "serviceEndpointPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the service endpoint policy name." + }, + { + "name": "serviceEndpointPolicyDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the service endpoint policy definition name." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting ServiceEndpointPolicyDefinition resource.", + "schema": { + "$ref": "#/definitions/ServiceEndpointPolicyDefinition" + } + } + }, + "x-ms-examples": { + "Get service endpoint definition in service endpoint policy": { + "$ref": "./examples/ServiceEndpointPolicyDefinitionGet.json" + } + } + }, + "put": { + "tags": [ + "serviceEndpointPolicyDefinitions" + ], + "operationId": "ServiceEndpointPolicyDefinitions_CreateOrUpdate", + "description": "Creates or updates a service endpoint policy definition in the specified service endpoint policy.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "serviceEndpointPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the service endpoint policy." + }, + { + "name": "serviceEndpointPolicyDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the service endpoint policy definition name." + }, + { + "name": "ServiceEndpointPolicyDefinitions", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceEndpointPolicyDefinition" + }, + "description": "Parameters supplied to the create or update service endpoint policy operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting ServiceEndpointPolicyDefinition resource.", + "schema": { + "$ref": "#/definitions/ServiceEndpointPolicyDefinition" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting ServiceEndpointPolicyDefinition resource.", + "schema": { + "$ref": "#/definitions/ServiceEndpointPolicyDefinition" + } + } + }, + "x-ms-examples": { + "Create service endpoint policy definition": { + "$ref": "./examples/ServiceEndpointPolicyDefinitionCreate.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/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions": { + "get": { + "tags": [ + "ServiceEndpointPolicyDefinitions" + ], + "operationId": "ServiceEndpointPolicyDefinitions_ListByResourceGroup", + "description": "Gets all service endpoint policy definitions in a service end point policy.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "serviceEndpointPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the service endpoint policy name." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of ServiceEndpointPolicyDefinition resources.", + "schema": { + "$ref": "#/definitions/ServiceEndpointPolicyDefinitionListResult" + } + } + }, + "x-ms-examples": { + "List service endpoint definitions in service end point policy": { + "$ref": "./examples/ServiceEndpointPolicyDefinitionList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ServiceEndpointPolicyDefinitionPropertiesFormat": { + "properties": { + "description": { + "type": "string", + "description": "A description for this rule. Restricted to 140 chars." + }, + "service": { + "type": "string", + "description": "Service endpoint name." + }, + "serviceResources": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of service resources." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the service end point policy definition. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Service Endpoint policy definition resource." + }, + "ServiceEndpointPolicyDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ServiceEndpointPolicyDefinitionPropertiesFormat", + "description": "Properties of the service endpoint policy definition." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Service Endpoint policy definitions." + }, + "ServiceEndpointPolicyDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceEndpointPolicyDefinition" + }, + "description": "The service endpoint policy definition in a service endpoint policy." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListServiceEndpointPolicyDefinition API service call. Retrieves all service endpoint policy definition that belongs to a service endpoint policy." + }, + "ServiceEndpointPolicyPropertiesFormat": { + "properties": { + "serviceEndpointPolicyDefinitions": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceEndpointPolicyDefinition" + }, + "description": "A collection of service endpoint policy definitions of the service endpoint policy." + }, + "subnets": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./virtualNetwork.json#/definitions/Subnet" + }, + "description": "A collection of references to subnets." + }, + "resourceGuid": { + "type": "string", + "readOnly": true, + "description": "The resource GUID property of the service endpoint policy resource." + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioning state of the service endpoint policy. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Service Endpoint Policy resource." + }, + "ServiceEndpointPolicy": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ServiceEndpointPolicyPropertiesFormat", + "description": "Properties of the service end point policy." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Service End point policy resource." + }, + "ServiceEndpointPolicyListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceEndpointPolicy" + }, + "description": "A list of ServiceEndpointPolicy resources." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListServiceEndpointPolicies API service call." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/serviceTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/serviceTags.json new file mode 100644 index 000000000000..3226c2ec5f4e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/serviceTags.json @@ -0,0 +1,160 @@ +{ + "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-06-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.Network/locations/{location}/serviceTags": { + "get": { + "operationId": "ServiceTags_List", + "description": "Gets a list of service tag information resources.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location that will be used as a reference for version (not as a filter based on location, you will get the list of service tags with prefix details across all regions but limited to the cloud that your subscription belongs to)." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns a list of service tag information resources.", + "schema": { + "$ref": "#/definitions/ServiceTagsListResult" + } + } + }, + "x-ms-examples": { + "Get list of service tags": { + "$ref": "./examples/ServiceTagsList.json" + } + } + } + } + }, + "definitions": { + "ServiceTagsListResult": { + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the cloud." + }, + "id": { + "type": "string", + "readOnly": true, + "description": "The ID of the cloud." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The azure resource type." + }, + "changeNumber": { + "type": "string", + "readOnly": true, + "description": "The iteration number." + }, + "cloud": { + "type": "string", + "readOnly": true, + "description": "The name of the cloud." + }, + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceTagInformation" + }, + "readOnly": true, + "description": "The list of service tag information resources." + } + }, + "description": "Response for the ListServiceTags API service call." + }, + "ServiceTagInformation": { + "properties": { + "properties": { + "$ref": "#/definitions/ServiceTagInformationPropertiesFormat", + "readOnly": true, + "description": "Properties of the service tag information." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of service tag." + }, + "id": { + "type": "string", + "readOnly": true, + "description": "The ID of service tag." + } + }, + "description": "The service tag information." + }, + "ServiceTagInformationPropertiesFormat": { + "properties": { + "changeNumber": { + "type": "string", + "readOnly": true, + "description": "The iteration number of service tag." + }, + "region": { + "type": "string", + "readOnly": true, + "description": "The region of service tag." + }, + "systemService": { + "type": "string", + "readOnly": true, + "description": "The name of system service." + }, + "addressPrefixes": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true, + "description": "The list of IP address prefixes." + } + }, + "description": "Properties of the service tag information." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/usage.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/usage.json new file mode 100644 index 000000000000..61ba514702db --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/usage.json @@ -0,0 +1,154 @@ +{ + "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-06-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.Network/locations/{location}/usages": { + "get": { + "tags": [ + "Usages" + ], + "operationId": "Usages_List", + "description": "List network usages for a subscription.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location where resource usage is queried.", + "pattern": "^[-\\w\\._ ]+$" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of Usage resources.", + "schema": { + "$ref": "#/definitions/UsagesListResult" + } + } + }, + "x-ms-examples": { + "List usages": { + "$ref": "./examples/UsageList.json" + }, + "List usages spaced location": { + "$ref": "./examples/UsageListSpacedLocation.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "UsageName": { + "properties": { + "value": { + "type": "string", + "description": "A string describing the resource name." + }, + "localizedValue": { + "type": "string", + "description": "A localized string describing the resource name." + } + }, + "description": "The usage names." + }, + "Usage": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Resource identifier." + }, + "unit": { + "type": "string", + "description": "An enum describing the unit of measurement.", + "enum": [ + "Count" + ], + "x-ms-enum": { + "name": "UsageUnit", + "modelAsString": true + } + }, + "currentValue": { + "type": "integer", + "format": "int64", + "description": "The current value of the usage." + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "The limit of usage." + }, + "name": { + "$ref": "#/definitions/UsageName", + "description": "The name of the type of usage." + } + }, + "required": [ + "unit", + "currentValue", + "limit", + "name" + ], + "description": "Describes network resource usage." + }, + "UsagesListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Usage" + }, + "description": "The list network resource usages." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of results." + } + }, + "description": "The list usages operation response." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/virtualNetwork.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/virtualNetwork.json new file mode 100644 index 000000000000..af0b13dfc3e6 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/virtualNetwork.json @@ -0,0 +1,1793 @@ +{ + "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-06-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/virtualNetworks/{virtualNetworkName}": { + "delete": { + "tags": [ + "VirtualNetworks" + ], + "operationId": "VirtualNetworks_Delete", + "description": "Deletes the specified virtual network.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Delete successful." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Delete virtual network": { + "$ref": "./examples/VirtualNetworkDelete.json" + } + } + }, + "get": { + "tags": [ + "VirtualNetworks" + ], + "operationId": "VirtualNetworks_Get", + "description": "Gets the specified virtual network by resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting VirtualNetwork resource.", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + } + }, + "x-ms-examples": { + "Get virtual network": { + "$ref": "./examples/VirtualNetworkGet.json" + }, + "Get virtual network with a delegated subnet": { + "$ref": "./examples/VirtualNetworkGetWithSubnetDelegation.json" + }, + "Get virtual network with service association links": { + "$ref": "./examples/VirtualNetworkGetWithServiceAssociationLink.json" + } + } + }, + "put": { + "tags": [ + "VirtualNetworks" + ], + "operationId": "VirtualNetworks_CreateOrUpdate", + "description": "Creates or updates a virtual network in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetwork" + }, + "description": "Parameters supplied to the create or update virtual network operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting VirtualNetwork resource.", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting VirtualNetwork resource.", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create virtual network": { + "$ref": "./examples/VirtualNetworkCreate.json" + }, + "Create virtual network with subnet": { + "$ref": "./examples/VirtualNetworkCreateSubnet.json" + }, + "Create virtual network with subnet containing address prefixes": { + "$ref": "./examples/VirtualNetworkCreateSubnetWithAddressPrefixes.json" + }, + "Create virtual network with service endpoints": { + "$ref": "./examples/VirtualNetworkCreateServiceEndpoints.json" + }, + "Create virtual network with service endpoints and service endpoint policy": { + "$ref": "./examples/VirtualNetworkCreateServiceEndpointPolicy.json" + }, + "Create virtual network with delegated subnets": { + "$ref": "./examples/VirtualNetworkCreateSubnetWithDelegation.json" + } + } + }, + "patch": { + "tags": [ + "VirtualNetworks" + ], + "operationId": "VirtualNetworks_UpdateTags", + "description": "Updates a virtual network tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update virtual network tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting VirtualNetwork resource.", + "schema": { + "$ref": "#/definitions/VirtualNetwork" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update virtual network tags": { + "$ref": "./examples/VirtualNetworkUpdateTags.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks": { + "get": { + "tags": [ + "VirtualNetworks" + ], + "operationId": "VirtualNetworks_ListAll", + "description": "Gets all virtual networks in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of VirtualNetwork resources.", + "schema": { + "$ref": "#/definitions/VirtualNetworkListResult" + } + } + }, + "x-ms-examples": { + "List all virtual networks": { + "$ref": "./examples/VirtualNetworkListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks": { + "get": { + "tags": [ + "VirtualNetworks" + ], + "operationId": "VirtualNetworks_List", + "description": "Gets all virtual networks in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of VirtualNetwork resources.", + "schema": { + "$ref": "#/definitions/VirtualNetworkListResult" + } + } + }, + "x-ms-examples": { + "List virtual networks in resource group": { + "$ref": "./examples/VirtualNetworkList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}": { + "delete": { + "tags": [ + "Subnets" + ], + "operationId": "Subnets_Delete", + "description": "Deletes the specified subnet.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "name": "subnetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the subnet." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "Delete subnet": { + "$ref": "./examples/SubnetDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "Subnets" + ], + "operationId": "Subnets_Get", + "description": "Gets the specified subnet by virtual network and resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "name": "subnetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the subnet." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting Subnet resource.", + "schema": { + "$ref": "#/definitions/Subnet" + } + } + }, + "x-ms-examples": { + "Get subnet": { + "$ref": "./examples/SubnetGet.json" + }, + "Get subnet with a delegation": { + "$ref": "./examples/SubnetGetWithDelegation.json" + } + } + }, + "put": { + "tags": [ + "Subnets" + ], + "operationId": "Subnets_CreateOrUpdate", + "description": "Creates or updates a subnet in the specified virtual network.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "name": "subnetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the subnet." + }, + { + "name": "subnetParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Subnet" + }, + "description": "Parameters supplied to the create or update subnet operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Subnet resource.", + "schema": { + "$ref": "#/definitions/Subnet" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Subnet resource.", + "schema": { + "$ref": "#/definitions/Subnet" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create subnet": { + "$ref": "./examples/SubnetCreate.json" + }, + "Create subnet with service endpoints": { + "$ref": "./examples/SubnetCreateServiceEndpoint.json" + }, + "Create subnet with a delegation": { + "$ref": "./examples/SubnetCreateWithDelegation.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/PrepareNetworkPolicies": { + "post": { + "operationId": "Subnets_PrepareNetworkPolicies", + "description": "Prepares a subnet by applying network intent policies.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "name": "subnetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the subnet." + }, + { + "name": "prepareNetworkPoliciesRequestParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrepareNetworkPoliciesRequest" + }, + "description": "Parameters supplied to prepare subnet by applying network intent policies." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Preparing subnet by applying network intent policies is successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Prepare Network Policies": { + "$ref": "./examples/SubnetPrepareNetworkPolicies.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/UnprepareNetworkPolicies": { + "post": { + "operationId": "Subnets_UnprepareNetworkPolicies", + "description": "Unprepares a subnet by removing network intent policies.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "name": "subnetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the subnet." + }, + { + "name": "unprepareNetworkPoliciesRequestParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UnprepareNetworkPoliciesRequest" + }, + "description": "Parameters supplied to unprepare subnet to remove network intent policies." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Unpreparing subnet by removing network intent policies is successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Unprepare Network Policies": { + "$ref": "./examples/SubnetUnprepareNetworkPolicies.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/ResourceNavigationLinks": { + "get": { + "operationId": "ResourceNavigationLinks_List", + "description": "Gets a list of resource navigation links for a subnet.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "name": "subnetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the subnet." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of resource navigation links for the subnet.", + "schema": { + "$ref": "#/definitions/ResourceNavigationLinksListResult" + } + } + }, + "x-ms-examples": { + "Get Resource Navigation Links": { + "$ref": "./examples/VirtualNetworkGetResourceNavigationLinks.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/ServiceAssociationLinks": { + "get": { + "operationId": "ServiceAssociationLinks_List", + "description": "Gets a list of service association links for a subnet.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "name": "subnetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the subnet." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of service association links for the subnet.", + "schema": { + "$ref": "#/definitions/ServiceAssociationLinksListResult" + } + } + }, + "x-ms-examples": { + "Get Service Association Links": { + "$ref": "./examples/VirtualNetworkGetServiceAssociationLinks.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets": { + "get": { + "tags": [ + "Subnets" + ], + "operationId": "Subnets_List", + "description": "Gets all subnets in a virtual network.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of Subnet resources.", + "schema": { + "$ref": "#/definitions/SubnetListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List subnets": { + "$ref": "./examples/SubnetList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}": { + "delete": { + "tags": [ + "VirtualNetworkPeerings" + ], + "operationId": "VirtualNetworkPeerings_Delete", + "description": "Deletes the specified virtual network peering.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "name": "virtualNetworkPeeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network peering." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "204": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "Delete peering": { + "$ref": "./examples/VirtualNetworkPeeringDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "VirtualNetworkPeerings" + ], + "operationId": "VirtualNetworkPeerings_Get", + "description": "Gets the specified virtual network peering.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "name": "virtualNetworkPeeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network peering." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting VirtualNetworkPeering resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkPeering" + } + } + }, + "x-ms-examples": { + "Get peering": { + "$ref": "./examples/VirtualNetworkPeeringGet.json" + } + } + }, + "put": { + "tags": [ + "VirtualNetworkPeerings" + ], + "operationId": "VirtualNetworkPeerings_CreateOrUpdate", + "description": "Creates or updates a peering in the specified virtual network.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "name": "virtualNetworkPeeringName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the peering." + }, + { + "name": "VirtualNetworkPeeringParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkPeering" + }, + "description": "Parameters supplied to the create or update virtual network peering operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting VirtualNetworkPeering resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkPeering" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting VirtualNetworkPeering resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkPeering" + } + } + }, + "x-ms-examples": { + "Create peering": { + "$ref": "./examples/VirtualNetworkPeeringCreate.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/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings": { + "get": { + "tags": [ + "VirtualNetworkPeerings" + ], + "operationId": "VirtualNetworkPeerings_List", + "description": "Gets all virtual network peerings in a virtual network.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of VirtualNetworkPeering resources.", + "schema": { + "$ref": "#/definitions/VirtualNetworkPeeringListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List peerings": { + "$ref": "./examples/VirtualNetworkPeeringList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/CheckIPAddressAvailability": { + "get": { + "operationId": "VirtualNetworks_CheckIPAddressAvailability", + "description": "Checks whether a private IP address is available for use.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "name": "ipAddress", + "in": "query", + "required": true, + "type": "string", + "description": "The private IP address to be verified." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Private IP address availability and list of other free addresses if the requested one is not available.", + "schema": { + "$ref": "#/definitions/IPAddressAvailabilityResult" + } + } + }, + "x-ms-examples": { + "Check IP address availability": { + "$ref": "./examples/VirtualNetworkCheckIPAddressAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/usages": { + "get": { + "operationId": "VirtualNetworks_ListUsage", + "description": "Lists usage stats.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Usage stats for vnet.", + "schema": { + "$ref": "#/definitions/VirtualNetworkListUsageResult" + } + } + }, + "x-ms-examples": { + "VnetGetUsage": { + "$ref": "./examples/VirtualNetworkListUsage.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ServiceAssociationLinkPropertiesFormat": { + "properties": { + "linkedResourceType": { + "type": "string", + "description": "Resource type of the linked resource." + }, + "link": { + "type": "string", + "description": "Link to the external resource." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Provisioning state of the ServiceAssociationLink resource." + }, + "allowDelete": { + "type": "boolean", + "description": "If true, the resource can be deleted." + }, + "locations": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of locations." + } + }, + "description": "Properties of ServiceAssociationLink." + }, + "ServiceAssociationLink": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ServiceAssociationLinkPropertiesFormat", + "description": "Resource navigation link properties format." + }, + "name": { + "type": "string", + "description": "Name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "description": "Resource type." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "ServiceAssociationLink resource." + }, + "ResourceNavigationLinkFormat": { + "properties": { + "linkedResourceType": { + "type": "string", + "description": "Resource type of the linked resource." + }, + "link": { + "type": "string", + "description": "Link to the external resource." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Provisioning state of the ResourceNavigationLink resource." + } + }, + "description": "Properties of ResourceNavigationLink." + }, + "ResourceNavigationLink": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ResourceNavigationLinkFormat", + "description": "Resource navigation link properties format." + }, + "name": { + "type": "string", + "description": "Name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Resource navigation link identifier." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "ResourceNavigationLink resource." + }, + "ServiceDelegationPropertiesFormat": { + "properties": { + "serviceName": { + "type": "string", + "description": "The name of the service to whom the subnet should be delegated (e.g. Microsoft.Sql/servers)." + }, + "actions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Describes the actions permitted to the service upon delegation." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource." + } + }, + "description": "Properties of a service delegation." + }, + "Delegation": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ServiceDelegationPropertiesFormat", + "description": "Properties of the subnet." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a subnet. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Details the service to which the subnet is delegated." + }, + "SubnetPropertiesFormat": { + "properties": { + "addressPrefix": { + "type": "string", + "description": "The address prefix for the subnet." + }, + "addressPrefixes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of address prefixes for the subnet." + }, + "networkSecurityGroup": { + "$ref": "./networkSecurityGroup.json#/definitions/NetworkSecurityGroup", + "description": "The reference of the NetworkSecurityGroup resource." + }, + "routeTable": { + "$ref": "./routeTable.json#/definitions/RouteTable", + "description": "The reference of the RouteTable resource." + }, + "natGateway": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Nat gateway associated with this subnet." + }, + "serviceEndpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceEndpointPropertiesFormat" + }, + "description": "An array of service endpoints." + }, + "serviceEndpointPolicies": { + "type": "array", + "items": { + "$ref": "./serviceEndpointPolicy.json#/definitions/ServiceEndpointPolicy" + }, + "description": "An array of service endpoint policies." + }, + "privateEndpoints": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./privateEndpoint.json#/definitions/PrivateEndpoint" + }, + "description": "An array of references to private endpoints." + }, + "ipConfigurations": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./networkInterface.json#/definitions/IPConfiguration" + }, + "description": "Gets an array of references to the network interface IP configurations using subnet." + }, + "ipConfigurationProfiles": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./networkProfile.json#/definitions/IPConfigurationProfile" + }, + "description": "Array of IP configuration profiles which reference this subnet." + }, + "resourceNavigationLinks": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceNavigationLink" + }, + "description": "Gets an array of references to the external resources using subnet." + }, + "serviceAssociationLinks": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceAssociationLink" + }, + "description": "Gets an array of references to services injecting into this subnet." + }, + "delegations": { + "type": "array", + "items": { + "$ref": "#/definitions/Delegation" + }, + "description": "Gets an array of references to the delegations on the subnet." + }, + "purpose": { + "type": "string", + "readOnly": true, + "description": "A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the resource." + }, + "privateEndpointNetworkPolicies": { + "type": "string", + "description": "Enable or Disable apply network policies on private end point in the subnet." + }, + "privateLinkServiceNetworkPolicies": { + "type": "string", + "description": "Enable or Disable apply network policies on private link service in the subnet." + } + }, + "description": "Properties of the subnet." + }, + "ServiceEndpointPropertiesFormat": { + "properties": { + "service": { + "type": "string", + "description": "The type of the endpoint service." + }, + "locations": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of locations." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the resource." + } + }, + "description": "The service endpoint properties." + }, + "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." + }, + "remoteVirtualNetwork": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference of the remote virtual network. The remote virtual network can be in the same or different region (preview). See here to register for the preview and learn more (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering)." + }, + "remoteAddressSpace": { + "$ref": "#/definitions/AddressSpace", + "description": "The reference of 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": "VirtualNetworkPeeringState", + "modelAsString": true + } + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the resource." + } + }, + "description": "Properties of the virtual network peering." + }, + "Subnet": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SubnetPropertiesFormat", + "description": "Properties of the subnet." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Subnet in a virtual network resource." + }, + "VirtualNetworkPeering": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualNetworkPeeringPropertiesFormat", + "description": "Properties of the virtual network peering." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Peerings in a virtual network resource." + }, + "SubnetListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Subnet" + }, + "description": "The subnets in a virtual network." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListSubnets API service callRetrieves all subnet that belongs to a virtual network." + }, + "ResourceNavigationLinksListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceNavigationLink" + }, + "description": "The resource navigation links in a subnet." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ResourceNavigationLinks_List operation." + }, + "ServiceAssociationLinksListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceAssociationLink" + }, + "description": "The service association links in a subnet." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ServiceAssociationLinks_List operation." + }, + "VirtualNetworkPeeringListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkPeering" + }, + "description": "The peerings in a virtual network." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListSubnets API service call. Retrieves all subnets that belong to a virtual network." + }, + "VirtualNetworkPropertiesFormat": { + "properties": { + "addressSpace": { + "$ref": "#/definitions/AddressSpace", + "description": "The AddressSpace that contains an array of IP address ranges that can be used by subnets." + }, + "dhcpOptions": { + "$ref": "#/definitions/DhcpOptions", + "description": "The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network." + }, + "subnets": { + "type": "array", + "items": { + "$ref": "#/definitions/Subnet" + }, + "description": "A list of subnets in a Virtual Network." + }, + "virtualNetworkPeerings": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkPeering" + }, + "description": "A list of peerings in a Virtual Network." + }, + "resourceGuid": { + "type": "string", + "description": "The resourceGuid property of the Virtual Network resource." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + }, + "enableDdosProtection": { + "type": "boolean", + "default": false, + "description": "Indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource." + }, + "enableVmProtection": { + "type": "boolean", + "default": false, + "description": "Indicates if VM protection is enabled for all the subnets in the virtual network." + }, + "ddosProtectionPlan": { + "$ref": "./network.json#/definitions/SubResource", + "default": null, + "description": "The DDoS protection plan associated with the virtual network." + } + }, + "description": "Properties of the virtual network." + }, + "VirtualNetwork": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualNetworkPropertiesFormat", + "description": "Properties of the virtual network." + }, + "etag": { + "type": "string", + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Virtual Network resource." + }, + "VirtualNetworkListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetwork" + }, + "description": "Gets a list of VirtualNetwork resources in a resource group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for the ListVirtualNetworks API service call." + }, + "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." + }, + "DhcpOptions": { + "properties": { + "dnsServers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of DNS servers IP addresses." + } + }, + "description": "DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options." + }, + "IPAddressAvailabilityResult": { + "properties": { + "available": { + "type": "boolean", + "description": "Private IP address availability." + }, + "availableIPAddresses": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Contains other available private IP addresses if the asked for address is taken." + } + }, + "description": "Response for CheckIPAddressAvailability API service call." + }, + "VirtualNetworkListUsageResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/VirtualNetworkUsage" + }, + "description": "VirtualNetwork usage stats." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for the virtual networks GetUsage API service call." + }, + "VirtualNetworkUsage": { + "properties": { + "currentValue": { + "type": "number", + "format": "double", + "readOnly": true, + "description": "Indicates number of IPs used from the Subnet." + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Subnet identifier." + }, + "limit": { + "type": "number", + "format": "double", + "readOnly": true, + "description": "Indicates the size of the subnet." + }, + "name": { + "$ref": "#/definitions/VirtualNetworkUsageName", + "readOnly": true, + "description": "The name containing common and localized value for usage." + }, + "unit": { + "type": "string", + "readOnly": true, + "description": "Usage units. Returns 'Count'." + } + }, + "description": "Usage details for subnet." + }, + "VirtualNetworkUsageName": { + "properties": { + "localizedValue": { + "type": "string", + "readOnly": true, + "description": "Localized subnet size and usage string." + }, + "value": { + "type": "string", + "readOnly": true, + "description": "Subnet size and usage string." + } + }, + "description": "Usage strings container." + }, + "PrepareNetworkPoliciesRequest": { + "properties": { + "serviceName": { + "type": "string", + "description": "The name of the service for which subnet is being prepared for." + }, + "networkIntentPolicyConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkIntentPolicyConfiguration" + }, + "description": "A list of NetworkIntentPolicyConfiguration." + } + }, + "description": "Details of PrepareNetworkPolicies for Subnet." + }, + "UnprepareNetworkPoliciesRequest": { + "properties": { + "serviceName": { + "type": "string", + "description": "The name of the service for which subnet is being unprepared for." + } + }, + "description": "Details of UnprepareNetworkPolicies for Subnet." + }, + "NetworkIntentPolicyConfiguration": { + "properties": { + "networkIntentPolicyName": { + "type": "string", + "description": "The name of the Network Intent Policy for storing in target subscription." + }, + "sourceNetworkIntentPolicy": { + "$ref": "#/definitions/NetworkIntentPolicy", + "description": "Source network intent policy." + } + }, + "description": "Details of NetworkIntentPolicyConfiguration for PrepareNetworkPoliciesRequest." + }, + "NetworkIntentPolicy": { + "properties": { + "etag": { + "type": "string", + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Network Intent Policy resource." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/virtualNetworkGateway.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/virtualNetworkGateway.json new file mode 100644 index 000000000000..4bfe0e9e0847 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/virtualNetworkGateway.json @@ -0,0 +1,3003 @@ +{ + "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-06-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/virtualNetworkGateways/{virtualNetworkGatewayName}": { + "put": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_CreateOrUpdate", + "description": "Creates or updates a virtual network gateway in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkGateway" + }, + "description": "Parameters supplied to create or update virtual network gateway operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting VirtualNetworkGateway resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkGateway" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting VirtualNetworkGateway resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkGateway" + } + } + }, + "x-ms-examples": { + "UpdateVirtualNetworkGateway": { + "$ref": "./examples/VirtualNetworkGatewayUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "get": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_Get", + "description": "Gets the specified virtual network gateway by resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a VirtualNetworkGateway resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkGateway" + } + } + }, + "x-ms-examples": { + "GetVirtualNetworkGateway": { + "$ref": "./examples/VirtualNetworkGatewayGet.json" + } + } + }, + "delete": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_Delete", + "description": "Deletes the specified virtual network gateway.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "DeleteVirtualNetworkGateway": { + "$ref": "./examples/VirtualNetworkGatewayDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "patch": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_UpdateTags", + "description": "Updates a virtual network gateway tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update virtual network gateway tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Update successful. The operation returns the resulting VirtualNetworkGateway resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkGateway" + } + } + }, + "x-ms-examples": { + "UpdateVirtualNetworkGatewayTags": { + "$ref": "./examples/VirtualNetworkGatewayUpdateTags.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/virtualNetworkGateways": { + "get": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_List", + "description": "Gets all virtual network gateways by resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of VirtualNetworkGateway resources.", + "schema": { + "$ref": "#/definitions/VirtualNetworkGatewayListResult" + } + } + }, + "x-ms-examples": { + "ListVirtualNetworkGatewaysinResourceGroup": { + "$ref": "./examples/VirtualNetworkGatewayList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections": { + "get": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_ListConnections", + "description": "Gets all the connections in a virtual network gateway.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of VirtualNetworkGatewayConnection resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkGatewayListConnectionsResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "VirtualNetworkGatewaysListConnections": { + "$ref": "./examples/VirtualNetworkGatewaysListConnections.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_Reset", + "description": "Resets the primary of the virtual network gateway in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "name": "gatewayVip", + "in": "query", + "required": false, + "type": "string", + "description": "Virtual network gateway vip address supplied to the begin reset of the active-active feature enabled gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Request successful. The operation reset the primary of the virtual network gateway.", + "schema": { + "$ref": "#/definitions/VirtualNetworkGateway" + } + } + }, + "x-ms-examples": { + "ResetVirtualNetworkGateway": { + "$ref": "./examples/VirtualNetworkGatewayReset.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/resetvpnclientsharedkey": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_ResetVpnClientSharedKey", + "description": "Resets the VPN client shared key of the virtual network gateway in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation reset the vpn client shared key of the virtual network gateway." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "ResetVpnClientSharedKey": { + "$ref": "./examples/VirtualNetworkGatewayResetVpnClientSharedKey.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_Generatevpnclientpackage", + "description": "Generates VPN client package for P2S client of the virtual network gateway in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VpnClientParameters" + }, + "description": "Parameters supplied to the generate virtual network gateway VPN client package operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "VPN client package URL.", + "schema": { + "type": "string" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "GenerateVPNClientPackage": { + "$ref": "./examples/VirtualNetworkGatewayGenerateVpnClientPackage.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_GenerateVpnProfile", + "description": "Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for IKEV2 and radius based authentication.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VpnClientParameters" + }, + "description": "Parameters supplied to the generate virtual network gateway VPN client package operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "VPN profile package URL.", + "schema": { + "type": "string" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "GenerateVirtualNetworkGatewayVPNProfile": { + "$ref": "./examples/VirtualNetworkGatewayGenerateVpnProfile.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_GetVpnProfilePackageUrl", + "description": "Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The profile needs to be generated first using generateVpnProfile.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "VPN profile package URL.", + "schema": { + "type": "string" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "GetVirtualNetworkGatewayVPNProfilePackageURL": { + "$ref": "./examples/VirtualNetworkGatewayGetVpnProfilePackageUrl.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_GetBgpPeerStatus", + "description": "The GetBgpPeerStatus operation retrieves the status of all BGP peers.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "name": "peer", + "in": "query", + "required": false, + "type": "string", + "description": "The IP address of the peer to retrieve the status of." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "List of BGP peer statuses.", + "schema": { + "$ref": "#/definitions/BgpPeerStatusListResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "GetVirtualNetworkGatewayBGPPeerStatus": { + "$ref": "./examples/VirtualNetworkGatewayGetBGPPeerStatus.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/supportedvpndevices": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_SupportedVpnDevices", + "description": "Gets a xml format representation for supported vpn devices.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Xml format representation for supported vpn devices.", + "schema": { + "type": "string" + } + } + }, + "x-ms-examples": { + "ListVirtualNetworkGatewaySupportedVPNDevices": { + "$ref": "./examples/VirtualNetworkGatewaySupportedVpnDevice.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_GetLearnedRoutes", + "description": "This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from BGP peers.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "List of advertised BGP routes.", + "schema": { + "$ref": "#/definitions/GatewayRouteListResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "GetVirtualNetworkGatewayLearnedRoutes": { + "$ref": "./examples/VirtualNetworkGatewayLearnedRoutes.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_GetAdvertisedRoutes", + "description": "This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "name": "peer", + "in": "query", + "required": true, + "type": "string", + "description": "The IP address of the peer." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "List of learned BGP routes.", + "schema": { + "$ref": "#/definitions/GatewayRouteListResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "GetVirtualNetworkGatewayAdvertisedRoutes": { + "$ref": "./examples/VirtualNetworkGatewayGetAdvertisedRoutes.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/setvpnclientipsecparameters": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_SetVpnclientIpsecParameters", + "description": "The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "name": "vpnclientIpsecParams", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VpnClientIPsecParameters" + }, + "description": "Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Request successful. The operation sets the specified vpnclient ipsec parameters for P2S client of the virtual network gateway.", + "schema": { + "$ref": "#/definitions/VpnClientIPsecParameters" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Set VirtualNetworkGateway VpnClientIpsecParameters": { + "$ref": "./examples/VirtualNetworkGatewaySetVpnClientIpsecParameters.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnclientipsecparameters": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_GetVpnclientIpsecParameters", + "description": "The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The virtual network gateway name." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the set vpnclient ipsec parameters for P2S client of VirtualNetworkGateway resource.", + "schema": { + "$ref": "#/definitions/VpnClientIPsecParameters" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Get VirtualNetworkGateway VpnClientIpsecParameters": { + "$ref": "./examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/vpndeviceconfigurationscript": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_VpnDeviceConfigurationScript", + "description": "Gets a xml format representation for vpn device configuration script.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway connection for which the configuration script is generated." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VpnDeviceScriptParameters" + }, + "description": "Parameters supplied to the generate vpn device script operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Xml format representation for vpn device configuration script.", + "schema": { + "type": "string" + } + } + }, + "x-ms-examples": { + "GetVPNDeviceConfigurationScript": { + "$ref": "./examples/VirtualNetworkGatewayVpnDeviceConfigurationScript.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}": { + "put": { + "tags": [ + "VirtualNetworkGatewayConnections" + ], + "operationId": "VirtualNetworkGatewayConnections_CreateOrUpdate", + "description": "Creates or updates a virtual network gateway connection in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway connection." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkGatewayConnection" + }, + "description": "Parameters supplied to the create or update virtual network gateway connection operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting VirtualNetworkGatewayConnection resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkGatewayConnection" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting VirtualNetworkGatewayConnection resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkGatewayConnection" + } + } + }, + "x-ms-examples": { + "CreateVirtualNetworkGatewayConnection_S2S": { + "$ref": "./examples/VirtualNetworkGatewayConnectionCreate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "get": { + "tags": [ + "VirtualNetworkGatewayConnections" + ], + "operationId": "VirtualNetworkGatewayConnections_Get", + "description": "Gets the specified virtual network gateway connection by resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting VirtualNetworkGatewayConnection resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkGatewayConnection" + } + } + }, + "x-ms-examples": { + "GetVirtualNetworkGatewayConnection": { + "$ref": "./examples/VirtualNetworkGatewayConnectionGet.json" + } + } + }, + "delete": { + "tags": [ + "VirtualNetworkGatewayConnections" + ], + "operationId": "VirtualNetworkGatewayConnections_Delete", + "description": "Deletes the specified virtual network Gateway connection.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "DeleteVirtualNetworkGatewayConnection": { + "$ref": "./examples/VirtualNetworkGatewayConnectionDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "patch": { + "tags": [ + "VirtualNetworkGatewayConnections" + ], + "operationId": "VirtualNetworkGatewayConnections_UpdateTags", + "description": "Updates a virtual network gateway connection tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway connection." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update virtual network gateway connection tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "200": { + "description": "Update successful. The operation returns the resulting VirtualNetworkGatewayConnection resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkGatewayConnection" + } + } + }, + "x-ms-examples": { + "UpdateVirtualNetworkGatewayConnectionTags": { + "$ref": "./examples/VirtualNetworkGatewayConnectionUpdateTags.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/connections/{virtualNetworkGatewayConnectionName}/sharedkey": { + "put": { + "tags": [ + "VirtualNetworkGatewayConnections" + ], + "operationId": "VirtualNetworkGatewayConnections_SetSharedKey", + "description": "The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The virtual network gateway connection name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConnectionSharedKey" + }, + "description": "Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Request successful. The operation returns the resulting ConnectionSharedKey resource.", + "schema": { + "$ref": "#/definitions/ConnectionSharedKey" + } + }, + "200": { + "description": "Request successful. The operation returns the resulting ConnectionSharedKey resource.", + "schema": { + "$ref": "#/definitions/ConnectionSharedKey" + } + } + }, + "x-ms-examples": { + "SetVirtualNetworkGatewayConnectionSharedKey": { + "$ref": "./examples/VirtualNetworkGatewayConnectionSetSharedKey.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "get": { + "tags": [ + "VirtualNetworkGatewayConnections" + ], + "operationId": "VirtualNetworkGatewayConnections_GetSharedKey", + "description": "The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual network gateway connection shared key through Network resource provider.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The virtual network gateway connection shared key name." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of VirtualNetworkGatewayConnection resources.", + "schema": { + "$ref": "#/definitions/ConnectionSharedKey" + } + } + }, + "x-ms-examples": { + "GetVirtualNetworkGatewayConnectionSharedKey": { + "$ref": "./examples/VirtualNetworkGatewayConnectionGetSharedKey.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections": { + "get": { + "tags": [ + "VirtualNetworkGatewayConnections" + ], + "operationId": "VirtualNetworkGatewayConnections_List", + "description": "The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections created.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation resets the virtual network gateway connection shared key.", + "schema": { + "$ref": "#/definitions/VirtualNetworkGatewayConnectionListResult" + } + } + }, + "x-ms-examples": { + "ListVirtualNetworkGatewayConnectionsinResourceGroup": { + "$ref": "./examples/VirtualNetworkGatewayConnectionsList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset": { + "post": { + "tags": [ + "VirtualNetworkGatewayConnections" + ], + "operationId": "VirtualNetworkGatewayConnections_ResetSharedKey", + "description": "The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The virtual network gateway connection reset shared key Name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConnectionResetSharedKey" + }, + "description": "Parameters supplied to the begin reset virtual network gateway connection shared key operation through network resource provider." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation sets the virtual network gateway connection shared key.", + "schema": { + "$ref": "#/definitions/ConnectionResetSharedKey" + } + }, + "202": { + "description": "Request successful. The operation sets the virtual network gateway connection shared key." + } + }, + "x-ms-examples": { + "ResetVirtualNetworkGatewayConnectionSharedKey": { + "$ref": "./examples/VirtualNetworkGatewayConnectionResetSharedKey.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}": { + "put": { + "tags": [ + "LocalNetworkGateways" + ], + "operationId": "LocalNetworkGateways_CreateOrUpdate", + "description": "Creates or updates a local network gateway in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "localNetworkGatewayName", + "in": "path", + "required": true, + "minLength": 1, + "type": "string", + "description": "The name of the local network gateway." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LocalNetworkGateway" + }, + "description": "Parameters supplied to the create or update local network gateway operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Create successful. The operation returns the resulting LocalNetworkGateway resource.", + "schema": { + "$ref": "#/definitions/LocalNetworkGateway" + } + }, + "200": { + "description": "Update successful. The operation returns the resulting LocalNetworkGateway resource.", + "schema": { + "$ref": "#/definitions/LocalNetworkGateway" + } + } + }, + "x-ms-examples": { + "CreateLocalNetworkGateway": { + "$ref": "./examples/LocalNetworkGatewayCreate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "get": { + "tags": [ + "LocalNetworkGateways" + ], + "operationId": "LocalNetworkGateways_Get", + "description": "Gets the specified local network gateway in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "localNetworkGatewayName", + "in": "path", + "required": true, + "minLength": 1, + "type": "string", + "description": "The name of the local network gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting LocalNetworkGateway resource.", + "schema": { + "$ref": "#/definitions/LocalNetworkGateway" + } + } + }, + "x-ms-examples": { + "GetLocalNetworkGateway": { + "$ref": "./examples/LocalNetworkGatewayGet.json" + } + } + }, + "delete": { + "tags": [ + "LocalNetworkGateways" + ], + "operationId": "LocalNetworkGateways_Delete", + "description": "Deletes the specified local network gateway.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "localNetworkGatewayName", + "in": "path", + "required": true, + "minLength": 1, + "type": "string", + "description": "The name of the local network gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Delete successful." + }, + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "DeleteLocalNetworkGateway": { + "$ref": "./examples/LocalNetworkGatewayDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "patch": { + "tags": [ + "LocalNetworkGateways" + ], + "operationId": "LocalNetworkGateways_UpdateTags", + "description": "Updates a local network gateway tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "localNetworkGatewayName", + "in": "path", + "required": true, + "minLength": 1, + "type": "string", + "description": "The name of the local network gateway." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update local network gateway tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting LocalNetworkGateway resource.", + "schema": { + "$ref": "#/definitions/LocalNetworkGateway" + } + } + }, + "x-ms-examples": { + "UpdateLocalNetworkGatewayTags": { + "$ref": "./examples/LocalNetworkGatewayUpdateTags.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways": { + "get": { + "tags": [ + "LocalNetworkGateways" + ], + "operationId": "LocalNetworkGateways_List", + "description": "Gets all the local network gateways in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of LocalNetworkGateway resources.", + "schema": { + "$ref": "#/definitions/LocalNetworkGatewayListResult" + } + } + }, + "x-ms-examples": { + "ListLocalNetworkGateways": { + "$ref": "./examples/LocalNetworkGatewayList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getVpnClientConnectionHealth": { + "post": { + "tags": [ + "VirtualNetworkGateways" + ], + "operationId": "VirtualNetworkGateways_GetVpnclientConnectionHealth", + "description": "Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkGatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "List of VPN client connection health details.", + "schema": { + "$ref": "#/definitions/VpnClientConnectionHealthDetailListResult" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "GetVirtualNetworkGatewayVpnclientConnectionHealth": { + "$ref": "./examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + } + }, + "definitions": { + "VirtualNetworkGatewayIPConfigurationPropertiesFormat": { + "properties": { + "privateIPAllocationMethod": { + "$ref": "./network.json#/definitions/IPAllocationMethod", + "description": "The private IP address allocation method." + }, + "subnet": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference of the subnet resource." + }, + "publicIPAddress": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference of the public IP resource." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of VirtualNetworkGatewayIPConfiguration." + }, + "VirtualNetworkGatewayIPConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualNetworkGatewayIPConfigurationPropertiesFormat", + "description": "Properties of the virtual network gateway ip configuration." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "IP configuration for virtual network gateway." + }, + "VirtualNetworkGatewayPropertiesFormat": { + "properties": { + "ipConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkGatewayIPConfiguration" + }, + "description": "IP configurations for virtual network gateway." + }, + "gatewayType": { + "type": "string", + "description": "The type of this virtual network gateway.", + "enum": [ + "Vpn", + "ExpressRoute" + ], + "x-ms-enum": { + "name": "VirtualNetworkGatewayType", + "modelAsString": true + } + }, + "vpnType": { + "type": "string", + "description": "The type of this virtual network gateway.", + "enum": [ + "PolicyBased", + "RouteBased" + ], + "x-ms-enum": { + "name": "VpnType", + "modelAsString": true + } + }, + "enableBgp": { + "type": "boolean", + "description": "Whether BGP is enabled for this virtual network gateway or not." + }, + "activeActive": { + "type": "boolean", + "description": "ActiveActive flag." + }, + "gatewayDefaultSite": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference of the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting." + }, + "sku": { + "$ref": "#/definitions/VirtualNetworkGatewaySku", + "description": "The reference of the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway." + }, + "vpnClientConfiguration": { + "$ref": "#/definitions/VpnClientConfiguration", + "description": "The reference of the VpnClientConfiguration resource which represents the P2S VpnClient configurations." + }, + "bgpSettings": { + "$ref": "#/definitions/BgpSettings", + "description": "Virtual network gateway's BGP speaker settings." + }, + "customRoutes": { + "$ref": "./virtualNetwork.json#/definitions/AddressSpace", + "description": "The reference of the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient." + }, + "resourceGuid": { + "type": "string", + "description": "The resource GUID property of the VirtualNetworkGateway resource." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the VirtualNetworkGateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "VirtualNetworkGateway properties." + }, + "VpnClientRootCertificatePropertiesFormat": { + "properties": { + "publicCertData": { + "type": "string", + "description": "The certificate public data." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the VPN client root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "required": [ + "publicCertData" + ], + "description": "Properties of SSL certificates of application gateway." + }, + "VpnClientRootCertificate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VpnClientRootCertificatePropertiesFormat", + "description": "Properties of the vpn client root certificate." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "required": [ + "properties" + ], + "description": "VPN client root certificate of virtual network gateway." + }, + "VpnClientRevokedCertificatePropertiesFormat": { + "properties": { + "thumbprint": { + "type": "string", + "description": "The revoked VPN client certificate thumbprint." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the VPN client revoked certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of the revoked VPN client certificate of virtual network gateway." + }, + "VpnClientRevokedCertificate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VpnClientRevokedCertificatePropertiesFormat", + "description": "Properties of the vpn client revoked certificate." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "VPN client revoked certificate of virtual network gateway." + }, + "VpnClientConfiguration": { + "properties": { + "vpnClientAddressPool": { + "$ref": "./virtualNetwork.json#/definitions/AddressSpace", + "description": "The reference of the address space resource which represents Address space for P2S VpnClient." + }, + "vpnClientRootCertificates": { + "type": "array", + "items": { + "$ref": "#/definitions/VpnClientRootCertificate" + }, + "description": "VpnClientRootCertificate for virtual network gateway." + }, + "vpnClientRevokedCertificates": { + "type": "array", + "items": { + "$ref": "#/definitions/VpnClientRevokedCertificate" + }, + "description": "VpnClientRevokedCertificate for Virtual network gateway." + }, + "vpnClientProtocols": { + "type": "array", + "items": { + "type": "string", + "description": "VPN client protocol enabled for the virtual network gateway.", + "enum": [ + "IkeV2", + "SSTP", + "OpenVPN" + ], + "x-ms-enum": { + "name": "VpnClientProtocol", + "modelAsString": true + } + }, + "description": "VpnClientProtocols for Virtual network gateway." + }, + "vpnClientIpsecPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/IpsecPolicy" + }, + "description": "VpnClientIpsecPolicies for virtual network gateway P2S client." + }, + "radiusServerAddress": { + "type": "string", + "description": "The radius server address property of the VirtualNetworkGateway resource for vpn client connection." + }, + "radiusServerSecret": { + "type": "string", + "description": "The radius secret property of the VirtualNetworkGateway resource for vpn client connection." + }, + "aadTenant": { + "type": "string", + "description": "The AADTenant property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication." + }, + "aadAudience": { + "type": "string", + "description": "The AADAudience property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication." + }, + "aadIssuer": { + "type": "string", + "description": "The AADIssuer property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication." + } + }, + "description": "VpnClientConfiguration for P2S client." + }, + "VirtualNetworkGatewaySku": { + "properties": { + "name": { + "type": "string", + "description": "Gateway SKU name.", + "enum": [ + "Basic", + "HighPerformance", + "Standard", + "UltraPerformance", + "VpnGw1", + "VpnGw2", + "VpnGw3", + "VpnGw1AZ", + "VpnGw2AZ", + "VpnGw3AZ", + "ErGw1AZ", + "ErGw2AZ", + "ErGw3AZ" + ], + "x-ms-enum": { + "name": "VirtualNetworkGatewaySkuName", + "modelAsString": true + } + }, + "tier": { + "type": "string", + "description": "Gateway SKU tier.", + "enum": [ + "Basic", + "HighPerformance", + "Standard", + "UltraPerformance", + "VpnGw1", + "VpnGw2", + "VpnGw3", + "VpnGw1AZ", + "VpnGw2AZ", + "VpnGw3AZ", + "ErGw1AZ", + "ErGw2AZ", + "ErGw3AZ" + ], + "x-ms-enum": { + "name": "VirtualNetworkGatewaySkuTier", + "modelAsString": true + } + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The capacity." + } + }, + "description": "VirtualNetworkGatewaySku details." + }, + "BgpSettings": { + "properties": { + "asn": { + "type": "integer", + "format": "int64", + "description": "The BGP speaker's ASN." + }, + "bgpPeeringAddress": { + "type": "string", + "description": "The BGP peering address and BGP identifier of this BGP speaker." + }, + "peerWeight": { + "type": "integer", + "format": "int32", + "description": "The weight added to routes learned from this BGP speaker." + } + }, + "description": "BGP settings details." + }, + "BgpPeerStatus": { + "properties": { + "localAddress": { + "type": "string", + "readOnly": true, + "description": "The virtual network gateway's local address." + }, + "neighbor": { + "type": "string", + "readOnly": true, + "description": "The remote BGP peer." + }, + "asn": { + "type": "integer", + "format": "int32", + "readOnly": true, + "description": "The autonomous system number of the remote BGP peer." + }, + "state": { + "type": "string", + "readOnly": true, + "description": "The BGP peer state.", + "enum": [ + "Unknown", + "Stopped", + "Idle", + "Connecting", + "Connected" + ], + "x-ms-enum": { + "name": "BgpPeerState", + "modelAsString": true + } + }, + "connectedDuration": { + "type": "string", + "readOnly": true, + "description": "For how long the peering has been up." + }, + "routesReceived": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The number of routes learned from this peer." + }, + "messagesSent": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The number of BGP messages sent." + }, + "messagesReceived": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The number of BGP messages received." + } + }, + "description": "BGP peer status details." + }, + "GatewayRoute": { + "properties": { + "localAddress": { + "type": "string", + "readOnly": true, + "description": "The gateway's local address." + }, + "network": { + "type": "string", + "readOnly": true, + "description": "The route's network prefix." + }, + "nextHop": { + "type": "string", + "readOnly": true, + "description": "The route's next hop." + }, + "sourcePeer": { + "type": "string", + "readOnly": true, + "description": "The peer this route was learned from." + }, + "origin": { + "type": "string", + "readOnly": true, + "description": "The source this route was learned from." + }, + "asPath": { + "type": "string", + "readOnly": true, + "description": "The route's AS path sequence." + }, + "weight": { + "type": "integer", + "format": "int32", + "readOnly": true, + "description": "The route's weight." + } + }, + "description": "Gateway routing details." + }, + "VirtualNetworkGateway": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualNetworkGatewayPropertiesFormat", + "description": "Properties of the virtual network gateway." + }, + "etag": { + "type": "string", + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "required": [ + "properties" + ], + "description": "A common class for general resource information." + }, + "VpnClientParameters": { + "properties": { + "processorArchitecture": { + "type": "string", + "description": "VPN client Processor Architecture.", + "enum": [ + "Amd64", + "X86" + ], + "x-ms-enum": { + "name": "ProcessorArchitecture", + "modelAsString": true + } + }, + "authenticationMethod": { + "$ref": "./network.json#/definitions/AuthenticationMethod", + "description": "VPN client authentication method." + }, + "radiusServerAuthCertificate": { + "type": "string", + "description": "The public certificate data for the radius server authentication certificate as a Base-64 encoded string. Required only if external radius authentication has been configured with EAPTLS authentication." + }, + "clientRootCertificates": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of client root certificates public certificate data encoded as Base-64 strings. Optional parameter for external radius based authentication with EAPTLS." + } + }, + "description": "Vpn Client Parameters for package generation." + }, + "VirtualNetworkGatewayListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkGateway" + }, + "description": "Gets a list of VirtualNetworkGateway resources that exists in a resource group." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for the ListVirtualNetworkGateways API service call." + }, + "BgpPeerStatusListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/BgpPeerStatus" + }, + "description": "List of BGP peers." + } + }, + "description": "Response for list BGP peer status API service call." + }, + "GatewayRouteListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GatewayRoute" + }, + "description": "List of gateway routes." + } + }, + "description": "List of virtual network gateway routes." + }, + "TunnelConnectionHealth": { + "properties": { + "tunnel": { + "readOnly": true, + "type": "string", + "description": "Tunnel name." + }, + "connectionStatus": { + "readOnly": true, + "$ref": "#/definitions/VirtualNetworkGatewayConnectionStatus", + "description": "Virtual Network Gateway connection status." + }, + "ingressBytesTransferred": { + "readOnly": true, + "type": "integer", + "format": "int64", + "description": "The Ingress Bytes Transferred in this connection." + }, + "egressBytesTransferred": { + "readOnly": true, + "type": "integer", + "format": "int64", + "description": "The Egress Bytes Transferred in this connection." + }, + "lastConnectionEstablishedUtcTime": { + "readOnly": true, + "type": "string", + "description": "The time at which connection was established in Utc format." + } + }, + "description": "VirtualNetworkGatewayConnection properties." + }, + "VirtualNetworkGatewayConnectionPropertiesFormat": { + "properties": { + "authorizationKey": { + "type": "string", + "description": "The authorizationKey." + }, + "virtualNetworkGateway1": { + "$ref": "#/definitions/VirtualNetworkGateway", + "description": "The reference to virtual network gateway resource." + }, + "virtualNetworkGateway2": { + "$ref": "#/definitions/VirtualNetworkGateway", + "description": "The reference to virtual network gateway resource." + }, + "localNetworkGateway2": { + "$ref": "#/definitions/LocalNetworkGateway", + "description": "The reference to local network gateway resource." + }, + "connectionType": { + "$ref": "#/definitions/VirtualNetworkGatewayConnectionType", + "description": "Gateway connection type." + }, + "connectionProtocol": { + "$ref": "#/definitions/ConnectionProtocol", + "description": "Connection protocol used for this connection." + }, + "routingWeight": { + "type": "integer", + "format": "int32", + "description": "The routing weight." + }, + "sharedKey": { + "type": "string", + "description": "The IPSec shared key." + }, + "connectionStatus": { + "readOnly": true, + "$ref": "#/definitions/VirtualNetworkGatewayConnectionStatus", + "description": "Virtual Network Gateway connection status." + }, + "tunnelConnectionStatus": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TunnelConnectionHealth" + }, + "description": "Collection of all tunnels' connection health status." + }, + "egressBytesTransferred": { + "readOnly": true, + "type": "integer", + "format": "int64", + "description": "The egress bytes transferred in this connection." + }, + "ingressBytesTransferred": { + "readOnly": true, + "type": "integer", + "format": "int64", + "description": "The ingress bytes transferred in this connection." + }, + "peer": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference to peerings resource." + }, + "enableBgp": { + "type": "boolean", + "description": "EnableBgp flag." + }, + "usePolicyBasedTrafficSelectors": { + "type": "boolean", + "description": "Enable policy-based traffic selectors." + }, + "ipsecPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/IpsecPolicy" + }, + "description": "The IPSec Policies to be considered by this connection." + }, + "resourceGuid": { + "type": "string", + "description": "The resource GUID property of the VirtualNetworkGatewayConnection resource." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + }, + "expressRouteGatewayBypass": { + "type": "boolean", + "description": "Bypass ExpressRoute Gateway for data forwarding." + } + }, + "required": [ + "virtualNetworkGateway1", + "connectionType" + ], + "description": "VirtualNetworkGatewayConnection properties." + }, + "VirtualNetworkGatewayConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualNetworkGatewayConnectionPropertiesFormat", + "description": "Properties of the virtual network gateway connection." + }, + "etag": { + "type": "string", + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "required": [ + "properties" + ], + "description": "A common class for general resource information." + }, + "VirtualNetworkGatewayConnectionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkGatewayConnection" + }, + "description": "Gets a list of VirtualNetworkGatewayConnection resources that exists in a resource group." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for the ListVirtualNetworkGatewayConnections API service call." + }, + "ConnectionResetSharedKey": { + "properties": { + "keyLength": { + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 128, + "description": "The virtual network connection reset shared key length, should between 1 and 128." + } + }, + "required": [ + "keyLength" + ], + "description": "The virtual network connection reset shared key." + }, + "ConnectionSharedKey": { + "properties": { + "value": { + "type": "string", + "description": "The virtual network connection shared key value." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "required": [ + "value" + ], + "description": "Response for GetConnectionSharedKey API service call." + }, + "IpsecPolicy": { + "properties": { + "saLifeTimeSeconds": { + "type": "integer", + "format": "int32", + "description": "The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel." + }, + "saDataSizeKilobytes": { + "type": "integer", + "format": "int32", + "description": "The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN tunnel." + }, + "ipsecEncryption": { + "$ref": "#/definitions/IpsecEncryption", + "description": "The IPSec encryption algorithm (IKE phase 1)." + }, + "ipsecIntegrity": { + "$ref": "#/definitions/IpsecIntegrity", + "description": "The IPSec integrity algorithm (IKE phase 1)." + }, + "ikeEncryption": { + "$ref": "#/definitions/IkeEncryption", + "description": "The IKE encryption algorithm (IKE phase 2)." + }, + "ikeIntegrity": { + "$ref": "#/definitions/IkeIntegrity", + "description": "The IKE integrity algorithm (IKE phase 2)." + }, + "dhGroup": { + "$ref": "#/definitions/DhGroup", + "description": "The DH Group used in IKE Phase 1 for initial SA." + }, + "pfsGroup": { + "$ref": "#/definitions/PfsGroup", + "description": "The Pfs Group used in IKE Phase 2 for new child SA." + } + }, + "required": [ + "saLifeTimeSeconds", + "saDataSizeKilobytes", + "ipsecEncryption", + "ipsecIntegrity", + "ikeEncryption", + "ikeIntegrity", + "dhGroup", + "pfsGroup" + ], + "description": "An IPSec Policy configuration for a virtual network gateway connection." + }, + "ConnectionProtocol": { + "type": "string", + "description": "Gateway connection protocol.", + "enum": [ + "IKEv2", + "IKEv1" + ], + "x-ms-enum": { + "name": "VirtualNetworkGatewayConnectionProtocol", + "modelAsString": true + } + }, + "VpnClientIPsecParameters": { + "properties": { + "saLifeTimeSeconds": { + "type": "integer", + "format": "int32", + "description": "The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client." + }, + "saDataSizeKilobytes": { + "type": "integer", + "format": "int32", + "description": "The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client.." + }, + "ipsecEncryption": { + "$ref": "#/definitions/IpsecEncryption", + "description": "The IPSec encryption algorithm (IKE phase 1)." + }, + "ipsecIntegrity": { + "$ref": "#/definitions/IpsecIntegrity", + "description": "The IPSec integrity algorithm (IKE phase 1)." + }, + "ikeEncryption": { + "$ref": "#/definitions/IkeEncryption", + "description": "The IKE encryption algorithm (IKE phase 2)." + }, + "ikeIntegrity": { + "$ref": "#/definitions/IkeIntegrity", + "description": "The IKE integrity algorithm (IKE phase 2)." + }, + "dhGroup": { + "$ref": "#/definitions/DhGroup", + "description": "The DH Group used in IKE Phase 1 for initial SA." + }, + "pfsGroup": { + "$ref": "#/definitions/PfsGroup", + "description": "The Pfs Group used in IKE Phase 2 for new child SA." + } + }, + "required": [ + "saLifeTimeSeconds", + "saDataSizeKilobytes", + "ipsecEncryption", + "ipsecIntegrity", + "ikeEncryption", + "ikeIntegrity", + "dhGroup", + "pfsGroup" + ], + "description": "An IPSec parameters for a virtual network gateway P2S connection." + }, + "LocalNetworkGatewayPropertiesFormat": { + "properties": { + "localNetworkAddressSpace": { + "$ref": "./virtualNetwork.json#/definitions/AddressSpace", + "description": "Local network site address space." + }, + "gatewayIpAddress": { + "type": "string", + "description": "IP address of local network gateway." + }, + "bgpSettings": { + "$ref": "#/definitions/BgpSettings", + "description": "Local network gateway's BGP speaker settings." + }, + "resourceGuid": { + "type": "string", + "description": "The resource GUID property of the LocalNetworkGateway resource." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the LocalNetworkGateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "LocalNetworkGateway properties." + }, + "LocalNetworkGateway": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LocalNetworkGatewayPropertiesFormat", + "description": "Properties of the local network gateway." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "required": [ + "properties" + ], + "description": "A common class for general resource information." + }, + "LocalNetworkGatewayListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/LocalNetworkGateway" + }, + "description": "A list of local network gateways that exists in a resource group." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListLocalNetworkGateways API service call." + }, + "VirtualNetworkConnectionGatewayReference": { + "properties": { + "id": { + "type": "string", + "description": "The ID of VirtualNetworkGateway or LocalNetworkGateway resource." + } + }, + "required": [ + "id" + ], + "description": "A reference to VirtualNetworkGateway or LocalNetworkGateway resource." + }, + "VirtualNetworkGatewayConnectionListEntityPropertiesFormat": { + "properties": { + "authorizationKey": { + "type": "string", + "description": "The authorizationKey." + }, + "virtualNetworkGateway1": { + "$ref": "#/definitions/VirtualNetworkConnectionGatewayReference", + "description": "The reference to virtual network gateway resource." + }, + "virtualNetworkGateway2": { + "$ref": "#/definitions/VirtualNetworkConnectionGatewayReference", + "description": "The reference to virtual network gateway resource." + }, + "localNetworkGateway2": { + "$ref": "#/definitions/VirtualNetworkConnectionGatewayReference", + "description": "The reference to local network gateway resource." + }, + "connectionType": { + "$ref": "#/definitions/VirtualNetworkGatewayConnectionType", + "description": "Gateway connection type." + }, + "connectionProtocol": { + "$ref": "#/definitions/ConnectionProtocol", + "description": "Connection protocol used for this connection." + }, + "routingWeight": { + "type": "integer", + "format": "int32", + "description": "The routing weight." + }, + "sharedKey": { + "type": "string", + "description": "The IPSec shared key." + }, + "connectionStatus": { + "readOnly": true, + "$ref": "#/definitions/VirtualNetworkGatewayConnectionStatus", + "description": "Virtual Network Gateway connection status." + }, + "tunnelConnectionStatus": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TunnelConnectionHealth" + }, + "description": "Collection of all tunnels' connection health status." + }, + "egressBytesTransferred": { + "readOnly": true, + "type": "integer", + "format": "int64", + "description": "The egress bytes transferred in this connection." + }, + "ingressBytesTransferred": { + "readOnly": true, + "type": "integer", + "format": "int64", + "description": "The ingress bytes transferred in this connection." + }, + "peer": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The reference to peerings resource." + }, + "enableBgp": { + "type": "boolean", + "description": "EnableBgp flag." + }, + "usePolicyBasedTrafficSelectors": { + "type": "boolean", + "description": "Enable policy-based traffic selectors." + }, + "ipsecPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/IpsecPolicy" + }, + "description": "The IPSec Policies to be considered by this connection." + }, + "resourceGuid": { + "type": "string", + "description": "The resource GUID property of the VirtualNetworkGatewayConnection resource." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + }, + "expressRouteGatewayBypass": { + "type": "boolean", + "description": "Bypass ExpressRoute Gateway for data forwarding." + } + }, + "required": [ + "virtualNetworkGateway1", + "connectionType" + ], + "description": "VirtualNetworkGatewayConnection properties." + }, + "VirtualNetworkGatewayConnectionListEntity": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualNetworkGatewayConnectionListEntityPropertiesFormat", + "description": "Properties of the virtual network gateway connection." + }, + "etag": { + "type": "string", + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "required": [ + "properties" + ], + "description": "A common class for general resource information." + }, + "VirtualNetworkGatewayListConnectionsResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkGatewayConnectionListEntity" + }, + "description": "Gets a list of VirtualNetworkGatewayConnection resources that exists in a resource group." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for the VirtualNetworkGatewayListConnections API service call." + }, + "VpnDeviceScriptParameters": { + "properties": { + "vendor": { + "type": "string", + "description": "The vendor for the vpn device." + }, + "deviceFamily": { + "type": "string", + "description": "The device family for the vpn device." + }, + "firmwareVersion": { + "type": "string", + "description": "The firmware version for the vpn device." + } + }, + "description": "Vpn device configuration script generation parameters." + }, + "DhGroup": { + "type": "string", + "description": "The DH Groups used in IKE Phase 1 for initial SA.", + "enum": [ + "None", + "DHGroup1", + "DHGroup2", + "DHGroup14", + "DHGroup2048", + "ECP256", + "ECP384", + "DHGroup24" + ], + "x-ms-enum": { + "name": "DhGroup", + "modelAsString": true + } + }, + "IkeEncryption": { + "type": "string", + "description": "The IKE encryption algorithm (IKE phase 2).", + "enum": [ + "DES", + "DES3", + "AES128", + "AES192", + "AES256", + "GCMAES256", + "GCMAES128" + ], + "x-ms-enum": { + "name": "IkeEncryption", + "modelAsString": true + } + }, + "IkeIntegrity": { + "type": "string", + "description": "The IKE integrity algorithm (IKE phase 2).", + "enum": [ + "MD5", + "SHA1", + "SHA256", + "SHA384", + "GCMAES256", + "GCMAES128" + ], + "x-ms-enum": { + "name": "IkeIntegrity", + "modelAsString": true + } + }, + "IpsecEncryption": { + "type": "string", + "description": "The IPSec encryption algorithm (IKE phase 1).", + "enum": [ + "None", + "DES", + "DES3", + "AES128", + "AES192", + "AES256", + "GCMAES128", + "GCMAES192", + "GCMAES256" + ], + "x-ms-enum": { + "name": "IpsecEncryption", + "modelAsString": true + } + }, + "IpsecIntegrity": { + "type": "string", + "description": "The IPSec integrity algorithm (IKE phase 1).", + "enum": [ + "MD5", + "SHA1", + "SHA256", + "GCMAES128", + "GCMAES192", + "GCMAES256" + ], + "x-ms-enum": { + "name": "IpsecIntegrity", + "modelAsString": true + } + }, + "PfsGroup": { + "type": "string", + "description": "The Pfs Groups used in IKE Phase 2 for new child SA.", + "enum": [ + "None", + "PFS1", + "PFS2", + "PFS2048", + "ECP256", + "ECP384", + "PFS24", + "PFS14", + "PFSMM" + ], + "x-ms-enum": { + "name": "PfsGroup", + "modelAsString": true + } + }, + "VirtualNetworkGatewayConnectionStatus": { + "type": "string", + "description": "Virtual Network Gateway connection status.", + "enum": [ + "Unknown", + "Connecting", + "Connected", + "NotConnected" + ], + "x-ms-enum": { + "name": "VirtualNetworkGatewayConnectionStatus", + "modelAsString": true + } + }, + "VirtualNetworkGatewayConnectionType": { + "type": "string", + "description": "Gateway connection type.", + "enum": [ + "IPsec", + "Vnet2Vnet", + "ExpressRoute", + "VPNClient" + ], + "x-ms-enum": { + "name": "VirtualNetworkGatewayConnectionType", + "modelAsString": true + } + }, + "VpnClientConnectionHealthDetailListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VpnClientConnectionHealthDetail" + }, + "description": "List of vpn client connection health." + } + }, + "description": "List of virtual network gateway vpn client connection health." + }, + "VpnClientConnectionHealthDetail": { + "properties": { + "vpnConnectionId": { + "type": "string", + "readOnly": true, + "description": "The vpn client Id." + }, + "vpnConnectionDuration": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The duration time of a connected vpn client." + }, + "vpnConnectionTime": { + "type": "string", + "readOnly": true, + "description": "The start time of a connected vpn client." + }, + "publicIpAddress": { + "type": "string", + "readOnly": true, + "description": "The public Ip of a connected vpn client." + }, + "privateIpAddress": { + "type": "string", + "readOnly": true, + "description": "The assigned private Ip of a connected vpn client." + }, + "vpnUserName": { + "type": "string", + "readOnly": true, + "description": "The user name of a connected vpn client." + }, + "maxBandwidth": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The max band width." + }, + "egressPacketsTransferred": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The egress packets per second." + }, + "egressBytesTransferred": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The egress bytes per second." + }, + "ingressPacketsTransferred": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The ingress packets per second." + }, + "ingressBytesTransferred": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The ingress bytes per second." + }, + "maxPacketsPerSecond": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The max packets transferred per second." + } + }, + "description": "VPN client connection health detail." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/virtualNetworkTap.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/virtualNetworkTap.json new file mode 100644 index 000000000000..6632036aea0f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/virtualNetworkTap.json @@ -0,0 +1,390 @@ +{ + "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-06-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/virtualNetworkTaps/{tapName}": { + "delete": { + "tags": [ + "VirtualNetworkTap" + ], + "operationId": "VirtualNetworkTaps_Delete", + "description": "Deletes the specified virtual network tap.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "tapName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network tap." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted. Sets 'Deleting' provisioningState until the operation completes. Returns an operation URI that can be queried to find the current state of the operation." + }, + "204": { + "description": "Request successful. Resource does not exist." + } + }, + "x-ms-examples": { + "Delete Virtual Network Tap resource": { + "$ref": "./examples/VirtualNetworkTapDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "VirtualNetworkTap" + ], + "operationId": "VirtualNetworkTaps_Get", + "description": "Gets information about the specified virtual network tap.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "tapName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of virtual network tap." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting VirtualNetworkTap resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkTap" + } + } + }, + "x-ms-examples": { + "Get Virtual Network Tap": { + "$ref": "./examples/VirtualNetworkTapGet.json" + } + } + }, + "put": { + "tags": [ + "VirtualNetworkTap" + ], + "operationId": "VirtualNetworkTaps_CreateOrUpdate", + "description": "Creates or updates a Virtual Network Tap.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "tapName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network tap." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkTap" + }, + "description": "Parameters supplied to the create or update virtual network tap operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting VirtualNetworkTap resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkTap" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting VirtualNetworkTap resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkTap" + } + } + }, + "x-ms-examples": { + "Create Virtual Network Tap": { + "$ref": "./examples/VirtualNetworkTapCreate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "VirtualNetworkTap" + ], + "operationId": "VirtualNetworkTaps_UpdateTags", + "description": "Updates an VirtualNetworkTap tags.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "tapName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the tap." + }, + { + "name": "tapParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update VirtualNetworkTap tags." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting VirtualNetworkTap resource.", + "schema": { + "$ref": "#/definitions/VirtualNetworkTap" + } + } + }, + "x-ms-examples": { + "Update virtual network tap tags": { + "$ref": "./examples/VirtualNetworkTapUpdateTags.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworkTaps": { + "get": { + "tags": [ + "VirtualNetworkTaps" + ], + "operationId": "VirtualNetworkTaps_ListAll", + "description": "Gets all the VirtualNetworkTaps in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of Virtual Network Tap resources.", + "schema": { + "$ref": "#/definitions/VirtualNetworkTapListResult" + } + } + }, + "x-ms-examples": { + "List all virtual network taps": { + "$ref": "./examples/VirtualNetworkTapListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps": { + "get": { + "tags": [ + "VirtualNetworkTaps" + ], + "operationId": "VirtualNetworkTaps_ListByResourceGroup", + "description": "Gets all the VirtualNetworkTaps in a subscription.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of Virtual Network Tap resources.", + "schema": { + "$ref": "#/definitions/VirtualNetworkTapListResult" + } + } + }, + "x-ms-examples": { + "List virtual network taps in resource group": { + "$ref": "./examples/VirtualNetworkTapList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "VirtualNetworkTap": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualNetworkTapPropertiesFormat", + "description": "Virtual Network Tap Properties." + }, + "etag": { + "type": "string", + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Virtual Network Tap resource." + }, + "VirtualNetworkTapPropertiesFormat": { + "description": "Virtual Network Tap properties.", + "properties": { + "networkInterfaceTapConfigurations": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./networkInterface.json#/definitions/NetworkInterfaceTapConfiguration", + "description": "The reference of the Network Interface." + }, + "description": "Specifies the list of resource IDs for the network interface IP configuration that needs to be tapped." + }, + "resourceGuid": { + "type": "string", + "readOnly": true, + "description": "The resourceGuid property of the virtual network tap." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the virtual network tap. Possible values are: 'Updating', 'Deleting', and 'Failed'." + }, + "destinationNetworkInterfaceIPConfiguration": { + "$ref": "./networkInterface.json#/definitions/NetworkInterfaceIPConfiguration", + "description": "The reference to the private IP Address of the collector nic that will receive the tap." + }, + "destinationLoadBalancerFrontEndIPConfiguration": { + "$ref": "./loadBalancer.json#/definitions/FrontendIPConfiguration", + "description": "The reference to the private IP address on the internal Load Balancer that will receive the tap." + }, + "destinationPort": { + "type": "integer", + "description": "The VXLAN destination port that will receive the tapped traffic." + } + } + }, + "VirtualNetworkTapListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkTap" + }, + "description": "A list of VirtualNetworkTaps in a resource group." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "description": "Response for ListVirtualNetworkTap API service call." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/virtualWan.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/virtualWan.json new file mode 100644 index 000000000000..7281c4ac4b62 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/virtualWan.json @@ -0,0 +1,3932 @@ +{ + "swagger": "2.0", + "info": { + "title": "VirtualWANAsAServiceManagementClient", + "description": "REST API for Azure VirtualWAN As a Service.", + "version": "2019-06-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/virtualWans/{VirtualWANName}": { + "get": { + "operationId": "VirtualWans_Get", + "x-ms-examples": { + "VirtualWANGet": { + "$ref": "./examples/VirtualWANGet.json" + } + }, + "description": "Retrieves the details of a VirtualWAN.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualWan." + }, + { + "name": "VirtualWANName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualWAN being retrieved." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the VirtualWAN retrieved.", + "schema": { + "$ref": "#/definitions/VirtualWAN" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + }, + "put": { + "operationId": "VirtualWans_CreateOrUpdate", + "x-ms-examples": { + "VirtualWANCreate": { + "$ref": "./examples/VirtualWANPut.json" + } + }, + "description": "Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualWan." + }, + { + "name": "VirtualWANName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualWAN being created or updated." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "WANParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualWAN" + }, + "description": "Parameters supplied to create or update VirtualWAN." + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the VirtualWAN created or updated.", + "schema": { + "$ref": "#/definitions/VirtualWAN" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting VirtualWAN resource.", + "schema": { + "$ref": "#/definitions/VirtualWAN" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "VirtualWANs" + ], + "operationId": "VirtualWans_UpdateTags", + "x-ms-examples": { + "VirtualWANUpdate": { + "$ref": "./examples/VirtualWANUpdateTags.json" + } + }, + "description": "Updates a VirtualWAN tags.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualWan." + }, + { + "name": "VirtualWANName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualWAN being updated." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "WANParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to Update VirtualWAN tags." + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the VirtualWAN updated.", + "schema": { + "$ref": "#/definitions/VirtualWAN" + } + }, + "201": { + "description": "Request received successfully. Returns the details of the VirtualWAN updated.", + "schema": { + "$ref": "#/definitions/VirtualWAN" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "VirtualWans_Delete", + "x-ms-examples": { + "VirtualWANDelete": { + "$ref": "./examples/VirtualWANDelete.json" + } + }, + "description": "Deletes a VirtualWAN.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualWan." + }, + { + "name": "VirtualWANName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualWAN being deleted." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. VirtualWAN deleted." + }, + "202": { + "description": "Request received successfully. VirtualWAN deletion is in progress; follow the Location header to poll for final outcome." + }, + "204": { + "description": "No VirtualWANs exist by the name provided." + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans": { + "get": { + "operationId": "VirtualWans_ListByResourceGroup", + "x-ms-examples": { + "VirtualWANListByResourceGroup": { + "$ref": "./examples/VirtualWANListByResourceGroup.json" + } + }, + "description": "Lists all the VirtualWANs in a resource group.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualWan." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of all the VirtualWANs in the resource group.", + "schema": { + "$ref": "#/definitions/ListVirtualWANsResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualWans": { + "get": { + "operationId": "VirtualWans_List", + "x-ms-examples": { + "VirtualWANList": { + "$ref": "./examples/VirtualWANList.json" + } + }, + "description": "Lists all the VirtualWANs in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of all the VirtualWANs in the subscription.", + "schema": { + "$ref": "#/definitions/ListVirtualWANsResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}": { + "get": { + "operationId": "VpnSites_Get", + "x-ms-examples": { + "VpnSiteGet": { + "$ref": "./examples/VpnSiteGet.json" + } + }, + "description": "Retrieves the details of a VPN site.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnSite." + }, + { + "name": "vpnSiteName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VpnSite being retrieved." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the VpnSite retrieved.", + "schema": { + "$ref": "#/definitions/VpnSite" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + }, + "put": { + "operationId": "VpnSites_CreateOrUpdate", + "x-ms-examples": { + "VpnSiteCreate": { + "$ref": "./examples/VpnSitePut.json" + } + }, + "description": "Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnSite." + }, + { + "name": "vpnSiteName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VpnSite being created or updated." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "VpnSiteParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VpnSite" + }, + "description": "Parameters supplied to create or update VpnSite." + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the VpnSite created or updated.", + "schema": { + "$ref": "#/definitions/VpnSite" + } + }, + "201": { + "description": "Request received successfully. Returns the details of the VpnSite created or updated.", + "schema": { + "$ref": "#/definitions/VpnSite" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "VpnSites" + ], + "operationId": "VpnSites_UpdateTags", + "x-ms-examples": { + "VpnSiteUpdate": { + "$ref": "./examples/VpnSiteUpdateTags.json" + } + }, + "description": "Updates VpnSite tags.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnSite." + }, + { + "name": "vpnSiteName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VpnSite being updated." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "VpnSiteParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update VpnSite tags." + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the VpnSite updated.", + "schema": { + "$ref": "#/definitions/VpnSite" + } + }, + "201": { + "description": "Request received successfully. Returns the details of the VpnSite updated.", + "schema": { + "$ref": "#/definitions/VpnSite" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "VpnSites_Delete", + "x-ms-examples": { + "VpnSiteDelete": { + "$ref": "./examples/VpnSiteDelete.json" + } + }, + "description": "Deletes a VpnSite.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnSite." + }, + { + "name": "vpnSiteName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VpnSite being deleted." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. VpnSite deleted." + }, + "202": { + "description": "Request received successfully. VpnSite deletion is in progress." + }, + "204": { + "description": "No VpnSites exist by the name provided." + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites": { + "get": { + "operationId": "VpnSites_ListByResourceGroup", + "x-ms-examples": { + "VpnSiteListByResourceGroup": { + "$ref": "./examples/VpnSiteListByResourceGroup.json" + } + }, + "description": "Lists all the vpnSites in a resource group.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnSite." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of all the vpnSites in the resource group.", + "schema": { + "$ref": "#/definitions/ListVpnSitesResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}/vpnSiteLinks/{vpnSiteLinkName}": { + "get": { + "operationId": "VpnSiteLinks_Get", + "x-ms-examples": { + "VpnSiteGet": { + "$ref": "./examples/VpnSiteLinkGet.json" + } + }, + "description": "Retrieves the details of a VPN site link.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnSite." + }, + { + "name": "vpnSiteName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VpnSite." + }, + { + "name": "vpnSiteLinkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VpnSiteLink being retrieved." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the VpnSiteLink retrieved.", + "schema": { + "$ref": "#/definitions/VpnSiteLink" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}/vpnSiteLinks": { + "get": { + "operationId": "VpnSiteLinks_ListByVpnSite", + "x-ms-examples": { + "VpnSiteLinkListByVpnSite": { + "$ref": "./examples/VpnSiteLinkListByVpnSite.json" + } + }, + "description": "Lists all the vpnSiteLinks in a resource group for a vpn site.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnSite." + }, + { + "name": "vpnSiteName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VpnSite." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of all the vpnSites in the resource group.", + "schema": { + "$ref": "#/definitions/ListVpnSiteLinksResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnSites": { + "get": { + "operationId": "VpnSites_List", + "x-ms-examples": { + "VpnSiteList": { + "$ref": "./examples/VpnSiteList.json" + } + }, + "description": "Lists all the VpnSites in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of all the VpnSites in the subscription.", + "schema": { + "$ref": "#/definitions/ListVpnSitesResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnConfiguration": { + "post": { + "operationId": "VpnSitesConfiguration_Download", + "x-ms-examples": { + "VpnSitesConfigurationDownload": { + "$ref": "./examples/VpnSitesConfigurationDownload.json" + } + }, + "description": "Gives the sas-url to download the configurations for vpn-sites in a resource group.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name." + }, + { + "name": "virtualWANName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualWAN for which configuration of all vpn-sites is needed." + }, + { + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GetVpnSitesConfigurationRequest" + }, + "description": "Parameters supplied to download vpn-sites configuration." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Follow the location header for sas-url to output blob." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously. Follow the location header for sas-url to output blob." + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/supportedSecurityProviders": { + "get": { + "operationId": "SupportedSecurityProviders", + "x-ms-examples": { + "supportedSecurityProviders": { + "$ref": "./examples/VirtualWanSupportedSecurityProviders.json" + } + }, + "description": "Gives the supported security providers for the virtual wan.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name." + }, + { + "name": "virtualWANName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualWAN for which supported security providers are needed." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the object containing supported security providers.", + "schema": { + "$ref": "#/definitions/VirtualWanSecurityProviders" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}": { + "get": { + "operationId": "VirtualHubs_Get", + "x-ms-examples": { + "VirtualHubGet": { + "$ref": "./examples/VirtualHubGet.json" + } + }, + "description": "Retrieves the details of a VirtualHub.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualHub." + }, + { + "name": "virtualHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualHub." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the VirtualHub retrieved.", + "schema": { + "$ref": "#/definitions/VirtualHub" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + }, + "put": { + "operationId": "VirtualHubs_CreateOrUpdate", + "x-ms-examples": { + "VirtualHubPut": { + "$ref": "./examples/VirtualHubPut.json" + } + }, + "description": "Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualHub." + }, + { + "name": "virtualHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualHub." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "virtualHubParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualHub" + }, + "description": "Parameters supplied to create or update VirtualHub." + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the VirtualHub created or updated.", + "schema": { + "$ref": "#/definitions/VirtualHub" + } + }, + "201": { + "description": "Request received successfully. Returns the details of the VirtualHub created or updated.", + "schema": { + "$ref": "#/definitions/VirtualHub" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "VirtualWANs" + ], + "operationId": "VirtualHubs_UpdateTags", + "x-ms-examples": { + "VirtualHubUpdate": { + "$ref": "./examples/VirtualHubUpdateTags.json" + } + }, + "description": "Updates VirtualHub tags.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualHub." + }, + { + "name": "virtualHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualHub." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "virtualHubParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update VirtualHub tags." + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the VirtualHub updated.", + "schema": { + "$ref": "#/definitions/VirtualHub" + } + }, + "201": { + "description": "Request received successfully. Returns the details of the VirtualHub updated.", + "schema": { + "$ref": "#/definitions/VirtualHub" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "VirtualHubs_Delete", + "x-ms-examples": { + "VirtualHubDelete": { + "$ref": "./examples/VirtualHubDelete.json" + } + }, + "description": "Deletes a VirtualHub.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualHub." + }, + { + "name": "virtualHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualHub." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. VirtualHub deleted." + }, + "202": { + "description": "Request received successfully. VirtualHub deletion is in progress; follow the Location header to poll for final outcome." + }, + "204": { + "description": "No VirtualHubs exist by the name provided." + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs": { + "get": { + "operationId": "VirtualHubs_ListByResourceGroup", + "x-ms-examples": { + "VirtualHubListByResourceGroup": { + "$ref": "./examples/VirtualHubListByResourceGroup.json" + } + }, + "description": "Lists all the VirtualHubs in a resource group.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualHub." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of all the VirtualHubs in the resource group.", + "schema": { + "$ref": "#/definitions/ListVirtualHubsResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualHubs": { + "get": { + "operationId": "VirtualHubs_List", + "x-ms-examples": { + "VirtualHubList": { + "$ref": "./examples/VirtualHubList.json" + } + }, + "description": "Lists all the VirtualHubs in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of all the VirtualHubs in the subscription.", + "schema": { + "$ref": "#/definitions/ListVirtualHubsResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}": { + "get": { + "operationId": "HubVirtualNetworkConnections_Get", + "x-ms-examples": { + "HubVirtualNetworkConnectionGet": { + "$ref": "./examples/HubVirtualNetworkConnectionGet.json" + } + }, + "description": "Retrieves the details of a HubVirtualNetworkConnection.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualHub." + }, + { + "name": "virtualHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualHub." + }, + { + "name": "connectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the vpn connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the HubVirtualNetworkConnection retrieved.", + "schema": { + "$ref": "#/definitions/HubVirtualNetworkConnection" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections": { + "get": { + "operationId": "HubVirtualNetworkConnections_List", + "x-ms-examples": { + "HubVirtualNetworkConnectionList": { + "$ref": "./examples/HubVirtualNetworkConnectionList.json" + } + }, + "description": "Retrieves the details of all HubVirtualNetworkConnections.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualHub." + }, + { + "name": "virtualHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualHub." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of all the HubVirtualNetworkConnections for the VirtualHub.", + "schema": { + "$ref": "#/definitions/ListHubVirtualNetworkConnectionsResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}": { + "get": { + "operationId": "VpnGateways_Get", + "x-ms-examples": { + "VpnGatewayGet": { + "$ref": "./examples/VpnGatewayGet.json" + } + }, + "description": "Retrieves the details of a virtual wan vpn gateway.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the virtual wan vpn gateway retrieved.", + "schema": { + "$ref": "#/definitions/VpnGateway" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + }, + "put": { + "operationId": "VpnGateways_CreateOrUpdate", + "x-ms-examples": { + "VpnGatewayPut": { + "$ref": "./examples/VpnGatewayPut.json" + } + }, + "description": "Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "vpnGatewayParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VpnGateway" + }, + "description": "Parameters supplied to create or Update a virtual wan vpn gateway." + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the virtual wan vpn Gateway created or updated.", + "schema": { + "$ref": "#/definitions/VpnGateway" + } + }, + "201": { + "description": "Request successful. Returns the details of the virtual wan vpn gateway retrieved.", + "schema": { + "$ref": "#/definitions/VpnGateway" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "VpnGateways" + ], + "operationId": "VpnGateways_UpdateTags", + "x-ms-examples": { + "VpnGatewayUpdate": { + "$ref": "./examples/VpnGatewayUpdateTags.json" + } + }, + "description": "Updates virtual wan vpn gateway tags.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "vpnGatewayParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update a virtual wan vpn gateway tags." + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the updated gateway.", + "schema": { + "$ref": "#/definitions/VpnGateway" + } + }, + "201": { + "description": "Request received successfully. Returns the details of the updated gateway.", + "schema": { + "$ref": "#/definitions/VpnGateway" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "VpnGateways_Delete", + "x-ms-examples": { + "VpnGatewayDelete": { + "$ref": "./examples/VpnGatewayDelete.json" + } + }, + "description": "Deletes a virtual wan vpn gateway.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Vpn Gateway deleted." + }, + "202": { + "description": "Request received successfully. Vpn Gateway deletion is in progress; follow the Location header to poll for final outcome." + }, + "204": { + "description": "No vpn gateways exist by the name provided." + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/reset": { + "post": { + "tags": [ + "VpnGateways" + ], + "operationId": "VpnGateways_Reset", + "description": "Resets the primary of the vpn gateway in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation reset the primary of the VpnGateway.", + "schema": { + "$ref": "#/definitions/VpnGateway" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "ResetVpnGateway": { + "$ref": "./examples/VpnGatewayReset.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways": { + "get": { + "operationId": "VpnGateways_ListByResourceGroup", + "x-ms-examples": { + "VpnGatewayListByResourceGroup": { + "$ref": "./examples/VpnGatewayListByResourceGroup.json" + } + }, + "description": "Lists all the VpnGateways in a resource group.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnGateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of all the VpnGateways in the resource group.", + "schema": { + "$ref": "#/definitions/ListVpnGatewaysResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways": { + "get": { + "operationId": "VpnGateways_List", + "x-ms-examples": { + "VpnGatewayListBySubscription": { + "$ref": "./examples/VpnGatewayList.json" + } + }, + "description": "Lists all the VpnGateways in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of all the VpnGateways in the subscription.", + "schema": { + "$ref": "#/definitions/ListVpnGatewaysResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}": { + "get": { + "operationId": "VpnConnections_Get", + "x-ms-examples": { + "VpnConnectionGet": { + "$ref": "./examples/VpnConnectionGet.json" + } + }, + "description": "Retrieves the details of a vpn connection.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "name": "connectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the vpn connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the vpn connection.", + "schema": { + "$ref": "#/definitions/VpnConnection" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + }, + "put": { + "operationId": "VpnConnections_CreateOrUpdate", + "x-ms-examples": { + "VpnConnectionPut": { + "$ref": "./examples/VpnConnectionPut.json" + } + }, + "description": "Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "name": "connectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "VpnConnectionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VpnConnection" + }, + "description": "Parameters supplied to create or Update a VPN Connection." + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the vpn connection created or updated.", + "schema": { + "$ref": "#/definitions/VpnConnection" + } + }, + "201": { + "description": "Request successful. Returns the details of the vpn connection created or updated.", + "schema": { + "$ref": "#/definitions/VpnConnection" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "operationId": "VpnConnections_Delete", + "x-ms-examples": { + "VpnConnectionDelete": { + "$ref": "./examples/VpnConnectionDelete.json" + } + }, + "description": "Deletes a vpn connection.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "name": "connectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Vpn Connection deleted." + }, + "202": { + "description": "Request received successfully. Vpn Connection deletion is in progress; follow the Location header to poll for final outcome." + }, + "204": { + "description": "No vpn connections exist by the name provided." + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}": { + "get": { + "operationId": "VpnSiteLinkConnections_Get", + "x-ms-examples": { + "VpnSiteLinkConnectionGet": { + "$ref": "./examples/VpnSiteLinkConnectionGet.json" + } + }, + "description": "Retrieves the details of a vpn site link connection.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "name": "connectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the vpn connection." + }, + { + "name": "linkConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the vpn connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the vpn connection.", + "schema": { + "$ref": "#/definitions/VpnSiteLinkConnection" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections": { + "get": { + "operationId": "VpnConnections_ListByVpnGateway", + "x-ms-examples": { + "VpnConnectionList": { + "$ref": "./examples/VpnConnectionList.json" + } + }, + "description": "Retrieves all vpn connections for a particular virtual wan vpn gateway.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns all Vpn connections for a virtual wan vpn gateway.", + "schema": { + "$ref": "#/definitions/ListVpnConnectionsResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections": { + "get": { + "operationId": "VpnLinkConnections_ListByVpnConnection", + "x-ms-examples": { + "VpnSiteLinkConnectionList": { + "$ref": "./examples/VpnSiteLinkConnectionList.json" + } + }, + "description": "Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "name": "connectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the vpn connection." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns all Vpn connections for a virtual wan vpn gateway.", + "schema": { + "$ref": "#/definitions/ListVpnSiteLinkConnectionsResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWanName}/p2sVpnServerConfigurations/{p2SVpnServerConfigurationName}": { + "get": { + "operationId": "P2sVpnServerConfigurations_Get", + "x-ms-examples": { + "P2SVpnServerConfigurationGet": { + "$ref": "./examples/P2SVpnServerConfigurationGet.json" + } + }, + "description": "Retrieves the details of a P2SVpnServerConfiguration.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the P2SVpnServerConfiguration." + }, + { + "name": "virtualWanName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualWan." + }, + { + "name": "p2SVpnServerConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the P2SVpnServerConfiguration." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the P2SVpnServerConfiguration.", + "schema": { + "$ref": "#/definitions/P2SVpnServerConfiguration" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + }, + "put": { + "operationId": "P2sVpnServerConfigurations_CreateOrUpdate", + "x-ms-examples": { + "P2SVpnServerConfigurationPut": { + "$ref": "./examples/P2SVpnServerConfigurationPut.json" + } + }, + "description": "Creates a P2SVpnServerConfiguration to associate with a VirtualWan if it doesn't exist else updates the existing P2SVpnServerConfiguration.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualWan." + }, + { + "name": "virtualWanName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualWan." + }, + { + "name": "p2SVpnServerConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the P2SVpnServerConfiguration." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "p2SVpnServerConfigurationParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/P2SVpnServerConfiguration" + }, + "description": "Parameters supplied to create or Update a P2SVpnServerConfiguration." + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the P2SVpnServerConfiguration created or updated.", + "schema": { + "$ref": "#/definitions/P2SVpnServerConfiguration" + } + }, + "201": { + "description": "Request successful. Returns the details of the P2SVpnServerConfiguration created or updated.", + "schema": { + "$ref": "#/definitions/P2SVpnServerConfiguration" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "operationId": "P2sVpnServerConfigurations_Delete", + "x-ms-examples": { + "P2SVpnServerConfigurationDelete": { + "$ref": "./examples/P2SVpnServerConfigurationDelete.json" + } + }, + "description": "Deletes a P2SVpnServerConfiguration.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the P2SVpnServerConfiguration." + }, + { + "name": "virtualWanName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualWan." + }, + { + "name": "p2SVpnServerConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the P2SVpnServerConfiguration." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. P2SVpnServerConfiguration deleted." + }, + "202": { + "description": "Request received successfully. P2SVpnServerConfiguration deletion is in progress; follow the Location header to poll for final outcome." + }, + "204": { + "description": "No P2SVpnServerConfigurations exist by the name provided." + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWanName}/p2sVpnServerConfigurations": { + "get": { + "operationId": "P2sVpnServerConfigurations_ListByVirtualWan", + "x-ms-examples": { + "P2SVpnServerConfigurationList": { + "$ref": "./examples/P2SVpnServerConfigurationList.json" + } + }, + "description": "Retrieves all P2SVpnServerConfigurations for a particular VirtualWan.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the VirtualWan." + }, + { + "name": "virtualWanName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VirtualWan." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns all P2SVpnServerConfigurations for a VirtualWan.", + "schema": { + "$ref": "#/definitions/ListP2SVpnServerConfigurationsResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}": { + "get": { + "operationId": "P2sVpnGateways_Get", + "x-ms-examples": { + "P2SVpnGatewayGet": { + "$ref": "./examples/P2SVpnGatewayGet.json" + } + }, + "description": "Retrieves the details of a virtual wan p2s vpn gateway.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the P2SVpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the virtual wan p2s vpn gateway retrieved.", + "schema": { + "$ref": "#/definitions/P2SVpnGateway" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + } + }, + "put": { + "operationId": "P2sVpnGateways_CreateOrUpdate", + "x-ms-examples": { + "P2SVpnGatewayPut": { + "$ref": "./examples/P2SVpnGatewayPut.json" + } + }, + "description": "Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the P2SVpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "p2SVpnGatewayParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/P2SVpnGateway" + }, + "description": "Parameters supplied to create or Update a virtual wan p2s vpn gateway." + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the virtual wan p2s vpn Gateway created or updated.", + "schema": { + "$ref": "#/definitions/P2SVpnGateway" + } + }, + "201": { + "description": "Request successful. Returns the details of the virtual wan p2s vpn gateway retrieved.", + "schema": { + "$ref": "#/definitions/P2SVpnGateway" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "P2SVpnGateways" + ], + "operationId": "P2sVpnGateways_UpdateTags", + "x-ms-examples": { + "P2SVpnGatewayUpdate": { + "$ref": "./examples/P2SVpnGatewayUpdateTags.json" + } + }, + "description": "Updates virtual wan p2s vpn gateway tags.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the P2SVpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "p2SVpnGatewayParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to update a virtual wan p2s vpn gateway tags." + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of the updated gateway.", + "schema": { + "$ref": "#/definitions/P2SVpnGateway" + } + }, + "201": { + "description": "Request received successfully. Returns the details of the updated gateway.", + "schema": { + "$ref": "#/definitions/P2SVpnGateway" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "P2sVpnGateways_Delete", + "x-ms-examples": { + "P2SVpnGatewayDelete": { + "$ref": "./examples/P2SVpnGatewayDelete.json" + } + }, + "description": "Deletes a virtual wan p2s vpn gateway.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the P2SVpnGateway." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. P2SVpnGateway deleted." + }, + "202": { + "description": "Request received successfully. P2SVpnGateway deletion is in progress; follow the Location header to poll for final outcome." + }, + "204": { + "description": "No p2s vpn gateways exist by the name provided." + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways": { + "get": { + "operationId": "P2sVpnGateways_ListByResourceGroup", + "x-ms-examples": { + "P2SVpnGatewayListByResourceGroup": { + "$ref": "./examples/P2SVpnGatewayListByResourceGroup.json" + } + }, + "description": "Lists all the P2SVpnGateways in a resource group.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource group name of the P2SVpnGateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of all the P2SVpnGateways in the resource group.", + "schema": { + "$ref": "#/definitions/ListP2SVpnGatewaysResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/p2svpnGateways": { + "get": { + "operationId": "P2sVpnGateways_List", + "x-ms-examples": { + "P2SVpnGatewayListBySubscription": { + "$ref": "./examples/P2SVpnGatewayList.json" + } + }, + "description": "Lists all the P2SVpnGateways in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. Returns the details of all the P2SVpnGateways in the subscription.", + "schema": { + "$ref": "#/definitions/ListP2SVpnGatewaysResult" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "./network.json#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/generatevpnprofile": { + "post": { + "tags": [ + "P2SVpnGateways" + ], + "operationId": "P2sVpnGateways_GenerateVpnProfile", + "description": "Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the P2SVpnGateway." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/P2SVpnProfileParameters" + }, + "description": "Parameters supplied to the generate P2SVpnGateway VPN client package operation." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "VPN profile package URL.", + "schema": { + "$ref": "#/definitions/VpnProfileResponse" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "GenerateP2SVpnGatewayVPNProfile": { + "$ref": "./examples/P2SVpnGatewayGenerateVpnProfile.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getP2sVpnConnectionHealth": { + "post": { + "tags": [ + "P2SVpnGateways" + ], + "operationId": "P2sVpnGateways_GetP2sVpnConnectionHealth", + "description": "Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "gatewayName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the P2SVpnGateway." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "P2S Vpn Gateway with P2S connection health details.", + "schema": { + "$ref": "#/definitions/P2SVpnGateway" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + } + }, + "x-ms-examples": { + "P2SVpnGatewayGetConnectionHealth": { + "$ref": "./examples/P2SVpnGatewayGetConnectionHealth.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + } + }, + "definitions": { + "VirtualWanProperties": { + "properties": { + "disableVpnEncryption": { + "type": "boolean", + "description": "Vpn encryption to be disabled or not." + }, + "virtualHubs": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "List of VirtualHubs in the VirtualWAN." + }, + "vpnSites": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "List of VpnSites in the VirtualWAN." + }, + "securityProviderName": { + "type": "string", + "description": "The Security Provider name." + }, + "allowBranchToBranchTraffic": { + "type": "boolean", + "description": "True if branch to branch traffic is allowed." + }, + "allowVnetToVnetTraffic": { + "type": "boolean", + "description": "True if Vnet to Vnet traffic is allowed." + }, + "office365LocalBreakoutCategory": { + "description": "The office local breakout category.", + "$ref": "#/definitions/OfficeTrafficCategory" + }, + "p2SVpnServerConfigurations": { + "type": "array", + "description": "List of all P2SVpnServerConfigurations associated with the virtual wan.", + "items": { + "$ref": "#/definitions/P2SVpnServerConfiguration" + } + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + } + }, + "description": "Parameters for VirtualWAN." + }, + "VirtualWAN": { + "required": [ + "location" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualWanProperties", + "description": "Properties of the virtual WAN." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "VirtualWAN Resource." + }, + "ListVirtualWANsResult": { + "description": "Result of the request to list VirtualWANs. It contains a list of VirtualWANs and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualWAN" + }, + "description": "List of VirtualWANs." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "VpnSiteProperties": { + "properties": { + "virtualWan": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The VirtualWAN to which the vpnSite belongs." + }, + "deviceProperties": { + "description": "The device properties.", + "$ref": "#/definitions/DeviceProperties" + }, + "ipAddress": { + "type": "string", + "description": "The ip-address for the vpn-site." + }, + "siteKey": { + "type": "string", + "description": "The key for vpn-site that can be used for connections." + }, + "addressSpace": { + "$ref": "./virtualNetwork.json#/definitions/AddressSpace", + "description": "The AddressSpace that contains an array of IP address ranges." + }, + "bgpProperties": { + "$ref": "./virtualNetworkGateway.json#/definitions/BgpSettings", + "description": "The set of bgp properties." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + }, + "isSecuritySite": { + "type": "boolean", + "description": "IsSecuritySite flag." + }, + "vpnSiteLinks": { + "type": "array", + "description": "List of all vpn site links", + "items": { + "$ref": "#/definitions/VpnSiteLink" + } + } + }, + "description": "Parameters for VpnSite." + }, + "VpnSite": { + "required": [ + "location" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VpnSiteProperties", + "description": "Properties of the VPN site." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "VpnSite Resource." + }, + "ListVpnSitesResult": { + "description": "Result of the request to list VpnSites. It contains a list of VpnSites and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VpnSite" + }, + "description": "List of VpnSites." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "VpnSiteLinkProperties": { + "properties": { + "linkProperties": { + "description": "The link provider properties.", + "$ref": "#/definitions/VpnLinkProviderProperties" + }, + "ipAddress": { + "type": "string", + "description": "The ip-address for the vpn-site-link." + }, + "bgpProperties": { + "$ref": "#/definitions/VpnLinkBgpSettings", + "description": "The set of bgp properties." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + } + }, + "description": "Parameters for VpnSite." + }, + "VpnSiteLink": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VpnSiteLinkProperties", + "description": "Properties of the VPN site link." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + }, + "name": { + "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." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "VpnSiteLink Resource." + }, + "ListVpnSiteLinksResult": { + "description": "Result of the request to list VpnSiteLinks. It contains a list of VpnSiteLinks and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VpnSiteLink" + }, + "description": "List of VpnSitesLinks." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "GetVpnSitesConfigurationRequest": { + "properties": { + "vpnSites": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of resource-ids of the vpn-sites for which config is to be downloaded." + }, + "outputBlobSasUrl": { + "type": "string", + "description": "The sas-url to download the configurations for vpn-sites." + } + }, + "required": [ + "outputBlobSasUrl" + ], + "description": "List of Vpn-Sites." + }, + "VirtualHubProperties": { + "properties": { + "virtualWan": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The VirtualWAN to which the VirtualHub belongs." + }, + "vpnGateway": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The VpnGateway associated with this VirtualHub." + }, + "p2SVpnGateway": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The P2SVpnGateway associated with this VirtualHub." + }, + "expressRouteGateway": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The expressRouteGateway associated with this VirtualHub." + }, + "virtualNetworkConnections": { + "type": "array", + "description": "List of all vnet connections with this VirtualHub.", + "items": { + "$ref": "#/definitions/HubVirtualNetworkConnection" + } + }, + "addressPrefix": { + "type": "string", + "description": "Address-prefix for this VirtualHub." + }, + "routeTable": { + "$ref": "#/definitions/VirtualHubRouteTable", + "description": "The routeTable associated with this virtual hub." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + } + }, + "description": "Parameters for VirtualHub." + }, + "VirtualHubRouteTable": { + "properties": { + "routes": { + "type": "array", + "description": "List of all routes.", + "items": { + "$ref": "#/definitions/VirtualHubRoute" + } + } + }, + "description": "VirtualHub route table." + }, + "VirtualHubRoute": { + "properties": { + "addressPrefixes": { + "type": "array", + "description": "List of all addressPrefixes.", + "items": { + "type": "string" + } + }, + "nextHopIpAddress": { + "type": "string", + "description": "NextHop ip address." + } + }, + "description": "VirtualHub route." + }, + "VirtualHub": { + "required": [ + "location" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualHubProperties", + "description": "Properties of the virtual hub." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "VirtualHub Resource." + }, + "ListVirtualHubsResult": { + "description": "Result of the request to list VirtualHubs. It contains a list of VirtualHubs and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualHub" + }, + "description": "List of VirtualHubs." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "VpnGatewayProperties": { + "properties": { + "virtualHub": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The VirtualHub to which the gateway belongs." + }, + "connections": { + "type": "array", + "description": "List of all vpn connections to the gateway.", + "items": { + "$ref": "#/definitions/VpnConnection" + } + }, + "bgpSettings": { + "$ref": "./virtualNetworkGateway.json#/definitions/BgpSettings", + "description": "Local network gateway's BGP speaker settings." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + }, + "vpnGatewayScaleUnit": { + "type": "integer", + "format": "int32", + "description": "The scale unit for this vpn gateway." + } + }, + "description": "Parameters for VpnGateway." + }, + "VpnGateway": { + "required": [ + "location" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VpnGatewayProperties", + "description": "Properties of the VPN gateway." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "VpnGateway Resource." + }, + "ListVpnGatewaysResult": { + "description": "Result of the request to list VpnGateways. It contains a list of VpnGateways and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VpnGateway" + }, + "description": "List of VpnGateways." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "VpnConnectionProperties": { + "properties": { + "remoteVpnSite": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Id of the connected vpn site." + }, + "routingWeight": { + "type": "integer", + "format": "int32", + "description": "Routing weight for vpn connection." + }, + "connectionStatus": { + "description": "The connection status.", + "$ref": "#/definitions/VpnConnectionStatus" + }, + "vpnConnectionProtocolType": { + "description": "Connection protocol used for this connection.", + "$ref": "./virtualNetworkGateway.json#/definitions/ConnectionProtocol" + }, + "ingressBytesTransferred": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Ingress bytes transferred." + }, + "egressBytesTransferred": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Egress bytes transferred." + }, + "connectionBandwidth": { + "type": "integer", + "format": "int32", + "description": "Expected bandwidth in MBPS." + }, + "sharedKey": { + "type": "string", + "description": "SharedKey for the vpn connection." + }, + "enableBgp": { + "type": "boolean", + "description": "EnableBgp flag." + }, + "usePolicyBasedTrafficSelectors": { + "type": "boolean", + "description": "Enable policy-based traffic selectors." + }, + "ipsecPolicies": { + "type": "array", + "items": { + "$ref": "./virtualNetworkGateway.json#/definitions/IpsecPolicy" + }, + "description": "The IPSec Policies to be considered by this connection." + }, + "enableRateLimiting": { + "type": "boolean", + "description": "EnableBgp flag." + }, + "enableInternetSecurity": { + "type": "boolean", + "description": "Enable internet security." + }, + "useLocalAzureIpAddress": { + "type": "boolean", + "description": "Use local azure ip to initiate connection." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + }, + "vpnLinkConnections": { + "type": "array", + "description": "List of all vpn site link connections to the gateway.", + "items": { + "$ref": "#/definitions/VpnSiteLinkConnection" + } + } + }, + "description": "Parameters for VpnConnection." + }, + "VpnConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VpnConnectionProperties", + "description": "Properties of the VPN connection." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "VpnConnection Resource." + }, + "ListVpnConnectionsResult": { + "description": "Result of the request to list all vpn connections to a virtual wan vpn gateway. It contains a list of Vpn Connections and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VpnConnection" + }, + "description": "List of Vpn Connections." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "VpnSiteLinkConnectionProperties": { + "properties": { + "vpnSiteLink": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Id of the connected vpn site link." + }, + "routingWeight": { + "type": "integer", + "format": "int32", + "description": "Routing weight for vpn connection." + }, + "connectionStatus": { + "description": "The connection status.", + "$ref": "#/definitions/VpnConnectionStatus" + }, + "vpnConnectionProtocolType": { + "description": "Connection protocol used for this connection.", + "$ref": "./virtualNetworkGateway.json#/definitions/ConnectionProtocol" + }, + "ingressBytesTransferred": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Ingress bytes transferred." + }, + "egressBytesTransferred": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Egress bytes transferred." + }, + "connectionBandwidth": { + "type": "integer", + "format": "int32", + "description": "Expected bandwidth in MBPS." + }, + "sharedKey": { + "type": "string", + "description": "SharedKey for the vpn connection." + }, + "enableBgp": { + "type": "boolean", + "description": "EnableBgp flag." + }, + "usePolicyBasedTrafficSelectors": { + "type": "boolean", + "description": "Enable policy-based traffic selectors." + }, + "ipsecPolicies": { + "type": "array", + "items": { + "$ref": "./virtualNetworkGateway.json#/definitions/IpsecPolicy" + }, + "description": "The IPSec Policies to be considered by this connection." + }, + "enableRateLimiting": { + "type": "boolean", + "description": "EnableBgp flag." + }, + "useLocalAzureIpAddress": { + "type": "boolean", + "description": "Use local azure ip to initiate connection." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + } + }, + "description": "Parameters for VpnConnection." + }, + "VpnSiteLinkConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VpnSiteLinkConnectionProperties", + "description": "Properties of the VPN site link connection." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "VpnSiteLinkConnection Resource." + }, + "ListVpnSiteLinkConnectionsResult": { + "description": "Result of the request to list all vpn connections to a virtual wan vpn gateway. It contains a list of Vpn Connections and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VpnSiteLinkConnection" + }, + "description": "List of VpnSiteLinkConnections." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "HubVirtualNetworkConnectionProperties": { + "properties": { + "remoteVirtualNetwork": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference to the remote virtual network." + }, + "allowHubToRemoteVnetTransit": { + "type": "boolean", + "description": "VirtualHub to RemoteVnet transit to enabled or not." + }, + "allowRemoteVnetToUseHubVnetGateways": { + "type": "boolean", + "description": "Allow RemoteVnet to use Virtual Hub's gateways." + }, + "enableInternetSecurity": { + "type": "boolean", + "description": "Enable internet security." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + } + }, + "description": "Parameters for HubVirtualNetworkConnection." + }, + "HubVirtualNetworkConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/HubVirtualNetworkConnectionProperties", + "description": "Properties of the hub virtual network connection." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "HubVirtualNetworkConnection Resource." + }, + "ListHubVirtualNetworkConnectionsResult": { + "description": "List of HubVirtualNetworkConnections and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/HubVirtualNetworkConnection" + }, + "description": "List of HubVirtualNetworkConnections." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "VpnSiteId": { + "properties": { + "vpnSite": { + "type": "string", + "readOnly": true, + "description": "The resource-uri of the vpn-site for which config is to be fetched." + } + }, + "description": "VpnSite Resource." + }, + "DeviceProperties": { + "properties": { + "deviceVendor": { + "type": "string", + "description": "Name of the device Vendor." + }, + "deviceModel": { + "type": "string", + "description": "Model of the device." + }, + "linkSpeedInMbps": { + "type": "integer", + "format": "int32", + "description": "Link speed." + } + }, + "description": "List of properties of the device." + }, + "VirtualWanSecurityProviders": { + "properties": { + "supportedProviders": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualWanSecurityProvider" + }, + "description": "List of VirtualWAN security providers." + } + }, + "description": "Collection of SecurityProviders." + }, + "VirtualWanSecurityProvider": { + "properties": { + "name": { + "type": "string", + "description": "Name of the security provider." + }, + "url": { + "type": "string", + "description": "Url of the security provider." + }, + "type": { + "$ref": "#/definitions/VirtualWanSecurityProviderType", + "description": "Name of the security provider." + } + }, + "description": "Collection of SecurityProviders." + }, + "VpnConnectionStatus": { + "type": "string", + "description": "The current state of the vpn connection.", + "readOnly": true, + "enum": [ + "Unknown", + "Connecting", + "Connected", + "NotConnected" + ], + "x-ms-enum": { + "name": "VpnConnectionStatus", + "modelAsString": true + } + }, + "TunnelConnectionStatus": { + "type": "string", + "description": "The current state of the tunnel.", + "readOnly": true, + "enum": [ + "Unknown", + "Connecting", + "Connected", + "NotConnected" + ], + "x-ms-enum": { + "name": "TunnelConnectionStatus", + "modelAsString": true + } + }, + "HubVirtualNetworkConnectionStatus": { + "type": "string", + "description": "The current state of the VirtualHub to vnet connection.", + "readOnly": true, + "enum": [ + "Unknown", + "Connecting", + "Connected", + "NotConnected" + ], + "x-ms-enum": { + "name": "HubVirtualNetworkConnectionStatus", + "modelAsString": true + } + }, + "OfficeTrafficCategory": { + "type": "string", + "description": "The office traffic category.", + "readOnly": true, + "enum": [ + "Optimize", + "OptimizeAndAllow", + "All", + "None" + ], + "x-ms-enum": { + "name": "OfficeTrafficCategory", + "modelAsString": true + } + }, + "VirtualWanSecurityProviderType": { + "type": "string", + "description": "The virtual wan security provider type.", + "readOnly": true, + "enum": [ + "External", + "Native" + ], + "x-ms-enum": { + "name": "VirtualWanSecurityProviderType", + "modelAsString": true + } + }, + "P2SVpnServerConfigVpnClientRootCertificatePropertiesFormat": { + "properties": { + "publicCertData": { + "type": "string", + "description": "The certificate public data." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the P2SVpnServerConfiguration VPN client root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "required": [ + "publicCertData" + ], + "description": "Properties of VPN client root certificate of P2SVpnServerConfiguration." + }, + "P2SVpnServerConfigVpnClientRootCertificate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/P2SVpnServerConfigVpnClientRootCertificatePropertiesFormat", + "description": "Properties of the P2SVpnServerConfiguration VPN client root certificate." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "required": [ + "properties" + ], + "description": "VPN client root certificate of P2SVpnServerConfiguration." + }, + "P2SVpnServerConfigRadiusServerRootCertificatePropertiesFormat": { + "properties": { + "publicCertData": { + "type": "string", + "description": "The certificate public data." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the P2SVpnServerConfiguration Radius Server root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "required": [ + "publicCertData" + ], + "description": "Properties of Radius Server root certificate of P2SVpnServerConfiguration." + }, + "P2SVpnServerConfigRadiusServerRootCertificate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/P2SVpnServerConfigRadiusServerRootCertificatePropertiesFormat", + "description": "Properties of the P2SVpnServerConfiguration Radius Server root certificate." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "required": [ + "properties" + ], + "description": "Radius Server root certificate of P2SVpnServerConfiguration." + }, + "P2SVpnServerConfigVpnClientRevokedCertificatePropertiesFormat": { + "properties": { + "thumbprint": { + "type": "string", + "description": "The revoked VPN client certificate thumbprint." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the VPN client revoked certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of the revoked VPN client certificate of P2SVpnServerConfiguration." + }, + "P2SVpnServerConfigVpnClientRevokedCertificate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/P2SVpnServerConfigVpnClientRevokedCertificatePropertiesFormat", + "description": "Properties of the vpn client revoked certificate." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "VPN client revoked certificate of P2SVpnServerConfiguration." + }, + "P2SVpnServerConfigRadiusClientRootCertificatePropertiesFormat": { + "properties": { + "thumbprint": { + "type": "string", + "description": "The Radius client root certificate thumbprint." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the Radius client root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + } + }, + "description": "Properties of the Radius client root certificate of P2SVpnServerConfiguration." + }, + "P2SVpnServerConfigRadiusClientRootCertificate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/P2SVpnServerConfigRadiusClientRootCertificatePropertiesFormat", + "description": "Properties of the Radius client root certificate." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Radius client root certificate of P2SVpnServerConfiguration." + }, + "P2SVpnServerConfigurationProperties": { + "properties": { + "name": { + "type": "string", + "description": "The name of the P2SVpnServerConfiguration that is unique within a VirtualWan in a resource group. This name can be used to access the resource along with Paren VirtualWan resource name." + }, + "vpnProtocols": { + "type": "array", + "items": { + "type": "string", + "description": "VPN protocol enabled for the P2SVpnServerConfiguration.", + "enum": [ + "IkeV2", + "OpenVPN" + ], + "x-ms-enum": { + "name": "VpnGatewayTunnelingProtocol", + "modelAsString": true + } + }, + "description": "VPN protocols for the P2SVpnServerConfiguration." + }, + "p2SVpnServerConfigVpnClientRootCertificates": { + "type": "array", + "items": { + "$ref": "#/definitions/P2SVpnServerConfigVpnClientRootCertificate" + }, + "description": "VPN client root certificate of P2SVpnServerConfiguration." + }, + "p2SVpnServerConfigVpnClientRevokedCertificates": { + "type": "array", + "items": { + "$ref": "#/definitions/P2SVpnServerConfigVpnClientRevokedCertificate" + }, + "description": "VPN client revoked certificate of P2SVpnServerConfiguration." + }, + "p2SVpnServerConfigRadiusServerRootCertificates": { + "type": "array", + "items": { + "$ref": "#/definitions/P2SVpnServerConfigRadiusServerRootCertificate" + }, + "description": "Radius Server root certificate of P2SVpnServerConfiguration." + }, + "p2SVpnServerConfigRadiusClientRootCertificates": { + "type": "array", + "items": { + "$ref": "#/definitions/P2SVpnServerConfigRadiusClientRootCertificate" + }, + "description": "Radius client root certificate of P2SVpnServerConfiguration." + }, + "vpnClientIpsecPolicies": { + "type": "array", + "items": { + "$ref": "./virtualNetworkGateway.json#/definitions/IpsecPolicy" + }, + "description": "VpnClientIpsecPolicies for P2SVpnServerConfiguration." + }, + "radiusServerAddress": { + "type": "string", + "description": "The radius server address property of the P2SVpnServerConfiguration resource for point to site client connection." + }, + "radiusServerSecret": { + "type": "string", + "description": "The radius secret property of the P2SVpnServerConfiguration resource for point to site client connection." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the P2SVpnServerConfiguration resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." + }, + "p2SVpnGateways": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "./network.json#/definitions/SubResource" + }, + "description": "List of references to P2SVpnGateways." + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "description": "Parameters for P2SVpnServerConfiguration." + }, + "P2SVpnServerConfiguration": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/P2SVpnServerConfigurationProperties", + "description": "Properties of the P2SVpnServer configuration." + }, + "name": { + "type": "string", + "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "P2SVpnServerConfiguration Resource." + }, + "ListP2SVpnServerConfigurationsResult": { + "description": "Result of the request to list all P2SVpnServerConfigurations associated to a VirtualWan. It contains a list of P2SVpnServerConfigurations and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/P2SVpnServerConfiguration" + }, + "description": "List of P2SVpnServerConfigurations." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "VpnClientConnectionHealth": { + "properties": { + "totalIngressBytesTransferred": { + "readOnly": true, + "type": "integer", + "format": "int64", + "description": "Total of the Ingress Bytes Transferred in this P2S Vpn connection." + }, + "totalEgressBytesTransferred": { + "readOnly": true, + "type": "integer", + "format": "int64", + "description": "Total of the Egress Bytes Transferred in this connection." + }, + "vpnClientConnectionsCount": { + "type": "integer", + "format": "int32", + "description": "The total of p2s vpn clients connected at this time to this P2SVpnGateway." + }, + "allocatedIpAddresses": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of allocated ip addresses to the connected p2s vpn clients." + } + }, + "description": "VpnClientConnectionHealth properties." + }, + "P2SVpnGatewayProperties": { + "properties": { + "virtualHub": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The VirtualHub to which the gateway belongs." + }, + "provisioningState": { + "description": "The provisioning state of the resource.", + "$ref": "./network.json#/definitions/ProvisioningState" + }, + "vpnGatewayScaleUnit": { + "type": "integer", + "format": "int32", + "description": "The scale unit for this p2s vpn gateway." + }, + "p2SVpnServerConfiguration": { + "$ref": "./network.json#/definitions/SubResource", + "description": "The P2SVpnServerConfiguration to which the p2sVpnGateway is attached to." + }, + "vpnClientAddressPool": { + "$ref": "./virtualNetwork.json#/definitions/AddressSpace", + "description": "The reference of the address space resource which represents Address space for P2S VpnClient." + }, + "customRoutes": { + "$ref": "./virtualNetwork.json#/definitions/AddressSpace", + "description": "The reference of the address space resource which represents the custom routes specified by the customer for P2SVpnGateway and P2S VpnClient." + }, + "vpnClientConnectionHealth": { + "readOnly": true, + "$ref": "#/definitions/VpnClientConnectionHealth", + "description": "All P2S VPN clients' connection health status." + } + }, + "description": "Parameters for P2SVpnGateway." + }, + "P2SVpnGateway": { + "required": [ + "location" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/P2SVpnGatewayProperties", + "description": "Properties of the P2SVpnGateway." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "P2SVpnGateway Resource." + }, + "ListP2SVpnGatewaysResult": { + "description": "Result of the request to list P2SVpnGateways. It contains a list of P2SVpnGateways and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/P2SVpnGateway" + }, + "description": "List of P2SVpnGateways." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "P2SVpnProfileParameters": { + "properties": { + "authenticationMethod": { + "$ref": "./network.json#/definitions/AuthenticationMethod", + "description": "VPN client authentication method." + } + }, + "description": "Vpn Client Parameters for package generation." + }, + "VpnProfileResponse": { + "properties": { + "profileUrl": { + "type": "string", + "description": "URL to the VPN profile." + } + }, + "description": "Vpn Profile Response for package generation." + }, + "VpnLinkBgpSettings": { + "properties": { + "asn": { + "type": "integer", + "format": "int64", + "description": "The BGP speaker's ASN." + }, + "bgpPeeringAddress": { + "type": "string", + "description": "The BGP peering address and BGP identifier of this BGP speaker." + } + }, + "description": "BGP settings details for a link." + }, + "VpnLinkProviderProperties": { + "properties": { + "linkProviderName": { + "type": "string", + "description": "Name of the link provider." + }, + "linkSpeedInMbps": { + "type": "integer", + "format": "int32", + "description": "Link speed." + } + }, + "description": "List of properties of a link provider." + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/vmssNetworkInterface.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/vmssNetworkInterface.json new file mode 100644 index 000000000000..fe65a63d85a3 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/vmssNetworkInterface.json @@ -0,0 +1,344 @@ +{ + "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": "2017-03-30" + }, + "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/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces": { + "get": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaces_ListVirtualMachineScaleSetVMNetworkInterfaces", + "description": "Gets information about all network interfaces in a virtual machine in a virtual machine scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualMachineScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine scale set." + }, + { + "name": "virtualmachineIndex", + "in": "path", + "required": true, + "type": "string", + "description": "The virtual machine index." + }, + { + "$ref": "./network.json#/parameters/ApiVersionVmssParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NetworkInterface resources.", + "schema": { + "$ref": "./networkInterface.json#/definitions/NetworkInterfaceListResult" + } + } + }, + "x-ms-examples": { + "List virtual machine scale set vm network interfaces": { + "$ref": "./examples/VmssVmNetworkInterfaceList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces": { + "get": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaces_ListVirtualMachineScaleSetNetworkInterfaces", + "description": "Gets all network interfaces in a virtual machine scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualMachineScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine scale set." + }, + { + "$ref": "./network.json#/parameters/ApiVersionVmssParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of NetworkInterface resources.", + "schema": { + "$ref": "./networkInterface.json#/definitions/NetworkInterfaceListResult" + } + } + }, + "x-ms-examples": { + "List virtual machine scale set network interfaces": { + "$ref": "./examples/VmssNetworkInterfaceList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}": { + "get": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaces_GetVirtualMachineScaleSetNetworkInterface", + "description": "Get the specified network interface in a virtual machine scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualMachineScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine scale set." + }, + { + "name": "virtualmachineIndex", + "in": "path", + "required": true, + "type": "string", + "description": "The virtual machine index." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "$ref": "./network.json#/parameters/ApiVersionVmssParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting NetworkInterface resource.", + "schema": { + "$ref": "./networkInterface.json#/definitions/NetworkInterface" + } + } + }, + "x-ms-examples": { + "Get virtual machine scale set network interface": { + "$ref": "./examples/VmssNetworkInterfaceGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations": { + "get": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaces_ListVirtualMachineScaleSetIpConfigurations", + "description": "Get the specified network interface ip configuration in a virtual machine scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualMachineScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine scale set." + }, + { + "name": "virtualmachineIndex", + "in": "path", + "required": true, + "type": "string", + "description": "The virtual machine index." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "$ref": "./network.json#/parameters/ApiVersionVmssParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the list of resulting NetworkInterfaceIPConfigurations resources.", + "schema": { + "$ref": "./networkInterface.json#/definitions/NetworkInterfaceIPConfigurationListResult" + } + } + }, + "x-ms-examples": { + "List virtual machine scale set network interface ip configurations": { + "$ref": "./examples/VmssNetworkInterfaceIpConfigList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}": { + "get": { + "tags": [ + "NetworkInterfaces" + ], + "operationId": "NetworkInterfaces_GetVirtualMachineScaleSetIpConfiguration", + "description": "Get the specified network interface ip configuration in a virtual machine scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualMachineScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine scale set." + }, + { + "name": "virtualmachineIndex", + "in": "path", + "required": true, + "type": "string", + "description": "The virtual machine index." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "name": "ipConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the ip configuration." + }, + { + "$ref": "./network.json#/parameters/ApiVersionVmssParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting NetworkInterfaceIPConfiguration resource.", + "schema": { + "$ref": "./networkInterface.json#/definitions/NetworkInterfaceIPConfiguration" + } + } + }, + "x-ms-examples": { + "Get virtual machine scale set network interface": { + "$ref": "./examples/VmssNetworkInterfaceIpConfigGet.json" + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/vmssPublicIpAddress.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/vmssPublicIpAddress.json new file mode 100644 index 000000000000..d11b961e4f88 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/vmssPublicIpAddress.json @@ -0,0 +1,223 @@ +{ + "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": "2017-03-30" + }, + "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/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses": { + "get": { + "operationId": "PublicIPAddresses_ListVirtualMachineScaleSetPublicIPAddresses", + "description": "Gets information about all public IP addresses on a virtual machine scale set level.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualMachineScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine scale set." + }, + { + "$ref": "./network.json#/parameters/ApiVersionVmssParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of PublicIPInterface resources.", + "schema": { + "$ref": "./publicIpAddress.json#/definitions/PublicIPAddressListResult" + } + } + }, + "x-ms-examples": { + "ListVMSSPublicIP": { + "$ref": "./examples/VmssPublicIpListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses": { + "get": { + "operationId": "PublicIPAddresses_ListVirtualMachineScaleSetVMPublicIPAddresses", + "description": "Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualMachineScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine scale set." + }, + { + "name": "virtualmachineIndex", + "in": "path", + "required": true, + "type": "string", + "description": "The virtual machine index." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The network interface name." + }, + { + "name": "ipConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The IP configuration name." + }, + { + "$ref": "./network.json#/parameters/ApiVersionVmssParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of PublicIPAddress resources.", + "schema": { + "$ref": "./publicIpAddress.json#/definitions/PublicIPAddressListResult" + } + } + }, + "x-ms-examples": { + "ListVMSSVMPublicIP": { + "$ref": "./examples/VmssVmPublicIpList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}": { + "get": { + "operationId": "PublicIPAddresses_GetVirtualMachineScaleSetPublicIPAddress", + "description": "Get the specified public IP address in a virtual machine scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualMachineScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine scale set." + }, + { + "name": "virtualmachineIndex", + "in": "path", + "required": true, + "type": "string", + "description": "The virtual machine index." + }, + { + "name": "networkInterfaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the network interface." + }, + { + "name": "ipConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the IP configuration." + }, + { + "name": "publicIpAddressName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the public IP Address." + }, + { + "$ref": "./network.json#/parameters/ApiVersionVmssParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + } + ], + "x-ms-examples": { + "GetVMSSPublicIP": { + "$ref": "./examples/VmssPublicIpGet.json" + } + }, + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting PublicIPAddress resource.", + "schema": { + "$ref": "./publicIpAddress.json#/definitions/PublicIPAddress" + } + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/webapplicationfirewall.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/webapplicationfirewall.json new file mode 100644 index 000000000000..e3e5c265e14d --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-06-01/webapplicationfirewall.json @@ -0,0 +1,537 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-06-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/ApplicationGatewayWebApplicationFirewallPolicies": { + "get": { + "tags": [ + "WebApplicationFirewallPolicies" + ], + "description": "Lists all of the protection policies within a resource group.", + "operationId": "WebApplicationFirewallPolicies_List", + "x-ms-examples": { + "Lists all WAF policies in a resource group": { + "$ref": "./examples/WafListPolicies.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/WebApplicationFirewallPolicyListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies": { + "get": { + "tags": [ + "WebApplicationFirewallPolicies" + ], + "operationId": "WebApplicationFirewallPolicies_ListAll", + "x-ms-examples": { + "Lists all WAF policies in a subscription": { + "$ref": "./examples/WafListAllPolicies.json" + } + }, + "description": "Gets all the WAF policies in a subscription.", + "parameters": [ + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/WebApplicationFirewallPolicyListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}": { + "get": { + "tags": [ + "WebApplicationFirewallPolicies" + ], + "description": "Retrieve protection policy with specified name within a resource group.", + "operationId": "WebApplicationFirewallPolicies_Get", + "x-ms-examples": { + "Gets a WAF policy within a resource group": { + "$ref": "./examples/WafPolicyGet.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "policyName", + "in": "path", + "required": true, + "type": "string", + "maxLength": 128, + "description": "The name of the policy." + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/WebApplicationFirewallPolicy" + } + } + } + }, + "put": { + "tags": [ + "WebApplicationFirewallPolicies" + ], + "description": "Creates or update policy with specified rule set name within a resource group.", + "operationId": "WebApplicationFirewallPolicies_CreateOrUpdate", + "x-ms-examples": { + "Creates or updates a WAF policy within a resource group": { + "$ref": "./examples/WafPolicyCreateOrUpdate.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "policyName", + "in": "path", + "required": true, + "type": "string", + "maxLength": 128, + "description": "The name of the policy." + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "description": "Policy to be created.", + "in": "body", + "name": "parameters", + "required": true, + "schema": { + "$ref": "#/definitions/WebApplicationFirewallPolicy" + } + }, + { + "$ref": "network.json#/parameters/ApiVersionParameter" + } + ], + "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" + } + } + } + }, + "delete": { + "tags": [ + "WebApplicationFirewallPolicies" + ], + "description": "Deletes Policy.", + "operationId": "WebApplicationFirewallPolicies_Delete", + "x-ms-examples": { + "Deletes a WAF policy within a resource group": { + "$ref": "./examples/WafPolicyDelete.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "policyName", + "in": "path", + "required": true, + "type": "string", + "maxLength": 128, + "description": "The name of the policy." + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$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 policy was not found." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + } + }, + "definitions": { + "WebApplicationFirewallPolicy": { + "description": "Defines web application firewall policy.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/WebApplicationFirewallPolicyPropertiesFormat", + "description": "Properties of the web application firewall policy." + }, + "etag": { + "type": "string", + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ] + }, + "WebApplicationFirewallPolicyPropertiesFormat": { + "description": "Defines web application firewall policy properties.", + "properties": { + "policySettings": { + "description": "Describes policySettings for policy.", + "$ref": "#/definitions/PolicySettings" + }, + "customRules": { + "description": "Describes custom rules inside the policy.", + "type": "array", + "items": { + "$ref": "#/definitions/WebApplicationFirewallCustomRule" + } + }, + "applicationGateways": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./applicationGateway.json#/definitions/ApplicationGateway" + }, + "description": "A collection of references to application gateways." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Provisioning state of the WebApplicationFirewallPolicy." + }, + "resourceState": { + "title": "Resource status of the policy.", + "readOnly": true, + "type": "string", + "description": "Resource status of the policy.", + "enum": [ + "Creating", + "Enabling", + "Enabled", + "Disabling", + "Disabled", + "Deleting" + ], + "x-ms-enum": { + "name": "WebApplicationFirewallPolicyResourceState", + "modelAsString": true + } + } + } + }, + "WebApplicationFirewallPolicyListResult": { + "description": "Result of the request to list 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": { + "readOnly": true, + "type": "string", + "description": "URL to get the next set of WebApplicationFirewallPolicy objects if there are any." + } + } + }, + "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": "WebApplicationFirewallEnabledState", + "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": "WebApplicationFirewallMode", + "modelAsString": true + } + } + } + }, + "WebApplicationFirewallCustomRule": { + "description": "Defines contents of a web application rule.", + "required": [ + "priority", + "ruleType", + "matchConditions", + "action" + ], + "properties": { + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within a policy. This name can be used to access the resource.", + "maxLength": 128 + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + }, + "priority": { + "description": "Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.", + "type": "integer" + }, + "ruleType": { + "description": "Describes type of rule.", + "type": "string", + "enum": [ + "MatchRule", + "Invalid" + ], + "x-ms-enum": { + "name": "WebApplicationFirewallRuleType", + "modelAsString": true + } + }, + "matchConditions": { + "description": "List of match conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/MatchCondition" + } + }, + "action": { + "description": "Type of Actions.", + "type": "string", + "enum": [ + "Allow", + "Block", + "Log" + ], + "x-ms-enum": { + "name": "WebApplicationFirewallAction", + "modelAsString": true + } + } + } + }, + "Transform": { + "description": "Describes what transforms applied before matching.", + "type": "string", + "enum": [ + "Lowercase", + "Trim", + "UrlDecode", + "UrlEncode", + "RemoveNulls", + "HtmlEntityDecode" + ], + "x-ms-enum": { + "name": "WebApplicationFirewallTransform", + "modelAsString": true + } + }, + "MatchVariable": { + "description": "Define match variables.", + "required": [ + "variableName" + ], + "properties": { + "variableName": { + "description": "Match Variable.", + "type": "string", + "enum": [ + "RemoteAddr", + "RequestMethod", + "QueryString", + "PostArgs", + "RequestUri", + "RequestHeaders", + "RequestBody", + "RequestCookies" + ], + "x-ms-enum": { + "name": "WebApplicationFirewallMatchVariable", + "modelAsString": true + } + }, + "selector": { + "description": "Describes field of the matchVariable collection.", + "type": "string" + } + } + }, + "MatchCondition": { + "description": "Define match conditions.", + "required": [ + "matchVariables", + "operator", + "matchValues" + ], + "properties": { + "matchVariables": { + "description": "List of match variables.", + "type": "array", + "items": { + "$ref": "#/definitions/MatchVariable" + } + }, + "operator": { + "description": "Describes operator to be matched.", + "type": "string", + "enum": [ + "IPMatch", + "Equal", + "Contains", + "LessThan", + "GreaterThan", + "LessThanOrEqual", + "GreaterThanOrEqual", + "BeginsWith", + "EndsWith", + "Regex" + ], + "x-ms-enum": { + "name": "WebApplicationFirewallOperator", + "modelAsString": true + } + }, + "negationConditon": { + "description": "Describes if this is negate condition or not.", + "type": "boolean" + }, + "matchValues": { + "description": "Match value.", + "type": "array", + "items": { + "type": "string" + } + }, + "transforms": { + "description": "List of transforms.", + "type": "array", + "items": { + "$ref": "#/definitions/Transform" + } + } + } + } + } +} diff --git a/specification/network/resource-manager/readme.csharp.md b/specification/network/resource-manager/readme.csharp.md index 68c4e41fa1f5..7add46771d4c 100644 --- a/specification/network/resource-manager/readme.csharp.md +++ b/specification/network/resource-manager/readme.csharp.md @@ -19,7 +19,7 @@ csharp: ``` yaml $(csharp) && !$(multiapi) && !$(csharp-profile) namespace: Microsoft.Azure.Management.Network -output-folder: $(csharp-sdks-folder)/Network/Management.Network/Generated +output-folder: $(csharp-sdks-folder)/network/Microsoft.Azure.Management.Network/src/Generated ``` ## MultiApi settings diff --git a/specification/network/resource-manager/readme.go.md b/specification/network/resource-manager/readme.go.md index 40aafff6266f..26f5f51627a7 100644 --- a/specification/network/resource-manager/readme.go.md +++ b/specification/network/resource-manager/readme.go.md @@ -13,6 +13,8 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-2019-06 + - tag: package-2019-04 - tag: package-2019-02 - tag: package-2018-12 - tag: package-2018-11 @@ -37,6 +39,24 @@ batch: - tag: package-2015-05-preview ``` +### Tag: package-2019-06 and go + +These settings apply only when `--tag=package-2019-06 --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/$(namespace)/mgmt/2019-06-01/$(namespace) +``` + +### Tag: package-2019-04 and go + +These settings apply only when `--tag=package-2019-04 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2019-04' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2019-04-01/$(namespace) +``` + ### Tag: package-2019-02 and go These settings apply only when `--tag=package-2019-02 --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 e955ffe85355..0c7b468e5551 100644 --- a/specification/network/resource-manager/readme.java.md +++ b/specification/network/resource-manager/readme.java.md @@ -16,7 +16,9 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-network ``` yaml $(java) && $(multiapi) batch: + - tag: package-2019-06 - tag: package-2019-04 + - tag: package-2019-02 - tag: package-2018-12 - tag: package-2018-08 - tag: package-2018-07 @@ -25,6 +27,19 @@ batch: - tag: package-2017-10 ``` +### Tag: package-2019-06 and java + +These settings apply only when `--tag=package-2019-06 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2019-06' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.network.v2019_06_01 + output-folder: $(azure-libraries-for-java-folder)/network/resource-manager/v2019_06_01 + regenerate-manager: true + generate-interface: true +``` + ### Tag: package-2019-04 and java These settings apply only when `--tag=package-2019-04 --java` is specified on the command line. @@ -34,8 +49,21 @@ Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2019-02' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.network.v2019_02_01 + output-folder: $(azure-libraries-for-java-folder)/network/resource-manager/v2019_02_01 + regenerate-manager: true + generate-interface: true ``` ### Tag: package-2018-12 and java @@ -47,8 +75,8 @@ Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2019-06' && $(python) +python: + namespace: azure.mgmt.network.v2019_06_01 + output-folder: $(python-sdks-folder)/network/azure-mgmt-network/azure/mgmt/network/v2019_06_01 +``` + ### Tag: package-2019-04 and python These settings apply only when `--tag=package-2019-04 --python` is specified on the command line. diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2014-09-01/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2014-09-01/notificationhubs.json index 576988c34dbd..6c4d4957efa0 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2014-09-01/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2014-09-01/notificationhubs.json @@ -1180,7 +1180,7 @@ "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx" }, "type": "string", - "description": "Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe" + "description": "Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe" }, "status": { "externalDocs": { diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2016-03-01/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2016-03-01/notificationhubs.json index 3d5ecb386502..2e98547125cc 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2016-03-01/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2016-03-01/notificationhubs.json @@ -1316,7 +1316,7 @@ "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx" }, "type": "string", - "description": "Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe" + "description": "Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe" }, "status": { "externalDocs": { diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json index 2236a73aff12..b80cda4121ea 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json @@ -1625,7 +1625,7 @@ "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx" }, "type": "string", - "description": "Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe" + "description": "Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe" }, "metricId": { "readOnly": true, diff --git a/specification/notificationhubs/resource-manager/readme.md b/specification/notificationhubs/resource-manager/readme.md index db04a2de2622..344d8dc3a37d 100644 --- a/specification/notificationhubs/resource-manager/readme.md +++ b/specification/notificationhubs/resource-manager/readme.md @@ -84,6 +84,7 @@ 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 @@ -204,3 +205,30 @@ generate-interface: 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)/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json + - $(this-folder)/Microsoft.NotificationHubs/stable/2016-03-01/notificationhubs.json + - $(this-folder)/Microsoft.NotificationHubs/stable/2014-09-01/notificationhubs.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/operationalinsights/data-plane/readme.md b/specification/operationalinsights/data-plane/readme.md index fe72c26dbf13..f1e857ed5d8f 100644 --- a/specification/operationalinsights/data-plane/readme.md +++ b/specification/operationalinsights/data-plane/readme.md @@ -135,3 +135,29 @@ directive: where: $.definitions.table.properties.rows.items.items.type transform: $ = "object" ``` + +## 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.OperationalInsights/stable/v1/OperationalInsights.json + - $(this-folder)/Microsoft.OperationalInsights/preview/2017-10-01/swagger.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/operationalinsights/resource-manager/readme.java.md b/specification/operationalinsights/resource-manager/readme.java.md new file mode 100644 index 000000000000..8e697d7d8efb --- /dev/null +++ b/specification/operationalinsights/resource-manager/readme.java.md @@ -0,0 +1,49 @@ +## 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.loganalytics +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-loganalytics +service-name: LogAnalytics +``` + + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2015-03 + - tag: package-2015-11-preview +``` + +### Tag: package-2015-03 and java + +These settings apply only when `--tag=package-2015-03 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2015-03' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.loganalytics.v2015_03_20 + output-folder: $(azure-libraries-for-java-folder)/loganalytics/resource-manager/v2015_03_20 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2015-11-preview and java + +These settings apply only when `--tag=package-2015-11-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2015-11-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.loganalytics.v2015_11_01_preview + output-folder: $(azure-libraries-for-java-folder)/loganalytics/resource-manager/v2015_11_01_preview +regenerate-manager: true +generate-interface: true +``` \ No newline at end of file diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index d77239330b8d..7096103edde5 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -61,6 +61,7 @@ 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 @@ -122,60 +123,40 @@ 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) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.operationalinsights -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-operationalinsights -``` - +See configuration in [readme.java.md](./readme.java.md) -### Java multi-api +## Suppression -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2015-03 - - tag: package-2015-11-preview +``` yaml +directive: + - from: OperationalInsights.json + suppress: R3006 # BodyTopLevelProperties/R3006/RPCViolation + reason: properties etag defined as eTag in model ``` -### Tag: package-2015-03 and java +## Multi-API/Profile support for AutoRest v3 generators -These settings apply only when `--tag=package-2015-03 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -``` yaml $(tag) == 'package-2015-03' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.operationalinsights.v2015_03_20 - output-folder: $(azure-libraries-for-java-folder)/operationalinsights/resource-manager/v2015_03_20 -regenerate-manager: true -generate-interface: true -``` +This block is updated by an automatic script. Edits may be lost! -### Tag: package-2015-11-preview and java +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -These settings apply only when `--tag=package-2015-11-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.OperationalInsights/preview/2015-11-01-preview/OperationalInsights.json + - $(this-folder)/Microsoft.OperationalInsights/stable/2015-03-20/OperationalInsights.json -``` yaml $(tag) == 'package-2015-11-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.operationalinsights.v2015_11_01_preview - output-folder: $(azure-libraries-for-java-folder)/operationalinsights/resource-manager/v2015_11_01_preview -regenerate-manager: true -generate-interface: true ``` +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. -## Suppression - -``` yaml -directive: - - from: OperationalInsights.json - suppress: R3006 # BodyTopLevelProperties/R3006/RPCViolation - reason: properties etag defined as eTag in model +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json ``` + diff --git a/specification/operationsmanagement/resource-manager/readme.md b/specification/operationsmanagement/resource-manager/readme.md index a37250ab8fba..5dbef60ad4a4 100644 --- a/specification/operationsmanagement/resource-manager/readme.md +++ b/specification/operationsmanagement/resource-manager/readme.md @@ -53,6 +53,7 @@ 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-js - repo: azure-sdk-for-node @@ -71,7 +72,7 @@ csharp: namespace: Microsoft.Azure.Management.OperationsManagement payload-flattening-threshold: 1 license-header: MICROSOFT_MIT_NO_VERSION - output-folder: $(csharp-sdks-folder)/OperationsManagement/Management.OperationsManagement/Generated + output-folder: $(csharp-sdks-folder)/operationsmanagement/Microsoft.Azure.Management.OperationsManagement/src/Generated clear-output-folder: true ``` @@ -114,3 +115,28 @@ generate-interface: 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)/Microsoft.OperationsManagement/preview/2015-11-01-preview/OperationsManagement.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/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/CreateDirectPeering.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/CreateDirectPeering.json new file mode 100644 index 000000000000..541126cc8329 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/CreateDirectPeering.json @@ -0,0 +1,170 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringName": "peeringName", + "api-version": "2019-06-01-preview", + "peering": { + "sku": { + "name": "Basic_Direct_Free" + }, + "kind": "Direct", + "properties": { + "direct": { + "connections": [ + { + "bandwidthInMbps": 10000, + "peeringDBFacilityId": 99999, + "bgpSession": { + "sessionPrefixV4": "192.168.0.0/31", + "sessionPrefixV6": "fd00::0/127", + "maxPrefixesAdvertisedV4": 1000, + "maxPrefixesAdvertisedV6": 100, + "md5AuthenticationKey": "test-md5-auth-key" + }, + "connectionIdentifier": "00000000-0000-0000-0000-000000000000" + }, + { + "bandwidthInMbps": 10000, + "peeringDBFacilityId": 99999, + "bgpSession": { + "sessionPrefixV4": "192.168.1.0/31", + "sessionPrefixV6": "fd00::2/127", + "maxPrefixesAdvertisedV4": 1000, + "maxPrefixesAdvertisedV6": 100, + "md5AuthenticationKey": "test-md5-auth-key" + }, + "connectionIdentifier": "00000000-0000-0000-0000-000000000000" + } + ], + "useForPeeringService": false, + "peerAsn": { + "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1" + } + }, + "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, + "peeringDBFacilityId": 99999, + "connectionState": "Active", + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "bandwidthInMbps": 10000, + "provisionedBandwidthInMbps": 10000, + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "useForPeeringService": false, + "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_Direct_Free", + "tier": "Basic", + "family": "Direct", + "size": "Free" + }, + "kind": "Direct", + "properties": { + "direct": { + "connections": [ + { + "bandwidthInMbps": 10000, + "provisionedBandwidthInMbps": 0, + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "bandwidthInMbps": 10000, + "provisionedBandwidthInMbps": 0, + "peeringDBFacilityId": 99999, + "connectionState": "PendingApproval", + "bgpSession": { + "sessionPrefixV4": "192.168.1.0/31", + "sessionPrefixV6": "fd00::2/127", + "sessionStateV4": "PendingAdd", + "sessionStateV6": "PendingAdd", + "maxPrefixesAdvertisedV4": 1000, + "maxPrefixesAdvertisedV6": 100, + "md5AuthenticationKey": "test-md5-auth-key" + }, + "connectionIdentifier": "00000000-0000-0000-0000-000000000000" + } + ], + "useForPeeringService": false, + "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/preview/2019-06-01-preview/examples/CreateExchangePeering.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/CreateExchangePeering.json new file mode 100644 index 000000000000..8f82135b9c1b --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/CreateExchangePeering.json @@ -0,0 +1,165 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringName": "peeringName", + "api-version": "2019-06-01-preview", + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "peeringDBFacilityId": 99999, + "bgpSession": { + "peerSessionIPv4Address": "192.168.2.2", + "peerSessionIPv6Address": "fd00::2", + "maxPrefixesAdvertisedV4": 1000, + "maxPrefixesAdvertisedV6": 100, + "md5AuthenticationKey": "test-md5-auth-key" + }, + "connectionIdentifier": "00000000-0000-0000-0000-000000000000" + } + ], + "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": "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": "00000000-0000-0000-0000-000000000000" + }, + { + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "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/preview/2019-06-01-preview/examples/CreatePeerAsn.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/CreatePeerAsn.json new file mode 100644 index 000000000000..48aa730479ab --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/CreatePeerAsn.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "subscriptionId": "subId", + "peerAsnName": "peerAsnName", + "api-version": "2019-06-01-preview", + "peerAsn": { + "properties": { + "peerAsn": 65000, + "peerContactInfo": { + "emails": [ + "abc@contoso.com", + "xyz@contoso.com" + ], + "phone": [ + "+1 (234) 567-8900" + ] + }, + "peerName": "Contoso" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "peerAsn": 65000, + "peerContactInfo": { + "emails": [ + "abc@contoso.com", + "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, + "peerContactInfo": { + "emails": [ + "abc@contoso.com", + "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/preview/2019-06-01-preview/examples/DeletePeerAsn.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/DeletePeerAsn.json new file mode 100644 index 000000000000..6d732a96ec8f --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/DeletePeerAsn.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subId", + "peerAsnName": "peerAsnName", + "api-version": "2019-06-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/DeletePeering.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/DeletePeering.json new file mode 100644 index 000000000000..21e923d3cfdc --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/DeletePeering.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringName": "peeringName", + "api-version": "2019-06-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/GetPeerAsn.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/GetPeerAsn.json new file mode 100644 index 000000000000..fe560f4766cc --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/GetPeerAsn.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "subId", + "peerAsnName": "peerAsnName", + "api-version": "2019-06-01-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "peerAsn": 65000, + "peerContactInfo": { + "emails": [ + "abc@contoso.com", + "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/preview/2019-06-01-preview/examples/GetPeering.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/GetPeering.json new file mode 100644 index 000000000000..ee0f3722e4e2 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/GetPeering.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringName": "peeringName", + "api-version": "2019-06-01-preview" + }, + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "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/preview/2019-06-01-preview/examples/ListDirectPeeringLocations.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListDirectPeeringLocations.json new file mode 100644 index 000000000000..df8ab7b72089 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListDirectPeeringLocations.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "subId", + "kind": "Direct", + "api-version": "2019-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "kind": "Direct", + "properties": { + "direct": { + "peeringFacilities": [ + { + "address": "address1", + "peeringDBFacilityId": 99999, + "peeringDBFacilityLink": "https://www.peeringdb.com/fac/99999" + }, + { + "address": "address3", + "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", + "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/preview/2019-06-01-preview/examples/ListExchangePeeringLocations.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListExchangePeeringLocations.json new file mode 100644 index 000000000000..e3c1063a2aba --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListExchangePeeringLocations.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "subId", + "kind": "Exchange", + "api-version": "2019-06-01-preview" + }, + "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/preview/2019-06-01-preview/examples/ListLegacyPeerings.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListLegacyPeerings.json new file mode 100644 index 000000000000..087dd18ffa3d --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListLegacyPeerings.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "subId", + "kind": "Exchange", + "peeringLocation": "peeringLocation0", + "api-version": "2019-06-01-preview" + }, + "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" + } + }, + { + "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" + } + } + ], + "peerAsn": { + "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1" + } + }, + "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/preview/2019-06-01-preview/examples/ListPeerAsnsBySubscription.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListPeerAsnsBySubscription.json new file mode 100644 index 000000000000..ae147c84929a --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListPeerAsnsBySubscription.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "subId", + "api-version": "2019-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "peerAsn": 65000, + "peerContactInfo": { + "emails": [ + "abc@contoso.com", + "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/preview/2019-06-01-preview/examples/ListPeeringOperations.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListPeeringOperations.json new file mode 100644 index 000000000000..b2f86d347168 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListPeeringOperations.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "api-version": "2019-06-01-preview" + }, + "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 + } + ] + } + } + } +} diff --git a/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListPeeringsByResourceGroup.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListPeeringsByResourceGroup.json new file mode 100644 index 000000000000..cf76086b7ef5 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListPeeringsByResourceGroup.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "api-version": "2019-06-01-preview" + }, + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "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/preview/2019-06-01-preview/examples/ListPeeringsBySubscription.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListPeeringsBySubscription.json new file mode 100644 index 000000000000..a638b6905190 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/ListPeeringsBySubscription.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "subId", + "api-version": "2019-06-01-preview" + }, + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "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/preview/2019-06-01-preview/examples/UpdatePeeringTags.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/UpdatePeeringTags.json new file mode 100644 index 000000000000..4d72186e3131 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/examples/UpdatePeeringTags.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringName": "peeringName", + "api-version": "2019-06-01-preview", + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "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/preview/2019-06-01-preview/peering.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/peering.json new file mode 100644 index 000000000000..e2ca582168e9 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-06-01-preview/peering.json @@ -0,0 +1,1449 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-06-01-preview", + "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/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" + ] + }, + { + "$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" + ] + }, + { + "$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}": { + "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" + } + } + }, + "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" + } + } + } + }, + "definitions": { + "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.", + "enum": [ + "Basic_Exchange_Free", + "Basic_Direct_Free", + "Premium_Direct_Free", + "Premium_Exchange_Metered" + ], + "type": "string", + "x-ms-enum": { + "name": "name", + "modelAsString": true + } + }, + "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" + }, + "peerAsn": { + "$ref": "#/definitions/SubResource", + "description": "The reference of the peer ASN." + } + } + }, + "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" + }, + "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" + } + } + }, + "ErrorResponse": { + "description": "The error response that indicates 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 + }, + "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" + } + } + }, + "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", + "readOnly": true + }, + "microsoftSessionIPv6Address": { + "description": "The IPv6 session address on Microsoft's end.", + "type": "string", + "readOnly": true + }, + "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" + }, + "peerContactInfo": { + "$ref": "#/definitions/ContactInfo", + "description": "The contact information of the peer." + }, + "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 + } + } + } + }, + "ContactInfo": { + "description": "The contact information of the peer.", + "type": "object", + "properties": { + "emails": { + "description": "The list of email addresses.", + "type": "array", + "items": { + "type": "string" + } + }, + "phone": { + "description": "The list of contact numbers.", + "type": "array", + "items": { + "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" + }, + "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" + } + } + }, + "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" + } + } + } + } + }, + "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/Microsoft.Peering/preview/2019-07-01-preview/examples/CheckServiceProviderAvailability.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/CheckServiceProviderAvailability.json new file mode 100644 index 000000000000..115c45334722 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/CheckServiceProviderAvailability.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "subId", + "api-version": "2019-07-01-preview", + "checkServiceProviderAvailabilityInput": { + "peeringServiceLocation": "peeringServiceLocation1", + "peeringServiceProvider": "peeringServiceProvider1" + } + }, + "responses": { + "200": { + "body": "Available" + } + } +} diff --git a/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/CreateDirectPeering.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/CreateDirectPeering.json new file mode 100644 index 000000000000..727ed2202294 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/CreateDirectPeering.json @@ -0,0 +1,170 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringName": "peeringName", + "api-version": "2019-07-01-preview", + "peering": { + "sku": { + "name": "Basic_Direct_Free" + }, + "kind": "Direct", + "properties": { + "direct": { + "connections": [ + { + "bandwidthInMbps": 10000, + "peeringDBFacilityId": 99999, + "bgpSession": { + "sessionPrefixV4": "192.168.0.0/31", + "sessionPrefixV6": "fd00::0/127", + "maxPrefixesAdvertisedV4": 1000, + "maxPrefixesAdvertisedV6": 100, + "md5AuthenticationKey": "test-md5-auth-key" + }, + "connectionIdentifier": "00000000-0000-0000-0000-000000000000" + }, + { + "bandwidthInMbps": 10000, + "peeringDBFacilityId": 99999, + "bgpSession": { + "sessionPrefixV4": "192.168.1.0/31", + "sessionPrefixV6": "fd00::2/127", + "maxPrefixesAdvertisedV4": 1000, + "maxPrefixesAdvertisedV6": 100, + "md5AuthenticationKey": "test-md5-auth-key" + }, + "connectionIdentifier": "00000000-0000-0000-0000-000000000000" + } + ], + "useForPeeringService": false, + "peerAsn": { + "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1" + } + }, + "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, + "peeringDBFacilityId": 99999, + "connectionState": "Active", + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "bandwidthInMbps": 10000, + "provisionedBandwidthInMbps": 10000, + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "useForPeeringService": false, + "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_Direct_Free", + "tier": "Basic", + "family": "Direct", + "size": "Free" + }, + "kind": "Direct", + "properties": { + "direct": { + "connections": [ + { + "bandwidthInMbps": 10000, + "provisionedBandwidthInMbps": 0, + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "bandwidthInMbps": 10000, + "provisionedBandwidthInMbps": 0, + "peeringDBFacilityId": 99999, + "connectionState": "PendingApproval", + "bgpSession": { + "sessionPrefixV4": "192.168.1.0/31", + "sessionPrefixV6": "fd00::2/127", + "sessionStateV4": "PendingAdd", + "sessionStateV6": "PendingAdd", + "maxPrefixesAdvertisedV4": 1000, + "maxPrefixesAdvertisedV6": 100, + "md5AuthenticationKey": "test-md5-auth-key" + }, + "connectionIdentifier": "00000000-0000-0000-0000-000000000000" + } + ], + "useForPeeringService": false, + "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/preview/2019-07-01-preview/examples/CreateExchangePeering.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/CreateExchangePeering.json new file mode 100644 index 000000000000..c7d7f83e48d4 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/CreateExchangePeering.json @@ -0,0 +1,165 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringName": "peeringName", + "api-version": "2019-07-01-preview", + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "peeringDBFacilityId": 99999, + "bgpSession": { + "peerSessionIPv4Address": "192.168.2.2", + "peerSessionIPv6Address": "fd00::2", + "maxPrefixesAdvertisedV4": 1000, + "maxPrefixesAdvertisedV6": 100, + "md5AuthenticationKey": "test-md5-auth-key" + }, + "connectionIdentifier": "00000000-0000-0000-0000-000000000000" + } + ], + "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": "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": "00000000-0000-0000-0000-000000000000" + }, + { + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "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/preview/2019-07-01-preview/examples/CreatePeerAsn.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/CreatePeerAsn.json new file mode 100644 index 000000000000..249f3b97f61e --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/CreatePeerAsn.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "subscriptionId": "subId", + "peerAsnName": "peerAsnName", + "api-version": "2019-07-01-preview", + "peerAsn": { + "properties": { + "peerAsn": 65000, + "peerContactInfo": { + "emails": [ + "abc@contoso.com", + "xyz@contoso.com" + ], + "phone": [ + "+1 (234) 567-8900" + ] + }, + "peerName": "Contoso" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "peerAsn": 65000, + "peerContactInfo": { + "emails": [ + "abc@contoso.com", + "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, + "peerContactInfo": { + "emails": [ + "abc@contoso.com", + "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/preview/2019-07-01-preview/examples/CreatePeeringService.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/CreatePeeringService.json new file mode 100644 index 000000000000..1efc460ea9b0 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/CreatePeeringService.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringServiceName": "peeringServiceName", + "api-version": "2019-07-01-preview", + "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/preview/2019-07-01-preview/examples/CreatePeeringServicePrefix.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/CreatePeeringServicePrefix.json new file mode 100644 index 000000000000..bffc1191f187 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/CreatePeeringServicePrefix.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringServiceName": "peeringServiceName", + "prefixName": "peeringServicePrefixName", + "api-version": "2019-07-01-preview", + "peeringServicePrefix": { + "properties": { + "prefix": "192.168.1.0/24" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "prefix": "192.168.1.0/24", + "prefixValidationState": "Pending", + "learnedType": "None", + "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": "Pending", + "learnedType": "None", + "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/preview/2019-07-01-preview/examples/DeletePeerAsn.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/DeletePeerAsn.json new file mode 100644 index 000000000000..12f03005fd6d --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/DeletePeerAsn.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subId", + "peerAsnName": "peerAsnName", + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/DeletePeering.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/DeletePeering.json new file mode 100644 index 000000000000..793b15305759 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/DeletePeering.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringName": "peeringName", + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/DeletePeeringService.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/DeletePeeringService.json new file mode 100644 index 000000000000..5f20e510723d --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/DeletePeeringService.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringServiceName": "peeringServiceName", + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/DeletePeeringServicePrefix.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/DeletePeeringServicePrefix.json new file mode 100644 index 000000000000..d830cd21c637 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/DeletePeeringServicePrefix.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringServiceName": "peeringServiceName", + "prefixName": "peeringServicePrefixName", + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/GetPeerAsn.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/GetPeerAsn.json new file mode 100644 index 000000000000..c36273735773 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/GetPeerAsn.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "subId", + "peerAsnName": "peerAsnName", + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "peerAsn": 65000, + "peerContactInfo": { + "emails": [ + "abc@contoso.com", + "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/preview/2019-07-01-preview/examples/GetPeering.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/GetPeering.json new file mode 100644 index 000000000000..7d5f15a249ba --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/GetPeering.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringName": "peeringName", + "api-version": "2019-07-01-preview" + }, + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "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/preview/2019-07-01-preview/examples/GetPeeringService.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/GetPeeringService.json new file mode 100644 index 000000000000..3cfda6907ead --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/GetPeeringService.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringServiceName": "peeringServiceName", + "api-version": "2019-07-01-preview" + }, + "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/preview/2019-07-01-preview/examples/GetPeeringServicePrefix.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/GetPeeringServicePrefix.json new file mode 100644 index 000000000000..8e724029d220 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/GetPeeringServicePrefix.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringServiceName": "peeringServiceName", + "prefixName": "peeringServicePrefixName", + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "prefix": "192.168.1.0/24", + "prefixValidationState": "Verified", + "learnedType": "None", + "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/preview/2019-07-01-preview/examples/ListDirectPeeringLocations.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListDirectPeeringLocations.json new file mode 100644 index 000000000000..f3c0fbb93f27 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListDirectPeeringLocations.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "subId", + "kind": "Direct", + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "kind": "Direct", + "properties": { + "direct": { + "peeringFacilities": [ + { + "address": "address1", + "peeringDBFacilityId": 99999, + "peeringDBFacilityLink": "https://www.peeringdb.com/fac/99999" + }, + { + "address": "address3", + "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", + "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/preview/2019-07-01-preview/examples/ListExchangePeeringLocations.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListExchangePeeringLocations.json new file mode 100644 index 000000000000..5ee92220e9ce --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListExchangePeeringLocations.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "subId", + "kind": "Exchange", + "api-version": "2019-07-01-preview" + }, + "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/preview/2019-07-01-preview/examples/ListLegacyPeerings.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListLegacyPeerings.json new file mode 100644 index 000000000000..ec7061d5662b --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListLegacyPeerings.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "subId", + "kind": "Exchange", + "peeringLocation": "peeringLocation0", + "api-version": "2019-07-01-preview" + }, + "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" + } + }, + { + "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" + } + } + ], + "peerAsn": { + "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1" + } + }, + "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/preview/2019-07-01-preview/examples/ListPeerAsnsBySubscription.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeerAsnsBySubscription.json new file mode 100644 index 000000000000..612d10dc0b17 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeerAsnsBySubscription.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "subId", + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "peerAsn": 65000, + "peerContactInfo": { + "emails": [ + "abc@contoso.com", + "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/preview/2019-07-01-preview/examples/ListPeeringOperations.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringOperations.json new file mode 100644 index 000000000000..6fd41e1420bc --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringOperations.json @@ -0,0 +1,183 @@ +{ + "parameters": { + "api-version": "2019-07-01-preview" + }, + "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 + } + ] + } + } + } +} diff --git a/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringServiceLocations.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringServiceLocations.json new file mode 100644 index 000000000000..de72df88ba8c --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringServiceLocations.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "subId", + "api-version": "2019-07-01-preview" + }, + "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/preview/2019-07-01-preview/examples/ListPeeringServiceProviders.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringServiceProviders.json new file mode 100644 index 000000000000..e3f546d0c3a0 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringServiceProviders.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "subId", + "api-version": "2019-07-01-preview" + }, + "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/preview/2019-07-01-preview/examples/ListPeeringServicesByResourceGroup.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringServicesByResourceGroup.json new file mode 100644 index 000000000000..6a2b27b1554c --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringServicesByResourceGroup.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "api-version": "2019-07-01-preview" + }, + "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/preview/2019-07-01-preview/examples/ListPeeringServicesBySubscription.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringServicesBySubscription.json new file mode 100644 index 000000000000..45aa404d2ac5 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringServicesBySubscription.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "subId", + "api-version": "2019-07-01-preview" + }, + "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/preview/2019-07-01-preview/examples/ListPeeringsByResourceGroup.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringsByResourceGroup.json new file mode 100644 index 000000000000..85f5e0601c1b --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringsByResourceGroup.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "api-version": "2019-07-01-preview" + }, + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "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/preview/2019-07-01-preview/examples/ListPeeringsBySubscription.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringsBySubscription.json new file mode 100644 index 000000000000..37355aca7e6a --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPeeringsBySubscription.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "subId", + "api-version": "2019-07-01-preview" + }, + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "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/preview/2019-07-01-preview/examples/ListPrefixesByPeeringService.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPrefixesByPeeringService.json new file mode 100644 index 000000000000..64e234380a94 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/ListPrefixesByPeeringService.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringServiceName": "peeringServiceName", + "api-version": "2019-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "prefix": "192.168.1.0/24", + "prefixValidationState": "Verified", + "learnedType": "None", + "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": "None", + "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/preview/2019-07-01-preview/examples/UpdatePeeringServiceTags.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/UpdatePeeringServiceTags.json new file mode 100644 index 000000000000..8553c1447a3e --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/UpdatePeeringServiceTags.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringServiceName": "peeringServiceName", + "api-version": "2019-07-01-preview", + "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/preview/2019-07-01-preview/examples/UpdatePeeringTags.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/UpdatePeeringTags.json new file mode 100644 index 000000000000..474fce2ad29c --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/examples/UpdatePeeringTags.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "peeringName": "peeringName", + "api-version": "2019-07-01-preview", + "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": "00000000-0000-0000-0000-000000000000" + }, + { + "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": "00000000-0000-0000-0000-000000000000" + } + ], + "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/preview/2019-07-01-preview/peering.json b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/peering.json new file mode 100644 index 000000000000..7562942bdf27 --- /dev/null +++ b/specification/peering/resource-manager/Microsoft.Peering/preview/2019-07-01-preview/peering.json @@ -0,0 +1,2389 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-07-01-preview", + "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 distance of customer's location", + "operationId": "CheckServiceProviderAvailability", + "parameters": [ + { + "name": "checkServiceProviderAvailabilityInput", + "in": "body", + "description": "The CheckServiceProviderAvailabilityInput.", + "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" + ] + }, + { + "$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" + ] + }, + { + "$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}": { + "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" + } + } + }, + "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}/providers/Microsoft.Peering/peeringServiceLocations": { + "get": { + "tags": [ + "PeeringServiceLocations" + ], + "description": "Lists all of the available peering service locations for the specified kind of peering.", + "operationId": "PeeringServiceLocations_List", + "parameters": [ + { + "$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/ListPeeringServiceLocations.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}": { + "get": { + "tags": [ + "PeeringServicePrefixes" + ], + "description": "Gets the peering service prefix.", + "operationId": "PeeringServicePrefixes_Get", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "description": "The resource group name.", + "required": true, + "type": "string" + }, + { + "name": "peeringServiceName", + "in": "path", + "description": "The peering service name.", + "required": true, + "type": "string" + }, + { + "name": "prefixName", + "in": "path", + "description": "The prefix name.", + "required": true, + "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 or updates the peering prefix.", + "operationId": "PeeringServicePrefixes_CreateOrUpdate", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "description": "The resource group name.", + "required": true, + "type": "string" + }, + { + "name": "peeringServiceName", + "in": "path", + "description": "The peering service name.", + "required": true, + "type": "string" + }, + { + "name": "prefixName", + "in": "path", + "description": "The prefix name", + "required": true, + "type": "string" + }, + { + "name": "peeringServicePrefix", + "in": "body", + "description": "The IP prefix for an peering", + "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": "removes the peering prefix.", + "operationId": "PeeringServicePrefixes_Delete", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "description": "The resource group name.", + "required": true, + "type": "string" + }, + { + "name": "peeringServiceName", + "in": "path", + "description": "The peering service name.", + "required": true, + "type": "string" + }, + { + "name": "prefixName", + "in": "path", + "description": "The prefix name", + "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 the peerings prefix in the resource group.", + "operationId": "Prefixes_ListByPeeringService", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "description": "The resource group name.", + "required": true, + "type": "string" + }, + { + "name": "peeringServiceName", + "in": "path", + "description": "The peering service name.", + "required": true, + "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 PeeringServiceLocation", + "type": "string" + }, + "peeringServiceProvider": { + "description": "Gets or sets the PeeringServiceProvider", + "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.", + "enum": [ + "Basic_Exchange_Free", + "Basic_Direct_Free", + "Premium_Direct_Free", + "Premium_Exchange_Metered" + ], + "type": "string", + "x-ms-enum": { + "name": "name", + "modelAsString": true + } + }, + "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" + }, + "peerAsn": { + "$ref": "#/definitions/SubResource", + "description": "The reference of the peer ASN." + } + } + }, + "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" + }, + "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" + } + } + }, + "ErrorResponse": { + "description": "The error response that indicates 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 + }, + "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" + } + } + }, + "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", + "readOnly": true + }, + "microsoftSessionIPv6Address": { + "description": "The IPv6 session address on Microsoft's end.", + "type": "string", + "readOnly": true + }, + "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" + }, + "peerContactInfo": { + "$ref": "#/definitions/ContactInfo", + "description": "The contact information of the peer." + }, + "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 + } + } + } + }, + "ContactInfo": { + "description": "The contact information of the peer.", + "type": "object", + "properties": { + "emails": { + "description": "The list of email addresses.", + "type": "array", + "items": { + "type": "string" + } + }, + "phone": { + "description": "The list of contact numbers.", + "type": "array", + "items": { + "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" + }, + "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" + } + } + }, + "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" + } + } + } + }, + "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": "PeeringService 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": "Valid route prefix", + "type": "string" + }, + "prefixValidationState": { + "description": "The prefix validation state", + "enum": [ + "None", + "Invalid", + "Verified", + "Failed", + "Pending", + "Unknown" + ], + "type": "string", + "x-ms-enum": { + "name": "prefixValidationState", + "modelAsString": true + } + }, + "learnedType": { + "description": "The prefix learned type", + "enum": [ + "None", + "ViaPartner", + "ViaSession" + ], + "type": "string", + "x-ms-enum": { + "name": "learnedType", + "modelAsString": 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 + } + } + } + }, + "PeeringServicePrefixListResult": { + "description": "The paginated list of [T].", + "type": "object", + "properties": { + "value": { + "description": "The list of [T].", + "type": "array", + "items": { + "$ref": "#/definitions/PeeringServicePrefix" + } + }, + "nextLink": { + "description": "The link to fetch the next page of [T].", + "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": { + "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" + } + } + } + }, + "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" + } + } + } + }, + "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.csharp.md b/specification/peering/resource-manager/readme.csharp.md index 224a3d49ed46..ebf7488d5000 100644 --- a/specification/peering/resource-manager/readme.csharp.md +++ b/specification/peering/resource-manager/readme.csharp.md @@ -10,6 +10,6 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.Peering payload-flattening-threshold: 2 - output-folder: $(csharp-sdks-folder)/Peering/Management.Peering/Generated + output-folder: $(csharp-sdks-folder)/peering/Microsoft.Azure.Management.Peering/src/Generated clear-output-folder: true ``` diff --git a/specification/peering/resource-manager/readme.md b/specification/peering/resource-manager/readme.md index 5b5e9606cd69..c103831616f4 100644 --- a/specification/peering/resource-manager/readme.md +++ b/specification/peering/resource-manager/readme.md @@ -1,11 +1,9 @@ # Peering - + > see https://aka.ms/autorest This is the AutoRest configuration file for Peering. - - --- ## Getting Started To build the SDK for Peering, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: @@ -28,6 +26,16 @@ These are the global settings for the Peering API. openapi-type: arm tag: package-2019-03-01-preview ``` +or +``` yaml +openapi-type: arm +tag: package-2019-06-01-preview +``` +or +``` yaml +openapi-type: arm +tag: package-2019-07-01-preview +``` ### Tag: package-2019-03-01-preview @@ -37,8 +45,24 @@ These settings apply only when `--tag=package-2019-03-01-preview` is specified o input-file: - Microsoft.Peering/preview/2019-03-01-preview/peering.json ``` -# Code Generation +### Tag: package-2019-06-01-preview + +These settings apply only when `--tag=package-2019-06-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2019-06-01-preview' +input-file: +- Microsoft.Peering/preview/2019-06-01-preview/peering.json +``` +### Tag: package-2019-07-01-preview + +These settings apply only when `--tag=package-2019-07-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2019-07-01-preview' +input-file: +- Microsoft.Peering/preview/2019-07-01-preview/peering.json +``` +# Code Generation ## Swagger to SDK @@ -58,7 +82,6 @@ swagger-to-sdk: - bundle install && rake arm:regen_all_profiles['azure_mgmt_peering'] ``` - ## C# See configuration in [readme.csharp.md](./readme.csharp.md) @@ -66,4 +89,29 @@ See configuration in [readme.csharp.md](./readme.csharp.md) ## Go See configuration in [readme.go.md](./readme.go.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.Peering/preview/2019-03-01-preview/peering.json + - $(this-folder)/Microsoft.Peering/preview/2019-06-01-preview/peering.json + - $(this-folder)/Microsoft.Peering/preview/2019-07-01-preview/peering.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/peering/resource-manager/readme.typescript.md b/specification/peering/resource-manager/readme.typescript.md index 71f9b8479b24..539f0bf8d32f 100644 --- a/specification/peering/resource-manager/readme.typescript.md +++ b/specification/peering/resource-manager/readme.typescript.md @@ -9,6 +9,6 @@ typescript: license-header: MICROSOFT_MIT_NO_VERSION payload-flattening-threshold: 2 package-name: "@azure/arm-peering" - output-folder: "$(typescript-sdks-folder)/packages/@azure/arm-peering" + output-folder: "$(typescript-sdks-folder)/sdk/peering/arm-peering" generate-metadata: true ``` diff --git a/specification/policyinsights/resource-manager/readme.md b/specification/policyinsights/resource-manager/readme.md index 7aac5087fc1f..befba460552e 100644 --- a/specification/policyinsights/resource-manager/readme.md +++ b/specification/policyinsights/resource-manager/readme.md @@ -125,6 +125,7 @@ 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 @@ -226,3 +227,38 @@ regenerate-manager: true generate-interface: 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)/Microsoft.PolicyInsights/preview/2018-07-01-preview/policyTrackedResources.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/policyStates.json + - $(this-folder)/Microsoft.PolicyInsights/stable/2018-04-04/policyStates.json + - $(this-folder)/Microsoft.PolicyInsights/preview/2017-12-12-preview/policyEvents.json + - $(this-folder)/Microsoft.PolicyInsights/preview/2017-12-12-preview/policyStates.json + - $(this-folder)/Microsoft.PolicyInsights/preview/2017-10-17-preview/policyEvents.json + - $(this-folder)/Microsoft.PolicyInsights/preview/2017-10-17-preview/policyStates.json + - $(this-folder)/Microsoft.PolicyInsights/preview/2017-08-09-preview/policyEvents.json + - $(this-folder)/Microsoft.PolicyInsights/preview/2017-08-09-preview/policyStates.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/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/createOrUpdateDashboard.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/createOrUpdateDashboard.json similarity index 98% rename from specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/createOrUpdateDashboard.json rename to specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/createOrUpdateDashboard.json index 97febeb0ec39..067e2aea94b2 100644 --- a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/createOrUpdateDashboard.json +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/createOrUpdateDashboard.json @@ -2,7 +2,7 @@ "parameters": { "dashboardName": "testDashboard", "resourceGroupName": "testRG", - "api-version": "2015-11-01-preview", + "api-version": "2015-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "dashboard": { "properties": { diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/deleteDashboard.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/deleteDashboard.json similarity index 83% rename from specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/deleteDashboard.json rename to specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/deleteDashboard.json index 28bd0c84a311..c224123f0b51 100644 --- a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/deleteDashboard.json +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/deleteDashboard.json @@ -2,7 +2,7 @@ "parameters": { "dashboardName": "testDashboard", "resourceGroupName": "testRG", - "api-version": "2015-11-01-preview", + "api-version": "2015-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/getDashboard.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/getDashboard.json similarity index 97% rename from specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/getDashboard.json rename to specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/getDashboard.json index 94ec6fa9a352..04aed0fd3933 100644 --- a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/getDashboard.json +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/getDashboard.json @@ -2,7 +2,7 @@ "parameters": { "dashboardName": "testDashboard", "resourceGroupName": "testRG", - "api-version": "2015-11-01-preview", + "api-version": "2015-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/listDashboardsByResourceGroup.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/listDashboardsByResourceGroup.json similarity index 98% rename from specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/listDashboardsByResourceGroup.json rename to specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/listDashboardsByResourceGroup.json index c859f46aa117..ea92c2e1edc8 100644 --- a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/listDashboardsByResourceGroup.json +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/listDashboardsByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "resourceGroupName": "testRG", - "api-version": "2015-11-01-preview", + "api-version": "2015-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/listDashboardsBySubscription.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/listDashboardsBySubscription.json similarity index 98% rename from specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/listDashboardsBySubscription.json rename to specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/listDashboardsBySubscription.json index 0ae89283c2c4..5b8fbb0eeb56 100644 --- a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/listDashboardsBySubscription.json +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/listDashboardsBySubscription.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2015-11-01-preview", + "api-version": "2015-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/operationsList.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/operationsList.json similarity index 97% rename from specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/operationsList.json rename to specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/operationsList.json index 44225b6e3bbf..0bf1bff7c299 100644 --- a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/operationsList.json +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/operationsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2015-11-01-preview" + "api-version": "2015-08-01-preview" }, "responses": { "200": { diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/updateDashboard.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/updateDashboard.json similarity index 97% rename from specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/updateDashboard.json rename to specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/updateDashboard.json index ccdac4a24227..2fe424718590 100644 --- a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/updateDashboard.json +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/examples/updateDashboard.json @@ -2,7 +2,7 @@ "parameters": { "dashboardName": "testDashboard", "resourceGroupName": "testRG", - "api-version": "2015-11-01-preview", + "api-version": "2015-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "dashboard": { "tags": { diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/portal.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/portal.json new file mode 100644 index 000000000000..636054f232fc --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2015-08-01-preview/portal.json @@ -0,0 +1,686 @@ +{ + "swagger": "2.0", + "info": { + "version": "2015-08-01-preview", + "title": "portal", + "description": "Allows creation and deletion of Azure Shared Dashboards.", + "x-ms-code-generation-settings": { + "name": "PortalClient" + } + }, + "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.Portal/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "List the portal operations": { + "$ref": "examples/operationsList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "description": "The Microsoft Portal operations API.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/ResourceProviderOperationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}": { + "put": { + "tags": [ + "Dashboard" + ], + "operationId": "Dashboards_CreateOrUpdate", + "x-ms-examples": { + "Create or update a Dashboard": { + "$ref": "examples/createOrUpdateDashboard.json" + } + }, + "description": "Creates or updates a Dashboard.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DashboardNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "dashboard", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Dashboard" + }, + "description": "The parameters required to create or update a dashboard." + } + ], + "responses": { + "201": { + "description": "Created response definition. Resource has been created", + "schema": { + "$ref": "#/definitions/Dashboard" + } + }, + "200": { + "description": "Resource already exists.", + "schema": { + "$ref": "#/definitions/Dashboard" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "delete": { + "tags": [ + "Dashboard" + ], + "operationId": "Dashboards_Delete", + "x-ms-examples": { + "Delete a Dashboard": { + "$ref": "examples/deleteDashboard.json" + } + }, + "description": "Deletes the Dashboard.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DashboardNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition." + }, + "204": { + "description": "OK resource was not found." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "get": { + "tags": [ + "Dashboard" + ], + "operationId": "Dashboards_Get", + "x-ms-examples": { + "Get a Dashboard": { + "$ref": "examples/getDashboard.json" + } + }, + "description": "Gets the Dashboard.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DashboardNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Dashboard" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "patch": { + "tags": [ + "Dashboard" + ], + "operationId": "Dashboards_Update", + "x-ms-examples": { + "Update a Dashboard": { + "$ref": "examples/updateDashboard.json" + } + }, + "description": "Updates an existing Dashboard.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DashboardNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "dashboard", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PatchableDashboard" + }, + "description": "The updatable fields of a Dashboard." + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Dashboard" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards": { + "get": { + "tags": [ + "Dashboard" + ], + "operationId": "Dashboards_ListByResourceGroup", + "x-ms-examples": { + "List all custom resource providers on the resourceGroup": { + "$ref": "examples/listDashboardsByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "description": "Gets all the Dashboards within a resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of Dashboards.", + "schema": { + "$ref": "#/definitions/DashboardListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Portal/dashboards": { + "get": { + "tags": [ + "Dashboard" + ], + "operationId": "Dashboards_ListBySubscription", + "x-ms-examples": { + "List all custom resource providers on the subscription": { + "$ref": "examples/listDashboardsBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "description": "Gets all the dashboards within a subscription.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of dashboards.", + "schema": { + "$ref": "#/definitions/DashboardListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + } + }, + "definitions": { + "DashboardListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Dashboard" + }, + "description": "The array of custom resource provider manifests." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of dashboards." + }, + "DashboardParts": { + "type": "object", + "description": "A dashboard part.", + "required": [ + "position" + ], + "properties": { + "position": { + "type": "object", + "required": [ + "x", + "y", + "rowSpan", + "colSpan" + ], + "description": "The dashboard's part position.", + "properties": { + "x": { + "type": "number", + "description": "The dashboard's part x coordinate." + }, + "y": { + "type": "number", + "description": "The dashboard's part y coordinate." + }, + "rowSpan": { + "type": "number", + "description": "The dashboard's part row span." + }, + "colSpan": { + "type": "number", + "description": "The dashboard's part column span." + }, + "metadata": { + "description": "The dashboard part's metadata.", + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, + "metadata": { + "description": "The dashboard part's metadata.", + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, + "DashboardLens": { + "type": "object", + "description": "A dashboard lens.", + "required": [ + "order", + "parts" + ], + "properties": { + "order": { + "type": "integer", + "description": "The lens order." + }, + "parts": { + "type": "object", + "description": "The dashboard parts.", + "additionalProperties": { + "$ref": "#/definitions/DashboardParts" + } + }, + "metadata": { + "description": "The dashboard len's metadata.", + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, + "DashboardProperties": { + "type": "object", + "description": "The shared dashboard properties.", + "properties": { + "lenses": { + "type": "object", + "description": "The dashboard lenses.", + "additionalProperties": { + "$ref": "#/definitions/DashboardLens" + } + }, + "metadata": { + "description": "The dashboard metadata.", + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, + "Dashboard": { + "type": "object", + "description": "The shared dashboard resource definition.", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "required": [ + "location" + ], + "properties": { + "properties": { + "description": "The shared dashboard properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DashboardProperties" + }, + "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" + } + } + }, + "PatchableDashboard": { + "type": "object", + "description": "The shared dashboard resource definition.", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "properties": { + "properties": { + "description": "The shared dashboard properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DashboardProperties" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + } + }, + "ResourceProviderOperationList": { + "type": "object", + "description": "Results of the request to list operations.", + "readOnly": true, + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceProviderOperation" + }, + "description": "List of operations supported by this resource provider." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + } + }, + "ResourceProviderOperation": { + "type": "object", + "description": "Supported operations of this resource provider.", + "readOnly": true, + "properties": { + "name": { + "description": "Operation name, in format of {provider}/{resource}/{operation}", + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation applies to data-plane.", + "type": "string" + }, + "display": { + "description": "Display metadata associated with the operation.", + "properties": { + "provider": { + "description": "Resource provider: Microsoft Custom Providers.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed.", + "type": "string" + }, + "operation": { + "description": "Type of operation: get, read, delete, etc.", + "type": "string" + }, + "description": { + "description": "Description of this operation.", + "type": "string" + } + } + } + } + }, + "ErrorResponse": { + "type": "object", + "description": "Error response.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinition", + "description": "The error details." + } + } + }, + "ErrorDefinition": { + "type": "object", + "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", + "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" + }, + "DashboardNameParameter": { + "name": "dashboardName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dashboard.", + "minLength": 3, + "maxLength": 64, + "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." + } + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/createOrUpdateDashboard.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/createOrUpdateDashboard.json new file mode 100644 index 000000000000..2df1a9a604bd --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/createOrUpdateDashboard.json @@ -0,0 +1,152 @@ +{ + "parameters": { + "dashboardName": "testDashboard", + "resourceGroupName": "testRG", + "api-version": "2018-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "dashboard": { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", + "name": "testDashboard", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + } + }, + "200": { + "body": { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", + "name": "testDashboard", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + } + } + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/deleteDashboard.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/deleteDashboard.json new file mode 100644 index 000000000000..2a179869244f --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/deleteDashboard.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "dashboardName": "testDashboard", + "resourceGroupName": "testRG", + "api-version": "2018-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/getDashboard.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/getDashboard.json new file mode 100644 index 000000000000..b76f427bf373 --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/getDashboard.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "dashboardName": "testDashboard", + "resourceGroupName": "testRG", + "api-version": "2018-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", + "name": "testDashboard", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + } + } + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/listDashboardsByResourceGroup.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/listDashboardsByResourceGroup.json new file mode 100644 index 000000000000..b71fd5abfafa --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/listDashboardsByResourceGroup.json @@ -0,0 +1,109 @@ +{ + "parameters": { + "resourceGroupName": "testRG", + "api-version": "2018-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", + "name": "testDashboard", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + }, + { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard2", + "name": "testDashboard2", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + } + ] + } + } + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/listDashboardsBySubscription.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/listDashboardsBySubscription.json new file mode 100644 index 000000000000..5b1541eb2a0f --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/listDashboardsBySubscription.json @@ -0,0 +1,108 @@ +{ + "parameters": { + "api-version": "2018-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", + "name": "testDashboard", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + }, + { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard2", + "name": "testDashboard2", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + } + ] + } + } + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/operationsList.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/operationsList.json new file mode 100644 index 000000000000..0fd64475a7e5 --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/operationsList.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2018-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Portal/dashboards/read", + "isDataAction": "false", + "display": { + "provider": "Microsoft Portal", + "resource": "Dashboards", + "operation": "Get Dashboard", + "description": "Reads the dashboards for the subscription." + } + }, + { + "name": "Microsoft.Portal/dashboards/write", + "isDataAction": "false", + "display": { + "provider": "Microsoft Portal", + "resource": "Dashboards", + "operation": "Set Dashboard", + "description": "Add or modify dashboard to a subscription." + } + }, + { + "name": "Microsoft.Portal/dashboards/delete", + "isDataAction": "false", + "display": { + "provider": "Microsoft Portal", + "resource": "Dashboards", + "operation": "Delete Dashboard", + "description": "Removes the dashboard from the subscription." + } + }, + { + "name": "Microsoft.Portal/register/action", + "isDataAction": "false", + "display": { + "provider": "Microsoft Portal", + "resource": "Portal Resource Provider", + "operation": "Registers the Portal Resource Provider", + "description": "Registers the subscription for the portal resource provider and enables shared dashboards." + } + } + ] + } + } + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/updateDashboard.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/updateDashboard.json new file mode 100644 index 000000000000..535e0ccc6da9 --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/examples/updateDashboard.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "dashboardName": "testDashboard", + "resourceGroupName": "testRG", + "api-version": "2018-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "dashboard": { + "tags": { + "aKey": "bValue", + "anotherKey": "anotherValue2" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", + "name": "testDashboard", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "bValue", + "anotherKey": "anotherValue2" + } + } + } + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/portal.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/portal.json similarity index 98% rename from specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/portal.json rename to specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/portal.json index 37d6cc814f94..9cdb59dd9cec 100644 --- a/specification/portal/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/portal.json +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2018-10-01-preview/portal.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2015-11-01-preview", + "version": "2018-10-01-preview", "title": "portal", "description": "Allows creation and deletion of Azure Shared Dashboards.", "x-ms-code-generation-settings": { @@ -379,6 +379,7 @@ }, "definitions": { "DashboardListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -395,6 +396,7 @@ "description": "List of dashboards." }, "DashboardParts": { + "type": "object", "description": "A dashboard part.", "required": [ "position" @@ -445,6 +447,7 @@ } }, "DashboardLens": { + "type": "object", "description": "A dashboard lens.", "required": [ "order", @@ -472,6 +475,7 @@ } }, "DashboardProperties": { + "type": "object", "description": "The shared dashboard properties.", "properties": { "lenses": { @@ -491,6 +495,7 @@ } }, "Dashboard": { + "type": "object", "description": "The shared dashboard resource definition.", "x-ms-azure-resource": true, "x-ms-client-flatten": true, @@ -536,6 +541,7 @@ } }, "PatchableDashboard": { + "type": "object", "description": "The shared dashboard resource definition.", "x-ms-azure-resource": true, "x-ms-client-flatten": true, @@ -555,6 +561,7 @@ } }, "ResourceProviderOperationList": { + "type": "object", "description": "Results of the request to list operations.", "readOnly": true, "properties": { @@ -572,6 +579,7 @@ } }, "ResourceProviderOperation": { + "type": "object", "description": "Supported operations of this resource provider.", "readOnly": true, "properties": { @@ -607,6 +615,7 @@ } }, "ErrorResponse": { + "type": "object", "description": "Error response.", "properties": { "error": { @@ -616,6 +625,7 @@ } }, "ErrorDefinition": { + "type": "object", "description": "Error definition.", "properties": { "code": { diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/createOrUpdateDashboard.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/createOrUpdateDashboard.json new file mode 100644 index 000000000000..47560e5e03dd --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/createOrUpdateDashboard.json @@ -0,0 +1,152 @@ +{ + "parameters": { + "dashboardName": "testDashboard", + "resourceGroupName": "testRG", + "api-version": "2019-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "dashboard": { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", + "name": "testDashboard", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + } + }, + "200": { + "body": { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", + "name": "testDashboard", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + } + } + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/deleteDashboard.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/deleteDashboard.json new file mode 100644 index 000000000000..f0d8b74e0047 --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/deleteDashboard.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "dashboardName": "testDashboard", + "resourceGroupName": "testRG", + "api-version": "2019-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/getDashboard.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/getDashboard.json new file mode 100644 index 000000000000..b397a514c868 --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/getDashboard.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "dashboardName": "testDashboard", + "resourceGroupName": "testRG", + "api-version": "2019-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", + "name": "testDashboard", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + } + } + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/listDashboardsByResourceGroup.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/listDashboardsByResourceGroup.json new file mode 100644 index 000000000000..4aef8665fdd7 --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/listDashboardsByResourceGroup.json @@ -0,0 +1,109 @@ +{ + "parameters": { + "resourceGroupName": "testRG", + "api-version": "2019-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", + "name": "testDashboard", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + }, + { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard2", + "name": "testDashboard2", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + } + ] + } + } + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/listDashboardsBySubscription.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/listDashboardsBySubscription.json new file mode 100644 index 000000000000..d447e3b4ffeb --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/listDashboardsBySubscription.json @@ -0,0 +1,108 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", + "name": "testDashboard", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + }, + { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard2", + "name": "testDashboard2", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "aValue", + "anotherKey": "anotherValue" + } + } + ] + } + } + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/operationsList.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/operationsList.json new file mode 100644 index 000000000000..c95da08531ff --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/operationsList.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Portal/dashboards/read", + "isDataAction": "false", + "display": { + "provider": "Microsoft Portal", + "resource": "Dashboards", + "operation": "Get Dashboard", + "description": "Reads the dashboards for the subscription." + } + }, + { + "name": "Microsoft.Portal/dashboards/write", + "isDataAction": "false", + "display": { + "provider": "Microsoft Portal", + "resource": "Dashboards", + "operation": "Set Dashboard", + "description": "Add or modify dashboard to a subscription." + } + }, + { + "name": "Microsoft.Portal/dashboards/delete", + "isDataAction": "false", + "display": { + "provider": "Microsoft Portal", + "resource": "Dashboards", + "operation": "Delete Dashboard", + "description": "Removes the dashboard from the subscription." + } + }, + { + "name": "Microsoft.Portal/register/action", + "isDataAction": "false", + "display": { + "provider": "Microsoft Portal", + "resource": "Portal Resource Provider", + "operation": "Registers the Portal Resource Provider", + "description": "Registers the subscription for the portal resource provider and enables shared dashboards." + } + } + ] + } + } + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/updateDashboard.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/updateDashboard.json new file mode 100644 index 000000000000..b993eb1ae2e5 --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/examples/updateDashboard.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "dashboardName": "testDashboard", + "resourceGroupName": "testRG", + "api-version": "2019-01-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "dashboard": { + "tags": { + "aKey": "bValue", + "anotherKey": "anotherValue2" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "lenses": { + "aLens": { + "order": 1, + "parts": { + "aPart": { + "position": { + "x": 1, + "y": 2, + "rowSpan": 4, + "colSpan": 3 + } + }, + "bPart": { + "position": { + "x": 5, + "y": 5, + "rowSpan": 6, + "colSpan": 6 + } + } + } + }, + "bLens": { + "order": 2, + "parts": {} + } + }, + "metadata": { + "metadata": { + "X": 4, + "Y": 3, + "RowSpan": 1, + "ColSpan": 2 + } + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", + "name": "testDashboard", + "type": "Microsoft.Portal/dashboards", + "location": "eastus", + "tags": { + "aKey": "bValue", + "anotherKey": "anotherValue2" + } + } + } + } +} diff --git a/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/portal.json b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/portal.json new file mode 100644 index 000000000000..f3b50b3eb1c5 --- /dev/null +++ b/specification/portal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/portal.json @@ -0,0 +1,686 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-01-01-preview", + "title": "portal", + "description": "Allows creation and deletion of Azure Shared Dashboards.", + "x-ms-code-generation-settings": { + "name": "portalClient" + } + }, + "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.Portal/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "List the portal operations": { + "$ref": "examples/operationsList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "description": "The Microsoft Portal operations API.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/ResourceProviderOperationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}": { + "put": { + "tags": [ + "Dashboard" + ], + "operationId": "Dashboards_CreateOrUpdate", + "x-ms-examples": { + "Create or update a Dashboard": { + "$ref": "examples/createOrUpdateDashboard.json" + } + }, + "description": "Creates or updates a Dashboard.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DashboardNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "dashboard", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Dashboard" + }, + "description": "The parameters required to create or update a dashboard." + } + ], + "responses": { + "201": { + "description": "Created response definition. Resource has been created", + "schema": { + "$ref": "#/definitions/Dashboard" + } + }, + "200": { + "description": "Resource already exists.", + "schema": { + "$ref": "#/definitions/Dashboard" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "delete": { + "tags": [ + "Dashboard" + ], + "operationId": "Dashboards_Delete", + "x-ms-examples": { + "Delete a Dashboard": { + "$ref": "examples/deleteDashboard.json" + } + }, + "description": "Deletes the Dashboard.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DashboardNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition." + }, + "204": { + "description": "OK resource was not found." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "get": { + "tags": [ + "Dashboard" + ], + "operationId": "Dashboards_Get", + "x-ms-examples": { + "Get a Dashboard": { + "$ref": "examples/getDashboard.json" + } + }, + "description": "Gets the Dashboard.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DashboardNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Dashboard" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "patch": { + "tags": [ + "Dashboard" + ], + "operationId": "Dashboards_Update", + "x-ms-examples": { + "Update a Dashboard": { + "$ref": "examples/updateDashboard.json" + } + }, + "description": "Updates an existing Dashboard.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DashboardNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "dashboard", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PatchableDashboard" + }, + "description": "The updatable fields of a Dashboard." + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Dashboard" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards": { + "get": { + "tags": [ + "Dashboard" + ], + "operationId": "Dashboards_ListByResourceGroup", + "x-ms-examples": { + "List all custom resource providers on the resourceGroup": { + "$ref": "examples/listDashboardsByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "description": "Gets all the Dashboards within a resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of Dashboards.", + "schema": { + "$ref": "#/definitions/DashboardListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Portal/dashboards": { + "get": { + "tags": [ + "Dashboard" + ], + "operationId": "Dashboards_ListBySubscription", + "x-ms-examples": { + "List all custom resource providers on the subscription": { + "$ref": "examples/listDashboardsBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "description": "Gets all the dashboards within a subscription.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of dashboards.", + "schema": { + "$ref": "#/definitions/DashboardListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + } + }, + "definitions": { + "DashboardListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Dashboard" + }, + "description": "The array of custom resource provider manifests." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of dashboards." + }, + "DashboardParts": { + "type": "object", + "description": "A dashboard part.", + "required": [ + "position" + ], + "properties": { + "position": { + "type": "object", + "required": [ + "x", + "y", + "rowSpan", + "colSpan" + ], + "description": "The dashboard's part position.", + "properties": { + "x": { + "type": "number", + "description": "The dashboard's part x coordinate." + }, + "y": { + "type": "number", + "description": "The dashboard's part y coordinate." + }, + "rowSpan": { + "type": "number", + "description": "The dashboard's part row span." + }, + "colSpan": { + "type": "number", + "description": "The dashboard's part column span." + }, + "metadata": { + "description": "The dashboard part's metadata.", + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, + "metadata": { + "description": "The dashboard part's metadata.", + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, + "DashboardLens": { + "type": "object", + "description": "A dashboard lens.", + "required": [ + "order", + "parts" + ], + "properties": { + "order": { + "type": "integer", + "description": "The lens order." + }, + "parts": { + "type": "object", + "description": "The dashboard parts.", + "additionalProperties": { + "$ref": "#/definitions/DashboardParts" + } + }, + "metadata": { + "description": "The dashboard len's metadata.", + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, + "DashboardProperties": { + "type": "object", + "description": "The shared dashboard properties.", + "properties": { + "lenses": { + "type": "object", + "description": "The dashboard lenses.", + "additionalProperties": { + "$ref": "#/definitions/DashboardLens" + } + }, + "metadata": { + "description": "The dashboard metadata.", + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, + "Dashboard": { + "type": "object", + "description": "The shared dashboard resource definition.", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "required": [ + "location" + ], + "properties": { + "properties": { + "description": "The shared dashboard properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DashboardProperties" + }, + "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" + } + } + }, + "PatchableDashboard": { + "type": "object", + "description": "The shared dashboard resource definition.", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "properties": { + "properties": { + "description": "The shared dashboard properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DashboardProperties" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + } + }, + "ResourceProviderOperationList": { + "type": "object", + "description": "Results of the request to list operations.", + "readOnly": true, + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceProviderOperation" + }, + "description": "List of operations supported by this resource provider." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + } + }, + "ResourceProviderOperation": { + "type": "object", + "description": "Supported operations of this resource provider.", + "readOnly": true, + "properties": { + "name": { + "description": "Operation name, in format of {provider}/{resource}/{operation}", + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation applies to data-plane.", + "type": "string" + }, + "display": { + "description": "Display metadata associated with the operation.", + "properties": { + "provider": { + "description": "Resource provider: Microsoft Custom Providers.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed.", + "type": "string" + }, + "operation": { + "description": "Type of operation: get, read, delete, etc.", + "type": "string" + }, + "description": { + "description": "Description of this operation.", + "type": "string" + } + } + } + } + }, + "ErrorResponse": { + "type": "object", + "description": "Error response.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinition", + "description": "The error details." + } + } + }, + "ErrorDefinition": { + "type": "object", + "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", + "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" + }, + "DashboardNameParameter": { + "name": "dashboardName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the dashboard.", + "minLength": 3, + "maxLength": 64, + "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." + } + } +} diff --git a/specification/portal/resource-manager/readme.go.md b/specification/portal/resource-manager/readme.go.md index 2f294d04a728..8f2749c5c9b2 100644 --- a/specification/portal/resource-manager/readme.go.md +++ b/specification/portal/resource-manager/readme.go.md @@ -9,11 +9,38 @@ go: clear-output-folder: true ``` -### Tag: package-2015-11-01-preview and go +### Go multi-api -These settings apply only when `--tag=package-2015-11-01-preview --go` is specified on the command line. +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2019-01-01-preview + - tag: package-2018-10-01-preview + - tag: package-2015-08-01-preview +``` + +### Tag: package-2019-01-01-preview and go + +These settings apply only when `--tag=package-2019-01-01-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +```yaml $(tag) == 'package-2019-01-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-01-01-preview/$(namespace) +``` + +### Tag: package-2018-10-01-preview and go + +These settings apply only when `--tag=package-2018-10-01-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -```yaml $(tag) == 'package-2015-11-01-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2015-11-01-preview/$(namespace) +```yaml $(tag) == 'package-2018-10-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-10-01-preview/$(namespace) ``` + +### Tag: package-2015-08-01-preview and go + +These settings apply only when `--tag=package-2015-08-01-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +```yaml $(tag) == 'package-2015-08-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2015-08-01-preview/$(namespace) +``` \ No newline at end of file diff --git a/specification/portal/resource-manager/readme.md b/specification/portal/resource-manager/readme.md index 09102be41ac4..3ed8af1a6fa0 100644 --- a/specification/portal/resource-manager/readme.md +++ b/specification/portal/resource-manager/readme.md @@ -24,18 +24,36 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor These are the global settings for the portal. -```yaml +``` yaml openapi-type: arm -tag: package-2015-11-01-preview +tag: package-2019-01-01-preview ``` -### Tag: package-2015-11-01-preview +### Tag: package-2019-01-01-preview -These settings apply only when `--tag=package-2015-11-01-preview` is specified on the command line. +These settings apply only when `--tag=package-2019-01-01-preview` is specified on the command line. -```yaml $(tag) == 'package-2015-11-01-preview' +``` yaml $(tag) == 'package-2019-01-01-preview' input-file: - - Microsoft.Portal/preview/2015-11-01-preview/portal.json + - Microsoft.Portal/preview/2019-01-01-preview/portal.json +``` + +### Tag: package-2018-10-01-preview + +These settings apply only when `--tag=package-2018-10-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2018-10-01-preview' +input-file: + - Microsoft.Portal/preview/2018-10-01-preview/portal.json +``` + +### Tag: package-2015-08-01-preview + +These settings apply only when `--tag=package-2015-08-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2015-08-01-preview' +input-file: + - Microsoft.Portal/preview/2015-08-01-preview/portal.json ``` --- @@ -47,7 +65,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-python - repo: azure-sdk-for-java @@ -82,3 +100,30 @@ See configuration in [readme.csharp.md](./readme.csharp.md) ## NodeJS See configuration in [readme.nodejs.md](./readme.nodejs.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.Portal/preview/2019-01-01-preview/portal.json + - $(this-folder)/Microsoft.Portal/preview/2018-10-01-preview/portal.json + - $(this-folder)/Microsoft.Portal/preview/2015-08-01-preview/portal.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/portal/resource-manager/readme.python.md b/specification/portal/resource-manager/readme.python.md index 30501376cea9..e296c8e06256 100644 --- a/specification/portal/resource-manager/readme.python.md +++ b/specification/portal/resource-manager/readme.python.md @@ -10,7 +10,7 @@ python: payload-flattening-threshold: 2 namespace: Microsoft.Portal package-name: portal - package-version: 2015-11-01-preview + package-version: 2015-08-01-preview clear-output-folder: true ``` diff --git a/specification/portal/resource-manager/readme.ruby.md b/specification/portal/resource-manager/readme.ruby.md index 786d34bca721..f553af5a1b9d 100644 --- a/specification/portal/resource-manager/readme.ruby.md +++ b/specification/portal/resource-manager/readme.ruby.md @@ -4,16 +4,45 @@ These settings apply only when `--ruby` is specified on the command line. ```yaml package-name: azure_mgmt_portal -package-version: 2015-11-01-preview +package-version: 2015-08-01-preview azure-arm: true ``` -### Tag: package-2015-11-01-preview and ruby +### Ruby multi-api -These settings apply only when `--tag=package-2015-11-01-preview --ruby` is specified on the command line. +``` yaml $(ruby) && $(multiapi) +batch: + - tag: package-2019-01-01-preview + - tag: package-2018-10-01-preview + - tag: package-2015-08-01-preview +``` + +### Tag: package-2019-01-01-preview and ruby + +These settings apply only when `--tag=package-2019-01-01-preview --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +```yaml $(tag) == 'package-2019-01-01-preview' && $(ruby) +namespace: Microsoft.Portal +output-folder: $(ruby-sdks-folder)/portal +``` + +### Tag: package-2018-10-01-preview and ruby + +These settings apply only when `--tag=package-2018-10-01-preview --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +```yaml $(tag) == 'package-2018-10-01-preview' && $(ruby) +namespace: Microsoft.Portal +output-folder: $(ruby-sdks-folder)/portal +``` + +### Tag: package-2015-08-01-preview and ruby + +These settings apply only when `--tag=package-2015-08-01-preview --ruby` is specified on the command line. Please also specify `--ruby-sdks-folder=`. -```yaml $(tag) == 'package-2015-11-01-preview' && $(ruby) +```yaml $(tag) == 'package-2015-08-01-preview' && $(ruby) namespace: Microsoft.Portal output-folder: $(ruby-sdks-folder)/portal ``` diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2017-12-01-preview/examples/VirtualNetworkRulesDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2017-12-01-preview/examples/VirtualNetworkRulesDelete.json index 8d51878323cd..2a5d616e1221 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2017-12-01-preview/examples/VirtualNetworkRulesDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2017-12-01-preview/examples/VirtualNetworkRulesDelete.json @@ -7,14 +7,8 @@ "api-version": "2017-12-01-preview" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/examples/VirtualNetworkRulesDelete.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/examples/VirtualNetworkRulesDelete.json index 0fa496b85696..eba76be987c7 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/examples/VirtualNetworkRulesDelete.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/examples/VirtualNetworkRulesDelete.json @@ -7,14 +7,8 @@ "api-version": "2017-12-01" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/postgresql/resource-manager/readme.go.md b/specification/postgresql/resource-manager/readme.go.md index 153c55816410..9fefd0e0313c 100644 --- a/specification/postgresql/resource-manager/readme.go.md +++ b/specification/postgresql/resource-manager/readme.go.md @@ -13,6 +13,7 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-2017-12-01-preview - tag: package-2017-12-01 ``` diff --git a/specification/postgresql/resource-manager/readme.java.md b/specification/postgresql/resource-manager/readme.java.md new file mode 100644 index 000000000000..27e27dac9a66 --- /dev/null +++ b/specification/postgresql/resource-manager/readme.java.md @@ -0,0 +1,47 @@ +## 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.postgresql +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-postgresql +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2017-12-01-preview + - tag: package-2017-12-01 +``` + +### Tag: package-2017-12-01-preview and java + +These settings apply only when `--tag=package-2017-12-01-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2017-12-01-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.postgresql.v2017_12_01_preview + output-folder: $(azure-libraries-for-java-folder)/postgresql/resource-manager/v2017_12_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-12-01 and java + +These settings apply only when `--tag=package-2017-12-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2017-12-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.postgresql.v2017_12_01 + output-folder: $(azure-libraries-for-java-folder)/postgresql/resource-manager/v2017_12_01 +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index af68cd692f7a..124582352de6 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -62,6 +62,7 @@ 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 @@ -117,34 +118,30 @@ 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=`. +See configuration in [readme.java.md](./readme.java.md) -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.postgresql -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-postgresql -``` +## Multi-API/Profile support for AutoRest v3 generators -### Java multi-api +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2017-12-01 -``` +This block is updated by an automatic script. Edits may be lost! -### Tag: package-2017-12-01 and java +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -These settings apply only when `--tag=package-2016-12-01 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.DBforPostgreSQL/preview/2017-12-01-preview/postgresql.json + - $(this-folder)/Microsoft.DBforPostgreSQL/stable/2017-12-01/postgresql.json -``` yaml $(tag) == 'package-2017-12-01' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.postgresql.v2017_12_01 - output-folder: $(azure-libraries-for-java-folder)/postgresql/resource-manager/v2017_12_01 -regenerate-manager: true -generate-interface: true ``` + +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/powerbidedicated/resource-manager/readme.md b/specification/powerbidedicated/resource-manager/readme.md index c84486b6e7b8..8534a9acecd5 100644 --- a/specification/powerbidedicated/resource-manager/readme.md +++ b/specification/powerbidedicated/resource-manager/readme.md @@ -50,6 +50,7 @@ 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-js - repo: azure-sdk-for-node @@ -108,3 +109,28 @@ generate-interface: 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)/Microsoft.PowerBIdedicated/stable/2017-10-01/powerbidedicated.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/powerbiembedded/resource-manager/readme.java.md b/specification/powerbiembedded/resource-manager/readme.java.md new file mode 100644 index 000000000000..1ace3902ed16 --- /dev/null +++ b/specification/powerbiembedded/resource-manager/readme.java.md @@ -0,0 +1,34 @@ +## 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.powerbiembedded +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-powerbiembedded +service-name: PowerBIEmbedded +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2016-01 +``` + +### Tag: package-2016-01 and java + +These settings apply only when `--tag=package-2016-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2016-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.powerbiembedded.v2016_01_29 + output-folder: $(azure-libraries-for-java-folder)/powerbiembedded/resource-manager/v2016_01_29 +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/powerbiembedded/resource-manager/readme.md b/specification/powerbiembedded/resource-manager/readme.md index 5db8440651bd..15f724cc783d 100644 --- a/specification/powerbiembedded/resource-manager/readme.md +++ b/specification/powerbiembedded/resource-manager/readme.md @@ -51,6 +51,7 @@ 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 @@ -73,7 +74,7 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.PowerBIEmbedded payload-flattening-threshold: 2 - output-folder: $(csharp-sdks-folder)/PowerBIEmbedded/Management.PowerBIEmbedded/Generated + output-folder: $(csharp-sdks-folder)/powerbiembedded/Microsoft.Azure.Management.PowerBIEmbedded/src/Generated clear-output-folder: true ``` @@ -110,36 +111,29 @@ 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=`. +See configuration in [readme.java.md](./readme.java.md) -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.powerbiembedded -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-powerbiembedded -``` +## Multi-API/Profile support for AutoRest v3 generators -### Java multi-api +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2016-01 -``` +This block is updated by an automatic script. Edits may be lost! -### Tag: package-2016-01 and java +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -These settings apply only when `--tag=package-2016-01 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.PowerBI/stable/2016-01-29/powerbiembedded.json -``` yaml $(tag) == 'package-2016-01' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.powerbi.v2016_01_29 - output-folder: $(azure-libraries-for-java-folder)/powerbi/resource-manager/v2016_01_29 -regenerate-manager: true -generate-interface: true ``` +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/privatedns/resource-manager/readme.md b/specification/privatedns/resource-manager/readme.md index e4d6f42d6e29..61562d8ea953 100644 --- a/specification/privatedns/resource-manager/readme.md +++ b/specification/privatedns/resource-manager/readme.md @@ -47,6 +47,7 @@ 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 @@ -133,3 +134,28 @@ directive: suppress: DescriptionAndTitleMissing reason: Common types warning. ``` + +## 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.Network/stable/2018-09-01/privatedns.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/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2016-06-01/examples/DeleteRegisteredIdentities.json b/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2016-06-01/examples/DeleteRegisteredIdentities.json index 21e8fcd46a15..03962d24d35d 100644 --- a/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2016-06-01/examples/DeleteRegisteredIdentities.json +++ b/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2016-06-01/examples/DeleteRegisteredIdentities.json @@ -7,8 +7,6 @@ "api-version": "2016-06-01" }, "responses": { - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2016-06-01/examples/DeleteVault.json b/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2016-06-01/examples/DeleteVault.json index 34113f549015..99ef3eb85920 100644 --- a/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2016-06-01/examples/DeleteVault.json +++ b/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2016-06-01/examples/DeleteVault.json @@ -6,8 +6,6 @@ "api-version": "2016-06-01" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/recoveryservices/resource-manager/readme.md b/specification/recoveryservices/resource-manager/readme.md index 43493540d3db..b2afcc72c585 100644 --- a/specification/recoveryservices/resource-manager/readme.md +++ b/specification/recoveryservices/resource-manager/readme.md @@ -65,6 +65,7 @@ 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 @@ -130,3 +131,31 @@ generate-interface: 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)/Microsoft.RecoveryServices/stable/2016-06-01/registeredidentities.json + - $(this-folder)/Microsoft.RecoveryServices/stable/2016-06-01/replicationusages.json + - $(this-folder)/Microsoft.RecoveryServices/stable/2016-06-01/vaults.json + - $(this-folder)/Microsoft.RecoveryServices/stable/2016-06-01/vaultusages.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/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/bms.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/bms.json index 36d4e241e8ff..ca56fae3e833 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/bms.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/bms.json @@ -2057,7 +2057,7 @@ }, "x-ms-examples": { "List Backup Protection Containers": { - "$ref": "./examples/AzureWorkload/ProtectionContainers_List.json" + "$ref": "./examples/AzureStorage/ProtectionContainers_List.json" } } } @@ -5418,10 +5418,6 @@ "description": "Protected, ProtectionStopped, IRPending or ProtectionError", "type": "string" }, - "isScheduledForDeferredDelete": { - "description": "Specifies if the item is scheduled for deferred deletion.", - "type": "boolean" - }, "deferredDeleteSyncTimeInUTC": { "format": "int64", "description": "Sync time for deferred deletion.", @@ -5871,6 +5867,27 @@ "name": "CreateMode", "modelAsString": true } + }, + "deferredDeleteTimeInUTC": { + "format": "date-time", + "description": "Time for deferred deletion in UTC", + "type": "string" + }, + "isScheduledForDeferredDelete": { + "description": "Flag to identify whether the DS is scheduled for deferred delete", + "type": "boolean" + }, + "deferredDeleteTimeRemaining": { + "description": "Time remaining before the DS marked for deferred delete is permanently deleted", + "type": "string" + }, + "isDeferredDeleteScheduleUpcoming": { + "description": "Flag to identify whether the deferred deleted DS is to be purged soon", + "type": "boolean" + }, + "isRehydrate": { + "description": "Flag to identify that deferred deleted DS is to be moved into Pause state", + "type": "boolean" } }, "discriminator": "protectedItemType" diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/BackupProtectableItems_List.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/BackupProtectableItems_List.json index 3083c1f00dd6..f957d314a41c 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/BackupProtectableItems_List.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/BackupProtectableItems_List.json @@ -20,9 +20,7 @@ "protectionState": "NotProtected", "protectableItemType": "Microsoft.ClassicCompute/virtualMachines", "backupManagementType": "AzureIaasVM", - "workloadType": "VM", - "containerName": "iaasvmcontainer;iaasvm-rg;iaasvm-1", - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.ClassicCompute/virtualMachines/iaasvm-1" + "workloadType": "VM" } } ] diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ConfigureProtection.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ConfigureProtection.json index 1a3477c5549f..1bf08b3f954a 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ConfigureProtection.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ConfigureProtection.json @@ -21,8 +21,31 @@ "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Retry-After": 60 - }, - "body": {} + } + }, + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", + "name": "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", + "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems", + "properties": { + "friendlyName": "netvmtestv2vm1", + "virtualMachineId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", + "protectionStatus": "Healthy", + "protectionState": "Protected", + "healthStatus": "Passed", + "lastBackupStatus": "Completed", + "lastBackupTime": "2018-01-22T12:25:32.048723Z", + "protectedItemDataId": "636482643132986882", + "protectedItemType": "Microsoft.Compute/virtualMachines", + "backupManagementType": "AzureIaasVM", + "workloadType": "VM", + "containerName": "iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", + "policyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupPolicies/testPolicy1", + "lastRecoveryPoint": null + } + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectedItemOperationResults.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectedItemOperationResults.json index 88bdbaae23ea..0c762abfe85c 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectedItemOperationResults.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectedItemOperationResults.json @@ -15,8 +15,32 @@ "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Retry-After": 60 - }, - "body": {} - } + } + }, + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", + "name": "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", + "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems", + "properties": { + "friendlyName": "netvmtestv2vm1", + "virtualMachineId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", + "protectionStatus": "Healthy", + "protectionState": "Protected", + "healthStatus": "Passed", + "lastBackupStatus": "Completed", + "lastBackupTime": "2018-01-22T12:25:32.048723Z", + "protectedItemDataId": "636482643132986882", + "protectedItemType": "Microsoft.Compute/virtualMachines", + "backupManagementType": "AzureIaasVM", + "workloadType": "VM", + "containerName": "iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", + "policyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupPolicies/testPolicy1", + "lastRecoveryPoint": null + } + } + }, + "204": {} } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json index 8e3a5d14ce9c..72ce3b95a189 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json @@ -175,8 +175,7 @@ "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-06-01", "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1/operations/00000000-0000-0000-0000-000000000000?api-version=2016-06-01", "Retry-After": 60 - }, - "body": {} + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json index 6ee8e3077c80..d8dba41bcaed 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json @@ -69,8 +69,7 @@ "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-06-01", "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1/operations/00000000-0000-0000-0000-000000000000?api-version=2016-06-01", "Retry-After": 60 - }, - "body": {} + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectionPolicies_Delete.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectionPolicies_Delete.json index 100f5dad2936..809778be7611 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectionPolicies_Delete.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/ProtectionPolicies_Delete.json @@ -7,8 +7,7 @@ "api-version": "2016-06-01" }, "responses": { - "200": { - "body": {} - } + "200": {}, + "204": {} } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/Provision_Ilr.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/Provision_Ilr.json index 1bc3dbc0b737..f184b739339f 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/Provision_Ilr.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/Provision_Ilr.json @@ -6,6 +6,7 @@ "fabricName": "Azure", "containerName": "iaasvmcontainer;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1", "protectedItemName": "vm;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1", + "recoveryPointId": "1", "api-version": "2016-12-01", "parameters": { "properties": { @@ -23,8 +24,7 @@ "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1/protectedItems/vm;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1/protectedItems/vm;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Retry-After": 60 - }, - "body": {} + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/RecoveryPoints_Get.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/RecoveryPoints_Get.json index 3775558d6cf8..ed014826ff8e 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/RecoveryPoints_Get.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/RecoveryPoints_Get.json @@ -25,8 +25,8 @@ "isInstantIlrSessionActive": false, "recoveryPointTierDetails": [ { - "type": 2, - "status": 1 + "type": "HardenedRP", + "status": "Valid" } ], "isManagedVirtualMachine": true, diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/RecoveryPoints_List.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/RecoveryPoints_List.json index 578daecf2191..497d446ccfa0 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/RecoveryPoints_List.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/RecoveryPoints_List.json @@ -10,62 +10,65 @@ }, "responses": { "200": { - "body": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rshhtestmdvmrg/providers/Microsoft.RecoveryServices/vaults/rshvault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/protectedItems/VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/recoveryPoints/22244821112382", - "name": "22244821112382", - "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints", - "properties": { - "objectType": "IaasVMRecoveryPoint", - "recoveryPointType": "CrashConsistent", - "recoveryPointTime": "2017-12-21T22:48:25.4353958Z", - "recoveryPointAdditionalInfo": "", - "sourceVMStorageType": "NormalStorage", - "isSourceVMEncrypted": false, - "isInstantIlrSessionActive": false, - "recoveryPointTierDetails": [ - { - "type": 1, - "status": 1 - }, - { - "type": 2, - "status": 1 - } - ], - "isManagedVirtualMachine": true, - "virtualMachineSize": "Standard_D1", - "originalStorageAccountOption": false + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rshhtestmdvmrg/providers/Microsoft.RecoveryServices/vaults/rshvault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/protectedItems/VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/recoveryPoints/22244821112382", + "name": "22244821112382", + "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints", + "properties": { + "objectType": "IaasVMRecoveryPoint", + "recoveryPointType": "CrashConsistent", + "recoveryPointTime": "2017-12-21T22:48:25.4353958Z", + "recoveryPointAdditionalInfo": "", + "sourceVMStorageType": "NormalStorage", + "isSourceVMEncrypted": false, + "isInstantIlrSessionActive": false, + "recoveryPointTierDetails": [ + { + "type": "InstantRP", + "status": "Valid" + }, + { + "type": "HardenedRP", + "status": "Valid" + } + ], + "isManagedVirtualMachine": true, + "virtualMachineSize": "Standard_D1", + "originalStorageAccountOption": false + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rshhtestmdvmrg/providers/Microsoft.RecoveryServices/vaults/rshvault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/protectedItems/VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/recoveryPoints/24977149827250", + "name": "24977149827250", + "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints", + "properties": { + "objectType": "IaasVMRecoveryPoint", + "recoveryPointType": "CrashConsistent", + "recoveryPointTime": "2017-12-20T22:49:44.3317945Z", + "recoveryPointAdditionalInfo": "", + "sourceVMStorageType": "NormalStorage", + "isSourceVMEncrypted": false, + "isInstantIlrSessionActive": false, + "recoveryPointTierDetails": [ + { + "type": "InstantRP", + "status": "Valid" + }, + { + "type": "HardenedRP", + "status": "Valid" + } + ], + "isManagedVirtualMachine": true, + "virtualMachineSize": "Standard_D1", + "originalStorageAccountOption": false + } } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rshhtestmdvmrg/providers/Microsoft.RecoveryServices/vaults/rshvault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/protectedItems/VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall/recoveryPoints/24977149827250", - "name": "24977149827250", - "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints", - "properties": { - "objectType": "IaasVMRecoveryPoint", - "recoveryPointType": "CrashConsistent", - "recoveryPointTime": "2017-12-20T22:49:44.3317945Z", - "recoveryPointAdditionalInfo": "", - "sourceVMStorageType": "NormalStorage", - "isSourceVMEncrypted": false, - "isInstantIlrSessionActive": false, - "recoveryPointTierDetails": [ - { - "type": 1, - "status": 1 - }, - { - "type": 2, - "status": 1 - } - ], - "isManagedVirtualMachine": true, - "virtualMachineSize": "Standard_D1", - "originalStorageAccountOption": false - } - } - ] + ], + "nextLink": null + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/Revoke_Ilr.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/Revoke_Ilr.json index 9803a3e5c8dd..361695d6835d 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/Revoke_Ilr.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/Revoke_Ilr.json @@ -6,6 +6,7 @@ "fabricName": "Azure", "containerName": "iaasvmcontainer;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1", "protectedItemName": "vm;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1", + "recoveryPointId": "1", "api-version": "2016-12-01" }, "responses": { @@ -14,8 +15,7 @@ "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1/protectedItems/vm;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1/protectedItems/vm;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Retry-After": 60 - }, - "body": {} + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/StopProtection.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/StopProtection.json index a2fd597089f9..0b7b463098e9 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/StopProtection.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/StopProtection.json @@ -21,8 +21,31 @@ "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Retry-After": 60 - }, - "body": {} + } + }, + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", + "name": "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", + "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems", + "properties": { + "friendlyName": "netvmtestv2vm1", + "virtualMachineId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", + "protectionStatus": "Healthy", + "protectionState": "ProtectionStopped", + "healthStatus": "Passed", + "lastBackupStatus": "Completed", + "lastBackupTime": "2018-01-22T12:25:32.048723Z", + "protectedItemDataId": "636482643132986882", + "protectedItemType": "Microsoft.Compute/virtualMachines", + "backupManagementType": "AzureIaasVM", + "workloadType": "VM", + "containerName": "iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", + "policyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupPolicies/testPolicy1", + "lastRecoveryPoint": null + } + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/TriggerRestore_ALR.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/TriggerRestore_ALR.json index da034008d277..59e09648760c 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/TriggerRestore_ALR.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/TriggerRestore_ALR.json @@ -34,8 +34,7 @@ "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", "Retry-After": 60 - }, - "body": {} + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks.json index 278449a92cea..9bdc518fb293 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks.json @@ -30,8 +30,7 @@ "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Retry-After": 60 - }, - "body": {} + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectableContainers_List.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectableContainers_List.json index 9e1f0b3dc5d2..e03c72c7ee72 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectableContainers_List.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectableContainers_List.json @@ -1,6 +1,7 @@ { "parameters": { "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testRg", "vaultName": "testvault", "fabricName": "Azure", "api-version": "2017-07-01", diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_Inquire.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_Inquire.json index 82136aa80d63..1c0898755cd2 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_Inquire.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_Inquire.json @@ -13,8 +13,7 @@ "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectionContainers/storagecontainer;Storage;test-rg;teststorage/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectionContainers/storagecontainer;Storage;test-rg;teststorage/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Retry-After": 60 - }, - "body": {} + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_Inquire_Result.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_Inquire_Result.json index bcbf20b86c58..074c4bf1a5f1 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_Inquire_Result.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_Inquire_Result.json @@ -4,14 +4,62 @@ "resourceGroupName": "test-rg", "vaultName": "testvault", "fabricName": "Azure", - "containerName": "storagecontainer;Storage;test-rg;teststorage", + "containerName": "VMAppContainer;Compute;testRG;testSQL", "operationId": "00000000-0000-0000-0000-000000000000", "api-version": "2017-07-01" }, "responses": { - "204": { - "headers": {}, - "body": {} + "204": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;testRG;testSQL/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", + "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;testRG;testSQL/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", + "Retry-After": 60 + } + }, + "200": { + "body": { + "name": "VMAppContainer;Compute;testRG;testSQL", + "id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;testRG;testSQL", + "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers", + "properties": { + "extendedInfo": { + "hostServerName": "testsql", + "nodesList": [], + "inquiryInfo": { + "status": "Success", + "errorDetail": { + "code": "Success", + "message": "Not Available", + "recommendations": [ + "Not Available" + ] + }, + "inquiryDetails": [ + { + "type": "sql", + "itemCount": 14, + "inquiryValidation": { + "status": "Success", + "errorDetail": { + "code": "Success", + "message": "Not Available", + "recommendations": [ + "Not Available" + ] + } + } + } + ] + } + }, + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/testSQL", + "backupManagementType": "AzureWorkload", + "workloadType": null, + "containerType": "VMAppContainer", + "friendlyName": "testSQL" + } + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_List.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_List.json new file mode 100644 index 000000000000..adb110557936 --- /dev/null +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_List.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "testRg", + "vaultName": "testVault", + "api-version": "2016-12-01", + "fabricName": "Azure", + "$filter": "backupManagementType eq 'AzureWorkload'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/172424a4-d65f-421e-a8de-197d98aabeba/resourcegroups/testrg/providers/microsoft.recoveryservices/vaults/suchandr-test-vault-wcus/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;testrg;suchandrtestsa125", + "name": "StorageContainer;Storage;testrg;suchandrtestsa125", + "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers", + "properties": { + "sourceResourceId": "/subscriptions/172424a4-d65f-421e-a8de-197d98aabeba/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/suchandrtestsa125", + "protectedItemCount": 2, + "friendlyName": "suchandrtestsa125", + "backupManagementType": "AzureStorage", + "registrationStatus": "Registered", + "healthStatus": "Healthy", + "containerType": "StorageContainer" + } + } + ] + } + } + } +} diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_Register.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_Register.json index db0d943d1f68..f56939720aff 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_Register.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureStorage/ProtectionContainers_Register.json @@ -4,25 +4,68 @@ "resourceGroupName": "test-rg", "vaultName": "testvault", "fabricName": "Azure", - "containerName": "storagecontainer;Storage;test-rg;teststorage", + "containerName": "VMAppContainer;Compute;testRG;testSQL", "api-version": "2017-07-01", "parameters": { "properties": { - "friendlyName": "teststorage", - "backupManagementType": "AzureStorage", - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorage", - "containerType": "StorageContainer" + "friendlyName": "testSQL", + "backupManagementType": "AzureWorkload", + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/testSQL", + "containerType": "VMAppContainer" } } }, "responses": { "202": { "headers": { - "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectionContainers/storagecontainer;Storage;test-rg;teststorage/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", - "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectionContainers/storagecontainer;Storage;test-rg;teststorage/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", + "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;testRG;testSQL/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", + "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;testRG;testSQL/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", "Retry-After": 60 - }, - "body": {} + } + }, + "200": { + "body": { + "name": "VMAppContainer;Compute;testRG;testSQL", + "id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;testRG;testSQL", + "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers", + "properties": { + "extendedInfo": { + "hostServerName": "testsql", + "nodesList": [], + "inquiryInfo": { + "status": "Success", + "errorDetail": { + "code": "Success", + "message": "Not Available", + "recommendations": [ + "Not Available" + ] + }, + "inquiryDetails": [ + { + "type": "sql", + "itemCount": 14, + "inquiryValidation": { + "status": "Success", + "errorDetail": { + "code": "Success", + "message": "Not Available", + "recommendations": [ + "Not Available" + ] + } + } + } + ] + } + }, + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/testSQL", + "backupManagementType": "AzureWorkload", + "workloadType": null, + "containerType": "VMAppContainer", + "friendlyName": "testSQL" + } + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/BackupWorkloadItems_List.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/BackupWorkloadItems_List.json index 21436acb8333..66f28ba90ac9 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/BackupWorkloadItems_List.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/BackupWorkloadItems_List.json @@ -2,47 +2,42 @@ "parameters": { "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "testRg", - "vaultName": "testVault", + "vaultName": "suchandr-seacan-rsv", "api-version": "2016-12-01", "$filter": "backupManagementType eq 'AzureWorkload'", - "backupFabrics": "Azure", - "protectionContainers": "VMAppContainer;Compute;testRG;testSQL" + "fabricName": "Azure", + "containerName": "VMAppContainer;Compute;bvtdtestag;sqlserver-1" }, "responses": { "200": { "body": { "value": [ { - "backupManagementType": "AzureWorkload", - "dataDirectoryPaths": [ - { - "type": "Data", - "path": "F:\\Data\\", - "logicalName": null - }, - { - "type": "Log", - "path": "F:\\Log\\", - "logicalName": null - } - ], - "name": null, - "id": null, - "status": { - "name": null, - "displayName": null, - "infoText": null, - "severity": null, - "operationState": null - }, - "type": null, - "location": null, - "friendlyName": "MSSQLSERVER", - "resourceGroup": null, - "resourceName": null, - "subscriptionId": null, - "providerName": null, - "resourceType": null + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testRg/providers/Microsoft.RecoveryServices/vaults/suchandr-seacan-rsv/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;bvtdtestag;sqlserver-1/protectableItems/SQLInstance;MSSQLSERVER", + "name": "SQLInstance;MSSQLSERVER", + "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/items", + "properties": { + "dataDirectoryPaths": [ + { + "type": "Data", + "path": "F:\\DATA\\" + }, + { + "type": "Log", + "path": "F:\\LOG\\" + } + ], + "parentName": "MSSQLSERVER", + "serverName": "sqlserver-1.contoso.com", + "isAutoProtectable": true, + "subinquireditemcount": 0, + "subWorkloadItemCount": 3, + "backupManagementType": "AzureWorkload", + "workloadType": "SQL", + "workloadItemType": "SQLInstance", + "friendlyName": "MSSQLSERVER", + "protectionState": "NotProtected" + } } ], "nextLink": null diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionContainers_Get.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionContainers_Get.json index c04f0350024b..4c0b7aefd524 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionContainers_Get.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionContainers_Get.json @@ -3,40 +3,39 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "testRg", "vaultName": "testVault", + "fabricName": "Azure", + "containerName": "VMAppContainer;Compute;testRG;testSQL", "api-version": "2016-12-01", - "protectionContainers": "VMAppContainer;Compute;testRG;testSQL", - "backupFabrics": "Azure", "$filter": "backupManagementType eq 'AzureWorkload'" }, "responses": { "200": { "body": { - "resultArray": [ - { + "name": "VMAppContainer;Compute;testRG;testSQL", + "id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;testRG;testSQL", + "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers", + "properties": { + "extendedInfo": { "hostServerName": "testsql", - "backupReadiness": "Success", - "backupReadinessText": "Ready", - "registrationStatus": "Registered", - "details": "14 DB(s) Found", - "nodeList": [], + "nodesList": [], "inquiryInfo": { "status": "Success", - "errorDetails": { - "errorCode": "Success", - "errorString": "Not Available", + "errorDetail": { + "code": "Success", + "message": "Not Available", "recommendations": [ "Not Available" ] }, - "workloadInquiryDetails": [ + "inquiryDetails": [ { "type": "sql", "itemCount": 14, "inquiryValidation": { "status": "Success", - "errorDetails": { - "errorCode": "Success", - "errorString": "Not Available", + "errorDetail": { + "code": "Success", + "message": "Not Available", "recommendations": [ "Not Available" ] @@ -44,30 +43,14 @@ } } ] - }, - "inquiryErrorDetails": null, - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/testSQL", - "sourceResourceRG": "testRG", - "backupManagementType": "AzureWorkload", - "workloadType": null, - "containerType": "VMAppContainer", - "containerId": null, - "containerName": null, - "name": "VMAppContainer;Compute;testRG;testSQL", - "id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;testRG;testSQL", - "status": null, - "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers", - "location": null, - "friendlyName": "testSQL", - "resourceGroup": "testRg", - "resourceName": "testVault", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "providerName": "Microsoft.RecoveryServices", - "resourceType": "vaults" - } - ], - "totalCount": 0, - "continuationToken": null + } + }, + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/testSQL", + "backupManagementType": "AzureWorkload", + "workloadType": null, + "containerType": "VMAppContainer", + "friendlyName": "testSQL" + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionContainers_List.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionContainers_List.json deleted file mode 100644 index 5358ddbc289f..000000000000 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionContainers_List.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "testRg", - "vaultName": "testVault", - "api-version": "2016-12-01", - "backupFabrics": "Azure", - "$filter": "backupManagementType eq 'AzureWorkload'" - }, - "responses": { - "200": { - "body": { - "resultArray": [ - { - "hostServerName": "testsql", - "backupReadiness": "Success", - "backupReadinessText": "Ready", - "registrationStatus": "Registered", - "details": "14 DB(s) Found", - "nodeList": [], - "inquiryInfo": { - "status": "Success", - "errorDetails": { - "errorCode": "Success", - "errorString": "Not Available", - "recommendations": [ - "Not Available" - ] - }, - "workloadInquiryDetails": [ - { - "type": "sql", - "itemCount": 14, - "inquiryValidation": { - "status": "Success", - "errorDetails": { - "errorCode": "Success", - "errorString": "Not Available", - "recommendations": [ - "Not Available" - ] - } - } - } - ] - }, - "inquiryErrorDetails": null, - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/testSQL", - "sourceResourceRG": "testRG", - "backupManagementType": "AzureWorkload", - "workloadType": null, - "containerType": "VMAppContainer", - "containerId": null, - "containerName": null, - "name": "VMAppContainer;Compute;testRG;testSQL", - "id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;testRG;testSQL", - "status": null, - "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers", - "location": null, - "friendlyName": "testSQL", - "resourceGroup": "testRg", - "resourceName": "testVault", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "providerName": "Microsoft.RecoveryServices", - "resourceType": "vaults" - } - ], - "totalCount": 0, - "continuationToken": null - } - } - } -} diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionContainers_Unregister.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionContainers_Unregister.json index ef10c5172b3b..e32f407ea56e 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionContainers_Unregister.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionContainers_Unregister.json @@ -4,30 +4,17 @@ "resourceGroupName": "testRg", "vaultName": "testVault", "api-version": "2016-12-01", - "backupFabrics": "Azure", - "protectionContainers": "VMAppContainer;Compute;testRG;testSQL" + "fabricName": "Azure", + "containerName": "storagecontainer;Storage;test-rg;teststorage" }, "responses": { - "200": { - "body": { - "name": "testVault", - "id": "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.RecoveryServices/vaults/testVault/backupOperationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", - "status": { - "name": null, - "displayName": null, - "infoText": null, - "severity": null, - "operationState": "InProgress" - }, - "type": null, - "location": null, - "friendlyName": "testVault", - "resourceGroup": "testRg", - "resourceName": "testVault", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "providerName": "Microsoft.RecoveryServices", - "resourceType": "vaults" + "202": { + "headers": { + "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectionContainers/storagecontainer;Storage;test-rg;teststorage/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", + "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.RecoveryServices/vaults/testvault/backupFabrics/Azure/protectionContainers/storagecontainer;Storage;test-rg;teststorage/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", + "Retry-After": 60 } - } + }, + "204": {} } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json index c74895f84166..cc0786ecf9e1 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json @@ -254,8 +254,7 @@ "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-06-01", "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/testPolicy1/operations/00000000-0000-0000-0000-000000000000?api-version=2016-06-01", "Retry-After": 60 - }, - "body": {} + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/BackupStorageConfig_Patch.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/BackupStorageConfig_Patch.json index 6c2f64461d51..34f7e0fea52d 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/BackupStorageConfig_Patch.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/BackupStorageConfig_Patch.json @@ -12,9 +12,6 @@ } }, "responses": { - "204": { - "headers": {}, - "body": null - } + "204": {} } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/BackupStorageConfig_Put.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/BackupStorageConfig_Put.json index 57052c87328e..67f6df781093 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/BackupStorageConfig_Put.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/BackupStorageConfig_Put.json @@ -21,8 +21,6 @@ "properties": { "storageModelType": "LocallyRedundant", "storageType": "LocallyRedundant", - "dedupState": "Disabled", - "xcoolState": "Disabled", "storageTypeState": "Unlocked" } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/CancelJobOperationResult.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/CancelJobOperationResult.json index 11670993ed03..2420e329a3b1 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/CancelJobOperationResult.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/CancelJobOperationResult.json @@ -8,9 +8,13 @@ "api-version": "2017-07-01" }, "responses": { - "204": { - "headers": {}, - "body": {} + "204": {}, + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupJobs/00000000-0000-0000-0000-000000000000/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", + "Retry-After": 60 + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/ProtectedItem_Delete.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/ProtectedItem_Delete.json index 29830f783e60..caf0847f389c 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/ProtectedItem_Delete.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/ProtectedItem_Delete.json @@ -14,8 +14,8 @@ "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupOperations/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupOperationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Retry-After": 60 - }, - "body": {} - } + } + }, + "204": {} } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/ProtectedItem_Delete_OperationResult.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/ProtectedItem_Delete_OperationResult.json index 1d760ef30774..abbe8bfacdc7 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/ProtectedItem_Delete_OperationResult.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/ProtectedItem_Delete_OperationResult.json @@ -12,8 +12,9 @@ "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupOperations/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PythonSDKBackupTestRg/providers/Microsoft.RecoveryServices/vaults/PySDKBackupTestRsVault/backupOperationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Retry-After": 60 - }, - "body": null - } + } + }, + "200": {}, + "204": {} } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/ProtectedItem_Delete_OperationStatus.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/ProtectedItem_Delete_OperationStatus.json index 6abc0b369163..4c4d58e3bba0 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/ProtectedItem_Delete_OperationStatus.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/ProtectedItem_Delete_OperationStatus.json @@ -14,7 +14,7 @@ "name": "00000000-0000-0000-0000-000000000000", "status": "InProgress", "startTime": "2017-08-03T06:52:53.886027Z", - "endTime": "0001-01-01T00:00:00" + "endTime": "0001-01-01T00:00:00.00000Z" } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/RefreshContainers.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/RefreshContainers.json index bdaaa03bbbe8..351b670503d0 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/RefreshContainers.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/RefreshContainers.json @@ -11,8 +11,7 @@ "headers": { "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupFabrics/Azure/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Retry-After": 60 - }, - "body": {} + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/RefreshContainers_OperationResults.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/RefreshContainers_OperationResults.json index b5079bd4b8d2..21bbcb775742 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/RefreshContainers_OperationResults.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/RefreshContainers_OperationResults.json @@ -12,12 +12,8 @@ "headers": { "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupFabrics/Azure/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Retry-After": 60 - }, - "body": null + } }, - "204": { - "headers": {}, - "body": null - } + "204": {} } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/TriggerBackup_Post.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/TriggerBackup_Post.json index d23d42996022..95043e6b4da5 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/TriggerBackup_Post.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/TriggerBackup_Post.json @@ -19,8 +19,7 @@ "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/linuxRsVaultRG/providers/Microsoft.RecoveryServices/vaults/linuxRsVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainer;testrg;v1win2012r/protectedItems/VM;iaasvmcontainer;testrg;v1win2012r/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/linuxRsVaultRG/providers/Microsoft.RecoveryServices/vaults/linuxRsVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainer;testrg;v1win2012r/protectedItems/VM;iaasvmcontainer;testrg;v1win2012r/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2016-12-01", "Retry-After": 60 - }, - "body": {} + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/TriggerCancelJob.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/TriggerCancelJob.json index 632419d5f18e..4107a8be21ef 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/TriggerCancelJob.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2016-12-01/examples/Common/TriggerCancelJob.json @@ -11,8 +11,7 @@ "headers": { "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupJobs/00000000-0000-0000-0000-000000000000/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", "Retry-After": 60 - }, - "body": {} + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/bms.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/bms.json index 6f1943c144d0..400fb2d61c0a 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/bms.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/bms.json @@ -3028,10 +3028,6 @@ "description": "Protected, ProtectionStopped, IRPending or ProtectionError", "type": "string" }, - "isScheduledForDeferredDelete": { - "description": "Specifies if the item is scheduled for deferred deletion.", - "type": "boolean" - }, "deferredDeleteSyncTimeInUTC": { "format": "int64", "description": "Sync time for deferred deletion.", @@ -3576,6 +3572,27 @@ "name": "CreateMode", "modelAsString": true } + }, + "deferredDeleteTimeInUTC": { + "format": "date-time", + "description": "Time for deferred deletion in UTC", + "type": "string" + }, + "isScheduledForDeferredDelete": { + "description": "Flag to identify whether the DS is scheduled for deferred delete", + "type": "boolean" + }, + "deferredDeleteTimeRemaining": { + "description": "Time remaining before the DS marked for deferred delete is permanently deleted", + "type": "string" + }, + "isDeferredDeleteScheduleUpcoming": { + "description": "Flag to identify whether the deferred deleted DS is to be purged soon", + "type": "boolean" + }, + "isRehydrate": { + "description": "Flag to identify that deferred deleted DS is to be moved into Pause state", + "type": "boolean" } }, "discriminator": "protectedItemType" diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureIaasVm/ConfigureProtectionViaExtensionRouting.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureIaasVm/ConfigureProtectionViaExtensionRouting.json index 46ea181d4b60..73c7034b8cb8 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureIaasVm/ConfigureProtectionViaExtensionRouting.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureIaasVm/ConfigureProtectionViaExtensionRouting.json @@ -19,8 +19,7 @@ "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", "Retry-After": 60 - }, - "body": {} + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json index b92e7b3da2ce..3ef776db4e1e 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json @@ -10,7 +10,6 @@ "properties": { "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/chamsrgtest/providers/Microsoft.Compute/virtualMachines/chamscandel", "protectionIntentItemType": "AzureResourceItem", - "friendlyName": "oneboxTestVmIntent", "policyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupPolicies/myPolicy" } } @@ -22,7 +21,6 @@ "name": "vm;iaasvmcontainerv2;chamsrgtest;chamscandel", "type": "Microsoft.RecoveryServices/vaults/backupProtectionIntent", "properties": { - "friendlyName": "", "backupManagementType": "AzureIaasVM", "policyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupPolicies/myPolicy", "protectionState": "Protected" diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureWorkload/BackupProtectionIntent_Delete.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureWorkload/BackupProtectionIntent_Delete.json index b8a3c35185f6..778e33c2941c 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureWorkload/BackupProtectionIntent_Delete.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureWorkload/BackupProtectionIntent_Delete.json @@ -9,8 +9,6 @@ "parameters": {} }, "responses": { - "204": { - "body": {} - } + "204": {} } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureWorkload/BackupProtectionIntent_Get.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureWorkload/BackupProtectionIntent_Get.json index 6b9e73023d1c..20c39e0c4909 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureWorkload/BackupProtectionIntent_Get.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureWorkload/BackupProtectionIntent_Get.json @@ -15,7 +15,6 @@ "name": "249D9B07-D2EF-4202-AA64-65F35418564E", "type": "Microsoft.RecoveryServices/vaults/backupProtectionIntent", "properties": { - "friendlyName": "249D9B07-D2EF-4202-AA64-65F35418564E", "backupManagementType": "AzureWorkload", "policyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupPolicies/myPolicy", "itemId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupProtectionContainer/VMAppContainer;Compute;testVmName/backupProtectableItems/SQLInstance;MSSQLSERVER" diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureWorkload/BackupProtectionIntent_List.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureWorkload/BackupProtectionIntent_List.json index c0b952d484d6..ca16c991a566 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureWorkload/BackupProtectionIntent_List.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/AzureWorkload/BackupProtectionIntent_List.json @@ -8,19 +8,20 @@ }, "responses": { "200": { - "body": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupFabrics/Azure/backupProtectionIntent/249D9B07-D2EF-4202-AA64-65F35418564E", - "name": "249D9B07-D2EF-4202-AA64-65F35418564E", - "type": "Microsoft.RecoveryServices/vaults/backupProtectionIntent", - "properties": { - "friendlyName": "249D9B07-D2EF-4202-AA64-65F35418564E", - "backupManagementType": "AzureWorkload", - "policyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupPolicies/myPolicy", - "itemId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupProtectionContainer/VMAppContainer;Compute;testVmName/backupProtectableItems/SQLInstance;MSSQLSERVER" + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupFabrics/Azure/backupProtectionIntent/249D9B07-D2EF-4202-AA64-65F35418564E", + "name": "249D9B07-D2EF-4202-AA64-65F35418564E", + "type": "Microsoft.RecoveryServices/vaults/backupProtectionIntent", + "properties": { + "backupManagementType": "AzureWorkload", + "policyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupPolicies/myPolicy", + "itemId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupProtectionContainer/VMAppContainer;Compute;testVmName/backupProtectableItems/SQLInstance;MSSQLSERVER" + } } - } - ] + ] + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/Common/TriggerExportJobs.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/Common/TriggerExportJobs.json index 84beb4d22918..8b01e80dc2f3 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/Common/TriggerExportJobs.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2017-07-01/examples/Common/TriggerExportJobs.json @@ -10,8 +10,7 @@ "headers": { "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupJobs/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-07-01", "Retry-After": 60 - }, - "body": null + } } } } diff --git a/specification/recoveryservicesbackup/resource-manager/readme.java.md b/specification/recoveryservicesbackup/resource-manager/readme.java.md new file mode 100644 index 000000000000..7da910127609 --- /dev/null +++ b/specification/recoveryservicesbackup/resource-manager/readme.java.md @@ -0,0 +1,47 @@ +## 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.recoveryservicesbackup +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-recoveryservicesbackup +``` + + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2016-08 +``` + +### Tag: package-2016-08 and java + +These settings apply only when `--tag=package-2016-08 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2016-08' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.recoveryservices.backup.v2016_08_10 + output-folder: $(azure-libraries-for-java-folder)/recoveryservices.backup/resource-manager/v2016_08_10 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2016-06 and java + +These settings apply only when `--tag=package-2016-06 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2016-06' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.recoveryservices.backup.v2016_06_01 + output-folder: $(azure-libraries-for-java-folder)/recoveryservices.backup/resource-manager/v2016_06_01 +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/recoveryservicesbackup/resource-manager/readme.md b/specification/recoveryservicesbackup/resource-manager/readme.md index cefb3f629212..9315eb24ef73 100644 --- a/specification/recoveryservicesbackup/resource-manager/readme.md +++ b/specification/recoveryservicesbackup/resource-manager/readme.md @@ -105,6 +105,7 @@ 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 @@ -127,7 +128,7 @@ csharp: payload-flattening-threshold: 1 license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.RecoveryServices.Backup - output-folder: $(csharp-sdks-folder)/RecoveryServices.Backup/Management.RecoveryServices.Backup/Generated + output-folder: $(csharp-sdks-folder)/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated clear-output-folder: true ``` @@ -137,35 +138,33 @@ 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=`. +See configuration in [readme.java.md](./readme.java.md) -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.recoveryservicesbackup -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-recoveryservicesbackup -``` +## Multi-API/Profile support for AutoRest v3 generators +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -### Java multi-api +This block is updated by an automatic script. Edits may be lost! -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2016-06 -``` +``` 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.RecoveryServices/stable/2017-07-01/bms.json + - $(this-folder)/Microsoft.RecoveryServices/stable/2016-12-01/bms.json + - $(this-folder)/Microsoft.RecoveryServices/stable/2016-08-10/operations.json + - $(this-folder)/Microsoft.RecoveryServices/stable/2016-06-01/recoveryservicesbackup.json + - $(this-folder)/Microsoft.RecoveryServices/stable/2016-06-01/registeredIdentities.json -### Tag: package-2016-06 and java +``` -These settings apply only when `--tag=package-2016-06 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. +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) == 'package-2016-06' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.recoveryservices.backup.v2016_06_01 - output-folder: $(azure-libraries-for-java-folder)/recoveryservices.backup/resource-manager/v2016_06_01 -regenerate-manager: true -generate-interface: true +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json ``` + 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 2d995dc049cc..59fedb4a7090 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 @@ -16717,6 +16717,21 @@ "description": "IP allocation type for recovery VM.", "type": "string" }, + "recoveryPublicIpAddressId": { + "description": "The id of the public IP address resource associated with the NIC.", + "type": "string" + }, + "recoveryNetworkSecurityGroupId": { + "description": "The id of the NSG associated with the NIC.", + "type": "string" + }, + "recoveryLBBackendAddressPoolIds": { + "description": "The target backend address pools for the NIC.", + "type": "array", + "items": { + "type": "string" + } + }, "enableAcceleratedNetworkingOnRecovery": { "description": "A value indicating whether the NIC has accelerated networking enabled.", "type": "boolean" @@ -16743,6 +16758,21 @@ "description": "Selection type for failover.", "type": "string" }, + "recoveryPublicIpAddressId": { + "description": "The id of the public IP address resource associated with the NIC.", + "type": "string" + }, + "recoveryNetworkSecurityGroupId": { + "description": "The id of the NSG associated with the NIC.", + "type": "string" + }, + "recoveryLBBackendAddressPoolIds": { + "description": "The target backend address pools for the NIC.", + "type": "array", + "items": { + "type": "string" + } + }, "enableAcceleratedNetworkingOnRecovery": { "description": "Whether the NIC has accelerated networking enabled.", "type": "boolean" diff --git a/specification/recoveryservicessiterecovery/resource-manager/readme.java.md b/specification/recoveryservicessiterecovery/resource-manager/readme.java.md new file mode 100644 index 000000000000..5c4a469baeaa --- /dev/null +++ b/specification/recoveryservicessiterecovery/resource-manager/readme.java.md @@ -0,0 +1,47 @@ +## 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.recoveryservices.siterecovery +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-recoveryservices.siterecovery +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-01 + - tag: package-2016-08 +``` + +### Tag: package-2018-01 and java + +These settings apply only when `--tag=package-2018-01--java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.recoveryservices.siterecovery.v2018_01_10 + output-folder: $(azure-libraries-for-java-folder)/recoveryservices.siterecovery/resource-manager/v2018_01_10 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2016-08 and java + +These settings apply only when `--tag=package-2016-08 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2016-08' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.recoveryservices.siterecovery.v2016_08_10 + output-folder: $(azure-libraries-for-java-folder)/recoveryservices.siterecovery/resource-manager/v2016_08_10 +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/recoveryservicessiterecovery/resource-manager/readme.md b/specification/recoveryservicessiterecovery/resource-manager/readme.md index d89554a55f1a..693d85ea74ab 100644 --- a/specification/recoveryservicessiterecovery/resource-manager/readme.md +++ b/specification/recoveryservicessiterecovery/resource-manager/readme.md @@ -38,6 +38,16 @@ These settings apply only when `--tag=package-2018-07` is specified on the comma input-file: - Microsoft.RecoveryServices/stable/2018-07-10/service.json ``` + +### Tag: package-2018-01 + +These settings apply only when `--tag=package-2018-01` is specified on the command line. + +```yaml $(tag) == 'package-2018-01' +input-file: + - Microsoft.RecoveryServices/stable/2018-01-10/service.json +``` + ### Tag: package-2016-08 These settings apply only when `--tag=package-2018-01` is specified on the command line. @@ -67,6 +77,7 @@ 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 @@ -88,7 +99,7 @@ csharp: payload-flattening-threshold: 0 license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.RecoveryServices.SiteRecovery - output-folder: $(csharp-sdks-folder)/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated + output-folder: $(csharp-sdks-folder)/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated clear-output-folder: true ``` @@ -98,34 +109,31 @@ 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=`. +See configuration in [readme.java.md](./readme.java.md) -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.recoveryservicessiterecovery -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-recoveryservicessiterecovery -``` +## Multi-API/Profile support for AutoRest v3 generators -### Java multi-api +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2016-08 -``` +This block is updated by an automatic script. Edits may be lost! -### Tag: package-2016-08 and java +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -These settings apply only when `--tag=package-2016-08 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.RecoveryServices/stable/2018-07-10/service.json + - $(this-folder)/Microsoft.RecoveryServices/stable/2018-01-10/service.json + - $(this-folder)/Microsoft.RecoveryServices/stable/2016-08-10/service.json -``` yaml $(tag) == 'package-2016-08' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.recoveryservicessiterecovery.v2018_01_10 - output-folder: $(azure-libraries-for-java-folder)/recoveryservicessiterecovery/resource-manager/v2018_01_10 -regenerate-manager: true -generate-interface: true ``` + +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/redis/resource-manager/readme.md b/specification/redis/resource-manager/readme.md index 250fb9c857c3..b44679c38a8b 100644 --- a/specification/redis/resource-manager/readme.md +++ b/specification/redis/resource-manager/readme.md @@ -89,6 +89,7 @@ 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 @@ -224,4 +225,33 @@ directive: - $.definitions from: redis.json reason: This is false positive, 'linkedServers' is not a tracked resource. -``` \ No newline at end of file +``` + +## 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.Cache/stable/2018-03-01/redis.json + - $(this-folder)/Microsoft.Cache/stable/2017-10-01/redis.json + - $(this-folder)/Microsoft.Cache/stable/2017-02-01/redis.json + - $(this-folder)/Microsoft.Cache/stable/2016-04-01/redis.json + - $(this-folder)/Microsoft.Cache/stable/2015-08-01/redis.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/relay/resource-manager/readme.md b/specification/relay/resource-manager/readme.md index 4c172363e08a..dfa648b1a56b 100644 --- a/specification/relay/resource-manager/readme.md +++ b/specification/relay/resource-manager/readme.md @@ -61,6 +61,7 @@ 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 @@ -139,3 +140,29 @@ generate-interface: 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)/Microsoft.Relay/stable/2017-04-01/relay.json + - $(this-folder)/Microsoft.Relay/stable/2016-07-01/relay.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/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/MergeReservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/MergeReservations.json index efcab0724b59..0c6b7d25a3ff 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/MergeReservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/MergeReservations.json @@ -117,8 +117,6 @@ } ] }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/SplitReservation.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/SplitReservation.json index c5daae4af77b..e5abc02b3353 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/SplitReservation.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/SplitReservation.json @@ -108,8 +108,6 @@ } ] }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/UpdateReservation.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/UpdateReservation.json index 0447a109d142..c92f930afd1f 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/UpdateReservation.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/UpdateReservation.json @@ -41,8 +41,6 @@ } } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationDetails.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationDetails.json index 595ff8bff4b5..4956a8ec4b00 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationDetails.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationDetails.json @@ -34,6 +34,7 @@ "reservedResourceType": "VirtualMachines", "instanceFlexibility": "Off", "skuDescription": "D1 v2", + "term": "P1Y", "mergeProperties": { "mergeSources": [ "/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7", @@ -58,6 +59,14 @@ }, "renew": false } + }, + "billingCurrencyTotal": { + "currencyCode": "USD", + "amount": 466.0 + }, + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 466.0 } } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/MergeReservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/MergeReservations.json index 80f863f7311b..f5b46e7e3bd7 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/MergeReservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/MergeReservations.json @@ -123,8 +123,6 @@ } ] }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/SplitReservation.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/SplitReservation.json index 84d3c0db51ae..e16d637755a0 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/SplitReservation.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/SplitReservation.json @@ -114,8 +114,6 @@ } ] }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/UpdateReservation.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/UpdateReservation.json index 4a9084369241..107ebee173db 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/UpdateReservation.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/UpdateReservation.json @@ -43,8 +43,6 @@ } } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/reservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/reservations.json index 29e1fe8faed0..cc1eb5632fdc 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/reservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/reservations.json @@ -427,7 +427,7 @@ } ], "tags": [ - "Reservation" + "Reservation" ], "responses": { "200": { @@ -862,15 +862,27 @@ "purchaseProperties": { "$ref": "#/definitions/PurchaseRequest" }, - "lockedPriceTotal": { + "pricingCurrencyTotal": { "type": "object", - "description": "Locked currency & amount for new reservation purchase at the time of renewal. Price is locked 30 days before expiry date time if renew is true.", + "description": "Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included. This is locked price 30 days before expiry.", "properties": { "currencyCode": { "type": "string" }, "amount": { + "type": "number" + } + } + }, + "billingCurrencyTotal": { + "type": "object", + "description": "Currency and amount that customer will be charged in customer's local currency for renewal purchase. Tax is not included.", + "properties": { + "currencyCode": { "type": "string" + }, + "amount": { + "type": "number" } } } @@ -1000,6 +1012,9 @@ }, "renewProperties": { "$ref": "#/definitions/RenewPropertiesResponse" + }, + "term": { + "$ref": "#/definitions/ReservationTerm" } } }, @@ -1385,7 +1400,11 @@ "VirtualMachines", "SqlDatabases", "SuseLinux", - "CosmosDb" + "CosmosDb", + "RedHat", + "SqlDataWarehouse", + "VMwareCloudSimple", + "RedHatOsa" ], "x-ms-enum": { "name": "ReservedResourceType", diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/MergeReservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/MergeReservations.json index c20dcb0ecee1..49ea8f447145 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/MergeReservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/MergeReservations.json @@ -108,8 +108,6 @@ } ] }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/SplitReservation.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/SplitReservation.json index 5748c448f403..82cb3eeb70b7 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/SplitReservation.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/SplitReservation.json @@ -99,8 +99,6 @@ } ] }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/UpdateReservation.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/UpdateReservation.json index 102576ecfe15..2ad867375eaa 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/UpdateReservation.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/UpdateReservation.json @@ -37,8 +37,6 @@ } } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/reservations/resource-manager/readme.md b/specification/reservations/resource-manager/readme.md index 53ae7c66c525..ff4a19b2f969 100644 --- a/specification/reservations/resource-manager/readme.md +++ b/specification/reservations/resource-manager/readme.md @@ -67,6 +67,7 @@ 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-go - repo: azure-sdk-for-js @@ -120,3 +121,30 @@ python: ## Go See configuration in [readme.go.md](./readme.go.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.Capacity/preview/2019-04-01/reservations.json + - $(this-folder)/Microsoft.Capacity/preview/2018-06-01/reservations.json + - $(this-folder)/Microsoft.Capacity/stable/2017-11-01/reservations.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/resourcegraph/resource-manager/readme.md b/specification/resourcegraph/resource-manager/readme.md index 5c6145a13c9f..2da307cce788 100644 --- a/specification/resourcegraph/resource-manager/readme.md +++ b/specification/resourcegraph/resource-manager/readme.md @@ -69,6 +69,7 @@ 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 @@ -113,3 +114,30 @@ directive: "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. ``` + +## 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.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, +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/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/AvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/AvailabilityStatus_GetByResource.json index bd6d49d3da78..e8f5773270f2 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/AvailabilityStatus_GetByResource.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/AvailabilityStatus_GetByResource.json @@ -21,16 +21,16 @@ "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", - "RecommendedActions": [ + "recommendedActions": [ { - "Action": "To start this virtual machine, open the resource blade and click Start", - "ActionUrl": "<#ResourceBlade>", - "ActionUrlText": "resource blade" + "action": "To start this virtual machine, open the resource blade and click Start", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resource blade" }, { - "Action": "If you are experiencing problems you believe are caused by Azure, contact support", - "ActionUrl": "<#SupportCase>", - "ActionUrlText": "contact support" + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" } ] } diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/AvailabilityStatuses_ListByResourceGroup.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/AvailabilityStatuses_ListByResourceGroup.json index 411098e6edb0..a6911b95fdbe 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/AvailabilityStatuses_ListByResourceGroup.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/AvailabilityStatuses_ListByResourceGroup.json @@ -22,16 +22,16 @@ "detailedStatus": "We have not seen any issues with your virtual machine", "occuredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", - "RecentlyResolved": { - "UnavailableOccuredTime": "2017-02-28T00:48:00Z", - "ResolvedTime": "2017-02-28T00:49:00Z", - "UnavailableSummary": "We are sorry your SQL database is unavailable" + "recentlyResolvedState": { + "unavailableOccurredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailabilitySummary": "We are sorry your SQL database is unavailable" }, - "RecommendedActions": [ + "recommendedActions": [ { - "Action": "To start this virtualmachine, open the resource blade and click Start", - "ActionUrl": "<#ResourceBlade>", - "ActionUrlText": "resourceblade" + "action": "To start this virtualmachine, open the resource blade and click Start", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resourceblade" } ] } @@ -51,16 +51,16 @@ "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", - "RecommendedActions": [ + "recommendedActions": [ { - "Action": "To start this virtualmachine, open the resource blade", - "ActionUrl": "<#ResourceBlade>", - "ActionUrlText": "resourceblade" + "action": "To start this virtualmachine, open the resource blade", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resourceblade" }, { - "Action": "If you are experiencing problems you believe are caused by Azure, contact support", - "ActionUrl": "<#SupportCase>", - "ActionUrlText": "contactsupport" + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contactsupport" } ] } diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/AvailabilityStatuses_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/AvailabilityStatuses_ListBySubscriptionId.json index 616fb352023a..e2ca64634831 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/AvailabilityStatuses_ListBySubscriptionId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/AvailabilityStatuses_ListBySubscriptionId.json @@ -21,16 +21,16 @@ "detailedStatus": "We have not seen any issues with your virtual machine", "occuredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", - "RecentlyResolved": { - "UnavailableOccuredTime": "2017-02-28T00:48:00Z", - "ResolvedTime": "2017-02-28T00:49:00Z", - "UnavailableSummary": "We are sorry your SQL database is unavailable" + "recentlyResolvedState": { + "unavailableOccurredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailabilitySummary": "We are sorry your SQL database is unavailable" }, - "RecommendedActions": [ + "recommendedActions": [ { - "Action": "To start this virtualmachine, open the resource blade and click Start", - "ActionUrl": "<#ResourceBlade>", - "ActionUrlText": "resourceblade" + "action": "To start this virtualmachine, open the resource blade and click Start", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resourceblade" } ] } @@ -50,16 +50,16 @@ "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", - "RecommendedActions": [ + "recommendedActions": [ { - "Action": "To start this virtualmachine, open the resource blade", - "ActionUrl": "<#ResourceBlade>", - "ActionUrlText": "resourceblade" + "action": "To start this virtualmachine, open the resource blade", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resourceblade" }, { - "Action": "If you are experiencing problems you believe are caused by Azure, contact support", - "ActionUrl": "<#SupportCase>", - "ActionUrlText": "contactsupport" + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contactsupport" } ] } diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/ChildAvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/ChildAvailabilityStatus_GetByResource.json index 3ecc10994c19..d53e6a6d2ecd 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/ChildAvailabilityStatus_GetByResource.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/examples/ChildAvailabilityStatus_GetByResource.json @@ -19,16 +19,16 @@ "occuredTime": "2018-11-30T23:37:44Z", "reasonChronicity": "Persistent", "reportedTime": "2018-12-04T01:19:11.955255Z", - "RecommendedActions": [ + "recommendedActions": [ { - "Action": "To start this virtual machine, open the resource blade and click Start", - "ActionUrl": "<#ResourceBlade>", - "ActionUrlText": "resource blade" + "action": "To start this virtual machine, open the resource blade and click Start", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resource blade" }, { - "Action": "If you are experiencing problems you believe are caused by Azure, contact support", - "ActionUrl": "<#SupportCase>", - "ActionUrlText": "contact support" + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" } ] } diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatus_GetByResource.json index bd6d49d3da78..e8f5773270f2 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatus_GetByResource.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatus_GetByResource.json @@ -21,16 +21,16 @@ "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", - "RecommendedActions": [ + "recommendedActions": [ { - "Action": "To start this virtual machine, open the resource blade and click Start", - "ActionUrl": "<#ResourceBlade>", - "ActionUrlText": "resource blade" + "action": "To start this virtual machine, open the resource blade and click Start", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resource blade" }, { - "Action": "If you are experiencing problems you believe are caused by Azure, contact support", - "ActionUrl": "<#SupportCase>", - "ActionUrlText": "contact support" + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" } ] } diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatuses_ListByResourceGroup.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatuses_ListByResourceGroup.json index 411098e6edb0..a6911b95fdbe 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatuses_ListByResourceGroup.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatuses_ListByResourceGroup.json @@ -22,16 +22,16 @@ "detailedStatus": "We have not seen any issues with your virtual machine", "occuredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", - "RecentlyResolved": { - "UnavailableOccuredTime": "2017-02-28T00:48:00Z", - "ResolvedTime": "2017-02-28T00:49:00Z", - "UnavailableSummary": "We are sorry your SQL database is unavailable" + "recentlyResolvedState": { + "unavailableOccurredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailabilitySummary": "We are sorry your SQL database is unavailable" }, - "RecommendedActions": [ + "recommendedActions": [ { - "Action": "To start this virtualmachine, open the resource blade and click Start", - "ActionUrl": "<#ResourceBlade>", - "ActionUrlText": "resourceblade" + "action": "To start this virtualmachine, open the resource blade and click Start", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resourceblade" } ] } @@ -51,16 +51,16 @@ "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", - "RecommendedActions": [ + "recommendedActions": [ { - "Action": "To start this virtualmachine, open the resource blade", - "ActionUrl": "<#ResourceBlade>", - "ActionUrlText": "resourceblade" + "action": "To start this virtualmachine, open the resource blade", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resourceblade" }, { - "Action": "If you are experiencing problems you believe are caused by Azure, contact support", - "ActionUrl": "<#SupportCase>", - "ActionUrlText": "contactsupport" + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contactsupport" } ] } diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatuses_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatuses_ListBySubscriptionId.json index 616fb352023a..e2ca64634831 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatuses_ListBySubscriptionId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatuses_ListBySubscriptionId.json @@ -21,16 +21,16 @@ "detailedStatus": "We have not seen any issues with your virtual machine", "occuredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", - "RecentlyResolved": { - "UnavailableOccuredTime": "2017-02-28T00:48:00Z", - "ResolvedTime": "2017-02-28T00:49:00Z", - "UnavailableSummary": "We are sorry your SQL database is unavailable" + "recentlyResolvedState": { + "unavailableOccurredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailabilitySummary": "We are sorry your SQL database is unavailable" }, - "RecommendedActions": [ + "recommendedActions": [ { - "Action": "To start this virtualmachine, open the resource blade and click Start", - "ActionUrl": "<#ResourceBlade>", - "ActionUrlText": "resourceblade" + "action": "To start this virtualmachine, open the resource blade and click Start", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resourceblade" } ] } @@ -50,16 +50,16 @@ "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", - "RecommendedActions": [ + "recommendedActions": [ { - "Action": "To start this virtualmachine, open the resource blade", - "ActionUrl": "<#ResourceBlade>", - "ActionUrlText": "resourceblade" + "action": "To start this virtualmachine, open the resource blade", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resourceblade" }, { - "Action": "If you are experiencing problems you believe are caused by Azure, contact support", - "ActionUrl": "<#SupportCase>", - "ActionUrlText": "contactsupport" + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contactsupport" } ] } diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/ChildAvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/ChildAvailabilityStatus_GetByResource.json index 3ecc10994c19..d53e6a6d2ecd 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/ChildAvailabilityStatus_GetByResource.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/ChildAvailabilityStatus_GetByResource.json @@ -19,16 +19,16 @@ "occuredTime": "2018-11-30T23:37:44Z", "reasonChronicity": "Persistent", "reportedTime": "2018-12-04T01:19:11.955255Z", - "RecommendedActions": [ + "recommendedActions": [ { - "Action": "To start this virtual machine, open the resource blade and click Start", - "ActionUrl": "<#ResourceBlade>", - "ActionUrlText": "resource blade" + "action": "To start this virtual machine, open the resource blade and click Start", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resource blade" }, { - "Action": "If you are experiencing problems you believe are caused by Azure, contact support", - "ActionUrl": "<#SupportCase>", - "ActionUrlText": "contact support" + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" } ] } diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/ChildResources_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/ChildResources_List.json index 442f5aa55947..1fd8b245187d 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/ChildResources_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/ChildResources_List.json @@ -19,8 +19,7 @@ "reasonType": "", "occuredTime": "2018-11-30T23:37:43Z", "reasonChronicity": "Persistent", - "reportedTime": "2018-12-04T01:18:25.575477Z", - "isArmResource": true + "reportedTime": "2018-12-04T01:18:25.575477Z" } }, { @@ -35,8 +34,7 @@ "reasonType": "", "occuredTime": "2018-11-30T23:37:41Z", "reasonChronicity": "Persistent", - "reportedTime": "2018-12-04T01:18:25.575477Z", - "isArmResource": true + "reportedTime": "2018-12-04T01:18:25.575477Z" } }, { @@ -51,8 +49,7 @@ "reasonType": "", "occuredTime": "2018-11-30T23:37:48Z", "reasonChronicity": "Persistent", - "reportedTime": "2018-12-04T01:18:25.575477Z", - "isArmResource": true + "reportedTime": "2018-12-04T01:18:25.575477Z" } }, { @@ -67,8 +64,7 @@ "reasonType": "", "occuredTime": "2018-11-30T23:37:43Z", "reasonChronicity": "Persistent", - "reportedTime": "2018-12-04T01:18:25.575477Z", - "isArmResource": true + "reportedTime": "2018-12-04T01:18:25.575477Z" } }, { @@ -83,8 +79,7 @@ "reasonType": "", "occuredTime": "2018-11-30T23:37:44Z", "reasonChronicity": "Persistent", - "reportedTime": "2018-12-04T01:18:25.575477Z", - "isArmResource": true + "reportedTime": "2018-12-04T01:18:25.575477Z" } } ] diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index e48192ec36b1..76e2d028cb4d 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -146,3 +146,30 @@ regenerate-manager: true generate-interface: 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)/Microsoft.ResourceHealth/stable/2017-07-01/resourcehealth.json + - $(this-folder)/Microsoft.ResourceHealth/stable/2015-01-01/resourcehealth.json + - $(this-folder)/Microsoft.ResourceHealth/preview/2018-08-01/ResourceHealth.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/resources/resource-manager/Microsoft.Authorization/preview/2017-06-01-preview/examples/createPolicyAssignment.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2017-06-01-preview/examples/createPolicyAssignment.json index 86b9597963ee..8b82fbd3537e 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/preview/2017-06-01-preview/examples/createPolicyAssignment.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2017-06-01-preview/examples/createPolicyAssignment.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2017-06-01-preview", "policyAssignmentName": "costManagement", - "scope": "/subscriptions/subId", + "scope": "subscriptions/subId", "parameters": { "properties": { "displayName": "Storage Cost Management", diff --git a/specification/resources/resource-manager/Microsoft.Authorization/preview/2017-06-01-preview/examples/getPolicyAssignment.json b/specification/resources/resource-manager/Microsoft.Authorization/preview/2017-06-01-preview/examples/getPolicyAssignment.json index 5c55c15ccfd3..37f34f809f16 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/preview/2017-06-01-preview/examples/getPolicyAssignment.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/preview/2017-06-01-preview/examples/getPolicyAssignment.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2017-06-01-preview", "policyAssignmentName": "costManagement", - "scope": "/subscriptions/subId" + "scope": "subscriptions/subId" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2018-03-01/policyAssignments.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2018-03-01/policyAssignments.json index fb74484c704e..aea044c70f67 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2018-03-01/policyAssignments.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2018-03-01/policyAssignments.json @@ -196,7 +196,7 @@ ], "operationId": "PolicyAssignments_ListForResourceGroup", "summary": "Retrieves all policy assignments that apply to a resource group.", - "description": "This operation retrieves the list of all policy assignments associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource group, which is everything in the unfiltered list except those applied to resources contained within the resource group. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes only policy assignments that apply to the resource group and assign the policy definition whose id is {value}.", + "description": "This operation retrieves the list of all policy assignments associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource group, which is everything in the unfiltered list except those applied to resources contained within the resource group. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource group.", "x-ms-examples": { "List policy assignments that apply to a resource group": { "$ref": "./examples/listPolicyAssignmentsForResourceGroup.json" @@ -254,7 +254,7 @@ ], "operationId": "PolicyAssignments_ListForResource", "summary": "Retrieves all policy assignments that apply to a resource.", - "description": "This operation retrieves the list of all policy assignments associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource, which is everything in the unfiltered list except those applied to resources contained within the resource. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes only policy assignments that apply to the resource and assign the policy definition whose id is {value}. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').", + "description": "This operation retrieves the list of all policy assignments associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource, which is everything in the unfiltered list except those applied to resources contained within the resource. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').", "deprecated": false, "x-ms-examples": { "List all policy assignments that apply to a resource": { @@ -343,7 +343,7 @@ ], "operationId": "PolicyAssignments_List", "summary": "Retrieves all policy assignments that apply to a subscription.", - "description": "This operation retrieves the list of all policy assignments associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the subscription, which is everything in the unfiltered list except those applied to objects contained within the subscription. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes only policy assignments that apply to the subscription and assign the policy definition whose id is {value}.", + "description": "This operation retrieves the list of all policy assignments associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the subscription, which is everything in the unfiltered list except those applied to objects contained within the subscription. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value}.", "x-ms-examples": { "List policy assignments that apply to a subscription": { "$ref": "./examples/listPolicyAssignments.json" diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2018-05-01/policyAssignments.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2018-05-01/policyAssignments.json index d2fc217a17c2..5186062c803b 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2018-05-01/policyAssignments.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2018-05-01/policyAssignments.json @@ -202,7 +202,7 @@ ], "operationId": "PolicyAssignments_ListForResourceGroup", "summary": "Retrieves all policy assignments that apply to a resource group.", - "description": "This operation retrieves the list of all policy assignments associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource group, which is everything in the unfiltered list except those applied to resources contained within the resource group. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes only policy assignments that apply to the resource group and assign the policy definition whose id is {value}.", + "description": "This operation retrieves the list of all policy assignments associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource group, which is everything in the unfiltered list except those applied to resources contained within the resource group. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource group.", "x-ms-examples": { "List policy assignments that apply to a resource group": { "$ref": "./examples/listPolicyAssignmentsForResourceGroup.json" @@ -260,7 +260,7 @@ ], "operationId": "PolicyAssignments_ListForResource", "summary": "Retrieves all policy assignments that apply to a resource.", - "description": "This operation retrieves the list of all policy assignments associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource, which is everything in the unfiltered list except those applied to resources contained within the resource. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes only policy assignments that apply to the resource and assign the policy definition whose id is {value}. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').", + "description": "This operation retrieves the list of all policy assignments associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource, which is everything in the unfiltered list except those applied to resources contained within the resource. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').", "deprecated": false, "x-ms-examples": { "List all policy assignments that apply to a resource": { @@ -349,7 +349,7 @@ ], "operationId": "PolicyAssignments_List", "summary": "Retrieves all policy assignments that apply to a subscription.", - "description": "This operation retrieves the list of all policy assignments associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the subscription, which is everything in the unfiltered list except those applied to objects contained within the subscription. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes only policy assignments that apply to the subscription and assign the policy definition whose id is {value}.", + "description": "This operation retrieves the list of all policy assignments associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the subscription, which is everything in the unfiltered list except those applied to objects contained within the subscription. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value}.", "x-ms-examples": { "List policy assignments that apply to a subscription": { "$ref": "./examples/listPolicyAssignments.json" diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createOrUpdatePolicyDefinition.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createOrUpdatePolicyDefinition.json new file mode 100644 index 000000000000..047fd516cfff --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createOrUpdatePolicyDefinition.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "policyDefinitionName": "ResourceNaming", + "api-version": "2019-01-01", + "parameters": { + "properties": { + "mode": "All", + "displayName": "Enforce resource naming convention", + "description": "Force resource names to begin with given 'prefix' and/or end with given 'suffix'", + "metadata": { + "category": "Naming" + }, + "policyRule": { + "if": { + "not": { + "field": "name", + "like": "[concat(parameters('prefix'), '*', parameters('suffix'))]" + } + }, + "then": { + "effect": "deny" + } + }, + "parameters": { + "prefix": { + "type": "String", + "metadata": { + "displayName": "Prefix", + "description": "Resource name prefix" + } + }, + "suffix": { + "type": "String", + "metadata": { + "displayName": "Suffix", + "description": "Resource name suffix" + } + } + } + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "type": "Microsoft.Authorization/policyDefinitions", + "name": "ResourceNaming", + "properties": { + "mode": "All", + "displayName": "Naming Convention", + "description": "Force resource names to begin with 'prefix' and end with 'suffix'", + "metadata": { + "category": "Naming" + }, + "policyRule": { + "if": { + "not": { + "field": "name", + "like": "[concat(parameters('prefix'), '*', parameters('suffix'))]" + } + }, + "then": { + "effect": "deny" + } + }, + "parameters": { + "prefix": { + "type": "String", + "metadata": { + "displayName": "Prefix", + "description": "Resource name prefix" + } + }, + "suffix": { + "type": "String", + "metadata": { + "displayName": "Suffix", + "description": "Resource name suffix" + } + } + }, + "policyType": "Custom" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createOrUpdatePolicyDefinitionAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createOrUpdatePolicyDefinitionAtManagementGroup.json new file mode 100644 index 000000000000..9368456997b6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createOrUpdatePolicyDefinitionAtManagementGroup.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "managementGroupId": "MyManagementGroup", + "policyDefinitionName": "ResourceNaming", + "api-version": "2019-01-01", + "parameters": { + "properties": { + "mode": "All", + "displayName": "Enforce resource naming convention", + "description": "Force resource names to begin with given 'prefix' and/or end with given 'suffix'", + "metadata": { + "category": "Naming" + }, + "policyRule": { + "if": { + "not": { + "field": "name", + "like": "[concat(parameters('prefix'), '*', parameters('suffix'))]" + } + }, + "then": { + "effect": "deny" + } + }, + "parameters": { + "prefix": { + "type": "String", + "metadata": { + "displayName": "Prefix", + "description": "Resource name prefix" + } + }, + "suffix": { + "type": "String", + "metadata": { + "displayName": "Suffix", + "description": "Resource name suffix" + } + } + } + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "id": "/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "type": "Microsoft.Authorization/policyDefinitions", + "name": "ResourceNaming", + "properties": { + "mode": "All", + "displayName": "Naming Convention", + "description": "Force resource names to begin with 'prefix' and end with 'suffix'", + "metadata": { + "category": "Naming" + }, + "policyRule": { + "if": { + "not": { + "field": "name", + "like": "[concat(parameters('prefix'), '*', parameters('suffix'))]" + } + }, + "then": { + "effect": "deny" + } + }, + "parameters": { + "prefix": { + "type": "String", + "metadata": { + "displayName": "Prefix", + "description": "Resource name prefix" + } + }, + "suffix": { + "type": "String", + "metadata": { + "displayName": "Suffix", + "description": "Resource name suffix" + } + } + }, + "policyType": "Custom" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createOrUpdatePolicySetDefinition.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createOrUpdatePolicySetDefinition.json new file mode 100644 index 000000000000..31dc9142a8ed --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createOrUpdatePolicySetDefinition.json @@ -0,0 +1,120 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "policySetDefinitionName": "CostManagement", + "api-version": "2019-01-01", + "parameters": { + "properties": { + "displayName": "Cost Management", + "description": "Policies to enforce low cost storage SKUs", + "metadata": { + "category": "Cost Management" + }, + "policyDefinitions": [ + { + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + { + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + } + } + ] + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policySetDefinitions/CostManagement", + "type": "Microsoft.Authorization/policySetDefinitions", + "name": "CostManagement", + "properties": { + "displayName": "Cost Management", + "description": "Policies to enforce low cost storage SKUs", + "metadata": { + "category": "Cost Management" + }, + "policyDefinitions": [ + { + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + { + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + } + } + ] + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policySetDefinitions/CostManagement", + "type": "Microsoft.Authorization/policySetDefinitions", + "name": "CostManagement", + "properties": { + "displayName": "Cost Management", + "description": "Policies to enforce low cost storage SKUs", + "metadata": { + "category": "Cost Management" + }, + "policyDefinitions": [ + { + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + { + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + } + } + ] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createOrUpdatePolicySetDefinitionAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createOrUpdatePolicySetDefinitionAtManagementGroup.json new file mode 100644 index 000000000000..b12e4852bd23 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createOrUpdatePolicySetDefinitionAtManagementGroup.json @@ -0,0 +1,120 @@ +{ + "parameters": { + "managementGroupId": "MyManagementGroup", + "policySetDefinitionName": "CostManagement", + "api-version": "2019-01-01", + "parameters": { + "properties": { + "displayName": "Cost Management", + "description": "Policies to enforce low cost storage SKUs", + "metadata": { + "category": "Cost Management" + }, + "policyDefinitions": [ + { + "policyDefinitionId": "/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + { + "policyDefinitionId": "/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + } + } + ] + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "id": "/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/CostManagement", + "type": "Microsoft.Authorization/policySetDefinitions", + "name": "CostManagement", + "properties": { + "displayName": "Cost Management", + "description": "Policies to enforce low cost storage SKUs", + "metadata": { + "category": "Cost Management" + }, + "policyDefinitions": [ + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + { + "policyDefinitionId": "/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + } + } + ] + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/CostManagement", + "type": "Microsoft.Authorization/policySetDefinitions", + "name": "CostManagement", + "properties": { + "displayName": "Cost Management", + "description": "Policies to enforce low cost storage SKUs", + "metadata": { + "category": "Cost Management" + }, + "policyDefinitions": [ + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + { + "policyDefinitionId": "/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + } + } + ] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createPolicyAssignment.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createPolicyAssignment.json new file mode 100644 index 000000000000..3adf19cad672 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createPolicyAssignment.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "scope": "subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "policyAssignmentName": "EnforceNaming", + "api-version": "2019-01-01", + "parameters": { + "properties": { + "displayName": "Enforce resource naming rules", + "description": "Force resource names to begin with given DeptA and end with -LC", + "metadata": { + "assignedBy": "Special Someone" + }, + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + } + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "properties": { + "displayName": "Enforce resource naming rules", + "description": "Force resource names to begin with given DeptA and end with -LC", + "metadata": { + "assignedBy": "Special Someone" + }, + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "notScopes": [], + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + }, + "scope": "subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming", + "type": "Microsoft.Authorization/policyAssignments", + "name": "EnforceNaming" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createPolicyAssignmentById.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createPolicyAssignmentById.json new file mode 100644 index 000000000000..cb9115bef3bb --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createPolicyAssignmentById.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "policyAssignmentId": "providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage", + "api-version": "2019-01-01", + "parameters": { + "properties": { + "displayName": "Enforce storage account SKU", + "description": "Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created", + "metadata": { + "assignedBy": "Cheapskate Boss" + }, + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "properties": { + "displayName": "Enforce storage account SKU", + "description": "Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created", + "metadata": { + "assignedBy": "Cheapskate Boss" + }, + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "notScopes": [], + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + "id": "/providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage", + "type": "Microsoft.Authorization/policyAssignments", + "name": "LowCostStorage" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createPolicyAssignmentWithIdentity.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createPolicyAssignmentWithIdentity.json new file mode 100644 index 000000000000..9fc965764607 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createPolicyAssignmentWithIdentity.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "scope": "subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "policyAssignmentName": "EnforceNaming", + "api-version": "2019-01-01", + "parameters": { + "location": "eastus", + "identity": { + "type": "SystemAssigned" + }, + "properties": { + "displayName": "Enforce resource naming rules", + "description": "Force resource names to begin with given DeptA and end with -LC", + "metadata": { + "assignedBy": "Foo Bar" + }, + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + } + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "properties": { + "displayName": "Enforce resource naming rules", + "description": "Force resource names to begin with given DeptA and end with -LC", + "metadata": { + "assignedBy": "Special Someone" + }, + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "notScopes": [], + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + }, + "scope": "subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2" + }, + "identity": { + "type": "SystemAssigned", + "principalId": "e6d23f8d-af97-4fbc-bda6-00604e4e3d0a", + "tenantId": "4bee2b8a-1bee-47c2-90e9-404241551135" + }, + "location": "eastus", + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming", + "type": "Microsoft.Authorization/policyAssignments", + "name": "EnforceNaming" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createPolicyAssignmentWithIdentityById.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createPolicyAssignmentWithIdentityById.json new file mode 100644 index 000000000000..e57b63cb6599 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/createPolicyAssignmentWithIdentityById.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "policyAssignmentId": "providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage", + "api-version": "2019-01-01", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus", + "properties": { + "displayName": "Enforce storage account SKU", + "description": "Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created", + "metadata": { + "assignedBy": "Cheapskate Boss" + }, + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "properties": { + "displayName": "Enforce storage account SKU", + "description": "Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created", + "metadata": { + "assignedBy": "Cheapskate Boss" + }, + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "notScopes": [], + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + "identity": { + "type": "SystemAssigned", + "principalId": "e6d23f8d-af97-4fbc-bda6-00604e4e3d0a", + "tenantId": "4bee2b8a-1bee-47c2-90e9-404241551135" + }, + "location": "eastus", + "id": "/providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage", + "type": "Microsoft.Authorization/policyAssignments", + "name": "LowCostStorage" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicyAssignment.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicyAssignment.json new file mode 100644 index 000000000000..33f2557284ca --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicyAssignment.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "scope": "subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "policyAssignmentName": "EnforceNaming", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "displayName": "Enforce resource naming rules", + "description": "Force resource names to begin with given DeptA and end with -LC", + "metadata": { + "assignedBy": "Special Someone" + }, + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "notScopes": [], + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + }, + "scope": "subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming", + "type": "Microsoft.Authorization/policyAssignments", + "name": "EnforceNaming" + } + }, + "204": { + "headers": {} + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicyAssignmentById.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicyAssignmentById.json new file mode 100644 index 000000000000..aec493621919 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicyAssignmentById.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "policyAssignmentId": "providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "displayName": "Enforce storage account SKU", + "description": "Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created", + "metadata": { + "assignedBy": "Cheapskate Boss" + }, + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "notScopes": [], + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + "id": "/providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage", + "type": "Microsoft.Authorization/policyAssignments", + "name": "LowCostStorage" + } + }, + "204": { + "headers": {} + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicyDefinition.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicyDefinition.json new file mode 100644 index 000000000000..d0cd8d8064bb --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicyDefinition.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "policyDefinitionName": "ResourceNaming", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {} + }, + "204": { + "headers": {} + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicyDefinitionAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicyDefinitionAtManagementGroup.json new file mode 100644 index 000000000000..1fe810c65883 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicyDefinitionAtManagementGroup.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "managementGroupId": "MyManagementGroup", + "policyDefinitionName": "ResourceNaming", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {} + }, + "204": { + "headers": {} + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicySetDefinition.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicySetDefinition.json new file mode 100644 index 000000000000..7109b0b193a3 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicySetDefinition.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "policySetDefinitionName": "CostManagement", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {} + }, + "204": { + "headers": {} + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicySetDefinitionAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicySetDefinitionAtManagementGroup.json new file mode 100644 index 000000000000..89b7768950b4 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/deletePolicySetDefinitionAtManagementGroup.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "managementGroupId": "MyManagementGroup", + "policySetDefinitionName": "CostManagement", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {} + }, + "204": { + "headers": {} + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getBuiltInPolicySetDefinition.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getBuiltInPolicySetDefinition.json new file mode 100644 index 000000000000..09b648f1de57 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getBuiltInPolicySetDefinition.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "displayName": "[Preview]: Enable Monitoring in Azure Security Center", + "policyType": "BuiltIn", + "description": "Monitor all the available security recommendations in Azure Security Center. This is the default policy for Azure Security Center.", + "metadata": { + "category": "Security Center" + }, + "parameters": {}, + "policyDefinitions": [ + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a8bef009-a5c9-4d0f-90d7-6018734e8a16" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/af8051bf-258b-44e2-a2bf-165330459f9d" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/86b3d65f-7626-441e-b690-81a8b71cff60" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/655cb504-bcee-4362-bd4c-402e6aa38759" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/47a6b606-51aa-4496-8bb7-64b11cf66adc" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/44452482-524f-4bf4-b852-0bff7cc4a3ed" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/af6cd1bd-1635-48cb-bde7-5b15693900b9" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/760a85ff-6162-42b3-8d70-698e268f648c" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6" + } + ] + }, + "id": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8", + "type": "Microsoft.Authorization/policySetDefinitions", + "name": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getBuiltinPolicyDefinition.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getBuiltinPolicyDefinition.json new file mode 100644 index 000000000000..6b4f2a4dbce7 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getBuiltinPolicyDefinition.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "policyDefinitionName": "7433c107-6db4-4ad1-b57a-a76dce0154a1", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "mode": "All", + "displayName": "Allowed storage account SKUs", + "policyType": "BuiltIn", + "description": "This policy enables you to specify a set of storage account SKUs that your organization can deploy.", + "parameters": { + "listOfAllowedSKUs": { + "type": "Array", + "metadata": { + "description": "The list of SKUs that can be specified for storage accounts.", + "displayName": "Allowed SKUs", + "strongType": "StorageSKUs" + } + } + }, + "policyRule": { + "if": { + "allOf": [ + { + "field": "type", + "equals": "Microsoft.Storage/storageAccounts" + }, + { + "not": { + "field": "Microsoft.Storage/storageAccounts/sku.name", + "in": "[parameters('listOfAllowedSKUs')]" + } + } + ] + }, + "then": { + "effect": "Deny" + } + } + }, + "id": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "type": "Microsoft.Authorization/policyDefinitions", + "name": "7433c107-6db4-4ad1-b57a-a76dce0154a1" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyAssignment.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyAssignment.json new file mode 100644 index 000000000000..c0f3643ef7c9 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyAssignment.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "scope": "subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "policyAssignmentName": "EnforceNaming", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "displayName": "Enforce resource naming rules", + "description": "Force resource names to begin with given DeptA and end with -LC", + "metadata": { + "assignedBy": "Special Someone" + }, + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "notScopes": [], + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + }, + "scope": "subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming", + "type": "Microsoft.Authorization/policyAssignments", + "name": "EnforceNaming" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyAssignmentById.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyAssignmentById.json new file mode 100644 index 000000000000..4017806e47d7 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyAssignmentById.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "policyAssignmentId": "providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "displayName": "Enforce storage account SKU", + "description": "Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created", + "metadata": { + "assignedBy": "Cheapskate Boss" + }, + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "notScopes": [], + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + "id": "/providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage", + "type": "Microsoft.Authorization/policyAssignments", + "name": "LowCostStorage" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyAssignmentWithIdentity.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyAssignmentWithIdentity.json new file mode 100644 index 000000000000..280c7aa96d0d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyAssignmentWithIdentity.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "scope": "subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "policyAssignmentName": "EnforceNaming", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "displayName": "Enforce resource naming rules", + "description": "Force resource names to begin with given DeptA and end with -LC", + "metadata": { + "assignedBy": "Special Someone" + }, + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "notScopes": [], + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + }, + "scope": "subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2" + }, + "identity": { + "type": "SystemAssigned", + "principalId": "e6d23f8d-af97-4fbc-bda6-00604e4e3d0a", + "tenantId": "4bee2b8a-1bee-47c2-90e9-404241551135" + }, + "location": "westus", + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/EnforceNaming", + "type": "Microsoft.Authorization/policyAssignments", + "name": "EnforceNaming" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyAssignmentWithIdentityById.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyAssignmentWithIdentityById.json new file mode 100644 index 000000000000..2da901bbb7e4 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyAssignmentWithIdentityById.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "policyAssignmentId": "providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "displayName": "Enforce storage account SKU", + "description": "Allow only storage accounts of SKU Standard_GRS or Standard_LRS to be created", + "metadata": { + "assignedBy": "Cheapskate Boss" + }, + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "notScopes": [], + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + "identity": { + "type": "SystemAssigned", + "principalId": "e6d23f8d-af97-4fbc-bda6-00604e4e3d0a", + "tenantId": "4bee2b8a-1bee-47c2-90e9-404241551135" + }, + "location": "westus", + "id": "/providers/Microsoft.Management/managementGroups/MyManagementGroup/providers/Microsoft.Authorization/policyAssignments/LowCostStorage", + "type": "Microsoft.Authorization/policyAssignments", + "name": "LowCostStorage" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyDefinition.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyDefinition.json new file mode 100644 index 000000000000..ecfe6c469546 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyDefinition.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "policyDefinitionName": "ResourceNaming", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "properties": { + "mode": "All", + "displayName": "Naming Convention", + "description": "Force resource names to begin with 'prefix' and end with 'suffix'", + "metadata": { + "category": "Naming" + }, + "policyRule": { + "if": { + "not": { + "field": "name", + "like": "[concat(parameters('prefix'), '*', parameters('suffix'))]" + } + }, + "then": { + "effect": "deny" + } + }, + "parameters": { + "prefix": { + "type": "String", + "metadata": { + "displayName": "Prefix", + "description": "Resource name prefix" + } + }, + "suffix": { + "type": "String", + "metadata": { + "displayName": "Suffix", + "description": "Resource name suffix" + } + } + }, + "policyType": "Custom" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "type": "Microsoft.Authorization/policyDefinitions", + "name": "ResourceNaming" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyDefinitionAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyDefinitionAtManagementGroup.json new file mode 100644 index 000000000000..b28cf90e1b14 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicyDefinitionAtManagementGroup.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "managementGroupId": "MyManagementGroup", + "policyDefinitionName": "ResourceNaming", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "type": "Microsoft.Authorization/policyDefinitions", + "name": "ResourceNaming", + "properties": { + "mode": "All", + "displayName": "Naming Convention", + "description": "Force resource names to begin with 'prefix' and end with 'suffix'", + "metadata": { + "category": "Naming" + }, + "policyRule": { + "if": { + "not": { + "field": "name", + "like": "[concat(parameters('prefix'), '*', parameters('suffix'))]" + } + }, + "then": { + "effect": "deny" + } + }, + "parameters": { + "prefix": { + "type": "String", + "metadata": { + "displayName": "Prefix", + "description": "Resource name prefix" + } + }, + "suffix": { + "type": "String", + "metadata": { + "displayName": "Suffix", + "description": "Resource name suffix" + } + } + }, + "policyType": "Custom" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicySetDefinition.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicySetDefinition.json new file mode 100644 index 000000000000..509f365b9a34 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicySetDefinition.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "policySetDefinitionName": "CostManagement", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policySetDefinitions/CostManagement", + "type": "Microsoft.Authorization/policySetDefinitions", + "name": "CostManagement", + "properties": { + "displayName": "Cost Management", + "description": "Policies to enforce low cost storage SKUs", + "metadata": { + "category": "Cost Management" + }, + "policyDefinitions": [ + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + { + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + } + } + ] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicySetDefinitionAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicySetDefinitionAtManagementGroup.json new file mode 100644 index 000000000000..59e995768fb4 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/getPolicySetDefinitionAtManagementGroup.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "managementGroupId": "MyManagementGroup", + "policySetDefinitionName": "CostManagement", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/CostManagement", + "type": "Microsoft.Authorization/policySetDefinitions", + "name": "CostManagement", + "properties": { + "displayName": "Cost Management", + "description": "Policies to enforce low cost storage SKUs", + "metadata": { + "category": "Cost Management" + }, + "policyDefinitions": [ + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + { + "policyDefinitionId": "/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + } + } + ] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listBuiltInPolicyDefinitions.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listBuiltInPolicyDefinitions.json new file mode 100644 index 000000000000..c6a5bab651f1 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listBuiltInPolicyDefinitions.json @@ -0,0 +1,130 @@ +{ + "parameters": { + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "mode": "All", + "displayName": "Audit SQL DB Level Audit Setting", + "policyType": "BuiltIn", + "description": "Audit DB level audit setting for SQL databases", + "parameters": { + "setting": { + "type": "String", + "metadata": { + "displayName": "Audit Setting" + }, + "allowedValues": [ + "enabled", + "disabled" + ] + } + }, + "policyRule": { + "if": { + "field": "type", + "equals": "Microsoft.Sql/servers/databases" + }, + "then": { + "effect": "AuditIfNotExists", + "details": { + "type": "Microsoft.Sql/servers/databases/auditingSettings", + "name": "default", + "existenceCondition": { + "allOf": [ + { + "field": "Microsoft.Sql/auditingSettings.state", + "equals": "[parameters('setting')]" + } + ] + } + } + } + } + }, + "id": "/providers/Microsoft.Authorization/policyDefinitions/06a78e20-9358-41c9-923c-fb736d382a12", + "type": "Microsoft.Authorization/policyDefinitions", + "name": "06a78e20-9358-41c9-923c-fb736d382a12" + }, + { + "properties": { + "mode": "All", + "displayName": "Allowed storage account SKUs", + "policyType": "BuiltIn", + "description": "This policy enables you to specify a set of storage account SKUs that your organization can deploy.", + "parameters": { + "listOfAllowedSKUs": { + "type": "Array", + "metadata": { + "description": "The list of SKUs that can be specified for storage accounts.", + "displayName": "Allowed SKUs", + "strongType": "StorageSKUs" + } + } + }, + "policyRule": { + "if": { + "allOf": [ + { + "field": "type", + "equals": "Microsoft.Storage/storageAccounts" + }, + { + "not": { + "field": "Microsoft.Storage/storageAccounts/sku.name", + "in": "[parameters('listOfAllowedSKUs')]" + } + } + ] + }, + "then": { + "effect": "Deny" + } + } + }, + "id": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "type": "Microsoft.Authorization/policyDefinitions", + "name": "7433c107-6db4-4ad1-b57a-a76dce0154a1" + }, + { + "properties": { + "mode": "Microsoft.KeyVault.Data", + "displayName": "Audit KeyVault certificates that expire within specified number of days", + "policyType": "BuiltIn", + "description": "Audit certificates that are stored in Azure Key Vault, that expire within 'X' number of days.", + "metadata": { + "category": "KeyVault DataPlane" + }, + "parameters": { + "daysToExpire": { + "type": "Integer", + "metadata": { + "displayName": "Days to expire", + "description": "The number of days for a certificate to expire." + } + } + }, + "policyRule": { + "if": { + "field": "Microsoft.KeyVault.Data/vaults/certificates/attributes/expiresOn", + "lessOrEquals": "[addDays(utcNow(), parameters('daysToExpire'))]" + }, + "then": { + "effect": "audit" + } + } + }, + "id": "/providers/Microsoft.Authorization/policyDefinitions/abeed54a-73c5-441d-8a8c-6b5e7a0c299e", + "type": "Microsoft.Authorization/policyDefinitions", + "name": "abeed54a-73c5-441d-8a8c-6b5e7a0c299e" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listBuiltInPolicySetDefinitions.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listBuiltInPolicySetDefinitions.json new file mode 100644 index 000000000000..8372fbca38dc --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listBuiltInPolicySetDefinitions.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "displayName": "[Preview]: Enable Monitoring in Azure Security Center", + "policyType": "BuiltIn", + "description": "Monitor all the available security recommendations in Azure Security Center. This is the default policy for Azure Security Center.", + "metadata": { + "category": "Security Center" + }, + "parameters": {}, + "policyDefinitions": [ + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a8bef009-a5c9-4d0f-90d7-6018734e8a16" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/af8051bf-258b-44e2-a2bf-165330459f9d" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/86b3d65f-7626-441e-b690-81a8b71cff60" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/655cb504-bcee-4362-bd4c-402e6aa38759" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/47a6b606-51aa-4496-8bb7-64b11cf66adc" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/44452482-524f-4bf4-b852-0bff7cc4a3ed" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/af6cd1bd-1635-48cb-bde7-5b15693900b9" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/760a85ff-6162-42b3-8d70-698e268f648c" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6" + } + ] + }, + "id": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8", + "type": "Microsoft.Authorization/policySetDefinitions", + "name": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyAssignments.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyAssignments.json new file mode 100644 index 000000000000..bbd2b7ad5a90 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyAssignments.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "api-version": "2019-01-01", + "$filter": "atScope()" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/CostManagement", + "type": "Microsoft.Authorization/policyAssignments", + "name": "CostManagement", + "location": "eastus", + "identity": { + "type": "SystemAssigned", + "principalId": "e6d23f8d-af97-4fbc-bda6-00604e4e3d0a", + "tenantId": "4bee2b8a-1bee-47c2-90e9-404241551135" + }, + "properties": { + "displayName": "Storage Cost Management", + "description": "Minimize the risk of accidental cost overruns", + "metadata": { + "category": "Cost Management" + }, + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/storageSkus", + "parameters": { + "allowedSkus": { + "type": "Array" + } + }, + "scope": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "notScopes": [] + }, + "sku": { + "name": "A0", + "tier": "Free" + } + }, + { + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyAssignments/TagEnforcement", + "type": "Microsoft.Authorization/policyAssignments", + "name": "TagEnforcement", + "properties": { + "displayName": "Enforces a tag key and value", + "description": "Ensure a given tag key and value are present on all resources", + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/TagKeyValue", + "scope": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "notScopes": [] + }, + "sku": { + "name": "A0", + "tier": "Free" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyAssignmentsForResource.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyAssignmentsForResource.json new file mode 100644 index 000000000000..f55796584c8d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyAssignmentsForResource.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "resourceGroupName": "TestResourceGroup", + "resourceProviderNamespace": "Microsoft.Compute", + "parentResourcePath": "virtualMachines/MyTestVm", + "resourceType": "domainNames", + "resourceName": "MyTestComputer.cloudapp.net", + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup/providers/Microsoft.Authorization/policyAssignments/TestCostManagement", + "type": "Microsoft.Authorization/policyAssignments", + "name": "TestCostManagement", + "location": "eastus", + "identity": { + "type": "SystemAssigned", + "principalId": "e6d23f8d-af97-4fbc-bda6-00604e4e3d0a", + "tenantId": "4bee2b8a-1bee-47c2-90e9-404241551135" + }, + "properties": { + "displayName": "VM Cost Management", + "description": "Minimize the risk of accidental cost overruns", + "metadata": { + "category": "Cost Management" + }, + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/vmSkus", + "parameters": { + "allowedSkus": { + "type": "Array" + } + }, + "scope": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup", + "notScopes": [] + }, + "sku": { + "name": "A0", + "tier": "Free" + } + }, + { + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup/providers/Microsoft.Authorization/policyAssignments/TestTagEnforcement", + "type": "Microsoft.Authorization/policyAssignments", + "name": "TestTagEnforcement", + "properties": { + "displayName": "Enforces a tag key and value", + "description": "Ensure a given tag key and value are present on all resources", + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/TagKeyValue", + "scope": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup", + "notScopes": [] + }, + "sku": { + "name": "A0", + "tier": "Free" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyAssignmentsForResourceGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyAssignmentsForResourceGroup.json new file mode 100644 index 000000000000..339f297cf70e --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyAssignmentsForResourceGroup.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "resourceGroupName": "TestResourceGroup", + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "api-version": "2019-01-01", + "$filter": "atScope()" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup/providers/Microsoft.Authorization/policyAssignments/TestCostManagement", + "type": "Microsoft.Authorization/policyAssignments", + "name": "TestCostManagement", + "location": "eastus", + "identity": { + "type": "SystemAssigned", + "principalId": "e6d23f8d-af97-4fbc-bda6-00604e4e3d0a", + "tenantId": "4bee2b8a-1bee-47c2-90e9-404241551135" + }, + "properties": { + "displayName": "Storage Cost Management", + "description": "Minimize the risk of accidental cost overruns", + "metadata": { + "category": "Cost Management" + }, + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/storageSkus", + "parameters": { + "allowedSkus": { + "type": "Array" + } + }, + "scope": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup", + "notScopes": [] + }, + "sku": { + "name": "A0", + "tier": "Free" + } + }, + { + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup/providers/Microsoft.Authorization/policyAssignments/TestTagEnforcement", + "type": "Microsoft.Authorization/policyAssignments", + "name": "TestTagEnforcement", + "properties": { + "displayName": "Enforces a tag key and value", + "description": "Ensure a given tag key and value are present on all resources", + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/TagKeyValue", + "scope": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/resourceGroups/TestResourceGroup", + "notScopes": [] + }, + "sku": { + "name": "A0", + "tier": "Free" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyDefinitions.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyDefinitions.json new file mode 100644 index 000000000000..72eec165003d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyDefinitions.json @@ -0,0 +1,128 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "mode": "All", + "displayName": "Allowed storage account SKUs", + "policyType": "BuiltIn", + "description": "This policy enables you to specify a set of storage account SKUs that your organization can deploy.", + "parameters": { + "listOfAllowedSKUs": { + "type": "Array", + "metadata": { + "description": "The list of SKUs that can be specified for storage accounts.", + "displayName": "Allowed SKUs", + "strongType": "StorageSKUs" + } + } + }, + "policyRule": { + "if": { + "allOf": [ + { + "field": "type", + "equals": "Microsoft.Storage/storageAccounts" + }, + { + "not": { + "field": "Microsoft.Storage/storageAccounts/sku.name", + "in": "[parameters('listOfAllowedSKUs')]" + } + } + ] + }, + "then": { + "effect": "Deny" + } + } + }, + "id": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "type": "Microsoft.Authorization/policyDefinitions", + "name": "7433c107-6db4-4ad1-b57a-a76dce0154a1" + }, + { + "properties": { + "mode": "All", + "displayName": "Naming Convention", + "description": "Force resource names to begin with 'prefix' and end with 'suffix'", + "metadata": { + "category": "Naming" + }, + "parameters": { + "prefix": { + "type": "String", + "metadata": { + "displayName": "Prefix", + "description": "Resource name prefix" + } + }, + "suffix": { + "type": "String", + "metadata": { + "displayName": "Suffix", + "description": "Resource name suffix" + } + } + }, + "policyRule": { + "if": { + "not": { + "field": "name", + "like": "[concat(parameters('prefix'), '*', parameters('suffix'))]" + } + }, + "then": { + "effect": "deny" + } + }, + "policyType": "Custom" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "type": "Microsoft.Authorization/policyDefinitions", + "name": "ResourceNaming" + }, + { + "properties": { + "mode": "Microsoft.KeyVault.Data", + "displayName": "Audit KeyVault certificates that expire within specified number of days", + "description": "Audit certificates that are stored in Azure Key Vault, that expire within 'X' number of days.", + "metadata": { + "category": "KeyVault DataPlane" + }, + "parameters": { + "daysToExpire": { + "type": "Integer", + "metadata": { + "displayName": "Days to expire", + "description": "The number of days for a certificate to expire." + } + } + }, + "policyRule": { + "if": { + "field": "Microsoft.KeyVault.Data/vaults/certificates/attributes/expiresOn", + "lessOrEquals": "[addDays(utcNow(), parameters('daysToExpire'))]" + }, + "then": { + "effect": "audit" + } + }, + "policyType": "Custom" + }, + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/AuditSoonToExpireCerts", + "type": "Microsoft.Authorization/policyDefinitions", + "name": "AuditSoonToExpireCerts" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyDefinitionsByManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyDefinitionsByManagementGroup.json new file mode 100644 index 000000000000..e269a1b2d885 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicyDefinitionsByManagementGroup.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "managementGroupId": "MyManagementGroup", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "mode": "All", + "displayName": "Allowed storage account SKUs", + "policyType": "BuiltIn", + "description": "This policy enables you to specify a set of storage account SKUs that your organization can deploy.", + "parameters": { + "listOfAllowedSKUs": { + "type": "Array", + "metadata": { + "description": "The list of SKUs that can be specified for storage accounts.", + "displayName": "Allowed SKUs", + "strongType": "StorageSKUs" + } + } + }, + "policyRule": { + "if": { + "allOf": [ + { + "field": "type", + "equals": "Microsoft.Storage/storageAccounts" + }, + { + "not": { + "field": "Microsoft.Storage/storageAccounts/sku.name", + "in": "[parameters('listOfAllowedSKUs')]" + } + } + ] + }, + "then": { + "effect": "Deny" + } + } + }, + "id": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "type": "Microsoft.Authorization/policyDefinitions", + "name": "7433c107-6db4-4ad1-b57a-a76dce0154a1" + }, + { + "id": "/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "type": "Microsoft.Authorization/policyDefinitions", + "name": "ResourceNaming", + "properties": { + "mode": "All", + "displayName": "Naming Convention", + "description": "Force resource names to begin with 'prefix' and end with 'suffix'", + "metadata": { + "category": "Naming" + }, + "policyRule": { + "if": { + "not": { + "field": "name", + "like": "[concat(parameters('prefix'), '*', parameters('suffix'))]" + } + }, + "then": { + "effect": "deny" + } + }, + "parameters": { + "prefix": { + "type": "String", + "metadata": { + "displayName": "Prefix", + "description": "Resource name prefix" + } + }, + "suffix": { + "type": "String", + "metadata": { + "displayName": "Suffix", + "description": "Resource name suffix" + } + } + }, + "policyType": "Custom" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicySetDefinitions.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicySetDefinitions.json new file mode 100644 index 000000000000..9313bba072ae --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicySetDefinitions.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "subscriptionId": "ae640e6b-ba3e-4256-9d62-2993eecfa6f2", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "displayName": "[Preview]: Enable Monitoring in Azure Security Center", + "policyType": "BuiltIn", + "description": "Monitor all the available security recommendations in Azure Security Center. This is the default policy for Azure Security Center.", + "metadata": { + "category": "Security Center" + }, + "parameters": {}, + "policyDefinitions": [ + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a8bef009-a5c9-4d0f-90d7-6018734e8a16" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/af8051bf-258b-44e2-a2bf-165330459f9d" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/86b3d65f-7626-441e-b690-81a8b71cff60" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/655cb504-bcee-4362-bd4c-402e6aa38759" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/47a6b606-51aa-4496-8bb7-64b11cf66adc" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/44452482-524f-4bf4-b852-0bff7cc4a3ed" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/af6cd1bd-1635-48cb-bde7-5b15693900b9" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/760a85ff-6162-42b3-8d70-698e268f648c" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6" + } + ] + }, + "id": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8", + "type": "Microsoft.Authorization/policySetDefinitions", + "name": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8" + }, + { + "id": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policySetDefinitions/CostManagement", + "type": "Microsoft.Authorization/policySetDefinitions", + "name": "CostManagement", + "properties": { + "displayName": "Cost Management", + "description": "Policies to enforce low cost storage SKUs", + "metadata": { + "category": "Cost Management" + }, + "policyDefinitions": [ + { + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + { + "policyDefinitionId": "/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicySetDefinitionsByManagementGroup.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicySetDefinitionsByManagementGroup.json new file mode 100644 index 000000000000..c5acef2103a1 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/examples/listPolicySetDefinitionsByManagementGroup.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "managementGroupId": "MyManagementGroup", + "api-version": "2019-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "properties": { + "displayName": "[Preview]: Enable Monitoring in Azure Security Center", + "policyType": "BuiltIn", + "description": "Monitor all the available security recommendations in Azure Security Center. This is the default policy for Azure Security Center.", + "metadata": { + "category": "Security Center" + }, + "parameters": {}, + "policyDefinitions": [ + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a8bef009-a5c9-4d0f-90d7-6018734e8a16" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/af8051bf-258b-44e2-a2bf-165330459f9d" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/86b3d65f-7626-441e-b690-81a8b71cff60" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/655cb504-bcee-4362-bd4c-402e6aa38759" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/47a6b606-51aa-4496-8bb7-64b11cf66adc" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/44452482-524f-4bf4-b852-0bff7cc4a3ed" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/af6cd1bd-1635-48cb-bde7-5b15693900b9" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/760a85ff-6162-42b3-8d70-698e268f648c" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6" + }, + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6" + } + ] + }, + "id": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8", + "type": "Microsoft.Authorization/policySetDefinitions", + "name": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8" + }, + { + "id": "/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/CostManagement", + "type": "Microsoft.Authorization/policySetDefinitions", + "name": "CostManagement", + "properties": { + "displayName": "Cost Management", + "description": "Policies to enforce low cost storage SKUs", + "metadata": { + "category": "Cost Management" + }, + "policyDefinitions": [ + { + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1", + "parameters": { + "listOfAllowedSKUs": { + "value": [ + "Standard_GRS", + "Standard_LRS" + ] + } + } + }, + { + "policyDefinitionId": "/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming", + "parameters": { + "prefix": { + "value": "DeptA" + }, + "suffix": { + "value": "-LC" + } + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/policyAssignments.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/policyAssignments.json new file mode 100644 index 000000000000..65084728513f --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/policyAssignments.json @@ -0,0 +1,703 @@ +{ + "swagger": "2.0", + "info": { + "title": "PolicyClient", + "version": "2019-01-01", + "description": "To manage and control access to your resources, you can define customized policies and assign them at a scope." + }, + "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.Authorization/policyAssignments/{policyAssignmentName}": { + "delete": { + "tags": [ + "PolicyAssignments" + ], + "operationId": "PolicyAssignments_Delete", + "summary": "Deletes a policy assignment.", + "description": "This operation deletes a policy assignment, given its name and the scope it was created in. The scope of a policy assignment is the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.", + "x-ms-examples": { + "Delete a policy assignment": { + "$ref": "./examples/deletePolicyAssignment.json" + } + }, + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'", + "x-ms-skip-url-encoding": true + }, + { + "name": "policyAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy assignment to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deleted assignment.", + "schema": { + "$ref": "#/definitions/PolicyAssignment" + } + }, + "204": { + "description": "No Content - the policy assignment doesn't exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "PolicyAssignments" + ], + "operationId": "PolicyAssignments_Create", + "summary": "Creates or updates a policy assignment.", + "description": " This operation creates or updates a policy assignment with the given scope and name. Policy assignments apply to all resources contained within their scope. For example, when you assign a policy at resource group scope, that policy applies to all resources in the group.", + "x-ms-examples": { + "Create or update a policy assignment": { + "$ref": "./examples/createPolicyAssignment.json" + }, + "Create or update a policy assignment with a managed identity": { + "$ref": "./examples/createPolicyAssignmentWithIdentity.json" + } + }, + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'", + "x-ms-skip-url-encoding": true + }, + { + "name": "policyAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy assignment." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyAssignment" + }, + "description": "Parameters for the policy assignment." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the new policy assignment.", + "schema": { + "$ref": "#/definitions/PolicyAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "PolicyAssignments" + ], + "operationId": "PolicyAssignments_Get", + "summary": "Retrieves a policy assignment.", + "description": "This operation retrieves a single policy assignment, given its name and the scope it was created at.", + "x-ms-examples": { + "Retrieve a policy assignment": { + "$ref": "./examples/getPolicyAssignment.json" + }, + "Retrieve a policy assignment with a managed identity": { + "$ref": "./examples/getPolicyAssignmentWithIdentity.json" + } + }, + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'", + "x-ms-skip-url-encoding": true + }, + { + "name": "policyAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy assignment to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the policy assignment.", + "schema": { + "$ref": "#/definitions/PolicyAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments": { + "get": { + "tags": [ + "PolicyAssignments" + ], + "operationId": "PolicyAssignments_ListForResourceGroup", + "summary": "Retrieves all policy assignments that apply to a resource group.", + "description": "This operation retrieves the list of all policy assignments associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource group, which is everything in the unfiltered list except those applied to resources contained within the resource group. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource group.", + "x-ms-examples": { + "List policy assignments that apply to a resource group": { + "$ref": "./examples/listPolicyAssignmentsForResourceGroup.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group that contains policy assignments.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of policy assignments.", + "schema": { + "$ref": "#/definitions/PolicyAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments": { + "get": { + "tags": [ + "PolicyAssignments" + ], + "operationId": "PolicyAssignments_ListForResource", + "summary": "Retrieves all policy assignments that apply to a resource.", + "description": "This operation retrieves the list of all policy assignments associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource, which is everything in the unfiltered list except those applied to resources contained within the resource. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').", + "deprecated": false, + "x-ms-examples": { + "List all policy assignments that apply to a resource": { + "$ref": "./examples/listPolicyAssignmentsForResource.json" + } + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the resource.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider. For example, the namespace of a virtual machine is Microsoft.Compute (from Microsoft.Compute/virtualMachines)" + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource path. Use empty string if there is none.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites).", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of policy assignments.", + "schema": { + "$ref": "#/definitions/PolicyAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/PolicyAssignment" + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments": { + "get": { + "tags": [ + "PolicyAssignments" + ], + "operationId": "PolicyAssignments_List", + "summary": "Retrieves all policy assignments that apply to a subscription.", + "description": "This operation retrieves the list of all policy assignments associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the subscription, which is everything in the unfiltered list except those applied to objects contained within the subscription. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value}.", + "x-ms-examples": { + "List policy assignments that apply to a subscription": { + "$ref": "./examples/listPolicyAssignments.json" + } + }, + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of policy assignments.", + "schema": { + "$ref": "#/definitions/PolicyAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/PolicyAssignment" + } + }, + "/{policyAssignmentId}": { + "delete": { + "tags": [ + "PolicyAssignments" + ], + "operationId": "PolicyAssignments_DeleteById", + "summary": "Deletes a policy assignment.", + "description": "This operation deletes the policy with the given ID. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid formats for {scope} are: '/providers/Microsoft.Management/managementGroups/{managementGroup}' (management group), '/subscriptions/{subscriptionId}' (subscription), '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' (resource group), or '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' (resource).", + "x-ms-examples": { + "Delete a policy assignment by ID": { + "$ref": "./examples/deletePolicyAssignmentById.json" + } + }, + "parameters": [ + { + "name": "policyAssignmentId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the policy assignment to delete. Use the format '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the policy assignment.", + "schema": { + "$ref": "#/definitions/PolicyAssignment" + } + }, + "204": { + "description": "No Content - the policy assignment doesn't exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "PolicyAssignments" + ], + "operationId": "PolicyAssignments_CreateById", + "summary": "Creates or updates a policy assignment.", + "description": "This operation creates or updates the policy assignment with the given ID. Policy assignments made on a scope apply to all resources contained in that scope. For example, when you assign a policy to a resource group that policy applies to all resources in the group. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.", + "x-ms-examples": { + "Create or update policy assignment by ID": { + "$ref": "./examples/createPolicyAssignmentById.json" + }, + "Create or update policy assignment with a managed identity by ID": { + "$ref": "./examples/createPolicyAssignmentWithIdentityById.json" + } + }, + "parameters": [ + { + "name": "policyAssignmentId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the policy assignment to create. Use the format '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyAssignment" + }, + "description": "Parameters for policy assignment." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the policy assignment.", + "schema": { + "$ref": "#/definitions/PolicyAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "PolicyAssignments" + ], + "operationId": "PolicyAssignments_GetById", + "summary": "Retrieves the policy assignment with the given ID.", + "description": "The operation retrieves the policy assignment with the given ID. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.", + "x-ms-examples": { + "Retrieve a policy assignment by ID": { + "$ref": "./examples/getPolicyAssignmentById.json" + }, + "Retrieve a policy assignment with a managed identity by ID": { + "$ref": "./examples/getPolicyAssignmentWithIdentityById.json" + } + }, + "parameters": [ + { + "name": "policyAssignmentId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the policy assignment to get. Use the format '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the policy assignment.", + "schema": { + "$ref": "#/definitions/PolicyAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "PolicyAssignmentProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "The display name of the policy assignment." + }, + "policyDefinitionId": { + "type": "string", + "description": "The ID of the policy definition or policy set definition being assigned." + }, + "scope": { + "type": "string", + "description": "The scope for the policy assignment." + }, + "notScopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The policy's excluded scopes." + }, + "parameters": { + "type": "object", + "description": "Required if a parameter is used in policy rule." + }, + "description": { + "type": "string", + "description": "This message will be part of response in case of policy violation." + }, + "metadata": { + "type": "object", + "description": "The policy assignment metadata." + } + }, + "description": "The policy assignment properties." + }, + "PolicySku": { + "properties": { + "name": { + "type": "string", + "description": "The name of the policy sku. Possible values are A0 and A1." + }, + "tier": { + "type": "string", + "description": "The policy sku tier. Possible values are Free and Standard." + } + }, + "required": [ + "name" + ], + "description": "The policy sku. This property is optional, obsolete, and will be ignored." + }, + "PolicyAssignment": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PolicyAssignmentProperties", + "description": "Properties for the policy assignment." + }, + "id": { + "type": "string", + "description": "The ID of the policy assignment.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The type of the policy assignment.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of the policy assignment.", + "readOnly": true + }, + "sku": { + "$ref": "#/definitions/PolicySku", + "description": "The policy sku. This property is optional, obsolete, and will be ignored." + }, + "location": { + "type": "string", + "description": "The location of the policy assignment. Only required when utilizing managed identity." + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The managed identity associated with the policy assignment." + } + }, + "description": "The policy assignment.", + "x-ms-azure-resource": true + }, + "PolicyAssignmentListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyAssignment" + }, + "description": "An array of policy assignments." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of policy assignments." + }, + "Identity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of the resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of the resource identity." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + } + }, + "description": "Identity for the resource." + }, + "ErrorResponse": { + "description": "Error response indicates Azure Resource Manager is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "httpStatus": { + "description": "Http status code.", + "type": "string" + }, + "errorCode": { + "description": "Error code.", + "type": "string" + }, + "errorMessage": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation." + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/policyDefinitions.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/policyDefinitions.json new file mode 100644 index 000000000000..1235159f8dbf --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/policyDefinitions.json @@ -0,0 +1,520 @@ +{ + "swagger": "2.0", + "info": { + "title": "PolicyClient", + "version": "2019-01-01", + "description": "To manage and control access to your resources, you can define customized policies and assign them at a scope." + }, + "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.Authorization/policyDefinitions/{policyDefinitionName}": { + "put": { + "tags": [ + "PolicyDefinitions" + ], + "operationId": "PolicyDefinitions_CreateOrUpdate", + "summary": "Creates or updates a policy definition in a subscription.", + "description": "This operation creates or updates a policy definition in the given subscription with the given name.", + "x-ms-examples": { + "Create or update a policy definition": { + "$ref": "./examples/createOrUpdatePolicyDefinition.json" + } + }, + "parameters": [ + { + "name": "policyDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy definition to create." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyDefinition" + }, + "description": "The policy definition properties." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the policy definition.", + "schema": { + "$ref": "#/definitions/PolicyDefinition" + } + } + } + }, + "delete": { + "tags": [ + "PolicyDefinitions" + ], + "operationId": "PolicyDefinitions_Delete", + "summary": "Deletes a policy definition in a subscription.", + "description": "This operation deletes the policy definition in the given subscription with the given name.", + "x-ms-examples": { + "Delete a policy definition": { + "$ref": "./examples/deletePolicyDefinition.json" + } + }, + "parameters": [ + { + "name": "policyDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy definition to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "200": { + "description": "OK" + } + } + }, + "get": { + "tags": [ + "PolicyDefinitions" + ], + "operationId": "PolicyDefinitions_Get", + "summary": "Retrieves a policy definition in a subscription.", + "description": "This operation retrieves the policy definition in the given subscription with the given name.", + "x-ms-examples": { + "Retrieve a policy definition": { + "$ref": "./examples/getPolicyDefinition.json" + } + }, + "parameters": [ + { + "name": "policyDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy definition to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the policy definition.", + "schema": { + "$ref": "#/definitions/PolicyDefinition" + } + } + } + } + }, + "/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}": { + "get": { + "tags": [ + "PolicyDefinitions" + ], + "operationId": "PolicyDefinitions_GetBuiltIn", + "summary": "Retrieves a built-in policy definition.", + "description": "This operation retrieves the built-in policy definition with the given name.", + "x-ms-examples": { + "Retrieve a built-in policy definition": { + "$ref": "./examples/getBuiltinPolicyDefinition.json" + } + }, + "parameters": [ + { + "name": "policyDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the built-in policy definition to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the built-in policy definition.", + "schema": { + "$ref": "#/definitions/PolicyDefinition" + } + } + } + } + }, + "/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}": { + "put": { + "tags": [ + "PolicyDefinitions" + ], + "operationId": "PolicyDefinitions_CreateOrUpdateAtManagementGroup", + "summary": "Creates or updates a policy definition in a management group.", + "description": "This operation creates or updates a policy definition in the given management group with the given name.", + "x-ms-examples": { + "Create or update a policy definition at management group level": { + "$ref": "./examples/createOrUpdatePolicyDefinitionAtManagementGroup.json" + } + }, + "parameters": [ + { + "name": "policyDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy definition to create." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicyDefinition" + }, + "description": "The policy definition properties." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ManagementGroupIdParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the policy definition.", + "schema": { + "$ref": "#/definitions/PolicyDefinition" + } + } + } + }, + "delete": { + "tags": [ + "PolicyDefinitions" + ], + "operationId": "PolicyDefinitions_DeleteAtManagementGroup", + "summary": "Deletes a policy definition in a management group.", + "description": "This operation deletes the policy definition in the given management group with the given name.", + "x-ms-examples": { + "Delete a policy definition at management group level": { + "$ref": "./examples/deletePolicyDefinitionAtManagementGroup.json" + } + }, + "parameters": [ + { + "name": "policyDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy definition to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ManagementGroupIdParameter" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "200": { + "description": "OK" + } + } + }, + "get": { + "tags": [ + "PolicyDefinitions" + ], + "operationId": "PolicyDefinitions_GetAtManagementGroup", + "summary": "Retrieve a policy definition in a management group.", + "description": "This operation retrieves the policy definition in the given management group with the given name.", + "x-ms-examples": { + "Retrieve a policy definition at management group level": { + "$ref": "./examples/getPolicyDefinitionAtManagementGroup.json" + } + }, + "parameters": [ + { + "name": "policyDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy definition to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ManagementGroupIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the policy definition.", + "schema": { + "$ref": "#/definitions/PolicyDefinition" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions": { + "get": { + "tags": [ + "PolicyDefinitions" + ], + "operationId": "PolicyDefinitions_List", + "summary": "Retrieves policy definitions in a subscription", + "description": "This operation retrieves a list of all the policy definitions in a given subscription.", + "x-ms-examples": { + "List policy definitions by subscription": { + "$ref": "./examples/listPolicyDefinitions.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of policy definitions.", + "schema": { + "$ref": "#/definitions/PolicyDefinitionListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Authorization/policyDefinitions": { + "get": { + "tags": [ + "PolicyDefinitions" + ], + "operationId": "PolicyDefinitions_ListBuiltIn", + "summary": "Retrieve built-in policy definitions", + "description": "This operation retrieves a list of all the built-in policy definitions.", + "x-ms-examples": { + "List built-in policy definitions": { + "$ref": "./examples/listBuiltInPolicyDefinitions.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of built-in policy definitions.", + "schema": { + "$ref": "#/definitions/PolicyDefinitionListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions": { + "get": { + "tags": [ + "PolicyDefinitions" + ], + "operationId": "PolicyDefinitions_ListByManagementGroup", + "summary": "Retrieve policy definitions in a management group", + "description": "This operation retrieves a list of all the policy definitions in a given management group.", + "x-ms-examples": { + "List policy definitions by management group": { + "$ref": "./examples/listPolicyDefinitionsByManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ManagementGroupIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of policy definitions.", + "schema": { + "$ref": "#/definitions/PolicyDefinitionListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "PolicyDefinitionProperties": { + "properties": { + "policyType": { + "type": "string", + "description": "The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom.", + "enum": [ + "NotSpecified", + "BuiltIn", + "Custom" + ], + "x-ms-enum": { + "name": "policyType", + "modelAsString": true + } + }, + "mode": { + "type": "string", + "description": "The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data." + }, + "displayName": { + "type": "string", + "description": "The display name of the policy definition." + }, + "description": { + "type": "string", + "description": "The policy definition description." + }, + "policyRule": { + "type": "object", + "description": "The policy rule." + }, + "metadata": { + "type": "object", + "description": "The policy definition metadata." + }, + "parameters": { + "type": "object", + "description": "Required if a parameter is used in policy rule." + } + }, + "description": "The policy definition properties." + }, + "PolicyDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PolicyDefinitionProperties", + "description": "The policy definition properties." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The ID of the policy definition." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the policy definition." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource (Microsoft.Authorization/policyDefinitions)." + } + }, + "description": "The policy definition.", + "x-ms-azure-resource": true + }, + "PolicyDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyDefinition" + }, + "description": "An array of policy definitions." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of policy definitions." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ManagementGroupIdParameter": { + "name": "managementGroupId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the management group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation." + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/policySetDefinitions.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/policySetDefinitions.json new file mode 100644 index 000000000000..9b241568ede4 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-01-01/policySetDefinitions.json @@ -0,0 +1,625 @@ +{ + "swagger": "2.0", + "info": { + "title": "PolicyClient", + "version": "2019-01-01", + "description": "To manage and control access to your resources, you can define customized policies and assign them at a scope." + }, + "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.Authorization/policySetDefinitions/{policySetDefinitionName}": { + "put": { + "tags": [ + "PolicySetDefinitions" + ], + "operationId": "PolicySetDefinitions_CreateOrUpdate", + "summary": "Creates or updates a policy set definition.", + "description": "This operation creates or updates a policy set definition in the given subscription with the given name.", + "x-ms-examples": { + "Create or update a policy set definition": { + "$ref": "./examples/createOrUpdatePolicySetDefinition.json" + } + }, + "parameters": [ + { + "name": "policySetDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy set definition to create." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicySetDefinition" + }, + "description": "The policy set definition properties." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the policy set definition.", + "schema": { + "$ref": "#/definitions/PolicySetDefinition" + } + }, + "200": { + "description": "OK - Returns information about the policy set definition.", + "schema": { + "$ref": "#/definitions/PolicySetDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "PolicySetDefinitions" + ], + "operationId": "PolicySetDefinitions_Delete", + "summary": "Deletes a policy set definition.", + "description": "This operation deletes the policy set definition in the given subscription with the given name.", + "x-ms-examples": { + "Delete a policy set definition": { + "$ref": "./examples/deletePolicySetDefinition.json" + } + }, + "parameters": [ + { + "name": "policySetDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy set definition to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No Content - the policy set definition doesn't exist in the subscription." + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "PolicySetDefinitions" + ], + "operationId": "PolicySetDefinitions_Get", + "summary": "Retrieves a policy set definition.", + "description": "This operation retrieves the policy set definition in the given subscription with the given name.", + "x-ms-examples": { + "Retrieve a policy set definition": { + "$ref": "./examples/getPolicySetDefinition.json" + } + }, + "parameters": [ + { + "name": "policySetDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy set definition to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the policy set definition.", + "schema": { + "$ref": "#/definitions/PolicySetDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}": { + "get": { + "tags": [ + "PolicySetDefinitions" + ], + "operationId": "PolicySetDefinitions_GetBuiltIn", + "summary": "Retrieves a built in policy set definition.", + "description": "This operation retrieves the built-in policy set definition with the given name.", + "x-ms-examples": { + "Retrieve a built-in policy set definition": { + "$ref": "./examples/getBuiltInPolicySetDefinition.json" + } + }, + "parameters": [ + { + "name": "policySetDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy set definition to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the built in policy set definition.", + "schema": { + "$ref": "#/definitions/PolicySetDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions": { + "get": { + "tags": [ + "PolicySetDefinitions" + ], + "operationId": "PolicySetDefinitions_List", + "summary": "Retrieves the policy set definitions for a subscription.", + "description": "This operation retrieves a list of all the policy set definitions in the given subscription.", + "x-ms-examples": { + "List policy set definitions": { + "$ref": "./examples/listPolicySetDefinitions.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of policy set definitions.", + "schema": { + "$ref": "#/definitions/PolicySetDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Authorization/policySetDefinitions": { + "get": { + "tags": [ + "PolicySetDefinitions" + ], + "operationId": "PolicySetDefinitions_ListBuiltIn", + "summary": "Retrieves built-in policy set definitions.", + "description": "This operation retrieves a list of all the built-in policy set definitions.", + "x-ms-examples": { + "List built-in policy set definitions": { + "$ref": "./examples/listBuiltInPolicySetDefinitions.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of built in policy set definitions.", + "schema": { + "$ref": "#/definitions/PolicySetDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}": { + "put": { + "tags": [ + "PolicySetDefinitions" + ], + "operationId": "PolicySetDefinitions_CreateOrUpdateAtManagementGroup", + "summary": "Creates or updates a policy set definition.", + "description": "This operation creates or updates a policy set definition in the given management group with the given name.", + "x-ms-examples": { + "Create or update a policy set definition at management group level": { + "$ref": "./examples/createOrUpdatePolicySetDefinitionAtManagementGroup.json" + } + }, + "parameters": [ + { + "name": "policySetDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy set definition to create." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicySetDefinition" + }, + "description": "The policy set definition properties." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ManagementGroupIdParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the policy set definition.", + "schema": { + "$ref": "#/definitions/PolicySetDefinition" + } + }, + "200": { + "description": "OK - Returns information about the policy set definition.", + "schema": { + "$ref": "#/definitions/PolicySetDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "PolicySetDefinitions" + ], + "operationId": "PolicySetDefinitions_DeleteAtManagementGroup", + "summary": "Deletes a policy set definition.", + "description": "This operation deletes the policy set definition in the given management group with the given name.", + "x-ms-examples": { + "Delete a policy set definition at management group level": { + "$ref": "./examples/deletePolicySetDefinitionAtManagementGroup.json" + } + }, + "parameters": [ + { + "name": "policySetDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy set definition to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ManagementGroupIdParameter" + } + ], + "responses": { + "204": { + "description": "No Content - the policy set definition doesn't exist in the subscription." + }, + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "PolicySetDefinitions" + ], + "operationId": "PolicySetDefinitions_GetAtManagementGroup", + "summary": "Retrieves a policy set definition.", + "description": "This operation retrieves the policy set definition in the given management group with the given name.", + "x-ms-examples": { + "Retrieve a policy set definition at management group level": { + "$ref": "./examples/getPolicySetDefinitionAtManagementGroup.json" + } + }, + "parameters": [ + { + "name": "policySetDefinitionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy set definition to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ManagementGroupIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the policy set definition.", + "schema": { + "$ref": "#/definitions/PolicySetDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions": { + "get": { + "tags": [ + "PolicySetDefinitions" + ], + "operationId": "PolicySetDefinitions_ListByManagementGroup", + "summary": "Retrieves all policy set definitions in management group.", + "description": "This operation retrieves a list of all the a policy set definition in the given management group.", + "x-ms-examples": { + "List policy set definitions at management group level": { + "$ref": "./examples/listPolicySetDefinitionsByManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ManagementGroupIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of policy set definitions.", + "schema": { + "$ref": "#/definitions/PolicySetDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "PolicySetDefinitionProperties": { + "properties": { + "policyType": { + "type": "string", + "description": "The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom.", + "enum": [ + "NotSpecified", + "BuiltIn", + "Custom" + ], + "x-ms-enum": { + "name": "policyType", + "modelAsString": true + } + }, + "displayName": { + "type": "string", + "description": "The display name of the policy set definition." + }, + "description": { + "type": "string", + "description": "The policy set definition description." + }, + "metadata": { + "type": "object", + "description": "The policy set definition metadata." + }, + "parameters": { + "type": "object", + "description": "The policy set definition parameters that can be used in policy definition references." + }, + "policyDefinitions": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyDefinitionReference" + }, + "description": "An array of policy definition references." + } + }, + "required": [ + "policyDefinitions" + ], + "description": "The policy set definition properties." + }, + "PolicyDefinitionReference": { + "properties": { + "policyDefinitionId": { + "type": "string", + "description": "The ID of the policy definition or policy set definition." + }, + "parameters": { + "type": "object", + "description": "Required if a parameter is used in policy rule." + } + }, + "description": "The policy definition reference." + }, + "PolicySetDefinition": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PolicySetDefinitionProperties", + "description": "The policy definition properties." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The ID of the policy set definition." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the policy set definition." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource (Microsoft.Authorization/policySetDefinitions)." + } + }, + "description": "The policy set definition.", + "x-ms-azure-resource": true + }, + "PolicySetDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicySetDefinition" + }, + "description": "An array of policy set definitions." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of policy set definitions." + }, + "ErrorResponse": { + "description": "Error response indicates Azure Resource Manager is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "httpStatus": { + "description": "Http status code.", + "type": "string" + }, + "errorCode": { + "description": "Error code.", + "type": "string" + }, + "errorMessage": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ManagementGroupIdParameter": { + "name": "managementGroupId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the management group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation." + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2018-06-01/subscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2018-06-01/subscriptions.json index aec7da8d5af6..6ab9fc2ca230 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2018-06-01/subscriptions.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2018-06-01/subscriptions.json @@ -320,6 +320,20 @@ "readOnly": true, "type": "string", "description": "The tenant ID. For example, 00000000-0000-0000-0000-000000000000." + }, + "displayName": { + "readOnly": true, + "type": "string", + "description": "The display name of the tenant." + }, + "domains": { + "readOnly": true, + "type": "array", + "items": { + "type": "string", + "description": "The domain name for a tenant." + }, + "description": "The list of domains for the tenant." } }, "description": "Tenant Id information." diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-01/examples/ExportResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-01/examples/ExportResourceGroup.json new file mode 100644 index 000000000000..2f501f4d3d9c --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-01/examples/ExportResourceGroup.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "eaee6a92-e973-4922-9471-3a0a6abf81cd", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-05-01", + "parameters": { + "resources": [ + "*" + ], + "options": "IncludeParameterDefaultValue,IncludeComments" + } + }, + "responses": { + "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/2019-05-01/examples/ExportResourceGroupWithFiltering.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-01/examples/ExportResourceGroupWithFiltering.json new file mode 100644 index 000000000000..c73296b8f442 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-01/examples/ExportResourceGroupWithFiltering.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "eaee6a92-e973-4922-9471-3a0a6abf81cd", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-05-01", + "parameters": { + "resources": [ + "/subscriptions/eaee6a92-e973-4922-9471-3a0a6abf81cd/resourceGroups/myResourceGroup/providers/My.RP/myResourceType/myFirstResource" + ], + "options": "SkipResourceNameParameterization" + } + }, + "responses": { + "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/2019-05-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-01/resources.json index ae27108aa775..fab6e1853213 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-01/resources.json @@ -1390,6 +1390,14 @@ "$ref": "#/parameters/SubscriptionIdParameter" } ], + "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.", @@ -3386,11 +3394,11 @@ "items": { "type": "string" }, - "description": "The IDs of the resources. The only supported string currently is '*' (all resources). Future updates will support exporting specific resources." + "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. Supported values include 'IncludeParameterDefaultValue', 'IncludeComments' or 'IncludeParameterDefaultValue, IncludeComments" + "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." diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/CreateResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/CreateResourceGroup.json new file mode 100644 index 000000000000..8efcf4cea1eb --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/CreateResourceGroup.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-05-10", + "parameters": { + "location": "eastus" + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup", + "name": "myResourceGroup", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup", + "name": "myResourceGroup", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/ExportResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/ExportResourceGroup.json new file mode 100644 index 000000000000..a675b780024e --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/ExportResourceGroup.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "eaee6a92-e973-4922-9471-3a0a6abf81cd", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-05-10", + "parameters": { + "resources": [ + "*" + ], + "options": "IncludeParameterDefaultValue,IncludeComments" + } + }, + "responses": { + "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/2019-05-10/examples/ExportResourceGroupWithFiltering.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/ExportResourceGroupWithFiltering.json new file mode 100644 index 000000000000..a76ffd50f752 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/ExportResourceGroupWithFiltering.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "eaee6a92-e973-4922-9471-3a0a6abf81cd", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-05-10", + "parameters": { + "resources": [ + "/subscriptions/eaee6a92-e973-4922-9471-3a0a6abf81cd/resourceGroups/myResourceGroup/providers/My.RP/myResourceType/myFirstResource" + ], + "options": "SkipResourceNameParameterization" + } + }, + "responses": { + "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/2019-05-10/examples/PutDeploymentAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/PutDeploymentAtManagementGroup.json new file mode 100644 index 000000000000..0f052dc90618 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/PutDeploymentAtManagementGroup.json @@ -0,0 +1,137 @@ +{ + "parameters": { + "groupId": "tiano-group1", + "deploymentName": "mg-dep01", + "api-version": "2019-05-10", + "parameters": { + "location": "eastus", + "properties": { + "templateLink": "{templateUri}", + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Resources/deployments/mg-dep01", + "name": "mg-dep01", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2019-04-24T22:52:38.7895563Z", + "duration": "PT1.2970875S", + "correlationId": "{correlationId}", + "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/tiano-group1/providers/Microsoft.Authorization/policyDefinitions/policy2", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy2" + } + ], + "id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + } + } + }, + "201": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Resources/deployments/mg-dep01", + "name": "mg-dep01", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2019-04-24T22:52:38.7895563Z", + "duration": "PT1.2970875S", + "correlationId": "{correlationId}", + "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/tiano-group1/providers/Microsoft.Authorization/policyDefinitions/policy2", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy2" + } + ], + "id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json new file mode 100644 index 000000000000..8804804c45ce --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "deploymentName": "exampleDeploymentName", + "api-version": "2019-05-10", + "parameters": { + "properties": { + "templateLink": "{templateUri}", + "parameters": {}, + "mode": "Complete", + "onErrorDeployment": { + "type": "LastSuccessful" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName", + "name": "exampleDeploymentName", + "type": "Microsoft.Resources/deployments", + "properties": { + "provisioningState": "Accepted", + "correlationId": "{correlationId}", + "timestamp": "2019-03-01T00:00:00.0000000Z", + "mode": "Complete", + "onErrorDeployment": { + "type": "LastSuccessful", + "deploymentName": "{nameOfLastSuccesfulDeployment}" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName", + "name": "exampleDeploymentName", + "type": "Microsoft.Resources/deployments", + "properties": { + "provisioningState": "Accepted", + "correlationId": "{correlationId}", + "timestamp": "2019-03-01T00:00:00.0000000Z", + "mode": "Complete", + "onErrorDeployment": { + "type": "LastSuccessful", + "deploymentName": "{nameOfLastSuccesfulDeployment}" + } + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json new file mode 100644 index 000000000000..dc82d30a0a8f --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "deploymentName": "exampleDeploymentName", + "api-version": "2019-05-10", + "parameters": { + "properties": { + "templateLink": "{templateUri}", + "parameters": {}, + "mode": "Complete", + "onErrorDeployment": { + "type": "SpecificDeployment", + "deploymentName": "{nameOfDeploymentToUse}" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName", + "name": "exampleDeploymentName", + "type": "Microsoft.Resources/deployments", + "properties": { + "provisioningState": "Accepted", + "correlationId": "{correlationId}", + "timestamp": "2019-03-01T00:00:00.0000000Z", + "mode": "Complete", + "onErrorDeployment": { + "type": "SpecificDeployment", + "deploymentName": "{nameOfDeploymentToUse}" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName", + "name": "exampleDeploymentName", + "type": "Microsoft.Resources/deployments", + "properties": { + "provisioningState": "Accepted", + "correlationId": "{correlationId}", + "timestamp": "2019-03-01T00:00:00.0000000Z", + "mode": "Complete", + "onErrorDeployment": { + "type": "SpecificDeployment", + "deploymentName": "{nameOfDeploymentToUse}" + } + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/resources.json new file mode 100644 index 000000000000..bdb4281cec1c --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-05-10/resources.json @@ -0,0 +1,3834 @@ +{ + "swagger": "2.0", + "info": { + "title": "ResourceManagementClient", + "version": "2019-05-10", + "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" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/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" + } + }, + "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" + } + } + }, + "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/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" + } + } + }, + "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" + } + } + } + } + }, + "/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" + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ValidateAtManagementGroupScope", + "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/Deployment" + }, + "description": "Parameters to validate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the validation result.", + "schema": { + "$ref": "#/definitions/DeploymentValidateResult" + } + }, + "400": { + "description": "Returns the validation result.", + "schema": { + "$ref": "#/definitions/DeploymentValidateResult" + } + } + } + } + }, + "/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" + } + } + } + } + }, + "/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" + } + } + }, + "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" + } + }, + "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" + } + } + }, + "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" + } + } + }, + "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" + } + } + } + } + }, + "/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" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_ValidateAtSubscriptionScope", + "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" + } + }, + "400": { + "description": "Returns the validation result.", + "schema": { + "$ref": "#/definitions/DeploymentValidateResult" + } + } + } + } + }, + "/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" + } + } + } + } + }, + "/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" + } + } + }, + "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" + } + }, + "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" + } + } + }, + "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" + } + } + }, + "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" + } + }, + "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" + } + } + } + } + }, + "/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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate": { + "post": { + "tags": [ + "Deployments" + ], + "operationId": "Deployments_Validate", + "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" + } + }, + "400": { + "description": "Returns the validation result.", + "schema": { + "$ref": "#/definitions/DeploymentValidateResult" + } + } + } + } + }, + "/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" + } + } + } + } + }, + "/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" + } + } + }, + "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" + } + } + } + } + }, + "/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" + } + } + } + } + }, + "/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" + } + } + }, + "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" + } + } + }, + "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" + } + } + } + } + }, + "/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" + } + } + } + } + }, + "/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'

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": "The $expand query parameter. You can expand createdTime and changedTime. For example, to expand both properties, use $expand=changedTime,createdTime" + }, + { + "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" + } + } + }, + "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" + } + } + }, + "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": { + "201": { + "description": "Created - Returns information about the new resource group.", + "schema": { + "$ref": "#/definitions/ResourceGroup" + } + }, + "200": { + "description": "OK - Returns information about the new resource group.", + "schema": { + "$ref": "#/definitions/ResourceGroup" + } + } + } + }, + "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": { + "202": { + "description": "Accepted" + }, + "200": { + "description": "OK" + } + }, + "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" + } + } + } + }, + "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" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate": { + "post": { + "tags": [ + "ResourceGroups" + ], + "operationId": "ResourceGroups_ExportTemplate", + "description": "Captures the specified resource group as a template.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group to export as a template.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExportTemplateRequest" + }, + "description": "Parameters for exporting the template." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "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" + } + } + } + } + }, + "/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" + } + } + }, + "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" + } + }, + "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/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "409": { + "description": "Conflict" + } + }, + "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'

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": "The $expand query parameter. You can expand createdTime and changedTime. For example, to expand both properties, use $expand=changedTime,createdTime" + }, + { + "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" + } + } + }, + "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" + } + } + }, + "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" + }, + "204": { + "description": "No Content" + }, + "202": { + "description": "Accepted" + } + }, + "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": { + "201": { + "description": "Created - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "200": { + "description": "OK - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "202": { + "description": "Accepted" + } + }, + "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" + } + }, + "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" + } + } + } + } + }, + "/{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" + } + } + }, + "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" + }, + "204": { + "description": "No Content" + }, + "202": { + "description": "Accepted" + } + }, + "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": { + "201": { + "description": "Created - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "200": { + "description": "OK - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "202": { + "description": "Accepted" + } + }, + "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" + } + }, + "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" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}": { + "delete": { + "tags": [ + "Tags" + ], + "operationId": "Tags_DeleteValue", + "description": "Deletes a tag value.", + "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": "OK" + }, + "204": { + "description": "No Content" + } + } + }, + "put": { + "tags": [ + "Tags" + ], + "operationId": "Tags_CreateOrUpdateValue", + "description": "Creates a tag value. The name of the tag must already exist.", + "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": "OK - Returns information about the tag value.", + "schema": { + "$ref": "#/definitions/TagValue" + } + }, + "201": { + "description": "Created - Returns information about the tag value.", + "schema": { + "$ref": "#/definitions/TagValue" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/tagNames/{tagName}": { + "put": { + "tags": [ + "Tags" + ], + "operationId": "Tags_CreateOrUpdate", + "summary": "Creates a tag in the subscription.", + "description": "The tag name can have a maximum of 512 characters and is case insensitive. Tag names created by Azure have prefixes of microsoft, azure, or windows. You cannot create tags with one of these prefixes.", + "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": "OK - Returns information about the tag.", + "schema": { + "$ref": "#/definitions/TagDetails" + } + }, + "201": { + "description": "Created - Returns information about the tag.", + "schema": { + "$ref": "#/definitions/TagDetails" + } + } + } + }, + "delete": { + "tags": [ + "Tags" + ], + "operationId": "Tags_Delete", + "summary": "Deletes a tag from the subscription.", + "description": "You must remove all values from a resource tag before you can delete it.", + "parameters": [ + { + "name": "tagName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the tag." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + } + } + } + }, + "/subscriptions/{subscriptionId}/tagNames": { + "get": { + "tags": [ + "Tags" + ], + "operationId": "Tags_List", + "description": "Gets the names and values of all resource tags that are defined in a subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of tag names and values.", + "schema": { + "$ref": "#/definitions/TagsListResult" + } + } + }, + "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" + } + } + } + } + }, + "/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" + } + } + }, + "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" + } + } + } + } + }, + "/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" + } + } + }, + "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" + } + } + } + } + }, + "/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" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "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." + }, + "contentVersion": { + "type": "string", + "description": "If included, must match the ContentVersion in the template." + } + }, + "required": [ + "uri" + ], + "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." + } + }, + "required": [ + "properties" + ], + "description": "Deployment operation parameters." + }, + "DeploymentExportResult": { + "properties": { + "template": { + "type": "object", + "description": "The template content." + } + }, + "description": "The deployment export result. " + }, + "ResourceManagementErrorWithDetails": { + "properties": { + "code": { + "readOnly": true, + "type": "string", + "description": "The error code returned when exporting the template." + }, + "message": { + "readOnly": true, + "type": "string", + "description": "The error message describing the export error." + }, + "target": { + "readOnly": true, + "type": "string", + "description": "The target of the error." + }, + "details": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ResourceManagementErrorWithDetails" + }, + "description": "Validation error." + } + }, + "description": "The detailed error message of resource management." + }, + "AliasPathType": { + "properties": { + "path": { + "type": "string", + "description": "The path of an alias." + }, + "apiVersions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The API versions." + } + }, + "description": "The type of the paths for alias. " + }, + "AliasType": { + "properties": { + "name": { + "type": "string", + "description": "The alias name." + }, + "paths": { + "type": "array", + "items": { + "$ref": "#/definitions/AliasPathType" + }, + "description": "The paths 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/AliasType" + }, + "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": { + "readOnly": true, + "type": "string", + "description": "The state of the provisioning." + }, + "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": { + "type": "object", + "description": "Key/value pairs that represent deployment output." + }, + "providers": { + "type": "array", + "items": { + "$ref": "#/definitions/Provider" + }, + "description": "The list of resource providers needed for the deployment." + }, + "dependencies": { + "type": "array", + "items": { + "$ref": "#/definitions/Dependency" + }, + "description": "The list of deployment dependencies." + }, + "template": { + "type": "object", + "description": "The template content. Use only one of Template or TemplateLink." + }, + "templateLink": { + "$ref": "#/definitions/TemplateLink", + "description": "The URI referencing the template. Use only one of Template or TemplateLink." + }, + "parameters": { + "type": "object", + "description": "Deployment parameters. Use only one of Parameters or ParametersLink." + }, + "parametersLink": { + "$ref": "#/definitions/ParametersLink", + "description": "The URI referencing the parameters. Use only one of Parameters or ParametersLink." + }, + "mode": { + "type": "string", + "description": "The deployment mode. Possible values are Incremental and Complete.", + "enum": [ + "Incremental", + "Complete" + ], + "x-ms-enum": { + "name": "DeploymentMode", + "modelAsString": false + } + }, + "debugSetting": { + "$ref": "#/definitions/DebugSetting", + "description": "The debug setting of the deployment." + }, + "onErrorDeployment": { + "$ref": "#/definitions/OnErrorDeploymentExtended", + "description": "The deployment on error behavior." + } + }, + "description": "Deployment properties with additional details." + }, + "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": { + "$ref": "#/definitions/ResourceManagementErrorWithDetails", + "description": "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." + } + }, + "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." + }, + "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", + "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/GenericResource" + }, + "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 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 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." + } + }, + "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": { + "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, + "type": "object", + "description": "Operation status message." + }, + "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": "#/definitions/ResourceManagementErrorWithDetails", + "description": "The 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." + } + } + } + }, + "parameters": { + "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." + }, + "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/Microsoft.Resources/stable/2019-06-01/examples/GetSubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/examples/GetSubscription.json new file mode 100644 index 000000000000..ce435f660b20 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/examples/GetSubscription.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/291bba3f-e0a5-47bc-a099-3bdcb2a50a05", + "subscriptionId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05", + "tenantId": "31c75423-32d6-4322-88b7-c478bdde4858", + "displayName": "Example Subscription", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + }, + "authorizationSource": "Bypassed", + "managedByTenants": [ + { + "tenantId": "8f70baf1-1f6e-46a2-a1ff-238dac1ebfb7" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/examples/GetSubscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/examples/GetSubscriptions.json new file mode 100644 index 000000000000..c09fdeb0d321 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/examples/GetSubscriptions.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/291bba3f-e0a5-47bc-a099-3bdcb2a50a05", + "subscriptionId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05", + "tenantId": "31c75423-32d6-4322-88b7-c478bdde4858", + "displayName": "Example Subscription", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + }, + "authorizationSource": "RoleBased", + "managedByTenants": [ + { + "tenantId": "8f70baf1-1f6e-46a2-a1ff-238dac1ebfb7" + } + ] + }, + { + "id": "/subscriptions/72ac930a-f34e-42d8-b06d-dc2a9e12ed71", + "subscriptionId": "72ac930a-f34e-42d8-b06d-dc2a9e12ed71", + "tenantId": "2a0ff0de-96b2-4859-bb7c-a430d07a3e0c", + "displayName": "Example Subscription2", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + }, + "authorizationSource": "RoleBased", + "managedByTenants": [ + { + "tenantId": "8f70baf1-1f6e-46a2-a1ff-238dac1ebfb7" + }, + { + "tenantId": "f7fb6af2-321d-47c8-9c0f-b0239eaad39a" + } + ] + } + ], + "nextLink": "..." + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/subscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/subscriptions.json new file mode 100644 index 000000000000..628544a10093 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/subscriptions.json @@ -0,0 +1,439 @@ +{ + "swagger": "2.0", + "info": { + "title": "SubscriptionClient", + "version": "2019-06-01", + "description": "All resource groups and resources exist within subscriptions. These operation enable you get information about your subscriptions and tenants. A tenant is a dedicated instance of Azure Active Directory (Azure AD) for your organization." + }, + "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" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/locations": { + "get": { + "tags": [ + "Subscriptions" + ], + "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.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of locations.", + "schema": { + "$ref": "#/definitions/LocationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "Subscriptions_Get", + "description": "Gets details about a specified subscription.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the subscription.", + "schema": { + "$ref": "#/definitions/Subscription" + } + } + }, + "x-ms-examples": { + "Get a single subscription.": { + "$ref": "./examples/GetSubscription.json" + } + } + } + }, + "/subscriptions": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "Subscriptions_List", + "description": "Gets all subscriptions for a tenant.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of subscriptions.", + "schema": { + "$ref": "#/definitions/SubscriptionListResult" + } + } + }, + "x-ms-examples": { + "Get all subscriptions.": { + "$ref": "./examples/GetSubscriptions.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/tenants": { + "get": { + "tags": [ + "Tenants" + ], + "operationId": "Tenants_List", + "description": "Gets the tenants for your account.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of tenants.", + "schema": { + "$ref": "#/definitions/TenantListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "Location": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus." + }, + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The location name." + }, + "displayName": { + "readOnly": true, + "type": "string", + "description": "The display name of the location." + }, + "latitude": { + "readOnly": true, + "type": "string", + "description": "The latitude of the location." + }, + "longitude": { + "readOnly": true, + "type": "string", + "description": "The longitude of the location." + } + }, + "description": "Location information." + }, + "LocationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Location" + }, + "description": "An array of locations." + } + }, + "description": "Location list operation response." + }, + "Subscription": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000." + }, + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "displayName": { + "readOnly": true, + "type": "string", + "description": "The subscription display name." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The subscription tenant ID." + }, + "state": { + "readOnly": true, + "type": "string", + "description": "The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.", + "enum": [ + "Enabled", + "Warned", + "PastDue", + "Disabled", + "Deleted" + ], + "x-ms-enum": { + "name": "SubscriptionState", + "modelAsString": false + } + }, + "subscriptionPolicies": { + "$ref": "#/definitions/SubscriptionPolicies", + "description": "The subscription policies." + }, + "authorizationSource": { + "type": "string", + "description": "The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'." + }, + "managedByTenants": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagedByTenant" + }, + "description": "An array containing the tenants managing the subscription." + } + }, + "description": "Subscription information." + }, + "SubscriptionPolicies": { + "properties": { + "locationPlacementId": { + "readOnly": true, + "type": "string", + "description": "The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions." + }, + "quotaId": { + "readOnly": true, + "type": "string", + "description": "The subscription quota ID." + }, + "spendingLimit": { + "readOnly": true, + "type": "string", + "description": "The subscription spending limit.", + "enum": [ + "On", + "Off", + "CurrentPeriodOff" + ], + "x-ms-enum": { + "name": "spendingLimit", + "modelAsString": false + } + } + }, + "description": "Subscription policies." + }, + "ManagedByTenant": { + "properties": { + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of the managing tenant. This is a GUID." + } + }, + "description": "Information about a tenant managing the subscription." + }, + "SubscriptionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Subscription" + }, + "description": "An array of subscriptions." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results." + } + }, + "required": [ + "nextLink" + ], + "description": "Subscription list operation response." + }, + "TenantIdDescription": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID. For example, 00000000-0000-0000-0000-000000000000." + } + }, + "description": "Tenant Id information." + }, + "TenantListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TenantIdDescription" + }, + "description": "An array of tenants." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "required": [ + "nextLink" + ], + "description": "Tenant Ids information." + }, + "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." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation.", + "x-ms-parameter-location": "client" + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/CreateResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/CreateResourceGroup.json new file mode 100644 index 000000000000..3a7c12c8ed74 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/CreateResourceGroup.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "parameters": { + "location": "eastus" + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup", + "name": "myResourceGroup", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup", + "name": "myResourceGroup", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/ExportResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/ExportResourceGroup.json new file mode 100644 index 000000000000..a230ae558837 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/ExportResourceGroup.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "eaee6a92-e973-4922-9471-3a0a6abf81cd", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "parameters": { + "resources": [ + "*" + ], + "options": "IncludeParameterDefaultValue,IncludeComments" + } + }, + "responses": { + "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/2019-07-01/examples/ExportResourceGroupWithFiltering.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/ExportResourceGroupWithFiltering.json new file mode 100644 index 000000000000..e84964fb91ab --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/ExportResourceGroupWithFiltering.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "eaee6a92-e973-4922-9471-3a0a6abf81cd", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "parameters": { + "resources": [ + "/subscriptions/eaee6a92-e973-4922-9471-3a0a6abf81cd/resourceGroups/myResourceGroup/providers/My.RP/myResourceType/myFirstResource" + ], + "options": "SkipResourceNameParameterization" + } + }, + "responses": { + "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/2019-07-01/examples/PutDeploymentAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentAtManagementGroup.json new file mode 100644 index 000000000000..d31dec4df462 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentAtManagementGroup.json @@ -0,0 +1,137 @@ +{ + "parameters": { + "groupId": "tiano-group1", + "deploymentName": "mg-dep01", + "api-version": "2019-07-01", + "parameters": { + "location": "eastus", + "properties": { + "templateLink": "{templateUri}", + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Resources/deployments/mg-dep01", + "name": "mg-dep01", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2019-04-24T22:52:38.7895563Z", + "duration": "PT1.2970875S", + "correlationId": "{correlationId}", + "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/tiano-group1/providers/Microsoft.Authorization/policyDefinitions/policy2", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy2" + } + ], + "id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + } + } + }, + "201": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Resources/deployments/mg-dep01", + "name": "mg-dep01", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2019-04-24T22:52:38.7895563Z", + "duration": "PT1.2970875S", + "correlationId": "{correlationId}", + "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/tiano-group1/providers/Microsoft.Authorization/policyDefinitions/policy2", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy2" + } + ], + "id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentAtScope.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentAtScope.json new file mode 100644 index 000000000000..36674dfbe9f5 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentAtScope.json @@ -0,0 +1,137 @@ +{ + "parameters": { + "scope": "providers/Microsoft.Management/managementGroups/tiano-group1", + "deploymentName": "mg-dep01", + "api-version": "2019-07-01", + "parameters": { + "location": "eastus", + "properties": { + "templateLink": "{templateUri}", + "parameters": {}, + "mode": "Incremental" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Resources/deployments/mg-dep01", + "name": "mg-dep01", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2019-04-24T22:52:38.7895563Z", + "duration": "PT1.2970875S", + "correlationId": "{correlationId}", + "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/tiano-group1/providers/Microsoft.Authorization/policyDefinitions/policy2", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy2" + } + ], + "id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + } + } + }, + "201": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Resources/deployments/mg-dep01", + "name": "mg-dep01", + "type": "Microsoft.Resources/deployments", + "location": "eastus", + "properties": { + "parameters": {}, + "mode": "Incremental", + "provisioningState": "Accepted", + "timestamp": "2019-04-24T22:52:38.7895563Z", + "duration": "PT1.2970875S", + "correlationId": "{correlationId}", + "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/tiano-group1/providers/Microsoft.Authorization/policyDefinitions/policy2", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy2" + } + ], + "id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentAtTenant.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentAtTenant.json new file mode 100644 index 000000000000..f003b22bf640 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentAtTenant.json @@ -0,0 +1,136 @@ +{ + "parameters": { + "deploymentName": "tenant-dep01", + "api-version": "2019-07-01", + "parameters": { + "location": "eastus", + "properties": { + "templateLink": "{templateUri}", + "parameters": {}, + "mode": "Incremental" + } + } + }, + "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": "{correlationId}", + "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/policy2", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy2" + } + ], + "id": "/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + } + } + }, + "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": "{correlationId}", + "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/policy2", + "resourceType": "Microsoft.Authorization/policyDefinitions", + "resourceName": "policy2" + } + ], + "id": "/providers/Microsoft.Authorization/policyAssignments/location-lock", + "resourceType": "Microsoft.Authorization/policyAssignments", + "resourceName": "location-lock" + } + ] + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json new file mode 100644 index 000000000000..19629b823095 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "deploymentName": "exampleDeploymentName", + "api-version": "2019-07-01", + "parameters": { + "properties": { + "templateLink": "{templateUri}", + "parameters": {}, + "mode": "Complete", + "onErrorDeployment": { + "type": "LastSuccessful" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName", + "name": "exampleDeploymentName", + "type": "Microsoft.Resources/deployments", + "properties": { + "provisioningState": "Accepted", + "correlationId": "{correlationId}", + "timestamp": "2019-03-01T00:00:00.0000000Z", + "mode": "Complete", + "onErrorDeployment": { + "type": "LastSuccessful", + "deploymentName": "{nameOfLastSuccesfulDeployment}" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName", + "name": "exampleDeploymentName", + "type": "Microsoft.Resources/deployments", + "properties": { + "provisioningState": "Accepted", + "correlationId": "{correlationId}", + "timestamp": "2019-03-01T00:00:00.0000000Z", + "mode": "Complete", + "onErrorDeployment": { + "type": "LastSuccessful", + "deploymentName": "{nameOfLastSuccesfulDeployment}" + } + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json new file mode 100644 index 000000000000..c3ae4b973af6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "deploymentName": "exampleDeploymentName", + "api-version": "2019-07-01", + "parameters": { + "properties": { + "templateLink": "{templateUri}", + "parameters": {}, + "mode": "Complete", + "onErrorDeployment": { + "type": "SpecificDeployment", + "deploymentName": "{nameOfDeploymentToUse}" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName", + "name": "exampleDeploymentName", + "type": "Microsoft.Resources/deployments", + "properties": { + "provisioningState": "Accepted", + "correlationId": "{correlationId}", + "timestamp": "2019-03-01T00:00:00.0000000Z", + "mode": "Complete", + "onErrorDeployment": { + "type": "SpecificDeployment", + "deploymentName": "{nameOfDeploymentToUse}" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName", + "name": "exampleDeploymentName", + "type": "Microsoft.Resources/deployments", + "properties": { + "provisioningState": "Accepted", + "correlationId": "{correlationId}", + "timestamp": "2019-03-01T00:00:00.0000000Z", + "mode": "Complete", + "onErrorDeployment": { + "type": "SpecificDeployment", + "deploymentName": "{nameOfDeploymentToUse}" + } + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/resources.json new file mode 100644 index 000000000000..2d350d0fd7f4 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-07-01/resources.json @@ -0,0 +1,4978 @@ +{ + "swagger": "2.0", + "info": { + "title": "ResourceManagementClient", + "version": "2019-07-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", + "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" + } + }, + "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/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 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", + "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" + } + ], + "responses": { + "200": { + "description": "OK - Returns the validation result.", + "schema": { + "$ref": "#/definitions/DeploymentValidateResult" + } + }, + "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/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 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", + "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/Deployment" + }, + "description": "Parameters to validate." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the validation result.", + "schema": { + "$ref": "#/definitions/DeploymentValidateResult" + } + }, + "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-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", + "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" + } + }, + "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}/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" + } + }, + "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", + "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" + } + }, + "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}/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'

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": "The $expand query parameter. You can expand createdTime and changedTime. For example, to expand both properties, use $expand=changedTime,createdTime" + }, + { + "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": { + "201": { + "description": "Created - Returns information about the new resource group.", + "schema": { + "$ref": "#/definitions/ResourceGroup" + } + }, + "200": { + "description": "OK - 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": { + "202": { + "description": "Accepted" + }, + "200": { + "description": "OK" + }, + "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": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group to export as a template.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ExportTemplateRequest" + }, + "description": "Parameters for exporting the template." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "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" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/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/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}/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'

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": "The $expand query parameter. You can expand createdTime and changedTime. For example, to expand both properties, use $expand=changedTime,createdTime" + }, + { + "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" + }, + "204": { + "description": "No Content" + }, + "202": { + "description": "Accepted" + }, + "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": { + "201": { + "description": "Created - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "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 + }, + "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" + }, + "204": { + "description": "No Content" + }, + "202": { + "description": "Accepted" + }, + "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": { + "201": { + "description": "Created - Returns information about the resource.", + "schema": { + "$ref": "#/definitions/GenericResource" + } + }, + "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 + }, + "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": "Tags_DeleteValue", + "description": "Deletes a tag value.", + "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": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Tags" + ], + "operationId": "Tags_CreateOrUpdateValue", + "description": "Creates a tag value. The name of the tag must already exist.", + "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": "OK - Returns information about the tag value.", + "schema": { + "$ref": "#/definitions/TagValue" + } + }, + "201": { + "description": "Created - Returns information about the 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": "Tags_CreateOrUpdate", + "summary": "Creates a tag in the subscription.", + "description": "The tag name can have a maximum of 512 characters and is case insensitive. Tag names created by Azure have prefixes of microsoft, azure, or windows. You cannot create tags with one of these prefixes.", + "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": "OK - Returns information about the tag.", + "schema": { + "$ref": "#/definitions/TagDetails" + } + }, + "201": { + "description": "Created - Returns information about the tag.", + "schema": { + "$ref": "#/definitions/TagDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Tags" + ], + "operationId": "Tags_Delete", + "summary": "Deletes a tag from the subscription.", + "description": "You must remove all values from a resource tag before you can delete it.", + "parameters": [ + { + "name": "tagName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the tag." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/tagNames": { + "get": { + "tags": [ + "Tags" + ], + "operationId": "Tags_List", + "description": "Gets the names and values of all resource tags that are defined in a subscription.", + "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" + } + } + } + }, + "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." + }, + "contentVersion": { + "type": "string", + "description": "If included, must match the ContentVersion in the template." + } + }, + "required": [ + "uri" + ], + "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." + } + }, + "required": [ + "properties" + ], + "description": "Deployment operation parameters." + }, + "DeploymentExportResult": { + "properties": { + "template": { + "type": "object", + "description": "The template content." + } + }, + "description": "The deployment export result. " + }, + "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." + }, + "AliasPathType": { + "properties": { + "path": { + "type": "string", + "description": "The path of an alias." + }, + "apiVersions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The API versions." + } + }, + "description": "The type of the paths for alias. " + }, + "AliasType": { + "properties": { + "name": { + "type": "string", + "description": "The alias name." + }, + "paths": { + "type": "array", + "items": { + "$ref": "#/definitions/AliasPathType" + }, + "description": "The paths 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/AliasType" + }, + "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": { + "readOnly": true, + "type": "string", + "description": "The state of the provisioning." + }, + "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": { + "type": "object", + "description": "Key/value pairs that represent deployment output." + }, + "providers": { + "type": "array", + "items": { + "$ref": "#/definitions/Provider" + }, + "description": "The list of resource providers needed for the deployment." + }, + "dependencies": { + "type": "array", + "items": { + "$ref": "#/definitions/Dependency" + }, + "description": "The list of deployment dependencies." + }, + "template": { + "type": "object", + "description": "The template content. Use only one of Template or TemplateLink." + }, + "templateLink": { + "$ref": "#/definitions/TemplateLink", + "description": "The URI referencing the template. Use only one of Template or TemplateLink." + }, + "parameters": { + "type": "object", + "description": "Deployment parameters. Use only one of Parameters or ParametersLink." + }, + "parametersLink": { + "$ref": "#/definitions/ParametersLink", + "description": "The URI referencing the parameters. Use only one of Parameters or ParametersLink." + }, + "mode": { + "type": "string", + "description": "The deployment mode. Possible values are Incremental and Complete.", + "enum": [ + "Incremental", + "Complete" + ], + "x-ms-enum": { + "name": "DeploymentMode", + "modelAsString": false + } + }, + "debugSetting": { + "$ref": "#/definitions/DebugSetting", + "description": "The debug setting of the deployment." + }, + "onErrorDeployment": { + "$ref": "#/definitions/OnErrorDeploymentExtended", + "description": "The deployment on error behavior." + } + }, + "description": "Deployment properties with additional details." + }, + "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": { + "$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." + } + }, + "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." + }, + "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", + "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/GenericResource" + }, + "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 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 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." + } + }, + "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": { + "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, + "type": "object", + "description": "Operation status message." + }, + "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." + } + } + } + }, + "parameters": { + "ScopeParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of a deployment.", + "x-ms-parameter-location": "method" + }, + "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." + }, + "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 25697ac44b64..8ecb43549df2 100644 --- a/specification/resources/resource-manager/readme.csharp.md +++ b/specification/resources/resource-manager/readme.csharp.md @@ -14,7 +14,7 @@ csharp: ``` yaml $(csharp) && !$(multiapi) && !$(csharp-profile) namespace: Microsoft.Azure.Management.ResourceManager -output-folder: $(csharp-sdks-folder)/Resource/Management.ResourceManager/Generated +output-folder: $(csharp-sdks-folder)/resources/Microsoft.Azure.Management.ResourceManager/src/Generated batch: - package-features: true @@ -84,6 +84,32 @@ batch: ApiVersionName: Api2019_05_01 - policyD-2016-12-01: true ApiVersionName: Api2019_05_01 + + - resources-2019-05-10: true + ApiVersionName: Api2019_05_10 + - links-2016-09-01: true + ApiVersionName: Api2019_05_10 + - subscription-2016-06-01: true + ApiVersionName: Api2019_05_10 + - locks-2016-09-01: true + ApiVersionName: Api2019_05_10 + - policyA-2016-12-01: true + ApiVersionName: Api2019_05_10 + - policyD-2016-12-01: true + ApiVersionName: Api2019_05_10 + + - resources-2019-07-01: true + ApiVersionName: Api2019_07_01 + - links-2016-09-01: true + ApiVersionName: Api2019_07_01 + - subscription-2016-06-01: true + ApiVersionName: Api2019_07_01 + - locks-2016-09-01: true + ApiVersionName: Api2019_07_01 + - policyA-2016-12-01: true + ApiVersionName: Api2019_07_01 + - policyD-2016-12-01: true + ApiVersionName: Api2019_07_01 ``` @@ -342,6 +368,142 @@ input-file: - Microsoft.Authorization/stable/2016-12-01/policyDefinitions.json ``` +``` yaml $(Separator) +########################################################################### +########################################################################### +``` + + +``` yaml $(resources-2019-05-10) +tag: pkg-2019-0510-Az-res +``` + +``` yaml $(links-2016-09-01) +tag: pkg-2019-0510-Az-lnk +``` + +``` yaml $(subscription-2016-06-01) +tag: pkg-2019-0510-Az-sub +``` + +``` yaml $(locks-2016-09-01) +tag: pkg-2019-0510-Az-loc +``` + +``` yaml $(policyA-2016-12-01) +tag: pkg-2019-0510-Az-polA +``` + +``` yaml $(policyD-2016-12-01) +tag: pkg-2019-0510-Az-polD +``` + + +## Tag: Packages for Azure Stack +### 1) pkg-2019-0510-AzStk-res +``` yaml $(tag) == 'pkg-2019-0510-Az-res' +input-file: +- Microsoft.Resources/stable/2019-05-10/resources.json +``` + +### 2) pkg-2019-0510-AzStk-lnk +``` yaml $(tag) == 'pkg-2019-0510-Az-lnk' +input-file: +- Microsoft.Resources/stable/2016-09-01/links.json +``` + +### 3) pkg-2019-0510-AzStk-sub +``` yaml $(tag) == 'pkg-2019-0510-Az-sub' +input-file: +- Microsoft.Resources/stable/2016-06-01/subscriptions.json +``` + +### 4) pkg-2019-0510-AzStk-loc +``` yaml $(tag) == 'pkg-2019-0510-Az-loc' +input-file: +- Microsoft.Authorization/stable/2016-09-01/locks.json +``` + +### 5) pkg-2019-0510-AzStk-polA +``` yaml $(tag) == 'pkg-2019-0510-Az-polA' +input-file: +- Microsoft.Authorization/stable/2016-12-01/policyAssignments.json +``` + +### 6) pkg-2019-0510-AzStk-polD +``` yaml $(tag) == 'pkg-2019-0510-Az-polD' +input-file: +- Microsoft.Authorization/stable/2016-12-01/policyDefinitions.json +``` + +``` yaml $(Separator) +########################################################################### +########################################################################### +``` + + +``` yaml $(resources-2019-07-01) +tag: pkg-2019-07-Az-res +``` + +``` yaml $(links-2016-09-01) +tag: pkg-2019-07-Az-lnk +``` + +``` yaml $(subscription-2016-06-01) +tag: pkg-2019-07-Az-sub +``` + +``` yaml $(locks-2016-09-01) +tag: pkg-2019-07-Az-loc +``` + +``` yaml $(policyA-2016-12-01) +tag: pkg-2019-07-Az-polA +``` + +``` yaml $(policyD-2016-12-01) +tag: pkg-2019-07-Az-polD +``` + + +## Tag: Packages for Azure Stack +### 1) pkg-2019-07-AzStk-res +``` yaml $(tag) == 'pkg-2019-07-Az-res' +input-file: +- Microsoft.Resources/stable/2019-07-01/resources.json +``` + +### 2) pkg-2019-07-AzStk-lnk +``` yaml $(tag) == 'pkg-2019-07-Az-lnk' +input-file: +- Microsoft.Resources/stable/2016-09-01/links.json +``` + +### 3) pkg-2019-07-AzStk-sub +``` yaml $(tag) == 'pkg-2019-07-Az-sub' +input-file: +- Microsoft.Resources/stable/2016-06-01/subscriptions.json +``` + +### 4) pkg-2019-07-AzStk-loc +``` yaml $(tag) == 'pkg-2019-07-Az-loc' +input-file: +- Microsoft.Authorization/stable/2016-09-01/locks.json +``` + +### 5) pkg-2019-07-AzStk-polA +``` yaml $(tag) == 'pkg-2019-07-Az-polA' +input-file: +- Microsoft.Authorization/stable/2016-12-01/policyAssignments.json +``` + +### 6) pkg-2019-07-AzStk-polD +``` yaml $(tag) == 'pkg-2019-07-Az-polD' +input-file: +- Microsoft.Authorization/stable/2016-12-01/policyDefinitions.json +``` + ### Profile: hybrid_2018_03_01 These settings apply only when `--profile=hybrid_2018_03_01` is specified on the command line. diff --git a/specification/resources/resource-manager/readme.go.md b/specification/resources/resource-manager/readme.go.md index b875f2fa2f37..6afd2005a1a8 100644 --- a/specification/resources/resource-manager/readme.go.md +++ b/specification/resources/resource-manager/readme.go.md @@ -25,6 +25,7 @@ batch: - tag: package-features-2015-12 - tag: package-locks-2016-09 - tag: package-locks-2015-01 + - tag: package-policy-2019-01 - tag: package-policy-2018-05 - tag: package-policy-2018-03 - tag: package-policy-2017-06 @@ -79,6 +80,16 @@ namespace: locks output-folder: $(go-sdk-folder)/services/resources/mgmt/2015-01-01/locks ``` +### Tag: package-policy-2019-01 and go + +These settings apply only when `--tag=package-policy-2019-01 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-policy-2019-01' && $(go) +namespace: policy +output-folder: $(go-sdk-folder)/services/resources/mgmt/2019-01-01/policy +``` + ### Tag: package-policy-2018-05 and go These settings apply only when `--tag=package-policy-2018-05 --go` is specified on the command line. diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index a91452cb333d..2d017716a504 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -4,10 +4,10 @@ This is the AutoRest configuration file for Resource. - - --- + ## Getting Started + To build the SDK for Resource, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -15,13 +15,13 @@ To build the SDK for Resource, simply [Install AutoRest](https://aka.ms/autorest To see additional help and options, run: > `autorest --help` + --- ## Configuration - - ### Basic Information + These are the global settings for the Resource API. ``` yaml @@ -37,11 +37,11 @@ tag: package-locks-2016-09 ``` ``` yaml $(package-policy) -tag: package-policy-2018-05 +tag: package-policy-2019-01 ``` ``` yaml $(package-resources) -tag: package-resources-2019-05 +tag: package-resources-2019-07 ``` ``` yaml $(package-subscriptions) @@ -53,10 +53,20 @@ tag: package-links-2016-09 ``` ``` yaml $(package-managedapplications) -tag: package-managedapplications-2016-09 +tag: package-2019-06 ``` + +### Tag: package-2019-06 + +These settings apply only when `--tag=package-2019-06` is specified on the command line. + +```yaml $(tag) == 'package-2019-06' +input-file: + - Microsoft.Resources/stable/2019-06-01/subscriptions.json +``` ### Tag: package-features-2015-12 + These settings apply only when `--tag=package-features-2015-12` is specified on the command line. ``` yaml $(tag) == 'package-features-2015-12' @@ -65,6 +75,7 @@ input-file: ``` ### Tag: package-locks-2016-09 + These settings apply only when `--tag=package-locks-2016-09` is specified on the command line. ``` yaml $(tag) == 'package-locks-2016-09' @@ -73,6 +84,7 @@ input-file: ``` ### Tag: package-locks-2015-01 + These settings apply only when `--tag=package-locks-2015-01` is specified on the command line. ``` yaml $(tag) == 'package-locks-2015-01' @@ -80,7 +92,23 @@ input-file: - Microsoft.Authorization/stable/2015-01-01/locks.json ``` +### Tag: package-policy-2019-01 + +These settings apply only when `--tag=package-policy-2019-01` is specified on the command line. + +``` yaml $(tag) == 'package-policy-2019-01' +input-file: +- Microsoft.Authorization/stable/2019-01-01/policyAssignments.json +- Microsoft.Authorization/stable/2019-01-01/policyDefinitions.json +- Microsoft.Authorization/stable/2019-01-01/policySetDefinitions.json + +# Needed when there is more than one input file +override-info: + title: PolicyClient +``` + ### Tag: package-policy-2018-05 + These settings apply only when `--tag=package-policy-2018-05` is specified on the command line. ``` yaml $(tag) == 'package-policy-2018-05' @@ -95,6 +123,7 @@ override-info: ``` ### Tag: package-policy-2018-03 + These settings apply only when `--tag=package-policy-2018-03` is specified on the command line. ``` yaml $(tag) == 'package-policy-2018-03' @@ -109,6 +138,7 @@ override-info: ``` ### Tag: package-policy-2017-06 + These settings apply only when `--tag=package-policy-2017-06` is specified on the command line. ``` yaml $(tag) == 'package-policy-2017-06' @@ -123,6 +153,7 @@ override-info: ``` ### Tag: package-pure-policy-2017-06 + These settings apply only when `--tag=package-pure-policy-2017-06` is specified on the command line. ``` yaml $(tag) == 'package-pure-policy-2017-06' @@ -136,6 +167,7 @@ override-info: ``` ### Tag: package-policy-2016-12 + These settings apply only when `--tag=package-policy-2016-12` is specified on the command line. ``` yaml $(tag) == 'package-policy-2016-12' @@ -149,6 +181,7 @@ override-info: ``` ### Tag: package-policy-2016-04 + These settings apply only when `--tag=package-policy-2016-04` is specified on the command line. ``` yaml $(tag) == 'package-policy-2016-04' @@ -157,6 +190,7 @@ input-file: ``` ### Tag: package-policy-2015-10 + These settings apply only when `--tag=package-policy-2015-10` is specified on the command line. ``` yaml $(tag) == 'package-policy-2015-10' @@ -164,7 +198,26 @@ input-file: - Microsoft.Authorization/preview/2015-10-01-preview/policy.json ``` +### Tag: package-resources-2019-07 + +These settings apply only when `--tag=package-resources-2019-07` is specified on the command line. + +``` yaml $(tag) == 'package-resources-2019-07' +input-file: +- Microsoft.Resources/stable/2019-07-01/resources.json +``` + +### Tag: package-resources-2019-0510 + +These settings apply only when `--tag=package-resources-2019-0510` is specified on the command line. + +``` yaml $(tag) == 'package-resources-2019-0510' +input-file: +- Microsoft.Resources/stable/2019-05-10/resources.json +``` + ### Tag: package-resources-2019-05 + These settings apply only when `--tag=package-resources-2019-05` is specified on the command line. ``` yaml $(tag) == 'package-resources-2019-05' @@ -173,6 +226,7 @@ input-file: ``` ### Tag: package-resources-2019-03 + These settings apply only when `--tag=package-resources-2019-03` is specified on the command line. ``` yaml $(tag) == 'package-resources-2019-03' @@ -181,6 +235,7 @@ input-file: ``` ### Tag: package-resources-2018-05 + These settings apply only when `--tag=package-resources-2018-05` is specified on the command line. ``` yaml $(tag) == 'package-resources-2018-05' @@ -189,6 +244,7 @@ input-file: ``` ### Tag: package-resources-2018-02 + These settings apply only when `--tag=package-resources-2018-02` is specified on the command line. ``` yaml $(tag) == 'package-resources-2018-02' @@ -197,6 +253,7 @@ input-file: ``` ### Tag: package-resources-2017-05 + These settings apply only when `--tag=package-resources-2017-05` is specified on the command line. ``` yaml $(tag) == 'package-resources-2017-05' @@ -205,6 +262,7 @@ input-file: ``` ### Tag: package-resources-2016-09 + These settings apply only when `--tag=package-resources-2016-09` is specified on the command line. ``` yaml $(tag) == 'package-resources-2016-09' @@ -213,6 +271,7 @@ input-file: ``` ### Tag: package-resources-2016-07 + These settings apply only when `--tag=package-resources-2016-07` is specified on the command line. ``` yaml $(tag) == 'package-resources-2016-07' @@ -221,6 +280,7 @@ input-file: ``` ### Tag: package-resources-2016-02 + These settings apply only when `--tag=package-resources-2016-02` is specified on the command line. ``` yaml $(tag) == 'package-resources-2016-02' @@ -229,6 +289,7 @@ input-file: ``` ### Tag: package-resources-2015-11 + These settings apply only when `--tag=package-resources-2015-11` is specified on the command line. ``` yaml $(tag) == 'package-resources-2015-11' @@ -237,6 +298,7 @@ input-file: ``` ### Tag: package-subscriptions-2018-06 + These settings apply only when `--tag=package-subscriptions-2018-06` is specified on the command line. ``` yaml $(tag) == 'package-subscriptions-2018-06' @@ -245,6 +307,7 @@ input-file: ``` ### Tag: package-subscriptions-2016-06 + These settings apply only when `--tag=package-subscriptions-2016-06` is specified on the command line. ``` yaml $(tag) == 'package-subscriptions-2016-06' @@ -253,6 +316,7 @@ input-file: ``` ### Tag: package-subscriptions-2015-11 + These settings apply only when `--tag=package-subscriptions-2015-11` is specified on the command line. ``` yaml $(tag) == 'package-subscriptions-2015-11' @@ -261,6 +325,7 @@ input-file: ``` ### Tag: package-links-2016-09 + These settings apply only when `--tag=package-links-2016-09` is specified on the command line. ``` yaml $(tag) == 'package-links-2016-09' @@ -269,6 +334,7 @@ input-file: ``` ### Tag: package-managedapplications-2018-06 + These settings apply only when `--tag=package-managedapplications-2018-06` is specified on the command line. ``` yaml $(tag) == 'package-managedapplications-2018-06' @@ -277,6 +343,7 @@ input-file: ``` ### Tag: package-managedapplications-2017-09 + These settings apply only when `--tag=package-managedapplications-2017-09` is specified on the command line. ``` yaml $(tag) == 'package-managedapplications-2017-09' @@ -285,6 +352,7 @@ input-file: ``` ### Tag: package-managedapplications-2016-09 + These settings apply only when `--tag=package-managedapplications-2016-09` is specified on the command line. ``` yaml $(tag) == 'package-managedapplications-2016-09' @@ -293,6 +361,7 @@ input-file: ``` ## Suppression + ``` yaml directive: - suppress: UniqueResourcePaths @@ -362,8 +431,8 @@ directive: ``` --- -# Code Generation +# Code Generation ## Swagger to SDK @@ -372,6 +441,7 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: + - repo: azure-sdk-for-net - repo: azure-sdk-for-python after_scripts: - python ./scripts/multiapi_init_gen.py azure-mgmt-resource#features @@ -408,13 +478,16 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-resources Generate all API versions currently shipped for this package -```yaml $(java) && $(multiapi) +``` yaml $(java) && $(multiapi) batch: - tag: package-features-2015-12 - tag: package-locks-2016-09 + - tag: package-policy-2019-01 - tag: package-policy-2018-05 - tag: package-policy-2018-03 - tag: package-policy-2016-12 + - tag: package-resources-2019-07 + - tag: package-resources-2019-0510 - tag: package-resources-2019-05 - tag: package-resources-2019-03 - tag: package-resources-2018-02 @@ -451,6 +524,24 @@ generate-interface: true fconfig: '{"moduleName": "Locks"}' ``` +### Tag: package-policy-2019-01 and java + +These settings apply only when `--tag=package-policy-2019-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-policy-2019-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.policy.v2019_01_01 + output-folder: $(azure-libraries-for-java-folder)/policy/resource-manager/v2019_01_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "Policy"}' +directive: + from: policyAssignments.json + where: $.definitions.PolicyAssignmentProperties.properties.scope + transform: $['x-ms-client-name'] = 'scopeProperty' +``` + ### Tag: package-policy-2018-05 and java These settings apply only when `--tag=package-policy-2018-05 --java` is specified on the command line. @@ -505,6 +596,32 @@ directive: transform: $['x-ms-client-name'] = 'scopeProperty' ``` +### Tag: package-resources-2019-07 and java + +These settings apply only when `--tag=package-resources-2019-07 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-resources-2019-07' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.resources.v2019_07_01 + output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2019_07_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-resources-2019-0510 and java + +These settings apply only when `--tag=package-resources-2019-0510 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-resources-2019-0510' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.resources.v2019_05_10 + output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2019_05_10 +regenerate-manager: true +generate-interface: true +``` + ### Tag: package-resources-2019-05 and java These settings apply only when `--tag=package-resources-2019-05 --java` is specified on the command line. @@ -611,3 +728,64 @@ input-file: - Microsoft.Resources/stable/2016-06-01/subscriptions.json - Microsoft.Resources/stable/2018-05-01/resources.json ``` + +## 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.Resources/stable/2019-06-01/subscriptions.json + - $(this-folder)/Microsoft.Features/stable/2015-12-01/features.json + - $(this-folder)/Microsoft.Authorization/stable/2016-09-01/locks.json + - $(this-folder)/Microsoft.Authorization/stable/2015-01-01/locks.json + - $(this-folder)/Microsoft.Authorization/stable/2019-01-01/policyAssignments.json + - $(this-folder)/Microsoft.Authorization/stable/2019-01-01/policyDefinitions.json + - $(this-folder)/Microsoft.Authorization/stable/2019-01-01/policySetDefinitions.json + - $(this-folder)/Microsoft.Authorization/stable/2018-05-01/policyAssignments.json + - $(this-folder)/Microsoft.Authorization/stable/2018-05-01/policyDefinitions.json + - $(this-folder)/Microsoft.Authorization/stable/2018-05-01/policySetDefinitions.json + - $(this-folder)/Microsoft.Authorization/stable/2018-03-01/policyAssignments.json + - $(this-folder)/Microsoft.Authorization/stable/2018-03-01/policyDefinitions.json + - $(this-folder)/Microsoft.Authorization/stable/2018-03-01/policySetDefinitions.json + - $(this-folder)/Microsoft.Authorization/preview/2017-06-01-preview/policyAssignments.json + - $(this-folder)/Microsoft.Authorization/preview/2017-06-01-preview/policySetDefinitions.json + - $(this-folder)/Microsoft.Authorization/stable/2016-12-01/policyDefinitions.json + - $(this-folder)/Microsoft.Authorization/stable/2016-12-01/policyAssignments.json + - $(this-folder)/Microsoft.Authorization/stable/2016-04-01/policy.json + - $(this-folder)/Microsoft.Authorization/preview/2015-10-01-preview/policy.json + - $(this-folder)/Microsoft.Resources/stable/2019-07-01/resources.json + - $(this-folder)/Microsoft.Resources/stable/2019-05-10/resources.json + - $(this-folder)/Microsoft.Resources/stable/2019-05-01/resources.json + - $(this-folder)/Microsoft.Resources/stable/2019-03-01/resources.json + - $(this-folder)/Microsoft.Resources/stable/2018-05-01/resources.json + - $(this-folder)/Microsoft.Resources/stable/2018-02-01/resources.json + - $(this-folder)/Microsoft.Resources/stable/2017-05-10/resources.json + - $(this-folder)/Microsoft.Resources/stable/2016-09-01/resources.json + - $(this-folder)/Microsoft.Resources/stable/2016-07-01/resources.json + - $(this-folder)/Microsoft.Resources/stable/2016-02-01/resources.json + - $(this-folder)/Microsoft.Resources/stable/2015-11-01/resources.json + - $(this-folder)/Microsoft.Resources/stable/2018-06-01/subscriptions.json + - $(this-folder)/Microsoft.Resources/stable/2016-06-01/subscriptions.json + - $(this-folder)/Microsoft.Resources/stable/2015-11-01/subscriptions.json + - $(this-folder)/Microsoft.Resources/stable/2016-09-01/links.json + - $(this-folder)/Microsoft.Solutions/stable/2018-06-01/managedapplications.json + - $(this-folder)/Microsoft.Solutions/stable/2017-09-01/managedapplications.json + - $(this-folder)/Microsoft.Solutions/preview/2016-09-01-preview/managedapplications.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/resources/resource-manager/readme.python.md b/specification/resources/resource-manager/readme.python.md index bf295c58095b..560d35a698fc 100644 --- a/specification/resources/resource-manager/readme.python.md +++ b/specification/resources/resource-manager/readme.python.md @@ -26,12 +26,15 @@ batch: - tag: package-locks-2015-01 - tag: package-managedapplications-2018-06 - tag: package-managedapplications-2017-09 + - tag: package-policy-2019-01 - tag: package-policy-2018-05 - tag: package-policy-2018-03 - tag: package-policy-2017-06 - tag: package-policy-2016-12 - tag: package-policy-2016-04 - tag: package-policy-2015-10 + - tag: package-resources-2019-07 + - tag: package-resources-2019-0510 - tag: package-resources-2019-05 - tag: package-resources-2019-03 - tag: package-resources-2018-05 @@ -109,6 +112,17 @@ python: output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications ``` +### Tag: package-policy-2019-01 and python + +These settings apply only when `--tag=package-policy-2019-01 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-policy-2019-01' && $(python) +python: + namespace: azure.mgmt.resource.policy.v2019_01_01 + output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01 +``` + ### Tag: package-policy-2018-05 and python These settings apply only when `--tag=package-policy-2018-05 --python` is specified on the command line. @@ -175,6 +189,28 @@ python: output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview ``` +### Tag: package-resources-2019-07 and python + +These settings apply only when `--tag=package-resources-2019-07 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-resources-2019-07' && $(python) +python: + namespace: azure.mgmt.resource.resources.v2019_07_01 + output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01 +``` + +### Tag: package-resources-2019-0510 and python + +These settings apply only when `--tag=package-resources-2019-0510 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-resources-2019-0510' && $(python) +python: + namespace: azure.mgmt.resource.resources.v2019_05_10 + output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10 +``` + ### Tag: package-resources-2019-05 and python These settings apply only when `--tag=package-resources-2019-05 --python` is specified on the command line. diff --git a/specification/scheduler/resource-manager/readme.md b/specification/scheduler/resource-manager/readme.md index 335dcb4e91c8..deddd9757d66 100644 --- a/specification/scheduler/resource-manager/readme.md +++ b/specification/scheduler/resource-manager/readme.md @@ -69,6 +69,7 @@ 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 @@ -186,3 +187,30 @@ generate-interface: 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)/Microsoft.Scheduler/stable/2016-03-01/scheduler.json + - $(this-folder)/Microsoft.Scheduler/stable/2016-01-01/scheduler.json + - $(this-folder)/Microsoft.Scheduler/preview/2014-08-01-preview/scheduler.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/search/data-plane/Microsoft.Azure.Search.Data/readme.md b/specification/search/data-plane/Microsoft.Azure.Search.Data/readme.md index 089c1d483221..3a27286657b6 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Data/readme.md +++ b/specification/search/data-plane/Microsoft.Azure.Search.Data/readme.md @@ -108,7 +108,7 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Search clear-output-folder: true - output-folder: $(csharp-sdks-folder)/Search/DataPlane/Microsoft.Azure.Search.Data/Generated + output-folder: $(csharp-sdks-folder)/search/Microsoft.Azure.Search.Data/src/Generated ``` ### Tweak generated code @@ -283,3 +283,34 @@ directive: replace( /(_queryParameters.Add\(string.Format\("searchMode=\{0\}",.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*)(\/\/ Create HTTP transport objects)/g, "$1return await ContinueSearchGetWithHttpMessagesAsync(_url, clientRequestId, customHeaders, _shouldTrace, _invocationId, cancellationToken, requestSerializerSettings, responseDeserializerSettings).ConfigureAwait(false);\n }\n\n public async Task>> ContinueSearchGetWithHttpMessagesAsync(string _url, System.Guid? clientRequestId, Dictionary> customHeaders, bool _shouldTrace, string _invocationId, CancellationToken cancellationToken, JsonSerializerSettings requestSerializerSettings, JsonSerializerSettings responseDeserializerSettings)\n {\n $2" ). replace( /(docs\/search.post.search.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*.*\s*)(\/\/ Create HTTP transport objects)/g, "$1return await ContinueSearchPostWithHttpMessagesAsync(_url, searchRequest, clientRequestId, customHeaders, _shouldTrace, _invocationId, cancellationToken, requestSerializerSettings, responseDeserializerSettings).ConfigureAwait(false);\n }\n\n public async Task>> ContinueSearchPostWithHttpMessagesAsync(string _url, SearchRequest searchRequest, System.Guid? clientRequestId, Dictionary> customHeaders, bool _shouldTrace, string _invocationId, CancellationToken cancellationToken, JsonSerializerSettings requestSerializerSettings, JsonSerializerSettings responseDeserializerSettings)\n {\n $2" ) ``` + +## 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)/stable/2019-05-06/searchindex.json + - $(this-folder)/preview/2017-11-11-preview/searchindex.json + - $(this-folder)/preview/2017-11-11/searchindex.json + - $(this-folder)/preview/2016-09-01-preview/searchindex.json + - $(this-folder)/preview/2016-09-01/searchindex.json + - $(this-folder)/preview/2015-02-28-preview/searchindex.json + - $(this-folder)/preview/2015-02-28/searchindex.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/search/data-plane/Microsoft.Azure.Search.Service/readme.md b/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md index ac62eea97986..22a5180862c9 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md @@ -109,7 +109,7 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Search clear-output-folder: true - output-folder: $(csharp-sdks-folder)/Search/DataPlane/Microsoft.Azure.Search.Service/Generated + output-folder: $(csharp-sdks-folder)/search/Microsoft.Azure.Search.Service/src/Generated directive: # TODO: Remove this workaround once AutoRest fixes the incorrect code generation when using a parameterized host and both client and operation groups paths. @@ -146,3 +146,34 @@ directive: replace( /public (bool\? Sortable { get; set; })/g, "internal $1" ). replace( /public (bool\? Facetable { get; set; })/g, "internal $1" ); ``` + +## 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)/stable/2019-05-06/searchservice.json + - $(this-folder)/preview/2017-11-11-preview/searchservice.json + - $(this-folder)/preview/2017-11-11/searchservice.json + - $(this-folder)/preview/2016-09-01-preview/searchservice.json + - $(this-folder)/preview/2016-09-01/searchservice.json + - $(this-folder)/preview/2015-02-28-preview/searchservice.json + - $(this-folder)/preview/2015-02-28/searchservice.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/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceCreateOrUpdateSkillset.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceCreateOrUpdateSkillset.json index 03c281462208..85e95eb1e9cf 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceCreateOrUpdateSkillset.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceCreateOrUpdateSkillset.json @@ -84,6 +84,31 @@ "targetName": "keyPhrases" } ] + }, + { + "@odata.type": "#Microsoft.Skills.Custom.WebApiSkill", + "name": "MyCustomWebApiSkill", + "uri": "https://contoso.example.org", + "httpMethod": "POST", + "timeout": "PT30S", + "batchSize": 1, + "inputs": [ + { + "name": "text", + "source": "/document/pages/*" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "customresult", + "targetName": "result" + } + ], + "httpHeaders": {} } ] } @@ -96,6 +121,7 @@ "skills": [ { "@odata.type": "#Microsoft.Skills.Text.EntityRecognitionSkill", + "name": "#1", "description": null, "context": null, "inputs": [ @@ -118,6 +144,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", + "name": "#2", "description": null, "context": null, "inputs": [ @@ -135,6 +162,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.SplitSkill", + "name": "#3", "description": null, "context": null, "inputs": [ @@ -159,6 +187,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", + "name": "#4", "description": null, "context": "/document/pages/*", "inputs": [ @@ -179,6 +208,34 @@ ], "defaultLanguageCode": null, "maxKeyPhraseCount": null + }, + { + "@odata.type": "#Microsoft.Skills.Custom.WebApiSkill", + "name": "MyCustomWebApiSkill", + "description": null, + "context": "/document", + "uri": "https://contoso.example.org", + "httpMethod": "POST", + "timeout": "PT30S", + "batchSize": 1, + "degreeOfParallelism": null, + "inputs": [ + { + "name": "text", + "source": "/document/pages/*" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "customresult", + "targetName": "result" + } + ], + "httpHeaders": {} } ] } @@ -190,6 +247,7 @@ "skills": [ { "@odata.type": "#Microsoft.Skills.Text.EntityRecognitionSkill", + "name": "#1", "description": null, "context": null, "inputs": [ @@ -212,6 +270,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", + "name": "#2", "description": null, "context": null, "inputs": [ @@ -229,6 +288,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.SplitSkill", + "name": "#3", "description": null, "context": null, "inputs": [ @@ -253,6 +313,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", + "name": "#4", "description": null, "context": "/document/pages/*", "inputs": [ @@ -273,6 +334,34 @@ ], "defaultLanguageCode": null, "maxKeyPhraseCount": null + }, + { + "@odata.type": "#Microsoft.Skills.Custom.WebApiSkill", + "name": "MyCustomWebApiSkill", + "description": null, + "context": "/document", + "uri": "https://contoso.example.org", + "httpMethod": "POST", + "timeout": "PT30S", + "batchSize": 1, + "degreeOfParallelism": null, + "inputs": [ + { + "name": "text", + "source": "/document/pages/*" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "customresult", + "targetName": "result" + } + ], + "httpHeaders": {} } ] } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceCreateSkillset.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceCreateSkillset.json index a459519e32b9..e604929d9636 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceCreateSkillset.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceCreateSkillset.json @@ -84,6 +84,31 @@ "targetName": "keyPhrases" } ] + }, + { + "@odata.type": "#Microsoft.Skills.Custom.WebApiSkill", + "name": "MyCustomWebApiSkill", + "uri": "https://contoso.example.org", + "httpMethod": "POST", + "timeout": "PT30S", + "batchSize": 1, + "inputs": [ + { + "name": "text", + "source": "/document/pages/*" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "customresult", + "targetName": "result" + } + ], + "httpHeaders": {} } ] } @@ -96,6 +121,7 @@ "skills": [ { "@odata.type": "#Microsoft.Skills.Text.EntityRecognitionSkill", + "name": "#1", "description": null, "context": null, "inputs": [ @@ -118,6 +144,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", + "name": "#2", "description": null, "context": null, "inputs": [ @@ -135,6 +162,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.SplitSkill", + "name": "#3", "description": null, "context": null, "inputs": [ @@ -159,6 +187,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", + "name": "#4", "description": null, "context": "/document/pages/*", "inputs": [ @@ -179,6 +208,34 @@ ], "defaultLanguageCode": null, "maxKeyPhraseCount": null + }, + { + "@odata.type": "#Microsoft.Skills.Custom.WebApiSkill", + "name": "MyCustomWebApiSkill", + "description": null, + "context": "/document", + "uri": "https://contoso.example.org", + "httpMethod": "POST", + "timeout": "PT30S", + "batchSize": 1, + "degreeOfParallelism": null, + "inputs": [ + { + "name": "text", + "source": "/document/pages/*" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "customresult", + "targetName": "result" + } + ], + "httpHeaders": {} } ] } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceGetIndexerStatus.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceGetIndexerStatus.json index 83e9dce778af..b4363864d2a3 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceGetIndexerStatus.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceGetIndexerStatus.json @@ -43,17 +43,38 @@ { "key": "", "errorMessage": "Document key cannot be missing or empty.", - "statusCode": 400 + "statusCode": 400, + "name": null, + "details": null, + "documentationLink": null + }, + { + "key": "document id 1", + "errorMessage": "Could not read the value of column 'foo' at index '0'.", + "statusCode": 400, + "name": "DocumentExtraction.AzureBlob.MyDataSource", + "details": "The file could not be parsed.", + "documentationLink": "https://go.microsoft.com/fwlink/?linkid=2049388" } ], "warnings": [ { "key": "document id", - "message": "A warning doesn't stop indexing, and is intended to inform you of certain interesting situations, like when a blob indexer truncates the amount of text extracted from a blob." + "message": "A warning doesn't stop indexing, and is intended to inform you of certain interesting situations, like when a blob indexer truncates the amount of text extracted from a blob.", + "name": null, + "details": null, + "documentationLink": null + }, + { + "key": "document id 2", + "message": "Document was truncated to 50000 characters.", + "name": "Enrichment.LanguageDetectionSkill.#4", + "details": "The skill did something that didn't break anything, nonetheless something we didn't expect happened, so it might be worth double checking.", + "documentationLink": "https://go.microsoft.com/fwlink/?linkid=2099692" } ], "itemsProcessed": 1, - "itemsFailed": 1, + "itemsFailed": 2, "initialTrackingState": null, "finalTrackingState": null } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceGetServiceStatistics.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceGetServiceStatistics.json index 65d2bdcebfc1..8e8b4f38d15d 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceGetServiceStatistics.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceGetServiceStatistics.json @@ -36,7 +36,8 @@ "limits": { "maxFieldsPerIndex": 1000, "maxFieldNestingDepthPerIndex": 10, - "maxComplexCollectionFieldsPerIndex": 100 + "maxComplexCollectionFieldsPerIndex": 100, + "maxComplexObjectsInCollectionsPerDocument": 3000 } } } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceGetSkillset.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceGetSkillset.json index e552e1a0b9a3..f384a69c7ece 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceGetSkillset.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceGetSkillset.json @@ -13,6 +13,7 @@ "skills": [ { "@odata.type": "#Microsoft.Skills.Text.EntityRecognitionSkill", + "name": "#1", "description": null, "context": null, "inputs": [ @@ -35,6 +36,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", + "name": "#2", "description": null, "context": null, "inputs": [ @@ -52,6 +54,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.SplitSkill", + "name": "#3", "description": null, "context": null, "inputs": [ @@ -76,6 +79,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", + "name": "#4", "description": null, "context": "/document/pages/*", "inputs": [ @@ -96,6 +100,34 @@ ], "defaultLanguageCode": null, "maxKeyPhraseCount": null + }, + { + "@odata.type": "#Microsoft.Skills.Custom.WebApiSkill", + "name": "MyCustomWebApiSkill", + "description": null, + "context": "/document", + "uri": "https://contoso.example.org", + "httpMethod": "POST", + "timeout": "PT30S", + "batchSize": 1, + "degreeOfParallelism": null, + "inputs": [ + { + "name": "text", + "source": "/document/pages/*" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "customresult", + "targetName": "result" + } + ], + "httpHeaders": {} } ] } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceListSkillsets.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceListSkillsets.json index 03705fc89a51..c0ae4f91a9ee 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceListSkillsets.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/examples/SearchServiceListSkillsets.json @@ -14,6 +14,7 @@ "skills": [ { "@odata.type": "#Microsoft.Skills.Text.EntityRecognitionSkill", + "name": "#1", "description": null, "context": null, "inputs": [ @@ -36,6 +37,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", + "name": "#2", "description": null, "context": null, "inputs": [ @@ -53,6 +55,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.SplitSkill", + "name": "#3", "description": null, "context": null, "inputs": [ @@ -77,6 +80,7 @@ }, { "@odata.type": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", + "name": "#4", "description": null, "context": "/document/pages/*", "inputs": [ @@ -97,6 +101,34 @@ ], "defaultLanguageCode": null, "maxKeyPhraseCount": null + }, + { + "@odata.type": "#Microsoft.Skills.Custom.WebApiSkill", + "name": "MyCustomWebApiSkill", + "description": null, + "context": "/document", + "uri": "https://contoso.example.org", + "httpMethod": "POST", + "timeout": "PT30S", + "batchSize": 1, + "degreeOfParallelism": null, + "inputs": [ + { + "name": "text", + "source": "/document/pages/*" + }, + { + "name": "languageCode", + "source": "/document/languageCode" + } + ], + "outputs": [ + { + "name": "customresult", + "targetName": "result" + } + ], + "httpHeaders": {} } ] } diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/searchservice.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/searchservice.json index a22827cf6516..37a5f4f87bbc 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/searchservice.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/stable/2019-05-06/searchservice.json @@ -3768,6 +3768,21 @@ "x-nullable": false, "readOnly": true, "description": "The status code indicating why the indexing operation failed. Possible values include: 400 for a malformed input document, 404 for document not found, 409 for a version conflict, 422 when the index is temporarily unavailable, or 503 for when the service is too busy." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the source at which the error originated. For example, this could refer to a particular skill in the attached skillset. This may not be always available." + }, + "details": { + "type": "string", + "readOnly": true, + "description": "Additional, verbose details about the error to assist in debugging the indexer. This may not be always available." + }, + "documentationLink": { + "type": "string", + "readOnly": true, + "description": "A link to a troubleshooting guide for these classes of errors. This may not be always available." } }, "description": "Represents an item- or document-level indexing error." @@ -3783,6 +3798,21 @@ "type": "string", "readOnly": true, "description": "The message describing the warning that occurred while processing the item." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the source at which the warning originated. For example, this could refer to a particular skill in the attached skillset. This may not be always available." + }, + "details": { + "type": "string", + "readOnly": true, + "description": "Additional, verbose details about the warning to assist in debugging the indexer. This may not be always available." + }, + "documentationLink": { + "type": "string", + "readOnly": true, + "description": "A link to a troubleshooting guide for these classes of warnings. This may not be always available." } }, "description": "Represents an item-level warning." @@ -4546,6 +4576,10 @@ "@odata.type": { "type": "string" }, + "name": { + "type": "string", + "description": "The name of the skill which uniquely identifies it within the skillset. A skill with no name defined will be given a default name of its 1-based index in the skills array, prefixed with the character '#'." + }, "description": { "type": "string", "description": "The description of the skill which describes the inputs, outputs, and usage of the skill." @@ -4588,11 +4622,21 @@ "source": { "type": "string", "description": "The source of the input." + }, + "sourceContext": { + "type": "string", + "description": "The source context used for selecting recursive inputs." + }, + "inputs": { + "type": "array", + "items": { + "$ref": "#/definitions/InputFieldMappingEntry" + }, + "description": "The recursive inputs used when creating a complex type." } }, "required": [ - "name", - "source" + "name" ], "description": "Input field mapping for a skill." }, @@ -4615,6 +4659,18 @@ }, "description": "Output field mapping for a skill." }, + "ConditionalSkill": { + "x-ms-discriminator-value": "#Microsoft.Skills.Util.ConditionalSkill", + "allOf": [ + { + "$ref": "#/definitions/Skill" + } + ], + "externalDocs": { + "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-conditional" + }, + "description": "A skill that enables scenarios that require a Boolean operation to determine the data to assign to an output." + }, "KeyPhraseExtractionSkill": { "x-ms-discriminator-value": "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", "allOf": [ @@ -4866,6 +4922,35 @@ }, "description": "A skill to split a string into chunks of text." }, + "TextTranslationSkill": { + "x-ms-discriminator-value": "#Microsoft.Skills.Text.TranslationSkill", + "allOf": [ + { + "$ref": "#/definitions/Skill" + } + ], + "properties": { + "defaultToLanguageCode": { + "$ref": "#/definitions/TextTranslationSkillLanguage", + "description": "The language code to translate documents into for documents that don't specify the to language explicitly. " + }, + "defaultFromLanguageCode": { + "$ref": "#/definitions/TextTranslationSkillLanguage", + "description": "The language code to translate documents from for documents that don't specify the from language explicitly." + }, + "suggestedFrom": { + "$ref": "#/definitions/TextTranslationSkillLanguage", + "description": "The language code to translate documents from when neither the fromLanguageCode input nor the defaultFromLanguageCode parameter are provided, and the automatic language detection is unsuccessful. Default is en." + } + }, + "required": [ + "defaultToLanguageCode" + ], + "externalDocs": { + "url": "https://docs.microsoft.com/azure/search/cognitive-search-skill-text-translation" + }, + "description": "A skill to translate text from one language to another." + }, "WebApiSkill": { "x-ms-discriminator-value": "#Microsoft.Skills.Custom.WebApiSkill", "allOf": [ @@ -4896,28 +4981,28 @@ "format": "int32", "x-nullable": true, "description": "The desired batch size which indicates number of documents." + }, + "degreeOfParallelism": { + "type": "integer", + "format": "int32", + "x-nullable": true, + "description": "If set, the number of parallel calls that can be made to the Web API." } }, "required": [ - "uri", - "httpHeaders", - "httpMethod" + "uri" ], "externalDocs": { - "url": "https://docs.microsoft.com/azure/search/cognitive-search-custom-skill-interface" + "url": "https://docs.microsoft.com/azure/search/cognitive-search-custom-skill-web-api" }, "description": "A skill that can call a Web API endpoint, allowing you to extend a skillset by having it call your custom code." }, "WebApiHttpHeaders": { - "properties": { - "headers": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "A dictionary of http request headers." - } - } + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A dictionary of http request headers." }, "SkillsetListResult": { "properties": { @@ -5157,6 +5242,79 @@ }, "description": "The language codes supported for input text by NamedEntityRecognitionSkill." }, + "TextTranslationSkillLanguage": { + "type": "string", + "enum": [ + "af", + "ar", + "bn", + "bs", + "bg", + "yue", + "ca", + "zh-Hans", + "zh-Hant", + "hr", + "cs", + "da", + "nl", + "en", + "et", + "fj", + "fil", + "fi", + "fr", + "de", + "el", + "ht", + "he", + "hi", + "mww", + "hu", + "is", + "id", + "it", + "ja", + "sw", + "tlh", + "ko", + "lv", + "lt", + "mg", + "ms", + "mt", + "nb", + "fa", + "pl", + "pt", + "otq", + "ro", + "ru", + "sm", + "sr-Cyrl", + "sr-Latn", + "sk", + "sl", + "es", + "sv", + "ty", + "ta", + "te", + "th", + "to", + "tr", + "uk", + "ur", + "vi", + "cy", + "yua" + ], + "x-ms-enum": { + "name": "TextTranslationSkillLanguage", + "modelAsString": false + }, + "description": "The language codes supported for input text by TextTranslationSkill." + }, "ImageAnalysisSkillLanguage": { "type": "string", "enum": [ @@ -5290,6 +5448,12 @@ "format": "int32", "x-nullable": true, "description": "The maximum number of fields of type Collection(Edm.ComplexType) allowed in an index." + }, + "maxComplexObjectsInCollectionsPerDocument": { + "type": "integer", + "format": "int32", + "x-nullable": true, + "description": "The maximum number of objects in complex collections allowed per document." } }, "description": "Represents various service level limits." diff --git a/specification/search/resource-manager/readme.md b/specification/search/resource-manager/readme.md index 7aef06ddbdb3..de846670c852 100644 --- a/specification/search/resource-manager/readme.md +++ b/specification/search/resource-manager/readme.md @@ -60,6 +60,7 @@ 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 @@ -81,7 +82,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.Search - output-folder: $(csharp-sdks-folder)/Search/Management/Management.Search/Generated + output-folder: $(csharp-sdks-folder)/search/Microsoft.Azure.Management.Search/src/Generated clear-output-folder: true ``` @@ -138,3 +139,29 @@ generate-interface: 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)/Microsoft.Search/stable/2015-08-19/search.json + - $(this-folder)/Microsoft.Search/stable/2015-02-28/search.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/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/applicationWhitelistings.json b/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/applicationWhitelistings.json new file mode 100644 index 000000000000..199df611c216 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/applicationWhitelistings.json @@ -0,0 +1,524 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2015-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}/providers/Microsoft.Security/applicationWhitelistings": { + "get": { + "description": "Gets a list of application control VM/server groups for the subscription.", + "operationId": "AdaptiveApplicationControls_List", + "x-ms-examples": { + "Gets a list of application control VM/server groups for the subscription": { + "$ref": "./examples/ApplicationWhitelistings/GetApplicationWhitelistingsSubscription_example.json" + } + }, + "tags": [ + "applicationWhitelistings" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/IncludePathRecommendations" + }, + { + "$ref": "#/parameters/Summary" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AppWhitelistingGroups" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/applicationWhitelistings/{groupName}": { + "get": { + "description": "Gets an application control VM/server group.", + "operationId": "AdaptiveApplicationControls_Get", + "x-ms-examples": { + "Gets a configured application control VM/server group": { + "$ref": "./examples/ApplicationWhitelistings/GetApplicationWhitelistingsGroup_example.json" + } + }, + "tags": [ + "applicationWhitelistings" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/GroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AppWhitelistingGroup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "applicationWhitelistings" + ], + "x-ms-examples": { + "Update an application control VM/server group by adding a new file": { + "$ref": "./examples/ApplicationWhitelistings/PutApplicationWhitelistings_example.json" + } + }, + "description": "Update an application control VM/server group", + "operationId": "AdaptiveApplicationControls_Put", + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/GroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/AppWhitelistingGroupDataPutDataBody" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AppWhitelistingGroup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "AppWhitelistingGroups": { + "type": "object", + "description": "Represents a list of VM/server groups and set of rules that are Recommended by Azure Security Center to be allowed", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AppWhitelistingGroup" + } + } + } + }, + "AppWhitelistingGroup": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AppWhitelistingGroupData" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "../../../common/v1/types.json#/definitions/Location" + } + ] + }, + "AppWhitelistingGroupData": { + "type": "object", + "description": "Represents a VM/server group and set of rules that are Recommended by Azure Security Center to be allowed", + "properties": { + "enforcementMode": { + "$ref": "#/definitions/EnforcementMode" + }, + "configurationStatus": { + "$ref": "#/definitions/ConfigurationStatus" + }, + "recommendationStatus": { + "$ref": "#/definitions/RecommendationStatus" + }, + "issues": { + "$ref": "#/definitions/AppWhitelistingIssuesSummaries" + }, + "sourceSystem": { + "$ref": "#/definitions/SourceSystem" + }, + "vmRecommendations": { + "$ref": "#/definitions/VmRecommendations" + }, + "pathRecommendations": { + "$ref": "#/definitions/PathRecommendations" + } + } + }, + "AppWhitelistingPutGroupData": { + "type": "object", + "description": "The altered data of the recommended VM/server group policy", + "properties": { + "enforcementMode": { + "$ref": "#/definitions/EnforcementMode" + }, + "vmRecommendations": { + "$ref": "#/definitions/VmRecommendations" + }, + "pathRecommendations": { + "$ref": "#/definitions/PathRecommendations" + } + } + }, + "ConfigurationStatus": { + "type": "string", + "description": "The configuration status of the VM/server group or machine or rule on the machine", + "enum": [ + "Configured", + "NotConfigured", + "InProgress", + "Failed", + "NoStatus" + ] + }, + "EnforcementMode": { + "type": "string", + "description": "The application control policy enforcement mode of the VM/server group", + "enum": [ + "Audit", + "Enforce" + ] + }, + "RecommendationStatus": { + "type": "string", + "description": "The recommendation status of the VM/server group or VM/server", + "enum": [ + "Recommended", + "NotRecommended", + "NotAvailable", + "NoStatus" + ] + }, + "RecommendationAction": { + "type": "string", + "description": "The recommendation action of the VM/server or rule", + "enum": [ + "Recommended", + "Add", + "Remove" + ] + }, + "RecommendationType": { + "type": "string", + "description": "The type of the rule to be allowed", + "enum": [ + "File", + "FileHash", + "PublisherSignature", + "ProductSignature", + "BinarySignature", + "VersionAndAboveSignature" + ] + }, + "AppWhitelistingIssue": { + "type": "string", + "description": "An alert that VMs/servers within a group can have", + "enum": [ + "ViolationsAudited", + "ViolationsBlocked", + "MsiAndScriptViolationsAudited", + "MsiAndScriptViolationsBlocked", + "ExecutableViolationsAudited", + "RulesViolatedManually" + ] + }, + "FileType": { + "type": "string", + "description": "The type of the file (for Linux files - Executable is used)", + "enum": [ + "Exe", + "Dll", + "Msi", + "Script", + "Executable", + "Unknown" + ] + }, + "SourceSystem": { + "type": "string", + "description": "The source type of the VM/server group", + "enum": [ + "Azure_AppLocker", + "Azure_AuditD", + "NonAzure_AppLocker", + "NonAzure_AuditD", + "None" + ] + }, + "AppWhitelistingIssueSummary": { + "type": "object", + "description": "Represents a summary of the alerts of the VM/server group", + "properties": { + "issue": { + "$ref": "#/definitions/AppWhitelistingIssue" + }, + "numberOfVms": { + "type": "number", + "description": "The number of machines in the VM/server group that have this alert" + } + } + }, + "AppWhitelistingIssuesSummaries": { + "type": "array", + "items": { + "$ref": "#/definitions/AppWhitelistingIssueSummary" + } + }, + "VmRecommendations": { + "type": "array", + "items": { + "$ref": "#/definitions/VmRecommendation" + } + }, + "VmRecommendation": { + "type": "object", + "description": "Represents a machine that is part of a VM/server group", + "properties": { + "configurationStatus": { + "$ref": "#/definitions/ConfigurationStatus" + }, + "recommendationAction": { + "$ref": "#/definitions/RecommendationAction" + }, + "resourceId": { + "$ref": "#/definitions/VmResourceId" + } + } + }, + "PublisherInfo": { + "type": "object", + "description": "Represents the publisher information of a process/rule", + "properties": { + "publisherName": { + "type": "string", + "description": "The Subject field of the x.509 certificate used to sign the code, using the following fields - O = Organization, L = Locality, S = State or Province, and C = Country", + "example": "O=GOOGLE INC, L=MOUNTAIN VIEW, S=CALIFORNIA, C=US" + }, + "productName": { + "type": "string", + "description": "The product name taken from the file's version resource", + "example": "GOOGLE CHROME" + }, + "binaryName": { + "type": "string", + "description": "The \"OriginalName\" field taken from the file's version resource", + "example": "CHROME.EXE" + }, + "version": { + "type": "string", + "description": "The binary file version taken from the file's version resource", + "example": "66.0.3359.139" + } + } + }, + "UserRecommendation": { + "type": "object", + "description": "Represents a user that is recommended to be allowed for a certain rule", + "properties": { + "username": { + "type": "string", + "description": "Represents a user that is recommended to be allowed for a certain rule", + "example": "LOCAL SYSTEM" + }, + "recommendationAction": { + "$ref": "#/definitions/RecommendationAction" + } + } + }, + "PathRecommendations": { + "type": "array", + "items": { + "$ref": "#/definitions/PathRecommendation" + } + }, + "PathRecommendation": { + "type": "object", + "description": "Represents a path that is recommended to be allowed and its properties", + "properties": { + "path": { + "type": "string", + "description": "The full path to whitelist", + "example": "C:\\Windows\\System32\\calc.exe" + }, + "action": { + "$ref": "#/definitions/RecommendationAction" + }, + "type": { + "$ref": "#/definitions/RecommendationType" + }, + "publisherInfo": { + "$ref": "#/definitions/PublisherInfo" + }, + "common": { + "type": "boolean", + "description": "Whether the path is commonly run on the machine" + }, + "userSids": { + "type": "array", + "items": { + "type": "string", + "description": "A security identifier", + "example": "S-1-5-18" + } + }, + "usernames": { + "type": "array", + "items": { + "$ref": "#/definitions/UserRecommendation" + } + }, + "fileType": { + "$ref": "#/definitions/FileType" + }, + "configurationStatus": { + "$ref": "#/definitions/ConfigurationStatus" + } + } + }, + "GroupResourceId": { + "type": "string", + "description": "The azure resource id of the application control VM/server group", + "example": "/subscriptions/12345678-1234-1234-1234-123456789123/providers/Microsoft.Security/applicationWhitelistings/GROUP1" + }, + "VmResourceId": { + "type": "string", + "description": "The full azure resource id of the machine", + "example": "/subscriptions/12345678-1234-1234-1234-123456789123/resourcegroups/group/providers/microsoft.compute/virtualmachines/vm" + }, + "AppWhitelistingResourceType": { + "type": "string", + "description": "The resource type of the application control resources", + "example": "Microsoft.Security/applicationWhitelistings" + } + }, + "parameters": { + "GroupName": { + "name": "groupName", + "in": "path", + "description": "Name of an application control VM/server group", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "IncludePathRecommendations": { + "name": "includePathRecommendations", + "in": "query", + "description": "Include the policy rules", + "type": "boolean", + "required": false, + "enum": [ + false, + true + ], + "x-ms-parameter-location": "method" + }, + "Summary": { + "name": "summary", + "in": "query", + "description": "Return output in a summarized form", + "type": "boolean", + "required": false, + "enum": [ + false, + true + ], + "x-ms-parameter-location": "method" + }, + "AppWhitelistingGroupDataPutDataBody": { + "in": "body", + "name": "body", + "description": "The updated VM/server group data", + "required": true, + "schema": { + "$ref": "#/definitions/AppWhitelistingPutGroupData" + }, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/ApplicationWhitelistings/GetApplicationWhitelistingsGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/ApplicationWhitelistings/GetApplicationWhitelistingsGroup_example.json new file mode 100644 index 000000000000..39af7849aa4e --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/ApplicationWhitelistings/GetApplicationWhitelistingsGroup_example.json @@ -0,0 +1,125 @@ +{ + "parameters": { + "api-version": "2015-06-01-preview", + "subscriptionId": "3eeab341-f466-499c-a8be-85427e154baf", + "ascLocation": "centralus", + "groupName": "ERELGROUP1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/ERELGROUP1", + "name": "ERELGROUP1", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "centralus", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16090", + "recommendationAction": "Recommended" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/matanvs/providers/microsoft.compute/virtualmachines/matanvs19", + "recommendationAction": "Recommended" + } + ], + "pathRecommendations": [ + { + "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", + "type": "ProductSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "MICROSOFT® COREXT", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\PACKAGES_201973_7415\\COLLECTGUESTLOGS.EXE", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "C:\\directory\\file.exe", + "type": "File", + "common": true, + "action": "Add", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + } + ], + "configurationStatus": "Configured", + "issues": [], + "sourceSystem": "Azure_AppLocker" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/ApplicationWhitelistings/GetApplicationWhitelistingsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/ApplicationWhitelistings/GetApplicationWhitelistingsSubscription_example.json new file mode 100644 index 000000000000..aafa6fbedeb7 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/ApplicationWhitelistings/GetApplicationWhitelistingsSubscription_example.json @@ -0,0 +1,1163 @@ +{ + "parameters": { + "api-version": "2015-06-01-preview", + "subscriptionId": "3eeab341-f466-499c-a8be-85427e154baf", + "includePathRecommendations": true, + "summary": false + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/AMIT-VA", + "name": "AMIT-VA", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "centralus", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/erelh-dsc/providers/microsoft.compute/virtualmachines/erelh-14011", + "recommendationAction": "Recommended" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/amit-va/providers/microsoft.compute/virtualmachines/ream-test", + "recommendationAction": "Recommended" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/v-arrikl-scheduledapps/providers/microsoft.compute/virtualmachines/v-arrikl-14060", + "recommendationAction": "Recommended" + } + ], + "pathRecommendations": [ + { + "path": "C:\\Windows\\SoftwareDistribution\\Download\\Install\\Windows-KB890830-x64-V5.53-delta.exe", + "type": "File", + "common": true, + "action": "Remove", + "usernames": [ + { + "username": "LOCAL SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-5-18" + ], + "fileType": "Exe", + "configurationStatus": "NoStatus" + }, + { + "path": "C:\\WindowsAzure\\GuestAgent_2.7.1198.822\\CollectGuestLogs.exe", + "type": "File", + "common": true, + "action": "Remove", + "usernames": [ + { + "username": "LOCAL SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-5-18" + ], + "fileType": "Exe", + "configurationStatus": "NoStatus" + }, + { + "path": "C:\\Windows\\System32\\wbem\\WmiPrvSE.exe", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-5-18", + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + } + ], + "configurationStatus": "Configured", + "issues": [], + "sourceSystem": "Azure_AppLocker" + } + }, + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/ERELGROUP1", + "name": "ERELGROUP1", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "centralus", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16090", + "recommendationAction": "Recommended" + } + ], + "pathRecommendations": [ + { + "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + } + ], + "configurationStatus": "Configured", + "issues": [], + "sourceSystem": "Azure_AppLocker" + } + }, + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/GROUP1", + "name": "GROUP1", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "centralus", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/talk-va/providers/microsoft.compute/virtualmachines/tal-win-vm", + "recommendationAction": "Recommended" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/talk-va/providers/microsoft.compute/virtualmachines/tal-win-vm-jit", + "recommendationAction": "Recommended" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/myresourcegroup/providers/microsoft.compute/virtualmachines/myvmweb", + "recommendationAction": "Recommended" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/v-arrikl-scheduledapps/providers/microsoft.compute/virtualmachines/v-arrikl-14061", + "recommendationAction": "Recommended" + } + ], + "pathRecommendations": [ + { + "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", + "type": "ProductSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "MICROSOFT® COREXT", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%PROGRAMFILES%\\RAPID7\\INSIGHT AGENT\\COMPONENTS\\INSIGHT_AGENT\\2.6.7.9\\GET_PROXY.EXE", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=RAPID7 LLC, L=BOSTON, S=MASSACHUSETTS, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%PROGRAMFILES%\\GOOGLE\\CHROME\\APPLICATION\\CHROME.EXE", + "type": "ProductSignature", + "publisherInfo": { + "publisherName": "O=GOOGLE LLC, L=MOUNTAIN VIEW, S=CA, C=US", + "productName": "GOOGLE CHROME", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "O=GOOGLE INC, L=MOUNTAIN VIEW, S=CALIFORNIA, C=US\\GOOGLE UPDATE\\*\\0.0.0.0", + "type": "ProductSignature", + "publisherInfo": { + "publisherName": "O=GOOGLE INC, L=MOUNTAIN VIEW, S=CALIFORNIA, C=US", + "productName": "GOOGLE UPDATE", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + } + ], + "configurationStatus": "Configured", + "issues": [], + "sourceSystem": "Azure_AppLocker" + } + }, + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/GROUP2-RE", + "name": "GROUP2-RE", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "centralus", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/matanjittest/providers/microsoft.compute/virtualmachines/matansourcejit", + "recommendationAction": "Recommended" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/erelh-dsc/providers/microsoft.compute/virtualmachines/erelh-14010", + "recommendationAction": "Recommended" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16091", + "recommendationAction": "Recommended" + } + ], + "pathRecommendations": [ + { + "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "C:\\bla.exe", + "type": "File", + "common": true, + "action": "Add", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + } + ], + "configurationStatus": "Configured", + "issues": [], + "sourceSystem": "Azure_AppLocker" + } + }, + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/providers/Microsoft.Security/locations/westeurope/applicationWhitelistings/BENJITGROUP13", + "name": "BENJITGROUP13", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "westeurope", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/bengr-jit-test/providers/microsoft.compute/virtualmachines/bengr-jit-test3", + "recommendationAction": "Recommended" + } + ], + "pathRecommendations": [ + { + "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + } + ], + "configurationStatus": "Configured", + "issues": [], + "sourceSystem": "Azure_AppLocker" + } + }, + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/providers/Microsoft.Security/locations/westeurope/applicationWhitelistings/GROUP1", + "name": "GROUP1", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "westeurope", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/nic-no-pip/providers/microsoft.compute/virtualmachines/nic-no-pip-vm", + "recommendationAction": "Recommended" + } + ], + "pathRecommendations": [ + { + "path": "/sbin/init", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/sbin/upstart-udev-bridge", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/lib/systemd/systemd-udevd", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/sbin/upstart-socket-bridge", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/sbin/dhclient", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/bin/python3.4", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/sbin/upstart-file-bridge", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/bin/dbus-daemon", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "messagebus", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/lib/systemd/systemd-logind", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/sbin/getty", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/atd", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/cron", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/acpid", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/sshd", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/lib/linux-lts-xenial-tools-4.4.0-103/hv_vss_daemon", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/lib/linux-lts-xenial-tools-4.4.0-103/hv_kvp_daemon", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/nscd", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "unscd", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/ntpd", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "ntp", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/microsoft/auoms/bin/auomscollect", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/omi/bin/omiserver", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/omi/bin/omiengine", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "omi", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/omi/bin/omiagent", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/rsyslogd", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "syslog", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/bin/python2.7", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + }, + { + "username": "omsagent", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/microsoft/omsagent/ruby/bin/ruby", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "omsagent", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/microsoft/auoms/bin/auoms", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/local/qualys/cloud-agent/bin/qualys-cloud-agent", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/bin/dash", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "omsagent", + "recommendationAction": "Recommended" + }, + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/bin/sleep", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "omsagent", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/dsc/bin/dsc_host", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "omsagent", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/bin/sudo", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/bin/bash", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/bin/apt-get", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/lib/apt/methods/http", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/lib/apt/methods/gpgv", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/lib/apt/methods/copy", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/bin/pgrep", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "omsagent", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/microsoft/omsconfig/bin/omsconsistencyinvoker", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "omsagent", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + } + ], + "configurationStatus": "Configured", + "issues": [ + { + "issue": "ExecutableViolationsAudited", + "numberOfVms": 1 + } + ], + "sourceSystem": "Azure_AuditD" + } + }, + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/providers/Microsoft.Security/locations/westeurope/applicationWhitelistings/GROUP2", + "name": "GROUP2", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "westeurope", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/bengr-jit-test/providers/microsoft.compute/virtualmachines/bengr-jit-test1", + "recommendationAction": "Recommended" + } + ], + "pathRecommendations": [ + { + "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + } + ], + "configurationStatus": "Configured", + "issues": [], + "sourceSystem": "Azure_AppLocker" + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/ApplicationWhitelistings/PutApplicationWhitelistings_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/ApplicationWhitelistings/PutApplicationWhitelistings_example.json new file mode 100644 index 000000000000..cc31d592b394 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/ApplicationWhitelistings/PutApplicationWhitelistings_example.json @@ -0,0 +1,220 @@ +{ + "parameters": { + "api-version": "2015-06-01-preview", + "subscriptionId": "3eeab341-f466-499c-a8be-85427e154baf", + "groupName": "ERELGROUP1", + "ascLocation": "centralus", + "body": { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/ERELGROUP1", + "type": "Microsoft.Security/applicationWhitelistings", + "name": "ERELGROUP1", + "properties": { + "enforcementMode": "Audit", + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16090", + "recommendationAction": "Recommended" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/matanvs/providers/microsoft.compute/virtualmachines/matanvs19", + "recommendationAction": "Recommended" + } + ], + "pathRecommendations": [ + { + "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", + "type": "ProductSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "MICROSOFT® COREXT", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\PACKAGES_201973_7415\\COLLECTGUESTLOGS.EXE", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "C:\\directory\\file.exe", + "action": "Add", + "type": "File", + "common": true + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/ERELGROUP1", + "name": "ERELGROUP1", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "centralus", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "vmRecommendations": [ + { + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16090", + "recommendationAction": "Recommended" + }, + { + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourcegroups/matanvs/providers/microsoft.compute/virtualmachines/matanvs19", + "recommendationAction": "Recommended" + } + ], + "pathRecommendations": [ + { + "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", + "type": "ProductSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "MICROSOFT® COREXT", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\PACKAGES_201973_7415\\COLLECTGUESTLOGS.EXE", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "C:\\directory\\file.exe", + "type": "File", + "common": true, + "action": "Add", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "NotConfigured" + } + ], + "configurationStatus": "InProgress", + "issues": [], + "sourceSystem": "Azure_AppLocker" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/jitNetworkAccessPolicies.json b/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/jitNetworkAccessPolicies.json index 914dafb9208a..6d6761379c4a 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/jitNetworkAccessPolicies.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/jitNetworkAccessPolicies.json @@ -474,6 +474,10 @@ "items": { "$ref": "#/definitions/JitNetworkAccessPortRule" } + }, + "publicIpAddress": { + "type": "string", + "description": "Public IP address of the Azure Firewall that is linked to this policy, if applicable" } } }, @@ -641,6 +645,10 @@ } ] } + }, + "mappedPort": { + "type": "integer", + "description": "The port which is mapped to this port's `number` in the Azure Firewall, if applicable" } }, "required": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/CreateIoTSecuritySolution_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/CreateIoTSecuritySolution_example.json index 9e7bbd386238..357a11a33ef3 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/CreateIoTSecuritySolution_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/CreateIoTSecuritySolution_example.json @@ -21,7 +21,17 @@ "querySubscriptions": [ "075423e9-7d33-4166-8bdf-3920b04e3735" ] - } + }, + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_OpenPorts", + "status": "Disabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "status": "Disabled" + } + ] } } }, @@ -51,6 +61,88 @@ "autoDiscoveredResources": [ "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735", "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" + }, + { + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", + "status": "TurnedOn" + }, + { + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" + }, + { + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" + }, + { + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" + } ] } } @@ -83,12 +175,84 @@ ], "recommendationsConfiguration": [ { - "recommendationType": "OpenPortsOnDevice", - "status": "TurnedOff" + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" + }, + { + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", + "status": "TurnedOn" + }, + { + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" + }, + { + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" + }, + { + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" }, { - "recommendationType": "IdenticalAuthenticationCredentials", - "status": "TurnedOff" + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" } ] } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolution_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolution_example.json index 18a1fb2617fd..48af5cd8d92d 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolution_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolution_example.json @@ -34,64 +34,84 @@ ], "recommendationsConfiguration": [ { - "recommendationType": "OpenPortsOnDevice", - "description": "Open Ports on device", - "status": "TurnedOff" + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" }, { - "recommendationType": "PermissiveFirewallPolicy", - "description": "Permissive firewall policy found in one of the chains", + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", "status": "TurnedOn" }, { - "recommendationType": "PermissiveFirewallRuleInput", - "description": "Permissive firewall rule in the input chain was found", - "status": "TurnedOn" + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" }, { - "recommendationType": "PermissiveFirewallRuleOut", - "description": "Permissive firewall rule in the output chain was found", - "status": "TurnedOn" + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" }, { - "recommendationType": "OperationSystemNotValid", - "description": "Operation system baseline validation has failed", - "status": "TurnedOn" + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" }, { - "recommendationType": "UnutilizedMessagesFromAgent", - "description": "Agent sends unutilized messages", - "status": "TurnedOn" + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" }, { - "recommendationType": "SecurityTwinConfigurationNotOptimal", - "description": "Security twin configuration not optimal", - "status": "TurnedOn" + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" }, { - "recommendationType": "SecurityTwinConfigurationConflict", - "description": "Security twin configuration conflict", - "status": "TurnedOn" + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" }, { - "recommendationType": "IdenticalAuthenticationCredentials", - "description": "Identical authentication credentials used by multiple devices", - "status": "TurnedOff" + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" }, { - "recommendationType": "DenyDefaultIpPolicy", - "description": "Default IP filter policy should be deny", - "status": "TurnedOn" + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" }, { - "recommendationType": "TooLargeIPRange", - "description": "IP filter rule includes large IP range", - "status": "TurnedOn" + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" }, { - "recommendationType": "EnableDiagnosticsLog", - "description": "Enable diagnostics logs in IoT Hub", - "status": "TurnedOn" + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" } ] } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHubAndRg_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHubAndRg_example.json index be8f9ce070d4..f32e96b41c16 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHubAndRg_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHubAndRg_example.json @@ -38,64 +38,84 @@ ], "recommendationsConfiguration": [ { - "recommendationType": "OpenPortsOnDevice", - "description": "Open Ports on device", - "status": "TurnedOff" + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" }, { - "recommendationType": "PermissiveFirewallPolicy", - "description": "Permissive firewall policy found in one of the chains", + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", "status": "TurnedOn" }, { - "recommendationType": "PermissiveFirewallRuleInput", - "description": "Permissive firewall rule in the input chain was found", - "status": "TurnedOn" + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" }, { - "recommendationType": "PermissiveFirewallRuleOut", - "description": "Permissive firewall rule in the output chain was found", - "status": "TurnedOn" + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" }, { - "recommendationType": "OperationSystemNotValid", - "description": "Operation system baseline validation has failed", - "status": "TurnedOn" + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" }, { - "recommendationType": "UnutilizedMessagesFromAgent", - "description": "Agent sends unutilized messages", - "status": "TurnedOn" + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" }, { - "recommendationType": "SecurityTwinConfigurationNotOptimal", - "description": "Security twin configuration not optimal", - "status": "TurnedOn" + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" }, { - "recommendationType": "SecurityTwinConfigurationConflict", - "description": "Security twin configuration conflict", - "status": "TurnedOn" + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" }, { - "recommendationType": "IdenticalAuthenticationCredentials", - "description": "Identical authentication credentials used by multiple devices", - "status": "TurnedOff" + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" }, { - "recommendationType": "DenyDefaultIpPolicy", - "description": "Default IP filter policy should be deny", - "status": "TurnedOn" + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" }, { - "recommendationType": "TooLargeIPRange", - "description": "IP filter rule includes large IP range", - "status": "TurnedOn" + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" }, { - "recommendationType": "EnableDiagnosticsLog", - "description": "Enable diagnostics logs in IoT Hub", - "status": "TurnedOn" + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" } ] } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHub_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHub_example.json index e40e96d6e93d..c7608d9368b9 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHub_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHub_example.json @@ -37,64 +37,84 @@ ], "recommendationsConfiguration": [ { - "recommendationType": "OpenPortsOnDevice", - "description": "Open Ports on device", - "status": "TurnedOff" + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" }, { - "recommendationType": "PermissiveFirewallPolicy", - "description": "Permissive firewall policy found in one of the chains", + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", "status": "TurnedOn" }, { - "recommendationType": "PermissiveFirewallRuleInput", - "description": "Permissive firewall rule in the input chain was found", - "status": "TurnedOn" + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" }, { - "recommendationType": "PermissiveFirewallRuleOut", - "description": "Permissive firewall rule in the output chain was found", - "status": "TurnedOn" + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" }, { - "recommendationType": "OperationSystemNotValid", - "description": "Operation system baseline validation has failed", - "status": "TurnedOn" + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" }, { - "recommendationType": "UnutilizedMessagesFromAgent", - "description": "Agent sends unutilized messages", - "status": "TurnedOn" + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" }, { - "recommendationType": "SecurityTwinConfigurationNotOptimal", - "description": "Security twin configuration not optimal", - "status": "TurnedOn" + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" }, { - "recommendationType": "SecurityTwinConfigurationConflict", - "description": "Security twin configuration conflict", - "status": "TurnedOn" + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" }, { - "recommendationType": "IdenticalAuthenticationCredentials", - "description": "Identical authentication credentials used by multiple devices", - "status": "TurnedOff" + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" }, { - "recommendationType": "DenyDefaultIpPolicy", - "description": "Default IP filter policy should be deny", - "status": "TurnedOn" + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" }, { - "recommendationType": "TooLargeIPRange", - "description": "IP filter rule includes large IP range", - "status": "TurnedOn" + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" }, { - "recommendationType": "EnableDiagnosticsLog", - "description": "Enable diagnostics logs in IoT Hub", - "status": "TurnedOn" + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" } ] } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByRg_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByRg_example.json index 5aefb6f7f4a9..187cd4faf70b 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByRg_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByRg_example.json @@ -35,64 +35,84 @@ ], "recommendationsConfiguration": [ { - "recommendationType": "OpenPortsOnDevice", - "description": "Open Ports on device", - "status": "TurnedOff" + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" }, { - "recommendationType": "PermissiveFirewallPolicy", - "description": "Permissive firewall policy found in one of the chains", + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", "status": "TurnedOn" }, { - "recommendationType": "PermissiveFirewallRuleInput", - "description": "Permissive firewall rule in the input chain was found", - "status": "TurnedOn" + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" }, { - "recommendationType": "PermissiveFirewallRuleOut", - "description": "Permissive firewall rule in the output chain was found", - "status": "TurnedOn" + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" }, { - "recommendationType": "OperationSystemNotValid", - "description": "Operation system baseline validation has failed", - "status": "TurnedOn" + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" }, { - "recommendationType": "UnutilizedMessagesFromAgent", - "description": "Agent sends unutilized messages", - "status": "TurnedOn" + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" }, { - "recommendationType": "SecurityTwinConfigurationNotOptimal", - "description": "Security twin configuration not optimal", - "status": "TurnedOn" + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" }, { - "recommendationType": "SecurityTwinConfigurationConflict", - "description": "Security twin configuration conflict", - "status": "TurnedOn" + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" }, { - "recommendationType": "IdenticalAuthenticationCredentials", - "description": "Identical authentication credentials used by multiple devices", - "status": "TurnedOff" + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" }, { - "recommendationType": "DenyDefaultIpPolicy", - "description": "Default IP filter policy should be deny", - "status": "TurnedOn" + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" }, { - "recommendationType": "TooLargeIPRange", - "description": "IP filter rule includes large IP range", - "status": "TurnedOn" + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" }, { - "recommendationType": "EnableDiagnosticsLog", - "description": "Enable diagnostics logs in IoT Hub", - "status": "TurnedOn" + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" } ] } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsList_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsList_example.json index a6ec0b7e8086..8fffd2001380 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsList_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsList_example.json @@ -31,6 +31,88 @@ "autoDiscoveredResources": [ "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735", "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" + }, + { + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", + "status": "TurnedOn" + }, + { + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" + }, + { + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" + }, + { + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" + } ] } }, @@ -63,64 +145,84 @@ ], "recommendationsConfiguration": [ { - "recommendationType": "OpenPortsOnDevice", - "description": "Open Ports on device", - "status": "TurnedOff" + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" }, { - "recommendationType": "PermissiveFirewallPolicy", - "description": "Permissive firewall policy found in one of the chains", + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", "status": "TurnedOn" }, { - "recommendationType": "PermissiveFirewallRuleInput", - "description": "Permissive firewall rule in the input chain was found", - "status": "TurnedOn" + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" }, { - "recommendationType": "PermissiveFirewallRuleOut", - "description": "Permissive firewall rule in the output chain was found", - "status": "TurnedOn" + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" }, { - "recommendationType": "OperationSystemNotValid", - "description": "Operation system baseline validation has failed", - "status": "TurnedOn" + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" }, { - "recommendationType": "UnutilizedMessagesFromAgent", - "description": "Agent sends unutilized messages", - "status": "TurnedOn" + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" }, { - "recommendationType": "SecurityTwinConfigurationNotOptimal", - "description": "Security twin configuration not optimal", - "status": "TurnedOn" + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" }, { - "recommendationType": "SecurityTwinConfigurationConflict", - "description": "Security twin configuration conflict", - "status": "TurnedOn" + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" }, { - "recommendationType": "IdenticalAuthenticationCredentials", - "description": "Identical authentication credentials used by multiple devices", - "status": "TurnedOff" + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" }, { - "recommendationType": "DenyDefaultIpPolicy", - "description": "Default IP filter policy should be deny", - "status": "TurnedOn" + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" }, { - "recommendationType": "TooLargeIPRange", - "description": "IP filter rule includes large IP range", - "status": "TurnedOn" + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" }, { - "recommendationType": "EnableDiagnosticsLog", - "description": "Enable diagnostics logs in IoT Hub", - "status": "TurnedOn" + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" } ] } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/UpdateIoTSecuritySolution_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/UpdateIoTSecuritySolution_example.json index a016095ce467..2ca7a0e0c82c 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/UpdateIoTSecuritySolution_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutions/UpdateIoTSecuritySolution_example.json @@ -8,10 +8,22 @@ "tags": { "foo": "bar" }, - "userDefinedResources": { - "query": "where type != \"microsoft.devices/iothubs\" | where name contains \"v2\"", - "querySubscriptions": [ - "075423e9-7d33-4166-8bdf-3920b04e3735" + "properties": { + "userDefinedResources": { + "query": "where type != \"microsoft.devices/iothubs\" | where name contains \"v2\"", + "querySubscriptions": [ + "075423e9-7d33-4166-8bdf-3920b04e3735" + ] + }, + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_OpenPorts", + "status": "Disabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "status": "Disabled" + } ] } } @@ -49,12 +61,84 @@ ], "recommendationsConfiguration": [ { - "recommendationType": "OpenPortsOnDevice", - "status": "TurnedOff" + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" + }, + { + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", + "status": "TurnedOn" + }, + { + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" + }, + { + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" + }, + { + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" }, { - "recommendationType": "IdenticalAuthenticationCredentials", - "status": "TurnedOff" + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" } ] } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlertList_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlertList_example.json new file mode 100644 index 000000000000..5111ba0757cf --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlertList_example.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2017-08-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "MyGroup", + "solutionName": "default" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_Bruteforce_Fail/2019-02-02", + "name": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_Bruteforce_Fail/2019-02-02", + "type": "Microsoft.Security/IoTSecurityAggregatedAlert", + "properties": { + "alertType": "IoT_Bruteforce_Fail", + "alertDisplayName": "Failed Bruteforce", + "aggregatedDateUtc": "2019-02-02", + "vendorName": "Microsoft", + "reportedSeverity": "Low", + "remediationSteps": "", + "description": "Multiple unsuccsseful login attempts identified. A Bruteforce attack on the device failed.", + "count": 50, + "effectedResourceType": "IoT Device", + "systemSource": "Devices", + "actionTaken": "Detected", + "logAnalyticsQuery": "SecurityAlert | where tolower(ResourceId) == tolower('/subscriptions/b77ec8a9-04ed-48d2-a87a-e5887b978ba6/resourceGroups/IoT-Solution-DemoEnv/providers/Microsoft.Devices/IotHubs/rtogm-hub') and tolower(AlertName) == tolower('Custom Alert - number of device to cloud messages in MQTT protocol is not in the allowed range') | extend DeviceId=parse_json(ExtendedProperties)['DeviceId'] | project DeviceId, TimeGenerated, DisplayName, AlertSeverity, Description, RemediationSteps, ExtendedProperties" + } + }, + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_Bruteforce_Success/2019-02-02", + "name": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_Bruteforce_Success/2019-02-02", + "type": "Microsoft.Security/IoTSecurityAggregatedAlert", + "properties": { + "alertType": "IoT_Bruteforce_Success", + "alertDisplayName": "Successful Bruteforce", + "aggregatedDateUtc": "2019-02-02", + "vendorName": "Microsoft", + "reportedSeverity": "Low", + "remediationSteps": "", + "description": "Multiple unsuccsseful login attempts identified followed by a succssful login. A Bruteforce attack on the device was Successfule", + "count": 600000, + "effectedResourceType": "IoT Device", + "systemSource": "Devices", + "actionTaken": "Detected", + "logAnalyticsQuery": "SecurityAlert | where tolower(ResourceId) == tolower('/subscriptions/b77ec8a9-04ed-48d2-a87a-e5887b978ba6/resourceGroups/IoT-Solution-DemoEnv/providers/Microsoft.Devices/IotHubs/rtogm-hub') and tolower(AlertName) == tolower('Custom Alert - number of device to cloud messages in MQTT protocol is not in the allowed range') | extend DeviceId=parse_json(ExtendedProperties)['DeviceId'] | project DeviceId, TimeGenerated, DisplayName, AlertSeverity, Description, RemediationSteps, ExtendedProperties" + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlert_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlert_example.json new file mode 100644 index 000000000000..c196c639083a --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlert_example.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2017-08-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "MyGroup", + "solutionName": "default", + "aggregatedAlertName": "IoT_Bruteforce_Fail/2019-02-02" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_Bruteforce_Fail/2019-02-02", + "name": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_Bruteforce_Fail/2019-02-02", + "type": "Microsoft.Security/IoTSecurityAggregatedAlert", + "properties": { + "alertType": "IoT_Bruteforce_Fail", + "alertDisplayName": "Failed Bruteforce", + "aggregatedDateUtc": "2019-02-02", + "vendorName": "Microsoft", + "reportedSeverity": "Low", + "remediationSteps": "", + "description": "Multiple unsuccsseful login attempts identified. A Bruteforce attack on the device failed.", + "count": 50, + "effectedResourceType": "IoT Device", + "systemSource": "Devices", + "actionTaken": "Detected", + "logAnalyticsQuery": "SecurityAlert | where tolower(ResourceId) == tolower('/subscriptions/b77ec8a9-04ed-48d2-a87a-e5887b978ba6/resourceGroups/IoT-Solution-DemoEnv/providers/Microsoft.Devices/IotHubs/rtogm-hub') and tolower(AlertName) == tolower('Custom Alert - number of device to cloud messages in MQTT protocol is not in the allowed range') | extend DeviceId=parse_json(ExtendedProperties)['DeviceId'] | project DeviceId, TimeGenerated, DisplayName, AlertSeverity, Description, RemediationSteps, ExtendedProperties" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalyticsList_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalyticsList_example.json new file mode 100644 index 000000000000..85266644ae9c --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalyticsList_example.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "api-version": "2017-08-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "MyGroup", + "solutionName": "default" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default", + "name": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default", + "type": "Microsoft.Security/IoTSecuritySolutionAnalyticsModelList", + "properties": { + "metrics": { + "high": 5, + "medium": 200, + "low": 102 + }, + "unhealthyDeviceCount": 1200, + "devicesMetrics": [ + { + "date": "2019-02-01T00:00:00Z", + "devicesMetrics": { + "high": 3, + "medium": 15, + "low": 70 + } + }, + { + "date": "2019-02-02T00:00:00Z", + "devicesMetrics": { + "high": 3, + "medium": 45, + "low": 65 + } + } + ], + "topAlertedDevices": [ + { + "deviceId": "id1", + "alertsCount": 200 + }, + { + "deviceId": "id2", + "alertsCount": 170 + }, + { + "deviceId": "id3", + "alertsCount": 150 + } + ], + "mostPrevalentDeviceAlerts": [ + { + "alertDisplayName": "Custom Alert - number of device to cloud messages in AMQP protocol is not in the allowed range", + "reportedSeverity": "Low", + "devicesCount": 200 + }, + { + "alertDisplayName": "Custom Alert - execution of a process that is not allowed", + "reportedSeverity": "Medium", + "devicesCount": 170 + }, + { + "alertDisplayName": "Successful Bruteforce", + "reportedSeverity": "Low", + "devicesCount": 150 + } + ], + "mostPrevalentDeviceRecommendations": [ + { + "recommendationDisplayName": "Install the Azure Security of Things Agent", + "reportedSeverity": "Low", + "devicesCount": 200 + }, + { + "recommendationDisplayName": "High level permissions configured in Edge model twin for Edge module", + "reportedSeverity": "Low", + "devicesCount": 170 + }, + { + "recommendationDisplayName": "Same Authentication Credentials used by multiple devices", + "reportedSeverity": "Medium", + "devicesCount": 150 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalytics_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalytics_example.json new file mode 100644 index 000000000000..b411e3de461c --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalytics_example.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "api-version": "2017-08-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "MyGroup", + "solutionName": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default", + "name": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default", + "type": "Microsoft.Security/IoTSecuritySolutionAnalyticsModel", + "properties": { + "metrics": { + "high": 5, + "medium": 200, + "low": 102 + }, + "unhealthyDeviceCount": 1200, + "devicesMetrics": [ + { + "date": "2019-02-01T00:00:00Z", + "devicesMetrics": { + "high": 3, + "medium": 15, + "low": 70 + } + }, + { + "date": "2019-02-02T00:00:00Z", + "devicesMetrics": { + "high": 3, + "medium": 45, + "low": 65 + } + } + ], + "topAlertedDevices": [ + { + "deviceId": "id1", + "alertsCount": 200 + }, + { + "deviceId": "id2", + "alertsCount": 170 + }, + { + "deviceId": "id3", + "alertsCount": 150 + } + ], + "mostPrevalentDeviceAlerts": [ + { + "alertDisplayName": "Custom Alert - number of device to cloud messages in AMQP protocol is not in the allowed range", + "reportedSeverity": "Low", + "alertsCount": 200 + }, + { + "alertDisplayName": "Custom Alert - execution of a process that is not allowed", + "reportedSeverity": "Medium", + "alertsCount": 170 + }, + { + "alertDisplayName": "Successful Bruteforce", + "reportedSeverity": "Low", + "alertsCount": 150 + } + ], + "mostPrevalentDeviceRecommendations": [ + { + "recommendationDisplayName": "Install the Azure Security of Things Agent", + "reportedSeverity": "Low", + "devicesCount": 200 + }, + { + "recommendationDisplayName": "High level permissions configured in Edge model twin for Edge module", + "reportedSeverity": "Low", + "devicesCount": 170 + }, + { + "recommendationDisplayName": "Same Authentication Credentials used by multiple devices", + "reportedSeverity": "Medium", + "devicesCount": 150 + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendationList_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendationList_example.json new file mode 100644 index 000000000000..15f594dfd3d5 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendationList_example.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2017-08-01-preview", + "subscriptionId": "075423e9-7d33-4166-8bdf-3920b04e3735", + "resourceGroupName": "IoTEdgeResources", + "solutionName": "default" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/OpenPortsOnDevice", + "name": "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/OpenPortsOnDevice", + "type": "Microsoft.Security/IoTSecurityAggregatedRecommendation", + "properties": { + "recommendationName": "OpenPortsOnDevice", + "recommendationDisplayName": "Permissive firewall policy in one of the chains was found", + "description": "An allowed firewall policy was found in main firewall Chains (INPUT/OUTPUT). The policy should Deny all traffic by default define rules to allow necessary communication to/from the device", + "recommendationTypeId": "{20ff7fc3-e762-44dd-bd96-b71116dcdc23}", + "detectedBy": "Microsoft", + "reportedSeverity": "Low", + "remediationSteps": "", + "healthyDevices": 10000, + "unhealthyDeviceCount": 200, + "logAnalyticsQuery": "SecurityRecommendation | where tolower(AssessedResourceId) == tolower('/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Devices/IotHubs/t-ofdadu-hub') and tolower(RecommendationName) == tolower('OpenPortsOnDevice')" + } + }, + { + "id": "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/TooLargeIPRange", + "name": "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_InstallAgent", + "type": "Microsoft.Security/IoTSecurityAggregatedRecommendation", + "properties": { + "recommendationName": "TooLargeIPRange", + "recommendationDisplayName": "Permissive firewall policy in one of the chains was found", + "description": "An allow IP filter rule source IP range is too large. Overly permissive rules can expose your IoT hub to malicious actors.", + "recommendationTypeId": "{20ff7fc3-e762-44dd-bd96-b71116dcdc23}", + "detectedBy": "Microsoft", + "reportedSeverity": "High", + "remediationSteps": "", + "healthyDevices": 130000, + "unhealthyDeviceCount": 1, + "logAnalyticsQuery": "SecurityRecommendation | where tolower(AssessedResourceId) == tolower('/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Devices/IotHubs/t-ofdadu-hub') and tolower(RecommendationName) == tolower('TooLargeIPRange')" + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendation_example.json new file mode 100644 index 000000000000..e5a0c36cd805 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendation_example.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2017-08-01-preview", + "subscriptionId": "075423e9-7d33-4166-8bdf-3920b04e3735", + "resourceGroupName": "IoTEdgeResources", + "solutionName": "default", + "aggregatedRecommendationName": "OpenPortsOnDevice" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/OpenPortsOnDevice", + "name": "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/OpenPortsOnDevice", + "type": "Microsoft.Security/IoTSecurityAggregatedRecommendation", + "properties": { + "recommendationName": "OpenPortsOnDevice", + "recommendationDisplayName": "Permissive firewall policy in one of the chains was found", + "description": "An allowed firewall policy was found in main firewall Chains (INPUT/OUTPUT). The policy should Deny all traffic by default define rules to allow necessary communication to/from the device", + "recommendationTypeId": "{20ff7fc3-e762-44dd-bd96-b71116dcdc23}", + "detectedBy": "Microsoft", + "reportedSeverity": "Low", + "remediationSteps": "", + "healthyDevices": 10000, + "unhealthyDeviceCount": 200, + "logAnalyticsQuery": "SecurityRecommendation | where tolower(AssessedResourceId) == tolower('/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Devices/IotHubs/t-ofdadu-hub') and tolower(RecommendationName) == tolower('OpenPortsOnDevice')" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/PostIoTSecuritySolutionsSecurityAggregatedAlertDismiss_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/PostIoTSecuritySolutionsSecurityAggregatedAlertDismiss_example.json new file mode 100644 index 000000000000..310d0b4a3e41 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/IoTSecuritySolutionsAnalytics/PostIoTSecuritySolutionsSecurityAggregatedAlertDismiss_example.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2017-08-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "IoTEdgeResources", + "solutionName": "default", + "aggregatedAlertName": "IoT_Bruteforce_Fail/2019-02-02/dismiss" + }, + "responses": { + "200": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutionAnalytics.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutionAnalytics.json new file mode 100644 index 000000000000..54e224ea4fcf --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutionAnalytics.json @@ -0,0 +1,916 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2017-08-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.Security/iotSecuritySolutions/{solutionName}/analyticsModels": { + "get": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalyticsList_example.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalytics_GetAll", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecuritySolutionAnalyticsModelList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default": { + "get": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalytics_example.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalytics_GetDefault", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecuritySolutionAnalyticsModel" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedAlerts": { + "get": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlertList_example.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalyticsAggregatedAlerts_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + }, + { + "name": "$top", + "in": "query", + "description": "The number of results to retrieve.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecurityAggregatedAlertList" + } + }, + "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/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedAlerts/{aggregatedAlertName}": { + "get": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlert_example.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalyticsAggregatedAlert_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + }, + { + "$ref": "#/parameters/AggregatedAlertName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecurityAggregatedAlert" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedAlerts/{aggregatedAlertName}/dismiss": { + "post": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/PostIoTSecuritySolutionsSecurityAggregatedAlertDismiss_example.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalyticsAggregatedAlert_Dismiss", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + }, + { + "$ref": "#/parameters/AggregatedAlertName" + } + ], + "responses": { + "200": { + "description": "Dismissed" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedRecommendations/{aggregatedRecommendationName}": { + "get": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendation_example.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalyticsRecommendation_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + }, + { + "$ref": "#/parameters/AggregatedRecommendationName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecurityAggregatedRecommendation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedRecommendations": { + "get": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendationList_example.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalyticsRecommendations_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + }, + { + "name": "$top", + "in": "query", + "description": "The number of results to retrieve.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecurityAggregatedRecommendationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "IoTSeverityMetrics": { + "type": "object", + "description": "Severity metrics", + "properties": { + "high": { + "type": "integer", + "description": "count of high severity items" + }, + "medium": { + "type": "integer", + "description": "count of medium severity items" + }, + "low": { + "type": "integer", + "description": "count of low severity items" + } + } + }, + "IoTSecuritySolutionAnalyticsModel": { + "type": "object", + "description": "Security Analytics of a security solution", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Security Solution Aggregated Alert data", + "$ref": "#/definitions/IoTSecuritySolutionAnalyticsModelProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + } + ] + }, + "IoTSecuritySolutionAnalyticsModelProperties": { + "description": "Security Analytics of a security solution properties", + "properties": { + "metrics": { + "type": "object", + "$ref": "#/definitions/IoTSeverityMetrics", + "description": "Security Analytics of a security solution", + "readOnly": true + }, + "unhealthyDeviceCount": { + "type": "integer", + "readOnly": true, + "description": "number of unhealthy devices" + }, + "devicesMetrics": { + "description": "The list of devices metrics by the aggregated date.", + "type": "array", + "readOnly": true, + "items": { + "properties": { + "date": { + "type": "string", + "format": "date-time", + "description": "the date of the metrics" + }, + "devicesMetrics": { + "type": "object", + "$ref": "#/definitions/IoTSeverityMetrics", + "description": "devices alerts count by severity." + } + } + } + }, + "topAlertedDevices": { + "description": "The list of top 3 devices with the most attacked.", + "type": "object", + "$ref": "#/definitions/IoTSecurityAlertedDevicesList" + }, + "mostPrevalentDeviceAlerts": { + "description": "The list of most prevalent 3 alerts.", + "type": "object", + "$ref": "#/definitions/IoTSecurityDeviceAlertsList" + }, + "mostPrevalentDeviceRecommendations": { + "description": "The list of most prevalent 3 recommendations.", + "type": "object", + "$ref": "#/definitions/IoTSecurityDeviceRecommendationsList" + } + } + }, + "IoTSecuritySolutionAnalyticsModelList": { + "description": "List of Security Analytics of a security solution", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of Security Analytics of a security solution", + "items": { + "$ref": "#/definitions/IoTSecuritySolutionAnalyticsModel" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "IoTSecurityAggregatedAlertList": { + "description": "List of IoT aggregated security alerts", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of aggregated alerts data", + "items": { + "$ref": "#/definitions/IoTSecurityAggregatedAlert" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "IoTSecurityAggregatedRecommendationList": { + "description": "List of IoT aggregated security recommendations", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of aggregated alerts data", + "items": { + "$ref": "#/definitions/IoTSecurityAggregatedRecommendation" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "IoTSecurityAlertedDevicesList": { + "description": "List of devices with the count of raised alerts", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of aggregated alerts data", + "items": { + "$ref": "#/definitions/IoTSecurityAlertedDevice" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "IoTSecurityDeviceAlertsList": { + "description": "List of alerts with the count of raised alerts", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of top alerts data", + "items": { + "$ref": "#/definitions/IoTSecurityDeviceAlert" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "IoTSecurityDeviceRecommendationsList": { + "description": "List of recommendations with the count of devices", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of aggregated recommendation data", + "items": { + "$ref": "#/definitions/IoTSecurityDeviceRecommendation" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "IoTSecurityAggregatedAlert": { + "type": "object", + "description": "Security Solution Aggregated Alert information", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Security Solution Aggregated Alert data", + "$ref": "#/definitions/IoTSecurityAggregatedAlertProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "#/definitions/TagsResource" + } + ] + }, + "IoTSecurityAggregatedAlertProperties": { + "type": "object", + "description": "Security Solution Aggregated Alert data", + "properties": { + "alertType": { + "readOnly": true, + "type": "string", + "description": "Name of the alert type" + }, + "alertDisplayName": { + "readOnly": true, + "type": "string", + "description": "Display name of the alert type" + }, + "aggregatedDateUtc": { + "readOnly": true, + "type": "string", + "format": "date", + "description": "The date the incidents were detected by the vendor" + }, + "vendorName": { + "readOnly": true, + "type": "string", + "description": "Name of the vendor that discovered the incident" + }, + "reportedSeverity": { + "readOnly": true, + "type": "string", + "enum": [ + "Informational", + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "reportedSeverity", + "modelAsString": true, + "values": [ + { + "value": "Informational" + }, + { + "value": "Low" + }, + { + "value": "Medium" + }, + { + "value": "High" + } + ] + }, + "description": "Estimated severity of this alert" + }, + "remediationSteps": { + "readOnly": true, + "type": "string", + "description": "Recommended steps for remediation" + }, + "description": { + "readOnly": true, + "type": "string", + "description": "Description of the incident and what it means" + }, + "count": { + "readOnly": true, + "type": "integer", + "description": "Occurrence number of the alert within the aggregated date" + }, + "effectedResourceType": { + "readOnly": true, + "type": "string", + "description": "Azure resource ID of the resource that got the alerts" + }, + "systemSource": { + "readOnly": true, + "type": "string", + "description": "The type of the alerted resource (Azure, Non-Azure)" + }, + "actionTaken": { + "readOnly": true, + "type": "string", + "description": "The action that was taken as a response to the alert (Active, Blocked etc.)" + }, + "logAnalyticsQuery": { + "readOnly": true, + "type": "string", + "description": "query in log analytics to get the list of affected devices/alerts" + } + } + }, + "IoTSecurityAggregatedRecommendation": { + "type": "object", + "description": "Security Solution Recommendation Information", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Security Solution data", + "$ref": "#/definitions/IoTSecurityAggregatedRecommendationProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "#/definitions/TagsResource" + } + ] + }, + "IoTSecurityAggregatedRecommendationProperties": { + "type": "object", + "description": "Security Solution Recommendation Information", + "properties": { + "recommendationName": { + "type": "string", + "description": "Name of the recommendation" + }, + "recommendationDisplayName": { + "readOnly": true, + "type": "string", + "description": "Display name of the recommendation type." + }, + "description": { + "readOnly": true, + "type": "string", + "description": "Description of the incident and what it means" + }, + "recommendationTypeId": { + "description": "The recommendation-type GUID.", + "type": "string", + "readOnly": true + }, + "detectedBy": { + "readOnly": true, + "type": "string", + "description": "Name of the vendor that discovered the issue" + }, + "remediationSteps": { + "readOnly": true, + "type": "string", + "description": "Recommended steps for remediation" + }, + "reportedSeverity": { + "readOnly": true, + "type": "string", + "enum": [ + "Informational", + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "reportedSeverity", + "modelAsString": true, + "values": [ + { + "value": "Informational" + }, + { + "value": "Low" + }, + { + "value": "Medium" + }, + { + "value": "High" + } + ] + }, + "description": "Estimated severity of this recommendation" + }, + "healthyDevices": { + "readOnly": true, + "type": "integer", + "description": "the number of the healthy devices within the solution" + }, + "unhealthyDeviceCount": { + "readOnly": true, + "type": "integer", + "description": "the number of the unhealthy devices within the solution" + }, + "logAnalyticsQuery": { + "readOnly": true, + "type": "string", + "description": "query in log analytics to get the list of affected devices/alerts" + } + } + }, + "IoTSecurityAlertedDevice": { + "type": "object", + "description": "Statistic information about the number of alerts per device during the last period", + "properties": { + "deviceId": { + "readOnly": true, + "type": "string", + "description": "Name of the alert type" + }, + "alertsCount": { + "readOnly": true, + "type": "integer", + "description": "the number of alerts raised for this device" + } + } + }, + "IoTSecurityDeviceAlert": { + "type": "object", + "description": "Statistic information about the number of alerts per alert type during the last period", + "properties": { + "alertDisplayName": { + "readOnly": true, + "type": "string", + "description": "Display name of the alert" + }, + "reportedSeverity": { + "readOnly": true, + "type": "string", + "enum": [ + "Informational", + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "reportedSeverity", + "modelAsString": true, + "values": [ + { + "value": "Informational" + }, + { + "value": "Low" + }, + { + "value": "Medium" + }, + { + "value": "High" + } + ] + }, + "description": "Estimated severity of this alert" + }, + "alertsCount": { + "readOnly": true, + "type": "integer", + "description": "the number of alerts raised for this alert type" + } + } + }, + "IoTSecurityDeviceRecommendation": { + "type": "object", + "description": "Statistic information about the number of recommendations per recommendation type", + "properties": { + "recommendationDisplayName": { + "readOnly": true, + "type": "string", + "description": "Display name of the recommendation" + }, + "reportedSeverity": { + "readOnly": true, + "type": "string", + "enum": [ + "Informational", + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "reportedSeverity", + "modelAsString": true, + "values": [ + { + "value": "Informational" + }, + { + "value": "Low" + }, + { + "value": "Medium" + }, + { + "value": "High" + } + ] + }, + "description": "Estimated severity of this recommendation" + }, + "devicesCount": { + "readOnly": true, + "type": "integer", + "description": "the number of device with this recommendation" + } + } + }, + "TagsResource": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "A container holding only the Tags for a resource, allowing the user to update the tags." + } + }, + "parameters": { + "SolutionName": { + "name": "solutionName", + "in": "path", + "required": true, + "description": "The solution manager name", + "type": "string", + "x-ms-parameter-location": "method" + }, + "AggregatedAlertName": { + "name": "aggregatedAlertName", + "in": "path", + "required": true, + "description": "Identifier of the aggregated alert", + "type": "string", + "x-ms-parameter-location": "method" + }, + "AggregatedRecommendationName": { + "name": "aggregatedRecommendationName", + "in": "path", + "required": true, + "description": "Identifier of the aggregated recommendation", + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutions.json index 35a31a5a3a0e..0e1a2d2e673a 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutions.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutions.json @@ -441,7 +441,7 @@ }, "readOnly": true }, - "recommendationsConfiguration":{ + "recommendationsConfiguration": { "$ref": "#/definitions/RecommendationConfigurationList" } }, @@ -457,10 +457,12 @@ "properties": { "query": { "type": "string", + "x-nullable": true, "description": "Azure Resource Graph query which represents the security solution's user defined resources. Required to start with \"where type != \"Microsoft.Devices/IotHubs\"\"" }, "querySubscriptions": { "type": "array", + "x-nullable": true, "description": "List of Azure subscription ids on which the user defined resources query should be executed.", "items": { "type": "string", @@ -481,86 +483,106 @@ "type": "string", "description": "The recommendation type.", "enum": [ - "OpenPortsOnDevice", - "PermissiveFirewallPolicy ", - "PermissiveFirewallRuleInput", - "PermissiveFirewallRuleOut", - "OperationSystemNotValid", - "UnutilizedMessagesFromAgent", - "SecurityTwinConfigurationNotOptimal", - "SecurityTwinConfigurationConflict", - "IdenticalAuthenticationCredentials", - "DenyDefaultIpPolicy", - "TooLargeIPRange", - "EnableDiagnosticsLog " + "IoT_ACRAuthentication", + "IoT_AgentSendsUnutilizedMessages", + "IoT_Baseline", + "IoT_EdgeHubMemOptimize", + "IoT_EdgeLoggingOptions", + "IoT_InconsistentModuleSettings", + "IoT_InstallAgent", + "IoT_IPFilter_DenyAll", + "IoT_IPFilter_PermissiveRule", + "IoT_OpenPorts", + "IoT_PermissiveFirewallPolicy", + "IoT_PermissiveInputFirewallRules", + "IoT_PermissiveOutputFirewallRules", + "IoT_PrivilegedDockerOptions", + "IoT_SharedCredentials", + "IoT_VulnerableTLSCipherSuite" ], "x-ms-enum": { "name": "RecommendationType", "modelAsString": true, "values": [ { - "value": "OpenPortsOnDevice", - "description": "A listening endpoint was found on the device." + "value": "IoT_ACRAuthentication", + "description": "Authentication schema used for pull an edge module from an ACR repository does not use Service Principal Authentication." + }, + { + "value": "IoT_AgentSendsUnutilizedMessages", + "description": "IoT agent message size capacity is currently underutilized, causing an increase in the number of sent messages. Adjust message intervals for better utilization." + }, + { + "value": "IoT_Baseline", + "description": "Identified security related system configuration issues." + }, + { + "value": "IoT_EdgeHubMemOptimize", + "description": "You can optimize Edge Hub memory usage by turning off protocol heads for any protocols not used by Edge modules in your solution." + }, + { + "value": "IoT_EdgeLoggingOptions", + "description": "Logging is disabled for this edge module." }, { - "value": "PermissiveFirewallPolicy", - "description": "Allowed firewall policy found (INPUT/OUTPUT). Firewall policy should deny all traffic by default, and define rules to allow necessary communication to/from the device." + "value": "IoT_InconsistentModuleSettings", + "description": "A minority within a device security group has inconsistent Edge Module settings with the rest of their group." }, { - "value": "PermissiveFirewallRuleInput", - "description": "A rule in the firewall in the input chain has been found that contains a permissive pattern for a wide range of IP addresses or ports." + "value": "IoT_InstallAgent", + "description": "Install the Azure Security of Things Agent." }, { - "value": "PermissiveFirewallRuleOut", - "description": "A rule in the firewall in the output chain has been found that contains a permissive pattern for a wide range of IP addresses or ports." + "value": "IoT_IPFilter_DenyAll", + "description": "IP Filter Configuration should have rules defined for allowed traffic and should deny all other traffic by default." }, { - "value": "OperationSystemNotValid", - "description": "Device doesn't comply with CIS Linux benchmarks." + "value": "IoT_IPFilter_PermissiveRule", + "description": "An Allow IP Filter rules source IP range is too large. Overly permissive rules might expose your IoT hub to malicious intenders." }, { - "value": "UnutilizedMessagesFromAgent", - "description": "10% or more of security messages were smaller than 4kb during the last 24 hours." + "value": "IoT_OpenPorts", + "description": "A listening endpoint was found on the device." }, { - "value": "SecurityTwinConfigurationNotOptimal", - "description": "Security twin configuration is not optimal." + "value": "IoT_PermissiveFirewallPolicy", + "description": "An Allowed firewall policy was found (INPUT/OUTPUT). The policy should Deny all traffic by default and define rules to allow necessary communication to/from the device." }, { - "value": "SecurityTwinConfigurationConflict", - "description": "Conflicts were identified in the security twin configuration." + "value": "IoT_PermissiveInputFirewallRules", + "description": "A rule in the firewall has been found that contains a permissive pattern for a wide range of IP addresses or Ports." }, { - "value": "IdenticalAuthenticationCredentials", - "description": "IoT Hub authentication credentials are used by multiple devices. This may indicate an illegitimate device impersonating a legitimate device. Duplicate credential use increases the risk of device impersonation by a malicious actor." + "value": "IoT_PermissiveOutputFirewallRules", + "description": "A rule in the firewall has been found that contains a permissive pattern for a wide range of IP addresses or Ports." }, { - "value": "DenyDefaultIpPolicy", - "description": "IP filter configuration should have rules defined for allowed traffic, and should by default, deny all other traffic by default." + "value": "IoT_PrivilegedDockerOptions", + "description": "Edge module is configured to run in privileged mode, with extensive Linux capabilities or with host-level network access (send/receive data to host machine)." }, { - "value": "TooLargeIPRange", - "description": "An allow IP filter rule source IP range is too large. Overly permissive rules can expose your IoT hub to malicious actors." + "value": "IoT_SharedCredentials", + "description": "Same authentication credentials to the IoT Hub used by multiple devices. This could indicate an illegitimate device impersonating a legitimate device. It also exposes the risk of device impersonation by an attacker." }, { - "value": "EnableDiagnosticsLog", - "description": "Enable logs and retain them for up to a year. Retaining logs enables you to recreate activity trails for investigation purposes when a security incident occurs or your network is compromised." + "value": "IoT_VulnerableTLSCipherSuite", + "description": "Insecure TLS configurations detected. Immediate upgrade recommended." } ] } }, - "description": { + "name": { "type": "string", "readOnly": true }, "status": { "type": "string", "enum": [ - "TurnedOff", - "TurnedOn" + "Disabled", + "Enabled" ], - "default": "TurnedOn", - "description": "Recommendation status. The recommendation is not generated when the status is turned off", + "default": "Enabled", + "description": "Recommendation status. The recommendation is not generated when the status is disabled", "x-ms-enum": { "name": "RecommendationConfigStatus", "modelAsString": true @@ -585,7 +607,7 @@ "userDefinedResources": { "$ref": "#/definitions/UserDefinedResourcesProperties" }, - "RecommendationsConfiguration": { + "recommendationsConfiguration": { "$ref": "#/definitions/RecommendationConfigurationList" } }, @@ -629,7 +651,6 @@ "required": true, "description": "The security solution data", "x-ms-parameter-location": "method", - "type": "object", "schema": { "$ref": "#/definitions/UpdateIotSecuritySolutionData" } 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/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json new file mode 100644 index 000000000000..1bccb5ea5cce --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "rg1", + "resourceNamespace": "Microsoft.Compute", + "resourceType": "virtualMachines", + "resourceName": "vm1", + "serverVulnerabilityAssessment": "default", + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/serverVulnerabilityAssessments/default", + "name": "default", + "type": "Microsoft.Security/serverVulnerabilityAssessments" + } + }, + "responses": { + "202": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/serverVulnerabilityAssessments/default", + "name": "default", + "type": "Microsoft.Security/serverVulnerabilityAssessments", + "properties": { + "provisioningState": "Provisioning" + } + } + } + } +} 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/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json new file mode 100644 index 000000000000..ebe431b2e5ae --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "rg1", + "resourceNamespace": "Microsoft.Compute", + "resourceType": "virtualMachines", + "resourceName": "vm1", + "serverVulnerabilityAssessment": "default" + }, + "responses": { + "200": {}, + "204": {} + } +} 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/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json new file mode 100644 index 000000000000..aec69b3e88bf --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "rg1", + "resourceNamespace": "Microsoft.Compute", + "resourceType": "virtualMachines", + "resourceName": "vm1", + "serverVulnerabilityAssessment": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/serverVulnerabilityAssessments/default", + "name": "default", + "type": "Microsoft.Security/serverVulnerabilityAssessments", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} 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/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json new file mode 100644 index 000000000000..d96e15730233 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "rg1", + "resourceNamespace": "Microsoft.Compute", + "resourceType": "virtualMachines", + "resourceName": "vm1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/serverVulnerabilityAssessments/default", + "name": "default", + "type": "Microsoft.Security/serverVulnerabilityAssessments", + "properties": { + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/serverVulnerabilityAssessments.json b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/serverVulnerabilityAssessments.json new file mode 100644 index 000000000000..534a37477127 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/serverVulnerabilityAssessments.json @@ -0,0 +1,351 @@ +{ + "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}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/serverVulnerabilityAssessments": { + "get": { + "x-ms-examples": { + "Get a list of server vulnerability assessments on a resource. Though this API returns a list, Currently Microsoft.Security only supports a single default type of server vulnerability assessment": { + "$ref": "./examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json" + } + }, + "description": "Gets a list of server vulnerability assessment onboarding statuses on a given resource.", + "tags": [ + "ServerVulnerabilityAssessments" + ], + "operationId": "ServerVulnerabilityAssessment_ListByExtendedResource", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerVulnerabilityAssessmentsList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/serverVulnerabilityAssessments/{serverVulnerabilityAssessment}": { + "get": { + "x-ms-examples": { + "Get a server vulnerability assessments onboarding status on a resource. Currently Microsoft.Security only supports the single 'default' resource": { + "$ref": "./examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json" + } + }, + "description": "Gets a server vulnerability assessment onboarding statuses on a given resource.", + "tags": [ + "ServerVulnerabilityAssessments" + ], + "operationId": "ServerVulnerabilityAssessment_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "name": "serverVulnerabilityAssessment", + "in": "path", + "description": "ServerVulnerabilityAssessment status. only a 'default' value is supported.", + "required": true, + "type": "string", + "enum": [ + "default" + ] + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerVulnerabilityAssessment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "x-ms-examples": { + "Create a server vulnerability assessments on a resource. Only 'default' resource is supported. Once creating the resource, the server will be onboarded to vulnerability assessment by Microsoft.Security": { + "$ref": "./examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json" + } + }, + "description": "Creating a server vulnerability assessment on a resource, which will onboard a resource for having a vulnerability assessment on it", + "tags": [ + "ServerVulnerabilityAssessment" + ], + "operationId": "ServerVulnerabilityAssessment_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "name": "serverVulnerabilityAssessment", + "in": "path", + "description": "ServerVulnerabilityAssessment status. only a 'default' value is supported.", + "required": true, + "type": "string", + "enum": [ + "default" + ] + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/ServerVulnerabilityAssessment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete a server vulnerability assessments on a resource. Only 'default' resource is supported. Once deleting, Microsoft.Security will not provide vulnerability assessment findings on the resource.": { + "$ref": "./examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json" + } + }, + "description": "Removing server vulnerability assessment from a resource.", + "tags": [ + "ServerVulnerabilityAssessment" + ], + "operationId": "ServerVulnerabilityAssessment_Delete", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "name": "serverVulnerabilityAssessment", + "in": "path", + "description": "ServerVulnerabilityAssessment status. only a 'default' value is supported.", + "required": true, + "type": "string", + "enum": [ + "default" + ] + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content - Resource does not exist" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "ServerVulnerabilityAssessmentsList": { + "type": "object", + "description": "List of server vulnerability assessments", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ServerVulnerabilityAssessment" + } + } + } + }, + "ServerVulnerabilityAssessment": { + "type": "object", + "description": "Describes the server vulnerability assessment details on a resource", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ServerVulnerabilityAssessmentProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + } + ] + }, + "ServerVulnerabilityAssessmentProperties": { + "type": "object", + "description": "describes ServerVulnerabilityAssessment properties.", + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioningState of the vulnerability assessment capability on the VM", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Provisioning", + "Deprovisioning" + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2018-06-01/pricings.json b/specification/security/resource-manager/Microsoft.Security/stable/2018-06-01/pricings.json index 7e6fc2ebc866..426dfb6bc744 100644 --- a/specification/security/resource-manager/Microsoft.Security/stable/2018-06-01/pricings.json +++ b/specification/security/resource-manager/Microsoft.Security/stable/2018-06-01/pricings.json @@ -44,7 +44,7 @@ "tags": [ "Pricings" ], - "description": "Security pricing configurations in the subscription", + "description": "Lists Security Center pricing configurations in the subscription.", "operationId": "Pricings_List", "parameters": [ { @@ -80,7 +80,7 @@ "tags": [ "Pricings" ], - "description": "Security pricing configuration in the subscription", + "description": "Gets a provided Security Center pricing configuration in the subscription.", "operationId": "Pricings_Get", "parameters": [ { @@ -117,7 +117,7 @@ "tags": [ "Pricings" ], - "description": "Security pricing configuration in the subscription", + "description": "Updates a provided Security Center pricing configuration in the subscription.", "operationId": "Pricings_Update", "parameters": [ { @@ -152,7 +152,7 @@ }, "definitions": { "PricingList": { - "description": "List of pricing configurations response", + "description": "List of pricing configurations response.", "required": [ "value" ], @@ -168,7 +168,7 @@ }, "Pricing": { "type": "object", - "description": "Pricing tier will be applied for the scope based on the resource ID", + "description": "Azure Security Center is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features.", "properties": { "properties": { "x-ms-client-flatten": true, @@ -188,7 +188,7 @@ "properties": { "pricingTier": { "type": "string", - "description": "The pricing tier value", + "description": "The pricing tier value. Azure Security Center is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features.", "enum": [ "Free", "Standard" diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/CreateIoTSecuritySolution.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/CreateIoTSecuritySolution.json new file mode 100644 index 000000000000..c022e8f1680e --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/CreateIoTSecuritySolution.json @@ -0,0 +1,262 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "MyGroup", + "solutionName": "default", + "iotSecuritySolutionData": { + "tags": {}, + "location": "East Us", + "properties": { + "workspace": "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1", + "status": "Enabled", + "export": [], + "disabledDataSources": [], + "displayName": "Solution Default", + "iotHubs": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "userDefinedResources": { + "query": "where type != \"microsoft.devices/iothubs\" | where name contains \"iot\"", + "querySubscriptions": [ + "075423e9-7d33-4166-8bdf-3920b04e3735" + ] + }, + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_OpenPorts", + "status": "Disabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "status": "Disabled" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/Locations/eastus/IoTSecuritySolutions/default", + "name": "default", + "type": "Microsoft.Security/IoTSecuritySolutions", + "location": "East Us", + "tags": {}, + "properties": { + "workspace": "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1", + "status": "Enabled", + "export": [], + "disabledDataSources": [], + "displayName": "Solution Default", + "iotHubs": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "userDefinedResources": { + "query": "where type != \"microsoft.devices/iothubs\" | where name contains \"iot\"", + "querySubscriptions": [ + "075423e9-7d33-4166-8bdf-3920b04e3735" + ] + }, + "autoDiscoveredResources": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735", + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" + }, + { + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", + "status": "TurnedOn" + }, + { + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" + }, + { + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" + }, + { + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/Locations/eastus/IoTSecuritySolutions/default", + "name": "default", + "type": "Microsoft.Security/IoTSecuritySolutions", + "location": "East Us", + "tags": {}, + "properties": { + "workspace": "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1", + "status": "Enabled", + "export": [], + "disabledDataSources": [], + "displayName": "Solution Default", + "iotHubs": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "userDefinedResources": { + "query": "where type != \"microsoft.devices/iothubs\" | where name contains \"iot\"", + "querySubscriptions": [ + "075423e9-7d33-4166-8bdf-3920b04e3735" + ] + }, + "autoDiscoveredResources": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735", + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" + }, + { + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", + "status": "TurnedOn" + }, + { + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" + }, + { + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" + }, + { + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/DeleteIoTSecuritySolution.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/DeleteIoTSecuritySolution.json new file mode 100644 index 000000000000..0c7bc0bf2944 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/DeleteIoTSecuritySolution.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "MyGroup", + "solutionName": "default" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolution.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolution.json new file mode 100644 index 000000000000..a45c0ff3aaba --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolution.json @@ -0,0 +1,121 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "MyGroup", + "solutionName": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default", + "name": "default", + "type": "Microsoft.Security/IoTSecuritySolutions", + "location": "East Us", + "tags": {}, + "properties": { + "workspace": "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1", + "status": "Enabled", + "export": [], + "disabledDataSources": [], + "displayName": "Solution Default", + "iotHubs": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "userDefinedResources": { + "query": "where type != \"microsoft.devices/iothubs\" | where name contains \"iot\"", + "querySubscriptions": [ + "075423e9-7d33-4166-8bdf-3920b04e3735" + ] + }, + "autoDiscoveredResources": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735", + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" + }, + { + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", + "status": "TurnedOn" + }, + { + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" + }, + { + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" + }, + { + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsList.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsList.json new file mode 100644 index 000000000000..d9caa82fd4ad --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsList.json @@ -0,0 +1,234 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default", + "name": "default", + "location": "East Us", + "type": "Microsoft.Security/IoTSecuritySolutions", + "tags": {}, + "properties": { + "workspace": "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1", + "status": "Enabled", + "export": [], + "disabledDataSources": [], + "displayName": "Solution Default", + "iotHubs": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "userDefinedResources": { + "query": "where type != \"microsoft.devices/iothubs\" | where name contains \"iot\"", + "querySubscriptions": [ + "075423e9-7d33-4166-8bdf-3920b04e3735" + ] + }, + "autoDiscoveredResources": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735", + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" + }, + { + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", + "status": "TurnedOn" + }, + { + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" + }, + { + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" + }, + { + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" + } + ] + } + }, + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SecondGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/sec-solution", + "name": "sec-solution", + "location": "East Us", + "type": "Microsoft.Security/IoTSecuritySolutions", + "tags": {}, + "properties": { + "workspace": "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1", + "status": "Enabled", + "export": [ + "RawEvents" + ], + "disabledDataSources": [], + "displayName": "Second Solution", + "iotHubs": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/IotHubSecond" + ], + "userDefinedResources": { + "query": "where type != \"microsoft.devices/iothubs\" | where name contains \"iot\"", + "querySubscriptions": [ + "075423e9-7d33-4166-8bdf-3920b04e3735" + ] + }, + "autoDiscoveredResources": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735", + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/IotHubSecond" + ], + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" + }, + { + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", + "status": "TurnedOn" + }, + { + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" + }, + { + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" + }, + { + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHub.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHub.json new file mode 100644 index 000000000000..47b84ec5cbd3 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHub.json @@ -0,0 +1,126 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "$filter": "properties.iotHubs/any(i eq \"/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub\")" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default", + "name": "default", + "type": "Microsoft.Security/IoTSecuritySolutions", + "location": "East Us", + "tags": {}, + "properties": { + "workspace": "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1", + "status": "Enabled", + "export": [ + "RawEvents" + ], + "disabledDataSources": [], + "displayName": "Solution Default", + "iotHubs": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "userDefinedResources": { + "query": "where type != \"microsoft.devices/iothubs\" | where name contains \"iot\"", + "querySubscriptions": [ + "075423e9-7d33-4166-8bdf-3920b04e3735" + ] + }, + "autoDiscoveredResources": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735", + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" + }, + { + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", + "status": "TurnedOn" + }, + { + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" + }, + { + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" + }, + { + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHubAndRg.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHubAndRg.json new file mode 100644 index 000000000000..1e6565f1e1f3 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHubAndRg.json @@ -0,0 +1,127 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "MyRg", + "$filter": "properties.iotHubs/any(i eq \"/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub\")" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyRg/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default", + "name": "default", + "type": "Microsoft.Security/IoTSecuritySolutions", + "location": "East Us", + "tags": {}, + "properties": { + "workspace": "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1", + "status": "Enabled", + "export": [ + "RawEvents" + ], + "disabledDataSources": [], + "displayName": "Solution Default", + "iotHubs": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "userDefinedResources": { + "query": "where type != \"microsoft.devices/iothubs\" | where name contains \"iot\"", + "querySubscriptions": [ + "075423e9-7d33-4166-8bdf-3920b04e3735" + ] + }, + "autoDiscoveredResources": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735", + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" + }, + { + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", + "status": "TurnedOn" + }, + { + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" + }, + { + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" + }, + { + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByRg.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByRg.json new file mode 100644 index 000000000000..1f1ab218ec5e --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByRg.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "MyGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default", + "name": "default", + "location": "East Us", + "type": "Microsoft.Security/IoTSecuritySolutions", + "tags": {}, + "properties": { + "workspace": "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1", + "status": "Enabled", + "export": [], + "disabledDataSources": [], + "displayName": "Solution Default", + "iotHubs": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "userDefinedResources": { + "query": "where type != \"microsoft.devices/iothubs\" | where name contains \"iot\"", + "querySubscriptions": [ + "075423e9-7d33-4166-8bdf-3920b04e3735" + ] + }, + "autoDiscoveredResources": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735", + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" + }, + { + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", + "status": "TurnedOn" + }, + { + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" + }, + { + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" + }, + { + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/UpdateIoTSecuritySolution.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/UpdateIoTSecuritySolution.json new file mode 100644 index 000000000000..ba1c8a30c391 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/UpdateIoTSecuritySolution.json @@ -0,0 +1,148 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "myRg", + "solutionName": "default", + "updateIotSecuritySolutionData": { + "tags": { + "foo": "bar" + }, + "properties": { + "userDefinedResources": { + "query": "where type != \"microsoft.devices/iothubs\" | where name contains \"v2\"", + "querySubscriptions": [ + "075423e9-7d33-4166-8bdf-3920b04e3735" + ] + }, + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_OpenPorts", + "status": "Disabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "status": "Disabled" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/Locations/eastus/IoTSecuritySolutions/default", + "name": "default", + "type": "Microsoft.Security/IoTSecuritySolutions", + "location": "East Us", + "tags": { + "foo": "bar" + }, + "properties": { + "workspace": "/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1", + "status": "Enabled", + "export": [ + "RawEvents" + ], + "disabledDataSources": [], + "displayName": "Solution Default", + "iotHubs": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "userDefinedResources": { + "query": "where type != \"microsoft.devices/iothubs\" | where name contains \"v2\"", + "querySubscriptions": [ + "075423e9-7d33-4166-8bdf-3920b04e3735" + ] + }, + "autoDiscoveredResources": [ + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735", + "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub" + ], + "recommendationsConfiguration": [ + { + "recommendationType": "IoT_ACRAuthentication", + "name": "Service Principal Not Used with ACR", + "status": "Enabled" + }, + { + "recommendationType": "IoT_AgentSendsUnutilizedMessages", + "name": "Agent sending underutilized messages", + "status": "TurnedOn" + }, + { + "recommendationType": "IoT_Baseline", + "name": "Operating system (OS) baseline validation failure", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeHubMemOptimize", + "name": "Edge Hub memory can be optimized", + "status": "Enabled" + }, + { + "recommendationType": "IoT_EdgeLoggingOptions", + "name": "No Logging Configured for Edge Module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InconsistentModuleSettings", + "name": "Module Settings Inconsistent in SecurityGroup", + "status": "Enabled" + }, + { + "recommendationType": "IoT_InstallAgent", + "name": "Install the Azure Security of Things Agent", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_DenyAll", + "name": "Default IP Filter Policy should be Deny", + "status": "Enabled" + }, + { + "recommendationType": "IoT_IPFilter_PermissiveRule", + "name": "IP Filter rule includes large IP range", + "status": "Enabled" + }, + { + "recommendationType": "IoT_OpenPorts", + "name": "Open Ports On Device", + "status": "Disabled" + }, + { + "recommendationType": "IoT_PermissiveFirewallPolicy", + "name": "Permissive firewall policy in one of the chains was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveInputFirewallRules", + "name": "Permissive firewall rule in the input chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PermissiveOutputFirewallRules", + "name": "Permissive firewall rule in the output chain was found", + "status": "Enabled" + }, + { + "recommendationType": "IoT_PrivilegedDockerOptions", + "name": "High level permissions configured in Edge model twin for Edge module", + "status": "Enabled" + }, + { + "recommendationType": "IoT_SharedCredentials", + "name": "Same Authentication Credentials used by multiple devices", + "status": "Disabled" + }, + { + "recommendationType": "IoT_VulnerableTLSCipherSuite", + "name": "TLS cipher suite upgrade", + "status": "Enabled" + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlert.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlert.json new file mode 100644 index 000000000000..ceddc2e872b5 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlert.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "MyGroup", + "solutionName": "default", + "aggregatedAlertName": "IoT_Bruteforce_Fail/2019-02-02" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_Bruteforce_Fail/2019-02-02", + "name": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_Bruteforce_Fail/2019-02-02", + "type": "Microsoft.Security/IoTSecurityAggregatedAlert", + "properties": { + "alertType": "IoT_Bruteforce_Fail", + "alertDisplayName": "Failed Bruteforce", + "aggregatedDateUtc": "2019-02-02", + "vendorName": "Microsoft", + "reportedSeverity": "Low", + "remediationSteps": "", + "description": "Multiple unsuccsseful login attempts identified. A Bruteforce attack on the device failed.", + "count": 50, + "effectedResourceType": "IoT Device", + "systemSource": "Devices", + "actionTaken": "Detected", + "logAnalyticsQuery": "SecurityAlert | where tolower(ResourceId) == tolower('/subscriptions/b77ec8a9-04ed-48d2-a87a-e5887b978ba6/resourceGroups/IoT-Solution-DemoEnv/providers/Microsoft.Devices/IotHubs/rtogm-hub') and tolower(AlertName) == tolower('Custom Alert - number of device to cloud messages in MQTT protocol is not in the allowed range') | extend DeviceId=parse_json(ExtendedProperties)['DeviceId'] | project DeviceId, TimeGenerated, DisplayName, AlertSeverity, Description, RemediationSteps, ExtendedProperties" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlertList.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlertList.json new file mode 100644 index 000000000000..91c29bdf1d04 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlertList.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "MyGroup", + "solutionName": "default" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_Bruteforce_Fail/2019-02-02", + "name": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_Bruteforce_Fail/2019-02-02", + "type": "Microsoft.Security/IoTSecurityAggregatedAlert", + "properties": { + "alertType": "IoT_Bruteforce_Fail", + "alertDisplayName": "Failed Bruteforce", + "aggregatedDateUtc": "2019-02-02", + "vendorName": "Microsoft", + "reportedSeverity": "Low", + "remediationSteps": "", + "description": "Multiple unsuccsseful login attempts identified. A Bruteforce attack on the device failed.", + "count": 50, + "effectedResourceType": "IoT Device", + "systemSource": "Devices", + "actionTaken": "Detected", + "logAnalyticsQuery": "SecurityAlert | where tolower(ResourceId) == tolower('/subscriptions/b77ec8a9-04ed-48d2-a87a-e5887b978ba6/resourceGroups/IoT-Solution-DemoEnv/providers/Microsoft.Devices/IotHubs/rtogm-hub') and tolower(AlertName) == tolower('Custom Alert - number of device to cloud messages in MQTT protocol is not in the allowed range') | extend DeviceId=parse_json(ExtendedProperties)['DeviceId'] | project DeviceId, TimeGenerated, DisplayName, AlertSeverity, Description, RemediationSteps, ExtendedProperties" + } + }, + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_Bruteforce_Success/2019-02-02", + "name": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_Bruteforce_Success/2019-02-02", + "type": "Microsoft.Security/IoTSecurityAggregatedAlert", + "properties": { + "alertType": "IoT_Bruteforce_Success", + "alertDisplayName": "Successful Bruteforce", + "aggregatedDateUtc": "2019-02-02", + "vendorName": "Microsoft", + "reportedSeverity": "Low", + "remediationSteps": "", + "description": "Multiple unsuccsseful login attempts identified followed by a succssful login. A Bruteforce attack on the device was Successfule", + "count": 600000, + "effectedResourceType": "IoT Device", + "systemSource": "Devices", + "actionTaken": "Detected", + "logAnalyticsQuery": "SecurityAlert | where tolower(ResourceId) == tolower('/subscriptions/b77ec8a9-04ed-48d2-a87a-e5887b978ba6/resourceGroups/IoT-Solution-DemoEnv/providers/Microsoft.Devices/IotHubs/rtogm-hub') and tolower(AlertName) == tolower('Custom Alert - number of device to cloud messages in MQTT protocol is not in the allowed range') | extend DeviceId=parse_json(ExtendedProperties)['DeviceId'] | project DeviceId, TimeGenerated, DisplayName, AlertSeverity, Description, RemediationSteps, ExtendedProperties" + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalytics.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalytics.json new file mode 100644 index 000000000000..a7337a494529 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalytics.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "MyGroup", + "solutionName": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default", + "name": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default", + "type": "Microsoft.Security/IoTSecuritySolutionAnalyticsModel", + "properties": { + "metrics": { + "high": 5, + "medium": 200, + "low": 102 + }, + "unhealthyDeviceCount": 1200, + "devicesMetrics": [ + { + "date": "2019-02-01T00:00:00Z", + "devicesMetrics": { + "high": 3, + "medium": 15, + "low": 70 + } + }, + { + "date": "2019-02-02T00:00:00Z", + "devicesMetrics": { + "high": 3, + "medium": 45, + "low": 65 + } + } + ], + "topAlertedDevices": [ + { + "deviceId": "id1", + "alertsCount": 200 + }, + { + "deviceId": "id2", + "alertsCount": 170 + }, + { + "deviceId": "id3", + "alertsCount": 150 + } + ], + "mostPrevalentDeviceAlerts": [ + { + "alertDisplayName": "Custom Alert - number of device to cloud messages in AMQP protocol is not in the allowed range", + "reportedSeverity": "Low", + "alertsCount": 200 + }, + { + "alertDisplayName": "Custom Alert - execution of a process that is not allowed", + "reportedSeverity": "Medium", + "alertsCount": 170 + }, + { + "alertDisplayName": "Successful Bruteforce", + "reportedSeverity": "Low", + "alertsCount": 150 + } + ], + "mostPrevalentDeviceRecommendations": [ + { + "recommendationDisplayName": "Install the Azure Security of Things Agent", + "reportedSeverity": "Low", + "devicesCount": 200 + }, + { + "recommendationDisplayName": "High level permissions configured in Edge model twin for Edge module", + "reportedSeverity": "Low", + "devicesCount": 170 + }, + { + "recommendationDisplayName": "Same Authentication Credentials used by multiple devices", + "reportedSeverity": "Medium", + "devicesCount": 150 + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalyticsList.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalyticsList.json new file mode 100644 index 000000000000..099649b79f64 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalyticsList.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "MyGroup", + "solutionName": "default" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default", + "name": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/MyGroup/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default", + "type": "Microsoft.Security/IoTSecuritySolutionAnalyticsModelList", + "properties": { + "metrics": { + "high": 5, + "medium": 200, + "low": 102 + }, + "unhealthyDeviceCount": 1200, + "devicesMetrics": [ + { + "date": "2019-02-01T00:00:00Z", + "devicesMetrics": { + "high": 3, + "medium": 15, + "low": 70 + } + }, + { + "date": "2019-02-02T00:00:00Z", + "devicesMetrics": { + "high": 3, + "medium": 45, + "low": 65 + } + } + ], + "topAlertedDevices": [ + { + "deviceId": "id1", + "alertsCount": 200 + }, + { + "deviceId": "id2", + "alertsCount": 170 + }, + { + "deviceId": "id3", + "alertsCount": 150 + } + ], + "mostPrevalentDeviceAlerts": [ + { + "alertDisplayName": "Custom Alert - number of device to cloud messages in AMQP protocol is not in the allowed range", + "reportedSeverity": "Low", + "devicesCount": 200 + }, + { + "alertDisplayName": "Custom Alert - execution of a process that is not allowed", + "reportedSeverity": "Medium", + "devicesCount": 170 + }, + { + "alertDisplayName": "Successful Bruteforce", + "reportedSeverity": "Low", + "devicesCount": 150 + } + ], + "mostPrevalentDeviceRecommendations": [ + { + "recommendationDisplayName": "Install the Azure Security of Things Agent", + "reportedSeverity": "Low", + "devicesCount": 200 + }, + { + "recommendationDisplayName": "High level permissions configured in Edge model twin for Edge module", + "reportedSeverity": "Low", + "devicesCount": 170 + }, + { + "recommendationDisplayName": "Same Authentication Credentials used by multiple devices", + "reportedSeverity": "Medium", + "devicesCount": 150 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendation.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendation.json new file mode 100644 index 000000000000..51b44a0c90c2 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendation.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "075423e9-7d33-4166-8bdf-3920b04e3735", + "resourceGroupName": "IoTEdgeResources", + "solutionName": "default", + "aggregatedRecommendationName": "OpenPortsOnDevice" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/OpenPortsOnDevice", + "name": "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/OpenPortsOnDevice", + "type": "Microsoft.Security/IoTSecurityAggregatedRecommendation", + "properties": { + "recommendationName": "OpenPortsOnDevice", + "recommendationDisplayName": "Permissive firewall policy in one of the chains was found", + "description": "An allowed firewall policy was found in main firewall Chains (INPUT/OUTPUT). The policy should Deny all traffic by default define rules to allow necessary communication to/from the device", + "recommendationTypeId": "{20ff7fc3-e762-44dd-bd96-b71116dcdc23}", + "detectedBy": "Microsoft", + "reportedSeverity": "Low", + "remediationSteps": "", + "healthyDevices": 10000, + "unhealthyDeviceCount": 200, + "logAnalyticsQuery": "SecurityRecommendation | where tolower(AssessedResourceId) == tolower('/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Devices/IotHubs/t-ofdadu-hub') and tolower(RecommendationName) == tolower('OpenPortsOnDevice')" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendationList.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendationList.json new file mode 100644 index 000000000000..3a331b30297d --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendationList.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "075423e9-7d33-4166-8bdf-3920b04e3735", + "resourceGroupName": "IoTEdgeResources", + "solutionName": "default" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/OpenPortsOnDevice", + "name": "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/OpenPortsOnDevice", + "type": "Microsoft.Security/IoTSecurityAggregatedRecommendation", + "properties": { + "recommendationName": "OpenPortsOnDevice", + "recommendationDisplayName": "Permissive firewall policy in one of the chains was found", + "description": "An allowed firewall policy was found in main firewall Chains (INPUT/OUTPUT). The policy should Deny all traffic by default define rules to allow necessary communication to/from the device", + "recommendationTypeId": "{20ff7fc3-e762-44dd-bd96-b71116dcdc23}", + "detectedBy": "Microsoft", + "reportedSeverity": "Low", + "remediationSteps": "", + "healthyDevices": 10000, + "unhealthyDeviceCount": 200, + "logAnalyticsQuery": "SecurityRecommendation | where tolower(AssessedResourceId) == tolower('/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Devices/IotHubs/t-ofdadu-hub') and tolower(RecommendationName) == tolower('OpenPortsOnDevice')" + } + }, + { + "id": "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/TooLargeIPRange", + "name": "/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Security/IoTSecuritySolutions/Locations/eastus/default/IoT_InstallAgent", + "type": "Microsoft.Security/IoTSecurityAggregatedRecommendation", + "properties": { + "recommendationName": "TooLargeIPRange", + "recommendationDisplayName": "Permissive firewall policy in one of the chains was found", + "description": "An allow IP filter rule source IP range is too large. Overly permissive rules can expose your IoT hub to malicious actors.", + "recommendationTypeId": "{20ff7fc3-e762-44dd-bd96-b71116dcdc23}", + "detectedBy": "Microsoft", + "reportedSeverity": "High", + "remediationSteps": "", + "healthyDevices": 130000, + "unhealthyDeviceCount": 1, + "logAnalyticsQuery": "SecurityRecommendation | where tolower(AssessedResourceId) == tolower('/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/IoTEdgeResources/providers/Microsoft.Devices/IotHubs/t-ofdadu-hub') and tolower(RecommendationName) == tolower('TooLargeIPRange')" + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/PostIoTSecuritySolutionsSecurityAggregatedAlertDismiss.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/PostIoTSecuritySolutionsSecurityAggregatedAlertDismiss.json new file mode 100644 index 000000000000..0d2c25cde954 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/PostIoTSecuritySolutionsSecurityAggregatedAlertDismiss.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "IoTEdgeResources", + "solutionName": "default", + "aggregatedAlertName": "IoT_Bruteforce_Fail/2019-02-02/dismiss" + }, + "responses": { + "200": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutionAnalytics.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutionAnalytics.json new file mode 100644 index 000000000000..a75f7f1ee3a4 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutionAnalytics.json @@ -0,0 +1,906 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "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.Security/iotSecuritySolutions/{solutionName}/analyticsModels": { + "get": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalyticsList.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalytics_GetAll", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecuritySolutionAnalyticsModelList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default": { + "get": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalytics.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalytics_GetDefault", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecuritySolutionAnalyticsModel" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedAlerts": { + "get": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlertList.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalyticsAggregatedAlerts_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + }, + { + "name": "$top", + "in": "query", + "description": "The number of results to retrieve.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecurityAggregatedAlertList" + } + }, + "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/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedAlerts/{aggregatedAlertName}": { + "get": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlert.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalyticsAggregatedAlert_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + }, + { + "$ref": "#/parameters/AggregatedAlertName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecurityAggregatedAlert" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedAlerts/{aggregatedAlertName}/dismiss": { + "post": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/PostIoTSecuritySolutionsSecurityAggregatedAlertDismiss.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalyticsAggregatedAlert_Dismiss", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + }, + { + "$ref": "#/parameters/AggregatedAlertName" + } + ], + "responses": { + "200": { + "description": "Dismissed" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedRecommendations/{aggregatedRecommendationName}": { + "get": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendation.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalyticsRecommendation_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + }, + { + "$ref": "#/parameters/AggregatedRecommendationName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecurityAggregatedRecommendation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedRecommendations": { + "get": { + "x-ms-examples": { + "Get Security Solutions Analytics": { + "$ref": "./examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendationList.json" + } + }, + "tags": [ + "IoT Security Solutions Analytics" + ], + "description": "Security Analytics of a security solution", + "operationId": "IoTSecuritySolutionsAnalyticsRecommendations_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + }, + { + "name": "$top", + "in": "query", + "description": "The number of results to retrieve.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecurityAggregatedRecommendationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "IoTSeverityMetrics": { + "type": "object", + "description": "Severity metrics", + "properties": { + "high": { + "type": "integer", + "description": "count of high severity items" + }, + "medium": { + "type": "integer", + "description": "count of medium severity items" + }, + "low": { + "type": "integer", + "description": "count of low severity items" + } + } + }, + "IoTSecuritySolutionAnalyticsModel": { + "type": "object", + "description": "Security Analytics of a security solution", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Security Solution Aggregated Alert data", + "$ref": "#/definitions/IoTSecuritySolutionAnalyticsModelProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + } + ] + }, + "IoTSecuritySolutionAnalyticsModelProperties": { + "description": "Security Analytics of a security solution properties", + "properties": { + "metrics": { + "type": "object", + "$ref": "#/definitions/IoTSeverityMetrics", + "description": "Security Analytics of a security solution", + "readOnly": true + }, + "unhealthyDeviceCount": { + "type": "integer", + "readOnly": true, + "description": "number of unhealthy devices" + }, + "devicesMetrics": { + "description": "The list of devices metrics by the aggregated date.", + "type": "array", + "readOnly": true, + "items": { + "properties": { + "date": { + "type": "string", + "format": "date-time", + "description": "the date of the metrics" + }, + "devicesMetrics": { + "type": "object", + "$ref": "#/definitions/IoTSeverityMetrics", + "description": "devices alerts count by severity." + } + } + } + }, + "topAlertedDevices": { + "description": "The list of top 3 devices with the most attacked.", + "type": "object", + "$ref": "#/definitions/IoTSecurityAlertedDevicesList" + }, + "mostPrevalentDeviceAlerts": { + "description": "The list of most prevalent 3 alerts.", + "type": "object", + "$ref": "#/definitions/IoTSecurityDeviceAlertsList" + }, + "mostPrevalentDeviceRecommendations": { + "description": "The list of most prevalent 3 recommendations.", + "type": "object", + "$ref": "#/definitions/IoTSecurityDeviceRecommendationsList" + } + } + }, + "IoTSecuritySolutionAnalyticsModelList": { + "description": "List of Security Analytics of a security solution", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of Security Analytics of a security solution", + "items": { + "$ref": "#/definitions/IoTSecuritySolutionAnalyticsModel" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "IoTSecurityAggregatedAlertList": { + "description": "List of IoT aggregated security alerts", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of aggregated alerts data", + "items": { + "$ref": "#/definitions/IoTSecurityAggregatedAlert" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "IoTSecurityAggregatedRecommendationList": { + "description": "List of IoT aggregated security recommendations", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of aggregated alerts data", + "items": { + "$ref": "#/definitions/IoTSecurityAggregatedRecommendation" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "IoTSecurityAlertedDevicesList": { + "description": "List of devices with the count of raised alerts", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of aggregated alerts data", + "items": { + "$ref": "#/definitions/IoTSecurityAlertedDevice" + } + } + } + }, + "IoTSecurityDeviceAlertsList": { + "description": "List of alerts with the count of raised alerts", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of top alerts data", + "items": { + "$ref": "#/definitions/IoTSecurityDeviceAlert" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "IoTSecurityDeviceRecommendationsList": { + "description": "List of recommendations with the count of devices", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of aggregated recommendation data", + "items": { + "$ref": "#/definitions/IoTSecurityDeviceRecommendation" + } + } + } + }, + "IoTSecurityAggregatedAlert": { + "type": "object", + "description": "Security Solution Aggregated Alert information", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Security Solution Aggregated Alert data", + "$ref": "#/definitions/IoTSecurityAggregatedAlertProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "#/definitions/TagsResource" + } + ] + }, + "IoTSecurityAggregatedAlertProperties": { + "type": "object", + "description": "Security Solution Aggregated Alert data", + "properties": { + "alertType": { + "readOnly": true, + "type": "string", + "description": "Name of the alert type" + }, + "alertDisplayName": { + "readOnly": true, + "type": "string", + "description": "Display name of the alert type" + }, + "aggregatedDateUtc": { + "readOnly": true, + "type": "string", + "format": "date", + "description": "The date the incidents were detected by the vendor" + }, + "vendorName": { + "readOnly": true, + "type": "string", + "description": "Name of the vendor that discovered the incident" + }, + "reportedSeverity": { + "readOnly": true, + "type": "string", + "enum": [ + "Informational", + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "reportedSeverity", + "modelAsString": true, + "values": [ + { + "value": "Informational" + }, + { + "value": "Low" + }, + { + "value": "Medium" + }, + { + "value": "High" + } + ] + }, + "description": "Estimated severity of this alert" + }, + "remediationSteps": { + "readOnly": true, + "type": "string", + "description": "Recommended steps for remediation" + }, + "description": { + "readOnly": true, + "type": "string", + "description": "Description of the incident and what it means" + }, + "count": { + "readOnly": true, + "type": "integer", + "description": "Occurrence number of the alert within the aggregated date" + }, + "effectedResourceType": { + "readOnly": true, + "type": "string", + "description": "Azure resource ID of the resource that got the alerts" + }, + "systemSource": { + "readOnly": true, + "type": "string", + "description": "The type of the alerted resource (Azure, Non-Azure)" + }, + "actionTaken": { + "readOnly": true, + "type": "string", + "description": "The action that was taken as a response to the alert (Active, Blocked etc.)" + }, + "logAnalyticsQuery": { + "readOnly": true, + "type": "string", + "description": "query in log analytics to get the list of affected devices/alerts" + } + } + }, + "IoTSecurityAggregatedRecommendation": { + "type": "object", + "description": "Security Solution Recommendation Information", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Security Solution data", + "$ref": "#/definitions/IoTSecurityAggregatedRecommendationProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "#/definitions/TagsResource" + } + ] + }, + "IoTSecurityAggregatedRecommendationProperties": { + "type": "object", + "description": "Security Solution Recommendation Information", + "properties": { + "recommendationName": { + "type": "string", + "description": "Name of the recommendation" + }, + "recommendationDisplayName": { + "readOnly": true, + "type": "string", + "description": "Display name of the recommendation type." + }, + "description": { + "readOnly": true, + "type": "string", + "description": "Description of the incident and what it means" + }, + "recommendationTypeId": { + "description": "The recommendation-type GUID.", + "type": "string", + "readOnly": true + }, + "detectedBy": { + "readOnly": true, + "type": "string", + "description": "Name of the vendor that discovered the issue" + }, + "remediationSteps": { + "readOnly": true, + "type": "string", + "description": "Recommended steps for remediation" + }, + "reportedSeverity": { + "readOnly": true, + "type": "string", + "enum": [ + "Informational", + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "reportedSeverity", + "modelAsString": true, + "values": [ + { + "value": "Informational" + }, + { + "value": "Low" + }, + { + "value": "Medium" + }, + { + "value": "High" + } + ] + }, + "description": "Estimated severity of this recommendation" + }, + "healthyDevices": { + "readOnly": true, + "type": "integer", + "description": "the number of the healthy devices within the solution" + }, + "unhealthyDeviceCount": { + "readOnly": true, + "type": "integer", + "description": "the number of the unhealthy devices within the solution" + }, + "logAnalyticsQuery": { + "readOnly": true, + "type": "string", + "description": "query in log analytics to get the list of affected devices/alerts" + } + } + }, + "IoTSecurityAlertedDevice": { + "type": "object", + "description": "Statistic information about the number of alerts per device during the last period", + "properties": { + "deviceId": { + "readOnly": true, + "type": "string", + "description": "Name of the alert type" + }, + "alertsCount": { + "readOnly": true, + "type": "integer", + "description": "the number of alerts raised for this device" + } + } + }, + "IoTSecurityDeviceAlert": { + "type": "object", + "description": "Statistic information about the number of alerts per alert type during the last period", + "properties": { + "alertDisplayName": { + "readOnly": true, + "type": "string", + "description": "Display name of the alert" + }, + "reportedSeverity": { + "readOnly": true, + "type": "string", + "enum": [ + "Informational", + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "reportedSeverity", + "modelAsString": true, + "values": [ + { + "value": "Informational" + }, + { + "value": "Low" + }, + { + "value": "Medium" + }, + { + "value": "High" + } + ] + }, + "description": "Estimated severity of this alert" + }, + "alertsCount": { + "readOnly": true, + "type": "integer", + "description": "the number of alerts raised for this alert type" + } + } + }, + "IoTSecurityDeviceRecommendation": { + "type": "object", + "description": "Statistic information about the number of recommendations per recommendation type", + "properties": { + "recommendationDisplayName": { + "readOnly": true, + "type": "string", + "description": "Display name of the recommendation" + }, + "reportedSeverity": { + "readOnly": true, + "type": "string", + "enum": [ + "Informational", + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "reportedSeverity", + "modelAsString": true, + "values": [ + { + "value": "Informational" + }, + { + "value": "Low" + }, + { + "value": "Medium" + }, + { + "value": "High" + } + ] + }, + "description": "Estimated severity of this recommendation" + }, + "devicesCount": { + "readOnly": true, + "type": "integer", + "description": "the number of device with this recommendation" + } + } + }, + "TagsResource": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "A container holding only the Tags for a resource, allowing the user to update the tags." + } + }, + "parameters": { + "SolutionName": { + "name": "solutionName", + "in": "path", + "required": true, + "description": "The solution manager name", + "type": "string", + "x-ms-parameter-location": "method" + }, + "AggregatedAlertName": { + "name": "aggregatedAlertName", + "in": "path", + "required": true, + "description": "Identifier of the aggregated alert", + "type": "string", + "x-ms-parameter-location": "method" + }, + "AggregatedRecommendationName": { + "name": "aggregatedRecommendationName", + "in": "path", + "required": true, + "description": "Identifier of the aggregated recommendation", + "type": "string", + "x-ms-parameter-location": "method" + } + } +} 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 new file mode 100644 index 000000000000..b900a72474fc --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json @@ -0,0 +1,659 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "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}/providers/Microsoft.Security/iotSecuritySolutions": { + "get": { + "x-ms-examples": { + "Get Security Solutions list": { + "$ref": "./examples/IoTSecuritySolutions/GetIoTSecuritySolutionsList.json" + }, + "Get Security Solutions list By IotHub": { + "$ref": "./examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHub.json" + } + }, + "tags": [ + "IoT Security Solutions" + ], + "description": "List of security solutions", + "operationId": "IoTSecuritySolutions_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/FilterParam" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecuritySolutionsList" + } + }, + "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/iotSecuritySolutions": { + "get": { + "x-ms-examples": { + "Get Security Solutions list": { + "$ref": "./examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByRg.json" + }, + "Get Security Solutions list By IotHub": { + "$ref": "./examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHubAndRg.json" + } + }, + "tags": [ + "IoT Security Solutions" + ], + "description": "List of security solutions", + "operationId": "IoTSecuritySolutionsResourceGroup_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/FilterParam" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecuritySolutionsList" + } + }, + "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/iotSecuritySolutions/{solutionName}": { + "get": { + "x-ms-examples": { + "Get an iot security solution": { + "$ref": "./examples/IoTSecuritySolutions/GetIoTSecuritySolution.json" + } + }, + "tags": [ + "IoT Security Solutions" + ], + "description": "Details of a specific iot security solution", + "operationId": "IotSecuritySolution_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IoTSecuritySolutionModel" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "x-ms-examples": { + "Create an iot security solution": { + "$ref": "./examples/IoTSecuritySolutions/CreateIoTSecuritySolution.json" + } + }, + "tags": [ + "IoT Security Solutions" + ], + "description": "Create new solution manager", + "operationId": "IotSecuritySolution_Create", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + }, + { + "$ref": "#/parameters/IotSecuritySolutionData" + } + ], + "responses": { + "200": { + "description": "Updated", + "schema": { + "$ref": "#/definitions/IoTSecuritySolutionModel" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/IoTSecuritySolutionModel" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "patch": { + "x-ms-examples": { + "Update an iot security solution": { + "$ref": "./examples/IoTSecuritySolutions/UpdateIoTSecuritySolution.json" + } + }, + "tags": [ + "IoT Security Solutions" + ], + "description": "update existing Security Solution tags or user defined resources. To update other fields use the CreateOrUpdate method", + "operationId": "IotSecuritySolution_Update", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + }, + { + "$ref": "#/parameters/UpdateIotSecuritySolution" + } + ], + "responses": { + "200": { + "description": "Updated", + "schema": { + "$ref": "#/definitions/IoTSecuritySolutionModel" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Create an iot security solution": { + "$ref": "./examples/IoTSecuritySolutions/DeleteIoTSecuritySolution.json" + } + }, + "tags": [ + "IoT Security Solutions" + ], + "description": "Create new solution manager", + "operationId": "IotSecuritySolution_Delete", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SolutionName" + } + ], + "responses": { + "200": { + "description": "Security Solution deleted" + }, + "204": { + "description": "Security Solution was not exists" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "TagsResource": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "A container holding only the Tags for a resource, allowing the user to update the tags." + }, + "IoTSecuritySolutionsList": { + "description": "List of iot solutions", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of security solutions", + "items": { + "$ref": "#/definitions/IoTSecuritySolutionModel" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "IoTSecuritySolutionModel": { + "type": "object", + "description": "Security Solution", + "properties": { + "location": { + "type": "string", + "description": "The resource location." + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Security Solution data", + "$ref": "#/definitions/IoTSecuritySolutionProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "#/definitions/TagsResource" + } + ] + }, + "IoTSecuritySolutionProperties": { + "type": "object", + "description": "Security Solution setting data", + "properties": { + "workspace": { + "type": "string", + "description": "Workspace resource ID" + }, + "displayName": { + "type": "string", + "description": "Resource display name." + }, + "status": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Enabled", + "description": "Security solution status", + "x-ms-enum": { + "name": "SecuritySolutionStatus", + "modelAsString": true + } + }, + "export": { + "type": "array", + "items": { + "enum": [ + "RawEvents" + ], + "type": "string", + "x-ms-enum": { + "name": "ExportData", + "modelAsString": true, + "values": [ + { + "value": "RawEvents", + "description": "Agent raw events" + } + ] + } + }, + "description": "List of additional export to workspace data options" + }, + "disabledDataSources": { + "type": "array", + "items": { + "enum": [ + "TwinData" + ], + "type": "string", + "x-ms-enum": { + "name": "DataSource", + "modelAsString": true, + "values": [ + { + "value": "TwinData", + "description": "Devices twin data" + } + ] + } + }, + "description": "Disabled data sources. Disabling these data sources compromises the system." + }, + "iotHubs": { + "type": "array", + "description": "IoT Hub resource IDs", + "items": { + "type": "string" + } + }, + "userDefinedResources": { + "$ref": "#/definitions/UserDefinedResourcesProperties" + }, + "autoDiscoveredResources": { + "type": "array", + "description": "List of resources that were automatically discovered as relevant to the security solution.", + "items": { + "type": "string" + }, + "readOnly": true + }, + "recommendationsConfiguration": { + "$ref": "#/definitions/RecommendationConfigurationList" + } + }, + "required": [ + "iotHubs", + "workspace", + "displayName" + ] + }, + "UserDefinedResourcesProperties": { + "type": "object", + "description": "Properties of the solution's user defined resources.", + "properties": { + "query": { + "type": "string", + "x-nullable": true, + "description": "Azure Resource Graph query which represents the security solution's user defined resources. Required to start with \"where type != \"Microsoft.Devices/IotHubs\"\"" + }, + "querySubscriptions": { + "type": "array", + "x-nullable": true, + "description": "List of Azure subscription ids on which the user defined resources query should be executed.", + "items": { + "type": "string", + "pattern": "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$" + } + } + }, + "required": [ + "query", + "querySubscriptions" + ] + }, + "RecommendationConfigurationProperties": { + "type": "object", + "description": "Recommendation configuration", + "properties": { + "recommendationType": { + "type": "string", + "description": "The recommendation type.", + "enum": [ + "IoT_ACRAuthentication", + "IoT_AgentSendsUnutilizedMessages", + "IoT_Baseline", + "IoT_EdgeHubMemOptimize", + "IoT_EdgeLoggingOptions", + "IoT_InconsistentModuleSettings", + "IoT_InstallAgent", + "IoT_IPFilter_DenyAll", + "IoT_IPFilter_PermissiveRule", + "IoT_OpenPorts", + "IoT_PermissiveFirewallPolicy", + "IoT_PermissiveInputFirewallRules", + "IoT_PermissiveOutputFirewallRules", + "IoT_PrivilegedDockerOptions", + "IoT_SharedCredentials", + "IoT_VulnerableTLSCipherSuite" + ], + "x-ms-enum": { + "name": "RecommendationType", + "modelAsString": true, + "values": [ + { + "value": "IoT_ACRAuthentication", + "description": "Authentication schema used for pull an edge module from an ACR repository does not use Service Principal Authentication." + }, + { + "value": "IoT_AgentSendsUnutilizedMessages", + "description": "IoT agent message size capacity is currently underutilized, causing an increase in the number of sent messages. Adjust message intervals for better utilization." + }, + { + "value": "IoT_Baseline", + "description": "Identified security related system configuration issues." + }, + { + "value": "IoT_EdgeHubMemOptimize", + "description": "You can optimize Edge Hub memory usage by turning off protocol heads for any protocols not used by Edge modules in your solution." + }, + { + "value": "IoT_EdgeLoggingOptions", + "description": "Logging is disabled for this edge module." + }, + { + "value": "IoT_InconsistentModuleSettings", + "description": "A minority within a device security group has inconsistent Edge Module settings with the rest of their group." + }, + { + "value": "IoT_InstallAgent", + "description": "Install the Azure Security of Things Agent." + }, + { + "value": "IoT_IPFilter_DenyAll", + "description": "IP Filter Configuration should have rules defined for allowed traffic and should deny all other traffic by default." + }, + { + "value": "IoT_IPFilter_PermissiveRule", + "description": "An Allow IP Filter rules source IP range is too large. Overly permissive rules might expose your IoT hub to malicious intenders." + }, + { + "value": "IoT_OpenPorts", + "description": "A listening endpoint was found on the device." + }, + { + "value": "IoT_PermissiveFirewallPolicy", + "description": "An Allowed firewall policy was found (INPUT/OUTPUT). The policy should Deny all traffic by default and define rules to allow necessary communication to/from the device." + }, + { + "value": "IoT_PermissiveInputFirewallRules", + "description": "A rule in the firewall has been found that contains a permissive pattern for a wide range of IP addresses or Ports." + }, + { + "value": "IoT_PermissiveOutputFirewallRules", + "description": "A rule in the firewall has been found that contains a permissive pattern for a wide range of IP addresses or Ports." + }, + { + "value": "IoT_PrivilegedDockerOptions", + "description": "Edge module is configured to run in privileged mode, with extensive Linux capabilities or with host-level network access (send/receive data to host machine)." + }, + { + "value": "IoT_SharedCredentials", + "description": "Same authentication credentials to the IoT Hub used by multiple devices. This could indicate an illegitimate device impersonating a legitimate device. It also exposes the risk of device impersonation by an attacker." + }, + { + "value": "IoT_VulnerableTLSCipherSuite", + "description": "Insecure TLS configurations detected. Immediate upgrade recommended." + } + ] + } + }, + "name": { + "type": "string", + "readOnly": true + }, + "status": { + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ], + "default": "Enabled", + "description": "Recommendation status. The recommendation is not generated when the status is disabled", + "x-ms-enum": { + "name": "RecommendationConfigStatus", + "modelAsString": true + } + } + }, + "required": [ + "recommendationType", + "status" + ] + }, + "RecommendationConfigurationList": { + "type": "array", + "description": "List of recommendation configuration", + "items": { + "$ref": "#/definitions/RecommendationConfigurationProperties" + } + }, + "UpdateIotSecuritySolutionData": { + "type": "object", + "properties": { + "userDefinedResources": { + "$ref": "#/definitions/UserDefinedResourcesProperties" + }, + "recommendationsConfiguration": { + "$ref": "#/definitions/RecommendationConfigurationList" + } + }, + "allOf": [ + { + "$ref": "#/definitions/TagsResource" + } + ] + } + }, + "parameters": { + "SolutionName": { + "name": "solutionName", + "in": "path", + "required": true, + "description": "The solution manager name", + "type": "string", + "x-ms-parameter-location": "method" + }, + "IotSecuritySolutionData": { + "name": "iotSecuritySolutionData", + "in": "body", + "required": true, + "description": "The security solution data", + "schema": { + "$ref": "#/definitions/IoTSecuritySolutionModel" + }, + "x-ms-parameter-location": "method" + }, + "FilterParam": { + "name": "$filter", + "in": "query", + "required": false, + "description": "filter the Security Solution with OData syntax. supporting filter by iotHubs", + "type": "string", + "x-ms-parameter-location": "method" + }, + "UpdateIotSecuritySolution": { + "name": "updateIotSecuritySolutionData", + "in": "body", + "required": true, + "description": "The security solution data", + "x-ms-parameter-location": "method", + "schema": { + "$ref": "#/definitions/UpdateIotSecuritySolutionData" + } + } + } +} diff --git a/specification/security/resource-manager/readme.csharp.md b/specification/security/resource-manager/readme.csharp.md index b02e99f65eb3..aa0c8faf23b7 100644 --- a/specification/security/resource-manager/readme.csharp.md +++ b/specification/security/resource-manager/readme.csharp.md @@ -15,7 +15,7 @@ csharp: ``` yaml $(csharp) && !$(multiapi) && !$(profile) namespace: Microsoft.Azure.Management.Security - output-folder: $(csharp-sdks-folder)/SecurityCenter/Management.SecurityCenter/Generated + output-folder: $(csharp-sdks-folder)/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated ``` ## Batch settings diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 4c49299eb991..8b10436b7c67 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -67,6 +67,7 @@ input-file: - 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 @@ -93,12 +94,15 @@ input-file: - 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 @@ -119,10 +123,13 @@ input-file: - 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-08-01/iotSecuritySolutions.json +- Microsoft.Security/stable/2019-08-01/iotSecuritySolutionAnalytics.json - Microsoft.Security/preview/2015-06-01-preview/allowedConnections.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/applicationWhitelistings.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 @@ -134,6 +141,121 @@ input-file: - 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 + +# 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 + +# 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: @@ -151,6 +273,7 @@ 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 @@ -180,3 +303,57 @@ 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/2019-01-01-preview/regulatoryCompliance.json + - $(this-folder)/Microsoft.Security/preview/2017-08-01-preview/pricings.json + - $(this-folder)/Microsoft.Security/preview/2017-08-01-preview/securityContacts.json + - $(this-folder)/Microsoft.Security/preview/2017-08-01-preview/workspaceSettings.json + - $(this-folder)/Microsoft.Security/preview/2017-08-01-preview/autoProvisioningSettings.json + - $(this-folder)/Microsoft.Security/preview/2017-08-01-preview/compliances.json + - $(this-folder)/Microsoft.Security/preview/2017-08-01-preview/advancedThreatProtectionSettings.json + - $(this-folder)/Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json + - $(this-folder)/Microsoft.Security/preview/2017-08-01-preview/settings.json + - $(this-folder)/Microsoft.Security/preview/2017-08-01-preview/informationProtectionPolicies.json + - $(this-folder)/Microsoft.Security/preview/2015-06-01-preview/operations.json + - $(this-folder)/Microsoft.Security/preview/2015-06-01-preview/locations.json + - $(this-folder)/Microsoft.Security/preview/2015-06-01-preview/tasks.json + - $(this-folder)/Microsoft.Security/preview/2015-06-01-preview/alerts.json + - $(this-folder)/Microsoft.Security/preview/2015-06-01-preview/discoveredSecuritySolutions.json + - $(this-folder)/Microsoft.Security/preview/2015-06-01-preview/jitNetworkAccessPolicies.json + - $(this-folder)/Microsoft.Security/preview/2015-06-01-preview/applicationWhitelistings.json + - $(this-folder)/Microsoft.Security/preview/2015-06-01-preview/externalSecuritySolutions.json + - $(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/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 + - $(this-folder)/Microsoft.Security/stable/2019-01-01/alerts.json + - $(this-folder)/Microsoft.Security/stable/2017-08-01/complianceResults.json + - $(this-folder)/Microsoft.Security/stable/2019-01-01/settings.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 + +``` + +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/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 10ef339a3725..f66e6025388b 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 @@ -465,6 +465,102 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRuleTemplates": { + "get": { + "x-ms-examples": { + "Get all alert rule templates.": { + "$ref": "./examples/alertRuleTemplates/GetAlertRuleTemplates.json" + } + }, + "tags": [ + "Alert Rule Templates" + ], + "description": "Gets all alert rule templates.", + "operationId": "AlertRuleTemplates_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/OperationalInsightsResourceProvider" + }, + { + "$ref": "#/parameters/WorkspaceName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AlertRuleTemplatesList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRuleTemplates/{alertRuleTemplateId}": { + "get": { + "x-ms-examples": { + "Get alert rule template by Id.": { + "$ref": "./examples/alertRuleTemplates/GetAlertRuleTemplateById.json" + } + }, + "tags": [ + "Alert Rule Templates" + ], + "description": "Gets the alert rule template.", + "operationId": "AlertRuleTemplates_Get", + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/OperationalInsightsResourceProvider" + }, + { + "$ref": "#/parameters/WorkspaceName" + }, + { + "$ref": "#/parameters/AlertRuleTemplateId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AlertRuleTemplate" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/cases": { "get": { "x-ms-examples": { @@ -492,6 +588,18 @@ }, { "$ref": "#/parameters/WorkspaceName" + }, + { + "$ref": "#/parameters/ODataFilter" + }, + { + "$ref": "#/parameters/ODataOrderBy" + }, + { + "$ref": "#/parameters/ODataTop" + }, + { + "$ref": "#/parameters/ODataSkipToken" } ], "responses": { @@ -662,6 +770,173 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/cases/{caseId}/comments": { + "get": { + "x-ms-examples": { + "Get all case comments.": { + "$ref": "./examples/cases/comments/GetAllCaseComments.json" + } + }, + "tags": [ + "CaseComments" + ], + "description": "Gets all case comments.", + "operationId": "Comments_ListByCase", + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/OperationalInsightsResourceProvider" + }, + { + "$ref": "#/parameters/WorkspaceName" + }, + { + "$ref": "#/parameters/CaseId" + }, + { + "$ref": "#/parameters/ODataFilter" + }, + { + "$ref": "#/parameters/ODataOrderBy" + }, + { + "$ref": "#/parameters/ODataTop" + }, + { + "$ref": "#/parameters/ODataSkipToken" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CaseCommentList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-odata": "#/definitions/CaseComment", + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/cases/{caseId}/comments/{caseCommentId}": { + "get": { + "x-ms-examples": { + "Get a case comment.": { + "$ref": "./examples/cases/comments/GetCaseCommentById.json" + } + }, + "tags": [ + "CaseComments" + ], + "description": "Gets a case comment.", + "operationId": "Cases_GetComment", + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/OperationalInsightsResourceProvider" + }, + { + "$ref": "#/parameters/WorkspaceName" + }, + { + "$ref": "#/parameters/CaseId" + }, + { + "$ref": "#/parameters/CaseCommentId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CaseComment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "x-ms-examples": { + "Creates or updates a case comment.": { + "$ref": "./examples/cases/comments/CreateCaseComment.json" + } + }, + "tags": [ + "CaseComments" + ], + "description": "Creates the case comment.", + "operationId": "CaseComments_CreateComment", + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/OperationalInsightsResourceProvider" + }, + { + "$ref": "#/parameters/WorkspaceName" + }, + { + "$ref": "#/parameters/CaseId" + }, + { + "$ref": "#/parameters/CaseCommentId" + }, + { + "$ref": "#/parameters/CaseComment" + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CaseComment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks": { "get": { "x-ms-examples": { @@ -924,6 +1199,15 @@ }, "Get an AAD data connector.": { "$ref": "./examples/dataConnectors/GetAzureActiveDirectoryById.json" + }, + "Get an AwsCloudTrail data connector.": { + "$ref": "./examples/dataConnectors/GetAmazonWebServicesCloudTrailById.json" + }, + "Get an AATP data connector.": { + "$ref": "./examples/dataConnectors/GetAzureAdvancedThreatProtectionById.json" + }, + "Get a MDATP data connector": { + "$ref": "./examples/dataConnectors/GetMicrosoftDefenderAdvancedThreatProtectionById.json" } }, "tags": [ @@ -1122,11 +1406,47 @@ "Get an account entity.": { "$ref": "./examples/entities/GetAccountEntityById.json" }, - "Get an host entity.": { + "Get a host entity.": { "$ref": "./examples/entities/GetHostEntityById.json" }, - "Get an file entity.": { + "Get a file entity.": { "$ref": "./examples/entities/GetFileEntityById.json" + }, + "Get a security alert entity.": { + "$ref": "./examples/entities/GetSecurityAlertEntityById.json" + }, + "Get a file hash entity.": { + "$ref": "./examples/entities/GetFileHashEntityById.json" + }, + "Get a malware entity.": { + "$ref": "./examples/entities/GetMalwareEntityById.json" + }, + "Get a security group entity.": { + "$ref": "./examples/entities/GetSecurityGroupEntityById.json" + }, + "Get an azure resource entity.": { + "$ref": "./examples/entities/GetAzureResourceEntityById.json" + }, + "Get a cloud application entity.": { + "$ref": "./examples/entities/GetCloudApplicationEntityById.json" + }, + "Get a process entity.": { + "$ref": "./examples/entities/GetProcessEntityById.json" + }, + "Get a dns entity.": { + "$ref": "./examples/entities/GetDnsEntityById.json" + }, + "Get an ip entity.": { + "$ref": "./examples/entities/GetIpEntityById.json" + }, + "Get a registry key entity.": { + "$ref": "./examples/entities/GetRegistryKeyEntityById.json" + }, + "Get a registry value entity.": { + "$ref": "./examples/entities/GetRegistryValueEntityById.json" + }, + "Get a url entity.": { + "$ref": "./examples/entities/GetUrlEntityById.json" } }, "tags": [ @@ -1170,18 +1490,69 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/officeConsents": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entities/{entityId}/expand": { + "post": { "x-ms-examples": { - "Get all office consents.": { - "$ref": "./examples/officeConsents/GetOfficeConsents.json" + "Expand an entity": { + "$ref": "./examples/entities/expand/PostExpandEntity.json" } }, "tags": [ - "Office Consents" + "Entities" ], - "description": "Gets all office365 consents.", - "operationId": "OfficeConsents_List", + "description": "Expands an entity.", + "operationId": "Entities_Expand", + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/OperationalInsightsResourceProvider" + }, + { + "$ref": "#/parameters/WorkspaceName" + }, + { + "$ref": "#/parameters/EntityId" + }, + { + "$ref": "#/parameters/EntityExpandRequestBody" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EntityExpandResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/officeConsents": { + "get": { + "x-ms-examples": { + "Get all office consents.": { + "$ref": "./examples/officeConsents/GetOfficeConsents.json" + } + }, + "tags": [ + "Office Consents" + ], + "description": "Gets all office365 consents.", + "operationId": "OfficeConsents_List", "parameters": [ { "$ref": "#/parameters/ApiVersion" @@ -1684,7 +2055,9 @@ "type": "string", "description": "The kind of the alert rule", "enum": [ - "Scheduled" + "Scheduled", + "Filter", + "Fusion" ], "x-ms-enum": { "name": "AlertRuleKind", @@ -1692,12 +2065,78 @@ "values": [ { "value": "Scheduled" + }, + { + "value": "Filter" + }, + { + "value": "Fusion" } ] } } } }, + "AlertRuleTriggerOperator": { + "type": "string", + "enum": [ + "GreaterThan", + "LessThan", + "Equal", + "NotEqual" + ], + "x-ms-enum": { + "name": "TriggerOperator", + "modelAsString": false + }, + "description": "The operation against the threshold that triggers alert rule." + }, + "AttackTactic": { + "type": "string", + "enum": [ + "InitialAccess", + "Execution", + "Persistence", + "PrivilegeEscalation", + "DefenseEvasion", + "CredentialAccess", + "Discovery", + "LateralMovement", + "Collection", + "Exfiltration", + "CommandAndControl" + ], + "x-ms-enum": { + "name": "AttackTactic", + "modelAsString": false + }, + "description": "The severity for alerts created by this alert rule." + }, + "DataConnectorStatus": { + "type": "object", + "description": "alert rule template data connector status", + "properties": { + "connectorId": { + "type": "string", + "description": "the connector id" + }, + "dataTypes": { + "type": "object", + "additionalProperties": { + "type": "string", + "enum": [ + "Exist", + "NotExist" + ], + "x-ms-enum": { + "name": "DataTypeStatus", + "modelAsString": false + } + }, + "description": "The data types availability map" + } + } + }, "ScheduledAlertRule": { "x-ms-discriminator-value": "Scheduled", "type": "object", @@ -1728,35 +2167,7 @@ "description": "The description of the alert rule." }, "severity": { - "type": "string", - "enum": [ - "High", - "Medium", - "Low", - "Informational" - ], - "x-ms-enum": { - "name": "AlertSeverity", - "modelAsString": false, - "values": [ - { - "value": "High", - "description": "High severity" - }, - { - "value": "Medium", - "description": "Medium severity" - }, - { - "value": "Low", - "description": "Low severity" - }, - { - "value": "Informational", - "description": "Informational severity" - } - ] - }, + "$ref": "#/definitions/AlertSeverity", "description": "The severity for alerts created by this alert rule." }, "enabled": { @@ -1778,17 +2189,7 @@ "description": "The period (in ISO 8601 duration format) that this alert rule looks at." }, "triggerOperator": { - "type": "string", - "enum": [ - "GreaterThan", - "LessThan", - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "TriggerOperator", - "modelAsString": false - }, + "$ref": "#/definitions/AlertRuleTriggerOperator", "description": "The operation against the threshold that triggers alert rule." }, "triggerThreshold": { @@ -1824,19 +2225,19 @@ "suppressionDuration" ] }, - "ActionsList": { - "description": "List all the actions.", + "AlertRuleTemplatesList": { + "description": "List all the alert rule templates.", "properties": { "nextLink": { "readOnly": true, - "description": "URL to fetch the next set of actions.", + "description": "URL to fetch the next set of alert rule templates.", "type": "string" }, "value": { - "description": "Array of actions.", + "description": "Array of alert rule templates.", "type": "array", "items": { - "$ref": "#/definitions/Action" + "$ref": "#/definitions/AlertRuleTemplate" } } }, @@ -1844,225 +2245,340 @@ "value" ] }, - "Action": { + "AlertRuleTemplate": { "type": "object", - "description": "Action for alert rule.", + "description": "Alert rule template.", + "discriminator": "kind", "allOf": [ { "$ref": "#/definitions/Resource" + }, + { + "$ref": "#/definitions/AlertRuleKind" } ], "properties": { "etag": { "type": "string", - "description": "Etag of the action." - }, - "properties": { - "x-ms-client-flatten": true, - "description": "Action properties", - "$ref": "#/definitions/ActionProperties" - } - } - }, - "ActionProperties": { - "type": "object", - "description": "Action property bag.", - "properties": { - "triggerUri": { - "type": "string", - "description": "The uri for the action to trigger." + "description": "Etag of the alert rule." } } }, - "CaseList": { - "description": "List all the cases.", - "properties": { - "nextLink": { - "readOnly": true, - "description": "URL to fetch the next set of cases.", - "type": "string" - }, - "value": { - "description": "Array of cases.", - "type": "array", - "items": { - "$ref": "#/definitions/Case" - } - } - }, - "required": [ - "value" - ] - }, - "Case": { + "ScheduledAlertRuleTemplate": { + "x-ms-discriminator-value": "Scheduled", "type": "object", - "description": "Represents a case in Azure Security Insights.", + "description": "Represents scheduled alert rule template.", "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/AlertRuleTemplate" } ], "properties": { - "etag": { - "type": "string", - "description": "Etag of the alert rule." - }, "properties": { "x-ms-client-flatten": true, - "description": "Case properties", - "$ref": "#/definitions/CaseProperties" + "description": "Scheduled alert rule template properties", + "allOf": [ + { + "$ref": "#/definitions/BaseAlertRuleTemplateProperties" + }, + { + "$ref": "#/definitions/ScheduledAlertRuleTemplateProperties" + } + ], + "required": [ + "displayName", + "description", + "createdDateUTC", + "status", + "requiredDataConnectors", + "alertRulesCreatedByTemplateCount", + "severity", + "query", + "queryFrequency", + "queryPeriod", + "triggerOperator", + "triggerThreshold" + ] } } }, - "CaseProperties": { + "BaseAlertRuleTemplateProperties": { "type": "object", - "description": "Describes case properties", + "description": "Base alert rule template property bag.", "properties": { - "lastUpdatedTimeUtc": { - "type": "string", - "format": "date-time", - "description": "The last time the case was updated" - }, - "createdTimeUtc": { - "type": "string", - "format": "date-time", - "description": "The time the case was created" - }, - "endTimeUtc": { + "displayName": { "type": "string", - "format": "date-time", - "description": "The end time of the case" + "description": "The display name for alert rule template." }, - "startTimeUtc": { + "description": { "type": "string", - "format": "date-time", - "description": "The start time of the case" + "description": "The description of the alert rule template." }, - "labels": { + "tactics": { "type": "array", "items": { - "$ref": "#/definitions/Label" + "$ref": "#/definitions/AttackTactic" }, - "description": "List of labels relevant to this case" - }, - "description": { - "type": "string", - "description": "The description of the case" + "description": "The tactics of the alert rule template" }, - "title": { - "type": "string", - "description": "The title of the case" - }, - "assignedTo": { - "type": "object", - "description": "Describes a user that the case is assigned to", - "$ref": "#/definitions/UserInfo" - }, - "severity": { + "createdDateUTC": { "type": "string", - "description": "The severity of the case", - "enum": [ - "Critical", - "High", - "Medium", - "Low", - "Informational" - ], - "x-ms-enum": { - "name": "CaseSeverity", - "modelAsString": true, - "values": [ - { - "value": "Critical", - "description": "Critical severity" - }, - { - "value": "High", - "description": "High severity" - }, - { - "value": "Medium", - "description": "Medium severity" - }, - { - "value": "Low", - "description": "Low severity" - }, - { - "value": "Informational", - "description": "Informational severity" - } - ] - } + "readOnly": true, + "description": "The time that this alert rule template has been added." }, "status": { "type": "string", - "description": "The status of the case", "enum": [ - "Draft", - "New", - "InProgress", - "Closed" + "Installed", + "Available", + "NotAvailable" ], "x-ms-enum": { - "name": "CaseStatus", - "modelAsString": true, + "name": "TemplateStatus", + "modelAsString": false, "values": [ { - "value": "Draft", - "description": "Case that wasn't promoted yet to active" - }, - { - "value": "New", - "description": "An active case which isn't handled currently" + "value": "Installed", + "description": "Alert rule template installed. and can not use more then once" }, { - "value": "InProgress", - "description": "An active case which is handled" + "value": "Available", + "description": "Alert rule template is available." }, { - "value": "Closed", - "description": "A non active case" + "value": "NotAvailable", + "description": "Alert rule template is not available" } ] - } + }, + "description": "The alert rule template status." }, - "closeReason": { + "requiredDataConnectors": { + "type": "array", + "items": { + "$ref": "#/definitions/DataConnectorStatus" + }, + "description": "The required data connectors for this template" + }, + "alertRulesCreatedByTemplateCount": { + "type": "integer", + "description": "the number of alert rules that were created by this template" + } + } + }, + "ScheduledAlertRuleTemplateProperties": { + "type": "object", + "description": "Schedule alert rule template property bag.", + "properties": { + "severity": { + "$ref": "#/definitions/AlertSeverity", + "description": "The severity for alerts created by this alert rule." + }, + "query": { "type": "string", - "description": "The reason the case was closed", - "enum": [ - "Resolved", - "Dismissed", - "Other" + "description": "The query that creates alerts for this rule." + }, + "queryFrequency": { + "type": "string", + "format": "duration", + "description": "The frequency (in ISO 8601 duration format) for this alert rule to run." + }, + "queryPeriod": { + "type": "string", + "format": "duration", + "description": "The period (in ISO 8601 duration format) that this alert rule looks at." + }, + "triggerOperator": { + "$ref": "#/definitions/AlertRuleTriggerOperator", + "description": "The operation against the threshold that triggers alert rule." + }, + "triggerThreshold": { + "type": "integer", + "description": "The threshold triggers this alert rule." + } + } + }, + "FilterAlertRuleTemplate": { + "x-ms-discriminator-value": "Filter", + "type": "object", + "description": "Represents filter alert rule template.", + "allOf": [ + { + "$ref": "#/definitions/AlertRuleTemplate" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Filter alert rule template properties", + "allOf": [ + { + "$ref": "#/definitions/BaseAlertRuleTemplateProperties" + }, + { + "$ref": "#/definitions/FilterAlertRuleTemplateProperties" + } ], - "x-ms-enum": { - "name": "CloseReason", - "modelAsString": true, - "values": [ - { - "value": "Resolved", - "description": "Case was resolved" - }, - { - "value": "Dismissed", - "description": "Case was dismissed" - }, - { - "value": "Other", - "description": "Case was closed for another reason" - } - ] + "required": [ + "displayName", + "description", + "createdDateUTC", + "status", + "alertRulesCreatedByTemplateCount", + "filterProduct" + ] + } + } + }, + "FilterAlertRuleTemplateProperties": { + "type": "object", + "description": "Filter alert rule template property bag.", + "properties": { + "filterProduct": { + "type": "string", + "description": "The filter product name for this template rule." + }, + "filterSeverities": { + "type": "array", + "items": { + "$ref": "#/definitions/AlertSeverity" + }, + "description": "the alert’s severities on which the cases will be generated" + }, + "filterTitles": { + "type": "array", + "items": { + "type": "string" + }, + "description": "the alert’s titles on which the cases will be generated" + } + } + }, + "FusionAlertRuleTemplate": { + "x-ms-discriminator-value": "Fusion", + "type": "object", + "description": "Represents fusion alert rule template.", + "allOf": [ + { + "$ref": "#/definitions/AlertRuleTemplate" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Fusion alert rule template properties", + "allOf": [ + { + "$ref": "#/definitions/BaseAlertRuleTemplateProperties" + }, + { + "$ref": "#/definitions/FusionAlertRuleTemplateProperties" + } + ], + "required": [ + "displayName", + "description", + "createdDateUTC", + "status", + "alertRulesCreatedByTemplateCount" + ] + } + } + }, + "FusionAlertRuleTemplateProperties": { + "type": "object", + "description": "Filter alert rule template property bag.", + "properties": { + "severity": { + "$ref": "#/definitions/AlertSeverity", + "description": "The severity for alerts created by this alert rule." + } + } + }, + "AlertSeverity": { + "type": "string", + "description": "The severity of the alert", + "enum": [ + "High", + "Medium", + "Low", + "Informational" + ], + "x-ms-enum": { + "name": "AlertSeverity", + "modelAsString": false, + "values": [ + { + "value": "High", + "description": "High severity" + }, + { + "value": "Medium", + "description": "Medium severity" + }, + { + "value": "Low", + "description": "Low severity" + }, + { + "value": "Informational", + "description": "Informational severity" + } + ] + } + }, + "ActionsList": { + "description": "List all the actions.", + "properties": { + "nextLink": { + "readOnly": true, + "description": "URL to fetch the next set of actions.", + "type": "string" + }, + "value": { + "description": "Array of actions.", + "type": "array", + "items": { + "$ref": "#/definitions/Action" } } }, "required": [ - "title", - "severity", - "status" + "value" ] }, - "BookmarkList": { - "description": "List all the bookmarks.", + "Action": { + "type": "object", + "description": "Action for alert rule.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "etag": { + "type": "string", + "description": "Etag of the action." + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Action properties", + "$ref": "#/definitions/ActionProperties" + } + } + }, + "ActionProperties": { + "type": "object", + "description": "Action property bag.", + "properties": { + "triggerUri": { + "type": "string", + "description": "The uri for the action to trigger." + } + } + }, + "CaseList": { + "description": "List all the cases.", "properties": { "nextLink": { "readOnly": true, @@ -2070,10 +2586,10 @@ "type": "string" }, "value": { - "description": "Array of bookmarks.", + "description": "Array of cases.", "type": "array", "items": { - "$ref": "#/definitions/Bookmark" + "$ref": "#/definitions/Case" } } }, @@ -2081,9 +2597,9 @@ "value" ] }, - "Bookmark": { + "Case": { "type": "object", - "description": "Represents a bookmark in Azure Security Insights.", + "description": "Represents a case in Azure Security Insights.", "allOf": [ { "$ref": "#/definitions/Resource" @@ -2092,480 +2608,1903 @@ "properties": { "etag": { "type": "string", - "description": "Etag of the bookmark." + "description": "Etag of the alert rule." }, "properties": { "x-ms-client-flatten": true, - "description": "Bookmark properties", - "$ref": "#/definitions/BookmarkProperties" + "description": "Case properties", + "$ref": "#/definitions/CaseProperties" } } }, - "BookmarkProperties": { + "CaseProperties": { "type": "object", - "description": "Describes bookmark properties", + "description": "Describes case properties", "properties": { - "displayName": { - "type": "string", - "description": "The display name of the bookmark" - }, "lastUpdatedTimeUtc": { "type": "string", "format": "date-time", - "description": "The last time the bookmark was updated" + "description": "The last time the case was updated", + "readOnly": true }, "createdTimeUtc": { "type": "string", "format": "date-time", - "description": "The time the bookmark was created" + "description": "The time the case was created", + "readOnly": true }, - "createdBy": { + "endTimeUtc": { + "type": "string", + "format": "date-time", + "description": "The end time of the case" + }, + "startTimeUtc": { + "type": "string", + "format": "date-time", + "description": "The start time of the case" + }, + "labels": { + "type": "array", + "items": { + "$ref": "#/definitions/Label" + }, + "description": "List of labels relevant to this case" + }, + "description": { + "type": "string", + "description": "The description of the case" + }, + "title": { + "type": "string", + "description": "The title of the case" + }, + "owner": { "type": "object", - "description": "Describes a user that created the bookmark", + "description": "Describes a user that the case is assigned to", "$ref": "#/definitions/UserInfo" }, - "updatedBy": { - "type": "object", - "description": "Describes a user that updated the bookmark", - "$ref": "#/definitions/UserInfo" + "severity": { + "type": "string", + "description": "The severity of the case", + "enum": [ + "Critical", + "High", + "Medium", + "Low", + "Informational" + ], + "x-ms-enum": { + "name": "CaseSeverity", + "modelAsString": true, + "values": [ + { + "value": "Critical", + "description": "Critical severity" + }, + { + "value": "High", + "description": "High severity" + }, + { + "value": "Medium", + "description": "Medium severity" + }, + { + "value": "Low", + "description": "Low severity" + }, + { + "value": "Informational", + "description": "Informational severity" + } + ] + } + }, + "status": { + "type": "string", + "description": "The status of the case", + "enum": [ + "Draft", + "New", + "InProgress", + "Closed" + ], + "x-ms-enum": { + "name": "CaseStatus", + "modelAsString": true, + "values": [ + { + "value": "Draft", + "description": "Case that wasn't promoted yet to active" + }, + { + "value": "New", + "description": "An active case which isn't handled currently" + }, + { + "value": "InProgress", + "description": "An active case which is handled" + }, + { + "value": "Closed", + "description": "A non active case" + } + ] + } + }, + "closeReason": { + "type": "string", + "description": "The reason the case was closed", + "enum": [ + "Resolved", + "Dismissed", + "TruePositive", + "FalsePositive", + "Other" + ], + "x-ms-enum": { + "name": "CloseReason", + "modelAsString": true, + "values": [ + { + "value": "Resolved", + "description": "Case was resolved" + }, + { + "value": "Dismissed", + "description": "Case was dismissed" + }, + { + "value": "TruePositive", + "description": "Case was true positive" + }, + { + "value": "FalsePositive", + "description": "Case was false positive" + }, + { + "value": "Other", + "description": "Case was closed for another reason" + } + ] + } + }, + "closedReasonText": { + "type": "string", + "description": "the case close reason details" + }, + "relatedAlertIds": { + "type": "array", + "items": { + "type": "string", + "description": "related alert id" + }, + "description": "List of related alert identifiers", + "readOnly": true + }, + "caseNumber": { + "type": "integer", + "description": "a sequential number", + "readOnly": true + }, + "lastComment": { + "type": "string", + "description": "the last comment in the case", + "readOnly": true + }, + "totalComments": { + "type": "integer", + "description": "the number of total comments in the case", + "readOnly": true + } + }, + "required": [ + "title", + "severity", + "status", + "startTimeUtc" + ] + }, + "CaseCommentList": { + "description": "List of case comments.", + "properties": { + "nextLink": { + "readOnly": true, + "description": "URL to fetch the next set of comments.", + "type": "string" + }, + "value": { + "description": "Array of comments.", + "type": "array", + "items": { + "$ref": "#/definitions/CaseComment" + } + } + }, + "required": [ + "value" + ] + }, + "CaseComment": { + "type": "object", + "description": "Represents a case comment", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Case comment properties", + "$ref": "#/definitions/CaseCommentProperties" + } + } + }, + "CaseCommentProperties": { + "type": "object", + "description": "Case comment property bag.", + "properties": { + "message": { + "type": "string", + "description": "The comment message" + }, + "createdTimeUtc": { + "type": "string", + "format": "date-time", + "description": "The time the comment was created", + "readOnly": true + }, + "userInfo": { + "type": "object", + "description": "Describes the user that created the comment", + "$ref": "#/definitions/UserInfo", + "readOnly": true + } + }, + "required": [ + "message" + ] + }, + "BookmarkList": { + "description": "List all the bookmarks.", + "properties": { + "nextLink": { + "readOnly": true, + "description": "URL to fetch the next set of cases.", + "type": "string" + }, + "value": { + "description": "Array of bookmarks.", + "type": "array", + "items": { + "$ref": "#/definitions/Bookmark" + } + } + }, + "required": [ + "value" + ] + }, + "Bookmark": { + "type": "object", + "description": "Represents a bookmark in Azure Security Insights.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "etag": { + "type": "string", + "description": "Etag of the bookmark." + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Bookmark properties", + "$ref": "#/definitions/BookmarkProperties" + } + } + }, + "BookmarkProperties": { + "type": "object", + "description": "Describes bookmark properties", + "properties": { + "displayName": { + "type": "string", + "description": "The display name of the bookmark" + }, + "updated": { + "type": "string", + "format": "date-time", + "description": "The last time the bookmark was updated" + }, + "created": { + "type": "string", + "format": "date-time", + "description": "The time the bookmark was created" + }, + "createdBy": { + "type": "object", + "description": "Describes a user that created the bookmark", + "$ref": "#/definitions/UserInfo" + }, + "updatedBy": { + "type": "object", + "description": "Describes a user that updated the bookmark", + "$ref": "#/definitions/UserInfo" + }, + "notes": { + "type": "string", + "description": "The notes of the bookmark" + }, + "labels": { + "type": "array", + "items": { + "$ref": "#/definitions/Label" + }, + "description": "List of labels relevant to this bookmark" + }, + "query": { + "type": "string", + "description": "The query of the bookmark." + }, + "queryResult": { + "type": "string", + "description": "The query result of the bookmark." + } + }, + "required": [ + "displayName", + "query" + ] + }, + "UserInfo": { + "type": "object", + "description": "User information that made some action", + "properties": { + "objectId": { + "type": "string", + "format": "uuid", + "x-nullable": true, + "description": "The object id of the user." + }, + "email": { + "type": "string", + "description": "The email of the user.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of the user.", + "readOnly": true + } + }, + "required": [ + "objectId" + ] + }, + "Label": { + "description": "Label that will be used to tag and filter on.", + "type": "string" + }, + "DataConnectorList": { + "description": "List all the data connectors.", + "properties": { + "nextLink": { + "readOnly": true, + "description": "URL to fetch the next set of data connectors.", + "type": "string" + }, + "value": { + "description": "Array of data connectors.", + "type": "array", + "items": { + "$ref": "#/definitions/DataConnector" + } + } + }, + "required": [ + "value" + ] + }, + "DataConnector": { + "type": "object", + "description": "Data connector.", + "discriminator": "kind", + "allOf": [ + { + "$ref": "#/definitions/Resource" + }, + { + "$ref": "#/definitions/DataConnectorKind" + } + ], + "properties": { + "etag": { + "type": "string", + "description": "Etag of the data connector." + } + } + }, + "DataConnectorKind": { + "type": "object", + "description": "Describes an Azure resource with kind.", + "properties": { + "kind": { + "type": "string", + "description": "The kind of the data connector", + "enum": [ + "AzureActiveDirectory", + "AzureSecurityCenter", + "MicrosoftCloudAppSecurity", + "ThreatIntelligence", + "Office365", + "AmazonWebServicesCloudTrail", + "AzureAdvancedThreatProtection", + "MicrosoftDefenderAdvancedThreatProtection" + ], + "x-ms-enum": { + "name": "DataConnectorKind", + "modelAsString": true, + "values": [ + { + "value": "AzureActiveDirectory" + }, + { + "value": "AzureSecurityCenter" + }, + { + "value": "MicrosoftCloudAppSecurity" + }, + { + "value": "ThreatIntelligence" + }, + { + "value": "Office365" + }, + { + "value": "AmazonWebServicesCloudTrail" + }, + { + "value": "AzureAdvancedThreatProtection" + }, + { + "value": "MicrosoftDefenderAdvancedThreatProtection" + } + ] + } + } + } + }, + "DataConnectorTenantId": { + "type": "object", + "description": "Properties data connector on tenant level.", + "properties": { + "tenantId": { + "type": "string", + "description": "The tenant id to connect to, and get the data from." + } + } + }, + "OfficeDataConnector": { + "x-ms-discriminator-value": "Office365", + "type": "object", + "description": "Represents office data connector.", + "allOf": [ + { + "$ref": "#/definitions/DataConnector" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Office data connector properties.", + "$ref": "#/definitions/OfficeDataConnectorProperties" + } + } + }, + "OfficeDataConnectorProperties": { + "type": "object", + "description": "Office data connector properties.", + "allOf": [ + { + "$ref": "#/definitions/DataConnectorTenantId" + } + ], + "properties": { + "dataTypes": { + "description": "The available data types for the connector.", + "$ref": "#/definitions/OfficeDataConnectorDataTypes" + } + } + }, + "OfficeDataConnectorDataTypes": { + "type": "object", + "description": "The available data types for office data connector.", + "properties": { + "sharePoint": { + "type": "object", + "description": "SharePoint data type connection.", + "allOf": [ + { + "$ref": "#/definitions/DataConnectorDataTypeCommon" + } + ] + }, + "exchange": { + "type": "object", + "description": "Exchange data type connection.", + "allOf": [ + { + "$ref": "#/definitions/DataConnectorDataTypeCommon" + } + ] + } + } + }, + "TIDataConnector": { + "x-ms-discriminator-value": "ThreatIntelligence", + "type": "object", + "description": "Represents threat intelligence data connector.", + "allOf": [ + { + "$ref": "#/definitions/DataConnector" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "TI (Threat Intelligence) data connector properties.", + "$ref": "#/definitions/TIDataConnectorProperties" + } + } + }, + "TIDataConnectorProperties": { + "type": "object", + "description": "TI (Threat Intelligence) data connector properties.", + "allOf": [ + { + "$ref": "#/definitions/DataConnectorTenantId" + } + ], + "properties": { + "dataTypes": { + "description": "The available data types for the connector.", + "$ref": "#/definitions/TIDataConnectorDataTypes" + } + } + }, + "TIDataConnectorDataTypes": { + "type": "object", + "description": "The available data types for TI (Threat Intelligence) data connector.", + "properties": { + "indicators": { + "type": "object", + "description": "Data type for indicators connection.", + "allOf": [ + { + "$ref": "#/definitions/DataConnectorDataTypeCommon" + } + ] + } + } + }, + "AwsCloudTrailDataConnector": { + "x-ms-discriminator-value": "AmazonWebServicesCloudTrail", + "type": "object", + "description": "Represents Amazon Web Services CloudTrail data connector.", + "allOf": [ + { + "$ref": "#/definitions/DataConnector" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Amazon Web Services CloudTrail data connector properties.", + "$ref": "#/definitions/AwsCloudTrailDataConnectorProperties" + } + } + }, + "AwsCloudTrailDataConnectorProperties": { + "type": "object", + "description": "Amazon Web Services CloudTrail data connector properties.", + "properties": { + "awsRoleArn": { + "type": "string", + "description": "The Aws Role Arn (with CloudTrailReadOnly policy) that is used to access the Aws account." + }, + "dataTypes": { + "description": "The available data types for the connector.", + "$ref": "#/definitions/AwsCloudTrailDataConnectorDataTypes" + } + } + }, + "AwsCloudTrailDataConnectorDataTypes": { + "type": "object", + "description": "The available data types for Amazon Web Services CloudTrail data connector.", + "properties": { + "logs": { + "type": "object", + "description": "Logs data type.", + "allOf": [ + { + "$ref": "#/definitions/DataConnectorDataTypeCommon" + } + ] + } + } + }, + "AADDataConnector": { + "x-ms-discriminator-value": "AzureActiveDirectory", + "type": "object", + "description": "Represents AAD (Azure Active Directory) data connector.", + "allOf": [ + { + "$ref": "#/definitions/DataConnector" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "AAD (Azure Active Directory) data connector properties.", + "$ref": "#/definitions/AADDataConnectorProperties" + } + } + }, + "AADDataConnectorProperties": { + "type": "object", + "description": "AAD (Azure Active Directory) data connector properties.", + "allOf": [ + { + "$ref": "#/definitions/DataConnectorTenantId" + }, + { + "$ref": "#/definitions/DataConnectorWithAlertsProperties" + } + ] + }, + "ASCDataConnector": { + "x-ms-discriminator-value": "AzureSecurityCenter", + "type": "object", + "description": "Represents ASC (Azure Security Center) data connector.", + "allOf": [ + { + "$ref": "#/definitions/DataConnector" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "ASC (Azure Security Center) data connector properties.", + "$ref": "#/definitions/ASCDataConnectorProperties" + } + } + }, + "ASCDataConnectorProperties": { + "type": "object", + "description": "MCAS (Microsoft Cloud App Security) data connector properties.", + "allOf": [ + { + "$ref": "#/definitions/DataConnectorWithAlertsProperties" + } + ], + "properties": { + "subscriptionId": { + "type": "string", + "description": "The subscription id to connect to, and get the data from." + } + } + }, + "MCASDataConnector": { + "x-ms-discriminator-value": "MicrosoftCloudAppSecurity", + "type": "object", + "description": "Represents MCAS (Microsoft Cloud App Security) data connector.", + "allOf": [ + { + "$ref": "#/definitions/DataConnector" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "MCAS (Microsoft Cloud App Security) data connector properties.", + "$ref": "#/definitions/MCASDataConnectorProperties" + } + } + }, + "MCASDataConnectorProperties": { + "type": "object", + "description": "MCAS (Microsoft Cloud App Security) data connector properties.", + "allOf": [ + { + "$ref": "#/definitions/DataConnectorTenantId" + } + ], + "properties": { + "dataTypes": { + "description": "The available data types for the connector.", + "$ref": "#/definitions/MCASDataConnectorDataTypes" + } + } + }, + "MCASDataConnectorDataTypes": { + "type": "object", + "description": "The available data types for MCAS (Microsoft Cloud App Security) data connector.", + "allOf": [ + { + "$ref": "#/definitions/AlertsDataTypeOfDataConnector" + } + ], + "properties": { + "discoveryLogs": { + "type": "object", + "description": "Discovery log data type connection.", + "allOf": [ + { + "$ref": "#/definitions/DataConnectorDataTypeCommon" + } + ] + } + } + }, + "AATPDataConnector": { + "x-ms-discriminator-value": "AzureAdvancedThreatProtection", + "type": "object", + "description": "Represents AATP (Azure Advanced Threat Protection) data connector.", + "allOf": [ + { + "$ref": "#/definitions/DataConnector" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "AATP (Azure Advanced Threat Protection) data connector properties.", + "$ref": "#/definitions/AATPDataConnectorProperties" + } + } + }, + "AATPDataConnectorProperties": { + "type": "object", + "description": "AATP (Azure Advanced Threat Protection) data connector properties.", + "allOf": [ + { + "$ref": "#/definitions/DataConnectorTenantId" + }, + { + "$ref": "#/definitions/DataConnectorWithAlertsProperties" + } + ] + }, + "MDATPDataConnector": { + "x-ms-discriminator-value": "MicrosoftDefenderAdvancedThreatProtection", + "type": "object", + "description": "Represents MDATP (Microsoft Defender Advanced Threat Protection) data connector.", + "allOf": [ + { + "$ref": "#/definitions/DataConnector" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "MDATP (Microsoft Defender Advanced Threat Protection) data connector properties.", + "$ref": "#/definitions/MDATPDataConnectorProperties" + } + } + }, + "MDATPDataConnectorProperties": { + "type": "object", + "description": "MDATP (Microsoft Defender Advanced Threat Protection) data connector properties.", + "allOf": [ + { + "$ref": "#/definitions/DataConnectorTenantId" + }, + { + "$ref": "#/definitions/DataConnectorWithAlertsProperties" + } + ] + }, + "DataConnectorWithAlertsProperties": { + "type": "object", + "description": "Data connector properties.", + "properties": { + "dataTypes": { + "description": "The available data types for the connector.", + "$ref": "#/definitions/AlertsDataTypeOfDataConnector" + } + } + }, + "AlertsDataTypeOfDataConnector": { + "type": "object", + "description": "Alerts data type for data connectors.", + "properties": { + "alerts": { + "type": "object", + "description": "Alerts data type connection.", + "allOf": [ + { + "$ref": "#/definitions/DataConnectorDataTypeCommon" + } + ] + } + } + }, + "DataConnectorDataTypeCommon": { + "type": "object", + "description": "Common field for data type in data connectors.", + "properties": { + "state": { + "type": "string", + "description": "Describe whether this data type connection is enabled or not.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "DataTypeState", + "modelAsString": true + } + } + } + }, + "EntityList": { + "description": "List of all the entities.", + "properties": { + "nextLink": { + "readOnly": true, + "description": "URL to fetch the next set of entities.", + "type": "string" + }, + "value": { + "description": "Array of entities.", + "type": "array", + "items": { + "$ref": "#/definitions/Entity" + } + } + }, + "required": [ + "value" + ] + }, + "Entity": { + "type": "object", + "description": "Specific entity.", + "discriminator": "kind", + "allOf": [ + { + "$ref": "#/definitions/Resource" + }, + { + "$ref": "#/definitions/EntityKind" + } + ] + }, + "EntityKind": { + "type": "object", + "description": "Describes an entity with kind.", + "properties": { + "kind": { + "description": "The kind of the entity.", + "$ref": "#/definitions/EntityInnerKind" + } + } + }, + "EntityInnerKind": { + "type": "string", + "description": "The kind of the entity", + "enum": [ + "Account", + "Host", + "File", + "AzureResource", + "CloudApplication", + "DnsResolution", + "FileHash", + "Ip", + "Malware", + "Process", + "RegistryKey", + "RegistryValue", + "SecurityGroup", + "Url", + "SecurityAlert", + "Bookmark" + ], + "x-ms-enum": { + "name": "EntityKind", + "modelAsString": true, + "values": [ + { + "value": "Account", + "description": "Entity represents account in the system." + }, + { + "value": "Host", + "description": "Entity represents host in the system." + }, + { + "value": "File", + "description": "Entity represents file in the system." + }, + { + "value": "AzureResource", + "description": "Entity represents azure resource in the system." + }, + { + "value": "CloudApplication", + "description": "Entity represents cloud application in the system." + }, + { + "value": "DnsResolution", + "description": "Entity represents dns resolution in the system." + }, + { + "value": "FileHash", + "description": "Entity represents file hash in the system." + }, + { + "value": "Ip", + "description": "Entity represents ip in the system." + }, + { + "value": "Malware", + "description": "Entity represents malware in the system." + }, + { + "value": "Process", + "description": "Entity represents process in the system." + }, + { + "value": "RegistryKey", + "description": "Entity represents registry key in the system." + }, + { + "value": "RegistryValue", + "description": "Entity represents registry value in the system." + }, + { + "value": "SecurityGroup", + "description": "Entity represents security group in the system." + }, + { + "value": "Url", + "description": "Entity represents url in the system." + }, + { + "value": "SecurityAlert", + "description": "Entity represents security alert in the system." + }, + { + "value": "Bookmark", + "description": "Entity represents bookmark in the system." + } + ] + } + }, + "EntityCommonProperties": { + "type": "object", + "description": "Entity common property bag.", + "properties": { + "friendlyName": { + "type": "string", + "readOnly": true, + "description": "The graph item display name which is a short humanly readable description of the graph item instance. This property is optional and might be system generated." + }, + "additionalData": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "readOnly": true, + "description": "A bag of custom fields that should be part of the entity and will be presented to the user." + } + } + }, + "AccountEntity": { + "x-ms-discriminator-value": "Account", + "type": "object", + "description": "Represents an account entity.", + "allOf": [ + { + "$ref": "#/definitions/Entity" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Account entity properties", + "$ref": "#/definitions/AccountEntityProperties" + } + } + }, + "AccountEntityProperties": { + "type": "object", + "description": "Account entity property bag.", + "allOf": [ + { + "$ref": "#/definitions/EntityCommonProperties" + } + ], + "properties": { + "accountName": { + "type": "string", + "readOnly": true, + "description": "The name of the account. This field should hold only the name without any domain added to it, i.e. administrator." + }, + "ntDomain": { + "type": "string", + "readOnly": true, + "description": "The NetBIOS domain name as it appears in the alert format – domain\\username. Examples: NT AUTHORITY." + }, + "upnSuffix": { + "type": "string", + "readOnly": true, + "description": "The user principal name suffix for the account, in some cases it is also the domain name. Examples: contoso.com." + }, + "sid": { + "type": "string", + "readOnly": true, + "description": "The account security identifier, e.g. S-1-5-18." + }, + "aadTenantId": { + "type": "string", + "readOnly": true, + "description": "The Azure Active Directory tenant id." + }, + "aadUserId": { + "type": "string", + "readOnly": true, + "description": "The Azure Active Directory user id." + }, + "puid": { + "type": "string", + "readOnly": true, + "description": "The Azure Active Directory Passport User ID." + }, + "isDomainJoined": { + "type": "boolean", + "readOnly": true, + "description": "Determines whether this is a domain account." + }, + "displayName": { + "type": "string", + "readOnly": true, + "description": "The display name of the account." + }, + "objectGuid": { + "type": "string", + "readOnly": true, + "format": "uuid", + "description": "The objectGUID attribute is a single-value attribute that is the unique identifier for the object, assigned by active directory." + }, + "hostEntityId": { + "type": "string", + "readOnly": true, + "description": "The Host entity id that contains the account in case it is a local account (not domain joined)" + } + } + }, + "HostEntity": { + "x-ms-discriminator-value": "Host", + "type": "object", + "description": "Represents a host entity.", + "allOf": [ + { + "$ref": "#/definitions/Entity" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Host entity properties", + "$ref": "#/definitions/HostEntityProperties" + } + } + }, + "HostEntityProperties": { + "type": "object", + "description": "Host entity property bag.", + "allOf": [ + { + "$ref": "#/definitions/EntityCommonProperties" + } + ], + "properties": { + "dnsDomain": { + "type": "string", + "readOnly": true, + "description": "The DNS domain that this host belongs to. Should contain the compete DNS suffix for the domain" + }, + "ntDomain": { + "type": "string", + "readOnly": true, + "description": "The NT domain that this host belongs to." + }, + "hostName": { + "type": "string", + "readOnly": true, + "description": "The hostname without the domain suffix." + }, + "netBiosName": { + "type": "string", + "readOnly": true, + "description": "The host name (pre-windows2000)." + }, + "azureID": { + "type": "string", + "readOnly": true, + "description": "The azure resource id of the VM." + }, + "omsAgentID": { + "type": "string", + "readOnly": true, + "description": "The OMS agent id, if the host has OMS agent installed." + }, + "osFamily": { + "type": "string", + "enum": [ + "Linux", + "Windows", + "Android", + "IOS" + ], + "x-ms-enum": { + "name": "OSFamily", + "modelAsString": false, + "values": [ + { + "value": "Linux", + "description": "Host with Linux operating system." + }, + { + "value": "Windows", + "description": "Host with Windows operating system." + }, + { + "value": "Android", + "description": "Host with Android operating system." + }, + { + "value": "IOS", + "description": "Host with IOS operating system." + } + ] + }, + "description": "The operating system type." + }, + "osVersion": { + "type": "string", + "readOnly": true, + "description": "A free text representation of the operating system. This field is meant to hold specific versions the are more fine grained than OSFamily or future values not supported by OSFamily enumeration" + }, + "isDomainJoined": { + "type": "boolean", + "readOnly": true, + "description": "Determines whether this host belongs to a domain." + } + } + }, + "FileEntity": { + "x-ms-discriminator-value": "File", + "type": "object", + "description": "Represents a file entity.", + "allOf": [ + { + "$ref": "#/definitions/Entity" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "File entity properties", + "$ref": "#/definitions/FileEntityProperties" + } + } + }, + "FileEntityProperties": { + "type": "object", + "description": "File entity property bag.", + "allOf": [ + { + "$ref": "#/definitions/EntityCommonProperties" + } + ], + "properties": { + "directory": { + "type": "string", + "readOnly": true, + "description": "The full path to the file." + }, + "fileName": { + "type": "string", + "readOnly": true, + "description": "The file name without path (some alerts might not include path)." + }, + "hostEntityId": { + "type": "string", + "readOnly": true, + "description": "The Host entity id which the file belongs to" + }, + "fileHashEntityIds": { + "type": "array", + "readOnly": true, + "items": { + "description": "file hash id", + "type": "string" + }, + "description": "The file hash entity identifiers associated with this file" + } + } + }, + "SecurityAlert": { + "x-ms-discriminator-value": "SecurityAlert", + "type": "object", + "description": "Represents a security alert entity.", + "allOf": [ + { + "$ref": "#/definitions/Entity" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "SecurityAlert entity properties", + "$ref": "#/definitions/SecurityAlertProperties" + } + } + }, + "SecurityAlertProperties": { + "type": "object", + "description": "SecurityAlert entity property bag.", + "allOf": [ + { + "$ref": "#/definitions/EntityCommonProperties" + } + ], + "properties": { + "systemAlertId": { + "type": "string", + "readOnly": true, + "description": "Holds the product identifier of the alert for the product." + }, + "confidenceReasons": { + "type": "array", + "readOnly": true, + "description": "The confidence reasons", + "items": { + "type": "object", + "description": "confidence reason item", + "properties": { + "reasonType": { + "type": "string", + "readOnly": true, + "description": "The type (category) of the reason" + }, + "reason": { + "type": "string", + "readOnly": true, + "description": "The reason's description" + } + } + } + }, + "confidenceScoreStatus": { + "type": "string", + "description": "The confidence score calculation status, i.e. indicating if score calculation is pending for this alert, not applicable or final.", + "readOnly": true, + "enum": [ + "NotApplicable", + "InProcess", + "NotFinal", + "Final" + ], + "x-ms-enum": { + "name": "ConfidenceScoreStatus", + "modelAsString": true, + "values": [ + { + "value": "NotApplicable", + "description": "Score will not be calculated for this alert as it is not supported by virtual analyst" + }, + { + "value": "InProcess", + "description": "No score was set yet and calculation is in progress" + }, + { + "value": "NotFinal", + "description": "Score is calculated and shown as part of the alert, but may be updated again at a later time following the processing of additional data" + }, + { + "value": "Final", + "description": "Final score was calculated and available" + } + ] + } + }, + "intent": { + "type": "string", + "description": "Holds the alert intent stage(s) mapping for this alert.", + "readOnly": true, + "enum": [ + "Unknown", + "Probing", + "Exploitation", + "Persistence", + "PrivilegeEscalation", + "DefenseEvasion", + "CredentialAccess", + "Discovery", + "LateralMovement", + "Execution", + "Collection", + "Exfiltration", + "CommandAndControl", + "Impact" + ], + "x-ms-enum": { + "name": "KillChainIntent", + "modelAsString": true, + "values": [ + { + "value": "Unknown", + "description": "The default value." + }, + { + "value": "Probing", + "description": "Probing could be an attempt to access a certain resource regardless of a malicious intent or a failed attempt to gain access to a target system to gather information prior to exploitation. This step is usually detected as an attempt originating from outside the network in attempt to scan the target system and find a way in." + }, + { + "value": "Exploitation", + "description": "Exploitation is the stage where an attacker manage to get foothold on the attacked resource. This stage is applicable not only for compute hosts, but also for resources such as user accounts, certificates etc. Adversaries will often be able to control the resource after this stage." + }, + { + "value": "Persistence", + "description": "Persistence is any access, action, or configuration change to a system that gives an adversary a persistent presence on that system. Adversaries will often need to maintain access to systems through interruptions such as system restarts, loss of credentials, or other failures that would require a remote access tool to restart or alternate backdoor for them to regain access." + }, + { + "value": "PrivilegeEscalation", + "description": "Privilege escalation is the result of actions that allow an adversary to obtain a higher level of permissions on a system or network. Certain tools or actions require a higher level of privilege to work and are likely necessary at many points throughout an operation. User accounts with permissions to access specific systems or perform specific functions necessary for adversaries to achieve their objective may also be considered an escalation of privilege." + }, + { + "value": "DefenseEvasion", + "description": "Defense evasion consists of techniques an adversary may use to evade detection or avoid other defenses. Sometimes these actions are the same as or variations of techniques in other categories that have the added benefit of subverting a particular defense or mitigation. " + }, + { + "value": "CredentialAccess", + "description": "Credential access represents techniques resulting in access to or control over system, domain, or service credentials that are used within an enterprise environment. Adversaries will likely attempt to obtain legitimate credentials from users or administrator accounts (local system administrator or domain users with administrator access) to use within the network. With sufficient access within a network, an adversary can create accounts for later use within the environment." + }, + { + "value": "Discovery", + "description": "Discovery consists of techniques that allow the adversary to gain knowledge about the system and internal network. When adversaries gain access to a new system, they must orient themselves to what they now have control of and what benefits operating from that system give to their current objective or overall goals during the intrusion. The operating system provides many native tools that aid in this post-compromise information-gathering phase." + }, + { + "value": "LateralMovement", + "description": "Lateral movement consists of techniques that enable an adversary to access and control remote systems on a network and could, but does not necessarily, include execution of tools on remote systems. The lateral movement techniques could allow an adversary to gather information from a system without needing additional tools, such as a remote access tool. An adversary can use lateral movement for many purposes, including remote Execution of tools, pivoting to additional systems, access to specific information or files, access to additional credentials, or to cause an effect." + }, + { + "value": "Execution", + "description": "The execution tactic represents techniques that result in execution of adversary-controlled code on a local or remote system. This tactic is often used in conjunction with lateral movement to expand access to remote systems on a network." + }, + { + "value": "Collection", + "description": "Collection consists of techniques used to identify and gather information, such as sensitive files, from a target network prior to exfiltration. This category also covers locations on a system or network where the adversary may look for information to exfiltrate." + }, + { + "value": "Exfiltration", + "description": "Exfiltration refers to techniques and attributes that result or aid in the adversary removing files and information from a target network. This category also covers locations on a system or network where the adversary may look for information to exfiltrate." + }, + { + "value": "CommandAndControl", + "description": "The command and control tactic represents how adversaries communicate with systems under their control within a target network." + }, + { + "value": "Impact", + "description": "The impact intent primary objective is to directly reduce the availability or integrity of a system, service, or network; including manipulation of data to impact a business or operational process. This would often refer to techniques such as ransom-ware, defacement, data manipulation and others." + } + ] + } + }, + "confidenceScore": { + "type": "number", + "format": "double", + "readOnly": true, + "description": "The confidence score of the alert." }, - "notes": { + "alertDisplayName": { "type": "string", - "description": "The notes of the bookmark" + "readOnly": true, + "description": "The display name of the alert." }, - "labels": { + "description": { + "type": "string", + "readOnly": true, + "description": "Alert description." + }, + "remediationSteps": { "type": "array", + "readOnly": true, + "description": "Manual action items to take to remediate the alert.", "items": { - "$ref": "#/definitions/Label" - }, - "description": "List of labels relevant to this bookmark" + "type": "string" + } }, - "query": { + "confidenceLevel": { "type": "string", - "description": "The query of the bookmark." - } - }, - "required": [ - "displayName", - "query" - ] - }, - "UserInfo": { - "type": "object", - "description": "User information that made some action", - "properties": { - "objectId": { + "description": "The confidence level of this alert.", + "readOnly": true, + "enum": [ + "Unknown", + "Low", + "High" + ], + "x-ms-enum": { + "name": "ConfidenceLevel", + "modelAsString": true, + "values": [ + { + "value": "Unknown", + "description": "Unknown confidence, the is the default value" + }, + { + "value": "Low", + "description": "Low confidence, meaning we have some doubts this is indeed malicious or part of an attack" + }, + { + "value": "High", + "description": "High confidence that the alert is true positive malicious" + } + ] + } + }, + "severity": { + "$ref": "#/definitions/AlertSeverity", + "description": "The severity of the alert" + }, + "vendorName": { "type": "string", - "format": "uuid", - "description": "The object id of the user." + "readOnly": true, + "description": "The name of the vendor that raise the alert." }, - "email": { + "productName": { "type": "string", - "description": "The email of the user." + "readOnly": true, + "description": "The name of the product which published this alert." }, - "name": { + "productComponentName": { "type": "string", - "description": "The name of the user." - } - } - }, - "Label": { - "description": "Label that will be used to tag and filter on.", - "type": "string" - }, - "DataConnectorList": { - "description": "List all the data connectors.", - "properties": { - "nextLink": { "readOnly": true, - "description": "URL to fetch the next set of data connectors.", - "type": "string" + "description": "The name of a component inside the product which generated the alert." }, - "value": { - "description": "Array of data connectors.", - "type": "array", - "items": { - "$ref": "#/definitions/DataConnector" - } - } - }, - "required": [ - "value" - ] - }, - "DataConnector": { - "type": "object", - "description": "Data connector.", - "discriminator": "kind", - "allOf": [ - { - "$ref": "#/definitions/Resource" + "alertType": { + "type": "string", + "readOnly": true, + "description": "The type name of the alert." }, - { - "$ref": "#/definitions/DataConnectorKind" - } - ], - "properties": { - "etag": { + "productVersion": { "type": "string", - "description": "Etag of the data connector." - } - } - }, - "DataConnectorKind": { - "type": "object", - "description": "Describes an Azure resource with kind.", - "properties": { - "kind": { + "readOnly": true, + "description": "The version of the product generating the alert." + }, + "processingEndTime": { "type": "string", - "description": "The kind of the data connector", + "format": "date-time", + "readOnly": true, + "description": "The time the alert was made available for consumption." + }, + "status": { + "type": "string", + "description": "The lifecycle status of the alert.", + "readOnly": true, "enum": [ - "AzureActiveDirectory", - "AzureSecurityCenter", - "MicrosoftCloudAppSecurity", - "ThreatIntelligence", - "Office365" + "Unknown", + "New", + "Resolved", + "Dismissed", + "InProgress" ], "x-ms-enum": { - "name": "DataConnectorKind", + "name": "AlertStatus", "modelAsString": true, "values": [ { - "value": "AzureActiveDirectory" + "value": "Unknown", + "description": "Unknown value" }, { - "value": "AzureSecurityCenter" + "value": "New", + "description": "New alert" }, { - "value": "MicrosoftCloudAppSecurity" + "value": "Resolved", + "description": "Alert closed after handling" }, { - "value": "ThreatIntelligence" + "value": "Dismissed", + "description": "Alert dismissed as false positive" }, { - "value": "Office365" + "value": "InProgress", + "description": "Alert is being handled" } ] } - } - } - }, - "DataConnectorTenantId": { - "type": "object", - "description": "Properties data connector on tenant level.", - "properties": { - "tenantId": { + }, + "endTimeUtc": { "type": "string", - "description": "The tenant id to connect to, and get the data from." + "format": "date-time", + "readOnly": true, + "description": "The impact end time of the alert (the time of the last event contributing to the alert)." + }, + "startTimeUtc": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The impact start time of the alert (the time of the first event contributing to the alert)." + }, + "timeGenerated": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The time the alert was generated." + }, + "compromisedEntity": { + "type": "string", + "readOnly": true, + "description": "Display name of the main entity being reported on." } } }, - "OfficeDataConnector": { - "x-ms-discriminator-value": "Office365", + "FileHashEntity": { + "x-ms-discriminator-value": "FileHash", "type": "object", - "description": "Represents office data connector.", + "description": "Represents a file hash entity.", "allOf": [ { - "$ref": "#/definitions/DataConnector" + "$ref": "#/definitions/Entity" } ], "properties": { "properties": { "x-ms-client-flatten": true, - "description": "Office data connector properties.", - "$ref": "#/definitions/OfficeDataConnectorProperties" + "description": "FileHash entity properties", + "$ref": "#/definitions/FileHashEntityProperties" } } }, - "OfficeDataConnectorProperties": { + "FileHashEntityProperties": { "type": "object", - "description": "Office data connector properties.", + "description": "FileHash entity property bag.", "allOf": [ { - "$ref": "#/definitions/DataConnectorTenantId" + "$ref": "#/definitions/EntityCommonProperties" } ], "properties": { - "dataTypes": { - "description": "The available data types for the connector.", - "$ref": "#/definitions/OfficeDataConnectorDataTypes" - } - } - }, - "OfficeDataConnectorDataTypes": { - "type": "object", - "description": "The available data types for office data connector.", - "properties": { - "sharePoint": { - "type": "object", - "description": "SharePoint data type connection.", - "allOf": [ - { - "$ref": "#/definitions/DataConnectorDataTypeCommon" - } - ] + "hashValue": { + "type": "string", + "readOnly": true, + "description": "The file hash value." }, - "exchange": { - "type": "object", - "description": "Exchange data type connection.", - "allOf": [ - { - "$ref": "#/definitions/DataConnectorDataTypeCommon" - } - ] + "algorithm": { + "type": "string", + "description": "The hash algorithm type.", + "readOnly": true, + "enum": [ + "Unknown", + "MD5", + "SHA1", + "SHA256", + "SHA256AC" + ], + "x-ms-enum": { + "name": "FileHashAlgorithm", + "modelAsString": true, + "values": [ + { + "value": "Unknown", + "description": "Unknown hash algorithm" + }, + { + "value": "MD5", + "description": "MD5 hash type" + }, + { + "value": "SHA1", + "description": "SHA1 hash type" + }, + { + "value": "SHA256", + "description": "SHA256 hash type" + }, + { + "value": "SHA256AC", + "description": "SHA256 Authenticode hash type" + } + ] + } } } }, - "TIDataConnector": { - "x-ms-discriminator-value": "ThreatIntelligence", + "MalwareEntity": { + "x-ms-discriminator-value": "Malware", "type": "object", - "description": "Represents threat intelligence data connector.", + "description": "Represents a malware entity.", "allOf": [ { - "$ref": "#/definitions/DataConnector" + "$ref": "#/definitions/Entity" } ], "properties": { "properties": { "x-ms-client-flatten": true, - "description": "TI (Threat Intelligence) data connector properties.", - "$ref": "#/definitions/TIDataConnectorProperties" + "description": "File entity properties", + "$ref": "#/definitions/MalwareEntityProperties" } } }, - "TIDataConnectorProperties": { + "MalwareEntityProperties": { "type": "object", - "description": "TI (Threat Intelligence) data connector properties.", + "description": "Malware entity property bag.", "allOf": [ { - "$ref": "#/definitions/DataConnectorTenantId" + "$ref": "#/definitions/EntityCommonProperties" } ], "properties": { - "dataTypes": { - "description": "The available data types for the connector.", - "$ref": "#/definitions/TIDataConnectorDataTypes" - } - } - }, - "TIDataConnectorDataTypes": { - "type": "object", - "description": "The available data types for TI (Threat Intelligence) data connector.", - "properties": { - "indicators": { - "type": "object", - "description": "Data type for indicators connection.", - "allOf": [ - { - "$ref": "#/definitions/DataConnectorDataTypeCommon" - } - ] + "malwareName": { + "type": "string", + "readOnly": true, + "description": "The malware name by the vendor, e.g. Win32/Toga!rfn" + }, + "category": { + "type": "string", + "readOnly": true, + "description": "The malware category by the vendor, e.g. Trojan" + }, + "fileEntityIds": { + "type": "array", + "readOnly": true, + "items": { + "description": "file entity id", + "type": "string" + }, + "description": "List of linked file entity identifiers on which the malware was found" + }, + "processEntityIds": { + "type": "array", + "readOnly": true, + "items": { + "description": "process entity id", + "type": "string" + }, + "description": "List of linked process entity identifiers on which the malware was found." } } }, - "AADDataConnector": { - "x-ms-discriminator-value": "AzureActiveDirectory", + "SecurityGroupEntity": { + "x-ms-discriminator-value": "SecurityGroup", "type": "object", - "description": "Represents AAD (Azure Active Directory) data connector.", + "description": "Represents a security group entity.", "allOf": [ { - "$ref": "#/definitions/DataConnector" + "$ref": "#/definitions/Entity" } ], "properties": { "properties": { "x-ms-client-flatten": true, - "description": "AAD (Azure Active Directory) data connector properties.", - "$ref": "#/definitions/AADDataConnectorProperties" + "description": "SecurityGroup entity properties", + "$ref": "#/definitions/SecurityGroupEntityProperties" } } }, - "AADDataConnectorProperties": { + "SecurityGroupEntityProperties": { "type": "object", - "description": "AAD (Azure Active Directory) data connector properties.", + "description": "SecurityGroup entity property bag.", "allOf": [ { - "$ref": "#/definitions/DataConnectorTenantId" + "$ref": "#/definitions/EntityCommonProperties" + } + ], + "properties": { + "distinguishedName": { + "type": "string", + "readOnly": true, + "description": "The group distinguished name" }, - { - "$ref": "#/definitions/DataConnectorWithAlertsProperties" + "sid": { + "type": "string", + "readOnly": true, + "description": "The SID attribute is a single-value attribute that specifies the security identifier (SID) of the group" + }, + "objectGuid": { + "type": "string", + "format": "uuid", + "readOnly": true, + "description": "A single-value attribute that is the unique identifier for the object, assigned by active directory." } - ] + } }, - "ASCDataConnector": { - "x-ms-discriminator-value": "AzureSecurityCenter", + "AzureResourceEntity": { + "x-ms-discriminator-value": "AzureResource", "type": "object", - "description": "Represents ASC (Azure Security Center) data connector.", + "description": "Represents an azure resource entity.", "allOf": [ { - "$ref": "#/definitions/DataConnector" + "$ref": "#/definitions/Entity" } ], "properties": { "properties": { "x-ms-client-flatten": true, - "description": "ASC (Azure Security Center) data connector properties.", - "$ref": "#/definitions/ASCDataConnectorProperties" + "description": "AzureResource entity properties", + "$ref": "#/definitions/AzureResourceEntityProperties" } } }, - "ASCDataConnectorProperties": { + "AzureResourceEntityProperties": { "type": "object", - "description": "MCAS (Microsoft Cloud App Security) data connector properties.", + "description": "AzureResource entity property bag.", "allOf": [ { - "$ref": "#/definitions/DataConnectorWithAlertsProperties" + "$ref": "#/definitions/EntityCommonProperties" } ], "properties": { - "subscriptionId": { + "resourceId": { "type": "string", - "description": "The subscription id to connect to, and get the data from." + "readOnly": true, + "description": "The azure resource id of the resource" } } }, - "MCASDataConnector": { - "x-ms-discriminator-value": "MicrosoftCloudAppSecurity", + "CloudApplicationEntity": { + "x-ms-discriminator-value": "CloudApplication", "type": "object", - "description": "Represents MCAS (Microsoft Cloud App Security) data connector.", + "description": "Represents a cloud application entity.", "allOf": [ { - "$ref": "#/definitions/DataConnector" + "$ref": "#/definitions/Entity" } ], "properties": { "properties": { "x-ms-client-flatten": true, - "description": "MCAS (Microsoft Cloud App Security) data connector properties.", - "$ref": "#/definitions/MCASDataConnectorProperties" + "description": "CloudApplication entity properties", + "$ref": "#/definitions/CloudApplicationEntityProperties" } } }, - "MCASDataConnectorProperties": { + "CloudApplicationEntityProperties": { "type": "object", - "description": "MCAS (Microsoft Cloud App Security) data connector properties.", + "description": "CloudApplication entity property bag.", "allOf": [ { - "$ref": "#/definitions/DataConnectorTenantId" - }, - { - "$ref": "#/definitions/DataConnectorWithAlertsProperties" + "$ref": "#/definitions/EntityCommonProperties" } - ] - }, - "DataConnectorWithAlertsProperties": { - "type": "object", - "description": "Data connector properties.", + ], "properties": { - "dataTypes": { - "description": "The available data types for the connector.", - "$ref": "#/definitions/AlertsDataTypeOfDataConnector" + "appId": { + "type": "integer", + "readOnly": true, + "description": "The technical identifier of the application." + }, + "appName": { + "type": "string", + "readOnly": true, + "description": "The name of the related cloud application." + }, + "instanceName": { + "type": "string", + "readOnly": true, + "description": "The user defined instance name of the cloud application. It is often used to distinguish between several applications of the same type that a customer has." } } }, - "AlertsDataTypeOfDataConnector": { + "ProcessEntity": { + "x-ms-discriminator-value": "Process", "type": "object", - "description": "Alerts data type for data connectors.", - "properties": { - "alerts": { - "type": "object", - "description": "Alerts data type connection.", - "allOf": [ - { - "$ref": "#/definitions/DataConnectorDataTypeCommon" - } - ] + "description": "Represents a process entity.", + "allOf": [ + { + "$ref": "#/definitions/Entity" } - } - }, - "DataConnectorDataTypeCommon": { - "type": "object", - "description": "Common field for data type in data connectors.", + ], "properties": { - "state": { - "type": "string", - "description": "Describe whether this data type connection is enabled or not.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "DataTypeState", - "modelAsString": true - } + "properties": { + "x-ms-client-flatten": true, + "description": "Process entity properties", + "$ref": "#/definitions/ProcessEntityProperties" } } }, - "EntityList": { - "description": "List of all the entities.", - "properties": { - "nextLink": { - "readOnly": true, - "description": "URL to fetch the next set of entities.", - "type": "string" - }, - "value": { - "description": "Array of entities.", - "type": "array", - "items": { - "$ref": "#/definitions/Entity" - } - } - }, - "required": [ - "value" - ] - }, - "Entity": { + "ProcessEntityProperties": { "type": "object", - "description": "Specific entity.", - "discriminator": "kind", + "description": "Process entity property bag.", "allOf": [ { - "$ref": "#/definitions/Resource" - }, - { - "$ref": "#/definitions/EntityKind" + "$ref": "#/definitions/EntityCommonProperties" } - ] - }, - "EntityKind": { - "type": "object", - "description": "Describes an Azure resource with kind.", + ], "properties": { - "kind": { + "processId": { + "type": "string", + "readOnly": true, + "description": "The process ID" + }, + "commandLine": { + "type": "string", + "readOnly": true, + "description": "The command line used to create the process" + }, + "elevationToken": { "type": "string", - "description": "The kind of the entity", "enum": [ - "Account", - "Host", - "File" + "Default", + "Full", + "Limited" ], "x-ms-enum": { - "name": "EntityKind", - "modelAsString": true, + "name": "ElevationToken", + "modelAsString": false, "values": [ { - "value": "Account", - "description": "Entity represents account in the system." + "value": "Default", + "description": "Default elevation token" }, { - "value": "Host", - "description": "Entity represents host in the system." + "value": "Full", + "description": "Full elevation token" }, { - "value": "File", - "description": "Entity represents file in the system." + "value": "Limited", + "description": "Limited elevation token" } ] - } + }, + "description": "The elevation token associated with the process." + }, + "creationTimeUtc": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The time when the process started to run" + }, + "imageFileEntityId": { + "type": "string", + "readOnly": true, + "description": "Image file entity id" + }, + "accountEntityId": { + "type": "string", + "readOnly": true, + "description": "The account entity id running the processes." + }, + "parentProcessEntityId": { + "type": "string", + "readOnly": true, + "description": "The parent process entity id." + }, + "hostEntityId": { + "type": "string", + "readOnly": true, + "description": "The host entity id on which the process was running" + }, + "hostLogonSessionEntityId": { + "type": "string", + "readOnly": true, + "description": "The session entity id in which the process was running" } } }, - "AccountEntity": { - "x-ms-discriminator-value": "Account", + "DnsEntity": { + "x-ms-discriminator-value": "DnsResolution", "type": "object", - "description": "Represents an account entity.", + "description": "Represents a dns entity.", "allOf": [ { "$ref": "#/definitions/Entity" @@ -2574,67 +4513,176 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "description": "Account entity properties", - "$ref": "#/definitions/AccountEntityProperties" + "description": "Dns entity properties", + "$ref": "#/definitions/DnsEntityProperties" } } }, - "AccountEntityProperties": { + "DnsEntityProperties": { "type": "object", - "description": "Account entity property bag.", + "description": "Dns entity property bag.", + "allOf": [ + { + "$ref": "#/definitions/EntityCommonProperties" + } + ], "properties": { - "accountName": { + "domainName": { "type": "string", "readOnly": true, - "description": "The name of the account. This field should hold only the name without any domain added to it, i.e. administrator." + "description": "The name of the dns record associated with the alert" }, - "ntDomain": { + "ipAddressEntityIds": { + "type": "array", + "readOnly": true, + "items": { + "description": "Ip entity id", + "type": "string" + }, + "description": "Ip entity identifiers for the resolved ip address." + }, + "dnsServerIpEntityId": { "type": "string", "readOnly": true, - "description": "The NetBIOS domain name as it appears in the alert format – domain\\username. Examples: NT AUTHORITY." + "description": "An ip entity id for the dns server resolving the request" }, - "upnSuffix": { + "hostIpAddressEntityId": { "type": "string", "readOnly": true, - "description": "The user principal name suffix for the account, in some cases it is also the domain name. Examples: contoso.com." + "description": "An ip entity id for the dns request client" + } + } + }, + "IpEntity": { + "x-ms-discriminator-value": "Ip", + "type": "object", + "description": "Represents an ip entity.", + "allOf": [ + { + "$ref": "#/definitions/Entity" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Ip entity properties", + "$ref": "#/definitions/IpEntityProperties" + } + } + }, + "IpEntityProperties": { + "type": "object", + "description": "Ip entity property bag.", + "allOf": [ + { + "$ref": "#/definitions/EntityCommonProperties" + } + ], + "properties": { + "address": { + "type": "string", + "readOnly": true, + "description": "The IP address as string, e.g. 127.0.0.1 (either in Ipv4 or Ipv6)" }, - "sid": { + "location": { + "$ref": "#/definitions/GeoLocation", + "description": "The geo-location context attached to the ip entity" + }, + "threatIntelligence": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ThreatIntelligence" + }, + "description": "A list of TI contexts attached to the ip entity." + } + } + }, + "GeoLocation": { + "type": "object", + "readOnly": true, + "description": "The geo-location context attached to the ip entity", + "properties": { + "countryCode": { "type": "string", "readOnly": true, - "description": "The account security identifier, e.g. S-1-5-18." + "description": "The country code according to ISO 3166 format" }, - "aadTenantId": { + "countryName": { "type": "string", "readOnly": true, - "description": "The Azure Active Directory tenant id." + "description": "Country name according to ISO 3166 Alpha 2: the lowercase of the English Short Name" }, - "aadUserId": { + "state": { "type": "string", "readOnly": true, - "description": "The Azure Active Directory user id." + "description": "State name" }, - "puid": { + "city": { + "type": "string", + "readOnly": true, + "description": "City name" + }, + "longitude": { + "type": "number", + "format": "double", + "readOnly": true, + "description": "The latitude of the identified location, expressed as a floating point number with range of - 90 to 90, with positive numbers representing North and negative numbers representing South. Latitude and longitude are derived from the city or postal code." + }, + "latitude": { + "type": "number", + "format": "double", + "readOnly": true, + "description": "The longitude of the identified location, expressed as a floating point number with range of -180 to 180, with positive numbers representing East and negative numbers representing West. Latitude and longitude are derived from the city or postal code." + }, + "asn": { + "type": "integer", + "readOnly": true, + "description": "Autonomous System Number" + } + } + }, + "ThreatIntelligence": { + "type": "object", + "description": "ThreatIntelligence property bag.", + "properties": { + "providerName": { + "type": "string", + "readOnly": true, + "description": "Name of the provider from whom this Threat Intelligence information was received" + }, + "threatType": { + "type": "string", + "readOnly": true, + "description": "Threat type (e.g. \"Botnet\")" + }, + "threatName": { "type": "string", "readOnly": true, - "description": "The Azure Active Directory Passport User ID." + "description": "Threat name (e.g. \"Jedobot malware\")" }, - "isDomainJoined": { - "type": "boolean", + "confidence": { + "type": "number", + "format": "double", "readOnly": true, - "description": "Determines whether this is a domain account." + "description": "Confidence (must be between 0 and 1)" }, - "objectGuid": { + "reportLink": { "type": "string", "readOnly": true, - "format": "uuid", - "description": "The objectGUID attribute is a single-value attribute that is the unique identifier for the object, assigned by active directory." + "description": "Report link" + }, + "threatDescription": { + "type": "string", + "readOnly": true, + "description": "Threat description (free text)" } } }, - "HostEntity": { - "x-ms-discriminator-value": "Host", + "RegistryKeyEntity": { + "x-ms-discriminator-value": "RegistryKey", "type": "object", - "description": "Represents a host entity.", + "description": "Represents a registry key entity.", "allOf": [ { "$ref": "#/definitions/Entity" @@ -2643,93 +4691,190 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "description": "Host entity properties", - "$ref": "#/definitions/HostEntityProperties" + "description": "RegistryKey entity properties", + "$ref": "#/definitions/RegistryKeyEntityProperties" } } }, - "HostEntityProperties": { + "RegistryKeyEntityProperties": { "type": "object", - "description": "Host entity property bag.", + "description": "RegistryKey entity property bag.", + "allOf": [ + { + "$ref": "#/definitions/EntityCommonProperties" + } + ], "properties": { - "dnsDomain": { - "type": "string", - "readOnly": true, - "description": "The DNS domain that this host belongs to. Should contain the compete DNS suffix for the domain" - }, - "ntDomain": { + "hive": { "type": "string", + "description": "the hive that holds the registry key.", "readOnly": true, - "description": "The NT domain that this host belongs to." + "enum": [ + "HKEY_LOCAL_MACHINE", + "HKEY_CLASSES_ROOT", + "HKEY_CURRENT_CONFIG", + "HKEY_USERS", + "HKEY_CURRENT_USER_LOCAL_SETTINGS", + "HKEY_PERFORMANCE_DATA", + "HKEY_PERFORMANCE_NLSTEXT", + "HKEY_PERFORMANCE_TEXT", + "HKEY_A", + "HKEY_CURRENT_USER" + ], + "x-ms-enum": { + "name": "RegistryHive", + "modelAsString": true, + "values": [ + { + "value": "HKEY_LOCAL_MACHINE", + "description": "HKEY_LOCAL_MACHINE" + }, + { + "value": "HKEY_CLASSES_ROOT", + "description": "HKEY_CLASSES_ROOT" + }, + { + "value": "HKEY_CURRENT_CONFIG", + "description": "HKEY_CURRENT_CONFIG" + }, + { + "value": "HKEY_USERS", + "description": "HKEY_USERS" + }, + { + "value": "HKEY_CURRENT_USER_LOCAL_SETTINGS", + "description": "HKEY_CURRENT_USER_LOCAL_SETTINGS" + }, + { + "value": "HKEY_PERFORMANCE_DATA", + "description": "HKEY_PERFORMANCE_DATA" + }, + { + "value": "HKEY_PERFORMANCE_NLSTEXT", + "description": "HKEY_PERFORMANCE_NLSTEXT" + }, + { + "value": "HKEY_PERFORMANCE_TEXT", + "description": "HKEY_PERFORMANCE_TEXT" + }, + { + "value": "HKEY_A", + "description": "HKEY_A" + }, + { + "value": "HKEY_CURRENT_USER", + "description": "HKEY_CURRENT_USER" + } + ] + } }, - "hostName": { + "key": { "type": "string", "readOnly": true, - "description": "The hostname without the domain suffix." - }, - "netBiosName": { + "description": "The registry key path." + } + } + }, + "RegistryValueEntity": { + "x-ms-discriminator-value": "RegistryValue", + "type": "object", + "description": "Represents a registry value entity.", + "allOf": [ + { + "$ref": "#/definitions/Entity" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "RegistryKey entity properties", + "$ref": "#/definitions/RegistryValueEntityProperties" + } + } + }, + "RegistryValueEntityProperties": { + "type": "object", + "description": "RegistryValue entity property bag.", + "allOf": [ + { + "$ref": "#/definitions/EntityCommonProperties" + } + ], + "properties": { + "valueName": { "type": "string", "readOnly": true, - "description": "The host name (pre-windows2000)." + "description": "The registry value name." }, - "azureID": { + "valueData": { "type": "string", "readOnly": true, - "description": "The azure resource id of the VM." + "description": "String formatted representation of the value data." }, - "omsAgentID": { + "valueType": { "type": "string", + "description": "Specifies the data types to use when storing values in the registry, or identifies the data type of a value in the registry.", "readOnly": true, - "description": "The OMS agent id, if the host has OMS agent installed." - }, - "osFamily": { - "type": "string", "enum": [ - "Linux", - "Windows", - "Android", - "IOS" + "None", + "Unknown", + "String", + "ExpandString", + "Binary", + "DWord", + "MultiString", + "QWord" ], "x-ms-enum": { - "name": "OSFamily", - "modelAsString": false, + "name": "RegistryValueKind", + "modelAsString": true, "values": [ { - "value": "Linux", - "description": "Host with Linux operating system." + "value": "None", + "description": "None" }, { - "value": "Windows", - "description": "Host with Windows operating system." + "value": "Unknown", + "description": "Unknown value type" }, { - "value": "Android", - "description": "Host with Android operating system." + "value": "String", + "description": "String value type" }, { - "value": "IOS", - "description": "Host with IOS operating system." + "value": "ExpandString", + "description": "ExpandString value type" + }, + { + "value": "Binary", + "description": "Binary value type" + }, + { + "value": "DWord", + "description": "DWord value type" + }, + { + "value": "MultiString", + "description": "MultiString value type" + }, + { + "value": "QWord", + "description": "QWord value type" } ] - }, - "description": "The operating system type." + } }, - "osVersion": { + "keyEntityId": { "type": "string", "readOnly": true, - "description": "A free text representation of the operating system. This field is meant to hold specific versions the are more fine grained than OSFamily or future values not supported by OSFamily enumeration" - }, - "isDomainJoined": { - "type": "boolean", - "readOnly": true, - "description": "Determines whether this host belongs to a domain." + "description": "The registry key entity id." } } }, - "FileEntity": { - "x-ms-discriminator-value": "File", + "UrlEntity": { + "x-ms-discriminator-value": "Url", "type": "object", - "description": "Represents a file entity.", + "description": "Represents a url entity.", "allOf": [ { "$ref": "#/definitions/Entity" @@ -2738,27 +4883,108 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "description": "File entity properties", - "$ref": "#/definitions/FileEntityProperties" + "description": "Url entity properties", + "$ref": "#/definitions/UrlEntityProperties" } } }, - "FileEntityProperties": { + "UrlEntityProperties": { "type": "object", - "description": "File entity property bag.", + "description": "Url entity property bag.", + "allOf": [ + { + "$ref": "#/definitions/EntityCommonProperties" + } + ], "properties": { - "directory": { + "url": { "type": "string", "readOnly": true, - "description": "The full path to the file." + "description": "A full URL the entity points to" + } + } + }, + "EntityExpandParameters": { + "description": "The parameters required to execute an expand operation on the given entity.", + "properties": { + "expansionId": { + "type": "string", + "format": "uuid", + "description": "The Id of the expansion to perform." }, - "fileName": { + "startTime": { "type": "string", - "readOnly": true, - "description": "The file name without path (some alerts might not include path)." + "format": "date-time", + "description": "The start date filter, so the only expansion results returned are after this date." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end date filter, so the only expansion results returned are before this date." + } + } + }, + "EntityExpandResponse": { + "properties": { + "value": { + "type": "object", + "description": "The expansion result values.", + "properties": { + "entities": { + "type": "array", + "items": { + "$ref": "#/definitions/Entity" + }, + "description": "Array of the expansion result entities." + } + } + }, + "metaData": { + "$ref": "#/definitions/ExpansionResultsMetadata", + "description": "The metadata from the expansion operation results." + } + }, + "description": "The entity expansion result operation response." + }, + "ExpansionResultsMetadata": { + "type": "object", + "description": "Expansion result metadata.", + "properties": { + "aggregations": { + "type": "array", + "items": { + "$ref": "#/definitions/ExpansionResultAggregation" + }, + "description": "Information of the aggregated nodes in the expansion result." } } }, + "ExpansionResultAggregation": { + "type": "object", + "description": "Information of a specific aggregation in the expansion result.", + "properties": { + "entityKind": { + "description": "The kind of the aggregated entity.", + "$ref": "#/definitions/EntityInnerKind" + }, + "count": { + "type": "integer", + "description": "Total number of aggregations of the given kind (and aggregationType if given) in the expansion result." + }, + "aggregationType": { + "type": "string", + "description": "The common type of the aggregation. (for e.g. entity field name)" + }, + "displayName": { + "type": "string", + "description": "The display name of the aggregation by type." + } + }, + "required": [ + "entityKind", + "count" + ] + }, "OfficeConsentList": { "description": "List of all the office365 consents.", "properties": { @@ -3111,7 +5337,7 @@ "description": "The template query string to be parsed and formatted" }, "inputEntityType": { - "type": "string", + "$ref": "#/definitions/EntityInnerType", "description": "The type of the query's source entity" }, "inputFields": { @@ -3126,7 +5352,7 @@ "type": "array", "items": { "description": "output entity type", - "type": "string" + "$ref": "#/definitions/EntityInnerType" }, "description": "List of the desired output types to be constructed from the result" }, @@ -3143,6 +5369,98 @@ "description": "The query display name" } } + }, + "EntityInnerType": { + "type": "string", + "description": "The type of the entity", + "enum": [ + "Account", + "Host", + "File", + "AzureResource", + "CloudApplication", + "DNS", + "FileHash", + "IP", + "Malware", + "Process", + "RegistryKey", + "RegistryValue", + "SecurityGroup", + "URL", + "SecurityAlert", + "HuntingBookmark" + ], + "x-ms-enum": { + "name": "EntityType", + "modelAsString": true, + "values": [ + { + "value": "Account", + "description": "Entity represents account in the system." + }, + { + "value": "Host", + "description": "Entity represents host in the system." + }, + { + "value": "File", + "description": "Entity represents file in the system." + }, + { + "value": "AzureResource", + "description": "Entity represents azure resource in the system." + }, + { + "value": "CloudApplication", + "description": "Entity represents cloud application in the system." + }, + { + "value": "DNS", + "description": "Entity represents dns in the system." + }, + { + "value": "FileHash", + "description": "Entity represents file hash in the system." + }, + { + "value": "IP", + "description": "Entity represents ip in the system." + }, + { + "value": "Malware", + "description": "Entity represents malware in the system." + }, + { + "value": "Process", + "description": "Entity represents process in the system." + }, + { + "value": "RegistryKey", + "description": "Entity represents registry key in the system." + }, + { + "value": "RegistryValue", + "description": "Entity represents registry value in the system." + }, + { + "value": "SecurityGroup", + "description": "Entity represents security group in the system." + }, + { + "value": "URL", + "description": "Entity represents url in the system." + }, + { + "value": "SecurityAlert", + "description": "Entity represents security alert in the system." + }, + { + "value": "HuntingBookmark", + "description": "Entity represents HuntingBookmark in the system." + } + ] + } } }, "parameters": { @@ -3211,6 +5529,14 @@ }, "x-ms-parameter-location": "method" }, + "AlertRuleTemplateId": { + "name": "alertRuleTemplateId", + "in": "path", + "required": true, + "type": "string", + "description": "Alert rule template ID", + "x-ms-parameter-location": "method" + }, "ActionId": { "name": "actionId", "in": "path", @@ -3247,6 +5573,24 @@ }, "x-ms-parameter-location": "method" }, + "CaseCommentId": { + "name": "caseCommentId", + "in": "path", + "required": true, + "type": "string", + "description": "Case comment ID", + "x-ms-parameter-location": "method" + }, + "CaseComment": { + "name": "caseComment", + "in": "body", + "description": "The case comment", + "required": true, + "schema": { + "$ref": "#/definitions/CaseComment" + }, + "x-ms-parameter-location": "method" + }, "BookmarkId": { "name": "bookmarkId", "in": "path", @@ -3291,6 +5635,16 @@ "description": "entity ID", "x-ms-parameter-location": "method" }, + "EntityExpandRequestBody": { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EntityExpandParameters" + }, + "description": "The parameters required to execute an expand operation on the given entity.", + "x-ms-parameter-location": "method" + }, "ConsentId": { "name": "consentId", "in": "path", @@ -3332,6 +5686,39 @@ "type": "string", "description": "entity query ID", "x-ms-parameter-location": "method" + }, + "ODataFilter": { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "Filters the results, based on a Boolean condition. Optional.", + "x-ms-parameter-location": "method" + }, + "ODataOrderBy": { + "name": "$orderby", + "in": "query", + "required": false, + "type": "string", + "description": "Sorts the results. Optional.", + "x-ms-parameter-location": "method" + }, + "ODataTop": { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "Returns only the first n results. Optional.", + "x-ms-parameter-location": "method" + }, + "ODataSkipToken": { + "name": "$skipToken", + "in": "query", + "required": false, + "type": "string", + "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. Optional.", + "x-ms-parameter-location": "method" } } } diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplateById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplateById.json new file mode 100644 index 000000000000..761488cfb9cf --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplateById.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "alertRuleTemplateId": "65360bb0-8986-4ade-a89d-af3cf44d28aa" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRuleTemplates/65360bb0-8986-4ade-a89d-af3cf44d28aa", + "name": "65360bb0-8986-4ade-a89d-af3cf44d28aa", + "type": "Microsoft.SecurityInsights/AlertRuleTemplates", + "kind": "Scheduled", + "properties": { + "severity": "Low", + "query": "\nlet timeframe = 1d;\nAWSCloudTrail\n| where TimeGenerated >= ago(timeframe)\n| where EventName == \"CreateNetworkAclEntry\"\n or EventName == \"CreateRoute\"\n| project TimeGenerated, EventName, EventTypeName, UserIdentityAccountId, UserIdentityPrincipalid, UserAgent, UserIdentityUserName, SessionMfaAuthenticated, SourceIpAddress, AWSRegion, EventSource, AdditionalEventData, ResponseElements\n", + "queryFrequency": "1.00:00:00", + "queryPeriod": "1.00:00:00", + "triggerOperator": "GreaterThan", + "triggerThreshold": 0, + "displayName": "AWS - Changes to VPC settings", + "description": "This alert monitors changes to VPC settings such as new ACL entries and routes in route tables.\nMore information: https://medium.com/@GorillaStack/the-most-important-aws-cloudtrail-security-events-to-track-a5b9873f8255\n", + "tactics": [ + "LateralMovement", + "PrivilegeEscalation" + ], + "createdDateUTC": "2019-02-27T00:00:00", + "status": "NotAvailable", + "requiredDataConnectors": [ + { + "connectorId": "AWS", + "dataTypes": { + "AWSCloudTrail": "NotExist" + } + } + ], + "alertRulesCreatedByTemplateCount": 0 + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplates.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplates.json new file mode 100644 index 000000000000..eac47ee14c98 --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplates.json @@ -0,0 +1,87 @@ +{ + "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/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/AlertRuleTemplates/65360bb0-8986-4ade-a89d-af3cf44d28aa", + "name": "65360bb0-8986-4ade-a89d-af3cf44d28aa", + "type": "Microsoft.SecurityInsights/AlertRuleTemplates", + "kind": "Scheduled", + "properties": { + "severity": "Low", + "query": "\nlet timeframe = 1d;\nAWSCloudTrail\n| where TimeGenerated >= ago(timeframe)\n| where EventName == \"CreateNetworkAclEntry\"\n or EventName == \"CreateRoute\"\n| project TimeGenerated, EventName, EventTypeName, UserIdentityAccountId, UserIdentityPrincipalid, UserAgent, UserIdentityUserName, SessionMfaAuthenticated, SourceIpAddress, AWSRegion, EventSource, AdditionalEventData, ResponseElements\n", + "queryFrequency": "1.00:00:00", + "queryPeriod": "1.00:00:00", + "triggerOperator": "GreaterThan", + "triggerThreshold": 0, + "displayName": "AWS - Changes to VPC settings", + "description": "This alert monitors changes to VPC settings such as new ACL entries and routes in route tables.\nMore information: https://medium.com/@GorillaStack/the-most-important-aws-cloudtrail-security-events-to-track-a5b9873f8255\n", + "tactics": [ + "LateralMovement", + "PrivilegeEscalation" + ], + "createdDateUTC": "2019-02-27T00:00:00", + "status": "NotAvailable", + "requiredDataConnectors": [ + { + "connectorId": "AWS", + "dataTypes": { + "AWSCloudTrail": "NotExist" + } + } + ], + "alertRulesCreatedByTemplateCount": 0 + } + }, + { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/AlertRuleTemplates/f71aba3d-28fb-450b-b192-4e76a83015c8", + "name": "f71aba3d-28fb-450b-b192-4e76a83015c8", + "type": "Microsoft.SecurityInsights/AlertRuleTemplates", + "kind": "Fusion", + "properties": { + "displayName": "Fusion Detections", + "description": "Place holder: Fusion uses graph powered machine learning algorithms to correlate between millions of lower fidelity anomalous activities from different products such as Azure AD Identity Protection, and Microsoft Cloud App Security, to combine them into a manageable number of interesting security cases.\n", + "tactics": [ + "Persistence", + "Exfiltration" + ], + "createdDateUTC": "2019-07-25T00:00:00", + "status": "Available", + "alertRulesCreatedByTemplateCount": 0 + } + }, + { + "id": "/subscriptions/bd794837-4d29-4647-9105-6339bfdb4e6a/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/avdvirInt/providers/Microsoft.SecurityInsights/AlertRuleTemplates/eb7b4e69-085d-44dd-9227-9b0d67af9fe7", + "name": "eb7b4e69-085d-44dd-9227-9b0d67af9fe7", + "type": "Microsoft.SecurityInsights/AlertRuleTemplates", + "kind": "Filter", + "properties": { + "filterProduct": "Azure Active Directory Identity Protection", + "displayName": "All alerts from AADIP", + "description": "All alerts from AADIP\n", + "createdDateUTC": "2019-07-16T00:00:00", + "status": "Available", + "requiredDataConnectors": [ + { + "connectorId": "AzureActiveDirectoryIdentityProtection", + "dataTypes": { + "SecurityAlert": "Exist" + } + } + ], + "alertRulesCreatedByTemplateCount": 0 + } + } + ] + } + } + } +} 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 15f04776edb5..13ff09f12a8f 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 @@ -23,14 +23,15 @@ "email": "john@contoso.com", "name": "john doe" }, - "lastUpdatedTimeUtc": "2019-01-01T13:15:30Z", - "createdTimeUtc": "2019-01-01T13:15:30Z", + "updated": "2019-01-01T13:15:30Z", + "created": "2019-01-01T13:15:30Z", "notes": "Found a suspicious activity", "labels": [ "Tag1", "Tag2" ], - "query": "SecurityEvent | where TimeGenerated > ago(1d) and TimeGenerated < ago(2d)" + "query": "SecurityEvent | where TimeGenerated > ago(1d) and TimeGenerated < ago(2d)", + "queryResult": "Security Event query result" } } }, @@ -53,14 +54,15 @@ "email": "john@contoso.com", "name": "john doe" }, - "lastUpdatedTimeUtc": "2019-01-01T13:15:30Z", - "createdTimeUtc": "2019-01-01T13:15:30Z", + "updated": "2019-01-01T13:15:30Z", + "created": "2019-01-01T13:15:30Z", "notes": "Found a suspicious activity", "labels": [ "Tag1", "Tag2" ], - "query": "SecurityEvent | where TimeGenerated > ago(1d) and TimeGenerated < ago(2d)" + "query": "SecurityEvent | where TimeGenerated > ago(1d) and TimeGenerated < ago(2d)", + "queryResult": "Security Event query result" } } }, @@ -82,14 +84,15 @@ "email": "john@contoso.com", "name": "john doe" }, - "lastUpdatedTimeUtc": "2019-01-01T13:15:30Z", - "createdTimeUtc": "2019-01-01T13:15:30Z", + "updated": "2019-01-01T13:15:30Z", + "created": "2019-01-01T13:15:30Z", "notes": "Found a suspicious activity", "labels": [ "Tag1", "Tag2" ], - "query": "SecurityEvent | where TimeGenerated > ago(1d) and TimeGenerated < ago(2d)" + "query": "SecurityEvent | where TimeGenerated > ago(1d) and TimeGenerated < ago(2d)", + "queryResult": "Security Event query result" } } } diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/GetBookmarkById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/GetBookmarkById.json index 0358ed179e0b..d28b7e5c2d88 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/GetBookmarkById.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/GetBookmarkById.json @@ -26,14 +26,15 @@ "email": "john@contoso.com", "name": "john doe" }, - "lastUpdatedTimeUtc": "2019-01-01T13:15:30Z", - "createdTimeUtc": "2019-01-01T13:15:30Z", + "updated": "2019-01-01T13:15:30Z", + "created": "2019-01-01T13:15:30Z", "notes": "Found a suspicious activity", "labels": [ "Tag1", "Tag2" ], - "query": "SecurityEvent | where TimeGenerated > ago(1d) and TimeGenerated < ago(2d)" + "query": "SecurityEvent | where TimeGenerated > ago(1d) and TimeGenerated < ago(2d)", + "queryResult": "Security Event query result" } } } diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/GetBookmarks.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/GetBookmarks.json index 7c1062ebbce3..23cdfc5b8ca5 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/GetBookmarks.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/GetBookmarks.json @@ -27,14 +27,15 @@ "email": "john@contoso.com", "name": "john doe" }, - "lastUpdatedTimeUtc": "2019-01-01T13:15:30Z", - "createdTimeUtc": "2019-01-01T13:15:30Z", + "updated": "2019-01-01T13:15:30Z", + "created": "2019-01-01T13:15:30Z", "notes": "Found a suspicious activity", "labels": [ "Tag1", "Tag2" ], - "query": "SecurityEvent | where TimeGenerated > ago(1d) and TimeGenerated < ago(2d)" + "query": "SecurityEvent | where TimeGenerated > ago(1d) and TimeGenerated < ago(2d)", + "queryResult": "Security Event query result" } } ] diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/CreateCase.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/CreateCase.json index 3b30acd68983..670ed172b4e9 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/CreateCase.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/CreateCase.json @@ -7,13 +7,8 @@ "operationalInsightsResourceProvider": "Microsoft.OperationalInsights", "caseId": "73e01a99-5cd7-4139-a149-9f2736ff2ab5", "case": { - "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/cases/73e01a99-5cd7-4139-a149-9f2736ff2ab5", - "name": "73e01a99-5cd7-4139-a149-9f2736ff2ab5", - "type": "Microsoft.SecurityInsights/cases", "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"", "properties": { - "lastUpdatedTimeUtc": "2019-01-01T13:15:30Z", - "createdTimeUtc": "2019-01-01T13:15:30Z", "endTimeUtc": "2019-01-01T13:05:30Z", "startTimeUtc": "2019-01-01T13:00:30Z", "labels": [ @@ -22,10 +17,8 @@ ], "description": "This is a demo case", "title": "My case", - "assignedTo": { - "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70", - "email": "john@contoso.com", - "name": "john doe" + "owner": { + "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70" }, "severity": "High", "closeReason": "Resolved", @@ -51,14 +44,18 @@ ], "description": "This is a demo case", "title": "My case", - "assignedTo": { + "owner": { "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70", "email": "john@contoso.com", "name": "john doe" }, "severity": "High", "closeReason": "Resolved", - "status": "Closed" + "status": "Closed", + "relatedAlertIds": [ + "cf441808-2d50-4c10-81af-cdd0b908c121" + ], + "caseNumber": 3177 } } }, @@ -79,14 +76,18 @@ ], "description": "This is a demo case", "title": "My case", - "assignedTo": { + "owner": { "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70", "email": "john@contoso.com", "name": "john doe" }, "severity": "High", "closeReason": "Resolved", - "status": "Closed" + "status": "Closed", + "relatedAlertIds": [ + "cf441808-2d50-4c10-81af-cdd0b908c121" + ], + "caseNumber": 3177 } } } diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/GetCaseById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/GetCaseById.json index 0fb96cf9af43..d1661baf0423 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/GetCaseById.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/GetCaseById.json @@ -25,14 +25,21 @@ ], "description": "This is a demo case", "title": "My case", - "assignedTo": { + "owner": { "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70", "email": "john@contoso.com", "name": "john doe" }, "severity": "High", "closeReason": "Resolved", - "status": "Closed" + "status": "Closed", + "closedReasonText": "case resolved", + "relatedAlertIds": [ + "cf441808-2d50-4c10-81af-cdd0b908c121" + ], + "caseNumber": 3177, + "lastComment": "This is a demo case", + "totalComments": 3 } } } diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/GetCases.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/GetCases.json index 3280c62c9c6c..6fe262832ea8 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/GetCases.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/GetCases.json @@ -4,7 +4,9 @@ "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", "resourceGroupName": "myRg", "workspaceName": "myWorkspace", - "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights" + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "$orderby": "properties/createdTimeUtc desc", + "$top": 1 }, "responses": { "200": { @@ -26,14 +28,21 @@ ], "description": "This is a demo case", "title": "My case", - "assignedTo": { + "owner": { "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70", "email": "john@contoso.com", "name": "john doe" }, "severity": "High", "closeReason": "Resolved", - "status": "Closed" + "status": "Closed", + "closedReasonText": "case resolved", + "relatedAlertIds": [ + "cf441808-2d50-4c10-81af-cdd0b908c121" + ], + "caseNumber": 3177, + "lastComment": "This is a demo case", + "totalComments": 3 } } ] diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/comments/CreateCaseComment.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/comments/CreateCaseComment.json new file mode 100644 index 000000000000..f87f16a08fc5 --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/comments/CreateCaseComment.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalInsights", + "caseId": "73e01a99-5cd7-4139-a149-9f2736ff2ab5", + "caseCommentId": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", + "caseComment": { + "properties": { + "message": "Some message" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/cases/73e01a99-5cd7-4139-a149-9f2736ff2ab5/comments/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", + "name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", + "type": "Microsoft.SecurityInsights/cases/comments", + "properties": { + "message": "Some message", + "createdTimeUtc": "2019-01-01T13:15:30Z", + "userInfo": { + "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70", + "email": "john@contoso.com", + "name": "john doe" + } + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/comments/GetAllCaseComments.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/comments/GetAllCaseComments.json new file mode 100644 index 000000000000..739f440774dd --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/comments/GetAllCaseComments.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "caseId": "73e01a99-5cd7-4139-a149-9f2736ff2ab5" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/cases/73e01a99-5cd7-4139-a149-9f2736ff2ab5/comments/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", + "name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", + "type": "Microsoft.SecurityInsights/cases/comments", + "properties": { + "message": "Some message", + "createdTimeUtc": "2019-01-01T13:15:30Z", + "userInfo": { + "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70", + "email": "john@contoso.com", + "name": "john doe" + } + } + } + ] + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/comments/GetCaseCommentById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/comments/GetCaseCommentById.json new file mode 100644 index 000000000000..4a6b85d23b77 --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/comments/GetCaseCommentById.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "caseId": "73e01a99-5cd7-4139-a149-9f2736ff2ab5", + "caseCommentId": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/cases/73e01a99-5cd7-4139-a149-9f2736ff2ab5/comments/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", + "name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", + "type": "Microsoft.SecurityInsights/cases/comments", + "properties": { + "message": "Some message", + "createdTimeUtc": "2019-01-01T13:15:30Z", + "userInfo": { + "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70", + "email": "john@contoso.com", + "name": "john doe" + } + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetAmazonWebServicesCloudTrailById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetAmazonWebServicesCloudTrailById.json new file mode 100644 index 000000000000..9d15d53a4aea --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetAmazonWebServicesCloudTrailById.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalInsights", + "dataConnectorId": "c345bf40-8509-4ed2-b947-50cb773aaf04" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/c345bf40-8509-4ed2-b947-50cb773aaf04", + "name": "c345bf40-8509-4ed2-b947-50cb773aaf04", + "type": "Microsoft.SecurityInsights/dataConnectors", + "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"", + "kind": "AmazonWebServicesCloudTrail", + "properties": { + "awsRoleArn": "myAwsRoleArn", + "dataTypes": { + "logs": { + "state": "Enabled" + } + } + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetAzureAdvancedThreatProtectionById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetAzureAdvancedThreatProtectionById.json new file mode 100644 index 000000000000..642d47eb08d1 --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetAzureAdvancedThreatProtectionById.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalInsights", + "dataConnectorId": "07e42cb3-e658-4e90-801c-efa0f29d3d44" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/07e42cb3-e658-4e90-801c-efa0f29d3d44", + "name": "07e42cb3-e658-4e90-801c-efa0f29d3d44", + "type": "Microsoft.SecurityInsights/dataConnectors", + "kind": "AzureAdvancedThreatProtection", + "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"", + "properties": { + "tenantId": "2070ecc9-b4d5-4ae4-adaa-936fa1954fa8", + "dataTypes": { + "alerts": { + "state": "Enabled" + } + } + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetDataConnectors.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetDataConnectors.json index a60bbb7918a5..19806b1058ea 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetDataConnectors.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetDataConnectors.json @@ -4,14 +4,14 @@ "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", "resourceGroupName": "myRg", "workspaceName": "myWorkspace", - "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights" + "operationalInsightsResourceProvider": "Microsoft.OperationalInsights" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/763f9fa1-c2d3-4fa2-93e9-bccd4899aa12", + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/763f9fa1-c2d3-4fa2-93e9-bccd4899aa12", "name": "763f9fa1-c2d3-4fa2-93e9-bccd4899aa12", "type": "Microsoft.SecurityInsights/dataConnectors", "kind": "AzureSecurityCenter", @@ -26,7 +26,7 @@ } }, { - "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/c345bf40-8509-4ed2-b947-50cb773aaf04", + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/c345bf40-8509-4ed2-b947-50cb773aaf04", "name": "c345bf40-8509-4ed2-b947-50cb773aaf04", "type": "Microsoft.SecurityInsights/dataConnectors", "kind": "ThreatIntelligence", @@ -41,7 +41,7 @@ } }, { - "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/f0cd27d2-5f03-4c06-ba31-d2dc82dcb51d", + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/f0cd27d2-5f03-4c06-ba31-d2dc82dcb51d", "name": "f0cd27d2-5f03-4c06-ba31-d2dc82dcb51d", "type": "Microsoft.SecurityInsights/dataConnectors", "kind": "AzureActiveDirectory", @@ -56,7 +56,7 @@ } }, { - "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/73e01a99-5cd7-4139-a149-9f2736ff2ab5", + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/73e01a99-5cd7-4139-a149-9f2736ff2ab5", "name": "73e01a99-5cd7-4139-a149-9f2736ff2ab5", "type": "Microsoft.SecurityInsights/dataConnectors", "kind": "Office365", @@ -74,11 +74,59 @@ } }, { - "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/b96d014d-b5c2-4a01-9aba-a8058f629d42", + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/b96d014d-b5c2-4a01-9aba-a8058f629d42", "name": "b96d014d-b5c2-4a01-9aba-a8058f629d42", "type": "Microsoft.SecurityInsights/dataConnectors", "kind": "MicrosoftCloudAppSecurity", "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"", + "properties": { + "tenantId": "2070ecc9-b4d5-4ae4-adaa-936fa1954fa8", + "dataTypes": { + "alerts": { + "state": "Enabled" + }, + "discoveryLogs": { + "state": "Enabled" + } + } + } + }, + { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/07e42cb3-e658-4e90-801c-efa0f29d3d44", + "name": "07e42cb3-e658-4e90-801c-efa0f29d3d44", + "type": "Microsoft.SecurityInsights/dataConnectors", + "kind": "AzureAdvancedThreatProtection", + "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"", + "properties": { + "tenantId": "2070ecc9-b4d5-4ae4-adaa-936fa1954fa8", + "dataTypes": { + "alerts": { + "state": "Enabled" + } + } + } + }, + { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/c345bf40-8509-4ed2-b947-50cb773aaf04", + "name": "c345bf40-8509-4ed2-b947-50cb773aaf04", + "type": "Microsoft.SecurityInsights/dataConnectors", + "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"", + "kind": "AmazonWebServicesCloudTrail", + "properties": { + "awsRoleArn": "myAwsRoleArn", + "dataTypes": { + "logs": { + "state": "Enabled" + } + } + } + }, + { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/06b3ccb8-1384-4bcc-aec7-852f6d57161b", + "name": "06b3ccb8-1384-4bcc-aec7-852f6d57161b", + "type": "Microsoft.SecurityInsights/dataConnectors", + "kind": "MicrosoftDefenderAdvancedThreatProtection", + "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"", "properties": { "tenantId": "2070ecc9-b4d5-4ae4-adaa-936fa1954fa8", "dataTypes": { diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetMicrosoftCloudAppSecurityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetMicrosoftCloudAppSecurityById.json index f5f114c4f687..b95ac0e2a512 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetMicrosoftCloudAppSecurityById.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetMicrosoftCloudAppSecurityById.json @@ -4,13 +4,13 @@ "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", "resourceGroupName": "myRg", "workspaceName": "myWorkspace", - "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "operationalInsightsResourceProvider": "Microsoft.OperationalInsights", "dataConnectorId": "b96d014d-b5c2-4a01-9aba-a8058f629d42" }, "responses": { "200": { "body": { - "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/b96d014d-b5c2-4a01-9aba-a8058f629d42", + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/b96d014d-b5c2-4a01-9aba-a8058f629d42", "name": "b96d014d-b5c2-4a01-9aba-a8058f629d42", "type": "Microsoft.SecurityInsights/dataConnectors", "kind": "MicrosoftCloudAppSecurity", @@ -20,6 +20,9 @@ "dataTypes": { "alerts": { "state": "Enabled" + }, + "discoveryLogs": { + "state": "Enabled" } } } diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetMicrosoftDefenderAdvancedThreatProtectionById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetMicrosoftDefenderAdvancedThreatProtectionById.json new file mode 100644 index 000000000000..699853dda0f4 --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/GetMicrosoftDefenderAdvancedThreatProtectionById.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalInsights", + "dataConnectorId": "06b3ccb8-1384-4bcc-aec7-852f6d57161b" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/06b3ccb8-1384-4bcc-aec7-852f6d57161b", + "name": "06b3ccb8-1384-4bcc-aec7-852f6d57161b", + "type": "Microsoft.SecurityInsights/dataConnectors", + "kind": "MicrosoftDefenderAdvancedThreatProtection", + "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"", + "properties": { + "tenantId": "2070ecc9-b4d5-4ae4-adaa-936fa1954fa8", + "dataTypes": { + "alerts": { + "state": "Enabled" + } + } + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAccountEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAccountEntityById.json index cee95c7a2e79..308ad74facfe 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAccountEntityById.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAccountEntityById.json @@ -15,6 +15,7 @@ "type": "Microsoft.SecurityInsights/entities", "kind": "Account", "properties": { + "friendlyName": "administrator", "accountName": "administrator", "ntDomain": "domain", "upnSuffix": "contoso", diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAzureResourceEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAzureResourceEntityById.json new file mode 100644 index 000000000000..97929b3d5a02 --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAzureResourceEntityById.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "entityId": "e1d3d618-e11f-478b-98e3-bb381539a8e1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/e1d3d618-e11f-478b-98e3-bb381539a8e1", + "name": "e1d3d618-e11f-478b-98e3-bb381539a8e1", + "type": "Microsoft.SecurityInsights/entities", + "kind": "AzureResource", + "properties": { + "friendlyName": "Resource", + "resourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/vm1" + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetCloudApplicationEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetCloudApplicationEntityById.json new file mode 100644 index 000000000000..31067cee831f --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetCloudApplicationEntityById.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", + "entityId": "e1d3d618-e11f-478b-98e3-bb381539a8e1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/e1d3d618-e11f-478b-98e3-bb381539a8e1", + "name": "e1d3d618-e11f-478b-98e3-bb381539a8e1", + "type": "Microsoft.SecurityInsights/entities", + "kind": "CloudApplication", + "properties": { + "friendlyName": "AppName", + "appId": 1, + "appName": "AppName", + "instanceName": "InstanceName" + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetDnsEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetDnsEntityById.json new file mode 100644 index 000000000000..38ea66b5c8d7 --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetDnsEntityById.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "entityId": "f4e74920-f2c0-4412-a45f-66d94fdf01f8" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/f4e74920-f2c0-4412-a45f-66d94fdf01f8", + "name": "f4e74920-f2c0-4412-a45f-66d94fdf01f8", + "type": "Microsoft.SecurityInsights/entities", + "kind": "DnsResolution", + "properties": { + "friendlyName": "domain", + "domainName": "domain", + "ipAddressEntityIds": [ + "475d3120-33e0-4841-9f1c-a8f15a801d19" + ] + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetEntities.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetEntities.json index 7e5b63413caf..40cf28f9ce3a 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetEntities.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetEntities.json @@ -16,6 +16,7 @@ "type": "Microsoft.SecurityInsights/entities", "kind": "Account", "properties": { + "friendlyName": "administrator", "accountName": "administrator", "ntDomain": "domain", "upnSuffix": "contoso", @@ -28,11 +29,12 @@ } }, { - "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/e1d3d618-e11f-478b-98e3-bb381539a8e1", - "name": "e1d3d618-e11f-478b-98e3-bb381539a8e1", + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/fed9fe89-dce8-40f2-bf44-70f23fe93b3c", + "name": "fed9fe89-dce8-40f2-bf44-70f23fe93b3c", "type": "Microsoft.SecurityInsights/entities", "kind": "Host", "properties": { + "friendlyName": "vm1", "dnsDomain": "contoso", "ntDomain": "domain", "hostName": "vm1", @@ -50,6 +52,7 @@ "type": "Microsoft.SecurityInsights/entities", "kind": "File", "properties": { + "friendlyName": "cmd.exe", "directory": "C:\\Windows\\System32", "fileName": "cmd.exe" } diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetFileEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetFileEntityById.json index 75802c19e19a..4a3bcc139f44 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetFileEntityById.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetFileEntityById.json @@ -15,6 +15,7 @@ "type": "Microsoft.SecurityInsights/entities", "kind": "File", "properties": { + "friendlyName": "cmd.exe", "directory": "C:\\Windows\\System32", "fileName": "cmd.exe" } diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetFileHashEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetFileHashEntityById.json new file mode 100644 index 000000000000..54f495799839 --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetFileHashEntityById.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "entityId": "ea359fa6-c1e5-f878-e105-6344f3e399a1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/ea359fa6-c1e5-f878-e105-6344f3e399a1", + "name": "ea359fa6-c1e5-f878-e105-6344f3e399a1", + "type": "Microsoft.SecurityInsights/entities", + "kind": "FileHash", + "properties": { + "friendlyName": "E923636F1093C414AAB39F846E9D7A372BEEFA7B628B28179197E539C56AA0F0(SHA256)", + "hashValue": "E923636F1093C414AAB39F846E9D7A372BEEFA7B628B28179197E539C56AA0F0", + "algorithm": "SHA256" + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetHostEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetHostEntityById.json index aacb859bc369..8674609f90db 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetHostEntityById.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetHostEntityById.json @@ -15,6 +15,7 @@ "type": "Microsoft.SecurityInsights/entities", "kind": "Host", "properties": { + "friendlyName": "vm1", "dnsDomain": "contoso", "ntDomain": "domain", "hostName": "vm1", diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetIpEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetIpEntityById.json new file mode 100644 index 000000000000..e4b40831f8a9 --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetIpEntityById.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "entityId": "e1d3d618-e11f-478b-98e3-bb381539a8e1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/e1d3d618-e11f-478b-98e3-bb381539a8e1", + "name": "e1d3d618-e11f-478b-98e3-bb381539a8e1", + "type": "Microsoft.SecurityInsights/entities", + "kind": "Ip", + "properties": { + "friendlyName": "10.3.2.8", + "address": "10.3.2.8" + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetMalwareEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetMalwareEntityById.json new file mode 100644 index 000000000000..77bcffb266ba --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetMalwareEntityById.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "entityId": "af378b21-b4aa-4fe7-bc70-13f8621a322f" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/af378b21-b4aa-4fe7-bc70-13f8621a322f", + "name": "af378b21-b4aa-4fe7-bc70-13f8621a322f", + "type": "Microsoft.SecurityInsights/entities", + "kind": "Malware", + "properties": { + "malwareName": "Win32/Toga!rfn", + "category": "Trojan", + "friendlyName": "Win32/Toga!rfn" + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetProcessEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetProcessEntityById.json new file mode 100644 index 000000000000..e3b3d000424f --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetProcessEntityById.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", + "entityId": "7264685c-038c-42c6-948c-38e14ef1fb98" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/7264685c-038c-42c6-948c-38e14ef1fb98", + "name": "7264685c-038c-42c6-948c-38e14ef1fb98", + "type": "Microsoft.SecurityInsights/entities", + "kind": "Process", + "properties": { + "friendlyName": "cmd.exe", + "processId": "0x2aa48", + "commandLine": "\"cmd\"", + "imageFileEntityId": "bba7b47b-c1c1-4021-b568-5b07b9292f5e" + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetRegistryKeyEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetRegistryKeyEntityById.json new file mode 100644 index 000000000000..429e932a5114 --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetRegistryKeyEntityById.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "entityId": "e1d3d618-e11f-478b-98e3-bb381539a8e1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/e1d3d618-e11f-478b-98e3-bb381539a8e1", + "name": "e1d3d618-e11f-478b-98e3-bb381539a8e1", + "type": "Microsoft.SecurityInsights/entities", + "kind": "RegistryKey", + "properties": { + "friendlyName": "SOFTWARE", + "hive": "HKEY_LOCAL_MACHINE", + "key": "SOFTWARE" + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetRegistryValueEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetRegistryValueEntityById.json new file mode 100644 index 000000000000..87d59b560965 --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetRegistryValueEntityById.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "entityId": "dc44bd11-b348-4d76-ad29-37bf7aa41356" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/dc44bd11-b348-4d76-ad29-37bf7aa41356", + "name": "dc44bd11-b348-4d76-ad29-37bf7aa41356", + "type": "Microsoft.SecurityInsights/entities", + "kind": "RegistryValue", + "properties": { + "friendlyName": "Data", + "valueName": "Name", + "valueData": "Data", + "valueType": "String", + "keyEntityId": "e1d3d618-e11f-478b-98e3-bb381539a8e1" + } + } + } + } +} 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 new file mode 100644 index 000000000000..4c3ca8bd57b6 --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetSecurityAlertEntityById.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "entityId": "4aa486e0-6f85-41af-99ea-7acdce7be6c8" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/4aa486e0-6f85-41af-99ea-7acdce7be6c8", + "name": "e1d3d618-e11f-478b-98e3-bb381539a8e1", + "type": "Microsoft.SecurityInsights/entities", + "kind": "SecurityAlert", + "properties": { + "systemAlertId": "4aa486e0-6f85-41af-99ea-7acdce7be6c8", + "intent": "Unknown", + "alertDisplayName": "Suspicious account detected", + "description": "", + "confidenceLevel": "Unknown", + "severity": "Medium", + "vendorName": "Microsoft", + "productName": "Azure Sentinel", + "productComponentName": "Scheduled Alerts", + "alertType": "c8c99641-985d-4e4e-8e91-fb3466cd0e5b_46c7b6c0-ff43-44dd-8b4d-ceffff7aa7df", + "processingEndTime": "2019-07-06T13:56:53.5392366Z", + "status": "New", + "endTimeUtc": "2019-07-06T13:21:45.926185Z", + "startTimeUtc": "2019-07-06T08:21:45.926185Z", + "timeGenerated": "2019-07-06T13:56:53.5392366Z", + "additionalData": { + "Query": "Heartbeat \n| extend AccountCustomEntity = \"administrator\"", + "Query Period": "05:00:00", + "Trigger Operator": "GreaterThan", + "Trigger Threshold": "200", + "Search Query Results Overall Count": "203", + "Total Account Entities": "1" + }, + "friendlyName": "Suspicious account detected" + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetSecurityGroupEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetSecurityGroupEntityById.json new file mode 100644 index 000000000000..856ea6f4465d --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetSecurityGroupEntityById.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", + "entityId": "e1d3d618-e11f-478b-98e3-bb381539a8e1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/e1d3d618-e11f-478b-98e3-bb381539a8e1", + "name": "e1d3d618-e11f-478b-98e3-bb381539a8e1", + "type": "Microsoft.SecurityInsights/entities", + "kind": "SecurityGroup", + "properties": { + "friendlyName": "Group", + "distinguishedName": "Name", + "sid": "Sid", + "objectGuid": "fb1b8e04-d944-4986-b39a-1ce9adedcd98" + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetUrlEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetUrlEntityById.json new file mode 100644 index 000000000000..f5ab8cdd25da --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetUrlEntityById.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "entityId": "e1d3d618-e11f-478b-98e3-bb381539a8e1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/e1d3d618-e11f-478b-98e3-bb381539a8e1", + "name": "e1d3d618-e11f-478b-98e3-bb381539a8e1", + "type": "Microsoft.SecurityInsights/entities", + "kind": "Url", + "properties": { + "friendlyName": "https://bing.com", + "url": "https://bing.com" + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/expand/PostExpandEntity.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/expand/PostExpandEntity.json new file mode 100644 index 000000000000..9f9c8e485634 --- /dev/null +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/expand/PostExpandEntity.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2019-01-01-preview", + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0", + "resourceGroupName": "myRg", + "workspaceName": "myWorkspace", + "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights", + "entityId": "e1d3d618-e11f-478b-98e3-bb381539a8e1", + "parameters": { + "expansionId": "a77992f3-25e9-4d01-99a4-5ff606cc410a", + "startTime": "2019-04-25T00:00:00.000Z", + "endTime": "2019-05-26T00:00:00.000Z" + } + }, + "responses": { + "200": { + "body": { + "value": { + "entities": [ + { + "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/e1d3d618-e11f-478b-98e3-bb381539a8e1", + "name": "e1d3d618-e11f-478b-98e3-bb381539a8e1", + "type": "Microsoft.SecurityInsights/entities", + "kind": "Account", + "properties": { + "friendlyName": "administrator", + "accountName": "administrator", + "ntDomain": "domain" + } + } + ] + }, + "metaData": { + "aggregations": [ + { + "entityKind": "Account", + "count": 1 + } + ] + } + } + } + } +} diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entityQueries/GetEntityQueries.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entityQueries/GetEntityQueries.json index 10b8e4a1a0bf..d3934569dca5 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entityQueries/GetEntityQueries.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entityQueries/GetEntityQueries.json @@ -15,9 +15,9 @@ "name": "37ca3555-c135-4a73-a65e-9c1d00323f5d", "type": "Microsoft.SecurityInsights/entityQueries", "properties": { - "queryTemplate": "let AccountActivity_byIP = (v_IP_Address:string){\r\n AzureActivity\r\n | where Caller != '' and CallerIpAddress == v_IP_Address\r\n | summarize Account_Aux_StartTime = min(TimeGenerated), Account_Aux_EndTime = max(TimeGenerated), Count = count() by Caller, TenantId\r\n | top 10 by Count asc nulls last \r\n | extend UPN = iff(Caller contains '@', Caller, ''), Account_AadUserId = iff(Caller !contains '@', Caller,'')\r\n | extend Account_Name = split(UPN,'@')[0] , Account_UPNSuffix = split(UPN,'@')[1]\r\n | project Account_Name, Account_UPNSuffix, Account_AadUserId, Account_AadTenantId=TenantId, Account_Aux_StartTime , Account_Aux_EndTime};\r\n AccountActivity_byIP('
')", + "queryTemplate": "let AccountActivity_byIP = (v_IP_Address:string){\r\n AzureActivity\r\n | where Caller != '' and CallerIpAddress == v_IP_Address\r\n | summarize Account_Aux_StartTime = min(TimeGenerated), Account_Aux_EndTime = max(TimeGenerated), Count = count() by Caller, TenantId\r\n | top 10 by Count asc nulls last \r\n | extend UPN = iff(Caller contains '@', Caller, ''), Account_AadUserId = iff(Caller !contains '@', Caller,'')\r\n | extend Account_Name = split(UPN,'@')[0] , Account_UPNSuffix = split(UPN,'@')[1]\r\n | project Account_Name, Account_UPNSuffix, Account_AadUserId, Account_AadTenantId=TenantId, Account_Aux_StartTime , Account_Aux_EndTime};\r\n AccountActivity_byIP('
')", "inputFields": [ - "Address" + "address" ], "outputEntityTypes": [ "Account" @@ -25,7 +25,7 @@ "dataSources": [ "AzureActivity" ], - "inputEntityType": "Ip", + "inputEntityType": "IP", "displayName": "Least active accounts on Azure from this IP" } }, @@ -34,9 +34,9 @@ "name": "97a1d515-abf2-4231-9a35-985f9de0bb91", "type": "Microsoft.SecurityInsights/entityQueries", "properties": { - "queryTemplate": "let AccountActivity_byIP = (v_IP_Address:string){\r\n AzureActivity\r\n | where Caller != '' and CallerIpAddress == v_IP_Address\r\n | summarize Account_Aux_StartTime = min(TimeGenerated), Account_Aux_EndTime = max(TimeGenerated), Count = count() by Caller, TenantId\r\n | top 10 by Count desc nulls last \r\n | extend UPN = iff(Caller contains '@', Caller, ''), Account_AadUserId = iff(Caller !contains '@', Caller,'')\r\n | extend Account_Name = split(UPN,'@')[0] , Account_UPNSuffix = split(UPN,'@')[1]\r\n | project Account_Name, Account_UPNSuffix, Account_AadUserId, Account_AadTenantId=TenantId, Account_Aux_StartTime , Account_Aux_EndTime};\r\n AccountActivity_byIP('
')", + "queryTemplate": "let AccountActivity_byIP = (v_IP_Address:string){\r\n AzureActivity\r\n | where Caller != '' and CallerIpAddress == v_IP_Address\r\n | summarize Account_Aux_StartTime = min(TimeGenerated), Account_Aux_EndTime = max(TimeGenerated), Count = count() by Caller, TenantId\r\n | top 10 by Count desc nulls last \r\n | extend UPN = iff(Caller contains '@', Caller, ''), Account_AadUserId = iff(Caller !contains '@', Caller,'')\r\n | extend Account_Name = split(UPN,'@')[0] , Account_UPNSuffix = split(UPN,'@')[1]\r\n | project Account_Name, Account_UPNSuffix, Account_AadUserId, Account_AadTenantId=TenantId, Account_Aux_StartTime , Account_Aux_EndTime};\r\n AccountActivity_byIP('
')", "inputFields": [ - "Address" + "address" ], "outputEntityTypes": [ "Account" @@ -44,7 +44,7 @@ "dataSources": [ "AzureActivity" ], - "inputEntityType": "Ip", + "inputEntityType": "IP", "displayName": "Most active accounts on Azure from this IP" } } diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entityQueries/GetEntityQueryById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entityQueries/GetEntityQueryById.json index 09c7622f7d57..6e7ccb5bdd66 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entityQueries/GetEntityQueryById.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entityQueries/GetEntityQueryById.json @@ -14,9 +14,9 @@ "name": "07da3cc8-c8ad-4710-a44e-334cdcb7882b", "type": "Microsoft.SecurityInsights/entityQueries", "properties": { - "queryTemplate": "let GetParentProcessesOnHost = (v_Host_HostName:string){\r\n SecurityEvent \r\n | where EventID == 4688 \r\n | where isnotempty(ParentProcessName)\r\n | where NewProcessName !contains ':\\\\Windows\\\\System32\\\\conhost.exe' and ParentProcessName !contains ':\\\\Windows\\\\System32\\\\conhost.exe'\r\n and NewProcessName !contains ':\\\\Windows\\\\Microsoft.NET\\\\Framework64\\\\v2.0.50727\\\\csc.exe' and ParentProcessName !contains ':\\\\Windows\\\\Microsoft.NET\\\\Framework64\\\\v2.0.50727\\\\csc.exe'\r\n and NewProcessName !contains ':\\\\Windows\\\\Microsoft.NET\\\\Framework64\\\\v2.0.50727\\\\cvtres.exe' and ParentProcessName !contains ':\\\\Windows\\\\Microsoft.NET\\\\Framework64\\\\v2.0.50727\\\\cvtres.exe'\r\n and NewProcessName!contains ':\\\\Program Files\\\\Microsoft Monitoring Agent\\\\Agent\\\\MonitoringHost.exe' and ParentProcessName !contains ':\\\\Program Files\\\\Microsoft Monitoring Agent\\\\Agent\\\\MonitoringHost.exe'\r\n and ParentProcessName !contains ':\\\\Windows\\\\CCM\\\\CcmExec.exe'\r\n | where(ParentProcessName !contains ':\\\\Windows\\\\System32\\\\svchost.exe' and (NewProcessName !contains ':\\\\Windows\\\\System32\\\\wbem\\\\WmiPrvSE.exe' or NewProcessName !contains ':\\\\Windows\\\\SysWOW64\\\\wbem\\\\WmiPrvSE.exe'))\r\n | where(ParentProcessName !contains ':\\\\Windows\\\\System32\\\\services.exe' and NewProcessName !contains ':\\\\Windows\\\\servicing\\\\TrustedInstaller.exe')\r\n | where toupper(Computer) contains v_Host_HostName or toupper(WorkstationName) contains v_Host_HostName\r\n | summarize min(TimeGenerated), max(TimeGenerated) by Account, Computer, ParentProcessName, NewProcessName, CommandLine, ProcessId\r\n | project min_TimeGenerated, max_TimeGenerated, Account, Computer, ParentProcessName, NewProcessName, CommandLine, ProcessId\r\n | project-rename Process_Host_UnstructuredName=Computer, Process_Account_UnstructuredName=Account, Process_CommandLine=CommandLine, Process_ProcessId=ProcessId, Process_ImageFile_FullPath=NewProcessName, Process_ParentProcess_ImageFile_FullPath=ParentProcessName\r\n | top 10 by min_TimeGenerated asc};\r\n GetParentProcessesOnHost(toupper(''))", + "queryTemplate": "let GetParentProcessesOnHost = (v_Host_HostName:string){\r\n SecurityEvent \r\n | where EventID == 4688 \r\n | where isnotempty(ParentProcessName)\r\n | where NewProcessName !contains ':\\\\Windows\\\\System32\\\\conhost.exe' and ParentProcessName !contains ':\\\\Windows\\\\System32\\\\conhost.exe'\r\n and NewProcessName !contains ':\\\\Windows\\\\Microsoft.NET\\\\Framework64\\\\v2.0.50727\\\\csc.exe' and ParentProcessName !contains ':\\\\Windows\\\\Microsoft.NET\\\\Framework64\\\\v2.0.50727\\\\csc.exe'\r\n and NewProcessName !contains ':\\\\Windows\\\\Microsoft.NET\\\\Framework64\\\\v2.0.50727\\\\cvtres.exe' and ParentProcessName !contains ':\\\\Windows\\\\Microsoft.NET\\\\Framework64\\\\v2.0.50727\\\\cvtres.exe'\r\n and NewProcessName!contains ':\\\\Program Files\\\\Microsoft Monitoring Agent\\\\Agent\\\\MonitoringHost.exe' and ParentProcessName !contains ':\\\\Program Files\\\\Microsoft Monitoring Agent\\\\Agent\\\\MonitoringHost.exe'\r\n and ParentProcessName !contains ':\\\\Windows\\\\CCM\\\\CcmExec.exe'\r\n | where(ParentProcessName !contains ':\\\\Windows\\\\System32\\\\svchost.exe' and (NewProcessName !contains ':\\\\Windows\\\\System32\\\\wbem\\\\WmiPrvSE.exe' or NewProcessName !contains ':\\\\Windows\\\\SysWOW64\\\\wbem\\\\WmiPrvSE.exe'))\r\n | where(ParentProcessName !contains ':\\\\Windows\\\\System32\\\\services.exe' and NewProcessName !contains ':\\\\Windows\\\\servicing\\\\TrustedInstaller.exe')\r\n | where toupper(Computer) contains v_Host_HostName or toupper(WorkstationName) contains v_Host_HostName\r\n | summarize min(TimeGenerated), max(TimeGenerated) by Account, Computer, ParentProcessName, NewProcessName, CommandLine, ProcessId\r\n | project min_TimeGenerated, max_TimeGenerated, Account, Computer, ParentProcessName, NewProcessName, CommandLine, ProcessId\r\n | project-rename Process_Host_UnstructuredName=Computer, Process_Account_UnstructuredName=Account, Process_CommandLine=CommandLine, Process_ProcessId=ProcessId, Process_ImageFile_FullPath=NewProcessName, Process_ParentProcess_ImageFile_FullPath=ParentProcessName\r\n | top 10 by min_TimeGenerated asc};\r\n GetParentProcessesOnHost(toupper(''))", "inputFields": [ - "HostName" + "hostName" ], "outputEntityTypes": [ "Process" diff --git a/specification/securityinsights/resource-manager/readme.md b/specification/securityinsights/resource-manager/readme.md index 20aa7f9264db..6cb5a6afbfae 100644 --- a/specification/securityinsights/resource-manager/readme.md +++ b/specification/securityinsights/resource-manager/readme.md @@ -49,6 +49,7 @@ 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 @@ -66,7 +67,7 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.SecurityInsights payload-flattening-threshold: 2 - output-folder: $(csharp-sdks-folder)/SecurityInsights/Management.SecurityInsights/Generated + output-folder: $(csharp-sdks-folder)/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated clear-output-folder: true ``` @@ -84,4 +85,29 @@ See configuration in [readme.nodejs.md](./readme.nodejs.md) ## TypeScript -See configuration in [readme.typescript.md](./readme.typescript.md) \ No newline at end of file +See configuration in [readme.typescript.md](./readme.typescript.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.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.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/serialconsole/resource-manager/readme.md b/specification/serialconsole/resource-manager/readme.md index 01026dacc0ee..f6b832b4ef9e 100644 --- a/specification/serialconsole/resource-manager/readme.md +++ b/specification/serialconsole/resource-manager/readme.md @@ -63,3 +63,28 @@ csharp: ## Go See configuration in [readme.go.md](./readme.go.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.SerialConsole/stable/2018-05-01/serialconsole.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/service-map/resource-manager/Microsoft.OperationalInsights/preview/2015-11-01-preview/examples/Machines/Ports/SMMachinesPortsGetGet.json b/specification/service-map/resource-manager/Microsoft.OperationalInsights/preview/2015-11-01-preview/examples/Machines/Ports/SMMachinesPortsGetGet.json index b8cc1fb22758..9baf92e2f6d6 100644 --- a/specification/service-map/resource-manager/Microsoft.OperationalInsights/preview/2015-11-01-preview/examples/Machines/Ports/SMMachinesPortsGetGet.json +++ b/specification/service-map/resource-manager/Microsoft.OperationalInsights/preview/2015-11-01-preview/examples/Machines/Ports/SMMachinesPortsGetGet.json @@ -11,22 +11,24 @@ }, "responses": { "200": { - "kind": "port", - "properties": { - "monitoringState": "monitored", - "machine": { - "kind": "ref:machine", - "id": "/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-999066c5-38c5-4f2f-9ce0-51d738cdc432", - "type": "Microsoft.OperationalInsights/workspaces/features/machines", - "name": "m-999066c5-38c5-4f2f-9ce0-51d738cdc432" + "body": { + "kind": "port", + "properties": { + "monitoringState": "monitored", + "machine": { + "kind": "ref:machine", + "id": "/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-999066c5-38c5-4f2f-9ce0-51d738cdc432", + "type": "Microsoft.OperationalInsights/workspaces/features/machines", + "name": "m-999066c5-38c5-4f2f-9ce0-51d738cdc432" + }, + "displayName": ":8000", + "ipAddress": "192.168.1.1", + "portNumber": 8000 }, - "displayName": ":8000", - "ipAddress": "192.168.1.1", - "portNumber": 8000 - }, - "id": "/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-999066c5-38c5-4f2f-9ce0-51d738cdc432/ports/b-c0a80101_8000", - "type": "Microsoft.OperationalInsights/workspaces/features/machines/ports", - "name": "b-c0a80101_8000" + "id": "/subscriptions/63BE4E24-FDF0-4E9C-9342-6A5D5A359722/resourceGroups/rg-sm/providers/Microsoft.OperationalInsights/workspaces/D6F79F14-E563-469B-84B5-9286D2803B2F/machines/m-999066c5-38c5-4f2f-9ce0-51d738cdc432/ports/b-c0a80101_8000", + "type": "Microsoft.OperationalInsights/workspaces/features/machines/ports", + "name": "b-c0a80101_8000" + } } } } diff --git a/specification/service-map/resource-manager/readme.md b/specification/service-map/resource-manager/readme.md index f078a14ef932..c461c040c097 100644 --- a/specification/service-map/resource-manager/readme.md +++ b/specification/service-map/resource-manager/readme.md @@ -109,3 +109,28 @@ generate-interface: 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)/Microsoft.OperationalInsights/preview/2015-11-01-preview/arm-service-map.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/servicebus/resource-manager/Microsoft.ServiceBus/stable/2015-08-01/examples/SBNameSpaceAuthorizationRuleListAll.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2015-08-01/examples/SBNameSpaceAuthorizationRuleListAll.json index 14537ab91c48..7347ec8c6444 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2015-08-01/examples/SBNameSpaceAuthorizationRuleListAll.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2015-08-01/examples/SBNameSpaceAuthorizationRuleListAll.json @@ -33,7 +33,7 @@ } } ], - "nextLink": "" + "nextLink": null } } } diff --git a/specification/servicebus/resource-manager/readme.go.md b/specification/servicebus/resource-manager/readme.go.md index 0459017ef37b..e51da92a4617 100644 --- a/specification/servicebus/resource-manager/readme.go.md +++ b/specification/servicebus/resource-manager/readme.go.md @@ -13,10 +13,20 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-2018-01-preview - tag: package-2017-04 - tag: package-2015-08 ``` +### Tag: package-2018-01-preview and go + +These settings apply only when `--tag=package-2018-01-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-01-01-preview/$(namespace) +``` + ### Tag: package-2017-04 and go These settings apply only when `--tag=package-2017-04 --go` is specified on the command line. diff --git a/specification/servicebus/resource-manager/readme.java.md b/specification/servicebus/resource-manager/readme.java.md new file mode 100644 index 000000000000..51500a93632d --- /dev/null +++ b/specification/servicebus/resource-manager/readme.java.md @@ -0,0 +1,66 @@ +## 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.servicebus +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-servicebus +directive: + rename-model: + from: PremiumMessagingRegions + to: PremiumMessagingRegion + +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2015-08 + - tag: package-2017-04 + - tag: package-2018-01-preview +``` + +### Tag: package-2015-08 and java + +These settings apply only when `--tag=package-2015-08 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2015-08' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.servicebus.v2015_08_01 + output-folder: $(azure-libraries-for-java-folder)/servicebus/resource-manager/v2015_08_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-04 and java + +These settings apply only when `--tag=package-2017-04 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2017-04' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.servicebus.v2017_04_01 + output-folder: $(azure-libraries-for-java-folder)/servicebus/resource-manager/v2017_04_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-01-preview and java + +These settings apply only when `--tag=package-2018-01-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-01-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.servicebus.v2018_01_01_preview + output-folder: $(azure-libraries-for-java-folder)/servicebus/resource-manager/v2018_01_01_preview +regenerate-manager: true +generate-interface: true +``` \ No newline at end of file diff --git a/specification/servicebus/resource-manager/readme.md b/specification/servicebus/resource-manager/readme.md index fb1e5381521a..9ab1fb7f2d0f 100644 --- a/specification/servicebus/resource-manager/readme.md +++ b/specification/servicebus/resource-manager/readme.md @@ -73,6 +73,7 @@ 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 @@ -132,55 +133,31 @@ 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) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.servicebus -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-servicebus -directive: - rename-model: - from: PremiumMessagingRegions - to: PremiumMessagingRegion - -``` +See configuration in [readme.java.md](./readme.java.md) -### Java multi-api +## Multi-API/Profile support for AutoRest v3 generators -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2015-08 - - tag: package-2017-04 -``` +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -### Tag: package-2015-08 and java +This block is updated by an automatic script. Edits may be lost! -These settings apply only when `--tag=package-2015-08 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -``` yaml $(tag) == 'package-2015-08' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.servicebus.v2015_08_01 - output-folder: $(azure-libraries-for-java-folder)/servicebus/resource-manager/v2015_08_01 -regenerate-manager: true -generate-interface: true -``` +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.ServiceBus/preview/2018-01-01-preview/servicebus-preview.json + - $(this-folder)/Microsoft.ServiceBus/stable/2017-04-01/servicebus.json + - $(this-folder)/Microsoft.ServiceBus/stable/2015-08-01/servicebus.json -### Tag: package-2017-04 and java +``` -These settings apply only when `--tag=package-2017-04 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. +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) == 'package-2017-04' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.servicebus.v2017_04_01 - output-folder: $(azure-libraries-for-java-folder)/servicebus/resource-manager/v2017_04_01 -regenerate-manager: true -generate-interface: true +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json ``` - diff --git a/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/examples/GetApplicationInfoByName-1.json b/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/examples/GetApplicationInfoByName-1.json index 9d230b4a6666..6d9746679571 100644 --- a/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/examples/GetApplicationInfoByName-1.json +++ b/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/examples/GetApplicationInfoByName-1.json @@ -19,9 +19,6 @@ "ApplicationDefinitionKind": "ServiceFabricApplicationDescription" } }, - "204": { - "headers": {}, - "body": "" - } + "204": {} } } diff --git a/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/examples/GetDeployedApplicationInfoByName-1.json b/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/examples/GetDeployedApplicationInfoByName-1.json index 87c8485a607c..8552057cbe2f 100644 --- a/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/examples/GetDeployedApplicationInfoByName-1.json +++ b/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/examples/GetDeployedApplicationInfoByName-1.json @@ -21,9 +21,6 @@ "HealthState": "Ok" } }, - "204": { - "headers": {}, - "body": "" - } + "204": {} } } diff --git a/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/examples/GetServiceTypeInfoByName-1.json b/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/examples/GetServiceTypeInfoByName-1.json index 910cb86eaf6d..4340954856fe 100644 --- a/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/examples/GetServiceTypeInfoByName-1.json +++ b/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/examples/GetServiceTypeInfoByName-1.json @@ -31,9 +31,6 @@ "IsServiceGroup": false } }, - "204": { - "headers": {}, - "body": "" - } + "204": {} } } diff --git a/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/servicefabric.json b/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/servicefabric.json index a85c1110e620..6cfc2a82e2bd 100644 --- a/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/servicefabric.json +++ b/specification/servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/servicefabric.json @@ -12989,7 +12989,7 @@ }, "ServicePlacementPreferPrimaryDomainPolicyDescription": { "x-ms-discriminator-value": "PreferredPrimaryDomain", - "description": "Describes the policy to be used for placement of a Service Fabric service where the service's Primary replicas should optimally be placed in a particular domain.\n\nThis placement policy is usually used with fault domains in scenarios where the Service Fabric cluster is geographically distributed in order to indicate that a service�s primary replica should be located in a particular fault domain, which in geo-distributed scenarios usually aligns with regional or datacenter boundaries. Note that since this is an optimization it is possible that the Primary replica may not end up located in this domain due to failures, capacity limits, or other constraints.", + "description": "Describes the policy to be used for placement of a Service Fabric service where the service's Primary replicas should optimally be placed in a particular domain.\n\nThis placement policy is usually used with fault domains in scenarios where the Service Fabric cluster is geographically distributed in order to indicate that a service's primary replica should be located in a particular fault domain, which in geo-distributed scenarios usually aligns with regional or datacenter boundaries. Note that since this is an optimization it is possible that the Primary replica may not end up located in this domain due to failures, capacity limits, or other constraints.", "allOf": [ { "$ref": "#/definitions/ServicePlacementPolicyDescription" diff --git a/specification/servicefabric/data-plane/readme.md b/specification/servicefabric/data-plane/readme.md index ff54fb0daec5..9fe8898b65d4 100644 --- a/specification/servicefabric/data-plane/readme.md +++ b/specification/servicefabric/data-plane/readme.md @@ -141,3 +141,31 @@ java: payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-servicefabric ``` + +## 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.ServiceFabric/stable/6.2/servicefabric.json + - $(this-folder)/Microsoft.ServiceFabric/stable/6.3/servicefabric.json + - $(this-folder)/Microsoft.ServiceFabric/stable/6.4/servicefabric.json + - $(this-folder)/Microsoft.ServiceFabric/stable/6.5/servicefabric.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/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/application.json new file mode 100644 index 000000000000..550a3ab49805 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/application.json @@ -0,0 +1,2199 @@ +{ + "swagger": "2.0", + "info": { + "title": "ServiceFabricManagementClient", + "description": "Azure Service Fabric Resource Provider API Client", + "version": "2019-03-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "description": "Azure Active Directory OAuth2 Flow", + "flow": "implicit", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "type": "oauth2" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "paths": { + "/providers/Microsoft.ServiceFabric/operations": { + "get": { + "tags": [ + "Operations" + ], + "summary": "Lists all of the available Service Fabric resource provider API operations.", + "description": "Get the list of available Service Fabric resource provider API operations.", + "operationId": "Operations_List", + "parameters": [ + { + "name": "api-version", + "in": "query", + "description": "The version of the Service Fabric resource provider API", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}": { + "get": { + "tags": [ + "ApplicationType" + ], + "operationId": "ApplicationTypes_Get", + "summary": "Gets a Service Fabric application type name resource.", + "description": "Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationTypeName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "x-ms-examples": { + "Get an application type": { + "$ref": "./examples/ApplicationTypeNameGetOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApplicationTypeResource" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + }, + "put": { + "tags": [ + "ApplicationType" + ], + "operationId": "ApplicationTypes_CreateOrUpdate", + "summary": "Creates or updates a Service Fabric application type name resource.", + "description": "Create or update a Service Fabric application type name resource with the specified name.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationTypeName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "parameters", + "in": "body", + "description": "The application type name resource.", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationTypeResource" + }, + "x-ms-parameter-location": "method" + } + ], + "x-ms-examples": { + "Put an application type": { + "$ref": "./examples/ApplicationTypeNamePutOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApplicationTypeResource" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationType" + ], + "operationId": "ApplicationTypes_Delete", + "summary": "Deletes a Service Fabric application type name resource.", + "description": "Delete a Service Fabric application type name resource with the specified name.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationTypeName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "x-ms-examples": { + "Delete an application type": { + "$ref": "./examples/ApplicationTypeNameDeleteOperation_example.json" + } + }, + "x-ms-long-running-operation": true, + "responses": { + "202": { + "description": "The request was accepted and the operation will complete asynchronously." + }, + "204": { + "description": "The resource was not found." + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes": { + "get": { + "tags": [ + "ApplicationType" + ], + "operationId": "ApplicationTypes_List", + "summary": "Gets the list of application type name resources created in the specified Service Fabric cluster resource.", + "description": "Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "x-ms-examples": { + "Get a list of application type name resources": { + "$ref": "./examples/ApplicationTypeNameListOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApplicationTypeResourceList" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}": { + "get": { + "tags": [ + "ApplicationTypeVersion" + ], + "operationId": "ApplicationTypeVersions_Get", + "summary": "Gets a Service Fabric application type version resource.", + "description": "Get a Service Fabric application type version resource created or in the process of being created in the Service Fabric application type name resource.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationTypeName" + }, + { + "$ref": "#/parameters/version" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "x-ms-examples": { + "Get an application type version": { + "$ref": "./examples/ApplicationTypeVersionGetOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApplicationTypeVersionResource" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + }, + "put": { + "tags": [ + "ApplicationTypeVersion" + ], + "operationId": "ApplicationTypeVersions_CreateOrUpdate", + "summary": "Creates or updates a Service Fabric application type version resource.", + "description": "Create or update a Service Fabric application type version resource with the specified name.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationTypeName" + }, + { + "$ref": "#/parameters/version" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "parameters", + "in": "body", + "description": "The application type version resource.", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationTypeVersionResource" + }, + "x-ms-parameter-location": "method" + } + ], + "x-ms-examples": { + "Put an application type version": { + "$ref": "./examples/ApplicationTypeVersionPutOperation_example.json" + } + }, + "x-ms-long-running-operation": true, + "responses": { + "202": { + "description": "The request was accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/ApplicationTypeVersionResource" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + }, + "delete": { + "tags": [ + "ApplicationTypeVersion" + ], + "operationId": "ApplicationTypeVersions_Delete", + "summary": "Deletes a Service Fabric application type version resource.", + "description": "Delete a Service Fabric application type version resource with the specified name.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationTypeName" + }, + { + "$ref": "#/parameters/version" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "x-ms-examples": { + "Delete an application type version": { + "$ref": "./examples/ApplicationTypeVersionDeleteOperation_example.json" + } + }, + "x-ms-long-running-operation": true, + "responses": { + "202": { + "description": "The request was accepted and the operation will complete asynchronously." + }, + "204": { + "description": "The resource was not found." + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions": { + "get": { + "tags": [ + "ApplicationTypeVersion" + ], + "operationId": "ApplicationTypeVersions_List", + "summary": "Gets the list of application type version resources created in the specified Service Fabric application type name resource.", + "description": "Gets all application type version resources created or in the process of being created in the Service Fabric application type name resource.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationTypeName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "x-ms-examples": { + "Get a list of application type version resources": { + "$ref": "./examples/ApplicationTypeVersionListOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApplicationTypeVersionResourceList" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}": { + "get": { + "tags": [ + "Application" + ], + "operationId": "Applications_Get", + "summary": "Gets a Service Fabric application resource.", + "description": "Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "x-ms-examples": { + "Get an application": { + "$ref": "./examples/ApplicationGetOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApplicationResource" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + }, + "put": { + "tags": [ + "Application" + ], + "operationId": "Applications_CreateOrUpdate", + "summary": "Creates or updates a Service Fabric application resource.", + "description": "Create or update a Service Fabric application resource with the specified name.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "parameters", + "in": "body", + "description": "The application resource.", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationResource" + }, + "x-ms-parameter-location": "method" + } + ], + "x-ms-examples": { + "Put an application with minimum parameters": { + "$ref": "./examples/ApplicationPutOperation_example_min.json" + }, + "Put an application with maximum parameters": { + "$ref": "./examples/ApplicationPutOperation_example_max.json" + } + }, + "x-ms-long-running-operation": true, + "responses": { + "202": { + "description": "The request was accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/ApplicationResource" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + }, + "patch": { + "tags": [ + "Application" + ], + "operationId": "Applications_Update", + "summary": "Updates a Service Fabric application resource.", + "description": "Update a Service Fabric application resource with the specified name.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "parameters", + "in": "body", + "description": "The application resource for patch operations.", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationResourceUpdate" + }, + "x-ms-parameter-location": "method" + } + ], + "x-ms-examples": { + "Patch an application": { + "$ref": "./examples/ApplicationPatchOperation_example.json" + } + }, + "x-ms-long-running-operation": true, + "responses": { + "202": { + "description": "The request was accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/ApplicationResource" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + }, + "delete": { + "tags": [ + "Application" + ], + "operationId": "Applications_Delete", + "summary": "Deletes a Service Fabric application resource.", + "description": "Delete a Service Fabric application resource with the specified name.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "x-ms-examples": { + "Delete an application": { + "$ref": "./examples/ApplicationDeleteOperation_example.json" + } + }, + "x-ms-long-running-operation": true, + "responses": { + "202": { + "description": "The request was accepted and the operation will complete asynchronously." + }, + "204": { + "description": "The resource was not found." + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications": { + "get": { + "tags": [ + "Application" + ], + "operationId": "Applications_List", + "summary": "Gets the list of application resources created in the specified Service Fabric cluster resource.", + "description": "Gets all application resources created or in the process of being created in the Service Fabric cluster resource.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "x-ms-examples": { + "Get a list of application resources": { + "$ref": "./examples/ApplicationListOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApplicationResourceList" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}": { + "get": { + "tags": [ + "Service" + ], + "operationId": "Services_Get", + "summary": "Gets a Service Fabric service resource.", + "description": "Get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationName" + }, + { + "$ref": "#/parameters/serviceName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "x-ms-examples": { + "Get a service": { + "$ref": "./examples/ServiceGetOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ServiceResource" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + }, + "put": { + "tags": [ + "Service" + ], + "operationId": "Services_CreateOrUpdate", + "summary": "Creates or updates a Service Fabric service resource.", + "description": "Create or update a Service Fabric service resource with the specified name.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationName" + }, + { + "$ref": "#/parameters/serviceName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "parameters", + "in": "body", + "description": "The service resource.", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceResource" + }, + "x-ms-parameter-location": "method" + } + ], + "x-ms-examples": { + "Put a service with minimum parameters": { + "$ref": "./examples/ServicePutOperation_example_min.json" + }, + "Put a service with maximum parameters": { + "$ref": "./examples/ServicePutOperation_example_max.json" + } + }, + "x-ms-long-running-operation": true, + "responses": { + "202": { + "description": "The request was accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/ServiceResource" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + }, + "patch": { + "tags": [ + "Service" + ], + "operationId": "Services_Update", + "summary": "Updates a Service Fabric service resource.", + "description": "Update a Service Fabric service resource with the specified name.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationName" + }, + { + "$ref": "#/parameters/serviceName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "parameters", + "in": "body", + "description": "The service resource for patch operations.", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceResourceUpdate" + }, + "x-ms-parameter-location": "method" + } + ], + "x-ms-examples": { + "Patch a service": { + "$ref": "./examples/ServicePatchOperation_example.json" + } + }, + "x-ms-long-running-operation": true, + "responses": { + "202": { + "description": "The request was accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/ServiceResource" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + }, + "delete": { + "tags": [ + "Service" + ], + "operationId": "Services_Delete", + "summary": "Deletes a Service Fabric service resource.", + "description": "Delete a Service Fabric service resource with the specified name.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationName" + }, + { + "$ref": "#/parameters/serviceName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "x-ms-examples": { + "Delete a service": { + "$ref": "./examples/ServiceDeleteOperation_example.json" + } + }, + "x-ms-long-running-operation": true, + "responses": { + "202": { + "description": "The request was accepted and the operation will complete asynchronously." + }, + "204": { + "description": "The resource was not found." + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services": { + "get": { + "tags": [ + "Service" + ], + "operationId": "Services_List", + "summary": "Gets the list of service resources created in the specified Service Fabric application resource.", + "description": "Gets all service resources created or in the process of being created in the Service Fabric application resource.", + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/applicationName" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "x-ms-examples": { + "Get a list of service resources": { + "$ref": "./examples/ServiceListOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ServiceResourceList" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + } + } + }, + "definitions": { + "ApplicationMetricDescription": { + "type": "object", + "description": "Describes capacity information for a custom resource balancing metric. This can be used to limit the total consumption of this metric by the services of this application.\n", + "properties": { + "name": { + "type": "string", + "description": "The name of the metric." + }, + "maximumCapacity": { + "type": "integer", + "format": "int64", + "description": "The maximum node capacity for Service Fabric application.\nThis is the maximum Load for an instance of this application on a single node. Even if the capacity of node is greater than this value, Service Fabric will limit the total load of services within the application on each node to this value.\nIf set to zero, capacity for this metric is unlimited on each node.\nWhen creating a new application with application capacity defined, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity.\nWhen updating existing application with application capacity, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity.\n" + }, + "reservationCapacity": { + "type": "integer", + "format": "int64", + "description": "The node reservation capacity for Service Fabric application.\nThis is the amount of load which is reserved on nodes which have instances of this application.\nIf MinimumNodes is specified, then the product of these values will be the capacity reserved in the cluster for the application.\nIf set to zero, no capacity is reserved for this metric.\nWhen setting application capacity or when updating application capacity; this value must be smaller than or equal to MaximumCapacity for each metric.\n" + }, + "totalApplicationCapacity": { + "description": "The total metric capacity for Service Fabric application.\nThis is the total metric capacity for this application in the cluster. Service Fabric will try to limit the sum of loads of services within the application to this value.\nWhen creating a new application with application capacity defined, the product of MaximumNodes and MaximumCapacity must always be smaller than or equal to this value.\n", + "type": "integer", + "format": "int64" + } + } + }, + "ApplicationMetricDescriptionList": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationMetricDescription" + }, + "description": "List of application capacity metric description." + }, + "ApplicationParameterList": { + "type": "object", + "description": "List of application parameters with overridden values from their default values specified in the application manifest.", + "additionalProperties": { + "type": "string" + } + }, + "ApplicationResource": { + "description": "The application resource.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationResourceProperties", + "description": "The application resource properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "ApplicationResourceList": { + "description": "The list of application resources.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationResource" + } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of application list results if there are any.", + "readOnly": true + } + } + }, + "ApplicationResourceProperties": { + "description": "The application resource properties.", + "allOf": [ + { + "$ref": "#/definitions/ApplicationResourceUpdateProperties" + } + ], + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The current deployment or provisioning state, which only appears in the response" + }, + "typeName": { + "$ref": "#/definitions/ApplicationTypeName", + "description": "The application type name as defined in the application manifest." + } + } + }, + "ApplicationResourceUpdate": { + "description": "The application resource for patch operations.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationResourceUpdateProperties", + "description": "The application resource properties for patch operations." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "ApplicationResourceUpdateProperties": { + "description": "The application resource properties for patch operations.", + "properties": { + "typeVersion": { + "$ref": "#/definitions/ApplicationTypeVersion", + "description": "The version of the application type as defined in the application manifest." + }, + "parameters": { + "$ref": "#/definitions/ApplicationParameterList", + "description": "List of application parameters with overridden values from their default values specified in the application manifest." + }, + "upgradePolicy": { + "$ref": "#/definitions/ApplicationUpgradePolicy", + "description": "Describes the policy for a monitored application upgrade." + }, + "minimumNodes": { + "type": "integer", + "format": "int64", + "description": "The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property.", + "minimum": 0 + }, + "maximumNodes": { + "type": "integer", + "format": "int64", + "description": "The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node.", + "minimum": 0, + "default": 0 + }, + "removeApplicationCapacity": { + "type": "boolean", + "description": "Remove the current application capacity settings." + }, + "metrics": { + "$ref": "#/definitions/ApplicationMetricDescriptionList", + "description": "List of application capacity metric description." + } + } + }, + "ApplicationTypeName": { + "type": "string", + "description": "The application type name as defined in the application manifest." + }, + "ApplicationTypeParameterList": { + "type": "object", + "description": "List of application type parameters that can be overridden when creating or updating the application.", + "additionalProperties": { + "type": "string" + } + }, + "ApplicationTypeResource": { + "description": "The application type name resource", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationTypeResourceProperties", + "description": "The application type name properties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "ApplicationTypeResourceList": { + "description": "The list of application type names.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationTypeResource" + } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of application type list results if there are any.", + "readOnly": true + } + } + }, + "ApplicationTypeResourceProperties": { + "description": "The application type name properties", + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The current deployment or provisioning state, which only appears in the response." + } + } + }, + "ApplicationTypeVersion": { + "type": "string", + "description": "The version of the application type as defined in the application manifest." + }, + "ApplicationTypeVersionResource": { + "description": "An application type version resource for the specified application type name resource.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApplicationTypeVersionResourceProperties", + "description": "The properties of the application type version resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "ApplicationTypeVersionResourceList": { + "description": "The list of application type version resources for the specified application type name resource.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationTypeVersionResource" + } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of application type version list results if there are any.", + "readOnly": true + } + } + }, + "ApplicationTypeVersionResourceProperties": { + "description": "The properties of the application type version resource.", + "required": [ + "appPackageUrl" + ], + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The current deployment or provisioning state, which only appears in the response" + }, + "appPackageUrl": { + "type": "string", + "description": "The URL to the application package" + }, + "defaultParameterList": { + "readOnly": true, + "$ref": "#/definitions/ApplicationTypeParameterList", + "description": "List of application type parameters that can be overridden when creating or updating the application." + } + } + }, + "ApplicationUpgradePolicy": { + "description": "Describes the policy for a monitored application upgrade.", + "properties": { + "upgradeReplicaSetCheckTimeout": { + "type": "string", + "description": "The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer)." + }, + "forceRestart": { + "$ref": "#/definitions/ForceRestart", + "description": "If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data)." + }, + "rollingUpgradeMonitoringPolicy": { + "$ref": "#/definitions/ArmRollingUpgradeMonitoringPolicy", + "description": "The policy used for monitoring the application upgrade" + }, + "applicationHealthPolicy": { + "$ref": "#/definitions/ArmApplicationHealthPolicy", + "description": "Defines a health policy used to evaluate the health of an application or one of its children entities.\n" + } + } + }, + "ArmApplicationHealthPolicy": { + "type": "object", + "description": "Defines a health policy used to evaluate the health of an application or one of its children entities.\n", + "properties": { + "considerWarningAsError": { + "type": "boolean", + "description": "Indicates whether warnings are treated with the same severity as errors.", + "default": false + }, + "maxPercentUnhealthyDeployedApplications": { + "type": "integer", + "description": "The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100.\nThe percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error.\nThis is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster.\nThe computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n", + "default": 0 + }, + "defaultServiceTypeHealthPolicy": { + "$ref": "#/definitions/ArmServiceTypeHealthPolicy", + "description": "The health policy used by default to evaluate the health of a service type." + }, + "serviceTypeHealthPolicyMap": { + "$ref": "#/definitions/ArmServiceTypeHealthPolicyMap", + "description": "The map with service type health policy per service type name. The map is empty by default." + } + } + }, + "ArmRollingUpgradeMonitoringPolicy": { + "description": "The policy used for monitoring the application upgrade", + "properties": { + "failureAction": { + "type": "string", + "description": "The activation Mode of the service package", + "enum": [ + "Rollback", + "Manual" + ], + "x-ms-enum": { + "name": "ArmUpgradeFailureAction", + "modelAsString": true, + "values": [ + { + "value": "Rollback", + "description": "Indicates that a rollback of the upgrade will be performed by Service Fabric if the upgrade fails." + }, + { + "value": "Manual", + "description": "Indicates that a manual repair will need to be performed by the administrator if the upgrade fails. Service Fabric will not proceed to the next upgrade domain automatically." + } + ] + } + }, + "healthCheckWaitDuration": { + "$ref": "#/definitions/HealthCheckWaitDuration", + "description": "The amount of time to wait after completing an upgrade domain before applying health policies. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds." + }, + "healthCheckStableDuration": { + "$ref": "#/definitions/HealthCheckStableDuration", + "description": "The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds." + }, + "healthCheckRetryTimeout": { + "$ref": "#/definitions/HealthCheckRetryTimeout", + "description": "The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds." + }, + "upgradeTimeout": { + "$ref": "#/definitions/UpgradeTimeout", + "description": "The amount of time the overall upgrade has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds." + }, + "upgradeDomainTimeout": { + "$ref": "#/definitions/UpgradeDomainTimeout", + "description": "The amount of time each upgrade domain has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds." + } + } + }, + "ArmServiceTypeHealthPolicy": { + "type": "object", + "description": "Represents the health policy used to evaluate the health of services belonging to a service type.\n", + "properties": { + "maxPercentUnhealthyServices": { + "type": "integer", + "description": "The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n", + "default": 0, + "minimum": 0, + "maximum": 100 + }, + "maxPercentUnhealthyPartitionsPerService": { + "type": "integer", + "description": "The maximum percentage of partitions per service allowed to be unhealthy before your application is considered in error.\n", + "default": 0, + "minimum": 0, + "maximum": 100 + }, + "maxPercentUnhealthyReplicasPerPartition": { + "type": "integer", + "description": "The maximum percentage of replicas per partition allowed to be unhealthy before your application is considered in error.\n", + "default": 0, + "minimum": 0, + "maximum": 100 + } + } + }, + "ArmServiceTypeHealthPolicyMap": { + "type": "object", + "description": "Defines a ServiceTypeHealthPolicy per service type name.\n\nThe entries in the map replace the default service type health policy for each specified service type.\nFor example, in an application that contains both a stateless gateway service type and a stateful engine service type, the health policies for the stateless and stateful services can be configured differently.\nWith policy per service type, there's more granular control of the health of the service.\n\nIf no policy is specified for a service type name, the DefaultServiceTypeHealthPolicy is used for evaluation.\n", + "additionalProperties": { + "$ref": "#/definitions/ArmServiceTypeHealthPolicy" + } + }, + "AvailableOperationDisplay": { + "properties": { + "provider": { + "type": "string", + "description": "The name of the provider." + }, + "resource": { + "type": "string", + "description": "The resource on which the operation is performed" + }, + "operation": { + "type": "string", + "description": "The operation that can be performed." + }, + "description": { + "type": "string", + "description": "Operation description" + } + }, + "description": "Operation supported by the Service Fabric resource provider" + }, + "CorrelationSchemeList": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceCorrelationDescription" + }, + "description": "A list that describes the correlation of the service with other services." + }, + "ForceRestart": { + "type": "boolean", + "description": "If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data).", + "default": false + }, + "HealthCheckRetryTimeout": { + "type": "string", + "description": "The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds.", + "default": "PT0H10M0S" + }, + "HealthCheckStableDuration": { + "type": "string", + "description": "The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds.", + "default": "PT0H2M0S" + }, + "HealthCheckWaitDuration": { + "type": "string", + "description": "The amount of time to wait after completing an upgrade domain before applying health policies. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds.", + "default": "0" + }, + "MoveCost": { + "type": "string", + "description": "Specifies the move cost for the service.", + "enum": [ + "Zero", + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "MoveCost", + "modelAsString": true, + "values": [ + { + "value": "Zero", + "description": "Zero move cost. This value is zero." + }, + { + "value": "Low", + "description": "Specifies the move cost of the service as Low. The value is 1." + }, + { + "value": "Medium", + "description": "Specifies the move cost of the service as Medium. The value is 2." + }, + { + "value": "High", + "description": "Specifies the move cost of the service as High. The value is 3." + } + ] + } + }, + "NamedPartitionSchemeDescription": { + "description": "Describes the named partition scheme of the service.", + "allOf": [ + { + "$ref": "#/definitions/PartitionSchemeDescription" + }, + { + "type": "object", + "description": "NamedPartitionSchemeDescription" + } + ], + "x-ms-discriminator-value": "Named", + "required": [ + "Count", + "Names" + ], + "properties": { + "Count": { + "type": "integer", + "description": "The number of partitions." + }, + "Names": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of size specified by the ‘Count’ parameter, for the names of the partitions." + } + } + }, + "OperationListResult": { + "properties": { + "value": { + "type": "array", + "description": "List of operations supported by the Service Fabric resource provider.", + "items": { + "$ref": "#/definitions/OperationResult" + } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any.", + "readOnly": true + } + }, + "description": "Describes the result of the request to list Service Fabric resource provider operations." + }, + "OperationResult": { + "properties": { + "name": { + "type": "string", + "description": "The name of the operation." + }, + "display": { + "$ref": "#/definitions/AvailableOperationDisplay", + "description": "The object that represents the operation." + }, + "origin": { + "type": "string", + "description": "Origin result" + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "Available operation list result" + }, + "PartitionScheme": { + "type": "string", + "description": "Enumerates the ways that a service can be partitioned.", + "enum": [ + "Invalid", + "Singleton", + "UniformInt64Range", + "Named" + ], + "x-ms-enum": { + "name": "PartitionScheme", + "modelAsString": true, + "values": [ + { + "value": "Invalid", + "description": "Indicates the partition kind is invalid. All Service Fabric enumerations have the invalid type. The value is zero." + }, + { + "value": "Singleton", + "description": "Indicates that the partition is based on string names, and is a SingletonPartitionSchemeDescription object, The value is 1." + }, + { + "value": "UniformInt64Range", + "description": "Indicates that the partition is based on Int64 key ranges, and is a UniformInt64RangePartitionSchemeDescription object. The value is 2." + }, + { + "value": "Named", + "description": "Indicates that the partition is based on string names, and is a NamedPartitionSchemeDescription object. The value is 3" + } + ] + } + }, + "PartitionSchemeDescription": { + "type": "object", + "discriminator": "partitionScheme", + "description": "Describes how the service is partitioned.", + "required": [ + "partitionScheme" + ], + "properties": { + "partitionScheme": { + "$ref": "#/definitions/PartitionScheme", + "description": "Specifies how the service is partitioned." + } + } + }, + "ProxyResource": { + "properties": { + "id": { + "type": "string", + "description": "Azure resource identifier.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Azure resource name.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Azure resource type.", + "readOnly": true + }, + "location": { + "type": "string", + "description": "It will be deprecated in New API, resource location depends on the parent resource.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Azure resource tags.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "etag": { + "type": "string", + "description": "Azure resource etag.", + "readOnly": true + } + }, + "description": "The resource model definition for proxy-only resource.", + "x-ms-azure-resource": true + }, + "ServiceCorrelationDescription": { + "type": "object", + "description": "Creates a particular correlation between services.", + "required": [ + "scheme", + "serviceName" + ], + "properties": { + "scheme": { + "$ref": "#/definitions/ServiceCorrelationScheme", + "description": "The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName." + }, + "serviceName": { + "$ref": "#/definitions/ServiceName", + "description": "The name of the service that the correlation relationship is established with." + } + } + }, + "ServiceCorrelationScheme": { + "type": "string", + "description": "The service correlation scheme.", + "enum": [ + "Invalid", + "Affinity", + "AlignedAffinity", + "NonAlignedAffinity" + ], + "x-ms-enum": { + "name": "ServiceCorrelationScheme", + "modelAsString": true, + "values": [ + { + "value": "Invalid", + "description": "An invalid correlation scheme. Cannot be used. The value is zero." + }, + { + "value": "Affinity", + "description": "Indicates that this service has an affinity relationship with another service. Provided for backwards compatibility, consider preferring the Aligned or NonAlignedAffinity options. The value is 1." + }, + { + "value": "AlignedAffinity", + "description": "Aligned affinity ensures that the primaries of the partitions of the affinitized services are collocated on the same nodes. This is the default and is the same as selecting the Affinity scheme. The value is 2." + }, + { + "value": "NonAlignedAffinity", + "description": "Non-Aligned affinity guarantees that all replicas of each service will be placed on the same nodes. Unlike Aligned Affinity, this does not guarantee that replicas of particular role will be collocated. The value is 3." + } + ] + } + }, + "ServiceKind": { + "type": "string", + "description": "The kind of service (Stateless or Stateful).", + "enum": [ + "Invalid", + "Stateless", + "Stateful" + ], + "x-ms-enum": { + "name": "ServiceKind", + "modelAsString": true, + "values": [ + { + "value": "Invalid", + "description": "Indicates the service kind is invalid. All Service Fabric enumerations have the invalid type. The value is zero." + }, + { + "value": "Stateless", + "description": "Does not use Service Fabric to make its state highly available or reliable. The value is 1." + }, + { + "value": "Stateful", + "description": "Uses Service Fabric to make its state or part of its state highly available and reliable. The value is 2." + } + ] + } + }, + "ServiceLoadMetricDescription": { + "type": "object", + "description": "Specifies a metric to load balance a service during runtime.", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive." + }, + "weight": { + "$ref": "#/definitions/ServiceLoadMetricWeight", + "description": "The service load metric relative weight, compared to other metrics configured for this service, as a number." + }, + "primaryDefaultLoad": { + "type": "integer", + "description": "Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica." + }, + "secondaryDefaultLoad": { + "type": "integer", + "description": "Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica." + }, + "defaultLoad": { + "type": "integer", + "description": "Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric." + } + } + }, + "ServiceLoadMetricsList": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceLoadMetricDescription" + }, + "description": "The service load metrics is given as an array of ServiceLoadMetricDescription objects." + }, + "ServiceLoadMetricWeight": { + "type": "string", + "description": "Determines the metric weight relative to the other metrics that are configured for this service. During runtime, if two metrics end up in conflict, the Cluster Resource Manager prefers the metric with the higher weight.", + "enum": [ + "Zero", + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "ServiceLoadMetricWeight", + "modelAsString": true, + "values": [ + { + "value": "Zero", + "description": "Disables resource balancing for this metric. This value is zero." + }, + { + "value": "Low", + "description": "Specifies the metric weight of the service load as Low. The value is 1." + }, + { + "value": "Medium", + "description": "Specifies the metric weight of the service load as Medium. The value is 2." + }, + { + "value": "High", + "description": "Specifies the metric weight of the service load as High. The value is 3." + } + ] + } + }, + "ServiceName": { + "type": "string", + "description": "The full name of the service with 'fabric:' URI scheme." + }, + "ServicePlacementPoliciesList": { + "type": "array", + "items": { + "$ref": "#/definitions/ServicePlacementPolicyDescription" + }, + "description": "A list that describes the correlation of the service with other services." + }, + "ServicePlacementPolicyDescription": { + "type": "object", + "discriminator": "Type", + "description": "Describes the policy to be used for placement of a Service Fabric service.", + "required": [ + "Type" + ], + "properties": { + "Type": { + "$ref": "#/definitions/ServicePlacementPolicyType", + "description": "The type of placement policy for a service fabric service. Following are the possible values." + } + } + }, + "ServicePlacementPolicyType": { + "type": "string", + "description": "The type of placement policy for a service fabric service. Following are the possible values.", + "enum": [ + "Invalid", + "InvalidDomain", + "RequiredDomain", + "PreferredPrimaryDomain", + "RequiredDomainDistribution", + "NonPartiallyPlaceService" + ], + "x-ms-enum": { + "name": "ServicePlacementPolicyType", + "modelAsString": true, + "values": [ + { + "value": "Invalid", + "description": "Indicates the type of the placement policy is invalid. All Service Fabric enumerations have the invalid type. The value is zero." + }, + { + "value": "InvalidDomain", + "description": "Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementInvalidDomainPolicyDescription, which indicates that a particular fault or upgrade domain cannot be used for placement of this service. The value is 1." + }, + { + "value": "RequiredDomain", + "description": "Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementRequireDomainDistributionPolicyDescription indicating that the replicas of the service must be placed in a specific domain. The value is 2." + }, + { + "value": "PreferredPrimaryDomain", + "description": "Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementPreferPrimaryDomainPolicyDescription, which indicates that if possible the Primary replica for the partitions of the service should be located in a particular domain as an optimization. The value is 3." + }, + { + "value": "RequiredDomainDistribution", + "description": "Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementRequireDomainDistributionPolicyDescription, indicating that the system will disallow placement of any two replicas from the same partition in the same domain at any time. The value is 4." + }, + { + "value": "NonPartiallyPlaceService", + "description": "Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementNonPartiallyPlaceServicePolicyDescription, which indicates that if possible all replicas of a particular partition of the service should be placed atomically. The value is 5." + } + ] + } + }, + "ServiceResource": { + "description": "The service resource.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ServiceResourceProperties", + "description": "The service resource properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "ServiceResourceList": { + "description": "The list of service resources.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceResource" + } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of service list results if there are any.", + "readOnly": true + } + } + }, + "ServiceResourceProperties": { + "description": "The service resource properties.", + "allOf": [ + { + "$ref": "#/definitions/ServiceResourcePropertiesBase" + } + ], + "required": [ + "serviceKind" + ], + "discriminator": "serviceKind", + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The current deployment or provisioning state, which only appears in the response" + }, + "serviceKind": { + "$ref": "#/definitions/ServiceKind", + "description": "The kind of service (Stateless or Stateful)." + }, + "serviceTypeName": { + "type": "string", + "description": "The name of the service type" + }, + "partitionDescription": { + "$ref": "#/definitions/PartitionSchemeDescription", + "description": "Describes how the service is partitioned." + }, + "servicePackageActivationMode": { + "type": "string", + "description": "The activation Mode of the service package", + "enum": [ + "SharedProcess", + "ExclusiveProcess" + ], + "x-ms-enum": { + "name": "ArmServicePackageActivationMode", + "modelAsString": true, + "values": [ + { + "value": "SharedProcess", + "description": "Indicates the application package activation mode will use shared process." + }, + { + "value": "ExclusiveProcess", + "description": "Indicates the application package activation mode will use exclusive process." + } + ] + } + } + } + }, + "ServiceResourcePropertiesBase": { + "description": "The common service resource properties.", + "properties": { + "placementConstraints": { + "type": "string", + "description": "The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: \"NodeColor == blue)\"." + }, + "correlationScheme": { + "$ref": "#/definitions/CorrelationSchemeList", + "description": "A list that describes the correlation of the service with other services." + }, + "serviceLoadMetrics": { + "$ref": "#/definitions/ServiceLoadMetricsList", + "description": "The service load metrics is given as an array of ServiceLoadMetricDescription objects." + }, + "servicePlacementPolicies": { + "$ref": "#/definitions/ServicePlacementPoliciesList", + "description": "A list that describes the correlation of the service with other services." + }, + "defaultMoveCost": { + "$ref": "#/definitions/MoveCost", + "description": "Specifies the move cost for the service." + } + } + }, + "ServiceResourceUpdate": { + "description": "The service resource for patch operations.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ServiceResourceUpdateProperties", + "description": "The service resource properties for patch operations." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "ServiceResourceUpdateProperties": { + "description": "The service resource properties for patch operations.", + "allOf": [ + { + "$ref": "#/definitions/ServiceResourcePropertiesBase" + } + ], + "required": [ + "serviceKind" + ], + "discriminator": "serviceKind", + "properties": { + "serviceKind": { + "$ref": "#/definitions/ServiceKind", + "description": "The kind of service (Stateless or Stateful)." + } + } + }, + "SingletonPartitionSchemeDescription": { + "description": "Describes the partition scheme of a singleton-partitioned, or non-partitioned service.", + "allOf": [ + { + "$ref": "#/definitions/PartitionSchemeDescription" + }, + { + "type": "object", + "description": "SingletonPartitionSchemeDescription" + } + ], + "x-ms-discriminator-value": "Singleton" + }, + "StatefulServiceProperties": { + "description": "The properties of a stateful service resource.", + "allOf": [ + { + "$ref": "#/definitions/ServiceResourceProperties" + } + ], + "x-ms-discriminator-value": "Stateful", + "properties": { + "hasPersistedState": { + "type": "boolean", + "description": "A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false." + }, + "targetReplicaSetSize": { + "type": "integer", + "minimum": 1, + "description": "The target replica set size as a number." + }, + "minReplicaSetSize": { + "type": "integer", + "minimum": 1, + "description": "The minimum replica set size as a number." + }, + "replicaRestartWaitDuration": { + "type": "string", + "format": "date-time", + "description": "The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format (hh:mm:ss.s)." + }, + "quorumLossWaitDuration": { + "type": "string", + "format": "date-time", + "description": "The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format (hh:mm:ss.s)." + }, + "standByReplicaKeepDuration": { + "type": "string", + "format": "date-time", + "description": "The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format (hh:mm:ss.s)." + } + } + }, + "StatefulServiceUpdateProperties": { + "description": "The properties of a stateful service resource for patch operations.", + "allOf": [ + { + "$ref": "#/definitions/ServiceResourceUpdateProperties" + } + ], + "x-ms-discriminator-value": "Stateful", + "properties": { + "targetReplicaSetSize": { + "type": "integer", + "minimum": 1, + "description": "The target replica set size as a number." + }, + "minReplicaSetSize": { + "type": "integer", + "minimum": 1, + "description": "The minimum replica set size as a number." + }, + "replicaRestartWaitDuration": { + "type": "string", + "format": "date-time", + "description": "The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format (hh:mm:ss.s)." + }, + "quorumLossWaitDuration": { + "type": "string", + "format": "date-time", + "description": "The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format (hh:mm:ss.s)." + }, + "standByReplicaKeepDuration": { + "type": "string", + "format": "date-time", + "description": "The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format (hh:mm:ss.s)." + } + } + }, + "StatelessServiceProperties": { + "description": "The properties of a stateless service resource.", + "allOf": [ + { + "$ref": "#/definitions/ServiceResourceProperties" + } + ], + "x-ms-discriminator-value": "Stateless", + "properties": { + "instanceCount": { + "type": "integer", + "minimum": -1, + "description": "The instance count." + } + } + }, + "StatelessServiceUpdateProperties": { + "description": "The properties of a stateless service resource for patch operations.", + "allOf": [ + { + "$ref": "#/definitions/ServiceResourceUpdateProperties" + } + ], + "x-ms-discriminator-value": "Stateless", + "properties": { + "instanceCount": { + "type": "integer", + "minimum": -1, + "description": "The instance count." + } + } + }, + "UniformInt64RangePartitionSchemeDescription": { + "description": "Describes a partitioning scheme where an integer range is allocated evenly across a number of partitions.", + "allOf": [ + { + "$ref": "#/definitions/PartitionSchemeDescription" + }, + { + "type": "object", + "description": "UniformInt64RangePartitionSchemeDescription" + } + ], + "x-ms-discriminator-value": "UniformInt64Range", + "required": [ + "Count", + "LowKey", + "HighKey" + ], + "properties": { + "Count": { + "type": "integer", + "description": "The number of partitions." + }, + "LowKey": { + "type": "string", + "description": "String indicating the lower bound of the partition key range that\nshould be split between the partition ‘Count’\n" + }, + "HighKey": { + "type": "string", + "description": "String indicating the upper bound of the partition key range that\nshould be split between the partition ‘Count’\n" + } + } + }, + "UpgradeDomainTimeout": { + "type": "string", + "description": "The amount of time each upgrade domain has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds.", + "default": "P10675199DT02H48M05.4775807S" + }, + "UpgradeTimeout": { + "type": "string", + "description": "The amount of time the overall upgrade has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds.", + "default": "P10675199DT02H48M05.4775807S" + }, + "ErrorModel": { + "properties": { + "error": { + "$ref": "#/definitions/ErrorModelError", + "description": "The error details." + } + }, + "description": "The structure of the error." + }, + "ErrorModelError": { + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "The error details." + } + }, + "parameters": { + "api-version": { + "name": "api-version", + "in": "query", + "description": "The version of the Service Fabric resource provider API. This is a required parameter and it's value must be \"2019-03-01\" for this specification.", + "required": true, + "type": "string", + "enum": [ + "2019-03-01" + ], + "default": "2019-03-01", + "x-ms-parameter-location": "client" + }, + "applicationName": { + "name": "applicationName", + "in": "path", + "description": "The name of the application resource.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "applicationTypeName": { + "name": "applicationTypeName", + "in": "path", + "description": "The name of the application type name resource.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "clusterNameParameter": { + "name": "clusterName", + "in": "path", + "description": "The name of the cluster resource.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "serviceName": { + "name": "serviceName", + "in": "path", + "description": "The name of the service resource in the format of {applicationName}~{serviceName}.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "subscriptionId": { + "name": "subscriptionId", + "in": "path", + "description": "The customer subscription identifier.", + "required": true, + "type": "string", + "x-ms-parameter-location": "client" + }, + "version": { + "name": "version", + "in": "path", + "description": "The application type version.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/cluster.json new file mode 100644 index 000000000000..735621568520 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/cluster.json @@ -0,0 +1,1534 @@ +{ + "swagger": "2.0", + "info": { + "title": "ServiceFabricManagementClient", + "description": "Azure Service Fabric Resource Provider API Client", + "version": "2019-03-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "description": "Azure Active Directory OAuth2 Flow", + "flow": "implicit", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "type": "oauth2" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}": { + "get": { + "tags": [ + "Cluster" + ], + "operationId": "Clusters_Get", + "summary": "Gets a Service Fabric cluster resource.", + "description": "Get a Service Fabric cluster resource created or in the process of being created in the specified resource group.", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + } + ], + "x-ms-examples": { + "Get a cluster": { + "$ref": "./examples/ClusterGetOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + }, + "put": { + "tags": [ + "Cluster" + ], + "operationId": "Clusters_CreateOrUpdate", + "summary": "Creates or updates a Service Fabric cluster resource.", + "description": "Create or update a Service Fabric cluster resource with the specified name.", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "name": "parameters", + "in": "body", + "description": "The cluster resource.", + "required": true, + "schema": { + "$ref": "#/definitions/Cluster" + }, + "x-ms-parameter-location": "method" + } + ], + "x-ms-examples": { + "Put a cluster with minimum parameters": { + "$ref": "./examples/ClusterPutOperation_example_min.json" + }, + "Put a cluster with maximum parameters": { + "$ref": "./examples/ClusterPutOperation_example_max.json" + } + }, + "x-ms-long-running-operation": true, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "202": { + "description": "The request was accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + }, + "patch": { + "tags": [ + "Cluster" + ], + "operationId": "Clusters_Update", + "summary": "Updates the configuration of a Service Fabric cluster resource.", + "description": "Update the configuration of a Service Fabric cluster resource with the specified name.", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "name": "parameters", + "in": "body", + "description": "The parameters which contains the property value and property name which used to update the cluster configuration.", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterUpdateParameters" + }, + "x-ms-parameter-location": "method" + } + ], + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Patch a cluster": { + "$ref": "./examples/ClusterPatchOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "202": { + "description": "The request was accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + }, + "delete": { + "tags": [ + "Cluster" + ], + "operationId": "Clusters_Delete", + "summary": "Deletes a Service Fabric cluster resource.", + "description": "Delete a Service Fabric cluster resource with the specified name.", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + } + ], + "x-ms-examples": { + "Delete a cluster": { + "$ref": "./examples/ClusterDeleteOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully." + }, + "204": { + "description": "The resource was not found." + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters": { + "get": { + "operationId": "Clusters_ListByResourceGroup", + "summary": "Gets the list of Service Fabric cluster resources created in the specified resource group.", + "description": "Gets all Service Fabric cluster resources created or in the process of being created in the resource group.", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + } + ], + "tags": [ + "Cluster" + ], + "x-ms-examples": { + "List cluster by resource group": { + "$ref": "./examples/ClusterListByResourceGroupOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ClusterListResult" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters": { + "get": { + "operationId": "Clusters_List", + "summary": "Gets the list of Service Fabric cluster resources created in the specified subscription.", + "description": "Gets all Service Fabric cluster resources created or in the process of being created in the subscription.", + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + } + ], + "tags": [ + "Cluster" + ], + "x-ms-examples": { + "List clusters": { + "$ref": "./examples/ClusterListOperation_example.json" + } + }, + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ClusterListResult" + } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions/{clusterVersion}": { + "get": { + "operationId": "ClusterVersions_Get", + "summary": "Gets information about a Service Fabric cluster code version available in the specified location.", + "description": "Gets information about an available Service Fabric cluster code version.", + "parameters": [ + { + "$ref": "#/parameters/locationForClusterCodeVersions" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/clusterVersion" + } + ], + "x-ms-examples": { + "Get cluster version": { + "$ref": "./examples/ClusterVersionsGet_example.json" + } + }, + "tags": [ + "ClusterVersion" + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ClusterCodeVersionsListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions/{clusterVersion}": { + "get": { + "operationId": "ClusterVersions_GetByEnvironment", + "summary": "Gets information about a Service Fabric cluster code version available for the specified environment.", + "description": "Gets information about an available Service Fabric cluster code version by environment.", + "parameters": [ + { + "$ref": "#/parameters/locationForClusterCodeVersions" + }, + { + "$ref": "#/parameters/environment" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/clusterVersion" + } + ], + "x-ms-examples": { + "Get cluster version by environment": { + "$ref": "./examples/ClusterVersionsGetByEnvironment_example.json" + } + }, + "tags": [ + "ClusterVersion" + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ClusterCodeVersionsListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions": { + "get": { + "operationId": "ClusterVersions_List", + "summary": "Gets the list of Service Fabric cluster code versions available for the specified location.", + "description": "Gets all available code versions for Service Fabric cluster resources by location.", + "parameters": [ + { + "$ref": "#/parameters/locationForClusterCodeVersions" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + } + ], + "x-ms-examples": { + "List cluster versions": { + "$ref": "./examples/ClusterVersionsList_example.json" + } + }, + "tags": [ + "ClusterVersion" + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ClusterCodeVersionsListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions": { + "get": { + "operationId": "ClusterVersions_ListByEnvironment", + "summary": "Gets the list of Service Fabric cluster code versions available for the specified environment.", + "description": "Gets all available code versions for Service Fabric cluster resources by environment.", + "parameters": [ + { + "$ref": "#/parameters/locationForClusterCodeVersions" + }, + { + "$ref": "#/parameters/environment" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + } + ], + "x-ms-examples": { + "List cluster versions by environment": { + "$ref": "./examples/ClusterVersionsListByEnvironment.json" + } + }, + "tags": [ + "ClusterVersion" + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/ClusterCodeVersionsListResult" + } + } + } + } + }, + "/providers/Microsoft.ServiceFabric/operations": { + "get": { + "tags": [ + "Operations" + ], + "summary": "Lists all of the available Service Fabric resource provider API operations.", + "description": "Get the list of available Service Fabric resource provider API operations.", + "operationId": "Operations_List", + "parameters": [ + { + "name": "api-version", + "in": "query", + "description": "The version of the Service Fabric resource provider API", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "AddOnFeatures": { + "type": "string", + "description": "Available cluster add-on features", + "enum": [ + "RepairManager", + "DnsService", + "BackupRestoreService", + "ResourceMonitorService" + ] + }, + "ApplicationDeltaHealthPolicy": { + "type": "object", + "description": "Defines a delta health policy used to evaluate the health of an application or one of its child entities when upgrading the cluster.\n", + "properties": { + "defaultServiceTypeDeltaHealthPolicy": { + "$ref": "#/definitions/ServiceTypeDeltaHealthPolicy", + "description": "The delta health policy used by default to evaluate the health of a service type when upgrading the cluster." + }, + "serviceTypeDeltaHealthPolicies": { + "$ref": "#/definitions/ServiceTypeDeltaHealthPolicyMap", + "description": "The map with service type delta health policy per service type name. The map is empty by default." + } + } + }, + "ApplicationDeltaHealthPolicyMap": { + "type": "object", + "description": "Defines a map that contains specific application delta health policies for different applications.\nEach entry specifies as key the application name and as value an ApplicationDeltaHealthPolicy used to evaluate the application health when upgrading the cluster.\nThe application name should include the 'fabric:' URI scheme.\nThe map is empty by default.\n", + "additionalProperties": { + "$ref": "#/definitions/ApplicationDeltaHealthPolicy" + } + }, + "ApplicationHealthPolicy": { + "type": "object", + "description": "Defines a health policy used to evaluate the health of an application or one of its children entities.\n", + "properties": { + "defaultServiceTypeHealthPolicy": { + "$ref": "#/definitions/ServiceTypeHealthPolicy", + "description": "The health policy used by default to evaluate the health of a service type." + }, + "serviceTypeHealthPolicies": { + "$ref": "#/definitions/ServiceTypeHealthPolicyMap", + "description": "The map with service type health policy per service type name. The map is empty by default." + } + } + }, + "ApplicationHealthPolicyMap": { + "type": "object", + "description": "Defines a map that contains specific application health policies for different applications.\nEach entry specifies as key the application name and as value an ApplicationHealthPolicy used to evaluate the application health.\nThe application name should include the 'fabric:' URI scheme.\nThe map is empty by default.\n", + "additionalProperties": { + "$ref": "#/definitions/ApplicationHealthPolicy" + } + }, + "AvailableOperationDisplay": { + "properties": { + "provider": { + "type": "string", + "description": "The name of the provider." + }, + "resource": { + "type": "string", + "description": "The resource on which the operation is performed" + }, + "operation": { + "type": "string", + "description": "The operation that can be performed." + }, + "description": { + "type": "string", + "description": "Operation description" + } + }, + "description": "Operation supported by the Service Fabric resource provider" + }, + "AzureActiveDirectory": { + "properties": { + "tenantId": { + "type": "string", + "description": "Azure active directory tenant id." + }, + "clusterApplication": { + "type": "string", + "description": "Azure active directory cluster application id." + }, + "clientApplication": { + "type": "string", + "description": "Azure active directory client application id." + } + }, + "description": "The settings to enable AAD authentication on the cluster." + }, + "CertificateDescription": { + "required": [ + "thumbprint" + ], + "properties": { + "thumbprint": { + "type": "string", + "description": "Thumbprint of the primary certificate." + }, + "thumbprintSecondary": { + "type": "string", + "description": "Thumbprint of the secondary certificate." + }, + "x509StoreName": { + "$ref": "#/definitions/StoreName", + "description": "The local certificate store location." + } + }, + "description": "Describes the certificate details." + }, + "ClientCertificateCommonName": { + "required": [ + "certificateCommonName", + "isAdmin", + "certificateIssuerThumbprint" + ], + "properties": { + "isAdmin": { + "type": "boolean", + "description": "Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster." + }, + "certificateCommonName": { + "type": "string", + "description": "The common name of the client certificate." + }, + "certificateIssuerThumbprint": { + "type": "string", + "description": "The issuer thumbprint of the client certificate." + } + }, + "description": "Describes the client certificate details using common name." + }, + "ClientCertificateThumbprint": { + "required": [ + "certificateThumbprint", + "isAdmin" + ], + "properties": { + "isAdmin": { + "type": "boolean", + "description": "Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster." + }, + "certificateThumbprint": { + "type": "string", + "description": "The thumbprint of the client certificate." + } + }, + "description": "Describes the client certificate details using thumbprint." + }, + "Cluster": { + "type": "object", + "description": "The cluster resource\n", + "allOf": [ + { + "description": "The cluster resource properties" + }, + { + "$ref": "#/definitions/Resource" + }, + { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ClusterProperties", + "description": "The cluster resource properties" + } + } + } + ] + }, + "ClusterCodeVersionsListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterCodeVersionsResult" + } + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "The list results of the Service Fabric runtime versions." + }, + "ClusterCodeVersionsResult": { + "properties": { + "id": { + "type": "string", + "description": "The identification of the result" + }, + "name": { + "type": "string", + "description": "The name of the result" + }, + "type": { + "type": "string", + "description": "The result resource type" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ClusterVersionDetails", + "description": "The detail of the Service Fabric runtime version result" + } + }, + "description": "The result of the Service Fabric runtime versions" + }, + "ClusterEnvironment": { + "type": "string", + "description": "Cluster operating system, the default will be Windows", + "enum": [ + "Windows", + "Linux" + ] + }, + "ClusterHealthPolicy": { + "type": "object", + "description": "Defines a health policy used to evaluate the health of the cluster or of a cluster node.\n", + "properties": { + "maxPercentUnhealthyNodes": { + "type": "integer", + "description": "The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10.\n\nThe percentage represents the maximum tolerated percentage of nodes that can be unhealthy before the cluster is considered in error.\nIf the percentage is respected but there is at least one unhealthy node, the health is evaluated as Warning.\nThe percentage is calculated by dividing the number of unhealthy nodes over the total number of nodes in the cluster.\nThe computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n\nIn large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that.\n", + "default": 0, + "minimum": 0, + "maximum": 100 + }, + "maxPercentUnhealthyApplications": { + "type": "integer", + "description": "The maximum allowed percentage of unhealthy applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10.\n\nThe percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error.\nIf the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning.\nThis is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap.\nThe computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero.\n", + "default": 0, + "minimum": 0, + "maximum": 100 + }, + "applicationHealthPolicies": { + "$ref": "#/definitions/ApplicationHealthPolicyMap", + "description": "Defines the application health policy map used to evaluate the health of an application or one of its children entities." + } + } + }, + "ClusterListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Cluster" + } + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "Cluster list results" + }, + "ClusterProperties": { + "required": [ + "managementEndpoint", + "nodeTypes" + ], + "properties": { + "addOnFeatures": { + "type": "array", + "description": "The list of add-on features to enable in the cluster.", + "items": { + "$ref": "#/definitions/AddOnFeatures" + } + }, + "availableClusterVersions": { + "type": "array", + "description": "The Service Fabric runtime versions available for this cluster.", + "readOnly": true, + "items": { + "$ref": "#/definitions/ClusterVersionDetails" + } + }, + "azureActiveDirectory": { + "$ref": "#/definitions/AzureActiveDirectory", + "description": "The AAD authentication settings of the cluster." + }, + "certificate": { + "$ref": "#/definitions/CertificateDescription", + "description": "The certificate to use for securing the cluster. The certificate provided will be used for node to node security within the cluster, SSL certificate for cluster management endpoint and default admin client." + }, + "certificateCommonNames": { + "$ref": "#/definitions/ServerCertificateCommonNames", + "description": "Describes a list of server certificates referenced by common name that are used to secure the cluster." + }, + "clientCertificateCommonNames": { + "type": "array", + "description": "The list of client certificates referenced by common name that are allowed to manage the cluster.", + "items": { + "$ref": "#/definitions/ClientCertificateCommonName" + } + }, + "clientCertificateThumbprints": { + "type": "array", + "description": "The list of client certificates referenced by thumbprint that are allowed to manage the cluster.", + "items": { + "$ref": "#/definitions/ClientCertificateThumbprint" + } + }, + "clusterCodeVersion": { + "type": "string", + "description": "The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of available version for existing clusters use **availableClusterVersions**." + }, + "clusterEndpoint": { + "type": "string", + "description": "The Azure Resource Provider endpoint. A system service in the cluster connects to this endpoint.", + "readOnly": true + }, + "clusterId": { + "type": "string", + "description": "A service generated unique identifier for the cluster resource.", + "readOnly": true + }, + "clusterState": { + "readOnly": true, + "$ref": "#/definitions/ClusterState", + "description": "The current state of the cluster.\n\n - WaitingForNodes - Indicates that the cluster resource is created and the resource provider is waiting for Service Fabric VM extension to boot up and report to it.\n - Deploying - Indicates that the Service Fabric runtime is being installed on the VMs. Cluster resource will be in this state until the cluster boots up and system services are up.\n - BaselineUpgrade - Indicates that the cluster is upgrading to establishes the cluster version. This upgrade is automatically initiated when the cluster boots up for the first time.\n - UpdatingUserConfiguration - Indicates that the cluster is being upgraded with the user provided configuration.\n - UpdatingUserCertificate - Indicates that the cluster is being upgraded with the user provided certificate.\n - UpdatingInfrastructure - Indicates that the cluster is being upgraded with the latest Service Fabric runtime version. This happens only when the **upgradeMode** is set to 'Automatic'.\n - EnforcingClusterVersion - Indicates that cluster is on a different version than expected and the cluster is being upgraded to the expected version.\n - UpgradeServiceUnreachable - Indicates that the system service in the cluster is no longer polling the Resource Provider. Clusters in this state cannot be managed by the Resource Provider.\n - AutoScale - Indicates that the ReliabilityLevel of the cluster is being adjusted.\n - Ready - Indicates that the cluster is in a stable state.\n" + }, + "diagnosticsStorageAccountConfig": { + "$ref": "#/definitions/DiagnosticsStorageAccountConfig", + "description": "The storage account information for storing Service Fabric diagnostic logs." + }, + "eventStoreServiceEnabled": { + "type": "boolean", + "description": "Indicates if the event store service is enabled." + }, + "fabricSettings": { + "type": "array", + "description": "The list of custom fabric settings to configure the cluster.", + "items": { + "$ref": "#/definitions/SettingsSectionDescription" + } + }, + "managementEndpoint": { + "type": "string", + "description": "The http management endpoint of the cluster." + }, + "nodeTypes": { + "type": "array", + "description": "The list of node types in the cluster.", + "items": { + "$ref": "#/definitions/NodeTypeDescription" + } + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of the cluster resource.", + "readOnly": true, + "enum": [ + "Updating", + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "reliabilityLevel": { + "$ref": "#/definitions/ReliabilityLevel", + "description": "The reliability level sets the replica set size of system services. Learn about [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity).\n\n - None - Run the System services with a target replica set count of 1. This should only be used for test clusters.\n - Bronze - Run the System services with a target replica set count of 3. This should only be used for test clusters.\n - Silver - Run the System services with a target replica set count of 5.\n - Gold - Run the System services with a target replica set count of 7.\n - Platinum - Run the System services with a target replica set count of 9.\n" + }, + "reverseProxyCertificate": { + "$ref": "#/definitions/CertificateDescription", + "description": "The server certificate used by reverse proxy." + }, + "reverseProxyCertificateCommonNames": { + "$ref": "#/definitions/ServerCertificateCommonNames", + "description": "Describes a list of server certificates referenced by common name that are used to secure the cluster." + }, + "upgradeDescription": { + "$ref": "#/definitions/ClusterUpgradePolicy", + "description": "The policy to use when upgrading the cluster." + }, + "upgradeMode": { + "$ref": "#/definitions/UpgradeMode", + "description": "The upgrade mode of the cluster when new Service Fabric runtime version is available.\n\n - Automatic - The cluster will be automatically upgraded to the latest Service Fabric runtime version as soon as it is available.\n - Manual - The cluster will not be automatically upgraded to the latest Service Fabric runtime version. The cluster is upgraded by setting the **clusterCodeVersion** property in the cluster resource.\n" + }, + "vmImage": { + "type": "string", + "description": "The VM image VMSS has been configured with. Generic names such as Windows or Linux can be used." + } + }, + "description": "Describes the cluster resource properties." + }, + "ClusterPropertiesUpdateParameters": { + "properties": { + "addOnFeatures": { + "type": "array", + "description": "The list of add-on features to enable in the cluster.", + "items": { + "$ref": "#/definitions/AddOnFeatures" + } + }, + "certificate": { + "$ref": "#/definitions/CertificateDescription", + "description": "The certificate to use for securing the cluster. The certificate provided will be used for node to node security within the cluster, SSL certificate for cluster management endpoint and default admin client." + }, + "certificateCommonNames": { + "$ref": "#/definitions/ServerCertificateCommonNames", + "description": "Describes a list of server certificates referenced by common name that are used to secure the cluster." + }, + "clientCertificateCommonNames": { + "type": "array", + "description": "The list of client certificates referenced by common name that are allowed to manage the cluster. This will overwrite the existing list.", + "items": { + "$ref": "#/definitions/ClientCertificateCommonName" + } + }, + "clientCertificateThumbprints": { + "type": "array", + "description": "The list of client certificates referenced by thumbprint that are allowed to manage the cluster. This will overwrite the existing list.", + "items": { + "$ref": "#/definitions/ClientCertificateThumbprint" + } + }, + "clusterCodeVersion": { + "type": "string", + "description": "The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of available version for existing clusters use **availableClusterVersions**." + }, + "eventStoreServiceEnabled": { + "type": "boolean", + "description": "Indicates if the event store service is enabled." + }, + "fabricSettings": { + "type": "array", + "description": "The list of custom fabric settings to configure the cluster. This will overwrite the existing list.", + "items": { + "$ref": "#/definitions/SettingsSectionDescription" + } + }, + "nodeTypes": { + "type": "array", + "description": "The list of node types in the cluster. This will overwrite the existing list.", + "items": { + "$ref": "#/definitions/NodeTypeDescription" + } + }, + "reliabilityLevel": { + "$ref": "#/definitions/ReliabilityLevel", + "description": "The reliability level sets the replica set size of system services. Learn about [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity).\n\n - None - Run the System services with a target replica set count of 1. This should only be used for test clusters.\n - Bronze - Run the System services with a target replica set count of 3. This should only be used for test clusters.\n - Silver - Run the System services with a target replica set count of 5.\n - Gold - Run the System services with a target replica set count of 7.\n - Platinum - Run the System services with a target replica set count of 9.\n" + }, + "reverseProxyCertificate": { + "$ref": "#/definitions/CertificateDescription", + "description": "The server certificate used by reverse proxy." + }, + "upgradeDescription": { + "$ref": "#/definitions/ClusterUpgradePolicy", + "description": "The policy to use when upgrading the cluster." + }, + "upgradeMode": { + "$ref": "#/definitions/UpgradeMode", + "description": "The upgrade mode of the cluster when new Service Fabric runtime version is available.\n\n - Automatic - The cluster will be automatically upgraded to the latest Service Fabric runtime version as soon as it is available.\n - Manual - The cluster will not be automatically upgraded to the latest Service Fabric runtime version. The cluster is upgraded by setting the **clusterCodeVersion** property in the cluster resource.\n" + } + }, + "description": "Describes the cluster resource properties that can be updated during PATCH operation." + }, + "ClusterState": { + "type": "string", + "description": "The current state of the cluster.\n\n - WaitingForNodes - Indicates that the cluster resource is created and the resource provider is waiting for Service Fabric VM extension to boot up and report to it.\n - Deploying - Indicates that the Service Fabric runtime is being installed on the VMs. Cluster resource will be in this state until the cluster boots up and system services are up.\n - BaselineUpgrade - Indicates that the cluster is upgrading to establishes the cluster version. This upgrade is automatically initiated when the cluster boots up for the first time.\n - UpdatingUserConfiguration - Indicates that the cluster is being upgraded with the user provided configuration.\n - UpdatingUserCertificate - Indicates that the cluster is being upgraded with the user provided certificate.\n - UpdatingInfrastructure - Indicates that the cluster is being upgraded with the latest Service Fabric runtime version. This happens only when the **upgradeMode** is set to 'Automatic'.\n - EnforcingClusterVersion - Indicates that cluster is on a different version than expected and the cluster is being upgraded to the expected version.\n - UpgradeServiceUnreachable - Indicates that the system service in the cluster is no longer polling the Resource Provider. Clusters in this state cannot be managed by the Resource Provider.\n - AutoScale - Indicates that the ReliabilityLevel of the cluster is being adjusted.\n - Ready - Indicates that the cluster is in a stable state.\n", + "enum": [ + "WaitingForNodes", + "Deploying", + "BaselineUpgrade", + "UpdatingUserConfiguration", + "UpdatingUserCertificate", + "UpdatingInfrastructure", + "EnforcingClusterVersion", + "UpgradeServiceUnreachable", + "AutoScale", + "Ready" + ] + }, + "ClusterUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ClusterPropertiesUpdateParameters", + "description": "Describes the cluster resource properties that can be updated during PATCH operation." + }, + "tags": { + "type": "object", + "description": "Cluster update parameters", + "additionalProperties": { + "type": "string" + } + } + }, + "description": "Cluster update request" + }, + "ClusterUpgradeDeltaHealthPolicy": { + "description": "Describes the delta health policies for the cluster upgrade.", + "required": [ + "maxPercentDeltaUnhealthyApplications", + "maxPercentDeltaUnhealthyNodes", + "maxPercentUpgradeDomainDeltaUnhealthyNodes" + ], + "properties": { + "maxPercentDeltaUnhealthyNodes": { + "type": "integer", + "description": "The maximum allowed percentage of nodes health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n", + "minimum": 0, + "maximum": 100 + }, + "maxPercentUpgradeDomainDeltaUnhealthyNodes": { + "type": "integer", + "description": "The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits.\n", + "minimum": 0, + "maximum": 100 + }, + "maxPercentDeltaUnhealthyApplications": { + "type": "integer", + "description": "The maximum allowed percentage of applications health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the applications at the beginning of upgrade and the state of the applications at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. System services are not included in this.\n", + "minimum": 0, + "maximum": 100 + }, + "applicationDeltaHealthPolicies": { + "$ref": "#/definitions/ApplicationDeltaHealthPolicyMap", + "description": "Defines the application delta health policy map used to evaluate the health of an application or one of its child entities when upgrading the cluster." + } + } + }, + "ClusterUpgradePolicy": { + "required": [ + "healthCheckRetryTimeout", + "healthCheckStableDuration", + "healthCheckWaitDuration", + "healthPolicy", + "upgradeDomainTimeout", + "upgradeReplicaSetCheckTimeout", + "upgradeTimeout" + ], + "properties": { + "forceRestart": { + "type": "boolean", + "description": "If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data)." + }, + "upgradeReplicaSetCheckTimeout": { + "type": "string", + "description": "The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format." + }, + "healthCheckWaitDuration": { + "type": "string", + "description": "The length of time to wait after completing an upgrade domain before performing health checks. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format." + }, + "healthCheckStableDuration": { + "type": "string", + "description": "The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format." + }, + "healthCheckRetryTimeout": { + "type": "string", + "description": "The amount of time to retry health evaluation when the application or cluster is unhealthy before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format." + }, + "upgradeTimeout": { + "type": "string", + "description": "The amount of time the overall upgrade has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format." + }, + "upgradeDomainTimeout": { + "type": "string", + "description": "The amount of time each upgrade domain has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format." + }, + "healthPolicy": { + "$ref": "#/definitions/ClusterHealthPolicy", + "description": "The cluster health policy used when upgrading the cluster." + }, + "deltaHealthPolicy": { + "$ref": "#/definitions/ClusterUpgradeDeltaHealthPolicy", + "description": "The cluster delta health policy used when upgrading the cluster." + } + }, + "description": "Describes the policy used when upgrading the cluster." + }, + "ClusterVersionDetails": { + "properties": { + "codeVersion": { + "type": "string", + "description": "The Service Fabric runtime version of the cluster." + }, + "supportExpiryUtc": { + "type": "string", + "description": "The date of expiry of support of the version." + }, + "environment": { + "$ref": "#/definitions/ClusterEnvironment", + "description": "Indicates if this version is for Windows or Linux operating system." + } + }, + "description": "The detail of the Service Fabric runtime version result" + }, + "DiagnosticsStorageAccountConfig": { + "required": [ + "blobEndpoint", + "protectedAccountKeyName", + "queueEndpoint", + "storageAccountName", + "tableEndpoint" + ], + "properties": { + "storageAccountName": { + "type": "string", + "description": "The Azure storage account name." + }, + "protectedAccountKeyName": { + "type": "string", + "description": "The protected diagnostics storage key name." + }, + "blobEndpoint": { + "type": "string", + "description": "The blob endpoint of the azure storage account." + }, + "queueEndpoint": { + "type": "string", + "description": "The queue endpoint of the azure storage account." + }, + "tableEndpoint": { + "type": "string", + "description": "The table endpoint of the azure storage account." + } + }, + "description": "The storage account information for storing Service Fabric diagnostic logs." + }, + "DurabilityLevel": { + "type": "string", + "description": "The durability level of the node type. Learn about [DurabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity).\n\n - Bronze - No privileges. This is the default.\n - Silver - The infrastructure jobs can be paused for a duration of 10 minutes per UD.\n - Gold - The infrastructure jobs can be paused for a duration of 2 hours per UD. Gold durability can be enabled only on full node VM skus like D15_V2, G5 etc.\n", + "enum": [ + "Bronze", + "Silver", + "Gold" + ] + }, + "EndpointRangeDescription": { + "required": [ + "endPort", + "startPort" + ], + "properties": { + "startPort": { + "type": "integer", + "description": "Starting port of a range of ports" + }, + "endPort": { + "type": "integer", + "description": "End port of a range of ports" + } + }, + "description": "Port range details" + }, + "NodeTypeDescription": { + "required": [ + "clientConnectionEndpointPort", + "httpGatewayEndpointPort", + "isPrimary", + "name", + "vmInstanceCount" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the node type." + }, + "placementProperties": { + "type": "object", + "description": "The placement tags applied to nodes in the node type, which can be used to indicate where certain services (workload) should run.", + "additionalProperties": { + "type": "string", + "description": "Placement tag value" + } + }, + "capacities": { + "type": "object", + "description": "The capacity tags applied to the nodes in the node type, the cluster resource manager uses these tags to understand how much resource a node has.", + "additionalProperties": { + "type": "string", + "description": "Capacity tag value" + } + }, + "clientConnectionEndpointPort": { + "type": "integer", + "description": "The TCP cluster management endpoint port." + }, + "httpGatewayEndpointPort": { + "type": "integer", + "description": "The HTTP cluster management endpoint port." + }, + "durabilityLevel": { + "$ref": "#/definitions/DurabilityLevel", + "description": "The durability level of the node type. Learn about [DurabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity).\n\n - Bronze - No privileges. This is the default.\n - Silver - The infrastructure jobs can be paused for a duration of 10 minutes per UD.\n - Gold - The infrastructure jobs can be paused for a duration of 2 hours per UD. Gold durability can be enabled only on full node VM skus like D15_V2, G5 etc.\n" + }, + "applicationPorts": { + "$ref": "#/definitions/EndpointRangeDescription", + "description": "The range of ports from which cluster assigned port to Service Fabric applications." + }, + "ephemeralPorts": { + "$ref": "#/definitions/EndpointRangeDescription", + "description": "The range of ephemeral ports that nodes in this node type should be configured with." + }, + "isPrimary": { + "type": "boolean", + "description": "The node type on which system services will run. Only one node type should be marked as primary. Primary node type cannot be deleted or changed for existing clusters." + }, + "vmInstanceCount": { + "type": "integer", + "description": "The number of nodes in the node type. This count should match the capacity property in the corresponding VirtualMachineScaleSet resource.", + "minimum": 1, + "maximum": 2147483647 + }, + "reverseProxyEndpointPort": { + "type": "integer", + "description": "The endpoint used by reverse proxy." + } + }, + "description": "Describes a node type in the cluster, each node type represents sub set of nodes in the cluster." + }, + "OperationListResult": { + "properties": { + "value": { + "type": "array", + "description": "List of operations supported by the Service Fabric resource provider.", + "items": { + "$ref": "#/definitions/OperationResult" + } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any.", + "readOnly": true + } + }, + "description": "Describes the result of the request to list Service Fabric resource provider operations." + }, + "OperationResult": { + "properties": { + "name": { + "type": "string", + "description": "The name of the operation." + }, + "display": { + "$ref": "#/definitions/AvailableOperationDisplay", + "description": "The object that represents the operation." + }, + "origin": { + "type": "string", + "description": "Origin result" + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "Available operation list result" + }, + "ReliabilityLevel": { + "type": "string", + "description": "The reliability level sets the replica set size of system services. Learn about [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity).\n\n - None - Run the System services with a target replica set count of 1. This should only be used for test clusters.\n - Bronze - Run the System services with a target replica set count of 3. This should only be used for test clusters.\n - Silver - Run the System services with a target replica set count of 5.\n - Gold - Run the System services with a target replica set count of 7.\n - Platinum - Run the System services with a target replica set count of 9.\n", + "enum": [ + "None", + "Bronze", + "Silver", + "Gold", + "Platinum" + ] + }, + "Resource": { + "required": [ + "location" + ], + "properties": { + "id": { + "type": "string", + "description": "Azure resource identifier.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Azure resource name.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Azure resource type.", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Azure resource location.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "description": "Azure resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "etag": { + "type": "string", + "description": "Azure resource etag.", + "readOnly": true + } + }, + "description": "The resource model definition.", + "x-ms-azure-resource": true + }, + "ServerCertificateCommonName": { + "description": "Describes the server certificate details using common name.", + "required": [ + "certificateCommonName", + "certificateIssuerThumbprint" + ], + "properties": { + "certificateCommonName": { + "type": "string", + "description": "The common name of the server certificate." + }, + "certificateIssuerThumbprint": { + "type": "string", + "description": "The issuer thumbprint of the server certificate." + } + } + }, + "ServerCertificateCommonNames": { + "description": "Describes a list of server certificates referenced by common name that are used to secure the cluster.", + "properties": { + "commonNames": { + "type": "array", + "description": "The list of server certificates referenced by common name that are used to secure the cluster.", + "items": { + "$ref": "#/definitions/ServerCertificateCommonName" + } + }, + "x509StoreName": { + "$ref": "#/definitions/StoreName", + "description": "The local certificate store location." + } + } + }, + "ServiceTypeDeltaHealthPolicy": { + "type": "object", + "description": "Represents the delta health policy used to evaluate the health of services belonging to a service type when upgrading the cluster.\n", + "properties": { + "maxPercentDeltaUnhealthyServices": { + "type": "integer", + "description": "The maximum allowed percentage of services health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the services at the beginning of upgrade and the state of the services at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n", + "default": 0, + "minimum": 0, + "maximum": 100 + } + } + }, + "ServiceTypeDeltaHealthPolicyMap": { + "type": "object", + "description": "Defines a map that contains specific delta health policies for different service types.\nEach entry specifies as key the service type name and as value a ServiceTypeDeltaHealthPolicy used to evaluate the service health when upgrading the cluster.\nThe map is empty by default.\n", + "additionalProperties": { + "$ref": "#/definitions/ServiceTypeDeltaHealthPolicy" + } + }, + "SettingsParameterDescription": { + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string", + "description": "The parameter name of fabric setting." + }, + "value": { + "type": "string", + "description": "The parameter value of fabric setting." + } + }, + "description": "Describes a parameter in fabric settings of the cluster." + }, + "SettingsSectionDescription": { + "required": [ + "name", + "parameters" + ], + "properties": { + "name": { + "type": "string", + "description": "The section name of the fabric settings." + }, + "parameters": { + "type": "array", + "description": "The collection of parameters in the section.", + "items": { + "$ref": "#/definitions/SettingsParameterDescription" + } + } + }, + "description": "Describes a section in the fabric settings of the cluster." + }, + "StoreName": { + "type": "string", + "description": "The local certificate store location.", + "enum": [ + "AddressBook", + "AuthRoot", + "CertificateAuthority", + "Disallowed", + "My", + "Root", + "TrustedPeople", + "TrustedPublisher" + ] + }, + "UpgradeMode": { + "type": "string", + "description": "The upgrade mode of the cluster when new Service Fabric runtime version is available.\n\n - Automatic - The cluster will be automatically upgraded to the latest Service Fabric runtime version as soon as it is available.\n - Manual - The cluster will not be automatically upgraded to the latest Service Fabric runtime version. The cluster is upgraded by setting the **clusterCodeVersion** property in the cluster resource.\n", + "enum": [ + "Automatic", + "Manual" + ] + }, + "ErrorModel": { + "properties": { + "error": { + "$ref": "#/definitions/ErrorModelError", + "description": "The error details." + } + }, + "description": "The structure of the error." + }, + "ErrorModelError": { + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "The error details." + }, + "ServiceTypeHealthPolicy": { + "type": "object", + "description": "Represents the health policy used to evaluate the health of services belonging to a service type.\n", + "properties": { + "maxPercentUnhealthyServices": { + "type": "integer", + "description": "The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n", + "default": 0, + "minimum": 0, + "maximum": 100 + } + } + }, + "ServiceTypeHealthPolicyMap": { + "type": "object", + "description": "Defines a ServiceTypeHealthPolicy per service type name.\n\nThe entries in the map replace the default service type health policy for each specified service type.\nFor example, in an application that contains both a stateless gateway service type and a stateful engine service type, the health policies for the stateless and stateful services can be configured differently.\nWith policy per service type, there's more granular control of the health of the service.\n\nIf no policy is specified for a service type name, the DefaultServiceTypeHealthPolicy is used for evaluation.\n", + "additionalProperties": { + "$ref": "#/definitions/ServiceTypeHealthPolicy" + } + } + }, + "parameters": { + "api-version": { + "name": "api-version", + "in": "query", + "description": "The version of the Service Fabric resource provider API. This is a required parameter and it's value must be \"2019-03-01\" for this specification.", + "required": true, + "type": "string", + "enum": [ + "2019-03-01" + ], + "default": "2019-03-01", + "x-ms-parameter-location": "client" + }, + "clusterNameParameter": { + "name": "clusterName", + "in": "path", + "description": "The name of the cluster resource.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "clusterVersion": { + "name": "clusterVersion", + "in": "path", + "description": "The cluster code version.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "environment": { + "name": "environment", + "in": "path", + "description": "The operating system of the cluster. The default means all.", + "required": true, + "type": "string", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-parameter-location": "method" + }, + "locationForClusterCodeVersions": { + "name": "location", + "in": "path", + "description": "The location for the cluster code versions. This is different from cluster location.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "subscriptionId": { + "name": "subscriptionId", + "in": "path", + "description": "The customer subscription identifier.", + "required": true, + "type": "string", + "x-ms-parameter-location": "client" + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationDeleteOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationDeleteOperation_example.json new file mode 100644 index 000000000000..f2c1d580fa12 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationDeleteOperation_example.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationName": "myApp", + "api-version": "2019-03-01" + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/76053752-a423-4a80-b283-1dad1ba5f314?api-version=2019-03-01" + } + }, + "204": {} + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationGetOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationGetOperation_example.json new file mode 100644 index 000000000000..f787a595380d --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationGetOperation_example.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationName": "myApp", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "type": "applications", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502180261859\"", + "properties": { + "provisioningState": "Updating", + "typeName": "myAppType", + "typeVersion": "1.0", + "parameters": { + "param1": "value1" + }, + "upgradePolicy": { + "applicationHealthPolicy": { + "considerWarningAsError": true, + "maxPercentUnhealthyDeployedApplications": 0, + "defaultServiceTypeHealthPolicy": { + "maxPercentUnhealthyServices": 0, + "maxPercentUnhealthyPartitionsPerService": 0, + "maxPercentUnhealthyReplicasPerPartition": 0 + } + }, + "rollingUpgradeMonitoringPolicy": { + "failureAction": "Rollback", + "healthCheckRetryTimeout": "00:10:00", + "healthCheckWaitDuration": "00:02:00", + "healthCheckStableDuration": "00:05:00", + "upgradeDomainTimeout": "1.06:00:00", + "upgradeTimeout": "01:00:00" + }, + "upgradeReplicaSetCheckTimeout": "01:00:00", + "forceRestart": false + }, + "maximumNodes": 3, + "minimumNodes": 1, + "removeApplicationCapacity": false, + "metrics": [ + { + "name": "metric1", + "reservationCapacity": 1, + "maximumCapacity": 3, + "totalApplicationCapacity": 5 + } + ] + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationListOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationListOperation_example.json new file mode 100644 index 000000000000..96ec45f93ced --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationListOperation_example.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "type": "applications", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502180261858\"", + "properties": { + "provisioningState": "Updating", + "typeName": "myAppType", + "typeVersion": "1.0", + "removeApplicationCapacity": false, + "metrics": [ + { + "name": "metric1", + "reservationCapacity": 1, + "maximumCapacity": 3, + "totalApplicationCapacity": 5 + } + ] + } + } + ], + "nextLink": "" + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationPatchOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationPatchOperation_example.json new file mode 100644 index 000000000000..fbcddf158ea3 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationPatchOperation_example.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationName": "myApp", + "api-version": "2019-03-01", + "parameters": { + "location": "eastus", + "tags": {}, + "properties": { + "typeVersion": "1.0", + "removeApplicationCapacity": false, + "metrics": [ + { + "name": "metric1", + "reservationCapacity": 1, + "maximumCapacity": 3, + "totalApplicationCapacity": 5 + } + ] + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/a553eb63-c332-40df-8ace-eb8d34a9b298?api-version=2019-03-01" + }, + "body": { + "type": "applications", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502180261858\"", + "properties": { + "provisioningState": "Updating", + "typeName": "myAppType", + "typeVersion": "1.0", + "removeApplicationCapacity": false, + "metrics": [ + { + "name": "metric1", + "reservationCapacity": 1, + "maximumCapacity": 3, + "totalApplicationCapacity": 5 + } + ] + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationPutOperation_example_max.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationPutOperation_example_max.json new file mode 100644 index 000000000000..ac67a1a62d17 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationPutOperation_example_max.json @@ -0,0 +1,108 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationName": "myApp", + "api-version": "2019-03-01", + "parameters": { + "location": "eastus", + "tags": {}, + "properties": { + "typeName": "myAppType", + "typeVersion": "1.0", + "parameters": { + "param1": "value1" + }, + "upgradePolicy": { + "applicationHealthPolicy": { + "considerWarningAsError": true, + "maxPercentUnhealthyDeployedApplications": 0, + "defaultServiceTypeHealthPolicy": { + "maxPercentUnhealthyServices": 0, + "maxPercentUnhealthyPartitionsPerService": 0, + "maxPercentUnhealthyReplicasPerPartition": 0 + } + }, + "rollingUpgradeMonitoringPolicy": { + "failureAction": "Rollback", + "healthCheckRetryTimeout": "00:10:00", + "healthCheckWaitDuration": "00:02:00", + "healthCheckStableDuration": "00:05:00", + "upgradeDomainTimeout": "1.06:00:00", + "upgradeTimeout": "01:00:00" + }, + "upgradeReplicaSetCheckTimeout": "01:00:00", + "forceRestart": false + }, + "maximumNodes": 3, + "minimumNodes": 1, + "removeApplicationCapacity": false, + "metrics": [ + { + "name": "metric1", + "reservationCapacity": 1, + "maximumCapacity": 3, + "totalApplicationCapacity": 5 + } + ] + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/9c2ce367-47ea-43de-b69e-c5a423da4557?api-version=2019-03-01" + }, + "body": { + "type": "applications", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502180261859\"", + "properties": { + "provisioningState": "Updating", + "typeName": "myAppType", + "typeVersion": "1.0", + "parameters": { + "param1": "value1" + }, + "upgradePolicy": { + "applicationHealthPolicy": { + "considerWarningAsError": true, + "maxPercentUnhealthyDeployedApplications": 0, + "defaultServiceTypeHealthPolicy": { + "maxPercentUnhealthyServices": 0, + "maxPercentUnhealthyPartitionsPerService": 0, + "maxPercentUnhealthyReplicasPerPartition": 0 + } + }, + "rollingUpgradeMonitoringPolicy": { + "failureAction": "Rollback", + "healthCheckRetryTimeout": "00:10:00", + "healthCheckWaitDuration": "00:02:00", + "healthCheckStableDuration": "00:05:00", + "upgradeDomainTimeout": "1.06:00:00", + "upgradeTimeout": "01:00:00" + }, + "upgradeReplicaSetCheckTimeout": "01:00:00", + "forceRestart": false + }, + "maximumNodes": 3, + "minimumNodes": 1, + "removeApplicationCapacity": false, + "metrics": [ + { + "name": "metric1", + "reservationCapacity": 1, + "maximumCapacity": 3, + "totalApplicationCapacity": 5 + } + ] + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationPutOperation_example_min.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationPutOperation_example_min.json new file mode 100644 index 000000000000..20820bd500af --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationPutOperation_example_min.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationName": "myApp", + "api-version": "2019-03-01", + "parameters": { + "location": "eastus", + "tags": {}, + "properties": { + "typeName": "myAppType", + "typeVersion": "1.0", + "removeApplicationCapacity": false + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/5dce62ce-439b-47af-81d8-99ab14708e91?api-version=2019-03-01" + }, + "body": { + "type": "applications", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502180261857\"", + "properties": { + "provisioningState": "Updating", + "typeName": "myAppType", + "typeVersion": "1.0", + "removeApplicationCapacity": false + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeNameDeleteOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeNameDeleteOperation_example.json new file mode 100644 index 000000000000..1fc30ea39ebf --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeNameDeleteOperation_example.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationTypeName": "myAppType", + "api-version": "2019-03-01" + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/6a367b2d-9f60-4941-b886-e348ddcb4127?api-version=2019-03-01" + } + }, + "204": {} + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeNameGetOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeNameGetOperation_example.json new file mode 100644 index 000000000000..91dd50e0ccb8 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeNameGetOperation_example.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationTypeName": "myAppType", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "type": "applicationTypes", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applicationTypes/myAppType", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502174844831\"", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeNameListOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeNameListOperation_example.json new file mode 100644 index 000000000000..8180212c89e4 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeNameListOperation_example.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "type": "applicationTypes", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applicationTypes/myAppType", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502174844831\"", + "properties": { + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "" + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeNamePutOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeNamePutOperation_example.json new file mode 100644 index 000000000000..d743d50e70b7 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeNamePutOperation_example.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationTypeName": "myAppType", + "api-version": "2019-03-01", + "parameters": { + "location": "eastus", + "tags": {} + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "type": "applicationTypes", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applicationTypes/myAppType", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502174844831\"", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeVersionDeleteOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeVersionDeleteOperation_example.json new file mode 100644 index 000000000000..0e31acb0c62b --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeVersionDeleteOperation_example.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationTypeName": "myAppType", + "version": "1.0", + "api-version": "2019-03-01" + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/28e62369-ed8c-4aba-8c05-ab7d6238cc3d?api-version=2019-03-01" + } + }, + "204": {} + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeVersionGetOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeVersionGetOperation_example.json new file mode 100644 index 000000000000..72d9964ab2e5 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeVersionGetOperation_example.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationTypeName": "myAppType", + "version": "1.0", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "type": "versions", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applicationTypes/myAppType/versions/1.0", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502176040417\"", + "properties": { + "provisioningState": "Updating", + "appPackageUrl": "http://fakelink.test.com/MyAppType", + "defaultParameterList": {} + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeVersionListOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeVersionListOperation_example.json new file mode 100644 index 000000000000..b28e1f98ce31 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeVersionListOperation_example.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationTypeName": "myAppType", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "type": "versions", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applicationTypes/myAppType/versions/1.0", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502176040417\"", + "properties": { + "provisioningState": "Updating", + "appPackageUrl": "http://fakelink.test.com/MyAppType", + "defaultParameterList": {} + } + } + ], + "nextLink": "" + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeVersionPutOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeVersionPutOperation_example.json new file mode 100644 index 000000000000..ed4b8a82ef69 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ApplicationTypeVersionPutOperation_example.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationTypeName": "myAppType", + "version": "1.0", + "api-version": "2019-03-01", + "parameters": { + "location": "eastus", + "tags": {}, + "properties": { + "appPackageUrl": "http://fakelink.test.com/MyAppType" + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/e2413c7e-d51b-40ac-8155-bc85bf8ae856?api-version=2019-03-01" + }, + "body": { + "type": "versions", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applicationTypes/myAppType/versions/1.0", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502176040417\"", + "properties": { + "provisioningState": "Updating", + "appPackageUrl": "http://fakelink.test.com/MyAppType", + "defaultParameterList": {} + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterDeleteOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterDeleteOperation_example.json new file mode 100644 index 000000000000..e841dd104738 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterDeleteOperation_example.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {} + }, + "204": {} + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterGetOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterGetOperation_example.json new file mode 100644 index 000000000000..b7d04adca051 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterGetOperation_example.json @@ -0,0 +1,159 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "type": "Microsoft.ServiceFabric/clusters", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502169240745\"", + "properties": { + "provisioningState": "Succeeded", + "clusterId": "92584666-9889-4ae8-8d02-91902923d37f", + "clusterCodeVersion": "6.1.480.9494", + "clusterState": "WaitingForNodes", + "managementEndpoint": "https://myCluster.eastus.cloudapp.azure.com:19080", + "clusterEndpoint": "https://eastus.servicefabric.azure.com", + "certificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "clientCertificateThumbprints": [ + { + "isAdmin": true, + "certificateThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A" + } + ], + "clientCertificateCommonNames": [ + { + "isAdmin": true, + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A" + } + ], + "fabricSettings": [ + { + "name": "UpgradeService", + "parameters": [ + { + "name": "AppPollIntervalInSeconds", + "value": "60" + } + ] + } + ], + "upgradeDescription": { + "forceRestart": false, + "upgradeReplicaSetCheckTimeout": "00:10:00", + "healthCheckWaitDuration": "00:00:30", + "healthCheckStableDuration": "00:00:30", + "healthCheckRetryTimeout": "00:05:00", + "upgradeTimeout": "01:00:00", + "upgradeDomainTimeout": "00:15:00", + "healthPolicy": { + "maxPercentUnhealthyNodes": 0, + "maxPercentUnhealthyApplications": 0, + "applicationHealthPolicies": { + "fabric:/myApp1": { + "defaultServiceTypeHealthPolicy": { + "maxPercentUnhealthyServices": 0 + }, + "serviceTypeHealthPolicies": { + "myServiceType1": { + "maxPercentUnhealthyServices": 100 + } + } + } + } + }, + "deltaHealthPolicy": { + "maxPercentDeltaUnhealthyNodes": 0, + "maxPercentUpgradeDomainDeltaUnhealthyNodes": 0, + "maxPercentDeltaUnhealthyApplications": 0, + "applicationDeltaHealthPolicies": { + "fabric:/myApp1": { + "defaultServiceTypeDeltaHealthPolicy": { + "maxPercentDeltaUnhealthyServices": 0 + }, + "serviceTypeDeltaHealthPolicies": { + "myServiceType1": { + "maxPercentDeltaUnhealthyServices": 0 + } + } + } + } + } + }, + "diagnosticsStorageAccountConfig": { + "storageAccountName": "diag", + "protectedAccountKeyName": "StorageAccountKey1", + "blobEndpoint": "https://diag.blob.core.windows.net/", + "queueEndpoint": "https://diag.queue.core.windows.net/", + "tableEndpoint": "https://diag.table.core.windows.net/" + }, + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + } + ], + "vmImage": "Windows", + "azureActiveDirectory": { + "tenantId": "6abcc6a0-8666-43f1-87b8-172cf86a9f9c", + "clusterApplication": "5886372e-7bf4-4878-a497-8098aba608ae", + "clientApplication": "d151ad89-4bce-4ae8-b3d1-1dc79679fa75" + }, + "reliabilityLevel": "Silver", + "reverseProxyCertificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "upgradeMode": "Manual", + "availableClusterVersions": [ + { + "codeVersion": "6.1.480.9494", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Windows" + } + ], + "addOnFeatures": [ + "RepairManager", + "DnsService", + "BackupRestoreService", + "ResourceMonitorService" + ] + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterListByResourceGroupOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterListByResourceGroupOperation_example.json new file mode 100644 index 000000000000..88fb6c82c53b --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterListByResourceGroupOperation_example.json @@ -0,0 +1,248 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "type": "Microsoft.ServiceFabric/clusters", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502169240745\"", + "properties": { + "provisioningState": "Succeeded", + "clusterId": "92584666-9889-4ae8-8d02-91902923d37f", + "clusterCodeVersion": "6.1.480.9494", + "clusterState": "WaitingForNodes", + "managementEndpoint": "https://myCluster.eastus.cloudapp.azure.com:19080", + "clusterEndpoint": "https://eastus.servicefabric.azure.com", + "certificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "clientCertificateThumbprints": [ + { + "isAdmin": false, + "certificateThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A" + } + ], + "clientCertificateCommonNames": [ + { + "isAdmin": true, + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A" + } + ], + "fabricSettings": [ + { + "name": "UpgradeService", + "parameters": [ + { + "name": "AppPollIntervalInSeconds", + "value": "60" + } + ] + } + ], + "upgradeDescription": { + "forceRestart": false, + "upgradeReplicaSetCheckTimeout": "00:10:00", + "healthCheckWaitDuration": "00:00:30", + "healthCheckStableDuration": "00:00:30", + "healthCheckRetryTimeout": "00:05:00", + "upgradeTimeout": "01:00:00", + "upgradeDomainTimeout": "00:15:00", + "healthPolicy": { + "maxPercentUnhealthyNodes": 0, + "maxPercentUnhealthyApplications": 0, + "applicationHealthPolicies": { + "fabric:/myApp1": { + "defaultServiceTypeHealthPolicy": { + "maxPercentUnhealthyServices": 0 + }, + "serviceTypeHealthPolicies": { + "myServiceType1": { + "maxPercentUnhealthyServices": 100 + } + } + } + } + }, + "deltaHealthPolicy": { + "maxPercentDeltaUnhealthyNodes": 0, + "maxPercentUpgradeDomainDeltaUnhealthyNodes": 0, + "maxPercentDeltaUnhealthyApplications": 0, + "applicationDeltaHealthPolicies": { + "fabric:/myApp1": { + "defaultServiceTypeDeltaHealthPolicy": { + "maxPercentDeltaUnhealthyServices": 0 + }, + "serviceTypeDeltaHealthPolicies": { + "myServiceType1": { + "maxPercentDeltaUnhealthyServices": 0 + } + } + } + } + } + }, + "diagnosticsStorageAccountConfig": { + "storageAccountName": "diag", + "protectedAccountKeyName": "StorageAccountKey1", + "blobEndpoint": "https://diag.blob.core.windows.net/", + "queueEndpoint": "https://diag.queue.core.windows.net/", + "tableEndpoint": "https://diag.table.core.windows.net/" + }, + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + } + ], + "vmImage": "Windows", + "azureActiveDirectory": { + "tenantId": "6abcc6a0-8666-43f1-87b8-172cf86a9f9c", + "clusterApplication": "5886372e-7bf4-4878-a497-8098aba608ae", + "clientApplication": "d151ad89-4bce-4ae8-b3d1-1dc79679fa75" + }, + "reliabilityLevel": "Silver", + "reverseProxyCertificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "upgradeMode": "Manual", + "availableClusterVersions": [ + { + "codeVersion": "6.1.480.9494", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Windows" + } + ], + "addOnFeatures": [ + "RepairManager", + "DnsService", + "BackupRestoreService", + "ResourceMonitorService" + ] + } + }, + { + "type": "Microsoft.ServiceFabric/clusters", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster2", + "name": "myCluster2", + "tags": {}, + "etag": "W/\"636462502164040075\"", + "properties": { + "provisioningState": "Succeeded", + "clusterId": "2747e469-b24e-4039-8a0a-46151419523f", + "clusterCodeVersion": "6.1.187.1", + "clusterState": "WaitingForNodes", + "managementEndpoint": "http://myCluster2.eastus.cloudapp.azure.com:19080", + "clusterEndpoint": "https://eastus.servicefabric.azure.com", + "clientCertificateThumbprints": [], + "clientCertificateCommonNames": [], + "fabricSettings": [ + { + "name": "UpgradeService", + "parameters": [ + { + "name": "AppPollIntervalInSeconds", + "value": "60" + } + ] + } + ], + "upgradeDescription": { + "forceRestart": false, + "upgradeReplicaSetCheckTimeout": "00:10:00", + "healthCheckWaitDuration": "00:00:30", + "healthCheckStableDuration": "00:00:30", + "healthCheckRetryTimeout": "00:05:00", + "upgradeTimeout": "01:00:00", + "upgradeDomainTimeout": "00:15:00", + "healthPolicy": { + "maxPercentUnhealthyNodes": 0, + "maxPercentUnhealthyApplications": 0 + }, + "deltaHealthPolicy": { + "maxPercentDeltaUnhealthyNodes": 0, + "maxPercentUpgradeDomainDeltaUnhealthyNodes": 0, + "maxPercentDeltaUnhealthyApplications": 0 + } + }, + "diagnosticsStorageAccountConfig": { + "storageAccountName": "diag", + "protectedAccountKeyName": "StorageAccountKey1", + "blobEndpoint": "https://diag.blob.core.windows.net/", + "queueEndpoint": "https://diag.queue.core.windows.net/", + "tableEndpoint": "https://diag.table.core.windows.net/" + }, + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + } + ], + "vmImage": "Ubuntu", + "reliabilityLevel": "Silver", + "upgradeMode": "Manual", + "availableClusterVersions": [ + { + "codeVersion": "6.1.187.1", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Linux" + } + ], + "addOnFeatures": [ + "RepairManager" + ] + } + } + ], + "nextLink": "" + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterListOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterListOperation_example.json new file mode 100644 index 000000000000..5803e854c087 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterListOperation_example.json @@ -0,0 +1,247 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "type": "Microsoft.ServiceFabric/clusters", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502169240745\"", + "properties": { + "provisioningState": "Succeeded", + "clusterId": "92584666-9889-4ae8-8d02-91902923d37f", + "clusterCodeVersion": "6.1.480.9494", + "clusterState": "WaitingForNodes", + "managementEndpoint": "https://myCluster.eastus.cloudapp.azure.com:19080", + "clusterEndpoint": "https://eastus.servicefabric.azure.com", + "certificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "clientCertificateThumbprints": [ + { + "isAdmin": false, + "certificateThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A" + } + ], + "clientCertificateCommonNames": [ + { + "isAdmin": true, + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A" + } + ], + "fabricSettings": [ + { + "name": "UpgradeService", + "parameters": [ + { + "name": "AppPollIntervalInSeconds", + "value": "60" + } + ] + } + ], + "upgradeDescription": { + "forceRestart": false, + "upgradeReplicaSetCheckTimeout": "00:10:00", + "healthCheckWaitDuration": "00:00:30", + "healthCheckStableDuration": "00:00:30", + "healthCheckRetryTimeout": "00:05:00", + "upgradeTimeout": "01:00:00", + "upgradeDomainTimeout": "00:15:00", + "healthPolicy": { + "maxPercentUnhealthyNodes": 0, + "maxPercentUnhealthyApplications": 0, + "applicationHealthPolicies": { + "fabric:/myApp1": { + "defaultServiceTypeHealthPolicy": { + "maxPercentUnhealthyServices": 0 + }, + "serviceTypeHealthPolicies": { + "myServiceType1": { + "maxPercentUnhealthyServices": 100 + } + } + } + } + }, + "deltaHealthPolicy": { + "maxPercentDeltaUnhealthyNodes": 0, + "maxPercentUpgradeDomainDeltaUnhealthyNodes": 0, + "maxPercentDeltaUnhealthyApplications": 0, + "applicationDeltaHealthPolicies": { + "fabric:/myApp1": { + "defaultServiceTypeDeltaHealthPolicy": { + "maxPercentDeltaUnhealthyServices": 0 + }, + "serviceTypeDeltaHealthPolicies": { + "myServiceType1": { + "maxPercentDeltaUnhealthyServices": 0 + } + } + } + } + } + }, + "diagnosticsStorageAccountConfig": { + "storageAccountName": "diag", + "protectedAccountKeyName": "StorageAccountKey1", + "blobEndpoint": "https://diag.blob.core.windows.net/", + "queueEndpoint": "https://diag.queue.core.windows.net/", + "tableEndpoint": "https://diag.table.core.windows.net/" + }, + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + } + ], + "vmImage": "Windows", + "azureActiveDirectory": { + "tenantId": "6abcc6a0-8666-43f1-87b8-172cf86a9f9c", + "clusterApplication": "5886372e-7bf4-4878-a497-8098aba608ae", + "clientApplication": "d151ad89-4bce-4ae8-b3d1-1dc79679fa75" + }, + "reliabilityLevel": "Silver", + "reverseProxyCertificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "upgradeMode": "Manual", + "availableClusterVersions": [ + { + "codeVersion": "6.1.480.9494", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Windows" + } + ], + "addOnFeatures": [ + "RepairManager", + "DnsService", + "BackupRestoreService", + "ResourceMonitorService" + ] + } + }, + { + "type": "Microsoft.ServiceFabric/clusters", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster2", + "name": "myCluster2", + "tags": {}, + "etag": "W/\"636462502164040075\"", + "properties": { + "provisioningState": "Succeeded", + "clusterId": "2747e469-b24e-4039-8a0a-46151419523f", + "clusterCodeVersion": "6.1.187.1", + "clusterState": "WaitingForNodes", + "managementEndpoint": "http://myCluster2.eastus.cloudapp.azure.com:19080", + "clusterEndpoint": "https://eastus.servicefabric.azure.com", + "clientCertificateThumbprints": [], + "clientCertificateCommonNames": [], + "fabricSettings": [ + { + "name": "UpgradeService", + "parameters": [ + { + "name": "AppPollIntervalInSeconds", + "value": "60" + } + ] + } + ], + "upgradeDescription": { + "forceRestart": false, + "upgradeReplicaSetCheckTimeout": "00:10:00", + "healthCheckWaitDuration": "00:00:30", + "healthCheckStableDuration": "00:00:30", + "healthCheckRetryTimeout": "00:05:00", + "upgradeTimeout": "01:00:00", + "upgradeDomainTimeout": "00:15:00", + "healthPolicy": { + "maxPercentUnhealthyNodes": 0, + "maxPercentUnhealthyApplications": 0 + }, + "deltaHealthPolicy": { + "maxPercentDeltaUnhealthyNodes": 0, + "maxPercentUpgradeDomainDeltaUnhealthyNodes": 0, + "maxPercentDeltaUnhealthyApplications": 0 + } + }, + "diagnosticsStorageAccountConfig": { + "storageAccountName": "diag", + "protectedAccountKeyName": "StorageAccountKey1", + "blobEndpoint": "https://diag.blob.core.windows.net/", + "queueEndpoint": "https://diag.queue.core.windows.net/", + "tableEndpoint": "https://diag.table.core.windows.net/" + }, + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + } + ], + "vmImage": "Ubuntu", + "reliabilityLevel": "Silver", + "upgradeMode": "Manual", + "availableClusterVersions": [ + { + "codeVersion": "6.1.187.1", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Linux" + } + ], + "addOnFeatures": [ + "RepairManager" + ] + } + } + ], + "nextLink": "" + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterPatchOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterPatchOperation_example.json new file mode 100644 index 000000000000..39988b5cb079 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterPatchOperation_example.json @@ -0,0 +1,284 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "api-version": "2019-03-01", + "parameters": { + "tags": { + "a": "b" + }, + "properties": { + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + }, + { + "name": "testnt1", + "clientConnectionEndpointPort": 0, + "httpGatewayEndpointPort": 0, + "applicationPorts": { + "startPort": 1000, + "endPort": 2000 + }, + "ephemeralPorts": { + "startPort": 3000, + "endPort": 4000 + }, + "isPrimary": false, + "vmInstanceCount": 3, + "durabilityLevel": "Bronze" + } + ], + "reliabilityLevel": "Bronze", + "upgradeMode": "Automatic", + "eventStoreServiceEnabled": true + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/1ca6e48d-70ca-4e43-b652-3b0522f64d67?api-version=2019-03-01" + }, + "body": { + "type": "Microsoft.ServiceFabric/clusters", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster", + "name": "myCluster", + "tags": { + "a": "b" + }, + "etag": "W/\"636462502169240744\"", + "properties": { + "provisioningState": "Succeeded", + "clusterId": "92584666-9889-4ae8-8d02-91902923d37f", + "clusterCodeVersion": "6.1.480.9494", + "clusterState": "WaitingForNodes", + "managementEndpoint": "http://myCluster.eastus.cloudapp.azure.com:19080", + "clusterEndpoint": "https://eastus.servicefabric.azure.com", + "certificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "clientCertificateThumbprints": [], + "clientCertificateCommonNames": [], + "eventStoreServiceEnabled": true, + "fabricSettings": [ + { + "name": "UpgradeService", + "parameters": [ + { + "name": "AppPollIntervalInSeconds", + "value": "60" + } + ] + } + ], + "upgradeDescription": { + "forceRestart": false, + "upgradeReplicaSetCheckTimeout": "00:10:00", + "healthCheckWaitDuration": "00:00:30", + "healthCheckStableDuration": "00:00:30", + "healthCheckRetryTimeout": "00:05:00", + "upgradeTimeout": "01:00:00", + "upgradeDomainTimeout": "00:15:00", + "healthPolicy": { + "maxPercentUnhealthyNodes": 0, + "maxPercentUnhealthyApplications": 0 + }, + "deltaHealthPolicy": { + "maxPercentDeltaUnhealthyNodes": 0, + "maxPercentUpgradeDomainDeltaUnhealthyNodes": 0, + "maxPercentDeltaUnhealthyApplications": 0 + } + }, + "diagnosticsStorageAccountConfig": { + "storageAccountName": "diag", + "protectedAccountKeyName": "StorageAccountKey1", + "blobEndpoint": "https://diag.blob.core.windows.net/", + "queueEndpoint": "https://diag.queue.core.windows.net/", + "tableEndpoint": "https://diag.table.core.windows.net/" + }, + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + }, + { + "name": "testnt1", + "clientConnectionEndpointPort": 0, + "httpGatewayEndpointPort": 0, + "applicationPorts": { + "startPort": 1000, + "endPort": 2000 + }, + "ephemeralPorts": { + "startPort": 3000, + "endPort": 4000 + }, + "isPrimary": false, + "vmInstanceCount": 3, + "durabilityLevel": "Bronze" + } + ], + "reliabilityLevel": "Bronze", + "upgradeMode": "Automatic", + "availableClusterVersions": [ + { + "codeVersion": "6.1.480.9494", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Windows" + } + ] + } + } + }, + "200": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/1ca6e48d-70ca-4e43-b652-3b0522f64d67?api-version=2019-03-01" + }, + "body": { + "type": "Microsoft.ServiceFabric/clusters", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster", + "name": "myCluster", + "tags": { + "a": "b" + }, + "etag": "W/\"636462502169240744\"", + "properties": { + "provisioningState": "Succeeded", + "clusterId": "92584666-9889-4ae8-8d02-91902923d37f", + "clusterCodeVersion": "6.1.480.9494", + "clusterState": "WaitingForNodes", + "managementEndpoint": "http://myCluster.eastus.cloudapp.azure.com:19080", + "clusterEndpoint": "https://eastus.servicefabric.azure.com", + "certificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "clientCertificateThumbprints": [], + "clientCertificateCommonNames": [], + "eventStoreServiceEnabled": true, + "fabricSettings": [ + { + "name": "UpgradeService", + "parameters": [ + { + "name": "AppPollIntervalInSeconds", + "value": "60" + } + ] + } + ], + "upgradeDescription": { + "forceRestart": false, + "upgradeReplicaSetCheckTimeout": "00:10:00", + "healthCheckWaitDuration": "00:00:30", + "healthCheckStableDuration": "00:00:30", + "healthCheckRetryTimeout": "00:05:00", + "upgradeTimeout": "01:00:00", + "upgradeDomainTimeout": "00:15:00", + "healthPolicy": { + "maxPercentUnhealthyNodes": 0, + "maxPercentUnhealthyApplications": 0 + }, + "deltaHealthPolicy": { + "maxPercentDeltaUnhealthyNodes": 0, + "maxPercentUpgradeDomainDeltaUnhealthyNodes": 0, + "maxPercentDeltaUnhealthyApplications": 0 + } + }, + "diagnosticsStorageAccountConfig": { + "storageAccountName": "diag", + "protectedAccountKeyName": "StorageAccountKey1", + "blobEndpoint": "https://diag.blob.core.windows.net/", + "queueEndpoint": "https://diag.queue.core.windows.net/", + "tableEndpoint": "https://diag.table.core.windows.net/" + }, + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + }, + { + "name": "testnt1", + "clientConnectionEndpointPort": 0, + "httpGatewayEndpointPort": 0, + "applicationPorts": { + "startPort": 1000, + "endPort": 2000 + }, + "ephemeralPorts": { + "startPort": 3000, + "endPort": 4000 + }, + "isPrimary": false, + "vmInstanceCount": 3, + "durabilityLevel": "Bronze" + } + ], + "reliabilityLevel": "Bronze", + "upgradeMode": "Automatic", + "availableClusterVersions": [ + { + "codeVersion": "6.1.480.9494", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Windows" + } + ] + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterPutOperation_example_max.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterPutOperation_example_max.json new file mode 100644 index 000000000000..b3a6bc61c184 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterPutOperation_example_max.json @@ -0,0 +1,448 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "api-version": "2019-03-01", + "parameters": { + "location": "eastus", + "tags": {}, + "properties": { + "clusterCodeVersion": "6.1.480.9494", + "managementEndpoint": "https://myCluster.eastus.cloudapp.azure.com:19080", + "certificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "clientCertificateThumbprints": [ + { + "isAdmin": true, + "certificateThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A" + } + ], + "clientCertificateCommonNames": [ + { + "isAdmin": true, + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A" + } + ], + "fabricSettings": [ + { + "name": "UpgradeService", + "parameters": [ + { + "name": "AppPollIntervalInSeconds", + "value": "60" + } + ] + } + ], + "upgradeDescription": { + "forceRestart": false, + "upgradeReplicaSetCheckTimeout": "00:10:00", + "healthCheckWaitDuration": "00:00:30", + "healthCheckStableDuration": "00:00:30", + "healthCheckRetryTimeout": "00:05:00", + "upgradeTimeout": "01:00:00", + "upgradeDomainTimeout": "00:15:00", + "healthPolicy": { + "maxPercentUnhealthyNodes": 0, + "maxPercentUnhealthyApplications": 0, + "applicationHealthPolicies": { + "fabric:/myApp1": { + "defaultServiceTypeHealthPolicy": { + "maxPercentUnhealthyServices": 0 + }, + "serviceTypeHealthPolicies": { + "myServiceType1": { + "maxPercentUnhealthyServices": 100 + } + } + } + } + }, + "deltaHealthPolicy": { + "maxPercentDeltaUnhealthyNodes": 0, + "maxPercentUpgradeDomainDeltaUnhealthyNodes": 0, + "maxPercentDeltaUnhealthyApplications": 0, + "applicationDeltaHealthPolicies": { + "fabric:/myApp1": { + "defaultServiceTypeDeltaHealthPolicy": { + "maxPercentDeltaUnhealthyServices": 0 + }, + "serviceTypeDeltaHealthPolicies": { + "myServiceType1": { + "maxPercentDeltaUnhealthyServices": 0 + } + } + } + } + } + }, + "diagnosticsStorageAccountConfig": { + "storageAccountName": "diag", + "protectedAccountKeyName": "StorageAccountKey1", + "blobEndpoint": "https://diag.blob.core.windows.net/", + "queueEndpoint": "https://diag.queue.core.windows.net/", + "tableEndpoint": "https://diag.table.core.windows.net/" + }, + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + } + ], + "vmImage": "Windows", + "azureActiveDirectory": { + "tenantId": "6abcc6a0-8666-43f1-87b8-172cf86a9f9c", + "clusterApplication": "5886372e-7bf4-4878-a497-8098aba608ae", + "clientApplication": "d151ad89-4bce-4ae8-b3d1-1dc79679fa75" + }, + "reliabilityLevel": "Silver", + "reverseProxyCertificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "upgradeMode": "Manual", + "addOnFeatures": [ + "RepairManager", + "DnsService", + "BackupRestoreService", + "ResourceMonitorService" + ], + "eventStoreServiceEnabled": true + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/4b5f6709-bc12-4365-8df3-894984b2a221?api-version=2019-03-01" + }, + "body": { + "type": "Microsoft.ServiceFabric/clusters", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502169240745\"", + "properties": { + "provisioningState": "Succeeded", + "clusterId": "92584666-9889-4ae8-8d02-91902923d37f", + "clusterCodeVersion": "6.1.480.9494", + "clusterState": "WaitingForNodes", + "managementEndpoint": "https://myCluster.eastus.cloudapp.azure.com:19080", + "clusterEndpoint": "https://eastus.servicefabric.azure.com", + "certificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "clientCertificateThumbprints": [ + { + "isAdmin": false, + "certificateThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A" + } + ], + "clientCertificateCommonNames": [ + { + "isAdmin": true, + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A" + } + ], + "fabricSettings": [ + { + "name": "UpgradeService", + "parameters": [ + { + "name": "AppPollIntervalInSeconds", + "value": "60" + } + ] + } + ], + "upgradeDescription": { + "forceRestart": true, + "upgradeReplicaSetCheckTimeout": "00:10:00", + "healthCheckWaitDuration": "00:00:30", + "healthCheckStableDuration": "00:00:30", + "healthCheckRetryTimeout": "00:05:00", + "upgradeTimeout": "00:15:00", + "upgradeDomainTimeout": "00:15:00", + "healthPolicy": { + "maxPercentUnhealthyNodes": 0, + "maxPercentUnhealthyApplications": 0, + "applicationHealthPolicies": { + "fabric:/myApp1": { + "defaultServiceTypeHealthPolicy": { + "maxPercentUnhealthyServices": 0 + }, + "serviceTypeHealthPolicies": { + "myServiceType1": { + "maxPercentUnhealthyServices": 100 + } + } + } + } + }, + "deltaHealthPolicy": { + "maxPercentDeltaUnhealthyNodes": 0, + "maxPercentUpgradeDomainDeltaUnhealthyNodes": 0, + "maxPercentDeltaUnhealthyApplications": 0, + "applicationDeltaHealthPolicies": { + "fabric:/myApp1": { + "defaultServiceTypeDeltaHealthPolicy": { + "maxPercentDeltaUnhealthyServices": 0 + }, + "serviceTypeDeltaHealthPolicies": { + "myServiceType1": { + "maxPercentDeltaUnhealthyServices": 0 + } + } + } + } + } + }, + "diagnosticsStorageAccountConfig": { + "storageAccountName": "diag", + "protectedAccountKeyName": "StorageAccountKey1", + "blobEndpoint": "https://diag.blob.core.windows.net/", + "queueEndpoint": "https://diag.queue.core.windows.net/", + "tableEndpoint": "https://diag.table.core.windows.net/" + }, + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + } + ], + "vmImage": "Windows", + "azureActiveDirectory": { + "tenantId": "6abcc6a0-8666-43f1-87b8-172cf86a9f9c", + "clusterApplication": "5886372e-7bf4-4878-a497-8098aba608ae", + "clientApplication": "d151ad89-4bce-4ae8-b3d1-1dc79679fa75" + }, + "reliabilityLevel": "Silver", + "reverseProxyCertificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "upgradeMode": "Manual", + "availableClusterVersions": [ + { + "codeVersion": "6.1.480.9494", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Windows" + } + ], + "addOnFeatures": [ + "RepairManager", + "DnsService", + "BackupRestoreService", + "ResourceMonitorService" + ], + "eventStoreServiceEnabled": true + } + } + }, + "200": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/4b5f6709-bc12-4365-8df3-894984b2a221?api-version=2019-03-01" + }, + "body": { + "type": "Microsoft.ServiceFabric/clusters", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502169240745\"", + "properties": { + "provisioningState": "Succeeded", + "clusterId": "92584666-9889-4ae8-8d02-91902923d37f", + "clusterCodeVersion": "6.1.480.9494", + "clusterState": "WaitingForNodes", + "managementEndpoint": "https://myCluster.eastus.cloudapp.azure.com:19080", + "clusterEndpoint": "https://eastus.servicefabric.azure.com", + "certificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "clientCertificateThumbprints": [ + { + "isAdmin": false, + "certificateThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A" + } + ], + "clientCertificateCommonNames": [ + { + "isAdmin": true, + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A" + } + ], + "fabricSettings": [ + { + "name": "UpgradeService", + "parameters": [ + { + "name": "AppPollIntervalInSeconds", + "value": "60" + } + ] + } + ], + "upgradeDescription": { + "forceRestart": true, + "upgradeReplicaSetCheckTimeout": "00:10:00", + "healthCheckWaitDuration": "00:00:30", + "healthCheckStableDuration": "00:00:30", + "healthCheckRetryTimeout": "00:05:00", + "upgradeTimeout": "00:15:00", + "upgradeDomainTimeout": "00:15:00", + "healthPolicy": { + "maxPercentUnhealthyNodes": 0, + "maxPercentUnhealthyApplications": 0, + "applicationHealthPolicies": { + "fabric:/myApp1": { + "defaultServiceTypeHealthPolicy": { + "maxPercentUnhealthyServices": 0 + }, + "serviceTypeHealthPolicies": { + "myServiceType1": { + "maxPercentUnhealthyServices": 100 + } + } + } + } + }, + "deltaHealthPolicy": { + "maxPercentDeltaUnhealthyNodes": 0, + "maxPercentUpgradeDomainDeltaUnhealthyNodes": 0, + "maxPercentDeltaUnhealthyApplications": 0, + "applicationDeltaHealthPolicies": { + "fabric:/myApp1": { + "defaultServiceTypeDeltaHealthPolicy": { + "maxPercentDeltaUnhealthyServices": 0 + }, + "serviceTypeDeltaHealthPolicies": { + "myServiceType1": { + "maxPercentDeltaUnhealthyServices": 0 + } + } + } + } + } + }, + "diagnosticsStorageAccountConfig": { + "storageAccountName": "diag", + "protectedAccountKeyName": "StorageAccountKey1", + "blobEndpoint": "https://diag.blob.core.windows.net/", + "queueEndpoint": "https://diag.queue.core.windows.net/", + "tableEndpoint": "https://diag.table.core.windows.net/" + }, + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + } + ], + "vmImage": "Windows", + "azureActiveDirectory": { + "tenantId": "6abcc6a0-8666-43f1-87b8-172cf86a9f9c", + "clusterApplication": "5886372e-7bf4-4878-a497-8098aba608ae", + "clientApplication": "d151ad89-4bce-4ae8-b3d1-1dc79679fa75" + }, + "reliabilityLevel": "Silver", + "reverseProxyCertificateCommonNames": { + "commonNames": [ + { + "certificateCommonName": "abc.com", + "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622" + } + ], + "x509StoreName": "My" + }, + "upgradeMode": "Manual", + "availableClusterVersions": [ + { + "codeVersion": "6.1.480.9494", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Windows" + } + ], + "addOnFeatures": [ + "RepairManager", + "DnsService", + "BackupRestoreService", + "ResourceMonitorService" + ], + "eventStoreServiceEnabled": true + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterPutOperation_example_min.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterPutOperation_example_min.json new file mode 100644 index 000000000000..b5119387a508 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterPutOperation_example_min.json @@ -0,0 +1,223 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "api-version": "2019-03-01", + "parameters": { + "location": "eastus", + "tags": {}, + "properties": { + "managementEndpoint": "http://myCluster.eastus.cloudapp.azure.com:19080", + "fabricSettings": [ + { + "name": "UpgradeService", + "parameters": [ + { + "name": "AppPollIntervalInSeconds", + "value": "60" + } + ] + } + ], + "diagnosticsStorageAccountConfig": { + "storageAccountName": "diag", + "protectedAccountKeyName": "StorageAccountKey1", + "blobEndpoint": "https://diag.blob.core.windows.net/", + "queueEndpoint": "https://diag.queue.core.windows.net/", + "tableEndpoint": "https://diag.table.core.windows.net/" + }, + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + } + ], + "reliabilityLevel": "Silver", + "upgradeMode": "Automatic" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "type": "Microsoft.ServiceFabric/clusters", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502169240743\"", + "properties": { + "provisioningState": "Succeeded", + "clusterId": "92584666-9889-4ae8-8d02-91902923d37f", + "clusterCodeVersion": "6.1.480.9494", + "clusterState": "WaitingForNodes", + "managementEndpoint": "http://myCluster.eastus.cloudapp.azure.com:19080", + "clusterEndpoint": "https://eastus.servicefabric.azure.com", + "clientCertificateThumbprints": [], + "clientCertificateCommonNames": [], + "fabricSettings": [ + { + "name": "UpgradeService", + "parameters": [ + { + "name": "AppPollIntervalInSeconds", + "value": "60" + } + ] + } + ], + "upgradeDescription": { + "forceRestart": false, + "upgradeReplicaSetCheckTimeout": "10675199.02:48:05.4775807", + "healthCheckWaitDuration": "00:05:00", + "healthCheckStableDuration": "00:05:00", + "healthCheckRetryTimeout": "00:45:00", + "upgradeTimeout": "12:00:00", + "upgradeDomainTimeout": "02:00:00", + "healthPolicy": { + "maxPercentUnhealthyNodes": 100, + "maxPercentUnhealthyApplications": 100 + }, + "deltaHealthPolicy": { + "maxPercentDeltaUnhealthyNodes": 0, + "maxPercentUpgradeDomainDeltaUnhealthyNodes": 0, + "maxPercentDeltaUnhealthyApplications": 0 + } + }, + "diagnosticsStorageAccountConfig": { + "storageAccountName": "diag", + "protectedAccountKeyName": "StorageAccountKey1", + "blobEndpoint": "https://diag.blob.core.windows.net/", + "queueEndpoint": "https://diag.queue.core.windows.net/", + "tableEndpoint": "https://diag.table.core.windows.net/" + }, + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + } + ], + "reliabilityLevel": "Silver", + "upgradeMode": "Automatic", + "availableClusterVersions": [ + { + "codeVersion": "6.1.480.9494", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Windows" + } + ] + } + } + }, + "202": { + "headers": {}, + "body": { + "type": "Microsoft.ServiceFabric/clusters", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502169240743\"", + "properties": { + "provisioningState": "Succeeded", + "clusterId": "92584666-9889-4ae8-8d02-91902923d37f", + "clusterCodeVersion": "6.1.480.9494", + "clusterState": "WaitingForNodes", + "managementEndpoint": "http://myCluster.eastus.cloudapp.azure.com:19080", + "clusterEndpoint": "https://eastus.servicefabric.azure.com", + "clientCertificateThumbprints": [], + "clientCertificateCommonNames": [], + "fabricSettings": [ + { + "name": "UpgradeService", + "parameters": [ + { + "name": "AppPollIntervalInSeconds", + "value": "60" + } + ] + } + ], + "upgradeDescription": { + "forceRestart": false, + "upgradeReplicaSetCheckTimeout": "10675199.02:48:05.4775807", + "healthCheckWaitDuration": "00:05:00", + "healthCheckStableDuration": "00:05:00", + "healthCheckRetryTimeout": "00:45:00", + "upgradeTimeout": "12:00:00", + "upgradeDomainTimeout": "02:00:00", + "healthPolicy": { + "maxPercentUnhealthyNodes": 100, + "maxPercentUnhealthyApplications": 100 + }, + "deltaHealthPolicy": { + "maxPercentDeltaUnhealthyNodes": 0, + "maxPercentUpgradeDomainDeltaUnhealthyNodes": 0, + "maxPercentDeltaUnhealthyApplications": 0 + } + }, + "diagnosticsStorageAccountConfig": { + "storageAccountName": "diag", + "protectedAccountKeyName": "StorageAccountKey1", + "blobEndpoint": "https://diag.blob.core.windows.net/", + "queueEndpoint": "https://diag.queue.core.windows.net/", + "tableEndpoint": "https://diag.table.core.windows.net/" + }, + "nodeTypes": [ + { + "name": "nt1vm", + "clientConnectionEndpointPort": 19000, + "httpGatewayEndpointPort": 19007, + "applicationPorts": { + "startPort": 20000, + "endPort": 30000 + }, + "ephemeralPorts": { + "startPort": 49000, + "endPort": 64000 + }, + "isPrimary": true, + "vmInstanceCount": 5, + "durabilityLevel": "Bronze" + } + ], + "reliabilityLevel": "Silver", + "upgradeMode": "Automatic", + "availableClusterVersions": [ + { + "codeVersion": "6.1.480.9494", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Windows" + } + ] + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterVersionsGetByEnvironment_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterVersionsGetByEnvironment_example.json new file mode 100644 index 000000000000..06dd70867ea9 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterVersionsGetByEnvironment_example.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "environment": "Windows", + "clusterVersion": "6.1.480.9494", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/clusterVersions/6.1.480.9494", + "name": "6.1.480.9494", + "type": "Microsoft.ServiceFabric/locations/environments/clusterVersions", + "properties": { + "codeVersion": "6.1.480.9494", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Windows" + } + } + ] + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterVersionsGet_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterVersionsGet_example.json new file mode 100644 index 000000000000..4390fc0a676a --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterVersionsGet_example.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "clusterVersion": "6.1.480.9494", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/clusterVersions/6.1.480.9494", + "name": "6.1.480.9494", + "type": "Microsoft.ServiceFabric/locations/environments/clusterVersions", + "properties": { + "codeVersion": "6.1.480.9494", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Windows" + } + } + ] + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterVersionsListByEnvironment.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterVersionsListByEnvironment.json new file mode 100644 index 000000000000..89f1162974bd --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterVersionsListByEnvironment.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "environment": "Windows", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/clusterVersions/6.1.480.9494", + "name": "6.1.480.9494", + "type": "Microsoft.ServiceFabric/locations/environments/clusterVersions", + "properties": { + "codeVersion": "6.1.480.9494", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Windows" + } + } + ] + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterVersionsList_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterVersionsList_example.json new file mode 100644 index 000000000000..f0d12624c3c6 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ClusterVersionsList_example.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/clusterVersions/6.1.480.9494", + "name": "6.1.480.9494", + "type": "Microsoft.ServiceFabric/locations/environments/clusterVersions", + "properties": { + "codeVersion": "6.1.480.9494", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Windows" + } + }, + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Linux/clusterVersions/6.1.187.1", + "name": "6.1.187.1", + "type": "Microsoft.ServiceFabric/locations/environments/clusterVersions", + "properties": { + "codeVersion": "6.1.187.1", + "supportExpiryUtc": "2018-06-15T23:59:59.9999999", + "environment": "Linux" + } + } + ] + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServiceDeleteOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServiceDeleteOperation_example.json new file mode 100644 index 000000000000..e7568f377ac0 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServiceDeleteOperation_example.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationName": "myApp", + "serviceName": "myService", + "api-version": "2019-03-01" + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/41fa5ef9-7f34-4c36-a730-93e0bb757d22?api-version=2019-03-01" + } + }, + "204": {} + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServiceGetOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServiceGetOperation_example.json new file mode 100644 index 000000000000..b0fcff69a995 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServiceGetOperation_example.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationName": "myApp", + "serviceName": "myService", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "type": "services", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp/services/myService", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502183671258\"", + "properties": { + "provisioningState": "Updating", + "serviceKind": "Stateless", + "placementConstraints": "NodeType==frontend", + "serviceTypeName": "myServiceType", + "partitionDescription": { + "partitionScheme": "Singleton" + }, + "serviceLoadMetrics": [ + { + "name": "metric1", + "weight": "Low" + } + ], + "servicePlacementPolicies": [], + "defaultMoveCost": "Medium", + "instanceCount": 5, + "servicePackageActivationMode": "SharedProcess" + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServiceListOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServiceListOperation_example.json new file mode 100644 index 000000000000..e22cc60c36f1 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServiceListOperation_example.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationName": "myApp", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "type": "services", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp/services/myService", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502183671257\"", + "properties": { + "provisioningState": "Updating", + "serviceKind": "Stateless", + "serviceTypeName": "myServiceType", + "partitionDescription": { + "partitionScheme": "Singleton" + }, + "serviceLoadMetrics": [ + { + "name": "metric1", + "weight": "Low" + } + ], + "instanceCount": 1, + "servicePackageActivationMode": "SharedProcess" + } + } + ], + "nextLink": "" + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServicePatchOperation_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServicePatchOperation_example.json new file mode 100644 index 000000000000..0bc608c980f9 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServicePatchOperation_example.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationName": "myApp", + "serviceName": "myService", + "api-version": "2019-03-01", + "parameters": { + "location": "eastus", + "tags": {}, + "properties": { + "serviceKind": "Stateless", + "serviceLoadMetrics": [ + { + "name": "metric1", + "weight": "Low" + } + ] + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/4dde8d8b-b6b2-4c56-99c6-9b83932bb09a?api-version=2019-03-01" + }, + "body": { + "type": "services", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp/services/myService", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502183671257\"", + "properties": { + "provisioningState": "Updating", + "serviceKind": "Stateless", + "serviceTypeName": "myServiceType", + "partitionDescription": { + "partitionScheme": "Singleton" + }, + "serviceLoadMetrics": [ + { + "name": "metric1", + "weight": "Low" + } + ], + "instanceCount": 1, + "servicePackageActivationMode": "SharedProcess" + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServicePutOperation_example_max.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServicePutOperation_example_max.json new file mode 100644 index 000000000000..12c78507a83a --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServicePutOperation_example_max.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationName": "myApp", + "serviceName": "myService", + "api-version": "2019-03-01", + "parameters": { + "location": "eastus", + "tags": {}, + "properties": { + "serviceKind": "Stateless", + "placementConstraints": "NodeType==frontend", + "serviceTypeName": "myServiceType", + "partitionDescription": { + "partitionScheme": "Singleton" + }, + "serviceLoadMetrics": [ + { + "name": "metric1", + "weight": "Low" + } + ], + "correlationScheme": [ + { + "serviceName": "fabric:/app1/app1~svc1", + "scheme": "Affinity" + } + ], + "servicePlacementPolicies": [], + "defaultMoveCost": "Medium", + "instanceCount": 5, + "servicePackageActivationMode": "SharedProcess" + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/2e633105-aadc-4928-9164-d76b974170a3?api-version=2019-03-01" + }, + "body": { + "type": "services", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp/services/myService", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502183671258\"", + "properties": { + "provisioningState": "Updating", + "serviceKind": "Stateless", + "placementConstraints": "NodeType==frontend", + "serviceTypeName": "myServiceType", + "partitionDescription": { + "partitionScheme": "Singleton" + }, + "serviceLoadMetrics": [ + { + "name": "metric1", + "weight": "Low" + } + ], + "servicePlacementPolicies": [], + "defaultMoveCost": "Medium", + "instanceCount": 5, + "servicePackageActivationMode": "SharedProcess" + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServicePutOperation_example_min.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServicePutOperation_example_min.json new file mode 100644 index 000000000000..f0b7ff76b79a --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2019-03-01/examples/ServicePutOperation_example_min.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationName": "myApp", + "serviceName": "myService", + "api-version": "2019-03-01", + "parameters": { + "location": "eastus", + "tags": {}, + "properties": { + "serviceKind": "Stateless", + "serviceTypeName": "myServiceType", + "partitionDescription": { + "partitionScheme": "Singleton" + }, + "instanceCount": 1 + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/5bc615c3-6c5b-4593-80e1-008f55376ec7?api-version=2019-03-01" + }, + "body": { + "type": "services", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp/services/myService", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502183671256\"", + "properties": { + "provisioningState": "Updating", + "serviceKind": "Stateless", + "serviceTypeName": "myServiceType", + "partitionDescription": { + "partitionScheme": "Singleton" + }, + "instanceCount": 1 + } + } + } + } +} diff --git a/specification/servicefabric/resource-manager/readme.go.md b/specification/servicefabric/resource-manager/readme.go.md index c276c5ec0c48..866fdbb790d8 100644 --- a/specification/servicefabric/resource-manager/readme.go.md +++ b/specification/servicefabric/resource-manager/readme.go.md @@ -14,6 +14,7 @@ go: ``` yaml $(go) && $(multiapi) batch: - tag: package-2019-03 + - tag: package-2019-03-preview - tag: package-2018-02 - tag: package-2017-07 - tag: package-2016-09 @@ -25,7 +26,16 @@ These settings apply only when `--tag=package-2019-03 --go` is specified on the Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2019-03' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-03-01/$(namespace) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2019-03-01/$(namespace) +``` + +### Tag: package-2019-03-preview and go + +These settings apply only when `--tag=package-2019-03-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2019-03-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-03-01-preview/$(namespace) ``` ### Tag: package-2018-02 and go diff --git a/specification/servicefabric/resource-manager/readme.java.md b/specification/servicefabric/resource-manager/readme.java.md new file mode 100644 index 000000000000..70508fbfe1aa --- /dev/null +++ b/specification/servicefabric/resource-manager/readme.java.md @@ -0,0 +1,61 @@ +## 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.servicefabric +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-servicefabric +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-02-only + - tag: package-2017-07 + - tag: package-2016-09 +``` + +### Tag: package-2018-02-only and java + +These settings apply only when `--tag=package-2018-02-only --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-02-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.servicefabric.v2018_02_01 + output-folder: $(azure-libraries-for-java-folder)/servicefabric/resource-manager/v2018_02_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-07 and java + +These settings apply only when `--tag=package-2017-07 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2017-07' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.servicefabric.v2017_07_01_preview + output-folder: $(azure-libraries-for-java-folder)/servicefabric/resource-manager/v2017_07_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2016-09 and java + +These settings apply only when `--tag=package-2016-09 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2016-09' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.servicefabric.v2016_09_01 + output-folder: $(azure-libraries-for-java-folder)/servicefabric/resource-manager/v2016_09_01 +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/servicefabric/resource-manager/readme.md b/specification/servicefabric/resource-manager/readme.md index 34fcb6f30eb4..dd0135aabc6d 100644 --- a/specification/servicefabric/resource-manager/readme.md +++ b/specification/servicefabric/resource-manager/readme.md @@ -65,6 +65,16 @@ These settings apply only when `--tag=package-2019-03` is specified on the comma ``` yaml $(tag) == 'package-2019-03' input-file: +- Microsoft.ServiceFabric/stable/2019-03-01/cluster.json +- Microsoft.ServiceFabric/stable/2019-03-01/application.json +``` + +### Tag: package-2019-03-preview + +These settings apply only when `--tag=package-2019-03-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2019-03-preview' +input-file: - Microsoft.ServiceFabric/preview/2019-03-01-preview/cluster.json - Microsoft.ServiceFabric/preview/2019-03-01-preview/application.json ``` @@ -97,6 +107,14 @@ input-file: - Microsoft.ServiceFabric/stable/2016-09-01/servicefabric.json ``` +### Tag: package-2018-02-only + +These settings apply only when `--tag=package-2018-02-only` is specified on the command line. + +``` yaml $(tag) == 'package-2018-02-only' +input-file: +- Microsoft.ServiceFabric/stable/2018-02-01/cluster.json +``` --- # Code Generation @@ -109,6 +127,7 @@ 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 @@ -141,50 +160,36 @@ 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=`. +See configuration in [readme.java.md](./readme.java.md) -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.servicefabric -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-servicefabric -``` +## Multi-API/Profile support for AutoRest v3 generators -### Java multi-api +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2017-07 - - tag: package-2016-09 -``` +This block is updated by an automatic script. Edits may be lost! -### Tag: package-2017-07 and java +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md -These settings apply only when `--tag=package-2017-07 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.ServiceFabric/stable/2019-03-01/cluster.json + - $(this-folder)/Microsoft.ServiceFabric/stable/2019-03-01/application.json + - $(this-folder)/Microsoft.ServiceFabric/preview/2019-03-01-preview/cluster.json + - $(this-folder)/Microsoft.ServiceFabric/preview/2019-03-01-preview/application.json + - $(this-folder)/Microsoft.ServiceFabric/stable/2018-02-01/cluster.json + - $(this-folder)/Microsoft.ServiceFabric/preview/2017-07-01-preview/application.json + - $(this-folder)/Microsoft.ServiceFabric/preview/2017-07-01-preview/servicefabric.json + - $(this-folder)/Microsoft.ServiceFabric/stable/2016-09-01/servicefabric.json -``` yaml $(tag) == 'package-2017-07' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.servicefabric.v2017_07_01_preview - output-folder: $(azure-libraries-for-java-folder)/servicefabric/resource-manager/v2017_07_01_preview -regenerate-manager: true -generate-interface: true ``` -### Tag: package-2016-09 and java - -These settings apply only when `--tag=package-2016-09 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. +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) == 'package-2016-09' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.servicefabric.v2016_09_01 - output-folder: $(azure-libraries-for-java-folder)/servicefabric/resource-manager/v2016_09_01 -regenerate-manager: true -generate-interface: true +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json ``` - diff --git a/specification/servicefabric/resource-manager/readme.ruby.md b/specification/servicefabric/resource-manager/readme.ruby.md index 90b07b7f0613..4a25e71e0e82 100644 --- a/specification/servicefabric/resource-manager/readme.ruby.md +++ b/specification/servicefabric/resource-manager/readme.ruby.md @@ -13,7 +13,7 @@ azure-arm: true ``` yaml $(ruby) && $(multiapi) batch: - tag: package-2019-03 - - tag: package-2018-02 + - tag: package-2019-03-preview - tag: package-2017-07 - tag: package-2016-09 ``` @@ -24,17 +24,17 @@ These settings apply only when `--tag=package-2019-03 --ruby` is specified on th Please also specify `--ruby-sdks-folder=`. ``` yaml $(tag) == 'package-2019-03' && $(ruby) -namespace: "Azure::ServiceFabric::Mgmt::V2019_03_01_preview" +namespace: "Azure::ServiceFabric::Mgmt::V2019_03_01" output-folder: $(ruby-sdks-folder)/management/azure_mgmt_service_fabric/lib ``` -### Tag: package-2018-02 and ruby +### Tag: package-2019-03-preview and ruby -These settings apply only when `--tag=package-2018-02 --ruby` is specified on the command line. +These settings apply only when `--tag=package-2019-03-preview --ruby` is specified on the command line. Please also specify `--ruby-sdks-folder=`. -``` yaml $(tag) == 'package-2018-02' && $(ruby) -namespace: "Azure::ServiceFabric::Mgmt::V2018_02_01_preview" +``` yaml $(tag) == 'package-2019-03-preview' && $(ruby) +namespace: "Azure::ServiceFabric::Mgmt::V2019_03_01-preview" output-folder: $(ruby-sdks-folder)/management/azure_mgmt_service_fabric/lib ``` diff --git a/specification/servicefabricmesh/resource-manager/readme.md b/specification/servicefabricmesh/resource-manager/readme.md index c217dd611e54..51dcb01b8b17 100644 --- a/specification/servicefabricmesh/resource-manager/readme.md +++ b/specification/servicefabricmesh/resource-manager/readme.md @@ -67,6 +67,7 @@ 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 @@ -88,7 +89,7 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.ServiceFabricMesh payload-flattening-threshold: 1 - output-folder: $(csharp-sdks-folder)/ServiceFabric/Management.ServiceFabricMesh/Generated + output-folder: $(csharp-sdks-folder)/servicefabric/Microsoft.Azure.Management.ServiceFabricMesh/src/Generated clear-output-folder: true ``` @@ -167,3 +168,29 @@ java: regenerate-manager: true generate-interface: 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)/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/servicefabricmesh.json + - $(this-folder)/Microsoft.ServiceFabricMesh/preview/2018-07-01-preview/servicefabricmesh.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/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_CreateOrUpdate.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_CreateOrUpdate.json index ad34eb93d140..89fdfeb74e49 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_CreateOrUpdate.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_CreateOrUpdate.json @@ -18,7 +18,13 @@ "value": "Serverless", "properties": {} } - ] + ], + "cors": { + "allowedOrigins": [ + "https://foo.com", + "https://bar.com" + ] + } } }, "api-version": "2018-10-01", @@ -49,7 +55,13 @@ "value": "Serverless", "properties": {} } - ] + ], + "cors": { + "allowedOrigins": [ + "https://foo.com", + "https://bar.com" + ] + } }, "location": "eastus", "tags": { diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Get.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Get.json index 434e03dc6cbf..7b12b1707fd7 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Get.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Get.json @@ -28,7 +28,13 @@ "value": "Serverless", "properties": {} } - ] + ], + "cors": { + "allowedOrigins": [ + "https://foo.com", + "https://bar.com" + ] + } }, "location": "eastus", "tags": { diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListByResourceGroup.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListByResourceGroup.json index ccd96cc467d0..e00efbbcf0b3 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListByResourceGroup.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListByResourceGroup.json @@ -29,7 +29,13 @@ "value": "Serverless", "properties": {} } - ] + ], + "cors": { + "allowedOrigins": [ + "https://foo.com", + "https://bar.com" + ] + } }, "location": "eastus", "tags": { diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListBySubscription.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListBySubscription.json index ff858e6204cf..fc404f3efb29 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListBySubscription.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListBySubscription.json @@ -28,7 +28,13 @@ "value": "Serverless", "properties": {} } - ] + ], + "cors": { + "allowedOrigins": [ + "https://foo.com", + "https://bar.com" + ] + } }, "location": "eastus", "tags": { diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Update.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Update.json index fc5f666aa6de..7e58532bccfe 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Update.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Update.json @@ -17,7 +17,13 @@ "value": "Serverless", "properties": {} } - ] + ], + "cors": { + "allowedOrigins": [ + "https://foo.com", + "https://bar.com" + ] + } } }, "api-version": "2018-10-01", @@ -48,7 +54,13 @@ "value": "Serverless", "properties": {} } - ] + ], + "cors": { + "allowedOrigins": [ + "https://foo.com", + "https://bar.com" + ] + } }, "location": "eastus", "tags": { diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/signalr.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/signalr.json index 6404524ff2fb..3f0b94fae3f3 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/signalr.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/signalr.json @@ -893,6 +893,10 @@ "items": { "$ref": "#/definitions/SignalRFeature" } + }, + "cors": { + "$ref": "#/definitions/SignalRCorsSettings", + "description": "Cross-Origin Resource Sharing (CORS) settings." } } }, @@ -930,6 +934,19 @@ } } }, + "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" + } + } + } + }, "SignalRKeys": { "description": "A class represents the access keys of SignalR service.", "type": "object", diff --git a/specification/signalr/resource-manager/readme.java.md b/specification/signalr/resource-manager/readme.java.md new file mode 100644 index 000000000000..036c97441cca --- /dev/null +++ b/specification/signalr/resource-manager/readme.java.md @@ -0,0 +1,47 @@ +## 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.signalr +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-signalr +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-03-01-preview + - tag: package-2018-10-01 +``` + +### Tag: package-2018-10-01 and java + +These settings apply only when `--tag=package-2018-10-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2018-10-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.signalr.v2018_10_01 + output-folder: $(azure-libraries-for-java-folder)/signalr/resource-manager/v2018_10_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-03-01-preview and java + +These settings apply only when `--tag=package-2018-03-01-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2018-03-01-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.signalr.v2018_03_01_preview + output-folder: $(azure-libraries-for-java-folder)/signalr/resource-manager/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 87ddb4d95a63..b09fc7411052 100644 --- a/specification/signalr/resource-manager/readme.md +++ b/specification/signalr/resource-manager/readme.md @@ -72,6 +72,7 @@ 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-node @@ -89,51 +90,7 @@ 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) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.signalr -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-signalr -``` - -### Java multi-api - -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2018-03-01-preview - - tag: package-2018-10-01 -``` - -### Tag: package-2018-10-01 and java - -These settings apply only when `--tag=package-2018-10-01 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2018-10-01' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.signalr.v2018_10_01 - output-folder: $(azure-libraries-for-java-folder)/signalr/resource-manager/v2018_10_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2018-03-01-preview and java - -These settings apply only when `--tag=package-2018-03-01-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2018-03-01-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.signalr.v2018_03_01_preview - output-folder: $(azure-libraries-for-java-folder)/signalr/resource-manager/v2018_03_01_preview -regenerate-manager: true -generate-interface: true -``` +See configuration in [readme.java.md](./readme.java.md) ## C# @@ -149,3 +106,29 @@ csharp: output-folder: $(csharp-sdks-folder)/signalr/Microsoft.Azure.Management.SignalR/src/Generated clear-output-folder: 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)/Microsoft.SignalRService/stable/2018-10-01/signalr.json + - $(this-folder)/Microsoft.SignalRService/preview/2018-03-01-preview/signalr.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/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/DeleteHybridUseBenefit.json b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/DeleteHybridUseBenefit.json new file mode 100644 index 000000000000..c5ff7f6241d7 --- /dev/null +++ b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/DeleteHybridUseBenefit.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "scope": "subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}", + "planId": "94f46eda-45f8-493a-8425-251921463a89", + "api-version": "2019-06-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/GetAllHybridUseBenefits.json b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/GetAllHybridUseBenefits.json new file mode 100644 index 000000000000..90bd417ce859 --- /dev/null +++ b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/GetAllHybridUseBenefits.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "scope": "subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}", + "api-version": "2019-06-01-preview", + "$filter": "SQL_Server_EE_AHB" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}/providers/Microsoft.SoftwarePlan/hybridUseBenefits/SQL_hostGroup_hostName", + "name": "SQL_hostGroup_hostName", + "type": "Microsoft.SoftwarePlans/hybridUseBenefits", + "sku": { + "name": "SQL_Server_EE_AHB" + }, + "etag": 1, + "properties": { + "provisioningState": "Succeeded", + "createdDate": "2019-06-05T21:50:07.846Z", + "lastUpdatedDate": "2019-06-05T21:50:07.846Z" + } + } + ] + } + } + } +} diff --git a/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/GetHybridUseBenefitRevisions.json b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/GetHybridUseBenefitRevisions.json new file mode 100644 index 000000000000..268d31a5d846 --- /dev/null +++ b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/GetHybridUseBenefitRevisions.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "scope": "subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}", + "planId": "94f46eda-45f8-493a-8425-251921463a89", + "api-version": "2019-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}/providers/Microsoft.SoftwarePlan/hybridUseBenefits/SQL_{hostGroupName}_{hostName}", + "name": "SQL_{hostGroupName}_{hostName}", + "type": "Microsoft.SoftwarePlans/hybridUseBenefits", + "sku": { + "name": "SQL_Server_EE_AHB" + }, + "etag": 1, + "properties": { + "provisioningState": "Succeeded", + "createdDate": "2019-06-05T21:50:07.846Z", + "lastUpdatedDate": "2019-06-05T21:50:07.846Z" + } + } + ] + } + } + } +} diff --git a/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/GetOperations.json b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/GetOperations.json new file mode 100644 index 000000000000..f631d7432274 --- /dev/null +++ b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/GetOperations.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "scope": "subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}", + "api-version": "2019-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.SoftwarePlan/hybridUseBenefits/read", + "display": { + "provider": "Microsoft Software Plan", + "resource": "hybridUseBenefits", + "operation": "Get hybrid use benefit", + "description": "Read all hybrid use benefits" + } + }, + { + "name": "Microsoft.SoftwarePlan/hybridUseBenefits/write", + "display": { + "provider": "Microsoft Software Plan", + "resource": "hybridUseBenefits", + "operation": "Create hybrid use benefit", + "description": "Create a hybrid use benefit" + } + }, + { + "name": "Microsoft.SoftwarePlan/hybridUseBenefits/action", + "display": { + "provider": "Microsoft Software Plan", + "resource": "hybridUseBenefits", + "operation": "Update hybrid use benefit", + "description": "Update a hybrid use benefit" + } + }, + { + "name": "Microsoft.SoftwarePlan/hybridUseBenefits/delete", + "display": { + "provider": "Microsoft Software Plan", + "resource": "hybridUseBenefits", + "operation": "Delete hybrid use benefit", + "description": "Delete a hybrid use benefit" + } + }, + { + "name": "Microsoft.SoftwarePlan/hybridUseBenefits/revisions/read", + "display": { + "provider": "Microsoft Software Plan", + "resource": "hybridUseBenefits", + "operation": "Get hybrid use benefit", + "description": "Read all hybrid use benefit revisions" + } + }, + { + "name": "Microsoft.SoftwarePlan/register/action", + "display": { + "provider": "Microsoft Software Plan", + "resource": "SoftwarePlan", + "operation": "Registers the SoftwarePlan Resource Provider.", + "description": "Registers the SoftwarePlan resource provider and enables the creation of SoftwarePlan resources." + } + } + ] + } + } + } +} diff --git a/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/GetSingleHybridUseBenefit.json b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/GetSingleHybridUseBenefit.json new file mode 100644 index 000000000000..bef6e6c1cb2d --- /dev/null +++ b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/GetSingleHybridUseBenefit.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "scope": "subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}", + "planId": "94f46eda-45f8-493a-8425-251921463a89", + "api-version": "2019-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}/providers/Microsoft.SoftwarePlan/hybridUseBenefits/SQL_{hostGroupName}_{hostName}", + "name": "SQL_{hostGroupName}_{hostName}", + "type": "Microsoft.SoftwarePlans/hybridUseBenefits", + "sku": { + "name": "SQL_Server_EE_AHB" + }, + "etag": 1, + "properties": { + "provisioningState": "Succeeded", + "createdDate": "2019-06-05T21:50:07.846Z", + "lastUpdatedDate": "2019-06-05T21:50:07.846Z" + } + } + } + } +} diff --git a/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/PatchHybridUseBenefit.json b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/PatchHybridUseBenefit.json new file mode 100644 index 000000000000..76f4e34b3b64 --- /dev/null +++ b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/PatchHybridUseBenefit.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "scope": "subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}", + "planId": "94f46eda-45f8-493a-8425-251921463a89", + "api-version": "2019-06-01-preview", + "body": { + "type": "Microsoft.SoftwarePlan/hybridUseBenefits", + "sku": { + "name": "SQLBYOLStandardForADH" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}/providers/Microsoft.SoftwarePlan/hybridUseBenefits/SQL_{hostGroupName}_{hostName}", + "name": "SQL_{hostGroupName}_{hostName}", + "type": "Microsoft.SoftwarePlans/hybridUseBenefits", + "sku": { + "name": "SQLBYOLStandardForADH" + }, + "etag": 1, + "properties": { + "provisioningState": "Succeeded", + "createdDate": "2019-06-05T21:50:07.846Z", + "lastUpdatedDate": "2019-06-05T21:50:07.846Z" + } + } + } + } +} diff --git a/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/PutHybridUseBenefit.json b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/PutHybridUseBenefit.json new file mode 100644 index 000000000000..b7c9acba44b6 --- /dev/null +++ b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/PutHybridUseBenefit.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "scope": "subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}", + "planId": "94f46eda-45f8-493a-8425-251921463a89", + "api-version": "2019-06-01-preview", + "body": { + "type": "Microsoft.SoftwarePlan/hybridUseBenefits", + "sku": { + "name": "SQL_Server_Perpetual" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/HostGroups/{host-group-name}/hosts/{host-name}/providers/Microsoft.SoftwarePlan/hybridUseBenefits/SQL_{hostGroupName}_{hostName}", + "name": "SQL_{hostGroupName}_{hostName}", + "type": "Microsoft.SoftwarePlans/hybridUseBenefits", + "sku": { + "name": "SQL_Server_Perpetual" + }, + "etag": 1, + "properties": { + "provisioningState": "Succeeded", + "createdDate": "2019-06-05T21:50:07.846Z", + "lastUpdatedDate": "2019-06-05T21:50:07.846Z" + } + } + } + } +} diff --git a/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/RegisterSubscription.json b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/RegisterSubscription.json new file mode 100644 index 000000000000..1afb85c906c3 --- /dev/null +++ b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/examples/RegisterSubscription.json @@ -0,0 +1,9 @@ +{ + "parameters": { + "api-version": "2019-06-01-preview", + "subscriptionId": "98df3792-7962-4f18-8be2-d5576f122de3 " + }, + "responses": { + "204": {} + } +} diff --git a/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/softwareplan.json b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/softwareplan.json new file mode 100644 index 000000000000..a0318a7406c3 --- /dev/null +++ b/specification/softwareplan/resource-manager/Microsoft.SoftwarePlan/preview/2019-06-01-preview/softwareplan.json @@ -0,0 +1,569 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-06-01-preview", + "title": "Software Plan RP", + "description": "Azure software plans let users create and manage licenses for various software used in Azure.", + "x-ms-code-generation-settings": { + "name": "softwareplanClient" + } + }, + "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.SoftwarePlan/register": { + "post": { + "description": "Register to Microsoft.SoftwarePlan resource provider.", + "operationId": "SoftwarePlan_Register", + "tags": [ + "Software plan" + ], + "x-ms-examples": { + "HybridUseBenefitListResult": { + "$ref": "./examples/RegisterSubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "OK - Microsoft.SoftwarePlan is registered" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/{scope}/providers/Microsoft.SoftwarePlan/hybridUseBenefits": { + "get": { + "description": "Get all hybrid use benefits associated with an ARM resource.", + "operationId": "HybridUseBenefit_List", + "tags": [ + "Hybrid use benefits" + ], + "x-ms-examples": { + "HybridUseBenefitListResult": { + "$ref": "./examples/GetAllHybridUseBenefits.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "Supports applying filter on the type of SKU" + } + ], + "responses": { + "200": { + "description": "OK - returns an array of plans at that scope", + "schema": { + "$ref": "#/definitions/HybridUseBenefitListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/{scope}/providers/Microsoft.SoftwarePlan/hybridUseBenefits/{planId}": { + "put": { + "description": "Create a new hybrid use benefit under a given scope", + "operationId": "HybridUseBenefit_Create", + "tags": [ + "Hybrid use benefit" + ], + "x-ms-examples": { + "HybridUseBenefit": { + "$ref": "./examples/PutHybridUseBenefit.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/PlanIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PutBodyParameter" + } + ], + "responses": { + "200": { + "description": "OK - returns the plan that is created", + "schema": { + "$ref": "#/definitions/HybridUseBenefitModel" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "patch": { + "description": "Updates an existing hybrid use benefit", + "operationId": "HybridUseBenefit_Update", + "tags": [ + "Hybrid use benefit" + ], + "x-ms-examples": { + "HybridUseBenefit": { + "$ref": "./examples/PatchHybridUseBenefit.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/PlanIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PutBodyParameter" + } + ], + "responses": { + "200": { + "description": "OK - successfully updated the given hybrid use benefit", + "schema": { + "$ref": "#/definitions/HybridUseBenefitModel" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "get": { + "description": "Gets a given plan ID", + "operationId": "HybridUseBenefit_Get", + "tags": [ + "Hybrid use benefit" + ], + "x-ms-examples": { + "HybridUseBenefit": { + "$ref": "./examples/GetSingleHybridUseBenefit.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/PlanIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - returns the plan that is created", + "schema": { + "$ref": "#/definitions/HybridUseBenefitModel" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "description": "Deletes a given plan ID", + "operationId": "HybridUseBenefit_Delete", + "tags": [ + "Hybrid use benefit" + ], + "x-ms-examples": { + "HybridUseBenefit": { + "$ref": "./examples/DeleteHybridUseBenefit.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/PlanIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - successfully deleted the given plan" + }, + "204": { + "description": "OK - there was no plan to delete" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/{scope}/providers/Microsoft.SoftwarePlan/hybridUseBenefits/{planId}/revisions": { + "get": { + "description": "Gets the version history of a hybrid use benefit", + "operationId": "HybridUseBenefitRevision_List", + "tags": [ + "Hybrid use benefit revisions" + ], + "x-ms-examples": { + "HybridUseBenefitRevisionsResponse": { + "$ref": "./examples/GetHybridUseBenefitRevisions.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/PlanIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - returns an array of plans ordered by revision", + "schema": { + "$ref": "#/definitions/HybridUseBenefitListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/{scope}/providers/Microsoft.SoftwarePlan/operations": { + "get": { + "summary": "Get operations.", + "description": "List all the operations.", + "operationId": "Operations_List", + "x-ms-examples": { + "GetOperations": { + "$ref": "./examples/GetOperations.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Software plan operations" + ], + "responses": { + "200": { + "description": "List all the operations.", + "schema": { + "$ref": "#/definitions/OperationList" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + } + }, + "definitions": { + "Error": { + "type": "object", + "description": "Error object returned by the RP", + "properties": { + "code": { + "description": "Error code", + "$ref": "#/definitions/ErrorCode" + }, + "message": { + "type": "string", + "description": "A user readable error message. Localized based on x-ms-effective-locale header in the request" + } + } + }, + "ErrorCode": { + "type": "string", + "description": "Defined error codes to be returned to the client.", + "enum": [ + "InvalidRequestParameter", + "MissingRequestParameter" + ], + "x-ms-enum": { + "name": "ErrorCode", + "modelAsString": true + } + }, + "Sku": { + "type": "object", + "description": "The SKU to be applied for this resource", + "properties": { + "name": { + "type": "string", + "description": "Name of the SKU to be applied" + } + } + }, + "ProvisioningState": { + "type": "string", + "description": "Represent the current state of the Reservation.", + "enum": [ + "Succeeded", + "Cancelled", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "HybridUseBenefitListResult": { + "description": "List of hybrid use benefits", + "properties": { + "value": { + "description": "List of hybrid use benefits", + "type": "array", + "items": { + "$ref": "#/definitions/HybridUseBenefitModel" + } + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page of items." + } + } + }, + "HybridUseBenefitModel": { + "description": "Response on GET of a hybrid use benefit", + "required": [ + "sku" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ], + "properties": { + "sku": { + "description": "Hybrid use benefit SKU", + "$ref": "#/definitions/Sku" + }, + "etag": { + "type": "integer", + "format": "int32", + "description": "Indicates the revision of the hybrid use benefit", + "readOnly": true + }, + "properties": { + "description": "Property bag for a hybrid use benefit response", + "x-ms-client-flatten": true, + "$ref": "#/definitions/HybridUseBenefitProperties" + } + } + }, + "HybridUseBenefitProperties": { + "description": "Hybrid use benefit properties", + "properties": { + "provisioningState": { + "type": "string", + "description": "Provisioning state", + "$ref": "#/definitions/ProvisioningState", + "readOnly": true + }, + "createdDate": { + "type": "string", + "description": "Created date", + "format": "date-time", + "readOnly": true + }, + "lastUpdatedDate": { + "type": "string", + "description": "Last updated date", + "format": "date-time", + "readOnly": true + } + } + }, + "OperationList": { + "type": "object", + "description": "List all the operations.", + "properties": { + "value": { + "type": "array", + "description": "List of all operations", + "items": { + "$ref": "#/definitions/OperationResponse" + } + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page of items." + } + } + }, + "OperationResponse": { + "type": "object", + "description": "Operation response.", + "properties": { + "name": { + "type": "string", + "description": "Name of the operation" + }, + "display": { + "description": "Display properties for the operation", + "$ref": "#/definitions/OperationDisplay" + }, + "origin": { + "description": "Origin of the response", + "type": "string" + } + } + }, + "OperationDisplay": { + "type": "object", + "description": "Display fields for an operation.", + "properties": { + "provider": { + "description": "Resource Provider name", + "type": "string" + }, + "resource": { + "description": "Resource that is acted upon", + "type": "string" + }, + "operation": { + "description": "Operation to be performed", + "type": "string" + }, + "description": { + "description": "Description of the operation", + "type": "string" + } + } + } + }, + "parameters": { + "ScopeParameter": { + "name": "scope", + "in": "path", + "x-ms-parameter-location": "method", + "required": true, + "type": "string", + "description": "The scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now" + }, + "PutBodyParameter": { + "name": "body", + "in": "body", + "x-ms-parameter-location": "method", + "required": true, + "description": "Request body for creating a hybrid use benefit", + "schema": { + "$ref": "#/definitions/HybridUseBenefitModel" + } + }, + "PlanIdParameter": { + "name": "planId", + "in": "path", + "x-ms-parameter-location": "method", + "required": true, + "type": "string", + "description": "This is a unique identifier for a plan. Should be a guid." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "x-ms-parameter-location": "client", + "required": true, + "description": "The api-version to be used by the service", + "type": "string" + } + } +} diff --git a/specification/softwareplan/resource-manager/readme.csharp.md b/specification/softwareplan/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..08b9ce90303d --- /dev/null +++ b/specification/softwareplan/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.SoftwarePlan + output-folder: $(csharp-sdks-folder)/softwareplan/management/Microsoft.SoftwarePlan/GeneratedProtocol +``` diff --git a/specification/softwareplan/resource-manager/readme.go.md b/specification/softwareplan/resource-manager/readme.go.md new file mode 100644 index 000000000000..bef5d3527255 --- /dev/null +++ b/specification/softwareplan/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 + namespace: softwareplan +``` + +### Tag: package-2019-06-01-preview and go + +These settings apply only when `--tag=package-2019-06-01-preview --go` is specified on the command line. +Please also specify `--go-sdks-folder=`. + +```yaml $(tag) == 'package-2019-06-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-06-01-preview/$(namespace) +``` diff --git a/specification/softwareplan/resource-manager/readme.md b/specification/softwareplan/resource-manager/readme.md new file mode 100644 index 000000000000..a10b52f0105f --- /dev/null +++ b/specification/softwareplan/resource-manager/readme.md @@ -0,0 +1,115 @@ +# softwareplan + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for softwareplan. + +## 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 softwareplan. + +``` yaml +openapi-type: arm +tag: package-2019-06-01-preview +``` + +### Tag: package-2019-06-01-preview + +These settings apply only when `--tag=package-2019-06-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2019-06-01-preview' +input-file: + - Microsoft.SoftwarePlan/preview/2019-06-01-preview/softwareplan.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-net + - 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_softwareplan'] +``` + +## 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: DescriptionAndTitleMissing + from: types.json + where: $.definitions.Resource + reason: This is an issue with the common resource definition. The properties in the resource definition actually has a title and description. +``` + +## 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.SoftwarePlan/preview/2019-06-01-preview/softwareplan.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/softwareplan/resource-manager/readme.python.md b/specification/softwareplan/resource-manager/readme.python.md new file mode 100644 index 000000000000..f68a7109fb66 --- /dev/null +++ b/specification/softwareplan/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.SoftwarePlan + package-name: softwareplan + package-version: 2019-06-01-preview + clear-output-folder: true +``` + +```yaml $(python) +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt/softwareplan +``` diff --git a/specification/softwareplan/resource-manager/readme.ruby.md b/specification/softwareplan/resource-manager/readme.ruby.md new file mode 100644 index 000000000000..52724cb7a5a6 --- /dev/null +++ b/specification/softwareplan/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_softwareplan +package-version: 2019-06-01-preview +azure-arm: true +``` + +### Tag: package-2019-06-01-preview and ruby + +These settings apply only when `--tag=package-2019-06-01-preview --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +```yaml $(tag) == 'package-2019-06-01-preview' && $(ruby) +namespace: Microsoft.SoftwarePlan +output-folder: $(ruby-sdks-folder)/softwareplan +``` diff --git a/specification/softwareplan/resource-manager/readme.typescript.md b/specification/softwareplan/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..f6a9f0e7845a --- /dev/null +++ b/specification/softwareplan/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-softwareplan" + output-folder: "$(typescript-sdks-folder)/sdk/softwareplan/arm-softwareplan" + payload-flattening-threshold: 1 + generate-metadata: true +``` diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/blobAuditing.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/blobAuditing.json index 914d197ebf0c..586dfe1e8c91 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/blobAuditing.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/blobAuditing.json @@ -180,7 +180,7 @@ "type": "boolean" }, "isAzureMonitorTargetEnabled": { - "description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n", + "description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n", "type": "boolean" } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/DatabaseAzureMonitorAuditingCreateMin.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/DatabaseAzureMonitorAuditingCreateMin.json index ae0dcecf831f..d1ba099b38ae 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/DatabaseAzureMonitorAuditingCreateMin.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/DatabaseAzureMonitorAuditingCreateMin.json @@ -9,7 +9,7 @@ "parameters": { "properties": { "state": "Enabled", - "IsAzureMonitorTargetEnabled": true + "isAzureMonitorTargetEnabled": true } } }, diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/FailoverGroupDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/FailoverGroupDelete.json index 10e7c6312935..f0766ac09618 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/FailoverGroupDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/FailoverGroupDelete.json @@ -7,14 +7,8 @@ "api-version": "2015-05-01-preview" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/FirewallRuleDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/FirewallRuleDelete.json index 51ab66f29b0e..1f48aeff8313 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/FirewallRuleDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/FirewallRuleDelete.json @@ -7,11 +7,7 @@ "api-version": "2015-05-01-preview" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceDelete.json index 88db0c8b5a4f..dd17496189b9 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceDelete.json @@ -6,12 +6,8 @@ "api-version": "2015-05-01-preview" }, "responses": { - "200": { - "body": "" - }, + "200": {}, "202": {}, - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ServerDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ServerDelete.json index 2dd4eb5578fc..77f5eab5630c 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ServerDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ServerDelete.json @@ -6,12 +6,8 @@ "api-version": "2015-05-01-preview" }, "responses": { - "200": { - "body": "" - }, + "200": {}, "202": {}, - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ServerKeyDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ServerKeyDelete.json index 5762754693a7..9b8ffa9c6512 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ServerKeyDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ServerKeyDelete.json @@ -7,12 +7,8 @@ "api-version": "2015-05-01-preview" }, "responses": { - "200": { - "body": "" - }, + "200": {}, "202": {}, - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentCreate.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentCreate.json index 495bace0df8d..258fea407453 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentCreate.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentCreate.json @@ -40,8 +40,6 @@ "type": "Microsoft.Sql/servers/syncAgents" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentCreateOrUpdate.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentCreateOrUpdate.json index 495bace0df8d..258fea407453 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentCreateOrUpdate.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentCreateOrUpdate.json @@ -40,8 +40,6 @@ "type": "Microsoft.Sql/servers/syncAgents" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentDelete.json index 9e69538042b9..cc369cf55663 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentDelete.json @@ -7,14 +7,8 @@ "api-version": "2015-05-01-preview" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentUpdate.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentUpdate.json index 495bace0df8d..258fea407453 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentUpdate.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncAgentUpdate.json @@ -40,8 +40,6 @@ "type": "Microsoft.Sql/servers/syncAgents" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupCreate.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupCreate.json index effe921ae286..3a2ade2458c3 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupCreate.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupCreate.json @@ -47,8 +47,6 @@ "type": "Microsoft.Sql/servers/databases/syncGroups" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupCreateOrUpdate.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupCreateOrUpdate.json index effe921ae286..3a2ade2458c3 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupCreateOrUpdate.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupCreateOrUpdate.json @@ -47,8 +47,6 @@ "type": "Microsoft.Sql/servers/databases/syncGroups" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupDelete.json index 238ffe162c60..a323637a03e3 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupDelete.json @@ -8,14 +8,8 @@ "api-version": "2015-05-01-preview" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupPatch.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupPatch.json index df336358a198..09ec3eb000a8 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupPatch.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupPatch.json @@ -33,8 +33,6 @@ "type": "Microsoft.Sql/servers/databases/syncGroups" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupUpdate.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupUpdate.json index effe921ae286..3a2ade2458c3 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupUpdate.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncGroupUpdate.json @@ -47,8 +47,6 @@ "type": "Microsoft.Sql/servers/databases/syncGroups" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncMemberDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncMemberDelete.json index e4202edea494..e43d2d3780a1 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncMemberDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/SyncMemberDelete.json @@ -9,14 +9,8 @@ "api-version": "2015-05-01-preview" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/VirtualClusterDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/VirtualClusterDelete.json index a74d86bebcd1..50c3850fccb0 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/VirtualClusterDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/VirtualClusterDelete.json @@ -6,12 +6,8 @@ "api-version": "2015-05-01-preview" }, "responses": { - "200": { - "body": "" - }, + "200": {}, "202": {}, - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/VirtualNetworkRulesDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/VirtualNetworkRulesDelete.json index 2d286d52e7c8..382e8a67a2fb 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/VirtualNetworkRulesDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/VirtualNetworkRulesDelete.json @@ -7,14 +7,8 @@ "api-version": "2015-05-01-preview" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } 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 111fb778f6a6..b50eb3ab1b62 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 @@ -130,7 +130,7 @@ } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 HkCannotSwitchToInactive - The database cannot proceed with pricing-tier update as it has memory-optimized objects. Please drop such objects and try again.\n\n * 400 ManagedInstanceInvalidStorageSizeLessThenCurrentSizeUsed - Invalid storage size: Storage size limit ({0} GB) is less that current storage used ({1} GB). Please specify higher storage size limit.\n\n * 400 InstanceTimezoneUpdateNotSupported - Instance timezone update not supported.\n\n * 400 CreateManagedInstanceWithNonDefaultTimezoneNotSupported - Create Managed Instance with non-default timezone not supported.\n\n * 400 ManagedInstanceIpAddressRangeLimit - Cannot create a Managed Instance as there are not enough available ip addresses in the selected subnet\n\n * 400 VnetDelegationNotAllowed - User tried to inject Managed Server to subnet which is delegated.\n\n * 400 InvalidUsername - Supplied user name contains invalid characters.\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 400 InstancePoolNotEnoughCapacity - An instance pool does not have enough vCore capacity\n\n * 400 ServerNotFound - The requested server was not found.\n\n * 400 TokenTooLong - The provided token is too long.\n\n * 400 ManagedInstanceSloUpdateFailed - SLO '{0}' operation cannot succeed as the memory usage of '{1}' exceeds the quota.\n\n * 400 ManagedInstanceLocalStorageUpdateSloDisabled - Update SLO for managed instances with local storage is not supported yet.\n\n * 400 InvalidLoginName - The provided login name is invalid.\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 PasswordTooShort - The provided password is too short\n\n * 400 PasswordTooLong - The provided password is too long.\n\n * 400 PasswordNotComplex - The provided password is not complex enough.\n\n * 400 GatewayInvalidEdition - '{0}' is not a valid database edition in this version of SQL Server.\n\n * 400 InvalidSubnetResourceId - The provided subnet resource ID for the managed instance create or update is invalid.\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 InvalidLocation - An invalid location was specified.\n\n * 400 VnetInWrongRegion - Virtual network is in wrong region.\n\n * 400 InvalidServerName - Invalid server name specified.\n\n * 400 VnetAddressRangeError - Virtual network address range is invalid.\n\n * 400 VnetConfigIsNotAllowed - Virtual network configuration is not allowed.\n\n * 400 InvalidCollation - Invalid collation.\n\n * 400 InvalidIdentifier - The identifier contains NULL or an invalid unicode character.\n\n * 400 ManagedInstanceClassicVnetNotSupported - Managed Instance cannot be joined to a classic virtual network.\n\n * 400 AlterDbDeactivatedNotSupported - Database Operation failed for Server '{0}', Database '{1}' due to unexpected delay. Please try again.\n\n * 400 RegionDoesNotAllowProvisioning - The selected location is not accepting new Windows Azure SQL Database servers. This may change at a later time.\n\n * 400 VnetConfigHasNsg - User tried to inject Managed Server subnet with Network Security Groups.\n\n * 400 VnetConfigHasNoUdr - User tried to inject Managed Server subnet without default User Defined Route Table.\n\n * 400 VnetConfigHasInvalidUdr - User tried to inject Managed Server subnet with invalid User Defined Route Table.\n\n * 400 VnetConfigHasInvalidDns - User tried to inject Managed Server subnet with invalid custom DNS.\n\n * 400 VnetConfigHasServiceEndpoints - User tried to inject Managed Server subnet with service endpoints.\n\n * 400 VnetSubnetIsInUse - User tried to inject Managed Server subnet that is not empty.\n\n * 400 VnetSubnetIsLocked - User tried to inject Managed Server subnet that is in locked scope.\n\n * 400 VnetSubnetIsGateway - User tried to inject Managed Server subnet that is Gateway subnet.\n\n * 400 VnetSubnetIsUnknown - User tried to inject Managed Server subnet that does not exist.\n\n * 400 VnetSubnetConflictWithIntendedPolicy - User tried to inject Managed Server subnet that has a conflict with IntendedPolicy.\n\n * 400 NameAlreadyExists - The provided name already exists.\n\n * 400 ManagedInstanceInvalidEditionForSku - The specified edition {0} is not consistent with the specified SKU {1}.\n\n * 400 ProvisioningDisabled - Displays error message from resources operation authorizer as is, without changes\n\n * 400 ManagedInstanceInvalidLicenseType - The specified license type {0} is not valid.\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 VnetResourceNotFound - Resource not found: '{0}'.\n\n * 400 InvalidTimezone - Invalid timezone.\n\n * 400 UnableToResolveRemoteServer - The remote partner server name could not be resolved due to an invalid server name or DNS connectivity issues.\n\n * 400 InstanceCollationUpdateNotSupported - User cannot change instance collation on Managed Instance.\n\n * 400 CreateManagedInstanceWithNonDefaultCollationNotSupported - User can create a Managed Instance only with collation 'SQL_Latin1_General_CP1_CI_AS'.\n\n * 400 ManagedInstanceOperationInProgress - The operation could not be completed because {0} operation is in progress. Please wait for the operation in progress to complete and try again.\n\n * 400 ManagedInstanceExceedMaxAzureStorage - The operation could not be completed because total allocated storage size for General Purpose instance would exceed {0}. Please reduce the number of database files and retry operation.\n\n * 400 ManagedInstanceHasGeoReplica - The operation could not be completed because instance has configured geo replicated secondary instance.\n\n * 400 InvalidManagedServerDnsZonePartner - Invalid DNS zone partner resource id specified in properties.\n\n * 400 ManagementServiceFeatureDisabled - User attempted to use a feature which is disabled.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group 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 * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 404 ManagedInstanceNotInSubscriptionResourceGroup - Specified managed instance does not exist in the specified resource group and subscription.\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource with the name '{0}' does not exist. To continue, specify a valid resource name.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 405 InvalidVcoreValue - vCore value {0} is not valid. Please specify a valid vCore value.\n\n * 405 InvalidHardwareGenerationValue - HardwareGeneration {0} is not valid. Please specify a valid HardwareGeneration value.\n\n * 405 InvalidStorageSizeValue - \"Invalid storage size: {0} GB. Storage size must be specified between {1} and {2} gigabytes, in increments of {3} GB.\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 ConflictingServerOperation - An operation is currently in progress for the server.\n\n * 409 SubscriptionDisabled - Subscription is disabled.\n\n * 409 ServerAlreadyExists - Duplicate server name.\n\n * 409 ServerOverridePreconditionFailed - Failed to apply server override on category '{0}', because physical db or instance '{1}' in server '{2}' is currently not in 'Ready' or 'Deactivated' state.\n\n * 409 ServerDisabled - Server is disabled.\n\n * 409 ManagedInstanceIsBusy - The server '{0}' is currently busy. Please wait a few minutes before trying again.\n\n * 409 ServerQuotaExceeded - Server cannot be added to a subscription because it will exceed quota.\n\n * 409 ConflictingManagedInstanceOperation - An operation is currently in progress for the managed instance.\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 * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription.\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 * 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 * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation.\n\n * 500 GatewayInternalServerError - The server encountered an unexpected exception.\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 * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout." + "description": "*** Error Responses: ***\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 HkCannotSwitchToInactive - The database cannot proceed with pricing-tier update as it has memory-optimized objects. Please drop such objects and try again.\n\n * 400 ManagedInstanceInvalidStorageSizeLessThenCurrentSizeUsed - Invalid storage size: Storage size limit ({0} GB) is less that current storage used ({1} GB). Please specify higher storage size limit.\n\n * 400 InstanceTimezoneUpdateNotSupported - Instance timezone update not supported.\n\n * 400 CreateManagedInstanceWithNonDefaultTimezoneNotSupported - Create Managed Instance with non-default timezone not supported.\n\n * 400 ManagedInstanceIpAddressRangeLimit - Cannot create a Managed Instance as there are not enough available ip addresses in the selected subnet\n\n * 400 VnetDelegationNotAllowed - User tried to inject Managed Server to subnet which is delegated.\n\n * 400 SubnetHasResourcesOfDifferentType - User tried to create MI in subnet that has resources of different type.\n\n * 400 InvalidUsername - Supplied user name contains invalid characters.\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 400 InstancePoolNotEnoughCapacity - An instance pool does not have enough vCore capacity\n\n * 400 ServerNotFound - The requested server was not found.\n\n * 400 TokenTooLong - The provided token is too long.\n\n * 400 ManagedInstanceSloUpdateFailed - SLO '{0}' operation cannot succeed as the memory usage of '{1}' exceeds the quota.\n\n * 400 ManagedInstanceLocalStorageUpdateSloDisabled - Update SLO for managed instances with local storage is not supported yet.\n\n * 400 InvalidLoginName - The provided login name is invalid.\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 PasswordTooShort - The provided password is too short\n\n * 400 PasswordTooLong - The provided password is too long.\n\n * 400 PasswordNotComplex - The provided password is not complex enough.\n\n * 400 GatewayInvalidEdition - '{0}' is not a valid database edition in this version of SQL Server.\n\n * 400 InvalidSubnetResourceId - The provided subnet resource ID for the managed instance create or update is invalid.\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 InvalidLocation - An invalid location was specified.\n\n * 400 VnetInWrongRegion - Virtual network is in wrong region.\n\n * 400 InvalidServerName - Invalid server name specified.\n\n * 400 VnetAddressRangeError - Virtual network address range is invalid.\n\n * 400 VnetConfigIsNotAllowed - Virtual network configuration is not allowed.\n\n * 400 InvalidCollation - Invalid collation.\n\n * 400 InvalidIdentifier - The identifier contains NULL or an invalid unicode character.\n\n * 400 ManagedInstanceClassicVnetNotSupported - Managed Instance cannot be joined to a classic virtual network.\n\n * 400 AlterDbDeactivatedNotSupported - Database Operation failed for Server '{0}', Database '{1}' due to unexpected delay. Please try again.\n\n * 400 RegionDoesNotAllowProvisioning - The selected location is not accepting new Windows Azure SQL Database servers. This may change at a later time.\n\n * 400 VnetConfigHasNsg - User tried to inject Managed Server subnet with Network Security Groups.\n\n * 400 VnetConfigHasNoUdr - User tried to inject Managed Server subnet without default User Defined Route Table.\n\n * 400 VnetConfigHasInvalidUdr - User tried to inject Managed Server subnet with invalid User Defined Route Table.\n\n * 400 VnetConfigHasInvalidDns - User tried to inject Managed Server subnet with invalid custom DNS.\n\n * 400 VnetConfigHasServiceEndpoints - User tried to inject Managed Server subnet with service endpoints.\n\n * 400 VnetSubnetIsInUse - User tried to inject Managed Server subnet that is not empty.\n\n * 400 VnetSubnetIsLocked - User tried to inject Managed Server subnet that is in locked scope.\n\n * 400 VnetSubnetIsGateway - User tried to inject Managed Server subnet that is Gateway subnet.\n\n * 400 VnetSubnetIsUnknown - User tried to inject Managed Server subnet that does not exist.\n\n * 400 VnetSubnetConflictWithIntendedPolicy - User tried to inject Managed Server subnet that has a conflict with IntendedPolicy.\n\n * 400 NameAlreadyExists - The provided name already exists.\n\n * 400 ManagedInstanceInvalidEditionForSku - The specified edition {0} is not consistent with the specified SKU {1}.\n\n * 400 ProvisioningDisabled - Displays error message from resources operation authorizer as is, without changes\n\n * 400 ManagedInstanceInvalidLicenseType - The specified license type {0} is not valid.\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 VnetResourceNotFound - Resource not found: '{0}'.\n\n * 400 InvalidTimezone - Invalid timezone.\n\n * 400 UnableToResolveRemoteServer - The remote partner server name could not be resolved due to an invalid server name or DNS connectivity issues.\n\n * 400 InstanceCollationUpdateNotSupported - User cannot change instance collation on Managed Instance.\n\n * 400 CreateManagedInstanceWithNonDefaultCollationNotSupported - User can create a Managed Instance only with collation 'SQL_Latin1_General_CP1_CI_AS'.\n\n * 400 ManagedInstanceOperationInProgress - The operation could not be completed because {0} operation is in progress. Please wait for the operation in progress to complete and try again.\n\n * 400 ManagedInstanceExceedMaxAzureStorage - The operation could not be completed because total allocated storage size for General Purpose instance would exceed {0}. Please reduce the number of database files and retry operation.\n\n * 400 ManagedInstanceHasGeoReplica - The operation could not be completed because instance has configured geo replicated secondary instance.\n\n * 400 InvalidManagedServerDnsZonePartner - Invalid DNS zone partner resource id specified in properties.\n\n * 400 ManagementServiceFeatureDisabled - User attempted to use a feature which is disabled.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group 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 * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 404 ManagedInstanceNotInSubscriptionResourceGroup - Specified managed instance does not exist in the specified resource group and subscription.\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource with the name '{0}' does not exist. To continue, specify a valid resource name.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 405 InvalidVcoreValue - vCore value {0} is not valid. Please specify a valid vCore value.\n\n * 405 InvalidHardwareGenerationValue - HardwareGeneration {0} is not valid. Please specify a valid HardwareGeneration value.\n\n * 405 InvalidStorageSizeValue - \"Invalid storage size: {0} GB. Storage size must be specified between {1} and {2} gigabytes, in increments of {3} GB.\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 ConflictingServerOperation - An operation is currently in progress for the server.\n\n * 409 SubscriptionDisabled - Subscription is disabled.\n\n * 409 ServerAlreadyExists - Duplicate server name.\n\n * 409 ServerOverridePreconditionFailed - Failed to apply server override on category '{0}', because physical db or instance '{1}' in server '{2}' is currently not in 'Ready' or 'Deactivated' state.\n\n * 409 ServerDisabled - Server is disabled.\n\n * 409 ManagedInstanceIsBusy - The server '{0}' is currently busy. Please wait a few minutes before trying again.\n\n * 409 ServerQuotaExceeded - Server cannot be added to a subscription because it will exceed quota.\n\n * 409 ConflictingManagedInstanceOperation - An operation is currently in progress for the managed instance.\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 * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription.\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 * 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 * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation.\n\n * 500 GatewayInternalServerError - The server encountered an unexpected exception.\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 * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout." }, "202": { "description": "Accepted" @@ -230,7 +230,7 @@ } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 HkCannotSwitchToInactive - The database cannot proceed with pricing-tier update as it has memory-optimized objects. Please drop such objects and try again.\n\n * 400 ManagedInstanceInvalidStorageSizeLessThenCurrentSizeUsed - Invalid storage size: Storage size limit ({0} GB) is less that current storage used ({1} GB). Please specify higher storage size limit.\n\n * 400 InstanceTimezoneUpdateNotSupported - Instance timezone update not supported.\n\n * 400 CreateManagedInstanceWithNonDefaultTimezoneNotSupported - Create Managed Instance with non-default timezone not supported.\n\n * 400 ManagedInstanceIpAddressRangeLimit - Cannot create a Managed Instance as there are not enough available ip addresses in the selected subnet\n\n * 400 VnetDelegationNotAllowed - User tried to inject Managed Server to subnet which is delegated.\n\n * 400 InvalidUsername - Supplied user name contains invalid characters.\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 400 InstancePoolNotEnoughCapacity - An instance pool does not have enough vCore capacity\n\n * 400 ServerNotFound - The requested server was not found.\n\n * 400 TokenTooLong - The provided token is too long.\n\n * 400 ManagedInstanceSloUpdateFailed - SLO '{0}' operation cannot succeed as the memory usage of '{1}' exceeds the quota.\n\n * 400 ManagedInstanceLocalStorageUpdateSloDisabled - Update SLO for managed instances with local storage is not supported yet.\n\n * 400 InvalidLoginName - The provided login name is invalid.\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 PasswordTooShort - The provided password is too short\n\n * 400 PasswordTooLong - The provided password is too long.\n\n * 400 PasswordNotComplex - The provided password is not complex enough.\n\n * 400 GatewayInvalidEdition - '{0}' is not a valid database edition in this version of SQL Server.\n\n * 400 InvalidSubnetResourceId - The provided subnet resource ID for the managed instance create or update is invalid.\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 InvalidLocation - An invalid location was specified.\n\n * 400 VnetInWrongRegion - Virtual network is in wrong region.\n\n * 400 InvalidServerName - Invalid server name specified.\n\n * 400 VnetAddressRangeError - Virtual network address range is invalid.\n\n * 400 VnetConfigIsNotAllowed - Virtual network configuration is not allowed.\n\n * 400 InvalidCollation - Invalid collation.\n\n * 400 InvalidIdentifier - The identifier contains NULL or an invalid unicode character.\n\n * 400 ManagedInstanceClassicVnetNotSupported - Managed Instance cannot be joined to a classic virtual network.\n\n * 400 AlterDbDeactivatedNotSupported - Database Operation failed for Server '{0}', Database '{1}' due to unexpected delay. Please try again.\n\n * 400 RegionDoesNotAllowProvisioning - The selected location is not accepting new Windows Azure SQL Database servers. This may change at a later time.\n\n * 400 VnetConfigHasNsg - User tried to inject Managed Server subnet with Network Security Groups.\n\n * 400 VnetConfigHasNoUdr - User tried to inject Managed Server subnet without default User Defined Route Table.\n\n * 400 VnetConfigHasInvalidUdr - User tried to inject Managed Server subnet with invalid User Defined Route Table.\n\n * 400 VnetConfigHasInvalidDns - User tried to inject Managed Server subnet with invalid custom DNS.\n\n * 400 VnetConfigHasServiceEndpoints - User tried to inject Managed Server subnet with service endpoints.\n\n * 400 VnetSubnetIsInUse - User tried to inject Managed Server subnet that is not empty.\n\n * 400 VnetSubnetIsLocked - User tried to inject Managed Server subnet that is in locked scope.\n\n * 400 VnetSubnetIsGateway - User tried to inject Managed Server subnet that is Gateway subnet.\n\n * 400 VnetSubnetIsUnknown - User tried to inject Managed Server subnet that does not exist.\n\n * 400 VnetSubnetConflictWithIntendedPolicy - User tried to inject Managed Server subnet that has a conflict with IntendedPolicy.\n\n * 400 NameAlreadyExists - The provided name already exists.\n\n * 400 ManagedInstanceInvalidEditionForSku - The specified edition {0} is not consistent with the specified SKU {1}.\n\n * 400 ProvisioningDisabled - Displays error message from resources operation authorizer as is, without changes\n\n * 400 ManagedInstanceInvalidLicenseType - The specified license type {0} is not valid.\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 VnetResourceNotFound - Resource not found: '{0}'.\n\n * 400 InvalidTimezone - Invalid timezone.\n\n * 400 UnableToResolveRemoteServer - The remote partner server name could not be resolved due to an invalid server name or DNS connectivity issues.\n\n * 400 InstanceCollationUpdateNotSupported - User cannot change instance collation on Managed Instance.\n\n * 400 CreateManagedInstanceWithNonDefaultCollationNotSupported - User can create a Managed Instance only with collation 'SQL_Latin1_General_CP1_CI_AS'.\n\n * 400 ManagedInstanceOperationInProgress - The operation could not be completed because {0} operation is in progress. Please wait for the operation in progress to complete and try again.\n\n * 400 ManagedInstanceExceedMaxAzureStorage - The operation could not be completed because total allocated storage size for General Purpose instance would exceed {0}. Please reduce the number of database files and retry operation.\n\n * 400 ManagedInstanceHasGeoReplica - The operation could not be completed because instance has configured geo replicated secondary instance.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group 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 * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 404 ManagedInstanceNotInSubscriptionResourceGroup - Specified managed instance does not exist in the specified resource group and subscription.\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource with the name '{0}' does not exist. To continue, specify a valid resource name.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 405 InvalidVcoreValue - vCore value {0} is not valid. Please specify a valid vCore value.\n\n * 405 InvalidHardwareGenerationValue - HardwareGeneration {0} is not valid. Please specify a valid HardwareGeneration value.\n\n * 405 InvalidStorageSizeValue - \"Invalid storage size: {0} GB. Storage size must be specified between {1} and {2} gigabytes, in increments of {3} GB.\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 ConflictingServerOperation - An operation is currently in progress for the server.\n\n * 409 SubscriptionDisabled - Subscription is disabled.\n\n * 409 ServerAlreadyExists - Duplicate server name.\n\n * 409 ServerOverridePreconditionFailed - Failed to apply server override on category '{0}', because physical db or instance '{1}' in server '{2}' is currently not in 'Ready' or 'Deactivated' state.\n\n * 409 ServerDisabled - Server is disabled.\n\n * 409 ManagedInstanceIsBusy - The server '{0}' is currently busy. Please wait a few minutes before trying again.\n\n * 409 ServerQuotaExceeded - Server cannot be added to a subscription because it will exceed quota.\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 * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription.\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 * 500 GatewayInternalServerError - The server encountered an unexpected exception.\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.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout." + "description": "*** Error Responses: ***\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 HkCannotSwitchToInactive - The database cannot proceed with pricing-tier update as it has memory-optimized objects. Please drop such objects and try again.\n\n * 400 ManagedInstanceInvalidStorageSizeLessThenCurrentSizeUsed - Invalid storage size: Storage size limit ({0} GB) is less that current storage used ({1} GB). Please specify higher storage size limit.\n\n * 400 InstanceTimezoneUpdateNotSupported - Instance timezone update not supported.\n\n * 400 CreateManagedInstanceWithNonDefaultTimezoneNotSupported - Create Managed Instance with non-default timezone not supported.\n\n * 400 ManagedInstanceIpAddressRangeLimit - Cannot create a Managed Instance as there are not enough available ip addresses in the selected subnet\n\n * 400 VnetDelegationNotAllowed - User tried to inject Managed Server to subnet which is delegated.\n\n * 400 SubnetHasResourcesOfDifferentType - User tried to create MI in subnet that has resources of different type.\n\n * 400 InvalidUsername - Supplied user name contains invalid characters.\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 400 InstancePoolNotEnoughCapacity - An instance pool does not have enough vCore capacity\n\n * 400 ServerNotFound - The requested server was not found.\n\n * 400 TokenTooLong - The provided token is too long.\n\n * 400 ManagedInstanceSloUpdateFailed - SLO '{0}' operation cannot succeed as the memory usage of '{1}' exceeds the quota.\n\n * 400 ManagedInstanceLocalStorageUpdateSloDisabled - Update SLO for managed instances with local storage is not supported yet.\n\n * 400 InvalidLoginName - The provided login name is invalid.\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 PasswordTooShort - The provided password is too short\n\n * 400 PasswordTooLong - The provided password is too long.\n\n * 400 PasswordNotComplex - The provided password is not complex enough.\n\n * 400 GatewayInvalidEdition - '{0}' is not a valid database edition in this version of SQL Server.\n\n * 400 InvalidSubnetResourceId - The provided subnet resource ID for the managed instance create or update is invalid.\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 InvalidLocation - An invalid location was specified.\n\n * 400 VnetInWrongRegion - Virtual network is in wrong region.\n\n * 400 InvalidServerName - Invalid server name specified.\n\n * 400 VnetAddressRangeError - Virtual network address range is invalid.\n\n * 400 VnetConfigIsNotAllowed - Virtual network configuration is not allowed.\n\n * 400 InvalidCollation - Invalid collation.\n\n * 400 InvalidIdentifier - The identifier contains NULL or an invalid unicode character.\n\n * 400 ManagedInstanceClassicVnetNotSupported - Managed Instance cannot be joined to a classic virtual network.\n\n * 400 AlterDbDeactivatedNotSupported - Database Operation failed for Server '{0}', Database '{1}' due to unexpected delay. Please try again.\n\n * 400 RegionDoesNotAllowProvisioning - The selected location is not accepting new Windows Azure SQL Database servers. This may change at a later time.\n\n * 400 VnetConfigHasNsg - User tried to inject Managed Server subnet with Network Security Groups.\n\n * 400 VnetConfigHasNoUdr - User tried to inject Managed Server subnet without default User Defined Route Table.\n\n * 400 VnetConfigHasInvalidUdr - User tried to inject Managed Server subnet with invalid User Defined Route Table.\n\n * 400 VnetConfigHasInvalidDns - User tried to inject Managed Server subnet with invalid custom DNS.\n\n * 400 VnetConfigHasServiceEndpoints - User tried to inject Managed Server subnet with service endpoints.\n\n * 400 VnetSubnetIsInUse - User tried to inject Managed Server subnet that is not empty.\n\n * 400 VnetSubnetIsLocked - User tried to inject Managed Server subnet that is in locked scope.\n\n * 400 VnetSubnetIsGateway - User tried to inject Managed Server subnet that is Gateway subnet.\n\n * 400 VnetSubnetIsUnknown - User tried to inject Managed Server subnet that does not exist.\n\n * 400 VnetSubnetConflictWithIntendedPolicy - User tried to inject Managed Server subnet that has a conflict with IntendedPolicy.\n\n * 400 NameAlreadyExists - The provided name already exists.\n\n * 400 ManagedInstanceInvalidEditionForSku - The specified edition {0} is not consistent with the specified SKU {1}.\n\n * 400 ProvisioningDisabled - Displays error message from resources operation authorizer as is, without changes\n\n * 400 ManagedInstanceInvalidLicenseType - The specified license type {0} is not valid.\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 VnetResourceNotFound - Resource not found: '{0}'.\n\n * 400 InvalidTimezone - Invalid timezone.\n\n * 400 UnableToResolveRemoteServer - The remote partner server name could not be resolved due to an invalid server name or DNS connectivity issues.\n\n * 400 InstanceCollationUpdateNotSupported - User cannot change instance collation on Managed Instance.\n\n * 400 CreateManagedInstanceWithNonDefaultCollationNotSupported - User can create a Managed Instance only with collation 'SQL_Latin1_General_CP1_CI_AS'.\n\n * 400 ManagedInstanceOperationInProgress - The operation could not be completed because {0} operation is in progress. Please wait for the operation in progress to complete and try again.\n\n * 400 ManagedInstanceExceedMaxAzureStorage - The operation could not be completed because total allocated storage size for General Purpose instance would exceed {0}. Please reduce the number of database files and retry operation.\n\n * 400 ManagedInstanceHasGeoReplica - The operation could not be completed because instance has configured geo replicated secondary instance.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group 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 * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 404 ManagedInstanceNotInSubscriptionResourceGroup - Specified managed instance does not exist in the specified resource group and subscription.\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource with the name '{0}' does not exist. To continue, specify a valid resource name.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 405 InvalidVcoreValue - vCore value {0} is not valid. Please specify a valid vCore value.\n\n * 405 InvalidHardwareGenerationValue - HardwareGeneration {0} is not valid. Please specify a valid HardwareGeneration value.\n\n * 405 InvalidStorageSizeValue - \"Invalid storage size: {0} GB. Storage size must be specified between {1} and {2} gigabytes, in increments of {3} GB.\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 ConflictingServerOperation - An operation is currently in progress for the server.\n\n * 409 SubscriptionDisabled - Subscription is disabled.\n\n * 409 ServerAlreadyExists - Duplicate server name.\n\n * 409 ServerOverridePreconditionFailed - Failed to apply server override on category '{0}', because physical db or instance '{1}' in server '{2}' is currently not in 'Ready' or 'Deactivated' state.\n\n * 409 ServerDisabled - Server is disabled.\n\n * 409 ManagedInstanceIsBusy - The server '{0}' is currently busy. Please wait a few minutes before trying again.\n\n * 409 ServerQuotaExceeded - Server cannot be added to a subscription because it will exceed quota.\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 * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription.\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 * 500 GatewayInternalServerError - The server encountered an unexpected exception.\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.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout." }, "202": { "description": "Accepted" @@ -247,52 +247,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances": { - "get": { - "tags": [ - "ManagedInstances" - ], - "description": "Gets a list of all managed instances in an instance pool.", - "operationId": "ManagedInstances_ListByInstancePool", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "name": "instancePoolName", - "in": "path", - "description": "The instance pool name.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of managed instances.", - "schema": { - "$ref": "#/definitions/ManagedInstanceListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 404 InstancePoolNotFound - An instance pool cannot be found" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List managed instances by instance pool": { - "$ref": "./examples/ManagedInstanceListByInstancePool.json" - } - } - } - }, "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances": { "get": { "tags": [ diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/blobAuditing.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/blobAuditing.json index 2dccfe7db6d6..60968e74ba8e 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/blobAuditing.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/blobAuditing.json @@ -489,7 +489,7 @@ "type": "boolean" }, "isAzureMonitorTargetEnabled": { - "description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n", + "description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n", "type": "boolean" } } @@ -567,7 +567,7 @@ "type": "boolean" }, "isAzureMonitorTargetEnabled": { - "description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n", + "description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n", "type": "boolean" } } @@ -641,7 +641,7 @@ "type": "boolean" }, "isAzureMonitorTargetEnabled": { - "description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n", + "description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n", "type": "boolean" } } @@ -715,7 +715,7 @@ "type": "boolean" }, "isAzureMonitorTargetEnabled": { - "description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n", + "description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n", "type": "boolean" } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/CancelDatabaseOperation.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/CancelDatabaseOperation.json index 0ed12e4708b8..03fbd62759f4 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/CancelDatabaseOperation.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/CancelDatabaseOperation.json @@ -8,8 +8,6 @@ "api-version": "2017-03-01-preview" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/DatabaseAzureMonitorAuditingCreateMin.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/DatabaseAzureMonitorAuditingCreateMin.json index ae0dcecf831f..d1ba099b38ae 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/DatabaseAzureMonitorAuditingCreateMin.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/DatabaseAzureMonitorAuditingCreateMin.json @@ -9,7 +9,7 @@ "parameters": { "properties": { "state": "Enabled", - "IsAzureMonitorTargetEnabled": true + "isAzureMonitorTargetEnabled": true } } }, diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/DatabaseRestorePointsPost.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/DatabaseRestorePointsPost.json index 76b88edfcafa..5f1fbd7baf6a 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/DatabaseRestorePointsPost.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/DatabaseRestorePointsPost.json @@ -23,6 +23,7 @@ "restorePointLabel": "mylabel" } } - } + }, + "202": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/LongTermRetentionBackupDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/LongTermRetentionBackupDelete.json index 17bc649b28ba..0796249b60b7 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/LongTermRetentionBackupDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/LongTermRetentionBackupDelete.json @@ -9,8 +9,6 @@ }, "responses": { "200": {}, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseDelete.json index 03792a5bc52b..cab3ff43e7ab 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseDelete.json @@ -7,12 +7,8 @@ "api-version": "2017-03-01-preview" }, "responses": { - "200": { - "body": "" - }, + "200": {}, "202": {}, - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseSecurityAlertCreateMax.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseSecurityAlertCreateMax.json index fa32fce558f9..b15050d63f9f 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseSecurityAlertCreateMax.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseSecurityAlertCreateMax.json @@ -9,7 +9,7 @@ "databaseSecurityAlertPolicyResource": { "properties": { "state": "Enabled", - "emailAccountAdmins": "true", + "emailAccountAdmins": true, "emailAddresses": [ "test@microsoft.com", "user@microsoft.com" @@ -33,7 +33,7 @@ "kind": "V12", "properties": { "state": "Enabled", - "emailAccountAdmins": "true", + "emailAccountAdmins": true, "emailAddresses": [ "test@microsoft.com", "user@microsoft.com" @@ -56,7 +56,7 @@ "kind": "V12", "properties": { "state": "Enabled", - "emailAccountAdmins": "true", + "emailAccountAdmins": true, "emailAddresses": [ "test@microsoft.com", "user@microsoft.com" diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseSecurityAlertCreateMin.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseSecurityAlertCreateMin.json index ac22edd70215..3ab86124c2af 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseSecurityAlertCreateMin.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseSecurityAlertCreateMin.json @@ -21,7 +21,7 @@ "kind": "V12", "properties": { "state": "Enabled", - "emailAccountAdmins": "true", + "emailAccountAdmins": true, "emailAddresses": [], "disabledAlerts": [], "retentionDays": 0, @@ -38,7 +38,7 @@ "kind": "V12", "properties": { "state": "Enabled", - "emailAccountAdmins": "true", + "emailAccountAdmins": true, "emailAddresses": [], "disabledAlerts": [], "retentionDays": 0, diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseSecurityAlertListByDatabase.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseSecurityAlertListByDatabase.json index bd8d7b310efe..4d5445cc5644 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseSecurityAlertListByDatabase.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedDatabaseSecurityAlertListByDatabase.json @@ -18,7 +18,7 @@ "kind": "V12", "properties": { "state": "Enabled", - "emailAccountAdmins": "true", + "emailAccountAdmins": true, "emailAddresses": [ "test@microsoft.com", "user@microsoft.com" diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedInstanceAdministratorDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedInstanceAdministratorDelete.json index c558dc3d001e..7a9e5e9fd82e 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedInstanceAdministratorDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ManagedInstanceAdministratorDelete.json @@ -7,9 +7,7 @@ "api-version": "2017-03-01-preview" }, "responses": { - "200": { - "body": "" - }, + "200": {}, "202": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupDelete.json new file mode 100644 index 000000000000..36b1d48e4f56 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testResourceGroup", + "locationName": "japaneast", + "longTermRetentionServerName": "testserver", + "longTermRetentionDatabaseName": "testDatabase", + "backupName": "55555555-6666-7777-8888-999999999999;131637960820000000", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupGet.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupGet.json new file mode 100644 index 000000000000..5cca10da07bc --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupGet.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testResourceGroup", + "locationName": "japaneast", + "longTermRetentionServerName": "testserver", + "longTermRetentionDatabaseName": "testDatabase", + "backupName": "55555555-6666-7777-8888-999999999999;131637960820000000", + "api-version": "2017-03-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase/longTermRetentionBackups/2017-03-10T08:00:00.000Z;55555555-6666-7777-8888-999999999999;2017-09-06T08:00:00.000Z", + "name": "2017-03-10T08:00:00.000Z;55555555-6666-7777-8888-999999999999;131637960820000000", + "type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups", + "properties": { + "serverName": "testserver", + "serverCreateTime": "2017-03-10T08:00:00.000Z", + "databaseName": "testDatabase", + "databaseDeletionTime": null, + "backupTime": "2017-09-06T08:00:00.000Z" + } + } + } + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupListByDatabase.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupListByDatabase.json new file mode 100644 index 000000000000..8131bb079bbd --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupListByDatabase.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testResourceGroup", + "locationName": "japaneast", + "longTermRetentionServerName": "testserver", + "longTermRetentionDatabaseName": "testDatabase", + "api-version": "2017-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131637960820000000", + "name": "55555555-6666-7777-8888-999999999999;131637960820000000", + "type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups", + "properties": { + "serverName": "testserver", + "serverCreateTime": "2017-03-10T08:00:00.000Z", + "databaseName": "testDatabase", + "databaseDeletionTime": null, + "backupTime": "2017-08-23T08:00:00.000Z" + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131657960820000000", + "name": "55555555-6666-7777-8888-999999999999;131657960820000000", + "type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups", + "properties": { + "serverName": "testserver", + "serverCreateTime": "2017-03-10T08:00:00.000Z", + "databaseName": "testDatabase", + "databaseDeletionTime": null, + "backupTime": "2017-08-30T08:00:00.000Z" + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131677960820000000", + "name": "55555555-6666-7777-8888-999999999999;131677960820000000", + "type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups", + "properties": { + "serverName": "testserver", + "serverCreateTime": "2017-03-10T08:00:00.000Z", + "databaseName": "testDatabase", + "databaseDeletionTime": "2017-09-07T08:00:00.000Z", + "backupTime": "2017-09-06T08:00:00.000Z" + } + } + ] + } + } + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupListByLocation.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupListByLocation.json new file mode 100644 index 000000000000..5ccb22c1371b --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupListByLocation.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testResourceGroup", + "locationName": "japaneast", + "api-version": "2017-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver1/longTermRetentionDatabases/testDatabase1/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131637960820000000", + "name": "55555555-6666-7777-8888-999999999999;2017-08-23T08:00:00.000Z", + "type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups", + "properties": { + "serverName": "testserver1", + "serverCreateTime": "2017-03-10T08:00:00.000Z", + "databaseName": "testDatabase1", + "databaseDeletionTime": null, + "backupTime": "2017-08-23T08:00:00.000Z" + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver2/longTermRetentionDatabases/testDatabase2/longTermRetentionBackups/12341234-1234-1234-1234-123123123123;131657960820000000", + "name": "12341234-1234-1234-1234-123123123123;2017-08-30T08:00:00.000Z", + "type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups", + "properties": { + "serverName": "testserver2", + "serverCreateTime": "2017-04-10T08:00:00.000Z", + "databaseName": "testDatabase2", + "databaseDeletionTime": null, + "backupTime": "2017-08-30T08:00:00.000Z" + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver3/longTermRetentionDatabases/testDatabase3/longTermRetentionBackups/43214321-4321-4321-4321-321321321321;131677960820000000", + "name": "43214321-4321-4321-4321-321321321321;2017-09-06T08:00:00.000Z", + "type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups", + "properties": { + "serverName": "testserver3", + "serverCreateTime": "2017-05-10T08:00:00.000Z", + "databaseName": "testDatabase3", + "databaseDeletionTime": null, + "backupTime": "2017-09-06T08:00:00.000Z" + } + } + ] + } + } + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupListByServer.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupListByServer.json new file mode 100644 index 000000000000..d61b1d56b62b --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupListByServer.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testResourceGroup", + "locationName": "japaneast", + "longTermRetentionServerName": "testserver", + "api-version": "2017-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase1/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131637960820000000", + "name": "55555555-6666-7777-8888-999999999999;131637960820000000", + "type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups", + "properties": { + "serverName": "testserver", + "serverCreateTime": "2017-03-10T08:00:00.000Z", + "databaseName": "testDatabase1", + "databaseDeletionTime": null, + "backupTime": "2017-08-23T08:00:00.000Z" + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase2/longTermRetentionBackups/12341234-1234-1234-1234-123123123123;131657960820000000", + "name": "12341234-1234-1234-1234-123123123123;131657960820000000", + "type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups", + "properties": { + "serverName": "testserver", + "serverCreateTime": "2017-03-10T08:00:00.000Z", + "databaseName": "testDatabase2", + "databaseDeletionTime": null, + "backupTime": "2017-08-30T08:00:00.000Z" + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase3/longTermRetentionBackups/43214321-4321-4321-4321-321321321321;131677960820000000", + "name": "43214321-4321-4321-4321-321321321321;131667960820000000", + "type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups", + "properties": { + "serverName": "testserver", + "serverCreateTime": "2017-03-10T08:00:00.000Z", + "databaseName": "testDatabase3", + "databaseDeletionTime": null, + "backupTime": "2017-09-06T08:00:00.000Z" + } + } + ] + } + } + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ServerDnsAliasDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ServerDnsAliasDelete.json index 7cc5e64fb2d5..b1f67e0ed018 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ServerDnsAliasDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/ServerDnsAliasDelete.json @@ -7,14 +7,8 @@ "api-version": "2017-03-01-preview" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/longTermRetention.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/longTermRetention.json index 088991be2557..a46331e490ce 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/longTermRetention.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/longTermRetention.json @@ -16,6 +16,322 @@ "application/json" ], "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}": { + "get": { + "tags": [ + "LongTermRetentionBackups" + ], + "description": "Gets a long term retention backup.", + "operationId": "LongTermRetentionBackups_GetByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "locationName", + "in": "path", + "description": "The location of the database.", + "required": true, + "type": "string" + }, + { + "name": "longTermRetentionServerName", + "in": "path", + "description": "The name of the server", + "required": true, + "type": "string" + }, + { + "name": "longTermRetentionDatabaseName", + "in": "path", + "description": "The name of the database", + "required": true, + "type": "string" + }, + { + "name": "backupName", + "in": "path", + "description": "The backup name.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the backup.", + "schema": { + "$ref": "#/definitions/LongTermRetentionBackup" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidLongTermRetentionBackupId - Invalid long term retention backup identifier.\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": { + "Get the long term retention backup.": { + "$ref": "./examples/ResourceGroupBasedLongTermRetentionBackupGet.json" + } + } + }, + "delete": { + "tags": [ + "LongTermRetentionBackups" + ], + "description": "Deletes a long term retention backup.", + "operationId": "LongTermRetentionBackups_DeleteByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "locationName", + "in": "path", + "description": "The location of the database", + "required": true, + "type": "string" + }, + { + "name": "longTermRetentionServerName", + "in": "path", + "description": "The name of the server", + "required": true, + "type": "string" + }, + { + "name": "longTermRetentionDatabaseName", + "in": "path", + "description": "The name of the database", + "required": true, + "type": "string" + }, + { + "name": "backupName", + "in": "path", + "description": "The backup name.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the backup." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidLongTermRetentionBackupId - Invalid long term retention backup identifier.\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 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete the long term retention backup.": { + "$ref": "./examples/ResourceGroupBasedLongTermRetentionBackupDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups": { + "get": { + "tags": [ + "LongTermRetentionBackups" + ], + "description": "Lists all long term retention backups for a database.", + "operationId": "LongTermRetentionBackups_ListByResourceGroupDatabase", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "locationName", + "in": "path", + "description": "The location of the database", + "required": true, + "type": "string" + }, + { + "name": "longTermRetentionServerName", + "in": "path", + "description": "The name of the server", + "required": true, + "type": "string" + }, + { + "name": "longTermRetentionDatabaseName", + "in": "path", + "description": "The name of the database", + "required": true, + "type": "string" + }, + { + "name": "onlyLatestPerDatabase", + "in": "query", + "description": "Whether or not to only get the latest backup for each database.", + "required": false, + "type": "boolean" + }, + { + "$ref": "#/parameters/LongTermRetentionDatabaseStateParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of backups.", + "schema": { + "$ref": "#/definitions/LongTermRetentionBackupListResult" + } + }, + "default": { + "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": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get all long term retention backups under the database.": { + "$ref": "./examples/ResourceGroupBasedLongTermRetentionBackupListByDatabase.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups": { + "get": { + "tags": [ + "LongTermRetentionBackups" + ], + "description": "Lists the long term retention backups for a given location.", + "operationId": "LongTermRetentionBackups_ListByResourceGroupLocation", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "locationName", + "in": "path", + "description": "The location of the database", + "required": true, + "type": "string" + }, + { + "name": "onlyLatestPerDatabase", + "in": "query", + "description": "Whether or not to only get the latest backup for each database.", + "required": false, + "type": "boolean" + }, + { + "$ref": "#/parameters/LongTermRetentionDatabaseStateParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of backups.", + "schema": { + "$ref": "#/definitions/LongTermRetentionBackupListResult" + } + }, + "default": { + "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": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get all long term retention backups under the location.": { + "$ref": "./examples/ResourceGroupBasedLongTermRetentionBackupListByLocation.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups": { + "get": { + "tags": [ + "LongTermRetentionBackups" + ], + "description": "Lists the long term retention backups for a given server.", + "operationId": "LongTermRetentionBackups_ListByResourceGroupServer", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "locationName", + "in": "path", + "description": "The location of the database", + "required": true, + "type": "string" + }, + { + "name": "longTermRetentionServerName", + "in": "path", + "description": "The name of the server", + "required": true, + "type": "string" + }, + { + "name": "onlyLatestPerDatabase", + "in": "query", + "description": "Whether or not to only get the latest backup for each database.", + "required": false, + "type": "boolean" + }, + { + "$ref": "#/parameters/LongTermRetentionDatabaseStateParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of backups.", + "schema": { + "$ref": "#/definitions/LongTermRetentionBackupListResult" + } + }, + "default": { + "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": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get all long term retention backups under the server.": { + "$ref": "./examples/ResourceGroupBasedLongTermRetentionBackupListByServer.json" + } + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}": { "get": { "tags": [ @@ -67,7 +383,7 @@ } }, "default": { - "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." + "description": "*** Error Responses: ***\n\n * 400 InvalidLongTermRetentionBackupId - Invalid long term retention backup identifier.\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": { @@ -123,7 +439,7 @@ "description": "Successfully deleted the backup." }, "default": { - "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found" + "description": "*** Error Responses: ***\n\n * 400 InvalidLongTermRetentionBackupId - Invalid long term retention backup identifier.\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" }, "202": { "description": "Accepted" @@ -191,7 +507,7 @@ } }, "default": { - "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server 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" } }, "x-ms-pageable": { @@ -244,7 +560,7 @@ } }, "default": { - "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server 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" } }, "x-ms-pageable": { @@ -304,7 +620,7 @@ } }, "default": { - "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server 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" } }, "x-ms-pageable": { diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/CancelDatabaseOperation.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/CancelDatabaseOperation.json index 0ed12e4708b8..03fbd62759f4 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/CancelDatabaseOperation.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/CancelDatabaseOperation.json @@ -8,8 +8,6 @@ "api-version": "2017-03-01-preview" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/CancelElasticPoolOperation.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/CancelElasticPoolOperation.json index 02c93e53a1de..ca8c0a6b082a 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/CancelElasticPoolOperation.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/CancelElasticPoolOperation.json @@ -8,8 +8,6 @@ "api-version": "2017-10-01-preview" }, "responses": { - "200": { - "body": "" - } + "200": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/ElasticPoolDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/ElasticPoolDelete.json index 43158545cdee..8fdb5334f303 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/ElasticPoolDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/ElasticPoolDelete.json @@ -7,12 +7,8 @@ "api-version": "2017-10-01" }, "responses": { - "200": { - "body": "" - }, + "200": {}, "202": {}, - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/InstanceFailoverGroupDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/InstanceFailoverGroupDelete.json index 718773a895de..512f0a1eba69 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/InstanceFailoverGroupDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/InstanceFailoverGroupDelete.json @@ -7,14 +7,8 @@ "api-version": "2017-10-01-preview" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/ManagedInstanceKeyDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/ManagedInstanceKeyDelete.json index a748fd8b799d..6ae6305cc2c2 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/ManagedInstanceKeyDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/ManagedInstanceKeyDelete.json @@ -7,12 +7,8 @@ "api-version": "2017-10-01-preview" }, "responses": { - "200": { - "body": "" - }, + "200": {}, "202": {}, - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/ManagedInstanceTdeCertificate.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/ManagedInstanceTdeCertificate.json index daa4452eb004..06d9053ecf70 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/ManagedInstanceTdeCertificate.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/ManagedInstanceTdeCertificate.json @@ -7,7 +7,7 @@ "parameters": { "properties": { "privateBlob": "MIIJ+QIBAzCCCbUGCSqGSIb3DQEHAaCCCaYEggmiMIIJnjCCBhcGCSqGSIb3DQEHAaCCBggEggYEMIIGADCCBfwGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAgUeBd7F2KZUwICB9AEggTYSRi88/Xf0EZ9smyYDCr+jHa7a/510s19/5wjqGbLTT/CYBu2qSOhj+g9sNvjj5oWAcluaZ4XCl/oJhXlB+9q9ZYSC6pPhma7/Il+/zlZm8ZUMfgnUefpKXGj+Ilydghya2DOA0PONDGbqIJGBYC0JgtiL7WcYyA+LEiO0vXc2fZ+ccjQsHM+ePFOm6rTJ1oqE3quRC5Ls2Bv22PCmF+GWkWxqH1L5x8wR2tYfecEsx4sKMj318novQqBlJckOUPDrTT2ic6izFnDWS+zbGezSCeRkt2vjCUVDg7Aqm2bkmLVn+arA3tDZ/DBxgTwwt8prpAznDYG07WRxXMUk8Uqzmcds85jSMLSBOoRaS7GwIPprx0QwyYXd8H/go2vafuGCydRk8mA0bGLXjYWuYHAtztlGrE71a7ILqHY4XankohSAY4YF9Fc1mJcdtsuICs5vNosw1lf0VK5BR4ONCkiGFdYEKUpaUrzKpQiw3zteBN8RQs/ADKGWzaWERrkptf0pLH3/QnZvu9xwwnNWneygByPy7OVYrvgjD27x7Y/C24GyQweh75OTQN3fAvUj7IqeTVyWZGZq32AY/uUXYwASBpLbNUtUBfJ7bgyvVSZlPvcFUwDHJC1P+fSP8Vfcc9W3ec9HqVheXio7gYBEg9hZrOZwiZorl8HZJsEj5NxGccBme6hEVQRZfar5kFDHor/zmKohEAJVw8lVLkgmEuz8aqQUDSWVAcLbkfqygK/NxsR2CaC6xWroagQSRwpF8YbvqYJtAQvdkUXY9Ll4LSRcxKrWMZHgI+1Z22pyNtpy/kXLADche5CF3AVbHtzNNgn9L4GVuCW1Lqufu3U2+DEG+u53u1vraf45RS1y0IyLjTGC+8j0OTxcgUU6FrGgFny0m676v8potPrfyHvuOO511aOTe8UPBfnYyx0XHJPn8RaYGq0vMOBpFyfJkXtAnbRMgXjxxiO91yXTI2hbdVlAmOER1u8QemtF5PoKwZzaAjGBC5S0ARNtxZcWInGciGgtWJVVcyU6nJv3pa2T8jNvtcp8X7j+Il6j6Sju02L/f+S9MvAoGfgG6C5cInNIBEt7+mpYYV/6Mi9Nnj+8/Cq3eAMdTTo7XIzbFpeInzpVN2lAxPockRoAVj+odYO3CIBnzJ7mcA7JqtNk76vaWKasocMk9YS0Z+43o/Z5pZPwXvUv++UUv5fGRcsnIHEeQc+XJlSqRVoaLDo3mNRV6jp5GzJW2BZx3KkuLbohcmfBdr6c8ehGvHXhPm4k2jq9UNYvG9Gy58+1GqdhIYWbRc0Haid8H7UvvdkjA+Yul2rLj4fSTJ6yJ4f6xFAsFY7wIJthpik+dQO9lqPglo9DY30gEOXs3miuJmdmFtBoYlzxti4JBGwxXPwP3rtu6rY1JEOFsh1WmSEGE6Df2l9wtUQ0WAAD6bWgCxMiiRRv7TegxSeMtGn5QKuPC5lFuvzZvtJy1rR8WQwT7lVdHz32xLP2Rs4dayQPh08x3GsuI54d2kti2rcaSltGLRAOuODWc8KjYsPS6Ku4aN2NoQB5H9TEbHy2fsUNpNPMbCY54lH5bkgJtO4WmulnAHEApZG07u8G+Kk3a15npXemWgUW3N9gGtJ2XmieendXqS3RK1ZUYDsnAWW2jCZkjGB6jANBgkrBgEEAYI3EQIxADATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IAGEAYgBjAGYAOABhADUAOQAtAGYAZQAzADIALQA0AGIAZgA0AC0AYQBiAGMAZgAtADkAOAA3AGIANwBmADgANwAzADEANgBjMGsGCSsGAQQBgjcRATFeHlwATQBpAGMAcgBvAHMAbwBmAHQAIABFAG4AaABhAG4AYwBlAGQAIABDAHIAeQBwAHQAbwBnAHIAYQBwAGgAaQBjACAAUAByAG8AdgBpAGQAZQByACAAdgAxAC4AMDCCA38GCSqGSIb3DQEHBqCCA3AwggNsAgEAMIIDZQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQMwDgQIbQcNiyMGeL4CAgfQgIIDOPSSP6SqJGYsXCPWCMQU0TqdqT55fauuadduHaAlQpyN0MVYdu9QguLqMaJjxWa8Coy3K7LAOcqJ4S8FWV2SrpTuNHPv7vrtZfYhltGl+vW8rIrogeGTV4T/45oc5605HSiyItOWX8vHYKnAJkRMW4ICZXgY3dZVb+fr6yPIRFvMywqzwkViVOJIKjZN2lsAQ0xlLU0Fu/va9uxADwI2ZUKfo+6nX6bITkLvUSJoNCvZ5e7UITasxC4ZauHdMZch38N7BPH2usrAQfr3omYcScFzSeN2onhE1JBURCPDQa8+CGiWMm6mxboUOIcUGasaDqYQ8pSAgZZqQf8lU0uH4FP/z/5Dd7PniDHjvqlwYa+vB6flgtrwh6jYFeTKluhkucLrfzusFR52kHpg8K4GaUL8MhvlsNdd8iHSFjfyOdXRpY9re+B8X9Eorx0Z3xsSsVWaCwmI+Spq+BZ5CSXVm9Um6ogeM0et8JciZS2yFLIlbl2o4U1BWblskYfj/29jm4/2UKjKzORZnpjE0O+qP4hReSrx6os9dr8sNkq/7OafZock8zXjXaOpW6bqB1V5NWMPiWiPxPxfRi1F/MQp6CPY03H7MsDALEFcF7MmtY4YpN/+FFfrrOwS19Fg0OnQzNIgFpSRywX9dxyKICt/wbvhM+RLpUN50ZekFVska+C27hJRJEZ9rSdVhOVdL1UNknuwqF1cCQQriaNsnCbeVHN3/Wgsms9+Kt+glBNyZQlU8Fk+fafcQFI5MlxyMmARVwnC70F8AScnJPPFVZIdgIrvOXCDrEh8wFgkVM/MHkaTZUF51yy3pbIZaPmNd5dsUfEvMsW2IY6esnUUxPRQUUoi5Ib8EFHdiQJrYY3ELfZRXb2I1Xd0DVhlGzogn3CXZtXR2gSAakdB0qrLpXMSJNS65SS2tVTD7SI8OpUGNRjthQIAEEROPue10geFUwarWi/3jGMG529SzwDUJ4g0ix6VtcuLIDYFNdClDTyEyeV1f70NSG2QVXPIpeF7WQ8jWK7kenGaqqna4C4FYQpQk9vJP171nUXLR2mUR11bo1N4hcVhXnJls5yo9u14BB9CqVKXeDl7M5zwMDswHzAHBgUrDgMCGgQUT6Tjuka1G4O/ZCBxO7NBR34YUYQEFLaheEdRIIuxUd25/hl5vf2SFuZuAgIH0A==", - "password": "password" + "certPassword": "password" } } }, diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/SqlTdeCertificateCreate.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/SqlTdeCertificateCreate.json index 112fe6492946..55de400a9d03 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/SqlTdeCertificateCreate.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/SqlTdeCertificateCreate.json @@ -8,7 +8,7 @@ "parameters": { "properties": { "privateBlob": "MIIJ+QIBAzCCCbUGCSqGSIb3DQEHAaCCCaYEggmiMIIJnjCCBhcGCSqGSIb3DQEHAaCCBggEggYEMIIGADCCBfwGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAgUeBd7F2KZUwICB9AEggTYSRi88/Xf0EZ9smyYDCr+jHa7a/510s19/5wjqGbLTT/CYBu2qSOhj+g9sNvjj5oWAcluaZ4XCl/oJhXlB+9q9ZYSC6pPhma7/Il+/zlZm8ZUMfgnUefpKXGj+Ilydghya2DOA0PONDGbqIJGBYC0JgtiL7WcYyA+LEiO0vXc2fZ+ccjQsHM+ePFOm6rTJ1oqE3quRC5Ls2Bv22PCmF+GWkWxqH1L5x8wR2tYfecEsx4sKMj318novQqBlJckOUPDrTT2ic6izFnDWS+zbGezSCeRkt2vjCUVDg7Aqm2bkmLVn+arA3tDZ/DBxgTwwt8prpAznDYG07WRxXMUk8Uqzmcds85jSMLSBOoRaS7GwIPprx0QwyYXd8H/go2vafuGCydRk8mA0bGLXjYWuYHAtztlGrE71a7ILqHY4XankohSAY4YF9Fc1mJcdtsuICs5vNosw1lf0VK5BR4ONCkiGFdYEKUpaUrzKpQiw3zteBN8RQs/ADKGWzaWERrkptf0pLH3/QnZvu9xwwnNWneygByPy7OVYrvgjD27x7Y/C24GyQweh75OTQN3fAvUj7IqeTVyWZGZq32AY/uUXYwASBpLbNUtUBfJ7bgyvVSZlPvcFUwDHJC1P+fSP8Vfcc9W3ec9HqVheXio7gYBEg9hZrOZwiZorl8HZJsEj5NxGccBme6hEVQRZfar5kFDHor/zmKohEAJVw8lVLkgmEuz8aqQUDSWVAcLbkfqygK/NxsR2CaC6xWroagQSRwpF8YbvqYJtAQvdkUXY9Ll4LSRcxKrWMZHgI+1Z22pyNtpy/kXLADche5CF3AVbHtzNNgn9L4GVuCW1Lqufu3U2+DEG+u53u1vraf45RS1y0IyLjTGC+8j0OTxcgUU6FrGgFny0m676v8potPrfyHvuOO511aOTe8UPBfnYyx0XHJPn8RaYGq0vMOBpFyfJkXtAnbRMgXjxxiO91yXTI2hbdVlAmOER1u8QemtF5PoKwZzaAjGBC5S0ARNtxZcWInGciGgtWJVVcyU6nJv3pa2T8jNvtcp8X7j+Il6j6Sju02L/f+S9MvAoGfgG6C5cInNIBEt7+mpYYV/6Mi9Nnj+8/Cq3eAMdTTo7XIzbFpeInzpVN2lAxPockRoAVj+odYO3CIBnzJ7mcA7JqtNk76vaWKasocMk9YS0Z+43o/Z5pZPwXvUv++UUv5fGRcsnIHEeQc+XJlSqRVoaLDo3mNRV6jp5GzJW2BZx3KkuLbohcmfBdr6c8ehGvHXhPm4k2jq9UNYvG9Gy58+1GqdhIYWbRc0Haid8H7UvvdkjA+Yul2rLj4fSTJ6yJ4f6xFAsFY7wIJthpik+dQO9lqPglo9DY30gEOXs3miuJmdmFtBoYlzxti4JBGwxXPwP3rtu6rY1JEOFsh1WmSEGE6Df2l9wtUQ0WAAD6bWgCxMiiRRv7TegxSeMtGn5QKuPC5lFuvzZvtJy1rR8WQwT7lVdHz32xLP2Rs4dayQPh08x3GsuI54d2kti2rcaSltGLRAOuODWc8KjYsPS6Ku4aN2NoQB5H9TEbHy2fsUNpNPMbCY54lH5bkgJtO4WmulnAHEApZG07u8G+Kk3a15npXemWgUW3N9gGtJ2XmieendXqS3RK1ZUYDsnAWW2jCZkjGB6jANBgkrBgEEAYI3EQIxADATBgkqhkiG9w0BCRUxBgQEAQAAADBXBgkqhkiG9w0BCRQxSh5IAGEAYgBjAGYAOABhADUAOQAtAGYAZQAzADIALQA0AGIAZgA0AC0AYQBiAGMAZgAtADkAOAA3AGIANwBmADgANwAzADEANgBjMGsGCSsGAQQBgjcRATFeHlwATQBpAGMAcgBvAHMAbwBmAHQAIABFAG4AaABhAG4AYwBlAGQAIABDAHIAeQBwAHQAbwBnAHIAYQBwAGgAaQBjACAAUAByAG8AdgBpAGQAZQByACAAdgAxAC4AMDCCA38GCSqGSIb3DQEHBqCCA3AwggNsAgEAMIIDZQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQMwDgQIbQcNiyMGeL4CAgfQgIIDOPSSP6SqJGYsXCPWCMQU0TqdqT55fauuadduHaAlQpyN0MVYdu9QguLqMaJjxWa8Coy3K7LAOcqJ4S8FWV2SrpTuNHPv7vrtZfYhltGl+vW8rIrogeGTV4T/45oc5605HSiyItOWX8vHYKnAJkRMW4ICZXgY3dZVb+fr6yPIRFvMywqzwkViVOJIKjZN2lsAQ0xlLU0Fu/va9uxADwI2ZUKfo+6nX6bITkLvUSJoNCvZ5e7UITasxC4ZauHdMZch38N7BPH2usrAQfr3omYcScFzSeN2onhE1JBURCPDQa8+CGiWMm6mxboUOIcUGasaDqYQ8pSAgZZqQf8lU0uH4FP/z/5Dd7PniDHjvqlwYa+vB6flgtrwh6jYFeTKluhkucLrfzusFR52kHpg8K4GaUL8MhvlsNdd8iHSFjfyOdXRpY9re+B8X9Eorx0Z3xsSsVWaCwmI+Spq+BZ5CSXVm9Um6ogeM0et8JciZS2yFLIlbl2o4U1BWblskYfj/29jm4/2UKjKzORZnpjE0O+qP4hReSrx6os9dr8sNkq/7OafZock8zXjXaOpW6bqB1V5NWMPiWiPxPxfRi1F/MQp6CPY03H7MsDALEFcF7MmtY4YpN/+FFfrrOwS19Fg0OnQzNIgFpSRywX9dxyKICt/wbvhM+RLpUN50ZekFVska+C27hJRJEZ9rSdVhOVdL1UNknuwqF1cCQQriaNsnCbeVHN3/Wgsms9+Kt+glBNyZQlU8Fk+fafcQFI5MlxyMmARVwnC70F8AScnJPPFVZIdgIrvOXCDrEh8wFgkVM/MHkaTZUF51yy3pbIZaPmNd5dsUfEvMsW2IY6esnUUxPRQUUoi5Ib8EFHdiQJrYY3ELfZRXb2I1Xd0DVhlGzogn3CXZtXR2gSAakdB0qrLpXMSJNS65SS2tVTD7SI8OpUGNRjthQIAEEROPue10geFUwarWi/3jGMG529SzwDUJ4g0ix6VtcuLIDYFNdClDTyEyeV1f70NSG2QVXPIpeF7WQ8jWK7kenGaqqna4C4FYQpQk9vJP171nUXLR2mUR11bo1N4hcVhXnJls5yo9u14BB9CqVKXeDl7M5zwMDswHzAHBgUrDgMCGgQUT6Tjuka1G4O/ZCBxO7NBR34YUYQEFLaheEdRIIuxUd25/hl5vf2SFuZuAgIH0A==", - "password": "password" + "certPassword": "password" } } }, diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/FailoverDatabases.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/FailoverDatabases.json new file mode 100644 index 000000000000..bccaaed7ea96 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/FailoverDatabases.json @@ -0,0 +1,164 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-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}/failover": { + "post": { + "tags": [ + "FailoverDatabases" + ], + "description": "Failovers a database.", + "operationId": "Databases_Failover", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "databaseName", + "in": "path", + "description": "The name of the database to failover.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully completed database failover." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 ManagementServiceFeatureDisabled - User attempted to use a feature which is disabled.\n\n * 400 DatabaseFailoverThrottled - There was a recent failover on the database or pool if database belongs in an elastic pool.\n\n * 400 DatabaseFailoverNotSupported - This database type does not support customer initiated failovers.\n\n * 409 ManagementServiceDatabaseBusy - Database '{0}' is busy with another operation. Please try your operation later.\n\n * 409 DatabaseNotInStateToFailover - The database is currently in a state such that failover cannot be issued." + }, + "202": { + "description": "Database failover is in progress." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Failover an database": { + "$ref": "./examples/FailoverDatabase.json" + } + } + } + } + }, + "definitions": {}, + "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" + }, + "ManagedInstanceNameParameter": { + "name": "managedInstanceName", + "in": "path", + "description": "The name of the managed instance.", + "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" + }, + "BlobAuditingPolicyNameParameter": { + "name": "blobAuditingPolicyName", + "in": "path", + "description": "The name of the blob auditing policy.", + "required": true, + "type": "string", + "enum": [ + "default" + ], + "x-ms-parameter-location": "method" + }, + "SqlVirtualMachineInstanceNameParameter": { + "name": "sqlVirtualMachineInstanceName", + "in": "path", + "description": "The name of the SqlVirtualMachineInstance.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "SqlVirtualMachineContainerNameParameter": { + "name": "sqlVirtualMachineContainerName", + "in": "path", + "description": "The name of the SqlVirtualMachineContainer.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "VirtualClusterNameParameter": { + "name": "virtualClusterName", + "in": "path", + "description": "The name of the virtual cluster.", + "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/2018-06-01-preview/FailoverElasticPools.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/FailoverElasticPools.json new file mode 100644 index 000000000000..4a785ed20927 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/FailoverElasticPools.json @@ -0,0 +1,164 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-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}/elasticPools/{elasticPoolName}/failover": { + "post": { + "tags": [ + "FailoverElasticPools" + ], + "description": "Failovers an elastic pool.", + "operationId": "ElasticPools_Failover", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "elasticPoolName", + "in": "path", + "description": "The name of the elastic pool to failover.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully completed elastic pool failover." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 ManagementServiceFeatureDisabled - User attempted to use a feature which is disabled.\n\n * 400 ElasticPoolFailoverThrottled - There was a recent failover on the elastic pool.\n\n * 400 ElasticPoolFailoverNotSupported - This elastic pool type or a database type within the elastic pool does not support customer initiated failovers.\n\n * 409 ManagementServiceDatabaseBusy - Database '{0}' is busy with another operation. Please try your operation later.\n\n * 409 ElasticPoolNotInStateToFailover - The elastic pool or a database within the elastic pool is currently in a state such that failover cannot be issued." + }, + "202": { + "description": "Elastic pool failover is in progress." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Failover an elastic pool": { + "$ref": "./examples/FailoverElasticPool.json" + } + } + } + } + }, + "definitions": {}, + "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" + }, + "ManagedInstanceNameParameter": { + "name": "managedInstanceName", + "in": "path", + "description": "The name of the managed instance.", + "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" + }, + "BlobAuditingPolicyNameParameter": { + "name": "blobAuditingPolicyName", + "in": "path", + "description": "The name of the blob auditing policy.", + "required": true, + "type": "string", + "enum": [ + "default" + ], + "x-ms-parameter-location": "method" + }, + "SqlVirtualMachineInstanceNameParameter": { + "name": "sqlVirtualMachineInstanceName", + "in": "path", + "description": "The name of the SqlVirtualMachineInstance.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "SqlVirtualMachineContainerNameParameter": { + "name": "sqlVirtualMachineContainerName", + "in": "path", + "description": "The name of the SqlVirtualMachineContainer.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "VirtualClusterNameParameter": { + "name": "virtualClusterName", + "in": "path", + "description": "The name of the virtual cluster.", + "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/2018-06-01-preview/examples/DatabaseSecurityAlertCreateMax.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertCreateMax.json index c736b806d367..b2666f07d8fc 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertCreateMax.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertCreateMax.json @@ -9,7 +9,7 @@ "databaseSecurityAlertPolicyResource": { "properties": { "state": "Enabled", - "emailAccountAdmins": "true", + "emailAccountAdmins": true, "emailAddresses": [ "test@microsoft.com", "user@microsoft.com" @@ -33,7 +33,7 @@ "kind": "V12", "properties": { "state": "Enabled", - "emailAccountAdmins": "true", + "emailAccountAdmins": true, "emailAddresses": [ "test@microsoft.com", "user@microsoft.com" @@ -56,7 +56,7 @@ "kind": "V12", "properties": { "state": "Enabled", - "emailAccountAdmins": "true", + "emailAccountAdmins": true, "emailAddresses": [ "test@microsoft.com", "user@microsoft.com" diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertCreateMin.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertCreateMin.json index 9df02f18e3fd..170a7211db7e 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertCreateMin.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertCreateMin.json @@ -21,7 +21,7 @@ "kind": "V12", "properties": { "state": "Enabled", - "emailAccountAdmins": "true", + "emailAccountAdmins": true, "emailAddresses": [], "disabledAlerts": [], "retentionDays": 0, @@ -38,7 +38,7 @@ "kind": "V12", "properties": { "state": "Enabled", - "emailAccountAdmins": "true", + "emailAccountAdmins": true, "emailAddresses": [], "disabledAlerts": [], "retentionDays": 0, diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertGet.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertGet.json index b0708e14a15f..70fc349c92be 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertGet.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertGet.json @@ -17,7 +17,7 @@ "kind": "V12", "properties": { "state": "Enabled", - "emailAccountAdmins": "true", + "emailAccountAdmins": true, "emailAddresses": [ "test@microsoft.com", "user@microsoft.com" diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertListByDatabase.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertListByDatabase.json index 38c7002c4d6b..54dede5baf88 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertListByDatabase.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSecurityAlertListByDatabase.json @@ -18,7 +18,7 @@ "kind": "V12", "properties": { "state": "Enabled", - "emailAccountAdmins": "true", + "emailAccountAdmins": true, "emailAddresses": [ "test@microsoft.com", "user@microsoft.com" diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/FailoverDatabase.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/FailoverDatabase.json new file mode 100644 index 000000000000..b058774456bd --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/FailoverDatabase.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "group1", + "serverName": "testServer", + "databaseName": "testDatabase", + "api-version": "2018-06-01-preview" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/FailoverElasticPool.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/FailoverElasticPool.json new file mode 100644 index 000000000000..0f1687215bf3 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/FailoverElasticPool.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "group1", + "serverName": "testServer", + "elasticPoolName": "testElasticPool", + "api-version": "2018-06-01-preview" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ListInstancePoolUsage.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ListInstancePoolUsage.json index 2278bc8d0a55..51a7531d3331 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ListInstancePoolUsage.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ListInstancePoolUsage.json @@ -49,4 +49,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ListInstancePoolUsageExpanded.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ListInstancePoolUsageExpanded.json index 86121df3a3bd..6d0e26cc8363 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ListInstancePoolUsageExpanded.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ListInstancePoolUsageExpanded.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "group1", "instancePoolName": "testIP", - "expandChildren": true, + "expandChildren": true, "api-version": "2018-06-01-preview" }, "responses": { @@ -122,4 +122,4 @@ } } } -} \ No newline at end of file +} 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 new file mode 100644 index 000000000000..cd3e090e3398 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceCreateMax.json @@ -0,0 +1,99 @@ +{ + "parameters": { + "subscriptionId": "20D7082A-0FC7-4468-82BD-542694D5042B", + "resourceGroupName": "testrg", + "managedInstanceName": "testinstance", + "api-version": "2018-06-01-preview", + "parameters": { + "tags": { + "tagKey1": "TagValue1" + }, + "location": "Japan East", + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!", + "subnetId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "vCores": 8, + "storageSizeInGB": 1024, + "licenseType": "LicenseIncluded", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "dnsZonePartner": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance", + "publicDataEndpointEnabled": false, + "proxyOverride": "Redirect", + "timezoneId": "UTC", + "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1" + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "capacity": 8, + "family": "Gen5" + }, + "properties": { + "fullyQualifiedDomainName": "testinstance.1b4e2caff2530.database.windows.net", + "administratorLogin": "dummylogin", + "subnetId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "state": "Ready", + "vCores": 8, + "storageSizeInGB": 1024, + "licenseType": "LicenseIncluded", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "publicDataEndpointEnabled": false, + "proxyOverride": "Redirect", + "dnsZone": "1b4e2caff2530", + "timezoneId": "UTC", + "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1" + }, + "location": "japaneast", + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance", + "name": "testinstance", + "type": "Microsoft.Sql/managedInstances" + } + }, + "201": { + "body": { + "sku": { + "name": "GP_Gen5", + "tier": "GeneralPurpose", + "capacity": 8, + "family": "Gen5" + }, + "properties": { + "fullyQualifiedDomainName": "testinstance.1b4e2caff2530.database.windows.net", + "administratorLogin": "dummylogin", + "subnetId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "state": "Ready", + "vCores": 8, + "storageSizeInGB": 1024, + "licenseType": "LicenseIncluded", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "publicDataEndpointEnabled": false, + "proxyOverride": "Redirect", + "dnsZone": "1b4e2caff2530", + "timezoneId": "UTC", + "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1" + }, + "location": "japaneast", + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance", + "name": "testinstance", + "type": "Microsoft.Sql/managedInstances" + } + }, + "202": {} + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceCreateMin.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceCreateMin.json new file mode 100644 index 000000000000..5a64915a23de --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceCreateMin.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "subscriptionId": "20D7082A-0FC7-4468-82BD-542694D5042B", + "resourceGroupName": "testrg", + "managedInstanceName": "testinstance", + "api-version": "2018-06-01-preview", + "parameters": { + "sku": { + "name": "GP_Gen4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!", + "subnetId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "vCores": 8, + "storageSizeInGB": 1024, + "licenseType": "LicenseIncluded" + }, + "location": "Japan East" + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "GP_Gen4", + "tier": "GeneralPurpose", + "capacity": 8, + "family": "Gen4" + }, + "properties": { + "fullyQualifiedDomainName": "testinstance.1b4e2caff2530.database.windows.net", + "administratorLogin": "dummylogin", + "subnetId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "state": "Ready", + "vCores": 8, + "storageSizeInGB": 1024, + "licenseType": "LicenseIncluded", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "publicDataEndpointEnabled": false, + "proxyOverride": "Default", + "dnsZone": "1b4e2caff2530" + }, + "location": "japaneast", + "tags": {}, + "id": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance", + "name": "testinstance", + "type": "Microsoft.Sql/managedInstances" + } + }, + "201": { + "body": { + "sku": { + "name": "GP_Gen4", + "tier": "GeneralPurpose", + "capacity": 8, + "family": "Gen4" + }, + "properties": { + "fullyQualifiedDomainName": "testinstance.1b4e2caff2530.database.windows.net", + "administratorLogin": "dummylogin", + "subnetId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "state": "Ready", + "vCores": 8, + "storageSizeInGB": 1024, + "licenseType": "LicenseIncluded", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "publicDataEndpointEnabled": false, + "proxyOverride": "Redirect", + "dnsZone": "1b4e2caff2530" + }, + "location": "japaneast", + "tags": {}, + "id": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance", + "name": "testinstance", + "type": "Microsoft.Sql/managedInstances" + } + }, + "202": {} + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceDelete.json new file mode 100644 index 000000000000..22b523a645a9 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "20D7082A-0FC7-4468-82BD-542694D5042B", + "resourceGroupName": "testrg", + "managedInstanceName": "testinstance", + "api-version": "2018-06-01-preview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} 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 new file mode 100644 index 000000000000..9da73f2a4849 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceGet.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "20d7082a-0fc7-4468-82bd-542694d5042b", + "resourceGroupName": "testrg", + "managedInstanceName": "testinstance", + "api-version": "2018-06-01-preview" + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "GP_Gen4", + "tier": "GeneralPurpose", + "capacity": 8, + "family": "Gen4" + }, + "properties": { + "fullyQualifiedDomainName": "testinstance.1b4e2caff2530.database.windows.net", + "administratorLogin": "dummylogin", + "subnetId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "state": "Ready", + "vCores": 8, + "storageSizeInGB": 1024, + "licenseType": "LicenseIncluded", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "publicDataEndpointEnabled": false, + "proxyOverride": "Default", + "dnsZone": "1b4e2caff2530", + "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1" + }, + "location": "japaneast", + "tags": { + "key": "value" + }, + "id": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance", + "name": "testinstance", + "type": "Microsoft.Sql/managedInstances" + } + } + } +} 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 new file mode 100644 index 000000000000..4ff1240668ef --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceList.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "subscriptionId": "20D7082A-0FC7-4468-82BD-542694D5042B", + "api-version": "2018-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "japaneast", + "id": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/Test1/providers/Microsoft.Sql/managedInstances/testinstance1", + "name": "testinstance1", + "type": "Microsoft.Sql/managedInstances", + "sku": { + "name": "GP_Gen4", + "tier": "GeneralPurpose", + "capacity": 8, + "family": "Gen4" + }, + "properties": { + "fullyQualifiedDomainName": "testinstance1.1b4e2caff2530.database.windows.net", + "administratorLogin": "dummylogin", + "subnetId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "state": "Ready", + "vCores": 8, + "storageSizeInGB": 1024, + "licenseType": "LicenseIncluded", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "publicDataEndpointEnabled": false, + "proxyOverride": "Default", + "dnsZone": "1b4e2caff2530" + } + }, + { + "location": "japaneast", + "id": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/Test1/providers/Microsoft.Sql/managedInstances/testinstance2", + "name": "testinstance2", + "type": "Microsoft.Sql/managedInstances", + "sku": { + "name": "BC_Gen5", + "tier": "BusinessCritical", + "capacity": 16, + "family": "Gen4" + }, + "properties": { + "fullyQualifiedDomainName": "testinstance2.2c3d1bdae3412.database.windows.net", + "administratorLogin": "dummylogin", + "subnetId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet2", + "state": "Ready", + "vCores": 16, + "storageSizeInGB": 1024, + "licenseType": "Full", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "publicDataEndpointEnabled": false, + "proxyOverride": "Default", + "dnsZone": "2c3d1bdae3412" + } + } + ] + } + } + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceListByInstancePool.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceListByInstancePool.json similarity index 98% rename from specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceListByInstancePool.json rename to specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceListByInstancePool.json index 6854701b04b7..313ef50fc116 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceListByInstancePool.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceListByInstancePool.json @@ -3,7 +3,7 @@ "subscriptionId": "20D7082A-0FC7-4468-82BD-542694D5042B", "resourceGroupName": "Test1", "instancePoolName": "pool1", - "api-version": "2015-05-01-preview" + "api-version": "2018-06-01-preview" }, "responses": { "200": { 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 new file mode 100644 index 000000000000..7ef8a934da16 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceListByResourceGroup.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "20D7082A-0FC7-4468-82BD-542694D5042B", + "resourceGroupName": "Test1", + "api-version": "2018-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "japaneast", + "id": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/Test1/providers/Microsoft.Sql/managedInstances/testinstance1", + "name": "testinstance1", + "type": "Microsoft.Sql/managedInstances", + "sku": { + "name": "GP_Gen4", + "tier": "GeneralPurpose", + "capacity": 8, + "family": "Gen4" + }, + "properties": { + "fullyQualifiedDomainName": "testinstance1.1b4e2caff2530.database.windows.net", + "administratorLogin": "dummylogin", + "subnetId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "state": "Ready", + "vCores": 8, + "storageSizeInGB": 1024, + "licenseType": "LicenseIncluded", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "publicDataEndpointEnabled": false, + "proxyOverride": "Default", + "dnsZone": "1b4e2caff2530" + } + }, + { + "location": "japaneast", + "id": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/Test1/providers/Microsoft.Sql/managedInstances/testinstance2", + "name": "testinstance2", + "type": "Microsoft.Sql/managedInstances", + "sku": { + "name": "BC_Gen5", + "tier": "BusinessCritical", + "capacity": 16, + "family": "Gen4" + }, + "properties": { + "fullyQualifiedDomainName": "testinstance2.2c3d1bdae3412.database.windows.net", + "administratorLogin": "dummylogin", + "subnetId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet2", + "state": "Ready", + "vCores": 16, + "storageSizeInGB": 1024, + "licenseType": "Full", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "publicDataEndpointEnabled": false, + "proxyOverride": "Default", + "dnsZone": "2c3d1bdae3412" + } + } + ] + } + } + } +} 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 new file mode 100644 index 000000000000..79d81c6aa48b --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceUpdateMax.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "20D7082A-0FC7-4468-82BD-542694D5042B", + "resourceGroupName": "testrg", + "managedInstanceName": "testinstance", + "api-version": "2018-06-01-preview", + "parameters": { + "tags": { + "tagKey1": "TagValue1" + }, + "sku": { + "name": "GP_Gen4", + "tier": "GeneralPurpose", + "capacity": 8 + }, + "properties": { + "administratorLogin": "dummylogin", + "administratorLoginPassword": "Un53cuRE!", + "proxyOverride": "Redirect", + "publicDataEndpointEnabled": false, + "licenseType": "BasePrice", + "vCores": 8, + "storageSizeInGB": 448, + "collation": "SQL_Latin1_General_CP1_CI_AS" + } + } + }, + "responses": { + "200": { + "body": { + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance", + "name": "testinstance", + "type": "Microsoft.Sql/managedInstances", + "location": "japaneast", + "sku": { + "name": "GP_Gen4", + "tier": "GeneralPurpose", + "capacity": 8, + "family": "Gen4" + }, + "properties": { + "fullyQualifiedDomainName": "testinstance.1b4e2caff2530.database.windows.net", + "administratorLogin": "dummylogin", + "subnetId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "state": "Ready", + "vCores": 8, + "storageSizeInGB": 448, + "licenseType": "BasePrice", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "publicDataEndpointEnabled": false, + "proxyOverride": "Redirect", + "dnsZone": "1b4e2caff2530", + "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1" + } + } + }, + "202": {} + } +} 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 new file mode 100644 index 000000000000..7fa48928dee9 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceUpdateMin.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "20D7082A-0FC7-4468-82BD-542694D5042B", + "resourceGroupName": "testrg", + "managedInstanceName": "testinstance", + "api-version": "2018-06-01-preview", + "parameters": { + "tags": { + "tagKey1": "TagValue1" + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "GP_Gen4", + "tier": "GeneralPurpose", + "capacity": 8, + "family": "Gen4" + }, + "properties": { + "fullyQualifiedDomainName": "testinstance.1b4e2caff2530.database.windows.net", + "administratorLogin": "dummylogin", + "subnetId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "state": "Ready", + "vCores": 8, + "storageSizeInGB": 1024, + "licenseType": "LicenseIncluded", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "publicDataEndpointEnabled": false, + "proxyOverride": "Default", + "dnsZone": "1b4e2caff2530", + "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1" + }, + "location": "japaneast", + "tags": { + "tagKey1": "TagValue1" + }, + "id": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance", + "name": "testinstance", + "type": "Microsoft.Sql/managedInstances" + } + }, + "202": {} + } +} 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 new file mode 100644 index 000000000000..787250a313a2 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/managedInstances.json @@ -0,0 +1,640 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-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/instancePools/{instancePoolName}/managedInstances": { + "get": { + "tags": [ + "ManagedInstances" + ], + "description": "Gets a list of all managed instances in an instance pool.", + "operationId": "ManagedInstances_ListByInstancePool", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "instancePoolName", + "in": "path", + "description": "The instance pool name.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of managed instances.", + "schema": { + "$ref": "#/definitions/ManagedInstanceListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 404 InstancePoolNotFound - An instance pool cannot be found" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List managed instances by instance pool": { + "$ref": "./examples/ManagedInstanceListByInstancePool.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances": { + "get": { + "tags": [ + "ManagedInstances" + ], + "description": "Gets a list of managed instances in a resource group.", + "operationId": "ManagedInstances_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of managed instances.", + "schema": { + "$ref": "#/definitions/ManagedInstanceListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 ManagementServiceFeatureDisabled - User attempted to use a feature which is disabled.\n\n * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 404 ManagedInstanceNotInSubscriptionResourceGroup - Specified managed instance does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 409 ConflictingManagedInstanceOperation - An operation is currently in progress for the managed instance.\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 * 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 * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription.\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.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List managed instances by resource group": { + "$ref": "./examples/ManagedInstanceListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}": { + "get": { + "tags": [ + "ManagedInstances" + ], + "description": "Gets a managed instance.", + "operationId": "ManagedInstances_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ManagedInstanceNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the specified managed instance.", + "schema": { + "$ref": "#/definitions/ManagedInstance" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 ManagementServiceFeatureDisabled - User attempted to use a feature which is disabled.\n\n * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 404 ManagedInstanceNotInSubscriptionResourceGroup - Specified managed instance does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 409 ConflictingManagedInstanceOperation - An operation is currently in progress for the managed instance.\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 * 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 * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription.\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.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout." + } + }, + "x-ms-examples": { + "Get managed instance": { + "$ref": "./examples/ManagedInstanceGet.json" + } + } + }, + "put": { + "tags": [ + "ManagedInstances" + ], + "description": "Creates or updates a managed instance.", + "operationId": "ManagedInstances_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ManagedInstanceNameParameter" + }, + { + "name": "parameters", + "in": "body", + "description": "The requested managed instance resource state.", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedInstance" + } + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the managed instance.", + "schema": { + "$ref": "#/definitions/ManagedInstance" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 HkCannotSwitchToInactive - The database cannot proceed with pricing-tier update as it has memory-optimized objects. Please drop such objects and try again.\n\n * 400 ManagedInstanceInvalidStorageSizeLessThenCurrentSizeUsed - Invalid storage size: Storage size limit ({0} GB) is less that current storage used ({1} GB). Please specify higher storage size limit.\n\n * 400 InstanceTimezoneUpdateNotSupported - Instance timezone update not supported.\n\n * 400 CreateManagedInstanceWithNonDefaultTimezoneNotSupported - Create Managed Instance with non-default timezone not supported.\n\n * 400 ManagedInstanceIpAddressRangeLimit - Cannot create a Managed Instance as there are not enough available ip addresses in the selected subnet\n\n * 400 VnetDelegationNotAllowed - User tried to inject Managed Server to subnet which is delegated.\n\n * 400 SubnetHasResourcesOfDifferentType - User tried to create MI in subnet that has resources of different type.\n\n * 400 InvalidUsername - Supplied user name contains invalid characters.\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 400 InstancePoolNotEnoughCapacity - An instance pool does not have enough vCore capacity\n\n * 400 ServerNotFound - The requested server was not found.\n\n * 400 TokenTooLong - The provided token is too long.\n\n * 400 ManagedInstanceSloUpdateFailed - SLO '{0}' operation cannot succeed as the memory usage of '{1}' exceeds the quota.\n\n * 400 ManagedInstanceLocalStorageUpdateSloDisabled - Update SLO for managed instances with local storage is not supported yet.\n\n * 400 InvalidLoginName - The provided login name is invalid.\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 PasswordTooShort - The provided password is too short\n\n * 400 PasswordTooLong - The provided password is too long.\n\n * 400 PasswordNotComplex - The provided password is not complex enough.\n\n * 400 GatewayInvalidEdition - '{0}' is not a valid database edition in this version of SQL Server.\n\n * 400 InvalidSubnetResourceId - The provided subnet resource ID for the managed instance create or update is invalid.\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 InvalidLocation - An invalid location was specified.\n\n * 400 VnetInWrongRegion - Virtual network is in wrong region.\n\n * 400 InvalidServerName - Invalid server name specified.\n\n * 400 VnetAddressRangeError - Virtual network address range is invalid.\n\n * 400 VnetConfigIsNotAllowed - Virtual network configuration is not allowed.\n\n * 400 InvalidCollation - Invalid collation.\n\n * 400 InvalidIdentifier - The identifier contains NULL or an invalid unicode character.\n\n * 400 ManagedInstanceClassicVnetNotSupported - Managed Instance cannot be joined to a classic virtual network.\n\n * 400 AlterDbDeactivatedNotSupported - Database Operation failed for Server '{0}', Database '{1}' due to unexpected delay. Please try again.\n\n * 400 RegionDoesNotAllowProvisioning - The selected location is not accepting new Windows Azure SQL Database servers. This may change at a later time.\n\n * 400 VnetConfigHasNsg - User tried to inject Managed Server subnet with Network Security Groups.\n\n * 400 VnetConfigHasNoUdr - User tried to inject Managed Server subnet without default User Defined Route Table.\n\n * 400 VnetConfigHasInvalidUdr - User tried to inject Managed Server subnet with invalid User Defined Route Table.\n\n * 400 VnetConfigHasInvalidDns - User tried to inject Managed Server subnet with invalid custom DNS.\n\n * 400 VnetConfigHasServiceEndpoints - User tried to inject Managed Server subnet with service endpoints.\n\n * 400 VnetSubnetIsInUse - User tried to inject Managed Server subnet that is not empty.\n\n * 400 VnetSubnetIsLocked - User tried to inject Managed Server subnet that is in locked scope.\n\n * 400 VnetSubnetIsGateway - User tried to inject Managed Server subnet that is Gateway subnet.\n\n * 400 VnetSubnetIsUnknown - User tried to inject Managed Server subnet that does not exist.\n\n * 400 VnetSubnetConflictWithIntendedPolicy - User tried to inject Managed Server subnet that has a conflict with IntendedPolicy.\n\n * 400 NameAlreadyExists - The provided name already exists.\n\n * 400 ManagedInstanceInvalidEditionForSku - The specified edition {0} is not consistent with the specified SKU {1}.\n\n * 400 ProvisioningDisabled - Displays error message from resources operation authorizer as is, without changes\n\n * 400 ManagedInstanceInvalidLicenseType - The specified license type {0} is not valid.\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 VnetResourceNotFound - Resource not found: '{0}'.\n\n * 400 InvalidTimezone - Invalid timezone.\n\n * 400 UnableToResolveRemoteServer - The remote partner server name could not be resolved due to an invalid server name or DNS connectivity issues.\n\n * 400 InstanceCollationUpdateNotSupported - User cannot change instance collation on Managed Instance.\n\n * 400 CreateManagedInstanceWithNonDefaultCollationNotSupported - User can create a Managed Instance only with collation 'SQL_Latin1_General_CP1_CI_AS'.\n\n * 400 ManagedInstanceOperationInProgress - The operation could not be completed because {0} operation is in progress. Please wait for the operation in progress to complete and try again.\n\n * 400 ManagedInstanceExceedMaxAzureStorage - The operation could not be completed because total allocated storage size for General Purpose instance would exceed {0}. Please reduce the number of database files and retry operation.\n\n * 400 ManagedInstanceHasGeoReplica - The operation could not be completed because instance has configured geo replicated secondary instance.\n\n * 400 InvalidManagedServerDnsZonePartner - Invalid DNS zone partner resource id specified in properties.\n\n * 400 ManagementServiceFeatureDisabled - User attempted to use a feature which is disabled.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group 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 * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 404 ManagedInstanceNotInSubscriptionResourceGroup - Specified managed instance does not exist in the specified resource group and subscription.\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource with the name '{0}' does not exist. To continue, specify a valid resource name.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 405 InvalidVcoreValue - vCore value {0} is not valid. Please specify a valid vCore value.\n\n * 405 InvalidHardwareGenerationValue - HardwareGeneration {0} is not valid. Please specify a valid HardwareGeneration value.\n\n * 405 InvalidStorageSizeValue - \"Invalid storage size: {0} GB. Storage size must be specified between {1} and {2} gigabytes, in increments of {3} GB.\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 ConflictingServerOperation - An operation is currently in progress for the server.\n\n * 409 SubscriptionDisabled - Subscription is disabled.\n\n * 409 ServerAlreadyExists - Duplicate server name.\n\n * 409 ServerOverridePreconditionFailed - Failed to apply server override on category '{0}', because physical db or instance '{1}' in server '{2}' is currently not in 'Ready' or 'Deactivated' state.\n\n * 409 ServerDisabled - Server is disabled.\n\n * 409 ManagedInstanceIsBusy - The server '{0}' is currently busy. Please wait a few minutes before trying again.\n\n * 409 ServerQuotaExceeded - Server cannot be added to a subscription because it will exceed quota.\n\n * 409 ConflictingManagedInstanceOperation - An operation is currently in progress for the managed instance.\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 * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription.\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 * 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 * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation.\n\n * 500 GatewayInternalServerError - The server encountered an unexpected exception.\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 * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout." + }, + "202": { + "description": "Accepted" + }, + "201": { + "description": "Successfully created the managed instance.", + "schema": { + "$ref": "#/definitions/ManagedInstance" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create managed instance with minimal properties": { + "$ref": "./examples/ManagedInstanceCreateMin.json" + }, + "Create managed instance with all properties": { + "$ref": "./examples/ManagedInstanceCreateMax.json" + } + } + }, + "delete": { + "tags": [ + "ManagedInstances" + ], + "description": "Deletes a managed instance.", + "operationId": "ManagedInstances_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ManagedInstanceNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the managed instance." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 ManagementServiceFeatureDisabled - User attempted to use a feature which is disabled.\n\n * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 404 ManagedInstanceNotInSubscriptionResourceGroup - Specified managed instance does not exist in the specified resource group and subscription.\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 409 ConflictingManagedInstanceOperation - An operation is currently in progress for the managed instance.\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 * 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 * 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 * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription.\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.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "The specified managed instance does not exist." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete managed instance": { + "$ref": "./examples/ManagedInstanceDelete.json" + } + } + }, + "patch": { + "tags": [ + "ManagedInstances" + ], + "description": "Updates a managed instance.", + "operationId": "ManagedInstances_Update", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ManagedInstanceNameParameter" + }, + { + "name": "parameters", + "in": "body", + "description": "The requested managed instance resource state.", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedInstanceUpdate" + } + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the managed instance.", + "schema": { + "$ref": "#/definitions/ManagedInstance" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 HkCannotSwitchToInactive - The database cannot proceed with pricing-tier update as it has memory-optimized objects. Please drop such objects and try again.\n\n * 400 ManagedInstanceInvalidStorageSizeLessThenCurrentSizeUsed - Invalid storage size: Storage size limit ({0} GB) is less that current storage used ({1} GB). Please specify higher storage size limit.\n\n * 400 InstanceTimezoneUpdateNotSupported - Instance timezone update not supported.\n\n * 400 CreateManagedInstanceWithNonDefaultTimezoneNotSupported - Create Managed Instance with non-default timezone not supported.\n\n * 400 ManagedInstanceIpAddressRangeLimit - Cannot create a Managed Instance as there are not enough available ip addresses in the selected subnet\n\n * 400 VnetDelegationNotAllowed - User tried to inject Managed Server to subnet which is delegated.\n\n * 400 SubnetHasResourcesOfDifferentType - User tried to create MI in subnet that has resources of different type.\n\n * 400 InvalidUsername - Supplied user name contains invalid characters.\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 400 InstancePoolNotEnoughCapacity - An instance pool does not have enough vCore capacity\n\n * 400 ServerNotFound - The requested server was not found.\n\n * 400 TokenTooLong - The provided token is too long.\n\n * 400 ManagedInstanceSloUpdateFailed - SLO '{0}' operation cannot succeed as the memory usage of '{1}' exceeds the quota.\n\n * 400 ManagedInstanceLocalStorageUpdateSloDisabled - Update SLO for managed instances with local storage is not supported yet.\n\n * 400 InvalidLoginName - The provided login name is invalid.\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 PasswordTooShort - The provided password is too short\n\n * 400 PasswordTooLong - The provided password is too long.\n\n * 400 PasswordNotComplex - The provided password is not complex enough.\n\n * 400 GatewayInvalidEdition - '{0}' is not a valid database edition in this version of SQL Server.\n\n * 400 InvalidSubnetResourceId - The provided subnet resource ID for the managed instance create or update is invalid.\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 InvalidLocation - An invalid location was specified.\n\n * 400 VnetInWrongRegion - Virtual network is in wrong region.\n\n * 400 InvalidServerName - Invalid server name specified.\n\n * 400 VnetAddressRangeError - Virtual network address range is invalid.\n\n * 400 VnetConfigIsNotAllowed - Virtual network configuration is not allowed.\n\n * 400 InvalidCollation - Invalid collation.\n\n * 400 InvalidIdentifier - The identifier contains NULL or an invalid unicode character.\n\n * 400 ManagedInstanceClassicVnetNotSupported - Managed Instance cannot be joined to a classic virtual network.\n\n * 400 AlterDbDeactivatedNotSupported - Database Operation failed for Server '{0}', Database '{1}' due to unexpected delay. Please try again.\n\n * 400 RegionDoesNotAllowProvisioning - The selected location is not accepting new Windows Azure SQL Database servers. This may change at a later time.\n\n * 400 VnetConfigHasNsg - User tried to inject Managed Server subnet with Network Security Groups.\n\n * 400 VnetConfigHasNoUdr - User tried to inject Managed Server subnet without default User Defined Route Table.\n\n * 400 VnetConfigHasInvalidUdr - User tried to inject Managed Server subnet with invalid User Defined Route Table.\n\n * 400 VnetConfigHasInvalidDns - User tried to inject Managed Server subnet with invalid custom DNS.\n\n * 400 VnetConfigHasServiceEndpoints - User tried to inject Managed Server subnet with service endpoints.\n\n * 400 VnetSubnetIsInUse - User tried to inject Managed Server subnet that is not empty.\n\n * 400 VnetSubnetIsLocked - User tried to inject Managed Server subnet that is in locked scope.\n\n * 400 VnetSubnetIsGateway - User tried to inject Managed Server subnet that is Gateway subnet.\n\n * 400 VnetSubnetIsUnknown - User tried to inject Managed Server subnet that does not exist.\n\n * 400 VnetSubnetConflictWithIntendedPolicy - User tried to inject Managed Server subnet that has a conflict with IntendedPolicy.\n\n * 400 NameAlreadyExists - The provided name already exists.\n\n * 400 ManagedInstanceInvalidEditionForSku - The specified edition {0} is not consistent with the specified SKU {1}.\n\n * 400 ProvisioningDisabled - Displays error message from resources operation authorizer as is, without changes\n\n * 400 ManagedInstanceInvalidLicenseType - The specified license type {0} is not valid.\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 VnetResourceNotFound - Resource not found: '{0}'.\n\n * 400 InvalidTimezone - Invalid timezone.\n\n * 400 UnableToResolveRemoteServer - The remote partner server name could not be resolved due to an invalid server name or DNS connectivity issues.\n\n * 400 InstanceCollationUpdateNotSupported - User cannot change instance collation on Managed Instance.\n\n * 400 CreateManagedInstanceWithNonDefaultCollationNotSupported - User can create a Managed Instance only with collation 'SQL_Latin1_General_CP1_CI_AS'.\n\n * 400 ManagedInstanceOperationInProgress - The operation could not be completed because {0} operation is in progress. Please wait for the operation in progress to complete and try again.\n\n * 400 ManagedInstanceExceedMaxAzureStorage - The operation could not be completed because total allocated storage size for General Purpose instance would exceed {0}. Please reduce the number of database files and retry operation.\n\n * 400 ManagedInstanceHasGeoReplica - The operation could not be completed because instance has configured geo replicated secondary instance.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group 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 * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 404 ManagedInstanceNotInSubscriptionResourceGroup - Specified managed instance does not exist in the specified resource group and subscription.\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource with the name '{0}' does not exist. To continue, specify a valid resource name.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 405 InvalidVcoreValue - vCore value {0} is not valid. Please specify a valid vCore value.\n\n * 405 InvalidHardwareGenerationValue - HardwareGeneration {0} is not valid. Please specify a valid HardwareGeneration value.\n\n * 405 InvalidStorageSizeValue - \"Invalid storage size: {0} GB. Storage size must be specified between {1} and {2} gigabytes, in increments of {3} GB.\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 ConflictingServerOperation - An operation is currently in progress for the server.\n\n * 409 SubscriptionDisabled - Subscription is disabled.\n\n * 409 ServerAlreadyExists - Duplicate server name.\n\n * 409 ServerOverridePreconditionFailed - Failed to apply server override on category '{0}', because physical db or instance '{1}' in server '{2}' is currently not in 'Ready' or 'Deactivated' state.\n\n * 409 ServerDisabled - Server is disabled.\n\n * 409 ManagedInstanceIsBusy - The server '{0}' is currently busy. Please wait a few minutes before trying again.\n\n * 409 ServerQuotaExceeded - Server cannot be added to a subscription because it will exceed quota.\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 * 429 ConflictingSubscriptionOperation - An operation is currently in progress for the subscription.\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 * 500 GatewayInternalServerError - The server encountered an unexpected exception.\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.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout." + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update managed instance with minimal properties": { + "$ref": "./examples/ManagedInstanceUpdateMin.json" + }, + "Update managed instance with all properties": { + "$ref": "./examples/ManagedInstanceUpdateMax.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances": { + "get": { + "tags": [ + "ManagedInstances" + ], + "description": "Gets a list of all managed instances in the subscription.", + "operationId": "ManagedInstances_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of managed instances.", + "schema": { + "$ref": "#/definitions/ManagedInstanceListResult" + } + }, + "default": { + "description": "*** Error Responses: ***" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List managed instances": { + "$ref": "./examples/ManagedInstanceList.json" + } + } + } + } + }, + "definitions": { + "ManagedInstanceListResult": { + "description": "A list of managed instances.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/ManagedInstance" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "ManagedInstanceProperties": { + "description": "The properties of a managed instance.", + "type": "object", + "properties": { + "managedInstanceCreateMode": { + "description": "Specifies the mode of database creation.\r\n\r\nDefault: Regular instance creation.\r\n\r\nRestore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified.", + "enum": [ + "Default", + "PointInTimeRestore" + ], + "type": "string", + "x-ms-enum": { + "name": "ManagedServerCreateMode", + "modelAsString": true + }, + "x-ms-mutability": [ + "create" + ] + }, + "fullyQualifiedDomainName": { + "description": "The fully qualified domain name of the managed instance.", + "type": "string", + "readOnly": true + }, + "administratorLogin": { + "description": "Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation).", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "administratorLoginPassword": { + "description": "The administrator login password (required for managed instance creation).", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ] + }, + "subnetId": { + "description": "Subnet resource ID for the managed instance.", + "type": "string" + }, + "state": { + "description": "The state of the managed instance.", + "type": "string", + "readOnly": true + }, + "licenseType": { + "description": "The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses).", + "enum": [ + "LicenseIncluded", + "BasePrice" + ], + "type": "string", + "x-ms-enum": { + "name": "ManagedInstanceLicenseType", + "modelAsString": true + } + }, + "vCores": { + "format": "int32", + "description": "The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80.", + "type": "integer" + }, + "storageSizeInGB": { + "format": "int32", + "description": "Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only.", + "type": "integer" + }, + "collation": { + "description": "Collation of the managed instance.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "dnsZone": { + "description": "The Dns Zone that the managed instance is in.", + "type": "string", + "readOnly": true + }, + "dnsZonePartner": { + "description": "The resource id of another managed instance whose DNS zone this managed instance will share after creation.", + "type": "string", + "x-ms-mutability": [ + "create" + ] + }, + "publicDataEndpointEnabled": { + "description": "Whether or not the public data endpoint is enabled.", + "type": "boolean" + }, + "sourceManagedInstanceId": { + "description": "The resource identifier of the source managed instance associated with create operation of this instance.", + "type": "string", + "x-ms-mutability": [ + "create" + ] + }, + "restorePointInTime": { + "format": "date-time", + "description": "Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.", + "type": "string", + "x-ms-mutability": [ + "create" + ] + }, + "proxyOverride": { + "description": "Connection type used for connecting to the instance.", + "enum": [ + "Proxy", + "Redirect", + "Default" + ], + "type": "string", + "x-ms-enum": { + "name": "ManagedInstanceProxyOverride", + "modelAsString": true + } + }, + "timezoneId": { + "description": "Id of the timezone. Allowed values are timezones supported by Windows.\r\nWindows keeps details on supported timezones, including the id, in registry under\r\nKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones.\r\nYou can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info.\r\nList of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.\r\nAn example of valid timezone id is \"Pacific Standard Time\" or \"W. Europe Standard Time\".", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "instancePoolId": { + "description": "The Id of the instance pool this managed server belongs to.", + "type": "string" + } + } + }, + "ManagedInstance": { + "description": "An Azure SQL managed instance.", + "required": [ + "location" + ], + "type": "object", + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "identity": { + "$ref": "../../../common/v1/types.json#/definitions/ResourceIdentity", + "description": "The Azure Active Directory identity of the managed instance.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "sku": { + "$ref": "../../../common/v1/types.json#/definitions/Sku", + "description": "Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5" + }, + "properties": { + "$ref": "#/definitions/ManagedInstanceProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "ManagedInstanceUpdate": { + "description": "An update request for an Azure SQL Database managed instance.", + "type": "object", + "properties": { + "sku": { + "$ref": "../../../common/v1/types.json#/definitions/Sku", + "description": "Managed instance sku" + }, + "properties": { + "$ref": "#/definitions/ManagedInstanceProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + }, + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "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" + }, + "ManagedInstanceNameParameter": { + "name": "managedInstanceName", + "in": "path", + "description": "The name of the managed instance.", + "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" + }, + "BlobAuditingPolicyNameParameter": { + "name": "blobAuditingPolicyName", + "in": "path", + "description": "The name of the blob auditing policy.", + "required": true, + "type": "string", + "enum": [ + "default" + ], + "x-ms-parameter-location": "method" + }, + "SqlVirtualMachineInstanceNameParameter": { + "name": "sqlVirtualMachineInstanceName", + "in": "path", + "description": "The name of the SqlVirtualMachineInstance.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "SqlVirtualMachineContainerNameParameter": { + "name": "sqlVirtualMachineContainerName", + "in": "path", + "description": "The name of the SqlVirtualMachineContainer.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "VirtualClusterNameParameter": { + "name": "virtualClusterName", + "in": "path", + "description": "The name of the virtual cluster.", + "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/2018-06-01-preview/usages.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/usages.json index 8fb9437babb8..1488395612b2 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/usages.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/usages.json @@ -248,4 +248,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseDelete.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseDelete.json index 7303a40a620e..eedcaf7c5b83 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseDelete.json @@ -7,11 +7,7 @@ "api-version": "2014-04-01" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseExportSasKey.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseExportSasKey.json index cced7d291c92..4a26b28cc220 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseExportSasKey.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseExportSasKey.json @@ -16,19 +16,21 @@ }, "responses": { "200": { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5961/importExportOperationResult/f01d7bfe-7162-44e7-9350-f1c85ce83e4c", - "name": "f01d7bfe-7162-44e7-9350-f1c85ce83e4c", - "type": "Microsoft.Sql/servers/importExportOperationResults", - "properties": { - "requestId": "f01d7bfe-7162-44e7-9350-f1c85ce83e4c", - "requestType": "Export", - "queuedTime": "3/1/2017 12:14:25 AM", - "lastModifiedTime": "3/1/2017 12:16:33 AM", - "blobUri": "https://test.blob.core.windows.net/bacpacs/test.bacpac", - "serverName": "test", - "databaseName": "testdb", - "status": "Completed", - "errorMessage": null + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5961/importExportOperationResult/f01d7bfe-7162-44e7-9350-f1c85ce83e4c", + "name": "f01d7bfe-7162-44e7-9350-f1c85ce83e4c", + "type": "Microsoft.Sql/servers/importExportOperationResults", + "properties": { + "requestId": "f01d7bfe-7162-44e7-9350-f1c85ce83e4c", + "requestType": "Export", + "queuedTime": "3/1/2017 12:14:25 AM", + "lastModifiedTime": "3/1/2017 12:16:33 AM", + "blobUri": "https://test.blob.core.windows.net/bacpacs/test.bacpac", + "serverName": "test", + "databaseName": "testdb", + "status": "Completed", + "errorMessage": null + } } }, "202": {} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseExportStorageKey.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseExportStorageKey.json index 8de83c9443e1..aaa34c38a424 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseExportStorageKey.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseExportStorageKey.json @@ -16,19 +16,21 @@ }, "responses": { "200": { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5961/importExportOperationResult/f01d7bfe-7162-44e7-9350-f1c85ce83e4c", - "name": "f01d7bfe-7162-44e7-9350-f1c85ce83e4c", - "type": "Microsoft.Sql/servers/importExportOperationResults", - "properties": { - "requestId": "f01d7bfe-7162-44e7-9350-f1c85ce83e4c", - "requestType": "Export", - "queuedTime": "3/1/2017 12:14:25 AM", - "lastModifiedTime": "3/1/2017 12:16:33 AM", - "blobUri": "https://test.blob.core.windows.net/bacpacs/test.bacpac", - "serverName": "test", - "databaseName": "testdb", - "status": "Completed", - "errorMessage": null + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5961/importExportOperationResult/f01d7bfe-7162-44e7-9350-f1c85ce83e4c", + "name": "f01d7bfe-7162-44e7-9350-f1c85ce83e4c", + "type": "Microsoft.Sql/servers/importExportOperationResults", + "properties": { + "requestId": "f01d7bfe-7162-44e7-9350-f1c85ce83e4c", + "requestType": "Export", + "queuedTime": "3/1/2017 12:14:25 AM", + "lastModifiedTime": "3/1/2017 12:16:33 AM", + "blobUri": "https://test.blob.core.windows.net/bacpacs/test.bacpac", + "serverName": "test", + "databaseName": "testdb", + "status": "Completed", + "errorMessage": null + } } }, "202": {} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DisasterRecoveryConfigurationDelete.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DisasterRecoveryConfigurationDelete.json index 654e3b83e5df..2b2d0bb4ff68 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DisasterRecoveryConfigurationDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DisasterRecoveryConfigurationDelete.json @@ -7,14 +7,8 @@ "api-version": "2014-04-01" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "202": {}, + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ElasticPoolDelete.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ElasticPoolDelete.json index 38d6232f13c0..da766024bcb7 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ElasticPoolDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ElasticPoolDelete.json @@ -7,11 +7,7 @@ "api-version": "2014-04-01" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/FirewallRuleDelete.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/FirewallRuleDelete.json index 9e9dfec3ea10..2399ec6304bb 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/FirewallRuleDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/FirewallRuleDelete.json @@ -7,11 +7,7 @@ "api-version": "2014-04-01" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } 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 339eb067af4a..5b54c709b1f8 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 @@ -4,1265 +4,1157 @@ }, "responses": { "200": { - "value": [ - { - "name": "Microsoft.Sql/servers/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server", - "operation": "Get server details", - "description": "Return a list of servers in a resource group on a subscription" - } - }, - { - "name": "Microsoft.Sql/servers/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server", - "operation": "Create new or update existing server", - "description": "Create a new server or modify properties of existing server in a resource group on a subscription" - } - }, - { - "name": "Microsoft.Sql/servers/delete", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server", - "operation": "Delete existing server", - "description": "Delete a server and all contained databases and elastic pools" - } - }, - { - "name": "Microsoft.Sql/servers/import/action", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server", - "operation": "Create new database from DacPac", - "description": "Create a new database on the server and deploy schema and data from a DacPac package" - } - }, - { - "name": "Microsoft.Sql/servers/upgrade/action", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server", - "operation": "Upgrade server version", - "description": "Enable new functionality available on the latest version of server and specify databases edition conversion map" - } - }, - { - "name": "Microsoft.Sql/servers/firewallRules/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Firewall Rule", - "operation": "Get server firewall rules", - "description": "Retrieve server firewall rule details" - } - }, - { - "name": "Microsoft.Sql/servers/firewallRules/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Firewall Rule", - "operation": "Create new or update existing server firewall rule", - "description": "Create or update server firewall rule that controls IP address range allowed to connect to the server" - } - }, - { - "name": "Microsoft.Sql/servers/firewallRules/delete", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Firewall Rule", - "operation": "Delete server firewall rule", - "description": "Delete firewall rule from the server" - } - }, - { - "name": "Microsoft.Sql/servers/administrators/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "The server administrator", - "operation": "Get server administrator", - "description": "Retrieve server administrator details" - } - }, - { - "name": "Microsoft.Sql/servers/administrators/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "The server administrator", - "operation": "Create new or update existing server administrator", - "description": "Create or update server administrator" - } - }, - { - "name": "Microsoft.Sql/servers/administrators/delete", - "display": { - "provider": "Microsoft SQL Database", - "resource": "The server administrator", - "operation": "Delete server administrator", - "description": "Delete server administrator from the server" - } - }, - { - "name": "Microsoft.Sql/servers/administratorOperationResults/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "The server administrator operation results", - "operation": "Get server administrator operation results", - "description": "Retrieve server administrator operation results" - } - }, - { - "name": "Microsoft.Sql/servers/serviceObjectives/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Service Level Objective", - "operation": "Get service level objectives", - "description": "Retrieve list of service level objectives (also known as performance tiers) available on a given server" - } - }, - { - "name": "Microsoft.Sql/servers/restorableDroppedDatabases/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Restorable Dropped Database", - "operation": "Get list of restorable dropped databases", - "description": "Retrieve a list of databases that were dropped on a given server that are still within retention policy. This operation returns a list of databases and associated metadata, like date of deletion." - } - }, - { - "name": "Microsoft.Sql/servers/recoverableDatabases/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Recoverable Database", - "operation": "Get the last known database recovery point", - "description": "This operation is used for disaster recovery of live database to restore database to last-known good backup point. It returns information about the last good backup but it doesn't actually restore the database." - } - }, - { - "name": "Microsoft.Sql/servers/importExportOperationResults/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Database Import Operation Result", - "operation": "Get details about database import operation on the server", - "description": "Return the list with details for database import operations from storage account on a given server" - } - }, - { - "name": "Microsoft.Sql/servers/operationResults/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Upgrade Operation Result", - "operation": "Get status of server upgrade operation", - "description": "Operation is used to track progress of server upgrade from lower version to higher" - } - }, - { - "name": "Microsoft.Sql/servers/operationResults/delete", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Upgrade Operation Result", - "operation": "Cancel server upgrade", - "description": "Abort server version upgrade in progress" - } - }, - { - "name": "Microsoft.Sql/servers/usages/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Usage", - "operation": "Get server usage details", - "description": "Return server DTU quota and current DTU consumption by all databases within the server" - } - }, - { - "name": "Microsoft.Sql/servers/recommendedElasticPools/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Recommended Elastic Database Pool", - "operation": "Get recommended elastic database pools", - "description": "Retrieve recommendation for elastic database pools to reduce cost or improve performance based on historical resource utilization" - } - }, - { - "name": "Microsoft.Sql/servers/recommendedElasticPools/databases/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Recommended Elastic Pool Databases", - "operation": "Get recommended elastic pools databases", - "description": "Retrieve databases that should be added into recommended elastic database pools for a given server" - } - }, - { - "name": "Microsoft.Sql/servers/recommendedElasticPools/metrics/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Recommended Elastic Database Pool Metrics", - "operation": "Get recommended elastic database pools metrics", - "description": "Retrieve metrics for recommended elastic database pools for a given server" - } - }, - { - "name": "Microsoft.Sql/servers/disasterRecoveryConfiguration/operationResults/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Disaster Recovery Configuration Operation Results", - "operation": "Retrieve result for Operation Results on a Disaster Recovery Configuration", - "description": "Get Disaster Recovery Configuration Operation Results" - } - }, - { - "name": "Microsoft.Sql/servers/advisors/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server advisor", - "operation": "Get advisors for a server", - "description": "Returns list of advisors available for the server" - } - }, - { - "name": "Microsoft.Sql/servers/advisors/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server advisor", - "operation": "Update auto-execute status of a server advisor", - "description": "Updates auto-execute status of an advisor on server level." - } - }, - { - "name": "Microsoft.Sql/servers/advisors/recommendedActions/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Returns list of recommended actions of specified advisor for the server", - "operation": "Get recommended actions of a server", - "description": "Returns list of recommended actions of specified advisor for the server" - } - }, - { - "name": "Microsoft.Sql/servers/advisors/recommendedActions/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Returns list of recommended actions of specified advisor for the server", - "operation": "Update server recommended action state.", - "description": "Apply the recommended action on the server" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPoolEstimates/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic pool estimate", - "operation": "Get elastic pool estimates of a server", - "description": "Returns list of elastic pool estimates already created for this server" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPoolEstimates/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic pool estimate", - "operation": "Create an elastic pool estimate.", - "description": "Creates new elastic pool estimate for list of databases provided" - } - }, - { - "name": "Microsoft.Sql/servers/databases/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database", - "operation": "Get server details", - "description": "Return a list of servers in a resource group on a subscription" - } - }, - { - "name": "Microsoft.Sql/servers/databases/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database", - "operation": "Create new or update existing server", - "description": "Create a new server or modify properties of existing server in a resource group on a subscription" - } - }, - { - "name": "Microsoft.Sql/servers/databases/delete", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database", - "operation": "Delete existing server", - "description": "Delete a server and all contained databases and elastic pools" - } - }, - { - "name": "Microsoft.Sql/servers/databases/export/action", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database", - "operation": "Create new database from DacPac", - "description": "Create a new database on the server and deploy schema and data from a DacPac package" - } - }, - { - "name": "Microsoft.Sql/servers/databases/usages/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Usage", - "operation": "Get database usage details", - "description": "Return database maximum size that can be reached and current size occupied by data" - } - }, - { - "name": "Microsoft.Sql/servers/databases/operationResults/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Operation Result", - "operation": "Get status of database operation", - "description": "Operation is used to track progress of long running database operation, such as scale." - } - }, - { - "name": "Microsoft.Sql/servers/databases/importExportOperationResults/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Import/Export Operation Result", - "operation": "Get details about database import or export operation on the server", - "description": "Return details about database import or export operation from DacPac located in storage account" - } - }, - { - "name": "Microsoft.Sql/servers/databases/replicationLinks/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Replication Link", - "operation": "Get database replication links", - "description": "Return details about replication links established for a particular database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/replicationLinks/delete", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Replication Link", - "operation": "Force-terminate the replication relationship", - "description": "Terminate the replication relationship forcefully and with potential data loss" - } - }, - { - "name": "Microsoft.Sql/servers/databases/replicationLinks/unlink/action", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Replication Link", - "operation": "Terminate the replication relationship", - "description": "Terminate the replication relationship forcefully or after synchronizing with the partner" - } - }, - { - "name": "Microsoft.Sql/servers/databases/replicationLinks/failover/action", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Replication Link", - "operation": "Failover replication relationship after synchronizing", - "description": "Failover after synchronizing all changes from the primary, making this database into the replication relationship's primary and making the remote primary into a secondary" - } - }, - { - "name": "Microsoft.Sql/servers/databases/replicationLinks/forceFailoverAllowDataLoss/action", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Replication Link", - "operation": "Failover replication relationship immediately", - "description": "Failover immediately with potential data loss, making this database into the replication relationship's primary and making the remote primary into a secondary" - } - }, - { - "name": "Microsoft.Sql/servers/databases/replicationLinks/updateReplicationMode/action", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Replication Link", - "operation": "Update replication mode for link", - "description": "Update replication mode for link to synchronous or asynchronous mode" - } - }, - { - "name": "Microsoft.Sql/servers/databases/replicationLinks/operationResults/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Replication Link Operation Result", - "operation": "Get status of replication link operations", - "description": "Get status of long-running operations on database replication links" - } - }, - { - "name": "Microsoft.Sql/servers/databases/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Metric Definition", - "operation": "Get database metric definitions", - "description": "Return types of metrics that are available for databases" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "cpu_percent", - "displayName": "CPU percentage", - "displayDescription": "CPU percentage", - "unit": "Percent", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "physical_data_read_percent", - "displayName": "Data IO percentage", - "displayDescription": "Data IO percentage", - "unit": "Percent", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "log_write_percent", - "displayName": "Log IO percentage", - "displayDescription": "Log IO percentage", - "unit": "Percent", - "aggregationType": "Average", - "metricFilterPattern": "^((?!datawarehouse).)*$", - "fillGapWithZero": true - }, - { - "name": "dtu_consumption_percent", - "displayName": "DTU percentage", - "displayDescription": "DTU percentage", - "unit": "Percent", - "aggregationType": "Average", - "metricFilterPattern": "^((?!datawarehouse).)*$", - "fillGapWithZero": true - }, - { - "name": "storage", - "displayName": "Total database size", - "displayDescription": "Total database size", - "unit": "Bytes", - "aggregationType": "Maximum" - }, - { - "name": "connection_successful", - "displayName": "Successful Connections", - "displayDescription": "Successful Connections", - "unit": "Count", - "aggregationType": "Total", - "fillGapWithZero": true - }, - { - "name": "connection_failed", - "displayName": "Failed Connections", - "displayDescription": "Failed Connections", - "unit": "Count", - "aggregationType": "Total", - "fillGapWithZero": true - }, - { - "name": "blocked_by_firewall", - "displayName": "Blocked by Firewall", - "displayDescription": "Blocked by Firewall", - "unit": "Count", - "aggregationType": "Total", - "fillGapWithZero": true - }, - { - "name": "deadlock", - "displayName": "Deadlocks", - "displayDescription": "Deadlocks", - "unit": "Count", - "aggregationType": "Total", - "metricFilterPattern": "^((?!datawarehouse).)*$", - "fillGapWithZero": true - }, - { - "name": "storage_percent", - "displayName": "Database size percentage", - "displayDescription": "Database size percentage", - "unit": "Percent", - "aggregationType": "Maximum", - "metricFilterPattern": "^((?!datawarehouse).)*$" - }, - { - "name": "xtp_storage_percent", - "displayName": "In-Memory OLTP storage percent", - "displayDescription": "In-Memory OLTP storage percent", - "unit": "Percent", - "aggregationType": "Average", - "metricFilterPattern": "^((?!datawarehouse).)*$", - "fillGapWithZero": true - }, - { - "name": "workers_percent", - "displayName": "Workers percentage", - "displayDescription": "Workers percentage", - "unit": "Percent", - "aggregationType": "Average", - "metricFilterPattern": "^((?!datawarehouse).)*$", - "fillGapWithZero": true - }, - { - "name": "sessions_percent", - "displayName": "Sessions percentage", - "displayDescription": "Sessions percentage", - "unit": "Percent", - "aggregationType": "Average", - "metricFilterPattern": "^((?!datawarehouse).)*$", - "fillGapWithZero": true - }, - { - "name": "dtu_limit", - "displayName": "DTU Limit", - "displayDescription": "DTU Limit", - "unit": "Count", - "aggregationType": "Average", - "metricFilterPattern": "^((?!datawarehouse).)*$" - }, - { - "name": "dtu_used", - "displayName": "DTU used", - "displayDescription": "DTU used", - "unit": "Count", - "aggregationType": "Average", - "metricFilterPattern": "^((?!datawarehouse).)*$", - "fillGapWithZero": true - }, - { - "name": "dwu_limit", - "displayName": "DWU limit", - "displayDescription": "DWU limit", - "unit": "Count", - "aggregationType": "Maximum", - "metricFilterPattern": ".*datawarehouse.*$" - }, - { - "name": "dwu_consumption_percent", - "displayName": "DWU percentage", - "displayDescription": "DWU percentage", - "unit": "Percent", - "aggregationType": "Maximum", - "metricFilterPattern": ".*datawarehouse.*$", - "fillGapWithZero": true - }, - { - "name": "dwu_used", - "displayName": "DWU used", - "displayDescription": "DWU used", - "unit": "Count", - "aggregationType": "Maximum", - "metricFilterPattern": ".*datawarehouse.*$", - "fillGapWithZero": true - } - ] + "body": { + "value": [ + { + "name": "Microsoft.Sql/servers/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server", + "operation": "Get server details" } - } - }, - { - "name": "Microsoft.Sql/servers/databases/metrics/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Metric", - "operation": "Get database resource consumption metrics", - "description": "Return database resource utilization metrics" - } - }, - { - "name": "Microsoft.Sql/servers/databases/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Diagnostic Settings", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource" - } - }, - { - "name": "Microsoft.Sql/servers/databases/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Diagnostic Settings", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource" - } - }, - { - "name": "Microsoft.Sql/servers/databases/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "The log definition of databases", - "operation": "Read databases log definitions", - "description": "Gets the available logs for databases" - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "QueryStore", - "displayName": "Query Store", - "blobDuration": "PT1H" - } - ] + }, + { + "name": "Microsoft.Sql/servers/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server", + "operation": "Create new or update existing server" } - } - }, - { - "name": "Microsoft.Sql/servers/databases/missingindexes/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Index Advisor", - "operation": "Get recommended database indexes", - "description": "Return suggestions about database indexes to create, modify or delete in order to improve query performance" - } - }, - { - "name": "Microsoft.Sql/servers/databases/missingindexes/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Index Advisor", - "operation": "Apply recommended database index", - "description": "Use database index recommendation in a particular database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/schemas/tables/recommendedIndexes/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Recommended Index", - "operation": "Get list of index recommendations", - "description": "Retrieve list of index recommendations on a database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/schemas/tables/recommendedIndexes/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Recommended Index", - "operation": "Update Recommended Index State", - "description": "Apply index recommendation" - } - }, - { - "name": "Microsoft.Sql/servers/databases/schemas/tables/columns/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database table column", - "operation": "Get columns", - "description": "Retrieve list of columns of a table" - } - }, - { - "name": "Microsoft.Sql/servers/databases/queryStore/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Query Store settings", - "operation": "Get Query Store settings", - "description": "Returns current values of Query Store settings for the database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/queryStore/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Query Store settings", - "operation": "Update Query Store settings", - "description": "Updates Query Store setting for the database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/topQueries/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Top Queries", - "operation": "Get Top Queries for the database", - "description": "Returns aggregated runtime statistics for selected query in selected time period" - } - }, - { - "name": "Microsoft.Sql/servers/databases/topQueries/statistics/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Top Queries Statistics", - "operation": "Get Database Top Queries statistics", - "description": "Returns aggregated runtime statistics for selected query in selected time period" - } - }, - { - "name": "Microsoft.Sql/servers/databases/topQueries/queryText/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Top Queries query text", - "operation": "Get Database Top Queries query text", - "description": "Returns the Transact-SQL text for selected query ID" - } - }, - { - "name": "Microsoft.Sql/servers/databases/serviceTierAdvisors/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Service Tier Advisor", - "operation": "Get recommended database performance level", - "description": "Return suggestion about scaling database up or down based on query execution statistics to improve performance or reduce cost" - } - }, - { - "name": "Microsoft.Sql/servers/databases/transparentDataEncryption/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Transparent Data Encryption", - "operation": "Get database transparent data encryption details", - "description": "Retrieve status and details of transparent data encryption security feature for a given database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/transparentDataEncryption/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Transparent Data Encryption", - "operation": "Change transparent data encryption state", - "description": "Enable or disable transparent data encryption for a given database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/transparentDataEncryption/operationResults/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Transparent Data Encryption", - "operation": "Get database transparent data encryption details", - "description": "Retrieve status and details of transparent data encryption security feature for a given database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/auditingPolicies/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Table Auditing Policy", - "operation": "Get database table auditing policy", - "description": "Retrieve details of the table auditing policy configured on a given database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/auditingPolicies/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Table Auditing Policy", - "operation": "Set database table auditing policy", - "description": "Change the table auditing policy for a given database" - } - }, - { - "name": "Microsoft.Sql/servers/auditingPolicies/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Default Server Table Auditing Policy", - "operation": "Get default server table auditing policy", - "description": "Retrieve details of the default server table auditing policy configured on a given server" - } - }, - { - "name": "Microsoft.Sql/servers/auditingPolicies/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Default Server Table Auditing Policy", - "operation": "Set default server table auditing policy", - "description": "Change the default server table auditing for a given server" - } - }, - { - "name": "Microsoft.Sql/servers/databases/auditingSettings/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Blob Auditing Policy", - "operation": "Get database blob auditing policy", - "description": "Retrieve details of the blob auditing policy configured on a given database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/auditingSettings/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Blob Auditing Policy", - "operation": "Set database blob auditing policy", - "description": "Change the blob auditing policy for a given database" - } - }, - { - "name": "Microsoft.Sql/servers/auditingSettings/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Blob Auditing Policy", - "operation": "Get server blob auditing policy", - "description": "Retrieve details of the server blob auditing policy configured on a given server" - } - }, - { - "name": "Microsoft.Sql/servers/auditingSettings/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Blob Auditing Policy", - "operation": "Set server blob auditing policy", - "description": "Change the server blob auditing for a given server" - } - }, - { - "name": "Microsoft.Sql/servers/auditingSettings/operationResults/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Blob Auditing Operation Results", - "operation": "Get server blob auditing operation results", - "description": "Retrieve result of the server blob auditing policy Set operation" - } - }, - { - "name": "Microsoft.Sql/servers/databases/auditRecords/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Blob Audit Records", - "operation": "Get database blob audit records", - "description": "Retrieve the database blob audit records" - } - }, - { - "name": "Microsoft.Sql/servers/databases/connectionPolicies/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Connection Policy", - "operation": "Get database connection policy", - "description": "Retrieve details of the connection policy configured on a given database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/connectionPolicies/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Connection Policy", - "operation": "Set database connection policy", - "description": "Change connection policy for a given database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/dataMaskingPolicies/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Data Masking Policy", - "operation": "Get database data masking policy", - "description": "Retrieve details of the data masking policy configured on a given database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/dataMaskingPolicies/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Data Masking Policy", - "operation": "Set database data masking policy", - "description": "Change data masking policy for a given database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/dataMaskingPolicies/rules/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Data Masking Policy Rule", - "operation": "Get database data masking policy rule", - "description": "Retrieve details of the data masking policy rule configured on a given database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/dataMaskingPolicies/rules/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Data Masking Policy Rule", - "operation": "Set database data masking policy rule", - "description": "Change data masking policy rule for a given database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/securityAlertPolicies/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Threat Detection Policy", - "operation": "Get database threat detection policy", - "description": "Retrieve details of the threat detection policy configured on a given database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/securityAlertPolicies/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database Threat Detection Policy", - "operation": "Set threat detection auditing policy", - "description": "Change the threat detection policy for a given database" - } - }, - { - "name": "Microsoft.Sql/servers/securityAlertPolicies/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Threat Detection Policy", - "operation": "Get server threat detection policy", - "description": "Retrieve details of the server threat detection policy configured on a given server" - } - }, - { - "name": "Microsoft.Sql/servers/securityAlertPolicies/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Threat Detection Policy", - "operation": "Set server threat detection policy", - "description": "Change the server threat detection for a given server" - } - }, - { - "name": "Microsoft.Sql/servers/securityAlertPolicies/operationResults/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Server Threat Detection Operation Results", - "operation": "Get server Threat Detection operation results", - "description": "Retrieve results of the server Threat Detection policy Set operation" - } - }, - { - "name": "Microsoft.Sql/servers/databases/VulnerabilityAssessmentScans/action", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Vulnerability Assessment Database Scan", - "operation": "Execute vulnerability assessment database scan", - "description": "Execute vulnerability assessment database scan." - } - }, - { - "name": "Microsoft.Sql/servers/VulnerabilityAssessmentScans/action", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Vulnerability Assessment Server Scan", - "operation": "Execute vulnerability assessment server scan", - "description": "Execute vulnerability assessment server scan" - } - }, - { - "name": "Microsoft.Sql/servers/databases/advisors/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database advisor", - "operation": "Get advisors for a database", - "description": "Returns list of advisors available for the database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/advisors/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database advisor", - "operation": "Update auto-execute status of a database advisor", - "description": "Update auto-execute status of an advisor on database level." - } - }, - { - "name": "Microsoft.Sql/servers/databases/advisors/recommendedActions/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database recommended action", - "operation": "Get recommended actions for a database", - "description": "Returns list of recommended actions of specified advisor for the database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/advisors/recommendedActions/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database recommended action", - "operation": "Update database recommended action state.", - "description": "Apply the recommended action on the database" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic Database Pool", - "operation": "Get elastic database pool details", - "description": "Retrieve details of elastic database pool on a given server" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic Database Pool", - "operation": "Create new or update existing elastic database pool", - "description": "Create a new or change properties of existing elastic database pool" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/delete", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic Database Pool", - "operation": "Delete elastic database pool", - "description": "Delete existing elastic database pool" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/databases/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database", - "operation": "Get elastic pool databases", - "description": "Retrieve list and details of databases that are part of elastic database pool on a given server" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/elasticPoolActivity/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic Database Pool Activity", - "operation": "Get elastic database pool activity", - "description": "Retrieve activities and details on a given elastic database pool" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/elasticPoolDatabaseActivity/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic Pool Database Activity", - "operation": "Get elastic pool database activity", - "description": "Retrieve activities and details on a given database that is part of elastic database pool" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic Database Pool Metric Definition", - "operation": "Get elastic pool metric definitions", - "description": "Return types of metrics that are available for elastic database pools" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "cpu_percent", - "displayName": "CPU percentage", - "displayDescription": "CPU percentage", - "unit": "Percent", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "physical_data_read_percent", - "displayName": "Data IO percentage", - "displayDescription": "Data IO percentage", - "unit": "Percent", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "log_write_percent", - "displayName": "Log IO percentage", - "displayDescription": "Log IO percentage", - "unit": "Percent", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "dtu_consumption_percent", - "displayName": "DTU percentage", - "displayDescription": "DTU percentage", - "unit": "Percent", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "storage_percent", - "displayName": "Storage percentage", - "displayDescription": "Storage percentage", - "unit": "Percent", - "aggregationType": "Average" - }, - { - "name": "workers_percent", - "displayName": "Workers percentage", - "displayDescription": "Workers percentage", - "unit": "Percent", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "sessions_percent", - "displayName": "Sessions percentage", - "displayDescription": "Sessions percentage", - "unit": "Percent", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "eDTU_limit", - "displayName": "eDTU limit", - "displayDescription": "eDTU limit", - "unit": "Count", - "aggregationType": "Average" - }, - { - "name": "storage_limit", - "displayName": "Storage limit", - "displayDescription": "Storage limit", - "unit": "Bytes", - "aggregationType": "Average" - }, - { - "name": "eDTU_used", - "displayName": "eDTU used", - "displayDescription": "eDTU used", - "unit": "Count", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "storage_used", - "displayName": "Storage used", - "displayDescription": "Storage used", - "unit": "Bytes", - "aggregationType": "Average" - }, - { - "name": "xtp_storage_percent", - "displayName": "In-Memory OLTP storage percent", - "displayDescription": "In-Memory OLTP storage percent", - "unit": "Percent", - "aggregationType": "Average", - "fillGapWithZero": true - } - ] + }, + { + "name": "Microsoft.Sql/servers/delete", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server", + "operation": "Delete existing server" + } + }, + { + "name": "Microsoft.Sql/servers/import/action", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server", + "operation": "Create new database from DacPac" + } + }, + { + "name": "Microsoft.Sql/servers/upgrade/action", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server", + "operation": "Upgrade server version" + } + }, + { + "name": "Microsoft.Sql/servers/firewallRules/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Firewall Rule", + "operation": "Get server firewall rules" + } + }, + { + "name": "Microsoft.Sql/servers/firewallRules/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Firewall Rule", + "operation": "Create new or update existing server firewall rule" + } + }, + { + "name": "Microsoft.Sql/servers/firewallRules/delete", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Firewall Rule", + "operation": "Delete server firewall rule" + } + }, + { + "name": "Microsoft.Sql/servers/administrators/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "The server administrator", + "operation": "Get server administrator" + } + }, + { + "name": "Microsoft.Sql/servers/administrators/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "The server administrator", + "operation": "Create new or update existing server administrator" + } + }, + { + "name": "Microsoft.Sql/servers/administrators/delete", + "display": { + "provider": "Microsoft SQL Database", + "resource": "The server administrator", + "operation": "Delete server administrator" + } + }, + { + "name": "Microsoft.Sql/servers/administratorOperationResults/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "The server administrator operation results", + "operation": "Get server administrator operation results" + } + }, + { + "name": "Microsoft.Sql/servers/serviceObjectives/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Service Level Objective", + "operation": "Get service level objectives" + } + }, + { + "name": "Microsoft.Sql/servers/restorableDroppedDatabases/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Restorable Dropped Database", + "operation": "Get list of restorable dropped databases" + } + }, + { + "name": "Microsoft.Sql/servers/recoverableDatabases/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Recoverable Database", + "operation": "Get the last known database recovery point" + } + }, + { + "name": "Microsoft.Sql/servers/importExportOperationResults/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Database Import Operation Result", + "operation": "Get details about database import operation on the server" + } + }, + { + "name": "Microsoft.Sql/servers/operationResults/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Upgrade Operation Result", + "operation": "Get status of server upgrade operation" + } + }, + { + "name": "Microsoft.Sql/servers/operationResults/delete", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Upgrade Operation Result", + "operation": "Cancel server upgrade" + } + }, + { + "name": "Microsoft.Sql/servers/usages/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Usage", + "operation": "Get server usage details" + } + }, + { + "name": "Microsoft.Sql/servers/recommendedElasticPools/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Recommended Elastic Database Pool", + "operation": "Get recommended elastic database pools" + } + }, + { + "name": "Microsoft.Sql/servers/recommendedElasticPools/databases/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Recommended Elastic Pool Databases", + "operation": "Get recommended elastic pools databases" + } + }, + { + "name": "Microsoft.Sql/servers/recommendedElasticPools/metrics/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Recommended Elastic Database Pool Metrics", + "operation": "Get recommended elastic database pools metrics" + } + }, + { + "name": "Microsoft.Sql/servers/disasterRecoveryConfiguration/operationResults/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Disaster Recovery Configuration Operation Results", + "operation": "Retrieve result for Operation Results on a Disaster Recovery Configuration" + } + }, + { + "name": "Microsoft.Sql/servers/advisors/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server advisor", + "operation": "Get advisors for a server" + } + }, + { + "name": "Microsoft.Sql/servers/advisors/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server advisor", + "operation": "Update auto-execute status of a server advisor" + } + }, + { + "name": "Microsoft.Sql/servers/advisors/recommendedActions/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Returns list of recommended actions of specified advisor for the server", + "operation": "Get recommended actions of a server" + } + }, + { + "name": "Microsoft.Sql/servers/advisors/recommendedActions/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Returns list of recommended actions of specified advisor for the server", + "operation": "Update server recommended action state." + } + }, + { + "name": "Microsoft.Sql/servers/elasticPoolEstimates/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic pool estimate", + "operation": "Get elastic pool estimates of a server" + } + }, + { + "name": "Microsoft.Sql/servers/elasticPoolEstimates/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic pool estimate", + "operation": "Create an elastic pool estimate." + } + }, + { + "name": "Microsoft.Sql/servers/databases/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database", + "operation": "Get server details" + } + }, + { + "name": "Microsoft.Sql/servers/databases/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database", + "operation": "Create new or update existing server" + } + }, + { + "name": "Microsoft.Sql/servers/databases/delete", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database", + "operation": "Delete existing server" + } + }, + { + "name": "Microsoft.Sql/servers/databases/export/action", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database", + "operation": "Create new database from DacPac" + } + }, + { + "name": "Microsoft.Sql/servers/databases/usages/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Usage", + "operation": "Get database usage details" + } + }, + { + "name": "Microsoft.Sql/servers/databases/operationResults/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Operation Result", + "operation": "Get status of database operation" + } + }, + { + "name": "Microsoft.Sql/servers/databases/importExportOperationResults/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Import/Export Operation Result", + "operation": "Get details about database import or export operation on the server" + } + }, + { + "name": "Microsoft.Sql/servers/databases/replicationLinks/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Replication Link", + "operation": "Get database replication links" + } + }, + { + "name": "Microsoft.Sql/servers/databases/replicationLinks/delete", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Replication Link", + "operation": "Force-terminate the replication relationship" + } + }, + { + "name": "Microsoft.Sql/servers/databases/replicationLinks/unlink/action", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Replication Link", + "operation": "Terminate the replication relationship" + } + }, + { + "name": "Microsoft.Sql/servers/databases/replicationLinks/failover/action", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Replication Link", + "operation": "Failover replication relationship after synchronizing" + } + }, + { + "name": "Microsoft.Sql/servers/databases/replicationLinks/forceFailoverAllowDataLoss/action", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Replication Link", + "operation": "Failover replication relationship immediately" + } + }, + { + "name": "Microsoft.Sql/servers/databases/replicationLinks/updateReplicationMode/action", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Replication Link", + "operation": "Update replication mode for link" + } + }, + { + "name": "Microsoft.Sql/servers/databases/replicationLinks/operationResults/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Replication Link Operation Result", + "operation": "Get status of replication link operations" + } + }, + { + "name": "Microsoft.Sql/servers/databases/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Metric Definition", + "operation": "Get database metric definitions" + }, + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "cpu_percent", + "displayName": "CPU percentage", + "displayDescription": "CPU percentage", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "physical_data_read_percent", + "displayName": "Data IO percentage", + "displayDescription": "Data IO percentage", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "log_write_percent", + "displayName": "Log IO percentage", + "displayDescription": "Log IO percentage", + "unit": "Percent", + "aggregationType": "Average", + "metricFilterPattern": "^((?!datawarehouse).)*$", + "fillGapWithZero": true + }, + { + "name": "dtu_consumption_percent", + "displayName": "DTU percentage", + "displayDescription": "DTU percentage", + "unit": "Percent", + "aggregationType": "Average", + "metricFilterPattern": "^((?!datawarehouse).)*$", + "fillGapWithZero": true + }, + { + "name": "storage", + "displayName": "Total database size", + "displayDescription": "Total database size", + "unit": "Bytes", + "aggregationType": "Maximum" + }, + { + "name": "connection_successful", + "displayName": "Successful Connections", + "displayDescription": "Successful Connections", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": true + }, + { + "name": "connection_failed", + "displayName": "Failed Connections", + "displayDescription": "Failed Connections", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": true + }, + { + "name": "blocked_by_firewall", + "displayName": "Blocked by Firewall", + "displayDescription": "Blocked by Firewall", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": true + }, + { + "name": "deadlock", + "displayName": "Deadlocks", + "displayDescription": "Deadlocks", + "unit": "Count", + "aggregationType": "Total", + "metricFilterPattern": "^((?!datawarehouse).)*$", + "fillGapWithZero": true + }, + { + "name": "storage_percent", + "displayName": "Database size percentage", + "displayDescription": "Database size percentage", + "unit": "Percent", + "aggregationType": "Maximum", + "metricFilterPattern": "^((?!datawarehouse).)*$" + }, + { + "name": "xtp_storage_percent", + "displayName": "In-Memory OLTP storage percent", + "displayDescription": "In-Memory OLTP storage percent", + "unit": "Percent", + "aggregationType": "Average", + "metricFilterPattern": "^((?!datawarehouse).)*$", + "fillGapWithZero": true + }, + { + "name": "workers_percent", + "displayName": "Workers percentage", + "displayDescription": "Workers percentage", + "unit": "Percent", + "aggregationType": "Average", + "metricFilterPattern": "^((?!datawarehouse).)*$", + "fillGapWithZero": true + }, + { + "name": "sessions_percent", + "displayName": "Sessions percentage", + "displayDescription": "Sessions percentage", + "unit": "Percent", + "aggregationType": "Average", + "metricFilterPattern": "^((?!datawarehouse).)*$", + "fillGapWithZero": true + }, + { + "name": "dtu_limit", + "displayName": "DTU Limit", + "displayDescription": "DTU Limit", + "unit": "Count", + "aggregationType": "Average", + "metricFilterPattern": "^((?!datawarehouse).)*$" + }, + { + "name": "dtu_used", + "displayName": "DTU used", + "displayDescription": "DTU used", + "unit": "Count", + "aggregationType": "Average", + "metricFilterPattern": "^((?!datawarehouse).)*$", + "fillGapWithZero": true + }, + { + "name": "dwu_limit", + "displayName": "DWU limit", + "displayDescription": "DWU limit", + "unit": "Count", + "aggregationType": "Maximum", + "metricFilterPattern": ".*datawarehouse.*$" + }, + { + "name": "dwu_consumption_percent", + "displayName": "DWU percentage", + "displayDescription": "DWU percentage", + "unit": "Percent", + "aggregationType": "Maximum", + "metricFilterPattern": ".*datawarehouse.*$", + "fillGapWithZero": true + }, + { + "name": "dwu_used", + "displayName": "DWU used", + "displayDescription": "DWU used", + "unit": "Count", + "aggregationType": "Maximum", + "metricFilterPattern": ".*datawarehouse.*$", + "fillGapWithZero": true + } + ] + } + } + }, + { + "name": "Microsoft.Sql/servers/databases/metrics/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Metric", + "operation": "Get database resource consumption metrics" + } + }, + { + "name": "Microsoft.Sql/servers/databases/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Diagnostic Settings", + "operation": "Read diagnostic setting" + } + }, + { + "name": "Microsoft.Sql/servers/databases/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Diagnostic Settings", + "operation": "Write diagnostic setting" + } + }, + { + "name": "Microsoft.Sql/servers/databases/providers/Microsoft.Insights/logDefinitions/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "The log definition of databases", + "operation": "Read databases log definitions" + }, + "properties": { + "serviceSpecification": { + "logSpecifications": [ + { + "name": "QueryStore", + "displayName": "Query Store", + "blobDuration": "PT1H" + } + ] + } + } + }, + { + "name": "Microsoft.Sql/servers/databases/missingindexes/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Index Advisor", + "operation": "Get recommended database indexes" + } + }, + { + "name": "Microsoft.Sql/servers/databases/missingindexes/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Index Advisor", + "operation": "Apply recommended database index" + } + }, + { + "name": "Microsoft.Sql/servers/databases/schemas/tables/recommendedIndexes/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Recommended Index", + "operation": "Get list of index recommendations" + } + }, + { + "name": "Microsoft.Sql/servers/databases/schemas/tables/recommendedIndexes/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Recommended Index", + "operation": "Update Recommended Index State" + } + }, + { + "name": "Microsoft.Sql/servers/databases/schemas/tables/columns/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database table column", + "operation": "Get columns" + } + }, + { + "name": "Microsoft.Sql/servers/databases/queryStore/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Query Store settings", + "operation": "Get Query Store settings" + } + }, + { + "name": "Microsoft.Sql/servers/databases/queryStore/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Query Store settings", + "operation": "Update Query Store settings" + } + }, + { + "name": "Microsoft.Sql/servers/databases/topQueries/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Top Queries", + "operation": "Get Top Queries for the database" + } + }, + { + "name": "Microsoft.Sql/servers/databases/topQueries/statistics/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Top Queries Statistics", + "operation": "Get Database Top Queries statistics" + } + }, + { + "name": "Microsoft.Sql/servers/databases/topQueries/queryText/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Top Queries query text", + "operation": "Get Database Top Queries query text" + } + }, + { + "name": "Microsoft.Sql/servers/databases/serviceTierAdvisors/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Service Tier Advisor", + "operation": "Get recommended database performance level" + } + }, + { + "name": "Microsoft.Sql/servers/databases/transparentDataEncryption/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Transparent Data Encryption", + "operation": "Get database transparent data encryption details" + } + }, + { + "name": "Microsoft.Sql/servers/databases/transparentDataEncryption/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Transparent Data Encryption", + "operation": "Change transparent data encryption state" + } + }, + { + "name": "Microsoft.Sql/servers/databases/transparentDataEncryption/operationResults/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Transparent Data Encryption", + "operation": "Get database transparent data encryption details" + } + }, + { + "name": "Microsoft.Sql/servers/databases/auditingPolicies/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Table Auditing Policy", + "operation": "Get database table auditing policy" + } + }, + { + "name": "Microsoft.Sql/servers/databases/auditingPolicies/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Table Auditing Policy", + "operation": "Set database table auditing policy" + } + }, + { + "name": "Microsoft.Sql/servers/auditingPolicies/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Default Server Table Auditing Policy", + "operation": "Get default server table auditing policy" + } + }, + { + "name": "Microsoft.Sql/servers/auditingPolicies/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Default Server Table Auditing Policy", + "operation": "Set default server table auditing policy" + } + }, + { + "name": "Microsoft.Sql/servers/databases/auditingSettings/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Blob Auditing Policy", + "operation": "Get database blob auditing policy" + } + }, + { + "name": "Microsoft.Sql/servers/databases/auditingSettings/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Blob Auditing Policy", + "operation": "Set database blob auditing policy" + } + }, + { + "name": "Microsoft.Sql/servers/auditingSettings/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Blob Auditing Policy", + "operation": "Get server blob auditing policy" + } + }, + { + "name": "Microsoft.Sql/servers/auditingSettings/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Blob Auditing Policy", + "operation": "Set server blob auditing policy" + } + }, + { + "name": "Microsoft.Sql/servers/auditingSettings/operationResults/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Blob Auditing Operation Results", + "operation": "Get server blob auditing operation results" + } + }, + { + "name": "Microsoft.Sql/servers/databases/auditRecords/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Blob Audit Records", + "operation": "Get database blob audit records" + } + }, + { + "name": "Microsoft.Sql/servers/databases/connectionPolicies/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Connection Policy", + "operation": "Get database connection policy" + } + }, + { + "name": "Microsoft.Sql/servers/databases/connectionPolicies/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Connection Policy", + "operation": "Set database connection policy" + } + }, + { + "name": "Microsoft.Sql/servers/databases/dataMaskingPolicies/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Data Masking Policy", + "operation": "Get database data masking policy" + } + }, + { + "name": "Microsoft.Sql/servers/databases/dataMaskingPolicies/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Data Masking Policy", + "operation": "Set database data masking policy" + } + }, + { + "name": "Microsoft.Sql/servers/databases/dataMaskingPolicies/rules/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Data Masking Policy Rule", + "operation": "Get database data masking policy rule" + } + }, + { + "name": "Microsoft.Sql/servers/databases/dataMaskingPolicies/rules/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Data Masking Policy Rule", + "operation": "Set database data masking policy rule" + } + }, + { + "name": "Microsoft.Sql/servers/databases/securityAlertPolicies/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Threat Detection Policy", + "operation": "Get database threat detection policy" + } + }, + { + "name": "Microsoft.Sql/servers/databases/securityAlertPolicies/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database Threat Detection Policy", + "operation": "Set threat detection auditing policy" + } + }, + { + "name": "Microsoft.Sql/servers/securityAlertPolicies/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Threat Detection Policy", + "operation": "Get server threat detection policy" + } + }, + { + "name": "Microsoft.Sql/servers/securityAlertPolicies/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Threat Detection Policy", + "operation": "Set server threat detection policy" + } + }, + { + "name": "Microsoft.Sql/servers/securityAlertPolicies/operationResults/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Server Threat Detection Operation Results", + "operation": "Get server Threat Detection operation results" + } + }, + { + "name": "Microsoft.Sql/servers/databases/VulnerabilityAssessmentScans/action", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Vulnerability Assessment Database Scan", + "operation": "Execute vulnerability assessment database scan" + } + }, + { + "name": "Microsoft.Sql/servers/VulnerabilityAssessmentScans/action", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Vulnerability Assessment Server Scan", + "operation": "Execute vulnerability assessment server scan" + } + }, + { + "name": "Microsoft.Sql/servers/databases/advisors/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database advisor", + "operation": "Get advisors for a database" + } + }, + { + "name": "Microsoft.Sql/servers/databases/advisors/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database advisor", + "operation": "Update auto-execute status of a database advisor" + } + }, + { + "name": "Microsoft.Sql/servers/databases/advisors/recommendedActions/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database recommended action", + "operation": "Get recommended actions for a database" + } + }, + { + "name": "Microsoft.Sql/servers/databases/advisors/recommendedActions/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database recommended action", + "operation": "Update database recommended action state." + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic Database Pool", + "operation": "Get elastic database pool details" + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic Database Pool", + "operation": "Create new or update existing elastic database pool" + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/delete", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic Database Pool", + "operation": "Delete elastic database pool" + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/databases/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database", + "operation": "Get elastic pool databases" + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/elasticPoolActivity/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic Database Pool Activity", + "operation": "Get elastic database pool activity" + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/elasticPoolDatabaseActivity/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic Pool Database Activity", + "operation": "Get elastic pool database activity" + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic Database Pool Metric Definition", + "operation": "Get elastic pool metric definitions" + }, + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "cpu_percent", + "displayName": "CPU percentage", + "displayDescription": "CPU percentage", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "physical_data_read_percent", + "displayName": "Data IO percentage", + "displayDescription": "Data IO percentage", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "log_write_percent", + "displayName": "Log IO percentage", + "displayDescription": "Log IO percentage", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "dtu_consumption_percent", + "displayName": "DTU percentage", + "displayDescription": "DTU percentage", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "storage_percent", + "displayName": "Storage percentage", + "displayDescription": "Storage percentage", + "unit": "Percent", + "aggregationType": "Average" + }, + { + "name": "workers_percent", + "displayName": "Workers percentage", + "displayDescription": "Workers percentage", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "sessions_percent", + "displayName": "Sessions percentage", + "displayDescription": "Sessions percentage", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "eDTU_limit", + "displayName": "eDTU limit", + "displayDescription": "eDTU limit", + "unit": "Count", + "aggregationType": "Average" + }, + { + "name": "storage_limit", + "displayName": "Storage limit", + "displayDescription": "Storage limit", + "unit": "Bytes", + "aggregationType": "Average" + }, + { + "name": "eDTU_used", + "displayName": "eDTU used", + "displayDescription": "eDTU used", + "unit": "Count", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "storage_used", + "displayName": "Storage used", + "displayDescription": "Storage used", + "unit": "Bytes", + "aggregationType": "Average" + }, + { + "name": "xtp_storage_percent", + "displayName": "In-Memory OLTP storage percent", + "displayDescription": "In-Memory OLTP storage percent", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + } + ] + } + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/metrics/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic Database Pool Metric", + "operation": "Get elastic pool resource consumption metrics" + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/operationResults/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic Database Pool Operation Result", + "operation": "Get elastic database pool operation result" + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/advisors/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic pool advisor", + "operation": "Get advisors for an elastic pool" + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/advisors/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic pool advisor", + "operation": "Update auto-execute status of a elastic pool advisor" + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/advisors/recommendedActions/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic pool recommended action", + "operation": "Get recommended actions for an elastic pool" + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/advisors/recommendedActions/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic pool recommended action", + "operation": "Update elastic pool recommended action state." + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic Database Pool Diagnostic Settings", + "operation": "Read diagnostic setting" + } + }, + { + "name": "Microsoft.Sql/servers/elasticPools/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Elastic Database Pool Diagnostic Settings", + "operation": "Write diagnostic setting" + } + }, + { + "name": "Microsoft.Sql/servers/databases/pause/action", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database", + "operation": "Pause a database" + } + }, + { + "name": "Microsoft.Sql/servers/databases/resume/action", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Database", + "operation": "Resume a database" + } + }, + { + "name": "Microsoft.Sql/servers/databases/dataWarehouseQueries/read", + "display": { + "provider": "Microsoft SQL Database", + "resource": "Data Warehouse Query", + "operation": "Get details about data warehouse query" + } + }, + { + "name": "Microsoft.Sql/servers/databases/dataWarehouseQueries/dataWarehouseQuerySteps/read", + "display": { + "provider": "Microsoft SQL Database", + "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." } } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/metrics/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic Database Pool Metric", - "operation": "Get elastic pool resource consumption metrics", - "description": "Return elastic database pool resource utilization metrics" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/operationResults/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic Database Pool Operation Result", - "operation": "Get elastic database pool operation result", - "description": "Retrieve details on a given elastic database pool operation" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/advisors/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic pool advisor", - "operation": "Get advisors for an elastic pool", - "description": "Returns list of advisors available for the elastic pool" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/advisors/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic pool advisor", - "operation": "Update auto-execute status of a elastic pool advisor", - "description": "Update auto-execute status of an advisor on elastic pool level." - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/advisors/recommendedActions/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic pool recommended action", - "operation": "Get recommended actions for an elastic pool", - "description": "Returns list of recommended actions of specified advisor for the elastic pool" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/advisors/recommendedActions/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic pool recommended action", - "operation": "Update elastic pool recommended action state.", - "description": "Apply the recommended action on the elastic pool" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic Database Pool Diagnostic Settings", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource" - } - }, - { - "name": "Microsoft.Sql/servers/elasticPools/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Elastic Database Pool Diagnostic Settings", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource" - } - }, - { - "name": "Microsoft.Sql/servers/databases/pause/action", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database", - "operation": "Pause a database", - "description": "Pause a DataWarehouse edition database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/resume/action", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Database", - "operation": "Resume a database", - "description": "Resume a DataWarehouse edition database" - } - }, - { - "name": "Microsoft.Sql/servers/databases/dataWarehouseQueries/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Data Warehouse Query", - "operation": "Get details about data warehouse query", - "description": "Returns the data warehouse distribution query information for selected query ID" - } - }, - { - "name": "Microsoft.Sql/servers/databases/dataWarehouseQueries/dataWarehouseQuerySteps/read", - "display": { - "provider": "Microsoft SQL Database", - "resource": "Data Warehouse Query Step", - "operation": "Get details about data warehouse query step", - "description": "Returns the distributed query step information of data warehouse query for selected step ID" - } - }, - { - "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", - "description": "This operation is used to get a backup long term retention vault. It returns information about the vault registered to this server." - } - }, - { - "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.", - "description": "Register a backup long term retention vault" - } - } - ] + ] + } } } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/QueriesList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/QueriesList.json index 6e2a1d6b3da8..c7830d7319e5 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/QueriesList.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/QueriesList.json @@ -8,61 +8,63 @@ }, "responses": { "200": { - "value": [ - { - "type": "Microsoft.Sql/servers/databases/topQueries", - "numberOfTopQueries": 1, - "aggregationFunction": "sum", - "executionType": "any", - "observedMetric": "cpu", - "observationStartTime": "2017-07-11T16:21:54.0916567Z", - "observationEndTime": "2017-07-12T16:21:54.0916567Z", - "intervalType": "PT1H", - "queries": [ - { - "queryId": "19", - "intervals": [ - { - "intervalStartTime": "2017-07-11T16:00:00", - "executionCount": 12, - "metrics": [ - { - "name": "cpu", - "displayName": "Cpu", - "unit": "percentage", - "value": 0.000763888888888889 - }, - { - "name": "io", - "displayName": "Physical Io Reads", - "unit": "percentage", - "value": 0.0 - }, - { - "name": "logIo", - "displayName": "Log Writes", - "unit": "percentage", - "value": 0.0 - }, - { - "name": "memory", - "displayName": "Memory consumption", - "unit": "KB", - "value": 0.0 - }, - { - "name": "duration", - "displayName": "Query duration", - "unit": "microseconds", - "value": 3308.0 - } - ] - } - ] - } - ] - } - ] + "body": { + "value": [ + { + "type": "Microsoft.Sql/servers/databases/topQueries", + "numberOfTopQueries": 1, + "aggregationFunction": "sum", + "executionType": "any", + "observedMetric": "cpu", + "observationStartTime": "2017-07-11T16:21:54.0916567Z", + "observationEndTime": "2017-07-12T16:21:54.0916567Z", + "intervalType": "PT1H", + "queries": [ + { + "queryId": "19", + "intervals": [ + { + "intervalStartTime": "2017-07-11T16:00:00", + "executionCount": 12, + "metrics": [ + { + "name": "cpu", + "displayName": "Cpu", + "unit": "percentage", + "value": 0.000763888888888889 + }, + { + "name": "io", + "displayName": "Physical Io Reads", + "unit": "percentage", + "value": 0.0 + }, + { + "name": "logIo", + "displayName": "Log Writes", + "unit": "percentage", + "value": 0.0 + }, + { + "name": "memory", + "displayName": "Memory consumption", + "unit": "KB", + "value": 0.0 + }, + { + "name": "duration", + "displayName": "Query duration", + "unit": "microseconds", + "value": 3308.0 + } + ] + } + ] + } + ] + } + ] + } } } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/QueryStatisticsList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/QueryStatisticsList.json index d9d9174294a2..58b3f7162e4a 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/QueryStatisticsList.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/QueryStatisticsList.json @@ -9,49 +9,51 @@ }, "responses": { "200": { - "value": [ - { - "queryId": "19", - "intervals": [ - { - "intervalStartTime": "2017-07-11T16:00:00", - "executionCount": 12, - "metrics": [ - { - "name": "cpu", - "displayName": "Cpu", - "unit": "percentage", - "value": 0.000763888888888889 - }, - { - "name": "io", - "displayName": "Physical Io Reads", - "unit": "percentage", - "value": 0.0 - }, - { - "name": "logIo", - "displayName": "Log Writes", - "unit": "percentage", - "value": 0.0 - }, - { - "name": "memory", - "displayName": "Memory consumption", - "unit": "KB", - "value": 0.0 - }, - { - "name": "duration", - "displayName": "Query duration", - "unit": "microseconds", - "value": 3308.0 - } - ] - } - ] - } - ] + "body": { + "value": [ + { + "queryId": "19", + "intervals": [ + { + "intervalStartTime": "2017-07-11T16:00:00", + "executionCount": 12, + "metrics": [ + { + "name": "cpu", + "displayName": "Cpu", + "unit": "percentage", + "value": 0.000763888888888889 + }, + { + "name": "io", + "displayName": "Physical Io Reads", + "unit": "percentage", + "value": 0.0 + }, + { + "name": "logIo", + "displayName": "Log Writes", + "unit": "percentage", + "value": 0.0 + }, + { + "name": "memory", + "displayName": "Memory consumption", + "unit": "KB", + "value": 0.0 + }, + { + "name": "duration", + "displayName": "Query duration", + "unit": "microseconds", + "value": 3308.0 + } + ] + } + ] + } + ] + } } } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/QueryTextsList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/QueryTextsList.json index 2b3f3dca7bee..70ec486d28c8 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/QueryTextsList.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/QueryTextsList.json @@ -9,13 +9,15 @@ }, "responses": { "200": { - "value": [ - { - "name": "current", - "queryText": "select 1", - "type": "Microsoft.Sql/servers/databases/topQueries/queryText" - } - ] + "body": { + "value": [ + { + "name": "current", + "queryText": "select 1", + "type": "Microsoft.Sql/servers/databases/topQueries/queryText" + } + ] + } } } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ReplicationLinkDelete.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ReplicationLinkDelete.json index 8d5937450a40..ebac700be866 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ReplicationLinkDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ReplicationLinkDelete.json @@ -8,11 +8,7 @@ "api-version": "2014-04-01" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServerDelete.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServerDelete.json index e4708fd7cd82..2490a683e709 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServerDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServerDelete.json @@ -6,11 +6,7 @@ "api-version": "2014-04-01" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServiceObjectiveGet.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServiceObjectiveGet.json index fd75558833e9..b3a7642f29d7 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServiceObjectiveGet.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServiceObjectiveGet.json @@ -8,16 +8,18 @@ }, "responses": { "200": { - "id": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/serviceObjectives/29dd7459-4a7c-4e56-be22-f0adda49440d", - "name": "29dd7459-4a7c-4e56-be22-f0adda49440d", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "System0", - "isDefault": false, - "isSystem": true, - "description": null, - "enabled": false + "body": { + "id": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/serviceObjectives/29dd7459-4a7c-4e56-be22-f0adda49440d", + "name": "29dd7459-4a7c-4e56-be22-f0adda49440d", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "System0", + "isDefault": false, + "isSystem": true, + "description": null, + "enabled": false + } } } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServiceObjectiveList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServiceObjectiveList.json index 937dc017b5e5..1834a37f74cd 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServiceObjectiveList.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServiceObjectiveList.json @@ -7,632 +7,634 @@ }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/26e021db-f1f9-4c98-84c6-92af8ef433d7", - "name": "26e021db-f1f9-4c98-84c6-92af8ef433d7", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "System", - "isDefault": false, - "isSystem": true, - "description": null, - "enabled": false - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/29dd7459-4a7c-4e56-be22-f0adda49440d", - "name": "29dd7459-4a7c-4e56-be22-f0adda49440d", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "System0", - "isDefault": false, - "isSystem": true, - "description": null, - "enabled": false - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/c99ac918-dbea-463f-a475-16ec020fdc12", - "name": "c99ac918-dbea-463f-a475-16ec020fdc12", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "System1", - "isDefault": false, - "isSystem": true, - "description": null, - "enabled": false - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/620323bf-2879-4807-b30d-c2e6d7b3b3aa", - "name": "620323bf-2879-4807-b30d-c2e6d7b3b3aa", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "System2", - "isDefault": false, - "isSystem": true, - "description": null, - "enabled": false - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/33d0db1f-6893-4210-99f9-463fb9b496a4", - "name": "33d0db1f-6893-4210-99f9-463fb9b496a4", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "System3", - "isDefault": false, - "isSystem": true, - "description": null, - "enabled": false - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/da24338c-a6c9-46c2-a4bf-4ac95b496ae4", - "name": "da24338c-a6c9-46c2-a4bf-4ac95b496ae4", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "System4", - "isDefault": false, - "isSystem": true, - "description": null, - "enabled": false - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/53f7fa1b-b0d0-43d6-bc29-c5f059fb36e9", - "name": "53f7fa1b-b0d0-43d6-bc29-c5f059fb36e9", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "System2L", - "isDefault": false, - "isSystem": true, - "description": null, - "enabled": false - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/e79cd55c-689f-48d9-bffa-0dd12c772248", - "name": "e79cd55c-689f-48d9-bffa-0dd12c772248", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "System3L", - "isDefault": false, - "isSystem": true, - "description": null, - "enabled": false - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/4b37bb6d-e004-47ac-8f7a-be56ac9fb490", - "name": "4b37bb6d-e004-47ac-8f7a-be56ac9fb490", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "System4L", - "isDefault": false, - "isSystem": true, - "description": null, - "enabled": false - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/6aa3bb3e-7f50-40d6-95ef-5497c30d99d8", - "name": "6aa3bb3e-7f50-40d6-95ef-5497c30d99d8", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "Free", - "isDefault": true, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/dd6d99bb-f193-4ec1-86f2-43d3bccbc49c", - "name": "dd6d99bb-f193-4ec1-86f2-43d3bccbc49c", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "Basic", - "isDefault": true, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/f1173c43-91bd-4aaa-973c-54e79e15235b", - "name": "f1173c43-91bd-4aaa-973c-54e79e15235b", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "S0", - "isDefault": true, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/1b1ebd4d-d903-4baa-97f9-4ea675f5e928", - "name": "1b1ebd4d-d903-4baa-97f9-4ea675f5e928", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "S1", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/455330e1-00cd-488b-b5fa-177c226f28b7", - "name": "455330e1-00cd-488b-b5fa-177c226f28b7", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "S2", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/789681b8-ca10-4eb0-bdf2-e0b050601b40", - "name": "789681b8-ca10-4eb0-bdf2-e0b050601b40", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "S3", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/7203483a-c4fb-4304-9e9f-17c71c904f5d", - "name": "7203483a-c4fb-4304-9e9f-17c71c904f5d", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "P1", - "isDefault": true, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0", - "name": "a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "P2", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/afe1eee1-1f12-4e5f-9ad6-2de9c12cb4dc", - "name": "afe1eee1-1f12-4e5f-9ad6-2de9c12cb4dc", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "P4", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/43940481-9191-475a-9dba-6b505615b9aa", - "name": "43940481-9191-475a-9dba-6b505615b9aa", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "P6", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/dd00d544-bbc0-4f61-ba60-cdce0c410288", - "name": "dd00d544-bbc0-4f61-ba60-cdce0c410288", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "P11", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/5bc86cca-9a96-4a94-90ef-bbdfcfbf2d71", - "name": "5bc86cca-9a96-4a94-90ef-bbdfcfbf2d71", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "P15", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/dfdc102c-ed02-4349-9756-e227f0e43bb8", - "name": "dfdc102c-ed02-4349-9756-e227f0e43bb8", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "PRS1", - "isDefault": true, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/a089506e-b47a-4f42-8a32-cc19af4c86fb", - "name": "a089506e-b47a-4f42-8a32-cc19af4c86fb", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "PRS2", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/39cb8faf-cba8-4b1b-b580-1e1202f2a024", - "name": "39cb8faf-cba8-4b1b-b580-1e1202f2a024", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "PRS4", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/1e8da92e-efcd-4682-9140-bf6582120d1f", - "name": "1e8da92e-efcd-4682-9140-bf6582120d1f", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "PRS6", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/4e63cb0e-91b9-46fd-b05c-51fdd2367618", - "name": "4e63cb0e-91b9-46fd-b05c-51fdd2367618", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DW100", - "isDefault": true, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/99e78a92-d724-4e1b-857b-2be661f3d153", - "name": "99e78a92-d724-4e1b-857b-2be661f3d153", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DW200", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/284f1aff-fee7-4d3b-a211-5b8ebdd28fea", - "name": "284f1aff-fee7-4d3b-a211-5b8ebdd28fea", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DW300", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/3bdaeefe-8a9d-41d3-91c4-46ef896b19af", - "name": "3bdaeefe-8a9d-41d3-91c4-46ef896b19af", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DW400", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/5f759b78-8ec0-4dfb-97cc-c1455a3b5b4d", - "name": "5f759b78-8ec0-4dfb-97cc-c1455a3b5b4d", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DW500", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/efd65c5b-af7b-4389-9109-f6a69d6a3885", - "name": "efd65c5b-af7b-4389-9109-f6a69d6a3885", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DW600", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/b89b9c6a-4ec2-4eb8-99db-6d2807e6aabb", - "name": "b89b9c6a-4ec2-4eb8-99db-6d2807e6aabb", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DW1000", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/9a7a374e-b95c-4fd5-a68e-131d60796c47", - "name": "9a7a374e-b95c-4fd5-a68e-131d60796c47", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DW1200", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/b930f58e-86b5-43e0-a2da-d8bf8769c557", - "name": "b930f58e-86b5-43e0-a2da-d8bf8769c557", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DW1500", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/99165ede-a5ab-4b52-b317-e391d92ec370", - "name": "99165ede-a5ab-4b52-b317-e391d92ec370", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DW2000", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/8e28c923-5cf2-43cb-bd25-28c8c69b30ff", - "name": "8e28c923-5cf2-43cb-bd25-28c8c69b30ff", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DW3000", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/ee1df062-4f3c-42ad-91bf-58b2a7c351e4", - "name": "ee1df062-4f3c-42ad-91bf-58b2a7c351e4", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DW6000", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/9cfc850f-d57f-4760-b5a6-bb640d268bf0", - "name": "9cfc850f-d57f-4760-b5a6-bb640d268bf0", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DS100", - "isDefault": true, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/053407ef-f01c-46f4-b829-96e01a14f449", - "name": "053407ef-f01c-46f4-b829-96e01a14f449", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DS200", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/013a9e10-cafc-45a8-8fcf-93095655d2ce", - "name": "013a9e10-cafc-45a8-8fcf-93095655d2ce", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DS300", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/79f61db4-8c10-46ba-a93a-d7d02dddd61c", - "name": "79f61db4-8c10-46ba-a93a-d7d02dddd61c", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DS400", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/44eaac33-df00-4ef4-a2bb-f7ff87899eea", - "name": "44eaac33-df00-4ef4-a2bb-f7ff87899eea", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DS500", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/f8e0f3a6-888b-459c-a9dd-d74d8b2b0e72", - "name": "f8e0f3a6-888b-459c-a9dd-d74d8b2b0e72", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DS600", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/b9ed8f51-a414-42dc-8348-e4a1de25e12b", - "name": "b9ed8f51-a414-42dc-8348-e4a1de25e12b", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DS1000", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/07479569-6d70-47a5-8db6-0af55d34f2c1", - "name": "07479569-6d70-47a5-8db6-0af55d34f2c1", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DS1200", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/2d79baec-2879-46d5-9f5d-fb70eb004c4e", - "name": "2d79baec-2879-46d5-9f5d-fb70eb004c4e", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DS1500", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/7fb5389f-6d15-4e0b-9540-fe5ecdfdbeee", - "name": "7fb5389f-6d15-4e0b-9540-fe5ecdfdbeee", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "DS2000", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - }, - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/d1737d22-a8ea-4de7-9bd0-33395d2a7419", - "name": "d1737d22-a8ea-4de7-9bd0-33395d2a7419", - "type": "Microsoft.Sql/servers/serviceObjectives", - "location": "Central US", - "properties": { - "serviceObjectiveName": "ElasticPool", - "isDefault": false, - "isSystem": false, - "description": null, - "enabled": true - } - } - ] + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/26e021db-f1f9-4c98-84c6-92af8ef433d7", + "name": "26e021db-f1f9-4c98-84c6-92af8ef433d7", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "System", + "isDefault": false, + "isSystem": true, + "description": null, + "enabled": false + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/29dd7459-4a7c-4e56-be22-f0adda49440d", + "name": "29dd7459-4a7c-4e56-be22-f0adda49440d", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "System0", + "isDefault": false, + "isSystem": true, + "description": null, + "enabled": false + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/c99ac918-dbea-463f-a475-16ec020fdc12", + "name": "c99ac918-dbea-463f-a475-16ec020fdc12", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "System1", + "isDefault": false, + "isSystem": true, + "description": null, + "enabled": false + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/620323bf-2879-4807-b30d-c2e6d7b3b3aa", + "name": "620323bf-2879-4807-b30d-c2e6d7b3b3aa", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "System2", + "isDefault": false, + "isSystem": true, + "description": null, + "enabled": false + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/33d0db1f-6893-4210-99f9-463fb9b496a4", + "name": "33d0db1f-6893-4210-99f9-463fb9b496a4", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "System3", + "isDefault": false, + "isSystem": true, + "description": null, + "enabled": false + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/da24338c-a6c9-46c2-a4bf-4ac95b496ae4", + "name": "da24338c-a6c9-46c2-a4bf-4ac95b496ae4", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "System4", + "isDefault": false, + "isSystem": true, + "description": null, + "enabled": false + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/53f7fa1b-b0d0-43d6-bc29-c5f059fb36e9", + "name": "53f7fa1b-b0d0-43d6-bc29-c5f059fb36e9", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "System2L", + "isDefault": false, + "isSystem": true, + "description": null, + "enabled": false + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/e79cd55c-689f-48d9-bffa-0dd12c772248", + "name": "e79cd55c-689f-48d9-bffa-0dd12c772248", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "System3L", + "isDefault": false, + "isSystem": true, + "description": null, + "enabled": false + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/4b37bb6d-e004-47ac-8f7a-be56ac9fb490", + "name": "4b37bb6d-e004-47ac-8f7a-be56ac9fb490", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "System4L", + "isDefault": false, + "isSystem": true, + "description": null, + "enabled": false + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/6aa3bb3e-7f50-40d6-95ef-5497c30d99d8", + "name": "6aa3bb3e-7f50-40d6-95ef-5497c30d99d8", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "Free", + "isDefault": true, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/dd6d99bb-f193-4ec1-86f2-43d3bccbc49c", + "name": "dd6d99bb-f193-4ec1-86f2-43d3bccbc49c", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "Basic", + "isDefault": true, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/f1173c43-91bd-4aaa-973c-54e79e15235b", + "name": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "S0", + "isDefault": true, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/1b1ebd4d-d903-4baa-97f9-4ea675f5e928", + "name": "1b1ebd4d-d903-4baa-97f9-4ea675f5e928", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "S1", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/455330e1-00cd-488b-b5fa-177c226f28b7", + "name": "455330e1-00cd-488b-b5fa-177c226f28b7", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "S2", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/789681b8-ca10-4eb0-bdf2-e0b050601b40", + "name": "789681b8-ca10-4eb0-bdf2-e0b050601b40", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "S3", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/7203483a-c4fb-4304-9e9f-17c71c904f5d", + "name": "7203483a-c4fb-4304-9e9f-17c71c904f5d", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "P1", + "isDefault": true, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0", + "name": "a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "P2", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/afe1eee1-1f12-4e5f-9ad6-2de9c12cb4dc", + "name": "afe1eee1-1f12-4e5f-9ad6-2de9c12cb4dc", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "P4", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/43940481-9191-475a-9dba-6b505615b9aa", + "name": "43940481-9191-475a-9dba-6b505615b9aa", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "P6", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/dd00d544-bbc0-4f61-ba60-cdce0c410288", + "name": "dd00d544-bbc0-4f61-ba60-cdce0c410288", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "P11", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/5bc86cca-9a96-4a94-90ef-bbdfcfbf2d71", + "name": "5bc86cca-9a96-4a94-90ef-bbdfcfbf2d71", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "P15", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/dfdc102c-ed02-4349-9756-e227f0e43bb8", + "name": "dfdc102c-ed02-4349-9756-e227f0e43bb8", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "PRS1", + "isDefault": true, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/a089506e-b47a-4f42-8a32-cc19af4c86fb", + "name": "a089506e-b47a-4f42-8a32-cc19af4c86fb", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "PRS2", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/39cb8faf-cba8-4b1b-b580-1e1202f2a024", + "name": "39cb8faf-cba8-4b1b-b580-1e1202f2a024", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "PRS4", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/1e8da92e-efcd-4682-9140-bf6582120d1f", + "name": "1e8da92e-efcd-4682-9140-bf6582120d1f", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "PRS6", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/4e63cb0e-91b9-46fd-b05c-51fdd2367618", + "name": "4e63cb0e-91b9-46fd-b05c-51fdd2367618", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DW100", + "isDefault": true, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/99e78a92-d724-4e1b-857b-2be661f3d153", + "name": "99e78a92-d724-4e1b-857b-2be661f3d153", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DW200", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/284f1aff-fee7-4d3b-a211-5b8ebdd28fea", + "name": "284f1aff-fee7-4d3b-a211-5b8ebdd28fea", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DW300", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/3bdaeefe-8a9d-41d3-91c4-46ef896b19af", + "name": "3bdaeefe-8a9d-41d3-91c4-46ef896b19af", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DW400", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/5f759b78-8ec0-4dfb-97cc-c1455a3b5b4d", + "name": "5f759b78-8ec0-4dfb-97cc-c1455a3b5b4d", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DW500", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/efd65c5b-af7b-4389-9109-f6a69d6a3885", + "name": "efd65c5b-af7b-4389-9109-f6a69d6a3885", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DW600", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/b89b9c6a-4ec2-4eb8-99db-6d2807e6aabb", + "name": "b89b9c6a-4ec2-4eb8-99db-6d2807e6aabb", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DW1000", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/9a7a374e-b95c-4fd5-a68e-131d60796c47", + "name": "9a7a374e-b95c-4fd5-a68e-131d60796c47", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DW1200", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/b930f58e-86b5-43e0-a2da-d8bf8769c557", + "name": "b930f58e-86b5-43e0-a2da-d8bf8769c557", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DW1500", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/99165ede-a5ab-4b52-b317-e391d92ec370", + "name": "99165ede-a5ab-4b52-b317-e391d92ec370", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DW2000", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/8e28c923-5cf2-43cb-bd25-28c8c69b30ff", + "name": "8e28c923-5cf2-43cb-bd25-28c8c69b30ff", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DW3000", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/ee1df062-4f3c-42ad-91bf-58b2a7c351e4", + "name": "ee1df062-4f3c-42ad-91bf-58b2a7c351e4", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DW6000", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/9cfc850f-d57f-4760-b5a6-bb640d268bf0", + "name": "9cfc850f-d57f-4760-b5a6-bb640d268bf0", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DS100", + "isDefault": true, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/053407ef-f01c-46f4-b829-96e01a14f449", + "name": "053407ef-f01c-46f4-b829-96e01a14f449", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DS200", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/013a9e10-cafc-45a8-8fcf-93095655d2ce", + "name": "013a9e10-cafc-45a8-8fcf-93095655d2ce", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DS300", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/79f61db4-8c10-46ba-a93a-d7d02dddd61c", + "name": "79f61db4-8c10-46ba-a93a-d7d02dddd61c", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DS400", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/44eaac33-df00-4ef4-a2bb-f7ff87899eea", + "name": "44eaac33-df00-4ef4-a2bb-f7ff87899eea", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DS500", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/f8e0f3a6-888b-459c-a9dd-d74d8b2b0e72", + "name": "f8e0f3a6-888b-459c-a9dd-d74d8b2b0e72", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DS600", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/b9ed8f51-a414-42dc-8348-e4a1de25e12b", + "name": "b9ed8f51-a414-42dc-8348-e4a1de25e12b", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DS1000", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/07479569-6d70-47a5-8db6-0af55d34f2c1", + "name": "07479569-6d70-47a5-8db6-0af55d34f2c1", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DS1200", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/2d79baec-2879-46d5-9f5d-fb70eb004c4e", + "name": "2d79baec-2879-46d5-9f5d-fb70eb004c4e", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DS1500", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/7fb5389f-6d15-4e0b-9540-fe5ecdfdbeee", + "name": "7fb5389f-6d15-4e0b-9540-fe5ecdfdbeee", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "DS2000", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/sqlcrudtest/serviceObjectives/d1737d22-a8ea-4de7-9bd0-33395d2a7419", + "name": "d1737d22-a8ea-4de7-9bd0-33395d2a7419", + "type": "Microsoft.Sql/servers/serviceObjectives", + "location": "Central US", + "properties": { + "serviceObjectiveName": "ElasticPool", + "isDefault": false, + "isSystem": false, + "description": null, + "enabled": true + } + } + ] + } } } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServiceTierAdvisorList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServiceTierAdvisorList.json index efcbfe6166c9..04d83a09b36d 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServiceTierAdvisorList.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServiceTierAdvisorList.json @@ -8,40 +8,42 @@ }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/serviceTierAdvisors/Current", - "name": "Current", - "type": "Microsoft.Sql/servers/databases/serviceTierAdvisors", - "properties": { - "observationPeriodStart": "2017-07-12T12:00:00Z", - "observationPeriodEnd": "2017-07-26T13:00:00Z", - "activeTimeRatio": 0.0, - "minDtu": 0.0, - "avgDtu": 0.0, - "maxDtu": 0.0, - "maxSizeInGB": 0.0234375, - "serviceLevelObjectiveUsageMetrics": [ - { - "serviceLevelObjective": "Basic", - "serviceLevelObjectiveId": "dd6d99bb-f193-4ec1-86f2-43d3bccbc49c", - "inRangeTimeRatio": 1.0 - } - ], - "currentServiceLevelObjective": "S0", - "currentServiceLevelObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", - "usageBasedRecommendationServiceLevelObjective": null, - "usageBasedRecommendationServiceLevelObjectiveId": null, - "databaseSizeBasedRecommendationServiceLevelObjective": null, - "databaseSizeBasedRecommendationServiceLevelObjectiveId": null, - "disasterPlanBasedRecommendationServiceLevelObjective": null, - "disasterPlanBasedRecommendationServiceLevelObjectiveId": null, - "overallRecommendationServiceLevelObjective": null, - "overallRecommendationServiceLevelObjectiveId": null, - "confidence": 1.0 + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/serviceTierAdvisors/Current", + "name": "Current", + "type": "Microsoft.Sql/servers/databases/serviceTierAdvisors", + "properties": { + "observationPeriodStart": "2017-07-12T12:00:00Z", + "observationPeriodEnd": "2017-07-26T13:00:00Z", + "activeTimeRatio": 0.0, + "minDtu": 0.0, + "avgDtu": 0.0, + "maxDtu": 0.0, + "maxSizeInGB": 0.0234375, + "serviceLevelObjectiveUsageMetrics": [ + { + "serviceLevelObjective": "Basic", + "serviceLevelObjectiveId": "dd6d99bb-f193-4ec1-86f2-43d3bccbc49c", + "inRangeTimeRatio": 1.0 + } + ], + "currentServiceLevelObjective": "S0", + "currentServiceLevelObjectiveId": "f1173c43-91bd-4aaa-973c-54e79e15235b", + "usageBasedRecommendationServiceLevelObjective": null, + "usageBasedRecommendationServiceLevelObjectiveId": null, + "databaseSizeBasedRecommendationServiceLevelObjective": null, + "databaseSizeBasedRecommendationServiceLevelObjectiveId": null, + "disasterPlanBasedRecommendationServiceLevelObjective": null, + "disasterPlanBasedRecommendationServiceLevelObjectiveId": null, + "overallRecommendationServiceLevelObjective": null, + "overallRecommendationServiceLevelObjectiveId": null, + "confidence": 1.0 + } } - } - ] + ] + } } } } diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index 2392da3460ac..20bdd83e5620 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -73,7 +73,6 @@ input-file: - Microsoft.Sql/preview/2015-05-01-preview/databaseAutomaticTuning.json - Microsoft.Sql/preview/2015-05-01-preview/encryptionProtectors.json - Microsoft.Sql/preview/2015-05-01-preview/failoverGroups.json -- Microsoft.Sql/preview/2015-05-01-preview/managedInstances.json - 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/servers.json @@ -99,6 +98,7 @@ input-file: - Microsoft.Sql/preview/2017-03-01-preview/ManagedDatabaseSecurityAlertPolicies.json - Microsoft.Sql/preview/2017-03-01-preview/ManagedServerSecurityAlertPolicy.json - Microsoft.Sql/preview/2017-03-01-preview/SensitivityLabels.json +- Microsoft.Sql/preview/2017-03-01-preview/managedInstanceAdministrators.json - Microsoft.Sql/preview/2017-10-01-preview/cancelOperations.json - Microsoft.Sql/preview/2017-10-01-preview/cancelPoolOperations.json - Microsoft.Sql/preview/2017-10-01-preview/capabilities.json @@ -120,7 +120,9 @@ input-file: - Microsoft.Sql/preview/2018-06-01-preview/managedDatabaseSensitivityLabels.json - Microsoft.Sql/preview/2018-06-01-preview/instancePools.json - Microsoft.Sql/preview/2018-06-01-preview/usages.json - +- Microsoft.Sql/preview/2018-06-01-preview/managedInstances.json +- Microsoft.Sql/preview/2018-06-01-preview/FailoverDatabases.json +- Microsoft.Sql/preview/2018-06-01-preview/FailoverElasticPools.json # Needed when there is more than one input file override-info: @@ -166,7 +168,6 @@ input-file: - Microsoft.Sql/preview/2015-05-01-preview/databaseAutomaticTuning.json - Microsoft.Sql/preview/2015-05-01-preview/encryptionProtectors.json - Microsoft.Sql/preview/2015-05-01-preview/failoverGroups.json -- Microsoft.Sql/preview/2015-05-01-preview/managedInstances.json - 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/servers.json @@ -193,6 +194,7 @@ input-file: - Microsoft.Sql/preview/2017-03-01-preview/ManagedDatabaseSecurityAlertPolicies.json - Microsoft.Sql/preview/2017-03-01-preview/ManagedServerSecurityAlertPolicy.json - Microsoft.Sql/preview/2017-03-01-preview/SensitivityLabels.json +- Microsoft.Sql/preview/2017-03-01-preview/managedInstanceAdministrators.json - Microsoft.Sql/preview/2017-10-01-preview/cancelOperations.json - Microsoft.Sql/preview/2017-10-01-preview/cancelPoolOperations.json - Microsoft.Sql/preview/2017-10-01-preview/databaseVulnerabilityAssessmentScans.json @@ -211,6 +213,9 @@ input-file: - Microsoft.Sql/preview/2018-06-01-preview/managedDatabaseSensitivityLabels.json - Microsoft.Sql/preview/2018-06-01-preview/instancePools.json - Microsoft.Sql/preview/2018-06-01-preview/usages.json +- Microsoft.Sql/preview/2018-06-01-preview/managedInstances.json +- Microsoft.Sql/preview/2018-06-01-preview/FailoverDatabases.json +- Microsoft.Sql/preview/2018-06-01-preview/FailoverElasticPools.json # Needed when there is more than one input file override-info: @@ -251,7 +256,6 @@ input-file: - Microsoft.Sql/preview/2015-05-01-preview/databaseAutomaticTuning.json - Microsoft.Sql/preview/2015-05-01-preview/encryptionProtectors.json - Microsoft.Sql/preview/2015-05-01-preview/failoverGroups.json -- Microsoft.Sql/preview/2015-05-01-preview/managedInstances.json - 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/servers.json @@ -277,6 +281,7 @@ input-file: - Microsoft.Sql/preview/2017-03-01-preview/ManagedDatabaseSecurityAlertPolicies.json - Microsoft.Sql/preview/2017-03-01-preview/ManagedServerSecurityAlertPolicy.json - Microsoft.Sql/preview/2017-03-01-preview/SensitivityLabels.json +- Microsoft.Sql/preview/2017-03-01-preview/managedInstanceAdministrators.json - Microsoft.Sql/preview/2017-10-01-preview/cancelOperations.json - Microsoft.Sql/preview/2017-10-01-preview/cancelPoolOperations.json - Microsoft.Sql/preview/2017-10-01-preview/databaseVulnerabilityAssessmentScans.json @@ -295,6 +300,9 @@ input-file: - Microsoft.Sql/preview/2018-06-01-preview/managedDatabaseSensitivityLabels.json - Microsoft.Sql/preview/2018-06-01-preview/instancePools.json - Microsoft.Sql/preview/2018-06-01-preview/usages.json +- Microsoft.Sql/preview/2018-06-01-preview/managedInstances.json +- Microsoft.Sql/preview/2018-06-01-preview/FailoverDatabases.json +- Microsoft.Sql/preview/2018-06-01-preview/FailoverElasticPools.json # Needed when there is more than one input file override-info: @@ -354,6 +362,7 @@ input-file: - Microsoft.Sql/preview/2017-03-01-preview/managedDatabases.json - Microsoft.Sql/preview/2017-03-01-preview/renameDatabase.json - Microsoft.Sql/preview/2017-03-01-preview/SensitivityLabels.json +- Microsoft.Sql/preview/2017-03-01-preview/managedInstanceAdministrators.json - Microsoft.Sql/preview/2017-03-01-preview/serverAutomaticTuning.json - Microsoft.Sql/preview/2017-03-01-preview/serverDnsAliases.json - Microsoft.Sql/preview/2017-03-01-preview/serverSecurityAlertPolicies.json @@ -460,6 +469,9 @@ input-file: - ./Microsoft.Sql/preview/2018-06-01-preview/ServerVulnerabilityAssessments.json - ./Microsoft.Sql/preview/2018-06-01-preview/instancePools.json - ./Microsoft.Sql/preview/2018-06-01-preview/usages.json + - ./Microsoft.Sql/preview/2018-06-01-preview/managedInstances.json + - ./Microsoft.Sql/preview/2018-06-01-preview/FailoverDatabases.json + - ./Microsoft.Sql/preview/2018-06-01-preview/FailoverElasticPools.json # Needed when there is more than one input file override-info: @@ -532,6 +544,7 @@ input-file: - ./Microsoft.Sql/preview/2017-03-01-preview/ManagedDatabaseSecurityAlertPolicies.json - ./Microsoft.Sql/preview/2017-03-01-preview/ManagedServerSecurityAlertPolicy.json - ./Microsoft.Sql/preview/2017-03-01-preview/SensitivityLabels.json + - ./Microsoft.Sql/preview/2017-03-01-preview/managedInstanceAdministrators.json # Needed when there is more than one input file override-info: @@ -637,6 +650,7 @@ 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 @@ -657,7 +671,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.Sql - output-folder: $(csharp-sdks-folder)/SqlManagement/Management.Sql/Generated + output-folder: $(csharp-sdks-folder)/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated clear-output-folder: true ``` @@ -710,3 +724,200 @@ directive: - suppress: EnumInsteadOfBoolean reason: This warning gives many positives for existing APIs that cannot be changed. ``` + +## 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.Sql/stable/2014-04-01/backups.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/connectionPolicies.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/dataMasking.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/firewallRules.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/geoBackupPolicies.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/importExport.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/metrics.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/recommendedElasticPoolsDecoupled.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/replicationLinks.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/serverAzureADAdministrators.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/serverCommunicationLinks.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/serviceObjectives.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/sql.core.json + - $(this-folder)/Microsoft.Sql/stable/2014-04-01/usages.json + - $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/databaseAutomaticTuning.json + - $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/encryptionProtectors.json + - $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/failoverGroups.json + - $(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/servers.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 + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/blobAuditing.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/databaseVulnerabilityAssessmentBaselines.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/databaseVulnerabilityAssessments.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/jobs.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/longTermRetention.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/ManagedBackupShortTermRetention.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/managedDatabases.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/ManagedRestorableDroppedDatabaseBackupShortTermRetenion.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/serverAutomaticTuning.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/serverDnsAliases.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/serverSecurityAlertPolicies.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/restorableDroppedManagedDatabases.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/restorePoints.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/ManagedDatabaseSecurityAlertPolicies.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/ManagedServerSecurityAlertPolicy.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/SensitivityLabels.json + - $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/managedInstanceAdministrators.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/cancelOperations.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/cancelPoolOperations.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/capabilities.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/databases.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/elasticPools.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/databaseVulnerabilityAssessmentScans.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/managedDatabaseVulnerabilityAssesmentRuleBaselines.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/managedDatabaseVulnerabilityAssessmentScans.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/managedDatabaseVulnerabilityAssessments.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/instanceFailoverGroups.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/shortTermRetentionPolicies.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/TdeCertificates.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/ManagedInstanceTdeCertificates.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/ManagedInstanceKeys.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/ManagedInstanceEncryptionProtectors.json + - $(this-folder)/Microsoft.Sql/preview/2017-10-01-preview/recoverableManagedDatabases.json + - $(this-folder)/Microsoft.Sql/preview/2018-06-01-preview/ManagedInstanceVulnerabilityAssessments.json + - $(this-folder)/Microsoft.Sql/preview/2018-06-01-preview/ServerVulnerabilityAssessments.json + - $(this-folder)/Microsoft.Sql/preview/2018-06-01-preview/managedDatabaseSensitivityLabels.json + - $(this-folder)/Microsoft.Sql/preview/2018-06-01-preview/instancePools.json + - $(this-folder)/Microsoft.Sql/preview/2018-06-01-preview/usages.json + - $(this-folder)/Microsoft.Sql/preview/2018-06-01-preview/managedInstances.json + - $(this-folder)/Microsoft.Sql/preview/2018-06-01-preview/FailoverDatabases.json + - $(this-folder)/Microsoft.Sql/preview/2018-06-01-preview/FailoverElasticPools.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/preview/2015-05-01-preview/managedInstances.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/stable/2014-04-01/restorePoints.json + - $(this-folder)/Microsoft.Sql/stable/2015-05-01/capabilities.json + - $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/blobAuditing.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 + - $(this-folder)/./Microsoft.Sql/preview/2018-06-01-preview/ServerVulnerabilityAssessments.json + - $(this-folder)/./Microsoft.Sql/preview/2018-06-01-preview/instancePools.json + - $(this-folder)/./Microsoft.Sql/preview/2018-06-01-preview/usages.json + - $(this-folder)/./Microsoft.Sql/preview/2018-06-01-preview/managedInstances.json + - $(this-folder)/./Microsoft.Sql/preview/2018-06-01-preview/FailoverDatabases.json + - $(this-folder)/./Microsoft.Sql/preview/2018-06-01-preview/FailoverElasticPools.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/cancelOperations.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/cancelPoolOperations.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/databaseVulnerabilityAssessmentScans.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/managedDatabaseVulnerabilityAssesmentRuleBaselines.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/managedDatabaseVulnerabilityAssessmentScans.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/managedDatabaseVulnerabilityAssessments.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/capabilities.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/databases.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/elasticPools.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/instanceFailoverGroups.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/shortTermRetentionPolicies.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/TdeCertificates.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/ManagedInstanceTdeCertificates.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/ManagedInstanceKeys.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/ManagedInstanceEncryptionProtectors.json + - $(this-folder)/./Microsoft.Sql/preview/2017-10-01-preview/recoverableManagedDatabases.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/blobAuditing.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/cancelOperations.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/databases.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/databaseVulnerabilityAssessmentBaselines.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/databaseVulnerabilityAssessments.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/dataWarehouseUserActivities.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/jobs.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/longTermRetention.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/ManagedBackupShortTermRetention.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/managedDatabases.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/ManagedRestorableDroppedDatabaseBackupShortTermRetenion.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/renameDatabase.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/restorableDroppedManagedDatabases.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/restorePoints.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/serverAutomaticTuning.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/serverDnsAliases.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/serverSecurityAlertPolicies.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/ManagedDatabaseSecurityAlertPolicies.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/ManagedServerSecurityAlertPolicy.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/SensitivityLabels.json + - $(this-folder)/./Microsoft.Sql/preview/2017-03-01-preview/managedInstanceAdministrators.json + - $(this-folder)/./Microsoft.Sql/preview/2015-05-01-preview/advisors.json + - $(this-folder)/./Microsoft.Sql/preview/2015-05-01-preview/blobAuditing.json + - $(this-folder)/./Microsoft.Sql/preview/2015-05-01-preview/databaseAutomaticTuning.json + - $(this-folder)/./Microsoft.Sql/preview/2015-05-01-preview/encryptionProtectors.json + - $(this-folder)/./Microsoft.Sql/preview/2015-05-01-preview/failoverGroups.json + - $(this-folder)/./Microsoft.Sql/preview/2015-05-01-preview/firewallRules.json + - $(this-folder)/./Microsoft.Sql/preview/2015-05-01-preview/managedInstances.json + - $(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/servers.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 + - $(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 + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/connectionPolicies.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/databases.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/dataMasking.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/deprecated.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/disasterRecoveryConfigurations.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/elasticPools.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/firewallRules.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/geoBackupPolicies.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/importExport.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/metrics.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/operations.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/queries.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/recommendedElasticPools.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/replicationLinks.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/restorePoints.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/serverAzureADAdministrators.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/serverCommunicationLinks.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/servers.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/serviceObjectives.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/sql.core.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/tableAuditing.json + - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/usages.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/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMAX.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMAX.json index d1f3bcfbcbcf..8dd58dbc7138 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMAX.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMAX.json @@ -9,6 +9,7 @@ "properties": { "sqlServerLicenseType": "PAYG", "sqlImageSku": "Enterprise", + "sqlManagement": "Full", "virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm", "serverConfigurationsManagementSettings": { "sqlConnectivityUpdateSettings": { @@ -62,7 +63,8 @@ "virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm", "provisioningState": "Updating", "sqlServerLicenseType": "PAYG", - "sqlImageSku": "Enterprise" + "sqlImageSku": "Enterprise", + "sqlManagement": "Full" }, "location": "northeurope", "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm", @@ -76,7 +78,8 @@ "virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm", "provisioningState": "Provisioning", "sqlServerLicenseType": "PAYG", - "sqlImageSku": "Unknown" + "sqlImageSku": "Unknown", + "sqlManagement": "Full" }, "location": "northeurope", "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm", diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json index ad71c1c263ad..7a534557f3ca 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json @@ -344,7 +344,7 @@ } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - SQL virtual machine group cannot be updated as it has attached a SQL virtual machine.\n\n * 400 InvalidSqlImageOffer - Provided SQL image offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, file share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account url.\n\n * 400 SqlVmGroupNameTooLong - SQL virtual machine group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SQL virtual machine group name.\n\n * 400 SqlVmGroupNotEmpty - SQL virtual machine group is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQL virtual machine group is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 ResourceExists - There was an internal error in cleaning up of resources.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - SQL virtual machine group cannot be updated as it has attached a SQL virtual machine.\n\n * 400 InvalidSqlImageOffer - Provided SQL image offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, file share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account url.\n\n * 400 SqlVmGroupNameTooLong - SQL virtual machine group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SQL virtual machine group name.\n\n * 400 InvalidStorageAccountCredentials - The storage account credentials provided are incorrect.\n\n * 400 InvalidStorageAccountType - Only storage account of type 'General-Purpose V2' is allowed for this operation.\n\n * 400 SqlVmGroupNotEmpty - SQL virtual machine group is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQL virtual machine group is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 ResourceExists - There was an internal error in cleaning up of resources.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." }, "201": { "description": "Successfully created the SQL virtual machine group.", @@ -389,7 +389,7 @@ "description": "Successfully deleted the SQL virtual machine group." }, "default": { - "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - SQL virtual machine group cannot be updated as it has attached a SQL virtual machine.\n\n * 400 InvalidSqlImageOffer - Provided SQL image offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, file share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account url.\n\n * 400 SqlVmGroupNameTooLong - SQL virtual machine group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SQL virtual machine group name.\n\n * 400 SqlVmGroupNotEmpty - SQL virtual machine group is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQL virtual machine group is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 ResourceExists - There was an internal error in cleaning up of resources.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - SQL virtual machine group cannot be updated as it has attached a SQL virtual machine.\n\n * 400 InvalidSqlImageOffer - Provided SQL image offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, file share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account url.\n\n * 400 SqlVmGroupNameTooLong - SQL virtual machine group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SQL virtual machine group name.\n\n * 400 InvalidStorageAccountCredentials - The storage account credentials provided are incorrect.\n\n * 400 InvalidStorageAccountType - Only storage account of type 'General-Purpose V2' is allowed for this operation.\n\n * 400 SqlVmGroupNotEmpty - SQL virtual machine group is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQL virtual machine group is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 ResourceExists - There was an internal error in cleaning up of resources.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." }, "202": { "description": "Deleting the SQL virtual machine group." @@ -446,7 +446,7 @@ } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - SQL virtual machine group cannot be updated as it has attached a SQL virtual machine.\n\n * 400 InvalidSqlImageOffer - Provided SQL image offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, file share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account url.\n\n * 400 SqlVmGroupNameTooLong - SQL virtual machine group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SQL virtual machine group name.\n\n * 400 SqlVmGroupNotEmpty - SQL virtual machine group is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQL virtual machine group is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 ResourceExists - There was an internal error in cleaning up of resources.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - SQL virtual machine group cannot be updated as it has attached a SQL virtual machine.\n\n * 400 InvalidSqlImageOffer - Provided SQL image offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, file share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account url.\n\n * 400 SqlVmGroupNameTooLong - SQL virtual machine group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SQL virtual machine group name.\n\n * 400 InvalidStorageAccountCredentials - The storage account credentials provided are incorrect.\n\n * 400 InvalidStorageAccountType - Only storage account of type 'General-Purpose V2' is allowed for this operation.\n\n * 400 SqlVmGroupNotEmpty - SQL virtual machine group is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQL virtual machine group is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 ResourceExists - There was an internal error in cleaning up of resources.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." } }, "x-ms-long-running-operation": true, @@ -658,7 +658,7 @@ } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - Virtual machine resource id property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SQL virtual machine cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - SQL virtual machine cannot be removed from group.\n\n * 400 VmLocationMismatch - VM location does not match that of SQL virtual machine.\n\n * 400 SqlSkuMismatchWithGroup - SQL sku set on the SQL virtual machine group does not match that of the SQL virtual machine.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 SingleNicOnVmAllowed - Only Single NIC virtual machines are allowed in a SQL VM Group.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SQL virtual machine group resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL virtual machine and SQL virtual machine group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for domain credentials property.\n\n * 400 BYOLChangeToPAYGNotSupported - The conversion from AHUB to PAYG is not supported for BYOL images\n\n * 400 InvalidVmResourceIdParameterValue - Provided virtual machine resource id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription id for SQL virtual machine and virtual machine resource id property.\n\n * 400 MismatchSqlVmAndVmName - SQL virtual machine name is not same as the virtual machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQL virtual machine resource group name is not same as the virtual machine resource group name provided on VirtualMachineResourceId property.\n\n * 400 NotSupportedSqlVmOSVersion - Virtual machine OS type is not Windows. Only Windows OS versions are supported\n\n * 400 VmNotRunning - The VM is not in running state.\n\n * 400 VmAgentNotRunning - The VM agent is not installed or in running state.\n\n * 400 SqlExtNotInstalled - Sql Iaas Extension is not installed on Virtual Machine.\n\n * 400 PAYGNotSupportedForNonGalleryVM - License type PAYG is invalid for this Virtual Machine as this was not created from Azure marketplace image.\n\n * 400 CannotDetermineSqlVersionAndEditionFromVm - Sql IaaS Extension cannot determine the SQL version and edition from the vm.\n\n * 400 MismatchSqlVmSku - Sql virtual machine sku mismatch.\n\n * 400 CannotConvertToAhub - Cannot convert Free SQL editions to AHUB. \n\n * 400 SqlEvaluationSkuNotSupported - SQL Evaluation version does not support licensing changes.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SQL virtual machine group.\n\n * 400 VmOSVersionMismatchWithGroup - OS version mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as auto backup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup storage credentials are not specified.\n\n * 400 KeyVaultCredentialsNotSpecified - Key vault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - SQL Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete SQL storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL virtual machine Instance in resource group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 ResourceExists - There was an internal error in cleaning up of resources.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - Virtual machine resource id property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SQL virtual machine cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - SQL virtual machine cannot be removed from group.\n\n * 400 VmLocationMismatch - VM location does not match that of SQL virtual machine.\n\n * 400 SqlSkuMismatchWithGroup - SQL sku set on the SQL virtual machine group does not match that of the SQL virtual machine.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 SingleNicOnVmAllowed - Only Single NIC virtual machines are allowed in a SQL VM Group.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SQL virtual machine group resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL virtual machine and SQL virtual machine group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for domain credentials property.\n\n * 400 BYOLChangeToPAYGNotSupported - The conversion from AHUB to PAYG is not supported for BYOL images\n\n * 400 InvalidVmResourceIdParameterValue - Provided virtual machine resource id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription id for SQL virtual machine and virtual machine resource id property.\n\n * 400 MismatchSqlVmAndVmName - SQL virtual machine name is not same as the virtual machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQL virtual machine resource group name is not same as the virtual machine resource group name provided on VirtualMachineResourceId property.\n\n * 400 NotSupportedSqlVmOSVersion - Virtual machine OS type is not Windows. Only Windows OS versions are supported\n\n * 400 VmNotRunning - The VM is not in running state.\n\n * 400 VmAgentNotRunning - The VM agent is not installed or in running state.\n\n * 400 SqlExtNotInstalled - Sql Iaas Extension is not installed on Virtual Machine.\n\n * 400 PAYGNotSupportedForNonGalleryVM - License type PAYG is invalid for this Virtual Machine as this was not created from Azure marketplace image.\n\n * 400 CannotDetermineSqlVersionAndEditionFromVm - Sql IaaS Extension cannot determine the SQL version and edition from the vm.\n\n * 400 MismatchSqlVmSku - Sql virtual machine sku mismatch.\n\n * 400 CannotConvertToAhub - Cannot convert Free SQL editions to AHUB. \n\n * 400 SqlEvaluationSkuNotSupported - SQL Evaluation version does not support licensing changes.\n\n * 400 IncompleteStorageConfigurationSettings - Incomplete Storage Configuration Settings\n\n * 400 InvalidDefaultFilePath - Invalid Default File Path \n\n * 400 InvalidLUNSpecified - Invalid LUN specified, LUN should be a non-negative number.\n\n * 400 BothStorageV1V2Specified - Invalid Request. Only one of SQL Storage Storage Setting or Storage Configuration Settings should be specified\n\n * 400 InvalidLUNSpecifiedForSameDrive - Invalid LUN specified. LUN used for the same drive need to be the same.\n\n * 400 InvalidLUNSpecifiedForDifferentDrives - Invalid LUN specified. Different drive could not reuse the same LUN.\n\n * 400 InvalidExtendPayload - Invalid Sql Storage Settings Extend Payload. Only one setting with one LUN is allowed.\n\n * 400 VmAgentIsRunningForNoAgent - Cannot create or update as NoAgent model while the Guest Agent is running.\n\n * 400 InvalidSqlManagementMode - Cannot update the SQL management mode to {0}, the current mode is {1}.\n\n * 400 CannotDetermineSqlEditionFromRequest - Cannot determine the SQL edition.\n\n * 400 SqlManagementMissing - Please specify the Management Mode for Sql Virtual Machine. The property is 'SqlManagement' and allowed values are LightWeight or Full.\n\n * 400 SqlImageSkuMissingNoAgent - Please specify the Sql Server Edition for Sql Virtual Machine in NoAgent Mode. The property is 'SqlImageSku' and allowed values are Developer, Express, Web, Standard, or Enterprise.\n\n * 400 SqlImageOfferMissingNoAgent - Please specify the Sql Server Version and OS Version for Sql Virtual Machine in NoAgent Mode. The property is 'SqlImageOffer' and allowed values are SQL2008-WS2008 and SQL2008R2-WS2008.\n\n * 400 InvalidSqlImageOfferChange - SqlImageOffer property cannot be updated.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SQL virtual machine group.\n\n * 400 VmOSVersionMismatchWithGroup - OS version mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as auto backup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup storage credentials are not specified.\n\n * 400 KeyVaultCredentialsNotSpecified - Key vault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - SQL Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete SQL storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL virtual machine Instance in resource group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 ResourceExists - There was an internal error in cleaning up of resources.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." }, "201": { "description": "Successfully created the SQL virtual machine.", @@ -709,7 +709,7 @@ "description": "Successfully deleted the SQL virtual machine." }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - Virtual machine resource id property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SQL virtual machine cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - SQL virtual machine cannot be removed from group.\n\n * 400 VmLocationMismatch - VM location does not match that of SQL virtual machine.\n\n * 400 SqlSkuMismatchWithGroup - SQL sku set on the SQL virtual machine group does not match that of the SQL virtual machine.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 SingleNicOnVmAllowed - Only Single NIC virtual machines are allowed in a SQL VM Group.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SQL virtual machine group resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL virtual machine and SQL virtual machine group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for domain credentials property.\n\n * 400 BYOLChangeToPAYGNotSupported - The conversion from AHUB to PAYG is not supported for BYOL images\n\n * 400 InvalidVmResourceIdParameterValue - Provided virtual machine resource id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription id for SQL virtual machine and virtual machine resource id property.\n\n * 400 MismatchSqlVmAndVmName - SQL virtual machine name is not same as the virtual machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQL virtual machine resource group name is not same as the virtual machine resource group name provided on VirtualMachineResourceId property.\n\n * 400 NotSupportedSqlVmOSVersion - Virtual machine OS type is not Windows. Only Windows OS versions are supported\n\n * 400 VmNotRunning - The VM is not in running state.\n\n * 400 VmAgentNotRunning - The VM agent is not installed or in running state.\n\n * 400 SqlExtNotInstalled - Sql Iaas Extension is not installed on Virtual Machine.\n\n * 400 PAYGNotSupportedForNonGalleryVM - License type PAYG is invalid for this Virtual Machine as this was not created from Azure marketplace image.\n\n * 400 CannotDetermineSqlVersionAndEditionFromVm - Sql IaaS Extension cannot determine the SQL version and edition from the vm.\n\n * 400 MismatchSqlVmSku - Sql virtual machine sku mismatch.\n\n * 400 CannotConvertToAhub - Cannot convert Free SQL editions to AHUB. \n\n * 400 SqlEvaluationSkuNotSupported - SQL Evaluation version does not support licensing changes.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SQL virtual machine group.\n\n * 400 VmOSVersionMismatchWithGroup - OS version mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as auto backup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup storage credentials are not specified.\n\n * 400 KeyVaultCredentialsNotSpecified - Key vault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - SQL Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete SQL storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL virtual machine Instance in resource group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 ResourceExists - There was an internal error in cleaning up of resources.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - Virtual machine resource id property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SQL virtual machine cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - SQL virtual machine cannot be removed from group.\n\n * 400 VmLocationMismatch - VM location does not match that of SQL virtual machine.\n\n * 400 SqlSkuMismatchWithGroup - SQL sku set on the SQL virtual machine group does not match that of the SQL virtual machine.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 SingleNicOnVmAllowed - Only Single NIC virtual machines are allowed in a SQL VM Group.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SQL virtual machine group resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL virtual machine and SQL virtual machine group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for domain credentials property.\n\n * 400 BYOLChangeToPAYGNotSupported - The conversion from AHUB to PAYG is not supported for BYOL images\n\n * 400 InvalidVmResourceIdParameterValue - Provided virtual machine resource id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription id for SQL virtual machine and virtual machine resource id property.\n\n * 400 MismatchSqlVmAndVmName - SQL virtual machine name is not same as the virtual machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQL virtual machine resource group name is not same as the virtual machine resource group name provided on VirtualMachineResourceId property.\n\n * 400 NotSupportedSqlVmOSVersion - Virtual machine OS type is not Windows. Only Windows OS versions are supported\n\n * 400 VmNotRunning - The VM is not in running state.\n\n * 400 VmAgentNotRunning - The VM agent is not installed or in running state.\n\n * 400 SqlExtNotInstalled - Sql Iaas Extension is not installed on Virtual Machine.\n\n * 400 PAYGNotSupportedForNonGalleryVM - License type PAYG is invalid for this Virtual Machine as this was not created from Azure marketplace image.\n\n * 400 CannotDetermineSqlVersionAndEditionFromVm - Sql IaaS Extension cannot determine the SQL version and edition from the vm.\n\n * 400 MismatchSqlVmSku - Sql virtual machine sku mismatch.\n\n * 400 CannotConvertToAhub - Cannot convert Free SQL editions to AHUB. \n\n * 400 SqlEvaluationSkuNotSupported - SQL Evaluation version does not support licensing changes.\n\n * 400 IncompleteStorageConfigurationSettings - Incomplete Storage Configuration Settings\n\n * 400 InvalidDefaultFilePath - Invalid Default File Path \n\n * 400 InvalidLUNSpecified - Invalid LUN specified, LUN should be a non-negative number.\n\n * 400 BothStorageV1V2Specified - Invalid Request. Only one of SQL Storage Storage Setting or Storage Configuration Settings should be specified\n\n * 400 InvalidLUNSpecifiedForSameDrive - Invalid LUN specified. LUN used for the same drive need to be the same.\n\n * 400 InvalidLUNSpecifiedForDifferentDrives - Invalid LUN specified. Different drive could not reuse the same LUN.\n\n * 400 InvalidExtendPayload - Invalid Sql Storage Settings Extend Payload. Only one setting with one LUN is allowed.\n\n * 400 VmAgentIsRunningForNoAgent - Cannot create or update as NoAgent model while the Guest Agent is running.\n\n * 400 InvalidSqlManagementMode - Cannot update the SQL management mode to {0}, the current mode is {1}.\n\n * 400 CannotDetermineSqlEditionFromRequest - Cannot determine the SQL edition.\n\n * 400 SqlManagementMissing - Please specify the Management Mode for Sql Virtual Machine. The property is 'SqlManagement' and allowed values are LightWeight or Full.\n\n * 400 SqlImageSkuMissingNoAgent - Please specify the Sql Server Edition for Sql Virtual Machine in NoAgent Mode. The property is 'SqlImageSku' and allowed values are Developer, Express, Web, Standard, or Enterprise.\n\n * 400 SqlImageOfferMissingNoAgent - Please specify the Sql Server Version and OS Version for Sql Virtual Machine in NoAgent Mode. The property is 'SqlImageOffer' and allowed values are SQL2008-WS2008 and SQL2008R2-WS2008.\n\n * 400 InvalidSqlImageOfferChange - SqlImageOffer property cannot be updated.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SQL virtual machine group.\n\n * 400 VmOSVersionMismatchWithGroup - OS version mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as auto backup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup storage credentials are not specified.\n\n * 400 KeyVaultCredentialsNotSpecified - Key vault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - SQL Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete SQL storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL virtual machine Instance in resource group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 ResourceExists - There was an internal error in cleaning up of resources.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." }, "202": { "description": "Deleting the SQL virtual machine." @@ -766,7 +766,7 @@ } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - Virtual machine resource id property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SQL virtual machine cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - SQL virtual machine cannot be removed from group.\n\n * 400 VmLocationMismatch - VM location does not match that of SQL virtual machine.\n\n * 400 SqlSkuMismatchWithGroup - SQL sku set on the SQL virtual machine group does not match that of the SQL virtual machine.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 SingleNicOnVmAllowed - Only Single NIC virtual machines are allowed in a SQL VM Group.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SQL virtual machine group resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL virtual machine and SQL virtual machine group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for domain credentials property.\n\n * 400 BYOLChangeToPAYGNotSupported - The conversion from AHUB to PAYG is not supported for BYOL images\n\n * 400 InvalidVmResourceIdParameterValue - Provided virtual machine resource id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription id for SQL virtual machine and virtual machine resource id property.\n\n * 400 MismatchSqlVmAndVmName - SQL virtual machine name is not same as the virtual machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQL virtual machine resource group name is not same as the virtual machine resource group name provided on VirtualMachineResourceId property.\n\n * 400 NotSupportedSqlVmOSVersion - Virtual machine OS type is not Windows. Only Windows OS versions are supported\n\n * 400 VmNotRunning - The VM is not in running state.\n\n * 400 VmAgentNotRunning - The VM agent is not installed or in running state.\n\n * 400 SqlExtNotInstalled - Sql Iaas Extension is not installed on Virtual Machine.\n\n * 400 PAYGNotSupportedForNonGalleryVM - License type PAYG is invalid for this Virtual Machine as this was not created from Azure marketplace image.\n\n * 400 CannotDetermineSqlVersionAndEditionFromVm - Sql IaaS Extension cannot determine the SQL version and edition from the vm.\n\n * 400 MismatchSqlVmSku - Sql virtual machine sku mismatch.\n\n * 400 CannotConvertToAhub - Cannot convert Free SQL editions to AHUB. \n\n * 400 SqlEvaluationSkuNotSupported - SQL Evaluation version does not support licensing changes.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SQL virtual machine group.\n\n * 400 VmOSVersionMismatchWithGroup - OS version mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as auto backup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup storage credentials are not specified.\n\n * 400 KeyVaultCredentialsNotSpecified - Key vault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - SQL Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete SQL storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL virtual machine Instance in resource group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 ResourceExists - There was an internal error in cleaning up of resources.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - Virtual machine resource id property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SQL virtual machine cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - SQL virtual machine cannot be removed from group.\n\n * 400 VmLocationMismatch - VM location does not match that of SQL virtual machine.\n\n * 400 SqlSkuMismatchWithGroup - SQL sku set on the SQL virtual machine group does not match that of the SQL virtual machine.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 SingleNicOnVmAllowed - Only Single NIC virtual machines are allowed in a SQL VM Group.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SQL virtual machine group resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL virtual machine and SQL virtual machine group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for domain credentials property.\n\n * 400 BYOLChangeToPAYGNotSupported - The conversion from AHUB to PAYG is not supported for BYOL images\n\n * 400 InvalidVmResourceIdParameterValue - Provided virtual machine resource id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription id for SQL virtual machine and virtual machine resource id property.\n\n * 400 MismatchSqlVmAndVmName - SQL virtual machine name is not same as the virtual machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQL virtual machine resource group name is not same as the virtual machine resource group name provided on VirtualMachineResourceId property.\n\n * 400 NotSupportedSqlVmOSVersion - Virtual machine OS type is not Windows. Only Windows OS versions are supported\n\n * 400 VmNotRunning - The VM is not in running state.\n\n * 400 VmAgentNotRunning - The VM agent is not installed or in running state.\n\n * 400 SqlExtNotInstalled - Sql Iaas Extension is not installed on Virtual Machine.\n\n * 400 PAYGNotSupportedForNonGalleryVM - License type PAYG is invalid for this Virtual Machine as this was not created from Azure marketplace image.\n\n * 400 CannotDetermineSqlVersionAndEditionFromVm - Sql IaaS Extension cannot determine the SQL version and edition from the vm.\n\n * 400 MismatchSqlVmSku - Sql virtual machine sku mismatch.\n\n * 400 CannotConvertToAhub - Cannot convert Free SQL editions to AHUB. \n\n * 400 SqlEvaluationSkuNotSupported - SQL Evaluation version does not support licensing changes.\n\n * 400 IncompleteStorageConfigurationSettings - Incomplete Storage Configuration Settings\n\n * 400 InvalidDefaultFilePath - Invalid Default File Path \n\n * 400 InvalidLUNSpecified - Invalid LUN specified, LUN should be a non-negative number.\n\n * 400 BothStorageV1V2Specified - Invalid Request. Only one of SQL Storage Storage Setting or Storage Configuration Settings should be specified\n\n * 400 InvalidLUNSpecifiedForSameDrive - Invalid LUN specified. LUN used for the same drive need to be the same.\n\n * 400 InvalidLUNSpecifiedForDifferentDrives - Invalid LUN specified. Different drive could not reuse the same LUN.\n\n * 400 InvalidExtendPayload - Invalid Sql Storage Settings Extend Payload. Only one setting with one LUN is allowed.\n\n * 400 VmAgentIsRunningForNoAgent - Cannot create or update as NoAgent model while the Guest Agent is running.\n\n * 400 InvalidSqlManagementMode - Cannot update the SQL management mode to {0}, the current mode is {1}.\n\n * 400 CannotDetermineSqlEditionFromRequest - Cannot determine the SQL edition.\n\n * 400 SqlManagementMissing - Please specify the Management Mode for Sql Virtual Machine. The property is 'SqlManagement' and allowed values are LightWeight or Full.\n\n * 400 SqlImageSkuMissingNoAgent - Please specify the Sql Server Edition for Sql Virtual Machine in NoAgent Mode. The property is 'SqlImageSku' and allowed values are Developer, Express, Web, Standard, or Enterprise.\n\n * 400 SqlImageOfferMissingNoAgent - Please specify the Sql Server Version and OS Version for Sql Virtual Machine in NoAgent Mode. The property is 'SqlImageOffer' and allowed values are SQL2008-WS2008 and SQL2008R2-WS2008.\n\n * 400 InvalidSqlImageOfferChange - SqlImageOffer property cannot be updated.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SQL virtual machine group.\n\n * 400 VmOSVersionMismatchWithGroup - OS version mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as auto backup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup storage credentials are not specified.\n\n * 400 KeyVaultCredentialsNotSpecified - Key vault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - SQL Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete SQL storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 ResourceNotProvisioned - As the resource: {0} is not in a provisioned state, the request cannot be proceeded forward\n\n * 400 InvalidRgResourceId - Invalid Resourcegroup resource id specified.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL virtual machine Instance in resource group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtensionNotInstalled - SQL extension not installed.\n\n * 409 MissingMoveResources - Cannot move resources(s) because some resources are missing in the request.\n\n * 409 ResourceExists - There was an internal error in cleaning up of resources.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 UnExpectedErrorOccurred - Unexpected error occurred.\n\n * 500 OperationTimeout - Operation timed out." } }, "x-ms-long-running-operation": true, @@ -1337,7 +1337,9 @@ "sqlImageOffer": { "description": "SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.", "type": "string", - "readOnly": true + "x-ms-mutability": [ + "create" + ] }, "sqlServerLicenseType": { "description": "SQL Server license type.", @@ -1351,6 +1353,19 @@ "modelAsString": true } }, + "sqlManagement": { + "description": "SQL Server Management type.", + "enum": [ + "Full", + "LightWeight", + "NoAgent" + ], + "type": "string", + "x-ms-enum": { + "name": "SqlManagementMode", + "modelAsString": true + } + }, "sqlImageSku": { "description": "SQL Server edition type.", "enum": [ diff --git a/specification/sqlvirtualmachine/resource-manager/readme.java.md b/specification/sqlvirtualmachine/resource-manager/readme.java.md new file mode 100644 index 000000000000..42d4e006deb8 --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/readme.java.md @@ -0,0 +1,35 @@ +## 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.sqlvirtualmachine +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-sqlvirtualmachine +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2017-03-01-preview +``` + +### Tag: package-2017-03-01-preview and java + +These settings apply only when `--tag=package-2017-03-01-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2017-03-01-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.sqlvirtualmachine.v2017_03_01_preview + output-folder: $(azure-libraries-for-java-folder)/sqlvirtualmachine/resource-manager/v2017_03_01_preview +regenerate-manager: true +generate-interface: true +``` + + diff --git a/specification/sqlvirtualmachine/resource-manager/readme.md b/specification/sqlvirtualmachine/resource-manager/readme.md index 6067c592d82e..57a9d7a5d7c9 100644 --- a/specification/sqlvirtualmachine/resource-manager/readme.md +++ b/specification/sqlvirtualmachine/resource-manager/readme.md @@ -52,8 +52,10 @@ 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-go + - repo: azure-sdk-for-java ``` @@ -67,7 +69,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.SqlVirtualMachine - output-folder: $(csharp-sdks-folder)/SqlVirtualMachine/Management.SqlVirtualMachine/Generated + output-folder: $(csharp-sdks-folder)/sqlvirtualmachine/Microsoft.Azure.Management.SqlVirtualMachine/src/Generated clear-output-folder: true ``` @@ -104,3 +106,32 @@ python: ### Go 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. + +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.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.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/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsCreateOrUpdate.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsCreateOrUpdate.json index 2d061e53b8c8..6a3a269d6209 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsCreateOrUpdate.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsCreateOrUpdate.json @@ -48,8 +48,6 @@ "type": "Microsoft.StorSimple/managers/accessControlRecords" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsDelete.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsDelete.json index bc16eaf2aa23..5b8c01f8cbba 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsDelete.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsDelete.json @@ -17,9 +17,7 @@ ] }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsClear.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsClear.json index a89870bfcfc2..3bb3fe23a9c3 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsClear.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsClear.json @@ -29,8 +29,6 @@ } }, "responses": { - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsSendTestEmail.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsSendTestEmail.json index 41e10692706d..af925c5b4520 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsSendTestEmail.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsSendTestEmail.json @@ -30,8 +30,6 @@ } }, "responses": { - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsCreateOrUpdate.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsCreateOrUpdate.json index c7d173b4a935..33b2b685f1df 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsCreateOrUpdate.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsCreateOrUpdate.json @@ -55,8 +55,6 @@ "type": "Microsoft.StorSimple/managers/devices/backupScheduleGroups" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsDelete.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsDelete.json index 0dfb75402c8a..ff35a2bf9024 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsDelete.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsDelete.json @@ -18,9 +18,7 @@ ] }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsClone.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsClone.json index 5aa5a38c12cc..1b83dfc49d75 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsClone.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsClone.json @@ -53,11 +53,7 @@ } }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsDelete.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsDelete.json index 928ccb9ef2bb..2bd56cc4f620 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsDelete.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsDelete.json @@ -19,9 +19,7 @@ ] }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsCreateOrUpdate.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsCreateOrUpdate.json index e2ac7d0f0763..56d706fe76cb 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsCreateOrUpdate.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsCreateOrUpdate.json @@ -57,8 +57,6 @@ "type": "Microsoft.StorSimple/managers/devices/chapSettings" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsDelete.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsDelete.json index 2a49f6b662e9..71472ac1df3f 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsDelete.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsDelete.json @@ -18,11 +18,7 @@ ] }, "responses": { - "202": { - "body": "" - }, - "204": { - "body": "" - } + "202": {}, + "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesCreateOrUpdateAlertSettings.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesCreateOrUpdateAlertSettings.json index e8848ea7ffd7..a49bb42597a8 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesCreateOrUpdateAlertSettings.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesCreateOrUpdateAlertSettings.json @@ -49,8 +49,6 @@ "type": "Microsoft.StorSimple/managers/devices/alertSettings" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesCreateOrUpdateSecuritySettings.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesCreateOrUpdateSecuritySettings.json index b64d90ac61b6..753ecf45fdbd 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesCreateOrUpdateSecuritySettings.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesCreateOrUpdateSecuritySettings.json @@ -16,11 +16,7 @@ } }, "responses": { - "202": { - "body": "" - }, - "204": { - "body": "" - } + "202": {}, + "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDeactivate.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDeactivate.json index 8f1583571bb2..50faf6b1cec4 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDeactivate.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDeactivate.json @@ -7,9 +7,7 @@ "api-version": "2016-10-01" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDelete.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDelete.json index 8f1583571bb2..50faf6b1cec4 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDelete.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDelete.json @@ -7,9 +7,7 @@ "api-version": "2016-10-01" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDownloadUpdates.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDownloadUpdates.json index 75eb768074e4..c412747a0b03 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDownloadUpdates.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDownloadUpdates.json @@ -7,9 +7,7 @@ "api-version": "2017-06-01" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesFailover.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesFailover.json index 7847602ec1dc..34c945ebf351 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesFailover.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesFailover.json @@ -16,11 +16,7 @@ } }, "responses": { - "202": { - "body": "" - }, - "204": { - "body": "" - } + "202": {}, + "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesInstallUpdates.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesInstallUpdates.json index 75eb768074e4..c412747a0b03 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesInstallUpdates.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesInstallUpdates.json @@ -7,9 +7,7 @@ "api-version": "2017-06-01" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesPatch.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesPatch.json index 4533d3cbb157..1c9b312a9940 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesPatch.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesPatch.json @@ -34,8 +34,6 @@ "type": "Microsoft.StorSimple/managers/devices" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesScanForUpdates.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesScanForUpdates.json index d3ca658cdb5b..435918306cdb 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesScanForUpdates.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesScanForUpdates.json @@ -17,11 +17,7 @@ ] }, "responses": { - "202": { - "body": "" - }, - "204": { - "body": "" - } + "202": {}, + "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersBackupNow.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersBackupNow.json index 626c6cb198b9..130f5be93537 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersBackupNow.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersBackupNow.json @@ -18,9 +18,7 @@ ] }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersCreateOrUpdate.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersCreateOrUpdate.json index ca67541a5c4c..81a7900c1284 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersCreateOrUpdate.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersCreateOrUpdate.json @@ -55,8 +55,6 @@ "type": "Microsoft.StorSimple/managers/devices/fileServers" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersDelete.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersDelete.json index 4d88975ec22e..fe40d53e85c0 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersDelete.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersDelete.json @@ -18,9 +18,7 @@ ] }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesCreateOrUpdate.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesCreateOrUpdate.json index 934f819e383d..4036c6f247eb 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesCreateOrUpdate.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesCreateOrUpdate.json @@ -62,8 +62,6 @@ "type": "Microsoft.StorSimple/managers/devices/fileServers/shares" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesDelete.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesDelete.json index 321633dbccf6..39b1d814bb19 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesDelete.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesDelete.json @@ -19,9 +19,7 @@ ] }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksCreateOrUpdate.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksCreateOrUpdate.json index ca4db292a6e6..1531924ffb18 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksCreateOrUpdate.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksCreateOrUpdate.json @@ -62,8 +62,6 @@ "type": "Microsoft.StorSimple/managers/devices/iscsiServers/disks" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksDelete.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksDelete.json index e9887ffdacfb..2d9708633f3c 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksDelete.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksDelete.json @@ -19,9 +19,7 @@ ] }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersBackupNow.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersBackupNow.json index eefa7e45f1c9..f0268101f918 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersBackupNow.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersBackupNow.json @@ -18,9 +18,7 @@ ] }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersCreateOrUpdate.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersCreateOrUpdate.json index deb51e92be5a..39413b632d2f 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersCreateOrUpdate.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersCreateOrUpdate.json @@ -57,8 +57,6 @@ "type": "Microsoft.StorSimple/managers/devices/iscsiServers" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersDelete.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersDelete.json index dbab611876b2..d325e72b4720 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersDelete.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersDelete.json @@ -18,9 +18,7 @@ ] }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersDelete.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersDelete.json index 4371a7be4ca2..86115e8b10f6 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersDelete.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersDelete.json @@ -6,9 +6,7 @@ "api-version": "2017-06-01" }, "responses": { - "200": { - "body": "" - }, + "200": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersDeleteExtendedInfo.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersDeleteExtendedInfo.json index 21809246b735..24a0263eb712 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersDeleteExtendedInfo.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersDeleteExtendedInfo.json @@ -6,8 +6,6 @@ "api-version": "2016-10-01" }, "responses": { - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsCreateOrUpdate.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsCreateOrUpdate.json index ed9a737cb881..c1f0f58aec3d 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsCreateOrUpdate.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsCreateOrUpdate.json @@ -61,8 +61,6 @@ "type": "Microsoft.StorSimple/managers/storageAccountCredentials" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsDelete.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsDelete.json index feff0636054a..32ea50476e10 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsDelete.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsDelete.json @@ -17,9 +17,7 @@ ] }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageDomainsCreateOrUpdate.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageDomainsCreateOrUpdate.json index 8737f10beb67..805e5e07bdd4 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageDomainsCreateOrUpdate.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageDomainsCreateOrUpdate.json @@ -54,8 +54,6 @@ "type": "Microsoft.StorSimple/managers/storageDomains" } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageDomainsDelete.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageDomainsDelete.json index 01ee96e13103..66346ff401d2 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageDomainsDelete.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageDomainsDelete.json @@ -17,9 +17,7 @@ ] }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storSimple1200Series/resource-manager/readme.md b/specification/storSimple1200Series/resource-manager/readme.md index 5e3fe58bcf18..07c8c2d103b9 100644 --- a/specification/storSimple1200Series/resource-manager/readme.md +++ b/specification/storSimple1200Series/resource-manager/readme.md @@ -54,6 +54,7 @@ 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-node - repo: azure-sdk-for-js @@ -73,7 +74,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.StorSimple1200Series - output-folder: $(csharp-sdks-folder)/StorSimple1200Series/Management.StorSimple1200Series/Generated + output-folder: $(csharp-sdks-folder)/storsimple1200series/Microsoft.Azure.Management.StorSimple1200Series/src/Generated clear-output-folder: true ``` @@ -95,3 +96,28 @@ java: payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-storsimple1200series ``` + +## 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.StorSimple/stable/2016-10-01/StorSimple.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/storage/data-plane/Microsoft.StorageDataLake/stable/2018-11-09/DataLakeStorage.json b/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2018-11-09/DataLakeStorage.json index 6a1a18e2a72c..62bed5b267ac 100644 --- a/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2018-11-09/DataLakeStorage.json +++ b/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2018-11-09/DataLakeStorage.json @@ -1911,4 +1911,4 @@ ] } } -} \ No newline at end of file +} diff --git a/specification/storage/data-plane/readme.md b/specification/storage/data-plane/readme.md index 941e2d0bfd54..d3ec35c080b4 100644 --- a/specification/storage/data-plane/readme.md +++ b/specification/storage/data-plane/readme.md @@ -135,3 +135,29 @@ java: license-header: MICROSOFT_MIT_NO_CODEGEN output-folder: $(azure-libraries-for-java-folder)/azure-storage-datalake ``` + +## 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.StorageDataLake/stable/2018-11-09/DataLakeStorage.json + - $(this-folder)/Microsoft.StorageDataLake/preview/2018-06-17/DataLakeStorage.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/storage/resource-manager/Microsoft.Storage/preview/2015-05-01-preview/storage.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2015-05-01-preview/storage.json index aa2d63dbe442..51ec44d003f2 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2015-05-01-preview/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2015-05-01-preview/storage.json @@ -818,4 +818,4 @@ "description": "Client Api Version." } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/blob.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/blob.json index ad0759f162b9..42cf68510728 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/blob.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/blob.json @@ -1,1061 +1,1061 @@ - { - "swagger": "2.0", - "info": { - "version": "2018-03-01-preview", - "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}/blobServices/default/containers": { - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_List", - "x-ms-examples": { - "ListContainers": { - "$ref": "./examples/BlobContainersList.json" - } +{ + "swagger": "2.0", + "info": { + "version": "2018-03-01-preview", + "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}/blobServices/default/containers": { + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_List", + "x-ms-examples": { + "ListContainers": { + "$ref": "./examples/BlobContainersList.json" + } + }, + "description": "Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.", - "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 -- List Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/ListContainerItems" - } + { + "$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 -- List Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/ListContainerItems" } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}": { - "put": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Create", - "x-ms-examples": { - "PutContainers": { - "$ref": "./examples/BlobContainersPut.json" - } - }, - "description": "Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "name": "blobContainer", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BlobContainer" - }, - "description": "Properties of the blob container to create." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "201": { - "description": "Created -- Create Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer" - } - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}": { + "put": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Create", + "x-ms-examples": { + "PutContainers": { + "$ref": "./examples/BlobContainersPut.json" } }, - "patch": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Update", - "x-ms-examples": { - "UpdateContainers": { - "$ref": "./examples/BlobContainersPatch.json" - } + "description": "Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "name": "blobContainer", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BlobContainer" - }, - "description": "Properties to update for the blob container." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Update Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer", - "description": "Properties of the updated blob container." - } - } - } - }, - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Get", - "x-ms-examples": { - "GetContainers": { - "$ref": "./examples/BlobContainersGet.json" - } + { + "$ref": "./storage.json#/parameters/StorageAccountName" }, - "description": "Gets properties of a specified container. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + { + "$ref": "#/parameters/ContainerName" + }, + { + "name": "blobContainer", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BlobContainer" }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Get Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer" - } + "description": "Properties of the blob container to create." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created -- Create Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer" } } + } + }, + "patch": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Update", + "x-ms-examples": { + "UpdateContainers": { + "$ref": "./examples/BlobContainersPatch.json" + } }, - "delete": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Delete", - "x-ms-examples": { - "DeleteContainers": { - "$ref": "./examples/BlobContainersDelete.json" - } + "description": "Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Deletes specified container under its account.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Delete Container operation completed successfully." + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "name": "blobContainer", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BlobContainer" }, - "204": { - "description": "No Content -- The Container not exist." + "description": "Properties to update for the blob container." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Update Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer", + "description": "Properties of the updated blob container." } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_SetLegalHold", - "x-ms-examples": { - "SetLegalHoldContainers": { - "$ref": "./examples/BlobContainersSetLegalHold.json" - } + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Get", + "x-ms-examples": { + "GetContainers": { + "$ref": "./examples/BlobContainersGet.json" + } + }, + "description": "Gets properties of a specified container. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "LegalHold", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LegalHold" - }, - "description": "The LegalHold property that will be set to a blob container." - } - ], - "responses": { - "200": { - "description": "OK -- Set legal hold tags for Container completed successfully.", - "schema": { - "$ref": "#/definitions/LegalHold" - } + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Get Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_ClearLegalHold", - "x-ms-examples": { - "ClearLegalHoldContainers": { - "$ref": "./examples/BlobContainersClearLegalHold.json" - } + "delete": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Delete", + "x-ms-examples": { + "DeleteContainers": { + "$ref": "./examples/BlobContainersDelete.json" + } + }, + "description": "Deletes specified container under its account.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "LegalHold", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LegalHold" - }, - "description": "The LegalHold property that will be clear from a blob container." - } - ], - "responses": { - "200": { - "description": "OK -- Clear legal hold tags for Container completed successfully.", - "schema": { - "$ref": "#/definitions/LegalHold" - } - } + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Delete Container operation completed successfully." + }, + "204": { + "description": "No Content -- The Container not exist." } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}": { - "put": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_CreateOrUpdateImmutabilityPolicy", - "x-ms-examples": { - "CreateOrUpdateImmutabilityPolicy": { - "$ref": "./examples/BlobContainersPutImmutabilityPolicy.json" - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_SetLegalHold", + "x-ms-examples": { + "SetLegalHoldContainers": { + "$ref": "./examples/BlobContainersSetLegalHold.json" + } + }, + "description": "Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "description": "The ImmutabilityPolicy Properties that will be created or updated to a blob container." + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "LegalHold", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LegalHold" }, - { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Creates or updates container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } - } + "description": "The LegalHold property that will be set to a blob container." + } + ], + "responses": { + "200": { + "description": "OK -- Set legal hold tags for Container completed successfully.", + "schema": { + "$ref": "#/definitions/LegalHold" } } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_ClearLegalHold", + "x-ms-examples": { + "ClearLegalHoldContainers": { + "$ref": "./examples/BlobContainersClearLegalHold.json" + } }, - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_GetImmutabilityPolicy", - "x-ms-examples": { - "GetImmutabilityPolicy": { - "$ref": "./examples/BlobContainersGetImmutabilityPolicy.json" - } + "description": "Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Gets the existing immutability policy along with the corresponding ETag in response headers and body.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "LegalHold", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LegalHold" }, - { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Gets container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } - } + "description": "The LegalHold property that will be clear from a blob container." + } + ], + "responses": { + "200": { + "description": "OK -- Clear legal hold tags for Container completed successfully.", + "schema": { + "$ref": "#/definitions/LegalHold" } } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}": { + "put": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_CreateOrUpdateImmutabilityPolicy", + "x-ms-examples": { + "CreateOrUpdateImmutabilityPolicy": { + "$ref": "./examples/BlobContainersPutImmutabilityPolicy.json" + } }, - "delete": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_DeleteImmutabilityPolicy", - "x-ms-examples": { - "DeleteImmutabilityPolicy": { - "$ref": "./examples/BlobContainersDeleteImmutabilityPolicy.json" - } + "description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Deletes container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + "description": "The ImmutabilityPolicy Properties that will be created or updated to a blob container." + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Creates or updates container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" + }, + "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" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_LockImmutabilityPolicy", - "x-ms-examples": { - "LockImmutabilityPolicy": { - "$ref": "./examples/BlobContainersLockImmutabilityPolicy.json" - } + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_GetImmutabilityPolicy", + "x-ms-examples": { + "GetImmutabilityPolicy": { + "$ref": "./examples/BlobContainersGetImmutabilityPolicy.json" + } + }, + "description": "Gets the existing immutability policy along with the corresponding ETag in response headers and body.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Locks container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Gets container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" + }, + "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" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_ExtendImmutabilityPolicy", - "x-ms-examples": { - "ExtendImmutabilityPolicy": { - "$ref": "./examples/BlobContainersExtendImmutabilityPolicy.json" - } + "delete": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_DeleteImmutabilityPolicy", + "x-ms-examples": { + "DeleteImmutabilityPolicy": { + "$ref": "./examples/BlobContainersDeleteImmutabilityPolicy.json" + } + }, + "description": "Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "description": "The ImmutabilityPolicy Properties that will be extended for a blob container." - }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Extends container ImmutabilityPolicy operation completed successfully..", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Deletes container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" + }, + "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" } } } } - }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Lease", - "x-ms-examples": { - "Acquire a lease on a container": { - "$ref": "./examples/BlobContainersLease_Acquire.json" - }, - "Break a lease on a container": { - "$ref": "./examples/BlobContainersLease_Break.json" - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_LockImmutabilityPolicy", + "x-ms-examples": { + "LockImmutabilityPolicy": { + "$ref": "./examples/BlobContainersLockImmutabilityPolicy.json" + } + }, + "description": "Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/LeaseContainerRequest" - }, - "description": "Lease Container request body." - } - ], - "responses": { - "200": { - "description": "OK -- Lease Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/LeaseContainerResponse" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Locks container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" + }, + "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" } } } } } }, - "definitions": { - "ContainerProperties": { - "properties": { - "publicAccess": { - "type": "string", - "enum": [ - "Container", - "Blob", - "None" - ], - "x-ms-enum": { - "name": "PublicAccess", - "modelAsString": false - }, - "description": "Specifies whether data in the container may be accessed publicly and the level of access." + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_ExtendImmutabilityPolicy", + "x-ms-examples": { + "ExtendImmutabilityPolicy": { + "$ref": "./examples/BlobContainersExtendImmutabilityPolicy.json" + } + }, + "description": "Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the container was last modified." + { + "$ref": "./storage.json#/parameters/StorageAccountName" }, - "leaseStatus": { - "type": "string", - "readOnly": true, - "enum": [ - "Locked", - "Unlocked" - ], - "x-ms-enum": { - "name": "LeaseStatus", - "modelAsString": true - }, - "description": "The lease status of the container." + { + "$ref": "#/parameters/ContainerName" }, - "leaseState": { - "type": "string", - "readOnly": true, - "enum": [ - "Available", - "Leased", - "Expired", - "Breaking", - "Broken" - ], - "x-ms-enum": { - "name": "LeaseState", - "modelAsString": true - }, - "description": "Lease state of the container." + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, - "leaseDuration": { - "type": "string", - "readOnly": true, - "enum": [ - "Infinite", - "Fixed" - ], - "x-ms-enum": { - "name": "LeaseDuration", - "modelAsString": true - }, - "description": "Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased." + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - "description": "A name-value pair to associate with the container as metadata." - }, - "immutabilityPolicy": { - "readOnly": true, - "$ref": "#/definitions/ImmutabilityPolicyProperties", - "x-ms-client-name": "ImmutabilityPolicy", - "description": "The ImmutabilityPolicy property of the container." - }, - "legalHold": { - "readOnly": true, - "$ref": "#/definitions/LegalHoldProperties", - "description": "The LegalHold property of the container." - }, - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "hasImmutabilityPolicy": { - "type": "boolean", - "readOnly": true, - "description": "The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container." - } - }, - "description": "The properties of a container." - }, - "BlobContainer": { - "properties": { - "properties": { - "$ref": "#/definitions/ContainerProperties", - "x-ms-client-flatten": true, - "x-ms-client-name": "ContainerProperties", - "description": "Properties of the blob container." - } - }, - "allOf": [ + "description": "The ImmutabilityPolicy Properties that will be extended for a blob container." + }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." } ], - "description": "Properties of the blob container, including Id, resource name, resource type, Etag." - }, - "ImmutabilityPolicyProperty": { - "properties": { - "immutabilityPeriodSinceCreationInDays": { - "type": "integer", - "description": "The immutability period for the blobs in the container since the policy creation, in days." - }, - "state": { - "type": "string", - "readOnly": true, - "enum": [ - "Locked", - "Unlocked" - ], - "x-ms-enum": { - "name": "ImmutabilityPolicyState", - "modelAsString": true - }, - "description": "The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked." + "responses": { + "200": { + "description": "OK -- Extends container ImmutabilityPolicy operation completed successfully..", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" + }, + "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" + } + } } - }, - "required": [ - "immutabilityPeriodSinceCreationInDays" + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease": { + "post": { + "tags": [ + "BlobContainers" ], - "description": "The properties of an ImmutabilityPolicy of a blob container." - }, - "ImmutabilityPolicyProperties": { - "properties": { - "properties": { - "$ref": "#/definitions/ImmutabilityPolicyProperty", - "x-ms-client-flatten": true, - "description": "The properties of an ImmutabilityPolicy of a blob container." + "operationId": "BlobContainers_Lease", + "x-ms-examples": { + "Acquire a lease on a container": { + "$ref": "./examples/BlobContainersLease_Acquire.json" }, - "etag": { - "type": "string", - "readOnly": true, - "description": "ImmutabilityPolicy Etag." - }, - "updateHistory": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/UpdateHistoryProperty" - }, - "description": "The ImmutabilityPolicy update history of the blob container." + "Break a lease on a container": { + "$ref": "./examples/BlobContainersLease_Break.json" } }, - "description": "The properties of an ImmutabilityPolicy of a blob container." - }, - "ImmutabilityPolicy": { - "properties": { - "properties": { - "$ref": "#/definitions/ImmutabilityPolicyProperty", - "x-ms-client-flatten": true, - "description": "The properties of an ImmutabilityPolicy of a blob container." - } - }, - "allOf": [ + "description": "The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.", + "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" - } - ], - "required": [ - "properties" - ], - "description": "The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag." - }, - "UpdateHistoryProperty": { - "properties": { - "update": { - "type": "string", - "readOnly": true, - "enum": [ - "put", - "lock", - "extend" - ], - "x-ms-enum": { - "name": "ImmutabilityPolicyUpdateType", - "modelAsString": true - }, - "description": "The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend." + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "immutabilityPeriodSinceCreationInDays": { - "type": "integer", - "readOnly": true, - "description": "The immutability period for the blobs in the container since the policy creation, in days." + { + "$ref": "./storage.json#/parameters/StorageAccountName" }, - "timestamp": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the ImmutabilityPolicy was updated." + { + "$ref": "#/parameters/ContainerName" }, - "objectIdentifier": { - "type": "string", - "readOnly": true, - "description": "Returns the Object ID of the user who updated the ImmutabilityPolicy." + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, - "tenantId": { - "type": "string", - "readOnly": true, - "description": "Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy." + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, - "upn": { - "type": "string", - "readOnly": true, - "description": "Returns the User Principal Name of the user who updated the ImmutabilityPolicy." - } - }, - "description": "An update history of the ImmutabilityPolicy of a blob container." - }, - "LegalHoldProperties": { - "properties": { - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/TagProperty" + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/LeaseContainerRequest" }, - "description": "The list of LegalHold tags of a blob container." + "description": "Lease Container request body." + } + ], + "responses": { + "200": { + "description": "OK -- Lease Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/LeaseContainerResponse" + } } + } + } + } + }, + "definitions": { + "ContainerProperties": { + "properties": { + "publicAccess": { + "type": "string", + "enum": [ + "Container", + "Blob", + "None" + ], + "x-ms-enum": { + "name": "PublicAccess", + "modelAsString": false + }, + "description": "Specifies whether data in the container may be accessed publicly and the level of access." }, - "description": "The LegalHold property of a blob container." - }, - "TagProperty": { - "properties": { - "tag": { - "type": "string", - "readOnly": true, - "description": "The tag value." + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the container was last modified." + }, + "leaseStatus": { + "type": "string", + "readOnly": true, + "enum": [ + "Locked", + "Unlocked" + ], + "x-ms-enum": { + "name": "LeaseStatus", + "modelAsString": true }, - "timestamp": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the tag was added." + "description": "The lease status of the container." + }, + "leaseState": { + "type": "string", + "readOnly": true, + "enum": [ + "Available", + "Leased", + "Expired", + "Breaking", + "Broken" + ], + "x-ms-enum": { + "name": "LeaseState", + "modelAsString": true }, - "objectIdentifier": { - "type": "string", - "readOnly": true, - "description": "Returns the Object ID of the user who added the tag." + "description": "Lease state of the container." + }, + "leaseDuration": { + "type": "string", + "readOnly": true, + "enum": [ + "Infinite", + "Fixed" + ], + "x-ms-enum": { + "name": "LeaseDuration", + "modelAsString": true }, - "tenantId": { - "type": "string", - "readOnly": true, - "description": "Returns the Tenant ID that issued the token for the user who added the tag." + "description": "Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased." + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" }, - "upn": { - "type": "string", - "readOnly": true, - "description": "Returns the User Principal Name of the user who added the tag." - } + "description": "A name-value pair to associate with the container as metadata." }, - "description": "A tag of the LegalHold of a blob container." - }, - "LegalHold": { - "properties": { - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "tags": { - "type": "array", - "items": { - "type": "string", - "maxLength": 23, - "minLength": 3 - }, - "description": "Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP." - } + "immutabilityPolicy": { + "readOnly": true, + "$ref": "#/definitions/ImmutabilityPolicyProperties", + "x-ms-client-name": "ImmutabilityPolicy", + "description": "The ImmutabilityPolicy property of the container." }, - "required": [ - "tags" - ], - "description": "The LegalHold property of a blob container." + "legalHold": { + "readOnly": true, + "$ref": "#/definitions/LegalHoldProperties", + "description": "The LegalHold property of the container." + }, + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." + }, + "hasImmutabilityPolicy": { + "type": "boolean", + "readOnly": true, + "description": "The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container." + } }, - "ListContainerItem": { + "description": "The properties of a container." + }, + "BlobContainer": { + "properties": { "properties": { - "properties": { - "$ref": "#/definitions/ContainerProperties", - "x-ms-client-flatten": true, - "description": "The blob container properties be listed out." - } + "$ref": "#/definitions/ContainerProperties", + "x-ms-client-flatten": true, + "x-ms-client-name": "ContainerProperties", + "description": "Properties of the blob container." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "description": "Properties of the blob container, including Id, resource name, resource type, Etag." + }, + "ImmutabilityPolicyProperty": { + "properties": { + "immutabilityPeriodSinceCreationInDays": { + "type": "integer", + "description": "The immutability period for the blobs in the container since the policy creation, in days." }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" - } - ], - "description": "The blob container properties be listed out." + "state": { + "type": "string", + "readOnly": true, + "enum": [ + "Locked", + "Unlocked" + ], + "x-ms-enum": { + "name": "ImmutabilityPolicyState", + "modelAsString": true + }, + "description": "The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked." + } }, - "ListContainerItems": { + "required": [ + "immutabilityPeriodSinceCreationInDays" + ], + "description": "The properties of an ImmutabilityPolicy of a blob container." + }, + "ImmutabilityPolicyProperties": { + "properties": { "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ListContainerItem" - }, - "description": "The list of blob containers." - } + "$ref": "#/definitions/ImmutabilityPolicyProperty", + "x-ms-client-flatten": true, + "description": "The properties of an ImmutabilityPolicy of a blob container." }, - "description": "The list of blob containers." + "etag": { + "type": "string", + "readOnly": true, + "description": "ImmutabilityPolicy Etag." + }, + "updateHistory": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/UpdateHistoryProperty" + }, + "description": "The ImmutabilityPolicy update history of the blob container." + } }, - "LeaseContainerRequest": { + "description": "The properties of an ImmutabilityPolicy of a blob container." + }, + "ImmutabilityPolicy": { + "properties": { "properties": { - "action": { - "type": "string", - "enum": [ - "Acquire", - "Renew", - "Change", - "Release", - "Break" - ], - "description": "Specifies the lease action. Can be one of the available actions." - }, - "leaseId": { - "type": "string", - "description": "Identifies the lease. Can be specified in any valid GUID string format." - }, - "breakPeriod": { - "type": "integer", - "description": "Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60." + "$ref": "#/definitions/ImmutabilityPolicyProperty", + "x-ms-client-flatten": true, + "description": "The properties of an ImmutabilityPolicy of a blob container." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "required": [ + "properties" + ], + "description": "The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag." + }, + "UpdateHistoryProperty": { + "properties": { + "update": { + "type": "string", + "readOnly": true, + "enum": [ + "put", + "lock", + "extend" + ], + "x-ms-enum": { + "name": "ImmutabilityPolicyUpdateType", + "modelAsString": true }, - "leaseDuration": { - "type": "integer", - "description": "Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires." + "description": "The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend." + }, + "immutabilityPeriodSinceCreationInDays": { + "type": "integer", + "readOnly": true, + "description": "The immutability period for the blobs in the container since the policy creation, in days." + }, + "timestamp": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the ImmutabilityPolicy was updated." + }, + "objectIdentifier": { + "type": "string", + "readOnly": true, + "description": "Returns the Object ID of the user who updated the ImmutabilityPolicy." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy." + }, + "upn": { + "type": "string", + "readOnly": true, + "description": "Returns the User Principal Name of the user who updated the ImmutabilityPolicy." + } + }, + "description": "An update history of the ImmutabilityPolicy of a blob container." + }, + "LegalHoldProperties": { + "properties": { + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/definitions/TagProperty" }, - "proposedLeaseId": { - "type": "string", - "description": "Optional for acquire, required for change. Proposed lease ID, in a GUID string format." - } + "description": "The list of LegalHold tags of a blob container." + } + }, + "description": "The LegalHold property of a blob container." + }, + "TagProperty": { + "properties": { + "tag": { + "type": "string", + "readOnly": true, + "description": "The tag value." }, - "required": [ - "action" - ], - "description": "Lease Container request schema." + "timestamp": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the tag was added." + }, + "objectIdentifier": { + "type": "string", + "readOnly": true, + "description": "Returns the Object ID of the user who added the tag." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "Returns the Tenant ID that issued the token for the user who added the tag." + }, + "upn": { + "type": "string", + "readOnly": true, + "description": "Returns the User Principal Name of the user who added the tag." + } }, - "LeaseContainerResponse": { - "properties": { - "leaseId": { + "description": "A tag of the LegalHold of a blob container." + }, + "LegalHold": { + "properties": { + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." + }, + "tags": { + "type": "array", + "items": { "type": "string", - "description": "Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease." + "maxLength": 23, + "minLength": 3 }, - "leaseTimeSeconds": { - "type": "string", - "description": "Approximate time remaining in the lease period, in seconds." - } - }, - "description": "Lease Container response schema." - } + "description": "Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP." + } + }, + "required": [ + "tags" + ], + "description": "The LegalHold property of a blob container." }, - "parameters": { - "ContainerName": { - "name": "containerName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.", - "maxLength": 63, - "minLength": 3, - "x-ms-parameter-location": "method" + "ListContainerItem": { + "properties": { + "properties": { + "$ref": "#/definitions/ContainerProperties", + "x-ms-client-flatten": true, + "description": "The blob container properties be listed out." + } }, - "ImmutabilityPolicyName": { - "name": "immutabilityPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'", - "enum":[ - "default" - ], - "x-ms-parameter-location": "method" - } + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "description": "The blob container properties be listed out." }, - "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" + "ListContainerItems": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ListContainerItem" + }, + "description": "The list of blob containers." } - } + }, + "description": "The list of blob containers." + }, + "LeaseContainerRequest": { + "properties": { + "action": { + "type": "string", + "enum": [ + "Acquire", + "Renew", + "Change", + "Release", + "Break" + ], + "description": "Specifies the lease action. Can be one of the available actions." + }, + "leaseId": { + "type": "string", + "description": "Identifies the lease. Can be specified in any valid GUID string format." + }, + "breakPeriod": { + "type": "integer", + "description": "Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60." + }, + "leaseDuration": { + "type": "integer", + "description": "Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires." + }, + "proposedLeaseId": { + "type": "string", + "description": "Optional for acquire, required for change. Proposed lease ID, in a GUID string format." + } + }, + "required": [ + "action" + ], + "description": "Lease Container request schema." + }, + "LeaseContainerResponse": { + "properties": { + "leaseId": { + "type": "string", + "description": "Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease." + }, + "leaseTimeSeconds": { + "type": "string", + "description": "Approximate time remaining in the lease period, in seconds." + } + }, + "description": "Lease Container response schema." + } + }, + "parameters": { + "ContainerName": { + "name": "containerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.", + "maxLength": 63, + "minLength": 3, + "x-ms-parameter-location": "method" }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] + "ImmutabilityPolicyName": { + "name": "immutabilityPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'", + "enum": [ + "default" + ], + "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" } - ] - } \ No newline at end of file + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersClearLegalHold.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersClearLegalHold.json index ad6e6f5a6dcc..ac7aa7db783a 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersClearLegalHold.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersClearLegalHold.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersDelete.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersDelete.json index c098454b4d7e..d27f27f54bf0 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersDelete.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersDelete.json @@ -8,11 +8,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersExtendImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersExtendImmutabilityPolicy.json index 1737f81188e4..f1736e188785 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersExtendImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersExtendImmutabilityPolicy.json @@ -4,7 +4,7 @@ "resourceGroupName": "res6238", "accountName": "sto232", "containerName": "container5023", - "If-Match": "\"8d59f830d0c3bf9\"", + "If-Match": "\"8d59f830d0c3bf9\"", "api-version": "2018-03-01-preview", "monitor": "true", "parameters": { @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersGet.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersGet.json index 3416d56e8b00..ade438b9f9c0 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersGet.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersGet.json @@ -78,4 +78,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersGetImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersGetImmutabilityPolicy.json index b04a083fed46..bb0529d632ca 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersGetImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersGetImmutabilityPolicy.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Acquire.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Acquire.json index bb8b046aa4d3..00792870eace 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Acquire.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Acquire.json @@ -21,4 +21,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Break.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Break.json index 418c63ed1bdb..8102ce6b0790 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Break.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLease_Break.json @@ -21,4 +21,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersList.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersList.json index 575296fcba50..cf162ef0dbbe 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersList.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLockImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLockImmutabilityPolicy.json index 7d8b4c13bd7d..88edd88bf6c3 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLockImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersLockImmutabilityPolicy.json @@ -4,7 +4,7 @@ "resourceGroupName": "res2702", "accountName": "sto5009", "containerName": "container1631", - "If-Match": "\"8d59f825b721dd3\"", + "If-Match": "\"8d59f825b721dd3\"", "api-version": "2018-03-01-preview", "monitor": "true" }, @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersPatch.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersPatch.json index 26a5f59b49cf..72c670432c4b 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersPatch.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersPatch.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersPut.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersPut.json index 4aa6ab2ab34c..32747804bba2 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersPut.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersPut.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersPutImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersPutImmutabilityPolicy.json index 3357d65fcfd0..9fa5a241087a 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersPutImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersPutImmutabilityPolicy.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersSetLegalHold.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersSetLegalHold.json index d7c79aec0436..66ce4eac316a 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersSetLegalHold.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/BlobContainersSetLegalHold.json @@ -26,4 +26,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/OperationsList.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/OperationsList.json index 19db1402e322..4232ccacaef8 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/OperationsList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/OperationsList.json @@ -470,4 +470,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/SKUList.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/SKUList.json index 0644102e9121..02d8863f3b36 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/SKUList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/SKUList.json @@ -6451,4 +6451,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountCheckNameAvailability.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountCheckNameAvailability.json index f4ecc898104f..1ed71ec52f21 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountCheckNameAvailability.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountCheckNameAvailability.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountCreate.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountCreate.json index 591f43ae0a54..d04bcac98780 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountCreate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountCreate.json @@ -74,8 +74,6 @@ "type": "Microsoft.Storage/storageAccounts" } }, - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountDelete.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountDelete.json index dd8acf5b6ce1..ee2224d9d7c5 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountDelete.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountDelete.json @@ -7,11 +7,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountDeleteManagementPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountDeleteManagementPolicy.json index cc09990ec8a3..d13b8906aac8 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountDeleteManagementPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountDeleteManagementPolicy.json @@ -8,11 +8,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountGetManagementPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountGetManagementPolicy.json index 7b9f475ba388..157a1b36e277 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountGetManagementPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountGetManagementPolicy.json @@ -56,4 +56,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountGetProperties.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountGetProperties.json index 534b779c6138..efdff1296d60 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountGetProperties.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountGetProperties.json @@ -63,4 +63,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountList.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountList.json index be7f2ac9035c..32add044bbc9 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountList.json @@ -7,7 +7,7 @@ "responses": { "200": { "body": { - "value": [ + "value": [ { "sku": { "name": "Standard_LRS", @@ -109,4 +109,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListAccountSAS.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListAccountSAS.json index 6c3ddad1ca3f..40eab2490a73 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListAccountSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListAccountSAS.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListByResourceGroup.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListByResourceGroup.json index 795b3951548b..306631b25148 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListByResourceGroup.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListByResourceGroup.json @@ -114,4 +114,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListKeys.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListKeys.json index 3f78254bb4f9..67edcaf45514 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListKeys.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListKeys.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListLocationUsage.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListLocationUsage.json index 34960a076c38..26e81f60c988 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListLocationUsage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListLocationUsage.json @@ -21,4 +21,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListServiceSAS.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListServiceSAS.json index 5b923848c2b4..f87d81c86dc5 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListServiceSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountListServiceSAS.json @@ -19,4 +19,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountRegenerateKey.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountRegenerateKey.json index 0e95b0e360da..edf2c55bd0bb 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountRegenerateKey.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountRegenerateKey.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountSetManagementPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountSetManagementPolicy.json index 6e16eb2ac455..8bb3e99b622f 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountSetManagementPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountSetManagementPolicy.json @@ -97,4 +97,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountUpdate.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountUpdate.json index 7f8014a34169..1be85ca1c640 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountUpdate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/StorageAccountUpdate.json @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/UsageList.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/UsageList.json index 40eb7ab74774..fcb27e2908f6 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/UsageList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/examples/UsageList.json @@ -20,4 +20,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/managementpolicy.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/managementpolicy.json index 5d03a3dfde97..6840eb1edeb0 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/managementpolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/managementpolicy.json @@ -15,7 +15,7 @@ "produces": [ "application/json" ], - "paths": { + "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}": { "get": { "tags": [ @@ -24,7 +24,9 @@ "operationId": "ManagementPolicies_Get", "description": "Gets the data policy rules associated with the specified storage account.", "x-ms-examples": { - "StorageAccountGetManagementPolicies": { "$ref": "./examples/StorageAccountGetManagementPolicy.json" } + "StorageAccountGetManagementPolicies": { + "$ref": "./examples/StorageAccountGetManagementPolicy.json" + } }, "parameters": [ { @@ -40,7 +42,7 @@ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ManagementPolicyName" + "$ref": "#/parameters/ManagementPolicyName" } ], "responses": { @@ -59,7 +61,9 @@ "operationId": "ManagementPolicies_CreateOrUpdate", "description": "Sets the data policy rules associated with the specified storage account.", "x-ms-examples": { - "StorageAccountSetManagementPolicies": { "$ref": "./examples/StorageAccountSetManagementPolicy.json" } + "StorageAccountSetManagementPolicies": { + "$ref": "./examples/StorageAccountSetManagementPolicy.json" + } }, "parameters": [ { @@ -75,7 +79,7 @@ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ManagementPolicyName" + "$ref": "#/parameters/ManagementPolicyName" }, { "name": "properties", @@ -103,7 +107,9 @@ "operationId": "ManagementPolicies_Delete", "description": "Deletes the data policy rules associated with the specified storage account.", "x-ms-examples": { - "StorageAccountDeleteManagementPolicies": { "$ref": "./examples/StorageAccountDeleteManagementPolicy.json" } + "StorageAccountDeleteManagementPolicies": { + "$ref": "./examples/StorageAccountDeleteManagementPolicy.json" + } }, "parameters": [ { @@ -119,13 +125,13 @@ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ManagementPolicyName" + "$ref": "#/parameters/ManagementPolicyName" } ], "responses": { "200": { "description": "OK -- Delete management policies successfully." - }, + }, "204": { "description": "No Content -- The management policies does not exist." } @@ -142,7 +148,7 @@ "readOnly": true, "description": "Returns the Storage Account Data Policies Rules." } - }, + }, "allOf": [ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" @@ -158,7 +164,7 @@ "format": "date-time", "description": "Returns the date and time the ManagementPolicies was last modified." } - }, + }, "allOf": [ { "$ref": "#/definitions/ManagementPoliciesRules" @@ -178,10 +184,10 @@ }, "ManagementPoliciesRules": { "properties": { - "policy": { - "type": "object", - "description": "The Storage Account ManagementPolicies Rules, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." - } + "policy": { + "type": "object", + "description": "The Storage Account ManagementPolicies Rules, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." + } }, "description": "The Storage Account ManagementPolicies Rules, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." } @@ -193,12 +199,12 @@ "required": true, "type": "string", "description": "The name of the Storage Account Management Policy. It should always be 'default'", - "enum":[ + "enum": [ "default" ], "x-ms-enum": { - "name": "ManagementPolicyName", - "modelAsString": true + "name": "ManagementPolicyName", + "modelAsString": true }, "x-ms-parameter-location": "method" } @@ -221,4 +227,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/storage.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/storage.json index 78381e8d4f4a..d1e1d7ad90b3 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2018-03-01-preview/storage.json @@ -469,7 +469,9 @@ "operationId": "Usages_ListByLocation", "description": "Gets the current usage count and the limit for the resources of the location under the subscription.", "x-ms-examples": { - "UsageList": { "$ref": "./examples/StorageAccountListLocationUsage.json"} + "UsageList": { + "$ref": "./examples/StorageAccountListLocationUsage.json" + } }, "parameters": [ { @@ -484,7 +486,7 @@ "required": true, "type": "string", "description": "The location of the Azure Storage resource." - } + } ], "responses": { "200": { @@ -588,7 +590,7 @@ } } } - }, + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}": { "get": { "tags": [ @@ -597,7 +599,9 @@ "operationId": "StorageAccounts_GetManagementPolicies", "description": "Gets the data policy rules associated with the specified storage account.", "x-ms-examples": { - "StorageAccountGetManagementPolicies": { "$ref": "./examples/StorageAccountGetManagementPolicy.json" } + "StorageAccountGetManagementPolicies": { + "$ref": "./examples/StorageAccountGetManagementPolicy.json" + } }, "parameters": [ { @@ -613,7 +617,7 @@ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ManagementPolicyName" + "$ref": "#/parameters/ManagementPolicyName" } ], "responses": { @@ -632,7 +636,9 @@ "operationId": "StorageAccounts_CreateOrUpdateManagementPolicies", "description": "Sets the data policy rules associated with the specified storage account.", "x-ms-examples": { - "StorageAccountSetManagementPolicies": { "$ref": "./examples/StorageAccountSetManagementPolicy.json" } + "StorageAccountSetManagementPolicies": { + "$ref": "./examples/StorageAccountSetManagementPolicy.json" + } }, "parameters": [ { @@ -648,7 +654,7 @@ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ManagementPolicyName" + "$ref": "#/parameters/ManagementPolicyName" }, { "name": "properties", @@ -676,7 +682,9 @@ "operationId": "StorageAccounts_DeleteManagementPolicies", "description": "Deletes the data policy rules associated with the specified storage account.", "x-ms-examples": { - "StorageAccountDeleteManagementPolicies": { "$ref": "./examples/StorageAccountDeleteManagementPolicy.json" } + "StorageAccountDeleteManagementPolicies": { + "$ref": "./examples/StorageAccountDeleteManagementPolicy.json" + } }, "parameters": [ { @@ -692,13 +700,13 @@ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ManagementPolicyName" + "$ref": "#/parameters/ManagementPolicyName" } ], "responses": { "200": { "description": "OK -- Delete management policies successfully." - }, + }, "204": { "description": "No Content -- The management policies does not exist." } @@ -1284,8 +1292,8 @@ "isHnsEnabled": { "type": "boolean", "default": false, - "x-ms-client-name": "IsHnsEnabled", - "description": "Account HierarchicalNamespace enabled if sets to true." + "x-ms-client-name": "IsHnsEnabled", + "description": "Account HierarchicalNamespace enabled if sets to true." } }, "description": "The parameters used to create the storage account." @@ -1513,8 +1521,8 @@ "isHnsEnabled": { "type": "boolean", "default": false, - "x-ms-client-name": "IsHnsEnabled", - "description": "Account HierarchicalNamespace enabled if sets to true." + "x-ms-client-name": "IsHnsEnabled", + "description": "Account HierarchicalNamespace enabled if sets to true." } }, "description": "Properties of the storage account." @@ -2015,7 +2023,7 @@ "readOnly": true, "description": "Returns the Storage Account Data Policies Rules." } - }, + }, "allOf": [ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" @@ -2031,7 +2039,7 @@ "format": "date-time", "description": "Returns the date and time the ManagementPolicies was last modified." } - }, + }, "allOf": [ { "$ref": "#/definitions/ManagementPoliciesRules" @@ -2051,10 +2059,10 @@ }, "ManagementPoliciesRules": { "properties": { - "policy": { - "type": "object", - "description": "The Storage Account ManagementPolicies Rules, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." - } + "policy": { + "type": "object", + "description": "The Storage Account ManagementPolicies Rules, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." + } }, "description": "The Storage Account ManagementPolicies Rules, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." } @@ -2087,12 +2095,12 @@ "required": true, "type": "string", "description": "The name of the Storage Account Management Policy. It should always be 'default'", - "enum":[ + "enum": [ "default" ], "x-ms-enum": { - "name": "ManagementPolicyName", - "modelAsString": true + "name": "ManagementPolicyName", + "modelAsString": true }, "x-ms-parameter-location": "method" } @@ -2115,4 +2123,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2015-06-15/storage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2015-06-15/storage.json index 6a6c1f14d34c..2c6dcb8d9f78 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2015-06-15/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2015-06-15/storage.json @@ -237,7 +237,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts": { "get": { "tags": [ "StorageAccounts" @@ -837,4 +837,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2016-01-01/storage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2016-01-01/storage.json index 61424e2d5888..13d53c231ee2 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2016-01-01/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2016-01-01/storage.json @@ -423,7 +423,9 @@ }, "type": { "type": "string", - "enum": [ "Microsoft.Storage/storageAccounts" ] + "enum": [ + "Microsoft.Storage/storageAccounts" + ] } }, "required": [ @@ -544,10 +546,14 @@ "keySource": { "type": "string", "description": "The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage", - "enum": [ "Microsoft.Storage" ] + "enum": [ + "Microsoft.Storage" + ] } }, - "required": [ "keySource" ], + "required": [ + "keySource" + ], "description": "The encryption settings on the storage account." }, "StorageAccountPropertiesCreateParameters": { @@ -993,4 +999,4 @@ "description": "Client Api Version." } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2016-05-01/storage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2016-05-01/storage.json index 5aec59fef371..93bfb1ad0988 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2016-05-01/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2016-05-01/storage.json @@ -486,7 +486,9 @@ }, "type": { "type": "string", - "enum": [ "Microsoft.Storage/storageAccounts" ] + "enum": [ + "Microsoft.Storage/storageAccounts" + ] } }, "required": [ @@ -608,10 +610,14 @@ "keySource": { "type": "string", "description": "The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage", - "enum": [ "Microsoft.Storage" ] + "enum": [ + "Microsoft.Storage" + ] } }, - "required": [ "keySource" ], + "required": [ + "keySource" + ], "description": "The encryption settings on the storage account." }, "StorageAccountPropertiesCreateParameters": { @@ -1140,7 +1146,7 @@ "properties": { "canonicalizedResource": { "type": "string", - "description" : "The canonical path to the signed resource." + "description": "The canonical path to the signed resource." }, "signedResource": { "type": "string", @@ -1298,4 +1304,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} 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 1b8af9e8daa8..5675ac9790fd 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 @@ -489,7 +489,9 @@ }, "type": { "type": "string", - "enum": [ "Microsoft.Storage/storageAccounts" ] + "enum": [ + "Microsoft.Storage/storageAccounts" + ] } }, "required": [ @@ -625,10 +627,14 @@ "keySource": { "type": "string", "description": "The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage", - "enum": [ "Microsoft.Storage" ] + "enum": [ + "Microsoft.Storage" + ] } }, - "required": [ "keySource" ], + "required": [ + "keySource" + ], "description": "The encryption settings on the storage account." }, "StorageAccountPropertiesCreateParameters": { @@ -1175,7 +1181,7 @@ "properties": { "canonicalizedResource": { "type": "string", - "description" : "The canonical path to the signed resource." + "description": "The canonical path to the signed resource." }, "signedResource": { "type": "string", @@ -1333,4 +1339,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/OperationsList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/OperationsList.json index 2cdc61400135..2bc8cb41393f 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/OperationsList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/OperationsList.json @@ -11,8 +11,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Create/Update Storage Account", - "description": "Creates a storage account with the specified parameters or update the properties or tags or adds custom domain for the specified storage account." + "operation": "Create/Update Storage Account" } }, { @@ -20,8 +19,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Delete Storage Account", - "description": "Deletes an existing storage account." + "operation": "Delete Storage Account" } }, { @@ -29,8 +27,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "List Storage Account Keys", - "description": "Returns the access keys for the specified storage account." + "operation": "List Storage Account Keys" } }, { @@ -38,8 +35,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Regenerate Storage Account Keys", - "description": "Regenerates the access keys for the specified storage account." + "operation": "Regenerate Storage Account Keys" } }, { @@ -47,8 +43,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Name Availability", - "operation": "Check Name Availability", - "description": "Checks that account name is valid and is not in use." + "operation": "Check Name Availability" } }, { @@ -56,8 +51,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "List/Get Storage Account(s)", - "description": "Returns the list of storage accounts or gets the properties for the specified storage account." + "operation": "List/Get Storage Account(s)" } }, { @@ -65,8 +59,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Usage Metrics", - "operation": "Get Subscription Usages", - "description": "Returns the limit and the current usage count for resources in the specified subscription" + "operation": "Get Subscription Usages" } }, { @@ -74,8 +67,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Account SAS Token", - "operation": "Returns Storage Account SAS Token", - "description": "Returns the Account SAS token for the specified storage account." + "operation": "Returns Storage Account SAS Token" } }, { @@ -83,8 +75,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Returns the Service SAS token for the specified storage account.", - "operation": "Returns Storage Service SAS Token", - "description": "Storage Service SAS Token" + "operation": "Returns Storage Service SAS Token" } }, { @@ -92,8 +83,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Location", - "operation": "Delete virtual network or subnets notifications", - "description": "Notifies Microsoft.Storage that virtual network or subnet is being deleted" + "operation": "Delete virtual network or subnets notifications" } }, { @@ -101,8 +91,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Operations", - "operation": "Poll Asynchronous Operation", - "description": "Polls the status of an asynchronous operation." + "operation": "Poll Asynchronous Operation" } }, { @@ -110,8 +99,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Resource Provider", - "operation": "Registers the Storage Resource Provider", - "description": "Registers the subscription for the storage resource provider and enables the creation of storage accounts." + "operation": "Registers the Storage Resource Provider" } }, { @@ -119,8 +107,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Skus", - "operation": "List Skus", - "description": "Lists the Skus supported by Microsoft.Storage." + "operation": "List Skus" } }, { @@ -128,8 +115,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Create/Update Diagnostic Settings", - "description": "Create/Update storage account diagnostic settings." + "operation": "Create/Update Diagnostic Settings" } }, { @@ -137,8 +123,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." + "operation": "Get list of Microsoft Storage Metrics definitions" }, "origin": "system", "properties": { @@ -163,8 +148,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." + "operation": "Read diagnostic setting" }, "origin": "system" }, @@ -173,8 +157,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." + "operation": "Write diagnostic setting" }, "origin": "system" }, @@ -183,8 +166,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Blob service", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." + "operation": "Get list of Microsoft Storage Metrics definitions" }, "origin": "system", "properties": { @@ -253,8 +235,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Blob service", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." + "operation": "Read diagnostic setting" }, "origin": "system" }, @@ -263,8 +244,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Blob service", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." + "operation": "Write diagnostic setting" }, "origin": "system" }, @@ -273,8 +253,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Table service", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." + "operation": "Get list of Microsoft Storage Metrics definitions" }, "origin": "system", "properties": { @@ -316,8 +295,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Table service", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." + "operation": "Read diagnostic setting" }, "origin": "system" }, @@ -326,8 +304,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Table service", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." + "operation": "Write diagnostic setting" }, "origin": "system" }, @@ -336,8 +313,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Queue service", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." + "operation": "Get list of Microsoft Storage Metrics definitions" }, "origin": "system", "properties": { @@ -379,8 +355,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Queue service", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." + "operation": "Read diagnostic setting" }, "origin": "system" }, @@ -389,8 +364,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Queue service", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." + "operation": "Write diagnostic setting" }, "origin": "system" }, @@ -399,8 +373,7 @@ "display": { "provider": "Microsoft Storage", "resource": "File service", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." + "operation": "Get list of Microsoft Storage Metrics definitions" }, "origin": "system", "properties": { @@ -451,8 +424,7 @@ "display": { "provider": "Microsoft Storage", "resource": "File service", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." + "operation": "Read diagnostic setting" }, "origin": "system" }, @@ -461,8 +433,7 @@ "display": { "provider": "Microsoft Storage", "resource": "File service", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." + "operation": "Write diagnostic setting" }, "origin": "system" } @@ -470,4 +441,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/SKUList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/SKUList.json index 10660f595c38..8d58f46f7de6 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/SKUList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/SKUList.json @@ -6451,4 +6451,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountCheckNameAvailability.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountCheckNameAvailability.json index c6a94951b41e..d65613f3ba6e 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountCheckNameAvailability.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountCheckNameAvailability.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountCreate.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountCreate.json index e97a2e97c171..f407a857b238 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountCreate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountCreate.json @@ -49,8 +49,6 @@ "type": "Microsoft.Storage/storageAccounts" } }, - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountDelete.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountDelete.json index d75995818b04..d3e66910610f 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountDelete.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountDelete.json @@ -7,11 +7,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountGetProperties.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountGetProperties.json index b2085c201cf3..6d8c74463b91 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountGetProperties.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountGetProperties.json @@ -46,4 +46,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountList.json index eb405154d3aa..5a0069a8116e 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountList.json @@ -177,4 +177,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListAccountSAS.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListAccountSAS.json index fe84f0113e14..62b5af44c251 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListAccountSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListAccountSAS.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListByResourceGroup.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListByResourceGroup.json index 39445dab54ee..dbb8707945bd 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListByResourceGroup.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListByResourceGroup.json @@ -72,4 +72,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListKeys.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListKeys.json index 389f7f0e6631..d37b5512ea2a 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListKeys.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListKeys.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListServiceSAS.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListServiceSAS.json index 61a779c9c740..ad2b61ad24f1 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListServiceSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountListServiceSAS.json @@ -19,4 +19,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountRegenerateKey.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountRegenerateKey.json index 48ec956a9995..1072115bcc7d 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountRegenerateKey.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountRegenerateKey.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountUpdate.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountUpdate.json index 53e55b4a345d..54748ecc1e9e 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountUpdate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/StorageAccountUpdate.json @@ -53,4 +53,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/UsageList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/UsageList.json index bf0c485c93ee..60411bba602f 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/UsageList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/examples/UsageList.json @@ -20,4 +20,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/storage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/storage.json index 18764366ad22..1c9432aceb01 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-06-01/storage.json @@ -28,7 +28,9 @@ "description": "Lists all of the available Storage Rest API operations.", "operationId": "Operations_List", "x-ms-examples": { - "OperationsList": { "$ref": "./examples/OperationsList.json" } + "OperationsList": { + "$ref": "./examples/OperationsList.json" + } }, "parameters": [ { @@ -56,7 +58,9 @@ "operationId": "Skus_List", "description": "Lists the available SKUs supported by Microsoft.Storage for given subscription.", "x-ms-examples": { - "SkuList": { "$ref": "./examples/SKUList.json" } + "SkuList": { + "$ref": "./examples/SKUList.json" + } }, "parameters": [ { @@ -87,7 +91,9 @@ "operationId": "StorageAccounts_CheckNameAvailability", "description": "Checks that the storage account name is valid and is not already in use.", "x-ms-examples": { - "StorageAccountCheckNameAvailability": { "$ref": "./examples/StorageAccountCheckNameAvailability.json" } + "StorageAccountCheckNameAvailability": { + "$ref": "./examples/StorageAccountCheckNameAvailability.json" + } }, "parameters": [ { @@ -124,7 +130,9 @@ "operationId": "StorageAccounts_Create", "description": "Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.", "x-ms-examples": { - "StorageAccountCreate": { "$ref": "./examples/StorageAccountCreate.json" } + "StorageAccountCreate": { + "$ref": "./examples/StorageAccountCreate.json" + } }, "parameters": [ { @@ -175,7 +183,9 @@ "operationId": "StorageAccounts_Delete", "description": "Deletes a storage account in Microsoft Azure.", "x-ms-examples": { - "StorageAccountDelete": { "$ref": "./examples/StorageAccountDelete.json" } + "StorageAccountDelete": { + "$ref": "./examples/StorageAccountDelete.json" + } }, "parameters": [ { @@ -213,7 +223,9 @@ "operationId": "StorageAccounts_GetProperties", "description": "Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.", "x-ms-examples": { - "StorageAccountGetProperties": { "$ref": "./examples/StorageAccountGetProperties.json" } + "StorageAccountGetProperties": { + "$ref": "./examples/StorageAccountGetProperties.json" + } }, "parameters": [ { @@ -251,7 +263,9 @@ "operationId": "StorageAccounts_Update", "description": "The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.", "x-ms-examples": { - "StorageAccountUpdate": { "$ref": "./examples/StorageAccountUpdate.json" } + "StorageAccountUpdate": { + "$ref": "./examples/StorageAccountUpdate.json" + } }, "parameters": [ { @@ -300,7 +314,9 @@ "operationId": "StorageAccounts_List", "description": "Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this.", "x-ms-examples": { - "StorageAccountList": { "$ref": "./examples/StorageAccountList.json" } + "StorageAccountList": { + "$ref": "./examples/StorageAccountList.json" + } }, "parameters": [ { @@ -331,7 +347,9 @@ "operationId": "StorageAccounts_ListByResourceGroup", "description": "Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.", "x-ms-examples": { - "StorageAccountListByResourceGroup": { "$ref": "./examples/StorageAccountListByResourceGroup.json" } + "StorageAccountListByResourceGroup": { + "$ref": "./examples/StorageAccountListByResourceGroup.json" + } }, "parameters": [ { @@ -365,7 +383,9 @@ "operationId": "StorageAccounts_ListKeys", "description": "Lists the access keys for the specified storage account.", "x-ms-examples": { - "StorageAccountListKeys": { "$ref": "./examples/StorageAccountListKeys.json" } + "StorageAccountListKeys": { + "$ref": "./examples/StorageAccountListKeys.json" + } }, "parameters": [ { @@ -405,7 +425,9 @@ "operationId": "StorageAccounts_RegenerateKey", "description": "Regenerates one of the access keys for the specified storage account.", "x-ms-examples": { - "StorageAccountRegenerateKey": { "$ref": "./examples/StorageAccountRegenerateKey.json" } + "StorageAccountRegenerateKey": { + "$ref": "./examples/StorageAccountRegenerateKey.json" + } }, "parameters": [ { @@ -454,7 +476,9 @@ "operationId": "Usage_List", "description": "Gets the current usage count and the limit for the resources under the subscription.", "x-ms-examples": { - "UsageList": { "$ref": "./examples/UsageList.json" } + "UsageList": { + "$ref": "./examples/UsageList.json" + } }, "parameters": [ { @@ -485,7 +509,9 @@ "operationId": "StorageAccounts_ListAccountSAS", "description": "List SAS credentials of a storage account.", "x-ms-examples": { - "StorageAccountListAccountSAS": { "$ref": "./examples/StorageAccountListAccountSAS.json" } + "StorageAccountListAccountSAS": { + "$ref": "./examples/StorageAccountListAccountSAS.json" + } }, "parameters": [ { @@ -534,7 +560,9 @@ "operationId": "StorageAccounts_ListServiceSAS", "description": "List service SAS credentials of a specific resource.", "x-ms-examples": { - "StorageAccountListServiceSAS": { "$ref": "./examples/StorageAccountListServiceSAS.json" } + "StorageAccountListServiceSAS": { + "$ref": "./examples/StorageAccountListServiceSAS.json" + } }, "parameters": [ { @@ -578,7 +606,7 @@ }, "definitions": { "OperationListResult": { - "description": "Result of the request to list Storage operations. It contains a list of operations and a URL link to get the next set of results.", + "description": "Result of the request to list Storage operations. It contains a list of operations and a URL link to get the next set of results.", "properties": { "value": { "type": "array", @@ -615,37 +643,34 @@ } }, "origin": { - "type" : "string", + "type": "string", "description": "The origin of operations." }, "properties": { "description": "Properties of operation, include metric specifications.", "x-ms-client-flatten": true, "x-ms-client-name": "OperationProperties", - "$ref" : "#/definitions/OperationProperties" + "$ref": "#/definitions/OperationProperties" } } }, - "OperationProperties": - { + "OperationProperties": { "description": "Properties of operation, include metric specifications.", "properties": { "serviceSpecification": { - "$ref" : "#/definitions/ServiceSpecification", + "$ref": "#/definitions/ServiceSpecification", "description": "One property of operation, include metric specifications." } } }, - "ServiceSpecification": - { + "ServiceSpecification": { "description": "One property of operation, include metric specifications.", "properties": { - "metricSpecifications": - { + "metricSpecifications": { "description": "Metric specifications of operation.", - "type":"array", + "type": "array", "items": { - "$ref" : "#/definitions/MetricSpecification" + "$ref": "#/definitions/MetricSpecification" } } } @@ -657,8 +682,7 @@ "type": "string", "description": "Name of metric specification." }, - "displayName": - { + "displayName": { "type": "string", "description": "Display name of metric specification." }, @@ -667,23 +691,22 @@ "description": "Display description of metric specification." }, "unit": { - "type" : "string", + "type": "string", "description": "Unit could be Bytes or Count." }, "dimensions": { "description": "Dimensions of blobs, including blob type and access tier.", - "type" : "array", + "type": "array", "items": { - "$ref" : "#/definitions/Dimension" + "$ref": "#/definitions/Dimension" } }, "aggregationType": { - "type" : "string", + "type": "string", "description": "Aggregation type could be Average." - } , - "fillGapWithZero": - { - "type" : "boolean", + }, + "fillGapWithZero": { + "type": "boolean", "description": "The property to decide fill gap with zero or not." }, "category": { @@ -699,12 +722,12 @@ "Dimension": { "description": "Dimension of blobs, possibly be blob type or access tier.", "properties": { - "name" : { - "type" : "string", + "name": { + "type": "string", "description": "Display name of dimension." }, - "displayName" : { - "type" : "string", + "displayName": { + "type": "string", "description": "Display name of dimension." } } @@ -717,7 +740,9 @@ }, "type": { "type": "string", - "enum": [ "Microsoft.Storage/storageAccounts" ], + "enum": [ + "Microsoft.Storage/storageAccounts" + ], "x-ms-enum": { "name": "Type", "modelAsString": false @@ -847,7 +872,7 @@ "modelAsString": false } }, - "resourceType":{ + "resourceType": { "readOnly": true, "type": "string", "description": "The type of the resource, usually it is 'storageAccounts'." @@ -951,21 +976,21 @@ "KeyVaultProperties": { "description": "Properties of key vault.", "properties": { - "keyname": { - "type": "string", - "description": "The name of KeyVault key.", - "x-ms-client-name": "KeyName" - }, - "keyversion": { - "type": "string", - "description": "The version of KeyVault key.", - "x-ms-client-name": "KeyVersion" - }, - "keyvaulturi": { - "type": "string", - "description": "The Uri of KeyVault.", - "x-ms-client-name": "KeyVaultUri" - } + "keyname": { + "type": "string", + "description": "The name of KeyVault key.", + "x-ms-client-name": "KeyName" + }, + "keyversion": { + "type": "string", + "description": "The version of KeyVault key.", + "x-ms-client-name": "KeyVersion" + }, + "keyvaulturi": { + "type": "string", + "description": "The Uri of KeyVault.", + "x-ms-client-name": "KeyVaultUri" + } } }, "Encryption": { @@ -985,7 +1010,7 @@ "name": "KeySource", "modelAsString": true }, - "default":"Microsoft.Storage" + "default": "Microsoft.Storage" }, "keyvaultproperties": { "$ref": "#/definitions/KeyVaultProperties", @@ -993,7 +1018,9 @@ "description": "Properties provided by key vault." } }, - "required": [ "keySource" ], + "required": [ + "keySource" + ], "description": "The encryption settings on the storage account." }, "VirtualNetworkRule": { @@ -1031,7 +1058,9 @@ "description": "Gets the state of virtual network rule." } }, - "required": [ "id" ], + "required": [ + "id" + ], "description": "Virtual Network rule." }, "IPRule": { @@ -1172,7 +1201,7 @@ } } }, - "required":[ + "required": [ "type" ], "description": "Identity for the resource." @@ -1729,7 +1758,7 @@ "properties": { "canonicalizedResource": { "type": "string", - "description" : "The canonical path to the signed resource." + "description": "The canonical path to the signed resource." }, "signedResource": { "type": "string", @@ -1897,13 +1926,13 @@ }, "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" - } + "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": [ diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/OperationsList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/OperationsList.json index e81de6aa42af..13115d07c21e 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/OperationsList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/OperationsList.json @@ -11,8 +11,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Create/Update Storage Account", - "description": "Creates a storage account with the specified parameters or update the properties or tags or adds custom domain for the specified storage account." + "operation": "Create/Update Storage Account" } }, { @@ -20,8 +19,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Delete Storage Account", - "description": "Deletes an existing storage account." + "operation": "Delete Storage Account" } }, { @@ -29,8 +27,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "List Storage Account Keys", - "description": "Returns the access keys for the specified storage account." + "operation": "List Storage Account Keys" } }, { @@ -38,8 +35,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Regenerate Storage Account Keys", - "description": "Regenerates the access keys for the specified storage account." + "operation": "Regenerate Storage Account Keys" } }, { @@ -47,8 +43,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Name Availability", - "operation": "Check Name Availability", - "description": "Checks that account name is valid and is not in use." + "operation": "Check Name Availability" } }, { @@ -56,8 +51,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "List/Get Storage Account(s)", - "description": "Returns the list of storage accounts or gets the properties for the specified storage account." + "operation": "List/Get Storage Account(s)" } }, { @@ -65,8 +59,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Usage Metrics", - "operation": "Get Subscription Usages", - "description": "Returns the limit and the current usage count for resources in the specified subscription" + "operation": "Get Subscription Usages" } }, { @@ -74,8 +67,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Account SAS Token", - "operation": "Returns Storage Account SAS Token", - "description": "Returns the Account SAS token for the specified storage account." + "operation": "Returns Storage Account SAS Token" } }, { @@ -83,8 +75,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Returns the Service SAS token for the specified storage account.", - "operation": "Returns Storage Service SAS Token", - "description": "Storage Service SAS Token" + "operation": "Returns Storage Service SAS Token" } }, { @@ -92,8 +83,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Location", - "operation": "Delete virtual network or subnets notifications", - "description": "Notifies Microsoft.Storage that virtual network or subnet is being deleted" + "operation": "Delete virtual network or subnets notifications" } }, { @@ -101,8 +91,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Operations", - "operation": "Poll Asynchronous Operation", - "description": "Polls the status of an asynchronous operation." + "operation": "Poll Asynchronous Operation" } }, { @@ -110,8 +99,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Resource Provider", - "operation": "Registers the Storage Resource Provider", - "description": "Registers the subscription for the storage resource provider and enables the creation of storage accounts." + "operation": "Registers the Storage Resource Provider" } }, { @@ -119,8 +107,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Skus", - "operation": "List Skus", - "description": "Lists the Skus supported by Microsoft.Storage." + "operation": "List Skus" } }, { @@ -128,8 +115,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Create/Update Diagnostic Settings", - "description": "Create/Update storage account diagnostic settings." + "operation": "Create/Update Diagnostic Settings" } }, { @@ -137,8 +123,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." + "operation": "Get list of Microsoft Storage Metrics definitions" }, "origin": "system", "properties": { @@ -163,8 +148,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." + "operation": "Read diagnostic setting" }, "origin": "system" }, @@ -173,8 +157,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Storage Accounts", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." + "operation": "Write diagnostic setting" }, "origin": "system" }, @@ -183,8 +166,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Blob service", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." + "operation": "Get list of Microsoft Storage Metrics definitions" }, "origin": "system", "properties": { @@ -253,8 +235,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Blob service", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." + "operation": "Read diagnostic setting" }, "origin": "system" }, @@ -263,8 +244,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Blob service", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." + "operation": "Write diagnostic setting" }, "origin": "system" }, @@ -273,8 +253,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Table service", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." + "operation": "Get list of Microsoft Storage Metrics definitions" }, "origin": "system", "properties": { @@ -316,8 +295,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Table service", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." + "operation": "Read diagnostic setting" }, "origin": "system" }, @@ -326,8 +304,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Table service", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." + "operation": "Write diagnostic setting" }, "origin": "system" }, @@ -336,8 +313,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Queue service", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." + "operation": "Get list of Microsoft Storage Metrics definitions" }, "origin": "system", "properties": { @@ -379,8 +355,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Queue service", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." + "operation": "Read diagnostic setting" }, "origin": "system" }, @@ -389,8 +364,7 @@ "display": { "provider": "Microsoft Storage", "resource": "Queue service", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." + "operation": "Write diagnostic setting" }, "origin": "system" }, @@ -399,8 +373,7 @@ "display": { "provider": "Microsoft Storage", "resource": "File service", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." + "operation": "Get list of Microsoft Storage Metrics definitions" }, "origin": "system", "properties": { @@ -451,8 +424,7 @@ "display": { "provider": "Microsoft Storage", "resource": "File service", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." + "operation": "Read diagnostic setting" }, "origin": "system" }, @@ -461,8 +433,7 @@ "display": { "provider": "Microsoft Storage", "resource": "File service", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." + "operation": "Write diagnostic setting" }, "origin": "system" } @@ -470,4 +441,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/SKUList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/SKUList.json index fc14472c70c2..45d5fdc2c2d9 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/SKUList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/SKUList.json @@ -6451,4 +6451,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountCheckNameAvailability.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountCheckNameAvailability.json index 32e1ee908bf1..34bf2322d933 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountCheckNameAvailability.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountCheckNameAvailability.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountCreate.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountCreate.json index 8c93d5d5ee1b..e5a2e21d6fe2 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountCreate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountCreate.json @@ -49,8 +49,6 @@ "type": "Microsoft.Storage/storageAccounts" } }, - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountDelete.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountDelete.json index b4877626a2d1..d3da7fe2a94e 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountDelete.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountDelete.json @@ -7,11 +7,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountGetProperties.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountGetProperties.json index 6e543e7d54ff..fa8d1e2619ea 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountGetProperties.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountGetProperties.json @@ -46,4 +46,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountList.json index 42f08815672c..b0c89703ffb7 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountList.json @@ -177,4 +177,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListAccountSAS.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListAccountSAS.json index c36ee2ba9549..596cd17ada3a 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListAccountSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListAccountSAS.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListByResourceGroup.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListByResourceGroup.json index 97b36aa8402f..b12955ed44bb 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListByResourceGroup.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListByResourceGroup.json @@ -72,4 +72,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListKeys.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListKeys.json index 2b39cf260092..b267a39acda4 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListKeys.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListKeys.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListServiceSAS.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListServiceSAS.json index 090d30afbbb5..6293bcfd2d99 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListServiceSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountListServiceSAS.json @@ -19,4 +19,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountRegenerateKey.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountRegenerateKey.json index 268fb59962e4..ac4d361bd0d8 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountRegenerateKey.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountRegenerateKey.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountUpdate.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountUpdate.json index 3a8215d95255..eb1c0de8db9f 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountUpdate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/StorageAccountUpdate.json @@ -53,4 +53,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/UsageList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/UsageList.json index 985bb634e9b0..5a59a9f0cce8 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/UsageList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/examples/UsageList.json @@ -20,4 +20,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/storage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/storage.json index a8bd85c0490b..7eed015718ae 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2017-10-01/storage.json @@ -28,7 +28,9 @@ "description": "Lists all of the available Storage Rest API operations.", "operationId": "Operations_List", "x-ms-examples": { - "OperationsList": { "$ref": "./examples/OperationsList.json" } + "OperationsList": { + "$ref": "./examples/OperationsList.json" + } }, "parameters": [ { @@ -56,7 +58,9 @@ "operationId": "Skus_List", "description": "Lists the available SKUs supported by Microsoft.Storage for given subscription.", "x-ms-examples": { - "SkuList": { "$ref": "./examples/SKUList.json" } + "SkuList": { + "$ref": "./examples/SKUList.json" + } }, "parameters": [ { @@ -87,7 +91,9 @@ "operationId": "StorageAccounts_CheckNameAvailability", "description": "Checks that the storage account name is valid and is not already in use.", "x-ms-examples": { - "StorageAccountCheckNameAvailability": { "$ref": "./examples/StorageAccountCheckNameAvailability.json" } + "StorageAccountCheckNameAvailability": { + "$ref": "./examples/StorageAccountCheckNameAvailability.json" + } }, "parameters": [ { @@ -124,7 +130,9 @@ "operationId": "StorageAccounts_Create", "description": "Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.", "x-ms-examples": { - "StorageAccountCreate": { "$ref": "./examples/StorageAccountCreate.json" } + "StorageAccountCreate": { + "$ref": "./examples/StorageAccountCreate.json" + } }, "parameters": [ { @@ -175,7 +183,9 @@ "operationId": "StorageAccounts_Delete", "description": "Deletes a storage account in Microsoft Azure.", "x-ms-examples": { - "StorageAccountDelete": { "$ref": "./examples/StorageAccountDelete.json" } + "StorageAccountDelete": { + "$ref": "./examples/StorageAccountDelete.json" + } }, "parameters": [ { @@ -213,7 +223,9 @@ "operationId": "StorageAccounts_GetProperties", "description": "Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.", "x-ms-examples": { - "StorageAccountGetProperties": { "$ref": "./examples/StorageAccountGetProperties.json" } + "StorageAccountGetProperties": { + "$ref": "./examples/StorageAccountGetProperties.json" + } }, "parameters": [ { @@ -251,7 +263,9 @@ "operationId": "StorageAccounts_Update", "description": "The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.", "x-ms-examples": { - "StorageAccountUpdate": { "$ref": "./examples/StorageAccountUpdate.json" } + "StorageAccountUpdate": { + "$ref": "./examples/StorageAccountUpdate.json" + } }, "parameters": [ { @@ -300,7 +314,9 @@ "operationId": "StorageAccounts_List", "description": "Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this.", "x-ms-examples": { - "StorageAccountList": { "$ref": "./examples/StorageAccountList.json" } + "StorageAccountList": { + "$ref": "./examples/StorageAccountList.json" + } }, "parameters": [ { @@ -331,7 +347,9 @@ "operationId": "StorageAccounts_ListByResourceGroup", "description": "Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.", "x-ms-examples": { - "StorageAccountListByResourceGroup": { "$ref": "./examples/StorageAccountListByResourceGroup.json" } + "StorageAccountListByResourceGroup": { + "$ref": "./examples/StorageAccountListByResourceGroup.json" + } }, "parameters": [ { @@ -365,7 +383,9 @@ "operationId": "StorageAccounts_ListKeys", "description": "Lists the access keys for the specified storage account.", "x-ms-examples": { - "StorageAccountListKeys": { "$ref": "./examples/StorageAccountListKeys.json" } + "StorageAccountListKeys": { + "$ref": "./examples/StorageAccountListKeys.json" + } }, "parameters": [ { @@ -405,7 +425,9 @@ "operationId": "StorageAccounts_RegenerateKey", "description": "Regenerates one of the access keys for the specified storage account.", "x-ms-examples": { - "StorageAccountRegenerateKey": { "$ref": "./examples/StorageAccountRegenerateKey.json" } + "StorageAccountRegenerateKey": { + "$ref": "./examples/StorageAccountRegenerateKey.json" + } }, "parameters": [ { @@ -454,7 +476,9 @@ "operationId": "Usage_List", "description": "Gets the current usage count and the limit for the resources under the subscription.", "x-ms-examples": { - "UsageList": { "$ref": "./examples/UsageList.json" } + "UsageList": { + "$ref": "./examples/UsageList.json" + } }, "parameters": [ { @@ -485,7 +509,9 @@ "operationId": "StorageAccounts_ListAccountSAS", "description": "List SAS credentials of a storage account.", "x-ms-examples": { - "StorageAccountListAccountSAS": { "$ref": "./examples/StorageAccountListAccountSAS.json" } + "StorageAccountListAccountSAS": { + "$ref": "./examples/StorageAccountListAccountSAS.json" + } }, "parameters": [ { @@ -534,7 +560,9 @@ "operationId": "StorageAccounts_ListServiceSAS", "description": "List service SAS credentials of a specific resource.", "x-ms-examples": { - "StorageAccountListServiceSAS": { "$ref": "./examples/StorageAccountListServiceSAS.json" } + "StorageAccountListServiceSAS": { + "$ref": "./examples/StorageAccountListServiceSAS.json" + } }, "parameters": [ { @@ -578,7 +606,7 @@ }, "definitions": { "OperationListResult": { - "description": "Result of the request to list Storage operations. It contains a list of operations and a URL link to get the next set of results.", + "description": "Result of the request to list Storage operations. It contains a list of operations and a URL link to get the next set of results.", "properties": { "value": { "type": "array", @@ -615,37 +643,34 @@ } }, "origin": { - "type" : "string", + "type": "string", "description": "The origin of operations." }, "properties": { "description": "Properties of operation, include metric specifications.", "x-ms-client-flatten": true, "x-ms-client-name": "OperationProperties", - "$ref" : "#/definitions/OperationProperties" + "$ref": "#/definitions/OperationProperties" } } }, - "OperationProperties": - { + "OperationProperties": { "description": "Properties of operation, include metric specifications.", "properties": { "serviceSpecification": { - "$ref" : "#/definitions/ServiceSpecification", + "$ref": "#/definitions/ServiceSpecification", "description": "One property of operation, include metric specifications." } } }, - "ServiceSpecification": - { + "ServiceSpecification": { "description": "One property of operation, include metric specifications.", "properties": { - "metricSpecifications": - { + "metricSpecifications": { "description": "Metric specifications of operation.", - "type":"array", + "type": "array", "items": { - "$ref" : "#/definitions/MetricSpecification" + "$ref": "#/definitions/MetricSpecification" } } } @@ -657,8 +682,7 @@ "type": "string", "description": "Name of metric specification." }, - "displayName": - { + "displayName": { "type": "string", "description": "Display name of metric specification." }, @@ -667,23 +691,22 @@ "description": "Display description of metric specification." }, "unit": { - "type" : "string", + "type": "string", "description": "Unit could be Bytes or Count." }, "dimensions": { "description": "Dimensions of blobs, including blob type and access tier.", - "type" : "array", + "type": "array", "items": { - "$ref" : "#/definitions/Dimension" + "$ref": "#/definitions/Dimension" } }, "aggregationType": { - "type" : "string", + "type": "string", "description": "Aggregation type could be Average." - } , - "fillGapWithZero": - { - "type" : "boolean", + }, + "fillGapWithZero": { + "type": "boolean", "description": "The property to decide fill gap with zero or not." }, "category": { @@ -699,12 +722,12 @@ "Dimension": { "description": "Dimension of blobs, possibly be blob type or access tier.", "properties": { - "name" : { - "type" : "string", + "name": { + "type": "string", "description": "Display name of dimension." }, - "displayName" : { - "type" : "string", + "displayName": { + "type": "string", "description": "Display name of dimension." } } @@ -717,7 +740,9 @@ }, "type": { "type": "string", - "enum": [ "Microsoft.Storage/storageAccounts" ], + "enum": [ + "Microsoft.Storage/storageAccounts" + ], "x-ms-enum": { "name": "Type", "modelAsString": false @@ -847,7 +872,7 @@ "modelAsString": false } }, - "resourceType":{ + "resourceType": { "readOnly": true, "type": "string", "description": "The type of the resource, usually it is 'storageAccounts'." @@ -952,21 +977,21 @@ "KeyVaultProperties": { "description": "Properties of key vault.", "properties": { - "keyname": { - "type": "string", - "description": "The name of KeyVault key.", - "x-ms-client-name": "KeyName" - }, - "keyversion": { - "type": "string", - "description": "The version of KeyVault key.", - "x-ms-client-name": "KeyVersion" - }, - "keyvaulturi": { - "type": "string", - "description": "The Uri of KeyVault.", - "x-ms-client-name": "KeyVaultUri" - } + "keyname": { + "type": "string", + "description": "The name of KeyVault key.", + "x-ms-client-name": "KeyName" + }, + "keyversion": { + "type": "string", + "description": "The version of KeyVault key.", + "x-ms-client-name": "KeyVersion" + }, + "keyvaulturi": { + "type": "string", + "description": "The Uri of KeyVault.", + "x-ms-client-name": "KeyVaultUri" + } } }, "Encryption": { @@ -986,7 +1011,7 @@ "name": "KeySource", "modelAsString": true }, - "default":"Microsoft.Storage" + "default": "Microsoft.Storage" }, "keyvaultproperties": { "$ref": "#/definitions/KeyVaultProperties", @@ -994,7 +1019,9 @@ "description": "Properties provided by key vault." } }, - "required": [ "keySource" ], + "required": [ + "keySource" + ], "description": "The encryption settings on the storage account." }, "VirtualNetworkRule": { @@ -1032,7 +1059,9 @@ "description": "Gets the state of virtual network rule." } }, - "required": [ "id" ], + "required": [ + "id" + ], "description": "Virtual Network rule." }, "IPRule": { @@ -1173,7 +1202,7 @@ } } }, - "required":[ + "required": [ "type" ], "description": "Identity for the resource." @@ -1745,7 +1774,7 @@ "properties": { "canonicalizedResource": { "type": "string", - "description" : "The canonical path to the signed resource." + "description": "The canonical path to the signed resource." }, "signedResource": { "type": "string", @@ -1913,13 +1942,13 @@ }, "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" - } + "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": [ diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/blob.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/blob.json index 81fb16b4d0c8..8c529a3472c5 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/blob.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/blob.json @@ -1,1071 +1,1071 @@ - { - "swagger": "2.0", - "info": { - "version": "2018-02-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}/blobServices/default/containers": { - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_List", - "x-ms-examples": { - "ListContainers": { - "$ref": "./examples/BlobContainersList.json" - } +{ + "swagger": "2.0", + "info": { + "version": "2018-02-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}/blobServices/default/containers": { + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_List", + "x-ms-examples": { + "ListContainers": { + "$ref": "./examples/BlobContainersList.json" + } + }, + "description": "Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/AccountName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- List Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/ListContainerItems" - } + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- List Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/ListContainerItems" } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}": { - "put": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Create", - "x-ms-examples": { - "PutContainers": { - "$ref": "./examples/BlobContainersPut.json" - } - }, - "description": "Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/AccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "name": "blobContainer", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BlobContainer" - }, - "description": "Properties of the blob container to create." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "201": { - "description": "Created -- Create Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer" - } - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}": { + "put": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Create", + "x-ms-examples": { + "PutContainers": { + "$ref": "./examples/BlobContainersPut.json" } }, - "patch": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Update", - "x-ms-examples": { - "UpdateContainers": { - "$ref": "./examples/BlobContainersPatch.json" - } + "description": "Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/AccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "name": "blobContainer", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BlobContainer" - }, - "description": "Properties to update for the blob container." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Update Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer", - "description": "Properties of the updated blob container." - } - } - } - }, - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Get", - "x-ms-examples": { - "GetContainers": { - "$ref": "./examples/BlobContainersGet.json" - } + { + "$ref": "#/parameters/AccountName" }, - "description": "Gets properties of a specified container. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/AccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + { + "$ref": "#/parameters/ContainerName" + }, + { + "name": "blobContainer", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BlobContainer" }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Get Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer" - } + "description": "Properties of the blob container to create." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created -- Create Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer" } } + } + }, + "patch": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Update", + "x-ms-examples": { + "UpdateContainers": { + "$ref": "./examples/BlobContainersPatch.json" + } }, - "delete": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Delete", - "x-ms-examples": { - "DeleteContainers": { - "$ref": "./examples/BlobContainersDelete.json" - } + "description": "Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Deletes specified container under its account.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/AccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Delete Container operation completed successfully." + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "name": "blobContainer", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BlobContainer" }, - "204": { - "description": "No Content -- The Container not exist." + "description": "Properties to update for the blob container." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Update Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer", + "description": "Properties of the updated blob container." } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_SetLegalHold", - "x-ms-examples": { - "SetLegalHoldContainers": { - "$ref": "./examples/BlobContainersSetLegalHold.json" - } + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Get", + "x-ms-examples": { + "GetContainers": { + "$ref": "./examples/BlobContainersGet.json" + } + }, + "description": "Gets properties of a specified container. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/AccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "LegalHold", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LegalHold" - }, - "description": "The LegalHold property that will be set to a blob container." - } - ], - "responses": { - "200": { - "description": "OK -- Set legal hold tags for Container completed successfully.", - "schema": { - "$ref": "#/definitions/LegalHold" - } + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Get Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_ClearLegalHold", - "x-ms-examples": { - "ClearLegalHoldContainers": { - "$ref": "./examples/BlobContainersClearLegalHold.json" - } + "delete": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Delete", + "x-ms-examples": { + "DeleteContainers": { + "$ref": "./examples/BlobContainersDelete.json" + } + }, + "description": "Deletes specified container under its account.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/AccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "LegalHold", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LegalHold" - }, - "description": "The LegalHold property that will be clear from a blob container." - } - ], - "responses": { - "200": { - "description": "OK -- Clear legal hold tags for Container completed successfully.", - "schema": { - "$ref": "#/definitions/LegalHold" - } - } + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Delete Container operation completed successfully." + }, + "204": { + "description": "No Content -- The Container not exist." } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}": { - "put": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_CreateOrUpdateImmutabilityPolicy", - "x-ms-examples": { - "CreateOrUpdateImmutabilityPolicy": { - "$ref": "./examples/BlobContainersPutImmutabilityPolicy.json" - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_SetLegalHold", + "x-ms-examples": { + "SetLegalHoldContainers": { + "$ref": "./examples/BlobContainersSetLegalHold.json" + } + }, + "description": "Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/AccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "description": "The ImmutabilityPolicy Properties that will be created or updated to a blob container." + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "LegalHold", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LegalHold" }, - { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Creates or updates container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } - } + "description": "The LegalHold property that will be set to a blob container." + } + ], + "responses": { + "200": { + "description": "OK -- Set legal hold tags for Container completed successfully.", + "schema": { + "$ref": "#/definitions/LegalHold" } } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_ClearLegalHold", + "x-ms-examples": { + "ClearLegalHoldContainers": { + "$ref": "./examples/BlobContainersClearLegalHold.json" + } }, - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_GetImmutabilityPolicy", - "x-ms-examples": { - "GetImmutabilityPolicy": { - "$ref": "./examples/BlobContainersGetImmutabilityPolicy.json" - } + "description": "Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Gets the existing immutability policy along with the corresponding ETag in response headers and body.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/AccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "LegalHold", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LegalHold" }, - { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Gets container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } - } + "description": "The LegalHold property that will be clear from a blob container." + } + ], + "responses": { + "200": { + "description": "OK -- Clear legal hold tags for Container completed successfully.", + "schema": { + "$ref": "#/definitions/LegalHold" } } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}": { + "put": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_CreateOrUpdateImmutabilityPolicy", + "x-ms-examples": { + "CreateOrUpdateImmutabilityPolicy": { + "$ref": "./examples/BlobContainersPutImmutabilityPolicy.json" + } }, - "delete": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_DeleteImmutabilityPolicy", - "x-ms-examples": { - "DeleteImmutabilityPolicy": { - "$ref": "./examples/BlobContainersDeleteImmutabilityPolicy.json" - } + "description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/AccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Deletes container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + "description": "The ImmutabilityPolicy Properties that will be created or updated to a blob container." + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Creates or updates container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" + }, + "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" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_LockImmutabilityPolicy", - "x-ms-examples": { - "LockImmutabilityPolicy": { - "$ref": "./examples/BlobContainersLockImmutabilityPolicy.json" - } + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_GetImmutabilityPolicy", + "x-ms-examples": { + "GetImmutabilityPolicy": { + "$ref": "./examples/BlobContainersGetImmutabilityPolicy.json" + } + }, + "description": "Gets the existing immutability policy along with the corresponding ETag in response headers and body.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/AccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Locks container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Gets container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" + }, + "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" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_ExtendImmutabilityPolicy", - "x-ms-examples": { - "ExtendImmutabilityPolicy": { - "$ref": "./examples/BlobContainersExtendImmutabilityPolicy.json" - } + "delete": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_DeleteImmutabilityPolicy", + "x-ms-examples": { + "DeleteImmutabilityPolicy": { + "$ref": "./examples/BlobContainersDeleteImmutabilityPolicy.json" + } + }, + "description": "Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/AccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "description": "The ImmutabilityPolicy Properties that will be extended for a blob container." - }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Extends container ImmutabilityPolicy operation completed successfully..", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Deletes container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" + }, + "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" } } } } - }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Lease", - "x-ms-examples": { - "Acquire a lease on a container": { - "$ref": "./examples/BlobContainersLease_Acquire.json" - }, - "Break a lease on a container": { - "$ref": "./examples/BlobContainersLease_Break.json" - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_LockImmutabilityPolicy", + "x-ms-examples": { + "LockImmutabilityPolicy": { + "$ref": "./examples/BlobContainersLockImmutabilityPolicy.json" + } + }, + "description": "Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/AccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/LeaseContainerRequest" - }, - "description": "Lease Container request body." - } - ], - "responses": { - "200": { - "description": "OK -- Lease Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/LeaseContainerResponse" + { + "$ref": "#/parameters/AccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Locks container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" + }, + "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" } } } } } }, - "definitions": { - "ContainerProperties": { - "properties": { - "publicAccess": { - "type": "string", - "enum": [ - "Container", - "Blob", - "None" - ], - "x-ms-enum": { - "name": "PublicAccess", - "modelAsString": false - }, - "description": "Specifies whether data in the container may be accessed publicly and the level of access." + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_ExtendImmutabilityPolicy", + "x-ms-examples": { + "ExtendImmutabilityPolicy": { + "$ref": "./examples/BlobContainersExtendImmutabilityPolicy.json" + } + }, + "description": "Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the container was last modified." + { + "$ref": "#/parameters/AccountName" }, - "leaseStatus": { - "type": "string", - "readOnly": true, - "enum": [ - "Locked", - "Unlocked" - ], - "x-ms-enum": { - "name": "LeaseStatus", - "modelAsString": true - }, - "description": "The lease status of the container." + { + "$ref": "#/parameters/ContainerName" }, - "leaseState": { - "type": "string", - "readOnly": true, - "enum": [ - "Available", - "Leased", - "Expired", - "Breaking", - "Broken" - ], - "x-ms-enum": { - "name": "LeaseState", - "modelAsString": true - }, - "description": "Lease state of the container." + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, - "leaseDuration": { - "type": "string", - "readOnly": true, - "enum": [ - "Infinite", - "Fixed" - ], - "x-ms-enum": { - "name": "LeaseDuration", - "modelAsString": true - }, - "description": "Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased." + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - "description": "A name-value pair to associate with the container as metadata." - }, - "immutabilityPolicy": { - "readOnly": true, - "$ref": "#/definitions/ImmutabilityPolicyProperties", - "x-ms-client-name": "ImmutabilityPolicy", - "description": "The ImmutabilityPolicy property of the container." - }, - "legalHold": { - "readOnly": true, - "$ref": "#/definitions/LegalHoldProperties", - "description": "The LegalHold property of the container." - }, - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "hasImmutabilityPolicy": { - "type": "boolean", - "readOnly": true, - "description": "The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container." - } - }, - "description": "The properties of a container." - }, - "BlobContainer": { - "properties": { - "properties": { - "$ref": "#/definitions/ContainerProperties", - "x-ms-client-flatten": true, - "x-ms-client-name": "ContainerProperties", - "description": "Properties of the blob container." - } - }, - "allOf": [ + "description": "The ImmutabilityPolicy Properties that will be extended for a blob container." + }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." } ], - "description": "Properties of the blob container, including Id, resource name, resource type, Etag." - }, - "ImmutabilityPolicyProperty": { - "properties": { - "immutabilityPeriodSinceCreationInDays": { - "type": "integer", - "description": "The immutability period for the blobs in the container since the policy creation, in days." - }, - "state": { - "type": "string", - "readOnly": true, - "enum": [ - "Locked", - "Unlocked" - ], - "x-ms-enum": { - "name": "ImmutabilityPolicyState", - "modelAsString": true - }, - "description": "The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked." + "responses": { + "200": { + "description": "OK -- Extends container ImmutabilityPolicy operation completed successfully..", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" + }, + "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" + } + } } - }, - "required": [ - "immutabilityPeriodSinceCreationInDays" + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease": { + "post": { + "tags": [ + "BlobContainers" ], - "description": "The properties of an ImmutabilityPolicy of a blob container." - }, - "ImmutabilityPolicyProperties": { - "properties": { - "properties": { - "$ref": "#/definitions/ImmutabilityPolicyProperty", - "x-ms-client-flatten": true, - "description": "The properties of an ImmutabilityPolicy of a blob container." + "operationId": "BlobContainers_Lease", + "x-ms-examples": { + "Acquire a lease on a container": { + "$ref": "./examples/BlobContainersLease_Acquire.json" }, - "etag": { - "type": "string", - "readOnly": true, - "description": "ImmutabilityPolicy Etag." - }, - "updateHistory": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/UpdateHistoryProperty" - }, - "description": "The ImmutabilityPolicy update history of the blob container." + "Break a lease on a container": { + "$ref": "./examples/BlobContainersLease_Break.json" } }, - "description": "The properties of an ImmutabilityPolicy of a blob container." - }, - "ImmutabilityPolicy": { - "properties": { - "properties": { - "$ref": "#/definitions/ImmutabilityPolicyProperty", - "x-ms-client-flatten": true, - "description": "The properties of an ImmutabilityPolicy of a blob container." - } - }, - "allOf": [ + "description": "The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.", + "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" - } - ], - "required": [ - "properties" - ], - "description": "The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag." - }, - "UpdateHistoryProperty": { - "properties": { - "update": { - "type": "string", - "readOnly": true, - "enum": [ - "put", - "lock", - "extend" - ], - "x-ms-enum": { - "name": "ImmutabilityPolicyUpdateType", - "modelAsString": true - }, - "description": "The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend." + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "immutabilityPeriodSinceCreationInDays": { - "type": "integer", - "readOnly": true, - "description": "The immutability period for the blobs in the container since the policy creation, in days." + { + "$ref": "#/parameters/AccountName" }, - "timestamp": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the ImmutabilityPolicy was updated." + { + "$ref": "#/parameters/ContainerName" }, - "objectIdentifier": { - "type": "string", - "readOnly": true, - "description": "Returns the Object ID of the user who updated the ImmutabilityPolicy." + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, - "tenantId": { - "type": "string", - "readOnly": true, - "description": "Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy." + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, - "upn": { - "type": "string", - "readOnly": true, - "description": "Returns the User Principal Name of the user who updated the ImmutabilityPolicy." - } - }, - "description": "An update history of the ImmutabilityPolicy of a blob container." - }, - "LegalHoldProperties": { - "properties": { - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/TagProperty" + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/LeaseContainerRequest" }, - "description": "The list of LegalHold tags of a blob container." + "description": "Lease Container request body." + } + ], + "responses": { + "200": { + "description": "OK -- Lease Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/LeaseContainerResponse" + } } + } + } + } + }, + "definitions": { + "ContainerProperties": { + "properties": { + "publicAccess": { + "type": "string", + "enum": [ + "Container", + "Blob", + "None" + ], + "x-ms-enum": { + "name": "PublicAccess", + "modelAsString": false + }, + "description": "Specifies whether data in the container may be accessed publicly and the level of access." }, - "description": "The LegalHold property of a blob container." - }, - "TagProperty": { - "properties": { - "tag": { - "type": "string", - "readOnly": true, - "description": "The tag value." + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the container was last modified." + }, + "leaseStatus": { + "type": "string", + "readOnly": true, + "enum": [ + "Locked", + "Unlocked" + ], + "x-ms-enum": { + "name": "LeaseStatus", + "modelAsString": true }, - "timestamp": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the tag was added." + "description": "The lease status of the container." + }, + "leaseState": { + "type": "string", + "readOnly": true, + "enum": [ + "Available", + "Leased", + "Expired", + "Breaking", + "Broken" + ], + "x-ms-enum": { + "name": "LeaseState", + "modelAsString": true }, - "objectIdentifier": { - "type": "string", - "readOnly": true, - "description": "Returns the Object ID of the user who added the tag." + "description": "Lease state of the container." + }, + "leaseDuration": { + "type": "string", + "readOnly": true, + "enum": [ + "Infinite", + "Fixed" + ], + "x-ms-enum": { + "name": "LeaseDuration", + "modelAsString": true }, - "tenantId": { - "type": "string", - "readOnly": true, - "description": "Returns the Tenant ID that issued the token for the user who added the tag." + "description": "Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased." + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" }, - "upn": { - "type": "string", - "readOnly": true, - "description": "Returns the User Principal Name of the user who added the tag." - } + "description": "A name-value pair to associate with the container as metadata." }, - "description": "A tag of the LegalHold of a blob container." - }, - "LegalHold": { - "properties": { - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "tags": { - "type": "array", - "items": { - "type": "string", - "maxLength": 23, - "minLength": 3 - }, - "description": "Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP." - } + "immutabilityPolicy": { + "readOnly": true, + "$ref": "#/definitions/ImmutabilityPolicyProperties", + "x-ms-client-name": "ImmutabilityPolicy", + "description": "The ImmutabilityPolicy property of the container." }, - "required": [ - "tags" - ], - "description": "The LegalHold property of a blob container." + "legalHold": { + "readOnly": true, + "$ref": "#/definitions/LegalHoldProperties", + "description": "The LegalHold property of the container." + }, + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." + }, + "hasImmutabilityPolicy": { + "type": "boolean", + "readOnly": true, + "description": "The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container." + } }, - "ListContainerItem": { + "description": "The properties of a container." + }, + "BlobContainer": { + "properties": { "properties": { - "properties": { - "$ref": "#/definitions/ContainerProperties", - "x-ms-client-flatten": true, - "description": "The blob container properties be listed out." - } + "$ref": "#/definitions/ContainerProperties", + "x-ms-client-flatten": true, + "x-ms-client-name": "ContainerProperties", + "description": "Properties of the blob container." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "description": "Properties of the blob container, including Id, resource name, resource type, Etag." + }, + "ImmutabilityPolicyProperty": { + "properties": { + "immutabilityPeriodSinceCreationInDays": { + "type": "integer", + "description": "The immutability period for the blobs in the container since the policy creation, in days." }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" - } - ], - "description": "The blob container properties be listed out." + "state": { + "type": "string", + "readOnly": true, + "enum": [ + "Locked", + "Unlocked" + ], + "x-ms-enum": { + "name": "ImmutabilityPolicyState", + "modelAsString": true + }, + "description": "The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked." + } }, - "ListContainerItems": { + "required": [ + "immutabilityPeriodSinceCreationInDays" + ], + "description": "The properties of an ImmutabilityPolicy of a blob container." + }, + "ImmutabilityPolicyProperties": { + "properties": { "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ListContainerItem" - }, - "description": "The list of blob containers." - } + "$ref": "#/definitions/ImmutabilityPolicyProperty", + "x-ms-client-flatten": true, + "description": "The properties of an ImmutabilityPolicy of a blob container." }, - "description": "The list of blob containers." + "etag": { + "type": "string", + "readOnly": true, + "description": "ImmutabilityPolicy Etag." + }, + "updateHistory": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/UpdateHistoryProperty" + }, + "description": "The ImmutabilityPolicy update history of the blob container." + } }, - "LeaseContainerRequest": { + "description": "The properties of an ImmutabilityPolicy of a blob container." + }, + "ImmutabilityPolicy": { + "properties": { "properties": { - "action": { - "type": "string", - "enum": [ - "Acquire", - "Renew", - "Change", - "Release", - "Break" - ], - "description": "Specifies the lease action. Can be one of the available actions." - }, - "leaseId": { - "type": "string", - "description": "Identifies the lease. Can be specified in any valid GUID string format." - }, - "breakPeriod": { - "type": "integer", - "description": "Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60." + "$ref": "#/definitions/ImmutabilityPolicyProperty", + "x-ms-client-flatten": true, + "description": "The properties of an ImmutabilityPolicy of a blob container." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "required": [ + "properties" + ], + "description": "The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag." + }, + "UpdateHistoryProperty": { + "properties": { + "update": { + "type": "string", + "readOnly": true, + "enum": [ + "put", + "lock", + "extend" + ], + "x-ms-enum": { + "name": "ImmutabilityPolicyUpdateType", + "modelAsString": true }, - "leaseDuration": { - "type": "integer", - "description": "Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires." + "description": "The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend." + }, + "immutabilityPeriodSinceCreationInDays": { + "type": "integer", + "readOnly": true, + "description": "The immutability period for the blobs in the container since the policy creation, in days." + }, + "timestamp": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the ImmutabilityPolicy was updated." + }, + "objectIdentifier": { + "type": "string", + "readOnly": true, + "description": "Returns the Object ID of the user who updated the ImmutabilityPolicy." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy." + }, + "upn": { + "type": "string", + "readOnly": true, + "description": "Returns the User Principal Name of the user who updated the ImmutabilityPolicy." + } + }, + "description": "An update history of the ImmutabilityPolicy of a blob container." + }, + "LegalHoldProperties": { + "properties": { + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/definitions/TagProperty" }, - "proposedLeaseId": { - "type": "string", - "description": "Optional for acquire, required for change. Proposed lease ID, in a GUID string format." - } + "description": "The list of LegalHold tags of a blob container." + } + }, + "description": "The LegalHold property of a blob container." + }, + "TagProperty": { + "properties": { + "tag": { + "type": "string", + "readOnly": true, + "description": "The tag value." }, - "required": [ - "action" - ], - "description": "Lease Container request schema." + "timestamp": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the tag was added." + }, + "objectIdentifier": { + "type": "string", + "readOnly": true, + "description": "Returns the Object ID of the user who added the tag." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "Returns the Tenant ID that issued the token for the user who added the tag." + }, + "upn": { + "type": "string", + "readOnly": true, + "description": "Returns the User Principal Name of the user who added the tag." + } }, - "LeaseContainerResponse": { - "properties": { - "leaseId": { + "description": "A tag of the LegalHold of a blob container." + }, + "LegalHold": { + "properties": { + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." + }, + "tags": { + "type": "array", + "items": { "type": "string", - "description": "Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease." + "maxLength": 23, + "minLength": 3 }, - "leaseTimeSeconds": { - "type": "string", - "description": "Approximate time remaining in the lease period, in seconds." - } - }, - "description": "Lease Container response schema." - } + "description": "Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP." + } + }, + "required": [ + "tags" + ], + "description": "The LegalHold property of a blob container." + }, + "ListContainerItem": { + "properties": { + "properties": { + "$ref": "#/definitions/ContainerProperties", + "x-ms-client-flatten": true, + "description": "The blob container properties be listed out." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "description": "The blob container properties be listed out." }, - "parameters": { - "AccountName": { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.", - "maxLength": 24, - "minLength": 3, - "x-ms-parameter-location": "method" + "ListContainerItems": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ListContainerItem" + }, + "description": "The list of blob containers." + } }, - "ContainerName": { - "name": "containerName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.", - "maxLength": 63, - "minLength": 3, - "x-ms-parameter-location": "method" + "description": "The list of blob containers." + }, + "LeaseContainerRequest": { + "properties": { + "action": { + "type": "string", + "enum": [ + "Acquire", + "Renew", + "Change", + "Release", + "Break" + ], + "description": "Specifies the lease action. Can be one of the available actions." + }, + "leaseId": { + "type": "string", + "description": "Identifies the lease. Can be specified in any valid GUID string format." + }, + "breakPeriod": { + "type": "integer", + "description": "Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60." + }, + "leaseDuration": { + "type": "integer", + "description": "Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires." + }, + "proposedLeaseId": { + "type": "string", + "description": "Optional for acquire, required for change. Proposed lease ID, in a GUID string format." + } }, - "ImmutabilityPolicyName": { - "name": "immutabilityPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'", - "enum":[ - "default" - ], - "x-ms-parameter-location": "method" - } + "required": [ + "action" + ], + "description": "Lease Container request schema." }, - "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" + "LeaseContainerResponse": { + "properties": { + "leaseId": { + "type": "string", + "description": "Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease." + }, + "leaseTimeSeconds": { + "type": "string", + "description": "Approximate time remaining in the lease period, in seconds." } - } + }, + "description": "Lease Container response schema." + } + }, + "parameters": { + "AccountName": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.", + "maxLength": 24, + "minLength": 3, + "x-ms-parameter-location": "method" + }, + "ContainerName": { + "name": "containerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.", + "maxLength": 63, + "minLength": 3, + "x-ms-parameter-location": "method" }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] + "ImmutabilityPolicyName": { + "name": "immutabilityPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'", + "enum": [ + "default" + ], + "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" } - ] - } \ No newline at end of file + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersClearLegalHold.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersClearLegalHold.json index 7034d3fffe3c..d06c91922930 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersClearLegalHold.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersClearLegalHold.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersDelete.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersDelete.json index 8f3553566378..c4a38c60570e 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersDelete.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersDelete.json @@ -8,11 +8,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersExtendImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersExtendImmutabilityPolicy.json index de5928904dd3..a2780072ef05 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersExtendImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersExtendImmutabilityPolicy.json @@ -4,7 +4,7 @@ "resourceGroupName": "res6238", "accountName": "sto232", "containerName": "container5023", - "If-Match": "\"8d59f830d0c3bf9\"", + "If-Match": "\"8d59f830d0c3bf9\"", "api-version": "2018-02-01", "monitor": "true", "parameters": { @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersGet.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersGet.json index dfcdd715f1a1..0c2a79fe4a16 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersGet.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersGet.json @@ -78,4 +78,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersGetImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersGetImmutabilityPolicy.json index b4832e1a531b..c4c8c39c17d9 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersGetImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersGetImmutabilityPolicy.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersLease_Acquire.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersLease_Acquire.json index 4d1e6f7613d0..5a20f0b8254f 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersLease_Acquire.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersLease_Acquire.json @@ -7,25 +7,18 @@ "api-version": "2018-02-01", "monitor": "true", "parameters": { - "properties": { - "Action": 0, - "LeaseId": null, - "BreakPeriod": null, - "LeaseDuration": -1, - "ProposedLeaseId": null - } + "action": "Acquire", + "leaseId": null, + "breakPeriod": null, + "leaseDuration": -1, + "proposedLeaseId": null } }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/blobServices/default/containers/container6185", - "name": "container6185", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "properties": { - "LeaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d" - } + "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d" } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersLease_Break.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersLease_Break.json index e14bdc92d3b3..8102ce6b0790 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersLease_Break.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersLease_Break.json @@ -7,25 +7,18 @@ "api-version": "2018-03-01-preview", "monitor": "true", "parameters": { - "properties": { - "Action": 4, - "LeaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d", - "BreakPeriod": null, - "LeaseDuration": null, - "ProposedLeaseId": null - } + "action": "Break", + "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d", + "breakPeriod": null, + "leaseDuration": null, + "proposedLeaseId": null } }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/blobServices/default/containers/container6185", - "name": "container6185", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "properties": { - "LeaseTimeSeconds": "0" - } + "leaseTimeSeconds": "0" } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersList.json index a37be2da97f0..1d3d7233ef7d 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersList.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersLockImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersLockImmutabilityPolicy.json index bf2d99c923ee..d7f5b9d0df3d 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersLockImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersLockImmutabilityPolicy.json @@ -4,7 +4,7 @@ "resourceGroupName": "res2702", "accountName": "sto5009", "containerName": "container1631", - "If-Match": "\"8d59f825b721dd3\"", + "If-Match": "\"8d59f825b721dd3\"", "api-version": "2018-02-01", "monitor": "true" }, @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersPatch.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersPatch.json index 2b878d194e0d..d5685b3ef601 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersPatch.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersPatch.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersPut.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersPut.json index 649e2422b75f..eda6ba19fe15 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersPut.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersPut.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersPutImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersPutImmutabilityPolicy.json index d11c06313f81..f2ea8e6a5891 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersPutImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersPutImmutabilityPolicy.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersSetLegalHold.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersSetLegalHold.json index f5a488a2e762..271963e4ceb5 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersSetLegalHold.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/BlobContainersSetLegalHold.json @@ -26,4 +26,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/OperationsList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/OperationsList.json index 687c60b969e4..d923f361f3fd 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/OperationsList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/OperationsList.json @@ -470,4 +470,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/SKUList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/SKUList.json index 855771666292..a994c9992dd6 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/SKUList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/SKUList.json @@ -6451,4 +6451,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountCheckNameAvailability.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountCheckNameAvailability.json index e14b1b1b8a20..1cac26c79a66 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountCheckNameAvailability.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountCheckNameAvailability.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountCreate.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountCreate.json index fb48db0af159..0a5d76f3f330 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountCreate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountCreate.json @@ -55,8 +55,6 @@ "type": "Microsoft.Storage/storageAccounts" } }, - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountDelete.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountDelete.json index 1611fc7a5a29..27555c8dfabe 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountDelete.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountDelete.json @@ -7,11 +7,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountGetProperties.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountGetProperties.json index 3a4e56baa292..9521e1fdceff 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountGetProperties.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountGetProperties.json @@ -49,4 +49,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountList.json index aaf1f6e7fe0f..78d650f5094e 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountList.json @@ -180,4 +180,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListAccountSAS.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListAccountSAS.json index f518bb837e5b..20bffb1b36ad 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListAccountSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListAccountSAS.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListByResourceGroup.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListByResourceGroup.json index af8bca6eb6b0..6906a6e474c1 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListByResourceGroup.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListByResourceGroup.json @@ -75,4 +75,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListKeys.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListKeys.json index c5de65b7c404..e5334383697d 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListKeys.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListKeys.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListLocationUsage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListLocationUsage.json index 100705deb0e1..2ffa71512bd5 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListLocationUsage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListLocationUsage.json @@ -21,4 +21,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListServiceSAS.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListServiceSAS.json index 3799ff56dca7..1fd3fe783eb6 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListServiceSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountListServiceSAS.json @@ -19,4 +19,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountRegenerateKey.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountRegenerateKey.json index 35a883b764f8..08871e89bca2 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountRegenerateKey.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountRegenerateKey.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountUpdate.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountUpdate.json index 1d2b14b351a8..132a66e53fc1 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountUpdate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/StorageAccountUpdate.json @@ -56,4 +56,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/UsageList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/UsageList.json index be75fae56bf8..ce2b65b1d603 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/UsageList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/examples/UsageList.json @@ -20,4 +20,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/storage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/storage.json index f19ab5c57d4a..2e4520d20761 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-02-01/storage.json @@ -505,7 +505,9 @@ "operationId": "Usage_ListByLocation", "description": "Gets the current usage count and the limit for the resources of the location under the subscription.", "x-ms-examples": { - "UsageList": { "$ref": "./examples/StorageAccountListLocationUsage.json"} + "UsageList": { + "$ref": "./examples/StorageAccountListLocationUsage.json" + } }, "parameters": [ { @@ -520,7 +522,7 @@ "required": true, "type": "string", "description": "The location of the Azure Storage resource." - } + } ], "responses": { "200": { @@ -1216,8 +1218,8 @@ "isHnsEnabled": { "type": "boolean", "default": false, - "x-ms-client-name": "IsHnsEnabled", - "description": "Account HierarchicalNamespace enabled if sets to true." + "x-ms-client-name": "IsHnsEnabled", + "description": "Account HierarchicalNamespace enabled if sets to true." } }, "description": "The parameters used to create the storage account." @@ -1445,8 +1447,8 @@ "isHnsEnabled": { "type": "boolean", "default": false, - "x-ms-client-name": "IsHnsEnabled", - "description": "Account HierarchicalNamespace enabled if sets to true." + "x-ms-client-name": "IsHnsEnabled", + "description": "Account HierarchicalNamespace enabled if sets to true." } }, "description": "Properties of the storage account." @@ -1971,4 +1973,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/blob.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/blob.json index d87260e5fb17..bd12253a7603 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/blob.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/blob.json @@ -1,25 +1,25 @@ - { - "swagger": "2.0", - "info": { - "version": "2018-07-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}/blobServices/{BlobServicesName}": { - "put": { +{ + "swagger": "2.0", + "info": { + "version": "2018-07-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}/blobServices/{BlobServicesName}": { + "put": { "tags": [ - "BlobService" + "BlobService" ], "operationId": "BlobServices_SetServiceProperties", "x-ms-examples": { @@ -42,30 +42,30 @@ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/BlobServicesName" + "$ref": "#/parameters/BlobServicesName" }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/BlobServiceProperties" + "$ref": "#/definitions/BlobServiceProperties" }, "description": "The properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules." } ], "responses": { - "200": { - "description": "OK -- Sets The properties of a storage account’s Blob service successfully.", - "schema": { - "$ref": "#/definitions/BlobServiceProperties" + "200": { + "description": "OK -- Sets The properties of a storage account’s Blob service successfully.", + "schema": { + "$ref": "#/definitions/BlobServiceProperties" + } } - } } - }, - "get": { + }, + "get": { "tags": [ - "BlobService" + "BlobService" ], "operationId": "BlobServices_GetServiceProperties", "x-ms-examples": { @@ -88,976 +88,976 @@ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/BlobServicesName" + "$ref": "#/parameters/BlobServicesName" } ], "responses": { - "200": { - "description": "OK -- returned the properties of a storage account’s Blob service.", - "schema": { - "$ref": "#/definitions/BlobServiceProperties" + "200": { + "description": "OK -- returned the properties of a storage account’s Blob service.", + "schema": { + "$ref": "#/definitions/BlobServiceProperties" + } } - } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers": { - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_List", - "x-ms-examples": { - "ListContainers": { - "$ref": "./examples/BlobContainersList.json" - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers": { + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_List", + "x-ms-examples": { + "ListContainers": { + "$ref": "./examples/BlobContainersList.json" + } + }, + "description": "Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.", - "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 -- List Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/ListContainerItems" - } + { + "$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 -- List Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/ListContainerItems" } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}": { - "put": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Create", - "x-ms-examples": { - "PutContainers": { - "$ref": "./examples/BlobContainersPut.json" - } - }, - "description": "Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "name": "blobContainer", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BlobContainer" - }, - "description": "Properties of the blob container to create." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "201": { - "description": "Created -- Create Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer" - } - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}": { + "put": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Create", + "x-ms-examples": { + "PutContainers": { + "$ref": "./examples/BlobContainersPut.json" } }, - "patch": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Update", - "x-ms-examples": { - "UpdateContainers": { - "$ref": "./examples/BlobContainersPatch.json" - } + "description": "Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "name": "blobContainer", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BlobContainer" - }, - "description": "Properties to update for the blob container." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "name": "blobContainer", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BlobContainer" }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Update Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer", - "description": "Properties of the updated blob container." - } + "description": "Properties of the blob container to create." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created -- Create Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer" } } + } + }, + "patch": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Update", + "x-ms-examples": { + "UpdateContainers": { + "$ref": "./examples/BlobContainersPatch.json" + } }, - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Get", - "x-ms-examples": { - "GetContainers": { - "$ref": "./examples/BlobContainersGet.json" - } + "description": "Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Gets properties of a specified container. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "name": "blobContainer", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BlobContainer" }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Get Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer" - } + "description": "Properties to update for the blob container." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Update Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer", + "description": "Properties of the updated blob container." } } + } + }, + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Get", + "x-ms-examples": { + "GetContainers": { + "$ref": "./examples/BlobContainersGet.json" + } }, - "delete": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Delete", - "x-ms-examples": { - "DeleteContainers": { - "$ref": "./examples/BlobContainersDelete.json" - } + "description": "Gets properties of a specified container. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Deletes specified container under its account.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Delete Container operation completed successfully." - }, - "204": { - "description": "No Content -- The Container not exist." + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Get Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_SetLegalHold", - "x-ms-examples": { - "SetLegalHoldContainers": { - "$ref": "./examples/BlobContainersSetLegalHold.json" - } + "delete": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Delete", + "x-ms-examples": { + "DeleteContainers": { + "$ref": "./examples/BlobContainersDelete.json" + } + }, + "description": "Deletes specified container under its account.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "LegalHold", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LegalHold" - }, - "description": "The LegalHold property that will be set to a blob container." - } - ], - "responses": { - "200": { - "description": "OK -- Set legal hold tags for Container completed successfully.", - "schema": { - "$ref": "#/definitions/LegalHold" - } - } + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Delete Container operation completed successfully." + }, + "204": { + "description": "No Content -- The Container not exist." } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_ClearLegalHold", - "x-ms-examples": { - "ClearLegalHoldContainers": { - "$ref": "./examples/BlobContainersClearLegalHold.json" - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_SetLegalHold", + "x-ms-examples": { + "SetLegalHoldContainers": { + "$ref": "./examples/BlobContainersSetLegalHold.json" + } + }, + "description": "Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "LegalHold", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LegalHold" }, - { - "name": "LegalHold", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LegalHold" - }, - "description": "The LegalHold property that will be clear from a blob container." - } - ], - "responses": { - "200": { - "description": "OK -- Clear legal hold tags for Container completed successfully.", - "schema": { - "$ref": "#/definitions/LegalHold" - } + "description": "The LegalHold property that will be set to a blob container." + } + ], + "responses": { + "200": { + "description": "OK -- Set legal hold tags for Container completed successfully.", + "schema": { + "$ref": "#/definitions/LegalHold" } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}": { - "put": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_CreateOrUpdateImmutabilityPolicy", - "x-ms-examples": { - "CreateOrUpdateImmutabilityPolicy": { - "$ref": "./examples/BlobContainersPutImmutabilityPolicy.json" - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_ClearLegalHold", + "x-ms-examples": { + "ClearLegalHoldContainers": { + "$ref": "./examples/BlobContainersClearLegalHold.json" + } + }, + "description": "Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "description": "The ImmutabilityPolicy Properties that will be created or updated to a blob container." + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "LegalHold", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LegalHold" }, - { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Creates or updates container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } - } + "description": "The LegalHold property that will be clear from a blob container." + } + ], + "responses": { + "200": { + "description": "OK -- Clear legal hold tags for Container completed successfully.", + "schema": { + "$ref": "#/definitions/LegalHold" } } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}": { + "put": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_CreateOrUpdateImmutabilityPolicy", + "x-ms-examples": { + "CreateOrUpdateImmutabilityPolicy": { + "$ref": "./examples/BlobContainersPutImmutabilityPolicy.json" + } }, - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_GetImmutabilityPolicy", - "x-ms-examples": { - "GetImmutabilityPolicy": { - "$ref": "./examples/BlobContainersGetImmutabilityPolicy.json" - } + "description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Gets the existing immutability policy along with the corresponding ETag in response headers and body.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "description": "The ImmutabilityPolicy Properties that will be created or updated to a blob container." + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Creates or updates container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Gets container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + "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" } } } + } + }, + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_GetImmutabilityPolicy", + "x-ms-examples": { + "GetImmutabilityPolicy": { + "$ref": "./examples/BlobContainersGetImmutabilityPolicy.json" + } }, - "delete": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_DeleteImmutabilityPolicy", - "x-ms-examples": { - "DeleteImmutabilityPolicy": { - "$ref": "./examples/BlobContainersDeleteImmutabilityPolicy.json" - } + "description": "Gets the existing immutability policy along with the corresponding ETag in response headers and body.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Gets container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Deletes container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + "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" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_LockImmutabilityPolicy", - "x-ms-examples": { - "LockImmutabilityPolicy": { - "$ref": "./examples/BlobContainersLockImmutabilityPolicy.json" - } + "delete": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_DeleteImmutabilityPolicy", + "x-ms-examples": { + "DeleteImmutabilityPolicy": { + "$ref": "./examples/BlobContainersDeleteImmutabilityPolicy.json" + } + }, + "description": "Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Deletes container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Locks container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + "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" } } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_ExtendImmutabilityPolicy", - "x-ms-examples": { - "ExtendImmutabilityPolicy": { - "$ref": "./examples/BlobContainersExtendImmutabilityPolicy.json" - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_LockImmutabilityPolicy", + "x-ms-examples": { + "LockImmutabilityPolicy": { + "$ref": "./examples/BlobContainersLockImmutabilityPolicy.json" + } + }, + "description": "Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "description": "The ImmutabilityPolicy Properties that will be extended for a blob container." + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Locks container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Extends container ImmutabilityPolicy operation completed successfully..", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + "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" } } } } - }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Lease", - "x-ms-examples": { - "Acquire a lease on a container": { - "$ref": "./examples/BlobContainersLease_Acquire.json" - }, - "Break a lease on a container": { - "$ref": "./examples/BlobContainersLease_Break.json" - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_ExtendImmutabilityPolicy", + "x-ms-examples": { + "ExtendImmutabilityPolicy": { + "$ref": "./examples/BlobContainersExtendImmutabilityPolicy.json" + } + }, + "description": "Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" + }, + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, - "description": "The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "description": "The ImmutabilityPolicy Properties that will be extended for a blob container." + }, + { + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Extends container ImmutabilityPolicy operation completed successfully..", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/LeaseContainerRequest" - }, - "description": "Lease Container request body." - } - ], - "responses": { - "200": { - "description": "OK -- Lease Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/LeaseContainerResponse" + "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" } } } } } }, - "definitions": { - "ContainerProperties": { - "properties": { - "publicAccess": { - "type": "string", - "enum": [ - "Container", - "Blob", - "None" - ], - "x-ms-enum": { - "name": "PublicAccess", - "modelAsString": false - }, - "description": "Specifies whether data in the container may be accessed publicly and the level of access." + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Lease", + "x-ms-examples": { + "Acquire a lease on a container": { + "$ref": "./examples/BlobContainersLease_Acquire.json" }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the container was last modified." + "Break a lease on a container": { + "$ref": "./examples/BlobContainersLease_Break.json" + } + }, + "description": "The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "leaseStatus": { - "type": "string", - "readOnly": true, - "enum": [ - "Locked", - "Unlocked" - ], - "x-ms-enum": { - "name": "LeaseStatus", - "modelAsString": true - }, - "description": "The lease status of the container." + { + "$ref": "./storage.json#/parameters/StorageAccountName" }, - "leaseState": { - "type": "string", - "readOnly": true, - "enum": [ - "Available", - "Leased", - "Expired", - "Breaking", - "Broken" - ], - "x-ms-enum": { - "name": "LeaseState", - "modelAsString": true - }, - "description": "Lease state of the container." + { + "$ref": "#/parameters/ContainerName" }, - "leaseDuration": { - "type": "string", - "readOnly": true, - "enum": [ - "Infinite", - "Fixed" - ], - "x-ms-enum": { - "name": "LeaseDuration", - "modelAsString": true - }, - "description": "Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased." + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "A name-value pair to associate with the container as metadata." - }, - "immutabilityPolicy": { - "readOnly": true, - "$ref": "#/definitions/ImmutabilityPolicyProperties", - "x-ms-client-name": "ImmutabilityPolicy", - "description": "The ImmutabilityPolicy property of the container." - }, - "legalHold": { - "readOnly": true, - "$ref": "#/definitions/LegalHoldProperties", - "description": "The LegalHold property of the container." - }, - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "hasImmutabilityPolicy": { - "type": "boolean", - "readOnly": true, - "description": "The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container." - } - }, - "description": "The properties of a container." - }, - "BlobContainer": { - "properties": { - "properties": { - "$ref": "#/definitions/ContainerProperties", - "x-ms-client-flatten": true, - "x-ms-client-name": "ContainerProperties", - "description": "Properties of the blob container." - } - }, - "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" - } - ], - "description": "Properties of the blob container, including Id, resource name, resource type, Etag." - }, - "ImmutabilityPolicyProperty": { - "properties": { - "immutabilityPeriodSinceCreationInDays": { - "type": "integer", - "description": "The immutability period for the blobs in the container since the policy creation, in days." + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, - "state": { - "type": "string", - "readOnly": true, - "enum": [ - "Locked", - "Unlocked" - ], - "x-ms-enum": { - "name": "ImmutabilityPolicyState", - "modelAsString": true + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/LeaseContainerRequest" }, - "description": "The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked." + "description": "Lease Container request body." } - }, - "required": [ - "immutabilityPeriodSinceCreationInDays" ], - "description": "The properties of an ImmutabilityPolicy of a blob container." - }, - "ImmutabilityPolicyProperties": { - "properties": { - "properties": { - "$ref": "#/definitions/ImmutabilityPolicyProperty", - "x-ms-client-flatten": true, - "description": "The properties of an ImmutabilityPolicy of a blob container." - }, - "etag": { - "type": "string", - "readOnly": true, - "description": "ImmutabilityPolicy Etag." - }, - "updateHistory": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/UpdateHistoryProperty" - }, - "description": "The ImmutabilityPolicy update history of the blob container." + "responses": { + "200": { + "description": "OK -- Lease Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/LeaseContainerResponse" + } } + } + } + } + }, + "definitions": { + "ContainerProperties": { + "properties": { + "publicAccess": { + "type": "string", + "enum": [ + "Container", + "Blob", + "None" + ], + "x-ms-enum": { + "name": "PublicAccess", + "modelAsString": false + }, + "description": "Specifies whether data in the container may be accessed publicly and the level of access." }, - "description": "The properties of an ImmutabilityPolicy of a blob container." - }, - "ImmutabilityPolicy": { - "properties": { - "properties": { - "$ref": "#/definitions/ImmutabilityPolicyProperty", - "x-ms-client-flatten": true, - "description": "The properties of an ImmutabilityPolicy of a blob container." - } + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the container was last modified." }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" - } - ], - "required": [ - "properties" - ], - "description": "The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag." - }, - "UpdateHistoryProperty": { - "properties": { - "update": { - "type": "string", - "readOnly": true, - "enum": [ - "put", - "lock", - "extend" - ], - "x-ms-enum": { - "name": "ImmutabilityPolicyUpdateType", - "modelAsString": true - }, - "description": "The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend." - }, - "immutabilityPeriodSinceCreationInDays": { - "type": "integer", - "readOnly": true, - "description": "The immutability period for the blobs in the container since the policy creation, in days." + "leaseStatus": { + "type": "string", + "readOnly": true, + "enum": [ + "Locked", + "Unlocked" + ], + "x-ms-enum": { + "name": "LeaseStatus", + "modelAsString": true }, - "timestamp": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the ImmutabilityPolicy was updated." + "description": "The lease status of the container." + }, + "leaseState": { + "type": "string", + "readOnly": true, + "enum": [ + "Available", + "Leased", + "Expired", + "Breaking", + "Broken" + ], + "x-ms-enum": { + "name": "LeaseState", + "modelAsString": true }, - "objectIdentifier": { - "type": "string", - "readOnly": true, - "description": "Returns the Object ID of the user who updated the ImmutabilityPolicy." + "description": "Lease state of the container." + }, + "leaseDuration": { + "type": "string", + "readOnly": true, + "enum": [ + "Infinite", + "Fixed" + ], + "x-ms-enum": { + "name": "LeaseDuration", + "modelAsString": true }, - "tenantId": { - "type": "string", - "readOnly": true, - "description": "Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy." + "description": "Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased." + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" }, - "upn": { - "type": "string", - "readOnly": true, - "description": "Returns the User Principal Name of the user who updated the ImmutabilityPolicy." - } + "description": "A name-value pair to associate with the container as metadata." }, - "description": "An update history of the ImmutabilityPolicy of a blob container." - }, - "LegalHoldProperties": { - "properties": { - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/TagProperty" - }, - "description": "The list of LegalHold tags of a blob container." - } + "immutabilityPolicy": { + "readOnly": true, + "$ref": "#/definitions/ImmutabilityPolicyProperties", + "x-ms-client-name": "ImmutabilityPolicy", + "description": "The ImmutabilityPolicy property of the container." }, - "description": "The LegalHold property of a blob container." + "legalHold": { + "readOnly": true, + "$ref": "#/definitions/LegalHoldProperties", + "description": "The LegalHold property of the container." + }, + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." + }, + "hasImmutabilityPolicy": { + "type": "boolean", + "readOnly": true, + "description": "The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container." + } }, - "TagProperty": { - "properties": { - "tag": { - "type": "string", - "readOnly": true, - "description": "The tag value." - }, - "timestamp": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the tag was added." + "description": "The properties of a container." + }, + "BlobContainer": { + "properties": { + "properties": { + "$ref": "#/definitions/ContainerProperties", + "x-ms-client-flatten": true, + "x-ms-client-name": "ContainerProperties", + "description": "Properties of the blob container." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "description": "Properties of the blob container, including Id, resource name, resource type, Etag." + }, + "ImmutabilityPolicyProperty": { + "properties": { + "immutabilityPeriodSinceCreationInDays": { + "type": "integer", + "description": "The immutability period for the blobs in the container since the policy creation, in days." + }, + "state": { + "type": "string", + "readOnly": true, + "enum": [ + "Locked", + "Unlocked" + ], + "x-ms-enum": { + "name": "ImmutabilityPolicyState", + "modelAsString": true }, - "objectIdentifier": { - "type": "string", - "readOnly": true, - "description": "Returns the Object ID of the user who added the tag." + "description": "The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked." + } + }, + "required": [ + "immutabilityPeriodSinceCreationInDays" + ], + "description": "The properties of an ImmutabilityPolicy of a blob container." + }, + "ImmutabilityPolicyProperties": { + "properties": { + "properties": { + "$ref": "#/definitions/ImmutabilityPolicyProperty", + "x-ms-client-flatten": true, + "description": "The properties of an ImmutabilityPolicy of a blob container." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "ImmutabilityPolicy Etag." + }, + "updateHistory": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/UpdateHistoryProperty" }, - "tenantId": { - "type": "string", - "readOnly": true, - "description": "Returns the Tenant ID that issued the token for the user who added the tag." + "description": "The ImmutabilityPolicy update history of the blob container." + } + }, + "description": "The properties of an ImmutabilityPolicy of a blob container." + }, + "ImmutabilityPolicy": { + "properties": { + "properties": { + "$ref": "#/definitions/ImmutabilityPolicyProperty", + "x-ms-client-flatten": true, + "description": "The properties of an ImmutabilityPolicy of a blob container." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "required": [ + "properties" + ], + "description": "The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag." + }, + "UpdateHistoryProperty": { + "properties": { + "update": { + "type": "string", + "readOnly": true, + "enum": [ + "put", + "lock", + "extend" + ], + "x-ms-enum": { + "name": "ImmutabilityPolicyUpdateType", + "modelAsString": true }, - "upn": { - "type": "string", - "readOnly": true, - "description": "Returns the User Principal Name of the user who added the tag." - } + "description": "The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend." }, - "description": "A tag of the LegalHold of a blob container." - }, - "LegalHold": { - "properties": { - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "tags": { - "type": "array", - "items": { - "type": "string", - "maxLength": 23, - "minLength": 3 - }, - "description": "Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP." - } + "immutabilityPeriodSinceCreationInDays": { + "type": "integer", + "readOnly": true, + "description": "The immutability period for the blobs in the container since the policy creation, in days." }, - "required": [ - "tags" - ], - "description": "The LegalHold property of a blob container." + "timestamp": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the ImmutabilityPolicy was updated." + }, + "objectIdentifier": { + "type": "string", + "readOnly": true, + "description": "Returns the Object ID of the user who updated the ImmutabilityPolicy." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy." + }, + "upn": { + "type": "string", + "readOnly": true, + "description": "Returns the User Principal Name of the user who updated the ImmutabilityPolicy." + } }, - "ListContainerItem": { - "properties": { - "properties": { - "$ref": "#/definitions/ContainerProperties", - "x-ms-client-flatten": true, - "description": "The blob container properties be listed out." - } + "description": "An update history of the ImmutabilityPolicy of a blob container." + }, + "LegalHoldProperties": { + "properties": { + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" - } - ], - "description": "The blob container properties be listed out." + "tags": { + "type": "array", + "items": { + "$ref": "#/definitions/TagProperty" + }, + "description": "The list of LegalHold tags of a blob container." + } }, - "ListContainerItems": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ListContainerItem" - }, - "description": "The list of blob containers." - } + "description": "The LegalHold property of a blob container." + }, + "TagProperty": { + "properties": { + "tag": { + "type": "string", + "readOnly": true, + "description": "The tag value." + }, + "timestamp": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the tag was added." + }, + "objectIdentifier": { + "type": "string", + "readOnly": true, + "description": "Returns the Object ID of the user who added the tag." }, - "description": "The list of blob containers." - }, - "BlobServiceProperties": { + "tenantId": { + "type": "string", + "readOnly": true, + "description": "Returns the Tenant ID that issued the token for the user who added the tag." + }, + "upn": { + "type": "string", + "readOnly": true, + "description": "Returns the User Principal Name of the user who added the tag." + } + }, + "description": "A tag of the LegalHold of a blob container." + }, + "LegalHold": { + "properties": { + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." + }, + "tags": { + "type": "array", + "items": { + "type": "string", + "maxLength": 23, + "minLength": 3 + }, + "description": "Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP." + } + }, + "required": [ + "tags" + ], + "description": "The LegalHold property of a blob container." + }, + "ListContainerItem": { + "properties": { "properties": { + "$ref": "#/definitions/ContainerProperties", + "x-ms-client-flatten": true, + "description": "The blob container properties be listed out." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "description": "The blob container properties be listed out." + }, + "ListContainerItems": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ListContainerItem" + }, + "description": "The list of blob containers." + } + }, + "description": "The list of blob containers." + }, + "BlobServiceProperties": { + "properties": { "properties": { "properties": { - "cors": { + "cors": { "$ref": "#/definitions/CorsRules", "description": "Specifies CORS rules for the Blob 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 Blob service." }, @@ -1074,48 +1074,48 @@ "x-ms-client-name": "BlobServiceProperties", "description": "The properties of a storage account’s Blob service." } - }, - "allOf": [ + }, + "allOf": [ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" } - ], - "description": "The properties of a storage account’s Blob service." - }, - "DeleteRetentionPolicy": { - "properties": { - "enabled": { - "type": "boolean", - "description": "Indicates whether DeleteRetentionPolicy is enabled for the Blob service." - }, - "days": { - "type": "integer", - "minimum": 1, - "maximum": 365, - "description": "Indicates the number of days that the deleted blob should be retained. The minimum specified value can be 1 and the maximum value can be 365." - } - }, - "description": "The blob service properties for soft delete." - }, - "CorsRules": { - "properties": { - "corsRules": { - "type": "array", - "items": { - "description": "Specifies a CORS rule for the Blob service. ", - "$ref": "#/definitions/CorsRule" - }, - "description": "The List of CORS rules. You can include up to five CorsRule elements in the request. " - } + ], + "description": "The properties of a storage account’s Blob service." + }, + "DeleteRetentionPolicy": { + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates whether DeleteRetentionPolicy is enabled for the Blob service." }, - "description": "Sets the CORS rules. You can include up to five CorsRule elements in the request. " + "days": { + "type": "integer", + "minimum": 1, + "maximum": 365, + "description": "Indicates the number of days that the deleted blob should be retained. The minimum specified value can be 1 and the maximum value can be 365." + } }, - "CorsRule": { - "properties": { + "description": "The blob service properties for soft delete." + }, + "CorsRules": { + "properties": { + "corsRules": { + "type": "array", + "items": { + "description": "Specifies a CORS rule for the Blob service. ", + "$ref": "#/definitions/CorsRule" + }, + "description": "The List of CORS rules. You can include up to five CorsRule elements in the request. " + } + }, + "description": "Sets the CORS rules. You can include up to five CorsRule elements in the request. " + }, + "CorsRule": { + "properties": { "allowedOrigins": { "type": "array", "items": { - "type": "string" + "type": "string" }, "description": "Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or \"*\" to allow all domains" }, @@ -1123,7 +1123,15 @@ "type": "array", "items": { "type": "string", - "enum": ["DELETE","GET","HEAD","MERGE","POST","OPTIONS","PUT"] + "enum": [ + "DELETE", + "GET", + "HEAD", + "MERGE", + "POST", + "OPTIONS", + "PUT" + ] }, "description": "Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin." }, @@ -1145,115 +1153,115 @@ }, "description": "Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request." } - }, - "required": [ - "allowedOrigins", - "allowedMethods", - "maxAgeInSeconds", - "exposedHeaders", - "allowedHeaders" - ], - "description": "Specifies a CORS rule for the Blob service." }, - "LeaseContainerRequest": { - "properties": { - "action": { - "type": "string", - "enum": [ - "Acquire", - "Renew", - "Change", - "Release", - "Break" - ], - "description": "Specifies the lease action. Can be one of the available actions." - }, - "leaseId": { - "type": "string", - "description": "Identifies the lease. Can be specified in any valid GUID string format." - }, - "breakPeriod": { - "type": "integer", - "description": "Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60." - }, - "leaseDuration": { - "type": "integer", - "description": "Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires." - }, - "proposedLeaseId": { - "type": "string", - "description": "Optional for acquire, required for change. Proposed lease ID, in a GUID string format." - } + "required": [ + "allowedOrigins", + "allowedMethods", + "maxAgeInSeconds", + "exposedHeaders", + "allowedHeaders" + ], + "description": "Specifies a CORS rule for the Blob service." + }, + "LeaseContainerRequest": { + "properties": { + "action": { + "type": "string", + "enum": [ + "Acquire", + "Renew", + "Change", + "Release", + "Break" + ], + "description": "Specifies the lease action. Can be one of the available actions." }, - "required": [ - "action" - ], - "description": "Lease Container request schema." - }, - "LeaseContainerResponse": { - "properties": { - "leaseId": { - "type": "string", - "description": "Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease." - }, - "leaseTimeSeconds": { - "type": "string", - "description": "Approximate time remaining in the lease period, in seconds." - } + "leaseId": { + "type": "string", + "description": "Identifies the lease. Can be specified in any valid GUID string format." }, - "description": "Lease Container response schema." - } - }, - "parameters": { - "ContainerName": { - "name": "containerName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.", - "maxLength": 63, - "minLength": 3, - "x-ms-parameter-location": "method" - }, - "ImmutabilityPolicyName": { - "name": "immutabilityPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'", - "enum":[ - "default" - ], - "x-ms-parameter-location": "method" + "breakPeriod": { + "type": "integer", + "description": "Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60." + }, + "leaseDuration": { + "type": "integer", + "description": "Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires." + }, + "proposedLeaseId": { + "type": "string", + "description": "Optional for acquire, required for change. Proposed lease ID, in a GUID string format." + } }, - "BlobServicesName": { - "name": "BlobServicesName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the blob Service within the specified storage account. Blob Service Name must be 'default'", - "enum":[ - "default" - ], - "x-ms-parameter-location": "method" - } + "required": [ + "action" + ], + "description": "Lease Container request schema." }, - "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" + "LeaseContainerResponse": { + "properties": { + "leaseId": { + "type": "string", + "description": "Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease." + }, + "leaseTimeSeconds": { + "type": "string", + "description": "Approximate time remaining in the lease period, in seconds." } - } + }, + "description": "Lease Container response schema." + } + }, + "parameters": { + "ContainerName": { + "name": "containerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.", + "maxLength": 63, + "minLength": 3, + "x-ms-parameter-location": "method" + }, + "ImmutabilityPolicyName": { + "name": "immutabilityPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'", + "enum": [ + "default" + ], + "x-ms-parameter-location": "method" }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] + "BlobServicesName": { + "name": "BlobServicesName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the blob Service within the specified storage account. Blob Service Name must be 'default'", + "enum": [ + "default" + ], + "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" } - ] - } \ No newline at end of file + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersClearLegalHold.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersClearLegalHold.json index 213783caf38e..bf6691a16f7e 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersClearLegalHold.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersClearLegalHold.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersDelete.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersDelete.json index 7b60db47f977..032a624ae5a7 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersDelete.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersDelete.json @@ -8,11 +8,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersExtendImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersExtendImmutabilityPolicy.json index 7432e0065076..cbbd2794d7ba 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersExtendImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersExtendImmutabilityPolicy.json @@ -4,7 +4,7 @@ "resourceGroupName": "res6238", "accountName": "sto232", "containerName": "container5023", - "If-Match": "\"8d59f830d0c3bf9\"", + "If-Match": "\"8d59f830d0c3bf9\"", "api-version": "2018-07-01", "monitor": "true", "parameters": { @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersGet.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersGet.json index 1be09b1b105d..4d0d1e165b0c 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersGet.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersGet.json @@ -78,4 +78,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersGetImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersGetImmutabilityPolicy.json index c69dc9aa8457..ba4d4d170467 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersGetImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersGetImmutabilityPolicy.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Acquire.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Acquire.json index 03d7d9e857bf..bfeaa3e35561 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Acquire.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Acquire.json @@ -21,4 +21,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Break.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Break.json index d0a97bce588d..47a71c76f601 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Break.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLease_Break.json @@ -21,4 +21,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersList.json index 8e588163dc23..da4579268751 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersList.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLockImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLockImmutabilityPolicy.json index deb3a89d95ef..0c9aed602653 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLockImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersLockImmutabilityPolicy.json @@ -4,7 +4,7 @@ "resourceGroupName": "res2702", "accountName": "sto5009", "containerName": "container1631", - "If-Match": "\"8d59f825b721dd3\"", + "If-Match": "\"8d59f825b721dd3\"", "api-version": "2018-07-01", "monitor": "true" }, @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersPatch.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersPatch.json index 36342e866772..df41e48abc80 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersPatch.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersPatch.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersPut.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersPut.json index 3caff82d3766..914aeadfc929 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersPut.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersPut.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersPutImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersPutImmutabilityPolicy.json index fe588eb1705d..f72c2f9e5835 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersPutImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersPutImmutabilityPolicy.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersSetLegalHold.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersSetLegalHold.json index 3d360f5aa9c0..ba7b8decad77 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersSetLegalHold.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobContainersSetLegalHold.json @@ -26,4 +26,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobServicesGet.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobServicesGet.json index 9a6e3acd683e..5926ce330a6d 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobServicesGet.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobServicesGet.json @@ -15,7 +15,8 @@ "type": "Microsoft.Storage/storageAccounts/blobServices", "properties": { "cors": { - "corsRules": [{ + "corsRules": [ + { "allowedOrigins": [ "http://www.contoso.com", "http://www.fabrikam.com" diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobServicesPut.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobServicesPut.json index 326e4bd06a8e..b1bc1ac15036 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobServicesPut.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/BlobServicesPut.json @@ -9,7 +9,8 @@ "parameters": { "properties": { "cors": { - "corsRules": [{ + "corsRules": [ + { "allowedOrigins": [ "http://www.contoso.com", "http://www.fabrikam.com" @@ -84,7 +85,8 @@ "type": "Microsoft.Storage/storageAccounts/blobServices", "properties": { "cors": { - "corsRules": [{ + "corsRules": [ + { "allowedOrigins": [ "http://www.contoso.com", "http://www.fabrikam.com" @@ -152,4 +154,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/OperationsList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/OperationsList.json index 34bff2451bf5..5298603e12fb 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/OperationsList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/OperationsList.json @@ -470,4 +470,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/SKUList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/SKUList.json index e25b3ffa73ca..1bcb2e63a12f 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/SKUList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/SKUList.json @@ -6451,4 +6451,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountCheckNameAvailability.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountCheckNameAvailability.json index 2f909042d71d..41a0ce8672fd 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountCheckNameAvailability.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountCheckNameAvailability.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountCreate.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountCreate.json index 4d12a7f02ec8..9e5306727daf 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountCreate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountCreate.json @@ -57,8 +57,6 @@ "type": "Microsoft.Storage/storageAccounts" } }, - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountDelete.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountDelete.json index 86b62b340374..73aa7ff1cdac 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountDelete.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountDelete.json @@ -7,11 +7,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountDeleteManagementPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountDeleteManagementPolicy.json index cc09990ec8a3..d13b8906aac8 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountDeleteManagementPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountDeleteManagementPolicy.json @@ -8,11 +8,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountFailover.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountFailover.json index 9f19caf35b0f..fe971b8f97cd 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountFailover.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountFailover.json @@ -7,11 +7,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountGetManagementPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountGetManagementPolicy.json index 7b9f475ba388..157a1b36e277 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountGetManagementPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountGetManagementPolicy.json @@ -56,4 +56,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountGetProperties.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountGetProperties.json index 5a90b4563f5e..01248e2cbb7b 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountGetProperties.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountGetProperties.json @@ -55,4 +55,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountList.json index 087c7c925f7e..be655149fcf7 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountList.json @@ -181,4 +181,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListAccountSAS.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListAccountSAS.json index de9a578d504c..e007d57f22af 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListAccountSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListAccountSAS.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListByResourceGroup.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListByResourceGroup.json index 50a889430a6d..c1662f85615e 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListByResourceGroup.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListByResourceGroup.json @@ -76,4 +76,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListKeys.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListKeys.json index 3dbc0d639cc2..fe8865872ed9 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListKeys.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListKeys.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListLocationUsage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListLocationUsage.json index 4161b4dd5a78..3cffbd19aca0 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListLocationUsage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListLocationUsage.json @@ -21,4 +21,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListServiceSAS.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListServiceSAS.json index 6f9ac36d10e9..181ab6c3655f 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListServiceSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountListServiceSAS.json @@ -19,4 +19,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountRegenerateKey.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountRegenerateKey.json index 3a5aafa74787..4022932a3661 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountRegenerateKey.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountRegenerateKey.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountSetManagementPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountSetManagementPolicy.json index 6e16eb2ac455..8bb3e99b622f 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountSetManagementPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountSetManagementPolicy.json @@ -97,4 +97,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountUpdate.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountUpdate.json index 238302224aa0..444fbb2ea194 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountUpdate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/examples/StorageAccountUpdate.json @@ -57,4 +57,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/storage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/storage.json index 19feac6e62cf..a3f5148d53c9 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/storage.json @@ -450,7 +450,9 @@ "operationId": "Usages_ListByLocation", "description": "Gets the current usage count and the limit for the resources of the location under the subscription.", "x-ms-examples": { - "UsageList": { "$ref": "./examples/StorageAccountListLocationUsage.json"} + "UsageList": { + "$ref": "./examples/StorageAccountListLocationUsage.json" + } }, "parameters": [ { @@ -465,7 +467,7 @@ "required": true, "type": "string", "description": "The location of the Azure Storage resource." - } + } ], "responses": { "200": { @@ -1195,8 +1197,8 @@ }, "isHnsEnabled": { "type": "boolean", - "x-ms-client-name": "IsHnsEnabled", - "description": "Account HierarchicalNamespace enabled if sets to true." + "x-ms-client-name": "IsHnsEnabled", + "description": "Account HierarchicalNamespace enabled if sets to true." } }, "description": "The parameters used to create the storage account." @@ -1459,8 +1461,8 @@ }, "isHnsEnabled": { "type": "boolean", - "x-ms-client-name": "IsHnsEnabled", - "description": "Account HierarchicalNamespace enabled if sets to true." + "x-ms-client-name": "IsHnsEnabled", + "description": "Account HierarchicalNamespace enabled if sets to true." }, "geoReplicationStats": { "$ref": "#/definitions/GeoReplicationStats", @@ -2015,4 +2017,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/blob.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/blob.json index 786ef48f8132..c9b18897e42f 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/blob.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/blob.json @@ -1,25 +1,25 @@ - { - "swagger": "2.0", - "info": { - "version": "2018-11-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}/blobServices/{BlobServicesName}": { - "put": { +{ + "swagger": "2.0", + "info": { + "version": "2018-11-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}/blobServices/{BlobServicesName}": { + "put": { "tags": [ - "BlobService" + "BlobService" ], "operationId": "BlobServices_SetServiceProperties", "x-ms-examples": { @@ -49,23 +49,23 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/BlobServiceProperties" + "$ref": "#/definitions/BlobServiceProperties" }, "description": "The properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules." } ], "responses": { - "200": { - "description": "OK -- Sets The properties of a storage account’s Blob service successfully.", - "schema": { - "$ref": "#/definitions/BlobServiceProperties" + "200": { + "description": "OK -- Sets The properties of a storage account’s Blob service successfully.", + "schema": { + "$ref": "#/definitions/BlobServiceProperties" + } } - } } - }, - "get": { + }, + "get": { "tags": [ - "BlobService" + "BlobService" ], "operationId": "BlobServices_GetServiceProperties", "x-ms-examples": { @@ -92,975 +92,975 @@ } ], "responses": { - "200": { - "description": "OK -- returned the properties of a storage account’s Blob service.", - "schema": { - "$ref": "#/definitions/BlobServiceProperties" + "200": { + "description": "OK -- returned the properties of a storage account’s Blob service.", + "schema": { + "$ref": "#/definitions/BlobServiceProperties" + } } - } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers": { - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_List", - "x-ms-examples": { - "ListContainers": { - "$ref": "./examples/BlobContainersList.json" - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers": { + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_List", + "x-ms-examples": { + "ListContainers": { + "$ref": "./examples/BlobContainersList.json" + } + }, + "description": "Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.", - "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 -- List Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/ListContainerItems" - } + { + "$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 -- List Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/ListContainerItems" } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}": { - "put": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Create", - "x-ms-examples": { - "PutContainers": { - "$ref": "./examples/BlobContainersPut.json" - } - }, - "description": "Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "name": "blobContainer", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BlobContainer" - }, - "description": "Properties of the blob container to create." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "201": { - "description": "Created -- Create Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer" - } - }, - "200": { - "description": "OK -- The Container is already created.", - "schema": { - "$ref": "#/definitions/BlobContainer" - } - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}": { + "put": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Create", + "x-ms-examples": { + "PutContainers": { + "$ref": "./examples/BlobContainersPut.json" } }, - "patch": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Update", - "x-ms-examples": { - "UpdateContainers": { - "$ref": "./examples/BlobContainersPatch.json" - } + "description": "Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "name": "blobContainer", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BlobContainer" - }, - "description": "Properties to update for the blob container." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "name": "blobContainer", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BlobContainer" }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Update Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer", - "description": "Properties of the updated blob container." - } - } + "description": "Properties of the blob container to create." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" } - }, - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Get", - "x-ms-examples": { - "GetContainers": { - "$ref": "./examples/BlobContainersGet.json" + ], + "responses": { + "201": { + "description": "Created -- Create Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer" } }, - "description": "Gets properties of a specified container. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Get Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer" - } + "200": { + "description": "OK -- The Container is already created.", + "schema": { + "$ref": "#/definitions/BlobContainer" } } + } + }, + "patch": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Update", + "x-ms-examples": { + "UpdateContainers": { + "$ref": "./examples/BlobContainersPatch.json" + } }, - "delete": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Delete", - "x-ms-examples": { - "DeleteContainers": { - "$ref": "./examples/BlobContainersDelete.json" - } + "description": "Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Deletes specified container under its account.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Delete Container operation completed successfully." + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "name": "blobContainer", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BlobContainer" }, - "204": { - "description": "No Content -- The Container not exist." + "description": "Properties to update for the blob container." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Update Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer", + "description": "Properties of the updated blob container." } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_SetLegalHold", - "x-ms-examples": { - "SetLegalHoldContainers": { - "$ref": "./examples/BlobContainersSetLegalHold.json" - } + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Get", + "x-ms-examples": { + "GetContainers": { + "$ref": "./examples/BlobContainersGet.json" + } + }, + "description": "Gets properties of a specified container. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "LegalHold", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LegalHold" - }, - "description": "The LegalHold property that will be set to a blob container." - } - ], - "responses": { - "200": { - "description": "OK -- Set legal hold tags for Container completed successfully.", - "schema": { - "$ref": "#/definitions/LegalHold" - } + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Get Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_ClearLegalHold", - "x-ms-examples": { - "ClearLegalHoldContainers": { - "$ref": "./examples/BlobContainersClearLegalHold.json" - } + "delete": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Delete", + "x-ms-examples": { + "DeleteContainers": { + "$ref": "./examples/BlobContainersDelete.json" + } + }, + "description": "Deletes specified container under its account.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "LegalHold", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LegalHold" - }, - "description": "The LegalHold property that will be clear from a blob container." - } - ], - "responses": { - "200": { - "description": "OK -- Clear legal hold tags for Container completed successfully.", - "schema": { - "$ref": "#/definitions/LegalHold" - } - } + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Delete Container operation completed successfully." + }, + "204": { + "description": "No Content -- The Container not exist." } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}": { - "put": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_CreateOrUpdateImmutabilityPolicy", - "x-ms-examples": { - "CreateOrUpdateImmutabilityPolicy": { - "$ref": "./examples/BlobContainersPutImmutabilityPolicy.json" - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_SetLegalHold", + "x-ms-examples": { + "SetLegalHoldContainers": { + "$ref": "./examples/BlobContainersSetLegalHold.json" + } + }, + "description": "Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "description": "The ImmutabilityPolicy Properties that will be created or updated to a blob container." + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "LegalHold", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LegalHold" }, - { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Creates or updates container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } - } + "description": "The LegalHold property that will be set to a blob container." + } + ], + "responses": { + "200": { + "description": "OK -- Set legal hold tags for Container completed successfully.", + "schema": { + "$ref": "#/definitions/LegalHold" } } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_ClearLegalHold", + "x-ms-examples": { + "ClearLegalHoldContainers": { + "$ref": "./examples/BlobContainersClearLegalHold.json" + } }, - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_GetImmutabilityPolicy", - "x-ms-examples": { - "GetImmutabilityPolicy": { - "$ref": "./examples/BlobContainersGetImmutabilityPolicy.json" - } + "description": "Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Gets the existing immutability policy along with the corresponding ETag in response headers and body.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "LegalHold", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LegalHold" }, - { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Gets container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } - } + "description": "The LegalHold property that will be clear from a blob container." + } + ], + "responses": { + "200": { + "description": "OK -- Clear legal hold tags for Container completed successfully.", + "schema": { + "$ref": "#/definitions/LegalHold" } } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}": { + "put": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_CreateOrUpdateImmutabilityPolicy", + "x-ms-examples": { + "CreateOrUpdateImmutabilityPolicy": { + "$ref": "./examples/BlobContainersPutImmutabilityPolicy.json" + } }, - "delete": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_DeleteImmutabilityPolicy", - "x-ms-examples": { - "DeleteImmutabilityPolicy": { - "$ref": "./examples/BlobContainersDeleteImmutabilityPolicy.json" - } + "description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "description": "The ImmutabilityPolicy Properties that will be created or updated to a blob container." + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Creates or updates container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Deletes container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + "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" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_LockImmutabilityPolicy", - "x-ms-examples": { - "LockImmutabilityPolicy": { - "$ref": "./examples/BlobContainersLockImmutabilityPolicy.json" - } + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_GetImmutabilityPolicy", + "x-ms-examples": { + "GetImmutabilityPolicy": { + "$ref": "./examples/BlobContainersGetImmutabilityPolicy.json" + } + }, + "description": "Gets the existing immutability policy along with the corresponding ETag in response headers and body.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Gets container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Locks container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + "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" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_ExtendImmutabilityPolicy", - "x-ms-examples": { - "ExtendImmutabilityPolicy": { - "$ref": "./examples/BlobContainersExtendImmutabilityPolicy.json" - } + "delete": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_DeleteImmutabilityPolicy", + "x-ms-examples": { + "DeleteImmutabilityPolicy": { + "$ref": "./examples/BlobContainersDeleteImmutabilityPolicy.json" + } + }, + "description": "Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "description": "The ImmutabilityPolicy Properties that will be extended for a blob container." + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Deletes container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Extends container ImmutabilityPolicy operation completed successfully..", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + "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" } } } } - }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Lease", - "x-ms-examples": { - "Acquire a lease on a container": { - "$ref": "./examples/BlobContainersLease_Acquire.json" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_LockImmutabilityPolicy", + "x-ms-examples": { + "LockImmutabilityPolicy": { + "$ref": "./examples/BlobContainersLockImmutabilityPolicy.json" + } + }, + "description": "Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" + }, + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Locks container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - "Break a lease on a container": { - "$ref": "./examples/BlobContainersLease_Break.json" + "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" + } } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_ExtendImmutabilityPolicy", + "x-ms-examples": { + "ExtendImmutabilityPolicy": { + "$ref": "./examples/BlobContainersExtendImmutabilityPolicy.json" + } + }, + "description": "Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" + }, + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, - "description": "The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "description": "The ImmutabilityPolicy Properties that will be extended for a blob container." + }, + { + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Extends container ImmutabilityPolicy operation completed successfully..", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/LeaseContainerRequest" - }, - "description": "Lease Container request body." - } - ], - "responses": { - "200": { - "description": "OK -- Lease Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/LeaseContainerResponse" + "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" } } } } } }, - "definitions": { - "ContainerProperties": { - "properties": { - "publicAccess": { - "type": "string", - "enum": [ - "Container", - "Blob", - "None" - ], - "x-ms-enum": { - "name": "PublicAccess", - "modelAsString": false - }, - "description": "Specifies whether data in the container may be accessed publicly and the level of access." + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Lease", + "x-ms-examples": { + "Acquire a lease on a container": { + "$ref": "./examples/BlobContainersLease_Acquire.json" }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the container was last modified." + "Break a lease on a container": { + "$ref": "./examples/BlobContainersLease_Break.json" + } + }, + "description": "The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "leaseStatus": { - "type": "string", - "readOnly": true, - "enum": [ - "Locked", - "Unlocked" - ], - "x-ms-enum": { - "name": "LeaseStatus", - "modelAsString": true - }, - "description": "The lease status of the container." + { + "$ref": "./storage.json#/parameters/StorageAccountName" }, - "leaseState": { - "type": "string", - "readOnly": true, - "enum": [ - "Available", - "Leased", - "Expired", - "Breaking", - "Broken" - ], - "x-ms-enum": { - "name": "LeaseState", - "modelAsString": true - }, - "description": "Lease state of the container." + { + "$ref": "#/parameters/ContainerName" }, - "leaseDuration": { - "type": "string", - "readOnly": true, - "enum": [ - "Infinite", - "Fixed" - ], - "x-ms-enum": { - "name": "LeaseDuration", - "modelAsString": true - }, - "description": "Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased." + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "A name-value pair to associate with the container as metadata." - }, - "immutabilityPolicy": { - "readOnly": true, - "$ref": "#/definitions/ImmutabilityPolicyProperties", - "x-ms-client-name": "ImmutabilityPolicy", - "description": "The ImmutabilityPolicy property of the container." - }, - "legalHold": { - "readOnly": true, - "$ref": "#/definitions/LegalHoldProperties", - "description": "The LegalHold property of the container." - }, - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "hasImmutabilityPolicy": { - "type": "boolean", - "readOnly": true, - "description": "The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container." - } - }, - "description": "The properties of a container." - }, - "BlobContainer": { - "properties": { - "properties": { - "$ref": "#/definitions/ContainerProperties", - "x-ms-client-flatten": true, - "x-ms-client-name": "ContainerProperties", - "description": "Properties of the blob container." - } - }, - "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" - } - ], - "description": "Properties of the blob container, including Id, resource name, resource type, Etag." - }, - "ImmutabilityPolicyProperty": { - "properties": { - "immutabilityPeriodSinceCreationInDays": { - "type": "integer", - "description": "The immutability period for the blobs in the container since the policy creation, in days." + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, - "state": { - "type": "string", - "readOnly": true, - "enum": [ - "Locked", - "Unlocked" - ], - "x-ms-enum": { - "name": "ImmutabilityPolicyState", - "modelAsString": true + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/LeaseContainerRequest" }, - "description": "The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked." + "description": "Lease Container request body." } - }, - "required": [ - "immutabilityPeriodSinceCreationInDays" ], - "description": "The properties of an ImmutabilityPolicy of a blob container." - }, - "ImmutabilityPolicyProperties": { - "properties": { - "properties": { - "$ref": "#/definitions/ImmutabilityPolicyProperty", - "x-ms-client-flatten": true, - "description": "The properties of an ImmutabilityPolicy of a blob container." - }, - "etag": { - "type": "string", - "readOnly": true, - "description": "ImmutabilityPolicy Etag." - }, - "updateHistory": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/UpdateHistoryProperty" - }, - "description": "The ImmutabilityPolicy update history of the blob container." + "responses": { + "200": { + "description": "OK -- Lease Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/LeaseContainerResponse" + } } + } + } + } + }, + "definitions": { + "ContainerProperties": { + "properties": { + "publicAccess": { + "type": "string", + "enum": [ + "Container", + "Blob", + "None" + ], + "x-ms-enum": { + "name": "PublicAccess", + "modelAsString": false + }, + "description": "Specifies whether data in the container may be accessed publicly and the level of access." }, - "description": "The properties of an ImmutabilityPolicy of a blob container." - }, - "ImmutabilityPolicy": { - "properties": { - "properties": { - "$ref": "#/definitions/ImmutabilityPolicyProperty", - "x-ms-client-flatten": true, - "description": "The properties of an ImmutabilityPolicy of a blob container." - } + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the container was last modified." }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" - } - ], - "required": [ - "properties" - ], - "description": "The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag." - }, - "UpdateHistoryProperty": { - "properties": { - "update": { - "type": "string", - "readOnly": true, - "enum": [ - "put", - "lock", - "extend" - ], - "x-ms-enum": { - "name": "ImmutabilityPolicyUpdateType", - "modelAsString": true - }, - "description": "The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend." - }, - "immutabilityPeriodSinceCreationInDays": { - "type": "integer", - "readOnly": true, - "description": "The immutability period for the blobs in the container since the policy creation, in days." + "leaseStatus": { + "type": "string", + "readOnly": true, + "enum": [ + "Locked", + "Unlocked" + ], + "x-ms-enum": { + "name": "LeaseStatus", + "modelAsString": true }, - "timestamp": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the ImmutabilityPolicy was updated." + "description": "The lease status of the container." + }, + "leaseState": { + "type": "string", + "readOnly": true, + "enum": [ + "Available", + "Leased", + "Expired", + "Breaking", + "Broken" + ], + "x-ms-enum": { + "name": "LeaseState", + "modelAsString": true }, - "objectIdentifier": { - "type": "string", - "readOnly": true, - "description": "Returns the Object ID of the user who updated the ImmutabilityPolicy." + "description": "Lease state of the container." + }, + "leaseDuration": { + "type": "string", + "readOnly": true, + "enum": [ + "Infinite", + "Fixed" + ], + "x-ms-enum": { + "name": "LeaseDuration", + "modelAsString": true }, - "tenantId": { - "type": "string", - "readOnly": true, - "description": "Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy." + "description": "Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased." + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" }, - "upn": { - "type": "string", - "readOnly": true, - "description": "Returns the User Principal Name of the user who updated the ImmutabilityPolicy." - } + "description": "A name-value pair to associate with the container as metadata." + }, + "immutabilityPolicy": { + "readOnly": true, + "$ref": "#/definitions/ImmutabilityPolicyProperties", + "x-ms-client-name": "ImmutabilityPolicy", + "description": "The ImmutabilityPolicy property of the container." }, - "description": "An update history of the ImmutabilityPolicy of a blob container." + "legalHold": { + "readOnly": true, + "$ref": "#/definitions/LegalHoldProperties", + "description": "The LegalHold property of the container." + }, + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." + }, + "hasImmutabilityPolicy": { + "type": "boolean", + "readOnly": true, + "description": "The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container." + } }, - "LegalHoldProperties": { + "description": "The properties of a container." + }, + "BlobContainer": { + "properties": { "properties": { - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/TagProperty" - }, - "description": "The list of LegalHold tags of a blob container." - } + "$ref": "#/definitions/ContainerProperties", + "x-ms-client-flatten": true, + "x-ms-client-name": "ContainerProperties", + "description": "Properties of the blob container." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "description": "Properties of the blob container, including Id, resource name, resource type, Etag." + }, + "ImmutabilityPolicyProperty": { + "properties": { + "immutabilityPeriodSinceCreationInDays": { + "type": "integer", + "description": "The immutability period for the blobs in the container since the policy creation, in days." }, - "description": "The LegalHold property of a blob container." + "state": { + "type": "string", + "readOnly": true, + "enum": [ + "Locked", + "Unlocked" + ], + "x-ms-enum": { + "name": "ImmutabilityPolicyState", + "modelAsString": true + }, + "description": "The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked." + } }, - "TagProperty": { + "required": [ + "immutabilityPeriodSinceCreationInDays" + ], + "description": "The properties of an ImmutabilityPolicy of a blob container." + }, + "ImmutabilityPolicyProperties": { + "properties": { "properties": { - "tag": { - "type": "string", - "readOnly": true, - "description": "The tag value." - }, - "timestamp": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the tag was added." - }, - "objectIdentifier": { - "type": "string", - "readOnly": true, - "description": "Returns the Object ID of the user who added the tag." + "$ref": "#/definitions/ImmutabilityPolicyProperty", + "x-ms-client-flatten": true, + "description": "The properties of an ImmutabilityPolicy of a blob container." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "ImmutabilityPolicy Etag." + }, + "updateHistory": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/UpdateHistoryProperty" }, - "tenantId": { - "type": "string", - "readOnly": true, - "description": "Returns the Tenant ID that issued the token for the user who added the tag." + "description": "The ImmutabilityPolicy update history of the blob container." + } + }, + "description": "The properties of an ImmutabilityPolicy of a blob container." + }, + "ImmutabilityPolicy": { + "properties": { + "properties": { + "$ref": "#/definitions/ImmutabilityPolicyProperty", + "x-ms-client-flatten": true, + "description": "The properties of an ImmutabilityPolicy of a blob container." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "required": [ + "properties" + ], + "description": "The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag." + }, + "UpdateHistoryProperty": { + "properties": { + "update": { + "type": "string", + "readOnly": true, + "enum": [ + "put", + "lock", + "extend" + ], + "x-ms-enum": { + "name": "ImmutabilityPolicyUpdateType", + "modelAsString": true }, - "upn": { - "type": "string", - "readOnly": true, - "description": "Returns the User Principal Name of the user who added the tag." - } + "description": "The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend." + }, + "immutabilityPeriodSinceCreationInDays": { + "type": "integer", + "readOnly": true, + "description": "The immutability period for the blobs in the container since the policy creation, in days." }, - "description": "A tag of the LegalHold of a blob container." + "timestamp": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the ImmutabilityPolicy was updated." + }, + "objectIdentifier": { + "type": "string", + "readOnly": true, + "description": "Returns the Object ID of the user who updated the ImmutabilityPolicy." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy." + }, + "upn": { + "type": "string", + "readOnly": true, + "description": "Returns the User Principal Name of the user who updated the ImmutabilityPolicy." + } }, - "LegalHold": { - "properties": { - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "tags": { - "type": "array", - "items": { - "type": "string", - "maxLength": 23, - "minLength": 3 - }, - "description": "Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP." - } + "description": "An update history of the ImmutabilityPolicy of a blob container." + }, + "LegalHoldProperties": { + "properties": { + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." }, - "required": [ - "tags" - ], - "description": "The LegalHold property of a blob container." + "tags": { + "type": "array", + "items": { + "$ref": "#/definitions/TagProperty" + }, + "description": "The list of LegalHold tags of a blob container." + } }, - "ListContainerItem": { - "properties": { - "properties": { - "$ref": "#/definitions/ContainerProperties", - "x-ms-client-flatten": true, - "description": "The blob container properties be listed out." - } + "description": "The LegalHold property of a blob container." + }, + "TagProperty": { + "properties": { + "tag": { + "type": "string", + "readOnly": true, + "description": "The tag value." }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" - } - ], - "description": "The blob container properties be listed out." + "timestamp": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the tag was added." + }, + "objectIdentifier": { + "type": "string", + "readOnly": true, + "description": "Returns the Object ID of the user who added the tag." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "Returns the Tenant ID that issued the token for the user who added the tag." + }, + "upn": { + "type": "string", + "readOnly": true, + "description": "Returns the User Principal Name of the user who added the tag." + } }, - "ListContainerItems": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ListContainerItem" - }, - "description": "The list of blob containers." - } + "description": "A tag of the LegalHold of a blob container." + }, + "LegalHold": { + "properties": { + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." }, - "description": "The list of blob containers." + "tags": { + "type": "array", + "items": { + "type": "string", + "maxLength": 23, + "minLength": 3 + }, + "description": "Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP." + } }, - "BlobServiceProperties": { + "required": [ + "tags" + ], + "description": "The LegalHold property of a blob container." + }, + "ListContainerItem": { + "properties": { "properties": { + "$ref": "#/definitions/ContainerProperties", + "x-ms-client-flatten": true, + "description": "The blob container properties be listed out." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "description": "The blob container properties be listed out." + }, + "ListContainerItems": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ListContainerItem" + }, + "description": "The list of blob containers." + } + }, + "description": "The list of blob containers." + }, + "BlobServiceProperties": { + "properties": { "properties": { "properties": { "cors": { @@ -1080,48 +1080,48 @@ "x-ms-client-name": "BlobServiceProperties", "description": "The properties of a storage account’s Blob service." } - }, - "allOf": [ + }, + "allOf": [ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" } - ], - "description": "The properties of a storage account’s Blob service." - }, - "DeleteRetentionPolicy": { - "properties": { - "enabled": { - "type": "boolean", - "description": "Indicates whether DeleteRetentionPolicy is enabled for the Blob service." - }, - "days": { - "type": "integer", - "minimum": 1, - "maximum": 365, - "description": "Indicates the number of days that the deleted blob should be retained. The minimum specified value can be 1 and the maximum value can be 365." - } + ], + "description": "The properties of a storage account’s Blob service." + }, + "DeleteRetentionPolicy": { + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates whether DeleteRetentionPolicy is enabled for the Blob service." }, - "description": "The blob service properties for soft delete." + "days": { + "type": "integer", + "minimum": 1, + "maximum": 365, + "description": "Indicates the number of days that the deleted blob should be retained. The minimum specified value can be 1 and the maximum value can be 365." + } }, - "CorsRules": { - "properties": { - "corsRules": { - "type": "array", - "items": { - "description": "Specifies a CORS rule for the Blob service. ", - "$ref": "#/definitions/CorsRule" - }, - "description": "The List of CORS rules. You can include up to five CorsRule elements in the request. " - } - }, - "description": "Sets the CORS rules. You can include up to five CorsRule elements in the request. " + "description": "The blob service properties for soft delete." + }, + "CorsRules": { + "properties": { + "corsRules": { + "type": "array", + "items": { + "description": "Specifies a CORS rule for the Blob service. ", + "$ref": "#/definitions/CorsRule" + }, + "description": "The List of CORS rules. You can include up to five CorsRule elements in the request. " + } }, - "CorsRule": { - "properties": { + "description": "Sets the CORS rules. You can include up to five CorsRule elements in the request. " + }, + "CorsRule": { + "properties": { "allowedOrigins": { "type": "array", "items": { - "type": "string" + "type": "string" }, "description": "Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or \"*\" to allow all domains" }, @@ -1129,7 +1129,15 @@ "type": "array", "items": { "type": "string", - "enum": ["DELETE","GET","HEAD","MERGE","POST","OPTIONS","PUT"] + "enum": [ + "DELETE", + "GET", + "HEAD", + "MERGE", + "POST", + "OPTIONS", + "PUT" + ] }, "description": "Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin." }, @@ -1151,115 +1159,115 @@ }, "description": "Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request." } - }, - "required": [ - "allowedOrigins", - "allowedMethods", - "maxAgeInSeconds", - "exposedHeaders", - "allowedHeaders" - ], - "description": "Specifies a CORS rule for the Blob service." }, - "LeaseContainerRequest": { - "properties": { - "action": { - "type": "string", - "enum": [ - "Acquire", - "Renew", - "Change", - "Release", - "Break" - ], - "description": "Specifies the lease action. Can be one of the available actions." - }, - "leaseId": { - "type": "string", - "description": "Identifies the lease. Can be specified in any valid GUID string format." - }, - "breakPeriod": { - "type": "integer", - "description": "Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60." - }, - "leaseDuration": { - "type": "integer", - "description": "Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires." - }, - "proposedLeaseId": { - "type": "string", - "description": "Optional for acquire, required for change. Proposed lease ID, in a GUID string format." - } + "required": [ + "allowedOrigins", + "allowedMethods", + "maxAgeInSeconds", + "exposedHeaders", + "allowedHeaders" + ], + "description": "Specifies a CORS rule for the Blob service." + }, + "LeaseContainerRequest": { + "properties": { + "action": { + "type": "string", + "enum": [ + "Acquire", + "Renew", + "Change", + "Release", + "Break" + ], + "description": "Specifies the lease action. Can be one of the available actions." }, - "required": [ - "action" - ], - "description": "Lease Container request schema." - }, - "LeaseContainerResponse": { - "properties": { - "leaseId": { - "type": "string", - "description": "Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease." - }, - "leaseTimeSeconds": { - "type": "string", - "description": "Approximate time remaining in the lease period, in seconds." - } + "leaseId": { + "type": "string", + "description": "Identifies the lease. Can be specified in any valid GUID string format." }, - "description": "Lease Container response schema." - } - }, - "parameters": { - "ContainerName": { - "name": "containerName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.", - "maxLength": 63, - "minLength": 3, - "x-ms-parameter-location": "method" - }, - "ImmutabilityPolicyName": { - "name": "immutabilityPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'", - "enum":[ - "default" - ], - "x-ms-parameter-location": "method" + "breakPeriod": { + "type": "integer", + "description": "Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60." + }, + "leaseDuration": { + "type": "integer", + "description": "Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires." + }, + "proposedLeaseId": { + "type": "string", + "description": "Optional for acquire, required for change. Proposed lease ID, in a GUID string format." + } }, - "BlobServicesName": { - "name": "BlobServicesName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the blob Service within the specified storage account. Blob Service Name must be 'default'", - "enum":[ - "default" - ], - "x-ms-parameter-location": "method" - } + "required": [ + "action" + ], + "description": "Lease Container request schema." }, - "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" + "LeaseContainerResponse": { + "properties": { + "leaseId": { + "type": "string", + "description": "Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease." + }, + "leaseTimeSeconds": { + "type": "string", + "description": "Approximate time remaining in the lease period, in seconds." } - } + }, + "description": "Lease Container response schema." + } + }, + "parameters": { + "ContainerName": { + "name": "containerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.", + "maxLength": 63, + "minLength": 3, + "x-ms-parameter-location": "method" + }, + "ImmutabilityPolicyName": { + "name": "immutabilityPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'", + "enum": [ + "default" + ], + "x-ms-parameter-location": "method" }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] + "BlobServicesName": { + "name": "BlobServicesName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the blob Service within the specified storage account. Blob Service Name must be 'default'", + "enum": [ + "default" + ], + "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" } - ] - } \ No newline at end of file + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersClearLegalHold.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersClearLegalHold.json index 7321d39a1a42..bdbe1984cdf9 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersClearLegalHold.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersClearLegalHold.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersDelete.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersDelete.json index 3c85d214edf3..ab71375776ea 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersDelete.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersDelete.json @@ -8,11 +8,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersExtendImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersExtendImmutabilityPolicy.json index ff22023adb8b..36299303b11a 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersExtendImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersExtendImmutabilityPolicy.json @@ -4,7 +4,7 @@ "resourceGroupName": "res6238", "accountName": "sto232", "containerName": "container5023", - "If-Match": "\"8d59f830d0c3bf9\"", + "If-Match": "\"8d59f830d0c3bf9\"", "api-version": "2018-11-01", "monitor": "true", "parameters": { @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersGet.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersGet.json index 25034a60c12e..66fcd7816837 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersGet.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersGet.json @@ -78,4 +78,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersGetImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersGetImmutabilityPolicy.json index c20e1d46b025..e274d9b082e2 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersGetImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersGetImmutabilityPolicy.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Acquire.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Acquire.json index a7d2e6b56976..bbcaa0758712 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Acquire.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Acquire.json @@ -21,4 +21,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Break.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Break.json index 54ef93b1f6e3..8c3fb2a8b77e 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Break.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLease_Break.json @@ -21,4 +21,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersList.json index ca77b15a674b..918040a39ce5 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersList.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLockImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLockImmutabilityPolicy.json index a23d9942e9f7..9c87757d255b 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLockImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersLockImmutabilityPolicy.json @@ -4,7 +4,7 @@ "resourceGroupName": "res2702", "accountName": "sto5009", "containerName": "container1631", - "If-Match": "\"8d59f825b721dd3\"", + "If-Match": "\"8d59f825b721dd3\"", "api-version": "2018-11-01", "monitor": "true" }, @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersPatch.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersPatch.json index 3546dfdcbf0a..5369fc873df3 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersPatch.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersPatch.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersPut.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersPut.json index 90491ef9b7de..ed778614ed31 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersPut.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersPut.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersPutImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersPutImmutabilityPolicy.json index 3d5fd50e80c4..73b2f4796c61 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersPutImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersPutImmutabilityPolicy.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersSetLegalHold.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersSetLegalHold.json index e7c307faed58..701b30362e81 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersSetLegalHold.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobContainersSetLegalHold.json @@ -26,4 +26,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobServicesGet.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobServicesGet.json index ad8aa05f1a04..fdeada2f9e9f 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobServicesGet.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobServicesGet.json @@ -15,7 +15,8 @@ "type": "Microsoft.Storage/storageAccounts/blobServices", "properties": { "cors": { - "corsRules": [{ + "corsRules": [ + { "allowedOrigins": [ "http://www.contoso.com", "http://www.fabrikam.com" diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobServicesPut.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobServicesPut.json index f3f25587065b..50c0a13cdb19 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobServicesPut.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/BlobServicesPut.json @@ -9,7 +9,8 @@ "parameters": { "properties": { "cors": { - "corsRules": [{ + "corsRules": [ + { "allowedOrigins": [ "http://www.contoso.com", "http://www.fabrikam.com" @@ -84,7 +85,8 @@ "type": "Microsoft.Storage/storageAccounts/blobServices", "properties": { "cors": { - "corsRules": [{ + "corsRules": [ + { "allowedOrigins": [ "http://www.contoso.com", "http://www.fabrikam.com" @@ -152,4 +154,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/OperationsList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/OperationsList.json index 783b3da4a1a7..e1ad1c481f80 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/OperationsList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/OperationsList.json @@ -470,4 +470,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/SKUList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/SKUList.json index fdae16487cb1..7e9bc9b99131 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/SKUList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/SKUList.json @@ -6451,4 +6451,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountCheckNameAvailability.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountCheckNameAvailability.json index dc0f8f08eeb4..85e257ef2b1c 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountCheckNameAvailability.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountCheckNameAvailability.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountCreate.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountCreate.json index f318cef23fa5..ace0f586737c 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountCreate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountCreate.json @@ -57,8 +57,6 @@ "type": "Microsoft.Storage/storageAccounts" } }, - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountDelete.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountDelete.json index 0c1cacc118a5..4a15b8f402c2 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountDelete.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountDelete.json @@ -7,11 +7,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountDeleteManagementPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountDeleteManagementPolicy.json index 8d58ea35a4ef..9f586a22121d 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountDeleteManagementPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountDeleteManagementPolicy.json @@ -8,11 +8,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountFailover.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountFailover.json index 0692c44bbb6d..3770be8adfc4 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountFailover.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountFailover.json @@ -7,11 +7,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountGetManagementPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountGetManagementPolicy.json index 61ac5bc15cc7..e5cd3b2db8bc 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountGetManagementPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountGetManagementPolicy.json @@ -56,4 +56,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountGetProperties.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountGetProperties.json index e2dde7a3e15e..4e7b8ef3a975 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountGetProperties.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountGetProperties.json @@ -55,4 +55,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountList.json index b7cdecd1b691..88e76ae16c42 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountList.json @@ -181,4 +181,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListAccountSAS.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListAccountSAS.json index d36038171133..fcba3070ca13 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListAccountSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListAccountSAS.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListByResourceGroup.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListByResourceGroup.json index b6724e0a3055..a20ec45730a9 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListByResourceGroup.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListByResourceGroup.json @@ -76,4 +76,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListKeys.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListKeys.json index 4985a252eaab..6797c1b9c9c7 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListKeys.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListKeys.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListLocationUsage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListLocationUsage.json index 968a8b130938..a93494b4ab67 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListLocationUsage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListLocationUsage.json @@ -21,4 +21,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListServiceSAS.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListServiceSAS.json index 5c2edb036ba5..5489e1a3b34c 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListServiceSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountListServiceSAS.json @@ -19,4 +19,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountRegenerateKey.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountRegenerateKey.json index eb21a8d05093..3d2ea2945b69 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountRegenerateKey.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountRegenerateKey.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountRevokeUserDelegationKeys.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountRevokeUserDelegationKeys.json index a25d564a2006..9f34dd1c12d5 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountRevokeUserDelegationKeys.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountRevokeUserDelegationKeys.json @@ -1,12 +1,11 @@ { - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "res4167", - "accountName": "sto3539", - "api-version": "2018-11-01" - }, - "responses": { - "200": { - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res4167", + "accountName": "sto3539", + "api-version": "2018-11-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountSetManagementPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountSetManagementPolicy.json index a762ef8ffc62..b139d4cd1f7a 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountSetManagementPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountSetManagementPolicy.json @@ -97,4 +97,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountUpdate.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountUpdate.json index b871c1eef657..e24fab303572 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountUpdate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/examples/StorageAccountUpdate.json @@ -57,4 +57,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/storage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/storage.json index 7cbfca724e64..8f187ea9c8d5 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2018-11-01/storage.json @@ -450,7 +450,9 @@ "operationId": "Usages_ListByLocation", "description": "Gets the current usage count and the limit for the resources of the location under the subscription.", "x-ms-examples": { - "UsageList": { "$ref": "./examples/StorageAccountListLocationUsage.json"} + "UsageList": { + "$ref": "./examples/StorageAccountListLocationUsage.json" + } }, "parameters": [ { @@ -618,7 +620,9 @@ "operationId": "ManagementPolicies_Get", "description": "Gets the managementpolicy associated with the specified storage account.", "x-ms-examples": { - "StorageAccountGetManagementPolicies": { "$ref": "./examples/StorageAccountGetManagementPolicy.json" } + "StorageAccountGetManagementPolicies": { + "$ref": "./examples/StorageAccountGetManagementPolicy.json" + } }, "parameters": [ { @@ -653,7 +657,9 @@ "operationId": "ManagementPolicies_CreateOrUpdate", "description": "Sets the managementpolicy to the specified storage account.", "x-ms-examples": { - "StorageAccountSetManagementPolicies": { "$ref": "./examples/StorageAccountSetManagementPolicy.json" } + "StorageAccountSetManagementPolicies": { + "$ref": "./examples/StorageAccountSetManagementPolicy.json" + } }, "parameters": [ { @@ -697,7 +703,9 @@ "operationId": "ManagementPolicies_Delete", "description": "Deletes the managementpolicy associated with the specified storage account.", "x-ms-examples": { - "StorageAccountDeleteManagementPolicies": { "$ref": "./examples/StorageAccountDeleteManagementPolicy.json" } + "StorageAccountDeleteManagementPolicies": { + "$ref": "./examples/StorageAccountDeleteManagementPolicy.json" + } }, "parameters": [ { @@ -2153,14 +2161,16 @@ "description": "Returns the date and time the ManagementPolicies was last modified." }, "policy": { - "$ref": "#/definitions/ManagementPolicySchema", - "description": "The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." + "$ref": "#/definitions/ManagementPolicySchema", + "description": "The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." } }, - "required": ["policy"], + "required": [ + "policy" + ], "description": "The Storage Account ManagementPolicy properties." }, - "ManagementPolicySchema":{ + "ManagementPolicySchema": { "properties": { "rules": { "type": "array", @@ -2170,7 +2180,9 @@ "description": "The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." } }, - "required": ["rules"], + "required": [ + "rules" + ], "description": "The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." }, "ManagementPolicyRule": { @@ -2199,7 +2211,11 @@ "description": "An object that defines the Lifecycle rule." } }, - "required": ["name", "type", "definition"], + "required": [ + "name", + "type", + "definition" + ], "description": "An object that wraps the Lifecycle rule. Each rule is uniquely defined by name." }, "ManagementPolicyDefinition": { @@ -2213,7 +2229,9 @@ "description": "An object that defines the filter set." } }, - "required": ["actions"], + "required": [ + "actions" + ], "description": "An object that defines the Lifecycle rule. Each definition is made up with a filters set and an actions set." }, "ManagementPolicyFilter": { @@ -2233,7 +2251,9 @@ "description": "An array of predefined enum values. Only blockBlob is supported." } }, - "required": [ "blobTypes" ], + "required": [ + "blobTypes" + ], "description": "Filters limit rule actions to a subset of blobs within the storage account. If multiple filters are defined, a logical AND is performed on all filters. " }, "ManagementPolicyAction": { @@ -2252,8 +2272,8 @@ "ManagementPolicyBaseBlob": { "properties": { "tierToCool": { - "$ref": "#/definitions/DateAfterModification", - "description": "The function to tier blobs to cool storage. Support blobs currently at Hot tier" + "$ref": "#/definitions/DateAfterModification", + "description": "The function to tier blobs to cool storage. Support blobs currently at Hot tier" }, "tierToArchive": { "$ref": "#/definitions/DateAfterModification", @@ -2283,7 +2303,9 @@ "description": "Integer value indicating the age in days after last modification" } }, - "required": ["daysAfterModificationGreaterThan"], + "required": [ + "daysAfterModificationGreaterThan" + ], "description": "Object to define the number of days after last modification." }, "DateAfterCreation": { @@ -2294,7 +2316,9 @@ "description": "Integer value indicating the age in days after creation" } }, - "required": ["daysAfterCreationGreaterThan"], + "required": [ + "daysAfterCreationGreaterThan" + ], "description": "Object to define the number of days after creation." } }, @@ -2326,12 +2350,12 @@ "required": true, "type": "string", "description": "The name of the Storage Account Management Policy. It should always be 'default'", - "enum":[ + "enum": [ "default" ], "x-ms-enum": { - "name": "ManagementPolicyName", - "modelAsString": true + "name": "ManagementPolicyName", + "modelAsString": true }, "x-ms-parameter-location": "method" } @@ -2354,4 +2378,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/blob.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/blob.json index d78534f3aa55..55437064c5a7 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/blob.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/blob.json @@ -1,25 +1,64 @@ - { - "swagger": "2.0", - "info": { - "version": "2019-04-01", - "title": "StorageManagementClient", - "description": "The Azure Storage Management API." +{ + "swagger": "2.0", + "info": { + "version": "2019-04-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}/blobServices": { + "get": { + "tags": [ + "BlobService" + ], + "operationId": "BlobServices_List", + "x-ms-examples": { + "ListBlobServices": { + "$ref": "./examples/BlobServicesList.json" + } + }, + "description": "List blob services of storage account. It returns a collection of one object named default.", + "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 -- List blob services operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobServiceItems" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}": { - "put": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}": { + "put": { "tags": [ - "BlobService" + "BlobService" ], "operationId": "BlobServices_SetServiceProperties", "x-ms-examples": { @@ -49,23 +88,23 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/BlobServiceProperties" + "$ref": "#/definitions/BlobServiceProperties" }, "description": "The properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules." } ], "responses": { - "200": { - "description": "OK -- Sets The properties of a storage account’s Blob service successfully.", - "schema": { - "$ref": "#/definitions/BlobServiceProperties" + "200": { + "description": "OK -- Sets The properties of a storage account’s Blob service successfully.", + "schema": { + "$ref": "#/definitions/BlobServiceProperties" + } } - } } - }, - "get": { + }, + "get": { "tags": [ - "BlobService" + "BlobService" ], "operationId": "BlobServices_GetServiceProperties", "x-ms-examples": { @@ -92,1002 +131,1002 @@ } ], "responses": { - "200": { - "description": "OK -- returned the properties of a storage account’s Blob service.", - "schema": { - "$ref": "#/definitions/BlobServiceProperties" + "200": { + "description": "OK -- returned the properties of a storage account’s Blob service.", + "schema": { + "$ref": "#/definitions/BlobServiceProperties" + } } - } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers": { - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_List", - "x-ms-examples": { - "ListContainers": { - "$ref": "./examples/BlobContainersList.json" - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers": { + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_List", + "x-ms-examples": { + "ListContainers": { + "$ref": "./examples/BlobContainersList.json" + } + }, + "description": "Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.", - "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": "$skipToken", - "in": "query", - "type": "string", - "description": "Optional. Continuation token for the list operation." - }, - { - "name": "$maxpagesize", - "in": "query", - "type": "string", - "description": "Optional. Specified maximum number of containers that can be included in the list." - }, - { - "name": "$filter", - "in": "query", - "type": "string", - "description": "Optional. When specified, only container names starting with the filter will be listed." - } - ], - "responses": { - "200": { - "description": "OK -- List Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/ListContainerItems" - } - } + { + "$ref": "./storage.json#/parameters/StorageAccountName" }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}": { - "put": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Create", - "x-ms-examples": { - "PutContainers": { - "$ref": "./examples/BlobContainersPut.json" - } + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, - "description": "Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "name": "blobContainer", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BlobContainer" - }, - "description": "Properties of the blob container to create." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "201": { - "description": "Created -- Create Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer" - } - }, - "200": { - "description": "OK -- The Container is already created.", - "schema": { - "$ref": "#/definitions/BlobContainer" - } + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "$skipToken", + "in": "query", + "type": "string", + "description": "Optional. Continuation token for the list operation." + }, + { + "name": "$maxpagesize", + "in": "query", + "type": "string", + "description": "Optional. Specified maximum number of containers that can be included in the list." + }, + { + "name": "$filter", + "in": "query", + "type": "string", + "description": "Optional. When specified, only container names starting with the filter will be listed." + } + ], + "responses": { + "200": { + "description": "OK -- List Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/ListContainerItems" } } }, - "patch": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Update", - "x-ms-examples": { - "UpdateContainers": { - "$ref": "./examples/BlobContainersPatch.json" - } - }, - "description": "Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "name": "blobContainer", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BlobContainer" - }, - "description": "Properties to update for the blob container." - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Update Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer", - "description": "Properties of the updated blob container." - } - } + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}": { + "put": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Create", + "x-ms-examples": { + "PutContainers": { + "$ref": "./examples/BlobContainersPut.json" } }, - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Get", - "x-ms-examples": { - "GetContainers": { - "$ref": "./examples/BlobContainersGet.json" - } + "description": "Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Gets properties of a specified container. ", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "name": "blobContainer", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BlobContainer" }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Get Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/BlobContainer" - } - } + "description": "Properties of the blob container to create." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" } - }, - "delete": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Delete", - "x-ms-examples": { - "DeleteContainers": { - "$ref": "./examples/BlobContainersDelete.json" + ], + "responses": { + "201": { + "description": "Created -- Create Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer" } }, - "description": "Deletes specified container under its account.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK -- Delete Container operation completed successfully." - }, - "204": { - "description": "No Content -- The Container not exist." + "200": { + "description": "OK -- The Container is already created.", + "schema": { + "$ref": "#/definitions/BlobContainer" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_SetLegalHold", - "x-ms-examples": { - "SetLegalHoldContainers": { - "$ref": "./examples/BlobContainersSetLegalHold.json" - } + "patch": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Update", + "x-ms-examples": { + "UpdateContainers": { + "$ref": "./examples/BlobContainersPatch.json" + } + }, + "description": "Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "name": "blobContainer", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BlobContainer" }, - { - "name": "LegalHold", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LegalHold" - }, - "description": "The LegalHold property that will be set to a blob container." - } - ], - "responses": { - "200": { - "description": "OK -- Set legal hold tags for Container completed successfully.", - "schema": { - "$ref": "#/definitions/LegalHold" - } + "description": "Properties to update for the blob container." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Update Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer", + "description": "Properties of the updated blob container." } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_ClearLegalHold", - "x-ms-examples": { - "ClearLegalHoldContainers": { - "$ref": "./examples/BlobContainersClearLegalHold.json" - } + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Get", + "x-ms-examples": { + "GetContainers": { + "$ref": "./examples/BlobContainersGet.json" + } + }, + "description": "Gets properties of a specified container. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "LegalHold", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LegalHold" - }, - "description": "The LegalHold property that will be clear from a blob container." - } - ], - "responses": { - "200": { - "description": "OK -- Clear legal hold tags for Container completed successfully.", - "schema": { - "$ref": "#/definitions/LegalHold" - } + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Get Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/BlobContainer" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}": { - "put": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_CreateOrUpdateImmutabilityPolicy", - "x-ms-examples": { - "CreateOrUpdateImmutabilityPolicy": { - "$ref": "./examples/BlobContainersPutImmutabilityPolicy.json" - } + "delete": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Delete", + "x-ms-examples": { + "DeleteContainers": { + "$ref": "./examples/BlobContainersDelete.json" + } + }, + "description": "Deletes specified container under its account.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "description": "The ImmutabilityPolicy Properties that will be created or updated to a blob container." + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Delete Container operation completed successfully." + }, + "204": { + "description": "No Content -- The Container not exist." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_SetLegalHold", + "x-ms-examples": { + "SetLegalHoldContainers": { + "$ref": "./examples/BlobContainersSetLegalHold.json" + } + }, + "description": "Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" + }, + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "LegalHold", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LegalHold" }, - { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Creates or updates container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } - } + "description": "The LegalHold property that will be set to a blob container." + } + ], + "responses": { + "200": { + "description": "OK -- Set legal hold tags for Container completed successfully.", + "schema": { + "$ref": "#/definitions/LegalHold" } } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_ClearLegalHold", + "x-ms-examples": { + "ClearLegalHoldContainers": { + "$ref": "./examples/BlobContainersClearLegalHold.json" + } }, - "get": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_GetImmutabilityPolicy", - "x-ms-examples": { - "GetImmutabilityPolicy": { - "$ref": "./examples/BlobContainersGetImmutabilityPolicy.json" - } + "description": "Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Gets the existing immutability policy along with the corresponding ETag in response headers and body.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "LegalHold", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LegalHold" }, - { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Gets container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } - } + "description": "The LegalHold property that will be clear from a blob container." + } + ], + "responses": { + "200": { + "description": "OK -- Clear legal hold tags for Container completed successfully.", + "schema": { + "$ref": "#/definitions/LegalHold" } } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}": { + "put": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_CreateOrUpdateImmutabilityPolicy", + "x-ms-examples": { + "CreateOrUpdateImmutabilityPolicy": { + "$ref": "./examples/BlobContainersPutImmutabilityPolicy.json" + } }, - "delete": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_DeleteImmutabilityPolicy", - "x-ms-examples": { - "DeleteImmutabilityPolicy": { - "$ref": "./examples/BlobContainersDeleteImmutabilityPolicy.json" - } + "description": "Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "#/parameters/ImmutabilityPolicyName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "description": "The ImmutabilityPolicy Properties that will be created or updated to a blob container." + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Creates or updates container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Deletes container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + "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" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_LockImmutabilityPolicy", - "x-ms-examples": { - "LockImmutabilityPolicy": { - "$ref": "./examples/BlobContainersLockImmutabilityPolicy.json" - } + "get": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_GetImmutabilityPolicy", + "x-ms-examples": { + "GetImmutabilityPolicy": { + "$ref": "./examples/BlobContainersGetImmutabilityPolicy.json" + } + }, + "description": "Gets the existing immutability policy along with the corresponding ETag in response headers and body.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Gets container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Locks container ImmutabilityPolicy operation completed successfully.", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + "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" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_ExtendImmutabilityPolicy", - "x-ms-examples": { - "ExtendImmutabilityPolicy": { - "$ref": "./examples/BlobContainersExtendImmutabilityPolicy.json" - } + "delete": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_DeleteImmutabilityPolicy", + "x-ms-examples": { + "DeleteImmutabilityPolicy": { + "$ref": "./examples/BlobContainersDeleteImmutabilityPolicy.json" + } + }, + "description": "Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "description": "The ImmutabilityPolicy Properties that will be extended for a blob container." + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "#/parameters/ImmutabilityPolicyName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Deletes container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "If-Match", - "in": "header", - "required": true, - "type": "string", - "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." - } - ], - "responses": { - "200": { - "description": "OK -- Extends container ImmutabilityPolicy operation completed successfully..", - "schema": { - "$ref": "#/definitions/ImmutabilityPolicy" - }, - "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" - } + "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" } } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease": { - "post": { - "tags": [ - "BlobContainers" - ], - "operationId": "BlobContainers_Lease", - "x-ms-examples": { - "Acquire a lease on a container": { - "$ref": "./examples/BlobContainersLease_Acquire.json" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_LockImmutabilityPolicy", + "x-ms-examples": { + "LockImmutabilityPolicy": { + "$ref": "./examples/BlobContainersLockImmutabilityPolicy.json" + } + }, + "description": "Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" + }, + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Locks container ImmutabilityPolicy operation completed successfully.", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - "Break a lease on a container": { - "$ref": "./examples/BlobContainersLease_Break.json" + "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" + } } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_ExtendImmutabilityPolicy", + "x-ms-examples": { + "ExtendImmutabilityPolicy": { + "$ref": "./examples/BlobContainersExtendImmutabilityPolicy.json" + } + }, + "description": "Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "description": "The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.", - "parameters": [ - { - "$ref": "./storage.json#/parameters/ResourceGroupName" - }, - { - "$ref": "./storage.json#/parameters/StorageAccountName" - }, - { - "$ref": "#/parameters/ContainerName" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ContainerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "description": "The ImmutabilityPolicy Properties that will be extended for a blob container." + }, + { + "name": "If-Match", + "in": "header", + "required": true, + "type": "string", + "description": "The entity state (ETag) version of the immutability policy to update. A value of \"*\" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied." + } + ], + "responses": { + "200": { + "description": "OK -- Extends container ImmutabilityPolicy operation completed successfully..", + "schema": { + "$ref": "#/definitions/ImmutabilityPolicy" }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/LeaseContainerRequest" - }, - "description": "Lease Container request body." - } - ], - "responses": { - "200": { - "description": "OK -- Lease Container operation completed successfully.", - "schema": { - "$ref": "#/definitions/LeaseContainerResponse" + "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" } } } } } }, - "definitions": { - "ContainerProperties": { - "properties": { - "publicAccess": { - "type": "string", - "enum": [ - "Container", - "Blob", - "None" - ], - "x-ms-enum": { - "name": "PublicAccess", - "modelAsString": false - }, - "description": "Specifies whether data in the container may be accessed publicly and the level of access." + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease": { + "post": { + "tags": [ + "BlobContainers" + ], + "operationId": "BlobContainers_Lease", + "x-ms-examples": { + "Acquire a lease on a container": { + "$ref": "./examples/BlobContainersLease_Acquire.json" }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the container was last modified." + "Break a lease on a container": { + "$ref": "./examples/BlobContainersLease_Break.json" + } + }, + "description": "The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" }, - "leaseStatus": { - "type": "string", - "readOnly": true, - "enum": [ - "Locked", - "Unlocked" - ], - "x-ms-enum": { - "name": "LeaseStatus", - "modelAsString": true - }, - "description": "The lease status of the container." + { + "$ref": "./storage.json#/parameters/StorageAccountName" }, - "leaseState": { - "type": "string", - "readOnly": true, - "enum": [ - "Available", - "Leased", - "Expired", - "Breaking", - "Broken" - ], - "x-ms-enum": { - "name": "LeaseState", - "modelAsString": true - }, - "description": "Lease state of the container." + { + "$ref": "#/parameters/ContainerName" }, - "leaseDuration": { - "type": "string", - "readOnly": true, - "enum": [ - "Infinite", - "Fixed" - ], - "x-ms-enum": { - "name": "LeaseDuration", - "modelAsString": true - }, - "description": "Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased." + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "A name-value pair to associate with the container as metadata." - }, - "immutabilityPolicy": { - "readOnly": true, - "$ref": "#/definitions/ImmutabilityPolicyProperties", - "x-ms-client-name": "ImmutabilityPolicy", - "description": "The ImmutabilityPolicy property of the container." - }, - "legalHold": { - "readOnly": true, - "$ref": "#/definitions/LegalHoldProperties", - "description": "The LegalHold property of the container." - }, - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "hasImmutabilityPolicy": { - "type": "boolean", - "readOnly": true, - "description": "The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container." - } - }, - "description": "The properties of a container." - }, - "BlobContainer": { - "properties": { - "properties": { - "$ref": "#/definitions/ContainerProperties", - "x-ms-client-flatten": true, - "x-ms-client-name": "ContainerProperties", - "description": "Properties of the blob container." - } - }, - "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" - } - ], - "description": "Properties of the blob container, including Id, resource name, resource type, Etag." - }, - "ImmutabilityPolicyProperty": { - "properties": { - "immutabilityPeriodSinceCreationInDays": { - "type": "integer", - "description": "The immutability period for the blobs in the container since the policy creation, in days." + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, - "state": { - "type": "string", - "readOnly": true, - "enum": [ - "Locked", - "Unlocked" - ], - "x-ms-enum": { - "name": "ImmutabilityPolicyState", - "modelAsString": true + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/LeaseContainerRequest" }, - "description": "The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked." + "description": "Lease Container request body." } - }, - "required": [ - "immutabilityPeriodSinceCreationInDays" ], - "description": "The properties of an ImmutabilityPolicy of a blob container." - }, - "ImmutabilityPolicyProperties": { - "properties": { - "properties": { - "$ref": "#/definitions/ImmutabilityPolicyProperty", - "x-ms-client-flatten": true, - "description": "The properties of an ImmutabilityPolicy of a blob container." - }, - "etag": { - "type": "string", - "readOnly": true, - "description": "ImmutabilityPolicy Etag." - }, - "updateHistory": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/UpdateHistoryProperty" - }, - "description": "The ImmutabilityPolicy update history of the blob container." + "responses": { + "200": { + "description": "OK -- Lease Container operation completed successfully.", + "schema": { + "$ref": "#/definitions/LeaseContainerResponse" + } } + } + } + } + }, + "definitions": { + "ContainerProperties": { + "properties": { + "publicAccess": { + "type": "string", + "enum": [ + "Container", + "Blob", + "None" + ], + "x-ms-enum": { + "name": "PublicAccess", + "modelAsString": false + }, + "description": "Specifies whether data in the container may be accessed publicly and the level of access." }, - "description": "The properties of an ImmutabilityPolicy of a blob container." - }, - "ImmutabilityPolicy": { - "properties": { - "properties": { - "$ref": "#/definitions/ImmutabilityPolicyProperty", - "x-ms-client-flatten": true, - "description": "The properties of an ImmutabilityPolicy of a blob container." - } + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the container was last modified." }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" - } - ], - "required": [ - "properties" - ], - "description": "The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag." - }, - "UpdateHistoryProperty": { - "properties": { - "update": { - "type": "string", - "readOnly": true, - "enum": [ - "put", - "lock", - "extend" - ], - "x-ms-enum": { - "name": "ImmutabilityPolicyUpdateType", - "modelAsString": true - }, - "description": "The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend." - }, - "immutabilityPeriodSinceCreationInDays": { - "type": "integer", - "readOnly": true, - "description": "The immutability period for the blobs in the container since the policy creation, in days." + "leaseStatus": { + "type": "string", + "readOnly": true, + "enum": [ + "Locked", + "Unlocked" + ], + "x-ms-enum": { + "name": "LeaseStatus", + "modelAsString": true }, - "timestamp": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the ImmutabilityPolicy was updated." + "description": "The lease status of the container." + }, + "leaseState": { + "type": "string", + "readOnly": true, + "enum": [ + "Available", + "Leased", + "Expired", + "Breaking", + "Broken" + ], + "x-ms-enum": { + "name": "LeaseState", + "modelAsString": true }, - "objectIdentifier": { - "type": "string", - "readOnly": true, - "description": "Returns the Object ID of the user who updated the ImmutabilityPolicy." + "description": "Lease state of the container." + }, + "leaseDuration": { + "type": "string", + "readOnly": true, + "enum": [ + "Infinite", + "Fixed" + ], + "x-ms-enum": { + "name": "LeaseDuration", + "modelAsString": true }, - "tenantId": { - "type": "string", - "readOnly": true, - "description": "Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy." + "description": "Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased." + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" }, - "upn": { - "type": "string", - "readOnly": true, - "description": "Returns the User Principal Name of the user who updated the ImmutabilityPolicy." - } + "description": "A name-value pair to associate with the container as metadata." + }, + "immutabilityPolicy": { + "readOnly": true, + "$ref": "#/definitions/ImmutabilityPolicyProperties", + "x-ms-client-name": "ImmutabilityPolicy", + "description": "The ImmutabilityPolicy property of the container." + }, + "legalHold": { + "readOnly": true, + "$ref": "#/definitions/LegalHoldProperties", + "description": "The LegalHold property of the container." }, - "description": "An update history of the ImmutabilityPolicy of a blob container." + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." + }, + "hasImmutabilityPolicy": { + "type": "boolean", + "readOnly": true, + "description": "The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container." + } }, - "LegalHoldProperties": { + "description": "The properties of a container." + }, + "BlobContainer": { + "properties": { "properties": { - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/TagProperty" - }, - "description": "The list of LegalHold tags of a blob container." - } + "$ref": "#/definitions/ContainerProperties", + "x-ms-client-flatten": true, + "x-ms-client-name": "ContainerProperties", + "description": "Properties of the blob container." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "description": "Properties of the blob container, including Id, resource name, resource type, Etag." + }, + "ImmutabilityPolicyProperty": { + "properties": { + "immutabilityPeriodSinceCreationInDays": { + "type": "integer", + "description": "The immutability period for the blobs in the container since the policy creation, in days." }, - "description": "The LegalHold property of a blob container." + "state": { + "type": "string", + "readOnly": true, + "enum": [ + "Locked", + "Unlocked" + ], + "x-ms-enum": { + "name": "ImmutabilityPolicyState", + "modelAsString": true + }, + "description": "The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked." + } }, - "TagProperty": { + "required": [ + "immutabilityPeriodSinceCreationInDays" + ], + "description": "The properties of an ImmutabilityPolicy of a blob container." + }, + "ImmutabilityPolicyProperties": { + "properties": { "properties": { - "tag": { - "type": "string", - "readOnly": true, - "description": "The tag value." - }, - "timestamp": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Returns the date and time the tag was added." - }, - "objectIdentifier": { - "type": "string", - "readOnly": true, - "description": "Returns the Object ID of the user who added the tag." + "$ref": "#/definitions/ImmutabilityPolicyProperty", + "x-ms-client-flatten": true, + "description": "The properties of an ImmutabilityPolicy of a blob container." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "ImmutabilityPolicy Etag." + }, + "updateHistory": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/UpdateHistoryProperty" }, - "tenantId": { - "type": "string", - "readOnly": true, - "description": "Returns the Tenant ID that issued the token for the user who added the tag." + "description": "The ImmutabilityPolicy update history of the blob container." + } + }, + "description": "The properties of an ImmutabilityPolicy of a blob container." + }, + "ImmutabilityPolicy": { + "properties": { + "properties": { + "$ref": "#/definitions/ImmutabilityPolicyProperty", + "x-ms-client-flatten": true, + "description": "The properties of an ImmutabilityPolicy of a blob container." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "required": [ + "properties" + ], + "description": "The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag." + }, + "UpdateHistoryProperty": { + "properties": { + "update": { + "type": "string", + "readOnly": true, + "enum": [ + "put", + "lock", + "extend" + ], + "x-ms-enum": { + "name": "ImmutabilityPolicyUpdateType", + "modelAsString": true }, - "upn": { - "type": "string", - "readOnly": true, - "description": "Returns the User Principal Name of the user who added the tag." - } + "description": "The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend." + }, + "immutabilityPeriodSinceCreationInDays": { + "type": "integer", + "readOnly": true, + "description": "The immutability period for the blobs in the container since the policy creation, in days." }, - "description": "A tag of the LegalHold of a blob container." + "timestamp": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the ImmutabilityPolicy was updated." + }, + "objectIdentifier": { + "type": "string", + "readOnly": true, + "description": "Returns the Object ID of the user who updated the ImmutabilityPolicy." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy." + }, + "upn": { + "type": "string", + "readOnly": true, + "description": "Returns the User Principal Name of the user who updated the ImmutabilityPolicy." + } }, - "LegalHold": { - "properties": { - "hasLegalHold": { - "type": "boolean", - "readOnly": true, - "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." - }, - "tags": { - "type": "array", - "items": { - "type": "string", - "maxLength": 23, - "minLength": 3 - }, - "description": "Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP." - } + "description": "An update history of the ImmutabilityPolicy of a blob container." + }, + "LegalHoldProperties": { + "properties": { + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." }, - "required": [ - "tags" - ], - "description": "The LegalHold property of a blob container." + "tags": { + "type": "array", + "items": { + "$ref": "#/definitions/TagProperty" + }, + "description": "The list of LegalHold tags of a blob container." + } }, - "ListContainerItem": { - "properties": { - "properties": { - "$ref": "#/definitions/ContainerProperties", - "x-ms-client-flatten": true, - "description": "The blob container properties be listed out." - } + "description": "The LegalHold property of a blob container." + }, + "TagProperty": { + "properties": { + "tag": { + "type": "string", + "readOnly": true, + "description": "The tag value." }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" - } - ], - "description": "The blob container properties be listed out." + "timestamp": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the tag was added." + }, + "objectIdentifier": { + "type": "string", + "readOnly": true, + "description": "Returns the Object ID of the user who added the tag." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "Returns the Tenant ID that issued the token for the user who added the tag." + }, + "upn": { + "type": "string", + "readOnly": true, + "description": "Returns the User Principal Name of the user who added the tag." + } + }, + "description": "A tag of the LegalHold of a blob container." + }, + "LegalHold": { + "properties": { + "hasLegalHold": { + "type": "boolean", + "readOnly": true, + "description": "The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account." + }, + "tags": { + "type": "array", + "items": { + "type": "string", + "maxLength": 23, + "minLength": 3 + }, + "description": "Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP." + } }, - "ListContainerItems": { + "required": [ + "tags" + ], + "description": "The LegalHold property of a blob container." + }, + "ListContainerItem": { + "properties": { "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ListContainerItem" - }, - "description": "List of blobs containers returned.", - "readOnly": true + "$ref": "#/definitions/ContainerProperties", + "x-ms-client-flatten": true, + "description": "The blob container properties be listed out." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "description": "The blob container properties be listed out." + }, + "ListContainerItems": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ListContainerItem" }, - "nextLink": { - "type": "string", - "description": "Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size.", - "readOnly": true - } + "description": "List of blobs containers returned.", + "readOnly": true }, - "description": "Response schema. Contains list of blobs returned, and if paging is requested or required, a URL to next page of containers." + "nextLink": { + "type": "string", + "description": "Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size.", + "readOnly": true + } }, - "BlobServiceProperties": { - "properties": { + "description": "Response schema. Contains list of blobs returned, and if paging is requested or required, a URL to next page of containers." + }, + "BlobServiceProperties": { + "properties": { "properties": { "properties": { "cors": { @@ -1111,48 +1150,60 @@ "x-ms-client-name": "BlobServiceProperties", "description": "The properties of a storage account’s Blob service." } - }, - "allOf": [ + }, + "allOf": [ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" } - ], - "description": "The properties of a storage account’s Blob service." - }, - "DeleteRetentionPolicy": { - "properties": { - "enabled": { - "type": "boolean", - "description": "Indicates whether DeleteRetentionPolicy is enabled for the Blob service." - }, - "days": { - "type": "integer", - "minimum": 1, - "maximum": 365, - "description": "Indicates the number of days that the deleted blob should be retained. The minimum specified value can be 1 and the maximum value can be 365." - } + ], + "description": "The properties of a storage account’s Blob service." + }, + "BlobServiceItems": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/BlobServiceProperties" + }, + "description": "List of blob services returned.", + "readOnly": true + } + } + }, + "DeleteRetentionPolicy": { + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates whether DeleteRetentionPolicy is enabled for the Blob service." }, - "description": "The blob service properties for soft delete." + "days": { + "type": "integer", + "minimum": 1, + "maximum": 365, + "description": "Indicates the number of days that the deleted blob should be retained. The minimum specified value can be 1 and the maximum value can be 365." + } }, - "CorsRules": { - "properties": { - "corsRules": { - "type": "array", - "items": { - "description": "Specifies a CORS rule for the Blob service. ", - "$ref": "#/definitions/CorsRule" - }, - "description": "The List of CORS rules. You can include up to five CorsRule elements in the request. " - } - }, - "description": "Sets the CORS rules. You can include up to five CorsRule elements in the request. " + "description": "The blob service properties for soft delete." + }, + "CorsRules": { + "properties": { + "corsRules": { + "type": "array", + "items": { + "description": "Specifies a CORS rule for the Blob service. ", + "$ref": "#/definitions/CorsRule" + }, + "description": "The List of CORS rules. You can include up to five CorsRule elements in the request. " + } }, - "CorsRule": { - "properties": { + "description": "Sets the CORS rules. You can include up to five CorsRule elements in the request. " + }, + "CorsRule": { + "properties": { "allowedOrigins": { "type": "array", "items": { - "type": "string" + "type": "string" }, "description": "Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or \"*\" to allow all domains" }, @@ -1160,7 +1211,15 @@ "type": "array", "items": { "type": "string", - "enum": ["DELETE","GET","HEAD","MERGE","POST","OPTIONS","PUT"] + "enum": [ + "DELETE", + "GET", + "HEAD", + "MERGE", + "POST", + "OPTIONS", + "PUT" + ] }, "description": "Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin." }, @@ -1182,115 +1241,115 @@ }, "description": "Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request." } - }, - "required": [ - "allowedOrigins", - "allowedMethods", - "maxAgeInSeconds", - "exposedHeaders", - "allowedHeaders" - ], - "description": "Specifies a CORS rule for the Blob service." }, - "LeaseContainerRequest": { - "properties": { - "action": { - "type": "string", - "enum": [ - "Acquire", - "Renew", - "Change", - "Release", - "Break" - ], - "description": "Specifies the lease action. Can be one of the available actions." - }, - "leaseId": { - "type": "string", - "description": "Identifies the lease. Can be specified in any valid GUID string format." - }, - "breakPeriod": { - "type": "integer", - "description": "Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60." - }, - "leaseDuration": { - "type": "integer", - "description": "Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires." - }, - "proposedLeaseId": { - "type": "string", - "description": "Optional for acquire, required for change. Proposed lease ID, in a GUID string format." - } + "required": [ + "allowedOrigins", + "allowedMethods", + "maxAgeInSeconds", + "exposedHeaders", + "allowedHeaders" + ], + "description": "Specifies a CORS rule for the Blob service." + }, + "LeaseContainerRequest": { + "properties": { + "action": { + "type": "string", + "enum": [ + "Acquire", + "Renew", + "Change", + "Release", + "Break" + ], + "description": "Specifies the lease action. Can be one of the available actions." }, - "required": [ - "action" - ], - "description": "Lease Container request schema." - }, - "LeaseContainerResponse": { - "properties": { - "leaseId": { - "type": "string", - "description": "Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease." - }, - "leaseTimeSeconds": { - "type": "string", - "description": "Approximate time remaining in the lease period, in seconds." - } + "leaseId": { + "type": "string", + "description": "Identifies the lease. Can be specified in any valid GUID string format." }, - "description": "Lease Container response schema." - } - }, - "parameters": { - "ContainerName": { - "name": "containerName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.", - "maxLength": 63, - "minLength": 3, - "x-ms-parameter-location": "method" - }, - "ImmutabilityPolicyName": { - "name": "immutabilityPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'", - "enum":[ - "default" - ], - "x-ms-parameter-location": "method" + "breakPeriod": { + "type": "integer", + "description": "Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60." + }, + "leaseDuration": { + "type": "integer", + "description": "Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires." + }, + "proposedLeaseId": { + "type": "string", + "description": "Optional for acquire, required for change. Proposed lease ID, in a GUID string format." + } }, - "BlobServicesName": { - "name": "BlobServicesName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the blob Service within the specified storage account. Blob Service Name must be 'default'", - "enum":[ - "default" - ], - "x-ms-parameter-location": "method" - } + "required": [ + "action" + ], + "description": "Lease Container request schema." }, - "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" + "LeaseContainerResponse": { + "properties": { + "leaseId": { + "type": "string", + "description": "Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease." + }, + "leaseTimeSeconds": { + "type": "string", + "description": "Approximate time remaining in the lease period, in seconds." } - } + }, + "description": "Lease Container response schema." + } + }, + "parameters": { + "ContainerName": { + "name": "containerName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.", + "maxLength": 63, + "minLength": 3, + "x-ms-parameter-location": "method" + }, + "ImmutabilityPolicyName": { + "name": "immutabilityPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'", + "enum": [ + "default" + ], + "x-ms-parameter-location": "method" }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] + "BlobServicesName": { + "name": "BlobServicesName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the blob Service within the specified storage account. Blob Service Name must be 'default'", + "enum": [ + "default" + ], + "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" } - ] - } \ No newline at end of file + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersClearLegalHold.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersClearLegalHold.json index b2570af57688..df3912099039 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersClearLegalHold.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersClearLegalHold.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersDelete.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersDelete.json index 7dd0670a692d..019d7191af66 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersDelete.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersDelete.json @@ -8,11 +8,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersExtendImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersExtendImmutabilityPolicy.json index 3ee0c02e4de7..d7d92460877b 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersExtendImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersExtendImmutabilityPolicy.json @@ -4,7 +4,7 @@ "resourceGroupName": "res6238", "accountName": "sto232", "containerName": "container5023", - "If-Match": "\"8d59f830d0c3bf9\"", + "If-Match": "\"8d59f830d0c3bf9\"", "api-version": "2019-04-01", "monitor": "true", "parameters": { @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersGet.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersGet.json index 8439ef0032a0..bded3406a619 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersGet.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersGet.json @@ -78,4 +78,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersGetImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersGetImmutabilityPolicy.json index b426f1f91a54..34820f079670 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersGetImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersGetImmutabilityPolicy.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Acquire.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Acquire.json index b12570e9ef7f..3ed6a8c894de 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Acquire.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Acquire.json @@ -1,24 +1,24 @@ -{ - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "res3376", - "accountName": "sto328", - "containerName": "container6185", - "api-version": "2019-04-01", - "monitor": "true", - "parameters": { - "action": "Acquire", - "leaseId": null, - "breakPeriod": null, - "leaseDuration": -1, - "proposedLeaseId": null - } - }, - "responses": { - "200": { - "body": { - "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d" - } - } - } -} \ No newline at end of file +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res3376", + "accountName": "sto328", + "containerName": "container6185", + "api-version": "2019-04-01", + "monitor": "true", + "parameters": { + "action": "Acquire", + "leaseId": null, + "breakPeriod": null, + "leaseDuration": -1, + "proposedLeaseId": null + } + }, + "responses": { + "200": { + "body": { + "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d" + } + } + } +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Break.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Break.json index 4a786add7ec4..d200272d1e46 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Break.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLease_Break.json @@ -1,24 +1,24 @@ -{ - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "res3376", - "accountName": "sto328", - "containerName": "container6185", - "api-version": "2019-04-01", - "monitor": "true", - "parameters": { - "action": "Break", - "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d", - "breakPeriod": null, - "leaseDuration": null, - "proposedLeaseId": null - } - }, - "responses": { - "200": { - "body": { - "leaseTimeSeconds": "0" - } - } - } -} \ No newline at end of file +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res3376", + "accountName": "sto328", + "containerName": "container6185", + "api-version": "2019-04-01", + "monitor": "true", + "parameters": { + "action": "Break", + "leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d", + "breakPeriod": null, + "leaseDuration": null, + "proposedLeaseId": null + } + }, + "responses": { + "200": { + "body": { + "leaseTimeSeconds": "0" + } + } + } +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersList.json index 3cd0f27d6e19..4452819927df 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersList.json @@ -43,4 +43,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLockImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLockImmutabilityPolicy.json index daf6b9c98525..a1cce2fe16a2 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLockImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersLockImmutabilityPolicy.json @@ -4,7 +4,7 @@ "resourceGroupName": "res2702", "accountName": "sto5009", "containerName": "container1631", - "If-Match": "\"8d59f825b721dd3\"", + "If-Match": "\"8d59f825b721dd3\"", "api-version": "2019-04-01", "monitor": "true" }, @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersPatch.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersPatch.json index dde2ce096e94..e9d65c281902 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersPatch.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersPatch.json @@ -32,4 +32,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersPut.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersPut.json index e1f4ec3a5730..eb8d409deaaf 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersPut.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersPut.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersPutImmutabilityPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersPutImmutabilityPolicy.json index c6446ccbcb41..1914972062fd 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersPutImmutabilityPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersPutImmutabilityPolicy.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersSetLegalHold.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersSetLegalHold.json index b95902c7bcd7..85241d1e1bd6 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersSetLegalHold.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobContainersSetLegalHold.json @@ -26,4 +26,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobServicesGet.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobServicesGet.json index 8b837c988559..9b03d54608e3 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobServicesGet.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobServicesGet.json @@ -15,7 +15,8 @@ "type": "Microsoft.Storage/storageAccounts/blobServices", "properties": { "cors": { - "corsRules": [{ + "corsRules": [ + { "allowedOrigins": [ "http://www.contoso.com", "http://www.fabrikam.com" diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobServicesList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobServicesList.json new file mode 100644 index 000000000000..9ee20d70725b --- /dev/null +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobServicesList.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res4410", + "accountName": "sto8607", + "api-version": "2019-04-01", + "monitor": "true" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/blobServices/default", + "name": "default", + "type": "Microsoft.Storage/storageAccounts/blobServices", + "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*" + ] + } + ] + }, + "defaultServiceVersion": "2017-07-29", + "deleteRetentionPolicy": { + "enabled": true, + "days": 300 + }, + "automaticSnapshotPolicyEnabled": true + } + } + ] + } + } + } +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobServicesPut.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobServicesPut.json index 2cef4975700b..45231ea77eef 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobServicesPut.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/BlobServicesPut.json @@ -9,7 +9,8 @@ "parameters": { "properties": { "cors": { - "corsRules": [{ + "corsRules": [ + { "allowedOrigins": [ "http://www.contoso.com", "http://www.fabrikam.com" @@ -85,7 +86,8 @@ "type": "Microsoft.Storage/storageAccounts/blobServices", "properties": { "cors": { - "corsRules": [{ + "corsRules": [ + { "allowedOrigins": [ "http://www.contoso.com", "http://www.fabrikam.com" @@ -154,4 +156,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileServicesGet.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileServicesGet.json new file mode 100644 index 000000000000..cfe2793160e8 --- /dev/null +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileServicesGet.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res4410", + "accountName": "sto8607", + "FileServicesName": "default", + "api-version": "2019-04-01", + "monitor": "true" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/fileServices/default", + "name": "default", + "type": "Microsoft.Storage/storageAccounts/fileServices", + "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-04-01/examples/FileServicesList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileServicesList.json new file mode 100644 index 000000000000..4f56ca4c66d8 --- /dev/null +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileServicesList.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res9290", + "accountName": "sto1590", + "api-version": "2019-04-01", + "monitor": "true" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/fileServices/default", + "name": "default", + "type": "Microsoft.Storage/storageAccounts/fileServices", + "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-04-01/examples/FileServicesPut.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileServicesPut.json new file mode 100644 index 000000000000..ed1718c2cff9 --- /dev/null +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileServicesPut.json @@ -0,0 +1,147 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res4410", + "accountName": "sto8607", + "FileServicesName": "default", + "api-version": "2019-04-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/fileServices/default", + "name": "default", + "type": "Microsoft.Storage/storageAccounts/fileServices", + "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-04-01/examples/FileSharesDelete.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesDelete.json new file mode 100644 index 000000000000..c5bc0a85245b --- /dev/null +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res4079", + "accountName": "sto4506", + "shareName": "share9689", + "api-version": "2019-04-01", + "monitor": "true" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesGet.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesGet.json new file mode 100644 index 000000000000..ad584732d63b --- /dev/null +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res9871", + "accountName": "sto6217", + "shareName": "share1634", + "api-version": "2019-04-01", + "monitor": "true" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/res9871/providers/Microsoft.Storage/storageAccounts/sto6217/fileServices/default/shares/share1634", + "name": "share1634", + "type": "Microsoft.Storage/storageAccounts/fileServices/shares", + "etag": "\"0x8D592D74CC20EBA\"", + "properties": { + "lastModifiedTime": "2019-05-26T05:06:14Z", + "shareQuota": 1024 + } + } + } + } +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesList.json new file mode 100644 index 000000000000..2a524091e1f5 --- /dev/null +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesList.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res9290", + "accountName": "sto1590", + "api-version": "2019-04-01", + "monitor": "true" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto1590/fileServices/default/shares/share1644", + "name": "share1644", + "type": "Microsoft.Storage/storageAccounts/fileServices/shares", + "etag": "\"0x8D589847D51C7DE\"", + "properties": { + "lastModifiedTime": "2019-05-14T08:20:47Z", + "shareQuota": 1024 + } + }, + { + "id": "/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto1590/fileServices/default/shares/share4052", + "name": "share4052", + "type": "Microsoft.Storage/storageAccounts/fileServices/shares", + "etag": "\"0x8D589847DAB5AF9\"", + "properties": { + "lastModifiedTime": "2019-05-14T08:20:47Z", + "shareQuota": 1024 + } + } + ], + "nextLink": "https://sto1590endpoint/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto1590/fileServices/default/shares?api-version=2019-04-01&$maxpagesize=2&$skipToken=/sto1590/share5103" + } + } + } +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesPatch.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesPatch.json new file mode 100644 index 000000000000..3bcb840691c6 --- /dev/null +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesPatch.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res3376", + "accountName": "sto328", + "shareName": "share6185", + "api-version": "2019-04-01", + "monitor": "true", + "fileShare": { + "properties": { + "metadata": { + "type": "image" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/fileServices/default/shares/share6185", + "name": "share6185", + "type": "Microsoft.Storage/storageAccounts/fileServices/shares", + "properties": { + "metadata": { + "type": "image" + } + } + } + } + } +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesPut.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesPut.json new file mode 100644 index 000000000000..391a6bab04ad --- /dev/null +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesPut.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res3376", + "accountName": "sto328", + "shareName": "share6185", + "api-version": "2019-04-01", + "monitor": "true", + "fileShare": {} + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/fileServices/default/shares/share6185", + "name": "share6185", + "type": "Microsoft.Storage/storageAccounts/fileServices/shares" + } + }, + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/fileServices/default/shares/share6185", + "name": "share6185", + "type": "Microsoft.Storage/storageAccounts/fileServices/shares" + } + } + } +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/OperationsList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/OperationsList.json index 8b1b070b4b37..71fc1443767e 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/OperationsList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/OperationsList.json @@ -470,4 +470,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/SKUList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/SKUList.json index e8071caa9efc..d686f6946cdd 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/SKUList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/SKUList.json @@ -6451,4 +6451,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountCheckNameAvailability.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountCheckNameAvailability.json index 56e20783b70c..a0383f8ad2da 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountCheckNameAvailability.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountCheckNameAvailability.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountCreate.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountCreate.json index ffee24ff78e5..716fd1ae6ced 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountCreate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountCreate.json @@ -55,8 +55,6 @@ "type": "Microsoft.Storage/storageAccounts" } }, - "202": { - "body": "" - } + "202": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountDelete.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountDelete.json index 0cf21b90e2fa..928e7835434e 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountDelete.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountDelete.json @@ -7,11 +7,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountDeleteManagementPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountDeleteManagementPolicy.json index fe12a58b3d2e..a76d5ea0e54d 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountDeleteManagementPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountDeleteManagementPolicy.json @@ -8,11 +8,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "204": { - "body": "" - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountFailover.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountFailover.json index 4413caa1f858..03a3ff702603 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountFailover.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountFailover.json @@ -7,11 +7,7 @@ "monitor": "true" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountGetManagementPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountGetManagementPolicy.json index b27bbdd903e4..7d86f343b632 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountGetManagementPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountGetManagementPolicy.json @@ -56,4 +56,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountGetProperties.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountGetProperties.json index 9124bb1f3fca..4ad6337bcbb3 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountGetProperties.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountGetProperties.json @@ -54,4 +54,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountList.json index 3a5bf98c1a4f..3a597e96cd15 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountList.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountList.json @@ -180,4 +180,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListAccountSAS.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListAccountSAS.json index be42a4099b2e..ffabd4cac596 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListAccountSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListAccountSAS.json @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListByResourceGroup.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListByResourceGroup.json index 820c09ae4e73..1bb75e559d88 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListByResourceGroup.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListByResourceGroup.json @@ -75,4 +75,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListKeys.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListKeys.json index f30b49ee1c6f..df5d8ffd1b10 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListKeys.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListKeys.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListLocationUsage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListLocationUsage.json index cddef6ef4f8f..5419aabfdeb7 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListLocationUsage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListLocationUsage.json @@ -21,4 +21,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListServiceSAS.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListServiceSAS.json index fcad3f840e2e..0d80aba87c1c 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListServiceSAS.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountListServiceSAS.json @@ -19,4 +19,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountRegenerateKey.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountRegenerateKey.json index 611e81de8418..1c5669cb105d 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountRegenerateKey.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountRegenerateKey.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountRevokeUserDelegationKeys.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountRevokeUserDelegationKeys.json index 9d5dbe286b18..d518f1604cb6 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountRevokeUserDelegationKeys.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountRevokeUserDelegationKeys.json @@ -1,12 +1,11 @@ { - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "res4167", - "accountName": "sto3539", - "api-version": "2019-04-01" - }, - "responses": { - "200": { - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res4167", + "accountName": "sto3539", + "api-version": "2019-04-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountSetManagementPolicy.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountSetManagementPolicy.json index 74ea69042196..b8f00f58185e 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountSetManagementPolicy.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountSetManagementPolicy.json @@ -97,4 +97,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountUpdate.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountUpdate.json index 858b7ea4098a..bf295ad6ecca 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountUpdate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/StorageAccountUpdate.json @@ -56,4 +56,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/file.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/file.json new file mode 100644 index 000000000000..b6b39a930c37 --- /dev/null +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/file.json @@ -0,0 +1,601 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-04-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}/fileServices": { + "get": { + "tags": [ + "FileService" + ], + "operationId": "FileServices_List", + "x-ms-examples": { + "ListFileServices": { + "$ref": "./examples/FileServicesList.json" + } + }, + "description": "List all file services in storage accounts", + "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 -- List file services operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileServiceItems" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}": { + "put": { + "tags": [ + "FileService" + ], + "operationId": "FileServices_PutServiceProperties", + "x-ms-examples": { + "PutFileServices": { + "$ref": "./examples/FileServicesPut.json" + } + }, + "description": "Sets the properties of file services in storage accounts, including 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/FileServicesName" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FileServiceProperties" + }, + "description": "The properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules." + } + ], + "responses": { + "200": { + "description": "OK -- Sets The properties of a storage account’s File service successfully.", + "schema": { + "$ref": "#/definitions/FileServiceProperties" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "FileService" + ], + "operationId": "FileServices_GetServiceProperties", + "x-ms-examples": { + "GetFileServices": { + "$ref": "./examples/FileServicesGet.json" + } + }, + "description": "Gets the properties of file services in storage accounts, including 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/FileServicesName" + } + ], + "responses": { + "200": { + "description": "OK -- returned the properties of a storage account’s File service.", + "schema": { + "$ref": "#/definitions/FileServiceProperties" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares": { + "get": { + "tags": [ + "FileShares" + ], + "operationId": "FileShares_List", + "x-ms-examples": { + "ListShares": { + "$ref": "./examples/FileSharesList.json" + } + }, + "description": "Lists all shares.", + "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": "$skipToken", + "in": "query", + "type": "string", + "description": "Optional. Continuation token for the list operation." + }, + { + "name": "$maxpagesize", + "in": "query", + "type": "string", + "description": "Optional. Specified maximum number of shares that can be included in the list." + }, + { + "name": "$filter", + "in": "query", + "type": "string", + "description": "Optional. When specified, only share names starting with the filter will be listed." + } + ], + "responses": { + "200": { + "description": "OK -- List Shares operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShareItems" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}": { + "put": { + "tags": [ + "FileShares" + ], + "operationId": "FileShares_Create", + "x-ms-examples": { + "PutShares": { + "$ref": "./examples/FileSharesPut.json" + } + }, + "description": "Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" + }, + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ShareName" + }, + { + "name": "fileShare", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FileShare" + }, + "description": "Properties of the file share to create." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created -- Create Share operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShare" + } + }, + "200": { + "description": "OK -- The Share is already created.", + "schema": { + "$ref": "#/definitions/FileShare" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "FileShares" + ], + "operationId": "FileShares_Update", + "x-ms-examples": { + "UpdateShares": { + "$ref": "./examples/FileSharesPatch.json" + } + }, + "description": "Updates share properties as specified in request body. Properties not mentioned in the request will not be changed. Update fails if the specified share does not already exist. ", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" + }, + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ShareName" + }, + { + "name": "fileShare", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FileShare" + }, + "description": "Properties to update for the file share." + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Update Share operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShare", + "description": "Properties of the updated file share." + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "FileShares" + ], + "operationId": "FileShares_Get", + "x-ms-examples": { + "GetShares": { + "$ref": "./examples/FileSharesGet.json" + } + }, + "description": "Gets properties of a specified share.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" + }, + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ShareName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Get Share operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShare" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "FileShares" + ], + "operationId": "FileShares_Delete", + "x-ms-examples": { + "DeleteShares": { + "$ref": "./examples/FileSharesDelete.json" + } + }, + "description": "Deletes specified share under its account.", + "parameters": [ + { + "$ref": "./storage.json#/parameters/ResourceGroupName" + }, + { + "$ref": "./storage.json#/parameters/StorageAccountName" + }, + { + "$ref": "#/parameters/ShareName" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Delete Share operation completed successfully." + }, + "204": { + "description": "No Content -- The Share not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "FileServiceItems": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FileServiceProperties" + }, + "description": "List of file services returned.", + "readOnly": true + } + } + }, + "FileServiceProperties": { + "properties": { + "properties": { + "properties": { + "cors": { + "$ref": "../../../../../storage/resource-manager/Microsoft.Storage/stable/2019-04-01/blob.json#/definitions/CorsRules", + "description": "Specifies CORS rules for the File 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 File service." + } + }, + "x-ms-client-flatten": true, + "x-ms-client-name": "FileServiceProperties", + "description": "The properties of File services in storage account." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ], + "description": "The properties of File services in storage account." + }, + "FileShare": { + "properties": { + "properties": { + "$ref": "#/definitions/FileShareProperties", + "x-ms-client-flatten": true, + "x-ms-client-name": "FileShareProperties", + "description": "Properties of the file share." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "description": "Properties of the file share, including Id, resource name, resource type, Etag." + }, + "FileShareItem": { + "properties": { + "properties": { + "$ref": "#/definitions/FileShareProperties", + "x-ms-client-flatten": true, + "description": "The file share properties be listed out." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" + } + ], + "description": "The file share properties be listed out." + }, + "FileShareItems": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FileShareItem" + }, + "description": "List of file shares returned.", + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "Request URL that can be used to query next page of shares. Returned when total number of requested shares exceed maximum page size.", + "readOnly": true + } + }, + "description": "Response schema. Contains list of shares returned, and if paging is requested or required, a URL to next page of shares." + }, + "FileShareProperties": { + "properties": { + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Returns the date and time the share was last modified." + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A name-value pair to associate with the share as metadata." + }, + "shareQuota": { + "type": "integer", + "minimum": 1, + "maximum": 5120, + "description": "The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120)." + } + }, + "description": "The properties of the file share." + }, + "ErrorResponse": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/ErrorResponseBody" + } + }, + "description": "An error response from the Storage service." + }, + "ErrorResponseBody": { + "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/ErrorResponseBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from the Storage service." + } + }, + "parameters": { + "FileServicesName": { + "name": "FileServicesName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the file Service within the specified storage account. File Service Name must be \"default\"", + "enum": [ + "default" + ], + "x-ms-parameter-location": "method" + }, + "ShareName": { + "name": "shareName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.", + "maxLength": 63, + "minLength": 3, + "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-04-01/storage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/storage.json index 847880cdc5d3..44666d5baaee 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-04-01/storage.json @@ -450,7 +450,9 @@ "operationId": "Usages_ListByLocation", "description": "Gets the current usage count and the limit for the resources of the location under the subscription.", "x-ms-examples": { - "UsageList": { "$ref": "./examples/StorageAccountListLocationUsage.json"} + "UsageList": { + "$ref": "./examples/StorageAccountListLocationUsage.json" + } }, "parameters": [ { @@ -618,7 +620,9 @@ "operationId": "ManagementPolicies_Get", "description": "Gets the managementpolicy associated with the specified storage account.", "x-ms-examples": { - "StorageAccountGetManagementPolicies": { "$ref": "./examples/StorageAccountGetManagementPolicy.json" } + "StorageAccountGetManagementPolicies": { + "$ref": "./examples/StorageAccountGetManagementPolicy.json" + } }, "parameters": [ { @@ -653,7 +657,9 @@ "operationId": "ManagementPolicies_CreateOrUpdate", "description": "Sets the managementpolicy to the specified storage account.", "x-ms-examples": { - "StorageAccountSetManagementPolicies": { "$ref": "./examples/StorageAccountSetManagementPolicy.json" } + "StorageAccountSetManagementPolicies": { + "$ref": "./examples/StorageAccountSetManagementPolicy.json" + } }, "parameters": [ { @@ -697,7 +703,9 @@ "operationId": "ManagementPolicies_Delete", "description": "Deletes the managementpolicy associated with the specified storage account.", "x-ms-examples": { - "StorageAccountDeleteManagementPolicies": { "$ref": "./examples/StorageAccountDeleteManagementPolicy.json" } + "StorageAccountDeleteManagementPolicies": { + "$ref": "./examples/StorageAccountDeleteManagementPolicy.json" + } }, "parameters": [ { @@ -1328,7 +1336,9 @@ } } }, - "required": ["directoryServiceOptions"], + "required": [ + "directoryServiceOptions" + ], "description": "Settings for Azure Files identity based authentication." }, "StorageAccountPropertiesCreateParameters": { @@ -1339,7 +1349,7 @@ }, "encryption": { "$ref": "#/definitions/Encryption", - "description": "Provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted." + "description": "Not applicable. Azure Storage encryption is enabled for all storage accounts and cannot be disabled." }, "networkAcls": { "$ref": "#/definitions/NetworkRuleSet", @@ -2150,7 +2160,6 @@ "properties": { "$ref": "#/definitions/ManagementPolicyProperties", "x-ms-client-flatten": true, - "readOnly": true, "description": "Returns the Storage Account Data Policies Rules." } }, @@ -2170,14 +2179,16 @@ "description": "Returns the date and time the ManagementPolicies was last modified." }, "policy": { - "$ref": "#/definitions/ManagementPolicySchema", - "description": "The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." + "$ref": "#/definitions/ManagementPolicySchema", + "description": "The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." } }, - "required": ["policy"], + "required": [ + "policy" + ], "description": "The Storage Account ManagementPolicy properties." }, - "ManagementPolicySchema":{ + "ManagementPolicySchema": { "properties": { "rules": { "type": "array", @@ -2187,7 +2198,9 @@ "description": "The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." } }, - "required": ["rules"], + "required": [ + "rules" + ], "description": "The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts." }, "ManagementPolicyRule": { @@ -2216,7 +2229,11 @@ "description": "An object that defines the Lifecycle rule." } }, - "required": ["name", "type", "definition"], + "required": [ + "name", + "type", + "definition" + ], "description": "An object that wraps the Lifecycle rule. Each rule is uniquely defined by name." }, "ManagementPolicyDefinition": { @@ -2230,7 +2247,9 @@ "description": "An object that defines the filter set." } }, - "required": ["actions"], + "required": [ + "actions" + ], "description": "An object that defines the Lifecycle rule. Each definition is made up with a filters set and an actions set." }, "ManagementPolicyFilter": { @@ -2250,7 +2269,9 @@ "description": "An array of predefined enum values. Only blockBlob is supported." } }, - "required": [ "blobTypes" ], + "required": [ + "blobTypes" + ], "description": "Filters limit rule actions to a subset of blobs within the storage account. If multiple filters are defined, a logical AND is performed on all filters. " }, "ManagementPolicyAction": { @@ -2269,8 +2290,8 @@ "ManagementPolicyBaseBlob": { "properties": { "tierToCool": { - "$ref": "#/definitions/DateAfterModification", - "description": "The function to tier blobs to cool storage. Support blobs currently at Hot tier" + "$ref": "#/definitions/DateAfterModification", + "description": "The function to tier blobs to cool storage. Support blobs currently at Hot tier" }, "tierToArchive": { "$ref": "#/definitions/DateAfterModification", @@ -2295,23 +2316,29 @@ "DateAfterModification": { "properties": { "daysAfterModificationGreaterThan": { - "type": "integer", + "type": "number", + "multipleOf": 1.0, "minimum": 0, - "description": "Integer value indicating the age in days after last modification" + "description": "Value indicating the age in days after last modification" } }, - "required": ["daysAfterModificationGreaterThan"], + "required": [ + "daysAfterModificationGreaterThan" + ], "description": "Object to define the number of days after last modification." }, "DateAfterCreation": { "properties": { "daysAfterCreationGreaterThan": { - "type": "integer", + "type": "number", + "multipleOf": 1.0, "minimum": 0, - "description": "Integer value indicating the age in days after creation" + "description": "Value indicating the age in days after creation" } }, - "required": ["daysAfterCreationGreaterThan"], + "required": [ + "daysAfterCreationGreaterThan" + ], "description": "Object to define the number of days after creation." } }, @@ -2343,12 +2370,12 @@ "required": true, "type": "string", "description": "The name of the Storage Account Management Policy. It should always be 'default'", - "enum":[ + "enum": [ "default" ], "x-ms-enum": { - "name": "ManagementPolicyName", - "modelAsString": true + "name": "ManagementPolicyName", + "modelAsString": true }, "x-ms-parameter-location": "method" } @@ -2371,4 +2398,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/storage/resource-manager/readme.md b/specification/storage/resource-manager/readme.md index 124f081ea5d6..a5124d295d79 100644 --- a/specification/storage/resource-manager/readme.md +++ b/specification/storage/resource-manager/readme.md @@ -37,6 +37,7 @@ These settings apply only when `--tag=package-2019-04` is specified on the comma input-file: - Microsoft.Storage/stable/2019-04-01/storage.json - Microsoft.Storage/stable/2019-04-01/blob.json +- Microsoft.Storage/stable/2019-04-01/file.json directive: - suppress: R3018 @@ -236,6 +237,7 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: + - repo: azure-sdk-for-net - repo: azure-sdk-for-python autorest_options: use: "@microsoft.azure/autorest.python@4.0.70" @@ -254,3 +256,46 @@ swagger-to-sdk: ## 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. + +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.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 + - $(this-folder)/Microsoft.Storage/stable/2018-11-01/storage.json + - $(this-folder)/Microsoft.Storage/stable/2018-11-01/blob.json + - $(this-folder)/Microsoft.Storage/stable/2018-07-01/storage.json + - $(this-folder)/Microsoft.Storage/stable/2018-07-01/blob.json + - $(this-folder)/Microsoft.Storage/preview/2018-03-01-preview/managementpolicy.json + - $(this-folder)/Microsoft.Storage/preview/2018-03-01-preview/storage.json + - $(this-folder)/Microsoft.Storage/preview/2018-03-01-preview/blob.json + - $(this-folder)/Microsoft.Storage/stable/2018-02-01/storage.json + - $(this-folder)/Microsoft.Storage/stable/2018-02-01/blob.json + - $(this-folder)/Microsoft.Storage/stable/2017-10-01/storage.json + - $(this-folder)/Microsoft.Storage/stable/2017-06-01/storage.json + - $(this-folder)/Microsoft.Storage/stable/2016-12-01/storage.json + - $(this-folder)/Microsoft.Storage/stable/2016-05-01/storage.json + - $(this-folder)/Microsoft.Storage/stable/2016-01-01/storage.json + - $(this-folder)/Microsoft.Storage/stable/2015-06-15/storage.json + - $(this-folder)/Microsoft.Storage/preview/2015-05-01-preview/storage.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/storageimportexport/resource-manager/readme.md b/specification/storageimportexport/resource-manager/readme.md index acad936ff069..1208be2d3d37 100644 --- a/specification/storageimportexport/resource-manager/readme.md +++ b/specification/storageimportexport/resource-manager/readme.md @@ -94,3 +94,28 @@ generate-interface: 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)/Microsoft.ImportExport/stable/2016-11-01/storageimportexport.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/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_Create.json index a0b6154a71e1..ddeb70b2fdc6 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_Create.json @@ -1,52 +1,51 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2017-06-05-preview", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2017-06-05-preview", - "parameters": { - "properties": { - "provisioningState": "Created", - "storageAccountKey": "storageaccountkeyvalue", - "storageAccount": "https://storageaccounturl/SampleCloudEndpoint", - "storageAccountResourceId": "", - "storageAccountShareName": "", - "storageAccountTenantId": "\"a4d1b191-c1af-4cef-a14b-f670e0beea52\"" - }, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" - } - - }, - "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", - "storageAccount": "https://storageaccounturl/ankushbsubscriptionmgmtmab", - "storageAccountTenantId": "\"a4d1b191-c1af-4cef-a14b-f670e0beea52\"", - "friendlyName": "ankushbsubscriptionmgmtmab", - "lastWorkflowId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/workflows/6fe524cf-5944-4e87-816f-e4a85a1f3533", - "partnershipId": "1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8RjhDODcwQTItMkFGNi00NDUyLTgzMDgtRjJCQTZEQjI3RkEwfEdFTkVSSUN8NTJCOERBMkYtNjFFMC00QTFGLThEREUtMzM2OTExRjM2N0ZC" - }, - "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/cloudEndpoints/SampleCloudEndpoint_1", - "type": "10.91.86.47/storageSyncServices/syncGroups/cloudEndpoints" - } + "properties": { + "provisioningState": "Created", + "storageAccountKey": "storageaccountkeyvalue", + "storageAccount": "https://storageaccounturl/SampleCloudEndpoint", + "storageAccountResourceId": "", + "storageAccountShareName": "", + "storageAccountTenantId": "\"a4d1b191-c1af-4cef-a14b-f670e0beea52\"" + }, + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" + } + }, + "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", + "storageAccount": "https://storageaccounturl/ankushbsubscriptionmgmtmab", + "storageAccountTenantId": "\"a4d1b191-c1af-4cef-a14b-f670e0beea52\"", + "friendlyName": "ankushbsubscriptionmgmtmab", + "lastWorkflowId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/workflows/6fe524cf-5944-4e87-816f-e4a85a1f3533", + "partnershipId": "1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8RjhDODcwQTItMkFGNi00NDUyLTgzMDgtRjJCQTZEQjI3RkEwfEdFTkVSSUN8NTJCOERBMkYtNjFFMC00QTFGLThEREUtMzM2OTExRjM2N0ZC" }, - "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=2017-06-05-preview", - "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=2017-06-05-preview", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/cloudEndpoints/SampleCloudEndpoint_1", + "type": "10.91.86.47/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=2017-06-05-preview", + "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=2017-06-05-preview", + "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/preview/2017-06-05-preview/examples/CloudEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_Delete.json index b5ccf6fdd067..6829b26b034c 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_Delete.json @@ -1,30 +1,28 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2017-06-05-preview" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2017-06-05-preview" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2017-06-05-preview", - "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=2017-06-05-preview", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - - } - } -} \ No newline at end of file + "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=2017-06-05-preview", + "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=2017-06-05-preview", + "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/preview/2017-06-05-preview/examples/CloudEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_Get.json index 552b04fb22ee..5a57fb828b8e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_Get.json @@ -1,34 +1,34 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2017-06-05-preview" - }, - "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", - "storageAccountKey": "storageaccountkeyvalue", - "storageAccount": "https://storageaccounturl/SampleAzureFileShareName_1", - "storageAccountResourceId": "", - "storageAccountShareName": "", - "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" - }, - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2017-06-05-preview" + }, + "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", + "storageAccountKey": "storageaccountkeyvalue", + "storageAccount": "https://storageaccounturl/SampleAzureFileShareName_1", + "storageAccountResourceId": "", + "storageAccountShareName": "", + "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" + }, + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_ListBySyncGroup.json index 2b400ac7211a..17f3f4c54900 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_ListBySyncGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_ListBySyncGroup.json @@ -1,35 +1,37 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2017-06-05-preview" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2017-06-05-preview" + }, + "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", + "storageAccountKey": "storageaccountKeyvalue", + "storageAccount": "https://storageaccounturl/SampleAzureFileShareName_1", + "storageAccountResourceId": "", + "storageAccountShareName": "", + "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" }, - "body": { - "value": [{ - "name": "CEP_Restore_08-08_Test112", - "properties": { - "provisioningState": "Succeeded", - "storageAccountKey": "storageaccountKeyvalue", - "storageAccount": "https://storageaccounturl/SampleAzureFileShareName_1", - "storageAccountResourceId": "", - "storageAccountShareName": "", - "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" - }, - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_PostBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_PostBackup.json index 46d1a3d72411..a1f390dc8450 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_PostBackup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_PostBackup.json @@ -1,34 +1,34 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "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": "2017-06-05-preview" + "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" - }, - "body": { - "backupMetadata": { - "cloudEndpointName": "subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/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=2017-06-05-preview&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" - } + "api-version": "2017-06-05-preview" + }, + "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/10.91.86.47/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=2017-06-05-preview&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/preview/2017-06-05-preview/examples/CloudEndpoints_PostRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_PostRestore.json index 3c0a8a0b2785..29b9d26c34d3 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_PostRestore.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_PostRestore.json @@ -1,48 +1,49 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "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 - }] + "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 }, - "api-version": "2017-06-05-preview" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } + { + "path": "MyDir", + "isdir": true + }, + { + "path": "MyDir/SubDir", + "isdir": false }, - "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=2017-06-05-preview&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" - } + { + "path": "MyDir/SubDir/File1.pdf", + "isdir": false } + ] + }, + "api-version": "2017-06-05-preview" + }, + "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=2017-06-05-preview&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/preview/2017-06-05-preview/examples/CloudEndpoints_PreBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_PreBackup.json index f5b51ce9efc9..eaad9d7d9d86 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_PreBackup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_PreBackup.json @@ -1,29 +1,29 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2017-06-05-preview", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2017-06-05-preview", - "parameters" : { - "azureFileShare": "https://sampleserver.file.core.test-cint.azure-test.net/sampleFileShare" - } + "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" + } }, - "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=2017-06-05-preview&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" - } - } + "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=2017-06-05-preview&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/preview/2017-06-05-preview/examples/CloudEndpoints_PreRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_PreRestore.json index dcaceabc240b..1451e84cc07b 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_PreRestore.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_PreRestore.json @@ -1,46 +1,47 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2017-06-05-preview", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2017-06-05-preview", - "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" - } + "azureFileShareUri": "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare", + "restoreFileSpec": [ + { + "path": "text1.txt", + "isdir": false + }, + { + "path": "MyDir", + "isdir": true }, - "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=2017-06-05-preview&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" - } + { + "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=2017-06-05-preview&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/preview/2017-06-05-preview/examples/CloudEndpoints_RestoreHeatbeat.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_RestoreHeatbeat.json index a0667d8f9a4b..a6ef0e253377 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_RestoreHeatbeat.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/CloudEndpoints_RestoreHeatbeat.json @@ -1,19 +1,18 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2017-06-05-preview" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - }, - "body": "" - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2017-06-05-preview" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/Operations_List.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/Operations_List.json index 66da10fc7522..de5d412a4782 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/Operations_List.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/Operations_List.json @@ -1,193 +1,214 @@ { - "parameters": { - "api-version": "2017-06-05-preview" - }, - "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": "" - } - } + "parameters": { + "api-version": "2017-06-05-preview" + }, + "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 + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_Create.json index 66b144ae5a56..03fe764a81a6 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_Create.json @@ -1,56 +1,56 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", - "parameters": { - "name": "SampleServer-prod3.redmond.corp.microsoft.com", - "properties": { - "serverRole": "Standalone", - "provisioningState": "Created", - "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\"", - "serverManagementtErrorCode": 0, - "serverOSVersion": "10.0.14393.0", - "agentVersion": "1.0.277.0" - }, - "type": "Microsoft.StorageSync/storageSyncServices/registeredServers" - }, - "api-version": "2017-06-05-preview" + "name": "SampleServer-prod3.redmond.corp.microsoft.com", + "properties": { + "serverRole": "Standalone", + "provisioningState": "Created", + "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\"", + "serverManagementtErrorCode": 0, + "serverOSVersion": "10.0.14393.0", + "agentVersion": "1.0.277.0" + }, + "type": "Microsoft.StorageSync/storageSyncServices/registeredServers" }, - "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/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/registeredServers/530a0384-50ac-456d-8240-9d6621404151", - "type": "10.91.86.47/storageSyncServices/registeredServers", - "name": "ankushb-prod3.redmond.corp.microsoft.com", - "properties": { - "serverId": "\"530a0384-50ac-456d-8240-9d6621404151\"", - "serverRole": "Standalone", - "provisioningState": "Succeeded", - "clusterId": "\"00000000-0000-0000-0000-000000000000\"", - "lastHeartBeat": "\"2017-08-21T13:24:18.2641509-07:00\"", - "serverManagementtErrorCode": 0, - "serverOSVersion": "10.0.14393.0", - "agentVersion": "1.0.278.0", - "storageSyncServiceUid": "\"56cfb290-f846-4c96-abc4-ee338bd252e8\"", - "lastWorkflowId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/workflows/c36c3bcb-a72e-492a-b700-4ad74a8e3d69" - } - } - }, - "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=2017-06-05-preview", - "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=2017-06-05-preview", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } + "api-version": "2017-06-05-preview" + }, + "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/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/registeredServers/530a0384-50ac-456d-8240-9d6621404151", + "type": "10.91.86.47/storageSyncServices/registeredServers", + "name": "ankushb-prod3.redmond.corp.microsoft.com", + "properties": { + "serverId": "\"530a0384-50ac-456d-8240-9d6621404151\"", + "serverRole": "Standalone", + "provisioningState": "Succeeded", + "clusterId": "\"00000000-0000-0000-0000-000000000000\"", + "lastHeartBeat": "\"2017-08-21T13:24:18.2641509-07:00\"", + "serverManagementtErrorCode": 0, + "serverOSVersion": "10.0.14393.0", + "agentVersion": "1.0.278.0", + "storageSyncServiceUid": "\"56cfb290-f846-4c96-abc4-ee338bd252e8\"", + "lastWorkflowId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/workflows/c36c3bcb-a72e-492a-b700-4ad74a8e3d69" } + } + }, + "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=2017-06-05-preview", + "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=2017-06-05-preview", + "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/preview/2017-06-05-preview/examples/RegisteredServers_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_Delete.json index 77ed370cdf85..e51b7eeab6fd 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_Delete.json @@ -1,29 +1,27 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "41166691-ab03-43e9-ab3e-0330eda162ac", - "api-version": "2017-06-05-preview" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "41166691-ab03-43e9-ab3e-0330eda162ac", + "api-version": "2017-06-05-preview" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2017-06-05-preview", - "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=2017-06-05-preview", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - - } - } -} \ No newline at end of file + "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=2017-06-05-preview", + "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=2017-06-05-preview", + "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/preview/2017-06-05-preview/examples/RegisteredServers_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_Get.json index 66239532fab2..2ba4820cde0e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_Get.json @@ -1,35 +1,35 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "080d4133-bdb5-40a0-96a0-71a6057bfe9a", - "api-version": "2017-06-05-preview" - }, - "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": { - "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", - "serverRole": "Standalone", - "provisioningState": "Created", - "clusterId": "\"00000000-0000-0000-0000-000000000000\"", - "clusterName": "", - "lastHeartBeat": "\"2017-08-08T18:29:06.470652+00:00\"", - "serverManagementtErrorCode": 0, - "serverOSVersion": "10.0.14393.0", - "agentVersion": "1.0.277.0", - "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"", - "lastWorkflowId": "" - }, - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "080d4133-bdb5-40a0-96a0-71a6057bfe9a", + "api-version": "2017-06-05-preview" + }, + "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": { + "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", + "serverRole": "Standalone", + "provisioningState": "Created", + "clusterId": "\"00000000-0000-0000-0000-000000000000\"", + "clusterName": "", + "lastHeartBeat": "\"2017-08-08T18:29:06.470652+00:00\"", + "serverManagementtErrorCode": 0, + "serverOSVersion": "10.0.14393.0", + "agentVersion": "1.0.277.0", + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"", + "lastWorkflowId": "" + }, + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_ListByStorageSyncService.json index f3d52bde1aed..7b4587a53122 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/RegisteredServers_ListByStorageSyncService.json @@ -1,36 +1,38 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2017-06-05-preview" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2017-06-05-preview" + }, + "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": { + "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", + "serverRole": "Standalone", + "provisioningState": "Created", + "clusterId": "\"00000000-0000-0000-0000-000000000000\"", + "clusterName": "", + "lastHeartBeat": "\"2017-08-08T18:29:06.470652+00:00\"", + "serverManagementtErrorCode": 0, + "serverOSVersion": "10.0.14393.0", + "agentVersion": "1.0.277.0", + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"", + "lastWorkflowId": "" }, - "body": { - "value": [{ - "name": "SampleRegisteredServer_1.redmond.corp.microsoft.com", - "properties": { - "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", - "serverRole": "Standalone", - "provisioningState": "Created", - "clusterId": "\"00000000-0000-0000-0000-000000000000\"", - "clusterName": "", - "lastHeartBeat": "\"2017-08-08T18:29:06.470652+00:00\"", - "serverManagementtErrorCode": 0, - "serverOSVersion": "10.0.14393.0", - "agentVersion": "1.0.277.0", - "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"", - "lastWorkflowId": "" - }, - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Create.json index 5010aaf781d2..b15d8267d393 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Create.json @@ -1,52 +1,52 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "serverEndpointName": "SampleServerEndpoint_1", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "serverEndpointName": "SampleServerEndpoint_1", - "parameters": { - "properties": { - "provisioningState": "Created", - "serverLocalPath": "D:\\SampleServerEndpoint_1", - "serverResourceId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncServer_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a", - "cloudTiering": "off", - "volumeFreeSpacePercent": 100 - }, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - }, - "api-version": "2017-06-05-preview" + "properties": { + "provisioningState": "Created", + "serverLocalPath": "D:\\SampleServerEndpoint_1", + "serverResourceId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncServer_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a", + "cloudTiering": "off", + "volumeFreeSpacePercent": 100 + }, + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" }, - "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": { - "provisioningState": "Succeeded", - "serverLocalPath": "D:\\SampleServerEndpoint_1", - "serverResourceId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/registeredServers/530a0384-50ac-456d-8240-9d6621404151", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "friendlyName": "ankushb-prod3.redmond.corp.microsoft.com", - "lastWorkflowId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/workflows/901054e8-d66f-4e2f-8266-f05a68dbfce4" - }, - "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1", - "type": "10.91.86.47/storageSyncServices/syncGroups/serverEndpoints" - } + "api-version": "2017-06-05-preview" + }, + "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": { + "provisioningState": "Succeeded", + "serverLocalPath": "D:\\SampleServerEndpoint_1", + "serverResourceId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/registeredServers/530a0384-50ac-456d-8240-9d6621404151", + "cloudTiering": "off", + "volumeFreeSpacePercent": 20, + "friendlyName": "ankushb-prod3.redmond.corp.microsoft.com", + "lastWorkflowId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/workflows/901054e8-d66f-4e2f-8266-f05a68dbfce4" }, - "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=2017-06-05-preview", - "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=2017-06-05-preview", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1", + "type": "10.91.86.47/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=2017-06-05-preview", + "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=2017-06-05-preview", + "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/preview/2017-06-05-preview/examples/ServerEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Delete.json index a56776d040c6..e3401152fb6a 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Delete.json @@ -1,27 +1,27 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2017-06-05-preview" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2017-06-05-preview" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2017-06-05-preview", - "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=2017-06-05-preview", - "Retry-After": "10", - "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=2017-06-05-preview", + "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=2017-06-05-preview", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Get.json index 3d53b79d8267..cb4363108fd2 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Get.json @@ -1,43 +1,43 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2017-06-05-preview" - }, - "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": { - "provisioningState": "Succeeded", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "serverLocalPath": "D:\\SampleServerEndpoint_1", - "serverResourceId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a", - "friendlyName": "SampleRegisteredServer-prod3.redmond.corp.microsoft.com", - "lastWorkflowId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/219c62f3-8507-4b87-a85b-ac676ad198d1", - "lastSyncSuccess": "2017-02-24T22:24:43.3216408Z", - "syncErrorState": "0", - "syncErrorStateTimestamp": "2017-02-24T22:24:43.3216408Z", - "syncErrorDirection": "none", - "syncErrorContext": "", - "itemDownloadErrorCount": 0, - "itemUploadErrorCount": 0, - "currentProgressType": "none", - "itemProgressCount": 0, - "itemTotalCount": 0, - "byteProgress": 0 - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_1", - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2017-06-05-preview" + }, + "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": { + "provisioningState": "Succeeded", + "cloudTiering": "off", + "volumeFreeSpacePercent": 20, + "serverLocalPath": "D:\\SampleServerEndpoint_1", + "serverResourceId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a", + "friendlyName": "SampleRegisteredServer-prod3.redmond.corp.microsoft.com", + "lastWorkflowId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/219c62f3-8507-4b87-a85b-ac676ad198d1", + "lastSyncSuccess": "2017-02-24T22:24:43.3216408Z", + "syncErrorState": "0", + "syncErrorStateTimestamp": "2017-02-24T22:24:43.3216408Z", + "syncErrorDirection": "none", + "syncErrorContext": "", + "itemDownloadErrorCount": 0, + "itemUploadErrorCount": 0, + "currentProgressType": "none", + "itemProgressCount": 0, + "itemTotalCount": 0, + "byteProgress": 0 + }, + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_1", + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_ListBySyncGroup.json index 174d19a1516f..24f1ade15619 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_ListBySyncGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_ListBySyncGroup.json @@ -1,70 +1,73 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2017-06-05-preview" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2017-06-05-preview" + }, + "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": { + "provisioningState": "Succeeded", + "cloudTiering": "off", + "volumeFreeSpacePercent": 20, + "serverLocalPath": "D:\\SampleServerEndpoint_1", + "serverResourceId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a", + "friendlyName": "ankushb-prod3.redmond.corp.microsoft.com", + "lastWorkflowId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/219c62f3-8507-4b87-a85b-ac676ad198d1", + "lastSyncSuccess": "2017-02-24T22:24:43.3216408Z", + "syncErrorState": "0", + "syncErrorStateTimestamp": "2017-02-24T22:24:43.3216408Z", + "syncErrorDirection": "none", + "syncErrorContext": "", + "itemDownloadErrorCount": 0, + "itemUploadErrorCount": 0, + "currentProgressType": "none", + "itemProgressCount": 0, + "itemTotalCount": 0, + "byteProgress": 23, + "totalProgress": 23 }, - "body": { - "value": [{ - "name": "SampleServerEndpoint_1", - "properties": { - "provisioningState": "Succeeded", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "serverLocalPath": "D:\\SampleServerEndpoint_1", - "serverResourceId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a", - "friendlyName": "ankushb-prod3.redmond.corp.microsoft.com", - "lastWorkflowId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/219c62f3-8507-4b87-a85b-ac676ad198d1", - "lastSyncSuccess": "2017-02-24T22:24:43.3216408Z", - "syncErrorState": "0", - "syncErrorStateTimestamp": "2017-02-24T22:24:43.3216408Z", - "syncErrorDirection": "none", - "syncErrorContext": "", - "itemDownloadErrorCount": 0, - "itemUploadErrorCount": 0, - "currentProgressType": "none", - "itemProgressCount": 0, - "itemTotalCount": 0, - "byteProgress": 23, - "totalProgress": 23 - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_1", - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - }, { - "name": "SampleServerEndpoint_2", - "properties": { - "provisioningState": "Succeeded", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "serverLocalPath": "D:\\SampleServerEndpoint_2", - "serverResourceId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a", - "friendlyName": "ankushb-prod3.redmond.corp.microsoft.com", - "lastWorkflowId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75", - "lastSyncSuccess": "2017-02-24T22:24:43.3216408Z", - "syncErrorState": "0", - "syncErrorStateTimestamp": "2017-02-24T22:24:43.3216408Z", - "syncErrorDirection": "none", - "syncErrorContext": "", - "itemDownloadErrorCount": 0, - "itemUploadErrorCount": 0, - "currentProgressType": "none", - "itemProgressCount": 0, - "itemTotalCount": 0, - "byteProgress": 0, - "totalProgress": 0 - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_2", - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - }] - } - } + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_1", + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + }, + { + "name": "SampleServerEndpoint_2", + "properties": { + "provisioningState": "Succeeded", + "cloudTiering": "off", + "volumeFreeSpacePercent": 20, + "serverLocalPath": "D:\\SampleServerEndpoint_2", + "serverResourceId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a", + "friendlyName": "ankushb-prod3.redmond.corp.microsoft.com", + "lastWorkflowId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75", + "lastSyncSuccess": "2017-02-24T22:24:43.3216408Z", + "syncErrorState": "0", + "syncErrorStateTimestamp": "2017-02-24T22:24:43.3216408Z", + "syncErrorDirection": "none", + "syncErrorContext": "", + "itemDownloadErrorCount": 0, + "itemUploadErrorCount": 0, + "currentProgressType": "none", + "itemProgressCount": 0, + "itemTotalCount": 0, + "byteProgress": 0, + "totalProgress": 0 + }, + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_2", + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Recall.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Recall.json index 1a114012c6de..14c6149408bc 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Recall.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Recall.json @@ -1,27 +1,27 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2017-06-05-preview" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2017-06-05-preview" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2017-06-05-preview", - "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=2017-06-05-preview", - "Retry-After": "10", - "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=2017-06-05-preview", + "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=2017-06-05-preview", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Update.json index 9d0e6b47f5b6..12f90b633db7 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Update.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/ServerEndpoints_Update.json @@ -1,50 +1,50 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "parameters" : { - "properties": { - "provisioningState": "Created", - "cloudTiering": "off", - "volumeFreeSpacePercent": 100 - }, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - }, - "api-version": "2017-06-05-preview" + "properties": { + "provisioningState": "Created", + "cloudTiering": "off", + "volumeFreeSpacePercent": 100 + }, + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" }, - "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": { - "provisioningState": "Succeeded", - "serverLocalPath": "D:\\SampleServerEndpoint_1", - "serverResourceId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/registeredServers/530a0384-50ac-456d-8240-9d6621404151", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "friendlyName": "ankushb-prod3.redmond.corp.microsoft.com", - "lastWorkflowId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/workflows/901054e8-d66f-4e2f-8266-f05a68dbfce4" - }, - "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1", - "type": "10.91.86.47/storageSyncServices/syncGroups/serverEndpoints" - } + "api-version": "2017-06-05-preview" + }, + "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": { + "provisioningState": "Succeeded", + "serverLocalPath": "D:\\SampleServerEndpoint_1", + "serverResourceId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/registeredServers/530a0384-50ac-456d-8240-9d6621404151", + "cloudTiering": "off", + "volumeFreeSpacePercent": 20, + "friendlyName": "ankushb-prod3.redmond.corp.microsoft.com", + "lastWorkflowId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/workflows/901054e8-d66f-4e2f-8266-f05a68dbfce4" }, - "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=2017-06-05-preview", - "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=2017-06-05-preview", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1", + "type": "10.91.86.47/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=2017-06-05-preview", + "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=2017-06-05-preview", + "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/preview/2017-06-05-preview/examples/StorageSyncServices_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Create.json index 7fb1b01e89ff..cf264647e4e2 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Create.json @@ -1,26 +1,24 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "parameters": { - "location": "WestUS", - "tags": {}, - "properties": {}, - "type": "Microsoft.StorageSync/storageSyncServices" - }, - "api-version": "2017-06-05-preview" + "location": "WestUS", + "tags": {}, + "type": "Microsoft.StorageSync/storageSyncServices" }, - "responses": { - "200": { - "body": { - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": {}, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "api-version": "2017-06-05-preview" + }, + "responses": { + "200": { + "body": { + "name": "SampleStorageSyncService_1", + "location": "WestUS", + "tags": {}, + "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/preview/2017-06-05-preview/examples/StorageSyncServices_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Delete.json index 445b5af000e0..85d8fa7d3559 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Delete.json @@ -1,14 +1,12 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2017-06-05-preview" - }, - "responses": { - "200": { - }, - "204": { - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2017-06-05-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Get.json index d0e22bc81ebe..5cc762435f26 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Get.json @@ -1,28 +1,28 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2017-06-05-preview" - }, - "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, - "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\"" - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2017-06-05-preview" + }, + "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, + "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\"" + }, + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", + "type": "Microsoft.StorageSync/storageSyncServices" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_ListByResourceGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_ListByResourceGroup.json index de718cafeec6..3a8b1c0f8ff7 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_ListByResourceGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_ListByResourceGroup.json @@ -1,48 +1,52 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "api-version": "2017-06-05-preview" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "api-version": "2017-06-05-preview" + }, + "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, + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"" }, - "body": { - "value": [{ - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": { - "storageSyncServiceStatus": 0, - "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, - "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, - "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" - }] -} - } + "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, + "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, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_ListBySubscription.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_ListBySubscription.json index 1fde371e12ec..0e6c25a3bb09 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_ListBySubscription.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_ListBySubscription.json @@ -1,47 +1,51 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "api-version": "2017-06-05-preview" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "api-version": "2017-06-05-preview" + }, + "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, + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"" }, - "body": { - "value": [{ - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": { - "storageSyncServiceStatus": 0, - "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, - "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, - "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" - }] -} - } + "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, + "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, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Update.json index b0a22de445fe..a8eea02f0d5e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Update.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/StorageSyncServices_Update.json @@ -1,32 +1,30 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2017-06-05-preview", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2017-06-05-preview", - "parameters": { - "location": "WestUS", - "tags": { - "Environment": "Test", - "Dept": "IT" - }, - "properties": {}, - "type": "Microsoft.StorageSync/storageSyncServices" - } - }, - "responses": { - "200": { - "body": { - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": { - "Environment": "Test", - "Dept": "IT" - }, - "properties": {}, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "location": "WestUS", + "tags": { + "Environment": "Test", + "Dept": "IT" + }, + "type": "Microsoft.StorageSync/storageSyncServices" } + }, + "responses": { + "200": { + "body": { + "name": "SampleStorageSyncService_1", + "location": "WestUS", + "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" + } + } + } } diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_Create.json index b5272fd3a976..11a648537ec5 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_Create.json @@ -1,26 +1,24 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2017-06-05-preview", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2017-06-05-preview", - "parameters": { - "properties": {}, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups" - } - - }, - "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" - } - } + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups" } + }, + "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/preview/2017-06-05-preview/examples/SyncGroups_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_Delete.json index c6979666be76..88750ba17e7f 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_Delete.json @@ -1,19 +1,18 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2017-06-05-preview" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2017-06-05-preview" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - } - } -} \ No newline at end of file + "204": {} + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_Get.json index dc72917fb604..8b7790151210 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_Get.json @@ -1,26 +1,26 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2017-06-05-preview" - }, - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2017-06-05-preview" + }, + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_ListByStorageSyncService.json index c578ba8d0991..822a64fc051a 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/SyncGroups_ListByStorageSyncService.json @@ -1,27 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2017-06-05-preview" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2017-06-05-preview" + }, + "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" }, - "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" - }] -} - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/Workflows_Abort.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/Workflows_Abort.json index 7c93deca14c9..923eaf4dd565 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/Workflows_Abort.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/Workflows_Abort.json @@ -1,17 +1,17 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "workflowId": "7ffd50b3-5574-478d-9ff2-9371bc42ce68", - "api-version": "2017-06-05-preview" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "workflowId": "7ffd50b3-5574-478d-9ff2-9371bc42ce68", + "api-version": "2017-06-05-preview" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/Workflows_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/Workflows_Get.json index 939c2b0200a7..b8443084ffec 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/Workflows_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/examples/Workflows_Get.json @@ -1,29 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75", - "api-version": "2017-06-05-preview" - }, - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75", + "api-version": "2017-06-05-preview" + }, + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/storagesync.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/storagesync.json index 636ed62c765d..f27ad2e35b2e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/storagesync.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2017-06-05-preview/storagesync.json @@ -4,9 +4,9 @@ "title": "Microsoft Storage Sync", "description": "Microsoft Storage Sync Service API", "version": "2017-06-05-preview", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "name": "StorageSyncManagementClient" - } + } }, "host": "management.azure.com", "schemes": [ @@ -3235,4 +3235,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_Create.json index 70e8bd4b6ec6..e0b6fc370575 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_Create.json @@ -1,51 +1,50 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-04-02", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-04-02", - "parameters": { - "properties": { - "provisioningState": "Created", - "storageAccountResourceId": "", - "storageAccountShareName": "", - "storageAccountTenantId": "\"a4d1b191-c1af-4cef-a14b-f670e0beea52\"" - }, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" - } - - }, - "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", - "storageAccount": "https://storageaccounturl/ankushbsubscriptionmgmtmab", - "storageAccountTenantId": "\"a4d1b191-c1af-4cef-a14b-f670e0beea52\"", - "friendlyName": "ankushbsubscriptionmgmtmab", - "lastWorkflowId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/workflows/6fe524cf-5944-4e87-816f-e4a85a1f3533", - "partnershipId": "1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8RjhDODcwQTItMkFGNi00NDUyLTgzMDgtRjJCQTZEQjI3RkEwfEdFTkVSSUN8NTJCOERBMkYtNjFFMC00QTFGLThEREUtMzM2OTExRjM2N0ZC", - "lastOperationName": "ICreateCloudEndpointWorkflow" - }, - "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/cloudEndpoints/SampleCloudEndpoint_1", - "type": "10.91.86.47/storageSyncServices/syncGroups/cloudEndpoints" - } + "properties": { + "provisioningState": "Created", + "storageAccountResourceId": "", + "storageAccountShareName": "", + "storageAccountTenantId": "\"a4d1b191-c1af-4cef-a14b-f670e0beea52\"" + }, + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" + } + }, + "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", + "storageAccount": "https://storageaccounturl/ankushbsubscriptionmgmtmab", + "storageAccountTenantId": "\"a4d1b191-c1af-4cef-a14b-f670e0beea52\"", + "friendlyName": "ankushbsubscriptionmgmtmab", + "lastWorkflowId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/workflows/6fe524cf-5944-4e87-816f-e4a85a1f3533", + "partnershipId": "1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8RjhDODcwQTItMkFGNi00NDUyLTgzMDgtRjJCQTZEQjI3RkEwfEdFTkVSSUN8NTJCOERBMkYtNjFFMC00QTFGLThEREUtMzM2OTExRjM2N0ZC", + "lastOperationName": "ICreateCloudEndpointWorkflow" }, - "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=2018-04-02", - "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=2018-04-02", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/cloudEndpoints/SampleCloudEndpoint_1", + "type": "10.91.86.47/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=2018-04-02", + "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=2018-04-02", + "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/2018-04-02/examples/CloudEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_Delete.json index bb357e80adb6..8e380ddeafba 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_Delete.json @@ -1,30 +1,28 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-04-02" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-04-02" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2018-04-02", - "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=2018-04-02", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - - } - } -} \ No newline at end of file + "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=2018-04-02", + "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=2018-04-02", + "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/2018-04-02/examples/CloudEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_Get.json index a5dfb698da4c..d9ac810b0123 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_Get.json @@ -1,33 +1,33 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-04-02" - }, - "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": "", - "storageAccountShareName": "", - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-04-02" + }, + "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": "", + "storageAccountShareName": "", + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_ListBySyncGroup.json index ac1fac035799..28115de3c2fb 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_ListBySyncGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_ListBySyncGroup.json @@ -1,34 +1,36 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-04-02" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-04-02" + }, + "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": "", + "storageAccountShareName": "", + "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" }, - "body": { - "value": [{ - "name": "CEP_Restore_08-08_Test112", - "properties": { - "provisioningState": "Succeeded", - "storageAccountResourceId": "", - "storageAccountShareName": "", - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_PostBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_PostBackup.json index b02c247ad93c..5f4ba0ad25bd 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_PostBackup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_PostBackup.json @@ -1,34 +1,34 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "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": "2018-04-02" + "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" - }, - "body": { - "backupMetadata": { - "cloudEndpointName": "subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/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=2018-04-02&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" - } + "api-version": "2018-04-02" + }, + "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/10.91.86.47/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=2018-04-02&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/2018-04-02/examples/CloudEndpoints_PostRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_PostRestore.json index 39eb86009f41..a8663bdec0bf 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_PostRestore.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_PostRestore.json @@ -1,48 +1,49 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "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 - }] + "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 }, - "api-version": "2018-04-02" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } + { + "path": "MyDir", + "isdir": true + }, + { + "path": "MyDir/SubDir", + "isdir": false }, - "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=2018-04-02&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" - } + { + "path": "MyDir/SubDir/File1.pdf", + "isdir": false } + ] + }, + "api-version": "2018-04-02" + }, + "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=2018-04-02&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/2018-04-02/examples/CloudEndpoints_PreBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_PreBackup.json index 38b6847c8522..7ac9477ec757 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_PreBackup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_PreBackup.json @@ -1,29 +1,29 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-04-02", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-04-02", - "parameters" : { - "azureFileShare": "https://sampleserver.file.core.test-cint.azure-test.net/sampleFileShare" - } + "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" + } }, - "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=2018-04-02&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" - } - } + "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=2018-04-02&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/2018-04-02/examples/CloudEndpoints_PreRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_PreRestore.json index 4a8edcaa8620..fe4b15f07196 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_PreRestore.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_PreRestore.json @@ -1,46 +1,47 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-04-02", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-04-02", - "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" - } + "azureFileShareUri": "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare", + "restoreFileSpec": [ + { + "path": "text1.txt", + "isdir": false + }, + { + "path": "MyDir", + "isdir": true }, - "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=2018-04-02&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" - } + { + "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=2018-04-02&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/2018-04-02/examples/CloudEndpoints_RestoreHeatbeat.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_RestoreHeatbeat.json index 17e5ddd29de7..96b5096955ca 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_RestoreHeatbeat.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/CloudEndpoints_RestoreHeatbeat.json @@ -1,19 +1,18 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-04-02" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - }, - "body": "" - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-04-02" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/Operations_List.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/Operations_List.json index 9665866fe371..03befb20d66d 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/Operations_List.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/Operations_List.json @@ -1,193 +1,214 @@ { - "parameters": { - "api-version": "2018-04-02" - }, - "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": "" - } - } + "parameters": { + "api-version": "2018-04-02" + }, + "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 + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_Create.json index 9fa6805a359b..9208aee2f6d0 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_Create.json @@ -1,63 +1,63 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", - "parameters": { - "name": "SampleServer-prod3.redmond.corp.microsoft.com", - "properties": { - "serverRole": "Standalone", - "provisioningState": "Created", - "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\"", - "serverManagementtErrorCode": 0, - "serverOSVersion": "10.0.14393.0", - "agentVersion": "1.0.277.0" - }, - "type": "Microsoft.StorageSync/storageSyncServices/registeredServers" - }, - "api-version": "2018-04-02" + "name": "SampleServer-prod3.redmond.corp.microsoft.com", + "properties": { + "serverRole": "Standalone", + "provisioningState": "Created", + "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\"", + "serverManagementtErrorCode": 0, + "serverOSVersion": "10.0.14393.0", + "agentVersion": "1.0.277.0" + }, + "type": "Microsoft.StorageSync/storageSyncServices/registeredServers" }, - "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/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/registeredServers/530a0384-50ac-456d-8240-9d6621404151", - "type": "10.91.86.47/storageSyncServices/registeredServers", - "name": "ankushb-prod3.redmond.corp.microsoft.com", - "properties": { - "agentVersion": "3.1.5.0", - "serverOSVersion": "10.0.14393.0", - "serverManagementtErrorCode": 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/\"", - "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=2018-04-02", - "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=2018-04-02", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } + "api-version": "2018-04-02" + }, + "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/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/registeredServers/530a0384-50ac-456d-8240-9d6621404151", + "type": "10.91.86.47/storageSyncServices/registeredServers", + "name": "ankushb-prod3.redmond.corp.microsoft.com", + "properties": { + "agentVersion": "3.1.5.0", + "serverOSVersion": "10.0.14393.0", + "serverManagementtErrorCode": 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/\"", + "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=2018-04-02", + "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=2018-04-02", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_Delete.json index f5679eb3cddf..373e8c1d0738 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_Delete.json @@ -1,29 +1,27 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "41166691-ab03-43e9-ab3e-0330eda162ac", - "api-version": "2018-04-02" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "41166691-ab03-43e9-ab3e-0330eda162ac", + "api-version": "2018-04-02" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2018-04-02", - "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=2018-04-02", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - - } - } -} \ No newline at end of file + "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=2018-04-02", + "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=2018-04-02", + "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/2018-04-02/examples/RegisteredServers_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_Get.json index d41db95fe750..840cce0f1ac1 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_Get.json @@ -1,41 +1,41 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "080d4133-bdb5-40a0-96a0-71a6057bfe9a", - "api-version": "2018-04-02" - }, - "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", - "serverManagementtErrorCode": 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/\"", - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "080d4133-bdb5-40a0-96a0-71a6057bfe9a", + "api-version": "2018-04-02" + }, + "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", + "serverManagementtErrorCode": 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/\"", + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_ListByStorageSyncService.json index 15ba678f84c9..1833c7d0975b 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/RegisteredServers_ListByStorageSyncService.json @@ -1,42 +1,44 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-04-02" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-04-02" + }, + "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", + "serverManagementtErrorCode": 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/\"", + "discoveryEndpointUri": "\"https://kailanitest99.one.microsoft.com:443\"", + "resourceLocation": "westus", + "serviceLocation": "westus" }, - "body": { - "value": [{ - "name": "SampleRegisteredServer_1.redmond.corp.microsoft.com", - "properties": { - "agentVersion": "3.1.5.0", - "serverOSVersion": "10.0.14393.0", - "serverManagementtErrorCode": 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/\"", - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Create.json index e918206db1f7..dab60109e861 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Create.json @@ -1,72 +1,72 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "serverEndpointName": "SampleServerEndpoint_1", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "serverEndpointName": "SampleServerEndpoint_1", - "parameters": { - "properties": { - "provisioningState": "Created", - "serverLocalPath": "D:\\SampleServerEndpoint_1", - "serverResourceId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncServer_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a", - "cloudTiering": "off", - "volumeFreeSpacePercent": 100 - }, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - }, - "api-version": "2018-04-02" + "properties": { + "provisioningState": "Created", + "serverLocalPath": "D:\\SampleServerEndpoint_1", + "serverResourceId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncServer_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a", + "cloudTiering": "off", + "volumeFreeSpacePercent": 100 + }, + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "api-version": "2018-04-02" + }, + "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_quota", + "cloudTiering": "off", + "volumeFreeSpacePercent": 20, + "friendlyName": "somemachine.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-d987f727f11a", + "lastOperationName": "ICreateServerEndpointWorkflow", + "syncStatus": { + "downloadHealth": "Healthy", + "uploadHealth": "Error", + "combinedHealth": "Error", + "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", + "uploadStatus": { + "lastSyncResult": -2134351810, + "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", + "lastSyncSuccessTimestamp": null, + "lastSyncPerItemErrorCount": 69 }, - "body": { - "name": "SampleServerEndpoint_1", - "properties": { - "serverLocalPath": "C:\\data_quota", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "friendlyName": "somemachine.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-d987f727f11a", - "lastOperationName": "ICreateServerEndpointWorkflow", - "syncStatus": { - "downloadHealth": "Healthy", - "uploadHealth": "Error", - "combinedHealth": "Error", - "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", - "uploadStatus": { - "lastSyncResult": -2134351810, - "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", - "lastSyncSuccessTimestamp": null, - "lastSyncPerItemErrorCount": 69 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null - } - }, - "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1", - "type": "10.91.86.47/storageSyncServices/syncGroups/serverEndpoints" - } + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 + }, + "currentProgress": null + } }, - "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=2018-04-02", - "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=2018-04-02", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1", + "type": "10.91.86.47/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=2018-04-02", + "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=2018-04-02", + "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/2018-04-02/examples/ServerEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Delete.json index 39bcc8d7dfc0..3c8081033471 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Delete.json @@ -1,27 +1,27 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2018-04-02" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2018-04-02" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2018-04-02", - "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=2018-04-02", - "Retry-After": "10", - "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=2018-04-02", + "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=2018-04-02", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Get.json index 93417bf43543..072fe77791f2 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Get.json @@ -1,52 +1,52 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2018-04-02" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2018-04-02" + }, + "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_quota", + "cloudTiering": "off", + "volumeFreeSpacePercent": 20, + "friendlyName": "somemachine.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-d987f727f11a", + "lastOperationName": "ICreateServerEndpointWorkflow", + "syncStatus": { + "downloadHealth": "Healthy", + "uploadHealth": "Error", + "combinedHealth": "Error", + "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", + "uploadStatus": { + "lastSyncResult": -2134351810, + "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", + "lastSyncSuccessTimestamp": null, + "lastSyncPerItemErrorCount": 69 }, - "body": { - "name": "SampleServerEndpoint_1", - "properties": { - "serverLocalPath": "C:\\data_quota", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "friendlyName": "somemachine.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-d987f727f11a", - "lastOperationName": "ICreateServerEndpointWorkflow", - "syncStatus": { - "downloadHealth": "Healthy", - "uploadHealth": "Error", - "combinedHealth": "Error", - "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", - "uploadStatus": { - "lastSyncResult": -2134351810, - "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", - "lastSyncSuccessTimestamp": null, - "lastSyncPerItemErrorCount": 69 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null - } - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_1", - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - } - } + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 + }, + "currentProgress": null + } + }, + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_1", + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_ListBySyncGroup.json index a86a511b3998..eb1f9d258c93 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_ListBySyncGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_ListBySyncGroup.json @@ -1,86 +1,89 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-04-02" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-04-02" + }, + "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": "C:\\data_quota", + "cloudTiering": "off", + "volumeFreeSpacePercent": 20, + "friendlyName": "somemachine.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-d987f727f11a", + "lastOperationName": "ICreateServerEndpointWorkflow", + "syncStatus": { + "downloadHealth": "Healthy", + "uploadHealth": "Error", + "combinedHealth": "Error", + "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", + "uploadStatus": { + "lastSyncResult": -2134351810, + "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", + "lastSyncSuccessTimestamp": null, + "lastSyncPerItemErrorCount": 69 + }, + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 + }, + "currentProgress": null + } }, - "body": { - "value": [{ - "name": "SampleServerEndpoint_1", - "properties": { - "serverLocalPath": "C:\\data_quota", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "friendlyName": "somemachine.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-d987f727f11a", - "lastOperationName": "ICreateServerEndpointWorkflow", - "syncStatus": { - "downloadHealth": "Healthy", - "uploadHealth": "Error", - "combinedHealth": "Error", - "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", - "uploadStatus": { - "lastSyncResult": -2134351810, - "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", - "lastSyncSuccessTimestamp": null, - "lastSyncPerItemErrorCount": 69 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null - } - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_1", - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - }, { - "name": "SampleServerEndpoint_2", - "properties": { - "serverLocalPath": "C:\\data_quota2", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "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", - "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", - "uploadStatus": { - "lastSyncResult": -2134351810, - "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", - "lastSyncSuccessTimestamp": null, - "lastSyncPerItemErrorCount": 69 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null - } - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_2", - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - }] - } - } + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_1", + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + }, + { + "name": "SampleServerEndpoint_2", + "properties": { + "serverLocalPath": "C:\\data_quota2", + "cloudTiering": "off", + "volumeFreeSpacePercent": 20, + "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", + "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", + "uploadStatus": { + "lastSyncResult": -2134351810, + "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", + "lastSyncSuccessTimestamp": null, + "lastSyncPerItemErrorCount": 69 + }, + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 + }, + "currentProgress": null + } + }, + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_2", + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Recall.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Recall.json index 8da18a1748f0..73e9bee3606a 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Recall.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Recall.json @@ -1,27 +1,28 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2018-04-02" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2018-04-02", + "parameters": {} + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2018-04-02", - "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=2018-04-02", - "Retry-After": "10", - "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=2018-04-02", + "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=2018-04-02", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Update.json index 62ed934c6136..67d415f3fbc7 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Update.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/ServerEndpoints_Update.json @@ -1,68 +1,68 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", "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 - } - }, - "api-version": "2018-04-02" + "properties": { + "cloudTiering": "off", + "volumeFreeSpacePercent": 100 + } }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "api-version": "2018-04-02" + }, + "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, + "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", + "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", + "uploadStatus": { + "lastSyncResult": -2134351810, + "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", + "lastSyncSuccessTimestamp": null, + "lastSyncPerItemErrorCount": 69 }, - "body": { - "name": "SampleServerEndpoint_1", - "properties": { - "serverLocalPath": "C:\\data_quota2", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "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", - "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", - "uploadStatus": { - "lastSyncResult": -2134351810, - "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", - "lastSyncSuccessTimestamp": null, - "lastSyncPerItemErrorCount": 69 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null - } - }, - "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1", - "type": "10.91.86.47/storageSyncServices/syncGroups/serverEndpoints" - } + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 + }, + "currentProgress": null + } }, - "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=2018-04-02", - "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=2018-04-02", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1", + "type": "10.91.86.47/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=2018-04-02", + "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=2018-04-02", + "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/2018-04-02/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json index 930849f6c999..a237a4d47e67 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServiceCheckNameAvailability_Available.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServiceCheckNameAvailability_Available.json index 42955183aee9..1a3c6c60b549 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServiceCheckNameAvailability_Available.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServiceCheckNameAvailability_Available.json @@ -15,4 +15,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Create.json index 3831635b3628..6b4da261cd55 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Create.json @@ -1,26 +1,24 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "parameters": { - "location": "WestUS", - "tags": {}, - "properties": {}, - "type": "Microsoft.StorageSync/storageSyncServices" - }, - "api-version": "2018-04-02" + "location": "WestUS", + "tags": {}, + "type": "Microsoft.StorageSync/storageSyncServices" }, - "responses": { - "200": { - "body": { - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": {}, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "api-version": "2018-04-02" + }, + "responses": { + "200": { + "body": { + "name": "SampleStorageSyncService_1", + "location": "WestUS", + "tags": {}, + "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/2018-04-02/examples/StorageSyncServices_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Delete.json index 8d802d92523e..c56579e5e812 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Delete.json @@ -1,14 +1,12 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-04-02" - }, - "responses": { - "200": { - }, - "204": { - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-04-02" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Get.json index 977f6640c810..15ef2d24a99e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Get.json @@ -1,28 +1,28 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-04-02" - }, - "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, - "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\"" - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-04-02" + }, + "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, + "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\"" + }, + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", + "type": "Microsoft.StorageSync/storageSyncServices" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_ListByResourceGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_ListByResourceGroup.json index fab2edda5756..cf28381c900d 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_ListByResourceGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_ListByResourceGroup.json @@ -1,48 +1,52 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "api-version": "2018-04-02" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "api-version": "2018-04-02" + }, + "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, + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"" }, - "body": { - "value": [{ - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": { - "storageSyncServiceStatus": 0, - "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, - "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, - "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" - }] -} - } + "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, + "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, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_ListBySubscription.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_ListBySubscription.json index 7c7f5605b58d..b6d92f595007 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_ListBySubscription.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_ListBySubscription.json @@ -1,47 +1,51 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "api-version": "2018-04-02" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "api-version": "2018-04-02" + }, + "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, + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"" }, - "body": { - "value": [{ - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": { - "storageSyncServiceStatus": 0, - "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, - "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, - "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" - }] -} - } + "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, + "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, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Update.json index f41e41a621e7..33a7f2b8826d 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Update.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/StorageSyncServices_Update.json @@ -1,30 +1,28 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-04-02", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-04-02", - "parameters": { - "tags": { - "Environment": "Test", - "Dept": "IT" - }, - "properties": {} - } - }, - "responses": { - "200": { - "body": { - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": { - "Environment": "Test", - "Dept": "IT" - }, - "properties": {}, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "tags": { + "Environment": "Test", + "Dept": "IT" + } } + }, + "responses": { + "200": { + "body": { + "name": "SampleStorageSyncService_1", + "location": "WestUS", + "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" + } + } + } } diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_Create.json index 29177fb1a112..84c9d552423e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_Create.json @@ -1,26 +1,24 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-04-02", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-04-02", - "parameters": { - "properties": {}, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups" - } - - }, - "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" - } - } + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups" } + }, + "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/2018-04-02/examples/SyncGroups_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_Delete.json index 32023ed74552..40b87dba2ad7 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_Delete.json @@ -1,19 +1,18 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-04-02" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-04-02" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - } - } -} \ No newline at end of file + "204": {} + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_Get.json index 399f9b34aa24..aa35914165b5 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_Get.json @@ -1,26 +1,26 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-04-02" - }, - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-04-02" + }, + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_ListByStorageSyncService.json index e18dd1c93732..0ab9bd5c6b8c 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/SyncGroups_ListByStorageSyncService.json @@ -1,27 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-04-02" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-04-02" + }, + "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" }, - "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" - }] -} - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/Workflows_Abort.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/Workflows_Abort.json index 163db5778d44..d7fe791da4f9 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/Workflows_Abort.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/Workflows_Abort.json @@ -1,17 +1,17 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "workflowId": "7ffd50b3-5574-478d-9ff2-9371bc42ce68", - "api-version": "2018-04-02" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "workflowId": "7ffd50b3-5574-478d-9ff2-9371bc42ce68", + "api-version": "2018-04-02" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/Workflows_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/Workflows_Get.json index 9ebbb9904272..cdeac85cb881 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/Workflows_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/examples/Workflows_Get.json @@ -1,29 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75", - "api-version": "2018-04-02" - }, - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75", + "api-version": "2018-04-02" + }, + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/storagesync.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/storagesync.json index 8ac5a5e44017..27221020c1fc 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/storagesync.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-04-02/storagesync.json @@ -4,9 +4,9 @@ "title": "Microsoft Storage Sync", "description": "Microsoft Storage Sync Service API", "version": "2018-04-02", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "name": "StorageSyncManagementClient" - } + } }, "host": "management.azure.com", "schemes": [ @@ -74,12 +74,16 @@ ], "operationId": "StorageSyncServices_CheckNameAvailability", "x-ms-examples": { - "StorageSyncServiceCheckNameAvailability_Available": { "$ref": "./examples/StorageSyncServiceCheckNameAvailability_Available.json" }, - "StorageSyncServiceCheckNameAvailability_AlreadyExists": { "$ref": "./examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json" } + "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, @@ -2406,7 +2410,7 @@ "type": "object", "description": "Error type", "properties": { - "error": { + "error": { "$ref": "#/definitions/StorageSyncApiError", "description": "Error details of the given entry." }, @@ -2496,11 +2500,11 @@ } ], "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StorageSyncServiceProperties", - "description": "Storage Sync Service properties." - } + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/StorageSyncServiceProperties", + "description": "Storage Sync Service properties." + } } }, "SyncGroup": { @@ -2510,13 +2514,13 @@ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" } - ], + ], "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SyncGroupProperties", - "description": "SyncGroup properties." - } + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SyncGroupProperties", + "description": "SyncGroup properties." + } } }, "CloudEndpoint": { @@ -2526,12 +2530,12 @@ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" } - ], + ], "properties": { "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/CloudEndpointProperties", - "description": "Cloud Endpoint properties." + "x-ms-client-flatten": true, + "$ref": "#/definitions/CloudEndpointProperties", + "description": "Cloud Endpoint properties." } } }, @@ -2588,8 +2592,7 @@ "SyncGroupCreateParametersProperties": { "type": "object", "description": "Sync Group Create Properties object.", - "properties": { - } + "properties": {} }, "CloudEndpointCreateParameters": { "properties": { @@ -2616,16 +2619,16 @@ "description": "CloudEndpoint Properties object.", "properties": { "storageAccountResourceId": { - "type": "string", - "description": "Storage Account Resource Id" + "type": "string", + "description": "Storage Account Resource Id" }, "storageAccountShareName": { - "type": "string", - "description": "Storage Account Share name" + "type": "string", + "description": "Storage Account Share name" }, "storageAccountTenantId": { - "type": "string", - "description": "Storage Account Tenant Id" + "type": "string", + "description": "Storage Account Tenant Id" } } }, @@ -2763,13 +2766,13 @@ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" } - ], + ], "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ServerEndpointProperties", - "description": "Server Endpoint properties." - } + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ServerEndpointProperties", + "description": "Server Endpoint properties." + } } }, "RegisteredServer": { @@ -2779,13 +2782,13 @@ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" } - ], + ], "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/RegisteredServerProperties", - "description": "RegisteredServer properties." - } + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RegisteredServerProperties", + "description": "RegisteredServer properties." + } } }, "ResourcesMoveInfo": { @@ -2812,13 +2815,13 @@ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" } - ], + ], "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/WorkflowProperties", - "description": "Workflow properties." - } + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/WorkflowProperties", + "description": "Workflow properties." + } } }, "OperationEntityListResult": { @@ -2908,7 +2911,9 @@ }, "type": { "type": "string", - "enum": [ "Microsoft.StorageSync/storageSyncServices" ], + "enum": [ + "Microsoft.StorageSync/storageSyncServices" + ], "x-ms-enum": { "name": "Type", "modelAsString": false @@ -3187,8 +3192,7 @@ "StorageSyncServiceUpdateProperties": { "type": "object", "description": "Storage Sync Service Update Properties object.", - "properties": { - } + "properties": {} }, "StorageSyncServiceProperties": { "type": "object", @@ -3498,4 +3502,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_Create.json index a590250f4ea0..b27e2e1a90dd 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_Create.json @@ -1,51 +1,51 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-07-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "provisioningState": "Created", - "storageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/tminienv59svc/providers/Microsoft.Storage/storageAccounts/tminienv59storage", - "storageAccountShareName": "cvcloud-afscv-0719-058-a94a1354-a1fd-4e9a-9a50-919fad8c4ba4", - "storageAccountTenantId": "\"72f988bf-86f1-41af-91ab-2d7cd011db47\"" - }, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" - } - }, - "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": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/tminienv59svc/providers/Microsoft.Storage/storageAccounts/tminienv59storage", - "storageAccountShareName": "cvcloud-afscv-0719-058-a94a1354-a1fd-4e9a-9a50-919fad8c4ba4", - "storageAccountTenantId": "\"72f988bf-86f1-41af-91ab-2d7cd011db47\"", - "friendlyName": "ankushbsubscriptionmgmtmab", - "lastWorkflowId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/workflows/6fe524cf-5944-4e87-816f-e4a85a1f3533", - "partnershipId": "1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8RjhDODcwQTItMkFGNi00NDUyLTgzMDgtRjJCQTZEQjI3RkEwfEdFTkVSSUN8NTJCOERBMkYtNjFFMC00QTFGLThEREUtMzM2OTExRjM2N0ZC", - "lastOperationName": "ICreateCloudEndpointWorkflow" - }, - "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/cloudEndpoints/SampleCloudEndpoint_1", - "type": "10.91.86.47/storageSyncServices/syncGroups/cloudEndpoints" - } + "properties": { + "provisioningState": "Created", + "storageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/tminienv59svc/providers/Microsoft.Storage/storageAccounts/tminienv59storage", + "storageAccountShareName": "cvcloud-afscv-0719-058-a94a1354-a1fd-4e9a-9a50-919fad8c4ba4", + "storageAccountTenantId": "\"72f988bf-86f1-41af-91ab-2d7cd011db47\"" + }, + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" + } + }, + "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": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/tminienv59svc/providers/Microsoft.Storage/storageAccounts/tminienv59storage", + "storageAccountShareName": "cvcloud-afscv-0719-058-a94a1354-a1fd-4e9a-9a50-919fad8c4ba4", + "storageAccountTenantId": "\"72f988bf-86f1-41af-91ab-2d7cd011db47\"", + "friendlyName": "ankushbsubscriptionmgmtmab", + "lastWorkflowId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/workflows/6fe524cf-5944-4e87-816f-e4a85a1f3533", + "partnershipId": "1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8RjhDODcwQTItMkFGNi00NDUyLTgzMDgtRjJCQTZEQjI3RkEwfEdFTkVSSUN8NTJCOERBMkYtNjFFMC00QTFGLThEREUtMzM2OTExRjM2N0ZC", + "lastOperationName": "ICreateCloudEndpointWorkflow" }, - "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=2018-07-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=2018-07-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/cloudEndpoints/SampleCloudEndpoint_1", + "type": "10.91.86.47/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=2018-07-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=2018-07-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/2018-07-01/examples/CloudEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_Delete.json index 69f04db152a7..7df63447e60a 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_Delete.json @@ -1,30 +1,28 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-07-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-07-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2018-07-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=2018-07-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - - } - } -} \ No newline at end of file + "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=2018-07-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=2018-07-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/2018-07-01/examples/CloudEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_Get.json index 8b7937271b20..b27b2e46f7b0 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_Get.json @@ -1,33 +1,33 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-07-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": "", - "storageAccountShareName": "", - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-07-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": "", + "storageAccountShareName": "", + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_ListBySyncGroup.json index efbe34179951..34dff7afc19a 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_ListBySyncGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_ListBySyncGroup.json @@ -1,34 +1,36 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-07-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": "", + "storageAccountShareName": "", + "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" }, - "body": { - "value": [{ - "name": "CEP_Restore_08-08_Test112", - "properties": { - "provisioningState": "Succeeded", - "storageAccountResourceId": "", - "storageAccountShareName": "", - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_PostBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_PostBackup.json index d9696e57c2e3..0b82b2af5190 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_PostBackup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_PostBackup.json @@ -1,34 +1,34 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "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": "2018-07-01" + "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" - }, - "body": { - "backupMetadata": { - "cloudEndpointName": "subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/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=2018-07-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" - } + "api-version": "2018-07-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/10.91.86.47/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=2018-07-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/2018-07-01/examples/CloudEndpoints_PostRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_PostRestore.json index 65f8ddd0cac6..c3aa2d9b6175 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_PostRestore.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_PostRestore.json @@ -1,48 +1,49 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "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 - }] + "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 }, - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } + { + "path": "MyDir", + "isdir": true + }, + { + "path": "MyDir/SubDir", + "isdir": false }, - "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=2018-07-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" - } + { + "path": "MyDir/SubDir/File1.pdf", + "isdir": false } + ] + }, + "api-version": "2018-07-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=2018-07-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/2018-07-01/examples/CloudEndpoints_PreBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_PreBackup.json index cdf0d9c32694..09beacf326f7 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_PreBackup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_PreBackup.json @@ -1,29 +1,29 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-07-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-07-01", - "parameters" : { - "azureFileShare": "https://sampleserver.file.core.test-cint.azure-test.net/sampleFileShare" - } + "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" + } }, - "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=2018-07-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" - } - } + "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=2018-07-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/2018-07-01/examples/CloudEndpoints_PreRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_PreRestore.json index e674432ddab0..f8dc7d595760 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_PreRestore.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_PreRestore.json @@ -1,46 +1,47 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-07-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-07-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" - } + "azureFileShareUri": "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare", + "restoreFileSpec": [ + { + "path": "text1.txt", + "isdir": false + }, + { + "path": "MyDir", + "isdir": true }, - "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=2018-07-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" - } + { + "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=2018-07-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/2018-07-01/examples/CloudEndpoints_RestoreHeatbeat.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_RestoreHeatbeat.json index ea502c15f337..933041e956bc 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_RestoreHeatbeat.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/CloudEndpoints_RestoreHeatbeat.json @@ -1,19 +1,18 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - }, - "body": "" - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-07-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Operations_List.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Operations_List.json index 06584b89d825..3e87eb100b63 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Operations_List.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Operations_List.json @@ -1,193 +1,214 @@ { - "parameters": { - "api-version": "2018-07-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": "" - } - } + "parameters": { + "api-version": "2018-07-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 + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_Create.json index af85f4dc4d17..6a258d11b7ec 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_Create.json @@ -1,63 +1,63 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", - "parameters": { - "name": "SampleServer-prod3.redmond.corp.microsoft.com", - "properties": { - "serverRole": "Standalone", - "provisioningState": "Created", - "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\"", - "serverManagementtErrorCode": 0, - "serverOSVersion": "10.0.14393.0", - "agentVersion": "1.0.277.0" - }, - "type": "Microsoft.StorageSync/storageSyncServices/registeredServers" - }, - "api-version": "2018-07-01" + "name": "SampleServer-prod3.redmond.corp.microsoft.com", + "properties": { + "serverRole": "Standalone", + "provisioningState": "Created", + "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\"", + "serverManagementtErrorCode": 0, + "serverOSVersion": "10.0.14393.0", + "agentVersion": "1.0.277.0" + }, + "type": "Microsoft.StorageSync/storageSyncServices/registeredServers" }, - "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/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/registeredServers/530a0384-50ac-456d-8240-9d6621404151", - "type": "10.91.86.47/storageSyncServices/registeredServers", - "name": "ankushb-prod3.redmond.corp.microsoft.com", - "properties": { - "agentVersion": "3.1.5.0", - "serverOSVersion": "10.0.14393.0", - "serverManagementtErrorCode": 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/\"", - "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=2018-07-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=2018-07-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } + "api-version": "2018-07-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/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/registeredServers/530a0384-50ac-456d-8240-9d6621404151", + "type": "10.91.86.47/storageSyncServices/registeredServers", + "name": "ankushb-prod3.redmond.corp.microsoft.com", + "properties": { + "agentVersion": "3.1.5.0", + "serverOSVersion": "10.0.14393.0", + "serverManagementtErrorCode": 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/\"", + "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=2018-07-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=2018-07-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_Delete.json index 99cf9e77b7ea..b8d46af72dc5 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_Delete.json @@ -1,29 +1,27 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "41166691-ab03-43e9-ab3e-0330eda162ac", - "api-version": "2018-07-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "41166691-ab03-43e9-ab3e-0330eda162ac", + "api-version": "2018-07-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2018-07-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=2018-07-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - - } - } -} \ No newline at end of file + "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=2018-07-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=2018-07-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/2018-07-01/examples/RegisteredServers_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_Get.json index d05673fe045d..9d8186178b48 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_Get.json @@ -1,41 +1,41 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "080d4133-bdb5-40a0-96a0-71a6057bfe9a", - "api-version": "2018-07-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", - "serverManagementtErrorCode": 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/\"", - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "080d4133-bdb5-40a0-96a0-71a6057bfe9a", + "api-version": "2018-07-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", + "serverManagementtErrorCode": 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/\"", + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_ListByStorageSyncService.json index cd3481d9730f..17f2f0fd8350 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_ListByStorageSyncService.json @@ -1,42 +1,44 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-07-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", + "serverManagementtErrorCode": 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/\"", + "discoveryEndpointUri": "\"https://kailanitest99.one.microsoft.com:443\"", + "resourceLocation": "westus", + "serviceLocation": "westus" }, - "body": { - "value": [{ - "name": "SampleRegisteredServer_1.redmond.corp.microsoft.com", - "properties": { - "agentVersion": "3.1.5.0", - "serverOSVersion": "10.0.14393.0", - "serverManagementtErrorCode": 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/\"", - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_TriggerRollover.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_TriggerRollover.json index 0136bc789ffc..db147996a721 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_TriggerRollover.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/RegisteredServers_TriggerRollover.json @@ -1,29 +1,29 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "d166ca76-dad2-49df-b409-12345642d730", "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": "2018-07-01" + "serverCertificate": "\"MIIDFjCCAf6gAwIBAgIQQS+DS8uhc4VNzUkTw7wbRjANBgkqhkiG9w0BAQ0FADAzMTEwLwYDVQQDEyhhbmt1c2hiLXByb2QzLnJlZG1vbmQuY29ycC5taWNyb3NvZnQuY29tMB4XDTE3MDgwMzE3MDQyNFoXDTE4MDgwNDE3MDQyNFowMzExMC8GA1UEAxMoYW5rdXNoYi1wcm9kMy5yZWRtb25kLmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDRvV4gmsIy6jGDPiHsXmvgVP749NNP7DopdlbHaNhjFmYINHl0uWylyaZmgJrROt2mnxN/zEyJtGnqYHlzUr4xvGq/qV5pqgdB9tag/sw9i22gfe9PRZ0FmSOZnXMbLYgLiDFqLtut5gHcOuWMj03YnkfoBEKlFBxWbagvW2yxz/Sxi9OVSJOKCaXra0RpcIHrO/KFl6ho2eE1/7Ykmfa8hZvSdoPd5gHdLiQcMB/pxq+mWp1fI6c8vFZoDu7Atn+NXTzYPKUxKzaisF12TsaKpohUsJpbB3Wocb0F5frn614D2pg14ERB5otjAMWw1m65csQWPI6dP8KIYe0+QPkCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBAA4RhVIBkw34M1RwakJgHvtjsOFxF1tVQA941NtLokx1l2Z8+GFQkcG4xpZSt+UN6wLerdCbnNhtkCErWUDeaT0jxk4g71Ofex7iM04crT4iHJr8mi96/XnhnkTUs+GDk12VgdeeNEczMZz+8Mxw9dJ5NCnYgTwO0SzGlclRsDvjzkLo8rh2ZG6n/jKrEyNXXo+hOqhupij0QbRP2Tvexdfw201kgN1jdZify8XzJ8Oi0bTS0KpJf2pNPOlooK2bjMUei9ANtEdXwwfVZGWvVh6tJjdv6k14wWWJ1L7zhA1IIVb1J+sQUzJji5iX0DrezjTz1Fg+gAzITaA/WsuujlM=\"" }, - "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=2018-07-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=2018-07-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "api-version": "2018-07-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=2018-07-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=2018-07-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Create.json index 46a5f9ca16ee..d2f14bb34554 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Create.json @@ -1,74 +1,74 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "serverEndpointName": "SampleServerEndpoint_1", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "serverEndpointName": "SampleServerEndpoint_1", - "parameters": { - "properties": { - "provisioningState": "Created", - "serverLocalPath": "D:\\SampleServerEndpoint_1", - "serverResourceId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncServer_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a", - "cloudTiering": "off", - "volumeFreeSpacePercent": 100, - "tierFilesOlderThanDays": 0 - }, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - }, - "api-version": "2018-07-01" + "properties": { + "provisioningState": "Created", + "serverLocalPath": "D:\\SampleServerEndpoint_1", + "serverResourceId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncServer_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a", + "cloudTiering": "off", + "volumeFreeSpacePercent": 100, + "tierFilesOlderThanDays": 0 + }, + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "api-version": "2018-07-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_quota", + "cloudTiering": "off", + "volumeFreeSpacePercent": 20, + "friendlyName": "somemachine.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-d987f727f11a", + "lastOperationName": "ICreateServerEndpointWorkflow", + "tierFilesOlderThanDays": 0, + "syncStatus": { + "downloadHealth": "Healthy", + "uploadHealth": "Error", + "combinedHealth": "Error", + "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", + "uploadStatus": { + "lastSyncResult": -2134351810, + "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", + "lastSyncSuccessTimestamp": null, + "lastSyncPerItemErrorCount": 69 }, - "body": { - "name": "SampleServerEndpoint_1", - "properties": { - "serverLocalPath": "C:\\data_quota", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "friendlyName": "somemachine.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-d987f727f11a", - "lastOperationName": "ICreateServerEndpointWorkflow", - "tierFilesOlderThanDays" : 0, - "syncStatus": { - "downloadHealth": "Healthy", - "uploadHealth": "Error", - "combinedHealth": "Error", - "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", - "uploadStatus": { - "lastSyncResult": -2134351810, - "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", - "lastSyncSuccessTimestamp": null, - "lastSyncPerItemErrorCount": 69 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null - } - }, - "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1", - "type": "10.91.86.47/storageSyncServices/syncGroups/serverEndpoints" - } + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 + }, + "currentProgress": null + } }, - "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=2018-07-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=2018-07-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1", + "type": "10.91.86.47/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=2018-07-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=2018-07-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/2018-07-01/examples/ServerEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Delete.json index 406e8750f6be..70f4f06e7e0c 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Delete.json @@ -1,27 +1,27 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2018-07-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2018-07-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2018-07-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=2018-07-01", - "Retry-After": "10", - "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=2018-07-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=2018-07-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Get.json index 841c87231c30..a26baac37df3 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Get.json @@ -1,53 +1,53 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2018-07-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_quota", + "cloudTiering": "off", + "volumeFreeSpacePercent": 20, + "friendlyName": "somemachine.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-d987f727f11a", + "lastOperationName": "ICreateServerEndpointWorkflow", + "tierFilesOlderThanDays": 0, + "syncStatus": { + "downloadHealth": "Healthy", + "uploadHealth": "Error", + "combinedHealth": "Error", + "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", + "uploadStatus": { + "lastSyncResult": -2134351810, + "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", + "lastSyncSuccessTimestamp": null, + "lastSyncPerItemErrorCount": 69 }, - "body": { - "name": "SampleServerEndpoint_1", - "properties": { - "serverLocalPath": "C:\\data_quota", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "friendlyName": "somemachine.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-d987f727f11a", - "lastOperationName": "ICreateServerEndpointWorkflow", - "tierFilesOlderThanDays" : 0, - "syncStatus": { - "downloadHealth": "Healthy", - "uploadHealth": "Error", - "combinedHealth": "Error", - "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", - "uploadStatus": { - "lastSyncResult": -2134351810, - "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", - "lastSyncSuccessTimestamp": null, - "lastSyncPerItemErrorCount": 69 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null - } - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_1", - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - } - } + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 + }, + "currentProgress": null + } + }, + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_1", + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_ListBySyncGroup.json index c249b2644b5f..fb99ebe0c32b 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_ListBySyncGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_ListBySyncGroup.json @@ -1,86 +1,89 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-07-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": "C:\\data_quota", + "cloudTiering": "off", + "volumeFreeSpacePercent": 20, + "friendlyName": "somemachine.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-d987f727f11a", + "lastOperationName": "ICreateServerEndpointWorkflow", + "syncStatus": { + "downloadHealth": "Healthy", + "uploadHealth": "Error", + "combinedHealth": "Error", + "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", + "uploadStatus": { + "lastSyncResult": -2134351810, + "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", + "lastSyncSuccessTimestamp": null, + "lastSyncPerItemErrorCount": 69 + }, + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 + }, + "currentProgress": null + } }, - "body": { - "value": [{ - "name": "SampleServerEndpoint_1", - "properties": { - "serverLocalPath": "C:\\data_quota", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "friendlyName": "somemachine.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-d987f727f11a", - "lastOperationName": "ICreateServerEndpointWorkflow", - "syncStatus": { - "downloadHealth": "Healthy", - "uploadHealth": "Error", - "combinedHealth": "Error", - "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", - "uploadStatus": { - "lastSyncResult": -2134351810, - "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", - "lastSyncSuccessTimestamp": null, - "lastSyncPerItemErrorCount": 69 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null - } - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_1", - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - }, { - "name": "SampleServerEndpoint_2", - "properties": { - "serverLocalPath": "C:\\data_quota2", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "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", - "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", - "uploadStatus": { - "lastSyncResult": -2134351810, - "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", - "lastSyncSuccessTimestamp": null, - "lastSyncPerItemErrorCount": 69 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null - } - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_2", - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - }] - } - } + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_1", + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + }, + { + "name": "SampleServerEndpoint_2", + "properties": { + "serverLocalPath": "C:\\data_quota2", + "cloudTiering": "off", + "volumeFreeSpacePercent": 20, + "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", + "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", + "uploadStatus": { + "lastSyncResult": -2134351810, + "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", + "lastSyncSuccessTimestamp": null, + "lastSyncPerItemErrorCount": 69 + }, + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 + }, + "currentProgress": null + } + }, + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/serverEndpoints/SampleServerEndpoint_2", + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Recall.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Recall.json index e3df14383eb0..cc9227bd6b17 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Recall.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Recall.json @@ -1,31 +1,31 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2018-07-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2018-07-01", - "parameters": { - "pattern": "", - "recallPath": "" - } + "pattern": "", + "recallPath": "" + } + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2018-07-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=2018-07-01", - "Retry-After": "10", - "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=2018-07-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=2018-07-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Update.json index 56a8b939c5eb..fe6dc338a146 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Update.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/ServerEndpoints_Update.json @@ -1,68 +1,68 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", "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 - } - }, - "api-version": "2018-07-01" + "properties": { + "cloudTiering": "off", + "volumeFreeSpacePercent": 100 + } }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "api-version": "2018-07-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, + "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", + "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", + "uploadStatus": { + "lastSyncResult": -2134351810, + "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", + "lastSyncSuccessTimestamp": null, + "lastSyncPerItemErrorCount": 69 }, - "body": { - "name": "SampleServerEndpoint_1", - "properties": { - "serverLocalPath": "C:\\data_quota2", - "cloudTiering": "off", - "volumeFreeSpacePercent": 20, - "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", - "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", - "uploadStatus": { - "lastSyncResult": -2134351810, - "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", - "lastSyncSuccessTimestamp": null, - "lastSyncPerItemErrorCount": 69 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null - } - }, - "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1", - "type": "10.91.86.47/storageSyncServices/syncGroups/serverEndpoints" - } + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 + }, + "currentProgress": null + } }, - "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=2018-07-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=2018-07-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/10.91.86.47/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1", + "type": "10.91.86.47/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=2018-07-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=2018-07-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/2018-07-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json index eddb9c226ab0..0af887cb9722 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json @@ -17,4 +17,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServiceCheckNameAvailability_Available.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServiceCheckNameAvailability_Available.json index 528cbbe0319d..01ef07f1b8c8 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServiceCheckNameAvailability_Available.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServiceCheckNameAvailability_Available.json @@ -15,4 +15,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Create.json index fadfd4c0cf4b..25b563c5d9ed 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Create.json @@ -1,25 +1,23 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "parameters": { - "location": "WestUS", - "tags": {}, - "properties": {} - }, - "api-version": "2018-07-01" + "location": "WestUS", + "tags": {} }, - "responses": { - "200": { - "body": { - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": {}, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "api-version": "2018-07-01" + }, + "responses": { + "200": { + "body": { + "name": "SampleStorageSyncService_1", + "location": "WestUS", + "tags": {}, + "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/2018-07-01/examples/StorageSyncServices_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Delete.json index be39f9b2193d..dca570138247 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Delete.json @@ -1,14 +1,12 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - }, - "204": { - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-07-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Get.json index 44a42c2d4da4..9ba47ab25883 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Get.json @@ -1,28 +1,28 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-07-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, - "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\"" - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-07-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, + "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\"" + }, + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", + "type": "Microsoft.StorageSync/storageSyncServices" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_ListByResourceGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_ListByResourceGroup.json index 98e01908a7ba..aadaeaa57262 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_ListByResourceGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_ListByResourceGroup.json @@ -1,48 +1,52 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "api-version": "2018-07-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, + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"" }, - "body": { - "value": [{ - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": { - "storageSyncServiceStatus": 0, - "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, - "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, - "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" - }] -} - } + "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, + "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, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_ListBySubscription.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_ListBySubscription.json index b692ba14ebad..2f4c719a3afd 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_ListBySubscription.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_ListBySubscription.json @@ -1,47 +1,51 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "api-version": "2018-07-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, + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"" }, - "body": { - "value": [{ - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": { - "storageSyncServiceStatus": 0, - "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, - "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, - "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" - }] -} - } + "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, + "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, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Update.json index 38725183d6ce..25466009d9e6 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Update.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/StorageSyncServices_Update.json @@ -1,30 +1,28 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-07-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-07-01", - "parameters": { - "tags": { - "Environment": "Test", - "Dept": "IT" - }, - "properties": {} - } - }, - "responses": { - "200": { - "body": { - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": { - "Environment": "Test", - "Dept": "IT" - }, - "properties": {}, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "tags": { + "Environment": "Test", + "Dept": "IT" + } } + }, + "responses": { + "200": { + "body": { + "name": "SampleStorageSyncService_1", + "location": "WestUS", + "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" + } + } + } } diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_Create.json index fe748a0880e4..a7750fac8852 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_Create.json @@ -1,26 +1,24 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-07-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-07-01", - "parameters": { - "properties": {}, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups" - } - - }, - "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" - } - } + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups" } + }, + "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/2018-07-01/examples/SyncGroups_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_Delete.json index 0501688779ce..9cf49a9519ad 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_Delete.json @@ -1,19 +1,18 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-07-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-07-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - } - } -} \ No newline at end of file + "204": {} + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_Get.json index ac0272a4a29e..50408efa3dd2 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_Get.json @@ -1,26 +1,26 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-07-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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-07-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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_ListByStorageSyncService.json index fcfa4f9688ae..6e6f75c4db08 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/SyncGroups_ListByStorageSyncService.json @@ -1,27 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-07-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" }, - "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" - }] -} - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Workflows_Abort.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Workflows_Abort.json index 84e34badbf83..826cd291bc12 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Workflows_Abort.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Workflows_Abort.json @@ -1,17 +1,17 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "workflowId": "7ffd50b3-5574-478d-9ff2-9371bc42ce68", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "workflowId": "7ffd50b3-5574-478d-9ff2-9371bc42ce68", + "api-version": "2018-07-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Workflows_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Workflows_Get.json index 4d4d39648d21..2941db86d919 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Workflows_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Workflows_Get.json @@ -1,29 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75", - "api-version": "2018-07-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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75", + "api-version": "2018-07-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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Workflows_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Workflows_ListByStorageSyncService.json index c5f24afc125a..4ee92fd8f49f 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Workflows_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/examples/Workflows_ListByStorageSyncService.json @@ -1,30 +1,32 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-07-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}]" }, - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/storagesync.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/storagesync.json index 38cdc29d3f9e..c84fb2ad3145 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/storagesync.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-07-01/storagesync.json @@ -1,3417 +1,3660 @@ { - "swagger": "2.0", - "info": { - "title": "Microsoft Storage Sync", - "description": "Microsoft Storage Sync Service API", - "version": "2018-07-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" - } - }, - "default": { - "description": "Error message indicating why the operation failed.", - "schema": { - "$ref": "#/definitions/StorageSyncError" - } - } - } + "swagger": "2.0", + "info": { + "title": "Microsoft Storage Sync", + "description": "Microsoft Storage Sync Service API", + "version": "2018-07-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" }, - "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" - } - } - }, - "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" - }], - "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" - } - } - }, - "204": { - "description": "Storage Sync Service 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": { - "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}/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" - } - } - } + "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" }, - "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" - } - } - } + "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" + } + }, + "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" + }, + { + "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" }, - "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 + "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" }, - "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" - } - } - } + "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" + } + ], + "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" + } + } + }, + "204": { + "description": "Storage Sync Service 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": { + "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" }, - "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}/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 + "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" }, - "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 + "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" }, - "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" - } - } - } + "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" }, - "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" - } - } - } + "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" }, - "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 + "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" }, - "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" - } - } - } - } - } - }, - "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." - } - } - }, - "RecallActionParameters": { - "properties": { - "pattern": { - "type": "string", - "description": "Pattern of the files." - }, - "recallPath": { - "type": "string", - "description": "Recall path." - } + "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" }, - "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": {} + "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" }, - "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" - } + "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" }, - "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." - } + "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}/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" }, - "description": "The parameters used when creating a cloud endpoint." - }, - "CloudEndpointCreateParametersProperties": { - "description": "CloudEndpoint Properties object.", - "properties": { - "storageAccountResourceId": { - "type": "string", - "description": "Storage Account Resource Id" - }, - "storageAccountShareName": { - "type": "string", - "description": "Storage Account Share name" - }, - "storageAccountTenantId": { - "type": "string", - "description": "Storage Account Tenant Id" - } - } - }, - "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." - } + "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" }, - "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." - } - } - }, - "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." - } + "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" }, - "description": "The parameters used when creating a registered server." - }, - "RegisteredServerCreateParametersProperties": { - "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." - } + "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" }, - "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" - } + "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" }, - "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." - } + "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" }, - "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", - "readOnly": true - } - } - }, - "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 storage sync service." - } + "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" }, - "description": "Parameters for updating an Storage sync service." - }, - "StorageSyncServiceUpdateProperties": { - "type": "object", - "description": "Storage Sync Service Update Properties object.", - "properties": {} - }, - "StorageSyncServiceProperties": { - "type": "object", - "description": "Storage Sync Service Properties object.", - "properties": { - "storageSyncServiceStatus": { - "type": "integer", - "description": "Storage Sync service status.", - "readOnly": true - }, - "storageSyncServiceUid": { - "type": "string", - "description": "Storage Sync service Uid", - "readOnly": true - } - } - }, - "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" - }, - "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" - }, - "serverManagementtErrorCode": { - "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" - }, - "monitoringConfiguration": { - "type": "string", - "description": "Monitoring Configuration" - } - } - }, - "CloudEndpointProperties": { - "type": "object", - "description": "CloudEndpoint Properties object.", - "properties": { - "storageAccountResourceId": { - "type": "string", - "description": "Storage Account Resource Id" - }, - "storageAccountShareName": { - "type": "string", - "description": "Storage Account Share name" - }, - "storageAccountTenantId": { - "type": "string", - "description": "Storage Account Tenant Id" - }, - "partnershipId": { - "type": "string", - "description": "Partnership Id" - }, - "friendlyName": { - "type": "string", - "description": "Friendly Name" - }, - "backupEnabled": { - "type": "boolean", - "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." - } - } - }, - "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" - }, - "lastWorkflowId": { - "type": "string", - "description": "ServerEndpoint lastWorkflowId" - }, - "lastOperationName": { - "type": "string", - "description": "Resource Last Operation Name" - }, - "syncStatus": { - "type": "object", - "description": "Sync Health Status" - } - } - }, - "PhysicalPath": { - "type": "string", - "description": "Server folder used for data synchronization" - }, - "ResourceId": { - "type": "string", - "description": "Arm resource identifier." + "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" + } + } }, - "TagsObject": { - "type": "object", - "description": "Tags object." + "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" + } + } }, - "FeatureStatus": { - "type": "string", - "description": "Type of the Feature Status", - "enum": [ - "on", - "off" - ] + "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" + } + } }, - "WorkflowStatus": { - "type": "string", - "description": "Type of the Workflow Status", - "enum": [ - "active", - "expired", - "succeeded", - "aborted", - "failed" - ] - }, - "OperationDirection": { - "type": "string", - "description": "Type of the Operation Direction", - "enum": [ - "do", - "undo", - "cancel" - ] - }, - "ProgressType": { - "type": "string", - "description": "Type of the ProgressType", - "enum": [ - "none", - "initialize", - "download", - "upload", - "recall" - ] - } - }, - "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" - ] - }] -} \ No newline at end of file + "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" + } + } + } + } + } + }, + "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." + } + } + }, + "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": {} + }, + "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." + }, + "CloudEndpointCreateParametersProperties": { + "description": "CloudEndpoint Properties object.", + "properties": { + "storageAccountResourceId": { + "type": "string", + "description": "Storage Account Resource Id" + }, + "storageAccountShareName": { + "type": "string", + "description": "Storage Account Share name" + }, + "storageAccountTenantId": { + "type": "string", + "description": "Storage Account Tenant Id" + } + } + }, + "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." + } + } + }, + "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": { + "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", + "readOnly": true + } + } + }, + "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 storage sync service." + } + }, + "description": "Parameters for updating an Storage sync service." + }, + "StorageSyncServiceUpdateProperties": { + "type": "object", + "description": "Storage Sync Service Update Properties object.", + "properties": {} + }, + "StorageSyncServiceProperties": { + "type": "object", + "description": "Storage Sync Service Properties object.", + "properties": { + "storageSyncServiceStatus": { + "type": "integer", + "description": "Storage Sync service status.", + "readOnly": true + }, + "storageSyncServiceUid": { + "type": "string", + "description": "Storage Sync service Uid", + "readOnly": true + } + } + }, + "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" + }, + "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" + }, + "serverManagementtErrorCode": { + "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" + }, + "monitoringConfiguration": { + "type": "string", + "description": "Monitoring Configuration" + } + } + }, + "CloudEndpointProperties": { + "type": "object", + "description": "CloudEndpoint Properties object.", + "properties": { + "storageAccountResourceId": { + "type": "string", + "description": "Storage Account Resource Id" + }, + "storageAccountShareName": { + "type": "string", + "description": "Storage Account Share name" + }, + "storageAccountTenantId": { + "type": "string", + "description": "Storage Account Tenant Id" + }, + "partnershipId": { + "type": "string", + "description": "Partnership Id" + }, + "friendlyName": { + "type": "string", + "description": "Friendly Name" + }, + "backupEnabled": { + "type": "boolean", + "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." + } + } + }, + "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" + }, + "lastWorkflowId": { + "type": "string", + "description": "ServerEndpoint lastWorkflowId" + }, + "lastOperationName": { + "type": "string", + "description": "Resource Last Operation Name" + }, + "syncStatus": { + "type": "object", + "description": "Sync Health Status" + } + } + }, + "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" + ] + }, + "WorkflowStatus": { + "type": "string", + "description": "Type of the Workflow Status", + "enum": [ + "active", + "expired", + "succeeded", + "aborted", + "failed" + ] + }, + "OperationDirection": { + "type": "string", + "description": "Type of the Operation Direction", + "enum": [ + "do", + "undo", + "cancel" + ] + }, + "ProgressType": { + "type": "string", + "description": "Type of the ProgressType", + "enum": [ + "none", + "initialize", + "download", + "upload", + "recall" + ] + } + }, + "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/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_Create.json index ee40a99d1ced..cd58d3ea2262 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_Create.json @@ -1,52 +1,52 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-10-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-10-01", - "parameters": { - "properties": { - "storageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/tminienv59svc/providers/Microsoft.Storage/storageAccounts/tminienv59storage", - "storageAccountShareName": "cvcloud-afscv-0719-058-a94a1354-a1fd-4e9a-9a50-919fad8c4ba4", - "storageAccountTenantId": "\"72f988bf-86f1-41af-91ab-2d7cd011db47\"", - "friendlyName": "ankushbsubscriptionmgmtmab" - }, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" - } - }, - "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", - "storageAccountShareName": "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" - } + "properties": { + "storageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/tminienv59svc/providers/Microsoft.Storage/storageAccounts/tminienv59storage", + "storageAccountShareName": "cvcloud-afscv-0719-058-a94a1354-a1fd-4e9a-9a50-919fad8c4ba4", + "storageAccountTenantId": "\"72f988bf-86f1-41af-91ab-2d7cd011db47\"", + "friendlyName": "ankushbsubscriptionmgmtmab" + }, + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" + } + }, + "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", + "storageAccountShareName": "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" }, - "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=2018-10-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=2018-10-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "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=2018-10-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=2018-10-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_Delete.json index d8108a1e2628..70b5496af6f3 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_Delete.json @@ -1,30 +1,28 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-10-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2018-10-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=2018-10-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - - } - } -} \ No newline at end of file + "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=2018-10-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=2018-10-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/2018-10-01/examples/CloudEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_Get.json index e9c6a0210475..66b25efbdb43 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_Get.json @@ -1,33 +1,33 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-10-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": "", - "storageAccountShareName": "", - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-10-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": "", + "storageAccountShareName": "", + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_ListBySyncGroup.json index 97e59243a4a3..be99dd1118d8 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_ListBySyncGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_ListBySyncGroup.json @@ -1,34 +1,36 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-10-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": "", + "storageAccountShareName": "", + "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" }, - "body": { - "value": [{ - "name": "CEP_Restore_08-08_Test112", - "properties": { - "provisioningState": "Succeeded", - "storageAccountResourceId": "", - "storageAccountShareName": "", - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_PostBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_PostBackup.json index f426b8a091eb..d168699bd921 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_PostBackup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_PostBackup.json @@ -1,34 +1,34 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "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": "2018-10-01" + "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" - }, - "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=2018-10-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" - } + "api-version": "2018-10-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=2018-10-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/2018-10-01/examples/CloudEndpoints_PostRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_PostRestore.json index 301f8b4c4626..c7e21dd7a377 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_PostRestore.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_PostRestore.json @@ -1,48 +1,49 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "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 - }] + "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 }, - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } + { + "path": "MyDir", + "isdir": true + }, + { + "path": "MyDir/SubDir", + "isdir": false }, - "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=2018-10-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" - } + { + "path": "MyDir/SubDir/File1.pdf", + "isdir": false } + ] + }, + "api-version": "2018-10-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=2018-10-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/2018-10-01/examples/CloudEndpoints_PreBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_PreBackup.json index 91c96e444650..335a18d93d6e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_PreBackup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_PreBackup.json @@ -1,29 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "api-version": "2018-10-01", - "parameters" : { - "azureFileShare": "https://sampleserver.file.core.test-cint.azure-test.net/sampleFileShare" + "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" + } }, - "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=2018-10-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" - } - } + "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=2018-10-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/2018-10-01/examples/CloudEndpoints_PreRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_PreRestore.json index c9e86428f4db..d450193c3b47 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_PreRestore.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_PreRestore.json @@ -1,46 +1,47 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-10-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-10-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" - } + "azureFileShareUri": "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare", + "restoreFileSpec": [ + { + "path": "text1.txt", + "isdir": false + }, + { + "path": "MyDir", + "isdir": true }, - "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=2018-10-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" - } + { + "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=2018-10-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/2018-10-01/examples/CloudEndpoints_RestoreHeatbeat.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_RestoreHeatbeat.json index ed0fa8ad8438..fefc95d617db 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_RestoreHeatbeat.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/CloudEndpoints_RestoreHeatbeat.json @@ -1,19 +1,18 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - }, - "body": "" - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Operations_List.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Operations_List.json index 1cd542994397..b1fddbdce161 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Operations_List.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Operations_List.json @@ -1,193 +1,214 @@ { - "parameters": { - "api-version": "2018-10-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": "" - } - } + "parameters": { + "api-version": "2018-10-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 + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_Create.json index 2f6dd2b5a4d5..edcf982b449f 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_Create.json @@ -1,62 +1,62 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", - "parameters": { - "name": "SampleServer-prod3.redmond.corp.microsoft.com", - "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\"", - "serverManagementErrorCode": 0, - "serverOSVersion": "10.0.14393.0", - "agentVersion": "1.0.277.0" - }, - "type": "Microsoft.StorageSync/storageSyncServices/registeredServers" - }, - "api-version": "2018-10-01" + "name": "SampleServer-prod3.redmond.corp.microsoft.com", + "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\"", + "serverManagementErrorCode": 0, + "serverOSVersion": "10.0.14393.0", + "agentVersion": "1.0.277.0" + }, + "type": "Microsoft.StorageSync/storageSyncServices/registeredServers" }, - "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/\"", - "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=2018-10-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=2018-10-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } + "api-version": "2018-10-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/\"", + "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=2018-10-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=2018-10-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_Delete.json index 2aa6677150ca..a601f447a606 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_Delete.json @@ -1,28 +1,27 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "41166691-ab03-43e9-ab3e-0330eda162ac", - "api-version": "2018-10-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "41166691-ab03-43e9-ab3e-0330eda162ac", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2018-10-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=2018-10-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - } - } -} \ No newline at end of file + "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=2018-10-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=2018-10-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/2018-10-01/examples/RegisteredServers_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_Get.json index c10b6ac63643..a06934122f74 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_Get.json @@ -1,41 +1,41 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "080d4133-bdb5-40a0-96a0-71a6057bfe9a", - "api-version": "2018-10-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/\"", - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "080d4133-bdb5-40a0-96a0-71a6057bfe9a", + "api-version": "2018-10-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/\"", + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_ListByStorageSyncService.json index 4513ae03609d..091aced1639e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_ListByStorageSyncService.json @@ -1,42 +1,44 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-10-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/\"", + "discoveryEndpointUri": "\"https://kailanitest99.one.microsoft.com:443\"", + "resourceLocation": "westus", + "serviceLocation": "westus" }, - "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/\"", - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_TriggerRollover.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_TriggerRollover.json index 741873ba1a59..a569e2737176 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_TriggerRollover.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/RegisteredServers_TriggerRollover.json @@ -1,29 +1,29 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "d166ca76-dad2-49df-b409-12345642d730", "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": "2018-10-01" + "serverCertificate": "\"MIIDFjCCAf6gAwIBAgIQQS+DS8uhc4VNzUkTw7wbRjANBgkqhkiG9w0BAQ0FADAzMTEwLwYDVQQDEyhhbmt1c2hiLXByb2QzLnJlZG1vbmQuY29ycC5taWNyb3NvZnQuY29tMB4XDTE3MDgwMzE3MDQyNFoXDTE4MDgwNDE3MDQyNFowMzExMC8GA1UEAxMoYW5rdXNoYi1wcm9kMy5yZWRtb25kLmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDRvV4gmsIy6jGDPiHsXmvgVP749NNP7DopdlbHaNhjFmYINHl0uWylyaZmgJrROt2mnxN/zEyJtGnqYHlzUr4xvGq/qV5pqgdB9tag/sw9i22gfe9PRZ0FmSOZnXMbLYgLiDFqLtut5gHcOuWMj03YnkfoBEKlFBxWbagvW2yxz/Sxi9OVSJOKCaXra0RpcIHrO/KFl6ho2eE1/7Ykmfa8hZvSdoPd5gHdLiQcMB/pxq+mWp1fI6c8vFZoDu7Atn+NXTzYPKUxKzaisF12TsaKpohUsJpbB3Wocb0F5frn614D2pg14ERB5otjAMWw1m65csQWPI6dP8KIYe0+QPkCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBAA4RhVIBkw34M1RwakJgHvtjsOFxF1tVQA941NtLokx1l2Z8+GFQkcG4xpZSt+UN6wLerdCbnNhtkCErWUDeaT0jxk4g71Ofex7iM04crT4iHJr8mi96/XnhnkTUs+GDk12VgdeeNEczMZz+8Mxw9dJ5NCnYgTwO0SzGlclRsDvjzkLo8rh2ZG6n/jKrEyNXXo+hOqhupij0QbRP2Tvexdfw201kgN1jdZify8XzJ8Oi0bTS0KpJf2pNPOlooK2bjMUei9ANtEdXwwfVZGWvVh6tJjdv6k14wWWJ1L7zhA1IIVb1J+sQUzJji5iX0DrezjTz1Fg+gAzITaA/WsuujlM=\"" }, - "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=2018-10-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=2018-10-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "api-version": "2018-10-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=2018-10-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=2018-10-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Create.json index 3c873c5a91e1..77f73d17f004 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Create.json @@ -1,60 +1,60 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", "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" - }, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - }, - "api-version": "2018-10-01" + "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" + }, + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" }, - "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" - }, - "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" - } + "api-version": "2018-10-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" }, - "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=2018-10-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=2018-10-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "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=2018-10-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=2018-10-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/2018-10-01/examples/ServerEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Delete.json index e98d72d2f7f4..4b5f7a2b5280 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Delete.json @@ -1,27 +1,27 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2018-10-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2018-10-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=2018-10-01", - "Retry-After": "10", - "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=2018-10-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=2018-10-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Get.json index 1f4d3fcd3c08..b2df94b7449a 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Get.json @@ -1,58 +1,58 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2018-10-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": { + "downloadHealth": "Healthy", + "uploadHealth": "Error", + "combinedHealth": "Error", + "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", + "uploadStatus": { + "lastSyncResult": -2134351810, + "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", + "lastSyncSuccessTimestamp": null, + "lastSyncPerItemErrorCount": 69 }, - "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": { - "downloadHealth": "Healthy", - "uploadHealth": "Error", - "combinedHealth": "Error", - "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", - "uploadStatus": { - "lastSyncResult": -2134351810, - "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", - "lastSyncSuccessTimestamp": null, - "lastSyncPerItemErrorCount": 69 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null, - "offlineDataTransferStatus": "NotRunning" - }, - "offlineDataTransfer": "on", - "offlineDataTransferStorageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/myRG/providers/Microsoft.Storage/storageAccounts/mysa", - "offlineDataTransferStorageAccountTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "offlineDataTransferShareName": "myfileshare" - }, - "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" - } - } + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 + }, + "currentProgress": null, + "offlineDataTransferStatus": "NotRunning" + }, + "offlineDataTransfer": "on", + "offlineDataTransferStorageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/myRG/providers/Microsoft.Storage/storageAccounts/mysa", + "offlineDataTransferStorageAccountTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "offlineDataTransferShareName": "myfileshare" + }, + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_ListBySyncGroup.json index 82ead36534fb..a014adb21b1d 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_ListBySyncGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_ListBySyncGroup.json @@ -1,95 +1,98 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-10-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", + "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", + "uploadStatus": { + "lastSyncResult": -2134351810, + "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", + "lastSyncSuccessTimestamp": null, + "lastSyncPerItemErrorCount": 69 + }, + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 + }, + "currentProgress": null, + "offlineDataTransferStatus": "NotRunning" + }, + "offlineDataTransfer": "on", + "offlineDataTransferStorageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/myRG/providers/Microsoft.Storage/storageAccounts/mysa", + "offlineDataTransferStorageAccountTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "offlineDataTransferShareName": "myfileshare" }, - "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", - "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", - "uploadStatus": { - "lastSyncResult": -2134351810, - "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", - "lastSyncSuccessTimestamp": null, - "lastSyncPerItemErrorCount": 69 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null, - "offlineDataTransferStatus": "NotRunning" - }, - "offlineDataTransfer": "on", - "offlineDataTransferStorageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/myRG/providers/Microsoft.Storage/storageAccounts/mysa", - "offlineDataTransferStorageAccountTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "offlineDataTransferShareName": "myfileshare" - }, - "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, - "syncStatus": { - "downloadHealth": "Healthy", - "uploadHealth": "Healthy", - "combinedHealth": "Healthy", - "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 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null, - "offlineDataTransferStatus": "NotRunning" - }, - "offlineDataTransfer": "off" - }, - "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" - }] - } - } + "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, + "syncStatus": { + "downloadHealth": "Healthy", + "uploadHealth": "Healthy", + "combinedHealth": "Healthy", + "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 + }, + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 + }, + "currentProgress": null, + "offlineDataTransferStatus": "NotRunning" + }, + "offlineDataTransfer": "off" + }, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Recall.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Recall.json index 822648c210e1..25dc953d12a0 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Recall.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Recall.json @@ -1,31 +1,31 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2018-10-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2018-10-01", - "parameters": { - "pattern": "", - "recallPath": "" - } + "pattern": "", + "recallPath": "" + } + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2018-10-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=2018-10-01", - "Retry-After": "10", - "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=2018-10-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=2018-10-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Update.json index 191dc27c285e..99b9a73eb539 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Update.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/ServerEndpoints_Update.json @@ -1,76 +1,76 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", "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" - } - }, - "api-version": "2018-10-01" + "properties": { + "cloudTiering": "off", + "volumeFreeSpacePercent": 100, + "tierFilesOlderThanDays": 0, + "offlineDataTransfer": "off" + } }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "api-version": "2018-10-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", + "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", + "uploadStatus": { + "lastSyncResult": -2134351810, + "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", + "lastSyncSuccessTimestamp": null, + "lastSyncPerItemErrorCount": 69 + }, + "downloadStatus": { + "lastSyncResult": 0, + "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", + "lastSyncPerItemErrorCount": 0 }, - "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", - "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z", - "uploadStatus": { - "lastSyncResult": -2134351810, - "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z", - "lastSyncSuccessTimestamp": null, - "lastSyncPerItemErrorCount": 69 - }, - "downloadStatus": { - "lastSyncResult": 0, - "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z", - "lastSyncPerItemErrorCount": 0 - }, - "currentProgress": null, - "offlineDataTransferStatus": "NotRunning" - }, - "offlineDataTransfer": "off", - "offlineDataTransferStorageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/myRG/providers/Microsoft.Storage/storageAccounts/mysa", - "offlineDataTransferStorageAccountTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "offlineDataTransferShareName": "myfileshare" - }, - "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" - } + "currentProgress": null, + "offlineDataTransferStatus": "NotRunning" + }, + "offlineDataTransfer": "off", + "offlineDataTransferStorageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/myRG/providers/Microsoft.Storage/storageAccounts/mysa", + "offlineDataTransferStorageAccountTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "offlineDataTransferShareName": "myfileshare" }, - "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=2018-10-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=2018-10-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "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=2018-10-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=2018-10-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/2018-10-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json index 4a6791d4eb02..f0788db8f892 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json @@ -1,20 +1,20 @@ { + "parameters": { + "api-version": "2018-10-01", + "subscriptionId": "5c6bc8e1-1eaf-4192-94d8-58ce463ac86c", + "locationName": "westus", "parameters": { - "api-version": "2018-10-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." - } - } + "name": "newstoragesyncservicename", + "type": "Microsoft.StorageSync/storageSyncServices" } -} \ No newline at end of file + }, + "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/2018-10-01/examples/StorageSyncServiceCheckNameAvailability_Available.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServiceCheckNameAvailability_Available.json index ebbb297ec612..be52b6cd7a73 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServiceCheckNameAvailability_Available.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServiceCheckNameAvailability_Available.json @@ -1,18 +1,18 @@ { + "parameters": { + "api-version": "2018-10-01", + "subscriptionId": "5c6bc8e1-1eaf-4192-94d8-58ce463ac86c", + "locationName": "westus", "parameters": { - "api-version": "2018-10-01", - "subscriptionId": "5c6bc8e1-1eaf-4192-94d8-58ce463ac86c", - "locationName": "westus", - "parameters": { - "name": "newstoragesyncservicename", - "type": "Microsoft.StorageSync/storageSyncServices" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true - } - } + "name": "newstoragesyncservicename", + "type": "Microsoft.StorageSync/storageSyncServices" } -} \ No newline at end of file + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Create.json index 7e1a3d40a951..df5e0fdca142 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Create.json @@ -1,25 +1,23 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "parameters": { - "location": "WestUS", - "tags": {}, - "properties": {} - }, - "api-version": "2018-10-01" + "location": "WestUS", + "tags": {} }, - "responses": { - "200": { - "body": { - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": {}, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "name": "SampleStorageSyncService_1", + "location": "WestUS", + "tags": {}, + "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/2018-10-01/examples/StorageSyncServices_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Delete.json index 842ca3022ae4..2c75c0ec1597 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Delete.json @@ -1,14 +1,12 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - }, - "204": { - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-10-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Get.json index ec7ad30699f4..b61c162863a0 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Get.json @@ -1,28 +1,28 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-10-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, - "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\"" - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-10-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, + "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\"" + }, + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", + "type": "Microsoft.StorageSync/storageSyncServices" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_ListByResourceGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_ListByResourceGroup.json index c8a4eed062ac..4b94adf9d5f8 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_ListByResourceGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_ListByResourceGroup.json @@ -1,48 +1,52 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "api-version": "2018-10-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, + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"" }, - "body": { - "value": [{ - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": { - "storageSyncServiceStatus": 0, - "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, - "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, - "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" - }] - } - } + "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, + "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, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_ListBySubscription.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_ListBySubscription.json index 90a7c1889ad4..2994f67fc506 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_ListBySubscription.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_ListBySubscription.json @@ -1,47 +1,51 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "api-version": "2018-10-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, + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"" }, - "body": { - "value": [{ - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": { - "storageSyncServiceStatus": 0, - "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, - "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, - "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" - }] - } - } + "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, + "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, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Update.json index c87a5bdb26b3..eaa9bdcac536 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Update.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/StorageSyncServices_Update.json @@ -1,30 +1,28 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-10-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-10-01", - "parameters": { - "tags": { - "Environment": "Test", - "Dept": "IT" - }, - "properties": {} - } - }, - "responses": { - "200": { - "body": { - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": { - "Environment": "Test", - "Dept": "IT" - }, - "properties": {}, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "tags": { + "Environment": "Test", + "Dept": "IT" + } } + }, + "responses": { + "200": { + "body": { + "name": "SampleStorageSyncService_1", + "location": "WestUS", + "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" + } + } + } } diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_Create.json index 6ed4695412b1..65325e5cf1bb 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_Create.json @@ -1,25 +1,24 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-10-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-10-01", - "parameters": { - "properties": {}, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups" - } - }, - "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" - } - } + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups" } + }, + "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/2018-10-01/examples/SyncGroups_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_Delete.json index e38d69d301dd..32e0b2767a22 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_Delete.json @@ -1,19 +1,18 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-10-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - } - } -} \ No newline at end of file + "204": {} + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_Get.json index 88e3f9357511..6223843c2706 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_Get.json @@ -1,26 +1,26 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2018-10-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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2018-10-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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_ListByStorageSyncService.json index d16112052d9c..85b2b278ee48 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/SyncGroups_ListByStorageSyncService.json @@ -1,27 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-10-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" }, - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Workflows_Abort.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Workflows_Abort.json index 2325f07cd2cf..57e3d7fcba72 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Workflows_Abort.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Workflows_Abort.json @@ -1,17 +1,17 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "workflowId": "7ffd50b3-5574-478d-9ff2-9371bc42ce68", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "workflowId": "7ffd50b3-5574-478d-9ff2-9371bc42ce68", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Workflows_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Workflows_Get.json index d58e5a85339d..6bdb4bc88634 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Workflows_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Workflows_Get.json @@ -1,29 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75", - "api-version": "2018-10-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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75", + "api-version": "2018-10-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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Workflows_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Workflows_ListByStorageSyncService.json index e31db2d79c0d..d5997551cc37 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Workflows_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/examples/Workflows_ListByStorageSyncService.json @@ -1,30 +1,32 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2018-10-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2018-10-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}]" }, - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/storagesync.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/storagesync.json index 24d14b9204f9..114a64c8a422 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/storagesync.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2018-10-01/storagesync.json @@ -1,3583 +1,3826 @@ { - "swagger": "2.0", - "info": { - "title": "Microsoft Storage Sync", - "description": "Microsoft Storage Sync Service API", - "version": "2018-10-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" - } - }, - "default": { - "description": "Error message indicating why the operation failed.", - "schema": { - "$ref": "#/definitions/StorageSyncError" - } - } - } + "swagger": "2.0", + "info": { + "title": "Microsoft Storage Sync", + "description": "Microsoft Storage Sync Service API", + "version": "2018-10-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" }, - "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" - } - } - } + "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" }, - "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" - } - } - }, - "default": { - "description": "Error message indicating why the operation failed.", - "schema": { - "$ref": "#/definitions/StorageSyncError" - } - } - } + "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" + } + }, + "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" + }, + { + "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" }, - "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" - } - } - }, - "204": { - "description": "Storage Sync Service 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": { - "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}/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" - } - } - } + "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" }, - "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" - } - } - } + "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" + } + ], + "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" + } + } + }, + "204": { + "description": "Storage Sync Service 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": { + "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" }, - "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 + "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" }, - "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" - } - } - } + "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" }, - "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}/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 + "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" }, - "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 + "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" }, - "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" - } - } - } + "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" }, - "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" - } - } - } + "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" }, - "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 + "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" }, - "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" - } - } - } - } - } - }, - "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." - } - } - }, - "RecallActionParameters": { - "properties": { - "pattern": { - "type": "string", - "description": "Pattern of the files." - }, - "recallPath": { - "type": "string", - "description": "Recall path." - } + "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" }, - "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": {} + "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}/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" }, - "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" - } + "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" }, - "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." - } + "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" }, - "description": "The parameters used when creating a cloud endpoint." - }, - "CloudEndpointCreateParametersProperties": { - "description": "CloudEndpoint Properties object.", - "properties": { - "storageAccountResourceId": { - "type": "string", - "description": "Storage Account Resource Id" - }, - "storageAccountShareName": { - "type": "string", - "description": "Storage Account Share name" - }, - "storageAccountTenantId": { - "type": "string", - "description": "Storage Account Tenant Id" - } - } - }, - "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." - } + "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" }, - "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" - } - } - }, - "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." - } + "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" }, - "description": "The parameters used when creating a registered server." - }, - "RegisteredServerCreateParametersProperties": { - "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." - } + "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" }, - "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" - } + "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" }, - "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." - } + "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" }, - "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", - "readOnly": true - } - } - }, - "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 storage sync service." - } + "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" }, - "description": "Parameters for updating an Storage sync service." - }, - "StorageSyncServiceUpdateProperties": { - "type": "object", - "description": "Storage Sync Service Update Properties object.", - "properties": {} - }, - "StorageSyncServiceProperties": { - "type": "object", - "description": "Storage Sync Service Properties object.", - "properties": { - "storageSyncServiceStatus": { - "type": "integer", - "description": "Storage Sync service status.", - "readOnly": true - }, - "storageSyncServiceUid": { - "type": "string", - "description": "Storage Sync service Uid", - "readOnly": true - } - } - }, - "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" - }, - "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" - }, - "monitoringConfiguration": { - "type": "string", - "description": "Monitoring Configuration" - } - } - }, - "CloudEndpointProperties": { - "type": "object", - "description": "CloudEndpoint Properties object.", - "properties": { - "storageAccountResourceId": { - "type": "string", - "description": "Storage Account Resource Id" - }, - "storageAccountShareName": { - "type": "string", - "description": "Storage Account 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" - } - } - }, - "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" - }, - "lastWorkflowId": { - "type": "string", - "description": "ServerEndpoint lastWorkflowId" - }, - "lastOperationName": { - "type": "string", - "description": "Resource Last Operation Name" - }, - "syncStatus": { - "type": "object", - "$ref": "#/definitions/ServerEndpointHealth", - "description": "Server Endpoint properties." - }, - "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" - } - } - }, - "ServerEndpointHealth": { - "type": "object", - "description": "ServerEndpoint Health object.", - "properties": { - "downloadHealth": { - "$ref": "#/definitions/HealthState", - "description": "Download Health Status." - }, - "uploadHealth": { - "$ref": "#/definitions/HealthState", - "description": "Upload Health Status." - }, - "combinedHealth": { - "$ref": "#/definitions/HealthState", - "description": "Combined Health Status." - }, - "lastUpdatedTimestamp": { - "type" : "string", - "format" : "date-time", - "description": "Last Updated Timestamp" - }, - "uploadStatus": { - "$ref": "#/definitions/SyncSessionStatus", - "description": "Upload Status" - }, - "downloadStatus": { - "$ref": "#/definitions/SyncSessionStatus", - "description": "Download Status" - }, - "currentProgress": { - "$ref": "#/definitions/SyncProgressStatus", - "description": "Current progress" - }, - "offlineDataTransferStatus": { - "$ref": "#/definitions/OfflineDataTransferState", - "description": "Offline Data Transfer State" - } - } - }, - "SyncSessionStatus": { - "type": "object", - "description": "Sync Session status object.", - "properties": { - "lastSyncResult": { - "type": "integer", - "description": "Last sync status" - }, - "lastSyncTimestamp": { - "type" : "string", - "format" : "date-time", - "description": "Last sync timestamp" - }, - "lastSyncSuccessTimestamp": { - "type" : "string", - "format" : "date-time", - "description": "Last sync success timestamp" - }, - "lastSyncPerItemErrorCount": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647, - "description": "Last sync per item error count." - } - } - }, - "SyncProgressStatus": { - "type": "object", - "description": "Sync Session status object.", - "properties": { - "progressTimestamp": { - "type" : "string", - "format" : "date-time", - "description": "Progress timestamp" - }, - "syncDirection": { - "$ref": "#/definitions/ProgressType", - "description": "Sync direction." - }, - "perItemErrorCount": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647, - "description": "Per item error count" - }, - "appliedItemCount": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647, - "description": "Applied item count." - }, - "totalItemCount": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647, - "description": "Total item count" - }, - "appliedBytes": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647, - "description": "Applied bytes" - }, - "totalBytes": { - "type": "integer", - "minimum": 0, - "maximum": 2147483647, - "description": "Total bytes" - } - } - }, - "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" - ] - }, - "HealthState": { - "type": "string", - "description": "Type of the Health state", - "enum": [ - "Healthy", - "Error", - "SyncBlockedForRestore", - "SyncBlockedForChangeDetectionPostRestore", - "NoActivity" - ] - }, - "OfflineDataTransferState": { - "type": "string", - "description": "Type of the Health state", - "enum": [ - "InProgress", - "Stopping", - "NotRunning", - "Complete" - ] - }, - "WorkflowStatus": { - "type": "string", - "description": "Type of the Workflow Status", - "enum": [ - "active", - "expired", - "succeeded", - "aborted", - "failed" - ] - }, - "OperationDirection": { - "type": "string", - "description": "Type of the Operation Direction", - "enum": [ - "do", - "undo", - "cancel" - ] - }, - "ProgressType": { - "type": "string", - "description": "Type of the ProgressType", - "enum": [ - "none", - "initialize", - "download", - "upload", - "recall" - ] - } - }, - "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" - ] - }] -} \ No newline at end of file + "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" + } + } + } + } + } + }, + "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." + } + } + }, + "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": {} + }, + "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." + }, + "CloudEndpointCreateParametersProperties": { + "description": "CloudEndpoint Properties object.", + "properties": { + "storageAccountResourceId": { + "type": "string", + "description": "Storage Account Resource Id" + }, + "storageAccountShareName": { + "type": "string", + "description": "Storage Account Share name" + }, + "storageAccountTenantId": { + "type": "string", + "description": "Storage Account Tenant Id" + } + } + }, + "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" + } + } + }, + "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": { + "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", + "readOnly": true + } + } + }, + "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 storage sync service." + } + }, + "description": "Parameters for updating an Storage sync service." + }, + "StorageSyncServiceUpdateProperties": { + "type": "object", + "description": "Storage Sync Service Update Properties object.", + "properties": {} + }, + "StorageSyncServiceProperties": { + "type": "object", + "description": "Storage Sync Service Properties object.", + "properties": { + "storageSyncServiceStatus": { + "type": "integer", + "description": "Storage Sync service status.", + "readOnly": true + }, + "storageSyncServiceUid": { + "type": "string", + "description": "Storage Sync service Uid", + "readOnly": true + } + } + }, + "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" + }, + "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" + }, + "monitoringConfiguration": { + "type": "string", + "description": "Monitoring Configuration" + } + } + }, + "CloudEndpointProperties": { + "type": "object", + "description": "CloudEndpoint Properties object.", + "properties": { + "storageAccountResourceId": { + "type": "string", + "description": "Storage Account Resource Id" + }, + "storageAccountShareName": { + "type": "string", + "description": "Storage Account 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" + } + } + }, + "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" + }, + "lastWorkflowId": { + "type": "string", + "description": "ServerEndpoint lastWorkflowId" + }, + "lastOperationName": { + "type": "string", + "description": "Resource Last Operation Name" + }, + "syncStatus": { + "type": "object", + "$ref": "#/definitions/ServerEndpointHealth", + "description": "Server Endpoint properties." + }, + "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" + } + } + }, + "ServerEndpointHealth": { + "type": "object", + "description": "ServerEndpoint Health object.", + "properties": { + "downloadHealth": { + "$ref": "#/definitions/HealthState", + "description": "Download Health Status." + }, + "uploadHealth": { + "$ref": "#/definitions/HealthState", + "description": "Upload Health Status." + }, + "combinedHealth": { + "$ref": "#/definitions/HealthState", + "description": "Combined Health Status." + }, + "lastUpdatedTimestamp": { + "type": "string", + "format": "date-time", + "description": "Last Updated Timestamp" + }, + "uploadStatus": { + "$ref": "#/definitions/SyncSessionStatus", + "description": "Upload Status" + }, + "downloadStatus": { + "$ref": "#/definitions/SyncSessionStatus", + "description": "Download Status" + }, + "currentProgress": { + "$ref": "#/definitions/SyncProgressStatus", + "description": "Current progress" + }, + "offlineDataTransferStatus": { + "$ref": "#/definitions/OfflineDataTransferState", + "description": "Offline Data Transfer State" + } + } + }, + "SyncSessionStatus": { + "type": "object", + "description": "Sync Session status object.", + "properties": { + "lastSyncResult": { + "type": "integer", + "description": "Last sync status" + }, + "lastSyncTimestamp": { + "type": "string", + "format": "date-time", + "description": "Last sync timestamp" + }, + "lastSyncSuccessTimestamp": { + "type": "string", + "format": "date-time", + "description": "Last sync success timestamp" + }, + "lastSyncPerItemErrorCount": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Last sync per item error count." + } + } + }, + "SyncProgressStatus": { + "type": "object", + "description": "Sync Session status object.", + "properties": { + "progressTimestamp": { + "type": "string", + "format": "date-time", + "description": "Progress timestamp" + }, + "syncDirection": { + "$ref": "#/definitions/ProgressType", + "description": "Sync direction." + }, + "perItemErrorCount": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Per item error count" + }, + "appliedItemCount": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Applied item count." + }, + "totalItemCount": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Total item count" + }, + "appliedBytes": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Applied bytes" + }, + "totalBytes": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Total bytes" + } + } + }, + "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" + ] + }, + "HealthState": { + "type": "string", + "description": "Type of the Health state", + "enum": [ + "Healthy", + "Error", + "SyncBlockedForRestore", + "SyncBlockedForChangeDetectionPostRestore", + "NoActivity" + ] + }, + "OfflineDataTransferState": { + "type": "string", + "description": "Type of the Health state", + "enum": [ + "InProgress", + "Stopping", + "NotRunning", + "Complete" + ] + }, + "WorkflowStatus": { + "type": "string", + "description": "Type of the Workflow Status", + "enum": [ + "active", + "expired", + "succeeded", + "aborted", + "failed" + ] + }, + "OperationDirection": { + "type": "string", + "description": "Type of the Operation Direction", + "enum": [ + "do", + "undo", + "cancel" + ] + }, + "ProgressType": { + "type": "string", + "description": "Type of the ProgressType", + "enum": [ + "none", + "initialize", + "download", + "upload", + "recall" + ] + } + }, + "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/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_Create.json index 1287015d6f8c..63c233d8de3e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_Create.json @@ -1,52 +1,52 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2019-02-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2019-02-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" - }, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" - } - }, - "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" - } + "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" + }, + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" + } + }, + "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" }, - "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=2019-02-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=2019-02-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "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=2019-02-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=2019-02-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_Delete.json index cb1cf933e901..49172b9aea12 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_Delete.json @@ -1,30 +1,28 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2019-02-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2019-02-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2019-02-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=2019-02-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - - } - } -} \ No newline at end of file + "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=2019-02-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=2019-02-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/2019-02-01/examples/CloudEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_Get.json index 807efadf4f0b..9a4e7114dbdd 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_Get.json @@ -1,33 +1,33 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2019-02-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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2019-02-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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_ListBySyncGroup.json index 02f5dd8c79c6..89622a2d76fb 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_ListBySyncGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_ListBySyncGroup.json @@ -1,34 +1,36 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2019-02-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2019-02-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" }, - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_PostBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_PostBackup.json index 06bb9c6cc659..2ae3bb602809 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_PostBackup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_PostBackup.json @@ -1,34 +1,34 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "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": "2019-02-01" + "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" - }, - "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=2019-02-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" - } + "api-version": "2019-02-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=2019-02-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/2019-02-01/examples/CloudEndpoints_PostRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_PostRestore.json index 7700438fd610..a9fd067a6125 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_PostRestore.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_PostRestore.json @@ -1,48 +1,49 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "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 - }] + "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 }, - "api-version": "2019-02-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } + { + "path": "MyDir", + "isdir": true + }, + { + "path": "MyDir/SubDir", + "isdir": false }, - "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=2019-02-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" - } + { + "path": "MyDir/SubDir/File1.pdf", + "isdir": false } + ] + }, + "api-version": "2019-02-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=2019-02-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/2019-02-01/examples/CloudEndpoints_PreBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_PreBackup.json index 7792f69b5a2c..5f99f4fb6eb3 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_PreBackup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_PreBackup.json @@ -1,29 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "api-version": "2019-02-01", - "parameters" : { - "azureFileShare": "https://sampleserver.file.core.test-cint.azure-test.net/sampleFileShare" + "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" + } }, - "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=2019-02-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" - } - } + "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=2019-02-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/2019-02-01/examples/CloudEndpoints_PreRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_PreRestore.json index b9528d41f5a5..c937e39600a1 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_PreRestore.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_PreRestore.json @@ -1,46 +1,47 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2019-02-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2019-02-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" - } + "azureFileShareUri": "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare", + "restoreFileSpec": [ + { + "path": "text1.txt", + "isdir": false + }, + { + "path": "MyDir", + "isdir": true }, - "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=2019-02-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" - } + { + "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=2019-02-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/2019-02-01/examples/CloudEndpoints_RestoreHeatbeat.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_RestoreHeatbeat.json index 212fe63abfad..4ecdb69d88cd 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_RestoreHeatbeat.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/CloudEndpoints_RestoreHeatbeat.json @@ -1,19 +1,18 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2019-02-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - }, - "body": "" - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2019-02-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Operations_List.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Operations_List.json index f599788d3ab8..3658a084b51f 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Operations_List.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Operations_List.json @@ -1,193 +1,214 @@ { - "parameters": { - "api-version": "2019-02-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": "" - } - } + "parameters": { + "api-version": "2019-02-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 + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_Create.json index 196cb4ffd9c3..4026af63f2c7 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_Create.json @@ -1,62 +1,62 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", - "parameters": { - "name": "SampleServer-prod3.redmond.corp.microsoft.com", - "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\"", - "serverManagementErrorCode": 0, - "serverOSVersion": "10.0.14393.0", - "agentVersion": "1.0.277.0" - }, - "type": "Microsoft.StorageSync/storageSyncServices/registeredServers" - }, - "api-version": "2019-02-01" + "name": "SampleServer-prod3.redmond.corp.microsoft.com", + "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\"", + "serverManagementErrorCode": 0, + "serverOSVersion": "10.0.14393.0", + "agentVersion": "1.0.277.0" + }, + "type": "Microsoft.StorageSync/storageSyncServices/registeredServers" }, - "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/\"", - "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=2019-02-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=2019-02-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } + "api-version": "2019-02-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/\"", + "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=2019-02-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=2019-02-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_Delete.json index 5776d027ee3f..724a47f7522e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_Delete.json @@ -1,28 +1,27 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "41166691-ab03-43e9-ab3e-0330eda162ac", - "api-version": "2019-02-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "41166691-ab03-43e9-ab3e-0330eda162ac", + "api-version": "2019-02-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2019-02-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=2019-02-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - } - } -} \ No newline at end of file + "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=2019-02-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=2019-02-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/2019-02-01/examples/RegisteredServers_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_Get.json index 258c8755ea2b..f38b64472ac9 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_Get.json @@ -1,41 +1,41 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "080d4133-bdb5-40a0-96a0-71a6057bfe9a", - "api-version": "2019-02-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/\"", - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "080d4133-bdb5-40a0-96a0-71a6057bfe9a", + "api-version": "2019-02-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/\"", + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_ListByStorageSyncService.json index 377bfb3de692..56feba4a0d06 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_ListByStorageSyncService.json @@ -1,42 +1,44 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2019-02-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2019-02-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/\"", + "discoveryEndpointUri": "\"https://kailanitest99.one.microsoft.com:443\"", + "resourceLocation": "westus", + "serviceLocation": "westus" }, - "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/\"", - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_TriggerRollover.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_TriggerRollover.json index 0d20aa0e00e2..54da920119bf 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_TriggerRollover.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/RegisteredServers_TriggerRollover.json @@ -1,29 +1,29 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "d166ca76-dad2-49df-b409-12345642d730", "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": "2019-02-01" + "serverCertificate": "\"MIIDFjCCAf6gAwIBAgIQQS+DS8uhc4VNzUkTw7wbRjANBgkqhkiG9w0BAQ0FADAzMTEwLwYDVQQDEyhhbmt1c2hiLXByb2QzLnJlZG1vbmQuY29ycC5taWNyb3NvZnQuY29tMB4XDTE3MDgwMzE3MDQyNFoXDTE4MDgwNDE3MDQyNFowMzExMC8GA1UEAxMoYW5rdXNoYi1wcm9kMy5yZWRtb25kLmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDRvV4gmsIy6jGDPiHsXmvgVP749NNP7DopdlbHaNhjFmYINHl0uWylyaZmgJrROt2mnxN/zEyJtGnqYHlzUr4xvGq/qV5pqgdB9tag/sw9i22gfe9PRZ0FmSOZnXMbLYgLiDFqLtut5gHcOuWMj03YnkfoBEKlFBxWbagvW2yxz/Sxi9OVSJOKCaXra0RpcIHrO/KFl6ho2eE1/7Ykmfa8hZvSdoPd5gHdLiQcMB/pxq+mWp1fI6c8vFZoDu7Atn+NXTzYPKUxKzaisF12TsaKpohUsJpbB3Wocb0F5frn614D2pg14ERB5otjAMWw1m65csQWPI6dP8KIYe0+QPkCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBAA4RhVIBkw34M1RwakJgHvtjsOFxF1tVQA941NtLokx1l2Z8+GFQkcG4xpZSt+UN6wLerdCbnNhtkCErWUDeaT0jxk4g71Ofex7iM04crT4iHJr8mi96/XnhnkTUs+GDk12VgdeeNEczMZz+8Mxw9dJ5NCnYgTwO0SzGlclRsDvjzkLo8rh2ZG6n/jKrEyNXXo+hOqhupij0QbRP2Tvexdfw201kgN1jdZify8XzJ8Oi0bTS0KpJf2pNPOlooK2bjMUei9ANtEdXwwfVZGWvVh6tJjdv6k14wWWJ1L7zhA1IIVb1J+sQUzJji5iX0DrezjTz1Fg+gAzITaA/WsuujlM=\"" }, - "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=2019-02-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=2019-02-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "api-version": "2019-02-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=2019-02-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=2019-02-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Create.json index 6fd85275d12f..f3b32b66903b 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Create.json @@ -1,60 +1,60 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", "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" - }, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - }, - "api-version": "2019-02-01" + "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" + }, + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" }, - "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" - }, - "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" - } + "api-version": "2019-02-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" }, - "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=2019-02-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=2019-02-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "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=2019-02-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=2019-02-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/2019-02-01/examples/ServerEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Delete.json index 8ef90c939966..ad7820de11a0 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Delete.json @@ -1,27 +1,27 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2019-02-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2019-02-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2019-02-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=2019-02-01", - "Retry-After": "10", - "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=2019-02-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=2019-02-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Get.json index cc3519b73feb..ddf4ebbd0454 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Get.json @@ -1,81 +1,81 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2019-02-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2019-02-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": { + "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 }, - "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": { - "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" - }, - "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" - } - } + "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" + }, + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_ListBySyncGroup.json index 3c50d77e7dce..cf6416a8e31a 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_ListBySyncGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_ListBySyncGroup.json @@ -1,120 +1,123 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2019-02-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2019-02-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" }, - "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" - }, - "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, - "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" - }, - "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" - }] - } - } + "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, + "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" + }, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Recall.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Recall.json index a70ad5b9b038..3bd57b52272b 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Recall.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Recall.json @@ -1,31 +1,31 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2019-02-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2019-02-01", - "parameters": { - "pattern": "", - "recallPath": "" - } + "pattern": "", + "recallPath": "" + } + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2019-02-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=2019-02-01", - "Retry-After": "10", - "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=2019-02-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=2019-02-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Update.json index 7c3393f756ac..7132d087da0f 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Update.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/ServerEndpoints_Update.json @@ -1,85 +1,85 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", "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" - } - }, - "api-version": "2019-02-01" + "properties": { + "cloudTiering": "off", + "volumeFreeSpacePercent": 100, + "tierFilesOlderThanDays": 0, + "offlineDataTransfer": "off" + } }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "api-version": "2019-02-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 }, - "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" - }, - "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" - } + "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" }, - "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=2019-02-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=2019-02-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "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=2019-02-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=2019-02-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/2019-02-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json index 7cf15dcb428c..823c0dbcd714 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json @@ -1,20 +1,20 @@ { + "parameters": { + "api-version": "2019-02-01", + "subscriptionId": "5c6bc8e1-1eaf-4192-94d8-58ce463ac86c", + "locationName": "westus", "parameters": { - "api-version": "2019-02-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." - } - } + "name": "newstoragesyncservicename", + "type": "Microsoft.StorageSync/storageSyncServices" } -} \ No newline at end of file + }, + "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/2019-02-01/examples/StorageSyncServiceCheckNameAvailability_Available.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServiceCheckNameAvailability_Available.json index 234f1df6aaad..0c03c7b76aa1 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServiceCheckNameAvailability_Available.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServiceCheckNameAvailability_Available.json @@ -1,18 +1,18 @@ { + "parameters": { + "api-version": "2019-02-01", + "subscriptionId": "5c6bc8e1-1eaf-4192-94d8-58ce463ac86c", + "locationName": "westus", "parameters": { - "api-version": "2019-02-01", - "subscriptionId": "5c6bc8e1-1eaf-4192-94d8-58ce463ac86c", - "locationName": "westus", - "parameters": { - "name": "newstoragesyncservicename", - "type": "Microsoft.StorageSync/storageSyncServices" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true - } - } + "name": "newstoragesyncservicename", + "type": "Microsoft.StorageSync/storageSyncServices" } -} \ No newline at end of file + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Create.json index 71a5b7e2ad9a..b55b951f274e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Create.json @@ -1,25 +1,23 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "parameters": { - "location": "WestUS", - "tags": {}, - "properties": {} - }, - "api-version": "2019-02-01" + "location": "WestUS", + "tags": {} }, - "responses": { - "200": { - "body": { - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": {}, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "api-version": "2019-02-01" + }, + "responses": { + "200": { + "body": { + "name": "SampleStorageSyncService_1", + "location": "WestUS", + "tags": {}, + "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/2019-02-01/examples/StorageSyncServices_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Delete.json index 80648fc47cb5..ae25abfc0a96 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Delete.json @@ -1,14 +1,12 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2019-02-01" - }, - "responses": { - "200": { - }, - "204": { - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2019-02-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Get.json index fd397214a27c..c009eeb01590 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Get.json @@ -1,28 +1,28 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2019-02-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, - "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\"" - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2019-02-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, + "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\"" + }, + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", + "type": "Microsoft.StorageSync/storageSyncServices" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_ListByResourceGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_ListByResourceGroup.json index 8cbd1d4dd661..aed8c0c11f0f 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_ListByResourceGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_ListByResourceGroup.json @@ -1,48 +1,52 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "api-version": "2019-02-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "api-version": "2019-02-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, + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"" }, - "body": { - "value": [{ - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": { - "storageSyncServiceStatus": 0, - "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, - "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, - "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" - }] - } - } + "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, + "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, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_ListBySubscription.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_ListBySubscription.json index e2cac9cbd7d4..c8b15ce024b5 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_ListBySubscription.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_ListBySubscription.json @@ -1,47 +1,51 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "api-version": "2019-02-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "api-version": "2019-02-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, + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"" }, - "body": { - "value": [{ - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": { - "storageSyncServiceStatus": 0, - "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, - "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, - "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" - }] - } - } + "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, + "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, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Update.json index 11b62d0163d5..c77663df5251 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Update.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/StorageSyncServices_Update.json @@ -1,30 +1,28 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2019-02-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2019-02-01", - "parameters": { - "tags": { - "Environment": "Test", - "Dept": "IT" - }, - "properties": {} - } - }, - "responses": { - "200": { - "body": { - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": { - "Environment": "Test", - "Dept": "IT" - }, - "properties": {}, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "tags": { + "Environment": "Test", + "Dept": "IT" + } } + }, + "responses": { + "200": { + "body": { + "name": "SampleStorageSyncService_1", + "location": "WestUS", + "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" + } + } + } } diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_Create.json index 85e03c934180..6ab1ebe8a05f 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_Create.json @@ -1,25 +1,24 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2019-02-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2019-02-01", - "parameters": { - "properties": {}, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups" - } - }, - "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" - } - } + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups" } + }, + "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/2019-02-01/examples/SyncGroups_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_Delete.json index a607bde34b78..206726acc3ad 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_Delete.json @@ -1,19 +1,18 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2019-02-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2019-02-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - } - } -} \ No newline at end of file + "204": {} + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_Get.json index 99bf05d3206a..f985b5737505 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_Get.json @@ -1,26 +1,26 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2019-02-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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2019-02-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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_ListByStorageSyncService.json index 929f8281a6ad..eb6ee35c1e57 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/SyncGroups_ListByStorageSyncService.json @@ -1,27 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2019-02-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2019-02-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" }, - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Workflows_Abort.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Workflows_Abort.json index 385fea15878c..92198214fca2 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Workflows_Abort.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Workflows_Abort.json @@ -1,17 +1,17 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "workflowId": "7ffd50b3-5574-478d-9ff2-9371bc42ce68", - "api-version": "2019-02-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "workflowId": "7ffd50b3-5574-478d-9ff2-9371bc42ce68", + "api-version": "2019-02-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Workflows_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Workflows_Get.json index 895b9824bdb5..638345b052e9 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Workflows_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Workflows_Get.json @@ -1,29 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75", - "api-version": "2019-02-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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75", + "api-version": "2019-02-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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Workflows_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Workflows_ListByStorageSyncService.json index 81b504a64ff0..15c569a9cf3d 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Workflows_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/examples/Workflows_ListByStorageSyncService.json @@ -1,30 +1,32 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2019-02-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2019-02-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}]" }, - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/storagesync.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/storagesync.json index 3f3f71d5b716..f79519bcbe2f 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/storagesync.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-02-01/storagesync.json @@ -1,3665 +1,3908 @@ { - "swagger": "2.0", - "info": { - "title": "Microsoft Storage Sync", - "description": "Microsoft Storage Sync Service API", - "version": "2019-02-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" - } - }, - "default": { - "description": "Error message indicating why the operation failed.", - "schema": { - "$ref": "#/definitions/StorageSyncError" - } - } - } + "swagger": "2.0", + "info": { + "title": "Microsoft Storage Sync", + "description": "Microsoft Storage Sync Service API", + "version": "2019-02-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" }, - "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" - } - } - } + "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" }, - "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" - } - } - }, - "default": { - "description": "Error message indicating why the operation failed.", - "schema": { - "$ref": "#/definitions/StorageSyncError" - } - } - } + "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" + } + }, + "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" + }, + { + "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" }, - "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" - } - } - }, - "204": { - "description": "Storage Sync Service 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": { - "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}/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" - } - } - } + "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" }, - "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" - } - } - } + "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" + } + ], + "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" + } + } + }, + "204": { + "description": "Storage Sync Service 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": { + "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" }, - "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 + "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" }, - "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" - } - } - } + "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" }, - "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}/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 + "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" }, - "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 + "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" }, - "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" - } - } - } + "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" }, - "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" - } - } - } + "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" }, - "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 + "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" }, - "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" - } - } - } - } - } - }, - "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." - } - } - }, - "RecallActionParameters": { - "properties": { - "pattern": { - "type": "string", - "description": "Pattern of the files." - }, - "recallPath": { - "type": "string", - "description": "Recall path." - } + "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" }, - "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": {} + "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}/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" }, - "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" - } + "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" }, - "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." - } + "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" }, - "description": "The parameters used when creating a cloud endpoint." - }, - "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" - } - } - }, - "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." - } + "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" }, - "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" - } - } - }, - "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." - } + "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" }, - "description": "The parameters used when creating a registered server." - }, - "RegisteredServerCreateParametersProperties": { - "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." - } + "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" }, - "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" - } + "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" }, - "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." - } + "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" }, - "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", - "readOnly": true - } - } - }, - "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 storage sync service." - } + "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" }, - "description": "Parameters for updating an Storage sync service." - }, - "StorageSyncServiceUpdateProperties": { - "type": "object", - "description": "Storage Sync Service Update Properties object.", - "properties": {} - }, - "StorageSyncServiceProperties": { - "type": "object", - "description": "Storage Sync Service Properties object.", - "properties": { - "storageSyncServiceStatus": { - "type": "integer", - "description": "Storage Sync service status.", - "readOnly": true - }, - "storageSyncServiceUid": { - "type": "string", - "description": "Storage Sync service Uid", - "readOnly": true - } - } - }, - "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" - }, - "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" - }, - "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" - } - } - }, - "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" - } - } - }, - "ServerEndpointSyncStatus": { - "type": "object", - "description": "Server Endpoint sync status", - "properties": { - "downloadHealth": { - "$ref": "#/definitions/HealthState", - "description": "Download Health Status.", - "readOnly": true - }, - "uploadHealth": { - "$ref": "#/definitions/HealthState", - "description": "Upload Health Status.", - "readOnly": true - }, - "combinedHealth": { - "$ref": "#/definitions/HealthState", - "description": "Combined Health Status.", - "readOnly": true - }, - "syncActivity": { - "$ref": "#/definitions/SyncActivityState", - "description": "Sync activity", - "readOnly": true - }, - "totalPersistentFilesNotSyncingCount": { - "type": "integer", - "format": "int64", - "description": "Total count of persistent files not syncing (combined upload + download). Reserved for future use.", - "readOnly": true - }, - "lastUpdatedTimestamp": { - "type" : "string", - "format" : "date-time", - "description": "Last Updated Timestamp", - "readOnly": true - }, - "uploadStatus": { - "$ref": "#/definitions/SyncSessionStatus", - "description": "Upload Status", - "readOnly": true - }, - "downloadStatus": { - "$ref": "#/definitions/SyncSessionStatus", - "description": "Download Status", - "readOnly": true - }, - "uploadActivity": { - "$ref": "#/definitions/SyncActivityStatus", - "description": "Upload sync activity", - "readOnly": true - }, - "downloadActivity": { - "$ref": "#/definitions/SyncActivityStatus", - "description": "Download sync activity", - "readOnly": true - }, - "offlineDataTransferStatus": { - "$ref": "#/definitions/OfflineDataTransferState", - "description": "Offline Data Transfer State", - "readOnly": true - } - } - }, - "SyncSessionStatus": { - "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", - "description": "Last sync per item error count.", - "readOnly": true - }, - "persistentFilesNotSyncingCount": { - "type": "integer", - "format": "int64", - "description": "Count of persistent files not syncing. Reserved for future use.", - "readOnly": true - }, - "transientFilesNotSyncingCount": { - "type": "integer", - "format": "int64", - "description": "Count of transient files not syncing. Reserved for future use.", - "readOnly": true - }, - "filesNotSyncingErrors": { - "type": "array", - "items": { - "$ref": "#/definitions/FilesNotSyncingError" - }, - "description": "Array of per-item errors coming from the last sync session. Reserved for future use.", - "readOnly": true - } - } - }, - "SyncActivityStatus": { - "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", - "description": "Per item error count", - "readOnly": true - }, - "appliedItemCount": { - "type": "integer", - "format": "int64", - "description": "Applied item count.", - "readOnly": true - }, - "totalItemCount": { - "type": "integer", - "format": "int64", - "description": "Total item count (if available)", - "readOnly": true - }, - "appliedBytes": { - "type": "integer", - "format": "int64", - "description": "Applied bytes", - "readOnly": true - }, - "totalBytes": { - "type": "integer", - "format": "int64", - "description": "Total bytes (if available)", - "readOnly": true - } - } - }, - "FilesNotSyncingError": { - "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", - "description": "Count of persistent files not syncing with the specified error code", - "readOnly": true - }, - "transientCount": { - "type": "integer", - "format": "int64", - "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" - ] - }, - "HealthState": { - "type": "string", - "description": "Type of the Health state", - "enum": [ - "Healthy", - "Error", - "SyncBlockedForRestore", - "SyncBlockedForChangeDetectionPostRestore", - "NoActivity" - ] - }, - "SyncActivityState": { - "type": "string", - "description": "Type of the sync activity state", - "enum": [ - "Upload", - "Download", - "UploadAndDownload" - ] - }, - "OfflineDataTransferState": { - "type": "string", - "description": "Type of the Health state", - "enum": [ - "InProgress", - "Stopping", - "NotRunning", - "Complete" - ] - }, - "WorkflowStatus": { - "type": "string", - "description": "Type of the Workflow Status", - "enum": [ - "active", - "expired", - "succeeded", - "aborted", - "failed" - ] - }, - "OperationDirection": { - "type": "string", - "description": "Type of the Operation Direction", - "enum": [ - "do", - "undo", - "cancel" - ] - }, - "ProgressType": { - "type": "string", - "description": "Type of the ProgressType", - "enum": [ - "none", - "initialize", - "download", - "upload", - "recall" - ] - } - }, - "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" - ] - }] -} \ No newline at end of file + "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" + } + } + } + } + } + }, + "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." + } + } + }, + "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": {} + }, + "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." + }, + "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" + } + } + }, + "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" + } + } + }, + "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": { + "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", + "readOnly": true + } + } + }, + "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 storage sync service." + } + }, + "description": "Parameters for updating an Storage sync service." + }, + "StorageSyncServiceUpdateProperties": { + "type": "object", + "description": "Storage Sync Service Update Properties object.", + "properties": {} + }, + "StorageSyncServiceProperties": { + "type": "object", + "description": "Storage Sync Service Properties object.", + "properties": { + "storageSyncServiceStatus": { + "type": "integer", + "description": "Storage Sync service status.", + "readOnly": true + }, + "storageSyncServiceUid": { + "type": "string", + "description": "Storage Sync service Uid", + "readOnly": true + } + } + }, + "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" + }, + "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" + }, + "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" + } + } + }, + "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" + } + } + }, + "ServerEndpointSyncStatus": { + "type": "object", + "description": "Server Endpoint sync status", + "properties": { + "downloadHealth": { + "$ref": "#/definitions/HealthState", + "description": "Download Health Status.", + "readOnly": true + }, + "uploadHealth": { + "$ref": "#/definitions/HealthState", + "description": "Upload Health Status.", + "readOnly": true + }, + "combinedHealth": { + "$ref": "#/definitions/HealthState", + "description": "Combined Health Status.", + "readOnly": true + }, + "syncActivity": { + "$ref": "#/definitions/SyncActivityState", + "description": "Sync activity", + "readOnly": true + }, + "totalPersistentFilesNotSyncingCount": { + "type": "integer", + "format": "int64", + "description": "Total count of persistent files not syncing (combined upload + download). Reserved for future use.", + "readOnly": true + }, + "lastUpdatedTimestamp": { + "type": "string", + "format": "date-time", + "description": "Last Updated Timestamp", + "readOnly": true + }, + "uploadStatus": { + "$ref": "#/definitions/SyncSessionStatus", + "description": "Upload Status", + "readOnly": true + }, + "downloadStatus": { + "$ref": "#/definitions/SyncSessionStatus", + "description": "Download Status", + "readOnly": true + }, + "uploadActivity": { + "$ref": "#/definitions/SyncActivityStatus", + "description": "Upload sync activity", + "readOnly": true + }, + "downloadActivity": { + "$ref": "#/definitions/SyncActivityStatus", + "description": "Download sync activity", + "readOnly": true + }, + "offlineDataTransferStatus": { + "$ref": "#/definitions/OfflineDataTransferState", + "description": "Offline Data Transfer State", + "readOnly": true + } + } + }, + "SyncSessionStatus": { + "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", + "description": "Last sync per item error count.", + "readOnly": true + }, + "persistentFilesNotSyncingCount": { + "type": "integer", + "format": "int64", + "description": "Count of persistent files not syncing. Reserved for future use.", + "readOnly": true + }, + "transientFilesNotSyncingCount": { + "type": "integer", + "format": "int64", + "description": "Count of transient files not syncing. Reserved for future use.", + "readOnly": true + }, + "filesNotSyncingErrors": { + "type": "array", + "items": { + "$ref": "#/definitions/FilesNotSyncingError" + }, + "description": "Array of per-item errors coming from the last sync session. Reserved for future use.", + "readOnly": true + } + } + }, + "SyncActivityStatus": { + "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", + "description": "Per item error count", + "readOnly": true + }, + "appliedItemCount": { + "type": "integer", + "format": "int64", + "description": "Applied item count.", + "readOnly": true + }, + "totalItemCount": { + "type": "integer", + "format": "int64", + "description": "Total item count (if available)", + "readOnly": true + }, + "appliedBytes": { + "type": "integer", + "format": "int64", + "description": "Applied bytes", + "readOnly": true + }, + "totalBytes": { + "type": "integer", + "format": "int64", + "description": "Total bytes (if available)", + "readOnly": true + } + } + }, + "FilesNotSyncingError": { + "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", + "description": "Count of persistent files not syncing with the specified error code", + "readOnly": true + }, + "transientCount": { + "type": "integer", + "format": "int64", + "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" + ] + }, + "HealthState": { + "type": "string", + "description": "Type of the Health state", + "enum": [ + "Healthy", + "Error", + "SyncBlockedForRestore", + "SyncBlockedForChangeDetectionPostRestore", + "NoActivity" + ] + }, + "SyncActivityState": { + "type": "string", + "description": "Type of the sync activity state", + "enum": [ + "Upload", + "Download", + "UploadAndDownload" + ] + }, + "OfflineDataTransferState": { + "type": "string", + "description": "Type of the Health state", + "enum": [ + "InProgress", + "Stopping", + "NotRunning", + "Complete" + ] + }, + "WorkflowStatus": { + "type": "string", + "description": "Type of the Workflow Status", + "enum": [ + "active", + "expired", + "succeeded", + "aborted", + "failed" + ] + }, + "OperationDirection": { + "type": "string", + "description": "Type of the Operation Direction", + "enum": [ + "do", + "undo", + "cancel" + ] + }, + "ProgressType": { + "type": "string", + "description": "Type of the ProgressType", + "enum": [ + "none", + "initialize", + "download", + "upload", + "recall" + ] + } + }, + "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/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_Create.json index 444f6ee5b476..64401be66a5e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_Create.json @@ -1,52 +1,52 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2019-03-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2019-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" - }, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" - } - }, - "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" - } + "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" + }, + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints" + } + }, + "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" }, - "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=2019-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=2019-03-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "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=2019-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=2019-03-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_Delete.json index e5a3ae565b9e..63cdc3af666d 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_Delete.json @@ -1,30 +1,28 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2019-03-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2019-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=2019-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": { - - } - } -} \ No newline at end of file + "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=2019-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=2019-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/2019-03-01/examples/CloudEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_Get.json index 8f0164dc0038..0a99eb4b90d7 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_Get.json @@ -1,33 +1,33 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2019-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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2019-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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_ListBySyncGroup.json index 3faa7f7d8748..4ae586f43ea3 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_ListBySyncGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_ListBySyncGroup.json @@ -1,34 +1,36 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2019-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" }, - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_PostBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_PostBackup.json index 0178740a938b..cac0869824d8 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_PostBackup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_PostBackup.json @@ -1,34 +1,34 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "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": "2019-03-01" + "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" - }, - "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=2019-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" - } + "api-version": "2019-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=2019-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/2019-03-01/examples/CloudEndpoints_PostRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_PostRestore.json index 2bf9f4591a30..8864542cc705 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_PostRestore.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_PostRestore.json @@ -1,48 +1,49 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "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 - }] + "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 }, - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } + { + "path": "MyDir", + "isdir": true + }, + { + "path": "MyDir/SubDir", + "isdir": false }, - "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=2019-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" - } + { + "path": "MyDir/SubDir/File1.pdf", + "isdir": false } + ] + }, + "api-version": "2019-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=2019-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/2019-03-01/examples/CloudEndpoints_PreBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_PreBackup.json index a77233ac295c..58c600012986 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_PreBackup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_PreBackup.json @@ -1,29 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "api-version": "2019-03-01", - "parameters" : { - "azureFileShare": "https://sampleserver.file.core.test-cint.azure-test.net/sampleFileShare" + "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" + } }, - "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=2019-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" - } - } + "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=2019-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/2019-03-01/examples/CloudEndpoints_PreRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_PreRestore.json index c137b73984b7..4979953efe0c 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_PreRestore.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_PreRestore.json @@ -1,46 +1,47 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2019-03-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2019-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" - } + "azureFileShareUri": "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare", + "restoreFileSpec": [ + { + "path": "text1.txt", + "isdir": false + }, + { + "path": "MyDir", + "isdir": true }, - "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=2019-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" - } + { + "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=2019-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/2019-03-01/examples/CloudEndpoints_RestoreHeatbeat.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_RestoreHeatbeat.json index 944c6e8337fd..98ecdba29f95 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_RestoreHeatbeat.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_RestoreHeatbeat.json @@ -1,19 +1,18 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "cloudEndpointName": "SampleCloudEndpoint_1", - "api-version": "2019-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": "" - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_TriggerChangeDetection.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_TriggerChangeDetection.json index 4cfbbd70877c..b11499da6fc6 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_TriggerChangeDetection.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/CloudEndpoints_TriggerChangeDetection.json @@ -1,30 +1,30 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "cloudEndpointName": "SampleCloudEndpoint_1", "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": "2019-03-01" + "directoryPath": "NewDirectory", + "changeDetectionMode": "Recursive" }, - "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=2019-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" - } - } + "api-version": "2019-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=2019-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/2019-03-01/examples/OperationStatus_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/OperationStatus_Get.json index 4c456749470c..0e772ccbfb96 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/OperationStatus_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/OperationStatus_Get.json @@ -1,25 +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": "2019-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 - } - } + "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": "2019-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 + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Operations_List.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Operations_List.json index 16ba8f34fe0e..88e9eb6659af 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Operations_List.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Operations_List.json @@ -1,193 +1,214 @@ { - "parameters": { - "api-version": "2019-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": "" - } - } + "parameters": { + "api-version": "2019-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 + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_Create.json index 4fd1d56982f1..8586245421c6 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_Create.json @@ -1,61 +1,61 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"", - "parameters": { - "name": "SampleServer-prod3.redmond.corp.microsoft.com", - "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" - }, - "type": "Microsoft.StorageSync/storageSyncServices/registeredServers" - }, - "api-version": "2019-03-01" + "name": "SampleServer-prod3.redmond.corp.microsoft.com", + "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" + }, + "type": "Microsoft.StorageSync/storageSyncServices/registeredServers" }, - "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/\"", - "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=2019-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=2019-03-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } + "api-version": "2019-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/\"", + "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=2019-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=2019-03-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_Delete.json index 6041e210dab0..33571b131a5d 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_Delete.json @@ -1,28 +1,27 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "41166691-ab03-43e9-ab3e-0330eda162ac", - "api-version": "2019-03-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "41166691-ab03-43e9-ab3e-0330eda162ac", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2019-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=2019-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": { - } - } -} \ No newline at end of file + "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=2019-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=2019-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/2019-03-01/examples/RegisteredServers_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_Get.json index a414b48efbe9..ad1016ce2dbe 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_Get.json @@ -1,41 +1,41 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "serverId": "080d4133-bdb5-40a0-96a0-71a6057bfe9a", - "api-version": "2019-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/\"", - "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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "080d4133-bdb5-40a0-96a0-71a6057bfe9a", + "api-version": "2019-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/\"", + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_ListByStorageSyncService.json index 0d9090e9f1cc..368b07315fc9 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_ListByStorageSyncService.json @@ -1,42 +1,44 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2019-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/\"", + "discoveryEndpointUri": "\"https://kailanitest99.one.microsoft.com:443\"", + "resourceLocation": "westus", + "serviceLocation": "westus" }, - "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/\"", - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_TriggerRollover.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_TriggerRollover.json index 20e5373752e0..1cd0c85fb40d 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_TriggerRollover.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/RegisteredServers_TriggerRollover.json @@ -1,29 +1,29 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "serverId": "d166ca76-dad2-49df-b409-12345642d730", "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": "2019-03-01" + "serverCertificate": "\"MIIDFjCCAf6gAwIBAgIQQS+DS8uhc4VNzUkTw7wbRjANBgkqhkiG9w0BAQ0FADAzMTEwLwYDVQQDEyhhbmt1c2hiLXByb2QzLnJlZG1vbmQuY29ycC5taWNyb3NvZnQuY29tMB4XDTE3MDgwMzE3MDQyNFoXDTE4MDgwNDE3MDQyNFowMzExMC8GA1UEAxMoYW5rdXNoYi1wcm9kMy5yZWRtb25kLmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDRvV4gmsIy6jGDPiHsXmvgVP749NNP7DopdlbHaNhjFmYINHl0uWylyaZmgJrROt2mnxN/zEyJtGnqYHlzUr4xvGq/qV5pqgdB9tag/sw9i22gfe9PRZ0FmSOZnXMbLYgLiDFqLtut5gHcOuWMj03YnkfoBEKlFBxWbagvW2yxz/Sxi9OVSJOKCaXra0RpcIHrO/KFl6ho2eE1/7Ykmfa8hZvSdoPd5gHdLiQcMB/pxq+mWp1fI6c8vFZoDu7Atn+NXTzYPKUxKzaisF12TsaKpohUsJpbB3Wocb0F5frn614D2pg14ERB5otjAMWw1m65csQWPI6dP8KIYe0+QPkCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBAA4RhVIBkw34M1RwakJgHvtjsOFxF1tVQA941NtLokx1l2Z8+GFQkcG4xpZSt+UN6wLerdCbnNhtkCErWUDeaT0jxk4g71Ofex7iM04crT4iHJr8mi96/XnhnkTUs+GDk12VgdeeNEczMZz+8Mxw9dJ5NCnYgTwO0SzGlclRsDvjzkLo8rh2ZG6n/jKrEyNXXo+hOqhupij0QbRP2Tvexdfw201kgN1jdZify8XzJ8Oi0bTS0KpJf2pNPOlooK2bjMUei9ANtEdXwwfVZGWvVh6tJjdv6k14wWWJ1L7zhA1IIVb1J+sQUzJji5iX0DrezjTz1Fg+gAzITaA/WsuujlM=\"" }, - "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=2019-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=2019-03-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "api-version": "2019-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=2019-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=2019-03-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Create.json index 5c6671c58678..a0144a3ae843 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Create.json @@ -1,60 +1,60 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", "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" - }, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" - }, - "api-version": "2019-03-01" + "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" + }, + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints" }, - "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" - }, - "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" - } + "api-version": "2019-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" }, - "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=2019-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=2019-03-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "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=2019-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=2019-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/2019-03-01/examples/ServerEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Delete.json index c41846b55853..55cffea74f82 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Delete.json @@ -1,27 +1,27 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2019-03-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2019-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=2019-03-01", - "Retry-After": "10", - "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=2019-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=2019-03-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Get.json index 9fa2ebf16706..98f14d0f7a61 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Get.json @@ -1,81 +1,81 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2019-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": { + "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 }, - "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": { - "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" - }, - "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" - } - } + "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" + }, + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_ListBySyncGroup.json index 21ab8e1969db..4f2c3938881a 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_ListBySyncGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_ListBySyncGroup.json @@ -1,120 +1,123 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2019-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" }, - "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" - }, - "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, - "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" - }, - "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" - }] - } - } + "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, + "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" + }, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Recall.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Recall.json index 79364fc29d3c..cde72b2b1a3e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Recall.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Recall.json @@ -1,31 +1,31 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", + "api-version": "2019-03-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "serverEndpointName": "SampleServerEndpoint_1", - "api-version": "2019-03-01", - "parameters": { - "pattern": "", - "recallPath": "" - } + "pattern": "", + "recallPath": "" + } + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "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=2019-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=2019-03-01", - "Retry-After": "10", - "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=2019-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=2019-03-01", + "Retry-After": "10", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Update.json index 70e28357aaa8..1c4321796c94 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Update.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/ServerEndpoints_Update.json @@ -1,85 +1,85 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "cloudEndpointName": "SampleCloudEndpoint_1", + "syncGroupName": "SampleSyncGroup_1", + "serverEndpointName": "SampleServerEndpoint_1", "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" - } - }, - "api-version": "2019-03-01" + "properties": { + "cloudTiering": "off", + "volumeFreeSpacePercent": 100, + "tierFilesOlderThanDays": 0, + "offlineDataTransfer": "off" + } }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "api-version": "2019-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 }, - "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" - }, - "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" - } + "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" }, - "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=2019-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=2019-03-01", - "Retry-After": "10", - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "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=2019-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=2019-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/2019-03-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json index 9bea7b871b5d..d92e7c82158e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json @@ -1,20 +1,20 @@ { + "parameters": { + "api-version": "2019-03-01", + "subscriptionId": "5c6bc8e1-1eaf-4192-94d8-58ce463ac86c", + "locationName": "westus", "parameters": { - "api-version": "2019-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." - } - } + "name": "newstoragesyncservicename", + "type": "Microsoft.StorageSync/storageSyncServices" } -} \ No newline at end of file + }, + "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/2019-03-01/examples/StorageSyncServiceCheckNameAvailability_Available.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServiceCheckNameAvailability_Available.json index 8b13eb776604..917a8ff49ce8 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServiceCheckNameAvailability_Available.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServiceCheckNameAvailability_Available.json @@ -1,18 +1,18 @@ { + "parameters": { + "api-version": "2019-03-01", + "subscriptionId": "5c6bc8e1-1eaf-4192-94d8-58ce463ac86c", + "locationName": "westus", "parameters": { - "api-version": "2019-03-01", - "subscriptionId": "5c6bc8e1-1eaf-4192-94d8-58ce463ac86c", - "locationName": "westus", - "parameters": { - "name": "newstoragesyncservicename", - "type": "Microsoft.StorageSync/storageSyncServices" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true - } - } + "name": "newstoragesyncservicename", + "type": "Microsoft.StorageSync/storageSyncServices" } -} \ No newline at end of file + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Create.json index d2b8d22769f2..ff83fa0f3c55 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Create.json @@ -1,25 +1,23 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "parameters": { - "location": "WestUS", - "tags": {}, - "properties": {} - }, - "api-version": "2019-03-01" + "location": "WestUS", + "tags": {} }, - "responses": { - "200": { - "body": { - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": {}, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "body": { + "name": "SampleStorageSyncService_1", + "location": "WestUS", + "tags": {}, + "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/2019-03-01/examples/StorageSyncServices_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Delete.json index b655a4a44651..485f32d41c6c 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Delete.json @@ -1,14 +1,12 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - }, - "204": { - } - } -} \ No newline at end of file + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2019-03-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Get.json index 5609cd409055..77f3c43be588 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Get.json @@ -1,28 +1,28 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2019-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, - "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\"" - }, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2019-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, + "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\"" + }, + "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", + "type": "Microsoft.StorageSync/storageSyncServices" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_ListByResourceGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_ListByResourceGroup.json index d4fc8c2635ba..a4ed4fb7e0ce 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_ListByResourceGroup.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_ListByResourceGroup.json @@ -1,48 +1,52 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "api-version": "2019-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, + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"" }, - "body": { - "value": [{ - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": { - "storageSyncServiceStatus": 0, - "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, - "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, - "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" - }] - } - } + "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, + "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, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_ListBySubscription.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_ListBySubscription.json index a4bd85c6d612..81dc34dfee45 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_ListBySubscription.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_ListBySubscription.json @@ -1,47 +1,51 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "api-version": "2019-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, + "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\"" }, - "body": { - "value": [{ - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": {}, - "properties": { - "storageSyncServiceStatus": 0, - "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, - "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, - "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" - }] - } - } + "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, + "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, + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Update.json index ce97565b223f..119ae7b2c19a 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Update.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/StorageSyncServices_Update.json @@ -1,30 +1,28 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2019-03-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2019-03-01", - "parameters": { - "tags": { - "Environment": "Test", - "Dept": "IT" - }, - "properties": {} - } - }, - "responses": { - "200": { - "body": { - "name": "SampleStorageSyncService_1", - "location": "WestUS", - "tags": { - "Environment": "Test", - "Dept": "IT" - }, - "properties": {}, - "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1", - "type": "Microsoft.StorageSync/storageSyncServices" - } - } + "tags": { + "Environment": "Test", + "Dept": "IT" + } } + }, + "responses": { + "200": { + "body": { + "name": "SampleStorageSyncService_1", + "location": "WestUS", + "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" + } + } + } } diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_Create.json index 87e5968e1df8..4a117508209e 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_Create.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_Create.json @@ -1,25 +1,24 @@ { + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2019-03-01", "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2019-03-01", - "parameters": { - "properties": {}, - "type": "Microsoft.StorageSync/storageSyncServices/syncGroups" - } - }, - "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" - } - } + "type": "Microsoft.StorageSync/storageSyncServices/syncGroups" } + }, + "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/2019-03-01/examples/SyncGroups_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_Delete.json index c9711625b428..22fee2a1550b 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_Delete.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_Delete.json @@ -1,19 +1,18 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2019-03-01" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - }, - "204": { - } - } -} \ No newline at end of file + "204": {} + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_Get.json index 44836ec3ad0a..b3f406e15fb3 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_Get.json @@ -1,26 +1,26 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "syncGroupName": "SampleSyncGroup_1", - "api-version": "2019-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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "syncGroupName": "SampleSyncGroup_1", + "api-version": "2019-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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_ListByStorageSyncService.json index 0f0c5960e1a7..5687f640851c 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/SyncGroups_ListByStorageSyncService.json @@ -1,27 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2019-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" }, - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Workflows_Abort.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Workflows_Abort.json index 812a719498ee..e90c5456a510 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Workflows_Abort.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Workflows_Abort.json @@ -1,17 +1,17 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "workflowId": "7ffd50b3-5574-478d-9ff2-9371bc42ce68", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "workflowId": "7ffd50b3-5574-478d-9ff2-9371bc42ce68", + "api-version": "2019-03-01" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Workflows_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Workflows_Get.json index bdc26f686265..af1e57cb45eb 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Workflows_Get.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Workflows_Get.json @@ -1,29 +1,29 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75", - "api-version": "2019-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" - } - } + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75", + "api-version": "2019-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" + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Workflows_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Workflows_ListByStorageSyncService.json index b2c769bc76a9..9eee8be702c2 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Workflows_ListByStorageSyncService.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/examples/Workflows_ListByStorageSyncService.json @@ -1,30 +1,32 @@ { - "parameters": { - "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", - "resourceGroupName": "SampleResourceGroup_1", - "storageSyncServiceName": "SampleStorageSyncService_1", - "api-version": "2019-03-01" - }, - "responses": { - "200": { - "headers": { - "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", - "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "resourceGroupName": "SampleResourceGroup_1", + "storageSyncServiceName": "SampleStorageSyncService_1", + "api-version": "2019-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}]" }, - "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" - }] - } - } + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/storagesync.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/storagesync.json index c0039fb505f2..4752aa4664a9 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/storagesync.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-03-01/storagesync.json @@ -1,3872 +1,4129 @@ { - "swagger": "2.0", - "info": { - "title": "Microsoft Storage Sync", - "description": "Microsoft Storage Sync Service API", - "version": "2019-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" - } - }, - "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" - }, { - "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" - } - } - }, - "default": { - "description": "Error message indicating why the operation failed.", - "schema": { - "$ref": "#/definitions/StorageSyncError" - } - } - } + "swagger": "2.0", + "info": { + "title": "Microsoft Storage Sync", + "description": "Microsoft Storage Sync Service API", + "version": "2019-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" }, - "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" - } - } - }, - "204": { - "description": "Storage Sync Service 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": { - "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}/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" - } - } - } + "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" }, - "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" - } - } - } + "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" + } + }, + "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" + }, + { + "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" }, - "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 + "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" }, - "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" - } - } - } + "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" + } + ], + "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" + } + } + }, + "204": { + "description": "Storage Sync Service 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": { + "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" }, - "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 + "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" }, - "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 + "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" }, - "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" - } - } - } + "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" }, - "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" - } - } - } + "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" }, - "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 + "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" }, - "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." - } + "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" }, - "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." - } + "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" }, - "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": {} + "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" }, - "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" - } + "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" }, - "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." - } + "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" }, - "description": "The parameters used when creating a cloud endpoint." - }, - "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." - } + "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" }, - "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" - } - } - }, - "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." - } + "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" }, - "description": "The parameters used when creating a registered server." - }, - "RegisteredServerCreateParametersProperties": { - "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." - } + "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" }, - "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" - } + "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" }, - "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." - } + "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" }, - "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", - "readOnly": true - } - } - }, - "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 storage sync service." - } + "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" }, - "description": "Parameters for updating an Storage sync service." - }, - "StorageSyncServiceUpdateProperties": { - "type": "object", - "description": "Storage Sync Service Update Properties object.", - "properties": {} - }, - "StorageSyncServiceProperties": { - "type": "object", - "description": "Storage Sync Service Properties object.", - "properties": { - "storageSyncServiceStatus": { - "type": "integer", - "description": "Storage Sync service status.", - "readOnly": true - }, - "storageSyncServiceUid": { - "type": "string", - "description": "Storage Sync service Uid", - "readOnly": true - } - } - }, - "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" - }, - "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" - }, - "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" - } - } - }, - "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" - } - } - }, - "ServerEndpointSyncStatus": { - "type": "object", - "description": "Server Endpoint sync status", - "properties": { - "downloadHealth": { - "$ref": "#/definitions/HealthState", - "description": "Download Health Status.", - "readOnly": true - }, - "uploadHealth": { - "$ref": "#/definitions/HealthState", - "description": "Upload Health Status.", - "readOnly": true - }, - "combinedHealth": { - "$ref": "#/definitions/HealthState", - "description": "Combined Health Status.", - "readOnly": true - }, - "syncActivity": { - "$ref": "#/definitions/SyncActivityState", - "description": "Sync activity", - "readOnly": true - }, - "totalPersistentFilesNotSyncingCount": { - "type": "integer", - "format": "int64", - "description": "Total count of persistent files not syncing (combined upload + download). Reserved for future use.", - "readOnly": true - }, - "lastUpdatedTimestamp": { - "type" : "string", - "format" : "date-time", - "description": "Last Updated Timestamp", - "readOnly": true - }, - "uploadStatus": { - "$ref": "#/definitions/SyncSessionStatus", - "description": "Upload Status", - "readOnly": true - }, - "downloadStatus": { - "$ref": "#/definitions/SyncSessionStatus", - "description": "Download Status", - "readOnly": true - }, - "uploadActivity": { - "$ref": "#/definitions/SyncActivityStatus", - "description": "Upload sync activity", - "readOnly": true - }, - "downloadActivity": { - "$ref": "#/definitions/SyncActivityStatus", - "description": "Download sync activity", - "readOnly": true - }, - "offlineDataTransferStatus": { - "$ref": "#/definitions/OfflineDataTransferState", - "description": "Offline Data Transfer State", - "readOnly": true - } - } - }, - "SyncSessionStatus": { - "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", - "description": "Last sync per item error count.", - "readOnly": true - }, - "persistentFilesNotSyncingCount": { - "type": "integer", - "format": "int64", - "description": "Count of persistent files not syncing. Reserved for future use.", - "readOnly": true - }, - "transientFilesNotSyncingCount": { - "type": "integer", - "format": "int64", - "description": "Count of transient files not syncing. Reserved for future use.", - "readOnly": true - }, - "filesNotSyncingErrors": { - "type": "array", - "items": { - "$ref": "#/definitions/FilesNotSyncingError" - }, - "description": "Array of per-item errors coming from the last sync session. Reserved for future use.", - "readOnly": true - } - } - }, - "SyncActivityStatus": { - "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", - "description": "Per item error count", - "readOnly": true - }, - "appliedItemCount": { - "type": "integer", - "format": "int64", - "description": "Applied item count.", - "readOnly": true - }, - "totalItemCount": { - "type": "integer", - "format": "int64", - "description": "Total item count (if available)", - "readOnly": true - }, - "appliedBytes": { - "type": "integer", - "format": "int64", - "description": "Applied bytes", - "readOnly": true - }, - "totalBytes": { - "type": "integer", - "format": "int64", - "description": "Total bytes (if available)", - "readOnly": true - } - } - }, - "FilesNotSyncingError": { - "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", - "description": "Count of persistent files not syncing with the specified error code", - "readOnly": true - }, - "transientCount": { - "type": "integer", - "format": "int64", - "description": "Count of transient files not syncing with the specified error code", - "readOnly": true - } - } - }, - "PhysicalPath": { - "type": "string", - "description": "Server folder used for data synchronization" + "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" + } + } }, - "ResourceId": { - "type": "string", - "description": "Arm resource identifier." + "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" + } }, - "TagsObject": { - "type": "object", - "description": "Tags object." + "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" + } }, - "FeatureStatus": { + "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": "Type of the Feature Status", - "enum": [ - "on", - "off" - ] + "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" + } }, - "HealthState": { - "type": "string", - "description": "Type of the Health state", - "enum": [ - "Healthy", - "Error", - "SyncBlockedForRestore", - "SyncBlockedForChangeDetectionPostRestore", - "NoActivity" - ] - }, - "SyncActivityState": { - "type": "string", - "description": "Type of the sync activity state", - "enum": [ - "Upload", - "Download", - "UploadAndDownload" - ] - }, - "OfflineDataTransferState": { - "type": "string", - "description": "Type of the Health state", - "enum": [ - "InProgress", - "Stopping", - "NotRunning", - "Complete" - ] - }, - "WorkflowStatus": { - "type": "string", - "description": "Type of the Workflow Status", - "enum": [ - "active", - "expired", - "succeeded", - "aborted", - "failed" - ] - }, - "OperationDirection": { - "type": "string", - "description": "Type of the Operation Direction", - "enum": [ - "do", - "undo", - "cancel" - ] - }, - "ProgressType": { - "type": "string", - "description": "Type of the ProgressType", - "enum": [ - "none", - "initialize", - "download", - "upload", - "recall" - ] - }, - "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." - } + "responses": { + "200": { + "description": "Operation Status", + "schema": { + "$ref": "#/definitions/OperationStatus" }, - "description": "Operation status object" - } - }, - "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" + "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": {} + }, + "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." + }, + "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" + } + } + }, + "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": { + "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", + "readOnly": true + } + } + }, + "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 storage sync service." + } + }, + "description": "Parameters for updating an Storage sync service." + }, + "StorageSyncServiceUpdateProperties": { + "type": "object", + "description": "Storage Sync Service Update Properties object.", + "properties": {} + }, + "StorageSyncServiceProperties": { + "type": "object", + "description": "Storage Sync Service Properties object.", + "properties": { + "storageSyncServiceStatus": { + "type": "integer", + "description": "Storage Sync service status.", + "readOnly": true + }, + "storageSyncServiceUid": { + "type": "string", + "description": "Storage Sync service Uid", + "readOnly": true + } + } + }, + "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" + }, + "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" + }, + "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" } + } }, - "security": [{ - "azure_auth": [ - "user_impersonation" - ] - }] + "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" + } + } + }, + "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" + } + } + }, + "ServerEndpointSyncStatus": { + "type": "object", + "description": "Server Endpoint sync status", + "properties": { + "downloadHealth": { + "$ref": "#/definitions/HealthState", + "description": "Download Health Status.", + "readOnly": true + }, + "uploadHealth": { + "$ref": "#/definitions/HealthState", + "description": "Upload Health Status.", + "readOnly": true + }, + "combinedHealth": { + "$ref": "#/definitions/HealthState", + "description": "Combined Health Status.", + "readOnly": true + }, + "syncActivity": { + "$ref": "#/definitions/SyncActivityState", + "description": "Sync activity", + "readOnly": true + }, + "totalPersistentFilesNotSyncingCount": { + "type": "integer", + "format": "int64", + "description": "Total count of persistent files not syncing (combined upload + download). Reserved for future use.", + "readOnly": true + }, + "lastUpdatedTimestamp": { + "type": "string", + "format": "date-time", + "description": "Last Updated Timestamp", + "readOnly": true + }, + "uploadStatus": { + "$ref": "#/definitions/SyncSessionStatus", + "description": "Upload Status", + "readOnly": true + }, + "downloadStatus": { + "$ref": "#/definitions/SyncSessionStatus", + "description": "Download Status", + "readOnly": true + }, + "uploadActivity": { + "$ref": "#/definitions/SyncActivityStatus", + "description": "Upload sync activity", + "readOnly": true + }, + "downloadActivity": { + "$ref": "#/definitions/SyncActivityStatus", + "description": "Download sync activity", + "readOnly": true + }, + "offlineDataTransferStatus": { + "$ref": "#/definitions/OfflineDataTransferState", + "description": "Offline Data Transfer State", + "readOnly": true + } + } + }, + "SyncSessionStatus": { + "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", + "description": "Last sync per item error count.", + "readOnly": true + }, + "persistentFilesNotSyncingCount": { + "type": "integer", + "format": "int64", + "description": "Count of persistent files not syncing. Reserved for future use.", + "readOnly": true + }, + "transientFilesNotSyncingCount": { + "type": "integer", + "format": "int64", + "description": "Count of transient files not syncing. Reserved for future use.", + "readOnly": true + }, + "filesNotSyncingErrors": { + "type": "array", + "items": { + "$ref": "#/definitions/FilesNotSyncingError" + }, + "description": "Array of per-item errors coming from the last sync session. Reserved for future use.", + "readOnly": true + } + } + }, + "SyncActivityStatus": { + "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", + "description": "Per item error count", + "readOnly": true + }, + "appliedItemCount": { + "type": "integer", + "format": "int64", + "description": "Applied item count.", + "readOnly": true + }, + "totalItemCount": { + "type": "integer", + "format": "int64", + "description": "Total item count (if available)", + "readOnly": true + }, + "appliedBytes": { + "type": "integer", + "format": "int64", + "description": "Applied bytes", + "readOnly": true + }, + "totalBytes": { + "type": "integer", + "format": "int64", + "description": "Total bytes (if available)", + "readOnly": true + } + } + }, + "FilesNotSyncingError": { + "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", + "description": "Count of persistent files not syncing with the specified error code", + "readOnly": true + }, + "transientCount": { + "type": "integer", + "format": "int64", + "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" + ] + }, + "HealthState": { + "type": "string", + "description": "Type of the Health state", + "enum": [ + "Healthy", + "Error", + "SyncBlockedForRestore", + "SyncBlockedForChangeDetectionPostRestore", + "NoActivity" + ] + }, + "SyncActivityState": { + "type": "string", + "description": "Type of the sync activity state", + "enum": [ + "Upload", + "Download", + "UploadAndDownload" + ] + }, + "OfflineDataTransferState": { + "type": "string", + "description": "Type of the Health state", + "enum": [ + "InProgress", + "Stopping", + "NotRunning", + "Complete" + ] + }, + "WorkflowStatus": { + "type": "string", + "description": "Type of the Workflow Status", + "enum": [ + "active", + "expired", + "succeeded", + "aborted", + "failed" + ] + }, + "OperationDirection": { + "type": "string", + "description": "Type of the Operation Direction", + "enum": [ + "do", + "undo", + "cancel" + ] + }, + "ProgressType": { + "type": "string", + "description": "Type of the ProgressType", + "enum": [ + "none", + "initialize", + "download", + "upload", + "recall" + ] + }, + "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" + } + }, + "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 fff8890c50c1..8a42944a80a2 100644 --- a/specification/storagesync/resource-manager/readme.md +++ b/specification/storagesync/resource-manager/readme.md @@ -94,6 +94,7 @@ 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 @@ -153,3 +154,33 @@ 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. + +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.StorageSync/stable/2019-03-01/storagesync.json + - $(this-folder)/Microsoft.StorageSync/stable/2019-02-01/storagesync.json + - $(this-folder)/Microsoft.StorageSync/stable/2018-10-01/storagesync.json + - $(this-folder)/Microsoft.StorageSync/stable/2018-07-01/storagesync.json + - $(this-folder)/Microsoft.StorageSync/stable/2018-04-02/storagesync.json + - $(this-folder)/Microsoft.StorageSync/preview/2017-06-05-preview/storagesync.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/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AccessControlRecordsCreateOrUpdate.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AccessControlRecordsCreateOrUpdate.json index fd59bf61e70e..91f2651083ea 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AccessControlRecordsCreateOrUpdate.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AccessControlRecordsCreateOrUpdate.json @@ -13,10 +13,17 @@ }, "responses": { "200": { - "body": "{\r\n \"properties\": {\r\n \"initiatorName\": \"iqn.2017-06.com.contoso:ForTest\",\r\n \"volumeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/accessControlRecords/ACRForTest\",\r\n \"name\": \"ACRForTest\",\r\n \"type\": \"Microsoft.StorSimple/managers/accessControlRecords\",\r\n \"kind\": \"Series8000\"\r\n}" + "body": { + "properties": { + "initiatorName": "iqn.2017-06.com.contoso:ForTest", + "volumeCount": 0 + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/accessControlRecords/ACRForTest", + "name": "ACRForTest", + "type": "Microsoft.StorSimple/managers/accessControlRecords", + "kind": "Series8000" + } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AccessControlRecordsDelete.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AccessControlRecordsDelete.json index 1f1271cef74b..f5fde360667f 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AccessControlRecordsDelete.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AccessControlRecordsDelete.json @@ -7,9 +7,7 @@ "api-version": "2017-06-01" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AlertsClear.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AlertsClear.json index 7290889ffb84..38bcb119ceff 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AlertsClear.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AlertsClear.json @@ -13,8 +13,6 @@ } }, "responses": { - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AlertsSendTestEmail.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AlertsSendTestEmail.json index d8bb0e07573d..fc08bf366e14 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AlertsSendTestEmail.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/AlertsSendTestEmail.json @@ -12,8 +12,6 @@ } }, "responses": { - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupPoliciesBackupNow.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupPoliciesBackupNow.json index d594466be58c..9326763a4fa9 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupPoliciesBackupNow.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupPoliciesBackupNow.json @@ -9,9 +9,7 @@ "backupType": "CloudSnapshot" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupPoliciesCreateOrUpdate.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupPoliciesCreateOrUpdate.json index ef960fc14488..92d7b8bc5f58 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupPoliciesCreateOrUpdate.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupPoliciesCreateOrUpdate.json @@ -18,10 +18,22 @@ }, "responses": { "200": { - "body": "{\r\n \"properties\": {\r\n \"volumeIds\": [\r\n \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/Clonedvolume1\",\r\n \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/volume1\"\r\n ],\r\n \"schedulesCount\": 0,\r\n \"scheduledBackupStatus\": \"Disabled\",\r\n \"backupPolicyCreationType\": \"BySaaS\"\r\n },\r\n \"id\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/backupPolicies/BkUpPolicy01ForSDKTest\",\r\n \"name\": \"BkUpPolicy01ForSDKTest\",\r\n \"type\": \"Microsoft.StorSimple/managers/devices/backupPolicies\",\r\n \"kind\": \"Series8000\"\r\n}" + "body": { + "properties": { + "volumeIds": [ + "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/Clonedvolume1", + "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/volumeContainerForSDKTest/volumes/volume1" + ], + "schedulesCount": 0, + "scheduledBackupStatus": "Disabled", + "backupPolicyCreationType": "BySaaS" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/backupPolicies/BkUpPolicy01ForSDKTest", + "name": "BkUpPolicy01ForSDKTest", + "type": "Microsoft.StorSimple/managers/devices/backupPolicies", + "kind": "Series8000" + } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupPoliciesDelete.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupPoliciesDelete.json index 92fa702dbb94..50e51a8190a0 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupPoliciesDelete.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupPoliciesDelete.json @@ -10,9 +10,7 @@ "$filter": "volumeId%20eq%20'%2Fsubscriptions%2F4385cf00-2d3a-425a-832f-f4285b1c9dce%2FresourceGroups%2FResourceGroupForSDKTest%2Fproviders%2FMicrosoft.StorSimple%2Fmanagers%2FManagerForSDKTest1%2Fdevices%2FDevice05ForSDKTest%2FvolumeContainers%2FvolumeContainerForSDKTest%2Fvolumes%2FClonedvolume1'" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupSchedulesCreateOrUpdate.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupSchedulesCreateOrUpdate.json index e4e5e8662b9f..2af87acc05f0 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupSchedulesCreateOrUpdate.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupSchedulesCreateOrUpdate.json @@ -28,10 +28,28 @@ }, "responses": { "200": { - "body": "{\r\n \"properties\": {\r\n \"scheduleRecurrence\": {\r\n \"recurrenceType\": \"Weekly\",\r\n \"recurrenceValue\": 1,\r\n \"weeklyDaysList\": [\r\n \"Monday\",\r\n \"Thursday\",\r\n \"Friday\"\r\n ]\r\n },\r\n \"backupType\": \"CloudSnapshot\",\r\n \"retentionCount\": 1,\r\n \"startTime\": \"2017-06-24T01:00:00Z\",\r\n \"scheduleStatus\": \"Enabled\"\r\n },\r\n \"id\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/backupPolicies/BkUpPolicy01ForSDKTest/schedules/schedule2\",\r\n \"name\": \"schedule2\",\r\n \"type\": \"Microsoft.StorSimple/managers/devices/backupPolicies/schedules\",\r\n \"kind\": \"Series8000\"\r\n}" + "body": { + "properties": { + "scheduleRecurrence": { + "recurrenceType": "Weekly", + "recurrenceValue": 1, + "weeklyDaysList": [ + "Monday", + "Thursday", + "Friday" + ] + }, + "backupType": "CloudSnapshot", + "retentionCount": 1, + "startTime": "2017-06-24T01:00:00Z", + "scheduleStatus": "Enabled" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/backupPolicies/BkUpPolicy01ForSDKTest/schedules/schedule2", + "name": "schedule2", + "type": "Microsoft.StorSimple/managers/devices/backupPolicies/schedules", + "kind": "Series8000" + } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupSchedulesDelete.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupSchedulesDelete.json index c2e7b139a0a1..8e67ee8ab847 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupSchedulesDelete.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupSchedulesDelete.json @@ -11,9 +11,7 @@ "$filter": "volumeId%20eq%20'%2Fsubscriptions%2F4385cf00-2d3a-425a-832f-f4285b1c9dce%2FresourceGroups%2FResourceGroupForSDKTest%2Fproviders%2FMicrosoft.StorSimple%2Fmanagers%2FManagerForSDKTest1%2Fdevices%2FDevice05ForSDKTest%2FvolumeContainers%2FvolumeContainerForSDKTest%2Fvolumes%2FClonedvolume1'" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupsClone.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupsClone.json index 2107f54d211f..f7680a1c58d3 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupsClone.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupsClone.json @@ -27,11 +27,7 @@ } }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupsDelete.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupsDelete.json index 2962b76cbccc..aedfa68cb9cc 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupsDelete.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupsDelete.json @@ -10,9 +10,7 @@ "$filter": "volumeId%20eq%20'%2Fsubscriptions%2F4385cf00-2d3a-425a-832f-f4285b1c9dce%2FresourceGroups%2FResourceGroupForSDKTest%2Fproviders%2FMicrosoft.StorSimple%2Fmanagers%2FManagerForSDKTest1%2Fdevices%2FDevice05ForSDKTest%2FvolumeContainers%2FvolumeContainerForSDKTest%2Fvolumes%2FClonedvolume1'" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupsRestore.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupsRestore.json index 3bafa725ff54..6dd5e31ec0c7 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupsRestore.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BackupsRestore.json @@ -10,11 +10,7 @@ "$filter": "createdTime%20ge%20'2017-06-22T18:30:00Z'%20and%20backupPolicyId%20eq%20'%2Fsubscriptions%2F4385cf00-2d3a-425a-832f-f4285b1c9dce%2FresourceGroups%2FResourceGroupForSDKTest%2Fproviders%2FMicrosoft.StorSimple%2Fmanagers%2FManagerForSDKTest1%2Fdevices%2FDevice05ForSDKTest%2FbackupPolicies%2FBkUpPolicy01ForSDKTest'" }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BandwidthSettingsCreateOrUpdate.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BandwidthSettingsCreateOrUpdate.json index 2850d62d632c..8554f0dd0ab3 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BandwidthSettingsCreateOrUpdate.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BandwidthSettingsCreateOrUpdate.json @@ -31,10 +31,35 @@ }, "responses": { "200": { - "body": "{\r\n \"properties\": {\r\n \"schedules\": [\r\n {\r\n \"start\": {\r\n \"hours\": 10,\r\n \"minutes\": 0,\r\n \"seconds\": 0\r\n },\r\n \"stop\": {\r\n \"hours\": 20,\r\n \"minutes\": 0,\r\n \"seconds\": 0\r\n },\r\n \"rateInMbps\": 10,\r\n \"days\": [\r\n \"Saturday\",\r\n \"Sunday\"\r\n ]\r\n }\r\n ],\r\n \"volumeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/bandwidthSettings/BWSForTest\",\r\n \"name\": \"BWSForTest\",\r\n \"type\": \"Microsoft.StorSimple/managers/bandwidthSettings\",\r\n \"kind\": \"Series8000\"\r\n}" + "body": { + "properties": { + "schedules": [ + { + "start": { + "hours": 10, + "minutes": 0, + "seconds": 0 + }, + "stop": { + "hours": 20, + "minutes": 0, + "seconds": 0 + }, + "rateInMbps": 10, + "days": [ + "Saturday", + "Sunday" + ] + } + ], + "volumeCount": 0 + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/bandwidthSettings/BWSForTest", + "name": "BWSForTest", + "type": "Microsoft.StorSimple/managers/bandwidthSettings", + "kind": "Series8000" + } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BandwidthSettingsDelete.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BandwidthSettingsDelete.json index fb88d0cce62e..0379d2c73d3d 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BandwidthSettingsDelete.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/BandwidthSettingsDelete.json @@ -7,9 +7,7 @@ "api-version": "2017-06-01" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/CloudAppliancesProvision.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/CloudAppliancesProvision.json index b5aa86efb7f6..228d75620262 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/CloudAppliancesProvision.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/CloudAppliancesProvision.json @@ -11,11 +11,7 @@ } }, "responses": { - "200": { - "body": "" - }, - "202": { - "body": "" - } + "200": {}, + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsCreateOrUpdateAlertSettings.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsCreateOrUpdateAlertSettings.json index cbce44eef9f7..6e2c76e704b7 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsCreateOrUpdateAlertSettings.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsCreateOrUpdateAlertSettings.json @@ -16,10 +16,19 @@ }, "responses": { "200": { - "body": "{\r\n \"properties\": {\r\n \"emailNotification\": \"Enabled\",\r\n \"alertNotificationCulture\": \"en-US\",\r\n \"notificationToServiceOwners\": \"Enabled\",\r\n \"additionalRecipientEmailList\": []\r\n },\r\n \"id\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/alertSettings/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.StorSimple/managers/devices/alertSettings\",\r\n \"kind\": \"Series8000\"\r\n}" + "body": { + "properties": { + "emailNotification": "Enabled", + "alertNotificationCulture": "en-US", + "notificationToServiceOwners": "Enabled", + "additionalRecipientEmailList": [] + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/alertSettings/default", + "name": "default", + "type": "Microsoft.StorSimple/managers/devices/alertSettings", + "kind": "Series8000" + } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsCreateOrUpdateTimeSettings.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsCreateOrUpdateTimeSettings.json index 9b7bc9761b89..eaf8ba7ff48f 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsCreateOrUpdateTimeSettings.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsCreateOrUpdateTimeSettings.json @@ -17,10 +17,20 @@ }, "responses": { "200": { - "body": "{\r\n \"properties\": {\r\n \"timeZone\": \"Pacific Standard Time\",\r\n \"primaryTimeServer\": \"time.windows.com\",\r\n \"secondaryTimeServer\": [\r\n \"8.8.8.8\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/timeSettings/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.StorSimple/managers/devices/timeSettings\",\r\n \"kind\": \"Series8000\"\r\n}" + "body": { + "properties": { + "timeZone": "Pacific Standard Time", + "primaryTimeServer": "time.windows.com", + "secondaryTimeServer": [ + "8.8.8.8" + ] + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/timeSettings/default", + "name": "default", + "type": "Microsoft.StorSimple/managers/devices/timeSettings", + "kind": "Series8000" + } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsSyncRemotemanagementCertificate.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsSyncRemotemanagementCertificate.json index 5516e8326847..947587e75504 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsSyncRemotemanagementCertificate.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsSyncRemotemanagementCertificate.json @@ -7,9 +7,7 @@ "api-version": "2017-06-01" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsUpdateNetworkSettings.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsUpdateNetworkSettings.json index f60139eed9f1..0e330d8260a7 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsUpdateNetworkSettings.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsUpdateNetworkSettings.json @@ -18,10 +18,17 @@ }, "responses": { "200": { - "body": "{\r\n \"properties\": {\r\n \"encryptionStatus\": \"Enabled\",\r\n \"keyRolloverStatus\": \"NotRequired\"\r\n },\r\n \"id\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/encryptionSettings/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.StorSimple/managers/encryptionSettings\",\r\n \"kind\": \"Series8000\"\r\n}" + "body": { + "properties": { + "encryptionStatus": "Enabled", + "keyRolloverStatus": "NotRequired" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/encryptionSettings/default", + "name": "default", + "type": "Microsoft.StorSimple/managers/encryptionSettings", + "kind": "Series8000" + } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsUpdateSecuritySettings.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsUpdateSecuritySettings.json index 7cc7b56dbbec..e28c51f74e9f 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsUpdateSecuritySettings.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DeviceSettingsUpdateSecuritySettings.json @@ -39,10 +39,23 @@ }, "responses": { "200": { - "body": "{\r\n \"properties\": {\r\n \"remoteManagementSettings\": {\r\n \"remoteManagementMode\": \"HttpsAndHttpEnabled\",\r\n \"remoteManagementCertificate\": \"\"\r\n },\r\n \"chapSettings\": {\r\n \"initiatorUser\": \"test-initiator-user\",\r\n \"targetUser\": \"test-target-user\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/securitySettings/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.StorSimple/managers/devices/securitySettings\",\r\n \"kind\": \"Series8000\"\r\n}" + "body": { + "properties": { + "remoteManagementSettings": { + "remoteManagementMode": "HttpsAndHttpEnabled", + "remoteManagementCertificate": "" + }, + "chapSettings": { + "initiatorUser": "test-initiator-user", + "targetUser": "test-target-user" + } + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/securitySettings/default", + "name": "default", + "type": "Microsoft.StorSimple/managers/devices/securitySettings", + "kind": "Series8000" + } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesAuthorizeForServiceEncryptionKeyRollover.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesAuthorizeForServiceEncryptionKeyRollover.json index f1cdbab261a4..2e7b6db4b4c7 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesAuthorizeForServiceEncryptionKeyRollover.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesAuthorizeForServiceEncryptionKeyRollover.json @@ -7,8 +7,6 @@ "api-version": "2017-06-01" }, "responses": { - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesConfigure.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesConfigure.json index 9bbeed98eda1..8dc79006ee78 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesConfigure.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesConfigure.json @@ -18,9 +18,7 @@ } }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesDeactivate.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesDeactivate.json index 11d2e83ca85b..f47c8d1bf50a 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesDeactivate.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesDeactivate.json @@ -8,11 +8,7 @@ "$expand": "details" }, "responses": { - "202": { - "body": "" - }, - "204": { - "body": "" - } + "202": {}, + "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesDelete.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesDelete.json index 4df17eaa164d..f47c8d1bf50a 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesDelete.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesDelete.json @@ -8,9 +8,7 @@ "$expand": "details" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesFailover.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesFailover.json index 3d881a921a04..996746500f2f 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesFailover.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesFailover.json @@ -13,9 +13,7 @@ } }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesInstallUpdates.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesInstallUpdates.json index 75eb768074e4..c412747a0b03 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesInstallUpdates.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesInstallUpdates.json @@ -7,9 +7,7 @@ "api-version": "2017-06-01" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesScanForUpdates.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesScanForUpdates.json index 75eb768074e4..c412747a0b03 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesScanForUpdates.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/DevicesScanForUpdates.json @@ -7,9 +7,7 @@ "api-version": "2017-06-01" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/HardwareComponentGroupsChangeControllerPowerState.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/HardwareComponentGroupsChangeControllerPowerState.json index 36040718b062..1d7143a37532 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/HardwareComponentGroupsChangeControllerPowerState.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/HardwareComponentGroupsChangeControllerPowerState.json @@ -16,9 +16,7 @@ } }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/JobsCancel.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/JobsCancel.json index 16762e269a93..2624550b3781 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/JobsCancel.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/JobsCancel.json @@ -10,9 +10,7 @@ "$filter": "jobType%20eq%20'ManualBackup'" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/ManagersDelete.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/ManagersDelete.json index 4371a7be4ca2..86115e8b10f6 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/ManagersDelete.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/ManagersDelete.json @@ -6,9 +6,7 @@ "api-version": "2017-06-01" }, "responses": { - "200": { - "body": "" - }, + "200": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/ManagersDeleteExtendedInfo.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/ManagersDeleteExtendedInfo.json index 85f50b3d9e61..ab11fca71eea 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/ManagersDeleteExtendedInfo.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/ManagersDeleteExtendedInfo.json @@ -6,8 +6,6 @@ "api-version": "2017-06-01" }, "responses": { - "204": { - "body": "" - } + "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/StorageAccountCredentialsCreateOrUpdate.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/StorageAccountCredentialsCreateOrUpdate.json index 95bafa9e8c62..1201c00215f7 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/StorageAccountCredentialsCreateOrUpdate.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/StorageAccountCredentialsCreateOrUpdate.json @@ -19,10 +19,18 @@ }, "responses": { "200": { - "body": "{\r\n \"properties\": {\r\n \"endPoint\": \"blob.core.windows.net\",\r\n \"sslStatus\": \"Enabled\",\r\n \"volumesCount\": 0\r\n },\r\n \"id\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/storageAccountCredentials/SACForTest\",\r\n \"name\": \"SACForTest\",\r\n \"type\": \"Microsoft.StorSimple/managers/storageAccountCredentials\",\r\n \"kind\": \"Series8000\"\r\n}" + "body": { + "properties": { + "endPoint": "blob.core.windows.net", + "sslStatus": "Enabled", + "volumesCount": 0 + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/storageAccountCredentials/SACForTest", + "name": "SACForTest", + "type": "Microsoft.StorSimple/managers/storageAccountCredentials", + "kind": "Series8000" + } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/StorageAccountCredentialsDelete.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/StorageAccountCredentialsDelete.json index 2f9d0e62f46f..a890212b7db1 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/StorageAccountCredentialsDelete.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/StorageAccountCredentialsDelete.json @@ -7,9 +7,7 @@ "api-version": "2017-06-01" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumeContainersCreateOrUpdate.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumeContainersCreateOrUpdate.json index 1872809b3e4c..1d9e4c0ab45d 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumeContainersCreateOrUpdate.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumeContainersCreateOrUpdate.json @@ -20,10 +20,21 @@ }, "responses": { "200": { - "body": "{\r\n \"properties\": {\r\n \"encryptionStatus\": \"Enabled\",\r\n \"volumeCount\": 1,\r\n \"storageAccountCredentialId\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/storageAccountCredentials/safortestrecording\",\r\n \"ownerShipStatus\": \"Owned\",\r\n \"bandwidthSettingId\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/bandwidthSettings/bandwidthSetting1\",\r\n \"totalCloudStorageUsageInBytes\": 0\r\n },\r\n \"id\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/VolumeContainerForSDKTest\",\r\n \"name\": \"VolumeContainerForSDKTest\",\r\n \"type\": \"Microsoft.StorSimple/managers/devices/volumeContainers\",\r\n \"kind\": \"Series8000\"\r\n}" + "body": { + "properties": { + "encryptionStatus": "Enabled", + "volumeCount": 1, + "storageAccountCredentialId": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/storageAccountCredentials/safortestrecording", + "ownerShipStatus": "Owned", + "bandwidthSettingId": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/bandwidthSettings/bandwidthSetting1", + "totalCloudStorageUsageInBytes": 0 + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/VolumeContainerForSDKTest", + "name": "VolumeContainerForSDKTest", + "type": "Microsoft.StorSimple/managers/devices/volumeContainers", + "kind": "Series8000" + } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumeContainersDelete.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumeContainersDelete.json index 2203b40dbe2a..c21a2b1a2a32 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumeContainersDelete.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumeContainersDelete.json @@ -8,9 +8,7 @@ "api-version": "2017-06-01" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumesCreateOrUpdate.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumesCreateOrUpdate.json index 393b74f3ea4c..a4484ff3642a 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumesCreateOrUpdate.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumesCreateOrUpdate.json @@ -21,10 +21,25 @@ }, "responses": { "200": { - "body": "{\r\n \"properties\": {\r\n \"sizeInBytes\": 5368709120,\r\n \"volumeType\": \"Tiered\",\r\n \"volumeContainerId\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/VolumeContainerForSDKTest\",\r\n \"accessControlRecordIds\": [\r\n \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/accessControlRecords/ACR2\"\r\n ],\r\n \"volumeStatus\": \"Offline\",\r\n \"operationStatus\": \"None\",\r\n \"backupStatus\": \"Disabled\",\r\n \"monitoringStatus\": \"Enabled\"\r\n },\r\n \"id\": \"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/VolumeContainerForSDKTest/volumes/Volume1ForSDKTest\",\r\n \"name\": \"Volume1ForSDKTest\",\r\n \"type\": \"Microsoft.StorSimple/managers/devices/volumeContainers/volumes\",\r\n \"kind\": \"Series8000\"\r\n}" + "body": { + "properties": { + "sizeInBytes": 5368709120, + "volumeType": "Tiered", + "volumeContainerId": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/VolumeContainerForSDKTest", + "accessControlRecordIds": [ + "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/accessControlRecords/ACR2" + ], + "volumeStatus": "Offline", + "operationStatus": "None", + "backupStatus": "Disabled", + "monitoringStatus": "Enabled" + }, + "id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/VolumeContainerForSDKTest/volumes/Volume1ForSDKTest", + "name": "Volume1ForSDKTest", + "type": "Microsoft.StorSimple/managers/devices/volumeContainers/volumes", + "kind": "Series8000" + } }, - "202": { - "body": "" - } + "202": {} } } diff --git a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumesDelete.json b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumesDelete.json index df3dc3612386..f0a1eb4548d1 100644 --- a/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumesDelete.json +++ b/specification/storsimple8000series/resource-manager/Microsoft.StorSimple/stable/2017-06-01/examples/VolumesDelete.json @@ -9,9 +9,7 @@ "api-version": "2017-06-01" }, "responses": { - "202": { - "body": "" - }, + "202": {}, "204": {} } } diff --git a/specification/storsimple8000series/resource-manager/readme.md b/specification/storsimple8000series/resource-manager/readme.md index 3d6b20ed571f..4eae004ffd2f 100644 --- a/specification/storsimple8000series/resource-manager/readme.md +++ b/specification/storsimple8000series/resource-manager/readme.md @@ -54,6 +54,7 @@ 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-js - repo: azure-sdk-for-node @@ -116,3 +117,28 @@ generate-interface: 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)/Microsoft.StorSimple/stable/2017-06-01/storsimple.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/streamanalytics/resource-manager/readme.md b/specification/streamanalytics/resource-manager/readme.md index 67a5778706c3..f477b11440fa 100644 --- a/specification/streamanalytics/resource-manager/readme.md +++ b/specification/streamanalytics/resource-manager/readme.md @@ -58,6 +58,7 @@ 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-node - repo: azure-sdk-for-js @@ -149,3 +150,33 @@ directive: from: subscriptions.json reason: Need the “name” property to be writable on nested resources so that our RP can support a DEEP PUT scenario which at the time, ARM did not have a native way to support. ``` + +## 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.StreamAnalytics/stable/2016-03-01/streamingjobs.json + - $(this-folder)/Microsoft.StreamAnalytics/stable/2016-03-01/inputs.json + - $(this-folder)/Microsoft.StreamAnalytics/stable/2016-03-01/outputs.json + - $(this-folder)/Microsoft.StreamAnalytics/stable/2016-03-01/transformations.json + - $(this-folder)/Microsoft.StreamAnalytics/stable/2016-03-01/functions.json + - $(this-folder)/Microsoft.StreamAnalytics/stable/2016-03-01/subscriptions.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/subscription/resource-manager/Microsoft.Subscription/preview/2018-03-01-preview/operations.json b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-03-01-preview/operations.json new file mode 100644 index 000000000000..25d1a6bb523d --- /dev/null +++ b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-03-01-preview/operations.json @@ -0,0 +1,136 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-03-01-preview", + "title": "SubscriptionClient", + "description": "Subscription client provides an interface to create and manage Azure subscriptions programmatically." + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/providers/Microsoft.Subscription/operations": { + "get": { + "description": "Lists all of the available Microsoft.Subscription API operations.", + "operationId": "Operations_List", + "x-ms-examples": { + "getOperations": { + "$ref": "./examples/getOperations.json" + } + }, + "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" + } + } + } + } + } + }, + "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" + } + } + }, + "OperationListResult": { + "description": "Result of the request to list 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." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "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.Subscription", + "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" + } + } + } + } + } + }, + "parameters": { + "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 2015-06-01" + } + }, + "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/subscription/resource-manager/Microsoft.Subscription/preview/2018-03-01-preview/subscriptions.json b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-03-01-preview/subscriptions.json index 85cba1b8d908..a62e75833824 100644 --- a/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-03-01-preview/subscriptions.json +++ b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-03-01-preview/subscriptions.json @@ -16,36 +16,6 @@ "application/json" ], "paths": { - "/providers/Microsoft.Subscription/operations": { - "get": { - "description": "Lists all of the available Microsoft.Subscription API operations.", - "operationId": "Operations_List", - "x-ms-examples": { - "getOperations": { - "$ref": "./examples/getOperations.json" - } - }, - "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" - } - } - } - } - }, "/providers/Microsoft.Subscription/subscriptionOperations": { "get": { "description": "Lists all of the available pending Microsoft.Subscription API operations.", @@ -142,7 +112,7 @@ "description": "The created subscription object.", "properties": { "subscriptionLink": { - "description": "The link to the new subscription.", + "description": "The link to the new subscription. Use this link to check the status of subscription creation operation.", "type": "string" } } @@ -197,7 +167,7 @@ } }, "AdPrincipal": { - "description": "Active Directory Principal for subscription creation delegated permission", + "description": "Active Directory Principal who’ll get owner access on the new subscription.", "properties": { "objectId": { "description": "Object id of the Principal", @@ -237,49 +207,6 @@ "type": "string" } } - }, - "OperationListResult": { - "description": "Result of the request to list 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." - }, - "nextLink": { - "type": "string", - "description": "URL to get the next set of operation list results if there are any." - } - } - }, - "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.Subscription", - "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" - } - } - } - } } }, "parameters": { diff --git a/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-11-01-preview/examples/createSubscription.json b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-11-01-preview/examples/createSubscription.json index a8ed928e2fd0..8232e7c8acc8 100644 --- a/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-11-01-preview/examples/createSubscription.json +++ b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-11-01-preview/examples/createSubscription.json @@ -4,14 +4,13 @@ "invoiceSectionName": "b859d705-1ed7-4769-9d4b-19238e9e8ac2_10_31", "api-version": "2018-11-01-preview", "body": { - "displayName": "Test Ea Azure Sub", + "displayName": "Contoso MCA subscription", "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/12a6eed9-5d39-4103-a5db-2db1db0a8c67/billingProfiles/dbcb81c8-cda9-4b01-b9fc-831e6a2e152e", "skuId": "0001", - "costCenter": "myCostCenter123", + "costCenter": "135366376", "owner": { "objectId": "973034ff-acb7-409c-b731-e789672c7b31" - }, - "additionalParameters": {} + } } }, "responses": { diff --git a/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-11-01-preview/examples/getOperations.json b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-11-01-preview/examples/getOperations.json deleted file mode 100644 index 2ada8c51e381..000000000000 --- a/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-11-01-preview/examples/getOperations.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "api-version": "2018-11-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Subscription/createSubscription/action", - "display": { - "provider": "Microsoft Subscription", - "resource": "Resources", - "operation": "Create an Azure subscription" - } - } - ] - } - } - } -} diff --git a/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-11-01-preview/subscriptions.json b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-11-01-preview/subscriptions.json index 4be926aea563..46dc503a77f0 100644 --- a/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-11-01-preview/subscriptions.json +++ b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-11-01-preview/subscriptions.json @@ -16,36 +16,6 @@ "application/json" ], "paths": { - "/providers/Microsoft.Subscription/operations": { - "get": { - "description": "Lists all of the available Microsoft.Subscription API operations.", - "operationId": "Operations_List", - "x-ms-examples": { - "getOperations": { - "$ref": "./examples/getOperations.json" - } - }, - "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" - } - } - } - } - }, "/providers/Microsoft.Subscription/subscriptionOperations/{operationId}": { "get": { "description": "Get the status of the pending Microsoft.Subscription API operations.", @@ -92,7 +62,7 @@ }, "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Subscription/createSubscription": { "post": { - "description": "Creates an Azure subscription", + "description": "The operation to create a new Azure subscription", "operationId": "SubscriptionFactory_CreateSubscription", "x-ms-examples": { "createSubscription": { @@ -131,14 +101,14 @@ { "name": "billingAccountName", "in": "path", - "description": "The name of the commerce root billing account.", + "description": "The name of the Microsoft Customer Agreement billing account for which you want to create the subscription.", "required": true, "type": "string" }, { "name": "invoiceSectionName", "in": "path", - "description": "The name of the invoice section.", + "description": "The name of the invoice section in the billing account for which you want to create the subscription.", "required": true, "type": "string" }, @@ -151,7 +121,7 @@ "description": "The subscription creation parameters.", "required": true, "schema": { - "$ref": "#/definitions/SubscriptionCreationParameters" + "$ref": "#/definitions/ModernSubscriptionCreationParameters" } } ] @@ -163,34 +133,43 @@ "description": "The created subscription object.", "properties": { "subscriptionLink": { - "description": "The link to the new subscription.", + "description": "The link to the new subscription. Use this link to check the status of subscription creation operation.", "type": "string" } } }, - "SubscriptionCreationParameters": { - "description": "Subscription Creation Parameters required to create a new Azure subscription.", + "ModernSubscriptionCreationParameters": { + "description": "The parameters required to create a new subscription.", + "required": [ + "displayName", + "billingProfileId", + "skuId" + ], "properties": { "displayName": { - "description": "The display name of the subscription.", + "description": "The friendly name of the subscription.", "type": "string" }, "billingProfileId": { - "description": "The ARM id of the billing profile.", + "description": "The ARM ID of the billing profile for which you want to create the subscription.", "type": "string" }, "skuId": { - "description": "The commerce id of the sku.", + "description": "The SKU ID of the Azure plan. Azure plan determines the pricing and service-level agreement of the subscription. Use 001 for Microsoft Azure Plan and 002 for Microsoft Azure Plan for DevTest.", "type": "string" }, "costCenter": { - "description": "optional customer cost center", + "description": "If set, the cost center will show up on the Azure usage and charges file.", "type": "string" }, "owner": { - "description": "rbac owner of the subscription", + "description": "If specified, the AD principal will get owner access to the subscription, along with the user who is performing the create subscription operation", "$ref": "#/definitions/AdPrincipal" }, + "managementGroupId": { + "description": "The identifier of the management group to which this subscription will be associated.", + "type": "string" + }, "additionalParameters": { "description": "Additional, untyped parameters to support custom subscription creation scenarios.", "type": "object", @@ -215,7 +194,7 @@ } }, "AdPrincipal": { - "description": "Active Directory Principal for subscription creation delegated permission", + "description": "Active Directory Principal who’ll get owner access on the new subscription.", "properties": { "objectId": { "description": "Object id of the Principal", diff --git a/specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/examples/enableSubscription.json b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/examples/enableSubscription.json new file mode 100644 index 000000000000..eb3b770d1e8a --- /dev/null +++ b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/examples/enableSubscription.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "7948bcee-488c-47ce-941c-38e20ede803d", + "api-version": "2019-03-01-preview" + }, + "responses": { + "200": { + "body": { + "value": "7948bcee-488c-47ce-941c-38e20ede803d" + } + } + } +} diff --git a/specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/examples/getOperations.json b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/examples/getOperations.json deleted file mode 100644 index 230ba7cab4ae..000000000000 --- a/specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/examples/getOperations.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "api-version": "2019-03-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Subscription/cancel/action", - "display": { - "provider": "Microsoft Subscription", - "resource": "Resources", - "operation": "Cancels the subscription" - } - }, - { - "name": "Microsoft.Subscription/rename/action", - "display": { - "provider": "Microsoft Subscription", - "resource": "Resources", - "operation": "Renames the subscription" - } - } - ] - } - } - } -} diff --git a/specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/subscriptions.json b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/subscriptions.json index ecd855d7c54f..a374aa242204 100644 --- a/specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/subscriptions.json +++ b/specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/subscriptions.json @@ -16,16 +16,19 @@ "application/json" ], "paths": { - "/providers/Microsoft.Subscription/operations": { - "get": { - "description": "Lists all of the available Microsoft.Subscription API operations.", - "operationId": "Operations_List", + "/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/cancel": { + "post": { + "operationId": "Subscriptions_Cancel", "x-ms-examples": { - "getOperations": { - "$ref": "./examples/getOperations.json" + "cancelSubscription": { + "$ref": "./examples/cancelSubscription.json" } }, + "description": "The operation to cancel a subscription", "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, { "$ref": "#/parameters/apiVersionParameter" } @@ -34,11 +37,11 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/OperationListResult" + "$ref": "#/definitions/CanceledSubscriptionId" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Describes the error if the operation is not successful.", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -46,19 +49,22 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/cancel": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/rename": { "post": { - "operationId": "Subscriptions_Cancel", + "operationId": "Subscriptions_Rename", "x-ms-examples": { - "cancelSubscription": { - "$ref": "./examples/cancelSubscription.json" + "renameSubscription": { + "$ref": "./examples/renameSubscription.json" } }, - "description": "Cancels the subscription", + "description": "The operation to rename a subscription", "parameters": [ { "$ref": "#/parameters/subscriptionIdParameter" }, + { + "$ref": "#/parameters/subscriptionNameParameter" + }, { "$ref": "#/parameters/apiVersionParameter" } @@ -67,11 +73,11 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/CanceledSubscriptionId" + "$ref": "#/definitions/RenamedSubscriptionId" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Describes the error if the operation is not successful.", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -79,22 +85,19 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/rename": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/enable": { "post": { - "operationId": "Subscriptions_Rename", + "operationId": "Subscriptions_Enable", "x-ms-examples": { - "renameSubscription": { - "$ref": "./examples/renameSubscription.json" + "enableSubscription": { + "$ref": "./examples/enableSubscription.json" } }, - "description": "Renames the subscription", + "description": "The operation to enable a subscription", "parameters": [ { "$ref": "#/parameters/subscriptionIdParameter" }, - { - "$ref": "#/parameters/subscriptionNameParameter" - }, { "$ref": "#/parameters/apiVersionParameter" } @@ -103,11 +106,11 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/RenamedSubscriptionId" + "$ref": "#/definitions/EnabledSubscriptionId" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Describes the error if the operation is not successful.", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -132,20 +135,30 @@ } }, "CanceledSubscriptionId": { - "description": "Canceled Subscription Id", + "description": "The ID of the canceled subscription", "properties": { "value": { - "description": "Canceled Subscription Id", + "description": "The ID of the canceled subscription", "type": "string", "readOnly": true } } }, "RenamedSubscriptionId": { - "description": "Renamed Subscription Id", + "description": "The ID of the subscriptions that is being renamed", + "properties": { + "value": { + "description": "The ID of the subscriptions that is being renamed", + "type": "string", + "readOnly": true + } + } + }, + "EnabledSubscriptionId": { + "description": "The ID of the subscriptions that is being enabled", "properties": { "value": { - "description": "Renamed Subscription Id", + "description": "The ID of the subscriptions that is being enabled", "type": "string", "readOnly": true } @@ -153,7 +166,7 @@ }, "SubscriptionName": { "type": "object", - "description": "New name of the subscription.", + "description": "The new name of the subscription.", "properties": { "subscriptionName": { "type": "string", diff --git a/specification/subscription/resource-manager/readme.csharp.md b/specification/subscription/resource-manager/readme.csharp.md index 05fbc35eb98d..f54aada53323 100644 --- a/specification/subscription/resource-manager/readme.csharp.md +++ b/specification/subscription/resource-manager/readme.csharp.md @@ -19,7 +19,7 @@ csharp: ``` yaml $(csharp) && !$(multiapi) && !$(profile) namespace: Microsoft.Azure.Management.Subscription -output-folder: $(csharp-sdks-folder)/Subscription/Management.Subscription/Generated +output-folder: $(csharp-sdks-folder)/subscription/Microsoft.Azure.Management.Subscription/src/Generated ``` ## Batch settings diff --git a/specification/subscription/resource-manager/readme.md b/specification/subscription/resource-manager/readme.md index eb564637e3df..3f86cad98443 100644 --- a/specification/subscription/resource-manager/readme.md +++ b/specification/subscription/resource-manager/readme.md @@ -40,6 +40,9 @@ These settings apply only when `--tag=package-2019-03-preview` is specified on t ``` yaml $(tag) == 'package-2019-03-preview' input-file: - Microsoft.Subscription/preview/2019-03-01-preview/subscriptions.json +- Microsoft.Subscription/preview/2018-11-01-preview/subscriptions.json +- Microsoft.Subscription/preview/2018-03-01-preview/subscriptions.json +- Microsoft.Subscription/preview/2018-03-01-preview/operations.json - Microsoft.Subscription/stable/2016-06-01/subscriptions.json title: SubscriptionClient description: The subscription client @@ -89,6 +92,7 @@ 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-node @@ -145,3 +149,33 @@ title: SubscriptionClient description: The subscription client ``` + +## 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.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 + +``` + +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/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage1.json deleted file mode 100644 index c201006a93fd..000000000000 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage1.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "api-version": "2018-11-01-preview", - "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", - "parameters": { - "searchString": "floor 100" - } - }, - "responses": { - "200": { - "body": { - "instances": [ - { - "timeSeriesId": [ - "006dfc2d-0324-4937-998c-d16f3b4f1952", - "T1" - ], - "highlights": { - "timeSeriesIds": [ - "006dfc2d-0324-4937-998c-d16f3b4f1952", - "T1" - ], - "type": "DefaultType", - "name": "instance1", - "description": "floor 100", - "hierarchyIds": [ - "1643004c-0a84-48a5-80e5-7688c5ae9295" - ], - "instanceFieldNames": [ - "state", - "city" - ], - "instanceFieldValues": [ - "California", - "Los Angeles" - ] - } - } - ], - "instancesContinuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" - } - } - } -} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage2.json deleted file mode 100644 index 82f18fdeecf3..000000000000 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage2.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "api-version": "2018-11-01-preview", - "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", - "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", - "parameters": { - "searchString": "floor 100" - } - }, - "responses": { - "200": { - "body": { - "instances": [ - { - "timeSeriesId": [ - "18672e3d-2beb-4007-9846-042b09ef3c72", - "T1" - ], - "highlights": { - "timeSeriesIds": [ - "18672e3d-2beb-4007-9846-042b09ef3c72", - "T1" - ], - "type": "DefaultType", - "name": "instance1", - "description": "floor 100", - "hierarchyIds": [ - "1643004c-0a84-48a5-80e5-7688c5ae9295" - ], - "instanceFieldNames": [ - "state", - "city" - ], - "instanceFieldValues": [ - "California", - "Los Angeles" - ] - } - } - ], - "instancesContinuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" - } - } - } -} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage3.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage3.json deleted file mode 100644 index d32ea0262194..000000000000 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage3.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2018-11-01-preview", - "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", - "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", - "parameters": { - "searchString": "floor 100" - } - }, - "responses": { - "200": { - "body": { - "instances": [] - } - } - } -} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json index 1d6d698130d6..927530c2be95 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json @@ -53,6 +53,7 @@ "responses": { "200": { "body": { + "progress": 50.0, "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" } } diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json index 64cdb0420ba5..02e41bcb8205 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json @@ -136,7 +136,8 @@ null ] } - ] + ], + "progress": 100.0 } } } diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesWithSampleInterpolation.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesWithSampleInterpolation.json new file mode 100644 index 000000000000..907d9093d875 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesWithSampleInterpolation.json @@ -0,0 +1,114 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", + "parameters": { + "aggregateSeries": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "interval": "PT1M", + "inlineVariables": { + "LinearSampleInterpolation": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature" + }, + "filter": null, + "interpolation": { + "kind": "Linear", + "boundary": { + "span": "P1D" + } + }, + "aggregation": { + "tsx": "left($value)" + } + }, + "StepSampleInterpolation": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature" + }, + "filter": null, + "interpolation": { + "kind": "Step", + "boundary": { + "span": "P1D" + } + }, + "aggregation": { + "tsx": "left($value)" + } + } + }, + "projectedVariables": [ + "LinearSampleInterpolation", + "StepSampleInterpolation" + ] + } + } + }, + "responses": { + "200": { + "body": { + "timestamps": [ + "2016-08-01T00:00:00Z", + "2016-08-01T00:01:00Z", + "2016-08-01T00:02:00Z", + "2016-08-01T00:03:00Z", + "2016-08-01T00:04:00Z", + "2016-08-01T00:05:00Z", + "2016-08-01T00:06:00Z", + "2016-08-01T00:07:00Z", + "2016-08-01T00:08:00Z", + "2016-08-01T00:09:00Z", + "2016-08-01T00:10:00Z" + ], + "properties": [ + { + "name": "LinearSampleInterpolation", + "type": "Double", + "values": [ + 50.0, + 60.0, + 60.0, + 60.0, + 60.0, + 60.0, + 60.0, + 60.0, + 60.0, + 60.0, + 62.0 + ] + }, + { + "name": "StepSampleInterpolation", + "type": "Double", + "values": [ + 71.25, + 85.0, + 82.5, + 80.0, + 89.166666666666671, + 75.0, + 90.0, + 75.833333333333329, + 85.0, + 82.5, + 84.0 + ] + } + ], + "progress": 100.0 + } + } + } +} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage1.json index 8ccd3a16d2ac..a67cee0911c6 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage1.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage1.json @@ -31,6 +31,7 @@ "responses": { "200": { "body": { + "progress": 50.0, "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" } } diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage2.json index c5632f969536..482e6a171bbf 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage2.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage2.json @@ -78,6 +78,7 @@ ] } ], + "progress": 50.0, "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=" } } diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage3.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage3.json index faa557dcdd37..8a42d4e8087c 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage3.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage3.json @@ -51,6 +51,7 @@ ] } ], + "progress": 50.0, "continuationToken": "aXsic2tpcCI6MTAbCDewidGFrZSI6MTAwMH0=" } } diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage4.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage4.json index 635bb387b0c3..1dc95e83faf2 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage4.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage4.json @@ -33,7 +33,8 @@ "200": { "body": { "timestamps": [], - "properties": [] + "properties": [], + "progress": 100.0 } } } diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsWithTakePage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsWithTakePage1.json new file mode 100644 index 000000000000..759c1a333a30 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsWithTakePage1.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "getEvents": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "filter": { + "tsx": "($event.Value.Double != null) OR ($event.Status.String = 'Good')" + }, + "projectedProperties": [ + { + "name": "Building", + "type": "String" + }, + { + "name": "Temperature", + "type": "Double" + } + ], + "take": 10 + } + } + }, + "responses": { + "200": { + "body": { + "progress": 50.0, + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" + } + } + } +} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsWithTakePage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsWithTakePage2.json new file mode 100644 index 000000000000..7bdf6934dfc1 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsWithTakePage2.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", + "parameters": { + "getEvents": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "filter": { + "tsx": "($event.Value.Double != null) OR ($event.Status.String = 'Good')" + }, + "projectedProperties": [ + { + "name": "Building", + "type": "String" + }, + { + "name": "Temperature", + "type": "Double" + } + ], + "take": 10 + } + } + }, + "responses": { + "200": { + "body": { + "timestamps": [ + "2016-08-01T00:00:10Z", + "2016-08-01T00:00:11Z", + "2016-08-01T00:00:12Z", + "2016-08-01T00:00:13Z", + "2016-08-01T00:00:14Z", + "2016-08-01T00:00:15Z", + "2016-08-01T00:00:16Z", + "2016-08-01T00:00:17Z", + "2016-08-01T00:00:18Z", + "2016-08-01T00:00:19Z" + ], + "properties": [ + { + "name": "Building", + "type": "String", + "values": [ + "Millenium", + "Millenium", + "Millenium", + "Millenium", + "Millenium", + "Millenium", + "Millenium", + "Millenium", + "Millenium", + "Millenium" + ] + }, + { + "name": "Temperature", + "type": "Double", + "values": [ + 65.125, + 65.375, + 65.625, + 65.875, + 66.125, + 66.375, + 66.625, + 66.875, + 67.125, + 67.375 + ] + } + ], + "progress": 100.0, + "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=" + } + } + } +} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json index d6728874a152..768d28807304 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json @@ -34,6 +34,7 @@ "responses": { "200": { "body": { + "progress": 50.0, "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" } } diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json index ebc36eda5bbd..d795bd8c745a 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json @@ -67,6 +67,7 @@ ] } ], + "progress": 50.0, "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=" } } diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json index 6f586344d7d2..a138be65021e 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json @@ -46,7 +46,8 @@ 67.825 ] } - ] + ], + "progress": 100.0 } } } diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesWithTakePage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesWithTakePage1.json new file mode 100644 index 000000000000..380fd2ad94d3 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesWithTakePage1.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "getSeries": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "filter": null, + "inlineVariables": { + "temperatures": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature" + }, + "filter": null, + "aggregation": { + "tsx": "avg($value)" + } + } + }, + "projectedVariables": [ + "temperatures" + ], + "take": 10 + } + } + }, + "responses": { + "200": { + "body": { + "progress": 50.0, + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" + } + } + } +} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesWithTakePage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesWithTakePage2.json new file mode 100644 index 000000000000..aeec1e2fba8f --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesWithTakePage2.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", + "parameters": { + "getSeries": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "filter": null, + "inlineVariables": { + "temperatures": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature" + }, + "filter": null, + "aggregation": { + "tsx": "avg($value)" + } + } + }, + "projectedVariables": [ + "temperatures" + ], + "take": 10 + } + } + }, + "responses": { + "200": { + "body": { + "timestamps": [ + "2016-08-01T00:00:10Z", + "2016-08-01T00:00:11Z", + "2016-08-01T00:00:12Z", + "2016-08-01T00:00:13Z", + "2016-08-01T00:00:14Z", + "2016-08-01T00:00:15Z", + "2016-08-01T00:00:16Z", + "2016-08-01T00:00:17Z", + "2016-08-01T00:00:18Z", + "2016-08-01T00:00:19Z", + "2016-08-01T00:00:20Z" + ], + "properties": [ + { + "name": "temperatures", + "type": "Double", + "values": [ + 65.125, + 65.375, + 65.625, + 65.875, + 66.125, + 66.375, + 66.625, + 66.875, + 67.125, + 67.375, + 67.625 + ] + } + ], + "progress": 100.0, + "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=" + } + } + } +} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesDefault.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesDefault.json new file mode 100644 index 000000000000..a1e12a720c82 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesDefault.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "searchString": "floor 100" + } + }, + "responses": { + "200": { + "body": { + "instances": { + "hits": [ + { + "timeSeriesId": [ + "Id1One", + "Id2One", + "1.0" + ], + "name": "instance1", + "typeId": "1be09af9-f089-4d6b-9f0b-48018b5f7393", + "hierarchyIds": [ + "1643004c-0a84-48a5-80e5-7688c5ae9295" + ], + "highlights": null + }, + { + "timeSeriesId": [ + "Id1Two", + "Id2Two", + "2.0" + ], + "name": "instance2", + "typeId": "1be09af9-f089-4d6b-9f0b-48018b5f7393", + "hierarchyIds": [ + "1643004c-0a84-48a5-80e5-7688c5ae9295" + ], + "highlights": null + } + ], + "hitCount": 2, + "continuationToken": null + }, + "hierarchyNodes": null + } + } + } +} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesExpandHierarchiesOnly.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesExpandHierarchiesOnly.json new file mode 100644 index 000000000000..c2443f272c75 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesExpandHierarchiesOnly.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "searchString": "floor 100", + "path": [ + "Location" + ], + "instances": null, + "hierarchies": { + "expand": { + "kind": "UntilChildren" + }, + "sort": { + "by": "Name" + }, + "pageSize": 2 + } + } + }, + "responses": { + "200": { + "body": { + "instances": { + "hits": [], + "hitCount": 0, + "continuationToken": null + }, + "hierarchyNodes": { + "hits": [ + { + "name": "California", + "cumulativeInstanceCount": 2, + "hierarchyNodes": { + "hits": [ + { + "name": "San Diego", + "cumulativeInstanceCount": 1, + "hierarchyNodes": null + }, + { + "name": "San Francisco", + "cumulativeInstanceCount": 1, + "hierarchyNodes": null + } + ], + "hitCount": 2, + "continuationToken": null + } + } + ], + "hitCount": 1, + "continuationToken": null + } + } + } + } +} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage1.json new file mode 100644 index 000000000000..a4053f07d4b6 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage1.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "searchString": "floor 100", + "path": null, + "instances": { + "recursive": true, + "sort": { + "by": "Rank" + }, + "highlights": true, + "pageSize": 1 + }, + "hierarchies": { + "expand": { + "kind": "UntilChildren" + }, + "sort": { + "by": "CumulativeInstanceCount" + }, + "pageSize": 1 + } + } + }, + "responses": { + "200": { + "body": { + "instances": { + "hits": [ + { + "timeSeriesId": [ + "Id1Two", + "Id2Two", + "2.0" + ], + "name": "instance2", + "typeId": "1be09af9-f089-4d6b-9f0b-48018b5f7393", + "hierarchyIds": [ + "1643004c-0a84-48a5-80e5-7688c5ae9295" + ], + "highlights": { + "timeSeriesId": [ + "Id1Two", + "Id2Two", + "2.0" + ], + "typeName": "DefaultType", + "name": "instance2", + "description": "floor 100", + "hierarchyIds": [ + "1643004c-0a84-48a5-80e5-7688c5ae9295" + ], + "hierarchyNames": [ + "Location" + ], + "instanceFieldNames": [ + "state", + "city" + ], + "instanceFieldValues": [ + "California", + "San Francisco" + ] + } + } + ], + "hitCount": 2, + "continuationToken": "c3sic2tpcCI6MiwidGFrZSI6MiwicmVxdWVzdEhhc2hDb2RlIjotNTE3MDUxOTg0LCJlbnZpcm9ubWVudElkIjoiYmY0M2YxMzMtM2Y2OC00ZWMwLWJjYjQtZmQ2NDUzMGU0MjU2In0=" + }, + "hierarchyNodes": { + "hits": [ + { + "name": "Location", + "cumulativeInstanceCount": 2, + "hierarchyNodes": { + "hits": [ + { + "name": "California", + "cumulativeInstanceCount": 2, + "hierarchyNodes": { + "hits": [ + { + "name": "San Francisco", + "cumulativeInstanceCount": 1, + "hierarchyNodes": null + } + ], + "hitCount": 2, + "continuationToken": "aHsic2tpcCI6MiwidGFrZSI6MiwicmVxdWVzdEhhc2hDb2RlIjotNzA4NTgyODU0LCJlbnZpcm9ubWVudElkIjoiYmY0M2YxMzMtM2Y2OC00ZWMwLWJjYjQtZmQ2NDUzMGU0MjU2In0=" + } + } + ], + "hitCount": 1, + "continuationToken": null + } + } + ], + "hitCount": 1, + "continuationToken": null + } + } + } + } +} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage2.json new file mode 100644 index 000000000000..0557d31a3664 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage2.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "c3sic2tpcCI6MiwidGFrZSI6MiwicmVxdWVzdEhhc2hDb2RlIjotNTE3MDUxOTg0LCJlbnZpcm9ubWVudElkIjoiYmY0M2YxMzMtM2Y2OC00ZWMwLWJjYjQtZmQ2NDUzMGU0MjU2In0=", + "parameters": { + "searchString": "floor 100", + "path": null, + "instances": { + "recursive": true, + "sort": { + "by": "Rank" + }, + "highlights": true, + "pageSize": 1 + }, + "hierarchies": { + "expand": { + "kind": "UntilChildren" + }, + "sort": { + "by": "CumulativeInstanceCount" + }, + "pageSize": 1 + } + } + }, + "responses": { + "200": { + "body": { + "instances": { + "hits": [ + { + "timeSeriesId": [ + "Id1One", + "Id2One", + "1.0" + ], + "name": "instance1", + "typeId": "1be09af9-f089-4d6b-9f0b-48018b5f7393", + "hierarchyIds": [ + "1643004c-0a84-48a5-80e5-7688c5ae9295" + ], + "highlights": { + "timeSeriesId": [ + "Id1One", + "Id2One", + "1.0" + ], + "typeName": "DefaultType", + "name": "instance1", + "description": "floor 100", + "hierarchyIds": [ + "1643004c-0a84-48a5-80e5-7688c5ae9295" + ], + "hierarchyNames": [ + "Location" + ], + "instanceFieldNames": [ + "state", + "city" + ], + "instanceFieldValues": [ + "California", + "Los Angeles" + ] + } + } + ], + "hitCount": 2, + "continuationToken": null + }, + "hierarchyNodes": null + } + } + } +} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage3.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage3.json new file mode 100644 index 000000000000..f3aa7704c26c --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage3.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aHsic2tpcCI6MiwidGFrZSI6MiwicmVxdWVzdEhhc2hDb2RlIjotNzA4NTgyODU0LCJlbnZpcm9ubWVudElkIjoiYmY0M2YxMzMtM2Y2OC00ZWMwLWJjYjQtZmQ2NDUzMGU0MjU2In0=", + "parameters": { + "searchString": "floor 100", + "path": null, + "instances": { + "recursive": true, + "sort": { + "by": "Rank" + }, + "highlights": true, + "pageSize": 1 + }, + "hierarchies": { + "expand": { + "kind": "UntilChildren" + }, + "sort": { + "by": "CumulativeInstanceCount" + }, + "pageSize": 1 + } + } + }, + "responses": { + "200": { + "body": { + "instances": null, + "hierarchyNodes": { + "hits": [ + { + "name": "Location", + "cumulativeInstanceCount": 2, + "hierarchyNodes": { + "hits": [ + { + "name": "California", + "cumulativeInstanceCount": 2, + "hierarchyNodes": { + "hits": [ + { + "name": "San Diego", + "cumulativeInstanceCount": 1, + "hierarchyNodes": null + } + ], + "hitCount": 2, + "continuationToken": "aHsic2tpcCI6MiwidGFrZSI6MiwicmVxdWVzdEhhc2hDb2RlIjotNzA4NTgyODU0LCJlbnZpcm9ubWVudElkIjoiYmY0M2YxMzMtM2Y2OC00ZWMwLWJjYjQtZmQ2NDUzMGU0MjU2In0=" + } + } + ], + "hitCount": 1, + "continuationToken": null + } + } + ], + "hitCount": 1, + "continuationToken": null + } + } + } + } +} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesOneLevel.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesOneLevel.json new file mode 100644 index 000000000000..f59e6e7f858f --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesOneLevel.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "searchString": "floor 100", + "path": null, + "instances": { + "recursive": false, + "sort": { + "by": "DisplayName" + }, + "highlights": false, + "pageSize": 2 + }, + "hierarchies": { + "expand": { + "kind": "OneLevel" + }, + "sort": { + "by": "Name" + }, + "pageSize": 2 + } + } + }, + "responses": { + "200": { + "body": { + "instances": { + "hits": [], + "hitCount": 0, + "continuationToken": null + }, + "hierarchyNodes": { + "hits": [ + { + "name": "Location", + "cumulativeInstanceCount": 2, + "hierarchyNodes": null + } + ], + "hitCount": 1, + "continuationToken": null + } + } + } + } +} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesRecursive.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesRecursive.json new file mode 100644 index 000000000000..74732603fcbb --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesRecursive.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "searchString": "floor 100", + "path": null, + "instances": { + "recursive": true, + "sort": { + "by": "DisplayName" + }, + "highlights": false, + "pageSize": 2 + }, + "hierarchies": null + } + }, + "responses": { + "200": { + "body": { + "instances": { + "hits": [ + { + "timeSeriesId": [ + "Id1One", + "Id2One", + "1.0" + ], + "name": "instance1", + "typeId": "1be09af9-f089-4d6b-9f0b-48018b5f7393", + "hierarchyIds": [ + "1643004c-0a84-48a5-80e5-7688c5ae9295" + ], + "highlights": null + }, + { + "timeSeriesId": [ + "Id1Two", + "Id2Two", + "2.0" + ], + "name": "instance2", + "typeId": "1be09af9-f089-4d6b-9f0b-48018b5f7393", + "hierarchyIds": [ + "1643004c-0a84-48a5-80e5-7688c5ae9295" + ], + "highlights": null + } + ], + "hitCount": 2, + "continuationToken": null + }, + "hierarchyNodes": null + } + } + } +} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesUntilChildren.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesUntilChildren.json new file mode 100644 index 000000000000..5f7b15f9c180 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesUntilChildren.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "searchString": "floor 100", + "path": [ + "Location" + ], + "instances": { + "recursive": false, + "sort": { + "by": "DisplayName" + }, + "highlights": false, + "pageSize": 2 + }, + "hierarchies": { + "expand": { + "kind": "UntilChildren" + }, + "sort": { + "by": "Name" + }, + "pageSize": 2 + } + } + }, + "responses": { + "200": { + "body": { + "instances": { + "hits": [], + "hitCount": 0, + "continuationToken": null + }, + "hierarchyNodes": { + "hits": [ + { + "name": "California", + "cumulativeInstanceCount": 2, + "hierarchyNodes": { + "hits": [ + { + "name": "San Diego", + "cumulativeInstanceCount": 1, + "hierarchyNodes": null + }, + { + "name": "San Francisco", + "cumulativeInstanceCount": 1, + "hierarchyNodes": null + } + ], + "hitCount": 2, + "continuationToken": null + } + } + ], + "hitCount": 1, + "continuationToken": null + } + } + } + } +} diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json index a5aa8d44eda0..9172a5155e10 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json @@ -291,6 +291,9 @@ "QueryAggregateSeriesPage2": { "$ref": "./examples/QueryAggregateSeriesPage2.json" }, + "QueryAggregateSeriesWithSampleInterpolation": { + "$ref": "./examples/QueryAggregateSeriesWithSampleInterpolation.json" + }, "QueryGetEventsPage1": { "$ref": "./examples/QueryGetEventsPage1.json" }, @@ -303,6 +306,12 @@ "QueryGetEventsPage4": { "$ref": "./examples/QueryGetEventsPage4.json" }, + "QueryGetEventsWithTakePage1": { + "$ref": "./examples/QueryGetEventsWithTakePage1.json" + }, + "QueryGetEventsWithTakePage2": { + "$ref": "./examples/QueryGetEventsWithTakePage2.json" + }, "QueryGetSeriesPage1": { "$ref": "./examples/QueryGetSeriesPage1.json" }, @@ -311,6 +320,12 @@ }, "QueryGetSeriesPage3": { "$ref": "./examples/QueryGetSeriesPage3.json" + }, + "QueryGetSeriesWithTakePage1": { + "$ref": "./examples/QueryGetSeriesWithTakePage1.json" + }, + "QueryGetSeriesWithTakePage2": { + "$ref": "./examples/QueryGetSeriesWithTakePage2.json" } }, "parameters": [ @@ -575,14 +590,29 @@ "operationId": "TimeSeriesInstances_Search", "description": "Partial list of hits on search for time series instances based on instance attributes.", "x-ms-examples": { - "InstancesSearchPage1": { - "$ref": "./examples/InstancesSearchPage1.json" + "SearchInstancesHierarchiesDefaultInputPage1": { + "$ref": "./examples/SearchInstancesHierarchiesDefaultInputPage1.json" + }, + "SearchInstancesHierarchiesDefaultInputPage2": { + "$ref": "./examples/SearchInstancesHierarchiesDefaultInputPage2.json" }, - "InstancesSearchPage2": { - "$ref": "./examples/InstancesSearchPage2.json" + "SearchInstancesHierarchiesDefaultInputPage3": { + "$ref": "./examples/SearchInstancesHierarchiesDefaultInputPage3.json" }, - "InstancesSearchPage3": { - "$ref": "./examples/InstancesSearchPage3.json" + "SearchInstancesUntilChildren": { + "$ref": "./examples/SearchInstancesUntilChildren.json" + }, + "SearchInstancesDefault": { + "$ref": "./examples/SearchInstancesDefault.json" + }, + "SearchInstancesExpandHierarchiesOnly": { + "$ref": "./examples/SearchInstancesExpandHierarchiesOnly.json" + }, + "SearchInstancesRecursive": { + "$ref": "./examples/SearchInstancesRecursive.json" + }, + "SearchInstancesOneLevel": { + "$ref": "./examples/SearchInstancesOneLevel.json" } }, "parameters": [ @@ -597,7 +627,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/InstancesSearchRequest" + "$ref": "#/definitions/SearchInstancesRequest" }, "description": "Time series instances search request body." }, @@ -612,7 +642,7 @@ "200": { "description": "Successful search response.", "schema": { - "$ref": "#/definitions/InstancesSearchResponsePage" + "$ref": "#/definitions/SearchInstancesResponsePage" }, "headers": { "x-ms-request-id": { @@ -1015,6 +1045,11 @@ "items": { "$ref": "#/definitions/EventProperty" } + }, + "take": { + "description": "Maximum number of property values in the whole response set, not the maximum number of property values per page. Defaults to 10,000 when not set. Maximum value of take can be 250,000.", + "type": "integer", + "format": "int32" } }, "required": [ @@ -1051,6 +1086,11 @@ "additionalProperties": { "$ref": "#/definitions/Variable" } + }, + "take": { + "description": "Maximum number of property values in the whole response set, not the maximum number of property values per page. Defaults to 10,000 when not set. Maximum value of take can be 250,000.", + "type": "integer", + "format": "int32" } }, "required": [ @@ -1121,6 +1161,34 @@ "tsx" ] }, + "Interpolation": { + "description": "The interpolation operation to be performed on the raw data points. Interpolation is only supported in \"numeric\" variables. Currently, only sampling of interpolated time series is allowed. Allowed aggregate function - eg: left($value). Can be null if no interpolation needs to be applied.", + "type": "object", + "properties": { + "kind": { + "description": "The type of interpolation technique : \"Linear\" or \"Step\".", + "type": "string", + "enum": [ + "Linear", + "Step" + ], + "x-ms-enum": { + "name": "InterpolationKind", + "modelAsString": true + } + }, + "boundary": { + "description": "The time range to the left and right of the search span to be used for Interpolation. This is helpful in scenarios where the data points are missing close to the start or end of the input search span. Can be null.", + "type": "object", + "properties": { + "span": { + "type": "string", + "format": "duration" + } + } + } + } + }, "DateTimeRange": { "description": "The range of time. Cannot be null or negative.", "type": "object", @@ -1155,6 +1223,9 @@ "description": "Value time series expression is used to represent the value of the signal that is going to be aggregated or interpolated. For example, temperature values from the event is represented like this: \"$event.Temperature.Double\".", "$ref": "#/definitions/Tsx" }, + "interpolation": { + "$ref": "#/definitions/Interpolation" + }, "aggregation": { "description": "Aggregation time series expression when kind is \"numeric\" is used to represent the aggregation that needs to be performed on the $value expression. This requires $value to be specified and can only use $value inside the aggregate functions. For example, aggregation for calculating minimum of the $value is written as: \"min($value)\".", "$ref": "#/definitions/Tsx" @@ -1169,7 +1240,7 @@ ] }, "AggregateVariable": { - "description": "Aggregate variable represents any aggregation calculation.", + "description": "Aggregate variable represents any aggregation calculation. Aggregate Variables does not support interpolation.", "x-ms-discriminator-value": "aggregate", "allOf": [ { @@ -1202,6 +1273,9 @@ "filter": { "description": "Filter over the events that restricts the number of events being considered for computation. Example: \"$event.Status.String='Good'\". Optional.", "$ref": "#/definitions/Tsx" + }, + "interpolation": { + "$ref": "#/definitions/Interpolation" } }, "required": [ @@ -1233,6 +1307,12 @@ "items": { "$ref": "#/definitions/PropertyValues" } + }, + "progress": { + "description": "Approximate progress of the query in percentage. It can be between 0 and 100. When the continuation token in the response is null, the progress is expected to be 100.", + "readOnly": true, + "type": "number", + "format": "double" } } } @@ -1777,29 +1857,197 @@ } } }, - "InstancesSearchRequest": { - "description": "Request to search time series instances using a search string.", + "SearchInstancesRequest": { + "description": "Request to execute a search query against time series instances and return matching time series instances.", "type": "object", "properties": { "searchString": { - "description": "Search string for which the instances are required. Must be present, but can be empty string.", + "description": "Query search string that will be matched to the attributes of time series instances. Example: \"floor 100\". Case-insensitive, must be present, but can be empty string.", "type": "string" + }, + "path": { + "description": "Filter on hierarchy path of time series instances. Path is represented as array of string path segments. First element should be hierarchy name. Example: [\"Location\", \"California\"]. Optional, case sensitive, never empty and can be null.", + "type": "array", + "items": { + "type": "string" + } + }, + "instances": { + "description": "Parameters of how to return time series instances. Can be null. When both the instances and hierarchies parameters are null, the instances are returned in the results based on the default values of parameters, and hierarchies are not returned.", + "type": "object", + "$ref": "#/definitions/SearchInstancesParameters" + }, + "hierarchies": { + "description": "Parameters of how to return time series instance hierarchies. If null, hierarchies are not returned. If instances parameter is null and hierarchies parameter is not null, only hierarchies with no instances are returned.", + "type": "object", + "$ref": "#/definitions/SearchInstancesHierarchiesParameters" + } + }, + "required": [ + "searchString" + ] + }, + "SearchInstancesParameters": { + "description": "Parameters of how to return time series instances by search instances call.", + "type": "object", + "properties": { + "recursive": { + "description": "Definition of which instances are returned. When recursive is set to 'true', all instances that have the path that starts with path the path parameter are returned. When recursive is set to 'false', only instances that have the path that exactly matches the path parameter are returned. Using recursive search allows to implement search user experience, while using non-recursive search allows to implement navigation experience. Optional, default is 'true'.", + "type": "boolean" + }, + "sort": { + "description": "Definition of how time series instances are sorted before being returned by search instances call - relevance or alphabetical. Optional, default is \"Rank\".", + "type": "object", + "$ref": "#/definitions/InstancesSortParameter" + }, + "highlights": { + "description": "Definition of highlighted search results or not. When it is set to 'true', the highlighted search results are returned. When it is set to 'false', the highlighted search results are not returned. Default is 'true'.", + "type": "boolean" + }, + "pageSize": { + "description": "Maximum number of instances expected in each page of the result. Defaults to 10 when not set. Ranges from 1 to 100. If there are results beyond the page size, the user can use the continuation token to fetch the next page.", + "type": "integer", + "format": "int32" } } }, - "InstancesSearchResponsePage": { - "description": "Single page of time series instance search results.", + "InstancesSortParameter": { + "description": "Definition of how time series instances are sorted before being returned by search instances call.", + "type": "object", + "properties": { + "by": { + "description": "Value to use for sorting of the time series instances before being returned by search instances call. When it is set to 'Rank', the returned instances are sorted based on the relevance. When it is set to 'DisplayName', the returned results are sorted based on the display name. Display name is the name of the instance if it exists, otherwise, display name is the time series ID. Default is 'Rank'.", + "type": "string", + "enum": [ + "Rank", + "DisplayName" + ], + "x-ms-enum": { + "name": "InstancesSortBy", + "modelAsString": true + } + } + } + }, + "SearchInstancesHierarchiesParameters": { + "description": "Parameter of how to return time series instance hierarchies by search instances call.", + "type": "object", + "properties": { + "expand": { + "description": "Definition of whether to expand hierarchy nodes in the same search instances call. Optional, default is 'UntilChildren'.", + "type": "object", + "$ref": "#/definitions/HierarchiesExpandParameter" + }, + "sort": { + "description": "Definition of sorting of hierarchy nodes. Optional, default is 'CumulativeInstanceCount'.", + "type": "object", + "$ref": "#/definitions/HierarchiesSortParameter" + }, + "pageSize": { + "description": "Maximum number of hierarchies in the same level to return in the same page. Optional, default is 10 when not set. Range is from 1 to 100. If there are results beyond the page size, the continuation token can be used to fetch the next page.", + "type": "integer", + "format": "int32" + } + } + }, + "HierarchiesExpandParameter": { + "description": "Definition of whether to expand hierarchy nodes in the same search instances call.", + "type": "object", + "properties": { + "kind": { + "description": "Kind of the expansion of hierarchy nodes. When it is set to 'UntilChildren', the hierarchy nodes are expanded recursively until there is more than one child. When it is set to 'OneLevel', the hierarchies are expanded only at the single level matching path search instances parameter. Optional, default is 'UntilChildren'.", + "type": "string", + "enum": [ + "UntilChildren", + "OneLevel" + ], + "x-ms-enum": { + "name": "HierarchiesExpandKind", + "modelAsString": true + } + } + } + }, + "HierarchiesSortParameter": { + "description": "Definition of sorting of hierarchy nodes.", + "type": "object", + "properties": { + "by": { + "description": "Value to use for hierarchy node sorting. When it is set to 'CumulativeInstanceCount', the returned hierarchies are sorted based on the total instances belonging to the hierarchy node and its child hierarchy nodes. When it is set to 'Name', the returned hierarchies are sorted based on the hierarchy name. Optional, default is 'CumulativeInstanceCount'.", + "type": "string", + "enum": [ + "CumulativeInstanceCount", + "Name" + ], + "x-ms-enum": { + "name": "HierarchiesSortBy", + "modelAsString": true + } + } + } + }, + "SearchInstancesResponsePage": { + "description": "Single page of the search results.", "type": "object", "properties": { "instances": { - "description": "List of top instances matching the query by relevance. May be empty or null.", + "description": "The instances matching the query based on the input. May be empty or null.", + "readOnly": true, + "type": "object", + "$ref": "#/definitions/SearchInstancesResponse" + }, + "hierarchyNodes": { + "description": "The hierarchy nodes which contains the instances matching the query based on the input. May be empty or null.", + "readOnly": true, + "type": "object", + "$ref": "#/definitions/SearchHierarchyNodesResponse" + } + } + }, + "SearchInstancesResponse": { + "description": "The instances matching the query based on the input. May be empty or null.", + "type": "object", + "properties": { + "hits": { + "description": "The list of instances matching the query based on the input. May be empty.", "readOnly": true, "type": "array", "items": { "$ref": "#/definitions/InstanceHit" } }, - "instancesContinuationToken": { + "hitCount": { + "description": "Total number of instances matching the query based on the input.", + "readOnly": true, + "type": "integer", + "format": "int32" + }, + "continuationToken": { + "description": "If returned, this means that current results represent a partial result. Continuation token allows to get the next page of results. To get the next page of query results, send the same request with continuation token parameter in \"x-ms-continuation\" HTTP header.", + "readOnly": true, + "type": "string" + } + } + }, + "SearchHierarchyNodesResponse": { + "description": "The hierarchy nodes which contains the instances matching the query based on the input. May be empty or null.", + "type": "object", + "properties": { + "hits": { + "description": "The list of hierarchy nodes which contains the instances matching the query based on the input. May be empty.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/HierarchyHit" + } + }, + "hitCount": { + "description": "Total number of hierarchy nodes which contains the instances matching the query based on the input.", + "readOnly": true, + "type": "integer", + "format": "int32" + }, + "continuationToken": { "description": "If returned, this means that current results represent a partial result. Continuation token allows to get the next page of results. To get the next page of query results, send the same request with continuation token parameter in \"x-ms-continuation\" HTTP header.", "readOnly": true, "type": "string" @@ -1807,20 +2055,41 @@ } }, "InstanceHit": { - "description": "Time series instance that is returned by instances search call. Returned instance matched the search string and contains highlighted text to be displayed to the user.", + "description": "Time series instance that is returned by instances search call. Returned instance matched the search request and contains highlighted text to be displayed to the user if it is set to 'true'.", "type": "object", "properties": { "timeSeriesId": { "description": "Time series ID of the time series instance that matched the search request.", "readOnly": true, + "type": "array", "$ref": "#/definitions/TimeSeriesId" }, + "name": { + "description": "Name of the time series instance that matched the search request. May be null.", + "readOnly": true, + "type": "string" + }, + "typeId": { + "description": "Represents the type that time series instance which matched the search request belongs to. Never null.", + "readOnly": true, + "type": "string", + "format": "uuid" + }, + "hierarchyIds": { + "description": "List of time series hierarchy IDs that time series instance which matched the search request belongs to. Cannot be used to lookup hierarchies. May be null.", + "readOnly": true, + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, "highlights": { "description": "Highlighted text of time series instance to be displayed to the user. Highlighting inserts and tags in the portions of text that matched the search string. Do not use any of the highlighted properties to do further API calls.", "readOnly": true, "type": "object", "properties": { - "timeSeriesIds": { + "timeSeriesId": { "description": "List of highlighted string values of Time Series ID for displaying. Cannot be used to lookup instance.", "readOnly": true, "type": "array", @@ -1828,7 +2097,7 @@ "type": "string" } }, - "type": { + "typeName": { "description": "Highlighted time series type name that this instance belongs to.", "readOnly": true, "type": "string" @@ -1852,6 +2121,14 @@ "format": "uuid" } }, + "hierarchyNames": { + "description": "List of highlighted time series hierarchy names that time series instance belongs to. Cannot be used to lookup hierarchies. May be null.", + "readOnly": true, + "type": "array", + "items": { + "type": "string" + } + }, "instanceFieldNames": { "description": "List of highlighted time series instance field names. May be null.", "readOnly": true, @@ -1872,6 +2149,29 @@ } } }, + "HierarchyHit": { + "description": "The hierarchy node which contains the instances matching the query based on the input. May be empty or null.", + "type": "object", + "properties": { + "name": { + "description": "Name of the hierarchy node. May be empty, cannot be null.", + "readOnly": true, + "type": "string" + }, + "cumulativeInstanceCount": { + "description": "Total number of instances that belong to this node and it's subtrees matching the query.", + "readOnly": true, + "type": "integer", + "format": "int32" + }, + "hierarchyNodes": { + "description": "Child hierarchy nodes of this node. May be empty or null.", + "readOnly": true, + "type": "object", + "$ref": "#/definitions/SearchHierarchyNodesResponse" + } + } + }, "InstancesSuggestRequest": { "description": "Request to get search string suggestions for time series instances search based on prefix text.", "type": "object", diff --git a/specification/timeseriesinsights/data-plane/readme.md b/specification/timeseriesinsights/data-plane/readme.md index 20a88caf0445..ed219508d482 100644 --- a/specification/timeseriesinsights/data-plane/readme.md +++ b/specification/timeseriesinsights/data-plane/readme.md @@ -70,3 +70,28 @@ csharp: namespace: Microsoft.Azure.TimeSeriesInsights output-folder: $(csharp-sdks-folder)/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated ``` + +## 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.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.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/timeseriesinsights/resource-manager/readme.md b/specification/timeseriesinsights/resource-manager/readme.md index 66d8c7ea2f7a..2c1611a02a1f 100644 --- a/specification/timeseriesinsights/resource-manager/readme.md +++ b/specification/timeseriesinsights/resource-manager/readme.md @@ -159,3 +159,30 @@ java: regenerate-manager: true generate-interface: 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)/Microsoft.TimeSeriesInsights/preview/2017-02-28-preview/timeseriesinsights.json + - $(this-folder)/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json + - $(this-folder)/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.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/trafficmanager/resource-manager/readme.md b/specification/trafficmanager/resource-manager/readme.md index 52a530ce8ecd..bcd2f7307cd2 100644 --- a/specification/trafficmanager/resource-manager/readme.md +++ b/specification/trafficmanager/resource-manager/readme.md @@ -172,6 +172,7 @@ 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-libraries-for-java - repo: azure-sdk-for-go @@ -244,3 +245,34 @@ java: payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-trafficmanager ``` + +## 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.Network/stable/2018-04-01/trafficmanager.json + - $(this-folder)/Microsoft.Network/stable/2018-03-01/trafficmanager.json + - $(this-folder)/Microsoft.Network/stable/2018-02-01/trafficmanager.json + - $(this-folder)/Microsoft.Network/preview/2017-09-01-preview/trafficmanageranalytics.json + - $(this-folder)/Microsoft.Network/stable/2017-05-01/trafficmanager.json + - $(this-folder)/Microsoft.Network/stable/2017-03-01/trafficmanager.json + - $(this-folder)/Microsoft.Network/stable/2015-11-01/trafficmanager.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/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/Csm.json b/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/Csm.json index 5d60d0900946..5215bbffb185 100644 --- a/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/Csm.json +++ b/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/Csm.json @@ -572,6 +572,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project": { "get": { + "deprecated": true, "tags": [ "Projects" ], @@ -613,6 +614,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}": { "put": { + "deprecated": true, "tags": [ "Projects" ], @@ -679,6 +681,7 @@ } }, "get": { + "deprecated": true, "tags": [ "Projects" ], @@ -728,6 +731,7 @@ } }, "patch": { + "deprecated": true, "tags": [ "Projects" ], @@ -785,6 +789,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}/subContainers/{subContainerName}/status": { "get": { + "deprecated": true, "tags": [ "Projects" ], diff --git a/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2017-11-01-preview/Csm.json b/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2017-11-01-preview/Csm.json index f0102e923d44..6edebff4d2b4 100644 --- a/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2017-11-01-preview/Csm.json +++ b/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2017-11-01-preview/Csm.json @@ -521,6 +521,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project": { "get": { + "deprecated": true, "tags": [ "Projects" ], @@ -562,6 +563,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}": { "put": { + "deprecated": true, "tags": [ "Projects" ], @@ -628,6 +630,7 @@ } }, "get": { + "deprecated": true, "tags": [ "Projects" ], @@ -677,6 +680,7 @@ } }, "patch": { + "deprecated": true, "tags": [ "Projects" ], diff --git a/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2018-08-01-preview/PipelineTemplates.json b/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2018-08-01-preview/PipelineTemplates.json index 54e2c04d4a63..7ef243d42212 100644 --- a/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2018-08-01-preview/PipelineTemplates.json +++ b/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2018-08-01-preview/PipelineTemplates.json @@ -36,6 +36,7 @@ "paths": { "/providers/microsoft.visualstudio/pipelineTemplates": { "get": { + "deprecated": true, "tags": [ "PipelineTemplates" ], diff --git a/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2018-08-01-preview/Projects.json b/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2018-08-01-preview/Projects.json index 140bf902f33e..a71eefe14155 100644 --- a/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2018-08-01-preview/Projects.json +++ b/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2018-08-01-preview/Projects.json @@ -36,6 +36,7 @@ "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project": { "get": { + "deprecated": true, "tags": [ "Projects" ], @@ -77,6 +78,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}": { "put": { + "deprecated": true, "tags": [ "Projects" ], @@ -143,6 +145,7 @@ } }, "get": { + "deprecated": true, "tags": [ "Projects" ], @@ -192,6 +195,7 @@ } }, "patch": { + "deprecated": true, "tags": [ "Projects" ], diff --git a/specification/visualstudio/resource-manager/readme.md b/specification/visualstudio/resource-manager/readme.md index 94a59b5a4484..800de4382c43 100644 --- a/specification/visualstudio/resource-manager/readme.md +++ b/specification/visualstudio/resource-manager/readme.md @@ -101,3 +101,28 @@ generate-interface: 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)/Microsoft.VisualStudio/preview/2014-04-01-preview/Csm.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/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateDedicatedCloudNode.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateDedicatedCloudNode.json index 4acc5c19f2e4..37710b27d251 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateDedicatedCloudNode.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateDedicatedCloudNode.json @@ -9,40 +9,42 @@ "location": "westus", "properties": { "skuDescription": { - "id":"general", + "id": "general", "name": "CS28-Node" }, "placementGroupId": "n1", "availabilityZoneId": "az1", - "nodesCount":1, - "purchaseId":"56acbd46-3d36-4bbf-9b08-57c30fdf6932" + "nodesCount": 1, + "purchaseId": "56acbd46-3d36-4bbf-9b08-57c30fdf6932" }, - "sku":{ + "sku": { "name": "VMware_CloudSimple_CS28" } } }, "responses": { "200": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/myNode", - "location": "westus", - "name": "myNode", - "properties": { - "availabilityZoneId": "az1", - "created": "2019-05-21T13:43:26.441Z", - "placementGroupId": "n1", - "provisioningState": "Accepted", - "purchaseId": "56acbd46-3d36-4bbf-9b08-57c30fdf6932", - "skuDescription": { - "id": "general", - "name": "CS28-Node" + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/myNode", + "location": "westus", + "name": "myNode", + "properties": { + "availabilityZoneId": "az1", + "created": "2019-05-21T13:43:26.441Z", + "placementGroupId": "n1", + "provisioningState": "Accepted", + "purchaseId": "56acbd46-3d36-4bbf-9b08-57c30fdf6932", + "skuDescription": { + "id": "general", + "name": "CS28-Node" + }, + "status": "unused" }, - "status": "unused" - }, - "sku": { - "name": "VMware_CloudSimple_CS28" - }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" + "sku": { + "name": "VMware_CloudSimple_CS28" + }, + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateDedicatedCloudService.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateDedicatedCloudService.json index 96e73e402255..8fcfe879d2c5 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateDedicatedCloudService.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateDedicatedCloudService.json @@ -14,14 +14,16 @@ }, "responses": { "200": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/myService", - "location": "westus", - "name": "myService", - "properties": { - "gatewaySubnet": "10.0.10.0/28", - "isAccountOnboarded": "notOnBoarded" - }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/myService", + "location": "westus", + "name": "myService", + "properties": { + "gatewaySubnet": "10.0.10.0/28", + "isAccountOnboarded": "notOnBoarded" + }, + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateVirtualMachine.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateVirtualMachine.json index f3ed9e6704a3..ac92ed856391 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateVirtualMachine.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateVirtualMachine.json @@ -20,7 +20,7 @@ "virtualDiskId": "2000" } ], - "resourcePool":{ + "resourcePool": { "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26" }, "guestOS": "Other (32-bit)", @@ -40,88 +40,92 @@ }, "responses": { "200": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/virtualMachines/myVirtualMachine", - "location": "westus2", - "name": "myVirtualMachine", - "properties": { - "amountOfRam": 4096, - "controllers": [], - "disks": [ - { - "controllerId": "1000", - "independenceMode": "persistent", - "totalSize": 10485760, - "virtualDiskId": "2000", - "virtualDiskName": "Hard disk 1" - } - ], - "guestOS": "Other (32-bit)", - "guestOSType": "other", - "nics": [ - { - "ipAddresses": null, - "network": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" - }, - "nicType": "E1000", - "powerOnBoot": true, - "virtualNicId": "4000", - "virtualNicName": "Network adapter 1" - } - ], - "numberOfCores": 2, - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "provisioningState": "Created", - "resourcePool": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26" + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/virtualMachines/myVirtualMachine", + "location": "westus2", + "name": "myVirtualMachine", + "properties": { + "amountOfRam": 4096, + "controllers": [], + "disks": [ + { + "controllerId": "1000", + "independenceMode": "persistent", + "totalSize": 10485760, + "virtualDiskId": "2000", + "virtualDiskName": "Hard disk 1" + } + ], + "guestOS": "Other (32-bit)", + "guestOSType": "other", + "nics": [ + { + "ipAddresses": null, + "network": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" + }, + "nicType": "E1000", + "powerOnBoot": true, + "virtualNicId": "4000", + "virtualNicName": "Network adapter 1" + } + ], + "numberOfCores": 2, + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "provisioningState": "Created", + "resourcePool": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26" + }, + "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", + "vSphereNetworks": null, + "vmwaretools": "0" }, - "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", - "vSphereNetworks": null, - "vmwaretools": "0" - }, - "type": "Microsoft.VMwareCloudSimple/virtualMachines" + "type": "Microsoft.VMwareCloudSimple/virtualMachines" + } }, "201": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/virtualMachines/myVirtualMachine", - "location": "westus2", - "name": "myVirtualMachine", - "properties": { - "amountOfRam": 4096, - "controllers": [], - "disks": [ - { - "controllerId": "1000", - "independenceMode": "persistent", - "totalSize": 10485760, - "virtualDiskId": "2000", - "virtualDiskName": "Hard disk 1" - } - ], - "guestOS": "Other (32-bit)", - "guestOSType": "other", - "nics": [ - { - "ipAddresses": null, - "network": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" - }, - "nicType": "E1000", - "powerOnBoot": true, - "virtualNicId": "4000", - "virtualNicName": "Network adapter 1" - } - ], - "numberOfCores": 2, - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "provisioningState": "Created", - "resourcePool": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26" + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/virtualMachines/myVirtualMachine", + "location": "westus2", + "name": "myVirtualMachine", + "properties": { + "amountOfRam": 4096, + "controllers": [], + "disks": [ + { + "controllerId": "1000", + "independenceMode": "persistent", + "totalSize": 10485760, + "virtualDiskId": "2000", + "virtualDiskName": "Hard disk 1" + } + ], + "guestOS": "Other (32-bit)", + "guestOSType": "other", + "nics": [ + { + "ipAddresses": null, + "network": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" + }, + "nicType": "E1000", + "powerOnBoot": true, + "virtualNicId": "4000", + "virtualNicName": "Network adapter 1" + } + ], + "numberOfCores": 2, + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "provisioningState": "Created", + "resourcePool": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26" + }, + "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", + "vSphereNetworks": null, + "vmwaretools": "0" }, - "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", - "vSphereNetworks": null, - "vmwaretools": "0" - }, - "type": "Microsoft.VMwareCloudSimple/virtualMachines" + "type": "Microsoft.VMwareCloudSimple/virtualMachines" + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/DeleteDedicatedCloudNode.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/DeleteDedicatedCloudNode.json index ba2300f3cd7f..c4958e3e093c 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/DeleteDedicatedCloudNode.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/DeleteDedicatedCloudNode.json @@ -8,4 +8,4 @@ "responses": { "204": {} } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/DeleteVirtualMachine.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/DeleteVirtualMachine.json index 19153b5546fb..bb55a06b18c9 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/DeleteVirtualMachine.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/DeleteVirtualMachine.json @@ -10,4 +10,4 @@ "202": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetDedicatedCloudNode.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetDedicatedCloudNode.json index b5122e4a41fb..ed905212b991 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetDedicatedCloudNode.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetDedicatedCloudNode.json @@ -7,30 +7,32 @@ }, "responses": { "200": { - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/myNode", - "location": "eastus", - "name": "myNode", - "properties": { - "availabilityZoneId": "az1", - "availabilityZoneName": "Availability Zone 1", - "cloudRackName": "cloud_rack_1", - "created": "2019-05-21T07:32:12.114Z", - "placementGroupId": "n2", - "placementGroupName": "Placement Group 2", - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "privateCloudName": "private_cloud_name", - "purchaseId": "225fadec-3bbe-4e61-a119-ff102da67d0d", - "skuDescription": { - "id": "general", - "name": "CS28-Node" + "body": { + "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/myNode", + "location": "eastus", + "name": "myNode", + "properties": { + "availabilityZoneId": "az1", + "availabilityZoneName": "Availability Zone 1", + "cloudRackName": "cloud_rack_1", + "created": "2019-05-21T07:32:12.114Z", + "placementGroupId": "n2", + "placementGroupName": "Placement Group 2", + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "privateCloudName": "private_cloud_name", + "purchaseId": "225fadec-3bbe-4e61-a119-ff102da67d0d", + "skuDescription": { + "id": "general", + "name": "CS28-Node" + }, + "status": "used", + "vmwareClusterName": "Cluster" }, - "status": "used", - "vmwareClusterName": "Cluster" - }, - "sku": { - "name": "VMware_CloudSimple_CS28" - }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" + "sku": { + "name": "VMware_CloudSimple_CS28" + }, + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetDedicatedCloudService.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetDedicatedCloudService.json index 2b43e7fa9e2d..22d5530f09d5 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetDedicatedCloudService.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetDedicatedCloudService.json @@ -14,16 +14,18 @@ }, "responses": { "200": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/myService", - "location": "westus", - "name": "myService", - "properties": { - "gatewaySubnet": "10.0.10.0/28", - "isAccountOnboarded": "notOnBoarded", - "nodes": 1, - "serviceURL": "https://westus-he.azure.cloudsimple.com" - }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/myService", + "location": "westus", + "name": "myService", + "properties": { + "gatewaySubnet": "10.0.10.0/28", + "isAccountOnboarded": "notOnBoarded", + "nodes": 1, + "serviceURL": "https://westus-he.azure.cloudsimple.com" + }, + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetFailedOperationResult.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetFailedOperationResult.json index 441b5f623293..4e026e60386b 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetFailedOperationResult.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetFailedOperationResult.json @@ -8,17 +8,19 @@ }, "responses": { "200": { - "endTime": "2019-05-23T12:11:00.655Z", - "error": { - "code": "InternalError", - "message": "Internal Service error" - }, - "id": "/subscriptions/{subscription-id}/providers/microsoft.vmwarecloudsimple/locations/westus2/operationresults/d030bb3f-7d53-11e9-8e09-9a86872085ff", - "name": "d030bb3f-7d53-11e9-8e09-9a86872085ff", - "startTime": "2019-05-23T12:10:54.012Z", - "status": "Failed" + "body": { + "endTime": "2019-05-23T12:11:00.655Z", + "error": { + "code": "InternalError", + "message": "Internal Service error" + }, + "id": "/subscriptions/{subscription-id}/providers/microsoft.vmwarecloudsimple/locations/westus2/operationresults/d030bb3f-7d53-11e9-8e09-9a86872085ff", + "name": "d030bb3f-7d53-11e9-8e09-9a86872085ff", + "startTime": "2019-05-23T12:10:54.012Z", + "status": "Failed" + } }, "202": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetOperationResult.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetOperationResult.json index e73daa081f1c..b1787f768aab 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetOperationResult.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetOperationResult.json @@ -8,13 +8,15 @@ }, "responses": { "200": { - "endTime": "2019-05-23T12:05:55.660Z", - "id": "/subscriptions/{subscription-id}/providers/microsoft.vmwarecloudsimple/locations/westus2/operationresults/f8e1c8f1-7d52-11e9-8e07-9a86872085ff", - "name": "f8e1c8f1-7d52-11e9-8e07-9a86872085ff", - "startTime": "2019-05-23T12:04:52.784Z", - "status": "Succeeded" + "body": { + "endTime": "2019-05-23T12:05:55.660Z", + "id": "/subscriptions/{subscription-id}/providers/microsoft.vmwarecloudsimple/locations/westus2/operationresults/f8e1c8f1-7d52-11e9-8e07-9a86872085ff", + "name": "f8e1c8f1-7d52-11e9-8e07-9a86872085ff", + "startTime": "2019-05-23T12:04:52.784Z", + "status": "Succeeded" + } }, "202": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetPrivateCloud.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetPrivateCloud.json index 808c0156a68e..d47be9f2aee6 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetPrivateCloud.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetPrivateCloud.json @@ -7,148 +7,150 @@ }, "responses": { "200": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "location": "westus2", - "name": "myPrivateCloud", - "properties": { - "availabilityZoneId": "az1", - "availabilityZoneName": "Availability Zone 1", - "clustersNumber": 1, - "createdBy": "john.doe@cloudsimple.com", - "createdOn": "2019-05-22T09:55:36.627Z", - "dnsServers": [ - "100.0.0.8", - "100.0.0.9" - ], - "expires": "n/a", - "nsxType": "Advanced", - "placementGroupId": "n1", - "placementGroupName": "Placement Group 1", - "privateCloudId": "{pc-id}", - "resourcePools": [ - { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26", - "location": "westus2", - "name": "Workload", - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "properties": { - "fullName": "myPrivateCloud/Datacenter/Cluster/Workload" - }, - "type": "Microsoft.VMwareCloudSimple/resourcePools" - } - ], - "state": "operational", - "totalCpuCores": 28, - "totalNodes": 1, - "totalRam": 256, - "totalStorage": 5.625, - "type": "vSphere", - "vSphereVersion": "6.7u1", - "vcenterFqdn": "vcsa-4-westus2.az.cloudsimple.io", - "vcenterRefid": "100.0.0.6", - "virtualMachineTemplates": [ - { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", - "location": "westus2", - "name": "centos-template", - "properties": { - "amountOfRam": 4096, - "controllers": [ - { - "id": "1000", - "name": "SCSI controller 0", - "subType": "LSI_PARALEL", - "type": "SCSI" - } - ], - "disks": [ - { - "controllerId": "1000", - "independenceMode": "persistent", - "totalSize": 10485760, - "virtualDiskId": "2000", - "virtualDiskName": "Hard disk 1" - } - ], - "guestOS": "Other (32-bit)", - "guestOSType": "other", - "nics": [ - { - "ipAddresses": null, - "macAddress": "00:50:56:a6:7e:93", - "network": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" - }, - "nicType": "E1000", - "powerOnBoot": true, - "virtualNicId": "4000", - "virtualNicName": "Network adapter 1" - } - ], - "numberOfCores": 2, - "path": "Datacenter/Workload VMs", + "body": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "location": "westus2", + "name": "myPrivateCloud", + "properties": { + "availabilityZoneId": "az1", + "availabilityZoneName": "Availability Zone 1", + "clustersNumber": 1, + "createdBy": "john.doe@cloudsimple.com", + "createdOn": "2019-05-22T09:55:36.627Z", + "dnsServers": [ + "100.0.0.8", + "100.0.0.9" + ], + "expires": "n/a", + "nsxType": "Advanced", + "placementGroupId": "n1", + "placementGroupName": "Placement Group 1", + "privateCloudId": "{pc-id}", + "resourcePools": [ + { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26", + "location": "westus2", + "name": "Workload", "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "vSphereNetworks": null, - "vSphereTags": null, - "vmwaretools": "10309" - }, - "type": "Microsoft.VMwareCloudSimple/virtualMachineTemplates" - } - ], - "virtualNetworks": [ - { - "assignable": false, - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19", - "location": "westus2", - "name": "Datacenter/CS-Management", - "properties": { - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" - }, - "type": "Microsoft.VMwareCloudSimple/virtualNetworks" - }, - { - "assignable": true, - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-20", - "location": "westus2", - "name": "Datacenter/CS-Rescue", - "properties": { - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + "properties": { + "fullName": "myPrivateCloud/Datacenter/Cluster/Workload" + }, + "type": "Microsoft.VMwareCloudSimple/resourcePools" + } + ], + "state": "operational", + "totalCpuCores": 28, + "totalNodes": 1, + "totalRam": 256, + "totalStorage": 5.625, + "type": "vSphere", + "vSphereVersion": "6.7u1", + "vcenterFqdn": "vcsa-4-westus2.az.cloudsimple.io", + "vcenterRefid": "100.0.0.6", + "virtualMachineTemplates": [ + { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", + "location": "westus2", + "name": "centos-template", + "properties": { + "amountOfRam": 4096, + "controllers": [ + { + "id": "1000", + "name": "SCSI controller 0", + "subType": "LSI_PARALEL", + "type": "SCSI" + } + ], + "disks": [ + { + "controllerId": "1000", + "independenceMode": "persistent", + "totalSize": 10485760, + "virtualDiskId": "2000", + "virtualDiskName": "Hard disk 1" + } + ], + "guestOS": "Other (32-bit)", + "guestOSType": "other", + "nics": [ + { + "ipAddresses": null, + "macAddress": "00:50:56:a6:7e:93", + "network": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" + }, + "nicType": "E1000", + "powerOnBoot": true, + "virtualNicId": "4000", + "virtualNicName": "Network adapter 1" + } + ], + "numberOfCores": 2, + "path": "Datacenter/Workload VMs", + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "vSphereNetworks": null, + "vSphereTags": null, + "vmwaretools": "10309" + }, + "type": "Microsoft.VMwareCloudSimple/virtualMachineTemplates" + } + ], + "virtualNetworks": [ + { + "assignable": false, + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19", + "location": "westus2", + "name": "Datacenter/CS-Management", + "properties": { + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + }, + "type": "Microsoft.VMwareCloudSimple/virtualNetworks" }, - "type": "Microsoft.VMwareCloudSimple/virtualNetworks" - }, - { - "assignable": false, - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-21", - "location": "westus2", - "name": "Datacenter/CS-VSAN", - "properties": { - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + { + "assignable": true, + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-20", + "location": "westus2", + "name": "Datacenter/CS-Rescue", + "properties": { + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + }, + "type": "Microsoft.VMwareCloudSimple/virtualNetworks" }, - "type": "Microsoft.VMwareCloudSimple/virtualNetworks" - }, - { - "assignable": false, - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-22", - "location": "westus2", - "name": "Datacenter/CS-VMotion", - "properties": { - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + { + "assignable": false, + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-21", + "location": "westus2", + "name": "Datacenter/CS-VSAN", + "properties": { + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + }, + "type": "Microsoft.VMwareCloudSimple/virtualNetworks" }, - "type": "Microsoft.VMwareCloudSimple/virtualNetworks" - }, - { - "assignable": true, - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-35", - "location": "westus2", - "name": "Datacenter/net-01", - "properties": { - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + { + "assignable": false, + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-22", + "location": "westus2", + "name": "Datacenter/CS-VMotion", + "properties": { + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + }, + "type": "Microsoft.VMwareCloudSimple/virtualNetworks" }, - "type": "Microsoft.VMwareCloudSimple/virtualNetworks" - } - ] - }, - "type": "Microsoft.VMwareCloudSimple/privateClouds" + { + "assignable": true, + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-35", + "location": "westus2", + "name": "Datacenter/net-01", + "properties": { + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + }, + "type": "Microsoft.VMwareCloudSimple/virtualNetworks" + } + ] + }, + "type": "Microsoft.VMwareCloudSimple/privateClouds" + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetResourcePool.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetResourcePool.json index de16018048f5..baddf3198b95 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetResourcePool.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetResourcePool.json @@ -2,20 +2,22 @@ "parameters": { "subscriptionId": "{subscription-id}", "regionId": "westus2", - "pcName" : "myPrivateCloud", + "pcName": "myPrivateCloud", "resourcePoolName": "resgroup-26", "api-version": "2019-04-01" }, "responses": { "200": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26", - "location": "westus2", - "name": "Workload", - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "properties": { - "fullName": "myPrivateCloud/Datacenter/Cluster/Workload" - }, - "type": "Microsoft.VMwareCloudSimple/resourcePools" + "body": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26", + "location": "westus2", + "name": "Workload", + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "properties": { + "fullName": "myPrivateCloud/Datacenter/Cluster/Workload" + }, + "type": "Microsoft.VMwareCloudSimple/resourcePools" + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualMachine.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualMachine.json index ab6f290b2f76..e042542042d6 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualMachine.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualMachine.json @@ -8,74 +8,76 @@ }, "responses": { "200": { - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/virtualMachines/myVirtualMachine", - "location": "westus2", - "name": "myVirtualMachine", - "properties": { - "amountOfRam": 4096, - "controllers": [ - { - "id": "1000", - "name": "SCSI controller 0", - "subType": "LSI_PARALEL", - "type": "SCSI" - } - ], - "disks": [ - { - "controllerId": "1000", - "independenceMode": "persistent", - "totalSize": 10485760, - "virtualDiskId": "2000", - "virtualDiskName": "Hard disk 1" - } - ], - "folder": "Datacenter/Workload VMs", - "guestOS": "Other (32-bit)", - "guestOSType": "other", - "nics": [ - { - "ipAddresses": null, - "macAddress": "00:50:56:a6:d0:e1", - "network": { - "assignable": false, - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualnetworks/dvportgroup-19", - "location": "westus2", - "name": "Datacenter/CS-Management", - "properties": { - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + "body": { + "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/virtualMachines/myVirtualMachine", + "location": "westus2", + "name": "myVirtualMachine", + "properties": { + "amountOfRam": 4096, + "controllers": [ + { + "id": "1000", + "name": "SCSI controller 0", + "subType": "LSI_PARALEL", + "type": "SCSI" + } + ], + "disks": [ + { + "controllerId": "1000", + "independenceMode": "persistent", + "totalSize": 10485760, + "virtualDiskId": "2000", + "virtualDiskName": "Hard disk 1" + } + ], + "folder": "Datacenter/Workload VMs", + "guestOS": "Other (32-bit)", + "guestOSType": "other", + "nics": [ + { + "ipAddresses": null, + "macAddress": "00:50:56:a6:d0:e1", + "network": { + "assignable": false, + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualnetworks/dvportgroup-19", + "location": "westus2", + "name": "Datacenter/CS-Management", + "properties": { + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + }, + "type": "Microsoft.VMwareCloudSimple/virtualNetworks" }, - "type": "Microsoft.VMwareCloudSimple/virtualNetworks" - }, - "nicType": "E1000", - "powerOnBoot": true, - "virtualNicId": "4000", - "virtualNicName": "Network adapter 1" - } - ], - "numberOfCores": 2, - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "provisioningState": "Succeeded", - "resourcePool": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcepools/resgroup-26", - "location": "westus2", - "name": "Workload", + "nicType": "E1000", + "powerOnBoot": true, + "virtualNicId": "4000", + "virtualNicName": "Network adapter 1" + } + ], + "numberOfCores": 2, "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "properties": { - "fullName": "Datacenter/Cluster/Workload" + "provisioningState": "Succeeded", + "resourcePool": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcepools/resgroup-26", + "location": "westus2", + "name": "Workload", + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "properties": { + "fullName": "Datacenter/Cluster/Workload" + }, + "type": "Microsoft.VMwareCloudSimple/resourcePools" }, - "type": "Microsoft.VMwareCloudSimple/resourcePools" + "status": "running", + "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualmachinetemplates/vm-34", + "vSphereNetworks": null, + "vmId": "vm-100", + "vmwaretools": "10309" + }, + "tags": { + "inUse": "true" }, - "status": "running", - "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualmachinetemplates/vm-34", - "vSphereNetworks": null, - "vmId": "vm-100", - "vmwaretools": "10309" - }, - "tags": { - "inUse": "true" - }, - "type": "Microsoft.VMwareCloudSimple/virtualMachines" + "type": "Microsoft.VMwareCloudSimple/virtualMachines" + } } } } diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualMachineTemplate.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualMachineTemplate.json index 58b7621a494a..aee3e7433484 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualMachineTemplate.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualMachineTemplate.json @@ -8,51 +8,53 @@ }, "responses": { "200": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", - "location": "westus2", - "name": "centos-template", - "properties": { - "amountOfRam": 4096, - "controllers": [ - { - "id": "1000", - "name": "SCSI controller 0", - "subType": "LSI_PARALEL", - "type": "SCSI" - } - ], - "disks": [ - { - "controllerId": "1000", - "independenceMode": "persistent", - "totalSize": 10485760, - "virtualDiskId": "2000", - "virtualDiskName": "Hard disk 1" - } - ], - "guestOS": "Other (32-bit)", - "guestOSType": "other", - "nics": [ - { - "ipAddresses": null, - "macAddress": "00:50:56:a6:7e:93", - "network": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" - }, - "nicType": "E1000", - "powerOnBoot": true, - "virtualNicId": "4000", - "virtualNicName": "Network adapter 1" - } - ], - "numberOfCores": 2, - "path": "Datacenter/Workload VMs", - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "vSphereNetworks": null, - "vSphereTags": null, - "vmwaretools": "10309" - }, - "type": "Microsoft.VMwareCloudSimple/virtualMachineTemplates" + "body": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", + "location": "westus2", + "name": "centos-template", + "properties": { + "amountOfRam": 4096, + "controllers": [ + { + "id": "1000", + "name": "SCSI controller 0", + "subType": "LSI_PARALEL", + "type": "SCSI" + } + ], + "disks": [ + { + "controllerId": "1000", + "independenceMode": "persistent", + "totalSize": 10485760, + "virtualDiskId": "2000", + "virtualDiskName": "Hard disk 1" + } + ], + "guestOS": "Other (32-bit)", + "guestOSType": "other", + "nics": [ + { + "ipAddresses": null, + "macAddress": "00:50:56:a6:7e:93", + "network": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" + }, + "nicType": "E1000", + "powerOnBoot": true, + "virtualNicId": "4000", + "virtualNicName": "Network adapter 1" + } + ], + "numberOfCores": 2, + "path": "Datacenter/Workload VMs", + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "vSphereNetworks": null, + "vSphereTags": null, + "vmwaretools": "10309" + }, + "type": "Microsoft.VMwareCloudSimple/virtualMachineTemplates" + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualNetwork.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualNetwork.json index de92e109e3e4..9286864a3417 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualNetwork.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualNetwork.json @@ -3,19 +3,21 @@ "subscriptionId": "{subscription-id}", "regionId": "westus2", "pcName": "myPrivateCloud", - "virtualNetworkName" : "dvportgroup-19", + "virtualNetworkName": "dvportgroup-19", "api-version": "2019-04-01" }, "responses": { "200": { - "assignable": false, - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19", - "location": "westus2", - "name": "Datacenter/CS-Management", - "properties": { - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" - }, - "type": "Microsoft.VMwareCloudSimple/virtualNetworks" + "body": { + "assignable": false, + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19", + "location": "westus2", + "name": "Datacenter/CS-Management", + "properties": { + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + }, + "type": "Microsoft.VMwareCloudSimple/virtualNetworks" + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListAvailabilities.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListAvailabilities.json index d2a7eff5eeec..e2b5232d933c 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListAvailabilities.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListAvailabilities.json @@ -6,26 +6,28 @@ }, "responses": { "200": { - "value": [ - { - "currentValue": 1, - "limit": 5, - "name": { - "localizedValue": "CS28-Node", - "value": "general" + "body": { + "value": [ + { + "currentValue": 1, + "limit": 5, + "name": { + "localizedValue": "CS28-Node", + "value": "general" + }, + "unit": "Count" }, - "unit": "Count" - }, - { - "currentValue": 0, - "limit": 5, - "name": { - "localizedValue": "CS36-Node", - "value": "large" - }, - "unit": "Count" - } - ] + { + "currentValue": 0, + "limit": 5, + "name": { + "localizedValue": "CS36-Node", + "value": "large" + }, + "unit": "Count" + } + ] + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListDedicatedCloudNodes.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListDedicatedCloudNodes.json index c4433be9a7bc..7d4944e6da67 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListDedicatedCloudNodes.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListDedicatedCloudNodes.json @@ -5,56 +5,58 @@ }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-1/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/node-2", - "location": "westus2", - "name": "node-2", - "properties": { - "availabilityZoneId": "az1", - "availabilityZoneName": "Availability Zone 1", - "cloudRackName": "cloud_rack_1", - "created": "2019-05-21T07:32:12.134Z", - "placementGroupId": "n2", - "placementGroupName": "Placement Group 2", - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "privateCloudName": "private_cloud_name", - "purchaseId": "225fadec-3bbe-4e61-a119-ff102da67d0d", - "skuDescription": { - "id": "general", - "name": "CS28-Node" + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-1/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/node-2", + "location": "westus2", + "name": "node-2", + "properties": { + "availabilityZoneId": "az1", + "availabilityZoneName": "Availability Zone 1", + "cloudRackName": "cloud_rack_1", + "created": "2019-05-21T07:32:12.134Z", + "placementGroupId": "n2", + "placementGroupName": "Placement Group 2", + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "privateCloudName": "private_cloud_name", + "purchaseId": "225fadec-3bbe-4e61-a119-ff102da67d0d", + "skuDescription": { + "id": "general", + "name": "CS28-Node" + }, + "status": "used", + "vmwareClusterName": "Cluster" }, - "status": "used", - "vmwareClusterName": "Cluster" - }, - "sku": { - "name": "VMware_CloudSimple_CS28" - }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" - }, - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-2/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/node-1", - "location": "westus2", - "name": "node1", - "properties": { - "availabilityZoneId": "az1", - "availabilityZoneName": "Availability Zone 1", - "created": "2019-05-22T11:57:43.891Z", - "placementGroupId": "n1", - "placementGroupName": "Placement Group 1", - "purchaseId": "eb9d2e22-c787-4723-aa4f-3760b53a0a4d", - "skuDescription": { - "id": "general", - "name": "CS28-Node" + "sku": { + "name": "VMware_CloudSimple_CS28" }, - "status": "unused" - }, - "sku": { - "name": "VMware_CloudSimple_CS28" + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" - } - ] + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-2/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/node-1", + "location": "westus2", + "name": "node1", + "properties": { + "availabilityZoneId": "az1", + "availabilityZoneName": "Availability Zone 1", + "created": "2019-05-22T11:57:43.891Z", + "placementGroupId": "n1", + "placementGroupName": "Placement Group 1", + "purchaseId": "eb9d2e22-c787-4723-aa4f-3760b53a0a4d", + "skuDescription": { + "id": "general", + "name": "CS28-Node" + }, + "status": "unused" + }, + "sku": { + "name": "VMware_CloudSimple_CS28" + }, + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" + } + ] + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListDedicatedCloudServices.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListDedicatedCloudServices.json index 5ee83c8aa9f6..0f9f6d864253 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListDedicatedCloudServices.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListDedicatedCloudServices.json @@ -5,30 +5,32 @@ }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-1/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/service-east", - "location": "eastus", - "name": "service-east", - "properties": { - "gatewaySubnet": "10.101.201.0/28", - "isAccountOnboarded": "onBoarded", - "serviceURL": "https://eastus-he.azure.cloudsimple.com" + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-1/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/service-east", + "location": "eastus", + "name": "service-east", + "properties": { + "gatewaySubnet": "10.101.201.0/28", + "isAccountOnboarded": "onBoarded", + "serviceURL": "https://eastus-he.azure.cloudsimple.com" + }, + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" - }, - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-2/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/service-west", - "location": "westus", - "name": "service-west", - "properties": { - "gatewaySubnet": "10.0.0.0/28", - "isAccountOnboarded": "onBoarded", - "serviceURL": "https://westus-he.azure.cloudsimple.com" - }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" - } - ] + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-2/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/service-west", + "location": "westus", + "name": "service-west", + "properties": { + "gatewaySubnet": "10.0.0.0/28", + "isAccountOnboarded": "onBoarded", + "serviceURL": "https://westus-he.azure.cloudsimple.com" + }, + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" + } + ] + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListOperations.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListOperations.json index d46811a6007b..cfc0abd96a0d 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListOperations.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListOperations.json @@ -4,19 +4,21 @@ }, "responses": { "200": { - "value": [ - { - "display": { - "description": "Creates a new dedicated cloud node", - "operation": "Create Dedicated Cloud Node", - "provider": "VMware Solution by CloudSimple", - "resource": "Dedicated Cloud Nodes" - }, - "name": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes/write", - "origin": "user,system" - } - ], - "nextLink": "string" + "body": { + "value": [ + { + "display": { + "description": "Creates a new dedicated cloud node", + "operation": "Create Dedicated Cloud Node", + "provider": "VMware Solution by CloudSimple", + "resource": "Dedicated Cloud Nodes" + }, + "name": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes/write", + "origin": "user,system" + } + ], + "nextLink": "string" + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListPrivateCloudInLocation.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListPrivateCloudInLocation.json index 4934df60f221..487187a56767 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListPrivateCloudInLocation.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListPrivateCloudInLocation.json @@ -6,39 +6,41 @@ }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/eastus/privateClouds/myPrivateCloud", - "location": "eastus", - "name": "myPrivateCloud", - "properties": { - "availabilityZoneId": "az1", - "availabilityZoneName": "Availability Zone 1", - "clustersNumber": 1, - "createdBy": "john.doe@cloudsimple.com", - "createdOn": "2019-05-21T07:32:59.491Z", - "dnsServers": [ - "100.100.100.8", - "100.100.100.9" - ], - "expires": "n/a", - "nsxType": "Advanced", - "placementGroupId": "n2", - "placementGroupName": "Placement Group 2", - "privateCloudId": "private-cloud-id", - "state": "operational", - "totalCpuCores": 84, - "totalNodes": 3, - "totalRam": 768, - "totalStorage": 16.875, - "type": "vSphere", - "vSphereVersion": "6.7u1", - "vcenterFqdn": "vcsa-eastus.az.cloudsimple.io", - "vcenterRefid": "100.100.100.6" - }, - "type": "Microsoft.VMwareCloudSimple/privateClouds" - } - ] + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/eastus/privateClouds/myPrivateCloud", + "location": "eastus", + "name": "myPrivateCloud", + "properties": { + "availabilityZoneId": "az1", + "availabilityZoneName": "Availability Zone 1", + "clustersNumber": 1, + "createdBy": "john.doe@cloudsimple.com", + "createdOn": "2019-05-21T07:32:59.491Z", + "dnsServers": [ + "100.100.100.8", + "100.100.100.9" + ], + "expires": "n/a", + "nsxType": "Advanced", + "placementGroupId": "n2", + "placementGroupName": "Placement Group 2", + "privateCloudId": "private-cloud-id", + "state": "operational", + "totalCpuCores": 84, + "totalNodes": 3, + "totalRam": 768, + "totalStorage": 16.875, + "type": "vSphere", + "vSphereVersion": "6.7u1", + "vcenterFqdn": "vcsa-eastus.az.cloudsimple.io", + "vcenterRefid": "100.100.100.6" + }, + "type": "Microsoft.VMwareCloudSimple/privateClouds" + } + ] + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGDedicatedCloudNodes.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGDedicatedCloudNodes.json index ae6f85564983..3868f3dfa726 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGDedicatedCloudNodes.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGDedicatedCloudNodes.json @@ -6,86 +6,88 @@ }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/node-east-1", - "location": "eastus", - "name": "node-east-1", - "properties": { - "availabilityZoneId": "az1", - "availabilityZoneName": "Availability Zone 1", - "cloudRackName": "cloud_rack_1", - "created": "2019-05-21T07:32:12.134Z", - "placementGroupId": "n2", - "placementGroupName": "Placement Group 2", - "privateCloudId": "private_cloud_id", - "privateCloudName": "private_cloud_name", - "purchaseId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "skuDescription": { - "id": "general", - "name": "CS28-Node" + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/node-east-1", + "location": "eastus", + "name": "node-east-1", + "properties": { + "availabilityZoneId": "az1", + "availabilityZoneName": "Availability Zone 1", + "cloudRackName": "cloud_rack_1", + "created": "2019-05-21T07:32:12.134Z", + "placementGroupId": "n2", + "placementGroupName": "Placement Group 2", + "privateCloudId": "private_cloud_id", + "privateCloudName": "private_cloud_name", + "purchaseId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "skuDescription": { + "id": "general", + "name": "CS28-Node" + }, + "status": "used", + "vmwareClusterName": "Cluster" }, - "status": "used", - "vmwareClusterName": "Cluster" - }, - "sku": { - "name": "VMware_CloudSimple_CS28" - }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" - }, - { - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/node-east-2", - "location": "eastus", - "name": "node-east-2", - "properties": { - "availabilityZoneId": "az1", - "availabilityZoneName": "Availability Zone 1", - "cloudRackName": "cloud_rack_1", - "created": "2019-05-21T07:32:12.114Z", - "placementGroupId": "n2", - "placementGroupName": "Placement Group 2", - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "privateCloudName": "private_cloud_name", - "purchaseId": "225fadec-3bbe-4e61-a119-ff102da67d0d", - "skuDescription": { - "id": "general", - "name": "CS28-Node" + "sku": { + "name": "VMware_CloudSimple_CS28" }, - "status": "used", - "vmwareClusterName": "Cluster" + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" }, - "sku": { - "name": "VMware_CloudSimple_CS28" - }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" - }, - { - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/myNode", - "location": "eastus", - "name": "myNode", - "properties": { - "availabilityZoneId": "az1", - "availabilityZoneName": "Availability Zone 1", - "cloudRackName": "cloud_rack_1", - "created": "2019-05-08T09:35:47.961Z", - "placementGroupId": "n2", - "placementGroupName": "Placement Group 2", - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "privateCloudName": "myPrivateCloud", - "purchaseId": "b3fcd958-f19c-4421-ab46-e4fa9cc8514e", - "skuDescription": { - "id": "general", - "name": "CS28-Node" + { + "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/node-east-2", + "location": "eastus", + "name": "node-east-2", + "properties": { + "availabilityZoneId": "az1", + "availabilityZoneName": "Availability Zone 1", + "cloudRackName": "cloud_rack_1", + "created": "2019-05-21T07:32:12.114Z", + "placementGroupId": "n2", + "placementGroupName": "Placement Group 2", + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "privateCloudName": "private_cloud_name", + "purchaseId": "225fadec-3bbe-4e61-a119-ff102da67d0d", + "skuDescription": { + "id": "general", + "name": "CS28-Node" + }, + "status": "used", + "vmwareClusterName": "Cluster" }, - "status": "used", - "vmwareClusterName": "Cluster" - }, - "sku": { - "name": "VMware_CloudSimple_CS28" + "sku": { + "name": "VMware_CloudSimple_CS28" + }, + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" - } - ] + { + "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/myNode", + "location": "eastus", + "name": "myNode", + "properties": { + "availabilityZoneId": "az1", + "availabilityZoneName": "Availability Zone 1", + "cloudRackName": "cloud_rack_1", + "created": "2019-05-08T09:35:47.961Z", + "placementGroupId": "n2", + "placementGroupName": "Placement Group 2", + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "privateCloudName": "myPrivateCloud", + "purchaseId": "b3fcd958-f19c-4421-ab46-e4fa9cc8514e", + "skuDescription": { + "id": "general", + "name": "CS28-Node" + }, + "status": "used", + "vmwareClusterName": "Cluster" + }, + "sku": { + "name": "VMware_CloudSimple_CS28" + }, + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" + } + ] + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGDedicatedCloudServices.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGDedicatedCloudServices.json index 99b365a135b9..d4b33fd7b731 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGDedicatedCloudServices.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGDedicatedCloudServices.json @@ -6,30 +6,32 @@ }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/service-east", - "location": "eastus", - "name": "service-east", - "properties": { - "gatewaySubnet": "10.101.201.0/28", - "isAccountOnboarded": "onBoarded", - "serviceURL": "https://eastus-he.azure.cloudsimple.com" + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/service-east", + "location": "eastus", + "name": "service-east", + "properties": { + "gatewaySubnet": "10.101.201.0/28", + "isAccountOnboarded": "onBoarded", + "serviceURL": "https://eastus-he.azure.cloudsimple.com" + }, + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" - }, - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/service-west", - "location": "westus", - "name": "service-west", - "properties": { - "gatewaySubnet": "10.0.0.0/28", - "isAccountOnboarded": "onBoarded", - "serviceURL": "https://westus-he.azure.cloudsimple.com" - }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" - } - ] + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/service-west", + "location": "westus", + "name": "service-west", + "properties": { + "gatewaySubnet": "10.0.0.0/28", + "isAccountOnboarded": "onBoarded", + "serviceURL": "https://westus-he.azure.cloudsimple.com" + }, + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" + } + ] + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGVirtualMachines.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGVirtualMachines.json index dda1209ab888..f9c9d9100fd0 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGVirtualMachines.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGVirtualMachines.json @@ -7,114 +7,116 @@ }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/virtualMachines/virtualMachine-2", - "location": "westus2", - "name": "virtualMachine-2", - "properties": { - "amountOfRam": 4096, - "controllers": [ - { - "id": "1000", - "name": "SCSI controller 0", - "subType": "LSI_PARALEL", - "type": "SCSI" - } - ], - "disks": [ - { - "controllerId": "1000", - "independenceMode": "persistent", - "totalSize": 10485760, - "virtualDiskId": "2000", - "virtualDiskName": "Hard disk 1" - } - ], - "guestOS": "Other (32-bit)", - "guestOSType": "other", - "nics": [ - { - "ipAddresses": null, - "macAddress": "00:50:56:a6:33:12", - "network": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" - }, - "nicType": "E1000", - "powerOnBoot": true, - "virtualNicId": "4000", - "virtualNicName": "Network adapter 1" - } - ], - "numberOfCores": 2, - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "resourcePool": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/rp-test/resourcepools/resgroup-26" + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/virtualMachines/virtualMachine-2", + "location": "westus2", + "name": "virtualMachine-2", + "properties": { + "amountOfRam": 4096, + "controllers": [ + { + "id": "1000", + "name": "SCSI controller 0", + "subType": "LSI_PARALEL", + "type": "SCSI" + } + ], + "disks": [ + { + "controllerId": "1000", + "independenceMode": "persistent", + "totalSize": 10485760, + "virtualDiskId": "2000", + "virtualDiskName": "Hard disk 1" + } + ], + "guestOS": "Other (32-bit)", + "guestOSType": "other", + "nics": [ + { + "ipAddresses": null, + "macAddress": "00:50:56:a6:33:12", + "network": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" + }, + "nicType": "E1000", + "powerOnBoot": true, + "virtualNicId": "4000", + "virtualNicName": "Network adapter 1" + } + ], + "numberOfCores": 2, + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "resourcePool": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/rp-test/resourcepools/resgroup-26" + }, + "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", + "vSphereNetworks": null, + "vmId": "vm-101", + "vmwaretools": "10309" }, - "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", - "vSphereNetworks": null, - "vmId": "vm-101", - "vmwaretools": "10309" - }, - "tags": { - "inUse": "true" - }, - "type": "Microsoft.VMwareCloudSimple/virtualMachines" - }, - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/virtualMachines/virtualMachine-3", - "location": "westus2", - "name": "virtualMachine-3", - "properties": { - "amountOfRam": 4096, - "controllers": [ - { - "id": "1000", - "name": "SCSI controller 0", - "subType": "LSI_PARALEL", - "type": "SCSI" - } - ], - "disks": [ - { - "controllerId": "1000", - "independenceMode": "persistent", - "totalSize": 10485760, - "virtualDiskId": "2000", - "virtualDiskName": "Hard disk 1" - } - ], - "guestOS": "Other (32-bit)", - "guestOSType": "other", - "nics": [ - { - "ipAddresses": null, - "macAddress": "00:50:56:a6:63:f3", - "network": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" - }, - "nicType": "E1000", - "powerOnBoot": true, - "virtualNicId": "4000", - "virtualNicName": "Network adapter 1" - } - ], - "numberOfCores": 2, - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "resourcePool": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/rp-test/resourcepools/resgroup-26" + "tags": { + "inUse": "true" }, - "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", - "vSphereNetworks": null, - "vmId": "vm-102", - "vmwaretools": "10309" - }, - "tags": { - "inUse": "true" + "type": "Microsoft.VMwareCloudSimple/virtualMachines" }, - "type": "Microsoft.VMwareCloudSimple/virtualMachines" - } - ] + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/virtualMachines/virtualMachine-3", + "location": "westus2", + "name": "virtualMachine-3", + "properties": { + "amountOfRam": 4096, + "controllers": [ + { + "id": "1000", + "name": "SCSI controller 0", + "subType": "LSI_PARALEL", + "type": "SCSI" + } + ], + "disks": [ + { + "controllerId": "1000", + "independenceMode": "persistent", + "totalSize": 10485760, + "virtualDiskId": "2000", + "virtualDiskName": "Hard disk 1" + } + ], + "guestOS": "Other (32-bit)", + "guestOSType": "other", + "nics": [ + { + "ipAddresses": null, + "macAddress": "00:50:56:a6:63:f3", + "network": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" + }, + "nicType": "E1000", + "powerOnBoot": true, + "virtualNicId": "4000", + "virtualNicName": "Network adapter 1" + } + ], + "numberOfCores": 2, + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "resourcePool": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/rp-test/resourcepools/resgroup-26" + }, + "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", + "vSphereNetworks": null, + "vmId": "vm-102", + "vmwaretools": "10309" + }, + "tags": { + "inUse": "true" + }, + "type": "Microsoft.VMwareCloudSimple/virtualMachines" + } + ] + } } } } diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListResourcePools.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListResourcePools.json index f8aa95124427..9e94b7719040 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListResourcePools.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListResourcePools.json @@ -2,23 +2,25 @@ "parameters": { "subscriptionId": "{subscription-id}", "regionId": "westus2", - "pcName" : "myPrivateCloud", + "pcName": "myPrivateCloud", "api-version": "2019-04-01" }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26", - "location": "westus2", - "name": "Workload", - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "properties": { - "fullName": "myPrivateCloud/Datacenter/Cluster/Workload" - }, - "type": "Microsoft.VMwareCloudSimple/resourcePools" - } - ] + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26", + "location": "westus2", + "name": "Workload", + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "properties": { + "fullName": "myPrivateCloud/Datacenter/Cluster/Workload" + }, + "type": "Microsoft.VMwareCloudSimple/resourcePools" + } + ] + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListUsages.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListUsages.json index b1e74a09b298..5390056ac6fb 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListUsages.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListUsages.json @@ -6,28 +6,30 @@ }, "responses": { "200": { - "value": [ - { - "dedicatedAvailabilityZoneId": "az1", - "dedicatedAvailabilityZoneName": "Availability Zone 1", - "dedicatedPlacementGroupId": "n1", - "dedicatedPlacementGroupName": "Placement Group 1", - "limit": 0, - "resourceType": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes", - "skuId": "general", - "skuName": "CS28-Node" - }, - { - "dedicatedAvailabilityZoneId": "az1", - "dedicatedAvailabilityZoneName": "Availability Zone 1", - "dedicatedPlacementGroupId": "n1", - "dedicatedPlacementGroupName": "Placement Group 1", - "limit": 0, - "resourceType": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes", - "skuId": "large", - "skuName": "CS36-Node" - } - ] + "body": { + "value": [ + { + "dedicatedAvailabilityZoneId": "az1", + "dedicatedAvailabilityZoneName": "Availability Zone 1", + "dedicatedPlacementGroupId": "n1", + "dedicatedPlacementGroupName": "Placement Group 1", + "limit": 0, + "resourceType": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes", + "skuId": "general", + "skuName": "CS28-Node" + }, + { + "dedicatedAvailabilityZoneId": "az1", + "dedicatedAvailabilityZoneName": "Availability Zone 1", + "dedicatedPlacementGroupId": "n1", + "dedicatedPlacementGroupName": "Placement Group 1", + "limit": 0, + "resourceType": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes", + "skuId": "large", + "skuName": "CS36-Node" + } + ] + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualMachineTemplates.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualMachineTemplates.json index e776dab00b7b..d45d4d9d3b1a 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualMachineTemplates.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualMachineTemplates.json @@ -8,55 +8,57 @@ }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", - "location": "westus2", - "name": "centos-template", - "properties": { - "amountOfRam": 4096, - "controllers": [ - { - "id": "1000", - "name": "SCSI controller 0", - "subType": "LSI_PARALEL", - "type": "SCSI" - } - ], - "disks": [ - { - "controllerId": "1000", - "independenceMode": "persistent", - "totalSize": 10485760, - "virtualDiskId": "2000", - "virtualDiskName": "Hard disk 1" - } - ], - "guestOS": "Other (32-bit)", - "guestOSType": "other", - "nics": [ - { - "ipAddresses": null, - "macAddress": "00:50:56:a6:7e:93", - "network": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" - }, - "nicType": "E1000", - "powerOnBoot": true, - "virtualNicId": "4000", - "virtualNicName": "Network adapter 1" - } - ], - "numberOfCores": 2, - "path": "Datacenter/Workload VMs", - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "vSphereNetworks": null, - "vSphereTags": null, - "vmwaretools": "10309" - }, - "type": "Microsoft.VMwareCloudSimple/virtualMachineTemplates" - } - ] + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", + "location": "westus2", + "name": "centos-template", + "properties": { + "amountOfRam": 4096, + "controllers": [ + { + "id": "1000", + "name": "SCSI controller 0", + "subType": "LSI_PARALEL", + "type": "SCSI" + } + ], + "disks": [ + { + "controllerId": "1000", + "independenceMode": "persistent", + "totalSize": 10485760, + "virtualDiskId": "2000", + "virtualDiskName": "Hard disk 1" + } + ], + "guestOS": "Other (32-bit)", + "guestOSType": "other", + "nics": [ + { + "ipAddresses": null, + "macAddress": "00:50:56:a6:7e:93", + "network": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" + }, + "nicType": "E1000", + "powerOnBoot": true, + "virtualNicId": "4000", + "virtualNicName": "Network adapter 1" + } + ], + "numberOfCores": 2, + "path": "Datacenter/Workload VMs", + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "vSphereNetworks": null, + "vSphereTags": null, + "vmwaretools": "10309" + }, + "type": "Microsoft.VMwareCloudSimple/virtualMachineTemplates" + } + ] + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualMachines.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualMachines.json index c1cbf7bc16a3..1d07558ccf66 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualMachines.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualMachines.json @@ -6,167 +6,169 @@ }, "responses": { "200": { - "value": [ - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-1/providers/Microsoft.VMwareCloudSimple/virtualMachines/virtualMachine-1", - "location": "westus2", - "name": "virtualMachine-1", - "properties": { - "amountOfRam": 4096, - "controllers": [ - { - "id": "1000", - "name": "SCSI controller 0", - "subType": "LSI_PARALEL", - "type": "SCSI" - } - ], - "disks": [ - { - "controllerId": "1000", - "independenceMode": "persistent", - "totalSize": 10485760, - "virtualDiskId": "2000", - "virtualDiskName": "Hard disk 1" - } - ], - "guestOS": "Other (32-bit)", - "guestOSType": "other", - "nics": [ - { - "ipAddresses": null, - "macAddress": "00:50:56:a6:d0:e1", - "network": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" - }, - "nicType": "E1000", - "powerOnBoot": true, - "virtualNicId": "4000", - "virtualNicName": "Network adapter 1" - } - ], - "numberOfCores": 2, - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "resourcePool": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/rp-test/resourcepools/resgroup-26" + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-1/providers/Microsoft.VMwareCloudSimple/virtualMachines/virtualMachine-1", + "location": "westus2", + "name": "virtualMachine-1", + "properties": { + "amountOfRam": 4096, + "controllers": [ + { + "id": "1000", + "name": "SCSI controller 0", + "subType": "LSI_PARALEL", + "type": "SCSI" + } + ], + "disks": [ + { + "controllerId": "1000", + "independenceMode": "persistent", + "totalSize": 10485760, + "virtualDiskId": "2000", + "virtualDiskName": "Hard disk 1" + } + ], + "guestOS": "Other (32-bit)", + "guestOSType": "other", + "nics": [ + { + "ipAddresses": null, + "macAddress": "00:50:56:a6:d0:e1", + "network": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" + }, + "nicType": "E1000", + "powerOnBoot": true, + "virtualNicId": "4000", + "virtualNicName": "Network adapter 1" + } + ], + "numberOfCores": 2, + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "resourcePool": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/rp-test/resourcepools/resgroup-26" + }, + "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", + "vSphereNetworks": null, + "vmId": "vm-100", + "vmwaretools": "10309" }, - "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", - "vSphereNetworks": null, - "vmId": "vm-100", - "vmwaretools": "10309" - }, - "tags": { - "inUse": "true" - }, - "type": "Microsoft.VMwareCloudSimple/virtualMachines" - }, - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-2/providers/Microsoft.VMwareCloudSimple/virtualMachines/virtualMachine-2", - "location": "westus2", - "name": "virtualMachine-2", - "properties": { - "amountOfRam": 4096, - "controllers": [ - { - "id": "1000", - "name": "SCSI controller 0", - "subType": "LSI_PARALEL", - "type": "SCSI" - } - ], - "disks": [ - { - "controllerId": "1000", - "independenceMode": "persistent", - "totalSize": 10485760, - "virtualDiskId": "2000", - "virtualDiskName": "Hard disk 1" - } - ], - "guestOS": "Other (32-bit)", - "guestOSType": "other", - "nics": [ - { - "ipAddresses": null, - "macAddress": "00:50:56:a6:33:12", - "network": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" - }, - "nicType": "E1000", - "powerOnBoot": true, - "virtualNicId": "4000", - "virtualNicName": "Network adapter 1" - } - ], - "numberOfCores": 2, - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "resourcePool": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/rp-test/resourcepools/resgroup-26" + "tags": { + "inUse": "true" }, - "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", - "vSphereNetworks": null, - "vmId": "vm-101", - "vmwaretools": "10309" + "type": "Microsoft.VMwareCloudSimple/virtualMachines" }, - "tags": { - "inUse": "true" - }, - "type": "Microsoft.VMwareCloudSimple/virtualMachines" - }, - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-1/providers/Microsoft.VMwareCloudSimple/virtualMachines/virtualMachine-3", - "location": "westus2", - "name": "virtualMachine-3", - "properties": { - "amountOfRam": 4096, - "controllers": [ - { - "id": "1000", - "name": "SCSI controller 0", - "subType": "LSI_PARALEL", - "type": "SCSI" - } - ], - "disks": [ - { - "controllerId": "1000", - "independenceMode": "persistent", - "totalSize": 10485760, - "virtualDiskId": "2000", - "virtualDiskName": "Hard disk 1" - } - ], - "guestOS": "Other (32-bit)", - "guestOSType": "other", - "nics": [ - { - "ipAddresses": null, - "macAddress": "00:50:56:a6:63:f3", - "network": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" - }, - "nicType": "E1000", - "powerOnBoot": true, - "virtualNicId": "4000", - "virtualNicName": "Network adapter 1" - } - ], - "numberOfCores": 2, - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "resourcePool": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/rp-test/resourcepools/resgroup-26" + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-2/providers/Microsoft.VMwareCloudSimple/virtualMachines/virtualMachine-2", + "location": "westus2", + "name": "virtualMachine-2", + "properties": { + "amountOfRam": 4096, + "controllers": [ + { + "id": "1000", + "name": "SCSI controller 0", + "subType": "LSI_PARALEL", + "type": "SCSI" + } + ], + "disks": [ + { + "controllerId": "1000", + "independenceMode": "persistent", + "totalSize": 10485760, + "virtualDiskId": "2000", + "virtualDiskName": "Hard disk 1" + } + ], + "guestOS": "Other (32-bit)", + "guestOSType": "other", + "nics": [ + { + "ipAddresses": null, + "macAddress": "00:50:56:a6:33:12", + "network": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" + }, + "nicType": "E1000", + "powerOnBoot": true, + "virtualNicId": "4000", + "virtualNicName": "Network adapter 1" + } + ], + "numberOfCores": 2, + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "resourcePool": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/rp-test/resourcepools/resgroup-26" + }, + "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", + "vSphereNetworks": null, + "vmId": "vm-101", + "vmwaretools": "10309" }, - "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", - "vSphereNetworks": null, - "vmId": "vm-102", - "vmwaretools": "10309" - }, - "tags": { - "inUse": "true" + "tags": { + "inUse": "true" + }, + "type": "Microsoft.VMwareCloudSimple/virtualMachines" }, - "type": "Microsoft.VMwareCloudSimple/virtualMachines" - } - ] + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup-1/providers/Microsoft.VMwareCloudSimple/virtualMachines/virtualMachine-3", + "location": "westus2", + "name": "virtualMachine-3", + "properties": { + "amountOfRam": 4096, + "controllers": [ + { + "id": "1000", + "name": "SCSI controller 0", + "subType": "LSI_PARALEL", + "type": "SCSI" + } + ], + "disks": [ + { + "controllerId": "1000", + "independenceMode": "persistent", + "totalSize": 10485760, + "virtualDiskId": "2000", + "virtualDiskName": "Hard disk 1" + } + ], + "guestOS": "Other (32-bit)", + "guestOSType": "other", + "nics": [ + { + "ipAddresses": null, + "macAddress": "00:50:56:a6:63:f3", + "network": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" + }, + "nicType": "E1000", + "powerOnBoot": true, + "virtualNicId": "4000", + "virtualNicName": "Network adapter 1" + } + ], + "numberOfCores": 2, + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "resourcePool": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/rp-test/resourcepools/resgroup-26" + }, + "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", + "vSphereNetworks": null, + "vmId": "vm-102", + "vmwaretools": "10309" + }, + "tags": { + "inUse": "true" + }, + "type": "Microsoft.VMwareCloudSimple/virtualMachines" + } + ] + } } } } diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualNetworks.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualNetworks.json index 8c5d040a2a43..6681be5fddb5 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualNetworks.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualNetworks.json @@ -8,58 +8,60 @@ }, "responses": { "200": { - "value": [ - { - "assignable": false, - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19", - "location": "westus2", - "name": "Datacenter/CS-Management", - "properties": { - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + "body": { + "value": [ + { + "assignable": false, + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19", + "location": "westus2", + "name": "Datacenter/CS-Management", + "properties": { + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + }, + "type": "Microsoft.VMwareCloudSimple/virtualNetworks" }, - "type": "Microsoft.VMwareCloudSimple/virtualNetworks" - }, - { - "assignable": true, - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-20", - "location": "westus2", - "name": "Datacenter/CS-Rescue", - "properties": { - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + { + "assignable": true, + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-20", + "location": "westus2", + "name": "Datacenter/CS-Rescue", + "properties": { + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + }, + "type": "Microsoft.VMwareCloudSimple/virtualNetworks" }, - "type": "Microsoft.VMwareCloudSimple/virtualNetworks" - }, - { - "assignable": false, - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-21", - "location": "westus2", - "name": "Datacenter/CS-VSAN", - "properties": { - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + { + "assignable": false, + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-21", + "location": "westus2", + "name": "Datacenter/CS-VSAN", + "properties": { + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + }, + "type": "Microsoft.VMwareCloudSimple/virtualNetworks" }, - "type": "Microsoft.VMwareCloudSimple/virtualNetworks" - }, - { - "assignable": false, - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-22", - "location": "westus2", - "name": "Datacenter/CS-VMotion", - "properties": { - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + { + "assignable": false, + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-22", + "location": "westus2", + "name": "Datacenter/CS-VMotion", + "properties": { + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + }, + "type": "Microsoft.VMwareCloudSimple/virtualNetworks" }, - "type": "Microsoft.VMwareCloudSimple/virtualNetworks" - }, - { - "assignable": true, - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-35", - "location": "westus2", - "name": "Datacenter/net-01", - "properties": { - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" - }, - "type": "Microsoft.VMwareCloudSimple/virtualNetworks" - } - ] + { + "assignable": true, + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-35", + "location": "westus2", + "name": "Datacenter/net-01", + "properties": { + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud" + }, + "type": "Microsoft.VMwareCloudSimple/virtualNetworks" + } + ] + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchDedicatedCloudNode.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchDedicatedCloudNode.json index a520f55f9132..e5b7836398b9 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchDedicatedCloudNode.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchDedicatedCloudNode.json @@ -13,24 +13,26 @@ }, "responses": { "200": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/myNode", - "location": "westus", - "name": "myNode", - "properties": { - "availabilityZoneId": "az1", - "created": "2019-05-21T13:43:26.441Z", - "placementGroupId": "n1", - "purchaseId": "56acbd46-3d36-4bbf-9b08-57c30fdf6932", - "skuDescription": { - "id": "general", - "name": "CS28-Node" + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/myNode", + "location": "westus", + "name": "myNode", + "properties": { + "availabilityZoneId": "az1", + "created": "2019-05-21T13:43:26.441Z", + "placementGroupId": "n1", + "purchaseId": "56acbd46-3d36-4bbf-9b08-57c30fdf6932", + "skuDescription": { + "id": "general", + "name": "CS28-Node" + }, + "status": "unused" }, - "status": "unused" - }, - "tags": { - "myTag": "tagValue" - }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" + "tags": { + "myTag": "tagValue" + }, + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudNodes" + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchDedicatedService.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchDedicatedService.json index dd6458be3758..b2474533eb83 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchDedicatedService.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchDedicatedService.json @@ -12,18 +12,20 @@ }, "responses": { "200": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/myService", - "location": "westus2", - "name": "myService", - "properties": { - "gatewaySubnet": "10.0.0.0/28", - "isAccountOnboarded": "onBoarded", - "serviceURL": "https://westus-he.azure.cloudsimple.com" - }, - "tags": { - "myTag": "tagValue" - }, - "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices/myService", + "location": "westus2", + "name": "myService", + "properties": { + "gatewaySubnet": "10.0.0.0/28", + "isAccountOnboarded": "onBoarded", + "serviceURL": "https://westus-he.azure.cloudsimple.com" + }, + "tags": { + "myTag": "tagValue" + }, + "type": "Microsoft.VMwareCloudSimple/dedicatedCloudServices" + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchVirtualMachine.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchVirtualMachine.json index b1c1f7953d10..236e72e7df3b 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchVirtualMachine.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchVirtualMachine.json @@ -12,58 +12,60 @@ }, "responses": { "200": { - "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/virtualMachines/myVirtualMachine", - "location": "westus2", - "name": "myVirtualMachine", - "properties": { - "amountOfRam": 4096, - "controllers": [ - { - "id": "1000", - "name": "SCSI controller 0", - "subType": "LSI_PARALEL", - "type": "SCSI" - } - ], - "disks": [ - { - "controllerId": "1000", - "independenceMode": "persistent", - "totalSize": 10485760, - "virtualDiskId": "2000", - "virtualDiskName": "Hard disk 1" - } - ], - "guestOS": "Other (32-bit)", - "guestOSType": "other", - "nics": [ - { - "ipAddresses": null, - "network": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" - }, - "nicType": "E1000", - "powerOnBoot": true, - "virtualNicId": "4000", - "virtualNicName": "Network adapter 1" - } - ], - "numberOfCores": 2, - "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", - "provisioningState": "Succeeded", - "resourcePool": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26" + "body": { + "id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VMwareCloudSimple/virtualMachines/myVirtualMachine", + "location": "westus2", + "name": "myVirtualMachine", + "properties": { + "amountOfRam": 4096, + "controllers": [ + { + "id": "1000", + "name": "SCSI controller 0", + "subType": "LSI_PARALEL", + "type": "SCSI" + } + ], + "disks": [ + { + "controllerId": "1000", + "independenceMode": "persistent", + "totalSize": 10485760, + "virtualDiskId": "2000", + "virtualDiskName": "Hard disk 1" + } + ], + "guestOS": "Other (32-bit)", + "guestOSType": "other", + "nics": [ + { + "ipAddresses": null, + "network": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19" + }, + "nicType": "E1000", + "powerOnBoot": true, + "virtualNicId": "4000", + "virtualNicName": "Network adapter 1" + } + ], + "numberOfCores": 2, + "privateCloudId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud", + "provisioningState": "Succeeded", + "resourcePool": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26" + }, + "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", + "status": "running", + "vSphereNetworks": null, + "vmId": "vm-106", + "vmwaretools": "10309" }, - "templateId": "/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34", - "status": "running", - "vSphereNetworks": null, - "vmId": "vm-106", - "vmwaretools": "10309" - }, - "tags": { - "myTag": "tagValue" - }, - "type": "Microsoft.VMwareCloudSimple/virtualMachines" + "tags": { + "myTag": "tagValue" + }, + "type": "Microsoft.VMwareCloudSimple/virtualMachines" + } } } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StartVirtualMachine.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StartVirtualMachine.json index 0b6eca925fd9..1fd1d371b5c0 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StartVirtualMachine.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StartVirtualMachine.json @@ -11,4 +11,4 @@ "200": {}, "202": {} } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StopInBodyVirtualMachine.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StopInBodyVirtualMachine.json index 2071ca85570a..bab1631a13de 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StopInBodyVirtualMachine.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StopInBodyVirtualMachine.json @@ -12,4 +12,4 @@ "200": {}, "202": {} } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StopInQueryVirtualMachine.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StopInQueryVirtualMachine.json index 3e9dac3aa9d5..9181a30a7352 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StopInQueryVirtualMachine.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StopInQueryVirtualMachine.json @@ -12,4 +12,4 @@ "200": {}, "202": {} } -} \ No newline at end of file +} diff --git a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/vmwarecloudsimple.json b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/vmwarecloudsimple.json index 28b13c457e1d..55a04b7faf2c 100644 --- a/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/vmwarecloudsimple.json +++ b/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/vmwarecloudsimple.json @@ -147,7 +147,7 @@ }, "/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudServices": { "get": { - "description": "Returns list of dedicated cloud service within within subscription", + "description": "Returns list of dedicated cloud services within a subscription", "consumes": [ "application/json" ], diff --git a/specification/vmwarecloudsimple/resource-manager/readme.csharp.md b/specification/vmwarecloudsimple/resource-manager/readme.csharp.md index d06cf426d2d5..e7e5f798bf98 100644 --- a/specification/vmwarecloudsimple/resource-manager/readme.csharp.md +++ b/specification/vmwarecloudsimple/resource-manager/readme.csharp.md @@ -10,5 +10,5 @@ csharp: payload-flattening-threshold: 2 clear-output-folder: true namespace: Microsoft.Azure.Management.VMwareCloudSimple - output-folder: $(csharp-sdks-folder)/VMwareCloudSimple/Management.VMwareCloudSimple/Generated + output-folder: $(csharp-sdks-folder)/vmwarecloudsimple/Microsoft.Azure.Management.VMwareCloudSimple/src/Generated ``` diff --git a/specification/vmwarecloudsimple/resource-manager/readme.md b/specification/vmwarecloudsimple/resource-manager/readme.md index 70cbf02c71d1..cd1b34079322 100644 --- a/specification/vmwarecloudsimple/resource-manager/readme.md +++ b/specification/vmwarecloudsimple/resource-manager/readme.md @@ -79,4 +79,28 @@ See configuration in [readme.csharp.md](./readme.csharp.md) ## Java -See configuration in [readme.java.md](./readme.java.md) \ No newline at end of file +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. + +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.VMwareCloudSimple/stable/2019-04-01/vmwarecloudsimple.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/web/resource-manager/readme.csharp.md b/specification/web/resource-manager/readme.csharp.md index bd67530b7beb..95ec5d345fc5 100644 --- a/specification/web/resource-manager/readme.csharp.md +++ b/specification/web/resource-manager/readme.csharp.md @@ -17,7 +17,7 @@ csharp: ``` yaml $(csharp) && !$(multiapi) && !$(csharp-profile) namespace: Microsoft.Azure.Management.WebSites -output-folder: $(csharp-sdks-folder)/WebSites/Management.WebSites/Generated +output-folder: $(csharp-sdks-folder)/websites/Microsoft.Azure.Management.WebSites/src/Generated ``` ## Batch settings diff --git a/specification/web/resource-manager/readme.md b/specification/web/resource-manager/readme.md index 98d98688451a..30564f4bdfb7 100644 --- a/specification/web/resource-manager/readme.md +++ b/specification/web/resource-manager/readme.md @@ -339,6 +339,7 @@ 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 @@ -470,3 +471,63 @@ input-file: - Microsoft.Web/stable/2018-02-01/ResourceProvider.json - Microsoft.Web/stable/2018-02-01/Recommendations.json ``` + +## 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.CertificateRegistration/stable/2018-02-01/AppServiceCertificateOrders.json + - $(this-folder)/Microsoft.CertificateRegistration/stable/2018-02-01/CertificateRegistrationProvider.json + - $(this-folder)/Microsoft.DomainRegistration/stable/2018-02-01/Domains.json + - $(this-folder)/Microsoft.DomainRegistration/stable/2018-02-01/TopLevelDomains.json + - $(this-folder)/Microsoft.DomainRegistration/stable/2018-02-01/DomainRegistrationProvider.json + - $(this-folder)/Microsoft.Web/stable/2018-11-01/Certificates.json + - $(this-folder)/Microsoft.Web/stable/2018-02-01/CommonDefinitions.json + - $(this-folder)/Microsoft.Web/stable/2018-02-01/DeletedWebApps.json + - $(this-folder)/Microsoft.Web/stable/2018-02-01/Diagnostics.json + - $(this-folder)/Microsoft.Web/stable/2018-02-01/Provider.json + - $(this-folder)/Microsoft.Web/stable/2018-02-01/Recommendations.json + - $(this-folder)/Microsoft.Web/stable/2018-02-01/ResourceProvider.json + - $(this-folder)/Microsoft.Web/stable/2018-11-01/WebApps.json + - $(this-folder)/Microsoft.Web/stable/2018-02-01/AppServiceEnvironments.json + - $(this-folder)/Microsoft.Web/stable/2018-02-01/AppServicePlans.json + - $(this-folder)/Microsoft.Web/stable/2018-02-01/ResourceHealthMetadata.json + - $(this-folder)/Microsoft.Web/stable/2018-02-01/WebApps.json + - $(this-folder)/Microsoft.Web/stable/2018-02-01/Certificates.json + - $(this-folder)/Microsoft.CertificateRegistration/stable/2015-08-01/AppServiceCertificateOrders.json + - $(this-folder)/Microsoft.CertificateRegistration/stable/2015-08-01/CertificateRegistrationProvider.json + - $(this-folder)/Microsoft.DomainRegistration/stable/2015-04-01/Domains.json + - $(this-folder)/Microsoft.DomainRegistration/stable/2015-04-01/TopLevelDomains.json + - $(this-folder)/Microsoft.DomainRegistration/stable/2015-04-01/DomainRegistrationProvider.json + - $(this-folder)/Microsoft.Web/stable/2016-03-01/Certificates.json + - $(this-folder)/Microsoft.Web/stable/2016-03-01/CommonDefinitions.json + - $(this-folder)/Microsoft.Web/stable/2016-03-01/DeletedWebApps.json + - $(this-folder)/Microsoft.Web/stable/2016-03-01/Diagnostics.json + - $(this-folder)/Microsoft.Web/stable/2016-03-01/Provider.json + - $(this-folder)/Microsoft.Web/stable/2016-03-01/Recommendations.json + - $(this-folder)/Microsoft.Web/stable/2016-03-01/ResourceHealthMetadata.json + - $(this-folder)/Microsoft.Web/stable/2016-03-01/ResourceProvider.json + - $(this-folder)/Microsoft.Web/stable/2016-08-01/WebApps.json + - $(this-folder)/Microsoft.Web/stable/2016-09-01/AppServiceEnvironments.json + - $(this-folder)/Microsoft.Web/stable/2016-09-01/AppServicePlans.json + - $(this-folder)/Microsoft.Web/stable/2015-08-01/service.json + - $(this-folder)/Microsoft.Web/preview/2015-08-01-preview/logicAppsManagementClient.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/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/WindowsIotServices.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/WindowsIotServices.json new file mode 100644 index 000000000000..0cdc53c800a1 --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/WindowsIotServices.json @@ -0,0 +1,679 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-06-01", + "title": "DeviceServices", + "description": "Use this API to manage the Windows IoT device services in your Azure subscription." + }, + "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.WindowsIoT/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available Windows IoT Services REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/OperationsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices/{deviceName}": { + "get": { + "tags": [ + "DeviceServices" + ], + "description": "Get the non-security related metadata of a Windows IoT Device Service.", + "operationId": "Services_Get", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DeviceNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceService" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Services_GetProperties": { + "$ref": "./examples/Service_GetProperties.json" + } + } + }, + "put": { + "tags": [ + "DeviceServices" + ], + "summary": "Create or update the metadata of a Windows IoT Device Service.", + "description": "Create or update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service.", + "operationId": "Services_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DeviceNameParameter" + }, + { + "name": "deviceService", + "in": "body", + "description": "The Windows IoT Device Service metadata and security metadata.", + "required": true, + "schema": { + "$ref": "#/definitions/DeviceServiceProperties" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "ETag of the Windows IoT Device Service. Do not specify for creating a new Windows IoT Device Service. Required to update an existing Windows IoT Device Service." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceService" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Service_Create": { + "$ref": "./examples/Service_Create.json" + } + } + }, + "patch": { + "tags": [ + "DeviceServices" + ], + "summary": "Updates the metadata of a Windows IoT Device Service.", + "description": "Updates the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service.", + "operationId": "Services_Update", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DeviceNameParameter" + }, + { + "name": "deviceService", + "in": "body", + "description": "The Windows IoT Device Service metadata and security metadata.", + "required": true, + "schema": { + "$ref": "#/definitions/DeviceServiceProperties" + } + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "description": "ETag of the Windows IoT Device Service. Do not specify for creating a brand new Windows IoT Device Service. Required to update an existing Windows IoT Device Service." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceService" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Service_Update": { + "$ref": "./examples/Service_Update.json" + } + } + }, + "delete": { + "tags": [ + "DeviceServices" + ], + "description": "Delete a Windows IoT Device Service.", + "operationId": "Services_Delete", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DeviceNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceService" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Service_Delete": { + "$ref": "./examples/Service_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices": { + "get": { + "tags": [ + "DeviceServices" + ], + "description": "Get all the IoT hubs in a resource group.", + "operationId": "Services_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceServiceDescriptionListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Service_ListByResourceGroup": { + "$ref": "./examples/Service_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/deviceServices": { + "get": { + "tags": [ + "DeviceServices" + ], + "description": "Get all the IoT hubs in a subscription.", + "operationId": "Services_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceServiceDescriptionListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Service_List": { + "$ref": "./examples/Service_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/checkDeviceServiceNameAvailability": { + "post": { + "tags": [ + "CheckDeviceServiceNameAvailability" + ], + "description": "Check if a Windows IoT Device Service name is available.", + "operationId": "Services_CheckDeviceServiceNameAvailability", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "deviceServiceCheckNameAvailabilityParameters", + "in": "body", + "description": "Set the name parameter in the DeviceServiceCheckNameAvailabilityParameters structure to the name of the Windows IoT Device Service to check.", + "required": true, + "schema": { + "$ref": "#/definitions/DeviceServiceCheckNameAvailabilityParameters" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceServiceNameAvailabilityInfo" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false, + "x-ms-examples": { + "Service_CheckNameAvailability": { + "$ref": "./examples/Service_CheckNameAvailability.json" + } + } + } + } + }, + "definitions": { + "DeviceServiceProperties": { + "description": "The properties of a Windows IoT Device Service.", + "type": "object", + "properties": { + "notes": { + "description": "Windows IoT Device Service notes.", + "type": "string" + }, + "startDate": { + "description": "Windows IoT Device Service start date,", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "quantity": { + "description": "Windows IoT Device Service device allocation,", + "type": "integer", + "format": "int64" + }, + "billingDomainName": { + "description": "Windows IoT Device Service ODM AAD domain", + "type": "string" + }, + "adminDomainName": { + "description": "Windows IoT Device Service OEM AAD domain", + "type": "string" + } + } + }, + "DeviceService": { + "description": "The description of the Windows IoT Device Service.", + "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": "The properties of a Windows IoT Device Service.", + "$ref": "#/definitions/DeviceServiceProperties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ] + }, + "Resource": { + "description": "The core properties of ARM resources", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Fully qualified resource Id for the resource" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the resource" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "The resource model definition for a 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": "The Azure Region where the resource lives" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "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" + } + ] + }, + "OperationListResult": { + "description": "Result of the request to list Windows IoT Device Service operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of Windows IoT Device Service operations supported by the Microsoft.WindowsIoT resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/OperationEntity" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "OperationEntity": { + "description": "The operation supported by Azure Data Catalog Service.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationDisplayInfo", + "description": "The operation supported by Azure Data Catalog Service." + } + } + }, + "OperationDisplayInfo": { + "description": "The operation supported by Azure Data Catalog Service.", + "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: Azure Data Catalog Service.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed.", + "type": "string" + } + } + }, + "ErrorDetails": { + "description": "The details of the error.", + "properties": { + "code": { + "description": "One of a server-defined set of error codes.", + "type": "string" + }, + "message": { + "description": "A human-readable representation of the error.", + "type": "string" + }, + "target": { + "description": "The target of the particular error.", + "type": "string" + }, + "details": { + "description": "A human-readable representation of the error's details.", + "type": "string" + } + } + }, + "DeviceServiceDescriptionListResult": { + "description": "The JSON-serialized array of DeviceService objects with a next link.", + "type": "object", + "properties": { + "value": { + "description": "The array of DeviceService objects.", + "type": "array", + "items": { + "$ref": "#/definitions/DeviceService" + } + }, + "nextLink": { + "description": "The next link.", + "type": "string", + "readOnly": true + } + } + }, + "DeviceServiceCheckNameAvailabilityParameters": { + "description": "Input values.", + "type": "object", + "properties": { + "name": { + "description": "The name of the Windows IoT Device Service to check.", + "type": "string" + } + }, + "required": [ + "name" + ] + }, + "DeviceServiceNameAvailabilityInfo": { + "description": "The properties indicating whether a given Windows IoT Device Service 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": "serviceNameUnavailabilityReason", + "modelAsString": false + } + }, + "message": { + "description": "The detailed reason message.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "The subscription identifier.", + "required": true, + "type": "string" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "The version of the API.", + "required": true, + "type": "string" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "description": "The name of the resource group that contains the Windows IoT Device Service.", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "DeviceNameParameter": { + "name": "deviceName", + "in": "path", + "description": "The name of the Windows IoT Device Service.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/OperationsList.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/OperationsList.json new file mode 100644 index 000000000000..c556a62abff0 --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/OperationsList.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.WindowsIoT/Services/write", + "display": { + "provider": "Windows IoT", + "resource": "Windows IoT Services", + "operation": "Create/Update Windows IoT Subscription", + "description": "Creates a Windows IoT Subscription with the specified parameters or update the properties or tags or adds custom domain for the specified Windows IoT Subscription." + } + }, + { + "name": "Microsoft.WindowsIoT/Services/delete", + "display": { + "provider": "Windows IoT", + "resource": "Windows IoT Services", + "operation": "Delete Windows IoT Subscription", + "description": "Deletes an existing Windows IoT Subscription." + } + }, + { + "name": "Microsoft.WindowsIoT/checkNameAvailability/read", + "display": { + "provider": "Windows IoT", + "resource": "Name Availability", + "operation": "Check Name Availability", + "description": "Checks that account name is valid and is not in use." + } + }, + { + "name": "Microsoft.WindowsIoT/Services/read", + "display": { + "provider": "Windows IoT", + "resource": "Windows IoT Services", + "operation": "List/Get Windows IoT Subscription(s)", + "description": "Returns the list of Windows IoT Services or gets the properties for the specified Windows IoT Subscription." + } + }, + { + "name": "Microsoft.WindowsIoT/operations/read", + "display": { + "provider": "Windows IoT", + "resource": "Operations", + "operation": "Poll Asynchronous Operation", + "description": "Polls the status of an asynchronous operation." + } + } + ] + } + } + } +} diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_CheckNameAvailability.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_CheckNameAvailability.json new file mode 100644 index 000000000000..48c468253f8d --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_CheckNameAvailability.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "27de630f-e1ee-42de-8849-90def4986454", + "api-version": "2019-06-01", + "deviceServiceCheckNameAvailabilityParameters": { + "name": "service3363" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_Create.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_Create.json new file mode 100644 index 000000000000..ca3b9059a8f7 --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_Create.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "27de630f-e1ee-42de-8849-90def4986454", + "resourceGroupName": "res9101", + "deviceName": "service4445", + "api-version": "2019-06-01", + "deviceService": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "quantity": 1000000 + } + }, + "responses": { + "200": { + "body": { + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + } + } + } +} diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_Delete.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_Delete.json new file mode 100644 index 000000000000..71e1bb68a9e8 --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "27de630f-e1ee-42de-8849-90def4986454", + "resourceGroupName": "res4228", + "deviceName": "service2434", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + } + } + } +} diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_GetProperties.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_GetProperties.json new file mode 100644 index 000000000000..f49ef801c31b --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_GetProperties.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "45b60d85-fd72-427a-a708-f994d26e593e", + "resourceGroupName": "res9407", + "deviceName": "service8596", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res9407/providers/Microsoft.WindowsIoT/Services/service8596", + "name": "service8596", + "location": "westus", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + } + } + } +} diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_List.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_List.json new file mode 100644 index 000000000000..d3d2627217e2 --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_List.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "27de630f-e1ee-42de-8849-90def4986454", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/res2627/providers/Microsoft.WindowsIoT/Services/service1125", + "name": "service1125", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + }, + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/testcmk3/providers/Microsoft.WindowsIoT/Services/service3699", + "name": "service3699", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + }, + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/testcmk3/providers/Microsoft.WindowsIoT/Services/service6637", + "name": "service6637", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + }, + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/res8186/providers/Microsoft.WindowsIoT/Services/service834", + "name": "service834", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + }, + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/testcmk3/providers/Microsoft.WindowsIoT/Services/service9174", + "name": "service9174", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + } + ] + } + } + } +} diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_ListByResourceGroup.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_ListByResourceGroup.json new file mode 100644 index 000000000000..ecfc642eae97 --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_ListByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "27de630f-e1ee-42de-8849-90def4986454", + "resourceGroupName": "res6117", + "api-version": "2019-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/res6117/providers/Microsoft.WindowsIoT/Services/service4036", + "name": "service4036", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + }, + { + "id": "/subscriptions/27de630f-e1ee-42de-8849-90def4986454/resourceGroups/res6117/providers/Microsoft.WindowsIoT/Services/service4452", + "name": "service4452", + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "type": "Microsoft.WindowsIoT/Services" + } + ] + } + } + } +} diff --git a/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_Update.json b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_Update.json new file mode 100644 index 000000000000..7e73d334a6e4 --- /dev/null +++ b/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_Update.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "45b60d85-fd72-427a-a708-f994d26e593e", + "resourceGroupName": "res9407", + "deviceName": "service8596", + "api-version": "2019-06-01", + "deviceService": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "quantity": 1000000 + }, + "monitor": "true" + }, + "responses": { + "200": { + "body": { + "properties": { + "billingDomainName": "a.b.c", + "adminDomainName": "d.e.f", + "notes": "blah", + "startDate": "2018-01-01T12:00:00000Z", + "quantity": 1000000 + }, + "location": "westus", + "type": "Microsoft.WindowsIoT/Services" + } + } + } +} diff --git a/specification/windowsiot/resource-manager/readme.go.md b/specification/windowsiot/resource-manager/readme.go.md new file mode 100644 index 000000000000..c01c04d50a9e --- /dev/null +++ b/specification/windowsiot/resource-manager/readme.go.md @@ -0,0 +1,36 @@ + +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + namespace: windowsiot + clear-output-folder: true +``` + +### Go multi-api +``` yaml $(go) && $(multiapi) +windowsiot: + - tag: package-2019-06 + - tag: package-2018-02-preview +``` + +### Tag: package-2019-06 and go + +These settings apply only when `--tag=package-2019-06 --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/$(namespace)/mgmt/2019-06-01/$(namespace) +``` + +### Tag: package-2018-02-preview and go + +These settings apply only when `--tag=package-2018-02-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-02-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-02-01/$(namespace) +``` diff --git a/specification/windowsiot/resource-manager/readme.java.md b/specification/windowsiot/resource-manager/readme.java.md new file mode 100644 index 000000000000..3ec0fbe75985 --- /dev/null +++ b/specification/windowsiot/resource-manager/readme.java.md @@ -0,0 +1,49 @@ +## 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.windowsiot +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-windowsiot +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2019-06 + - tag: package-2018-02-preview +``` + +### Tag: package-2019-06 and java + +These settings apply only when `--tag=package-2019-06 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2019-06' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.windowsiot.v2019_06_01 + output-folder: $(azure-libraries-for-java-folder)/windowsiot/resource-manager/v2019_06_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-02-preview and java + +These settings apply only when `--tag=package-2018-02-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-02-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.windowsiot.v2018_02_16_preview + output-folder: $(azure-libraries-for-java-folder)/windowsiot/resource-manager/v2018_02_16_preview +regenerate-manager: true +generate-interface: true +``` + +` \ No newline at end of file diff --git a/specification/windowsiot/resource-manager/readme.md b/specification/windowsiot/resource-manager/readme.md index eb82567de728..c2d94f9818f4 100644 --- a/specification/windowsiot/resource-manager/readme.md +++ b/specification/windowsiot/resource-manager/readme.md @@ -26,17 +26,106 @@ These are the global settings for the Services API. ``` yaml openapi-type: arm -tag: package-2018-02 +tag: package-2019-06 ``` -### Tag: package-2018-02 +### Tag: package-2019-06 -These settings apply only when `--tag=package-2018-02` is specified on the command line. +These settings apply only when `--tag=package-2019-06` is specified on the command line. -``` yaml $(tag) == 'package-2018-02' +``` yaml $(tag) == 'package-2019-06' +input-file: +- Microsoft.WindowsIoT/stable/2019-06-01/WindowsIotServices.json +``` + +### Tag: package-2018-02-preview + +These settings apply only when `--tag=package-2018-02-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2018-02-preview' input-file: - Microsoft.WindowsIoT/preview/2018-02-16-preview/WindowsIotServices.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-net + - 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_windowsiot'] +``` + +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +``` yaml $(csharp) +csharp: + # last generated with AutoRest.1.0.0-Nightly20170129 from commit 19f63015ea5a8a0fc64b9d7e2cdfeac447d93eaf + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.Azure.Management.WindowsIoT + payload-flattening-threshold: 1 + output-folder: $(csharp-sdks-folder)/windowsiot/Microsoft.Azure.Management.WindowsIoT/src/Generated + clear-output-folder: true +``` + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## Java + +See configuration in [readme.java.md](./readme.java.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.WindowsIoT/stable/2019-06-01/WindowsIotServices.json + - $(this-folder)/Microsoft.WindowsIoT/preview/2018-02-16-preview/WindowsIotServices.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/windowsiot/resource-manager/readme.python.md b/specification/windowsiot/resource-manager/readme.python.md new file mode 100644 index 000000000000..3f3407198310 --- /dev/null +++ b/specification/windowsiot/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-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.windowsiot + package-name: azure-mgmt-windowsiot + clear-output-folder: true +``` + +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt-windowsiot/azure/mgmt/windowsiot +``` + +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/azure-mgmt-windowsiot +``` diff --git a/specification/windowsiot/resource-manager/readme.ruby.md b/specification/windowsiot/resource-manager/readme.ruby.md new file mode 100644 index 000000000000..49d91adb30a5 --- /dev/null +++ b/specification/windowsiot/resource-manager/readme.ruby.md @@ -0,0 +1,38 @@ +## Ruby + +These settings apply only when `--ruby` is specified on the command line. + +``` yaml +package-name: azure_mgmt_windowsiot +package-version: "0.16.0" +azure-arm: true +``` + +### Ruby multi-api + +``` yaml $(ruby) && $(multiapi) +batch: + - tag: package-2019-06 + - tag: package-2018-02-preview +``` + +### Tag: package-2019-06 and ruby + +These settings apply only when `--tag=package-2019-06 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-2019-06' && $(ruby) +namespace: "Azure::WindowsIoT::Mgmt::V2019_06_01" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_windowsiot/lib +``` + + +### Tag: package-2018-02-preview and ruby + +These settings apply only when `--tag=package-2018-02-preview --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-02-preview' && $(ruby) +namespace: "Azure::WindowsIoT::Mgmt::V2018_02_16_preview" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_windowsiot/lib +``` diff --git a/specification/windowsiot/resource-manager/readme.typescript.md b/specification/windowsiot/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..bd84c8098c3b --- /dev/null +++ b/specification/windowsiot/resource-manager/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/arm-windowsiot" + output-folder: "$(typescript-sdks-folder)/packages/@azure/arm-windowsiot" + generate-metadata: true +``` \ No newline at end of file diff --git a/specification/workloadmonitor/resource-manager/readme.md b/specification/workloadmonitor/resource-manager/readme.md index 3239c1ea90c7..6e1e30d5a15f 100644 --- a/specification/workloadmonitor/resource-manager/readme.md +++ b/specification/workloadmonitor/resource-manager/readme.md @@ -54,6 +54,7 @@ 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 @@ -71,7 +72,7 @@ csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.Management.WorkloadMonitor - output-folder: $(csharp-sdks-folder)/WorkloadMonitor/Management.WorkloadMonitor/Generated + output-folder: $(csharp-sdks-folder)/workloadmonitor/Microsoft.Azure.Management.WorkloadMonitor/src/Generated clear-output-folder: true ``` @@ -163,4 +164,29 @@ java: output-folder: $(azure-libraries-for-java-folder)/workloadmonitor/resource-manager/v2018_08_31_preview regenerate-manager: true generate-interface: true -``` \ No newline at end of file +``` + +## 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.WorkloadMonitor/preview/2018-08-31-preview/Microsoft.WorkloadMonitor.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/specificationRepositoryConfiguration.json b/specificationRepositoryConfiguration.json index 602dafb9f062..e97484fe7f4e 100644 --- a/specificationRepositoryConfiguration.json +++ b/specificationRepositoryConfiguration.json @@ -1,10 +1,34 @@ { + "$schema": "https://openapistorageprod.blob.core.windows.net/sdkautomation/prod/schemas/specificationRepositoryConfiguration.schema.json", "sdkRepositoryMappings": { - "azure-sdk-for-go": "Azure/azure-sdk-for-go", - "azure-sdk-for-java": "Azure/azure-sdk-for-java", - "azure-sdk-for-js": "Azure/azure-sdk-for-js", - "azure-sdk-for-net": "Azure/azure-sdk-for-net", - "azure-sdk-for-python": "Azure/azure-sdk-for-python", - "azure-sdk-for-ruby": "Azure/azure-sdk-for-ruby" + "azure-sdk-for-go": { + "mainBranch": "latest", + "integrationBranchPrefix": "sdkAutomationProdTest", + "generationRepository": "AzureSDKAutomation/azure-sdk-for-go", + "integrationRepository": "AzureSDKAutomation/azure-sdk-for-go", + "mainRepository": "test-repo-billy/azure-sdk-for-go" + }, + "azure-sdk-for-java": { + "generationRepository": "AzureSDKAutomation/azure-sdk-for-java", + "mainRepository": "test-repo-billy/azure-sdk-for-java" + }, + "azure-sdk-for-js": { + "generationRepository": "AzureSDKAutomation/azure-sdk-for-js", + "mainRepository": "test-repo-billy/azure-sdk-for-js" + }, + "azure-sdk-for-net": { + "generationRepository": "AzureSDKAutomation/azure-sdk-for-net", + "mainRepository": "test-repo-billy/azure-sdk-for-net" + }, + "azure-sdk-for-python": { + "generationRepository": "AzureSDKAutomation/azure-sdk-for-python", + "integrationRepository": "AzureSDKAutomation/azure-sdk-for-python", + "mainRepository": "test-repo-billy/azure-sdk-for-python" + }, + "azure-sdk-for-ruby": { + "mainBranch": "latest", + "generationRepository": "AzureSDKAutomation/azure-sdk-for-ruby", + "mainRepository": "test-repo-billy/azure-sdk-for-ruby" + } } }